@font-face {
  font-family: "iA Quattro";
  src: url("./assets/02-fonts/02-ia-writer-quattro-regular.woff2") format("woff2");
  font-style: normal;
  font-weight: 400;
  font-display: swap;
}

@font-face {
  font-family: "FZ Screen YaSong";
  src:
    url("./assets/02-fonts/01-fangzheng-pingxian-yasong.woff2") format("woff2"),
    local("方正屏显雅宋简体"),
    local("方正屏显雅宋"),
    local("FZPingXianYaSongS-R-GB"),
    local("FZPingXianYaSong-R-GB"),
    local("FZPingXianYaSong");
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  unicode-range: U+2E80-2EFF, U+3000-303F, U+31C0-31EF, U+3400-4DBF, U+4E00-9FFF, U+F900-FAFF, U+FE30-FE4F, U+FF00-FFEF;
}

@font-face {
  font-family: "iA Quattro";
  src: url("./assets/02-fonts/03-ia-writer-quattro-bold.woff2") format("woff2");
  font-style: normal;
  font-weight: 700;
  font-display: swap;
}

@font-face {
  font-family: "iA Quattro";
  src: url("./assets/02-fonts/04-ia-writer-quattro-italic.woff2") format("woff2");
  font-style: italic;
  font-weight: 400;
  font-display: swap;
}

:root {
  color-scheme: light;
  --paper: #f6f7f4;
  --paper-raised: #fbfcfa;
  --ink: #171917;
  --muted: #696e69;
  --quiet: #707570;
  --line: #d6d9d4;
  --soft: #e9ebe7;
  --poem-ink: #000;
  --accent: #ff4900;
  --accent-strong: #ff4900;
  --contact-surface: #e65319;
  --focus: #174b75;
  --lightbox: #101210;
  --lightbox-ink: #f0f2ed;
  --frame-space: clamp(2px, 0.45vw, 8px);
  --rail-width: clamp(235px, 25vw, 360px);
  --page-width: 1320px;
  --radius-frame: 16px;
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --font-ui: "FZ Screen YaSong", "iA Quattro", "PingFang SC", "Microsoft YaHei", system-ui, sans-serif;
  --font-poem: "Songti SC", "STSong", "Noto Serif CJK SC", serif;
  --font-brand: "FZ Screen YaSong", "Songti SC", "STSong", "Noto Serif CJK SC", serif;
}

html[data-theme="dark"] {
  color-scheme: dark;
  --paper: #141614;
  --paper-raised: #191b19;
  --ink: #edf0eb;
  --muted: #b4b9b3;
  --quiet: #90968f;
  --line: #373b37;
  --soft: #222522;
  --poem-ink: #edf0eb;
  --accent: #ff4900;
  --accent-strong: #ff4900;
  --focus: #88bce5;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 24px;
  background: var(--paper);
}

body {
  margin: 0;
  min-width: 320px;
  overflow-x: clip;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-ui);
  font-size: 16px;
  font-weight: 400;
  line-height: 1.45;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

body.menu-open {
  overflow: hidden;
}

body.dialog-open {
  overflow: hidden;
}

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

button,
a {
  -webkit-tap-highlight-color: transparent;
}

button {
  border: 0;
}

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

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

::selection {
  background: var(--accent);
  color: #fffaf7;
}

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

.skip-link {
  position: fixed;
  top: 12px;
  left: 12px;
  z-index: 100;
  padding: 10px 14px;
  transform: translateY(-180%);
  background: var(--ink);
  color: var(--paper);
  transition: transform 180ms var(--ease-out);
}

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

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

.site-frame {
  display: grid;
  grid-template-columns: var(--rail-width) minmax(0, 1fr);
  min-height: calc(100dvh - (2 * var(--frame-space)));
  margin: var(--frame-space);
  overflow: clip;
  border: 1px solid var(--line);
  border-radius: var(--radius-frame);
  background: var(--paper-raised);
}

.mobile-bar {
  display: none;
}

.side-rail {
  position: sticky;
  top: var(--frame-space);
  align-self: start;
  display: flex;
  flex-direction: column;
  height: calc(100dvh - (2 * var(--frame-space)));
  min-height: 560px;
  padding: 17px 24px 22px;
  background: var(--paper-raised);
}

.rail-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
}

.brand {
  display: grid;
  grid-template-columns: 13px minmax(0, auto);
  grid-template-rows: auto auto;
  align-items: start;
  width: fit-content;
  min-height: 0;
  column-gap: 11px;
  row-gap: 9px;
  padding: 2px 0 0;
}

.brand .brand-mark {
  grid-row: 1 / span 2;
  align-self: start;
  margin-top: 4px;
}

.brand-mark {
  display: inline-block;
  width: 13px;
  height: 13px;
  border-radius: 50%;
  background: var(--accent);
}

.brand-name {
  font-family: var(--font-brand);
  font-size: 22px;
  font-synthesis: none;
  font-weight: 400;
  letter-spacing: -0.035em;
  line-height: 1.06;
}

.brand-latin {
  grid-column: 2;
  margin-top: 0;
  color: var(--muted);
  font-size: 9.5px;
  letter-spacing: 0.12em;
  line-height: 1.2;
}

.rail-role {
  margin: 9px 0 0 24px;
  max-width: 17ch;
  color: var(--muted);
  font-size: 11px;
  letter-spacing: 0.025em;
  line-height: 1.45;
}

.rail-bottom {
  display: flex;
  flex-direction: column;
  gap: 46px;
  margin-top: auto;
  padding-bottom: clamp(24px, 8vh, 76px);
}

.section-nav {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  padding-left: 18px;
}

.section-nav a {
  position: relative;
  display: flex;
  align-items: center;
  min-height: 29px;
  max-width: 100%;
  color: var(--quiet);
  font-size: 12px;
  line-height: 1.2;
  transition: color 220ms var(--ease-out), transform 220ms var(--ease-out);
}

.section-nav a:hover,
.section-nav a[aria-current="true"] {
  color: var(--ink);
}

.section-nav a:hover {
  transform: translateX(2px);
}

.nav-marker {
  position: absolute;
  top: 0;
  left: 0;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
  pointer-events: none;
  transition: transform 420ms var(--ease-out), opacity 180ms ease;
}

.rail-controls {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: clamp(16px, 1.6vw, 24px);
  min-height: 44px;
  color: var(--muted);
  font-size: 11px;
}

.language-control {
  display: flex;
  align-items: center;
  gap: 2px;
}

.language-control button,
.theme-control {
  min-width: 36px;
  min-height: 44px;
  padding: 0;
  background: transparent;
  color: var(--quiet);
  cursor: pointer;
}

.language-control button[aria-pressed="true"],
.language-control button:hover,
.theme-control:hover {
  color: var(--ink);
}

.rail-close {
  display: none;
}

#main-content {
  width: min(100%, var(--page-width));
  min-width: 0;
  padding-right: clamp(18px, 2vw, 34px);
}

.hero {
  position: relative;
  display: grid;
  place-items: center;
  min-height: calc(100dvh - (2 * var(--frame-space)));
  padding: clamp(64px, 8vh, 96px) 0 clamp(48px, 7vh, 76px);
}

.hero-hat {
  position: absolute;
  right: clamp(24px, 5vw, 74px);
  bottom: clamp(28px, 5vh, 54px);
  z-index: 2;
  width: clamp(84px, 7.8vw, 118px);
  margin: 0;
  padding: 0;
  border: 0;
  background: transparent;
  cursor: grab;
  touch-action: none;
  user-select: none;
  transform: rotate(-7deg);
  transform-origin: 50% 65%;
  will-change: transform;
}

.hero-hat img {
  display: block;
  width: 100%;
  height: auto;
  pointer-events: none;
  filter: drop-shadow(0 7px 9px rgb(0 0 0 / 0.12));
  transition: filter 180ms ease, transform 140ms var(--ease-out);
}

.hero-hat:active img,
.hero-hat.is-reduced-tap img {
  transform: scale(0.96);
}

