/* ==========================================================================
   zhengxs.com - design system
   Serif for thought, sans for interface, mono for measurement.
   ========================================================================== */

@font-face {
  font-family: "Newsreader";
  src: url("../fonts/newsreader-var.woff2") format("woff2");
  font-weight: 200 800;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Newsreader";
  src: url("../fonts/newsreader-italic-var.woff2") format("woff2");
  font-weight: 200 800;
  font-style: italic;
  font-display: swap;
}
@font-face {
  font-family: "IBM Plex Sans";
  src: url("../fonts/plex-sans-var.woff2") format("woff2");
  font-weight: 400 600;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "IBM Plex Mono";
  src: url("../fonts/plex-mono-400.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "IBM Plex Mono";
  src: url("../fonts/plex-mono-500.woff2") format("woff2");
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}

:root {
  /* palette */
  --void: #08090b;
  --void-2: #0c0e11;
  --void-3: #121519;
  --paper: #f3f0e7;
  --paper-2: #ece7da;
  --paper-3: #e4dece;
  --ink: #141614;
  --ink-2: #2a2d29;
  --muted: #63655f;
  --muted-2: #85877f;
  --hair: rgba(20, 22, 20, 0.14);
  --hair-2: rgba(20, 22, 20, 0.28);
  --hair-dark: rgba(243, 240, 231, 0.14);
  --hair-dark-2: rgba(243, 240, 231, 0.28);
  --light: #f3f0e7;
  --light-2: rgba(243, 240, 231, 0.68);
  --light-3: rgba(243, 240, 231, 0.54);
  --accent: #c2441c;
  --accent-ink: #b23a13;
  --accent-light: #ff6a3d;
  --cyan: #7fdcf2;
  --blue: #205f86;

  /* type */
  --serif: "Newsreader", "Iowan Old Style", "Palatino Linotype", "Songti SC",
    "Noto Serif CJK SC", "Source Han Serif SC", Georgia, serif;
  --sans: "IBM Plex Sans", "Helvetica Neue", Arial, "PingFang SC",
    "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  --mono: "IBM Plex Mono", "SFMono-Regular", Consolas, "Liberation Mono",
    monospace;
  --zh-serif: "Noto Serif SC", "Source Han Serif SC", "Songti SC", "STSong",
    "SimSun", var(--serif);

  /* metrics */
  --nav-h: 66px;
  --gutter: clamp(20px, 4vw, 56px);
  --max: 1400px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-io: cubic-bezier(0.65, 0, 0.35, 1);
  --shadow: 0 24px 80px rgba(8, 9, 11, 0.16);
}

/* --------------------------------------------------------------------------
   reset / base
   -------------------------------------------------------------------------- */
*,
*::before,
*::after {
  box-sizing: border-box;
}
html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--nav-h) + 26px);
}
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
body.menu-open {
  overflow: hidden;
}
::selection {
  background: var(--accent);
  color: var(--paper);
}
img,
svg,
canvas {
  display: block;
  max-width: 100%;
}
img {
  height: auto;
}
a {
  color: inherit;
  text-decoration: none;
}
button,
input {
  font: inherit;
  color: inherit;
}
button {
  background: none;
  border: 0;
  cursor: pointer;
}
h1,
h2,
h3,
h4,
p,
figure,
blockquote,
ol,
ul {
  margin: 0;
}
ol,
ul {
  padding: 0;
  list-style: none;
}
hr {
  border: 0;
  border-top: 1px solid var(--hair);
}
:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 4px;
  border-radius: 1px;
}
.hero :focus-visible,
.masthead :focus-visible,
.thesis-band :focus-visible,
.footer :focus-visible,
.lab :focus-visible,
.nav :focus-visible,
.menu :focus-visible {
  outline-color: var(--accent-light);
}
.skip {
  position: fixed;
  top: 8px;
  left: 8px;
  z-index: 300;
  transform: translateY(-160%);
  padding: 10px 14px;
  background: var(--paper);
  color: var(--ink);
  font: 500 12px/1 var(--mono);
  letter-spacing: 0.04em;
  transition: transform 0.2s var(--ease);
}
.skip:focus {
  transform: none;
}
.wrap {
  width: 100%;
  max-width: var(--max);
  margin-inline: auto;
  padding-inline: var(--gutter);
}
.wrap--narrow {
  max-width: 980px;
}
.wrap--text {
  max-width: 780px;
}
.mono {
  font-family: var(--mono);
  font-size: 11px;
  line-height: 1.5;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}
.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;
}
.nowrap {
  white-space: nowrap;
}

/* --------------------------------------------------------------------------
   typographic components
   -------------------------------------------------------------------------- */
.kicker {
  display: flex;
  align-items: center;
  gap: 12px;
  font-family: var(--mono);
  font-size: 10px;
  font-weight: 500;
  line-height: 1;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--muted);
}
.kicker::before {
  content: "";
  width: 28px;
  height: 1px;
  background: var(--accent);
  flex: 0 0 auto;
}
.kicker--light {
  color: var(--light-3);
}
.kicker--light::before {
  background: var(--accent-light);
}
.kicker__no {
  color: var(--accent-ink);
}
.kicker--light .kicker__no {
  color: var(--accent-light);
}
.h2 {
  font-family: var(--serif);
  font-weight: 300;
  font-size: clamp(2.4rem, 4.6vw, 4.6rem);
  line-height: 0.98;
  letter-spacing: -0.032em;
  text-wrap: balance;
}
.h2 em,
.display em,
.masthead__title em,
.statement__text em {
  font-style: italic;
  font-weight: 300;
}
.lead {
  max-width: 46ch;
  font-family: var(--sans);
  font-size: clamp(1rem, 1.25vw, 1.15rem);
  line-height: 1.55;
  color: var(--light-2);
}
.lead-2 {
  max-width: 58ch;
  font-family: var(--serif);
  font-size: clamp(1.15rem, 1.5vw, 1.4rem);
  line-height: 1.5;
  color: var(--ink-2);
}
.section {
  padding-block: clamp(72px, 10vw, 140px);
}
.section--rule {
  border-top: 1px solid var(--hair);
}
.section-head {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(24px, 5vw, 88px);
  align-items: end;
  margin-bottom: clamp(40px, 5vw, 72px);
}
.section-head .h2 {
  margin-top: 26px;
}
.section-head__aside {
  max-width: 42ch;
  padding-bottom: 0.5rem;
  font-family: var(--serif);
  font-size: 1.08rem;
  line-height: 1.55;
  color: var(--muted);
}
.section-head__aside a {
  color: var(--ink);
}
.section-head__aside .text-link {
  white-space: nowrap;
}

/* links */
.link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--sans);
  font-size: 13px;
  font-weight: 500;
  line-height: 1.2;
  color: inherit;
  border-bottom: 1px solid var(--hair-dark-2);
  padding-bottom: 3px;
  transition: border-color 0.25s var(--ease), color 0.25s var(--ease);
}
.link:hover {
  border-color: currentColor;
}
.link--light {
  color: var(--light);
  border-color: rgba(243, 240, 231, 0.32);
}
.link--dark {
  color: var(--ink);
  border-color: var(--hair-2);
}
.link--accent {
  color: var(--accent-ink);
  border-color: rgba(194, 68, 28, 0.4);
}
.link .arr {
  transition: transform 0.3s var(--ease);
}
.link:hover .arr {
  transform: translateX(3px);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  min-height: 48px;
  padding: 0 20px;
  border: 1px solid transparent;
  border-radius: 2px;
  font-family: var(--sans);
  font-size: 12.5px;
  font-weight: 500;
  letter-spacing: 0.01em;
  line-height: 1;
  white-space: nowrap;
  transition: background-color 0.28s var(--ease), color 0.28s var(--ease),
    border-color 0.28s var(--ease), transform 0.28s var(--ease);
}
.btn .arr {
  transition: transform 0.3s var(--ease);
}
.btn:hover .arr {
  transform: translateX(3px);
}
.btn--light {
  background: var(--paper);
  color: var(--ink);
  border-color: var(--paper);
}
.btn--light:hover {
  background: var(--accent);
  border-color: var(--accent);
  color: var(--paper);
}
.btn--dark {
  background: var(--ink);
  color: var(--paper);
  border-color: var(--ink);
}
.btn--dark:hover {
  background: var(--accent);
  border-color: var(--accent);
}
.btn--ghost {
  background: transparent;
  color: var(--light);
  border-color: rgba(243, 240, 231, 0.28);
}
.btn--ghost:hover {
  border-color: var(--light);
  background: rgba(243, 240, 231, 0.06);
}
.btn--line {
  background: transparent;
  color: var(--ink);
  border-color: var(--hair-2);
}
.btn--line:hover {
  background: var(--ink);
  border-color: var(--ink);
  color: var(--paper);
}
.btn--sm {
  min-height: 38px;
  padding: 0 14px;
  font-size: 11.5px;
}
.arr {
  width: 15px;
  height: 15px;
  flex: 0 0 auto;
}
.arr path {
  fill: none;
  stroke: currentColor;
  stroke-width: 1.4;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* --------------------------------------------------------------------------
   navigation
   -------------------------------------------------------------------------- */
.nav {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 120;
  height: var(--nav-h);
  background: rgba(8, 9, 11, 0.7);
  border-bottom: 1px solid rgba(243, 240, 231, 0.07);
  -webkit-backdrop-filter: blur(20px) saturate(150%);
  backdrop-filter: blur(20px) saturate(150%);
  transition: background-color 0.35s var(--ease),
    border-color 0.35s var(--ease);
}
.nav.is-scrolled {
  background: rgba(8, 9, 11, 0.96);
  border-bottom-color: rgba(243, 240, 231, 0.12);
}
.page-paper .nav {
  background: rgba(8, 9, 11, 0.95);
}
.page-paper .nav.is-scrolled {
  background: rgba(8, 9, 11, 0.98);
}
.nav__inner {
  width: 100%;
  max-width: var(--max);
  height: 100%;
  margin-inline: auto;
  padding-inline: var(--gutter);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--light);
  font-family: var(--mono);
  font-size: 14px;
  font-weight: 500;
  letter-spacing: -0.01em;
  line-height: 1;
}
.brand__mark {
  width: 19px;
  height: 19px;
  color: rgba(243, 240, 231, 0.82);
  transition: transform 0.6s var(--ease);
}
.brand:hover .brand__mark {
  transform: rotate(90deg);
}
.brand__dot {
  display: inline-block;
  align-self: flex-start;
  width: 5px;
  height: 5px;
  margin-top: 3px;
  border-radius: 50%;
  background: var(--accent-light);
}
.nav__links {
  display: flex;
  align-items: center;
  gap: clamp(18px, 2.4vw, 36px);
  margin-left: auto;
}
.nav__links a {
  position: relative;
  padding: 6px 0;
  font-family: var(--sans);
  font-size: 12.5px;
  font-weight: 500;
  line-height: 1;
  color: rgba(243, 240, 231, 0.62);
  transition: color 0.25s var(--ease);
}
.nav__links a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 100%;
  height: 1px;
  background: var(--accent-light);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.35s var(--ease);
}
.nav__links a:hover,
.nav__links a.is-active {
  color: var(--light);
}
.nav__links a:hover::after,
.nav__links a.is-active::after {
  transform: scaleX(1);
}
.nav__meta {
  display: flex;
  align-items: center;
  gap: 20px;
  min-width: 0;
}
.nav__clock {
  font-family: var(--mono);
  font-size: 9.5px;
  font-weight: 400;
  letter-spacing: 0.12em;
  color: rgba(243, 240, 231, 0.58);
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
}
.nav__clock b {
  font-weight: 400;
  color: rgba(243, 240, 231, 0.62);
}
.nav__mail {
  font-family: var(--sans);
  font-size: 12px;
  font-weight: 500;
  color: rgba(243, 240, 231, 0.68);
  border-bottom: 1px solid rgba(243, 240, 231, 0.22);
  padding-bottom: 2px;
  transition: color 0.25s var(--ease), border-color 0.25s var(--ease);
}
.nav__mail:hover {
  color: var(--light);
  border-color: var(--light);
}
.nav__menu {
  display: none;
  align-items: center;
  gap: 9px;
  padding: 8px 0;
  color: var(--light);
  font-family: var(--mono);
  font-size: 9.5px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}
