:root {
  --ink: #162025;
  --muted: #5f6870;
  --paper: #fbfdfe;
  --panel: #ffffff;
  --soft: #f3fafc;
  --soft-warm: #f7fcff;
  --line: #dcecf1;
  --navy: #102033;
  --teal: #1b7772;
  --journal-green: #237a53;
  --copper: #b96d45;
  --copper-dark: #86472c;
  --shadow: 0 18px 45px rgba(22, 32, 37, 0.08);
  --radius: 8px;
  --max: 1120px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background:
    linear-gradient(180deg, #ffffff 0%, var(--paper) 42%, #f6fbfd 100%);
  font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 16px;
  line-height: 1.72;
}

main {
  position: relative;
  isolation: isolate;
  overflow: hidden;
}

main > .page-title,
main > .section {
  position: relative;
  z-index: 2;
}

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

a {
  color: var(--teal);
  text-decoration-thickness: 1px;
  text-underline-offset: 0.22em;
}

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-height: 72px;
  padding: 0 32px;
  background: rgba(251, 253, 254, 0.96);
  border-bottom: 1px solid rgba(214, 232, 238, 0.86);
  backdrop-filter: blur(18px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: var(--ink);
  font-weight: 700;
  text-decoration: none;
  white-space: nowrap;
}

.brand-mark {
  display: block;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  overflow: hidden;
  background: #fff;
  box-shadow: 0 0 0 1px rgba(35, 122, 83, 0.16);
  flex: 0 0 auto;
}

.brand-mark img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 14px;
  min-width: 0;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 8px;
  overflow-x: auto;
  scrollbar-width: none;
}

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

.site-nav a {
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  padding: 0 12px;
  color: var(--muted);
  border-radius: 999px;
  font-size: 0.94rem;
  text-decoration: none;
  white-space: nowrap;
}

.site-nav a:hover,
.site-nav a[aria-current="page"] {
  color: var(--ink);
  background: var(--soft);
}

.language-toggle {
  display: inline-grid;
  grid-template-columns: repeat(2, minmax(96px, 1fr));
  gap: 2px;
  padding: 3px;
  background: #fff6f6;
  border: 1px solid rgba(190, 80, 86, 0.2);
  border-radius: 999px;
}

.language-toggle button {
  min-width: 96px;
  min-height: 32px;
  padding: 0 9px;
  color: #b95d62;
  background: transparent;
  border: 0;
  border-radius: 999px;
  cursor: pointer;
  font: inherit;
  font-size: 0.82rem;
  font-weight: 760;
  white-space: nowrap;
}

.language-toggle button[aria-pressed="true"] {
  color: #9f4148;
  background: #ffffff;
  box-shadow: 0 1px 6px rgba(135, 54, 60, 0.1);
}

.view-mode-toggle {
  position: fixed;
  left: 16px;
  bottom: 16px;
  z-index: 20;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 36px;
  padding: 0 14px;
  color: #fffdf8;
  background: var(--teal);
  border: 1px solid rgba(18, 74, 84, 0.18);
  border-radius: 999px;
  box-shadow: 0 10px 24px rgba(22, 32, 37, 0.16);
  cursor: pointer;
  font: inherit;
  font-size: 0.82rem;
  font-weight: 760;
}

.view-mode-toggle[hidden] {
  display: none;
}

.home-page {
  position: relative;
  isolation: isolate;
  min-height: clamp(720px, 82vh, 840px);
  overflow: hidden;
  background:
    linear-gradient(180deg, #ffffff 0%, #fbfdfe 38%, rgba(242, 250, 253, 0.68) 68%, var(--paper) 100%);
}

.home-page > .hero,
.home-page > .section {
  position: relative;
  z-index: 2;
}

.hero {
  position: relative;
  min-height: inherit;
  display: grid;
  align-items: start;
  overflow: visible;
  color: var(--ink);
  background: transparent;
}

.home-formula-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  opacity: 1;
  overflow: hidden;
  pointer-events: none;
  user-select: none;
}

.home-formula-bg .hero-equation {
  display: none;
}

.page-formula-bg {
  position: fixed;
  inset: 72px 0 0;
}

.page-formula-bg .formula-field {
  transform: none;
}

.formula-field {
  position: absolute;
  inset: 0;
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  grid-auto-rows: minmax(clamp(46px, 6.4vh, 60px), auto);
  align-items: center;
  justify-items: center;
  gap: clamp(10px, 1.5vw, 18px) clamp(16px, 2.5vw, 34px);
  padding: clamp(22px, 3.4vw, 42px) clamp(18px, 4.2vw, 58px);
  box-sizing: border-box;
  transform: translateY(5%);
}