.hero-hat.is-grabbing img {
  transform: scale(1.035);
  filter: brightness(1.02) drop-shadow(0 16px 20px rgb(0 0 0 / 0.2));
}

.hero-hat:focus-visible {
  outline: 1px solid var(--accent);
  outline-offset: 7px;
}

@media (hover: hover) and (pointer: fine) {
  .hero-hat:hover img {
    filter: brightness(1.025) drop-shadow(0 9px 12px rgb(0 0 0 / 0.16));
  }
}

.writing-heading h2,
.practice-heading h2,
.listening-heading h2,
.about-copy h2 {
  margin: 0;
  font-size: clamp(39px, 4.1vw, 64px);
  font-weight: 400;
  letter-spacing: -0.048em;
  line-height: 1.03;
}

.hero-poem-text {
  width: min(920px, 88%);
  margin: 0 auto;
}

.hero-poem-text blockquote {
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(0, 0.92fr);
  gap: clamp(56px, 8vw, 126px);
  align-items: start;
  margin: 0;
}

.hero-poem-text .poem-stanza + .poem-stanza {
  margin-top: clamp(48px, 7vh, 72px);
}

.poem-stanza {
  margin: 0;
}

.poem-line {
  display: block;
  color: var(--poem-ink);
  font-family: var(--font-poem);
  font-size: clamp(14px, 1vw, 16px);
  letter-spacing: 0.025em;
  line-height: 1.82;
}

.hero-poem-text figcaption {
  display: flex;
  justify-content: flex-start;
  gap: 12px;
  width: 40%;
  margin: clamp(36px, 5vh, 52px) 0 0 auto;
  color: var(--quiet);
  font-family: var(--font-poem);
  font-size: 12px;
  letter-spacing: 0.035em;
}

.hero-poem-text figcaption span + span::before {
  content: "/";
  margin-right: 12px;
  color: var(--line-strong);
}

.has-js .hero-poem-text .poem-stanza,
.has-js .hero-poem-text figcaption {
  transform: translateY(9px);
  opacity: 0;
  animation:
    poem-block-fade 1250ms linear var(--poem-block-delay, 0ms) both,
    poem-block-lift 1100ms var(--ease-out) var(--poem-block-delay, 0ms) both;
}

.has-js .hero-poem-text .poem-stanza:first-child {
  --poem-block-delay: 280ms;
}

.has-js .hero-poem-text .poem-stanza:nth-child(2) {
  --poem-block-delay: 1250ms;
}

.has-js .hero-poem-text figcaption {
  --poem-block-delay: 2160ms;
}

@keyframes poem-block-fade {
  to {
    opacity: 1;
  }
}

@keyframes poem-block-lift {
  to {
    transform: translateY(0);
  }
}

.media-button {
  position: relative;
  width: 100%;
  margin: 0;
  padding: 0;
  overflow: hidden;
  background: transparent;
  cursor: zoom-in;
}

.media-button img {
  width: 100%;
  transition: transform 650ms var(--ease-out), opacity 240ms ease;
}

.media-button:hover img {
  transform: scale(1.008);
}

.media-button:active img {
  opacity: 0.9;
}

.work-intro {
  display: flex;
  flex-direction: column;
  justify-content: center;
  width: min(900px, 86%);
  min-height: calc(100dvh - (2 * var(--frame-space)));
  margin-inline: auto;
  padding-top: clamp(78px, 10vh, 112px);
  padding-bottom: clamp(118px, 15vh, 172px);
}

.selected-work-heading {
  margin: 0 0 clamp(22px, 2.8vw, 32px);
  color: var(--quiet);
  font-size: 10px;
  font-weight: 400;
  letter-spacing: 0.085em;
  line-height: 1.35;
}

.selected-work-list {
  display: grid;
}

.selected-work-item {
  display: grid;
  grid-template-columns: minmax(220px, 0.72fr) minmax(0, 1.28fr);
  align-items: start;
  gap: clamp(28px, 3.6vw, 48px);
  padding: clamp(10px, 1.15vw, 14px) 0;
}

.selected-work-item h3,
.selected-work-item p {
  margin: 0;
}

.selected-work-item h3 {
  font-size: clamp(15px, 1.15vw, 18px);
  font-weight: 400;
  letter-spacing: -0.015em;
  line-height: 1.3;
  white-space: nowrap;
  transition: color 180ms ease, transform 240ms var(--ease-out);
}

.selected-work-item p {
  max-width: 50ch;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.62;
}

@media (hover: hover) and (pointer: fine) {
  .selected-work-item:hover h3 {
    transform: translateX(4px);
    color: var(--accent);
  }
}

.writing-heading h2,
.practice-heading h2,
.listening-heading h2,
.about-copy h2 {
  width: min(820px, 88%);
  font-size: clamp(34px, 3.6vw, 54px);
}

.work-intro > p,
.writing-heading > p,
.practice-heading > p,
.about-copy > p {
  width: min(580px, 72%);
  margin: 22px 0 0;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.62;
}

.project {
  padding-top: 24px;
  border-top: 1px solid var(--line);
  scroll-margin-top: 24px;
}

.project + .project {
  margin-top: clamp(128px, 15vw, 210px);
}

.project-heading {
  margin-bottom: 38px;
}

.project-heading > div {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 9px 18px;
}

.project-heading h2 {
  order: 1;
  margin: 0;
  font-size: clamp(28px, 3vw, 43px);
  font-weight: 400;
  letter-spacing: -0.045em;
  line-height: 1.05;
}

.project-heading h2 span {
  color: var(--muted);
  font-size: 0.55em;
  letter-spacing: -0.02em;
}

.project-kind {
  order: 2;
  margin: 0;
  color: var(--quiet);
  font-size: 11px;
}

.project-summary {
  width: min(590px, 72%);
  margin: 18px 0 0;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.58;
}

.context-stage {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 10px;
}

.project-video {
  display: block;
  width: 100%;
  height: auto;
  background: #eceeeb;
  object-fit: contain;
}

.context-stills {
  display: grid;
  grid-template-columns: 0.92fr 1.08fr;
  gap: 10px;
}

.context-stills .media-button {
  background: #eef0ed;
}

.context-stills img {
  height: 100%;
  min-height: 260px;
  object-fit: cover;
  object-position: top;
}

.project-footer {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: start;
  gap: 28px;
  margin-top: 25px;
}

.project-footer > p {
  width: min(620px, 100%);
  margin: 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.55;
}

.project-actions {
  display: flex;
  align-items: center;
  gap: 22px;
}

.text-action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0;
  border-bottom: 1px solid currentColor;
  background: transparent;
  color: var(--ink);
  font-size: 12px;
  white-space: nowrap;
  cursor: pointer;
  transition: color 180ms ease, transform 180ms var(--ease-out);
}

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

.text-action:active {
  transform: translateY(1px);
}

.gift-layout {
  display: grid;
  grid-template-columns: minmax(170px, 0.33fr) minmax(0, 1fr);
  align-items: end;
  gap: clamp(30px, 5vw, 82px);
}

.gift-aside {
  padding-bottom: clamp(16px, 5vw, 62px);
}

.large-note {
  margin: 0 0 24px;
  color: var(--muted);
  font-size: clamp(17px, 1.55vw, 22px);
  line-height: 1.45;
}

.gift-image {
  align-self: end;
  aspect-ratio: 1648 / 1101;
  background: #111311;
}

.gift-image img {
  display: block;
  height: auto;
  min-height: 0;
  object-fit: contain;
}

.curated-collage {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  grid-template-rows: auto auto auto;
  width: min(1120px, 94%);
  margin-right: auto;
  margin-left: auto;
  column-gap: clamp(16px, 2vw, 28px);
  row-gap: clamp(42px, 5vw, 72px);
  padding-bottom: clamp(32px, 5vw, 64px);
}

.project-curated .project-heading {
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(320px, 0.65fr);
  align-items: end;
  gap: clamp(30px, 5vw, 76px);
  margin-bottom: clamp(42px, 5vw, 66px);
}

