:root {
  --paper: #f4eee3;
  --paper-2: #ece2d1;
  --paper-3: #faf6ed;
  --ink: #201c17;
  --ink-soft: #2e2822;
  --muted: #73695c;
  --light: #857a6b;
  --rust: #9e3d2f;
  --rust-soft: #d98573;
  --sage: #5f6b55;
  --gold: #b08a4a;
  --line: rgba(32, 28, 23, .16);
  --line-strong: rgba(32, 28, 23, .32);
  --white: #fffdf8;
  --serif: "Songti SC", "Noto Serif SC", "Source Han Serif SC", "SimSun", "Georgia", serif;
  --sans: "Microsoft YaHei", "PingFang SC", "Hiragino Sans GB", sans-serif;
  --hand: "KaiTi", "Kaiti SC", "STKaiti", "Songti SC", serif;
  --mono: "Cascadia Mono", "Consolas", "SFMono-Regular", ui-monospace, monospace;
  --wrap: 1180px;
  --pad: clamp(1.25rem, 6vw, 5.5rem);
}

* { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: var(--serif);
  font-size: 17px;
  line-height: 1.95;
  text-rendering: optimizeLegibility;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 9999;
  pointer-events: none;
  opacity: .035;
  mix-blend-mode: multiply;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.75' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.5'/%3E%3C/svg%3E");
}

::selection { background: var(--rust); color: var(--paper); }

img { max-width: 100%; height: auto; display: block; }

a { color: inherit; text-decoration-thickness: 1px; text-underline-offset: 4px; }

button { font: inherit; color: inherit; }

:focus-visible { outline: 2px solid var(--rust); outline-offset: 4px; }

.skip {
  position: fixed;
  left: 1rem;
  top: -6rem;
  z-index: 10000;
  padding: .7rem 1rem;
  background: var(--ink);
  color: var(--paper);
  font-family: var(--sans);
  font-size: .8rem;
}
.skip:focus { top: 1rem; }

.progress {
  position: fixed;
  inset: 0 0 auto 0;
  height: 2px;
  z-index: 1000;
  pointer-events: none;
}
.progress span {
  display: block;
  width: 0;
  height: 100%;
  background: var(--rust);
}

/* ---------- masthead ---------- */
.masthead {
  position: sticky;
  top: 0;
  z-index: 900;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  padding: .85rem var(--pad);
  background: rgba(244, 238, 227, .9);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(10px);
}
.brand {
  font-family: var(--serif);
  font-weight: 700;
  font-size: 1.12rem;
  letter-spacing: .16em;
  text-decoration: none;
  white-space: nowrap;
  line-height: 1.15;
}
.brand span {
  display: block;
  margin-top: .18rem;
  font-family: var(--mono);
  font-size: .55rem;
  font-weight: 400;
  letter-spacing: .18em;
  color: var(--muted);
}
.masthead nav {
  display: flex;
  gap: clamp(.9rem, 2vw, 1.8rem);
  overflow-x: auto;
  scrollbar-width: none;
  font-family: var(--serif);
  font-size: .82rem;
  letter-spacing: .1em;
}
.masthead nav::-webkit-scrollbar { display: none; }
.masthead nav a {
  position: relative;
  padding: .25rem 0;
  color: var(--muted);
  text-decoration: none;
  white-space: nowrap;
}
.masthead nav a::after {
  content: "";
  position: absolute;
  left: 0;
  right: 100%;
  bottom: -1px;
  height: 1px;
  background: var(--rust);
  transition: right .3s ease;
}
.masthead nav a:hover,
.masthead nav a.is-active { color: var(--rust); }
.masthead nav a:hover::after,
.masthead nav a.is-active::after { right: 0; }

main { overflow: clip; }

