/* ==========================================================================
   MUHTAR — OPTIC design system
   A catalogue of machine vision.  Hand-written CSS, no framework.
   ========================================================================== */

/* ---------- 1. Tokens ---------------------------------------------------- */
:root {
  --paper: #F3F0E9;
  --paper-2: #EAE6DC;
  --paper-3: #E1DCCF;
  --ink: #111110;
  --muted: #6B665C;
  --line: rgba(17, 17, 16, .16);
  --line-strong: rgba(17, 17, 16, .34);
  --accent: #C8351D;
  --accent-soft: rgba(200, 53, 29, .09);
  --bone: #F2EFE8;
  --black: #0B0B0A;
  --grey: #8C877C;

  --header-h: 64px;
  --margin: clamp(20px, 4.2vw, 72px);
  --gutter: clamp(16px, 1.6vw, 24px);
  --max: 1728px;
  --section-y: clamp(88px, 12vw, 200px);
  --block-y: clamp(44px, 6vw, 88px);

  --fs-display: clamp(56px, 10.4vw, 176px);
  --fs-h1: clamp(40px, 7vw, 104px);
  --fs-h2: clamp(30px, 4.4vw, 64px);
  --fs-h3: clamp(22px, 2.6vw, 34px);
  --fs-lead: clamp(19px, 1.6vw, 24px);
  --fs-body: clamp(16px, 1.05vw, 18px);
  --fs-small: 14px;
  --fs-micro: 11px;
  --fs-mono: 12px;

  --serif: "Bodoni Moda", "Noto Serif SC", "Songti SC", "SimSun", serif;
  --sans: "Inter", "Noto Sans SC", "PingFang SC", "Microsoft YaHei", sans-serif;
  --mono: "IBM Plex Mono", "SFMono-Regular", Consolas, "Liberation Mono", monospace;

  --e-out: cubic-bezier(.16, 1, .3, 1);
  --e-in-out: cubic-bezier(.76, 0, .24, 1);
  --e-soft: cubic-bezier(.22, .61, .36, 1);
  --e-spring: cubic-bezier(.32, .72, 0, 1);
  --e-exit: cubic-bezier(.4, 0, 1, 1);
  --spring-soft: linear(0, .006, .023, .05, .087, .133, .188, .25, .318, .39, .465, .54, .613, .683, .748, .806, .857, .9, .936, .965, .987, 1.003, 1.013, 1.018, 1.018, 1.014, 1.008, 1.003, 1);
  --t-fast: 180ms;
  --t-ui: 320ms;
  --t-enter: 800ms;
  --t-cinema: 1200ms;

  color-scheme: light;
}

html[data-theme="dark"] {
  --paper: #0E0E0D;
  --paper-2: #171715;
  --paper-3: #20201D;
  --ink: #F2EFE8;
  --muted: #A8A296;
  --line: rgba(242, 239, 232, .18);
  --line-strong: rgba(242, 239, 232, .38);
  --accent: #FF6444;
  --accent-soft: rgba(255, 100, 68, .10);
  color-scheme: dark;
}

/* ---------- 2. Reset ----------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: var(--fs-body);
  font-weight: 400;
  line-height: 1.72;
  letter-spacing: -.005em;
  overflow-x: clip;
  font-synthesis: none;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

h1, h2, h3, h4, h5, h6, p, figure, blockquote, dl, dd, dt {
  margin: 0;
}

ul, ol {
  margin: 0;
  padding: 0;
  list-style: none;
}

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

img { height: auto; }

/* Let the <img> inside <picture> participate in the parent layout exactly as
   before; the source is only a format switch. */
picture { display: contents; }

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

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

button {
  border: 0;
  background: none;
  padding: 0;
  cursor: pointer;
}

::selection {
  background: var(--ink);
  color: var(--paper);
}

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}

[hidden] { display: none !important; }

/* ---------- 3. Utilities ------------------------------------------------- */
.wrap {
  width: calc(100% - 2 * var(--margin));
  max-width: var(--max);
  margin-inline: auto;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.skip {
  position: fixed;
  top: 14px;
  left: 14px;
  z-index: 500;
  padding: 10px 14px;
  background: var(--ink);
  color: var(--paper);
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: .1em;
  text-transform: uppercase;
  transform: translateY(-180%);
  transition: transform var(--t-fast) var(--e-out);
}

.skip:focus { transform: none; }

.icon {
  width: 13px;
  height: 13px;
  flex: none;
  transition: transform var(--t-ui) var(--e-out);
}

.status-dot {
  display: inline-block;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-soft);
  flex: none;
}

/* ---------- 4. Typography ------------------------------------------------ */
.label {
  display: flex;
  align-items: center;
  gap: .65em;
  font-family: var(--mono);
  font-size: var(--fs-micro);
  font-weight: 400;
  line-height: 1.4;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--muted);
}

.label > span:first-child { color: var(--accent); }

.arrow-link {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding-bottom: 5px;
  border-bottom: 1px solid var(--line-strong);
  font-family: var(--mono);
  font-size: 10px;
  line-height: 1.2;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--ink);
  transition: color var(--t-fast), border-color var(--t-fast), gap var(--t-ui) var(--e-out);
}

.arrow-link .icon { width: 11px; height: 11px; }
.arrow-link:hover { color: var(--accent); border-color: var(--accent); gap: 15px; }
.arrow-link:hover .icon { transform: translate(2px, -2px); }

.inline-link {
  text-decoration: underline;
  text-underline-offset: 4px;
  text-decoration-thickness: 1px;
  transition: color var(--t-fast);
}

.inline-link:hover { color: var(--accent); }

.page-title,
.section-head__title,
.about-teaser__title,
.statement__quote,
.note-title,
.case-title,
.next-work__title,
.research-item__title { text-wrap: balance; }

.prose p { orphans: 2; widows: 2; }

.text-button {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--muted);
  transition: color var(--t-fast);
}

.text-button:hover { color: var(--accent); }

/* ---------- 5. Grain, page fade, progress ------------------------------ */
.grain {
  position: fixed;
  inset: 0;
  z-index: 340;
  pointer-events: none;
  background-image: url("../img/grain.png");
  background-size: 180px 180px;
  opacity: .055;
  mix-blend-mode: multiply;
}

html[data-theme="dark"] .grain {
  opacity: .06;
  mix-blend-mode: screen;
}

@keyframes pageFade {
  from { opacity: 0; }
  to { opacity: 1; }
}

body.page {
  animation: pageFade 520ms var(--e-out) both;
}

@media (prefers-reduced-motion: reduce) {
  body.page { animation: none; }
}

.progress {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 250;
  height: 2px;
  pointer-events: none;
}

.progress span {
  display: block;
  height: 100%;
  width: 100%;
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: left;
}

.toast {
  position: fixed;
  left: 50%;
  bottom: 28px;
  z-index: 380;
  transform: translate(-50%, 20px);
  padding: 11px 16px;
  background: var(--ink);
  color: var(--paper);
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: .12em;
  text-transform: uppercase;
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--t-ui), transform var(--t-ui) var(--e-out);
}

.toast.is-on { opacity: 1; transform: translate(-50%, 0); }

/* ---------- 6. Masthead ------------------------------------------------- */
.masthead {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 200;
  height: var(--header-h);
  background: var(--paper);
  border-bottom: 1px solid transparent;
  transition: border-color var(--t-ui), background var(--t-ui);
}

@supports (backdrop-filter: blur(10px)) {
  .masthead {
    background: color-mix(in srgb, var(--paper) 88%, transparent);
    backdrop-filter: blur(16px) saturate(1.1);
  }
}

.masthead.is-scrolled { border-bottom-color: var(--line); }

.masthead__inner {
  width: calc(100% - 2 * var(--margin));
  max-width: var(--max);
  height: 100%;
  margin-inline: auto;
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 24px;
}

.masthead__end {
  display: flex;
  align-items: center;
  justify-self: end;
  gap: clamp(14px, 1.6vw, 22px);
  min-width: 0;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  justify-self: start;
  font-family: var(--serif);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: .1em;
  line-height: 1.2;
  white-space: nowrap;
}

.brand__dot {
  width: 5px;
  height: 5px;
  background: var(--accent);
  border-radius: 50%;
  transition: transform var(--t-ui) var(--e-out);
}

.brand:hover .brand__dot { transform: scale(1.6); }

.index-pill {
  position: relative;
  justify-self: auto;
  z-index: 120;
  display: flex;
  align-items: center;
  padding: 3px;
  border: 1px solid rgba(242, 239, 232, .16);
  border-radius: 999px;
  background: #111110;
  color: #F3F0E9;
}

.index-pill__disclosure {
  order: 2;
  display: flex;
  align-items: center;
}

.index-pill__trigger {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 7px 12px;
  font-family: var(--mono);
  font-size: 9px;
  line-height: 1;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: inherit;
  white-space: nowrap;
  cursor: pointer;
  list-style: none;
  transition: opacity 100ms var(--e-soft);
}

.index-pill__trigger:active { opacity: .68; }

.index-pill__trigger::-webkit-details-marker { display: none; }

.index-pill__mark {
  position: relative;
  width: 10px;
  height: 10px;
  flex: none;
  transition: transform 260ms var(--e-exit);
}

.index-pill__mark::before,
.index-pill__mark::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  background: currentColor;
  transform: translate(-50%, -50%);
}

.index-pill__mark::before { width: 10px; height: 1px; }
.index-pill__mark::after { width: 1px; height: 10px; }
.index-pill__disclosure[open] .index-pill__mark {
  transform: rotate(45deg);
  transition: transform 420ms var(--spring-soft);
}

.index-pill__nav {
  order: 1;
  display: flex;
  align-items: center;
  gap: 2px;
  max-width: 0;
  padding: 0;
  overflow: hidden;
  opacity: 0;
  visibility: hidden;
  transform: translateX(8px);
  transition:
    max-width 260ms var(--e-exit),
    padding 260ms var(--e-exit),
    opacity 160ms var(--e-soft),
    transform 240ms var(--e-exit),
    visibility 0s 260ms;
}

/* <details> hides non-summary children when closed; the nav lives beside it,
   so the strip stays in the render tree and can animate its width. */
.index-pill__disclosure[open] + .index-pill__nav {
  max-width: 620px;
  padding: 0 4px 0 2px;
  opacity: 1;
  visibility: visible;
  transform: translateX(0);
  transition:
    max-width 420ms var(--e-spring),
    padding 420ms var(--e-spring),
    opacity 220ms var(--e-soft),
    transform 460ms var(--spring-soft),
    visibility 0s;
}
.index-pill__nav a {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 8px 10px;
  border-radius: 999px;
  font-family: var(--mono);
  font-size: 10px;
  line-height: 1;
  letter-spacing: .04em;
  white-space: nowrap;
  color: rgba(243, 240, 233, .8);
  opacity: 0;
  transform: translate3d(7px, 0, 0);
  transition:
    color var(--t-fast),
    background var(--t-fast),
    opacity 140ms var(--e-soft),
    transform 240ms var(--e-exit);
}

.index-pill__disclosure[open] + .index-pill__nav a {
  opacity: 1;
  transform: none;
  transition:
    color var(--t-fast) 0s,
    background var(--t-fast) 0s,
    opacity 180ms var(--e-soft) calc(var(--i, 0) * 12ms),
    transform 420ms var(--spring-soft) calc(var(--i, 0) * 12ms);
}

.index-pill__nav a:hover,
.index-pill__nav a.is-active {
  color: #F3F0E9;
  background: rgba(242, 239, 232, .08);
}

.index-pill__nav a.is-active::before {
  content: "";
  width: 3px;
  height: 3px;
  flex: none;
  border-radius: 50%;
  background: var(--accent);
}

.masthead__tools {
  display: flex;
  align-items: center;
  justify-self: end;
  gap: 16px;
}

.lang {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: .1em;
  text-transform: uppercase;
  border-bottom: 1px solid var(--line-strong);
  padding-bottom: 2px;
  transition: color var(--t-fast), border-color var(--t-fast);
}

.lang:hover { color: var(--accent); border-color: var(--accent); }

.theme {
  position: relative;
  width: 28px;
  height: 28px;
  display: grid;
  place-items: center;
  color: var(--muted);
  transition: color var(--t-fast), transform var(--t-ui) var(--e-out);
}

.theme:hover { color: var(--ink); transform: rotate(18deg); }

.theme__ring {
  position: absolute;
  inset: 7px;
  border: 1px solid currentColor;
  border-radius: 50%;
  opacity: .35;
  transition: transform var(--t-ui) var(--e-out), opacity var(--t-fast);
}

html[data-theme="dark"] .theme__ring { transform: scale(.55); opacity: .8; }

.theme .icon { width: 15px; height: 15px; }

/* ---------- 7. Hero ------------------------------------------------------ */
.hero {
  min-height: 100vh;
  min-height: 100svh;
  padding-top: var(--header-h);
  display: flex;
  flex-direction: column;
}

.hero__grid {
  position: relative;
  flex: 1;
  width: calc(100% - 2 * var(--margin));
  max-width: var(--max);
  margin-inline: auto;
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: var(--gutter);
  align-items: stretch;
  padding-top: clamp(20px, 6vh, 72px);
  padding-bottom: clamp(24px, 5vh, 56px);
}

.hero__copy {
  grid-column: 1 / 8;
  min-width: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 2vh 0 1vh;
}

.hero__eyebrow { margin-bottom: clamp(20px, 3vh, 32px); }