.formula-tile {
  position: relative;
  grid-column: var(--c, span 2);
  grid-row: var(--row, auto);
  max-width: 100%;
  min-width: 0;
  color: rgba(35, 148, 188, 0.06);
  transform: rotate(var(--r, 0deg));
  transform-origin: center;
}

.formula-tile .katex-display {
  margin: 0;
  text-align: left;
}

.formula-tile .katex {
  font-size: clamp(1.68rem, 2.64vw, 2.94rem);
  line-height: 1;
  white-space: nowrap;
}

.formula-tile-wide {
  grid-column: span 6;
}

.formula-tile-long {
  grid-column: 1 / -1;
}

.formula-tile-half {
  grid-column: span 6;
}

.formula-tile-short {
  grid-column: span 3;
}

.formula-tile-wide .katex {
  font-size: clamp(1.5rem, 2.22vw, 2.58rem);
}

.formula-tile-long .katex,
.formula-tile-half .katex {
  font-size: clamp(1.38rem, 2.04vw, 2.4rem);
}

.formula-tile-short .katex {
  font-size: clamp(1.34rem, 1.92vw, 2.24rem);
}

.formula-tile-system .katex {
  font-size: clamp(1rem, 1.55vw, 1.78rem);
  line-height: 1.06;
}

.formula-tile-main {
  grid-column: var(--c, 1 / -1);
  grid-row: var(--row, 3);
  color: rgba(34, 151, 193, 0.09);
}

.formula-tile-main .katex {
  font-size: clamp(1.88rem, 3.28vw, 3.46rem);
  line-height: 1.04;
}

.hero-equation {
  position: absolute;
  color: rgba(82, 178, 207, 0.14);
  transform: rotate(-8deg);
  transform-origin: center;
}

.hero-equation .katex-display {
  margin: 0;
  text-align: left;
}

.hero-equation .katex {
  font-size: clamp(1.1rem, 2.8vw, 2.7rem);
  line-height: 1.08;
  white-space: nowrap;
}

.equation-ns {
  left: clamp(18px, 5vw, 90px);
  top: clamp(430px, 52vh, 540px);
  color: rgba(34, 151, 193, 0.5);
  transform: rotate(-7deg);
}

.equation-ns .katex {
  font-size: clamp(2.15rem, 5.7vw, 5.25rem);
}

.equation-cns {
  left: clamp(520px, 62vw, 900px);
  top: clamp(245px, 32vh, 335px);
  color: rgba(46, 158, 200, 0.31);
  transform: rotate(4deg);
}

.equation-cns .katex {
  font-size: clamp(0.98rem, 2.1vw, 2rem);
}

.equation-qg-top {
  right: clamp(20px, 5vw, 92px);
  top: clamp(24px, 5vh, 70px);
  color: rgba(42, 145, 187, 0.31);
  transform: rotate(0deg);
}

.equation-qg {
  left: clamp(-180px, -8vw, -70px);
  top: clamp(610px, 70vh, 780px);
  color: rgba(68, 174, 210, 0.29);
  transform: rotate(7deg);
}

.equation-qg .katex {
  font-size: clamp(0.98rem, 2.3vw, 2.15rem);
}

.equation-hall {
  right: clamp(-360px, -19vw, -120px);
  top: clamp(420px, 49vh, 555px);
  color: rgba(38, 139, 180, 0.28);
  transform: rotate(-11deg);
}

.equation-hall .katex {
  font-size: clamp(0.86rem, 1.75vw, 1.68rem);
}

.equation-boussinesq {
  right: clamp(18px, 6vw, 100px);
  bottom: clamp(155px, 20vh, 230px);
  color: rgba(50, 160, 202, 0.31);
  transform: rotate(3deg);
}

.equation-boussinesq .katex {
  font-size: clamp(1.05rem, 2.55vw, 2.42rem);
}

.equation-euler {
  left: clamp(-70px, -2vw, -18px);
  top: clamp(185px, 24vh, 260px);
  color: rgba(62, 169, 205, 0.26);
  transform: rotate(-4deg);
}

.equation-euler .katex {
  font-size: clamp(1rem, 2.25vw, 2.15rem);
}

.equation-stationary {
  right: clamp(-185px, -8vw, -45px);
  top: clamp(655px, 76vh, 850px);
  color: rgba(35, 143, 184, 0.27);
  transform: rotate(8deg);
}

.equation-stationary .katex {
  font-size: clamp(1rem, 2.3vw, 2.2rem);
}

