:root {
  --ink: #0a1730;
  --ink-2: #14233d;
  --paper: #ffffff;
  --field: #f3f6fb;
  --field-2: #e7eef8;
  --text: #17243a;
  --muted: #5c6879;
  --line: #d6deea;
  --blue: #1268d8;
  --sky: #5cc8ff;
  --gold: #f0bd52;
  --max: 74rem;
  --serif: Georgia, "Times New Roman", serif;
  --sans: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 5rem;
}

body {
  margin: 0;
  color: var(--text);
  background: var(--paper);
  font-family: var(--sans);
  font-size: 1rem;
  line-height: 1.65;
  text-rendering: optimizeLegibility;
}

a {
  color: inherit;
  text-underline-offset: 0.2em;
}

a:focus-visible {
  outline: 3px solid var(--gold);
  outline-offset: 4px;
  border-radius: 0.15rem;
}

.skip-link {
  position: fixed;
  z-index: 100;
  top: 0.75rem;
  left: 0.75rem;
  transform: translateY(-160%);
  padding: 0.65rem 0.9rem;
  color: var(--paper);
  background: var(--ink);
  font-weight: 750;
}

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

.site-header {
  position: sticky;
  z-index: 50;
  top: 0;
  border-bottom: 1px solid rgba(214, 222, 234, 0.9);
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(14px);
}

.nav-shell {
  width: min(calc(100% - 2.5rem), var(--max));
  min-height: 4.4rem;
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 1.6rem;
}

.wordmark {
  flex: 0 0 auto;
  color: var(--ink);
  font-family: var(--serif);
  font-size: 1.12rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-decoration: none;
}

nav {
  margin-right: auto;
  display: flex;
  align-items: center;
  gap: 1.35rem;
}

nav a,
.nav-cv {
  color: #35435a;
  font-size: 0.91rem;
  font-weight: 700;
  text-decoration: none;
}

nav a:hover,
.nav-cv:hover {
  color: var(--blue);
}

.nav-cv {
  padding: 0.45rem 0.7rem;
  border: 1px solid var(--line);
}

.hero {
  position: relative;
  overflow: hidden;
  color: var(--paper);
  background: var(--ink);
}

.hero-grid {
  position: absolute;
  inset: 0;
  opacity: 0.26;
  background-image:
    linear-gradient(rgba(92, 200, 255, 0.1) 1px, transparent 1px),
    linear-gradient(90deg, rgba(92, 200, 255, 0.1) 1px, transparent 1px);
  background-size: 36px 36px;
  mask-image: linear-gradient(to right, black, transparent 78%);
}

.hero::after {
  content: "";
  position: absolute;
  top: -9rem;
  right: -5rem;
  width: 32rem;
  height: 32rem;
  border: 1px solid rgba(92, 200, 255, 0.28);
  border-radius: 50%;
  box-shadow: 0 0 0 5rem rgba(92, 200, 255, 0.035), 0 0 0 10rem rgba(92, 200, 255, 0.025);
  pointer-events: none;
}

.hero-inner {
  position: relative;
  z-index: 1;
  width: min(calc(100% - 2.5rem), var(--max));
  min-height: 40rem;
  margin: 0 auto;
  padding: 5.8rem 0 5.2rem;
  display: grid;
  grid-template-columns: minmax(0, 1.55fr) minmax(19rem, 0.8fr);
  gap: clamp(3rem, 8vw, 7rem);
  align-items: center;
}

.eyebrow,
.kicker,
.panel-label {
  margin: 0 0 0.85rem;
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  line-height: 1.4;
  text-transform: uppercase;
}

.eyebrow {
  color: var(--sky);
}

h1,
h2,
h3,
p {
  text-wrap: pretty;
}

h1 {
  max-width: 12ch;
  margin: 0;
  color: #fff;
  font-family: var(--serif);
  font-size: clamp(3.35rem, 8vw, 6.2rem);
  font-weight: 700;
  letter-spacing: -0.055em;
  line-height: 0.91;
}

