:root {
  color-scheme: light;
  --paper: #f3f0e8;
  --paper-deep: #e8e2d6;
  --paper-soft: #faf8f2;
  --ink: #132238;
  --ink-soft: #33445a;
  --muted: #687283;
  --line: rgba(19, 34, 56, 0.16);
  --line-strong: rgba(19, 34, 56, 0.34);
  --navy: #0d213c;
  --navy-soft: #153456;
  --blue: #285f91;
  --blue-bright: #4b8ac0;
  --gold: #a8793e;
  --gold-soft: #d7b77d;
  --purple: #5d467b;
  --white: #fffdf8;
  --shadow: 0 30px 70px rgba(14, 31, 53, 0.1);
  --serif: "Noto Serif SC", "Source Han Serif SC", "Songti SC", "STSong", "SimSun", serif;
  --sans: "Inter", "Noto Sans SC", "Source Han Sans SC", "PingFang SC", "Microsoft YaHei", sans-serif;
  --max: 1240px;
  --header-h: 84px;
}

html[data-theme="dark"] {
  color-scheme: dark;
  --paper: #0e1724;
  --paper-deep: #111e2c;
  --paper-soft: #172433;
  --ink: #edf1f4;
  --ink-soft: #c7d0d9;
  --muted: #98a7b7;
  --line: rgba(232, 239, 246, 0.13);
  --line-strong: rgba(232, 239, 246, 0.28);
  --navy: #091522;
  --navy-soft: #102b45;
  --blue: #6da4d1;
  --blue-bright: #8fbde0;
  --gold: #d2a864;
  --gold-soft: #e2c58c;
  --purple: #aa8bc4;
  --white: #f7f4ec;
  --shadow: 0 30px 70px rgba(0, 0, 0, 0.25);
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 32px);
  background: var(--paper);
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.75;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  transition: background-color 0.35s ease, color 0.35s ease;
}

body::before {
  position: fixed;
  inset: 0;
  z-index: -1;
  content: "";
  pointer-events: none;
  background-image:
    linear-gradient(rgba(31, 57, 83, 0.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(31, 57, 83, 0.025) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: linear-gradient(to bottom, black, transparent 78%);
}

::selection {
  color: var(--white);
  background: var(--blue);
}

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

button,
input,
textarea,
select {
  font: inherit;
}

svg {
  display: block;
}

.shell {
  width: min(calc(100% - 64px), var(--max));
  margin-inline: auto;
}

.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;
}

.skip-link {
  position: fixed;
  top: 12px;
  left: 12px;
  z-index: 200;
  padding: 10px 16px;
  color: var(--white);
  background: var(--navy);
  transform: translateY(-140%);
  transition: transform 0.2s ease;
}

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

:focus-visible {
  outline: 2px solid var(--blue-bright);
  outline-offset: 4px;
}

/* Header */
.site-header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 100;
  height: var(--header-h);
  border-bottom: 1px solid transparent;
  transition: height 0.3s ease, background-color 0.3s ease, border-color 0.3s ease, backdrop-filter 0.3s ease;
}

.site-header.is-scrolled,
.site-header.is-open {
  height: 70px;
  background: color-mix(in srgb, var(--paper) 88%, transparent);
  border-color: var(--line);
  backdrop-filter: blur(18px) saturate(130%);
}

.header-inner {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  height: 100%;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 13px;
  width: fit-content;
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 40px;
  aspect-ratio: 1;
  color: var(--white);
  background: var(--ink);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.04em;
  transition: transform 0.25s ease, background-color 0.3s ease;
}

.brand:hover .brand-mark {
  background: var(--blue);
  transform: rotate(-3deg);
}

html[data-theme="dark"] .brand-mark {
  color: #ffffff;
  background: #285f91;
}

.brand-copy {
  display: flex;
  flex-direction: column;
  line-height: 1.15;
}

.brand-copy strong {
  font-family: var(--serif);
  font-size: 16px;
  letter-spacing: 0.12em;
}

.brand-copy small {
  margin-top: 5px;
  color: var(--muted);
  font-size: 8px;
  font-weight: 700;
  letter-spacing: 0.2em;
}

.site-nav {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 30px;
}

.site-nav a {
  position: relative;
  color: var(--ink-soft);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.08em;
}