.hero__title {
  margin: 0 0 0 -.045em;
  font-family: var(--serif);
  font-size: var(--fs-display);
  font-weight: 400;
  line-height: .84;
  letter-spacing: -.048em;
  text-transform: uppercase;
}

.hero__title--zh {
  font-family: "Noto Serif SC", "Songti SC", var(--serif);
  font-size: clamp(58px, 10.4vw, 176px);
  font-weight: 900;
  line-height: .98;
  letter-spacing: .01em;
  text-transform: none;
  margin-left: -.02em;
}

.hero__title .line {
  display: block;
  overflow: hidden;
  padding-bottom: .06em;
  margin-bottom: -.06em;
}

.hero__title .line__inner {
  display: block;
  will-change: transform;
}

html.enhance .hero__title .line__inner {
  transform: translateY(112%);
}

html.enhance body.is-ready .hero__title .line__inner {
  transform: translateY(0);
  transition: transform var(--t-cinema) var(--e-out);
  transition-delay: calc(100ms + var(--i) * 90ms);
}

.hero__translation {
  margin-top: clamp(22px, 3vh, 34px);
  font-family: var(--serif);
  font-size: 18px;
  line-height: 1.4;
  letter-spacing: .01em;
  color: var(--muted);
}

.hero__title--zh + .hero__translation {
  font-family: var(--sans);
  font-size: 11px;
  letter-spacing: .16em;
  text-transform: uppercase;
}

.hero__lead {
  margin-top: clamp(22px, 3.4vh, 38px);
  max-width: 38ch;
  font-size: clamp(16px, 1.2vw, 19px);
  line-height: 1.62;
  letter-spacing: -.01em;
}

.hero__meta {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  margin-top: auto;
  padding-top: 18px;
  padding-bottom: 8px;
  border-top: 1px solid var(--line);
  font-family: var(--mono);
  font-size: 9px;
  line-height: 1.6;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--muted);
}

.hero__scroll {
  position: absolute;
  left: 0;
  bottom: 10px;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  gap: 14px;
  font-family: var(--mono);
  font-size: 9px;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--muted);
  width: fit-content;
}

.hero__scroll-line {
  position: relative;
  width: 54px;
  height: 1px;
  background: var(--line-strong);
  overflow: hidden;
}

.hero__scroll-line::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 18px;
  height: 1px;
  background: var(--accent);
  animation: scrollLine 2.8s var(--e-in-out) infinite;
}

@keyframes scrollLine {
  0% { transform: translateX(-20px); opacity: 0; }
  20% { opacity: 1; }
  80% { opacity: 1; }
  100% { transform: translateX(56px); opacity: 0; }
}

.hero__figure {
  grid-column: 8 / 13;
  min-width: 0;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding-top: 2vh;
}

.plate {
  position: relative;
  width: 100%;
  overflow: hidden;
  background: var(--black);
  border: 1px solid var(--line);
}

.plate--aperture {
  aspect-ratio: 4 / 5;
  max-height: calc(100svh - var(--header-h) - 150px);
  margin-left: auto;
}

.aperture__canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.plate__ui {
  position: absolute;
  left: 14px;
  right: 14px;
  display: flex;
  justify-content: space-between;
  gap: 12px;
  font-family: var(--mono);
  font-size: 8px;
  line-height: 1.4;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: rgba(242, 239, 232, .62);
  pointer-events: none;
}

.plate__ui--top { top: 14px; }
.plate__ui--bottom { bottom: 14px; }

.hero__caption {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  margin-top: 10px;
  font-family: var(--mono);
  font-size: 8px;
  line-height: 1.5;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--muted);
}

.hero__reveal {
  opacity: 1;
  transform: none;
}

html.enhance .hero__reveal {
  opacity: 0;
  transform: translateY(18px);
}

html.enhance body.is-ready .hero__reveal {
  opacity: 1;
  transform: none;
  transition: opacity 900ms var(--e-out), transform 900ms var(--e-out);
  transition-delay: calc(350ms + var(--d, 0) * 110ms);
}

/* ---------- 8. Marquee --------------------------------------------------- */
.marquee {
  overflow: hidden;
  padding: 11px 0 9px;
  background: var(--ink);
  color: var(--paper);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

html[data-theme="dark"] .marquee {
  background: var(--paper-2);
  color: var(--ink);
}

.marquee__track {
  display: flex;
  width: max-content;
  animation: marquee 46s linear infinite;
  will-change: transform;
}

.marquee:hover .marquee__track { animation-play-state: paused; }

.marquee__track span {
  display: block;
  padding-right: 26px;
  font-family: var(--mono);
  font-size: 9px;
  line-height: 1;
  letter-spacing: .16em;
  text-transform: uppercase;
  white-space: nowrap;
}

@keyframes marquee {
  to { transform: translateX(-50%); }
}

/* ---------- 9. Section heads, work list, notes --------------------------- */
.section {
  padding-block: var(--section-y);
}

.section--work { padding-top: calc(var(--section-y) * .8); }

.section-head {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: var(--gutter);
  align-items: end;
  margin-bottom: clamp(36px, 5.5vw, 72px);
}

.section-head__label {
  grid-column: 1 / 5;
  grid-row: 1;
  align-self: start;
}

.section-head__title {
  grid-column: 1 / 9;
  grid-row: 2;
  margin-top: clamp(18px, 2vw, 28px);
  font-family: var(--serif);
  font-size: var(--fs-h2);
  font-weight: 400;
  line-height: .96;
  letter-spacing: -.038em;
}

.section-head__side {
  grid-column: 9 / 13;
  grid-row: 1 / 3;
  align-self: end;
  padding-bottom: 4px;
}

.section-head__note {
  max-width: 30ch;
  margin-bottom: 18px;
  font-size: 14px;
  line-height: 1.62;
  color: var(--muted);
}

.work-stack {
  position: relative;
  padding-bottom: clamp(24px, 6vh, 80px);
}

.work-card {
  position: sticky;
  top: calc(var(--header-h) + 20px + var(--i) * 12px);
  z-index: calc(10 + var(--i));
  width: calc(100% - 2 * var(--margin));
  max-width: var(--max);
  height: min(76vh, 760px);
  margin: 0 auto clamp(64px, 13vh, 150px);
  background: var(--paper);
  border: 1px solid var(--line);
  overflow: hidden;
  transform-origin: top center;
  will-change: transform, filter;
}

.work-card:last-child { margin-bottom: 0; }

html.enhance .work-card {
  clip-path: inset(0 0 calc(var(--fold, 0) * 100%) 0);
  transform: scale(calc(1 - var(--fold, 0) * .06)) translateY(calc(var(--fold, 0) * -12px));
  filter: brightness(calc(1 - var(--fold, 0) * .12));
}

html.enhance .work-card__link {
  opacity: calc(.25 + var(--enter, 1) * .75);
  transform: translateY(calc((1 - var(--enter, 1)) * 36px)) scale(calc(.93 + var(--enter, 1) * .07));
  transform-origin: top center;
}

.work-card__link {
  display: grid;
  grid-template-columns: 7fr 5fr;
  height: 100%;
  color: inherit;
}

.work-card__media {
  position: relative;
  min-width: 0;
  overflow: hidden;
  background: var(--paper-2);
}

.work-card__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.work-card__num {
  position: absolute;
  top: 14px;
  left: 18px;
  font-family: var(--serif);
  font-size: clamp(64px, 7vw, 118px);
  line-height: .78;
  letter-spacing: -.05em;
  color: var(--bone);
}

.work-card__year {
  position: absolute;
  top: 20px;
  right: 20px;
  font-family: var(--mono);
  font-size: 9px;
  letter-spacing: .12em;
  color: var(--bone);
}

.work-card--light .work-card__num,
.work-card--light .work-card__year { color: var(--ink); }

.work-card__body {
  display: flex;
  flex-direction: column;
  min-width: 0;
  padding: clamp(24px, 3.4vw, 56px);
  background: var(--paper);
  border-left: 1px solid var(--line);
}

.work-card__head {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}

.work-card__title {
  max-width: 12ch;
  margin-top: clamp(28px, 6vh, 64px);
  font-family: var(--serif);
  font-size: clamp(36px, 4.4vw, 68px);
  font-weight: 400;
  line-height: .98;
  letter-spacing: -.04em;
  text-wrap: balance;
  transition: color var(--t-fast);
}

html[lang="zh-CN"] .work-card__title {
  font-weight: 600;
  line-height: 1.12;
  letter-spacing: .005em;
}

.work-card__sub {
  max-width: 32ch;
  margin-top: 18px;
  font-size: clamp(16px, 1.35vw, 19px);
  line-height: 1.45;
  letter-spacing: -.01em;
}

.work-card__summary {
  max-width: 36ch;
  margin-top: 14px;
  font-size: 13px;
  line-height: 1.65;
  color: var(--muted);
}

.work-card__foot {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  margin-top: auto;
  padding-top: 16px;
  border-top: 1px solid var(--line);
  font-family: var(--mono);
  font-size: 9px;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--muted);
}

.work-card__arrow { display: inline-flex; align-items: center; gap: 10px; color: var(--ink); }
.work-card__arrow .icon { width: 12px; height: 12px; transition: transform 500ms var(--e-out); }

.work-card__link:hover .work-card__title { color: var(--accent); }
.work-card__link:hover .work-card__arrow .icon { transform: translate(3px, -3px); }

html.enhance .work-card__media img {
  clip-path: inset(0 0 100% 0);
  transform: scale(1.05);
}

html.enhance .work-card.is-inview .work-card__media img {
  clip-path: inset(0);
  transform: scale(1);
  transition: clip-path 1200ms var(--e-out), transform 1500ms var(--e-out);
}

html.enhance .work-card__body > * {
  opacity: 0;
  transform: translateY(18px);
}

html.enhance .work-card.is-inview .work-card__body > * {
  opacity: 1;
  transform: none;
  transition: opacity 700ms var(--e-out), transform 700ms var(--e-out);
}

html.enhance .work-card.is-inview .work-card__body > *:nth-child(1) { transition-delay: 120ms; }
html.enhance .work-card.is-inview .work-card__body > *:nth-child(2) { transition-delay: 180ms; }
html.enhance .work-card.is-inview .work-card__body > *:nth-child(3) { transition-delay: 240ms; }
html.enhance .work-card.is-inview .work-card__body > *:nth-child(4) { transition-delay: 300ms; }
html.enhance .work-card.is-inview .work-card__body > *:nth-child(5) { transition-delay: 360ms; }

/* Split titles */
html.enhance .split-ready .split-unit {
  display: inline-block;
  overflow: hidden;
  vertical-align: top;
  padding-bottom: .12em;
  margin-bottom: -.12em;
}

html.enhance .split-ready .split-unit > span {
  display: inline-block;
  transform: translateY(115%);
  transition: transform 900ms var(--e-out);
  transition-delay: calc(var(--i, 0) * 28ms);
}

html.enhance .split-ready.is-inview .split-unit > span { transform: none; }

/* Media wipes */
html.enhance .reveal-media { clip-path: inset(0 0 100% 0); }

html.enhance .reveal-media.is-inview {
  clip-path: inset(0);
  transition: clip-path 1100ms var(--e-out);
}

/* Notes list */
.note-list { border-top: 1px solid var(--line); }

.note-row {
  display: grid;
  grid-template-columns: 140px 110px minmax(0, 1fr) 110px;
  gap: var(--gutter);
  align-items: start;
  padding: 26px 0 28px;
  border-bottom: 1px solid var(--line);
}

.note-row__date,
.note-row__cat,
.note-row__read {
  font-family: var(--mono);
  font-size: 9px;
  line-height: 1.6;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--muted);
}

.note-row__cat { color: var(--accent); }

.note-row__body { min-width: 0; }

.note-row__title {
  display: block;
  font-family: var(--serif);
  font-size: clamp(24px, 2.8vw, 40px);
  font-weight: 400;
  line-height: 1.04;
  letter-spacing: -.03em;
  transition: transform 550ms var(--e-out), color var(--t-fast);
}

.note-row__dek {
  display: block;
  margin-top: 8px;
  max-width: 62ch;
  font-size: 13px;
  line-height: 1.55;
  color: var(--muted);
}

.note-row__read {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 8px;
  text-align: right;
}

.note-row:hover .note-row__title { transform: translateX(10px); color: var(--accent); }
.note-row:hover .note-row__read .icon { transform: translate(3px, -3px); }

/* ---------- 10. Statement ------------------------------------------------- */
.statement {
  position: relative;
  min-height: 82vh;
  min-height: 82svh;
  display: flex;
  align-items: center;
  overflow: hidden;
  padding-block: clamp(96px, 14vw, 180px);
  background: var(--black);
  color: var(--bone);
}

.statement__media {
  position: absolute;
  inset: -12%;
  overflow: hidden;
}

.statement__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: .68;
  filter: grayscale(1) contrast(1.2);
  will-change: transform;
}

.statement::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(11, 11, 10, .9), rgba(11, 11, 10, .25) 55%, rgba(11, 11, 10, .75));
  pointer-events: none;
}

.statement__inner {
  position: relative;
  z-index: 1;
  width: calc(100% - 2 * var(--margin));
  max-width: var(--max);
  margin-inline: auto;
}

.statement__label {
  color: rgba(242, 239, 232, .55);
  margin-bottom: clamp(32px, 5vw, 56px);
}

.statement__label span {
  display: inline-block;
  width: 34px;
  height: 1px;
  background: var(--accent);
}

.statement__quote {
  max-width: 20ch;
  font-family: var(--serif);
  font-size: clamp(34px, 4.6vw, 76px);
  font-weight: 400;
  line-height: 1.04;
  letter-spacing: -.032em;
}