.project-curated .project-heading > div {
  display: grid;
  gap: 10px;
}

.project-curated .project-heading h2,
.project-curated .project-kind {
  order: initial;
}

.project-curated .project-heading h2 {
  font-size: clamp(30px, 2.55vw, 38px);
  letter-spacing: -0.04em;
}

.project-curated .project-heading h2 span {
  margin-left: 6px;
  font-size: 0.56em;
}

.project-curated .project-kind {
  grid-row: 1;
  color: var(--quiet);
  font-size: 10px;
  letter-spacing: 0.08em;
}

.project-curated .project-summary {
  width: min(470px, 100%);
  margin: 0 0 2px;
  font-size: 14px;
  line-height: 1.68;
}

.curated-collage img {
  height: auto;
}

.curated-screen {
  background: #050605;
}

.curated-screen img {
  object-fit: contain;
}

.curated-main {
  grid-column: 1 / 9;
  grid-row: 1;
  aspect-ratio: 1920 / 911;
}

.curated-invitation {
  grid-column: 9 / 13;
  grid-row: 1;
  align-self: center;
  aspect-ratio: 16 / 9;
}

.curated-mosaic {
  grid-column: 3 / 13;
  grid-row: 2;
  aspect-ratio: 1920 / 911;
}

.curated-parts {
  grid-column: 2 / 11;
  grid-row: 3;
  align-self: start;
  aspect-ratio: 7904 / 1680;
  background: #f5f5f3;
}

.curated-parts img {
  display: block;
  width: 100%;
  max-width: 100%;
  height: auto;
  object-fit: contain;
}

.rings-stage {
  display: grid;
  place-items: center;
  min-height: 560px;
  padding: clamp(42px, 8vw, 110px) clamp(22px, 7vw, 100px);
  background: #dedfe2;
}

html[data-theme="dark"] .rings-stage {
  background: #2c2f31;
}

.rings-image {
  max-width: 1120px;
  background: #dedfe2;
}

.rings-image img {
  aspect-ratio: 16 / 9;
  object-fit: contain;
}

.writing {
  margin-top: clamp(142px, 17vw, 230px);
  padding-top: 25px;
  scroll-margin-top: 24px;
}

.writing-heading {
  padding-bottom: clamp(58px, 7.5vw, 102px);
}

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

.writing-entry {
  position: relative;
  display: grid;
  grid-template-columns: minmax(88px, 1.15fr) minmax(0, 7.35fr) minmax(76px, 1fr);
  align-items: start;
  gap: clamp(28px, 4vw, 60px);
  padding: clamp(32px, 3.8vw, 50px) 0;
  border-bottom: 1px solid var(--line);
  color: inherit;
  cursor: pointer;
  transition: color 180ms ease, opacity 180ms ease;
}

.writing-entry-meta {
  display: grid;
  gap: 7px;
  padding-top: 4px;
  color: var(--quiet);
  font-size: 11px;
  line-height: 1.3;
}

.writing-entry-copy h3 {
  max-width: none;
  margin: 0 0 14px;
  font-size: clamp(21px, 1.65vw, 26px);
  font-weight: 400;
  letter-spacing: -0.03em;
  line-height: 1.2;
  transition: color 180ms ease;
}

.writing-entry-copy {
  transition: transform 180ms ease;
}

.writing-entry-excerpt {
  max-width: 46ch;
  margin: 0;
  color: var(--muted);
  font-family: var(--font-ui);
  font-size: clamp(16px, 1.2vw, 19px);
  line-height: 1.68;
}

.writing-read {
  justify-self: end;
  margin-top: 1px;
  pointer-events: none;
}

.writing-entry:hover .writing-entry-copy h3,
.writing-entry:hover .writing-read,
.writing-entry:focus-visible .writing-entry-copy h3,
.writing-entry:focus-visible .writing-read {
  color: var(--accent-strong);
}

.writing-entry:focus-visible {
  outline: 1px solid var(--ink);
  outline-offset: 6px;
}

.writing-entry:active {
  opacity: 0.78;
}

@media (hover: hover) and (pointer: fine) {
  .writing-entry:hover .writing-entry-copy {
    transform: translateX(4px);
  }

  .writing-entry:hover .writing-read {
    transform: translateX(3px);
  }
}

.writing-empty,
.writing-noscript {
  margin: 0;
  padding: 30px 0;
  color: var(--muted);
  font-size: 14px;
}

.practice {
  margin-top: clamp(142px, 17vw, 230px);
  padding-top: 25px;
  scroll-margin-top: 24px;
}

.practice-heading {
  padding-bottom: clamp(38px, 4.8vw, 64px);
}

.practice-opening {
  display: grid;
  grid-template-columns: minmax(260px, 0.75fr) minmax(0, 1.25fr);
  align-items: end;
  gap: clamp(44px, 8vw, 120px);
  margin-bottom: clamp(94px, 12vw, 160px);
}

.practice-opening-solo {
  grid-template-columns: minmax(0, 1fr);
}

.practice-opening-solo .practice-statement {
  max-width: 52ch;
}

.poem-figure {
  margin: 0;
}

.poem-figure .media-button {
  max-width: 382px;
}

.poem-figure img {
  aspect-ratio: 382 / 333;
  object-fit: cover;
}

.poem-figure figcaption {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  max-width: 382px;
  margin-top: 10px;
  color: var(--muted);
  font-family: var(--font-poem);
  font-size: 12px;
}

.practice-statement {
  margin: 0 0 2px;
  max-width: 52ch;
  color: var(--muted);
  font-family: var(--font-ui);
  font-size: clamp(15px, 1.2vw, 18px);
  font-weight: 400;
  letter-spacing: 0.005em;
  line-height: 1.65;
}

.practice-statement p {
  margin: 0;
}

.practice-statement p + p {
  margin-top: 0.85em;
}

.photo-grid {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  grid-template-rows: repeat(3, minmax(160px, auto));
  gap: clamp(12px, 1.4vw, 20px);
}

.photo-grid .media-button img {
  height: 100%;
  object-fit: cover;
}

.photo-a {
  grid-column: 1 / 8;
  grid-row: 1 / span 2;
  aspect-ratio: 3 / 2;
}

.photo-b {
  grid-column: 9 / 13;
  grid-row: 1;
  aspect-ratio: 3 / 2;
}

.photo-c {
  grid-column: 8 / 11;
  grid-row: 2;
  aspect-ratio: 4 / 5;
}

.photo-d {
  grid-column: 11 / 13;
  grid-row: 2;
  align-self: end;
  aspect-ratio: 3 / 2;
}

.photo-e {
  grid-column: 2 / 6;
  grid-row: 3;
  aspect-ratio: 3 / 2;
}

.photo-f {
  grid-column: 7 / 10;
  grid-row: 3;
  aspect-ratio: 4 / 5;
}

.photo-g {
  grid-column: 10 / 13;
  grid-row: 3;
  align-self: center;
  aspect-ratio: 3 / 2;
}

.listening {
  margin-top: clamp(108px, 12vw, 168px);
  padding-top: 0;
  scroll-margin-top: 24px;
}

.album-grid {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: clamp(18px, 2vw, 28px);
  width: min(900px, 94%);
  margin-left: auto;
  align-items: start;
}

.album-item {
  min-width: 0;
  margin: 0;
}

.album-item .media-button,
.album-item img {
  aspect-ratio: 1;
}

.album-item img {
  object-fit: cover;
}

.album-item figcaption {
  display: grid;
  gap: 3px;
  margin-top: 10px;
  font-family: var(--font-ui);
  font-size: 11px;
  letter-spacing: 0.01em;
  line-height: 1.4;
}

.album-item figcaption span:first-child {
  color: var(--ink);
}

.album-item figcaption span + span {
  color: var(--quiet);
}

.album-a {
  grid-column: 1 / 5;
  grid-row: 1;
}

.album-b {
  grid-column: 5 / 8;
  grid-row: 1;
  margin-top: clamp(50px, 6vw, 86px);
}