.site-nav a::after {
  position: absolute;
  right: 0;
  bottom: -9px;
  left: 0;
  height: 1px;
  content: "";
  background: var(--blue);
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 0.25s ease;
}

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

.theme-toggle {
  position: relative;
  display: grid;
  justify-self: end;
  place-items: center;
  width: 40px;
  height: 40px;
  padding: 0;
  color: var(--ink);
  cursor: pointer;
  background: transparent;
  border: 1px solid var(--line);
  border-radius: 50%;
  transition: color 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
}

.theme-toggle:hover {
  color: var(--blue);
  border-color: var(--blue);
  transform: rotate(8deg);
}

.theme-icon {
  position: absolute;
  width: 17px;
  height: 17px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.6;
  transition: opacity 0.25s ease, transform 0.25s ease;
}

.theme-icon-moon,
html[data-theme="dark"] .theme-icon-sun {
  opacity: 0;
  transform: scale(0.5) rotate(-30deg);
}

html[data-theme="dark"] .theme-icon-moon {
  opacity: 1;
  transform: scale(1) rotate(0);
}

.nav-toggle {
  display: none;
}

/* Hero */
.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.02fr) minmax(430px, 0.98fr);
  align-items: center;
  gap: clamp(40px, 6vw, 96px);
  min-height: max(760px, 100svh);
  padding-top: calc(var(--header-h) + 64px);
  padding-bottom: 80px;
}

.eyebrow {
  display: flex;
  align-items: center;
  gap: 14px;
  margin: 0 0 34px;
  color: var(--blue);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.18em;
}

.eyebrow i {
  width: 26px;
  height: 1px;
  background: var(--gold);
}

.hero h1 {
  max-width: 760px;
  margin: 0;
  font-family: var(--serif);
  font-size: clamp(52px, 5.4vw, 82px);
  font-weight: 600;
  line-height: 1.16;
  letter-spacing: -0.045em;
}

.hero h1 em {
  color: var(--blue);
  font-style: normal;
}

.hero-lead {
  max-width: 680px;
  margin: 36px 0 0;
  color: var(--ink-soft);
  font-size: clamp(16px, 1.4vw, 19px);
  line-height: 2;
}

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

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 26px;
  min-height: 52px;
  padding: 0 25px;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.08em;
  transition: color 0.25s ease, background-color 0.25s ease, border-color 0.25s ease, transform 0.25s ease;
}

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

.button-primary {
  color: var(--white);
  background: var(--ink);
  border: 1px solid var(--ink);
}

.button-primary:hover {
  background: var(--blue);
  border-color: var(--blue);
}

html[data-theme="dark"] .button-primary {
  color: #ffffff;
  background: #285f91;
  border-color: #285f91;
}

html[data-theme="dark"] .button-primary:hover {
  color: #0b1725;
  background: var(--gold-soft);
  border-color: var(--gold-soft);
}

.button-quiet {
  color: var(--ink);
  border: 1px solid var(--line-strong);
}

.button-quiet:hover {
  color: var(--blue);
  border-color: var(--blue);
}

.hero-metrics {
  display: flex;
  gap: 0;
  margin: 52px 0 0;
}

.hero-metrics div {
  min-width: 128px;
  padding: 0 24px;
  border-left: 1px solid var(--line);
}

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

.hero-metrics dt {
  color: var(--ink);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 22px;
  font-weight: 600;
  line-height: 1.2;
  letter-spacing: -0.02em;
}

.hero-metrics dd {
  margin: 6px 0 0;
  color: var(--muted);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.1em;
}

.hero-visual {
  position: relative;
  aspect-ratio: 4 / 5;
  overflow: hidden;
  margin: 0;
  background: var(--navy);
  box-shadow: var(--shadow);
}

.hero-visual::before,
.hero-visual::after {
  position: absolute;
  z-index: 1;
  content: "";
  pointer-events: none;
}

.hero-visual::before {
  inset: 0;
  background:
    linear-gradient(180deg, rgba(6, 19, 34, 0.42) 0%, transparent 30%, transparent 58%, rgba(6, 19, 34, 0.86) 100%),
    linear-gradient(90deg, rgba(6, 19, 34, 0.18), transparent 52%);
}

.hero-visual::after {
  inset: 16px;
  z-index: 2;
  border: 1px solid rgba(255, 255, 255, 0.26);
}