.nav__menu-lines {
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.nav__menu-lines i {
  display: block;
  width: 18px;
  height: 1px;
  background: currentColor;
  transition: transform 0.3s var(--ease);
}
.nav__menu .close-label {
  display: none;
}
body.menu-open .nav__menu .open-label,
body.menu-open .nav__menu-lines {
  display: none;
}
body.menu-open .nav__menu .close-label {
  display: inline;
}

/* mobile menu */
.menu {
  position: fixed;
  inset: 0;
  z-index: 110;
  background: var(--void);
  color: var(--light);
  display: flex;
  flex-direction: column;
  padding: calc(var(--nav-h) + 24px) var(--gutter) 32px;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.4s var(--ease), visibility 0.4s;
  overflow-y: auto;
}
.menu.is-open {
  opacity: 1;
  visibility: visible;
}
.menu__nav {
  display: flex;
  flex-direction: column;
  border-top: 1px solid var(--hair-dark);
}
.menu__nav a {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 24px;
  padding: 18px 0;
  border-bottom: 1px solid var(--hair-dark);
  font-family: var(--serif);
  font-size: clamp(2rem, 7vw, 3rem);
  font-weight: 300;
  letter-spacing: -0.02em;
  line-height: 1;
  opacity: 0;
  transform: translateY(12px);
  transition: opacity 0.5s var(--ease), transform 0.5s var(--ease);
}
.menu.is-open .menu__nav a {
  opacity: 1;
  transform: none;
}
.menu__nav a span {
  flex: 1;
}
.menu__nav a em {
  font-family: var(--mono);
  font-size: 10px;
  font-style: normal;
  letter-spacing: 0.14em;
  color: var(--accent-light);
}
.menu__foot {
  margin-top: auto;
  padding-top: 40px;
  display: flex;
  flex-wrap: wrap;
  gap: 16px 32px;
  justify-content: space-between;
  align-items: end;
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--light-3);
}
.menu__foot a {
  color: var(--light-2);
  border-bottom: 1px solid var(--hair-dark-2);
  padding-bottom: 3px;
}

/* --------------------------------------------------------------------------
   home hero
   -------------------------------------------------------------------------- */
.page-home {
  background: var(--paper);
}
.hero {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 100svh;
  padding: calc(var(--nav-h) + 34px) 0 0;
  background: var(--void);
  color: var(--light);
  overflow: hidden;
  isolation: isolate;
}
.hero__canvas {
  position: absolute;
  inset: 0 0 0 auto;
  width: 62%;
  height: 100%;
  z-index: 0;
  cursor: crosshair;
}
.hero__veil {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background:
    radial-gradient(110% 90% at 20% 40%, rgba(8, 9, 11, 0.93) 0%, rgba(8, 9, 11, 0.55) 40%, rgba(8, 9, 11, 0) 62%),
    linear-gradient(180deg, rgba(8, 9, 11, 0.55) 0%, rgba(8, 9, 11, 0) 26%, rgba(8, 9, 11, 0) 72%, rgba(8, 9, 11, 0.72) 100%);
}
.hero__inner {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 var(--gutter);
  flex: 1;
  display: flex;
  align-items: center;
}
.hero__copy {
  width: min(100%, 820px);
  padding: clamp(28px, 5vh, 64px) 0;
}
.eyebrow {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: clamp(22px, 3.4vh, 40px);
  font-family: var(--mono);
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--light-3);
}
.eyebrow::before {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--accent-light);
  box-shadow: 0 0 14px rgba(255, 106, 61, 0.65);
}
.display {
  font-family: var(--serif);
  font-weight: 300;
  font-size: clamp(3.4rem, 8.2vw, 8.4rem);
  line-height: 0.9;
  letter-spacing: -0.045em;
  text-wrap: balance;
}
.display em {
  color: var(--paper);
}
.display .display__dot {
  display: inline-block;
  width: 0.16em;
  height: 0.16em;
  min-width: 9px;
  min-height: 9px;
  margin-left: 0.04em;
  border-radius: 50%;
  background: var(--accent-light);
  vertical-align: 0.08em;
}
.hero .lead {
  margin-top: clamp(22px, 3.2vh, 34px);
  max-width: 44ch;
}
.hero__actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px 28px;
  margin-top: clamp(26px, 4vh, 42px);
}
.hero__instrument {
  position: absolute;
  z-index: 2;
  right: var(--gutter);
  top: calc(var(--nav-h) + 28px);
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 7px;
  font-family: var(--mono);
  font-size: 10px;
  line-height: 1.5;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(243, 240, 231, 0.52);
  text-align: right;
  pointer-events: none;
}
.hero__instrument b {
  font-weight: 400;
  color: rgba(243, 240, 231, 0.68);
}
.hero__hint {
  position: absolute;
  z-index: 2;
  right: var(--gutter);
  bottom: 132px;
  display: flex;
  align-items: center;
  gap: 9px;
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(243, 240, 231, 0.5);
  pointer-events: none;
}
.hero__hint i {
  display: block;
  width: 22px;
  height: 1px;
  background: rgba(243, 240, 231, 0.28);
}
.hero__foot {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: 1.25fr 1fr 1.1fr 1fr;
  border-top: 1px solid var(--hair-dark);
  background: rgba(8, 9, 11, 0.28);
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
}
.hero__datum {
  min-width: 0;
  padding: 17px var(--gutter) 19px;
  border-left: 1px solid var(--hair-dark);
}
.hero__datum:first-child {
  border-left: 0;
}
.hero__datum span {
  display: block;
  margin-bottom: 6px;
  font-family: var(--mono);
  font-size: 9.5px;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--light-3);
}
.hero__datum strong {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: var(--sans);
  font-size: 12.5px;
  font-weight: 400;
  line-height: 1.3;
  color: rgba(243, 240, 231, 0.8);
}
.hero__datum .dot {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--accent-light);
  box-shadow: 0 0 10px rgba(255, 106, 61, 0.6);
  flex: 0 0 auto;
}
.hero__caption {
  position: absolute;
  z-index: 2;
  left: 50%;
  bottom: 96px;
  max-width: 360px;
  font-family: var(--mono);
  font-size: 9.5px;
  line-height: 1.6;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(243, 240, 231, 0.5);
  pointer-events: none;
}

/* --------------------------------------------------------------------------
   statement
   -------------------------------------------------------------------------- */
.statement {
  padding-block: clamp(78px, 11vw, 150px);
  border-bottom: 1px solid var(--hair);
}
.statement__grid {
  display: grid;
  grid-template-columns: minmax(0, 2fr) minmax(0, 1fr);
  gap: clamp(32px, 7vw, 120px);
  align-items: start;
}
.statement__text {
  max-width: 20ch;
  margin-top: 28px;
  font-family: var(--serif);
  font-weight: 300;
  font-size: clamp(2.2rem, 5vw, 4.9rem);
  line-height: 1.02;
  letter-spacing: -0.035em;
  text-wrap: balance;
}
.statement__text em {
  color: var(--accent-ink);
}
.statement__side {
  max-width: 40ch;
  padding-top: 42px;
}
.statement__side p {
  font-family: var(--serif);
  font-size: 1.05rem;
  line-height: 1.62;
  color: var(--ink-2);
}
.statement__side p + p {
  margin-top: 1em;
  color: var(--muted);
}
.statement__side .link {
  margin-top: 24px;
  color: var(--ink);
}
.statement__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 22px;
  margin-top: 38px;
  padding-top: 18px;
  border-top: 1px solid var(--hair);
  font-family: var(--mono);
  font-size: 9.5px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
}
.statement__meta span {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.statement__meta i {
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--accent);
}

/* --------------------------------------------------------------------------
   research threads
   -------------------------------------------------------------------------- */
.threads {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(18px, 2.6vw, 34px);
}
.thread {
  display: flex;
  flex-direction: column;
  min-width: 0;
}
.thread__fig {
  position: relative;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background: var(--void);
  border-radius: 2px;
  isolation: isolate;
}
.thread__fig img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.9s var(--ease);
  opacity: 1;
}
.thread:hover .thread__fig img {
  transform: scale(1.035);
  opacity: 1;
}
.thread__fig::after {
  content: "";
  position: absolute;
  inset: 0;
  border: 1px solid rgba(243, 240, 231, 0.08);
  pointer-events: none;
}
.thread__body {
  display: flex;
  flex-direction: column;
  flex: 1;
  padding-top: 18px;
}
.thread__top {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
}
.thread__no {
  font-family: var(--mono);
  font-size: 9.5px;
  letter-spacing: 0.14em;
  color: var(--accent-ink);
}
.thread__tag {
  font-family: var(--mono);
  font-size: 9.5px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
}
.thread h3 {
  font-family: var(--serif);
  font-weight: 300;
  font-size: clamp(1.55rem, 2vw, 2rem);
  line-height: 1.05;
  letter-spacing: -0.02em;
}
.thread__body p {
  margin-top: 10px;
  max-width: 34ch;
  font-family: var(--sans);
  font-size: 13.5px;
  line-height: 1.55;
  color: var(--muted);
}
.thread__more {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: auto;
  padding-top: 18px;
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink);
}
.thread__more .arr {
  width: 13px;
  height: 13px;
  transition: transform 0.3s var(--ease);
}
.thread:hover .thread__more .arr {
  transform: translateX(4px);
}

/* --------------------------------------------------------------------------
   thesis band
   -------------------------------------------------------------------------- */
