@font-face {
  font-family: Geist;
  src: url(fonts/geist.woff2) format("woff2");
  font-weight: 400 700;
  font-display: swap;
}

@font-face {
  font-family: "Instrument Serif";
  src: url(fonts/instrument-serif.woff2) format("woff2");
  font-weight: 400;
  font-display: swap;
}

:root {
  --paper: #f8f7f1;
  --ink: #1d2220;
  --muted: #515750;
  --green: #275746;
  --line: #d5d7cb;
  --tint: #efeee5;
  --canvas: #ebe9e1;
  --foreground: #f8f7f1;
  --sans: Geist, "PingFang SC", "Noto Sans CJK SC", "Microsoft YaHei", Arial, sans-serif;
  --serif: "Instrument Serif", "Songti SC", "Noto Serif CJK SC", Georgia, serif;
  --margin: clamp(22px, 5.1vw, 88px);
  --gutter: clamp(13px, 1.55vw, 26px);
  color-scheme: light;
}

* { box-sizing: border-box; }

html {
  background: var(--paper);
  color: var(--ink);
  font: 16px/1.55 var(--sans);
}

body { margin: 0; }

[hidden] { display: none !important; }

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

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

button { cursor: pointer; }

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

figure, dl, dd, ul, h1, h2, h3, p { margin: 0; }

ul { padding: 0; list-style: none; }

h1, h2, h3, p, dd { overflow-wrap: break-word; }

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

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

.shell { width: min(calc(100% - var(--margin) * 2), 1440px); margin-inline: auto; }

.site-header { border-bottom: 1px solid var(--line); }

.header-inner {
  min-height: 75px;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: clamp(18px, 3.1vw, 56px);
}

.wordmark { font-size: .94rem; font-weight: 650; white-space: nowrap; letter-spacing: -.02em; }

.site-nav { display: flex; justify-content: flex-end; align-items: center; gap: clamp(14px, 2.25vw, 38px); }

.site-nav a, .language-link, .menu-button { font-size: .81rem; font-weight: 520; white-space: nowrap; }

.site-nav a, .language-link { transition: color .18s ease; }

.site-nav a:hover, .language-link:hover, .site-nav a[aria-current], .site-nav a.section-active {
  color: var(--green);
  text-decoration: underline;
  text-underline-offset: .4em;
}

.header-actions { display: flex; align-items: center; gap: 18px; }

.language-link { color: var(--green); min-width: 30px; }

.menu-button { display: none; }

.skip {
  position: fixed;
  inset: 8px auto auto 8px;
  z-index: 10;
  transform: translateY(-180%);
  padding: 10px 15px;
  background: var(--paper);
  color: var(--green);
}

.skip:focus { transform: none; }

.main { min-height: calc(100vh - 230px); padding-bottom: clamp(70px, 9vw, 135px); }

.label {
  color: var(--muted);
  font-size: .71rem;
  font-weight: 600;
  letter-spacing: .075em;
  line-height: 1.42;
  text-transform: uppercase;
}

:lang(zh-Hans) .label { letter-spacing: .045em; }

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.65fr) minmax(0, 1fr);
  align-items: end;
  column-gap: clamp(30px, 4vw, 68px);
  padding-block: clamp(70px, 7.5vw, 124px) clamp(62px, 7.5vw, 116px);
}

.hero h1 {
  font: 400 clamp(4.15rem, 8.75vw, 9.8rem)/.82 var(--serif);
  letter-spacing: -.033em;
}

.hero-other { color: var(--green); font-size: clamp(1.05rem, 1.65vw, 1.55rem); margin-top: 22px; }

.hero-intro { align-self: end; max-width: 480px; padding-bottom: 2px; container-type: inline-size; }

.hero-role {
  line-height: 1.16;
  font-size: clamp(1rem, 2.1vw, 2.2rem);
  font-size: clamp(1rem, 6.5cqi, 2.2rem);
  letter-spacing: -.044em;
  white-space: nowrap;
}

.hero-line { color: var(--muted); margin-top: 13px; max-width: 40ch; font-size: .99rem; }

.hero-intro .action { margin-top: 17px; }

:lang(zh-Hans) .hero h1 { font-size: clamp(3.8rem, 7.5vw, 8.6rem); line-height: 1.06; letter-spacing: -.055em; }

