.works-exhibit, .projects-page, .case-file {
  --pc-ink: var(--ink, #202620);
  --pc-muted: var(--muted, #586058);
  --pc-line: var(--line, #d3d4c9);
  --pc-accent: var(--accent, #963d2c);
  color: var(--pc-ink);
}
.works-exhibit, .projects-page { padding-bottom: clamp(3.75rem, 7vw, 6.5rem); }
.exhibit-header {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1rem;
  padding: clamp(2.35rem, 4.6vw, 4.1rem) 0 clamp(1.25rem, 2.5vw, 2rem);
}
.exhibit-header h1 {
  font: 650 clamp(2.6rem, 5vw, 4.6rem)/1.13 var(--serif, serif);
  letter-spacing: -.035em;
}
.portfolio-page .exhibit-archive-link, .portfolio-page .archive-return {
  display: inline-flex;
  align-items: center;
  gap: .4rem;
  min-height: 44px;
  font-size: .95rem;
  font-weight: 600;
  color: var(--pc-accent);
  text-decoration: underline;
  text-underline-offset: .37em;
}
.exhibit-wall {
  display: grid;
  grid-template-columns: minmax(0,1.9fr) minmax(0,1fr);
  align-items: start;
  gap: clamp(1.3rem, 2.45vw, 2.15rem) clamp(1.65rem, 3.4vw, 3.1rem);
  border-top: 1px solid var(--pc-line);
  padding-top: clamp(1.25rem, 2.7vw, 2.25rem);
}
.exhibit-piece { display: block; min-width: 0; }
.exhibit-piece:first-child { grid-row: span 2; }
.exhibit-art { overflow: hidden; background: var(--tint, #efede5); }
.exhibit-art img { width: 100%; height: auto; aspect-ratio: 1.85; object-fit: cover; }
.exhibit-piece:first-child .exhibit-art img { aspect-ratio: 1.63; object-position: 50% 47%; }
.exhibit-piece[data-piece="average-tactile-aid"] .exhibit-art { background: #e4e5df; }
.exhibit-piece[data-piece="average-tactile-aid"] img { object-fit: contain; transform: scale(1.16); transform-origin: 50% 54%; }
.exhibit-piece[data-piece="quanzhou-campus-3d"] img { object-position: 50% 51%; }
.exhibit-caption { display: flex; justify-content: space-between; align-items: baseline; gap: .6rem; margin-top: .62rem; }
.exhibit-caption h2 {
  font: 650 clamp(1.17rem, 1.95vw, 1.65rem)/1.4 var(--serif, serif);
  letter-spacing: -.025em;
}
.exhibit-piece:first-child h2 { font-size: clamp(1.73rem, 3vw, 2.7rem); }
.exhibit-caption svg { flex: none; align-self: center; color: var(--pc-accent); }
.exhibit-piece p { margin-top: .4rem; max-width: 39em; font-size: 1rem; line-height: 1.7; color: var(--pc-muted); }
.exhibit-piece:hover h2, .archive-project:hover h3 { color: var(--pc-accent); text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: .19em; }
.projects-page [hidden] { display: none !important; }
.project-toolbar { border-block: 1px solid var(--pc-line); padding: 1rem 0 .7rem; margin-bottom: 2.5rem; }
.project-search {
  display: flex; align-items: center; gap: .65rem; max-width: 26rem;
  padding: 0 .7rem; color: var(--pc-muted); border: 1px solid var(--pc-line); border-radius: 3px;
}
.project-search svg { width: 18px; height: 18px; flex: none; }
.project-search input { width: 100%; min-height: 44px; font: inherit; font-size: .95rem; border: 0; padding: 0; background: transparent; color: var(--pc-ink); }
.project-search input:focus { outline: none; }
.project-search:focus-within { outline: 2px solid var(--pc-accent); outline-offset: 2px; }
.project-filter-row { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: .25rem 1rem; margin-top: .65rem; }
.project-filters { display: flex; flex-wrap: wrap; gap: .3rem 1.1rem; }
.project-filters button, .project-empty button {
  min-height: 40px; padding: .25rem 0; background: transparent; border: 0; color: var(--pc-muted);
  font: 500 .91rem/1.5 var(--sans, sans-serif); cursor: pointer;
}
.project-filters button[aria-pressed="true"], .project-empty button {
  color: var(--pc-accent); text-decoration: underline; text-underline-offset: .42rem; text-decoration-thickness: 2px;
}
.project-count { white-space: nowrap; color: var(--pc-muted); font: .85rem/1.5 var(--sans, sans-serif); }
.catalog-section + .catalog-section { margin-top: clamp(2.35rem, 5vw, 4.75rem); }
.catalog-section h2 { font: 650 clamp(1.55rem, 2.5vw, 2.15rem)/1.5 var(--serif, serif); margin: 0 0 .6rem; }
.project-list { border-top: 1px solid var(--pc-ink); }
.catalog-row { border-bottom: 1px solid var(--pc-line); }
.archive-project {
  display: grid; grid-template-columns: minmax(0,1fr) minmax(140px,23%) auto; align-items: center;
  gap: clamp(.65rem, 3.2vw, 3rem); padding: 1.1rem .1rem;
}
.archive-project h3 { font-size: clamp(1.03rem, 1.55vw, 1.23rem); line-height: 1.48; }
.archive-project svg { color: var(--pc-accent); }
.row-description { margin-top: .28rem; color: var(--pc-muted); font-size: .92rem; line-height: 1.65; }
.row-meta { color: var(--pc-muted); font-size: .84rem; line-height: 1.55; }
.project-variants { margin: -.55rem 0 .6rem .1rem; font-size: .85rem; }
.project-variants summary { width: fit-content; padding: .3rem 0; cursor: pointer; color: var(--pc-accent); }
.project-actions { display: flex; align-items: center; flex-wrap: wrap; gap: .2rem 1rem; }
.portfolio-page .project-actions a { line-height: 1.65; text-decoration: underline; text-underline-offset: .22em; color: var(--pc-accent); }
.project-variants .project-actions a { display: inline-flex; align-items: center; min-height: 36px; }
.project-empty { padding: 1rem 0 3rem; }
.case-file{padding-top:clamp(1.2rem,3vw,2.4rem);padding-bottom:clamp(3rem,7vw,6rem)}
.case-back{display:inline-block;font-size:.88rem;color:var(--pc-muted)}
.case-lead{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1.06fr);gap:clamp(1.5rem,5vw,4.5rem);align-items:center;margin:clamp(2rem,5vw,4.6rem) 0}
.case-lead h1{font-size:clamp(2.15rem,4.5vw,4.05rem);line-height:1.13;margin:.55rem 0 1.05rem;letter-spacing:-.035em}
.case-lead .case-summary{font-size:clamp(1rem,1.5vw,1.16rem);line-height:1.85;margin:0 0 1.1rem}
.case-lead .project-actions{margin:.8rem 0 .3rem}
.case-lead .project-actions a{font-size:.92rem}
.case-lead .project-actions a:first-child{background:var(--pc-accent);color:#fff;padding:.55rem .85rem;border-radius:3px;text-decoration:none}
.case-file figure{margin:0;min-width:0}
.case-file figure img{width:100%;display:block;max-height:31rem;object-fit:contain;background:#eeeee5;border:1px solid var(--pc-line)}
.case-file figcaption{font-size:.8rem;line-height:1.65;color:var(--pc-muted);margin-top:.5rem}
.case-notes{display:grid;grid-template-columns:minmax(0,1.6fr) minmax(0,.83fr);gap:clamp(2rem,7vw,6rem);padding-top:clamp(1.65rem,4vw,3rem);border-top:1px solid var(--pc-line)}
.case-notes h2{font-size:clamp(1.4rem,2.5vw,2rem);letter-spacing:-.025em;line-height:1.45;margin:0 0 1rem}
.case-notes h3{font-size:1.12rem;margin:1.6rem 0 .4rem}
.case-notes p,.case-notes dd{line-height:1.9;margin:0;color:var(--pc-muted)}
.case-notes dl{margin:0}
.case-notes dt{font-size:.88rem;color:var(--pc-accent);font-weight:650;margin:1rem 0 .28rem}
.case-notes dt:first-child{margin-top:0}
.case-notes dd{font-size:.94rem}

.case-lead h1, .case-notes h2 { font-family: var(--serif, serif); }
.portfolio-page .case-lead .project-actions a:first-child { color: #fff; text-decoration: none; }
@media (max-width: 800px) {
  .exhibit-wall { grid-template-columns: repeat(2, minmax(0,1fr)); gap: 1.7rem 1rem; }
  .exhibit-piece:first-child { grid-column: 1 / -1; grid-row: auto; }
  .exhibit-piece:first-child .exhibit-art img { aspect-ratio: 1.85; }
  .exhibit-art img { aspect-ratio: 1.6; }
}
@media (max-width: 700px) {
  .archive-project { grid-template-columns: minmax(0,1fr) auto; gap: .4rem .85rem; }
  .archive-project .row-meta { grid-row: 2; }
  .archive-project svg { grid-column: 2; grid-row: 1; }
  .case-lead, .case-notes { grid-template-columns: 1fr; }
  .case-notes { gap: 2rem; }
  .case-notes aside { border-top: 1px solid var(--pc-line); padding-top: 1.25rem; }
  .case-lead { margin-top: 1.45rem; }
  .project-search { max-width: none; }
}
@media (max-width: 460px) {
  .exhibit-header { padding-top: 1.75rem; }
  .exhibit-header h1 { font-size: 2.6rem; }
  .portfolio-page .exhibit-archive-link { font-size: .85rem; gap: .15rem; }
  .exhibit-wall { gap: 1.7rem .8rem; padding-top: 1rem; }
  .exhibit-piece:first-child .exhibit-art img { aspect-ratio: 1.5; }
  .exhibit-art img { aspect-ratio: 1.3; }
  .exhibit-piece:not(:first-child) .exhibit-caption svg { display: none; }
  .exhibit-piece:not(:first-child) h2 { font-size: 1.12rem; }
  .exhibit-piece p { font-size: .92rem; }
  .project-filters { gap: 0 .9rem; }
}