.hero-portrait-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  filter: saturate(0.9) contrast(1.03);
  transform: scale(1.002);
  transition: filter 0.6s ease, transform 0.8s cubic-bezier(0.2, 0.75, 0.25, 1);
}

.hero-visual:hover .hero-portrait-image {
  filter: saturate(1) contrast(1.02);
  transform: scale(1.025);
}

.portrait-index,
.portrait-monogram,
.portrait-caption {
  position: absolute;
  z-index: 3;
}

.portrait-index {
  top: 31px;
  left: 32px;
  color: rgba(255, 255, 255, 0.66);
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.18em;
}

.portrait-monogram {
  top: 30px;
  right: 31px;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  color: #ffffff;
  line-height: 1;
}

.portrait-monogram strong {
  font-family: Georgia, "Times New Roman", serif;
  font-size: 20px;
  font-weight: 500;
}

.portrait-monogram span {
  margin-top: 8px;
  color: rgba(255, 255, 255, 0.58);
  font-size: 7px;
  font-weight: 700;
  letter-spacing: 0.16em;
}

.portrait-caption {
  right: 32px;
  bottom: 32px;
  left: 32px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  color: #ffffff;
}

.portrait-caption > span {
  padding-bottom: 13px;
  color: rgba(255, 255, 255, 0.64);
  font-size: 8px;
  font-weight: 700;
  letter-spacing: 0.12em;
}

.portrait-caption strong {
  padding-top: 16px;
  border-top: 1px solid rgba(255, 255, 255, 0.46);
  font-family: var(--serif);
  font-size: clamp(20px, 2vw, 29px);
  font-weight: 600;
  line-height: 1.4;
  letter-spacing: 0.02em;
}

.portrait-caption small {
  margin-top: 8px;
  color: rgba(255, 255, 255, 0.7);
  font-size: 9px;
  letter-spacing: 0.08em;
}

.section-rule {
  display: flex;
  align-items: center;
  gap: 20px;
  color: var(--muted);
  font-size: 8px;
  font-weight: 700;
  letter-spacing: 0.2em;
}

.section-rule::before,
.section-rule::after {
  height: 1px;
  content: "";
  background: var(--line);
}

.section-rule::before {
  width: 70px;
}

.section-rule::after {
  flex: 1;
}

/* Common sections */
.section {
  position: relative;
  padding-top: 150px;
  padding-bottom: 150px;
}

.section-heading {
  display: grid;
  grid-template-columns: 80px minmax(0, 1fr) minmax(0, 260px);
  gap: 24px;
  align-items: start;
  margin-bottom: 84px;
}

.section-number {
  margin: 9px 0 0;
  color: var(--gold);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 15px;
  font-style: italic;
}

.section-kicker {
  margin: 0 0 18px;
  color: var(--blue);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.2em;
}

.section-heading h2 {
  margin: 0;
  font-family: var(--serif);
  font-size: clamp(38px, 4vw, 58px);
  font-weight: 600;
  line-height: 1.28;
  letter-spacing: -0.035em;
}

.heading-note {
  align-self: end;
  margin: 0 0 8px;
  color: var(--muted);
  font-size: 11px;
  letter-spacing: 0.08em;
  text-align: right;
}

/* About */
.about-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(390px, 0.85fr);
  gap: clamp(56px, 9vw, 132px);
  padding-left: 104px;
}

.about-statement {
  color: var(--ink-soft);
  font-size: 17px;
  line-height: 2.05;
}

.about-statement p {
  margin: 0 0 28px;
}

.about-statement .dropcap::first-letter {
  float: left;
  margin: 10px 11px 0 0;
  color: var(--blue);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 68px;
  line-height: 0.72;
}

.about-statement blockquote {
  margin: 48px 0 0;
  padding: 20px 0 20px 28px;
  color: var(--ink);
  border-left: 2px solid var(--gold);
}

.about-statement blockquote p {
  margin: 0;
  font-family: var(--serif);
  font-size: 20px;
}

.education-card {
  padding: 38px 40px 42px;
  background: var(--paper-soft);
  border-top: 3px solid var(--blue);
  box-shadow: var(--shadow);
}

.education-topline {
  display: flex;
  justify-content: space-between;
  color: var(--muted);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 10px;
  letter-spacing: 0.12em;
}