.equation-hall-small {
  left: clamp(12px, 6vw, 105px);
  top: clamp(52px, 9vh, 115px);
  color: rgba(40, 150, 190, 0.21);
  transform: rotate(0deg);
}

.equation-hall-small .katex {
  font-size: clamp(0.82rem, 1.55vw, 1.52rem);
}

.equation-cns-small {
  left: clamp(240px, 35vw, 540px);
  top: clamp(78px, 13vh, 145px);
  color: rgba(78, 181, 211, 0.24);
  transform: rotate(-12deg);
}

.equation-cns-small .katex {
  font-size: clamp(0.86rem, 1.8vw, 1.72rem);
}

.equation-sqg {
  right: clamp(12px, 5vw, 88px);
  top: clamp(545px, 63vh, 705px);
  color: rgba(72, 176, 210, 0.3);
  transform: rotate(5deg);
}

.equation-sqg .katex {
  font-size: clamp(0.94rem, 2vw, 1.95rem);
}

.equation-vorticity {
  left: clamp(26px, 7vw, 120px);
  top: clamp(330px, 40vh, 440px);
  color: rgba(31, 133, 177, 0.21);
  transform: rotate(-6deg);
}

.equation-vorticity .katex {
  font-size: clamp(0.9rem, 1.8vw, 1.72rem);
}

.equation-coriolis {
  right: clamp(190px, 27vw, 430px);
  top: clamp(260px, 34vh, 430px);
  color: rgba(45, 155, 198, 0.23);
  transform: rotate(0deg);
}

.equation-coriolis .katex {
  font-size: clamp(0.9rem, 1.85vw, 1.82rem);
}

.equation-energy {
  left: clamp(440px, 52vw, 780px);
  top: clamp(54px, 9vh, 112px);
  color: rgba(57, 160, 198, 0.23);
  transform: rotate(9deg);
}

.equation-energy .katex {
  font-size: clamp(0.9rem, 1.75vw, 1.72rem);
}

.equation-fill {
  color: rgba(52, 157, 196, 0.2);
}

.equation-fill .katex {
  font-size: clamp(0.72rem, 1.25vw, 1.26rem);
}

.equation-pressure {
  left: clamp(250px, 28vw, 460px);
  top: clamp(10px, 3vh, 36px);
  transform: rotate(0deg);
}

.equation-stokes {
  left: clamp(250px, 31vw, 520px);
  top: clamp(365px, 43vh, 500px);
  transform: rotate(-9deg);
}

.equation-scaling {
  left: clamp(62px, 12vw, 190px);
  top: clamp(258px, 31vh, 355px);
  transform: rotate(10deg);
}

.equation-besov {
  right: clamp(34px, 10vw, 165px);
  top: clamp(200px, 25vh, 285px);
  transform: rotate(0deg);
}

.equation-transport {
  left: clamp(-52px, 1vw, 16px);
  top: clamp(455px, 52vh, 615px);
  transform: rotate(8deg);
}

.equation-heat {
  left: clamp(-22px, 2vw, 38px);
  top: clamp(18px, 4vh, 52px);
  transform: rotate(-14deg);
}

.equation-vorticity-small {
  right: clamp(220px, 32vw, 510px);
  top: clamp(255px, 35vh, 460px);
  transform: rotate(12deg);
}

.equation-mhd-small {
  right: clamp(-310px, -12vw, -92px);
  top: clamp(650px, 75vh, 850px);
  transform: rotate(-6deg);
}

.equation-mach {
  left: clamp(400px, 52vw, 760px);
  top: clamp(165px, 24vh, 315px);
  transform: rotate(0deg);
}

.equation-fourier {
  left: clamp(12px, 5vw, 86px);
  top: clamp(570px, 65vh, 725px);
  transform: rotate(-11deg);
}

.equation-decay {
  left: clamp(185px, 30vw, 500px);
  top: clamp(700px, 80vh, 920px);
  transform: rotate(7deg);
}

.equation-helmholtz {
  right: clamp(220px, 30vw, 460px);
  top: clamp(290px, 36vh, 395px);
  transform: rotate(0deg);
}

.equation-lambda {
  right: clamp(12px, 3vw, 65px);
  top: clamp(345px, 41vh, 470px);
  transform: rotate(-16deg);
}

.equation-divfree {
  left: clamp(460px, 58vw, 820px);
  top: clamp(215px, 31vh, 390px);
  transform: rotate(11deg);
}

.equation-dense {
  color: rgba(36, 146, 186, 0.18);
}

.equation-dense .katex {
  font-size: clamp(0.54rem, 0.9vw, 0.94rem);
}