.thesis-band {
  position: relative;
  overflow: hidden;
  background: var(--void);
  color: var(--light);
  padding-block: clamp(76px, 10vw, 132px);
  isolation: isolate;
}
.thesis-band::before {
  content: "";
  position: absolute;
  z-index: -1;
  width: 70vw;
  height: 70vw;
  max-width: 900px;
  max-height: 900px;
  right: -22vw;
  top: -28vw;
  border: 1px solid rgba(243, 240, 231, 0.06);
  border-radius: 50%;
  box-shadow: 0 0 0 12vw rgba(243, 240, 231, 0.012),
    0 0 0 24vw rgba(243, 240, 231, 0.008);
  pointer-events: none;
}
.thesis-band__grid {
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(0, 0.92fr);
  gap: clamp(36px, 6vw, 96px);
  align-items: center;
}
.thesis-band .kicker {
  color: var(--light-3);
}
.thesis-band h2 {
  max-width: 16ch;
  margin-top: 24px;
  font-family: var(--serif);
  font-weight: 300;
  font-size: clamp(2.5rem, 4.4vw, 4.5rem);
  line-height: 1;
  letter-spacing: -0.035em;
  text-wrap: balance;
}
.thesis-band h2 em {
  color: var(--cyan);
  font-style: italic;
}
.thesis-band__dek {
  max-width: 48ch;
  margin-top: 24px;
  font-family: var(--serif);
  font-size: 1.12rem;
  line-height: 1.55;
  color: var(--light-2);
}
.thesis-band__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 24px;
  margin-top: 22px;
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--light-3);
}
.thesis-band__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 30px;
}
.thesis-band__fig {
  position: relative;
  min-width: 0;
}
.thesis-band__fig img {
  width: 100%;
  border: 1px solid rgba(243, 240, 231, 0.1);
  background: var(--void);
}
.thesis-band__fig figcaption {
  margin-top: 12px;
  font-family: var(--mono);
  font-size: 9.5px;
  line-height: 1.6;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(243, 240, 231, 0.55);
}

/* --------------------------------------------------------------------------
   notes list
   -------------------------------------------------------------------------- */
.notes-section {
  background: var(--paper-2);
  border-top: 1px solid var(--hair);
  border-bottom: 1px solid var(--hair);
}
.notes-list {
  border-top: 1px solid var(--hair);
}
.note-row {
  position: relative;
  display: grid;
  grid-template-columns: 58px 150px minmax(0, 1fr) 160px;
  gap: 24px;
  align-items: baseline;
  padding: 26px 10px 26px 0;
  border-bottom: 1px solid var(--hair);
  transition: background-color 0.3s var(--ease), padding-left 0.3s var(--ease);
}
.note-row:hover {
  background: rgba(255, 255, 255, 0.28);
  padding-left: 12px;
}
.note-row__index {
  font-family: var(--mono);
  font-size: 9.5px;
  letter-spacing: 0.1em;
  color: var(--accent-ink);
}
.note-row__date {
  font-family: var(--mono);
  font-size: 9.5px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}
.note-row__main h3 {
  font-family: var(--serif);
  font-weight: 300;
  font-size: clamp(1.4rem, 2.2vw, 2rem);
  line-height: 1.12;
  letter-spacing: -0.02em;
}
.note-row__main p {
  max-width: 58ch;
  margin-top: 7px;
  font-family: var(--sans);
  font-size: 13px;
  line-height: 1.5;
  color: var(--muted);
}
.note-row__meta {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 5px;
  font-family: var(--mono);
  font-size: 9.5px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
  text-align: right;
}
.note-row__meta .arr {
  width: 14px;
  height: 14px;
  margin-top: 10px;
  color: var(--ink);
  transition: transform 0.3s var(--ease);
}
.note-row:hover .note-row__meta .arr {
  transform: translate(3px, -3px);
}

/* --------------------------------------------------------------------------
   now panel
   -------------------------------------------------------------------------- */
.now {
  padding-block: clamp(68px, 8vw, 104px);
}
.now__head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 34px;
}
.now__head .h2 {
  margin-top: 22px;
  font-size: clamp(2rem, 3.6vw, 3.6rem);
}
.now__grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  border-top: 1px solid var(--hair-2);
  border-bottom: 1px solid var(--hair-2);
}
.now__cell {
  min-width: 0;
  padding: 24px 26px 28px 0;
  border-left: 1px solid var(--hair);
}
.now__cell:first-child {
  border-left: 0;
}
.now__cell + .now__cell {
  padding-left: 26px;
}
.now__cell span {
  display: block;
  margin-bottom: 12px;
  font-family: var(--mono);
  font-size: 9.5px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted);
}
.now__cell strong {
  display: block;
  max-width: 26ch;
  font-family: var(--serif);
  font-size: 1.18rem;
  font-weight: 400;
  line-height: 1.3;
  color: var(--ink);
}
.now__cell small {
  display: block;
  margin-top: 10px;
  font-family: var(--sans);
  font-size: 11.5px;
  line-height: 1.45;
  color: var(--muted);
}

/* --------------------------------------------------------------------------
   matrix home
   -------------------------------------------------------------------------- */
.matrix-home {
  border-top: 1px solid var(--hair);
  padding-top: clamp(58px, 7vw, 92px);
}
.matrix-home__grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(14px, 2vw, 26px);
}
.matrix-home__card {
  --role: var(--accent-ink);
  display: flex;
  flex-direction: column;
  min-height: 240px;
  padding: 22px 22px 20px;
  border-top: 2px solid var(--role);
  background: rgba(255, 255, 255, 0.26);
  transition: background-color 0.3s var(--ease), transform 0.3s var(--ease);
}
.matrix-home__card[data-site="lab"] {
  --role: #0e6f7a;
}
.matrix-home__card[data-site="record"] {
  --role: #1f3a93;
}
.matrix-home__card:hover {
  background: rgba(255, 255, 255, 0.5);
  transform: translateY(-2px);
}
.matrix-home__no {
  font-family: var(--mono);
  font-size: 9.5px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--role);
}
.matrix-home__card h3 {
  margin-top: 24px;
  font-family: var(--serif);
  font-weight: 300;
  font-size: clamp(1.55rem, 2.1vw, 2rem);
  line-height: 1.05;
  letter-spacing: -0.02em;
}
.matrix-home__card p {
  max-width: 30ch;
  margin-top: 10px;
  font-family: var(--sans);
  font-size: 13px;
  line-height: 1.55;
  color: var(--muted);
}
.matrix-home__meta {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  margin-top: auto;
  padding-top: 22px;
  border-top: 1px solid var(--hair);
  font-family: var(--mono);
  font-size: 9.5px;
  letter-spacing: 0.06em;
  color: var(--ink);
}
.matrix-home__meta em {
  font-style: normal;
  letter-spacing: 0.04em;
  color: var(--role);
}

/* --------------------------------------------------------------------------
   matrix page
   -------------------------------------------------------------------------- */
.matrix-map {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px;
  margin-top: clamp(42px, 6vw, 72px);
  background: var(--hair);
  border: 1px solid var(--hair);
}
.matrix-node {
  --role: var(--accent-ink);
  display: flex;
  flex-direction: column;
  min-height: 280px;
  padding: 26px 24px 24px;
  background: var(--paper);
  border-top: 3px solid var(--role);
  transition: background-color 0.3s var(--ease);
}
.matrix-node[data-site="lab"] { --role: #0e6f7a; }
.matrix-node[data-site="record"] { --role: #1f3a93; }
.matrix-node:hover { background: var(--paper-2); }
.matrix-node__role {
  font-family: var(--mono);
  font-size: 9.5px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--role);
}
.matrix-node h2 {
  max-width: 12ch;
  margin-top: 30px;
  font-family: var(--serif);
  font-weight: 300;
  font-size: clamp(1.7rem, 2.4vw, 2.35rem);
  line-height: 1.02;
  letter-spacing: -0.025em;
}
.matrix-node p {
  max-width: 30ch;
  margin-top: 12px;
  font-family: var(--sans);
  font-size: 13px;
  line-height: 1.55;
  color: var(--muted);
}
.matrix-node__domain {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  margin-top: auto;
  padding-top: 22px;
  border-top: 1px solid var(--hair);
  font-family: var(--mono);
  font-size: 9.5px;
  letter-spacing: 0.05em;
  color: var(--ink);
}
.matrix-node__domain em {
  font-style: normal;
  color: var(--role);
}
.matrix-prose {
  max-width: 780px;
  margin: clamp(54px, 7vw, 88px) auto 0;
}
.matrix-prose h2 {
  margin-top: 2.3em;
}
.matrix-prose h2:first-child {
  margin-top: 0;
}
.matrix-table-wrap {
  overflow-x: auto;
  margin: 1.4em 0 2em;
}
.matrix-table-wrap table {
  margin: 0;
  min-width: 620px;
}
.matrix-swatches {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1px;
  margin: 1.8em 0 2.4em;
  background: var(--hair);
  border: 1px solid var(--hair);
}
.matrix-swatch {
  --role: var(--accent-ink);
  display: flex;
  flex-direction: column;
  gap: 5px;
  padding: 16px 14px 18px;
  background: var(--paper);
  border-top: 2px solid var(--role);
}
.matrix-swatch[data-site="lab"] { --role: #0e6f7a; }
.matrix-swatch[data-site="record"] { --role: #1f3a93; }
.matrix-swatch[data-site="base"] { --role: var(--ink); }
.matrix-swatch i {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--role);
  margin-bottom: 5px;
}
.matrix-swatch span {
  font-family: var(--mono);
  font-size: 9.5px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
}
.matrix-swatch b {
  font-family: var(--mono);
  font-size: 10px;
  font-weight: 500;
  color: var(--ink);
}
.matrix-swatch em {
  font-style: normal;
  font-family: var(--mono);
  font-size: 9.5px;
  color: var(--muted);
}

/* --------------------------------------------------------------------------
   footer
   -------------------------------------------------------------------------- */
.footer {
  position: relative;
  overflow: hidden;
  background: var(--void);
  color: var(--light);
  padding: clamp(64px, 8vw, 108px) 0 26px;
  isolation: isolate;
}
.footer::before {
  content: "";
  position: absolute;
  z-index: -1;
  right: -16vw;
  top: -22vw;
  width: 58vw;
  height: 58vw;
  max-width: 820px;
  max-height: 820px;
  border: 1px solid rgba(243, 240, 231, 0.07);
  border-radius: 50%;
  box-shadow: 0 0 0 9vw rgba(243, 240, 231, 0.012);
  pointer-events: none;
}
.footer__cta {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 40px;
  padding-bottom: clamp(56px, 7vw, 96px);
  border-bottom: 1px solid var(--hair-dark);
}
.footer__cta h2 {
  margin-top: 20px;
  font-family: var(--serif);
  font-weight: 300;
  font-size: clamp(2.6rem, 5.8vw, 6rem);
  line-height: 0.95;
  letter-spacing: -0.04em;
}
.footer__cta h2 em {
  color: var(--cyan);
}
.footer__email {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  margin-top: 26px;
  font-family: var(--serif);
  font-size: clamp(1.2rem, 2.2vw, 1.8rem);
  color: var(--light);
  border-bottom: 1px solid rgba(243, 240, 231, 0.35);
  padding-bottom: 6px;
  transition: color 0.25s var(--ease), border-color 0.25s var(--ease);
}
.footer__email:hover {
  color: var(--accent-light);
  border-color: var(--accent-light);
}
.footer__email .arr {
  width: 18px;
  height: 18px;
}
.footer__toplink {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--light-3);
  padding-top: 8px;
}
.footer__toplink:hover {
  color: var(--light);
}
.footer__grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1.3fr;
  gap: 32px;
  padding: 44px 0 48px;
}
.footer__col h3 {
  margin-bottom: 14px;
  font-family: var(--mono);
  font-size: 9.5px;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--light-3);
}
.footer__col a,
.footer__col p {
  display: block;
  margin-bottom: 7px;
  font-family: var(--sans);
  font-size: 12.5px;
  line-height: 1.5;
  color: var(--light-2);
}
.footer__col a:hover {
  color: var(--light);
}
.footer__col .arr {
  display: inline-block;
  vertical-align: -2px;
  margin-left: 4px;
  width: 11px;
  height: 11px;
}
.footer__col p {
  color: rgba(243, 240, 231, 0.55);
  max-width: 30ch;
}
.footer__col .mono {
  font-size: 9.5px;
  letter-spacing: 0.08em;
  color: var(--light-3);
  text-transform: none;
}
.footer__bottom {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px 24px;
  padding-top: 22px;
  border-top: 1px solid var(--hair-dark);
  font-family: var(--mono);
  font-size: 9.5px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--light-3);
}
.footer__bottom .dotsep {
  margin: 0 8px;
  color: rgba(243, 240, 231, 0.2);
}
.footer__clock {
  font-variant-numeric: tabular-nums;
}