.education-card h3 {
  margin: 26px 0 4px;
  font-family: var(--serif);
  font-size: 32px;
  font-weight: 700;
  letter-spacing: 0.04em;
}

.education-degree {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
}

.education-data {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 22px;
  margin: 31px 0;
  padding: 27px 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.education-data div {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.education-data span,
.course-label {
  color: var(--muted);
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.15em;
}

.education-data strong {
  font-family: Georgia, "Times New Roman", serif;
  font-size: 24px;
  font-weight: 500;
}

.course-label {
  margin: 0 0 14px;
}

.course-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding: 0;
  margin: 0;
  list-style: none;
}

.course-list li {
  padding: 6px 10px;
  color: var(--ink-soft);
  background: color-mix(in srgb, var(--blue) 7%, transparent);
  border: 1px solid var(--line);
  font-size: 11px;
}

/* Research */
.section-research {
  overflow: hidden;
  color: #eef3f6;
  background: var(--navy);
}

.section-research::before {
  position: absolute;
  top: -180px;
  right: -160px;
  width: 660px;
  height: 660px;
  content: "";
  pointer-events: none;
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 50%;
  box-shadow: 0 0 0 90px rgba(255, 255, 255, 0.018), 0 0 0 180px rgba(255, 255, 255, 0.012);
}

.section-heading-light {
  position: relative;
  z-index: 1;
}

.section-heading-light .section-kicker {
  color: #88b5d7;
}

.section-heading-light .section-number {
  color: var(--gold-soft);
}

.section-heading-light .heading-note {
  color: rgba(255, 255, 255, 0.48);
}

.featured-research {
  position: relative;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1px;
  background: rgba(255, 255, 255, 0.14);
  border: 1px solid rgba(255, 255, 255, 0.14);
}

.featured-card {
  display: flex;
  flex-direction: column;
  min-height: 600px;
  padding: 42px;
  background: #102a48;
}

.featured-card-alt {
  background: #173653;
}

.featured-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.research-code,
.card-index {
  color: rgba(255, 255, 255, 0.46);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 11px;
  font-style: italic;
  letter-spacing: 0.1em;
}

.status-pill {
  padding: 7px 11px;
  color: #ecd09c;
  border: 1px solid rgba(223, 189, 126, 0.36);
  border-radius: 999px;
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.08em;
}

.featured-body {
  display: flex;
  flex: 1;
  flex-direction: column;
  justify-content: space-between;
  gap: 64px;
  padding: 62px 0 48px;
}

.research-domain,
.project-tag {
  margin: 0 0 16px;
  color: #85b8df;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.14em;
}

.featured-card h3 {
  max-width: 520px;
  margin: 0;
  font-family: Georgia, "Times New Roman", var(--serif);
  font-size: clamp(27px, 2.5vw, 38px);
  font-weight: 500;
  line-height: 1.25;
  letter-spacing: -0.025em;
}

.research-role {
  margin: 18px 0 0;
  color: rgba(255, 255, 255, 0.56);
  font-size: 11px;
  letter-spacing: 0.07em;
}

.featured-summary {
  max-width: 590px;
  margin: 0;
  color: rgba(255, 255, 255, 0.72);
  font-size: 14px;
  line-height: 1.95;
}

.method-list {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  padding: 0;
  margin: 0;
  list-style: none;
}

.method-list li {
  padding: 7px 10px;
  color: rgba(255, 255, 255, 0.58);
  border: 1px solid rgba(255, 255, 255, 0.15);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 10px;
  letter-spacing: 0.03em;
}

.benchmark-data {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
  margin: 0;
  border-top: 1px solid rgba(255, 255, 255, 0.14);
}

.benchmark-data div {
  padding: 23px 16px 0;
  border-left: 1px solid rgba(255, 255, 255, 0.14);
}

.benchmark-data div:first-child {
  padding-left: 0;
  border-left: 0;
}

.benchmark-data dt {
  font-family: Georgia, "Times New Roman", serif;
  font-size: 25px;
  line-height: 1;
}

.benchmark-data dd {
  margin: 9px 0 0;
  color: rgba(255, 255, 255, 0.5);
  font-size: 9px;
  letter-spacing: 0.06em;
}

.research-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1px;
  margin-top: 1px;
  background: rgba(255, 255, 255, 0.14);
  border-right: 1px solid rgba(255, 255, 255, 0.14);
  border-bottom: 1px solid rgba(255, 255, 255, 0.14);
  border-left: 1px solid rgba(255, 255, 255, 0.14);
}