.statement__source {
  display: block;
  margin-top: clamp(28px, 4vw, 48px);
  font-family: var(--mono);
  font-size: 9px;
  font-style: normal;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: color-mix(in srgb, var(--paper) 50%, transparent);
}

.statement__source a {
  text-decoration: underline;
  text-underline-offset: 4px;
  text-decoration-thickness: 1px;
  transition: color var(--t-fast);
}

.statement__source a:hover { color: var(--bone); }

/* ---------- 10b. Research band ------------------------------------------ */
.research-band {
  padding-block: var(--section-y);
  border-top: 1px solid var(--line);
}

.research-band__grid {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: var(--gutter);
  align-items: center;
}

.research-band__plate {
  grid-column: 1 / 6;
  position: relative;
  display: block;
  border: 1px solid var(--line);
  background: var(--paper-2);
  padding: clamp(10px, 1.4vw, 18px);
  transform: rotate(var(--tilt, -3deg)) translateY(var(--lift, 0px));
  will-change: transform;
}

.research-band__plate img {
  width: 100%;
  height: auto;
  border: 1px solid var(--line);
}

.research-band__tag {
  position: absolute;
  left: 50%;
  bottom: -13px;
  transform: translateX(-50%);
  padding: 4px 8px;
  background: var(--ink);
  color: var(--paper);
  font-family: var(--mono);
  font-size: 8px;
  letter-spacing: .12em;
  white-space: nowrap;
}

.research-band__copy { grid-column: 7 / 13; }

.research-band__title {
  max-width: 15ch;
  margin: 24px 0 20px;
  font-family: var(--serif);
  font-size: clamp(38px, 4.6vw, 72px);
  font-weight: 400;
  line-height: .98;
  letter-spacing: -.04em;
  text-wrap: balance;
}

html[lang="zh-CN"] .research-band__title {
  font-weight: 600;
  line-height: 1.12;
  letter-spacing: .005em;
}

.research-band__sub {
  max-width: 36ch;
  font-size: clamp(17px, 1.4vw, 20px);
  line-height: 1.5;
}

.research-band__body {
  max-width: 42ch;
  margin-top: 16px;
  font-size: 13px;
  line-height: 1.7;
  color: var(--muted);
}

.research-band__metrics {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: var(--gutter);
  margin-top: 32px;
  padding-top: 16px;
  border-top: 1px solid var(--line);
}

.research-band__metrics div { display: flex; flex-direction: column-reverse; gap: 6px; }

.research-band__metrics dt {
  font-family: var(--mono);
  font-size: 8px;
  line-height: 1.4;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--muted);
}

.research-band__metrics dd {
  font-family: var(--serif);
  font-size: clamp(32px, 3.2vw, 50px);
  line-height: .9;
  letter-spacing: -.03em;
  font-variant-numeric: tabular-nums;
}

.research-band__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 18px 30px;
  margin-top: 28px;
}

/* ---------- 10c. Paper page --------------------------------------------- */
.paper-head {
  padding-top: calc(var(--header-h) + clamp(48px, 8vh, 92px));
  padding-bottom: clamp(40px, 6vw, 72px);
  border-bottom: 1px solid var(--line);
}

.paper-head__top {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: clamp(40px, 7vw, 88px);
}

.paper-title {
  max-width: 24ch;
  font-family: var(--serif);
  font-size: clamp(36px, 4.2vw, 64px);
  font-weight: 400;
  line-height: 1.02;
  letter-spacing: -.035em;
  text-wrap: balance;
}

.paper-title-zh {
  max-width: 40ch;
  margin-top: 24px;
  font-family: "Noto Serif SC", var(--serif);
  font-size: clamp(17px, 1.6vw, 22px);
  line-height: 1.65;
  color: var(--muted);
}

.paper-meta {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: var(--gutter);
  margin-top: clamp(36px, 5vw, 56px);
  padding-top: 18px;
  border-top: 1px solid var(--line);
}

.paper-meta p:last-child { margin-top: 7px; font-size: 12px; line-height: 1.55; }

.paper-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 18px 32px;
  margin-top: 34px;
}

.paper-download {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 13px 16px;
  border: 1px solid var(--line-strong);
  font-family: var(--mono);
  font-size: 9px;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--ink);
  transition: background var(--t-fast), color var(--t-fast), border-color var(--t-fast);
}

.paper-download .icon { width: 11px; height: 11px; }
.paper-download:hover { background: var(--ink); color: var(--paper); border-color: var(--ink); }

.paper-abstract-band {
  padding-block: clamp(48px, 7vw, 88px);
  border-bottom: 1px solid var(--line);
}

.paper-abstract-grid {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: var(--gutter);
}

.paper-abstract-side { grid-column: 1 / 4; }

.paper-abstract-side .label + .label { margin-top: 10px; color: var(--accent); }

.paper-abstract-copy { grid-column: 5 / 12; }

.paper-abstract {
  font-family: var(--serif);
  font-size: clamp(19px, 1.75vw, 24px);
  line-height: 1.55;
  letter-spacing: -.01em;
}

html[lang="zh-CN"] .paper-abstract {
  font-family: var(--sans);
  font-size: clamp(16px, 1.2vw, 18px);
  line-height: 1.95;
  letter-spacing: .01em;
}

.paper-en {
  margin-top: 28px;
  border-top: 1px solid var(--line);
  padding-top: 14px;
}

.paper-en summary {
  font-family: var(--mono);
  font-size: 9px;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--muted);
  cursor: pointer;
}

.paper-en p {
  margin-top: 16px;
  font-family: var(--sans);
  font-size: 14px;
  line-height: 1.7;
  color: var(--muted);
}

.paper-keywords {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 18px;
  margin-top: 28px;
  padding-top: 14px;
  border-top: 1px solid var(--line);
}

.paper-keywords li {
  font-family: var(--mono);
  font-size: 8px;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--muted);
}

.paper-keywords li::before { content: "·"; color: var(--accent); margin-right: 7px; }

.paper-body { padding-block: var(--section-y); }

.paper-glance {
  padding-top: 20px;
  border-top: 1px solid var(--line);
}

.paper-metrics {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: var(--gutter);
  margin-top: 28px;
}

.paper-metric { display: flex; flex-direction: column; gap: 8px; }

.paper-metric__value {
  font-family: var(--serif);
  font-size: clamp(34px, 4vw, 60px);
  line-height: .9;
  letter-spacing: -.04em;
  font-variant-numeric: tabular-nums;
}

.paper-metric__label {
  font-family: var(--mono);
  font-size: 8px;
  line-height: 1.5;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--muted);
}

.paper-findings {
  max-width: 1000px;
  margin-top: clamp(56px, 8vw, 96px);
  border-top: 1px solid var(--line);
}

.paper-finding {
  display: grid;
  grid-template-columns: 54px minmax(0, 1fr);
  gap: var(--gutter);
  padding: 26px 0 30px;
  border-bottom: 1px solid var(--line);
}

.paper-finding__num {
  font-family: var(--mono);
  font-size: 9px;
  letter-spacing: .08em;
  color: var(--accent);
  padding-top: 6px;
}

.paper-finding h2 {
  font-family: var(--serif);
  font-size: clamp(24px, 2.6vw, 36px);
  font-weight: 400;
  line-height: 1.1;
  letter-spacing: -.02em;
}

html[lang="zh-CN"] .paper-finding h2 { font-weight: 600; line-height: 1.3; }

.paper-finding p {
  max-width: 70ch;
  margin-top: 12px;
  font-size: 15px;
  line-height: 1.7;
  color: var(--muted);
}

.paper-figures { margin-top: clamp(56px, 8vw, 96px); }

.paper-figure { margin: 0 0 clamp(32px, 5vw, 56px); }

.paper-figure__frame {
  overflow: hidden;
  border: 1px solid var(--line);
  background: var(--paper-2);
}

.paper-figure__frame svg { width: 100%; height: auto; display: block; }

.paper-figure figcaption {
  display: flex;
  gap: 18px;
  margin-top: 9px;
  font-family: var(--mono);
  font-size: 8px;
  line-height: 1.6;
  letter-spacing: .05em;
  text-transform: uppercase;
  color: var(--muted);
}

.paper-figure figcaption span:first-child { color: var(--accent); flex: none; }

.paper-download-block {
  display: grid;
  grid-template-columns: 5fr 7fr;
  gap: clamp(28px, 5vw, 72px);
  align-items: center;
  margin-top: clamp(56px, 8vw, 96px);
  padding-top: 24px;
  border-top: 1px solid var(--line);
}

.paper-cover {
  display: block;
  border: 1px solid var(--line);
  background: var(--paper-2);
  padding: 14px;
  transform: rotate(var(--tilt, 2deg));
  will-change: transform;
}

.paper-cover img { width: 100%; height: auto; border: 1px solid var(--line); }

.paper-download-copy h2 {
  max-width: 14ch;
  margin: 16px 0 18px;
  font-family: var(--serif);
  font-size: clamp(32px, 3.6vw, 52px);
  font-weight: 400;
  line-height: 1;
  letter-spacing: -.035em;
}

.paper-download-copy p {
  max-width: 46ch;
  margin-bottom: 24px;
  font-size: 13px;
  line-height: 1.7;
  color: var(--muted);
}

.paper-citation {
  margin-top: clamp(48px, 7vw, 80px);
  padding-top: 18px;
  border-top: 1px solid var(--line);
}

.paper-citation__text {
  max-width: 80ch;
  margin: 14px 0 18px;
  font-family: var(--mono);
  font-size: 11px;
  line-height: 1.8;
  color: var(--muted);
}

/* ---------- 10d. Public record ------------------------------------------ */
.visually-hidden {
  position: absolute !important;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

/* About teaser — the dark room before the rest of the page. */
.record-teaser {
  padding-block: clamp(64px, 10vw, 128px);
  background: var(--ink);
  color: var(--paper);
}

.record-teaser__top {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  padding-top: 14px;
  border-top: 1px solid color-mix(in srgb, var(--paper) 22%, transparent);
}

.record-teaser .label { color: color-mix(in srgb, var(--paper) 52%, transparent); }
.record-teaser .label span { background: var(--accent); }

.record-teaser__grid {
  display: grid;
  grid-template-columns: 5fr 7fr;
  gap: clamp(32px, 7vw, 110px);
  align-items: end;
  margin-top: clamp(48px, 7vw, 88px);
}

.record-teaser__title {
  max-width: 10ch;
  font-family: var(--serif);
  font-size: clamp(52px, 7.2vw, 116px);
  font-weight: 400;
  line-height: .9;
  letter-spacing: -.045em;
  color: var(--paper);
}

html[lang="zh-CN"] .record-teaser__title {
  max-width: none;
  font-size: clamp(46px, 6vw, 96px);
  font-weight: 600;
  line-height: 1.05;
  letter-spacing: .005em;
  white-space: nowrap;
}

.record-teaser__lead {
  max-width: 36ch;
  margin-top: 26px;
  font-size: 15px;
  line-height: 1.7;
  color: color-mix(in srgb, var(--paper) 64%, transparent);
}

.record-teaser .arrow-link {
  margin-top: 28px;
  color: var(--paper);
  border-color: color-mix(in srgb, var(--paper) 50%, transparent);
}

.record-teaser__list { border-top: 1px solid color-mix(in srgb, var(--paper) 22%, transparent); }

.record-teaser__list li {
  display: grid;
  grid-template-columns: 74px minmax(0, 1fr) 120px;
  gap: 18px;
  align-items: baseline;
  padding: 16px 0;
  border-bottom: 1px solid color-mix(in srgb, var(--paper) 14%, transparent);
}

.record-teaser__list time {
  font-family: var(--mono);
  font-size: 9px;
  letter-spacing: .06em;
  color: var(--accent);
}

.record-teaser__event {
  font-size: 14px;
  line-height: 1.55;
  color: color-mix(in srgb, var(--paper) 82%, transparent);
}

.record-teaser__kicker {
  justify-self: end;
  font-family: var(--mono);
  font-size: 8px;
  line-height: 1.5;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: color-mix(in srgb, var(--paper) 40%, transparent);
}

/* Full page */
.record-head {
  padding-top: calc(var(--header-h) + clamp(56px, 9vh, 104px));
  padding-bottom: clamp(48px, 7vw, 88px);
  border-bottom: 1px solid var(--line);
}

.record-head__top {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: clamp(44px, 7vw, 88px);
}

.record-title {
  max-width: 12ch;
  font-family: var(--serif);
  font-size: clamp(58px, 9vw, 152px);
  font-weight: 400;
  line-height: .88;
  letter-spacing: -.05em;
  text-wrap: balance;
}

html[lang="zh-CN"] .record-title {
  font-weight: 600;
  line-height: 1.02;
  letter-spacing: .005em;
}

.record-title__alt {
  margin-top: 18px;
  font-family: var(--serif);
  font-size: clamp(18px, 1.8vw, 26px);
  line-height: 1.4;
  color: var(--muted);
}

.record-sub {
  max-width: 30ch;
  margin-top: 28px;
  font-size: clamp(17px, 1.5vw, 22px);
  line-height: 1.5;
  letter-spacing: -.01em;
}

.record-head__bottom {
  display: grid;
  grid-template-columns: 7fr 5fr;
  gap: var(--gutter);
  margin-top: clamp(44px, 6vw, 72px);
  padding-top: 18px;
  border-top: 1px solid var(--line);
}

.record-lead {
  max-width: 50ch;
  font-size: clamp(17px, 1.4vw, 20px);
  line-height: 1.65;
}

.record-note {
  max-width: 46ch;
  font-size: 12px;
  line-height: 1.75;
  color: var(--muted);
}

.record-body { padding-block: var(--section-y); }

.record-timeline {
  --record-pad: clamp(28px, 5vw, 72px);
  position: relative;
  padding-left: var(--record-pad);
}

.record-timeline__line {
  position: absolute;
  top: 8px;
  bottom: 0;
  left: 0;
  width: 1px;
  background: var(--line);
}

.record-timeline__progress {
  display: block;
  width: 1px;
  height: 0;
  background: var(--accent);
  transition: height 120ms linear;
}

.record-entry {
  position: relative;
  display: grid;
  grid-template-columns: 148px minmax(0, 1fr);
  gap: var(--gutter);
  padding: clamp(32px, 5vw, 64px) 0;
  border-top: 1px solid var(--line);
}

.record-entry:first-child { border-top: 0; }
.record-timeline__line + .record-entry { border-top: 0; }

.record-entry::before {
  content: "";
  position: absolute;
  top: calc(clamp(32px, 5vw, 64px) + 10px);
  left: calc(-1 * var(--record-pad) - 3px);
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--accent);
}