.hero-equation.equation-dense-01 {
  left: 4%;
  top: 5%;
  transform: rotate(0deg);
}

.hero-equation.equation-dense-02 {
  left: 18%;
  top: 13%;
  transform: rotate(-9deg);
}

.hero-equation.equation-dense-03 {
  left: 42%;
  top: 6%;
  transform: rotate(8deg);
}

.hero-equation.equation-dense-04 {
  right: 4%;
  top: 14%;
  transform: rotate(-4deg);
}

.hero-equation.equation-dense-05 {
  left: 2%;
  top: 22%;
  transform: rotate(12deg);
}

.hero-equation.equation-dense-06 {
  left: 32%;
  top: 23%;
  transform: rotate(0deg);
}

.hero-equation.equation-dense-07 {
  right: 10%;
  top: 26%;
  transform: rotate(10deg);
}

.hero-equation.equation-dense-08 {
  left: 13%;
  top: 33%;
  transform: rotate(-13deg);
}

.hero-equation.equation-dense-09 {
  left: 48%;
  top: 34%;
  transform: rotate(0deg);
}

.hero-equation.equation-dense-10 {
  right: 3%;
  top: 40%;
  transform: rotate(-11deg);
}

.hero-equation.equation-dense-11 {
  left: 70%;
  top: 25%;
  transform: rotate(6deg);
}

.hero-equation.equation-dense-12 {
  left: 50%;
  top: 28%;
  transform: rotate(-5deg);
}

.hero-equation.equation-dense-13 {
  left: 62%;
  top: 36%;
  transform: rotate(0deg);
}

.hero-equation.equation-dense-14 {
  right: 8%;
  top: 44%;
  transform: rotate(9deg);
}

.hero-equation.equation-dense-15 {
  left: 6%;
  top: 54%;
  transform: rotate(-8deg);
}

.hero-equation.equation-dense-16 {
  left: 40%;
  top: 52%;
  transform: rotate(13deg);
}

.hero-equation.equation-dense-17 {
  right: 12%;
  top: 58%;
  transform: rotate(0deg);
}

.hero-equation.equation-dense-18 {
  left: 2%;
  top: 70%;
  transform: rotate(10deg);
}

.hero-equation.equation-dense-19 {
  left: 24%;
  top: 73%;
  transform: rotate(0deg);
}

.hero-equation.equation-dense-20 {
  left: 52%;
  top: 72%;
  transform: rotate(-12deg);
}

.hero-equation.equation-dense-21 {
  right: 4%;
  top: 76%;
  transform: rotate(7deg);
}

.hero-equation.equation-dense-22 {
  left: 12%;
  top: 84%;
  transform: rotate(-15deg);
}

.hero-equation.equation-dense-23 {
  left: 37%;
  top: 86%;
  transform: rotate(5deg);
}

.hero-equation.equation-dense-24 {
  right: 8%;
  top: 90%;
  transform: rotate(0deg);
}

.hero-copy {
  position: relative;
  z-index: 1;
  width: min(var(--max), calc(100% - 48px));
  margin: 0 auto;
  padding: clamp(82px, 11vh, 124px) 0 0;
}

.hero-portrait {
  position: absolute;
  top: clamp(58px, 8vh, 96px);
  right: clamp(26px, 7vw, 108px);
  z-index: 2;
  width: clamp(150px, 17vw, 228px);
  aspect-ratio: 4 / 5;
  margin: 0;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.88);
  border-radius: 6px;
  box-shadow: 0 18px 44px rgba(22, 32, 37, 0.12);
}

.hero-portrait img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 51% 18%;
  transform: scale(1.9);
  transform-origin: 51% 18%;
}

.hero-copy > * {
  max-width: 690px;
}

.eyebrow {
  margin: 0 0 18px;
  color: #d8ece9;
  font-size: 0.9rem;
  font-weight: 700;
  text-transform: uppercase;
}

.hero .eyebrow {
  color: var(--teal);
}

h1,
h2,
h3 {
  margin: 0;
  line-height: 1.18;
}

h1 {
  font-size: clamp(2.7rem, 7vw, 6.2rem);
  font-weight: 760;
}

h2 {
  font-size: clamp(1.55rem, 3.2vw, 2.35rem);
}

h3 {
  font-size: 1.08rem;
}

.lead {
  margin: 24px 0 0;
  color: var(--muted);
  font-size: clamp(1.05rem, 2.2vw, 1.38rem);
  line-height: 1.56;
}

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

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 18px;
  border: 1px solid transparent;
  border-radius: 999px;
  font-weight: 700;
  text-decoration: none;
}