.role {
  margin: 1.45rem 0 0;
  color: var(--gold);
  font-family: var(--serif);
  font-size: clamp(1.3rem, 2.4vw, 1.8rem);
  line-height: 1.25;
}

.hero-lede {
  max-width: 43rem;
  margin: 1.35rem 0 0;
  color: #dce7f7;
  font-size: clamp(1.08rem, 1.8vw, 1.28rem);
  line-height: 1.63;
}

.hero-actions,
.contact-actions {
  margin-top: 2rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.button {
  min-height: 2.9rem;
  padding: 0.7rem 1rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid transparent;
  font-size: 0.95rem;
  font-weight: 800;
  line-height: 1;
  text-decoration: none;
  transition: transform 160ms ease, background-color 160ms ease, color 160ms ease;
}

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

.button.primary {
  color: var(--ink);
  background: var(--sky);
}

.button.primary:hover {
  background: #8bd9ff;
}

.button.secondary {
  color: var(--paper);
  border-color: rgba(255, 255, 255, 0.4);
  background: rgba(255, 255, 255, 0.04);
}

.button.secondary:hover {
  border-color: var(--paper);
  background: rgba(255, 255, 255, 0.1);
}

.button.outline {
  color: var(--ink);
  border-color: var(--ink);
  background: transparent;
}

.button.outline:hover {
  color: var(--paper);
  background: var(--ink);
}

.hero-panel {
  position: relative;
  padding: 1.8rem;
  border-top: 4px solid var(--sky);
  background: rgba(255, 255, 255, 0.075);
  box-shadow: 0 1.5rem 4rem rgba(0, 0, 0, 0.18);
  backdrop-filter: blur(8px);
}

.panel-label {
  color: var(--gold);
}

.panel-statement {
  margin: 0;
  color: #f3f7fd;
  font-family: var(--serif);
  font-size: 1.18rem;
  line-height: 1.58;
}

.profile-facts {
  margin: 1.7rem 0 0;
}

.profile-facts div {
  padding: 0.9rem 0;
  border-top: 1px solid rgba(255, 255, 255, 0.15);
}

.profile-facts dt {
  color: var(--sky);
  font-size: 0.73rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.profile-facts dd {
  margin: 0.28rem 0 0;
  color: #dce6f4;
  font-size: 0.92rem;
  line-height: 1.55;
}

.section {
  width: min(calc(100% - 2.5rem), var(--max));
  margin: 0 auto;
  padding: 6.5rem 0;
}

.section-heading {
  display: grid;
  grid-template-columns: 4.3rem 1fr;
  gap: 1.3rem;
  align-items: start;
}

.section-number {
  color: var(--blue);
  font-family: var(--serif);
  font-size: 1.05rem;
  font-weight: 800;
  letter-spacing: 0.04em;
}

.section-number::after {
  content: "";
  width: 3.4rem;
  height: 1px;
  margin-top: 0.65rem;
  display: block;
  background: var(--blue);
}

.kicker {
  color: var(--blue);
}

h2 {
  max-width: 24ch;
  margin: 0;
  color: var(--ink);
  font-family: var(--serif);
  font-size: clamp(2.15rem, 4.5vw, 3.85rem);
  font-weight: 700;
  letter-spacing: -0.035em;
  line-height: 1.05;
}

.section-intro {
  max-width: 51rem;
  margin: 2rem 0 0 5.6rem;
  color: #334158;
  font-family: var(--serif);
  font-size: 1.25rem;
  line-height: 1.62;
}

.section-intro.compact {
  margin: 0;
}

.project-grid {
  margin-top: 3.2rem;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  border-top: 1px solid var(--line);
  border-left: 1px solid var(--line);
}

.project-card {
  min-height: 21rem;
  padding: 2rem;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: var(--paper);
}

.project-card.featured {
  background: var(--field);
}

.project-card.wide {
  min-height: 0;
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: minmax(12rem, 0.45fr) minmax(0, 1.4fr);
  gap: 2rem;
  align-items: start;
  background: var(--ink);
}

.project-card.wide .card-topline {
  display: grid;
  justify-content: start;
  color: var(--sky);
}

.project-card.wide .status {
  color: #afbed2;
  text-align: left;
}

.project-card.wide h3 {
  margin-top: 0;
  color: var(--paper);
}

.project-card.wide p {
  margin-bottom: 0;
  color: #d6e0ee;
}

.card-topline {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  color: var(--blue);
  font-size: 0.74rem;
  font-weight: 800;
  letter-spacing: 0.09em;
  text-transform: uppercase;
}

.status {
  color: var(--muted);
  text-align: right;
}

.project-card h3,
.publication h3,
.teaching-record h3 {
  margin: 1.25rem 0 0;
  color: var(--ink);
  font-family: var(--serif);
  font-size: 1.5rem;
  line-height: 1.28;
}

.project-card p {
  color: #40506a;
}

.project-card .next-step {
  color: var(--ink-2);
  font-weight: 650;
}

.methods-section {
  width: auto;
  max-width: none;
  padding-right: max(1.25rem, calc((100vw - var(--max)) / 2));
  padding-left: max(1.25rem, calc((100vw - var(--max)) / 2));
  color: var(--paper);
  background: var(--ink-2);
}

.section-heading.light .section-number,
.section-heading.light .kicker {
  color: var(--sky);
}

.section-heading.light .section-number::after {
  background: var(--sky);
}

.section-heading.light h2 {
  color: var(--paper);
}

.methods-layout {
  margin: 3rem 0 0 5.6rem;
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(20rem, 1fr);
  gap: clamp(3rem, 7vw, 6rem);
}

.methods-copy p {
  color: #cdd8e8;
}

.methods-copy .methods-lede {
  margin-top: 0;
  color: var(--paper);
  font-family: var(--serif);
  font-size: clamp(1.65rem, 3vw, 2.35rem);
  line-height: 1.32;
}

.method-list {
  margin: 0;
  padding: 0;
  list-style: none;
}

.method-list li {
  padding: 1rem 0;
  border-top: 1px solid rgba(255, 255, 255, 0.16);
  color: #dce5f2;
}

.method-list li:last-child {
  border-bottom: 1px solid rgba(255, 255, 255, 0.16);
}

.method-list span {
  width: 7.6rem;
  display: inline-block;
  color: var(--gold);
  font-weight: 800;
}

.publication-list {
  margin-top: 3rem;
  border-top: 1px solid var(--line);
}

.publication {
  padding: 1.7rem 0;
  display: grid;
  grid-template-columns: minmax(12rem, 0.52fr) minmax(20rem, 1.25fr) minmax(14rem, 0.9fr);
  gap: 2rem;
  border-bottom: 1px solid var(--line);
}

.publication > * {
  margin: 0;
}

.publication .pub-meta {
  color: var(--blue);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.05em;
  line-height: 1.55;
  text-transform: uppercase;
}

.publication h3 {
  margin: 0;
  font-size: 1.22rem;
}

.publication > p:not(.pub-meta) {
  color: var(--muted);
  font-size: 0.9rem;
}

.publication a,
.text-link {
  color: var(--blue);
  font-weight: 800;
}

.publication a {
  grid-column: 2;
  width: fit-content;
  margin-top: -0.85rem;
  font-size: 0.9rem;
}

.text-link {
  margin-top: 2rem;
  display: inline-block;
}

.teaching-section {
  width: auto;
  max-width: none;
  padding-right: max(1.25rem, calc((100vw - var(--max)) / 2));
  padding-left: max(1.25rem, calc((100vw - var(--max)) / 2));
  background: var(--field);
}

.teaching-layout {
  margin: 3rem 0 0 5.6rem;
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(18rem, 0.85fr);
  gap: clamp(3rem, 8vw, 7rem);
}

.teaching-layout > div:first-child > p:last-child {
  color: #3b4960;
}

.teaching-record {
  padding: 1.6rem;
  border-top: 4px solid var(--blue);
  background: var(--paper);
}

.teaching-record h3 {
  margin: 0;
}

.teaching-record ul {
  margin: 1.1rem 0;
  padding: 0;
  list-style: none;
}

.teaching-record li {
  padding: 0.62rem 0;
  border-top: 1px solid var(--line);
  color: #3f4d62;
}

.teaching-record li span {
  width: 4rem;
  display: inline-block;
  color: var(--blue);
  font-weight: 800;
}

.teaching-record p {
  margin-bottom: 0;
  color: var(--muted);
  font-size: 0.9rem;
}

.contact-section {
  width: min(calc(100% - 2.5rem), var(--max));
  margin: 0 auto;
  padding: 5.5rem 0;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 3rem;
  align-items: end;
}

.contact-section h2 {
  max-width: 18ch;
}

.contact-section p:not(.kicker) {
  max-width: 43rem;
  color: var(--muted);
}

.contact-actions {
  margin: 0;
  justify-content: flex-end;
}

footer {
  min-height: 5rem;
  padding: 1.2rem max(1.25rem, calc((100vw - var(--max)) / 2));
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  color: #ccd8e8;
  background: var(--ink);
  font-size: 0.88rem;
}

footer a {
  color: var(--sky);
  font-weight: 800;
}

@media (max-width: 860px) {
  .nav-shell {
    gap: 1rem;
  }

  nav {
    gap: 0.9rem;
    overflow-x: auto;
    scrollbar-width: none;
  }

  nav::-webkit-scrollbar {
    display: none;
  }

  .hero-inner {
    grid-template-columns: 1fr;
    gap: 3rem;
  }

  .hero-panel {
    max-width: 38rem;
  }

  .project-grid,
  .methods-layout,
  .teaching-layout {
    grid-template-columns: 1fr;
  }

  .project-card.wide {
    grid-template-columns: 1fr;
    gap: 0.8rem;
  }

  .publication {
    grid-template-columns: 1fr;
    gap: 0.55rem;
  }

  .publication a {
    grid-column: auto;
    margin-top: 0.2rem;
  }

  .contact-section {
    grid-template-columns: 1fr;
    align-items: start;
  }

  .contact-actions {
    justify-content: flex-start;
  }
}

@media (max-width: 620px) {
  html {
    scroll-padding-top: 4.4rem;
  }

  .nav-shell {
    width: min(calc(100% - 1.5rem), var(--max));
    min-height: 4rem;
  }

  nav a:nth-child(2),
  nav a:nth-child(3),
  nav a:nth-child(4) {
    display: none;
  }

  .nav-cv {
    padding: 0.38rem 0.55rem;
  }

  .hero-inner,
  .section,
  .contact-section {
    width: min(calc(100% - 1.5rem), var(--max));
  }

  .hero-inner {
    min-height: auto;
    padding: 4.2rem 0;
  }

  h1 {
    max-width: none;
    font-size: clamp(3rem, 14vw, 4rem);
    line-height: 0.94;
  }

  .section,
  .methods-section,
  .teaching-section {
    padding-top: 4.5rem;
    padding-bottom: 4.5rem;
  }

  .section-heading {
    grid-template-columns: 2.7rem 1fr;
    gap: 0.75rem;
  }

  .section-number::after {
    width: 2.1rem;
  }

  .section-intro,
  .methods-layout,
  .teaching-layout {
    margin-left: 0;
  }

  .project-grid {
    grid-template-columns: 1fr;
  }

  .project-card {
    min-height: 0;
    padding: 1.5rem;
  }

  .method-list span {
    width: auto;
    margin-bottom: 0.18rem;
    display: block;
  }

  .contact-actions {
    width: 100%;
  }

  .contact-actions .button {
    width: 100%;
  }

  footer {
    align-items: flex-start;
    flex-direction: column;
    gap: 0;
  }
}

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

  *,
  *::before,
  *::after {
    transition-duration: 0.01ms !important;
  }
}