.album-c {
  grid-column: 8 / 13;
  grid-row: 1;
  margin-top: clamp(8px, 1.5vw, 20px);
}

.album-d {
  grid-column: 2 / 6;
  grid-row: 2;
  margin-top: clamp(28px, 4vw, 58px);
}

.album-e {
  grid-column: 6 / 9;
  grid-row: 2;
}

.album-f {
  grid-column: 9 / 13;
  grid-row: 2;
  margin-top: clamp(42px, 5vw, 76px);
}

.about {
  margin-top: clamp(150px, 18vw, 250px);
  padding: 0 0 32px;
  border-top: 1px solid var(--line);
  scroll-margin-top: 24px;
}

.about-copy {
  display: flex;
  align-items: center;
  min-height: calc(100dvh - (2 * var(--frame-space)));
  padding: clamp(94px, 14vh, 148px) 0 clamp(62px, 8vh, 92px);
}

.about-copy h2.about-thought {
  width: min(940px, 88%);
  margin-right: auto;
  margin-left: auto;
  font-size: clamp(30px, 3vw, 48px);
  line-height: 1.16;
}

.about-thought .stream-word {
  display: inline-block;
  white-space: nowrap;
}

.about-thought .stream-char {
  display: inline-block;
  transform: translateY(0.11em);
  opacity: 0;
}

.about-thought.is-streaming .stream-char {
  animation: thought-character-in 620ms var(--ease-out) forwards;
  animation-delay: calc(var(--char-index) * 38ms);
}

.about-thought.is-stream-complete .stream-char {
  transform: translateY(0);
  opacity: 1;
}

@keyframes thought-character-in {
  to {
    transform: translateY(0);
    opacity: 1;
  }
}

.awards {
  display: flex;
  flex-direction: column;
  justify-content: center;
  width: min(980px, 90%);
  min-height: 76dvh;
  margin-right: auto;
  margin-left: auto;
  padding: clamp(78px, 9vw, 124px) 0 clamp(88px, 10vw, 138px);
  border-top: 1px solid var(--line);
}

.awards h3 {
  margin: 0 0 clamp(36px, 5vw, 62px);
  color: var(--quiet);
  font-size: 11px;
  font-weight: 400;
  letter-spacing: 0.05em;
}

.award-grid {
  display: grid;
  grid-template-columns: 1fr;
  row-gap: clamp(4px, 0.8vw, 10px);
  counter-reset: recognition;
}

.award-grid p {
  display: grid;
  grid-template-columns: 38px minmax(0, 1fr) auto;
  align-items: baseline;
  gap: clamp(16px, 2.6vw, 34px);
  min-height: 70px;
  margin: 0;
  padding: 16px 0;
  font-size: clamp(14px, 1.2vw, 16px);
  line-height: 1.5;
  counter-increment: recognition;
}

.award-grid p::before {
  color: var(--quiet);
  content: "0" counter(recognition);
  font-size: 10px;
  letter-spacing: 0.05em;
}

.award-grid time {
  color: var(--quiet);
  font-size: 10px;
  letter-spacing: 0.025em;
}

.contact {
  margin-top: clamp(92px, 12vw, 160px);
  padding: clamp(38px, 5vw, 68px) clamp(26px, 4.2vw, 56px) clamp(44px, 6vw, 78px);
  background: var(--contact-surface);
  color: #151713;
}

.contact-kicker {
  margin: 0;
  color: #151713;
  font-size: 10px;
  letter-spacing: 0.09em;
  line-height: 1.2;
}

.contact-title {
  width: min(780px, 100%);
  margin: clamp(24px, 3.2vw, 42px) 0 0;
  font-size: clamp(29px, 3.2vw, 46px);
  font-weight: 400;
  letter-spacing: -0.045em;
  line-height: 1.08;
}

.contact-links {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  align-items: start;
  gap: 12px;
  width: min(100%, 940px);
  margin-top: clamp(38px, 4.8vw, 60px);
}

.contact-channel {
  min-width: 0;
  overflow: hidden;
  border-radius: 4px;
  background: #191a17;
  color: #f7f7f2;
}

.contact-copy {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  grid-template-rows: auto minmax(52px, 1fr) auto;
  grid-template-areas:
    "label label"
    "value value"
    "state arrow";
  align-items: center;
  gap: 16px 18px;
  width: 100%;
  min-height: 190px;
  padding: 24px;
  border: 0;
  background: transparent;
  color: #f7f7f2;
  text-align: left;
  cursor: pointer;
  transition:
    background-color 180ms ease,
    transform 140ms var(--ease-out);
}

.contact-copy::after {
  grid-area: arrow;
  justify-self: end;
  color: rgb(247 247 242 / 0.54);
  content: "↗";
  font-size: 14px;
  line-height: 1;
  transition: color 180ms ease, transform 180ms var(--ease-out);
}

.contact-copy:active {
  transform: scale(0.995);
}

.contact-copy:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: -5px;
}

.contact-label,
.contact-state {
  align-self: center;
  color: rgb(247 247 242 / 0.56);
  font-size: 10px;
  letter-spacing: 0.075em;
  line-height: 1;
}

.contact-label {
  grid-area: label;
}

.contact-value {
  grid-area: value;
  min-width: 0;
  overflow-wrap: anywhere;
  color: #f7f7f2;
  font-size: clamp(19px, 1.75vw, 26px);
  letter-spacing: -0.035em;
  line-height: 1.08;
  transition:
    color 180ms ease,
    transform 180ms var(--ease-out);
}

.contact-state {
  grid-area: state;
  justify-self: end;
  white-space: nowrap;
  transition: color 180ms ease;
}

.contact-copy[data-copied="true"] .contact-state {
  color: var(--accent);
}

@media (hover: hover) and (pointer: fine) {
  .contact-copy:hover {
    background: #20211d;
  }

  .contact-copy:hover .contact-value {
    color: var(--accent);
    transform: translateX(3px);
  }

  .contact-copy:hover::after {
    color: var(--accent);
    transform: translate(2px, -2px);
  }
}

.wechat-panel {
  display: grid;
  grid-template-columns: 120px minmax(0, 1fr);
  align-items: center;
  gap: 18px;
  margin: 0 24px;
  padding: 18px 0 24px;
  transform: translateY(-6px) scale(0.985);
  transform-origin: top left;
  border-top: 1px solid rgb(247 247 242 / 0.18);
  color: #f7f7f2;
  opacity: 0;
  transition:
    transform 180ms var(--ease-out),
    opacity 180ms var(--ease-out);
}

.wechat-panel[hidden] {
  display: none;
}

.wechat-panel.is-open {
  transform: translateY(0) scale(1);
  opacity: 1;
}

.email-panel {
  min-height: 162px;
  margin: 0 24px;
  padding: 24px 0 28px;
  transform: translateY(-6px) scale(0.985);
  transform-origin: top left;
  border-top: 1px solid rgb(247 247 242 / 0.18);
  color: #f7f7f2;
  opacity: 0;
  transition:
    transform 180ms var(--ease-out),
    opacity 180ms var(--ease-out);
}

.email-panel[hidden] {
  display: none;
}

.email-panel.is-open {
  transform: translateY(0) scale(1);
  opacity: 1;
}

.email-panel p {
  width: min(330px, 100%);
  margin: 0;
  font-size: clamp(16px, 1.35vw, 20px);
  font-weight: 400;
  letter-spacing: -0.025em;
  line-height: 1.48;
}

.wechat-qr-frame {
  width: 120px;
  height: 120px;
  overflow: hidden;
  background: #fff;
}

.wechat-qr-frame img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.38);
  transform-origin: center;
}

.wechat-panel-copy p {
  margin: 0;
}

.wechat-panel-copy > p:first-child {
  margin-bottom: 18px;
  color: rgb(247 247 242 / 0.6);
  font-size: 10px;
  line-height: 1.45;
}

.wechat-panel-copy > p:last-child {
  display: grid;
  gap: 6px;
}