/* ---------- shared ---------- */
.section {
  max-width: var(--wrap);
  margin: 0 auto;
  padding: clamp(5rem, 10vw, 9rem) var(--pad);
  scroll-margin-top: 5rem;
}
.section-label {
  display: flex;
  align-items: center;
  gap: .85rem;
  margin: 0 0 clamp(2rem, 4vw, 3.2rem);
  font-family: var(--mono);
  font-size: .63rem;
  letter-spacing: .18em;
  color: var(--rust);
  text-transform: uppercase;
}
.section-label span {
  font-family: var(--serif);
  font-size: .86rem;
  letter-spacing: .04em;
}
.section-label::after {
  content: "";
  width: 2.8rem;
  height: 1px;
  background: var(--line-strong);
}
h2 {
  margin: 0;
  font-family: var(--serif);
  font-size: clamp(2.35rem, 4.8vw, 4.15rem);
  font-weight: 700;
  line-height: 1.13;
  letter-spacing: -.03em;
  max-width: 20ch;
}
.lede {
  max-width: 40rem;
  margin: 1.2rem 0 0;
  color: var(--muted);
  font-size: 1rem;
  line-height: 2;
}
.section-head { margin-bottom: clamp(2.5rem, 5vw, 4rem); }
.nowrap { white-space: nowrap; }

.pull {
  position: relative;
  max-width: 32rem;
  margin: clamp(2.5rem, 5vw, 4rem) 0 0;
  padding: 2rem 0 2rem 3.4rem;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  font-family: var(--serif);
  font-size: clamp(1.45rem, 2.6vw, 2.15rem);
  line-height: 1.55;
  letter-spacing: -.01em;
  color: var(--ink);
}
.pull::before {
  content: "“";
  position: absolute;
  left: 0;
  top: 1.25rem;
  font-family: Georgia, var(--serif);
  font-size: 5.2rem;
  line-height: 1;
  color: var(--rust);
  opacity: .55;
}

/* ---------- hero ---------- */
.hero {
  position: relative;
  display: flex;
  align-items: center;
  min-height: 94vh;
  padding: clamp(4.5rem, 11vh, 8rem) var(--pad) clamp(3rem, 6vw, 5rem);
}
.hero-inner {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: 4.2rem minmax(0, 1.05fr) minmax(290px, .78fr);
  gap: clamp(1.5rem, 4.5vw, 4.5rem);
  align-items: center;
  width: 100%;
  max-width: var(--wrap);
  margin: 0 auto;
}
.hero-spine {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.6rem;
  min-height: 22rem;
  padding-top: .5rem;
  border-left: 1px solid var(--line);
}
.spine-text,
.spine-year {
  writing-mode: vertical-rl;
  text-orientation: upright;
  font-family: var(--mono);
  font-size: .6rem;
  letter-spacing: .28em;
  color: var(--rust);
}
.spine-year { color: var(--light); letter-spacing: .18em; }

.hero-copy { position: relative; z-index: 2; }
.kicker {
  margin: 0 0 1.3rem;
  font-family: var(--mono);
  font-size: .63rem;
  letter-spacing: .2em;
  color: var(--rust);
}
.hero h1 {
  margin: 0 0 1.7rem;
  font-family: var(--serif);
  font-size: clamp(3.2rem, 6.2vw, 5.5rem);
  font-weight: 700;
  line-height: .97;
  letter-spacing: -.04em;
}
.hero h1 .line { display: block; white-space: nowrap; }
.hero h1 em { font-style: normal; color: var(--rust); }
.poem {
  max-width: 30rem;
  margin: 0 0 1.5rem;
  color: var(--ink-soft);
  font-size: clamp(1rem, 1.5vw, 1.1rem);
  line-height: 2.15;
}
.intro {
  max-width: 33rem;
  margin: 0;
  color: var(--muted);
  font-size: .98rem;
  line-height: 2;
}
.meta {
  margin: 1.8rem 0 0;
  font-family: var(--mono);
  font-size: .6rem;
  letter-spacing: .1em;
  color: var(--muted);
}
.scroll {
  display: inline-flex;
  align-items: center;
  gap: .7rem;
  margin-top: 2.4rem;
  color: var(--rust);
  font-family: var(--mono);
  font-size: .58rem;
  letter-spacing: .14em;
  text-decoration: none;
}
.scroll i {
  position: relative;
  display: block;
  width: 1px;
  height: 2.6rem;
  background: var(--rust);
  opacity: .65;
}
.scroll i::after {
  content: "";
  position: absolute;
  left: -2px;
  top: 0;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--rust);
  animation: fall 2.2s cubic-bezier(.4, 0, .2, 1) infinite;
}