.button.primary {
  color: #fffdf8;
  background: var(--copper);
}

.button.secondary {
  color: var(--teal);
  border-color: rgba(27, 119, 114, 0.35);
  background: rgba(255, 255, 255, 0.74);
}

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

.section {
  width: min(var(--max), calc(100% - 48px));
  margin: 0 auto;
  padding: 64px 0;
}

.section.compact {
  padding-top: 42px;
}

.page-title {
  width: min(var(--max), calc(100% - 48px));
  margin: 0 auto;
  padding: 62px 0 34px;
}

.page-title .eyebrow {
  color: var(--teal);
}

.page-title h1 {
  color: var(--ink);
  font-size: clamp(2.25rem, 5vw, 4.5rem);
}

.page-title p {
  max-width: 760px;
  margin: 18px 0 0;
  color: var(--muted);
  font-size: 1.08rem;
}

.profile-grid,
.two-column {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(300px, 0.78fr);
  gap: 32px;
  align-items: start;
}

.profile-section {
  width: min(840px, calc(100% - 48px));
}

.home-page .profile-section {
  width: min(900px, 100%);
  margin-top: 24px;
  padding-top: 0;
}

.hero-copy > .hero-profile {
  max-width: min(900px, calc(100% - 76px));
  margin-left: clamp(28px, 5vw, 76px);
}

.cv-stack {
  display: grid;
  gap: 32px;
}

.profile-grid > *,
.two-column > *,
.course-grid > *,
.link-grid > * {
  min-width: 0;
}

.info-list,
.math-panel,
.note-panel,
.link-panel,
.timeline,
.course-group,
.paper-list,
.talk-list {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.info-list {
  display: grid;
  gap: 0;
}

.home-page .info-list {
  background: transparent;
  border: 0;
  border-radius: 0;
  box-shadow: none;
}

.home-page .profile-section .info-row {
  grid-template-columns: 132px minmax(0, 1fr);
  gap: 18px;
  padding-block: 12px;
  padding-inline: 0;
  border-bottom: 0;
}

.info-row {
  display: grid;
  grid-template-columns: 150px minmax(0, 1fr);
  gap: 20px;
  padding: 20px 24px;
  border-bottom: 1px solid var(--line);
}

.info-row:last-child {
  border-bottom: 0;
}

.info-label {
  color: var(--muted);
  font-size: 0.92rem;
  font-weight: 700;
}

.info-value {
  min-width: 0;
  overflow-wrap: anywhere;
}

.info-summary,
.profile-research-text {
  margin: 0;
}

.profile-research-text {
  margin-top: 10px;
  color: var(--muted);
}

.math-panel,
.note-panel,
.link-panel {
  padding: 26px;
}

.math-panel p,
.note-panel p {
  margin: 16px 0 0;
  color: var(--muted);
}

.math-display {
  margin: 24px 0 0;
  padding: 20px;
  max-width: 100%;
  overflow-x: auto;
  background: var(--soft);
  border: 1px solid #c9ddda;
  border-radius: var(--radius);
}

.highlight-band {
  background: linear-gradient(135deg, var(--soft), var(--soft-warm));
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.research-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 26px;
  padding: 0;
  list-style: none;
}

.research-tags li {
  padding: 8px 12px;
  color: var(--navy);
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid rgba(22, 32, 37, 0.08);
  border-radius: 999px;
  font-size: 0.92rem;
  font-weight: 700;
}

.timeline {
  overflow: hidden;
}

.timeline-row {
  display: grid;
  grid-template-columns: 230px minmax(0, 1fr);
  gap: 26px;
  padding: 22px 26px;
  border-bottom: 1px solid var(--line);
}

.timeline-row:last-child {
  border-bottom: 0;
}

.timeline-date {
  color: var(--journal-green);
  font-weight: 760;
}

.timeline-body {
  min-width: 0;
}

.timeline-body strong {
  display: block;
  color: var(--ink);
}

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

.pub-section,
.talk-section {
  padding: 34px 0 14px;
}

.pub-section:first-child,
.talk-section:first-child {
  padding-top: 0;
}

.pub-section h2,
.talk-section h2,
.course-group h2,
.link-panel h2 {
  margin-bottom: 16px;
  font-size: clamp(1.35rem, 2.4vw, 1.85rem);
}

.course-list,
.link-list {
  margin: 0;
  padding-left: 1.35rem;
}

.course-list li,
.link-list li {
  margin: 0 0 14px;
  padding-left: 0.15rem;
}

.paper-list,
.talk-list {
  margin: 0;
  padding-left: 0;
  overflow: hidden;
  list-style: none;
}

.paper-list {
  counter-reset: paper-item;
}

.talk-list {
  margin-bottom: 22px;
  counter-reset: talk-item;
}

.paper-list[data-reverse-numbering="true"] {
  counter-reset: paper-item var(--paper-list-start);
}

.talk-list[data-reverse-numbering="true"] {
  counter-reset: talk-item var(--talk-list-start);
}

.paper-list li,
.talk-list li {
  display: grid;
  grid-template-columns: 78px minmax(0, 1fr);
  row-gap: 6px;
  column-gap: 26px;
  margin: 0;
  padding: 20px 26px;
  border-bottom: 1px solid var(--line);
}

.paper-list li {
  counter-increment: paper-item;
}

.talk-list li {
  counter-increment: talk-item;
}

.paper-list[data-reverse-numbering="true"] li {
  counter-increment: paper-item -1;
}

.talk-list[data-reverse-numbering="true"] li {
  counter-increment: talk-item -1;
}

.paper-list li:last-child,
.talk-list li:last-child {
  border-bottom: 0;
}

.paper-list li::before,
.talk-list li::before {
  content: counter(paper-item);
  grid-column: 1;
  grid-row: 1 / span 3;
  color: var(--journal-green);
  font-weight: 760;
  font-variant-numeric: tabular-nums;
}

.talk-list li::before {
  content: counter(talk-item);
  grid-row: 1 / span 4;
}

.paper-list li > *,
.talk-list li > * {
  grid-column: 2;
  min-width: 0;
}

.paper-authors-line,
.paper-title-line,
.paper-venue-line,
.paper-year-line {
  display: block;
}

.paper-authors-line {
  color: var(--muted);
  font-size: 0.95rem;
}

.paper-title-line {
  color: var(--ink);
  font-weight: 700;
  text-decoration-thickness: 1px;
  overflow-wrap: anywhere;
}

.paper-title-line:hover {
  color: var(--teal);
}

.paper-venue-line {
  color: var(--journal-green);
  font-weight: 760;
}

.paper-year-inline {
  color: var(--muted);
  font-size: 0.94rem;
  font-weight: 400;
}

.paper-year-line {
  color: var(--muted);
  font-size: 0.94rem;
}

.talk-authors-line,
.talk-title-line,
.talk-venue-line,
.talk-date-line {
  display: block;
}

.talk-authors-line {
  color: var(--muted);
  font-size: 0.95rem;
}

.talk-title-line {
  color: var(--ink);
  font-weight: 700;
  overflow-wrap: anywhere;
}

.talk-venue-line {
  color: var(--journal-green);
  font-weight: 760;
}

.talk-date-line {
  color: var(--muted);
  font-size: 0.94rem;
}

.paper-meta,
.talk-meta {
  color: var(--muted);
}

.course-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 22px;
}