.wechat-panel-copy span {
  color: rgb(247 247 242 / 0.46);
  font-size: 10px;
}

.wechat-panel-copy strong {
  color: #f7f7f2;
  font-size: clamp(16px, 1.35vw, 20px);
  font-weight: 400;
  letter-spacing: -0.025em;
  line-height: 1.1;
}

.site-footer {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 26px;
  margin-top: clamp(100px, 13vw, 180px);
  padding: 20px 0 22px;
  border-top: 1px solid var(--line);
  color: var(--quiet);
  font-size: 10px;
}

.site-footer a:hover {
  color: var(--ink);
}

dialog {
  color: var(--ink);
  font-family: var(--font-ui);
}

dialog::backdrop {
  background: rgb(9 11 9 / 0.72);
}

.case-dialog,
.writing-dialog {
  width: calc(100vw - 16px);
  max-width: none;
  height: calc(100dvh - 16px);
  max-height: none;
  margin: auto;
  padding: 0;
  overflow: auto;
  border: 1px solid var(--line);
  border-radius: var(--radius-frame);
  background: var(--paper-raised);
}

.case-shell,
.writing-reader {
  position: relative;
  min-height: 100%;
  padding: clamp(22px, 3.5vw, 52px);
}

.dialog-close {
  position: sticky;
  top: 0;
  z-index: 2;
  display: flex;
  align-items: center;
  min-height: 44px;
  margin-left: auto;
  padding: 0 4px;
  border-bottom: 1px solid currentColor;
  background: var(--paper-raised);
  color: var(--ink);
  font-size: 12px;
  cursor: pointer;
}

.writing-reader-article {
  width: min(1080px, 100%);
  margin: clamp(30px, 6vh, 82px) auto 96px;
}

.writing-reader-header {
  display: grid;
  grid-template-columns: minmax(100px, 0.28fr) minmax(0, 1fr);
  gap: clamp(38px, 7vw, 110px);
  padding-bottom: clamp(54px, 7vw, 92px);
  border-bottom: 1px solid var(--line);
}

.writing-reader-meta {
  display: grid;
  align-content: start;
  gap: 8px;
  padding-top: 9px;
  color: var(--quiet);
  font-size: 11px;
  line-height: 1.3;
}

.writing-reader-header h2 {
  max-width: 11ch;
  margin: 0;
  font-size: clamp(44px, 5.6vw, 74px);
  font-weight: 400;
  letter-spacing: -0.052em;
  line-height: 1;
}

.writing-reader-deck {
  max-width: 34ch;
  margin: 30px 0 0;
  color: var(--muted);
  font-family: var(--font-ui);
  font-size: clamp(18px, 1.55vw, 22px);
  line-height: 1.75;
}

.writing-reader-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: clamp(48px, 8vw, 118px);
  padding-top: clamp(62px, 9vw, 126px);
}

.writing-reader-grid.has-image {
  grid-template-columns: minmax(190px, 0.38fr) minmax(0, 1fr);
}

.writing-reader-grid figure {
  position: sticky;
  top: 70px;
  align-self: start;
  width: min(100%, 382px);
  margin: 0;
}

.writing-reader-grid figure img {
  width: 100%;
  height: auto;
}

.writing-reader-body {
  max-width: 38em;
  font-family: var(--font-ui);
  font-size: clamp(19px, 1.7vw, 23px);
  letter-spacing: 0.005em;
  line-height: 1.9;
}

.writing-reader-body > p,
.writing-reader-body > blockquote {
  margin: 0 0 1.65em;
}

.writing-reader-body > h3 {
  margin: 2.6em 0 1.1em;
  font-family: var(--font-ui);
  font-size: 17px;
  font-weight: 400;
  line-height: 1.35;
}

.writing-reader-body > blockquote {
  padding-left: 1.25em;
  border-left: 1px solid var(--line);
  color: var(--muted);
  white-space: pre-line;
}

.writing-reader-body .writing-poem-stanza {
  font-family: var(--font-poem);
  white-space: pre-line;
}

.writing-entry.is-poem .writing-entry-excerpt,
.writing-reader-article.is-poem .writing-reader-deck {
  font-family: var(--font-poem);
}

.writing-reader-body .writing-language-note {
  margin-bottom: 38px;
  color: var(--quiet);
  font-family: var(--font-ui);
  font-size: 11px;
  line-height: 1.35;
}

.case-layout {
  display: grid;
  grid-template-columns: minmax(220px, 0.36fr) minmax(0, 1fr);
  gap: clamp(52px, 9vw, 138px);
  width: min(1180px, 100%);
  margin: clamp(24px, 5vh, 70px) auto 80px;
}

.case-lead {
  position: sticky;
  top: 82px;
  align-self: start;
}

.case-lead h2 {
  margin: 0;
  font-size: clamp(32px, 4vw, 60px);
  font-weight: 400;
  letter-spacing: -0.05em;
  line-height: 1;
}

.case-lead .case-alias {
  margin: 10px 0 0;
  color: var(--muted);
  font-family: var(--font-brand);
  font-size: clamp(20px, 2.1vw, 30px);
  letter-spacing: -0.035em;
  line-height: 1.08;
}

.case-lead .case-subtitle {
  margin: 19px 0 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.58;
}

.case-meta {
  display: grid;
  gap: 20px;
  margin: 42px 0 0;
}

.case-meta div {
  padding-top: 10px;
  border-top: 1px solid var(--line);
}

.case-meta dt {
  color: var(--quiet);
  font-size: 10px;
}

.case-meta dd {
  margin: 7px 0 0;
  font-size: 12px;
  line-height: 1.55;
}

.case-article {
  min-width: 0;
}

.case-section + .case-section {
  margin-top: clamp(60px, 8vw, 106px);
}

.case-section h3 {
  margin: 0 0 16px;
  color: var(--quiet);
  font-size: 11px;
  font-weight: 400;
}

.case-section p {
  margin: 0;
  font-size: clamp(18px, 2vw, 27px);
  letter-spacing: -0.025em;
  line-height: 1.5;
}

.case-flow {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 12px;
}

.case-flow span {
  padding: 9px 11px;
  border: 1px solid var(--line);
  font-size: 11px;
  line-height: 1.3;
}

.case-gallery {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin-top: clamp(60px, 8vw, 110px);
}

.case-gallery .media-button:first-child:last-child {
  grid-column: 1 / -1;
}

.case-gallery img {
  height: 100%;
  min-height: 280px;
  object-fit: cover;
}

.case-gallery-item {
  min-width: 0;
  margin: 0;
}

.case-gallery-item.is-featured,
.case-gallery-item.is-document {
  grid-column: 1 / -1;
}

.case-gallery-item .media-button {
  background: #050605;
}

.case-gallery-item.is-interface .media-button {
  aspect-ratio: auto;
}

.case-gallery-item.is-interface img {
  height: auto;
  min-height: 0;
  object-fit: contain;
}

.case-gallery-item.is-document .media-button {
  height: clamp(150px, 18vw, 220px);
  aspect-ratio: auto;
  overflow-x: auto;
  overscroll-behavior-inline: contain;
  background: #f5f5f3;
  scrollbar-color: #b9b9b4 transparent;
  scrollbar-width: thin;
}

.case-gallery-item.is-document img {
  width: auto;
  max-width: none;
  height: 100%;
  min-height: 0;
  object-fit: contain;
  object-position: left center;
}

.case-gallery-item figcaption {
  display: flex;
  align-items: baseline;
  gap: 12px;
  min-height: 38px;
  padding: 10px 1px 0;
  color: var(--muted);
  font-size: 11px;
  line-height: 1.4;
}

.case-gallery-item figcaption span {
  color: var(--quiet);
  font-variant-numeric: tabular-nums;
}

.case-external {
  margin-top: 42px;
}

.lightbox {
  width: 100vw;
  max-width: none;
  height: 100dvh;
  max-height: none;
  margin: 0;
  padding: 0;
  overflow: hidden;
  border: 0;
  background: var(--lightbox);
  color: var(--lightbox-ink);
}