.hero-photo {
  position: relative;
  margin: 0;
  padding: .65rem;
  background: var(--paper-3);
  border: 1px solid var(--line);
  box-shadow: 0 24px 60px rgba(32, 28, 23, .09);
  transform: rotate(-1.4deg);
}
.hero-photo img {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  filter: saturate(.82) contrast(.96) sepia(.06);
}
.hero-photo figcaption {
  padding-top: .55rem;
  font-family: var(--mono);
  font-size: .58rem;
  letter-spacing: .04em;
  color: var(--muted);
  line-height: 1.5;
}
.seal {
  position: absolute;
  right: -1.3rem;
  bottom: 2.1rem;
  display: grid;
  place-items: center;
  width: 4.2rem;
  height: 4.2rem;
  border: 2px solid var(--rust);
  border-radius: 4px;
  background: rgba(244, 238, 227, .55);
  color: var(--rust);
  font-family: var(--serif);
  font-size: 1.05rem;
  font-weight: 700;
  letter-spacing: .12em;
  line-height: 1;
  transform: rotate(-9deg);
  box-shadow: inset 0 0 0 3px rgba(244, 238, 227, .55), inset 0 0 0 4px var(--rust);
}
.seal.small { width: 3.4rem; height: 3.4rem; font-size: .9rem; }

.watermark {
  position: absolute;
  z-index: 0;
  right: 1vw;
  top: 4vh;
  font-family: var(--serif);
  font-size: clamp(16rem, 34vw, 34rem);
  line-height: 1;
  color: var(--ink);
  opacity: .026;
  user-select: none;
  pointer-events: none;
}

.hero-copy > * { animation: rise .9s cubic-bezier(.2, .7, .2, 1) both; }
.hero-copy > :nth-child(2) { animation-delay: .08s; }
.hero-copy > :nth-child(3) { animation-delay: .16s; }
.hero-copy > :nth-child(4) { animation-delay: .24s; }
.hero-copy > :nth-child(5) { animation-delay: .32s; }
.hero-copy > :nth-child(6) { animation-delay: .4s; }
.hero-photo { animation: photoIn 1.1s cubic-bezier(.2, .7, .2, 1) .18s both; }

/* ---------- about ---------- */
.about-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(180px, .5fr);
  gap: clamp(2rem, 6vw, 6rem);
  align-items: start;
}
.about-copy h2 { max-width: none; margin-bottom: clamp(2rem, 4vw, 3rem); font-size: clamp(2.1rem, 3.9vw, 3.5rem); line-height: 1.18; }
.about-copy p {
  max-width: 38rem;
  margin: 0 0 1.35rem;
  color: var(--ink-soft);
  font-size: 1.01rem;
  line-height: 2.08;
}
.dropcap::first-letter {
  float: left;
  padding: .28rem .6rem 0 0;
  font-family: var(--serif);
  font-size: 5.1rem;
  line-height: .78;
  color: var(--rust);
}
.margin-note {
  display: flex;
  flex-direction: column;
  gap: 1.4rem;
  margin-top: 5.5rem;
  padding-left: 1.5rem;
  border-left: 1px solid var(--line);
}
.vertical-note {
  writing-mode: vertical-rl;
  text-orientation: upright;
  height: 17rem;
  margin: 0;
  font-family: var(--hand);
  font-size: 1.05rem;
  line-height: 1.85;
  letter-spacing: .12em;
  color: var(--rust);
}
.margin-note p:last-child {
  max-width: 11rem;
  margin: 0;
  color: var(--muted);
  font-size: .84rem;
  line-height: 1.9;
}

/* ---------- project / cases ---------- */
.case {
  display: grid;
  grid-template-columns: minmax(0, 1.12fr) minmax(0, .88fr);
  gap: clamp(2rem, 6vw, 5rem);
  align-items: center;
  margin-bottom: clamp(4rem, 8vw, 7rem);
}
.case.reverse { grid-template-columns: minmax(0, .88fr) minmax(0, 1.12fr); }
.case.reverse .case-photo { order: 2; }
.case.reverse .case-text { order: 1; }
.case-photo { margin: 0; }
.case-photo img {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  filter: saturate(.82) contrast(.96) sepia(.05);
}
.case-photo figcaption {
  margin-top: .6rem;
  text-align: right;
  font-family: var(--mono);
  font-size: .58rem;
  letter-spacing: .04em;
  color: var(--muted);
}
.case-no {
  margin: 0 0 .4rem;
  font-family: var(--mono);
  font-size: .6rem;
  letter-spacing: .16em;
  color: var(--rust);
}
.case-text h3 {
  margin: 0 0 1rem;
  font-family: var(--serif);
  font-size: clamp(2.2rem, 4vw, 3.4rem);
  line-height: 1.1;
  letter-spacing: -.03em;
}
.said {
  margin: 0 0 1rem;
  font-family: var(--serif);
  font-size: clamp(1.05rem, 1.7vw, 1.25rem);
  line-height: 1.8;
  color: var(--rust);
}
.case-text p:last-child {
  margin: 0;
  max-width: 30rem;
  color: var(--muted);
  font-size: .96rem;
  line-height: 2.05;
}