:lang(zh-Hans) .hero-role { letter-spacing: -.025em; }

.action {
  display: inline-flex;
  align-items: baseline;
  gap: .52em;
  width: fit-content;
  padding: 0 0 2px;
  border: 0;
  border-bottom: 1px solid currentColor;
  background: transparent;
  color: var(--green);
  font-size: .81rem;
  font-weight: 580;
  line-height: 1.48;
}

.action:hover { color: var(--ink); }

.arrow { display: inline-block; flex: none; line-height: 1; font-family: var(--sans); }

.section-bar {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px 20px;
  padding: 15px 0 18px;
  border-top: 1px solid var(--line);
}

.section-bar h2, .cv-section h2 { font-size: clamp(1.18rem, 1.6vw, 1.48rem); font-weight: 570; letter-spacing: -.035em; }

.project-grid { display: grid; gap: clamp(20px, 3.2vw, 46px) var(--gutter); }

.featured-grid { grid-template-columns: repeat(12, minmax(0, 1fr)); }

.featured-grid .project-card:nth-child(3n + 1) { grid-column: span 5; }

.featured-grid .project-card:nth-child(3n + 2) { grid-column: span 4; }

.featured-grid .project-card:nth-child(3n + 3) { grid-column: span 3; }

.category-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }

.project-card > a { display: flex; flex-direction: column; height: 100%; }

.card-image { background: var(--tint); overflow: hidden; }

.featured-grid .card-image { height: clamp(190px, 21.8vw, 330px); }

.category-grid .card-image { aspect-ratio: 1.45; }

.card-image img {
  height: 100%;
  width: 100%;
  object-fit: cover;
  object-position: var(--crop, center);
  transition: transform .45s ease;
}

.project-card a:hover img { transform: scale(1.024); }

.card-diagram img { object-fit: contain; }

.project-card a:hover .card-diagram img { transform: none; }

.card-copy {
  position: relative;
  min-width: 0;
  padding: 14px 26px 15px 0;
  border-bottom: 1px solid var(--line);
  flex: 1;
}

.card-copy h3 {
  font: 400 clamp(1.8rem, 2.7vw, 2.9rem)/1.06 var(--serif);
  letter-spacing: -.014em;
  margin-top: 5px;
}

:lang(zh-Hans) .card-copy h3 { font-size: clamp(1.5rem, 2.35vw, 2.4rem); }

.card-copy .arrow { color: var(--green); position: absolute; right: 1px; top: 19px; font-size: 1.05rem; }

.card-copy p:not(.label) { color: var(--muted); max-width: 34ch; margin-top: 12px; font-size: .94rem; }

.project-card a:hover h3 { color: var(--green); }

.text-card .card-copy {
  background: var(--tint);
  min-height: 215px;
  padding: 22px max(34px, 8%) 28px max(18px, 6.5%);
  border: 1px solid var(--line);
}

.featured-grid .text-card .card-copy { min-height: calc(clamp(190px, 21.8vw, 330px) + 78px); }

.text-card .arrow { right: 17px; top: 24px; }

.text-card .card-copy h3 { margin-top: 26px; }

.recent { margin-top: clamp(58px, 7.5vw, 116px); }

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

.entry-list li, .archive-list li { border-bottom: 1px solid var(--line); }

.entry-list li > a, .archive-list li > a { display: grid; align-items: center; gap: 12px clamp(12px, 1.65vw, 24px); }

.entry-list li > a {
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 1.4fr) minmax(125px, .65fr) min-content;
  padding-block: 20px;
}

.entry-list li > a:hover, .archive-list li > a:hover { background: var(--tint); }

.entry-title, .arch-name strong { font-size: 1.13rem; font-weight: 570; letter-spacing: -.025em; }

.entry-context, .arch-type, .arch-medium { font-size: .9rem; color: var(--muted); }

.entry-list .arrow, .archive-list .arrow { justify-self: end; color: var(--green); padding-right: 3px; }

.page-heading {
  padding-block: clamp(65px, 7.3vw, 112px) clamp(37px, 5.2vw, 71px);
  border-bottom: 1px solid var(--line);
  margin-bottom: 24px;
}

.page-heading h1, .detail-heading h1 {
  font: 400 clamp(3.6rem, 7.05vw, 7.6rem)/.93 var(--serif);
  letter-spacing: -.031em;
  max-width: 16ch;
}