.course-group {
  padding: 26px;
}

.link-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 22px;
}

.paper-title-block h1 {
  max-width: 980px;
  font-size: clamp(2rem, 4.2vw, 3.8rem);
}

.paper-title-block .paper-detail-authors {
  margin: 18px 0 0;
  color: var(--copper-dark);
  font-size: clamp(1.14rem, 2.2vw, 1.38rem);
  font-weight: 700;
}

.paper-title-block .paper-detail-journal {
  margin: 8px 0 0;
  color: var(--journal-green);
  font-size: clamp(1.26rem, 2.6vw, 1.6rem);
  line-height: 1.45;
}

.paper-title-block .paper-detail-journal-name {
  color: var(--journal-green);
  font-weight: 840;
}

.paper-title-block .paper-detail-journal-year {
  color: var(--muted);
  font-weight: 650;
}

.paper-title-block .paper-detail-publication-date {
  display: block;
  margin-top: 2px;
  color: var(--muted);
  font-size: 0.92em;
  font-weight: 500;
}

.paper-detail {
  display: grid;
  gap: 22px;
}

.paper-detail-panel {
  padding: 28px;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.paper-detail-panel p {
  margin: 14px 0 0;
  color: var(--muted);
}

.paper-commentary p {
  line-height: 1.82;
}

.paper-commentary p + p {
  margin-top: 16px;
}

.paper-links {
  margin: 0;
  padding-left: 1.35rem;
}

.paper-links li {
  margin-bottom: 10px;
  overflow-wrap: anywhere;
}

.paper-back {
  margin: 8px 0 0;
}

.site-footer {
  margin-top: 40px;
  padding: 34px 32px;
  color: rgba(255, 253, 248, 0.72);
  background: var(--navy);
}

.site-footer-inner {
  width: min(var(--max), 100%);
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}

.site-footer a {
  color: #d8ece9;
}

.katex-display {
  max-width: 100%;
  overflow-x: auto;
  overflow-y: hidden;
}

@media (max-width: 820px) {
  .page-formula-bg {
    inset: 0;
  }

  .site-header {
    position: static;
    display: block;
    padding: 18px 22px 14px;
  }

  .brand {
    margin-bottom: 12px;
  }

  .header-actions {
    align-items: flex-start;
    justify-content: space-between;
    gap: 10px;
  }

  .site-nav {
    padding-bottom: 2px;
  }

  .hero {
    min-height: 760px;
  }

  .hero-portrait {
    top: 44px;
    right: 18px;
    width: 132px;
  }

  .home-page .profile-section {
    margin-top: 20px;
  }

  .hero-copy > .hero-profile {
    max-width: calc(100% - 32px);
    margin-left: 32px;
  }

  .home-page .profile-section .info-row {
    grid-template-columns: 118px minmax(0, 1fr);
    gap: 14px;
    padding-block: 10px;
  }

  .hero-equation {
    transform: rotate(-10deg);
  }

  .equation-ns {
    left: -54px;
    top: 500px;
    transform: rotate(-7deg);
  }

  .equation-ns .katex {
    font-size: 2.16rem;
  }

  .equation-cns {
    left: 300px;
    top: 220px;
    transform: rotate(4deg);
  }

  .equation-cns .katex {
    font-size: 1.05rem;
  }

  .equation-qg-top {
    right: -132px;
    top: 32px;
    transform: rotate(0deg);
  }

  .equation-qg-top .katex,
  .equation-qg .katex,
  .equation-boussinesq .katex {
    font-size: 1.12rem;
  }

  .equation-qg {
    left: -158px;
    top: 520px;
    transform: rotate(7deg);
  }

  .equation-hall {
    right: -230px;
    top: 250px;
    display: block;
    transform: rotate(-11deg);
  }

  .equation-hall .katex {
    font-size: 0.88rem;
  }

  .equation-boussinesq {
    right: -104px;
    bottom: 200px;
    transform: rotate(3deg);
  }

  .equation-euler {
    left: -64px;
    top: 180px;
    transform: rotate(-4deg);
  }

  .equation-stationary {
    right: -220px;
    top: 475px;
    transform: rotate(8deg);
  }

  .equation-hall-small {
    left: 34px;
    top: 74px;
    transform: rotate(0deg);
  }

  .equation-cns-small {
    left: 220px;
    top: 48px;
    transform: rotate(-12deg);
  }

  .equation-sqg {
    right: -70px;
    top: 270px;
    transform: rotate(5deg);
  }

  .equation-vorticity {
    left: 24px;
    top: 300px;
    transform: rotate(-6deg);
  }

  .equation-coriolis {
    right: 138px;
    top: 230px;
    transform: rotate(0deg);
  }

  .equation-energy {
    left: 430px;
    top: 58px;
    transform: rotate(9deg);
  }

  .equation-fill .katex {
    font-size: 0.82rem;
  }

  .equation-pressure {
    left: 260px;
    top: 28px;
    transform: rotate(0deg);
  }

  .equation-stokes {
    left: 210px;
    top: 230px;
    transform: rotate(-9deg);
  }

  .equation-scaling {
    left: 50px;
    top: 170px;
    transform: rotate(10deg);
  }

  .equation-besov {
    right: 26px;
    top: 74px;
    transform: rotate(0deg);
  }

  .equation-transport {
    left: -70px;
    top: 360px;
    transform: rotate(8deg);
  }

  .equation-heat {
    left: -18px;
    top: 18px;
    transform: rotate(-14deg);
  }

  .equation-vorticity-small {
    right: 265px;
    top: 198px;
    transform: rotate(12deg);
  }

  .equation-mhd-small {
    right: -230px;
    top: 520px;
    transform: rotate(-6deg);
  }

  .equation-mach {
    left: 430px;
    top: 182px;
    transform: rotate(0deg);
  }

  .equation-fourier {
    left: 350px;
    top: 235px;
    transform: rotate(-11deg);
  }

  .equation-decay {
    left: 150px;
    top: 500px;
    transform: rotate(7deg);
  }

  .equation-helmholtz {
    right: 250px;
    top: 240px;
    transform: rotate(0deg);
  }

  .equation-lambda {
    right: 8px;
    top: 250px;
    transform: rotate(-16deg);
  }

  .equation-divfree {
    left: 500px;
    top: 186px;
    transform: rotate(11deg);
  }

  .hero-copy,
  .section,
  .page-title,
  .profile-section {
    width: min(100% - 32px, var(--max));
  }

  .profile-grid,
  .two-column,
  .course-grid,
  .link-grid {
    grid-template-columns: 1fr;
  }

  .timeline-row,
  .info-row {
    grid-template-columns: 1fr;
    gap: 6px;
  }

  .paper-list li,
  .talk-list li {
    grid-template-columns: 58px minmax(0, 1fr);
    row-gap: 6px;
    column-gap: 16px;
    padding: 18px;
  }

  .paper-list li > *,
  .talk-list li > * {
    grid-column: 2;
  }

  .paper-list li::before,
  .talk-list li::before {
    grid-column: 1;
    grid-row: 1 / span 3;
  }

  .talk-list li::before {
    grid-row: 1 / span 4;
  }
}

@media (max-width: 520px) {
  body {
    font-size: 15px;
  }

  .site-header {
    padding-inline: 16px;
  }

  .paper-list li,
  .talk-list li {
    grid-template-columns: 1fr;
    row-gap: 6px;
    column-gap: 0;
  }

  .paper-list li::before,
  .paper-list li > *,
  .talk-list li::before,
  .talk-list li > * {
    grid-column: 1;
  }

  .paper-list li::before,
  .talk-list li::before {
    grid-row: auto;
  }

  .site-nav {
    gap: 2px;
    overflow-x: visible;
  }

  .site-nav a {
    min-height: 34px;
    padding: 0 8px;
    font-size: 0.88rem;
  }

  .header-actions {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
  }

  .language-toggle {
    grid-template-columns: repeat(2, 31px);
  }

  .language-toggle button {
    min-width: 31px;
    padding: 0;
    font-size: 0;
  }

  .language-toggle button::after {
    content: attr(data-short-label);
    font-size: 0.76rem;
  }

  .hero-copy {
    padding: 86px 0 178px;
  }

  .hero-portrait {
    top: 28px;
    right: 14px;
    width: 108px;
  }

  .home-page .profile-section {
    margin-top: 18px;
  }

  .hero-copy > .hero-profile {
    max-width: calc(100% - 16px);
    margin-left: 16px;
  }

  .home-page .profile-section .info-row {
    grid-template-columns: 1fr;
    gap: 4px;
    padding-block: 8px;
  }

  .equation-ns {
    left: -84px;
    top: 555px;
  }

  .equation-cns {
    left: 118px;
    top: 225px;
  }

  .equation-qg-top {
    right: -190px;
    top: 38px;
  }

  .equation-qg {
    top: 615px;
  }

  .equation-hall {
    top: 275px;
  }

  .equation-euler {
    left: -98px;
    top: 176px;
  }

  .equation-stationary {
    right: -260px;
    top: 540px;
  }

  .equation-hall-small {
    left: -8px;
    top: 88px;
  }

  .equation-cns-small {
    left: 148px;
    top: 58px;
  }

  .equation-sqg {
    right: -166px;
    top: 300px;
  }

  .equation-vorticity {
    left: -54px;
    top: 306px;
  }

  .equation-coriolis {
    right: -148px;
    top: 230px;
  }

  .equation-energy {
    left: 168px;
    top: 92px;
  }

  .equation-fill .katex {
    font-size: 0.72rem;
  }

  .equation-pressure {
    left: 125px;
    top: 52px;
  }

  .equation-stokes {
    left: 88px;
    top: 255px;
  }

  .equation-scaling {
    left: -20px;
    top: 205px;
  }

  .equation-besov {
    right: -60px;
    top: 92px;
  }

  .equation-transport {
    left: -95px;
    top: 398px;
  }

  .equation-heat {
    left: -50px;
    top: 20px;
  }

  .equation-vorticity-small {
    right: 92px;
    top: 230px;
  }

  .equation-mhd-small {
    right: -245px;
    top: 600px;
  }

  .equation-mach {
    left: 190px;
    top: 205px;
  }

  .equation-fourier {
    left: 96px;
    top: 250px;
  }

  .equation-decay {
    left: 52px;
    top: 590px;
  }

  .equation-helmholtz {
    right: -80px;
    top: 275px;
  }

  .equation-lambda {
    right: -150px;
    top: 285px;
  }

  .equation-divfree {
    left: 230px;
    top: 245px;
  }

  .hero-actions {
    align-items: stretch;
    flex-direction: column;
  }

  .button {
    width: 100%;
  }

  .section {
    padding: 46px 0;
  }

  .math-panel,
  .note-panel,
  .link-panel,
  .course-group {
    padding: 22px;
  }
}