.ten {
  margin-top: clamp(1rem, 3vw, 2rem);
  padding-top: 1.6rem;
  border-top: 1px solid var(--line);
}
.ten-title {
  margin: 0 0 1rem;
  font-family: var(--mono);
  font-size: .61rem;
  letter-spacing: .16em;
  color: var(--rust);
}
.ten ol {
  display: grid;
  grid-template-columns: 1fr 1fr;
  column-gap: clamp(2rem, 5vw, 4rem);
  margin: 0;
  padding: 0;
  list-style: none;
}
.ten li {
  display: grid;
  grid-template-columns: 4.6rem 1fr auto;
  align-items: baseline;
  gap: 1rem;
  padding: 1.05rem 0;
  border-bottom: 1px solid var(--line);
}
.ten li span { font-family: var(--serif); font-size: 1.05rem; color: var(--rust); }
.ten li strong { font-family: var(--serif); font-size: 1.05rem; font-weight: 700; }
.ten li em {
  font-family: var(--mono);
  font-size: .58rem;
  font-style: normal;
  letter-spacing: .04em;
  color: var(--light);
}
.ten li.muted { opacity: .55; }

/* ---------- dark diagnosis band ---------- */
.diagnosis-band {
  position: relative;
  margin: 0 calc(50% - 50vw);
  padding: clamp(5rem, 10vw, 9rem) max(var(--pad), calc((100vw - var(--wrap)) / 2 + var(--pad)));
  overflow: hidden;
  background: var(--ink);
  color: var(--paper);
}
.diagnosis-band::after {
  content: "诊";
  position: absolute;
  right: -3rem;
  top: -4rem;
  font-family: var(--serif);
  font-size: clamp(20rem, 42vw, 44rem);
  line-height: 1;
  color: #fff;
  opacity: .025;
  pointer-events: none;
}
.band-inner { position: relative; z-index: 2; max-width: var(--wrap); margin: 0 auto; }
.band-label {
  margin: 0 0 3rem;
  font-family: var(--mono);
  font-size: .62rem;
  letter-spacing: .2em;
  color: var(--rust-soft);
}
.diagnosis-band blockquote {
  max-width: 24ch;
  margin: 0 0 clamp(2.2rem, 4vw, 3.4rem);
  font-family: var(--serif);
  font-size: clamp(1.9rem, 4.5vw, 3.9rem);
  font-weight: 700;
  line-height: 1.32;
  letter-spacing: -.02em;
}
.diagnosis-band blockquote span {
  display: block;
  margin-bottom: .7rem;
  font-family: var(--mono);
  font-size: .58rem;
  font-weight: 400;
  letter-spacing: .16em;
  color: var(--rust-soft);
}
.band-note {
  max-width: 30rem;
  margin: 0;
  font-family: var(--mono);
  font-size: .61rem;
  letter-spacing: .06em;
  line-height: 2;
  color: #b7ac9b;
}

/* ---------- triptych ---------- */
.triptych {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(1rem, 3vw, 2.5rem);
  margin-top: clamp(2rem, 4vw, 3rem);
}
.triptych figure { margin: 0; }
.triptych img {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  filter: saturate(.8) contrast(.96) sepia(.06);
  transition: transform .7s cubic-bezier(.2, .7, .2, 1);
}
.triptych figure:hover img { transform: scale(1.025); }
.triptych figcaption {
  display: grid;
  gap: .28rem;
  padding-top: .85rem;
}
.triptych strong { font-family: var(--serif); font-size: 1.08rem; }
.triptych span { font-family: var(--serif); font-size: .84rem; color: var(--muted); }
.triptych em {
  font-family: var(--mono);
  font-size: .58rem;
  font-style: normal;
  letter-spacing: .04em;
  color: var(--muted);
}
.caption-note {
  margin: 1.2rem 0 0;
  font-family: var(--mono);
  font-size: .6rem;
  letter-spacing: .04em;
  color: var(--muted);
}

