:root {
  --ink: #0b1224;
  --ink-soft: #15203b;
  --paper: #f8f4ea;
  --paper-bright: #fffdf7;
  --canvas: #dbe3ee;
  --mist: #e9edf5;
  --text: #1a2638;
  --muted: #647087;
  --line: #cfd6e2;
  --cobalt: #3459d4;
  --cobalt-dark: #263f9b;
  --sky: #9fc6ff;
  --amber: #f2aa45;
  --coral: #df6758;
  --header-width: 1180px;
  --font-sans: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --font-serif: Iowan Old Style, "Palatino Linotype", "Book Antiqua", Palatino, Georgia, serif;
}

* {
  box-sizing: border-box;
}

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

body {
  margin: 0;
  color: var(--text);
  background:
    radial-gradient(circle at 8% 8%, rgba(52, 89, 212, 0.2), transparent 28rem),
    radial-gradient(circle at 92% 28%, rgba(242, 170, 69, 0.18), transparent 24rem),
    var(--canvas);
  font-family: var(--font-sans);
  font-size: 1rem;
  line-height: 1.7;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

a {
  color: var(--cobalt);
  text-decoration-thickness: 0.08em;
  text-underline-offset: 0.2em;
}

a:hover {
  color: var(--cobalt-dark);
}

a:focus-visible {
  outline: 3px solid rgba(159, 198, 255, 0.72);
  outline-offset: 4px;
  border-radius: 4px;
}

.skip-link {
  position: fixed;
  top: 0.75rem;
  left: 0.75rem;
  z-index: 100;
  padding: 0.6rem 0.9rem;
  border-radius: 999px;
  color: var(--ink);
  background: var(--amber);
  font-weight: 750;
  transform: translateY(-180%);
}

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(11, 18, 36, 0.91);
  backdrop-filter: blur(18px);
}

.header-inner,
.footer-inner {
  width: min(calc(100% - 3rem), var(--header-width));
  margin: 0 auto;
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 5rem;
  gap: 2.5rem;
}

.site-name {
  display: inline-flex;
  flex: 0 0 auto;
  align-items: center;
  gap: 0.8rem;
  color: var(--paper-bright);
  text-decoration: none;
}

.site-name:hover {
  color: var(--sky);
}

.site-monogram {
  display: grid;
  width: 2.35rem;
  height: 2.35rem;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: 50%;
  color: var(--ink);
  background: var(--amber);
  font-family: var(--font-sans);
  font-size: 0.72rem;
  font-weight: 850;
  letter-spacing: -0.02em;
}

.site-name-label {
  display: inline-flex;
  align-items: baseline;
  gap: 0.42rem;
  font-family: var(--font-serif);
  font-size: 1.05rem;
  font-weight: 700;
  letter-spacing: -0.01em;
}

.site-name-divider,
.title-divider {
  color: var(--amber);
  font-weight: 400;
}

.site-nav {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 0.35rem;
  font-size: 0.76rem;
  font-weight: 720;
  letter-spacing: 0.075em;
  text-transform: uppercase;
  white-space: nowrap;
}

.site-nav a {
  padding: 0.5rem 0.75rem;
  border-radius: 999px;
  color: #b7c1d4;
  text-decoration: none;
  transition: color 150ms ease, background-color 150ms ease;
}

.site-nav a:hover,
.site-nav a[aria-current="location"] {
  color: var(--paper-bright);
  background: rgba(159, 198, 255, 0.13);
}

.page-shell {
  width: min(calc(100% - 2rem), var(--header-width));
  margin: 0 auto 3rem;
  overflow: hidden;
  border-radius: 0 0 34px 34px;
  background: var(--paper);
  box-shadow: 0 28px 80px rgba(11, 18, 36, 0.2);
}

.section {
  position: relative;
  display: grid;
  grid-template-columns: minmax(150px, 0.3fr) minmax(0, 1fr);
  gap: clamp(2rem, 6vw, 6.5rem);
  padding: clamp(4.5rem, 8vw, 7.5rem) clamp(2rem, 8vw, 7.5rem);
  border-top: 1px solid var(--line);
}