.research-card {
  padding: 42px;
  background: #0c243f;
}

.research-card .research-domain {
  margin-top: 42px;
}

.research-card h3 {
  margin: 0 0 24px;
  font-family: Georgia, "Times New Roman", var(--serif);
  font-size: 26px;
  font-weight: 500;
}

.research-card > p:not(.research-domain) {
  max-width: 500px;
  margin: 0;
  color: rgba(255, 255, 255, 0.66);
  font-size: 13px;
  line-height: 1.95;
}

.research-card footer {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  margin-top: 48px;
  padding-top: 20px;
  color: rgba(255, 255, 255, 0.44);
  border-top: 1px solid rgba(255, 255, 255, 0.13);
  font-size: 9px;
  letter-spacing: 0.05em;
}

.research-disclaimer {
  margin: 23px 0 0;
  color: rgba(255, 255, 255, 0.38);
  font-size: 10px;
  letter-spacing: 0.04em;
}

/* Projects */
.project-list {
  padding-left: 104px;
  border-top: 1px solid var(--line-strong);
}

.project-row {
  display: grid;
  grid-template-columns: 100px minmax(0, 1fr) 160px;
  gap: 34px;
  align-items: start;
  padding: 48px 0;
  border-bottom: 1px solid var(--line);
  transition: padding 0.3s ease, background-color 0.3s ease;
}

.project-row:hover {
  padding-right: 22px;
  padding-left: 22px;
  background: color-mix(in srgb, var(--blue) 5%, transparent);
}

.project-year {
  color: var(--gold);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 14px;
  font-style: italic;
}

.project-main .project-tag {
  color: var(--blue);
}

.project-main h3 {
  margin: 0 0 14px;
  font-family: var(--serif);
  font-size: 26px;
  font-weight: 600;
}

.project-main > p:not(.project-tag) {
  max-width: 700px;
  margin: 0;
  color: var(--ink-soft);
  font-size: 14px;
  line-height: 1.9;
}

.project-links {
  display: flex;
  flex-wrap: wrap;
  gap: 22px;
  margin-top: 22px;
}

.project-links a {
  color: var(--blue);
  font-size: 12px;
  font-weight: 700;
  border-bottom: 1px solid color-mix(in srgb, var(--blue) 50%, transparent);
}

.project-links a:hover {
  color: var(--gold);
  border-color: var(--gold);
}

.project-result {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 7px;
  text-align: right;
}

.project-result strong {
  color: var(--ink);
  font-family: var(--serif);
  font-size: 23px;
}

.project-result span {
  color: var(--muted);
  font-size: 9px;
  line-height: 1.5;
  letter-spacing: 0.07em;
}

/* Experience */
.section-experience {
  background: var(--paper-deep);
}

.experience-shell {
  display: grid;
  grid-template-columns: minmax(370px, 0.82fr) minmax(0, 1.18fr);
  gap: clamp(60px, 10vw, 144px);
}

.experience-shell .section-heading {
  position: sticky;
  top: 120px;
  display: grid;
  grid-template-columns: 62px 1fr;
  align-self: start;
  margin: 0;
}

.timeline {
  padding: 0;
  margin: 0;
  list-style: none;
  border-top: 1px solid var(--line-strong);
}

.timeline li {
  position: relative;
  display: grid;
  grid-template-columns: 90px 1fr;
  gap: 30px;
  padding: 36px 0 39px;
  border-bottom: 1px solid var(--line);
}

.timeline li::before {
  position: absolute;
  top: -3px;
  left: 0;
  width: 7px;
  height: 7px;
  content: "";
  background: var(--blue);
  border-radius: 50%;
}

.timeline time {
  color: var(--gold);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 12px;
  font-style: italic;
}

.timeline h3 {
  margin: 0 0 10px;
  font-family: var(--serif);
  font-size: 20px;
  font-weight: 600;
}

.timeline p {
  margin: 0;
  color: var(--ink-soft);
  font-size: 13px;
  line-height: 1.85;
}

/* Honors */
.honors-layout {
  display: grid;
  grid-template-columns: 0.75fr 0.75fr 1.5fr;
  gap: 18px;
  padding-left: 104px;
}