/* --------------------------------------------------------------------------
   interior masthead
   -------------------------------------------------------------------------- */
.masthead {
  position: relative;
  overflow: hidden;
  padding: calc(var(--nav-h) + clamp(56px, 9vw, 110px)) 0 clamp(48px, 7vw, 84px);
  background: var(--void);
  color: var(--light);
  isolation: isolate;
}
.masthead::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -2;
  background-image: linear-gradient(rgba(243, 240, 231, 0.032) 1px, transparent 1px),
    linear-gradient(90deg, rgba(243, 240, 231, 0.032) 1px, transparent 1px);
  background-size: 88px 88px;
  mask-image: radial-gradient(90% 100% at 70% 10%, #000 0%, transparent 72%);
}
.masthead::after {
  content: "";
  position: absolute;
  z-index: -1;
  right: -14vw;
  top: -26vw;
  width: 60vw;
  height: 60vw;
  max-width: 860px;
  max-height: 860px;
  border: 1px solid rgba(243, 240, 231, 0.08);
  border-radius: 50%;
  box-shadow: 0 0 0 9vw rgba(243, 240, 231, 0.014),
    0 0 0 18vw rgba(243, 240, 231, 0.008);
  pointer-events: none;
}
.masthead__grid {
  display: grid;
  grid-template-columns: minmax(0, 1.55fr) minmax(0, 0.45fr);
  gap: clamp(28px, 5vw, 80px);
  align-items: end;
}
.masthead__title {
  max-width: 15ch;
  margin-top: 30px;
  font-family: var(--serif);
  font-weight: 300;
  font-size: clamp(3rem, 6.6vw, 6.6rem);
  line-height: 0.94;
  letter-spacing: -0.04em;
  text-wrap: balance;
}
.masthead__title em {
  color: var(--cyan);
}
.masthead__dek {
  max-width: 54ch;
  margin-top: 26px;
  font-family: var(--serif);
  font-size: clamp(1.05rem, 1.5vw, 1.28rem);
  line-height: 1.55;
  color: var(--light-2);
}
.masthead__side {
  padding-bottom: 8px;
  border-top: 1px solid var(--hair-dark);
  padding-top: 18px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  font-family: var(--mono);
  font-size: 10px;
  line-height: 1.7;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--light-3);
}
.masthead__side b {
  font-weight: 400;
  color: var(--light-2);
}
.masthead__side .btn {
  align-self: flex-start;
  margin-top: 8px;
}
.masthead--about .masthead__grid {
  grid-template-columns: minmax(0, 1.35fr) minmax(0, 0.65fr);
  align-items: center;
}
.masthead__mark {
  width: min(100%, 300px);
  justify-self: end;
  border: 1px solid var(--hair-dark);
}
.masthead--zh .masthead__title {
  max-width: none;
  font-family: var(--zh-serif);
  font-size: clamp(3rem, 7vw, 6.2rem);
  line-height: 1.08;
  letter-spacing: 0.02em;
}
.masthead--zh .masthead__dek {
  font-family: var(--zh-serif);
  line-height: 1.8;
  letter-spacing: 0.01em;
}

/* --------------------------------------------------------------------------
   generic page body / intro
   -------------------------------------------------------------------------- */
.page-body {
  padding-block: clamp(56px, 8vw, 104px);
}
.page-body--top {
  padding-top: calc(var(--nav-h) + clamp(40px, 6vw, 72px));
}
.intro-grid {
  display: grid;
  grid-template-columns: 170px minmax(0, 1fr) 270px;
  gap: clamp(24px, 4vw, 64px);
  align-items: start;
}
.intro-grid__label {
  padding-top: 7px;
}
.intro-grid__main {
  max-width: 720px;
}
.intro-grid__main p {
  font-family: var(--serif);
  font-size: clamp(1.12rem, 1.5vw, 1.3rem);
  line-height: 1.58;
  color: var(--ink-2);
}
.intro-grid__main p + p {
  margin-top: 1.1em;
  color: var(--muted);
}
.intro-grid__side {
  padding-top: 4px;
  border-top: 1px solid var(--hair);
}
.intro-grid__side dl {
  margin: 0;
}
.intro-grid__side dt {
  margin-top: 14px;
  font-family: var(--mono);
  font-size: 9.5px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
}
.intro-grid__side dd {
  margin: 3px 0 0;
  font-family: var(--sans);
  font-size: 12px;
  line-height: 1.45;
  color: var(--ink-2);
}
.text-link {
  color: var(--ink);
  border-bottom: 1px solid var(--hair-2);
  transition: color 0.25s var(--ease), border-color 0.25s var(--ease);
}
.text-link:hover {
  color: var(--accent-ink);
  border-color: var(--accent);
}
.text-link .arr {
  display: inline-block;
  vertical-align: -2px;
  margin-left: 5px;
  width: 13px;
  height: 13px;
}

/* --------------------------------------------------------------------------
   research page
   -------------------------------------------------------------------------- */
.research-layout {
  display: grid;
  grid-template-columns: 190px minmax(0, 1fr);
  gap: clamp(28px, 5vw, 72px);
  align-items: start;
}
.research-toc {
  position: sticky;
  top: calc(var(--nav-h) + 36px);
  padding-top: 8px;
}
.research-toc__title {
  margin-bottom: 14px;
  font-family: var(--mono);
  font-size: 9.5px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted);
}
.research-toc a {
  display: flex;
  gap: 10px;
  padding: 8px 0;
  border-top: 1px solid var(--hair);
  font-family: var(--sans);
  font-size: 12px;
  line-height: 1.35;
  color: var(--muted);
  transition: color 0.2s var(--ease);
}
.research-toc a:last-child {
  border-bottom: 1px solid var(--hair);
}
.research-toc a span {
  font-family: var(--mono);
  font-size: 9.5px;
  color: var(--accent-ink);
  padding-top: 2px;
}
.research-toc a:hover,
.research-toc a.is-active {
  color: var(--ink);
}
.research-toc a.is-active {
  font-weight: 500;
}
.research-main {
  min-width: 0;
  max-width: 900px;
}
.research-intro {
  max-width: 680px;
  padding-bottom: 26px;
  border-bottom: 1px solid var(--hair);
}
.research-intro p {
  font-family: var(--serif);
  font-size: clamp(1.2rem, 1.7vw, 1.45rem);
  line-height: 1.55;
  color: var(--ink-2);
}
.research-section {
  padding-top: clamp(56px, 7vw, 88px);
  scroll-margin-top: calc(var(--nav-h) + 30px);
}
.research-section > .lab {
  margin-top: 32px;
}
.research-section__head {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: clamp(24px, 4vw, 64px);
  align-items: end;
  padding-bottom: 28px;
  border-bottom: 1px solid var(--hair);
}
.research-section__no {
  display: block;
  margin-bottom: 14px;
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.16em;
  color: var(--accent-ink);
}
.research-section__head h2 {
  font-family: var(--serif);
  font-weight: 300;
  font-size: clamp(2.2rem, 3.8vw, 3.8rem);
  line-height: 1;
  letter-spacing: -0.03em;
}
.research-section__head p {
  max-width: 46ch;
  font-family: var(--serif);
  font-size: 1.05rem;
  line-height: 1.55;
  color: var(--muted);
}
.research-section__body {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 230px;
  gap: clamp(24px, 4vw, 56px);
  padding-top: 30px;
  align-items: start;
}
.research-section__body .prose {
  max-width: 640px;
}
.research-section__notes {
  border-top: 1px solid var(--hair);
  padding-top: 14px;
  font-family: var(--sans);
  font-size: 11.5px;
  line-height: 1.55;
  color: var(--muted);
}
.research-section__notes h3 {
  margin-bottom: 10px;
  font-family: var(--mono);
  font-size: 9.5px;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink);
}
.research-section__notes li {
  position: relative;
  padding-left: 12px;
  margin-bottom: 8px;
}
.research-section__notes li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.65em;
  width: 3px;
  height: 3px;
  border-radius: 50%;
  background: var(--accent);
}

/* lab panel (dark interactive figure) */
.lab {
  margin: 0;
  background: var(--void);
  border: 1px solid rgba(8, 9, 11, 0.9);
  border-radius: 2px;
  box-shadow: var(--shadow);
  overflow: hidden;
  color: var(--light);
}
.lab + .lab {
  margin-top: 28px;
}
.lab__bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 11px 16px;
  border-bottom: 1px solid var(--hair-dark);
  font-family: var(--mono);
  font-size: 9.5px;
  line-height: 1.4;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(243, 240, 231, 0.55);
}
.lab__bar b {
  font-weight: 400;
  color: var(--light-2);
}
.lab__bar .lab__id {
  color: var(--accent-light);
}
.lab__stage {
  position: relative;
  aspect-ratio: 16 / 10;
  background: var(--void);
}
.lab__stage canvas {
  width: 100%;
  height: 100%;
  cursor: crosshair;
  touch-action: pan-y;
}
.lab__stage--tall {
  aspect-ratio: 4 / 3.4;
}
.lab__controls {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px 18px;
  padding: 14px 16px;
  border-top: 1px solid var(--hair-dark);
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(243, 240, 231, 0.55);
}
.lab__controls label {
  flex: 0 0 auto;
}
.lab__controls output {
  min-width: 4.2em;
  font-family: var(--mono);
  color: var(--light);
  font-size: 10px;
}
.lab__controls .btn-lab {
  margin-left: 0;
  padding: 7px 10px;
  border: 1px solid var(--hair-dark-2);
  color: var(--light-2);
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  transition: border-color 0.2s var(--ease), color 0.2s var(--ease);
}
.lab__spacer {
  flex: 1 1 auto;
}
.lab__controls .btn-lab:hover {
  border-color: var(--accent-light);
  color: var(--light);
}
.lab__foot {
  padding: 13px 16px 15px;
  border-top: 1px solid var(--hair-dark);
  font-family: var(--sans);
  font-size: 12px;
  line-height: 1.5;
  color: rgba(243, 240, 231, 0.62);
}
.lab__foot b {
  color: var(--light-2);
  font-weight: 500;
}
.figure-caption {
  margin-top: 14px;
  font-family: var(--sans);
  font-size: 11.5px;
  line-height: 1.55;
  color: var(--muted);
}
.figure-caption b {
  font-family: var(--mono);
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink);
  margin-right: 8px;
}
.figure-scroll {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: thin;
}
.figure-scroll img {
  width: 100%;
}
.figure-scroll picture {
  display: block;
}
@media (max-width: 700px) {
  .figure-scroll img {
    width: 760px;
    max-width: none;
  }
  .note-figure .figure-scroll img,
  .paper-body .figure-scroll img {
    width: 760px;
    max-width: none;
  }
  .note-figure .figure-scroll picture img,
  .paper-body .figure-scroll picture img {
    width: 100%;
  }
}