.record-entry__num {
  display: block;
  font-family: var(--serif);
  font-size: clamp(56px, 6vw, 92px);
  line-height: .8;
  letter-spacing: -.04em;
  color: var(--accent);
}

.record-entry__date {
  display: block;
  margin-top: 16px;
  font-family: var(--mono);
  font-size: 9px;
  letter-spacing: .08em;
  color: var(--muted);
}

.record-entry__event {
  max-width: 24ch;
  margin-top: 12px;
  font-family: var(--serif);
  font-size: clamp(30px, 3.8vw, 54px);
  font-weight: 400;
  line-height: 1.05;
  letter-spacing: -.03em;
  text-wrap: balance;
}

html[lang="zh-CN"] .record-entry__event {
  font-weight: 600;
  line-height: 1.25;
  letter-spacing: .005em;
}

.record-entry__role {
  margin-top: 16px;
  font-family: var(--mono);
  font-size: 9px;
  line-height: 1.6;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--muted);
}

.record-entry__pair {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(20px, 3vw, 44px);
  margin-top: 32px;
  padding-top: 16px;
  border-top: 1px solid var(--line);
}

.record-entry__pair dt {
  font-family: var(--mono);
  font-size: 8px;
  line-height: 1.5;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--accent);
}

.record-entry__pair dd {
  max-width: 38ch;
  margin-top: 12px;
  font-size: 14px;
  line-height: 1.75;
  color: var(--muted);
}

.record-entry__pair div:last-child dd {
  font-family: var(--serif);
  font-size: clamp(17px, 1.35vw, 20px);
  line-height: 1.55;
  color: var(--ink);
}

html[lang="zh-CN"] .record-entry__pair div:last-child dd {
  font-family: var(--sans);
  font-size: 15px;
  line-height: 1.8;
}

.record-entry__source {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 8px 18px;
  margin-top: 26px;
}

.record-entry__source .label { color: var(--muted); }

.record-entry__source a {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-family: var(--mono);
  font-size: 8px;
  letter-spacing: .05em;
  text-transform: uppercase;
  color: var(--muted);
  border-bottom: 1px solid var(--line);
  padding-bottom: 2px;
}

.record-entry__source a:hover { color: var(--accent); border-color: var(--accent); }
.record-entry__source .icon { width: 9px; height: 9px; }

.record-appendix {
  display: grid;
  grid-template-columns: 148px minmax(0, 1fr);
  gap: var(--gutter);
  margin-top: 56px;
  padding: 20px 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  opacity: .78;
}

.record-appendix__line {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 18px;
  font-size: 13px;
  line-height: 1.65;
  color: var(--muted);
}

.record-appendix__line time {
  font-family: var(--mono);
  font-size: 9px;
  letter-spacing: .06em;
  color: var(--accent);
}

.record-appendix__line span:last-child {
  font-family: var(--mono);
  font-size: 8px;
  letter-spacing: .05em;
  text-transform: uppercase;
}

.record-appendix__source { grid-column: 2; margin-top: 0; }

.record-appendix__source a {
  font-family: var(--mono);
  font-size: 8px;
  letter-spacing: .05em;
  text-transform: uppercase;
  color: var(--muted);
  border-bottom: 1px solid var(--line);
}

.record-coda {
  margin-top: clamp(72px, 10vw, 140px);
  padding-top: 18px;
  border-top: 1px solid var(--line);
}

.record-coda__quote {
  max-width: 30ch;
  margin-top: 24px;
  font-family: var(--serif);
  font-size: clamp(34px, 4.8vw, 72px);
  font-weight: 400;
  line-height: 1.04;
  letter-spacing: -.035em;
  text-wrap: balance;
}

html[lang="zh-CN"] .record-coda__quote {
  font-weight: 600;
  line-height: 1.35;
  letter-spacing: .005em;
}

.record-coda__links {
  display: flex;
  flex-wrap: wrap;
  gap: 18px 32px;
  margin-top: 30px;
}

.record-source-note {
  max-width: 72ch;
  margin-top: 48px;
  font-family: var(--mono);
  font-size: 8px;
  line-height: 1.8;
  letter-spacing: .04em;
  color: var(--muted);
}

/* ---------- 11. About teaser -------------------------------------------- */
.about-teaser {
  padding-block: var(--section-y);
  border-top: 1px solid var(--line);
}

.about-teaser__grid {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: var(--gutter);
  align-items: center;
}

.about-teaser__figure {
  grid-column: 1 / 5;
  min-width: 0;
}

.about-teaser__figure .figure__frame { aspect-ratio: 4 / 5; }

.about-teaser__figure img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.about-teaser__copy {
  grid-column: 6 / 13;
  min-width: 0;
}

.about-teaser__links {
  display: flex;
  flex-wrap: wrap;
  gap: 14px 28px;
  margin-top: 24px;
}

.about-teaser__links .arrow-link { margin-top: 0; }

.about-teaser__title {
  margin: 26px 0 30px;
  max-width: 12ch;
  font-family: var(--serif);
  font-size: clamp(36px, 4.6vw, 72px);
  font-weight: 400;
  line-height: .98;
  letter-spacing: -.035em;
}

.about-teaser__body {
  max-width: 54ch;
  font-size: clamp(16px, 1.2vw, 19px);
  line-height: 1.7;
  color: var(--ink);
}

.about-teaser__copy .arrow-link { margin-top: 30px; }

.stat-row {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: var(--gutter);
  margin-top: clamp(40px, 5vw, 64px);
  padding-top: 18px;
  border-top: 1px solid var(--line);
}

.stat-row div { display: flex; flex-direction: column-reverse; gap: 6px; }

.stat-row dt {
  font-family: var(--mono);
  font-size: 9px;
  line-height: 1.4;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--muted);
}

.stat-row dd {
  font-family: var(--serif);
  font-size: clamp(40px, 4vw, 64px);
  line-height: .9;
  letter-spacing: -.04em;
  font-variant-numeric: tabular-nums;
}

/* ---------- 12. Footer --------------------------------------------------- */
.footer {
  padding-top: clamp(64px, 8vw, 120px);
  border-top: 1px solid var(--line);
}

.footer__cta { margin-bottom: clamp(56px, 8vw, 96px); }

.footer__email {
  display: block;
  width: fit-content;
  margin-top: 24px;
  font-family: var(--serif);
  font-size: clamp(38px, 6vw, 96px);
  font-weight: 400;
  line-height: .95;
  letter-spacing: -.045em;
  transition: color var(--t-fast);
}

.footer__email:hover { color: var(--accent); }

.footer__email-sub {
  display: block;
  margin-top: 18px;
  font-family: var(--mono);
  font-size: 11px;
  line-height: 1.4;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--muted);
}

.footer__avail {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 26px;
  font-family: var(--mono);
  font-size: 9px;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--muted);
}

.footer__grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: var(--gutter);
  padding-top: 28px;
  border-top: 1px solid var(--line);
}

.footer__col .label { margin-bottom: 14px; }

.footer__link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 9px 0;
  border-bottom: 1px solid var(--line);
  font-size: 12px;
  line-height: 1.4;
}

.footer__link .icon { width: 10px; height: 10px; opacity: .5; transition: transform var(--t-fast), opacity var(--t-fast); }
.footer__link:hover .icon { opacity: 1; transform: translate(2px, -2px); }

.footer__muted {
  margin-top: 12px;
  font-size: 12px;
  line-height: 1.7;
  color: var(--muted);
}

.footer__clock {
  margin-top: 8px;
  font-family: var(--mono);
  font-size: 18px;
  line-height: 1.2;
  letter-spacing: .06em;
  font-variant-numeric: tabular-nums;
}

.footer__mark {
  margin-top: clamp(48px, 8vw, 120px);
  overflow: hidden;
  font-family: var(--serif);
  font-size: clamp(64px, 18vw, 300px);
  font-weight: 400;
  line-height: .72;
  letter-spacing: -.06em;
  white-space: nowrap;
  color: transparent;
  -webkit-text-stroke: 1px var(--line-strong);
  user-select: none;
}

.footer__legal {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px 28px;
  margin-top: 24px;
  padding: 18px 0 28px;
  border-top: 1px solid var(--line);
  font-family: var(--mono);
  font-size: 9px;
  line-height: 1.6;
  letter-spacing: .05em;
  color: var(--muted);
}

.footer__legal a {
  text-decoration: underline;
  text-underline-offset: 3px;
  text-decoration-thickness: 1px;
}

.footer__legal a:hover { color: var(--accent); }

.footer__beian {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  white-space: nowrap;
}

.footer__beian img {
  flex: none;
  width: auto;
  height: 16px;
}

.footer__top { margin-left: auto; }

/* ---------- 13. Page heads ---------------------------------------------- */
.page-head {
  padding-top: calc(var(--header-h) + clamp(48px, 8vh, 96px));
  padding-bottom: clamp(40px, 6vw, 80px);
  border-bottom: 1px solid var(--line);
}

.page-head__top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 24px;
  margin-bottom: clamp(40px, 7vw, 96px);
}

.page-head__count { text-align: right; }

.page-title {
  max-width: 14ch;
  font-family: var(--serif);
  font-size: var(--fs-h1);
  font-weight: 400;
  line-height: .9;
  letter-spacing: -.045em;
}

html[lang="zh-CN"] .page-title {
  line-height: 1.02;
  letter-spacing: .005em;
  font-weight: 600;
}

.page-title__sup {
  display: inline-block;
  margin-left: 18px;
  vertical-align: top;
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 400;
  line-height: 1.4;
  letter-spacing: .1em;
  color: var(--muted);
  text-transform: uppercase;
}

.page-head__bottom {
  display: grid;
  grid-template-columns: 7fr 5fr;
  gap: var(--gutter);
  align-items: end;
  margin-top: clamp(36px, 5vw, 64px);
}

.page-head__lead {
  max-width: 36ch;
  font-size: var(--fs-lead);
  line-height: 1.5;
  letter-spacing: -.015em;
}

.page-head__meta {
  justify-self: end;
  text-align: right;
  font-family: var(--mono);
  font-size: 9px;
  line-height: 1.9;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--muted);
}

.page-title--about { max-width: none; }
.page-title--cv {
  max-width: none;
  font-size: clamp(36px, 5.4vw, 82px);
  letter-spacing: -.03em;
}

h2[id], section[id], main[id] {
  scroll-margin-top: calc(var(--header-h) + 24px);
}

/* ---------- 14. Work index ----------------------------------------------- */
.project-index { padding-block: var(--section-y); }

.project-block {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: var(--gutter);
  align-items: center;
  padding-block: var(--block-y);
  border-bottom: 1px solid var(--line);
}

.project-block:first-child { padding-top: 0; }

.project-block__media {
  grid-column: 1 / 8;
  min-width: 0;
  display: block;
}

.project-block--reverse .project-block__media {
  grid-column: 6 / 13;
  grid-row: 1;
}

.project-block__body {
  grid-column: 9 / 13;
  min-width: 0;
}

.project-block--reverse .project-block__body {
  grid-column: 1 / 5;
  grid-row: 1;
}

.figure__cap {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 4px 14px;
  margin-top: 10px;
  font-family: var(--mono);
  font-size: 8px;
  line-height: 1.6;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--muted);
}

.figure__index { flex: none; color: var(--accent); }

.project-block__media .figure__frame {
  aspect-ratio: 4 / 5;
  border: 1px solid var(--line);
}

.project-block__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 1200ms var(--e-out), filter 600ms;
}

.project-block__media:hover img { transform: scale(1.03); }

.project-block__cap {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  margin-top: 10px;
  font-family: var(--mono);
  font-size: 8px;
  line-height: 1.5;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--muted);
}

.project-block__title {
  margin: 18px 0 16px;
  font-family: var(--serif);
  font-size: clamp(32px, 4.2vw, 62px);
  font-weight: 400;
  line-height: .98;
  letter-spacing: -.038em;
}

.project-block__title a { transition: color var(--t-fast); }
.project-block__title a:hover { color: var(--accent); }

.project-block__sub {
  margin-bottom: 16px;
  font-size: 17px;
  line-height: 1.5;
  letter-spacing: -.01em;
}

.project-block__summary {
  margin-bottom: 28px;
  font-size: 13px;
  line-height: 1.7;
  color: var(--muted);
}

.meta-rows { border-top: 1px solid var(--line); }