.honor-feature {
  position: relative;
  display: flex;
  flex-direction: column;
  min-height: 380px;
  padding: 30px;
  overflow: hidden;
  color: #f7f3e9;
  background: var(--navy);
}

.honor-feature::after {
  position: absolute;
  right: -66px;
  bottom: -66px;
  width: 190px;
  height: 190px;
  content: "";
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 50%;
  box-shadow: 0 0 0 36px rgba(255, 255, 255, 0.025), 0 0 0 72px rgba(255, 255, 255, 0.02);
}

.honor-feature-accent {
  background: var(--purple);
}

.honor-year,
.honor-no {
  position: relative;
  z-index: 1;
  color: rgba(255, 255, 255, 0.55);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 11px;
  letter-spacing: 0.1em;
}

.honor-no {
  position: absolute;
  top: 30px;
  right: 30px;
}

.honor-feature h3 {
  position: relative;
  z-index: 1;
  max-width: 230px;
  margin: auto 0 18px;
  font-family: var(--serif);
  font-size: 28px;
  font-weight: 600;
  line-height: 1.35;
}

.honor-feature p {
  position: relative;
  z-index: 1;
  margin: 0;
  color: rgba(255, 255, 255, 0.58);
  font-size: 11px;
  line-height: 1.75;
}

.honors-list {
  padding: 0;
  margin: 0 0 0 18px;
  list-style: none;
  border-top: 1px solid var(--line-strong);
}

.honors-list li {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 24px;
  min-height: 63px;
  padding: 16px 0;
  border-bottom: 1px solid var(--line);
  font-family: var(--serif);
  font-size: 15px;
}

.honors-list time {
  flex: 0 0 auto;
  color: var(--muted);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 10px;
  font-style: italic;
}

/* Contact */
.section-contact {
  padding-top: 130px;
  padding-bottom: 130px;
  color: #f3f5f6;
  background: #102a46;
}

.contact-shell {
  display: grid;
  grid-template-columns: 80px minmax(0, 1fr) minmax(370px, 0.72fr);
  gap: 24px;
  align-items: end;
}

.contact-index {
  align-self: start;
  margin: 9px 0 0;
  color: #d3b177;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 10px;
  font-style: italic;
  letter-spacing: 0.08em;
  writing-mode: vertical-rl;
}

.contact-copy h2 {
  margin: 0;
  font-family: var(--serif);
  font-size: clamp(40px, 4.2vw, 62px);
  font-weight: 600;
  line-height: 1.3;
  letter-spacing: -0.035em;
}

.contact-copy h2 em {
  color: #8fbadb;
  font-style: normal;
}

.contact-copy p {
  max-width: 650px;
  margin: 28px 0 0;
  color: rgba(255, 255, 255, 0.57);
  font-size: 13px;
  line-height: 1.85;
}

.email-card {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  min-height: 200px;
  padding: 30px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  transition: background-color 0.25s ease, border-color 0.25s ease, transform 0.25s ease;
}

.email-card:hover {
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(255, 255, 255, 0.42);
  transform: translateY(-4px);
}

.email-card > span {
  position: absolute;
  top: 26px;
  left: 30px;
  color: rgba(255, 255, 255, 0.42);
  font-size: 8px;
  font-weight: 700;
  letter-spacing: 0.18em;
}

.email-card strong {
  padding-right: 34px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(15px, 1.5vw, 19px);
  font-weight: 500;
  line-height: 1.5;
}

.email-card i {
  position: absolute;
  right: 30px;
  bottom: 29px;
  color: #d3b177;
  font-size: 20px;
  font-style: normal;
}

/* Footer */
.site-footer {
  color: rgba(255, 255, 255, 0.55);
  background: #09192b;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-inner {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  min-height: 118px;
  font-size: 9px;
  letter-spacing: 0.08em;
}

.footer-inner > div {
  display: flex;
  flex-direction: column;
  line-height: 1.6;
}

.footer-inner strong {
  color: rgba(255, 255, 255, 0.88);
  font-family: var(--serif);
  font-size: 13px;
  letter-spacing: 0.12em;
}

.footer-inner p {
  margin: 0;
  text-align: center;
}

.footer-inner > a {
  justify-self: end;
  color: rgba(255, 255, 255, 0.72);
}

.footer-inner > a:hover {
  color: var(--gold-soft);
}