/* ---------- method ---------- */
.method-line {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  margin: clamp(2.5rem, 5vw, 4rem) 0 clamp(2.5rem, 5vw, 4rem);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  counter-reset: step;
}
.method-line span {
  padding: 1.6rem .4rem;
  border-right: 1px solid var(--line);
  text-align: center;
  font-family: var(--serif);
  font-size: 1.02rem;
}
.method-line span:last-child { border-right: 0; }
.method-line span::before {
  display: block;
  margin-bottom: .5rem;
  counter-increment: step;
  content: "0" counter(step);
  font-family: var(--mono);
  font-size: .54rem;
  letter-spacing: .06em;
  color: var(--rust);
}

/* ---------- path ---------- */
.path-list {
  margin-top: clamp(2.5rem, 5vw, 4rem);
  border-top: 1px solid var(--line);
}
.path-list article {
  display: grid;
  grid-template-columns: 8rem 1fr;
  gap: clamp(1rem, 3vw, 2.5rem);
  padding: 2rem 0;
  border-bottom: 1px solid var(--line);
}
.path-list .year {
  font-family: var(--mono);
  font-size: .66rem;
  letter-spacing: .08em;
  color: var(--rust);
}
.path-list h3 {
  margin: 0 0 .5rem;
  font-family: var(--serif);
  font-size: clamp(1.7rem, 3vw, 2.3rem);
  line-height: 1.2;
}
.path-list p {
  max-width: 34rem;
  margin: 0;
  color: var(--muted);
  font-size: .95rem;
  line-height: 2;
}
.path-list em {
  display: block;
  margin-top: .55rem;
  font-family: var(--mono);
  font-size: .56rem;
  font-style: normal;
  letter-spacing: .04em;
  color: var(--light);
}
.margin-enfp {
  max-width: 40rem;
  margin: 2.4rem 0 0;
  padding-left: 1rem;
  border-left: 2px solid var(--rust);
  font-family: var(--hand);
  font-size: 1.14rem;
  line-height: 1.9;
  color: var(--rust);
}
.path-note {
  max-width: 40rem;
  margin: 1.1rem 0 0;
  color: var(--muted);
  font-size: .9rem;
  line-height: 1.95;
}

/* ---------- works ---------- */
.works-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(1.5rem, 4vw, 3rem);
  margin-top: clamp(2.5rem, 5vw, 4rem);
}
.work { margin: 0; }
.work img {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  filter: saturate(.82) contrast(.96) sepia(.05);
}
.work figcaption {
  display: grid;
  gap: .3rem;
  padding-top: 1rem;
}
.work figcaption strong { font-family: var(--serif); font-size: 1.12rem; }
.work figcaption span { font-family: var(--serif); font-size: .86rem; color: var(--muted); }

.browser {
  background: var(--paper-3);
  border: 1px solid var(--line);
  transform: rotate(-.6deg);
}
.browser-bar {
  display: flex;
  gap: .32rem;
  padding: .55rem .7rem;
  border-bottom: 1px solid var(--line);
}
.browser-bar span {
  width: .42rem;
  height: .42rem;
  border-radius: 50%;
  background: var(--line-strong);
}
.browser-bar span:first-child { background: var(--rust); }
.browser-bar span:last-child { background: var(--sage); }
.browser-body { padding: 1.1rem 1.2rem 1.3rem; }
.browser-title {
  margin: 0;
  font-family: var(--serif);
  font-size: 1.35rem;
  font-weight: 700;
}
.browser-sub {
  margin: .2rem 0 1rem;
  font-family: var(--mono);
  font-size: .57rem;
  letter-spacing: .05em;
  color: var(--light);
}
.browser ul {
  margin: 0;
  padding: 0;
  list-style: none;
  border-top: 1px solid var(--line);
}
.browser li {
  padding: .45rem 0;
  border-bottom: 1px solid var(--line);
  font-family: var(--serif);
  font-size: .82rem;
  color: var(--muted);
}
.browser-note {
  margin: .8rem 0 0;
  text-align: right;
  font-family: var(--mono);
  font-size: .53rem;
  color: var(--light);
}
.metrics {
  margin: 2rem 0 0;
  padding-top: 1rem;
  border-top: 1px solid var(--line);
  font-family: var(--mono);
  font-size: .6rem;
  letter-spacing: .14em;
  color: var(--rust);
}