/* range */
.range {
  --p: 50%;
  flex: 1 1 150px;
  min-width: 120px;
  height: 18px;
  margin: 0;
  -webkit-appearance: none;
  appearance: none;
  background: transparent;
  cursor: pointer;
}
.range::-webkit-slider-runnable-track {
  height: 1px;
  background: linear-gradient(
    to right,
    var(--accent-light) 0 var(--p),
    rgba(243, 240, 231, 0.2) var(--p) 100%
  );
}
.range::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 9px;
  height: 9px;
  margin-top: -4px;
  border-radius: 50%;
  background: var(--accent-light);
  box-shadow: 0 0 0 3px rgba(255, 106, 61, 0.14);
}
.range::-moz-range-track {
  height: 1px;
  background: rgba(243, 240, 231, 0.2);
}
.range::-moz-range-progress {
  height: 1px;
  background: var(--accent-light);
}
.range::-moz-range-thumb {
  width: 9px;
  height: 9px;
  border: 0;
  border-radius: 50%;
  background: var(--accent-light);
}

/* --------------------------------------------------------------------------
   publications
   -------------------------------------------------------------------------- */
.pub-block {
  display: grid;
  grid-template-columns: 170px minmax(0, 1fr);
  gap: clamp(24px, 4vw, 64px);
  padding-block: clamp(48px, 6vw, 80px);
  border-top: 1px solid var(--hair);
}
.pub-block__label {
  font-family: var(--mono);
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
  padding-top: 8px;
}
.pub-list {
  border-top: 1px solid var(--hair-2);
}
.pub-item {
  padding: 28px 0 30px;
  border-bottom: 1px solid var(--hair);
  display: grid;
  grid-template-columns: minmax(0, 1fr) 180px;
  gap: 24px;
}
.pub-item__meta {
  margin-bottom: 10px;
  font-family: var(--mono);
  font-size: 9.5px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent-ink);
}
.pub-item h3 {
  max-width: 24ch;
  font-family: var(--serif);
  font-weight: 300;
  font-size: clamp(1.6rem, 2.6vw, 2.4rem);
  line-height: 1.08;
  letter-spacing: -0.02em;
}
.pub-item h3 a {
  transition: color 0.2s var(--ease);
}
.pub-item h3 a:hover {
  color: var(--accent-ink);
}
.pub-item__cite {
  max-width: 62ch;
  margin-top: 12px;
  font-family: var(--sans);
  font-size: 12px;
  line-height: 1.55;
  color: var(--muted);
}
.pub-item__abstract {
  max-width: 64ch;
  margin-top: 12px;
  font-family: var(--serif);
  font-size: 1.02rem;
  line-height: 1.55;
  color: var(--ink-2);
}
.pub-item__side {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 8px;
  font-family: var(--mono);
  font-size: 9.5px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
  text-align: right;
}
.pub-item__side a {
  color: var(--ink);
  border-bottom: 1px solid var(--hair-2);
  padding-bottom: 2px;
}
.pub-item__side a:hover {
  color: var(--accent-ink);
  border-color: var(--accent);
}
.pub-item--compact {
  grid-template-columns: minmax(0, 1fr) 150px;
  padding: 22px 0;
}
.pub-item--compact h3 {
  max-width: none;
  font-size: clamp(1.45rem, 2vw, 1.9rem);
}
.bibtex {
  margin-top: 14px;
  border: 1px solid var(--hair);
  background: rgba(255, 255, 255, 0.3);
}
.bibtex summary {
  padding: 10px 12px;
  font-family: var(--mono);
  font-size: 9.5px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
  cursor: pointer;
}
.bibtex pre {
  margin: 0;
  padding: 14px;
  border-top: 1px solid var(--hair);
  overflow-x: auto;
  font-family: var(--mono);
  font-size: 11px;
  line-height: 1.6;
  color: var(--ink-2);
}
.pub-empty {
  padding: 30px 0;
  font-family: var(--serif);
  font-size: 1.1rem;
  color: var(--muted);
}

/* --------------------------------------------------------------------------
   prose (notes, paper, research)
   -------------------------------------------------------------------------- */
.prose {
  font-family: var(--serif);
  font-size: clamp(1.06rem, 1.25vw, 1.18rem);
  line-height: 1.7;
  color: var(--ink);
}
.prose > * + * {
  margin-top: 1.25em;
}
.prose h2 {
  margin-top: 2.4em;
  margin-bottom: 0.55em;
  font-family: var(--serif);
  font-weight: 300;
  font-size: clamp(1.85rem, 2.8vw, 2.6rem);
  line-height: 1.05;
  letter-spacing: -0.025em;
}
.prose h3 {
  margin-top: 2em;
  margin-bottom: 0.4em;
  font-family: var(--sans);
  font-weight: 500;
  font-size: 0.9rem;
  line-height: 1.4;
  letter-spacing: 0.02em;
  color: var(--ink);
}
.prose h2 + h3 {
  margin-top: 1.2em;
}
.prose strong {
  font-weight: 600;
}
.prose em {
  font-style: italic;
}
.prose a {
  color: inherit;
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-decoration-color: rgba(194, 68, 28, 0.42);
  text-underline-offset: 0.18em;
  transition: color 0.2s var(--ease), text-decoration-color 0.2s var(--ease);
}
.prose a:hover {
  color: var(--accent-ink);
  text-decoration-color: var(--accent);
}
.prose a .arr {
  display: inline-block;
  vertical-align: -2px;
  margin-left: 4px;
  width: 13px;
  height: 13px;
}
.prose ul,
.prose ol {
  padding-left: 1.15em;
}
.prose ul {
  list-style: none;
}
.prose ul > li {
  position: relative;
  padding-left: 0.15em;
  margin-bottom: 0.5em;
}
.prose ul > li::before {
  content: "";
  position: absolute;
  left: -0.95em;
  top: 0.72em;
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--accent);
}
.prose ol {
  list-style: decimal;
}
.prose ol > li {
  padding-left: 0.3em;
  margin-bottom: 0.5em;
}
.prose ol > li::marker {
  font-family: var(--mono);
  font-size: 0.72em;
  color: var(--accent-ink);
}
.reading-list {
  font-size: 0.98rem;
}
.reading-list > li {
  margin-bottom: 0.8em;
  line-height: 1.55;
}
/* dated corrections: a revision list on notes, an inline correction, an erratum box */
.revisions {
  list-style: none;
  margin: 0 0 2.4em;
  padding: 0;
  font-size: 0.94rem;
  line-height: 1.6;
  color: var(--ink-2);
}
.revisions > li {
  margin: 0;
  padding: 0.85em 0;
  border-top: 1px solid var(--hair);
}
.revisions > li:last-child {
  border-bottom: 1px solid var(--hair);
}
.prose ul.revisions {
  padding-left: 0;
}
.prose ul.revisions > li {
  margin-bottom: 0;
  padding-left: 0;
}
.prose ul.revisions > li::before {
  content: none;
}
.revisions b,
.correction b,
.erratum h2 {
  font-family: var(--mono);
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent-ink);
}
.correction,
.erratum {
  margin: 2em 0;
  padding: 1.1em 1.25em;
  border-left: 2px solid var(--accent);
  background: var(--paper-2);
  font-size: 0.94rem;
  line-height: 1.6;
  color: var(--ink-2);
}
.erratum {
  max-width: 820px;
  margin: 24px auto 0;
  padding: 22px 28px;
}
.erratum h2 {
  margin: 0 0 0.9em;
}
.erratum p {
  margin: 0 0 0.8em;
}
.erratum ol {
  margin: 0 0 0.9em;
  padding-left: 1.5em;
  list-style: decimal;
}
.erratum li {
  margin-bottom: 0.7em;
  padding-left: 0.2em;
}
.erratum a:not(.erratum-mark) {
  color: var(--accent-ink);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.18em;
}
.erratum p:last-child,
.erratum li:last-child {
  margin-bottom: 0;
}
.paper-edition,
.cite-files {
  margin-top: 14px;
  font-family: var(--mono);
  font-size: 0.72rem;
  letter-spacing: 0.04em;
  color: var(--muted);
}
.paper-edition a,
.cite-files a {
  color: var(--accent-ink);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.2em;
}
.erratum-mark {
  font-family: var(--mono);
  font-size: 0.82em;
  color: var(--accent-ink);
  text-decoration: none;
  vertical-align: 0.25em;
}
.prose blockquote {
  margin: 2em 0;
  padding: 4px 0 4px 24px;
  border-left: 1px solid var(--accent);
  font-size: 1.15em;
  font-style: italic;
  line-height: 1.55;
  color: var(--ink-2);
}
.prose code {
  font-family: var(--mono);
  font-size: 0.82em;
  background: rgba(20, 22, 20, 0.06);
  padding: 0.14em 0.35em;
  border-radius: 2px;
}
.prose pre {
  margin: 2em 0;
  padding: 20px 22px;
  background: var(--void);
  color: #d9e8f2;
  overflow-x: auto;
  font-family: var(--mono);
  font-size: 12px;
  line-height: 1.7;
  border-radius: 2px;
}
.prose pre code {
  background: none;
  padding: 0;
  font-size: inherit;
  color: inherit;
}
.prose figure {
  margin: 2.4em 0;
}
.prose figure img,
.prose figure svg {
  width: 100%;
  border: 1px solid var(--hair);
  background: transparent;
}
.prose figcaption {
  margin-top: 10px;
  font-family: var(--sans);
  font-size: 11.5px;
  line-height: 1.55;
  color: var(--muted);
}
.prose figcaption b {
  font-family: var(--mono);
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink);
  margin-right: 6px;
}
.prose table {
  width: 100%;
  margin: 2em 0;
  border-collapse: collapse;
  font-family: var(--sans);
  font-size: 12px;
  line-height: 1.45;
}
.prose table caption {
  caption-side: top;
  padding-bottom: 8px;
  text-align: left;
  font-family: var(--mono);
  font-size: 9.5px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
}
.prose th {
  padding: 9px 10px 9px 0;
  border-top: 1px solid var(--ink);
  border-bottom: 1px solid var(--hair-2);
  text-align: left;
  font-family: var(--mono);
  font-size: 9.5px;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink);
}
.prose td {
  padding: 9px 10px 9px 0;
  border-bottom: 1px solid var(--hair);
  vertical-align: top;
  color: var(--ink-2);
}
.prose td:first-child {
  font-weight: 500;
}
.prose .math-display {
  margin: 1.8em 0;
  padding: 4px 0;
  overflow-x: auto;
  overflow-y: hidden;
  font-size: 1.02em;
  text-align: center;
  color: var(--ink);
}
.prose .katex-display {
  margin: 0.3em 0;
}
.prose .katex {
  font-size: 1.04em;
}
.prose hr {
  margin: 2.2em 0;
}
.sidenote {
  float: right;
  clear: right;
  width: 15rem;
  margin: 0.4rem -19rem 1.5rem 2rem;
  padding-top: 9px;
  border-top: 1px solid var(--hair-2);
  font-family: var(--sans);
  font-size: 11.5px;
  line-height: 1.55;
  color: var(--muted);
}
.sidenote b {
  font-family: var(--mono);
  font-size: 9.5px;
  font-weight: 500;
  letter-spacing: 0.08em;
  color: var(--accent-ink);
  margin-right: 4px;
}
.fn-ref {
  font-family: var(--mono);
  font-size: 0.62em;
  color: var(--accent-ink);
  vertical-align: super;
  line-height: 0;
  margin-left: 2px;
}