/* Reveal animation */
.js [data-reveal] {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.75s cubic-bezier(0.2, 0.75, 0.25, 1), transform 0.75s cubic-bezier(0.2, 0.75, 0.25, 1);
}

.js [data-reveal-delay="1"] {
  transition-delay: 0.12s;
}

.js [data-reveal].is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* Tablet */
@media (max-width: 1080px) {
  :root {
    --header-h: 74px;
  }

  .shell {
    width: min(calc(100% - 48px), var(--max));
  }

  .header-inner {
    grid-template-columns: 1fr auto auto;
    gap: 16px;
  }

  .nav-toggle {
    position: relative;
    display: grid;
    grid-template-rows: repeat(2, 1px);
    gap: 6px;
    align-content: center;
    justify-self: end;
    width: 40px;
    height: 40px;
    padding: 0 10px;
    cursor: pointer;
    background: transparent;
    border: 1px solid var(--line);
    border-radius: 50%;
  }

  .nav-toggle span:not(.sr-only) {
    display: block;
    width: 18px;
    height: 1px;
    background: var(--ink);
    transition: transform 0.25s ease;
  }

  .site-header.is-open .nav-toggle span:first-child {
    transform: translateY(3.5px) rotate(45deg);
  }

  .site-header.is-open .nav-toggle span:nth-child(2) {
    transform: translateY(-3.5px) rotate(-45deg);
  }

  .site-nav {
    position: fixed;
    top: 70px;
    right: 0;
    left: 0;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0;
    padding: 18px 24px 24px;
    background: color-mix(in srgb, var(--paper) 97%, transparent);
    border-bottom: 1px solid var(--line);
    box-shadow: 0 24px 42px rgba(11, 29, 48, 0.08);
    opacity: 0;
    pointer-events: none;
    transform: translateY(-12px);
    transition: opacity 0.25s ease, transform 0.25s ease;
  }

  .site-header.is-open .site-nav {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0);
  }

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

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

  .hero {
    grid-template-columns: 1fr;
    min-height: auto;
    padding-top: 160px;
    padding-bottom: 100px;
  }

  .hero-copy {
    max-width: 780px;
  }

  .hero-visual {
    justify-self: center;
    width: min(100%, 680px);
    margin-top: 26px;
  }

  .about-layout,
  .project-list,
  .honors-layout {
    padding-left: 0;
  }

  .experience-shell {
    grid-template-columns: 1fr;
  }

  .experience-shell .section-heading {
    position: static;
  }

  .honors-layout {
    grid-template-columns: 1fr 1fr;
  }

  .honors-list {
    grid-column: 1 / -1;
    margin: 24px 0 0;
  }

  .contact-shell {
    grid-template-columns: 54px 1fr;
  }

  .email-card {
    grid-column: 2;
    min-height: 155px;
    margin-top: 24px;
  }
}