/* ---------- notes ---------- */
.diary {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(1.5rem, 4vw, 3rem);
  margin-top: clamp(2.5rem, 5vw, 4rem);
}
.diary article {
  padding-top: 1.1rem;
  border-top: 1px solid var(--line);
}
.diary time {
  font-family: var(--mono);
  font-size: .6rem;
  letter-spacing: .08em;
  color: var(--rust);
}
.diary h3 {
  margin: .65rem 0 .45rem;
  font-family: var(--serif);
  font-size: 1.18rem;
  line-height: 1.4;
}
.diary p { margin: 0; color: var(--muted); font-size: .9rem; line-height: 1.95; }

/* ---------- letter ---------- */
.letter-section {
  padding: clamp(4rem, 9vw, 8rem) var(--pad);
  background: var(--paper-2);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  display: flex;
  justify-content: center;
}
.letter {
  position: relative;
  width: min(46rem, 100%);
  padding: clamp(2rem, 5vw, 4.5rem);
  background-color: var(--paper-3);
  background-image: repeating-linear-gradient(transparent 0 2.62rem, rgba(32, 28, 23, .038) 2.62rem 2.63rem);
  border: 1px solid var(--line);
  box-shadow: 0 28px 70px rgba(32, 28, 23, .08);
  transform: rotate(-.35deg);
}
.letter-label {
  margin: 0 0 2rem;
  font-family: var(--mono);
  font-size: .6rem;
  letter-spacing: .14em;
  color: var(--rust);
}
.letter p {
  margin: 0 0 1.15rem;
  font-family: var(--hand);
  font-size: clamp(1.04rem, 1.6vw, 1.18rem);
  line-height: 2.22;
  color: var(--ink-soft);
}
.letter-quote {
  margin: 2rem 0 0 !important;
  padding-top: 1.4rem;
  border-top: 1px solid var(--line);
  font-family: var(--serif) !important;
  font-size: clamp(1.35rem, 2.6vw, 1.95rem) !important;
  line-height: 1.6 !important;
  color: var(--rust) !important;
}
.signature {
  margin: 2rem 0 0 !important;
  text-align: right;
  font-family: var(--hand) !important;
  font-size: 1.55rem !important;
  color: var(--ink) !important;
}
.signature span {
  display: block;
  margin-top: .2rem;
  font-family: var(--mono);
  font-size: .56rem;
  letter-spacing: .06em;
  color: var(--light);
}
.letter .seal { right: 2.2rem; bottom: 2.2rem; }

/* ---------- footer ---------- */
.footer {
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 3rem var(--pad) 2.4rem;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.2fr .8fr;
  gap: 2rem;
}
.footer-label {
  margin: 0 0 .7rem;
  font-family: var(--mono);
  font-size: .6rem;
  letter-spacing: .12em;
  color: var(--rust);
}
.footer .small {
  max-width: 34rem;
  margin: 0;
  font-family: var(--serif);
  font-size: .8rem;
  line-height: 1.9;
  color: var(--muted);
}
.footer-right { text-align: right; }
.footer-actions {
  display: flex;
  justify-content: flex-end;
  gap: 1.2rem;
  margin-top: 1rem;
}
.footer-actions button,
.footer-actions a {
  padding: .2rem 0;
  border: 0;
  border-bottom: 1px solid var(--line-strong);
  background: none;
  color: var(--ink);
  font-family: var(--serif);
  font-size: .82rem;
  text-decoration: none;
  cursor: pointer;
}
.footer-actions button:hover,
.footer-actions a:hover { color: var(--rust); border-color: var(--rust); }

/* ---------- toast ---------- */
.toast {
  position: fixed;
  left: 50%;
  bottom: 1.6rem;
  z-index: 10000;
  transform: translate(-50%, 1rem);
  padding: .6rem 1rem;
  background: var(--ink);
  color: var(--paper);
  font-family: var(--mono);
  font-size: .68rem;
  letter-spacing: .05em;
  opacity: 0;
  pointer-events: none;
  transition: opacity .25s ease, transform .25s ease;
}
.toast.is-on { opacity: 1; transform: translate(-50%, 0); }