.intro {
  isolation: isolate;
  min-height: min(760px, calc(100vh - 5rem));
  grid-template-columns: minmax(0, 1.25fr) minmax(280px, 0.75fr);
  align-items: center;
  gap: clamp(3rem, 7vw, 7rem);
  border-top: 0;
  color: var(--paper-bright);
  background:
    linear-gradient(132deg, rgba(52, 89, 212, 0.19), transparent 38%),
    var(--ink);
}

.intro::before,
.intro::after {
  position: absolute;
  z-index: -1;
  border: 1px solid rgba(159, 198, 255, 0.15);
  border-radius: 50%;
  content: "";
  pointer-events: none;
}

.intro::before {
  top: -19rem;
  right: -15rem;
  width: 46rem;
  height: 46rem;
  box-shadow:
    0 0 0 7rem rgba(52, 89, 212, 0.035),
    0 0 0 14rem rgba(52, 89, 212, 0.025);
}

.intro::after {
  bottom: -8rem;
  left: 36%;
  width: 15rem;
  height: 15rem;
  border-color: rgba(242, 170, 69, 0.16);
}

.hero-copy {
  position: relative;
  z-index: 2;
}

.eyebrow,
.section-number {
  margin: 0;
  color: var(--cobalt);
  font-size: 0.7rem;
  font-weight: 820;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}

.intro .eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  color: var(--sky);
}

.intro .eyebrow::before {
  width: 2.5rem;
  height: 1px;
  background: var(--amber);
  content: "";
}

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

h1,
h2,
h3 {
  text-wrap: balance;
}

h1 {
  max-width: 760px;
  margin: 1.3rem 0 1.6rem;
  font-family: var(--font-serif);
  font-size: clamp(3.8rem, 7.5vw, 7rem);
  font-weight: 580;
  letter-spacing: -0.06em;
  line-height: 0.95;
}

h1 span[lang] {
  white-space: nowrap;
}

.lead {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  margin-bottom: 2.4rem;
  padding: 0.55rem 0.9rem;
  border: 1px solid rgba(159, 198, 255, 0.25);
  border-radius: 999px;
  color: #dfe9f8;
  background: rgba(255, 255, 255, 0.06);
  font-size: 0.88rem;
  font-weight: 680;
}

.lead > span {
  width: 0.52rem;
  height: 0.52rem;
  border-radius: 50%;
  background: var(--amber);
  box-shadow: 0 0 0 5px rgba(242, 170, 69, 0.12);
}

.prose {
  max-width: 760px;
  font-family: var(--font-serif);
  font-size: 1.1rem;
}

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

.intro .prose {
  max-width: 680px;
  color: #bfc9d9;
  font-family: var(--font-sans);
  font-size: 0.98rem;
  line-height: 1.8;
}

.intro .prose a {
  color: var(--sky);
}

.intro .prose a:hover {
  color: var(--paper-bright);
}

.portrait-stage {
  position: relative;
  z-index: 2;
  width: min(100%, 360px);
  margin: 0 auto;
}

.portrait-frame {
  position: relative;
  aspect-ratio: 1;
  padding: 8px;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 32px;
  background: rgba(255, 255, 255, 0.08);
  box-shadow: 0 30px 70px rgba(0, 0, 0, 0.34);
  transform: rotate(2.4deg);
}

.portrait-frame::before {
  position: absolute;
  right: -1.2rem;
  bottom: -1.2rem;
  z-index: -1;
  width: 58%;
  height: 58%;
  border-radius: 24px;
  background: var(--amber);
  content: "";
}

.portrait-frame::after {
  position: absolute;
  top: -2rem;
  left: -2rem;
  z-index: -1;
  width: 7.5rem;
  height: 7.5rem;
  border: 1px solid rgba(159, 198, 255, 0.42);
  border-radius: 50%;
  content: "";
}

.profile-photo {
  display: block;
  width: 100%;
  height: 100%;
  border-radius: 24px;
  object-fit: cover;
  object-position: 68% 52%;
  transform: rotate(-2.4deg);
}