.meta-rows__row {
  display: grid;
  grid-template-columns: 90px 1fr;
  gap: 12px;
  padding: 9px 0;
  border-bottom: 1px solid var(--line);
}

.meta-rows dt,
.meta-rows dd {
  font-family: var(--mono);
  font-size: 9px;
  line-height: 1.55;
  letter-spacing: .06em;
  text-transform: uppercase;
}

.meta-rows dt { color: var(--muted); }
.meta-rows dd { color: var(--ink); }

.project-block__body .arrow-link { margin-top: 26px; }

.section--archive { border-top: 1px solid var(--line); }

.archive-list { border-top: 1px solid var(--line); }

.archive-row {
  display: grid;
  grid-template-columns: 90px minmax(0, 1fr) 320px;
  gap: var(--gutter);
  align-items: start;
  padding: 22px 0;
  border-bottom: 1px solid var(--line);
}

.archive-row__year {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: .08em;
  color: var(--accent);
}

.archive-row__body h3 {
  font-family: var(--serif);
  font-size: clamp(24px, 2.4vw, 34px);
  font-weight: 400;
  line-height: 1.1;
  letter-spacing: -.02em;
}

.archive-row__body p {
  margin-top: 6px;
  font-size: 13px;
  line-height: 1.6;
  color: var(--muted);
}

.archive-row__meta {
  font-family: var(--mono);
  font-size: 9px;
  line-height: 1.6;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--muted);
  text-align: right;
}

/* ---------- 15. Case study ----------------------------------------------- */
.case-head {
  padding-top: calc(var(--header-h) + clamp(48px, 8vh, 88px));
}

.case-head__top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 24px;
  margin-bottom: clamp(32px, 5vw, 56px);
}

.back {
  font-family: var(--mono);
  font-size: 10px;
  line-height: 1.4;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--muted);
  transition: color var(--t-fast);
}

.back:hover { color: var(--accent); }

.case-title {
  max-width: 12ch;
  font-family: var(--serif);
  font-size: clamp(52px, 9vw, 140px);
  font-weight: 400;
  line-height: .88;
  letter-spacing: -.05em;
}

html[lang="zh-CN"] .case-title {
  font-weight: 900;
  line-height: 1.02;
  letter-spacing: .01em;
}

.case-sub {
  max-width: 40ch;
  margin-top: clamp(24px, 3vw, 36px);
  font-size: clamp(18px, 1.6vw, 23px);
  line-height: 1.5;
  letter-spacing: -.015em;
}

.case-meta {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: var(--gutter);
  margin-top: clamp(36px, 5vw, 56px);
  padding-top: 18px;
  border-top: 1px solid var(--line);
}

.case-meta div { display: flex; flex-direction: column; gap: 6px; }

.case-meta dt {
  font-family: var(--mono);
  font-size: 9px;
  line-height: 1.4;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--muted);
}

.case-meta dd {
  font-size: 12px;
  line-height: 1.5;
  color: var(--ink);
}

.case-links {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 9px;
}

.pill {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  min-height: 30px;
  padding: 6px 11px;
  border: 1px solid rgba(242, 239, 232, .18);
  border-radius: 999px;
  background: #111110;
  color: #F3F0E9;
  font-family: var(--mono);
  font-size: 9px;
  line-height: 1;
  letter-spacing: .02em;
  white-space: nowrap;
  transition: background var(--t-fast), border-color var(--t-fast);
}

.pill:hover {
  background: var(--accent);
  border-color: var(--accent);
  color: #fff;
}

.pill__icon { width: 12px; height: 12px; flex: none; }
.pill__logo { width: 16px; height: 16px; flex: none; border-radius: 2px; object-fit: cover; }
.paper-actions .pill { margin-top: 0; }

.case-cover { margin-top: clamp(40px, 6vw, 80px); }

.case-cover__frame {
  width: 100%;
  height: min(86vh, 920px);
  height: min(86svh, 920px);
  overflow: hidden;
  background: var(--black);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.case-cover__frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.case-cover__cap {
  display: grid;
  grid-template-columns: 1fr 1fr auto;
  gap: var(--gutter);
  padding-top: 10px;
  font-family: var(--mono);
  font-size: 8px;
  line-height: 1.6;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--muted);
}

.case-layout {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: var(--gutter);
  padding-block: var(--section-y);
}

.case-aside {
  grid-column: 1 / 4;
  align-self: start;
  position: sticky;
  top: calc(var(--header-h) + 32px);
}

.case-aside__lead {
  margin-top: 20px;
  font-size: 15px;
  line-height: 1.7;
  color: var(--ink);
}

.case-aside__note {
  margin-top: 22px;
  font-family: var(--mono);
  font-size: 9px;
  line-height: 1.6;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--muted);
}

.case-aside__paper { margin-top: 20px; }

.case-facts { margin-top: 28px; border-top: 1px solid var(--line); }

.case-facts div {
  display: grid;
  grid-template-columns: 70px 1fr;
  gap: 8px;
  padding: 9px 0;
  border-bottom: 1px solid var(--line);
}

.case-facts dt,
.case-facts dd {
  font-family: var(--mono);
  font-size: 8px;
  line-height: 1.5;
  letter-spacing: .06em;
  text-transform: uppercase;
}

.case-facts dt { color: var(--muted); }

.case-main {
  grid-column: 4 / 13;
  min-width: 0;
}

.metric-band {
  margin-top: clamp(56px, 8vw, 96px);
  padding-top: 20px;
  border-top: 1px solid var(--line);
}

.metric-band__grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: var(--gutter);
  margin-top: 28px;
}

.metric { display: flex; flex-direction: column; gap: 8px; }

.metric__value {
  font-family: var(--serif);
  font-size: clamp(38px, 4.4vw, 64px);
  font-weight: 400;
  line-height: .9;
  letter-spacing: -.04em;
  font-variant-numeric: tabular-nums;
}

.metric__label {
  font-family: var(--mono);
  font-size: 8px;
  line-height: 1.5;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--muted);
}

.next-work {
  display: block;
  border-top: 1px solid var(--line);
  padding-block: clamp(64px, 10vw, 140px);
  transition: background var(--t-ui), color var(--t-ui);
}

.next-work:hover { background: var(--ink); color: var(--paper); }

.next-work__inner {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 32px;
}

.next-work .label { transition: color var(--t-ui); }
.next-work:hover .label { color: var(--paper); }

.next-work__title {
  margin: 18px 0 14px;
  font-family: var(--serif);
  font-size: clamp(40px, 7vw, 110px);
  font-weight: 400;
  line-height: .9;
  letter-spacing: -.045em;
}

html[lang="zh-CN"] .next-work__title { font-weight: 600; line-height: 1.05; }

.next-work__sub {
  max-width: 42ch;
  font-size: 15px;
  line-height: 1.6;
  opacity: .65;
}

.next-work__arrow .icon {
  width: clamp(40px, 6vw, 80px);
  height: clamp(40px, 6vw, 80px);
  transition: transform 600ms var(--e-out);
}

.next-work:hover .next-work__arrow .icon { transform: translate(8px, -8px); }

/* ---------- 16. Prose ---------------------------------------------------- */
.prose {
  max-width: 68ch;
  font-size: clamp(17px, 1.16vw, 19px);
  line-height: 1.8;
}

html[lang="zh-CN"] body {
  line-break: strict;
  overflow-wrap: break-word;
}

html[lang="zh-CN"] .prose p { line-height: 1.9; letter-spacing: .012em; }

.prose > p + p { margin-top: 1.25em; }

.prose h2 {
  margin-top: 2.2em;
  margin-bottom: .7em;
  font-family: var(--serif);
  font-size: clamp(28px, 2.6vw, 40px);
  font-weight: 400;
  line-height: 1.08;
  letter-spacing: -.025em;
}

html[lang="zh-CN"] .prose h2 {
  font-weight: 600;
  line-height: 1.25;
  letter-spacing: .01em;
}

.prose h2:first-child { margin-top: 0; }

.prose h3 {
  margin-top: 1.8em;
  margin-bottom: .6em;
  font-family: var(--sans);
  font-size: 18px;
  font-weight: 500;
  line-height: 1.4;
}

.prose p { margin: 0; }

.prose strong { font-weight: 500; }

.prose em { font-style: italic; }

html[lang="zh-CN"] .prose em { font-style: normal; color: var(--muted); }

.prose a {
  text-decoration: underline;
  text-underline-offset: 4px;
  text-decoration-thickness: 1px;
  transition: color var(--t-fast);
}

.prose a:hover { color: var(--accent); }

.prose ul {
  margin: 1.2em 0;
  padding-left: 0;
}

.prose ul li {
  position: relative;
  padding-left: 1.4em;
  margin-bottom: .55em;
}

.prose ul li::before {
  content: "—";
  position: absolute;
  left: 0;
  color: var(--accent);
}

.prose ol { counter-reset: list; margin: 1.2em 0; padding-left: 1.4em; }
.prose ol li { list-style: decimal; margin-bottom: .5em; }

.prose blockquote {
  margin: clamp(36px, 5vw, 56px) 0;
  padding: 0 0 0 clamp(18px, 2vw, 28px);
  border-left: 1px solid var(--accent);
  font-family: var(--serif);
  font-size: clamp(24px, 2.4vw, 34px);
  line-height: 1.25;
  letter-spacing: -.02em;
  color: var(--ink);
}

html[lang="zh-CN"] .prose blockquote {
  font-family: "Noto Serif SC", var(--serif);
  font-weight: 600;
  line-height: 1.5;
  letter-spacing: .01em;
}

.prose code {
  padding: 2px 5px;
  background: var(--paper-2);
  border: 1px solid var(--line);
  font-family: var(--mono);
  font-size: .82em;
  letter-spacing: 0;
}

.prose pre {
  margin: 1.6em 0;
  padding: 18px 20px;
  overflow-x: auto;
  background: var(--black);
  color: var(--bone);
  border: 1px solid var(--line);
  font-family: var(--mono);
  font-size: 12px;
  line-height: 1.65;
}

.prose pre code {
  padding: 0;
  border: 0;
  background: none;
  color: inherit;
  font-size: inherit;
}

.prose hr {
  margin: 2.4em 0;
  border: 0;
  border-top: 1px solid var(--line);
}

.prose--case {
  max-width: none;
  counter-reset: section;
}

.prose--case > p,
.prose--case > h2,
.prose--case > h3,
.prose--case > blockquote,
.prose--case > ul,
.prose--case > ol {
  max-width: 66ch;
}

.prose--case h2 {
  counter-increment: section;
  padding-top: 18px;
  border-top: 1px solid var(--line);
}

.prose--case h2::before {
  content: counter(section, decimal-leading-zero);
  display: block;
  margin-bottom: 10px;
  font-family: var(--mono);
  font-size: 9px;
  font-weight: 400;
  letter-spacing: .12em;
  color: var(--accent);
}

.prose--case .diagram { width: 100%; max-width: 100%; }

.diagram { margin: clamp(40px, 6vw, 64px) 0; }

.diagram__frame {
  overflow: hidden;
  border: 1px solid var(--line);
  background: var(--paper-2);
}

.diagram__frame svg { width: 100%; height: auto; }

.diagram__cap {
  display: flex;
  gap: 20px;
  margin-top: 9px;
  font-family: var(--mono);
  font-size: 8px;
  line-height: 1.6;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--muted);
}

.diagram__cap span:first-child { color: var(--accent); flex: none; }

.diagram__swipe {
  display: none;
  margin-left: auto;
  color: var(--accent);
  white-space: nowrap;
}

/* ---------- 17. Notes index --------------------------------------------- */
.notes-layout {
  display: grid;
  grid-template-columns: 8fr 4fr;
  gap: clamp(32px, 5vw, 80px);
  padding-block: var(--section-y);
  align-items: start;
}

.note-feature {
  display: block;
  padding: 26px 0 48px;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.note-feature__top {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: clamp(32px, 4vw, 48px);
}

.note-feature__top .label span:first-child { color: var(--accent); }

.note-feature__title {
  max-width: 14ch;
  font-family: var(--serif);
  font-size: clamp(40px, 5.5vw, 82px);
  font-weight: 400;
  line-height: .96;
  letter-spacing: -.04em;
  transition: color var(--t-fast);
}

html[lang="zh-CN"] .note-feature__title { font-weight: 600; line-height: 1.08; }

.note-feature:hover .note-feature__title { color: var(--accent); }

.note-feature__dek {
  max-width: 46ch;
  margin-top: 22px;
  font-size: 16px;
  line-height: 1.65;
  color: var(--muted);
}

.note-feature__more {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-top: 34px;
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: .1em;
  text-transform: uppercase;
}

.note-list--index { margin-top: 0; }

.note-list--index .note-row {
  grid-template-columns: 100px 80px minmax(0, 1fr) 80px;
  padding: 20px 0;
}

.note-list--index .note-row__title { font-size: clamp(22px, 2.2vw, 32px); }

.note-list--index .note-row__dek {
  display: none;
}

.notes-aside {
  position: sticky;
  top: calc(var(--header-h) + 32px);
  border-top: 1px solid var(--line);
}

.notes-aside__block {
  padding: 20px 0;
  border-bottom: 1px solid var(--line);
}

.notes-aside__block .label { margin-bottom: 14px; }

.category-list li {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 7px 0;
  font-family: var(--mono);
  font-size: 9px;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--muted);
}

.category-list li span:last-child { color: var(--accent); }

.forthcoming-list li {
  position: relative;
  padding: 7px 0 7px 16px;
  font-size: 13px;
  line-height: 1.5;
  color: var(--muted);
}