.lightbox::backdrop {
  background: var(--lightbox);
}

.lightbox-shell {
  display: grid;
  grid-template-rows: 54px minmax(0, 1fr) 60px;
  width: 100%;
  height: 100%;
  padding: env(safe-area-inset-top) 18px env(safe-area-inset-bottom);
  cursor: zoom-out;
}

.lightbox-topbar,
.lightbox-controls {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 11px;
}

.lightbox-topbar button,
.lightbox-controls button {
  min-width: 64px;
  min-height: 44px;
  padding: 0;
  background: transparent;
  color: var(--lightbox-ink);
  cursor: pointer;
}

.lightbox-topbar button:hover,
.lightbox-controls button:hover {
  color: var(--accent);
}

.lightbox figure {
  position: relative;
  display: grid;
  grid-template-rows: minmax(0, 1fr) auto;
  place-items: center;
  min-height: 0;
  margin: 0;
  overflow: hidden;
}

.lightbox-media {
  display: grid;
  place-items: center;
  width: 100%;
  height: 100%;
  min-height: 0;
  overflow: hidden;
}

.lightbox-media img {
  width: auto;
  max-width: min(92vw, 1600px);
  height: auto;
  max-height: calc(100dvh - 158px);
  object-fit: contain;
  cursor: default;
}

.lightbox figure.is-cropped-interface .lightbox-media {
  width: min(92vw, calc((100dvh - 158px) * 2.18), 1600px);
  height: auto;
  aspect-ratio: 2.18 / 1;
}

.lightbox figure.is-cropped-interface .lightbox-media img {
  width: 100%;
  max-width: none;
  height: 100%;
  max-height: none;
  object-fit: cover;
  object-position: center top;
}

.lightbox figure.is-document {
  place-items: stretch;
}

.lightbox figure.is-document .lightbox-media {
  display: flex;
  align-items: flex-start;
  justify-content: flex-start;
  overflow: auto hidden;
  overscroll-behavior: contain;
  background: #f5f5f3;
  scrollbar-color: #b9b9b4 transparent;
  scrollbar-width: thin;
}

.lightbox figure.is-document .lightbox-media img {
  display: block;
  flex: none;
  width: auto;
  max-width: none;
  height: calc(100dvh - 166px);
  max-height: none;
  object-fit: contain;
}

.lightbox figure.is-document figcaption {
  justify-self: center;
}

.lightbox figcaption {
  min-height: 30px;
  width: min(640px, calc(100vw - 36px));
  padding-top: 10px;
  color: #b9bdb7;
  font-size: 11px;
  text-align: center;
  cursor: default;
}

.lightbox-caption-title {
  display: block;
}

.lightbox figcaption.has-note {
  padding-top: 15px;
  text-align: left;
}

.lightbox figcaption.has-note .lightbox-caption-title {
  color: var(--lightbox-ink);
}

.lightbox-caption-note {
  margin: 7px 0 0;
  color: #b9bdb7;
  font-family: var(--font-ui);
  font-size: clamp(13px, 1.1vw, 15px);
  letter-spacing: 0.012em;
  line-height: 1.62;
}

.lightbox-story-toggle {
  color: #b9bdb7;
}

.lightbox-story {
  position: absolute;
  inset: 0 0 0 auto;
  z-index: 2;
  width: min(460px, 38vw);
  padding: clamp(28px, 3vw, 42px);
  overflow-y: auto;
  overscroll-behavior: contain;
  border-left: 1px solid rgb(240 242 237 / 0.14);
  background: rgb(24 27 24 / 0.97);
  color: var(--lightbox-ink);
  opacity: 0;
  pointer-events: none;
  scrollbar-color: #6d736c transparent;
  scrollbar-width: thin;
  transform: translateX(32px);
  transition: opacity 220ms ease, transform 460ms var(--ease-out);
  cursor: default;
}

.lightbox figure:not(.has-story) .lightbox-story {
  display: none;
}

.lightbox figure.has-story .lightbox-media,
.lightbox figure.has-story figcaption {
  transition: opacity 220ms ease, transform 460ms var(--ease-out);
}

.lightbox figure.story-visible .lightbox-story {
  opacity: 1;
  pointer-events: auto;
  transform: translateX(0);
}

.lightbox figure.story-visible .lightbox-media {
  opacity: 0.72;
  transform: translateX(clamp(-64px, -3vw, -28px)) scale(0.96);
}

.lightbox figure.story-visible figcaption {
  opacity: 0.5;
  transform: translateX(clamp(-44px, -2vw, -18px));
}

.lightbox-story-header {
  padding-bottom: 24px;
  border-bottom: 1px solid rgb(240 242 237 / 0.14);
}

.lightbox-story-kicker {
  margin: 0 0 14px;
  color: #a8ada7;
  font-size: 10px;
  letter-spacing: 0.12em;
}

.lightbox-story h2 {
  margin: 0;
  font-family: var(--font-ui);
  font-size: clamp(25px, 2.1vw, 34px);
  font-weight: 400;
  letter-spacing: -0.02em;
  line-height: 1.25;
}

.lightbox-story time {
  display: block;
  margin-top: 16px;
  color: #969b95;
  font-size: 10px;
  letter-spacing: 0.06em;
}

.lightbox-story-body {
  padding: 26px 0 36px;
}

.lightbox-story-header[hidden] + .lightbox-story-body {
  padding-top: 0;
}

.lightbox-story-body p {
  margin: 0;
  color: #d3d7d1;
  font-family: var(--font-ui);
  font-size: clamp(14px, 1vw, 16px);
  letter-spacing: 0.018em;
  line-height: 1.9;
}

.lightbox-story-body p + p {
  margin-top: 1.45em;
}

.lightbox-story-body .lightbox-story-signature {
  margin-top: 3.2em;
  color: #9da29c;
  font-family: var(--font-ui);
  font-size: 11px;
  letter-spacing: 0.04em;
  text-align: right;
}

.lightbox figure.is-listening .lightbox-media img {
  max-height: calc(100dvh - 220px);
}

.lightbox-controls {
  justify-content: center;
  gap: min(24vw, 240px);
}

.lightbox-controls button:disabled {
  visibility: hidden;
}

.toast {
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: 90;
  max-width: min(340px, calc(100vw - 36px));
  padding: 13px 15px;
  transform: translateY(18px);
  border: 1px solid var(--line);
  background: var(--ink);
  color: var(--paper);
  font-size: 12px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 180ms ease, transform 280ms var(--ease-out);
}

.toast.is-visible {
  transform: translateY(0);
  opacity: 1;
}

.has-js [data-reveal] {
  transform: translateY(12px);
  opacity: 0;
}

.has-js [data-reveal].is-visible {
  transform: translateY(0);
  opacity: 1;
  transition: opacity 520ms ease, transform 620ms var(--ease-out);
}

.has-js .writing-list[data-reveal] {
  transform: none;
  opacity: 1;
}

.has-js .writing-list[data-reveal]:not(.is-visible) .writing-entry {
  transform: translateY(8px);
  opacity: 0;
}

.has-js .writing-list[data-reveal].is-visible .writing-entry {
  animation: writing-entry-in 300ms var(--ease-out) backwards;
  animation-delay: calc(var(--writing-entry-index, 0) * 50ms);
}

@keyframes writing-entry-in {
  from {
    transform: translateY(8px);
    opacity: 0;
  }

  to {
    transform: translateY(0);
    opacity: 1;
  }
}

@media (max-width: 1080px) {
  :root {
    --rail-width: clamp(210px, 23vw, 260px);
  }

  .side-rail {
    padding-right: 18px;
    padding-left: 18px;
  }

  .gift-layout {
    gap: 32px;
  }

  .project-summary,
  .work-intro > p,
  .writing-heading > p,
  .practice-heading > p,
  .about-copy > p {
    width: min(620px, 84%);
  }
}