/* ---------- motion ---------- */
@keyframes rise {
  from { opacity: 0; transform: translateY(18px); }
  to { opacity: 1; transform: none; }
}
@keyframes photoIn {
  from { opacity: 0; transform: rotate(-1.4deg) translateY(22px); }
  to { opacity: 1; transform: rotate(-1.4deg); }
}
@keyframes fall {
  0% { transform: translateY(0); opacity: 1; }
  70% { transform: translateY(2.2rem); opacity: 0; }
  100% { transform: translateY(2.2rem); opacity: 0; }
}

.js .reveal {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity .85s cubic-bezier(.2, .7, .2, 1), transform .85s cubic-bezier(.2, .7, .2, 1);
}
.js .reveal.is-visible { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
  }
  .js .reveal { opacity: 1; transform: none; }
}

/* ---------- responsive ---------- */
@media (max-width: 1040px) {
  .hero-inner { grid-template-columns: 3rem minmax(0, 1fr) minmax(260px, .72fr); gap: 2rem; }
  .hero h1 { font-size: clamp(3rem, 6.6vw, 4.6rem); }
  .about-grid { grid-template-columns: 1fr; }
  .margin-note { margin-top: 0; padding-left: 0; border-left: 0; border-top: 1px solid var(--line); padding-top: 1.5rem; }
  .vertical-note { writing-mode: horizontal-tb; height: auto; }
  .margin-note p:last-child { max-width: 32rem; }
  .case,
  .case.reverse { grid-template-columns: 1fr; gap: 1.6rem; }
  .case.reverse .case-photo { order: 0; }
  .case.reverse .case-text { order: 1; }
  .ten ol { grid-template-columns: 1fr; }
  .works-grid { grid-template-columns: 1fr; }
  .diary { grid-template-columns: 1fr; gap: 1.4rem; }
  .footer-grid { grid-template-columns: 1fr; }
  .footer-right { text-align: left; }
  .footer-actions { justify-content: flex-start; }
}

@media (max-width: 720px) {
  body { font-size: 16px; }
  .masthead { align-items: flex-start; flex-direction: column; gap: .55rem; padding: .7rem var(--pad); }
  .masthead nav { width: 100%; gap: 1.1rem; }
  .hero { min-height: auto; padding-top: 3.8rem; }
  .hero-inner { grid-template-columns: 1fr; gap: 2.5rem; }
  .hero-spine { display: none; }
  .hero h1 { font-size: clamp(3rem, 13.5vw, 4.2rem); }
  .hero-photo { max-width: 24rem; transform: rotate(-1deg); }
  .seal { right: -.7rem; bottom: 1.4rem; width: 3.6rem; height: 3.6rem; font-size: .92rem; }
  .watermark { right: -2rem; top: 2rem; font-size: 18rem; opacity: .022; }
  .method-line { grid-template-columns: 1fr 1fr; }
  .method-line span:nth-child(2n) { border-right: 0; }
  .method-line span:nth-child(-n+4) { border-bottom: 1px solid var(--line); }
  .path-list article { grid-template-columns: 1fr; gap: .5rem; }
  .triptych { grid-template-columns: 1fr; gap: 2rem; }
  .diagnosis-band blockquote { font-size: clamp(1.8rem, 8vw, 2.6rem); }
  .letter { transform: none; padding: 2rem 1.6rem 5rem; }
  .letter .seal { right: 1.4rem; bottom: 1.4rem; }
  .footer-actions { flex-wrap: wrap; }
  .about-copy h2 { font-size: 1.95rem; }
  .pull { padding-left: 2.6rem; }
  .pull::before { font-size: 4.2rem; }
}

@media print {
  .masthead, .progress, .skip, .toast, .footer-actions { display: none !important; }
  body { background: #fff; color: #000; }
  body::before { display: none; }
  .section { max-width: none; padding: 1.2cm 0; }
  .js .reveal { opacity: 1; transform: none; }
  .case, .triptych figure, .work, .letter, .diagnosis-band { break-inside: avoid; }
}