.forthcoming-list li::before {
  content: "·";
  position: absolute;
  left: 0;
  color: var(--accent);
}

.notes-aside__note p {
  font-size: 13px;
  line-height: 1.65;
  color: var(--muted);
  margin-bottom: 16px;
}

/* ---------- 18. Note detail --------------------------------------------- */
.note-head {
  padding-top: calc(var(--header-h) + clamp(48px, 8vh, 88px));
}

.note-head__top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 24px;
  margin-bottom: clamp(36px, 5vw, 56px);
}

.note-title {
  max-width: 16ch;
  font-family: var(--serif);
  font-size: clamp(44px, 7vw, 108px);
  font-weight: 400;
  line-height: .95;
  letter-spacing: -.045em;
}

html[lang="zh-CN"] .note-title {
  font-weight: 600;
  line-height: 1.12;
  letter-spacing: .005em;
}

.note-dek {
  max-width: 44ch;
  margin-top: clamp(24px, 3vw, 34px);
  font-size: clamp(18px, 1.5vw, 22px);
  line-height: 1.55;
  color: var(--muted);
}

.note-head__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 28px;
  margin-top: 36px;
  padding-top: 16px;
  border-top: 1px solid var(--line);
  font-family: var(--mono);
  font-size: 9px;
  line-height: 1.6;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--muted);
}

.note-layout {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: var(--gutter);
  padding-block: clamp(56px, 8vw, 96px);
}

.note-toc {
  grid-column: 1 / 4;
  align-self: start;
  position: sticky;
  top: calc(var(--header-h) + 32px);
}

.note-toc nav { margin-top: 16px; border-top: 1px solid var(--line); }

.note-toc__item a {
  display: block;
  padding: 8px 0;
  border-bottom: 1px solid var(--line);
  font-family: var(--sans);
  font-size: 12px;
  line-height: 1.5;
  color: var(--muted);
  transition: color var(--t-fast), padding-left var(--t-ui) var(--e-out);
}

.note-toc__item--3 a { padding-left: 14px; font-size: 11px; }

.note-toc__item a:hover,
.note-toc__item a.is-active { color: var(--accent); padding-left: 6px; }

.note-toc__item--3 a:hover,
.note-toc__item--3 a.is-active { padding-left: 20px; }

.prose--note {
  grid-column: 4 / 11;
  max-width: 66ch;
  counter-reset: section;
}

.prose--note h2 {
  counter-increment: section;
  margin-top: 2.6em;
  padding-top: 18px;
  border-top: 1px solid var(--line);
}

.prose--note h2::before {
  content: counter(section, decimal-leading-zero);
  display: block;
  margin-bottom: 10px;
  font-family: var(--mono);
  font-size: 9px;
  font-weight: 400;
  letter-spacing: .12em;
  color: var(--accent);
}

html[lang="en"] .prose--note > p:first-of-type::first-letter {
  float: left;
  margin: .08em .12em 0 0;
  font-family: var(--serif);
  font-size: 4.2em;
  line-height: .78;
  letter-spacing: -.03em;
  color: var(--ink);
}

.note-foot {
  padding-top: 24px;
  padding-bottom: clamp(64px, 8vw, 120px);
}

.note-foot__rule { height: 1px; background: var(--line); }

.note-foot__nav {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--gutter);
  padding: 28px 0;
  border-bottom: 1px solid var(--line);
}

.note-foot__link { display: flex; flex-direction: column; gap: 8px; }
.note-foot__link--next { text-align: right; align-items: flex-end; }

.note-foot__title {
  font-family: var(--serif);
  font-size: clamp(22px, 2.4vw, 34px);
  line-height: 1.1;
  letter-spacing: -.025em;
  transition: color var(--t-fast);
}

.note-foot__link:hover .note-foot__title { color: var(--accent); }

.note-foot__end {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  padding-top: 18px;
}

/* ---------- 19. About ---------------------------------------------------- */
.about-profile {
  padding-block: clamp(64px, 8vw, 120px);
  border-bottom: 1px solid var(--line);
}

.page--about .section { padding-block: clamp(64px, 8vw, 120px); }

.about-profile__grid {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: var(--gutter);
  align-items: start;
}

.about-profile__figure { grid-column: 1 / 6; }

.about-profile__figure .figure__frame {
  aspect-ratio: 4 / 5;
  overflow: hidden;
  border: 1px solid var(--line);
}

.about-profile__figure img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.about-profile__copy { grid-column: 7 / 13; padding-top: 6vh; }

.about-profile__para {
  max-width: 54ch;
  margin-bottom: 1.3em;
  font-size: clamp(16px, 1.2vw, 19px);
  line-height: 1.75;
  color: var(--ink);
}

.about-profile__para--lead {
  font-family: var(--serif);
  font-size: clamp(24px, 2.4vw, 34px);
  line-height: 1.35;
  letter-spacing: -.02em;
}

html[lang="zh-CN"] .about-profile__para--lead {
  font-family: "Noto Serif SC", var(--serif);
  font-weight: 600;
  line-height: 1.7;
  letter-spacing: .01em;
}

.about-profile__links {
  display: flex;
  flex-wrap: wrap;
  gap: 28px;
  margin-top: 34px;
}

.split-head {
  display: block;
  margin-bottom: clamp(32px, 4vw, 52px);
}

.split-head .label { margin-bottom: 16px; }

.split-head__title {
  max-width: 16ch;
  font-family: var(--serif);
  font-size: clamp(30px, 3.6vw, 52px);
  font-weight: 400;
  line-height: 1;
  letter-spacing: -.035em;
  text-wrap: balance;
}

html[lang="zh-CN"] .split-head__title { font-weight: 600; line-height: 1.15; }

.now-list { border-top: 1px solid var(--line); max-width: 1000px; }

.now-list li {
  display: grid;
  grid-template-columns: 56px minmax(0, 1fr);
  gap: var(--gutter);
  padding: 18px 0;
  border-bottom: 1px solid var(--line);
  font-size: clamp(17px, 1.5vw, 21px);
  line-height: 1.5;
}

.now-list__index {
  font-family: var(--mono);
  font-size: 9px;
  letter-spacing: .08em;
  color: var(--accent);
  padding-top: 6px;
}

.about-two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(40px, 8vw, 140px);
  align-items: start;
}

.about-two-col .split-head { display: block; }
.about-two-col .split-head .label { margin-bottom: 16px; }
.about-two-col .split-head__title { max-width: 12ch; }

.practice-list { border-top: 1px solid var(--line); }

.practice-list li {
  display: grid;
  grid-template-columns: 40px minmax(0, 1fr);
  gap: 14px;
  padding: 14px 0;
  border-bottom: 1px solid var(--line);
  font-size: clamp(16px, 1.4vw, 20px);
  line-height: 1.45;
}

.practice-list li span:first-child {
  font-family: var(--mono);
  font-size: 9px;
  color: var(--accent);
  padding-top: 5px;
}

.edu-block { border-top: 1px solid var(--line); padding: 22px 0; }

.edu-block h3 {
  margin: 8px 0 4px;
  font-family: var(--serif);
  font-size: clamp(24px, 2.4vw, 34px);
  font-weight: 400;
  line-height: 1.1;
  letter-spacing: -.025em;
}

.edu-block__degree {
  font-size: 14px;
  line-height: 1.5;
}

.edu-block__detail {
  margin-top: 12px;
  font-size: 13px;
  line-height: 1.7;
  color: var(--muted);
}

.research-item {
  padding: 28px 0 36px;
  border-top: 1px solid var(--line);
}

.research-item__title {
  max-width: 30ch;
  margin: 18px 0 20px;
  font-family: var(--serif);
  font-size: clamp(28px, 3.6vw, 52px);
  font-weight: 400;
  line-height: 1.06;
  letter-spacing: -.03em;
}

html[lang="zh-CN"] .research-item__title { font-weight: 600; line-height: 1.3; }

.research-item__detail {
  max-width: 70ch;
  font-size: 15px;
  line-height: 1.75;
  color: var(--muted);
}

.research-item .arrow-link { margin-top: 20px; }

.timeline { border-top: 1px solid var(--line); }

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

.timeline__year {
  font-family: var(--mono);
  font-size: 10px;
  line-height: 1.5;
  letter-spacing: .06em;
  color: var(--accent);
  padding-top: 4px;
}

.timeline__body h3 {
  font-family: var(--serif);
  font-size: clamp(22px, 2.2vw, 30px);
  font-weight: 400;
  line-height: 1.1;
  letter-spacing: -.02em;
}

.timeline__body p {
  margin-top: 6px;
  font-size: 13px;
  line-height: 1.65;
  color: var(--muted);
}

.skill-list { border-top: 1px solid var(--line); }

.skill-list div {
  display: grid;
  grid-template-columns: 150px minmax(0, 1fr);
  gap: 16px;
  padding: 12px 0;
  border-bottom: 1px solid var(--line);
}

.skill-list dt {
  font-family: var(--mono);
  font-size: 9px;
  line-height: 1.6;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--muted);
}

.skill-list dd {
  font-size: 13px;
  line-height: 1.6;
}

.honor-list { border-top: 1px solid var(--line); }

.honor-list li {
  display: grid;
  grid-template-columns: 48px minmax(0, 1fr);
  gap: var(--gutter);
  padding: 16px 0;
  border-bottom: 1px solid var(--line);
  font-size: 15px;
  line-height: 1.6;
}

.honor-list li span:first-child {
  font-family: var(--mono);
  font-size: 9px;
  color: var(--accent);
  padding-top: 4px;
}

/* ---------- 20. CV ------------------------------------------------------- */
.cv {
  max-width: 960px;
  padding-block: clamp(40px, 6vw, 72px) clamp(80px, 10vw, 140px);
}

.cv__note {
  margin-bottom: 40px;
  font-family: var(--mono);
  font-size: 9px;
  line-height: 1.6;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--muted);
}

.cv-section {
  display: grid;
  grid-template-columns: 110px minmax(0, 1fr);
  gap: clamp(24px, 4vw, 56px);
  padding: 26px 0;
  border-top: 1px solid var(--line);
}

.cv-section__head .label { display: block; margin-bottom: 8px; }

.cv-section__head h2 {
  font-family: var(--sans);
  font-size: 12px;
  font-weight: 500;
  line-height: 1.4;
  letter-spacing: .04em;
  text-transform: uppercase;
}

.cv-item { padding-bottom: 22px; }
.cv-item:last-child { padding-bottom: 0; }

.cv-item__top {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 24px;
}

.cv-item__top h3 {
  font-family: var(--serif);
  font-size: clamp(20px, 2vw, 26px);
  font-weight: 400;
  line-height: 1.15;
  letter-spacing: -.02em;
}

.cv-item__role {
  margin-top: 4px;
  font-family: var(--mono);
  font-size: 9px;
  line-height: 1.6;
  letter-spacing: .04em;
  color: var(--muted);
}

.cv-item__detail {
  max-width: 68ch;
  margin-top: 8px;
  font-size: 13px;
  line-height: 1.7;
  color: var(--muted);
}

.cv-skills div {
  display: grid;
  grid-template-columns: 150px minmax(0, 1fr);
  gap: 16px;
  padding: 7px 0;
  border-bottom: 1px solid var(--line);
}

.cv-skills dt {
  font-family: var(--mono);
  font-size: 9px;
  line-height: 1.6;
  letter-spacing: .04em;
  text-transform: uppercase;
  color: var(--muted);
}

.cv-skills dd { font-size: 12px; line-height: 1.6; }

.cv-honors li {
  position: relative;
  padding: 6px 0 6px 18px;
  font-size: 13px;
  line-height: 1.6;
}

.cv-honors li::before {
  content: "—";
  position: absolute;
  left: 0;
  color: var(--accent);
}

.cv-foot {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  margin-top: 16px;
  padding-top: 18px;
  border-top: 1px solid var(--line);
}

/* ---------- 21. Contact -------------------------------------------------- */
.contact-hero {
  padding-top: calc(var(--header-h) + clamp(56px, 9vh, 100px));
  padding-bottom: clamp(64px, 8vw, 120px);
}

.page--contact .footer { padding-top: clamp(24px, 4vw, 48px); }

.contact-hero__top {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: clamp(48px, 8vw, 96px);
}

.contact-title {
  max-width: 10ch;
  font-family: var(--serif);
  font-size: clamp(64px, 11vw, 180px);
  font-weight: 400;
  line-height: .86;
  letter-spacing: -.05em;
}

html[lang="zh-CN"] .contact-title { font-weight: 900; line-height: .98; letter-spacing: .01em; }

.contact-lead {
  max-width: 36ch;
  margin-top: 28px;
  font-size: clamp(18px, 1.8vw, 24px);
  line-height: 1.5;
  color: var(--ink);
}

.contact-email-wrap {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 20px 28px;
  margin-top: clamp(40px, 6vw, 64px);
  padding: 24px 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.contact-email {
  font-family: var(--serif);
  font-size: clamp(28px, 5.6vw, 80px);
  line-height: 1;
  letter-spacing: -.035em;
  transition: color var(--t-fast);
}

.contact-email:hover { color: var(--accent); }

.copy-button {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0 2px;
  border: 0;
  border-bottom: 1px solid var(--line-strong);
  font-family: var(--mono);
  font-size: 9px;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--muted);
  transition: color var(--t-fast), border-color var(--t-fast);
}

.copy-button:hover { color: var(--accent); border-color: var(--accent); }

.contact-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: var(--gutter);
  margin-top: clamp(56px, 8vw, 96px);
}