/* Mobile */
@media (max-width: 720px) {
  .shell {
    width: min(calc(100% - 36px), var(--max));
  }

  .brand-copy small {
    display: none;
  }

  .brand-mark {
    width: 36px;
  }

  .theme-toggle,
  .nav-toggle {
    width: 38px;
    height: 38px;
  }

  .site-nav {
    grid-template-columns: 1fr 1fr;
  }

  .hero {
    gap: 50px;
    padding-top: 132px;
    padding-bottom: 74px;
  }

  .eyebrow {
    flex-wrap: wrap;
    gap: 9px;
    margin-bottom: 25px;
    font-size: 9px;
  }

  .eyebrow i {
    width: 16px;
  }

  .hero h1 {
    font-size: clamp(42px, 13vw, 60px);
    line-height: 1.2;
  }

  .hero-lead {
    margin-top: 25px;
    font-size: 15px;
    line-height: 1.9;
  }

  .hero-actions {
    align-items: stretch;
    flex-direction: column;
    margin-top: 29px;
  }

  .button {
    justify-content: space-between;
  }

  .hero-metrics {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    margin-top: 40px;
  }

  .hero-metrics div {
    min-width: 0;
    padding: 0 12px;
  }

  .hero-metrics dt {
    font-size: 17px;
    white-space: nowrap;
  }

  .hero-metrics dd {
    font-size: 8px;
  }

  .hero-visual {
    width: calc(100% + 4px);
  }

  .hero-visual {
    aspect-ratio: 3 / 4;
  }

  .portrait-index {
    top: 25px;
    left: 25px;
    font-size: 7px;
  }

  .portrait-monogram {
    top: 24px;
    right: 25px;
  }

  .portrait-caption {
    right: 25px;
    bottom: 25px;
    left: 25px;
  }

  .section {
    padding-top: 96px;
    padding-bottom: 96px;
  }

  .section-heading,
  .experience-shell .section-heading {
    grid-template-columns: 38px 1fr;
    gap: 12px;
    margin-bottom: 54px;
  }

  .section-heading h2 {
    font-size: clamp(33px, 10vw, 44px);
  }

  .section-number {
    font-size: 12px;
  }

  .section-kicker {
    margin-bottom: 12px;
    font-size: 8px;
  }

  .heading-note {
    display: none;
  }

  .about-layout {
    grid-template-columns: 1fr;
    gap: 46px;
  }

  .about-statement {
    font-size: 15px;
  }

  .education-card {
    padding: 30px 25px 32px;
  }

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

  .featured-card {
    min-height: 570px;
    padding: 30px 24px;
  }

  .featured-body {
    gap: 44px;
    padding: 48px 0 36px;
  }

  .featured-card h3 {
    font-size: 28px;
  }

  .featured-summary {
    font-size: 13px;
  }

  .benchmark-data div {
    padding-right: 8px;
    padding-left: 8px;
  }

  .benchmark-data dt {
    font-size: 20px;
  }

  .research-card {
    padding: 30px 24px;
  }

  .research-card footer {
    align-items: flex-start;
    flex-direction: column;
  }

  .project-row {
    grid-template-columns: 65px 1fr;
    gap: 16px;
    padding: 34px 0;
  }

  .project-row:hover {
    padding-right: 10px;
    padding-left: 10px;
  }

  .project-year {
    font-size: 11px;
  }

  .project-main h3 {
    font-size: 22px;
  }

  .project-result {
    grid-column: 2;
    align-items: flex-start;
    margin-top: -4px;
    text-align: left;
  }

  .timeline li {
    grid-template-columns: 72px 1fr;
    gap: 15px;
  }

  .honors-layout {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .honor-feature {
    min-height: 320px;
  }

  .honors-list {
    grid-column: auto;
    margin-top: 24px;
  }

  .honors-list li {
    font-size: 13px;
  }

  .section-contact {
    padding-top: 90px;
    padding-bottom: 90px;
  }

  .contact-shell {
    grid-template-columns: 1fr;
  }

  .contact-index {
    writing-mode: horizontal-tb;
  }

  .contact-copy h2 {
    font-size: clamp(36px, 10vw, 48px);
  }

  .email-card {
    grid-column: auto;
    min-height: 150px;
    padding: 24px;
  }

  .email-card > span {
    top: 22px;
    left: 24px;
  }

  .email-card i {
    right: 24px;
    bottom: 24px;
  }

  .footer-inner {
    grid-template-columns: 1fr auto;
    gap: 24px;
    padding: 30px 0;
  }

  .footer-inner p {
    grid-column: 1 / -1;
    grid-row: 2;
    text-align: left;
  }
}

@media (max-width: 420px) {
  .brand-copy strong {
    font-size: 14px;
  }

  .hero-metrics dt {
    font-size: 15px;
  }

  .hero-metrics div {
    padding: 0 8px;
  }

  .featured-meta {
    align-items: flex-start;
    flex-direction: column;
  }

  .education-data {
    gap: 12px;
  }
}

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

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

  .js [data-reveal] {
    opacity: 1;
    transform: none;
  }
}

@media print {
  :root {
    --paper: #fff;
    --paper-soft: #fff;
    --paper-deep: #f4f4f4;
    --ink: #111;
    --ink-soft: #333;
  }

  .site-header,
  .hero-visual,
  .hero-actions,
  .section-rule,
  .theme-toggle,
  .site-footer {
    display: none !important;
  }

  .hero {
    min-height: auto;
    padding-top: 40px;
  }

  .section {
    padding: 60px 0;
  }

  .section-research,
  .section-contact {
    color: #111;
    background: #fff;
  }

  .featured-card,
  .research-card {
    color: #111;
    background: #f5f5f5;
    break-inside: avoid;
  }
}