:lang(zh-Hans) .page-heading h1, :lang(zh-Hans) .detail-heading h1 {
  font-size: clamp(2.85rem, 5.5vw, 5.7rem);
  line-height: 1.12;
  letter-spacing: -.055em;
}

.page-heading p, .detail-summary {
  max-width: 61ch;
  margin-top: 23px;
  font-size: clamp(1.04rem, 1.63vw, 1.35rem);
  line-height: 1.55;
  color: var(--muted);
}

.profile-columns { display: grid; grid-template-columns: minmax(0, 1.75fr) minmax(0, 1fr); gap: clamp(26px, 7vw, 120px); padding-top: 18px; }

.prose p { max-width: 63ch; margin-block: 0 1.1em; color: var(--muted); }

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

.biography p { font-size: clamp(1.03rem, 1.55vw, 1.25rem); line-height: 1.66; }

.biography p:first-child { color: var(--ink); }

.aside-block { background: var(--tint); padding: clamp(20px, 2.6vw, 35px); align-self: start; border: 1px solid var(--line); }

.aside-block .action { margin-top: 19px; }

.facts div { padding-block: 12px; border-bottom: 1px solid var(--line); }

.facts dt { font-weight: 580; }

.facts dd { color: var(--muted); font-size: .93rem; margin-top: 4px; }

.profile-methods { margin-top: clamp(48px, 7vw, 103px); }

.method-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 30px var(--gutter); }

.method-grid article { border-top: 1px solid var(--line); padding: 18px 14px 0 0; }

.method-grid h3 { font: 400 clamp(1.5rem, 2.4vw, 2.25rem)/1.12 var(--serif); }

.method-grid p { font-size: .96rem; color: var(--muted); margin-top: 9px; max-width: 36ch; }

.cv-section + .cv-section { margin-top: 40px; }

.cv-section h2 { margin-bottom: 12px; }

.experience-list article { border-top: 1px solid var(--line); padding: 14px 0 17px; }

.experience-list article:last-child { border-bottom: 1px solid var(--line); }

.experience-list h3 { font-size: 1.15rem; margin-block: 5px; }

.experience-list h3 a:hover { color: var(--green); }

.experience-list p:not(.label) { color: var(--muted); max-width: 61ch; }

.primary-action { display: inline-flex; align-items: center; justify-content: space-between; gap: 26px; background: var(--green); color: var(--paper); font-size: .87rem; padding: 12px 15px; font-weight: 560; }

.primary-action:hover { background: var(--ink); }

.email { display: block; overflow-wrap: anywhere; margin-block: 12px 22px; font-size: 1rem; text-decoration: underline; text-underline-offset: 4px; }

.themes { margin: 31px 0; }

.themes h2 { margin-bottom: 12px; }

.tag-list { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }

.tag-list a { border: 1px solid var(--line); padding: 6px 10px; font-size: .85rem; color: var(--green); }

.tag-list a:hover { background: var(--green); color: var(--paper); border-color: var(--green); }

.filter-form { padding: 4px 0 22px; margin-bottom: 14px; border-bottom: 1px solid var(--line); }

.filter-form label { display: grid; gap: 5px; min-width: 0; }

.filter-top { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: end; gap: 14px; margin-bottom: 13px; }

.filter-top .action { justify-self: end; margin-bottom: 12px; }

.filter-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px 14px; }

.filter-form input, .filter-form select {
  border: 1px solid var(--line);
  background: transparent;
  border-radius: 0;
  width: 100%;
  padding: 10px;
  min-height: 45px;
  white-space: nowrap;
}

.filter-form input::placeholder { color: var(--muted); opacity: 1; }

.filter-form select { padding-right: 24px; }

.result-count { margin-block: 10px 14px; min-height: 1.42em; }

.archive-head, .archive-list a { display: grid; grid-template-columns: minmax(0, 1.55fr) minmax(0, .87fr) minmax(0, 1.55fr) minmax(43px, .25fr) 18px; gap: 12px clamp(12px, 1.65vw, 24px); }

.archive-head { padding: 10px 0; }

.archive-list a { padding: 15px 0; }

.arch-name { display: grid; gap: 3px; }

.arch-name small { color: var(--muted); font-size: .76rem; }