@media (max-width: 800px) {
  html {
    scroll-padding-top: 70px;
  }

  .site-frame {
    display: block;
    min-height: calc(100dvh - 4px);
    margin: 2px;
    overflow: visible;
    border-radius: 12px;
  }

  .mobile-bar {
    position: sticky;
    top: 2px;
    z-index: 20;
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 58px;
    padding: 0 14px;
    border-bottom: 1px solid var(--line);
    border-radius: 11px 11px 0 0;
    background: color-mix(in srgb, var(--paper-raised) 92%, transparent);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
  }

  .mobile-brand {
    display: flex;
    align-items: center;
    gap: 9px;
    min-height: 44px;
    font-size: 15px;
  }

  .mobile-brand .brand-name {
    font-size: inherit;
  }

  .menu-button {
    min-width: 48px;
    min-height: 44px;
    padding: 0;
    background: transparent;
    color: var(--ink);
    font-size: 12px;
    cursor: pointer;
  }

  .side-rail {
    position: fixed;
    inset: 2px;
    z-index: 40;
    height: calc(100dvh - 4px);
    min-height: 0;
    padding: 17px 18px 24px;
    overflow-y: auto;
    overscroll-behavior: contain;
    transform: translateY(-103%);
    visibility: hidden;
    border: 1px solid var(--line);
    border-radius: 12px;
    background: var(--paper-raised);
    transition: transform 420ms var(--ease-out), visibility 0s linear 420ms;
  }

  .side-rail.is-open {
    transform: translateY(0);
    visibility: visible;
    transition-delay: 0s;
  }

  .rail-close {
    display: inline-flex;
    align-items: center;
    min-height: 44px;
    padding: 0;
    background: transparent;
    color: var(--ink);
    font-size: 12px;
    cursor: pointer;
  }

  .rail-role {
    margin-top: 18px;
  }

  .rail-bottom {
    gap: 28px;
    padding-bottom: 8px;
  }

  .section-nav {
    padding-left: 20px;
  }

  .section-nav a {
    min-height: 42px;
    font-size: 17px;
  }

  .nav-marker {
    width: 7px;
    height: 7px;
  }

  #main-content {
    width: 100%;
    padding: 0 14px;
  }

  .hero {
    min-height: auto;
    padding: clamp(48px, 12vw, 64px) 0 76px;
  }

  .hero-hat {
    right: 4px;
    bottom: 12px;
    width: clamp(68px, 21vw, 84px);
  }

  .work-intro h2,
  .writing-heading h2,
  .practice-heading h2,
  .listening-heading h2,
  .about-copy h2,
  .project-summary,
  .work-intro > p,
  .writing-heading > p,
  .practice-heading > p,
  .about-copy > p {
    width: 100%;
  }

  .hero-poem-text {
    width: 100%;
    margin: 0;
  }

  .hero-poem-text blockquote {
    grid-template-columns: 1fr;
    gap: 28px;
  }

  .hero-poem-text .poem-stanza + .poem-stanza {
    margin-top: 0;
  }

  .poem-line {
    font-size: 14px;
    line-height: 1.76;
  }

  .hero-poem-text figcaption {
    justify-content: space-between;
    width: 100%;
    margin-top: 30px;
  }

  .work-intro {
    width: 100%;
    padding-top: 58px;
    padding-bottom: 86px;
  }

  .selected-work-heading {
    margin-bottom: 22px;
  }

  .selected-work-item {
    grid-template-columns: 1fr;
    gap: 7px;
    padding: 14px 0 16px;
  }

  .selected-work-item h3 {
    font-size: clamp(16px, 4.4vw, 19px);
  }

  .selected-work-item p {
    max-width: 34em;
    font-size: 12px;
    line-height: 1.65;
  }

  .writing-heading h2,
  .practice-heading h2,
  .listening-heading h2,
  .about-copy h2 {
    font-size: clamp(31px, 8vw, 42px);
  }

  .project {
    padding-top: 18px;
    scroll-margin-top: 70px;
  }

  .project + .project {
    margin-top: 104px;
  }

  .project-heading {
    margin-bottom: 28px;
  }

  .project-heading > div {
    display: grid;
    gap: 8px;
  }

  .project-heading h2 {
    font-size: 31px;
  }

  .project-kind {
    font-size: 10px;
  }

  .project-summary {
    margin-top: 14px;
  }

  .project-curated .project-heading {
    display: block;
    margin-bottom: 28px;
  }

  .project-curated .project-heading > div {
    gap: 8px;
  }

  .project-curated .project-heading h2 {
    font-size: 31px;
  }

  .project-curated .project-summary {
    width: 100%;
    margin: 14px 0 0;
    font-size: 14px;
  }

  .context-stills {
    display: flex;
    overflow-x: auto;
    overscroll-behavior-inline: contain;
    gap: 10px;
    padding-bottom: 8px;
    scroll-snap-type: x mandatory;
    touch-action: pan-x pan-y pinch-zoom;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
  }

  .context-stills::-webkit-scrollbar,
  .curated-collage::-webkit-scrollbar,
  .photo-grid::-webkit-scrollbar,
  .album-grid::-webkit-scrollbar {
    display: none;
  }

  .context-stills .media-button {
    flex: 0 0 86%;
    scroll-snap-align: start;
    scroll-snap-stop: always;
  }

  .context-stills img {
    min-height: 0;
    aspect-ratio: 3 / 2;
  }

  .project-footer {
    grid-template-columns: 1fr;
    gap: 12px;
    margin-top: 18px;
  }

  .project-footer .text-action {
    justify-self: start;
  }

  .project-actions {
    gap: 20px;
  }

  .gift-layout {
    display: flex;
    flex-direction: column-reverse;
    min-height: 0;
  }

  .gift-aside {
    max-width: 500px;
    padding: 0;
  }

  .gift-image img {
    aspect-ratio: auto;
  }

  .curated-collage {
    display: flex;
    align-items: flex-start;
    width: 100%;
    margin-right: 0;
    margin-left: 0;
    overflow-x: auto;
    overscroll-behavior-inline: contain;
    gap: 10px;
    padding-bottom: 10px;
    scroll-snap-type: x mandatory;
    touch-action: pan-x pan-y pinch-zoom;
    -webkit-overflow-scrolling: touch;
  }

  .curated-collage .media-button {
    flex: 0 0 86%;
    aspect-ratio: auto;
    margin-top: 0;
    scroll-snap-align: start;
    scroll-snap-stop: always;
  }

  .curated-collage .curated-parts {
    flex-basis: 86%;
    aspect-ratio: 7904 / 1680;
  }

  .rings-stage {
    min-height: 0;
    padding: 38px 14px;
  }

  .writing,
  .practice,
  .listening,
  .about {
    scroll-margin-top: 70px;
  }

  .writing,
  .practice {
    margin-top: 124px;
  }

  .writing-heading {
    padding-bottom: 82px;
  }

  .practice-heading {
    padding-bottom: 42px;
  }

  .writing-entry {
    grid-template-columns: 1fr;
    gap: 18px;
    padding: 28px 0 34px;
  }

  .writing-entry-meta {
    display: flex;
    gap: 18px;
    padding-top: 0;
  }

  .writing-entry-copy h3 {
    font-size: 23px;
  }

  .writing-entry-excerpt {
    max-width: 34ch;
    font-size: clamp(16px, 4.4vw, 19px);
  }

  .writing-read {
    grid-column: 1;
    justify-self: start;
    margin-top: -4px;
  }

  .practice-opening {
    grid-template-columns: 1fr;
    gap: 68px;
    margin-bottom: 96px;
  }

  .poem-figure .media-button,
  .poem-figure figcaption {
    max-width: 440px;
  }

  .practice-statement {
    max-width: 520px;
    font-size: 16px;
  }

  .photo-grid {
    display: flex;
    overflow-x: auto;
    overscroll-behavior-inline: contain;
    gap: 10px;
    padding-bottom: 10px;
    scroll-snap-type: x mandatory;
    touch-action: pan-x pan-y pinch-zoom;
    -webkit-overflow-scrolling: touch;
  }

  .photo-grid .media-button {
    flex: 0 0 86%;
    aspect-ratio: 3 / 2;
    scroll-snap-align: start;
    scroll-snap-stop: always;
  }

  .listening {
    margin-top: 96px;
  }

  .album-grid {
    display: flex;
    width: 100%;
    margin-left: 0;
    overflow-x: auto;
    overscroll-behavior-inline: contain;
    gap: 10px;
    padding-bottom: 10px;
    scroll-snap-type: x mandatory;
    touch-action: pan-x pan-y pinch-zoom;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
  }

  .album-item {
    flex: 0 0 70%;
    margin-top: 0;
    scroll-snap-align: start;
    scroll-snap-stop: always;
  }

  .about {
    margin-top: 126px;
  }

  .about-copy {
    min-height: calc(100svh - 60px);
    padding: 88px 0 62px;
  }

  .about-copy h2.about-thought {
    width: min(100%, 640px);
    font-size: clamp(27px, 7.2vw, 36px);
    line-height: 1.22;
  }

  .awards {
    width: 100%;
    min-height: auto;
    padding: 82px 0 96px;
  }

  .contact-links {
    grid-template-columns: 1fr;
    gap: 10px;
    width: 100%;
  }

  .contact {
    margin-right: -14px;
    margin-left: -14px;
    padding: 34px 16px 40px;
  }

  .contact-title {
    margin-top: 22px;
    font-size: clamp(27px, 8vw, 34px);
    line-height: 1.13;
  }

  .contact-copy {
    grid-template-rows: auto minmax(42px, 1fr) auto;
    min-height: 158px;
    padding: 20px;
  }

  .contact-value {
    font-size: clamp(20px, 5.8vw, 24px);
  }

  .wechat-panel {
    grid-template-columns: 104px minmax(0, 1fr);
    gap: 14px;
  }

  .wechat-panel,
  .email-panel {
    margin: 0 20px;
    padding: 16px 0 20px;
  }

  .email-panel {
    min-height: 126px;
  }

  .wechat-qr-frame {
    width: 104px;
    height: 104px;
  }

  .site-footer {
    grid-template-columns: 1fr auto;
  }

  .case-shell,
  .writing-reader {
    padding: 14px;
  }

  .writing-reader-article {
    margin: 30px auto 64px;
  }

  .writing-reader-header {
    grid-template-columns: 1fr;
    gap: 34px;
    padding-bottom: 54px;
  }

  .writing-reader-meta {
    display: flex;
    gap: 18px;
    padding-top: 0;
  }

  .writing-reader-header h2 {
    font-size: clamp(39px, 11vw, 56px);
  }

  .writing-reader-deck {
    margin-top: 23px;
    font-size: 19px;
  }

  .writing-reader-grid,
  .writing-reader-grid.has-image {
    grid-template-columns: 1fr;
    gap: 48px;
    padding-top: 58px;
  }

  .writing-reader-grid figure {
    position: static;
    width: min(70%, 300px);
    margin-left: auto;
  }

  .writing-reader-body {
    max-width: 34em;
    font-size: clamp(18px, 5vw, 21px);
  }

  .case-layout {
    grid-template-columns: 1fr;
    gap: 62px;
    margin-top: 24px;
  }

  .case-lead {
    position: static;
  }

  .case-gallery {
    grid-template-columns: 1fr;
  }

  .case-gallery .media-button {
    grid-column: auto;
  }

  .case-gallery-item,
  .case-gallery-item.is-featured,
  .case-gallery-item.is-document {
    grid-column: auto;
  }

  .case-gallery img {
    min-height: 0;
  }

  .lightbox-shell {
    padding-right: 12px;
    padding-left: 12px;
  }

  .lightbox-media img {
    max-width: calc(100vw - 24px);
  }

  .lightbox figure.is-cropped-interface .lightbox-media {
    width: min(calc(100vw - 24px), calc((100dvh - 158px) * 2.18));
  }

  .lightbox figcaption {
    width: calc(100vw - 32px);
  }

  .lightbox-story {
    inset: auto 0 0;
    width: 100%;
    max-height: min(52dvh, 520px);
    padding: 24px 18px 28px;
    border-top: 1px solid rgb(240 242 237 / 0.14);
    border-left: 0;
    transform: translateY(24px);
  }

  .lightbox figure.story-visible .lightbox-media {
    opacity: 0.46;
    transform: scale(0.985);
  }

  .lightbox figure.story-visible figcaption {
    opacity: 0.3;
    transform: none;
  }

  .lightbox-story h2 {
    font-size: clamp(24px, 7vw, 30px);
  }

  .lightbox-story-body p {
    font-size: 15px;
    line-height: 1.82;
  }

  .lightbox figure.is-listening .lightbox-media img {
    max-height: calc(100dvh - 236px);
  }

  .lightbox figure.is-listening {
    grid-template-rows: auto auto;
    align-content: center;
    gap: 14px;
  }

  .lightbox figure.is-listening figcaption {
    padding-top: 0;
  }

  .lightbox-caption-note {
    font-size: 13px;
    line-height: 1.55;
  }
}