.contact-card { padding-top: 16px; border-top: 1px solid var(--line); }

.contact-card__link {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  padding: 8px 0;
  border-bottom: 1px solid var(--line);
  font-size: 13px;
  line-height: 1.4;
}

.contact-card__link .icon { width: 10px; height: 10px; opacity: .5; }
.contact-card__link:hover { color: var(--accent); }

.contact-card__big {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 8px;
  font-family: var(--serif);
  font-size: clamp(20px, 2vw, 28px);
  line-height: 1.2;
  letter-spacing: -.02em;
}

.contact-card__note {
  margin-top: 12px;
  font-size: 12px;
  line-height: 1.65;
  color: var(--muted);
}

.contact-foot {
  margin-top: clamp(48px, 7vw, 80px);
  font-family: var(--mono);
  font-size: 9px;
  line-height: 1.6;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--muted);
}

/* ---------- 22. Colophon ------------------------------------------------- */
.colophon { padding-block: var(--section-y); }

.colophon__section {
  display: grid;
  grid-template-columns: 220px minmax(0, 1fr);
  gap: clamp(24px, 5vw, 80px);
  padding: 30px 0;
  border-top: 1px solid var(--line);
}

.colophon__head .label { display: block; margin-bottom: 10px; }

.colophon__head h2 {
  font-family: var(--serif);
  font-size: clamp(22px, 2.2vw, 30px);
  font-weight: 400;
  line-height: 1.1;
  letter-spacing: -.02em;
}

.colophon__body { max-width: 70ch; }

.colophon__body p {
  font-size: 15px;
  line-height: 1.75;
  margin-bottom: 1em;
  color: var(--muted);
}

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

.type-specimens {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px 40px;
}

.type-specimen {
  display: flex;
  align-items: flex-end;
  gap: 20px;
  padding-top: 12px;
  border-top: 1px solid var(--line);
}

.type-specimen__sample {
  font-size: clamp(54px, 6vw, 92px);
  line-height: .8;
  letter-spacing: -.04em;
}

.type-specimen__sample--display { font-family: var(--serif); }
.type-specimen__sample--zh { font-family: "Noto Serif SC", serif; font-weight: 600; }
.type-specimen__sample--text { font-family: var(--sans); font-size: 64px; }
.type-specimen__sample--mono { font-family: var(--mono); font-size: 28px; letter-spacing: -.02em; }

.type-specimen div { display: flex; flex-direction: column; gap: 4px; }
.type-specimen strong { font-size: 13px; font-weight: 500; }
.type-specimen span { font-size: 11px; line-height: 1.5; color: var(--muted); }

.swatches {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: var(--gutter);
}

.swatch { display: flex; flex-direction: column; gap: 6px; }

.swatch__chip {
  display: block;
  height: 90px;
  background: var(--chip);
  border: 1px solid var(--line);
}

.swatch__name {
  font-family: var(--mono);
  font-size: 9px;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.swatch__hex {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: .04em;
  color: var(--muted);
}

.motion-specs {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: var(--gutter);
  margin-top: 24px;
  padding-top: 14px;
  border-top: 1px solid var(--line);
}

.motion-specs dt {
  font-family: var(--mono);
  font-size: 8px;
  line-height: 1.5;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--muted);
}

.motion-specs dd {
  margin-top: 4px;
  font-family: var(--mono);
  font-size: 11px;
  line-height: 1.4;
}

/* ---------- 23. 404 ------------------------------------------------------ */
.not-found {
  position: relative;
  min-height: 100vh;
  min-height: 100svh;
  display: grid;
  place-items: center;
  overflow: hidden;
  padding: calc(var(--header-h) + 40px) var(--margin) 80px;
}

.not-found__aperture {
  position: absolute;
  top: 50%;
  left: 50%;
  width: min(82vw, 780px);
  aspect-ratio: 1;
  transform: translate(-50%, -50%);
  opacity: .5;
}

.not-found__aperture span {
  position: absolute;
  top: 50%;
  left: 50%;
  border: 1px solid var(--line-strong);
  border-radius: 50%;
  transform: translate(-50%, -50%);
}

.not-found__aperture span:nth-child(1) { width: 100%; height: 100%; }
.not-found__aperture span:nth-child(2) { width: 74%; height: 74%; }
.not-found__aperture span:nth-child(3) { width: 48%; height: 48%; border-style: dashed; }
.not-found__aperture span:nth-child(4) { width: 24%; height: 24%; }
.not-found__aperture span:nth-child(5) { width: 6px; height: 6px; background: var(--accent); border: 0; }

.not-found__inner { position: relative; z-index: 1; text-align: center; }

.not-found__title {
  margin: 18px 0 .16em;
  padding-bottom: .08em;
  font-family: var(--serif);
  font-size: clamp(120px, 30vw, 420px);
  font-weight: 400;
  line-height: .94;
  letter-spacing: -.06em;
}

.not-found__note {
  position: relative;
  z-index: 2;
  max-width: 34ch;
  margin: 8px auto 32px;
  font-size: 16px;
  line-height: 1.6;
  color: var(--muted);
}

/* ---------- 24. Reveal / transitions ------------------------------------ */
html.enhance [data-reveal] {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 800ms var(--e-out), transform 800ms var(--e-out);
  transition-delay: calc(var(--i, 0) * 60ms);
}

html.enhance [data-reveal].is-inview {
  opacity: 1;
  transform: none;
}

@keyframes pageIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

.page main { animation: pageIn 700ms var(--e-out) both; }

@view-transition { navigation: auto; }

::view-transition-old(root) {
  animation: vt-out 260ms var(--e-soft) both;
}

::view-transition-new(root) {
  animation: vt-in 640ms var(--e-out) both;
}

html.theme-transition::view-transition-old(root) {
  animation: none;
}

html.theme-transition::view-transition-new(root) {
  animation: themeWipe 820ms var(--e-in-out) both;
}

@keyframes themeWipe {
  from { clip-path: circle(0 at var(--tx, 50%) var(--ty, 50%)); }
  to { clip-path: circle(150% at var(--tx, 50%) var(--ty, 50%)); }
}

@keyframes vt-out {
  to { opacity: 0; transform: translateY(-8px); }
}

@keyframes vt-in {
  from { opacity: 0; transform: translateY(12px); }
  to { opacity: 1; transform: none; }
}

/* ---------- 25. Dark mode refinements ----------------------------------- */
html[data-theme="dark"] .masthead { background: var(--paper); }

@supports (backdrop-filter: blur(10px)) {
  html[data-theme="dark"] .masthead {
    background: color-mix(in srgb, var(--paper) 86%, transparent);
  }
}

html[data-theme="dark"] .statement,
html[data-theme="dark"] .plate { background: var(--black); }