.portrait-stage figcaption {
  position: absolute;
  bottom: -1.2rem;
  left: -1.2rem;
  padding: 0.62rem 1rem;
  border-radius: 999px;
  color: var(--ink);
  background: var(--paper-bright);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
  font-size: 0.7rem;
  font-weight: 820;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.section-heading {
  align-self: start;
}

.section-heading h2 {
  max-width: 12rem;
  margin: 0.75rem 0 0;
  font-family: var(--font-serif);
  font-size: clamp(2rem, 4vw, 3.35rem);
  font-weight: 600;
  letter-spacing: -0.045em;
  line-height: 1.02;
}

#research .prose {
  position: relative;
  max-width: 820px;
  padding-left: clamp(1.5rem, 4vw, 3.5rem);
  font-size: clamp(1.35rem, 2.4vw, 1.75rem);
  line-height: 1.62;
}

#research .prose::before {
  position: absolute;
  top: 0.25rem;
  bottom: 0.25rem;
  left: 0;
  width: 5px;
  border-radius: 999px;
  background: linear-gradient(var(--cobalt), var(--amber));
  content: "";
}

.publications-section {
  background: var(--mist);
}

.publication-list {
  margin: 0;
  padding: 0;
  list-style: none;
  counter-reset: publications 6;
}

.publication-list > li {
  display: grid;
  grid-template-columns: 3.2rem 1fr;
  gap: 1rem;
  margin-bottom: 1rem;
  padding: clamp(1.35rem, 3vw, 2rem);
  border: 1px solid rgba(100, 112, 135, 0.18);
  border-radius: 20px;
  background: rgba(255, 253, 247, 0.82);
  box-shadow: 0 8px 24px rgba(26, 38, 56, 0.055);
  counter-increment: publications -1;
  transition: transform 180ms ease, border-color 180ms ease, box-shadow 180ms ease;
}

.publication-list > li:last-child {
  margin-bottom: 0;
}

.publication-list > li:hover {
  border-color: rgba(52, 89, 212, 0.34);
  box-shadow: 0 16px 34px rgba(26, 38, 56, 0.1);
  transform: translateY(-3px);
}

.publication-list > li::before {
  display: grid;
  width: 2.4rem;
  height: 2.4rem;
  place-items: center;
  border-radius: 50%;
  color: var(--paper-bright);
  background: var(--cobalt);
  font-size: 0.72rem;
  font-weight: 820;
  font-variant-numeric: tabular-nums;
  content: counter(publications, decimal-leading-zero);
}

.publication h3,
.talk-list h3 {
  margin-bottom: 0.45rem;
  font-family: var(--font-serif);
  font-size: clamp(1.08rem, 2vw, 1.28rem);
  font-weight: 650;
  line-height: 1.45;
}

.publication-meta,
.talk-list p {
  margin: 0;
  color: var(--muted);
  font-size: 0.88rem;
  line-height: 1.6;
}

.publication sub {
  font-size: 0.72em;
}

.talk-list {
  position: relative;
  margin: 0;
  padding: 0;
  list-style: none;
}

.talk-list::before {
  position: absolute;
  top: 0.9rem;
  bottom: 0.9rem;
  left: 7.65rem;
  width: 1px;
  background: var(--line);
  content: "";
}

.talk-list li {
  position: relative;
  display: grid;
  grid-template-columns: 6.6rem 1fr;
  gap: 2.5rem;
  padding: 0.5rem 0 2.5rem;
}

.talk-list li:last-child {
  padding-bottom: 0.5rem;
}

.talk-list li::before {
  position: absolute;
  top: 0.9rem;
  left: 7.36rem;
  z-index: 1;
  width: 0.62rem;
  height: 0.62rem;
  border: 3px solid var(--paper);
  border-radius: 50%;
  background: var(--coral);
  box-shadow: 0 0 0 1px var(--coral);
  content: "";
}

.talk-list time {
  align-self: start;
  padding-top: 0.18rem;
  color: var(--cobalt);
  font-size: 0.76rem;
  font-weight: 800;
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.04em;
  text-align: right;
  text-transform: uppercase;
}

.contact-section {
  border-top: 0;
  color: var(--paper-bright);
  background:
    radial-gradient(circle at 85% 30%, rgba(159, 198, 255, 0.17), transparent 20rem),
    var(--cobalt-dark);
}