@media (prefers-reduced-motion: reduce) {
  .hero-hat {
    will-change: auto;
  }

  .hero-hat img {
    transition: transform 140ms ease;
  }

  .about-thought .stream-char,
  .about-thought.is-streaming .stream-char {
    animation: none;
    transform: none;
    opacity: 1;
  }

  .wechat-panel,
  .email-panel {
    transition-duration: 0ms;
  }

  .lightbox-story,
  .lightbox figure.has-story .lightbox-media,
  .lightbox figure.has-story figcaption {
    transition: opacity 180ms ease;
  }

  .lightbox-story,
  .lightbox figure.story-visible .lightbox-media,
  .lightbox figure.story-visible figcaption {
    transform: none;
  }
}

@media (max-width: 430px) {
  .project-heading h2 {
    font-size: 28px;
  }

  .writing-entry-copy h3 {
    font-size: 23px;
    line-height: 1.12;
  }

  .writing-reader-header h2 {
    font-size: 39px;
  }

  .project-heading h2 span {
    display: block;
    margin-top: 6px;
    font-size: 0.62em;
  }

  .award-grid p {
    grid-template-columns: 28px minmax(0, 1fr);
    gap: 7px 14px;
    padding: 20px 0;
  }

  .award-grid time {
    grid-column: 2;
  }
}

@media (max-width: 800px) and (hover: hover) and (pointer: fine) {
  .context-stills,
  .curated-collage,
  .photo-grid,
  .album-grid {
    cursor: grab;
    user-select: none;
  }

  .context-stills.is-dragging,
  .curated-collage.is-dragging,
  .photo-grid.is-dragging,
  .album-grid.is-dragging {
    cursor: grabbing;
    scroll-snap-type: none;
  }

  .context-stills .media-button,
  .curated-collage .media-button,
  .photo-grid .media-button,
  .album-grid .media-button {
    cursor: inherit;
  }

  .context-stills img,
  .curated-collage img,
  .photo-grid img,
  .album-grid img {
    -webkit-user-drag: none;
    user-select: none;
  }
}

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

  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }

  .has-js [data-reveal] {
    transform: none;
    opacity: 1;
  }

  .has-js .writing-list[data-reveal] .writing-entry {
    transform: none;
    opacity: 1;
    animation: none;
  }

  .has-js .hero-poem-text .poem-stanza,
  .has-js .hero-poem-text figcaption {
    transform: none;
    opacity: 0;
    animation: poem-block-fade 200ms linear forwards;
  }

  .has-js .hero-poem-text .poem-stanza:first-child {
    animation-delay: 0ms;
  }

  .has-js .hero-poem-text .poem-stanza:nth-child(2) {
    animation-delay: 50ms;
  }

  .has-js .hero-poem-text figcaption {
    animation-delay: 100ms;
  }
}

@media (prefers-reduced-transparency: reduce) {
  .mobile-bar {
    background: var(--paper-raised);
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
  }
}