html[data-theme="dark"] .prose pre { background: #060605; }

html[data-theme="dark"] .footer__mark {
  -webkit-text-stroke-color: var(--line-strong);
}

/* ---------- 26. Responsive ---------------------------------------------- */
@media (max-width: 1180px) {
  .hero__copy { grid-column: 1 / 8; }
  .hero__figure { grid-column: 8 / 13; }
  .project-block__body { grid-column: 9 / 13; }
  .archive-row { grid-template-columns: 70px minmax(0, 1fr) 240px; }
}

@media (max-width: 980px) {
  :root { --header-h: 58px; --fs-display: clamp(52px, 10.5vw, 120px); }

  .masthead__tools { gap: 14px; }

  .index-pill__nav {
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    left: auto;
    width: min(196px, calc(100vw - 28px));
    max-width: none;
    max-height: 0;
    padding: 6px;
    flex-direction: column;
    align-items: stretch;
    gap: 2px;
    border: 1px solid rgba(242, 239, 232, .16);
    border-radius: 20px;
    background: #111110;
    opacity: 0;
    visibility: hidden;
    overflow: hidden;
    transform-origin: top right;
    transform: translateY(-6px) scale(.985);
    transition:
      max-height 260ms var(--e-exit),
      opacity 160ms var(--e-soft),
      transform 260ms var(--e-exit),
      visibility 0s 260ms;
  }

  .index-pill__disclosure[open] + .index-pill__nav {
    max-width: none;
    max-height: 300px;
    padding: 6px;
    opacity: 1;
    visibility: visible;
    transform: translateY(0) scale(1);
    transition:
      max-height 420ms var(--e-spring),
      opacity 220ms var(--e-soft),
      transform 460ms var(--spring-soft),
      visibility 0s;
  }

  .index-pill__nav a {
    padding: 9px 11px;
    font-size: 10px;
  }

  .hero { min-height: auto; }
  .hero__grid { grid-template-columns: 1fr; padding-top: 28px; }
  .hero__copy { grid-column: 1; padding: 4vh 0 0; }
  .hero__figure { grid-column: 1; padding-top: 36px; }
  .hero__scroll { position: static; margin-top: 22px; }
  .hero__title { font-size: clamp(56px, 13vw, 120px); }
  .hero__title--zh { font-size: clamp(64px, 15vw, 140px); }
  .hero__meta { margin-top: 36px; }
  .plate--aperture { max-height: none; aspect-ratio: 4 / 5; width: min(100%, 520px); margin: 0 auto; }

  .section-head { display: block; }
  .section-head__title { margin-top: 18px; }
  .section-head__side { margin-top: 20px; display: flex; justify-content: space-between; align-items: flex-end; gap: 20px; }
  .section-head__note { margin-bottom: 0; }

  .work-card {
    position: sticky;
    top: calc(var(--header-h) + 12px + var(--i) * 8px);
    height: auto;
    margin-bottom: 18vh;
    z-index: calc(10 + var(--i));
  }

  .work-card:last-child { margin-bottom: 0; }
  .work-card__link { grid-template-columns: 1fr; }
  .work-card__media { aspect-ratio: 4 / 3; }
  .work-card__body { border-left: 0; border-top: 1px solid var(--line); padding: 26px 22px 24px; }
  .work-card__title { max-width: none; margin-top: 26px; font-size: clamp(30px, 6.4vw, 44px); }
  .work-card__sub { max-width: 40ch; }
  .work-card__summary { max-width: 48ch; }
  .work-card__num { font-size: clamp(56px, 13vw, 96px); }
  .work-card__foot { margin-top: 28px; }

  .note-row { grid-template-columns: 90px 80px minmax(0, 1fr); }
  .note-row__read { display: none; }

  .about-teaser__grid { display: block; }
  .about-teaser__figure { max-width: 440px; margin-bottom: 36px; }
  .about-teaser__copy { max-width: 640px; }

  .project-block { display: block; }
  .project-block__media,
  .project-block--reverse .project-block__media { margin-bottom: 28px; }
  .project-block__body,
  .project-block--reverse .project-block__body { max-width: 640px; }
  .project-block--reverse .project-block__media { grid-row: auto; }

  .case-layout { display: block; }
  .case-aside { position: static; margin-bottom: 48px; max-width: 540px; }
  .case-main { max-width: 100%; }
  .case-meta { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
  .case-cover__frame { height: min(70svh, 720px); }
  .case-cover__cap { grid-template-columns: 1fr auto; }
  .case-cover__cap span:nth-child(2) { display: none; }

  .notes-layout { grid-template-columns: 1fr; }
  .notes-aside { position: static; display: grid; grid-template-columns: 1fr 1fr; gap: 0 32px; border-top: 0; }
  .notes-aside__block:first-child { border-top: 1px solid var(--line); }

  .note-layout { display: block; }
  .note-toc { position: static; margin-bottom: 32px; }
  .note-toc nav { border-top: 1px solid var(--line); }
  .prose--note { max-width: 100%; }

  .about-profile__grid { display: block; }
  .about-profile__figure { max-width: 460px; margin-bottom: 40px; }
  .about-profile__copy { padding-top: 0; }
  .about-two-col { grid-template-columns: 1fr; gap: 56px; }
  .page-head__bottom { grid-template-columns: 1fr; gap: 24px; }
  .page-head__meta { justify-self: start; text-align: left; }

  .contact-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 32px var(--gutter); }
  .diagram__frame {
    overflow-x: auto;
    overflow-y: hidden;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: thin;
  }
  .diagram__frame svg { min-width: 720px; max-width: none; }
  .diagram__swipe { display: inline; }
  .colophon__section { grid-template-columns: 1fr; gap: 20px; }
  .type-specimens { grid-template-columns: 1fr; }
  .swatches { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .motion-specs { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

@media (max-width: 640px) {
  :root { --margin: 20px; --gutter: 16px; --section-y: 80px; }

  .brand { font-size: 11px; letter-spacing: .16em; }
  .masthead__tools { gap: 10px; }
  .lang { font-size: 9px; }

  .hero__grid { padding-top: 18px; }
  .hero__title { font-size: clamp(48px, 15vw, 78px); line-height: .88; }
  .hero__title--zh { font-size: clamp(58px, 18vw, 94px); }
  .hero__translation { font-size: 15px; }
  .hero__lead { font-size: 16px; }
  .hero__meta { grid-template-columns: 1fr; gap: 6px; }
  .hero__scroll { margin-top: 20px; }
  .plate--aperture { aspect-ratio: 3 / 4; }

  .marquee__track span { font-size: 8px; }

  .section-head__side { display: block; }
  .section-head__side .arrow-link { margin-top: 18px; }

  .work-card { margin-bottom: 22px; }
  .work-card__body { padding: 22px 18px 20px; }
  .work-card__title { font-size: clamp(28px, 8vw, 36px); }
  .work-card__num { font-size: 52px; }
  .work-card__sub { font-size: 16px; }

  .note-row { display: block; padding: 18px 0; }
  .note-row__date { display: inline-block; margin-right: 12px; }
  .note-row__cat { display: inline-block; }
  .note-row__body { margin-top: 8px; }
  .note-row__title { font-size: 25px; }
  .note-row__dek { font-size: 12px; }

  .statement { min-height: 70svh; }
  .statement__quote { font-size: clamp(30px, 8.6vw, 44px); max-width: 18ch; }
  .statement__label { margin-bottom: 24px; }

  .about-teaser__figure { margin-bottom: 34px; }
  .about-teaser__title { font-size: 36px; }
  .stat-row { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
  .stat-row dd { font-size: clamp(30px, 8vw, 40px); }
  .stat-row dt { font-size: 8px; }

  .footer__grid { grid-template-columns: 1fr 1fr; gap: 28px var(--gutter); }
  .footer__mark { font-size: 17.5vw; letter-spacing: -.07em; }
  .footer__legal { justify-content: flex-start; gap: 8px 16px; }
  .footer__top { display: none; }

  .page-head__top { margin-bottom: 40px; }
  .page-title { font-size: clamp(40px, 12vw, 64px); }
  .page-title--cv { font-size: clamp(26px, 8.2vw, 40px); white-space: nowrap; }
  .page-title__sup { display: block; margin: 12px 0 0; }
  .page-head__lead { font-size: 18px; }

  .case-title { font-size: clamp(44px, 12vw, 72px); }
  .case-sub { font-size: 17px; }
  .case-cover__frame { height: 56svh; }
  .case-meta { grid-template-columns: 1fr 1fr; }
  .metric-band__grid { grid-template-columns: 1fr 1fr; gap: 28px 16px; }
  .next-work__inner { display: block; }
  .next-work__arrow { display: inline-block; margin-top: 24px; }

  .note-title { font-size: clamp(38px, 11vw, 58px); }
  .note-head__meta { gap: 6px 18px; }
  .note-foot__nav { grid-template-columns: 1fr; gap: 24px; }
  .note-foot__link--next { text-align: left; align-items: flex-start; }
  .note-foot__end { flex-direction: column; gap: 14px; }

  .split-head { display: block; }
  .split-head .label { margin-bottom: 14px; }
  .split-head__title { font-size: 30px; }
  .about-profile__para--lead { font-size: 22px; }
  .timeline__row { grid-template-columns: 1fr; gap: 6px; }
  .timeline__year { padding-top: 0; }
  .skill-list div { grid-template-columns: 110px 1fr; }

  .contact-hero__top { display: block; }
  .contact-hero__top .label + .label { margin-top: 8px; }
  .contact-title { font-size: clamp(56px, 17vw, 88px); }
  .contact-email-wrap { display: block; }
  .contact-email { font-size: clamp(24px, 8vw, 40px); word-break: break-all; }
  .copy-button { margin-top: 18px; }
  .contact-grid { grid-template-columns: 1fr; }

  .diagram__frame {
    overflow-x: auto;
    overflow-y: hidden;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: thin;
  }
  .diagram__frame svg { min-width: 720px; max-width: none; }
  .diagram__swipe { display: inline; }

  .cv-section { grid-template-columns: 1fr; gap: 12px; }
  .cv-item__top { display: block; }
  .cv-item__top .label { display: block; margin-top: 6px; }
  .cv-skills div { grid-template-columns: 120px 1fr; }

  .type-specimen { align-items: center; }
  .swatches { grid-template-columns: 1fr 1fr; }
  .motion-specs { grid-template-columns: 1fr 1fr; }
  .colophon__body p { font-size: 14px; }

  .not-found__title { font-size: 36vw; }
}

@media (max-width: 980px) {
  .research-band__grid { display: block; }
  .research-band__plate { max-width: 520px; margin: 0 0 38px; transform: none !important; }
  .research-band__copy { max-width: 640px; }

  .paper-title { font-size: clamp(36px, 7vw, 62px); }
  .paper-meta { grid-template-columns: 1fr 1fr; gap: 24px var(--gutter); }
  .paper-abstract-grid { display: block; }
  .paper-abstract-side { margin-bottom: 22px; }
  .paper-metrics { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px 16px; }
  .paper-download-block { display: block; }
  .paper-cover { max-width: 440px; margin: 0 0 34px; transform: none !important; }
}

@media (min-width: 641px) and (max-width: 980px) {
  .work-card__media { aspect-ratio: 16 / 9; }
}

/* Short tablet / phone landscape: keep the deck, but switch to a compact
   two-column card so the whole plate fits above the fold. */
@media (min-width: 641px) and (max-width: 980px) and (max-height: 900px) {
  .work-card {
    height: calc(100vh - var(--header-h) - 20px);
    height: calc(100svh - var(--header-h) - 20px);
  }
  .work-card__link { grid-template-columns: 1fr 1fr; }
  .work-card__media { aspect-ratio: auto; height: 100%; }
  .work-card__body { border-left: 1px solid var(--line); border-top: 0; padding: 20px; }
  .work-card__title { margin-top: 16px; font-size: clamp(24px, 3.2vw, 34px); }
  .work-card__sub { margin-top: 10px; font-size: 14px; }
  .work-card__summary { display: none; }
  .work-card__foot { margin-top: auto; }
  .work-card__num { font-size: 64px; }
}

@media (max-width: 640px) {
  .research-band__title { font-size: clamp(34px, 10vw, 44px); }
  .research-band__metrics { gap: 10px; }
  .research-band__metrics dd { font-size: 28px; }
  .research-band__metrics dt { font-size: 7px; }
  .research-band__plate { padding: 10px; }

  .paper-title { font-size: clamp(30px, 9.4vw, 44px); }
  .paper-title-zh { font-size: 15px; }
  .paper-meta { grid-template-columns: 1fr; }
  .paper-actions { gap: 16px; }
  .paper-metric__value { font-size: 32px; }
  .paper-finding { grid-template-columns: 32px minmax(0, 1fr); gap: 12px; }
  .paper-figure__frame { overflow-x: auto; overflow-y: hidden; scrollbar-width: thin; scrollbar-color: var(--muted) transparent; }
  .paper-figure__frame svg { min-width: 820px; }
  .paper-figure figcaption::after { content: " · SWIPE →"; color: var(--accent); }
  html[lang="zh-CN"] .paper-figure figcaption::after { content: " · 左右滑动 →"; }
  .paper-figure figcaption { display: block; }
  .paper-figure figcaption span:first-child { display: block; margin-bottom: 4px; }
  .paper-download-copy h2 { font-size: 30px; }
  .paper-citation__text { font-size: 10px; }
}

/* Final short-screen pass: it must come after the 640px composition rules. */
@media (max-width: 640px) and (max-height: 680px) {
  .work-card__media { aspect-ratio: 16 / 9; }
  .work-card__summary { display: none; }
  .work-card__body { padding: 18px 18px 16px; }
  .work-card__title { margin-top: 18px; font-size: clamp(26px, 8vw, 34px); }
  .work-card__sub { margin-top: 10px; font-size: 15px; }
  .work-card__foot { margin-top: 18px; }
}

@media (max-width: 640px) and (max-height: 560px) {
  .work-card__media { aspect-ratio: auto; height: 38vh; height: 38svh; }
  .work-card__sub { display: none; }
  .work-card__body { padding: 14px 16px 12px; }
  .work-card__title { margin-top: 10px; font-size: 24px; }
  .work-card__foot { margin-top: 12px; }
}

/* Public record — responsive */
@media (max-width: 980px) {
  .record-teaser__grid { display: block; }
  .record-teaser__title { max-width: 12ch; }
  .record-teaser__list { margin-top: 40px; }
  .record-teaser__list li { grid-template-columns: 64px minmax(0, 1fr); }
  .record-teaser__kicker { grid-column: 2; justify-self: start; margin-top: 4px; }

  .record-head__bottom { display: block; }
  .record-note { margin-top: 18px; }
  .record-title { font-size: clamp(48px, 10vw, 90px); }
  .record-entry { grid-template-columns: 104px minmax(0, 1fr); gap: 24px; }
  .record-entry__pair { grid-template-columns: 1fr; gap: 18px; }
  .record-appendix { grid-template-columns: 1fr; gap: 8px; }
  .record-appendix__source { grid-column: 1; margin-top: 2px; }
}

@media (max-width: 640px) {
  .record-teaser__top { display: block; }
  .record-teaser__top .label + .label { margin-top: 8px; }
  .record-teaser__title { font-size: clamp(44px, 12vw, 64px); }
  html[lang="zh-CN"] .record-teaser__title { font-size: clamp(42px, 11vw, 56px); }
  .record-teaser__list li { grid-template-columns: 52px minmax(0, 1fr); gap: 12px; }
  .record-teaser__event { font-size: 13px; }

  .record-head__top { display: block; }
  .record-head__top .label + .label { margin-top: 8px; }
  .record-title { font-size: clamp(42px, 13vw, 64px); }
  .record-title__alt { font-size: 16px; }
  .record-sub { font-size: 16px; }
  .record-head__bottom { margin-top: 34px; }
  .record-body { padding-block: 64px; }

  .record-timeline { --record-pad: 22px; }
  .record-entry { display: block; padding: 30px 0; }
  .record-entry::before { top: 40px; }
  .record-entry__meta { display: flex; align-items: baseline; gap: 14px; margin-bottom: 18px; }
  .record-entry__num { font-size: 52px; }
  .record-entry__date { margin-top: 0; }
  .record-entry__event { max-width: none; font-size: clamp(27px, 8vw, 36px); }
  .record-entry__pair { margin-top: 24px; }
  .record-entry__pair div:last-child dd { font-size: 14px; }
  .record-entry__source { margin-top: 20px; }

  .record-appendix { margin-top: 40px; }
  .record-coda { margin-top: 64px; }
  .record-coda__quote { font-size: clamp(30px, 9vw, 42px); }
  .record-source-note { margin-top: 34px; font-size: 7px; }
}

/* ---------- 27. Reduced motion / print ---------------------------------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .001ms !important;
    transition-delay: 0s !important;
  }
  .marquee__track { animation: none; }
  .hero__scroll-line::after { display: none; }
  .js [data-reveal] { opacity: 1; transform: none; }
  html.enhance [data-reveal] { opacity: 1; transform: none; }
  html.enhance .hero__title .line__inner { transform: none; }
  html.enhance .work-card__media img,
  html.enhance .reveal-media { clip-path: none !important; transform: none !important; }
  html.enhance .work-card,
  html.enhance .work-card__link { clip-path: none !important; transform: none !important; filter: none !important; opacity: 1 !important; }
  html.enhance [data-tilt] { transform: none !important; }
  html.enhance .work-card__body > *,
  html.enhance .split-ready .split-unit > span { opacity: 1 !important; transform: none !important; }
}

@media (prefers-contrast: more) {
  :root {
    --muted: #4B463D;
    --line: rgba(17, 17, 16, .3);
    --line-strong: rgba(17, 17, 16, .55);
  }
  html[data-theme="dark"] {
    --muted: #D2CBBD;
    --line: rgba(242, 239, 232, .34);
    --line-strong: rgba(242, 239, 232, .6);
  }
  .grain { display: none; }
  .statement__media img { opacity: .35; }
}

@media (forced-colors: active) {
  .grain { display: none !important; }
  .plate { border: 1px solid CanvasText; }
}

@media print {
  @page { size: A4; margin: 16mm; }

  html, body {
    background: #fff !important;
    color: #000 !important;
  }

  .masthead, .footer, .grain, .toast,
  .cv__note, .skip, .progress, .marquee, .statement {
    display: none !important;
  }

  body.page { animation: none !important; }

  html.enhance [data-reveal],
  [data-reveal] {
    opacity: 1 !important;
    transform: none !important;
  }

  html.enhance .reveal-media,
  .reveal-media { clip-path: none !important; }

  .page main { animation: none !important; }

  .page-head {
    display: block !important;
    padding: 0 0 10px !important;
    border: 0 !important;
  }

  .page-head__top { display: none !important; }

  .page-title--cv {
    max-width: none;
    margin: 0 0 4px;
    font-size: 20pt;
    line-height: 1.1;
    letter-spacing: -.02em;
  }

  .page-head__bottom {
    display: block;
    margin: 0;
  }

  .page-head__lead {
    max-width: none;
    margin: 0 0 3px;
    font-size: 9pt;
    line-height: 1.4;
    color: #222;
  }

  .page-head__meta {
    text-align: left;
    font-size: 7.5pt;
    line-height: 1.5;
    color: #222;
  }

  .cv {
    max-width: none;
    width: 100%;
    padding: 0;
  }

  .cv-section {
    display: block;
    padding: 6px 0;
    border-top: 1px solid #bbb;
    break-inside: avoid;
  }

  .cv-section__head { margin-bottom: 3px; }
  .cv-section__head .label { display: none; }
  .cv-section__head h2 { font-size: 8.5pt; letter-spacing: .08em; }

  .cv-item { padding-bottom: 4px; break-inside: avoid; }
  .cv-item__top h3 { font-size: 10.5pt; }
  .cv-item__role, .cv-item__detail, .cv-skills dd, .cv-honors li { font-size: 8pt; line-height: 1.5; color: #222; }
  .cv-skills div { padding: 1px 0; border-bottom: 0; }
  .cv-skills dt { font-size: 7pt; }
  .cv-honors li { padding: 1px 0 1px 12px; }
  .cv-foot { margin-top: 4px; padding-top: 4px; border-top: 1px solid #bbb; }
  .cv-foot .label { font-size: 7pt; }
}