/* note index */
.notes-hero {
  padding-bottom: 20px;
}
.note-index {
  counter-reset: note;
  border-top: 1px solid var(--hair-2);
}
.note-index__row {
  counter-increment: note;
  display: grid;
  grid-template-columns: 42px 130px minmax(0, 1fr) 140px;
  gap: 24px;
  align-items: baseline;
  padding: 28px 0;
  border-bottom: 1px solid var(--hair);
  transition: background-color 0.3s var(--ease), padding-left 0.3s var(--ease);
}
.note-index__row:hover {
  background: rgba(255, 255, 255, 0.24);
  padding-left: 10px;
}
.note-index__row::before {
  content: counter(note, decimal-leading-zero);
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.1em;
  color: var(--accent-ink);
}
.note-index__date {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: var(--muted);
}
.note-index__main h2 {
  font-family: var(--serif);
  font-weight: 300;
  font-size: clamp(1.5rem, 2.4vw, 2.15rem);
  line-height: 1.1;
  letter-spacing: -0.02em;
}
.note-index__main p {
  max-width: 60ch;
  margin-top: 8px;
  font-family: var(--sans);
  font-size: 13px;
  line-height: 1.5;
  color: var(--muted);
}
.note-index__meta {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 6px;
  font-family: var(--mono);
  font-size: 9.5px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
  text-align: right;
}
.note-index__meta .arr {
  width: 14px;
  height: 14px;
  margin-top: 8px;
  color: var(--ink);
}

/* --------------------------------------------------------------------------
   note article
   -------------------------------------------------------------------------- */
.page-paper {
  background: var(--paper);
}
.read-progress {
  position: fixed;
  z-index: 130;
  top: var(--nav-h);
  left: 0;
  height: 1px;
  width: 100%;
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: left;
  pointer-events: none;
}
.note-head {
  padding: calc(var(--nav-h) + clamp(38px, 6vw, 72px)) 0 0;
}
.note-head__back {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 34px;
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
  transition: color 0.2s var(--ease);
}
.note-head__back:hover {
  color: var(--ink);
}
.note-head .kicker {
  margin-bottom: 22px;
}
.note-head h1 {
  max-width: 18ch;
  font-family: var(--serif);
  font-weight: 300;
  font-size: clamp(2.8rem, 6.2vw, 6rem);
  line-height: 0.98;
  letter-spacing: -0.04em;
  text-wrap: balance;
}
.note-head__dek {
  max-width: 52ch;
  margin-top: 24px;
  font-family: var(--serif);
  font-size: clamp(1.1rem, 1.55vw, 1.32rem);
  line-height: 1.55;
  color: var(--muted);
}
.note-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 22px;
  margin-top: 30px;
  padding-top: 14px;
  border-top: 1px solid var(--hair);
  font-family: var(--mono);
  font-size: 9.5px;
  letter-spacing: 0.11em;
  text-transform: uppercase;
  color: var(--muted);
}
.note-meta .author {
  color: var(--ink);
}
.note-figure {
  margin-top: clamp(36px, 5vw, 60px);
}
.note-figure img {
  width: 100%;
  border: 1px solid var(--hair);
}
.note-figure figcaption {
  margin-top: 12px;
  font-family: var(--sans);
  font-size: 11.5px;
  line-height: 1.55;
  color: var(--muted);
}
.note-figure figcaption b {
  font-family: var(--mono);
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink);
  margin-right: 6px;
}
.note-body {
  position: relative;
  max-width: 700px;
  margin: clamp(44px, 6vw, 72px) auto 0;
}
.note-body > p:first-of-type::first-letter {
  float: left;
  margin: 0.08em 0.1em 0 0;
  font-family: var(--serif);
  font-size: 4.2em;
  line-height: 0.76;
  color: var(--accent-ink);
}
.note-body .math-display {
  font-size: 1.05em;
}
.note-end {
  max-width: 700px;
  margin: 52px auto 0;
  padding-top: 18px;
  border-top: 1px solid var(--hair-2);
  display: flex;
  justify-content: space-between;
  gap: 20px;
  font-family: var(--mono);
  font-size: 9.5px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
}
.note-nav {
  max-width: 980px;
  margin: clamp(48px, 7vw, 84px) auto 0;
  display: grid;
  grid-template-columns: 1fr 1fr;
  border-top: 1px solid var(--hair-2);
}
.note-nav a {
  padding: 24px 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.note-nav a + a {
  border-left: 1px solid var(--hair);
  padding-left: 28px;
  text-align: right;
  align-items: flex-end;
}
.note-nav span {
  font-family: var(--mono);
  font-size: 9.5px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
}
.note-nav .arr {
  display: inline-block;
  vertical-align: -2px;
  margin: 0 3px;
}
.note-nav strong {
  font-family: var(--serif);
  font-size: clamp(1.1rem, 1.8vw, 1.45rem);
  font-weight: 300;
  line-height: 1.2;
}

/* --------------------------------------------------------------------------
   paper (thesis)
   -------------------------------------------------------------------------- */
.paper-head {
  padding: calc(var(--nav-h) + clamp(38px, 6vw, 70px)) 0 0;
}
.paper-head .wrap {
  max-width: 980px;
}
.paper-head__top {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  align-items: baseline;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--hair-2);
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
}
.paper-head h1 {
  max-width: 20ch;
  margin-top: clamp(26px, 4vw, 46px);
  font-family: var(--serif);
  font-weight: 300;
  font-size: clamp(2.5rem, 5.4vw, 5.2rem);
  line-height: 1.02;
  letter-spacing: -0.035em;
  text-wrap: balance;
}
.paper-authors {
  margin-top: 26px;
  font-family: var(--serif);
  font-size: 1.15rem;
  color: var(--ink);
}
.paper-affil {
  margin-top: 5px;
  font-family: var(--sans);
  font-size: 12px;
  line-height: 1.5;
  color: var(--muted);
}
.paper-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 24px;
}
.abstract {
  margin: clamp(36px, 5vw, 56px) auto 0;
  padding: 26px 28px;
  background: var(--paper-2);
  border-left: 2px solid var(--accent);
  max-width: 820px;
}
.abstract h2 {
  margin-bottom: 12px;
  font-family: var(--mono);
  font-size: 9.5px;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--accent-ink);
}
.abstract p {
  font-family: var(--serif);
  font-size: 1.05rem;
  line-height: 1.6;
  color: var(--ink-2);
}
.abstract p + p {
  margin-top: 0.8em;
}
.index-terms {
  font-family: var(--sans) !important;
  font-size: 11.5px !important;
  color: var(--muted) !important;
}
.paper-layout {
  display: grid;
  grid-template-columns: 180px minmax(0, 760px);
  gap: clamp(32px, 5vw, 72px);
  justify-content: center;
  padding-top: clamp(48px, 6vw, 76px);
}
.paper-toc {
  position: sticky;
  top: calc(var(--nav-h) + 30px);
  align-self: start;
  padding-top: 6px;
}
.paper-toc h2 {
  margin-bottom: 12px;
  font-family: var(--mono);
  font-size: 9.5px;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted);
}
.paper-toc a {
  display: block;
  padding: 7px 0;
  border-top: 1px solid var(--hair);
  font-family: var(--sans);
  font-size: 11.5px;
  line-height: 1.35;
  color: var(--muted);
  transition: color 0.2s var(--ease);
}
.paper-toc a:last-child {
  border-bottom: 1px solid var(--hair);
}
.paper-toc a:hover,
.paper-toc a.is-active {
  color: var(--ink);
}
.paper-body {
  min-width: 0;
  padding-top: 6px;
  counter-reset: section;
}
.paper-body h2 {
  padding-top: 0.2em;
  font-family: var(--serif);
  font-size: clamp(1.6rem, 2.3vw, 2.1rem);
  font-weight: 400;
  letter-spacing: -0.01em;
  border-top: 1px solid var(--hair-2);
  padding-top: 20px;
}
.paper-body h2:first-child {
  border-top: 0;
  padding-top: 0;
  margin-top: 0;
}
.paper-body h3 {
  font-family: var(--sans);
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.01em;
  color: var(--ink);
}
.paper-body figure {
  margin: 2.2em 0;
}
.paper-body figure img {
  border: 1px solid var(--hair);
  background: transparent;
}
.paper-refs {
  max-width: 760px;
  margin: 48px auto 0;
  padding-top: 18px;
  border-top: 1px solid var(--hair-2);
}
.paper-refs h2 {
  margin-bottom: 14px;
  font-family: var(--mono);
  font-size: 9.5px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted);
}
.paper-refs ol {
  padding-left: 1.4em;
  list-style: decimal;
  font-family: var(--sans);
  font-size: 11.5px;
  line-height: 1.55;
  color: var(--muted);
}
.paper-refs li {
  margin-bottom: 6px;
  padding-left: 0.3em;
}
.paper-refs li::marker {
  font-family: var(--mono);
  font-size: 0.8em;
  color: var(--accent-ink);
}
.cite-box {
  max-width: 760px;
  margin: 44px auto 0;
  padding: 26px 28px;
  background: var(--paper-2);
  border: 1px solid var(--hair);
}
.cite-box h2 {
  margin-bottom: 14px;
  font-family: var(--mono);
  font-size: 9.5px;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink);
}
.cite-box p {
  font-family: var(--sans);
  font-size: 11.5px;
  line-height: 1.6;
  color: var(--muted);
  margin-bottom: 8px;
}
.cite-box p b {
  font-family: var(--mono);
  font-size: 9.5px;
  letter-spacing: 0.08em;
  color: var(--ink);
  margin-right: 6px;
}
.cite-box pre {
  margin: 14px 0 0;
  padding: 16px;
  background: var(--paper);
  border: 1px solid var(--hair);
  overflow-x: auto;
  font-family: var(--mono);
  font-size: 11px;
  line-height: 1.6;
  color: var(--ink-2);
}
.copy-btn {
  margin-top: 8px;
  padding: 7px 10px;
  border: 1px solid var(--hair-2);
  font-family: var(--mono);
  font-size: 9.5px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-2);
  transition: background-color 0.2s var(--ease), color 0.2s var(--ease);
}
.copy-btn:hover {
  background: var(--ink);
  color: var(--paper);
}

/* --------------------------------------------------------------------------
   CV
   -------------------------------------------------------------------------- */