.arch-year { font-size: .86rem; font-variant-numeric: tabular-nums; }

.empty-results { color: var(--muted); padding-block: 26px; }

.detail-heading {
  padding-top: clamp(45px, 6.45vw, 95px);
  padding-bottom: clamp(32px, 4vw, 64px);
  border-bottom: 1px solid var(--line);
}

.project-path { display: flex; align-items: baseline; flex-wrap: wrap; gap: 8px; margin-bottom: 19px; }

.project-path a { color: var(--green); text-decoration: underline; text-underline-offset: 3px; }

.detail-heading h1 { max-width: 17ch; }

.detail-subtitle { font-size: clamp(1.1rem, 2vw, 1.65rem); margin-top: 9px; }

.detail-other { margin-top: 12px; color: var(--green); }

.detail-summary { margin-top: 16px; }

.detail-grid {
  display: grid;
  grid-template-columns: minmax(0, .9fr) minmax(0, 2fr);
  gap: clamp(30px, 6.1vw, 106px);
  padding-top: clamp(28px, 4vw, 60px);
}

.layout-essay .detail-grid { grid-template-columns: minmax(0, .9fr) minmax(0, 2.1fr); }

.project-facts > div {
  display: grid;
  gap: 4px;
  border-bottom: 1px solid var(--line);
  padding-bottom: 11px;
  margin-bottom: 12px;
  max-width: 430px;
}

.project-facts dd { font-size: .92rem; }

.detail-prose section + section { margin-top: 25px; }

.detail-prose h2 { margin-bottom: 6px; font-weight: 590; font-size: clamp(1.12rem, 1.55vw, 1.4rem); letter-spacing: -.03em; }

.detail-prose .action { margin-top: 18px; display: flex; }

.project-gallery {
  display: grid;
  gap: var(--gutter);
  align-items: start;
  margin-top: clamp(32px, 4.3vw, 63px);
}

.project-gallery:not(.lead-gallery) { grid-template-columns: repeat(2, minmax(0, 1fr)); }

.gallery-material .project-figure:first-child { grid-row: span 2; }

.gallery-proposal .project-figure:only-child { grid-column: 1 / -1; max-width: 1000px; }

.lead-gallery { margin-top: 24px; }

.exhibition-spread {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.23fr);
  gap: clamp(25px, 5.5vw, 88px);
  margin-top: clamp(24px, 3vw, 44px);
}

.exhibition-spread .detail-grid { display: block; padding-top: 0; }

.exhibition-spread .detail-prose { margin-top: 25px; }

.exhibition-spread .lead-gallery { margin-top: 0; }

.image-link { background: var(--tint); position: relative; display: block; }

.image-link img { width: 100%; height: auto; }

.project-figure figcaption, .project-film figcaption { color: var(--ink); padding-top: 8px; font-size: .82rem; line-height: 1.6; }

.figure-credit { color: var(--muted); }

.enlarge-mark {
  position: absolute;
  inset: auto 9px 9px auto;
  background: var(--paper);
  color: var(--green);
  padding: 4px 8px;
  line-height: 1.2;
  font-size: 1.14rem;
}

.image-link:hover .enlarge-mark { background: var(--green); color: var(--paper); }

.project-film { margin-top: 24px; max-width: 1060px; }

.project-film video { background: var(--ink); width: 100%; height: auto; aspect-ratio: 16/9; display: block; }

.project-themes { margin-top: 30px; }

.related { margin-top: clamp(52px, 7vw, 96px); }

.with-dialog { overflow: hidden; }

.lightbox {
  width: 100%;
  height: 100%;
  max-width: none;
  max-height: none;
  padding: clamp(10px, 2.5vw, 36px);
  margin: auto;
  background: transparent;
  border: 0;
  color: var(--foreground);
  overflow: auto;
}

.lightbox[open] { display: grid; place-items: center; }

.lightbox::backdrop { background: rgba(20, 24, 22, .96); }

.lightbox-inner { max-width: 94vw; }

.lightbox-controls { display: flex; justify-content: flex-end; align-items: center; gap: 8px; margin-bottom: 8px; }

.lightbox-controls span { margin-right: auto; font-size: .9rem; }