.contact-section .section-number {
  color: var(--amber);
}

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

.contact-list {
  margin: 0;
}

.contact-list > div {
  display: grid;
  grid-template-columns: minmax(7rem, 0.26fr) 1fr;
  gap: 1.5rem;
  padding: 1.2rem 0;
  border-top: 1px solid rgba(255, 255, 255, 0.19);
}

.contact-list dt {
  color: #bfcdf0;
  font-size: 0.7rem;
  font-weight: 820;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.contact-list dd {
  margin: 0;
  color: var(--paper-bright);
  font-family: var(--font-serif);
  font-size: 1.05rem;
}

.site-footer {
  color: #58657b;
}

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  min-height: 6rem;
  font-size: 0.78rem;
  font-weight: 650;
  letter-spacing: 0.02em;
}

.footer-inner p {
  margin: 0;
}

.footer-inner a {
  color: var(--cobalt-dark);
  text-decoration: none;
}

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

@media (max-width: 980px) {
  .intro {
    grid-template-columns: minmax(0, 1fr) minmax(240px, 0.62fr);
    gap: 3rem;
  }

  .portrait-stage {
    max-width: 300px;
  }

  h1 {
    font-size: clamp(3.4rem, 8vw, 5.6rem);
  }

  .section {
    grid-template-columns: minmax(130px, 0.26fr) minmax(0, 1fr);
    gap: 3rem;
  }
}

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

  .header-inner {
    display: block;
    padding: 0.75rem 0 0.6rem;
  }

  .site-name {
    margin-bottom: 0.55rem;
  }

  .site-nav {
    justify-content: flex-start;
    overflow-x: auto;
    scrollbar-width: thin;
  }

  .page-shell {
    width: min(calc(100% - 1rem), var(--header-width));
    border-radius: 0 0 24px 24px;
  }

  .intro,
  .section {
    grid-template-columns: 1fr;
  }

  .intro {
    min-height: auto;
    padding-top: 4.5rem;
    padding-bottom: 5rem;
  }

  .portrait-stage {
    width: min(78vw, 320px);
    margin-top: 1.25rem;
    margin-right: 1.25rem;
  }

  .section {
    gap: 2.5rem;
  }

  .section-heading h2 {
    max-width: none;
  }

  #research .prose {
    font-size: clamp(1.2rem, 5vw, 1.55rem);
  }
}

@media (max-width: 520px) {
  .header-inner,
  .footer-inner {
    width: min(calc(100% - 2rem), var(--header-width));
  }

  .site-name-label {
    font-size: 0.95rem;
  }

  .site-nav {
    gap: 0.1rem;
  }

  .site-nav a {
    padding-inline: 0.6rem;
  }

  .section {
    padding: 4rem 1.35rem;
  }

  .intro {
    padding-top: 3.8rem;
  }

  h1 {
    font-size: clamp(3.1rem, 16vw, 4.4rem);
  }

  .portrait-stage figcaption {
    left: -0.4rem;
  }

  .publication-list > li {
    grid-template-columns: 1fr;
  }

  .publication-list > li::before {
    width: 2rem;
    height: 2rem;
  }

  .talk-list::before {
    left: 0.26rem;
  }

  .talk-list li {
    grid-template-columns: 1fr;
    gap: 0.7rem;
    padding-left: 1.7rem;
  }

  .talk-list li::before {
    top: 0.78rem;
    left: 0;
  }

  .talk-list time {
    text-align: left;
  }

  .contact-list > div {
    grid-template-columns: 1fr;
    gap: 0.35rem;
  }

  .footer-inner {
    align-items: flex-start;
    flex-direction: column;
    justify-content: center;
    gap: 0.25rem;
  }
}

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

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

@media print {
  body {
    color: #000;
    background: #fff;
  }

  .site-header,
  .site-footer,
  .skip-link {
    display: none;
  }

  .page-shell {
    width: 100%;
    margin: 0;
    border-radius: 0;
    box-shadow: none;
  }

  .section {
    padding: 2rem 0;
    break-inside: avoid;
  }
}