.cv-wrap {
  max-width: 980px;
  margin-inline: auto;
}
.cv-header {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 24px;
  align-items: end;
  padding-bottom: 22px;
  border-bottom: 2px solid var(--ink);
}
.cv-header h1 {
  font-family: var(--serif);
  font-weight: 300;
  font-size: clamp(2.6rem, 4.4vw, 4.2rem);
  line-height: 0.95;
  letter-spacing: -0.03em;
}
.cv-header__meta {
  font-family: var(--mono);
  font-size: 10px;
  line-height: 1.7;
  letter-spacing: 0.08em;
  text-align: right;
  color: var(--muted);
}
.cv-header__meta b {
  font-weight: 400;
  color: var(--ink);
}
.cv-lead {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 16px;
  padding: 16px 0;
  border-bottom: 1px solid var(--hair);
  font-family: var(--sans);
  font-size: 11.5px;
  color: var(--muted);
}
.cv-section {
  display: grid;
  grid-template-columns: 150px minmax(0, 1fr);
  gap: 24px 44px;
  padding: 30px 0;
  border-bottom: 1px solid var(--hair);
}
.cv-section > h2 {
  font-family: var(--mono);
  font-size: 9.5px;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--accent-ink);
  padding-top: 4px;
}
.cv-entry + .cv-entry {
  margin-top: 22px;
}
.cv-entry__head {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 6px 18px;
  align-items: baseline;
}
.cv-entry h3 {
  font-family: var(--serif);
  font-weight: 400;
  font-size: 1.25rem;
  line-height: 1.2;
  letter-spacing: -0.01em;
}
.cv-entry__date {
  font-family: var(--mono);
  font-size: 9.5px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
  white-space: nowrap;
}
.cv-entry__sub {
  margin-top: 3px;
  font-family: var(--sans);
  font-size: 11.5px;
  color: var(--muted);
}
.cv-entry ul {
  margin-top: 8px;
}
.cv-entry li {
  position: relative;
  padding-left: 14px;
  margin-bottom: 4px;
  font-family: var(--sans);
  font-size: 12px;
  line-height: 1.5;
  color: var(--ink-2);
}
.cv-entry li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.68em;
  width: 3px;
  height: 3px;
  border-radius: 50%;
  background: var(--accent);
}
.cv-table {
  width: 100%;
  border-collapse: collapse;
  font-family: var(--sans);
  font-size: 12px;
}
.cv-table th {
  width: 120px;
  padding: 7px 0;
  border-bottom: 1px solid var(--hair);
  text-align: left;
  vertical-align: top;
  font-family: var(--mono);
  font-size: 9.5px;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}
.cv-table td {
  padding: 7px 0;
  border-bottom: 1px solid var(--hair);
  line-height: 1.5;
  color: var(--ink-2);
}
.cv-note {
  margin-top: 22px;
  font-family: var(--mono);
  font-size: 9.5px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}

/* --------------------------------------------------------------------------
   about
   -------------------------------------------------------------------------- */
.about-layout {
  display: grid;
  grid-template-columns: 310px minmax(0, 1fr);
  gap: clamp(34px, 6vw, 92px);
  align-items: start;
}
.about-card {
  position: sticky;
  top: calc(var(--nav-h) + 30px);
  background: var(--paper-2);
  border: 1px solid var(--hair);
  padding: 22px;
}
.about-card img {
  width: 100%;
  border: 1px solid var(--hair-dark);
  margin-bottom: 18px;
}
.about-card dl {
  margin: 0;
}
.about-card dt {
  margin-top: 12px;
  font-family: var(--mono);
  font-size: 9.5px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
}
.about-card dd {
  margin: 3px 0 0;
  font-family: var(--sans);
  font-size: 11.5px;
  line-height: 1.45;
  color: var(--ink-2);
}
.about-main {
  max-width: 720px;
}
.about-main h2 {
  margin-top: 2.2em;
  margin-bottom: 0.55em;
  font-family: var(--serif);
  font-weight: 300;
  font-size: clamp(1.9rem, 2.8vw, 2.6rem);
  line-height: 1.05;
  letter-spacing: -0.02em;
}
.about-main h2:first-child {
  margin-top: 0;
}
.about-main p {
  font-family: var(--serif);
  font-size: 1.08rem;
  line-height: 1.65;
  color: var(--ink-2);
}
.about-main p + p {
  margin-top: 1em;
}
.about-principles {
  margin-top: 28px;
  border-top: 1px solid var(--hair-2);
}
.about-principle {
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr);
  gap: 18px;
  padding: 18px 0;
  border-bottom: 1px solid var(--hair);
}
.about-principle span {
  font-family: var(--mono);
  font-size: 10px;
  color: var(--accent-ink);
  padding-top: 4px;
}
.about-principle h3 {
  font-family: var(--sans);
  font-size: 13px;
  font-weight: 600;
  margin-bottom: 4px;
}
.about-principle p {
  font-size: 11.5px;
  line-height: 1.55;
  color: var(--muted);
  margin: 0;
}
.about-contact {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 24px;
  margin-top: 24px;
  padding-top: 16px;
  border-top: 1px solid var(--hair-2);
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.about-contact a {
  color: var(--ink);
  border-bottom: 1px solid var(--hair-2);
  padding-bottom: 2px;
}
.about-contact a:hover {
  color: var(--accent-ink);
  border-color: var(--accent);
}

/* --------------------------------------------------------------------------
   Chinese page
   -------------------------------------------------------------------------- */
.page-zh {
  background: var(--paper);
  font-family: var(--sans);
}
.zh-body {
  max-width: 760px;
  margin-inline: auto;
  font-family: var(--zh-serif);
  font-size: 1.05rem;
  line-height: 1.95;
  color: var(--ink-2);
}
.zh-body h2 {
  margin: 2.2em 0 0.7em;
  font-family: var(--zh-serif);
  font-weight: 600;
  font-size: 1.5rem;
  letter-spacing: 0.01em;
  color: var(--ink);
  padding-top: 14px;
  border-top: 1px solid var(--hair);
}
.zh-body h2:first-child {
  margin-top: 0;
  border-top: 0;
}
.zh-body p + p {
  margin-top: 0.9em;
}
.zh-body strong {
  font-weight: 600;
  color: var(--ink);
}
.zh-body a {
  color: var(--accent-ink);
  border-bottom: 1px solid rgba(194, 68, 28, 0.35);
  padding-bottom: 1px;
}
.zh-body ul {
  margin-top: 0.8em;
}
.zh-body li {
  position: relative;
  padding-left: 1.1em;
  margin-bottom: 0.4em;
}
.zh-body li::before {
  content: "—";
  position: absolute;
  left: 0;
  color: var(--accent);
}
.zh-note {
  margin-top: 40px;
  padding-top: 14px;
  border-top: 1px solid var(--hair);
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.08em;
  color: var(--muted);
}
.zh-note .arr {
  display: inline-block;
  vertical-align: -2px;
  margin-left: 4px;
}

/* --------------------------------------------------------------------------
   404
   -------------------------------------------------------------------------- */
.page-404 {
  background: var(--void);
  color: var(--light);
  min-height: 100svh;
  display: flex;
  flex-direction: column;
}
.error {
  flex: 1;
  position: relative;
  display: flex;
  align-items: center;
  overflow: hidden;
  padding: calc(var(--nav-h) + 40px) 0 60px;
}
.error__grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 0.9fr);
  gap: 40px;
  align-items: center;
  width: 100%;
}
.error__code {
  margin-top: 18px;
  font-family: var(--serif);
  font-weight: 300;
  font-size: clamp(6rem, 18vw, 16rem);
  line-height: 0.8;
  letter-spacing: -0.06em;
  color: var(--paper);
}
.error__code span {
  color: var(--accent-light);
}
.error h1 {
  margin-top: 24px;
  font-family: var(--serif);
  font-weight: 300;
  font-size: clamp(1.8rem, 3vw, 2.6rem);
  line-height: 1.1;
  letter-spacing: -0.02em;
}
.error p {
  max-width: 40ch;
  margin-top: 14px;
  font-family: var(--sans);
  font-size: 13px;
  line-height: 1.6;
  color: var(--light-3);
}
.error__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 26px;
}
.error__fig img {
  width: 100%;
  opacity: 0.8;
}

/* --------------------------------------------------------------------------
   reveal / motion
   -------------------------------------------------------------------------- */
.js .reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 0.9s var(--ease), transform 0.9s var(--ease);
  transition-delay: var(--d, 0s);
}
.js .reveal.is-in {
  opacity: 1;
  transform: none;
}
@keyframes rise {
  from {
    opacity: 0;
    transform: translateY(26px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}
@keyframes clipUp {
  from {
    opacity: 0;
    clip-path: inset(0 0 100% 0);
    transform: translateY(18px);
  }
  to {
    opacity: 1;
    clip-path: inset(0 0 -10% 0);
    transform: none;
  }
}
.js .anim {
  opacity: 0;
}
.js .anim.is-ready {
  animation: rise 0.95s var(--ease) forwards;
  animation-delay: var(--d, 0s);
}
.js .display.is-ready {
  animation: clipUp 1.15s var(--ease) forwards;
  animation-delay: var(--d, 0s);
}
.hero__canvas {
  opacity: 0;
  transition: opacity 1.4s var(--ease) 0.2s;
}
.hero__canvas.is-ready {
  opacity: 1;
}
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }
  .js .reveal,
  .js .anim {
    opacity: 1 !important;
    transform: none !important;
    clip-path: none !important;
  }
  .hero__canvas {
    opacity: 1;
  }
}

/* --------------------------------------------------------------------------
   responsive
   -------------------------------------------------------------------------- */