.lightbox-controls button { border: 1px solid #b6b9ae; background: transparent; color: var(--foreground); min-width: 42px; min-height: 42px; font-size: 1.24rem; }

.lightbox-controls button:focus-visible { outline-color: white; }

.lightbox img { max-height: min(74vh, 1160px); max-width: min(94vw, 1600px); margin-inline: auto; object-fit: contain; }

.lightbox figcaption { padding-top: 9px; max-width: 75ch; font-size: .92rem; }

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

.footer-inner { display: flex; align-items: center; justify-content: space-between; gap: 18px; min-height: 98px; }

.footer-name { font-size: 1rem; font-weight: 600; }

.footer-nav { display: flex; gap: 10px 24px; flex-wrap: wrap; }

.footer-nav a { font-size: .85rem; color: var(--green); }

.footer-nav a:hover { text-decoration: underline; text-underline-offset: 4px; }

@media (max-width: 1020px) {
  .header-inner { min-height: 62px; grid-template-columns: 1fr auto; gap: 0 14px; }
  .header-actions { grid-column: 2; grid-row: 1; }
  .site-nav { grid-column: 1 / -1; justify-content: flex-start; flex-wrap: wrap; column-gap: 20px; padding-block: 12px 16px; }
  .has-js .site-nav:not([data-open]) { display: none; }
  .has-js .menu-button { display: block; border: 0; background: transparent; padding: 8px 0; }
  .hero { grid-template-columns: minmax(0, 1.45fr) minmax(0, 1fr); column-gap: 26px; }
  .featured-grid, .category-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .featured-grid .project-card:nth-child(n) { grid-column: auto; }
  .featured-grid .card-image { height: auto; aspect-ratio: 1.45; }
  .featured-grid .text-card .card-copy { min-height: 205px; }
}

@media (max-width: 680px) {
  .hero { grid-template-columns: minmax(0, 1fr); padding-block: 56px 51px; gap: 24px; }
  .hero-other { margin-top: 15px; }
  .hero-intro { max-width: 440px; }
  .hero-line { margin-top: 7px; }
  .hero-intro .action { margin-top: 12px; }
  .hero h1 { font-size: clamp(3.5rem, 13vw, 5.2rem); }
  .site-nav { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 2px 18px; border-top: 1px solid var(--line); }
  .site-nav a { padding: 8px 0; white-space: normal; }
  .section-bar { flex-wrap: wrap; padding-block: 12px 14px; }
  .featured-grid, .category-grid { grid-template-columns: minmax(0, 1fr); gap: 23px; }
  .featured-grid .text-card .card-copy, .text-card .card-copy { min-height: 0; }
  .text-card .card-copy h3 { margin-top: 15px; }
  .entry-list li > a { grid-template-columns: minmax(0, 1fr) auto; gap: 5px 15px; padding-block: 13px; }
  .entry-title { grid-column: 1; grid-row: 1; }
  .entry-context { grid-column: 1; grid-row: 3; }
  .entry-meta { grid-column: 1; grid-row: 2; }
  .entry-list .arrow { grid-column: 2; grid-row: 1 / 3; }
  .page-heading, .detail-heading { padding-top: 45px; }
  .page-heading p { margin-top: 15px; }
  .profile-columns, .method-grid, .detail-grid, .layout-essay .detail-grid, .exhibition-spread { grid-template-columns: minmax(0, 1fr); }
  .profile-columns { padding-top: 0; }
  .cv-columns .aside-block { grid-row: 1; }
  .method-grid { gap: 19px; }
  .filter-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .archive-head, .arch-type, .arch-medium { display: none; }
  .archive-list a { grid-template-columns: minmax(0, 1fr) auto min-content; padding-block: 13px; }
  .project-gallery:not(.lead-gallery) { grid-template-columns: minmax(0, 1fr); }
  .gallery-material .project-figure:first-child { grid-row: auto; }
  .project-facts > div { max-width: none; }
  .footer-nav { gap: 7px 14px; }
  .footer-inner { min-height: 88px; }
}

@media (max-width: 365px) {
  :root { --margin: 17px; }
  .site-nav { grid-template-columns: minmax(0, 1fr); }
  .section-bar { align-items: flex-start; }
  .filter-top { grid-template-columns: minmax(0, 1fr); }
  .filter-top .action { margin-bottom: 0; }
  .footer-inner { flex-direction: column; align-items: flex-start; padding-block: 22px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition-duration: .01ms !important; }
}