@media (max-width: 1280px) {
  .sidenote {
    float: none;
    width: auto;
    margin: 1.5rem 0;
    padding: 12px 14px;
    background: var(--paper-2);
    border-top: 0;
    border-left: 2px solid var(--accent);
  }
  .sidenote b {
    display: inline;
  }
}
@media (max-width: 1180px) {
  .nav__clock {
    display: none;
  }
  .note-row {
    grid-template-columns: 46px 128px minmax(0, 1fr) 120px;
    gap: 18px;
  }
  .sidenote {
    float: none;
    width: auto;
    margin: 1.5rem 0;
    padding: 12px 14px;
    background: var(--paper-2);
    border-top: 0;
    border-left: 2px solid var(--accent);
  }
  .sidenote b {
    display: inline;
  }
  .research-section__body {
    grid-template-columns: minmax(0, 1fr);
  }
  .research-section__notes {
    max-width: 640px;
  }
  .paper-layout {
    grid-template-columns: minmax(0, 760px);
  }
  .paper-toc {
    display: none;
  }
  .intro-grid {
    grid-template-columns: 140px minmax(0, 1fr);
  }
  .intro-grid__side {
    grid-column: 2;
    max-width: 420px;
  }
}
@media (max-width: 980px) {
  .hero__canvas {
    width: 100%;
    opacity: 0.68;
  }
  .hero__veil {
    background:
      radial-gradient(110% 80% at 20% 40%, rgba(8, 9, 11, 0.92) 0%, rgba(8, 9, 11, 0.62) 44%, rgba(8, 9, 11, 0.55) 100%),
      linear-gradient(180deg, rgba(8, 9, 11, 0.5) 0%, rgba(8, 9, 11, 0.12) 30%, rgba(8, 9, 11, 0.7) 100%);
  }
  .hero__instrument {
    display: none;
  }
  .hero__hint {
    display: none;
  }
  .hero__caption {
    display: none;
  }
  .threads {
    grid-template-columns: 1fr;
    gap: 34px;
  }
  .thread {
    display: grid;
    grid-template-columns: 0.9fr 1.1fr;
    gap: 24px;
    align-items: center;
  }
  .thread__body {
    padding-top: 0;
  }
  .thread__fig {
    aspect-ratio: 4 / 3;
  }
  .thesis-band__grid {
    grid-template-columns: 1fr;
    gap: 34px;
  }
  .thesis-band__fig {
    max-width: 620px;
  }
  .now__grid {
    grid-template-columns: 1fr 1fr;
  }
  .matrix-home__grid {
    grid-template-columns: 1fr;
  }
  .matrix-home__card {
    min-height: 0;
  }
  .now__cell:nth-child(3) {
    border-left: 0;
    padding-left: 0;
  }
  .now__cell:nth-child(n + 3) {
    border-top: 1px solid var(--hair);
  }
  .footer__grid {
    grid-template-columns: 1.2fr 1fr 1fr;
  }
  .footer__col:last-child {
    grid-column: 1 / -1;
  }
  .masthead__grid,
  .masthead--about .masthead__grid {
    grid-template-columns: 1fr;
  }
  .masthead__side {
    max-width: 420px;
  }
  .masthead__mark {
    width: 220px;
    justify-self: start;
    margin-top: 8px;
  }
  .research-layout {
    grid-template-columns: minmax(0, 1fr);
  }
  .research-toc {
    display: none;
  }
  .about-layout {
    grid-template-columns: 1fr;
  }
  .about-card {
    position: static;
    max-width: 360px;
  }
  .about-card img {
    display: none;
  }
  .note-index__row {
    grid-template-columns: 36px 110px minmax(0, 1fr) 0;
  }
  .note-index__meta {
    display: none;
  }
  .note-row {
    grid-template-columns: 40px 110px minmax(0, 1fr);
  }
  .note-row__meta {
    display: none;
  }
  .pub-item {
    grid-template-columns: 1fr;
  }
  .pub-item__side {
    flex-direction: row;
    align-items: center;
    justify-content: flex-start;
    text-align: left;
    padding-top: 4px;
  }
  .error__grid {
    grid-template-columns: 1fr;
  }
  .error__fig {
    display: none;
  }
}
@media (max-width: 860px) {
  :root {
    --nav-h: 58px;
  }
  .nav__links {
    display: none;
  }
  .nav__menu {
    display: inline-flex;
  }
  .nav__meta {
    gap: 16px;
  }
  .nav__mail {
    display: none;
  }
  .hero__foot {
    grid-template-columns: 1fr 1fr;
  }
  .hero__datum {
    border-left: 0;
  }
  .hero__datum:nth-child(even) {
    border-left: 1px solid var(--hair-dark);
  }
  .hero__datum:nth-child(n + 3) {
    border-top: 1px solid var(--hair-dark);
  }
  .statement__grid {
    grid-template-columns: 1fr;
    gap: 28px;
  }
  .statement__side {
    max-width: 52ch;
    padding-top: 0;
  }
  .statement__text {
    max-width: 18ch;
  }
  .section-head {
    grid-template-columns: 1fr;
    gap: 18px;
  }
  .section-head__aside {
    max-width: 52ch;
  }
  .footer__cta {
    flex-direction: column;
    gap: 24px;
  }
  .footer__grid {
    grid-template-columns: 1fr 1fr;
  }
  .footer__col:last-child {
    grid-column: auto;
  }
  .note-head h1 {
    max-width: 20ch;
  }
  .note-body > p:first-of-type::first-letter {
    font-size: 3.6em;
  }
}
@media (max-width: 640px) {
  .wrap {
    padding-inline: 20px;
  }
  .prose table {
    display: block;
    overflow-x: auto;
    white-space: nowrap;
  }
  .prose table caption {
    white-space: normal;
  }
  .hero {
    min-height: 92svh;
  }
  .hero__inner {
    padding-inline: 20px;
  }
  .hero__copy {
    padding-top: 12px;
  }
  .eyebrow {
    font-size: 10px;
    letter-spacing: 0.12em;
  }
  .display {
    font-size: clamp(3.1rem, 15.5vw, 4.6rem);
  }
  .hero .lead {
    max-width: 34ch;
    font-size: 0.98rem;
  }
  .hero__actions {
    gap: 14px;
  }
  .hero__datum {
    padding: 14px 16px 15px;
  }
  .hero__datum strong {
    font-size: 11.5px;
  }
  .thread {
    display: block;
  }
  .thread__body {
    padding-top: 16px;
  }
  .thread h3 {
    font-size: 1.7rem;
  }
  .notes-section .section-head {
    margin-bottom: 26px;
  }
  .note-row {
    grid-template-columns: 32px minmax(0, 1fr);
    gap: 10px 14px;
    padding: 20px 0;
  }
  .note-row__date {
    grid-column: 2;
    font-size: 9.5px;
  }
  .note-row__main {
    grid-column: 2;
  }
  .note-row__main h3 {
    font-size: 1.35rem;
  }
  .now__grid {
    grid-template-columns: 1fr;
  }
  .matrix-home__grid {
    grid-template-columns: 1fr;
  }
  .matrix-home__card {
    min-height: 0;
  }
  .matrix-page .matrix-map,
  .matrix-map {
    grid-template-columns: 1fr;
  }
  .matrix-swatches {
    grid-template-columns: 1fr 1fr;
  }
  .now__cell,
  .now__cell + .now__cell {
    padding: 20px 0 22px;
    border-left: 0;
    border-top: 1px solid var(--hair);
  }
  .now__cell:first-child {
    border-top: 0;
  }
  .footer__grid {
    grid-template-columns: 1fr;
    gap: 18px;
    padding: 28px 0 32px;
  }
  .footer__cta {
    padding-bottom: 30px;
  }
  .footer__toplink {
    margin-top: 4px;
  }
  .footer__cta h2 {
    font-size: 2.8rem;
  }
  .footer__email {
    font-size: 1.1rem;
  }
  .masthead {
    padding-top: calc(var(--nav-h) + 44px);
  }
  .masthead__title {
    font-size: 2.85rem;
  }
  .masthead__dek {
    font-size: 1rem;
  }
  .intro-grid {
    grid-template-columns: 1fr;
  }
  .intro-grid__label {
    padding-top: 0;
  }
  .intro-grid__side {
    grid-column: auto;
    padding-top: 12px;
  }
  .research-section__head {
    grid-template-columns: 1fr;
    gap: 14px;
  }
  .lab__bar {
    flex-wrap: wrap;
    gap: 4px 12px;
    padding: 10px 12px;
  }
  .lab__bar .lab__title {
    order: 3;
    width: 100%;
  }
  .lab__controls {
    padding: 11px 12px;
  }
  .lab__controls label {
    width: 100%;
  }
  .lab__controls output {
    margin-left: auto;
  }
  .note-head h1 {
    font-size: 2.5rem;
  }
  .note-head__dek {
    font-size: 1rem;
  }
  .note-meta {
    gap: 6px 14px;
  }
  .note-body {
    margin-top: 34px;
  }
  .note-nav {
    grid-template-columns: 1fr;
  }
  .note-nav a + a {
    border-left: 0;
    border-top: 1px solid var(--hair);
    padding-left: 0;
    align-items: flex-start;
    text-align: left;
  }
  .paper-head h1 {
    font-size: 2.4rem;
  }
  .paper-head__top span:nth-child(2),
  .paper-head__top span:nth-child(3) {
    display: none;
  }
  .paper-head__top {
    font-size: 9.5px;
  }
  .thesis-band__meta {
    gap: 8px 14px;
    font-size: 9.5px;
  }
  .abstract {
    padding: 20px;
  }
  .paper-layout {
    padding-top: 38px;
  }
  .cite-box {
    padding: 20px;
  }
  .cv-section {
    grid-template-columns: 1fr;
    gap: 12px;
  }
  .cv-header {
    align-items: flex-start;
  }
  .cv-header__meta {
    text-align: left;
  }
  .about-card {
    padding: 16px;
  }
  .masthead__mark {
    width: 150px;
  }
  .zh-body {
    font-size: 1rem;
    line-height: 1.9;
  }
  .error__code {
    font-size: 7rem;
  }
  .hero__foot {
    position: relative;
  }
}
@media (max-width: 400px) {
  .hero__datum:nth-child(even) {
    border-left: 0;
  }
  .hero__datum {
    border-top: 1px solid var(--hair-dark);
  }
  .hero__datum:nth-child(-n + 2) {
    border-top: 0;
  }
}

/* --------------------------------------------------------------------------
   print
   -------------------------------------------------------------------------- */
@media print {
  :root {
    --paper: #ffffff;
    --paper-2: #f6f6f3;
    --ink: #000000;
    --muted: #444;
    --hair: rgba(0, 0, 0, 0.2);
    --hair-2: rgba(0, 0, 0, 0.35);
  }
  @page {
    size: A4;
    margin: 17mm 18mm 18mm;
  }
  html {
    font-size: 10.5pt;
  }
  body {
    background: #fff !important;
    color: #000 !important;
    font-size: 10.5pt;
  }
  .nav,
  .menu,
  .footer,
  .read-progress,
  .paper-toc,
  .paper-actions,
  .note-head__back,
  .note-nav,
  .skip,
  .hero__canvas,
  .lab__controls,
  .copy-btn,
  .cite-box,
  .note-end {
    display: none !important;
  }
  .note-head,
  .paper-head {
    padding-top: 0;
  }
  .page-body--top {
    padding-top: 0 !important;
  }
  .cv-header .btn {
    display: none !important;
  }
  .figure-scroll {
    overflow: visible !important;
  }
  .figure-scroll img,
  .figure-scroll picture img {
    width: 100% !important;
    max-width: 100% !important;
  }
  .paper-head .wrap,
  .note-head .wrap {
    max-width: none;
  }
  .note-head h1,
  .paper-head h1 {
    font-size: 26pt;
    line-height: 1.05;
  }
  .prose {
    font-size: 10.5pt;
    line-height: 1.55;
  }
  .paper-layout {
    display: block;
    padding-top: 10mm;
  }
  .paper-body {
    max-width: none;
  }
  .paper-body h2 {
    break-after: avoid;
  }
  .prose figure,
  .prose table,
  .abstract {
    break-inside: avoid;
  }
  .prose a {
    text-decoration: none;
    color: #000;
  }
  .reveal,
  .anim {
    opacity: 1 !important;
    transform: none !important;
    clip-path: none !important;
  }
  .sidenote {
    float: none;
    width: auto;
    margin: 6pt 0;
    padding: 4pt 8pt;
    background: #f4f4f1;
    border-left: 1px solid #999;
    font-size: 8.5pt;
  }
  .note-body > p:first-of-type::first-letter {
    float: none;
    font-size: inherit;
    color: inherit;
    margin: 0;
    line-height: inherit;
  }
  .paper-refs,
  .cite-box {
    max-width: none;
  }
  .cv-section {
    break-inside: avoid;
  }
  .print-only {
    display: block !important;
  }
}


