@font-face { font-family: 'Huiwen Mincho'; src: url('assets/fonts/huiwen-contact.woff') format('woff'); font-weight: 400; font-style: normal; font-display: swap; unicode-range: U+4FDD, U+51FB, U+5224, U+522B, U+52A0, U+53CB, U+5927, U+5B58, U+5FAE, U+6253, U+6267, U+626B, U+6280, U+652F, U+65AD, U+65E9, U+6DFB, U+7247, U+7801, U+7ECF, U+8BA4, U+8BC6; }
/* Letter-paper surfaces and the original Huiwen letterpress glyphs. */
@font-face {
  font-family: 'Huiwen Mincho';
  src: url('assets/fonts/huiwen-mincho-subset.woff') format('woff');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
:root {
  color-scheme: light;
  --paper: #f6f2e9;
  --ink: #302e29;
  --muted: #69665e;
  --accent: #315b59;
  --surface: #faf6ee;
  --surface-soft: #eae5d9;
  --hand: 'Huiwen Mincho', 'Songti SC', 'STSong', serif;
  --book: var(--hand);
  --sans: var(--hand);
  --paper-wash: #f6f2e94d;
  --paper-blend: multiply;
  --surface-glass: linear-gradient(135deg, #ffffffeb, #f1f2edf5);
  --edge: #242c2410;
  --action: #242a27;
  --action-text: #ffffff;
  --accent-soft: #e5eee7;
  --shadow: 0 8px 32px #242c2405;
  --radius: 24px;
}
:root[data-theme="dark"] {
  color-scheme: dark;
  --paper: #242522;
  --ink: #eee8dc;
  --muted: #bcb7ab;
  --accent: #a7c4b6;
  --surface: #2e302b;
  --surface-soft: #35372f;
  --paper-wash: #242522eb;
  --paper-blend: normal;
  --surface-glass: linear-gradient(135deg, #ffffff14, #ffffff06);
  --edge: #ffffff12;
  --action: #f4f5f2;
  --action-text: #151916;
  --accent-soft: #223b30;
  --shadow: 0 8px 32px #00000014;
}
body, dialog {
  background-color: var(--paper);
  background-image: linear-gradient(var(--paper-wash), var(--paper-wash)), url('assets/materials/paper-fibres.webp');
  background-size: auto, 768px 512px;
  background-blend-mode: normal, var(--paper-blend);
  color: var(--ink);
}
button:focus-visible, a:focus-visible { outline-color: var(--accent); }
.logo-dot, .heading-dot, .award-spark { color: var(--accent); }
.header { gap: 24px; height: 112px; }
.wordmark { font-family: var(--hand); font-style: normal; font-size: 44px; font-weight: 400; letter-spacing: -3px; }
.header nav { gap: 28px; }
.nav-contact, .theme-toggle {
  background: transparent;
  box-shadow: none;
  border-radius: 999px;
  min-height: 44px;
}
.theme-toggle { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 10px 16px; font-size: 13px; background: var(--surface-soft); }
.theme-icon { font-size: 19px; line-height: 1; }
.hero { padding-top: 24px; padding-bottom: 88px; }
.hero-main { display: grid; grid-template-columns: 1.55fr 1fr; gap: 64px; margin-top: 28px; align-items: center; }
.hero-editorial { min-width: 0; }
.hero-kicker { font-size: 10px; letter-spacing: 2.2px; color: var(--muted); margin-bottom: 22px; }
.hero-kicker span { margin-left: 14px; }
h1 { font-family: var(--hand); font-weight: 400; font-size: clamp(44px, 4.5vw, 66px); letter-spacing: 0; line-height: 1.45; }
.hero-origin { display: block; font-weight: 400; font-size: 1em; margin-bottom: 6px; }
.hero-making { display: block; white-space: nowrap; }
.hero-imagination { color: var(--accent); }
.mobile-break { display: none; }
.hero-artwork { display: block; position: relative; align-self: center; aspect-ratio: 1.08; margin: 0; }
.emphasis svg { stroke: var(--accent); opacity: .45; }
.hello-name { font-size: 12px; }
.hero-aside { margin-top: 26px; display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; padding-bottom: 0; }
.hero-aside > p { color: var(--muted); font-family: var(--book); font-size: 16px; margin: 0; }
.hero-aside > .tiny-label { color: var(--muted); }
.tiny-label { font-size: 11px; }
.recognition { background: none; box-shadow: none; border-radius: 0; margin-top: 72px; padding: 0; justify-content: flex-start; gap: 72px; }
.award-spark { display: none; }
.track-record strong { font-family: var(--hand); font-size: 46px; font-weight: 400; }
.track-record p { color: var(--muted); }
.track-record strong { color: var(--ink); }
.stat-dot { color: var(--muted); }
.award-list { font-size: 11px; gap: 40px; }
.award-place { font-size: 19px; font-weight: 450; margin-bottom: 4px; }
.award-event { color: var(--muted); font-size: 11px; }
.section-heading h2 { font-family: var(--hand); font-weight: 400; font-size: 42px; letter-spacing: .04em; }
.work-count { display: inline-block; vertical-align: top; margin: 6px 0 0 12px; font: 400 18px var(--hand); color: var(--muted); }
.filters { padding: 0; gap: 8px; background: transparent; border-radius: 0; margin: 28px 0 32px; }
.filters button { color: var(--muted); min-height: 44px; font-size: 14px; padding: 10px 20px; }
.filters button[aria-pressed="true"] { background: var(--action); color: var(--action-text); box-shadow: none; }
.filters button:not([aria-pressed="true"]):hover { background: var(--surface); color: var(--ink); }
.projects { gap: 56px 32px; }
.project-open { background: transparent; box-shadow: none; overflow: visible; }
.project-open:hover { box-shadow: none; }
.cover { border-radius: 24px; aspect-ratio: 1.5; }
.project-info { padding: 24px 2px 0; }
.project-meta { font-size: 12px; gap: 12px; color: var(--muted); }
.project-meta > span { color: var(--muted); }
.project-title { margin: 12px 0 8px; }
.project-title h3 { font-family: var(--hand); font-size: 29px; font-weight: 400; letter-spacing: 0; }
.project-info > p { font-family: var(--book); font-size: 17px; line-height: 1.9; color: var(--muted); }
.open-arrow { background: transparent; color: var(--ink); width: 40px; height: 40px; font-size: 27px; }
.project-open:hover .open-arrow { background: var(--action); color: var(--action-text); }
.project-outcome { display: inline-flex; align-items: center; gap: 8px; margin-top: 14px; font-size: 12px; line-height: 1.6; color: var(--accent); }
.project-outcome:before { content: ''; width: 4px; height: 4px; border-radius: 50%; background: currentColor; }
.cover-aiworld { background: #b9e3f0; color: #173d44; }
.cover-aiworld .cover-heading { left: auto; right: 28px; text-align: right; }
.cover-aiworld .cover-heading > span { font-size: 30px; letter-spacing: -.7px; }
.cover-aiworld .cover-heading > small { font-size: 9px; }
.cover-aiworld .cover-index { color: white; opacity: 1; text-shadow: 0 1px 8px #163c4e; }
.about { padding: 120px 0; grid-template-columns: 1fr 1fr; gap: 72px; align-items: start; }
.about-heading .tiny-label { margin-bottom: 20px; color: var(--muted); }
.about-heading h2 { font-family: var(--hand); font-size: 34px; line-height: 1.65; font-weight: 400; }
.about-copy > p:not(.tiny-label) { font-family: var(--book); font-size: 18px; line-height: 2; color: var(--ink); }
.about-copy > p:first-child { margin-top: 0; }
.about-tags span { color: var(--muted); background: transparent; font-size: 12px; padding: 0 16px 0 0; }
.contact { background: #c9cbb52e; box-shadow: none; border-radius: 28px; padding: 56px; }
:root[data-theme="dark"] .contact { background: #a7b49c0c; }
.contact .tiny-label, .contact p:not(.tiny-label), .contact-bottom { color: var(--muted); }
.contact p:not(.tiny-label) { font-size: 14px; }
.contact h2 { font-family: var(--hand); font-weight: 400; font-size: 40px; letter-spacing: 0; }
.contact-button, .dialog-link { background: var(--action); color: var(--action-text); }
.contact-bottom { font-size: 14px; }
.contact-bottom button { background: var(--surface-soft); font-size: 12px; min-height: 44px; }
footer { color: var(--muted); font-size: 12px; }
.dialog-content h2 { font-family: var(--hand); font-weight: 400; }
.dialog-close { background: var(--surface); color: var(--ink); }
.dialog-content .tiny-label, .detail-block h3 { color: var(--muted); }
.detail-block h3 { font-size: 13px; }
.detail-block p { font-family: var(--book); color: var(--ink); font-size: 17px; line-height: 1.95; }
.dialog-link { min-height: 48px; }
.skip:focus { background: var(--surface); }
@media (max-width: 1050px) {
  .hero-main { gap: 36px; grid-template-columns: 1.7fr 1fr; }
  h1 { font-size: 44px; letter-spacing: 0; }
  .hero-aside { gap: 16px; }
  .recognition { padding: 0; gap: 44px; }
  .award-list { gap: 20px; }
  .about { gap: 40px; }
  .about-heading h2 { font-size: 28px; }
}
@media (max-width: 760px) {
  .header { gap: 16px; height: 84px; }
  .header nav { gap: 14px; font-size: 13px; }
  .header nav > a { display: inline-flex; align-items: center; min-height: 44px; }
  .header .nav-contact { display: none; }
  .theme-toggle { gap: 6px; padding: 10px 12px; font-size: 12px; }
  .wordmark { font-size: 43px; }
  .hero { padding-top: 24px; padding-bottom: 60px; }
  .hello { font-size: 13px; }
  .hello img { width: 32px; height: 32px; }
  .hello-name { font-size: 10px; }
  h1 { font-size: clamp(34px, 9.3vw, 65px); line-height: 1.5; letter-spacing: -.02em; }
  .hero-origin { font-size: 1em; margin-bottom: 6px; letter-spacing: 0; }
  .mobile-break { display: none; }
  .hero-making { line-height: 1.5; }
  .hero-main { display: block; margin-top: 32px; }
  .hero-kicker { display: none; }
  .hero-artwork { display: block; height: 210px; aspect-ratio: auto; margin: 24px 0 0; }
  .hero-aside { margin-top: 24px; display: flex; gap: 16px; }
  .hero-aside > p { font-size: 14px; line-height: 1.85; margin: 0; }
  .recognition { margin-top: 32px; padding: 0; display: grid; grid-template-columns: 100px 1fr; gap: 24px; align-items: center; }
  .track-record p { font-size: 11px; line-height: 1.8; }
  .track-record strong { font-size: 34px; margin: 0 4px 0 0; }
  .track-record .stat-dot { display: block; height: 2px; visibility: hidden; }
  .award-list { display: flex; flex-direction: column; gap: 14px; font-size: 10px; margin-top: 0; }
  .award-place { display: inline; font-size: 16px; margin-right: 8px; }
  .award-event { display: block; font-size: 11px; line-height: 1.6; margin-top: 5px; }
  .section-heading .tiny-label { font-size: 10px; }
  .section-heading h2 { font-size: 32px; }
  .work-count { font-size: 15px; margin-top: 2px; }
  .filters { gap: 2px; padding: 0; margin: 20px 0 24px; }
  .filters button { font-size: 12px; padding: 10px 11px; flex: 1; }
  .filters sup { margin-left: 3px; }
  .projects { gap: 38px; }
  .cover { aspect-ratio: 1.25; border-radius: 22px; }
  .project-info { padding: 20px 2px 0; }
  .project-meta { font-size: 11px; gap: 10px; flex-wrap: wrap; }
  .project-title { margin: 10px 0 8px; }
  .project-title h3 { font-size: 27px; }
  .project-info > p { font-size: 16px; }
  .project-outcome { font-size: 12px; margin-top: 12px; }
  .cover-aiworld .cover-heading { top: 26px; right: 24px; }
  .cover-aiworld .cover-heading > span { font-size: 27px; }
  .cover-aiworld .cover-heading > small { font-size: 8px; }
  .about { padding: 76px 0; grid-template-columns: 1fr; gap: 24px; }
  .about-heading .tiny-label { margin-bottom: 16px; font-size: 10px; }
  .about-heading h2 { font-size: 29px; }
  .about-copy > p:not(.tiny-label) { font-size: 17px; }
  .contact { padding: 28px 24px; }
  .contact h2 { font-size: 26px; line-height: 1.55; }
  .contact p:not(.tiny-label) { font-size: 12px; line-height: 1.8; }
  .contact-button { min-height: 48px; font-size: 14px; }
  .contact-bottom { font-size: 13px; gap: 16px; }
  .contact-bottom button { font-size: 12px; }
  .contact .tiny-label { font-size: 9px; }
  footer { font-size: 11px; line-height: 1.8; }
  .dialog-intro { font-size: 17px; }
  .detail-block p { font-size: 16px; }
  .dialog-link { font-size: 14px; }
}
@media (max-width: 360px) {
  .header nav { gap: 10px; }
  .filters button { font-size: 11px; padding-inline: 8px; }
  .recognition { padding: 0; grid-template-columns: 84px 1fr; gap: 16px; }
  .track-record { gap: 8px; }
  .track-record p { font-size: 11px; }
  .hero-aside > p { font-size: 12px; }
  .award-list { gap: 10px; }
}

/* One typeface, including captions, controls and cover lettering. */
body { font-family: var(--hand); font-synthesis: none; }
.wordmark, .track-record strong, .work-count,
.cover-heading > span, .cover-between .cover-heading > span,
.cover-wufang .cover-heading > span, .cover-statement { font-family: var(--hand); font-style: normal; font-weight: 400; }
.tiny-label, .cover-heading > span, .wanxiang-statement,
.community-statement, .award-place { font-weight: 400; }
.header nav { font-size: 16px; }
.hello { font-size: 16px; }
.hello-name { font-size: 13px; }
.hero-kicker, .tiny-label, .section-heading .tiny-label,
.contact .tiny-label { font-size: 12px; letter-spacing: 1px; }
.hero-aside > p { font-size: 18px; line-height: 1.9; }
.theme-toggle, .filters button { font-size: 15px; }
.track-record p, .award-list, .award-event { font-size: 14px; }
.project-meta, .project-outcome, .about-tags span { font-size: 14px; }
.cover-heading > small, .cover-aiworld .cover-heading > small,
.cover-award, .cover-index, .cover:has(.cover-award) .cover-index { font-size: 12px; letter-spacing: .3px; }
.cover:has(.cover-award) .cover-index { display: none; }
.contact p:not(.tiny-label), .contact-bottom button,
footer, #copy-status, .detail-block h3 { font-size: 14px; }

/* A separate thin sheet: the source mask preserves real torn fibres. */
:root { --sheet: #faf7ef; --sheet-wash: #faf7ef52; --contact-paper: #eae8da; }
:root[data-theme="dark"] { --sheet: #343630; --sheet-wash: #292b26eb; --contact-paper: #3b4035; }
.work-sheet { position: relative; margin-top: 24px; padding: 56px 0 64px; }
.work-sheet, .paper-tear::before, .contact, :root[data-theme="dark"] .contact, .contact::before {
  background-color: var(--sheet);
  background-image: linear-gradient(var(--sheet-wash), var(--sheet-wash)), url('assets/materials/paper-fibres.webp');
  background-size: auto, 768px 512px;
  background-blend-mode: normal, var(--paper-blend);
}
.paper-tear { position: absolute; inset: -48px 0 auto; height: 64px; pointer-events: none; filter: drop-shadow(0 -1px 1px #3c30231a); }
.paper-tear::before, .contact::before {
  content: ''; position: absolute; inset: 0;
  -webkit-mask: url('assets/materials/torn-edge-alpha.png') center 46% / 100% 500% no-repeat;
  mask: url('assets/materials/torn-edge-alpha.png') center 46% / 100% 500% no-repeat;
}
.contact, :root[data-theme="dark"] .contact {
  position: relative; isolation: isolate; border-radius: 2px 2px 16px 4px;
  background-color: var(--contact-paper);
  box-shadow: 0 2px 2px #2c291012, 3px 12px 20px -16px #2c29104d;
}
.contact { --sheet-wash: #e1dfcf94; }
:root[data-theme="dark"] .contact { --sheet-wash: #384034eb; }
.contact::before { top: -40px; bottom: auto; height: 56px; background-color: var(--contact-paper); transform: scaleX(-1); z-index: -1; }
.contact::after { content: ''; position: absolute; right: 0; bottom: 0; width: 32px; height: 32px; border-radius: 0 0 16px 0; background: linear-gradient(135deg, transparent 48%, #665a3921 50%, #fff4 56%, transparent 90%); pointer-events: none; }
.project-open .cover { transform-origin: 50% 80%; box-shadow: 0 2px 2px #29211112, 1px 6px 9px -7px #29211144; }
.project-open:hover .cover > img { transform: none; }
.project-open:hover .cover-art > img { transform: scale(.94); }
.project-open:hover .cover-between > img { transform: scale(.96); }
.project-open:hover .open-arrow { transform: none; }
@media (prefers-reduced-motion: no-preference) {
  .project-open .cover { transition: transform 420ms cubic-bezier(.22,1,.36,1), box-shadow 420ms cubic-bezier(.22,1,.36,1); }
  .project-open:active .cover { transform: perspective(1000px) rotateX(1deg) translateY(2px); box-shadow: 0 1px 2px #29211122; }
  .theme-toggle, .filters button, .contact-button, .dialog-link { transition: transform 180ms cubic-bezier(.22,1,.36,1), background 220ms; }
  .theme-toggle:active, .filters button:active, .contact-button:active, .dialog-link:active { transform: translateY(2px); }
  dialog[open] { animation: paper-open 360ms cubic-bezier(.22,1,.36,1); transform-origin: 50% 85%; }
  dialog[open]::backdrop { animation: veil-in 240ms ease-out; }
  .project.paper-enter { animation: paper-settle 420ms cubic-bezier(.22,1,.36,1) both; }
  @keyframes paper-open { from { opacity: 0; transform: perspective(1400px) rotateX(5deg) translateY(24px); } to { opacity: 1; transform: none; } }
  @keyframes veil-in { from { opacity: 0; } to { opacity: 1; } }
  @keyframes paper-settle { from { opacity: 0; transform: translateY(12px) rotate(.5deg); } to { opacity: 1; transform: none; } }
}
@media (hover: hover) and (prefers-reduced-motion: no-preference) {
  .project-open:hover .cover, .project-open:focus-visible .cover { transform: perspective(1000px) rotateX(2deg) rotateY(-1deg) translateY(-5px); box-shadow: 0 2px 2px #29211112, 4px 18px 18px -14px #29211155; }
}
@media (max-width: 760px) {
  .header nav { font-size: 15px; gap: 16px; }
  .theme-toggle { font-size: 14px; padding-inline: 10px; }
  .wordmark { font-size: 38px; letter-spacing: -2px; }
  .hello { font-size: 15px; }
  .hello-name { font-size: 12px; }
  .hero-aside > p { font-size: 16px; }
  .hero-artwork { height: 260px; margin-top: 28px; }
  .recognition { grid-template-columns: 88px 1fr; gap: 20px; }
  .track-record p, .award-list, .award-event { font-size: 12px; }
  .award-place { font-size: 16px; }
  .filters button { font-size: 14px; padding-inline: 8px; }
  .filters sup { font-size: 10px; }
  .project-meta, .project-outcome { font-size: 13px; }
  .section-heading .tiny-label, .contact .tiny-label { font-size: 12px; }
  .cover-heading > small, .cover-aiworld .cover-heading > small, .cover-award, .cover-index { font-size: 11px; }
  .contact p:not(.tiny-label), .contact-bottom button, footer { font-size: 13px; }
  .contact { margin-top: 12px; padding: 28px 24px; }
  .contact h2 { font-size: clamp(21px, 6vw, 28px); }
  .work-sheet { margin-top: 10px; padding: 32px 0 40px; }
  .paper-tear { top: -36px; height: 48px; }
  .paper-tear::before { -webkit-mask-size: 180% 600%; -webkit-mask-position: 20% 46%; mask-size: 180% 600%; mask-position: 20% 46%; }
  .contact::before { -webkit-mask-size: 160% 500%; -webkit-mask-position: 80% 46%; mask-size: 160% 500%; mask-position: 80% 46%; }
}
@media (max-width: 360px) {
  .header nav { gap: 10px; }
  .recognition { grid-template-columns: 76px 1fr; gap: 14px; }
  .filters button { padding-inline: 5px; font-size: 13px; }
  .filters sup { margin-left: 1px; }
  .award-list { font-size: 11px; }
  .cover-art .cover-heading > span { font-size: 20px; }
}

/* One instant print, with the next sheet emerging as the reader scrolls. */
.hero:has(.folio-scroll) { min-height: 0; padding-bottom: 32px; }
.folio-scroll { min-width: 0; align-self: stretch; padding-bottom: 72px; }
.hero-artwork.folio { position: sticky; top: 36px; aspect-ratio: auto; height: auto; min-width: 0; margin: 0; }
.folio-stack { position: relative; isolation: isolate; padding: 16px 18px 24px; }
.folio-sheet, .folio-tail { color: #37392f; background: linear-gradient(#fcfaf2ed,#f6f3e9ed),url('assets/materials/paper-fibres.webp') center / 600px; border-radius: 2px; box-shadow: 0 1px 2px #332b1926, 4px 14px 22px -10px #332b194a; }
.folio-page { display: block; position: relative; padding: 14px 14px 32px; transform: rotate(-2deg); transform-origin: 50% 60%; }
.folio-tail { position: absolute; inset: 24px 22px 30px; z-index: -1; transform: rotate(-2deg); }
.folio-tail > span { position: absolute; bottom: 22px; left: 24px; font-size: 15px; color: #606455; }
.folio-tail small { display: block; font-size: 11px; margin-top: 8px; letter-spacing: 1px; }
.folio-image { display: block; width: 100%; height: auto; aspect-ratio: 1; object-fit: cover; border-radius: 0; box-shadow: 0 0 0 1px #2b30211c; }
.folio-title { display: block; margin: 23px 8px 0; font-size: clamp(19px,1.7vw,25px); line-height: 1.3; }
.folio-note { display: block; font-size: 14px; line-height: 1.7; margin: 9px 8px 0; color: #606455; }
.folio figcaption { display: flex; justify-content: space-between; align-items: center; margin-top: 8px; color: var(--muted); font-size: 12px; padding-inline: 12px; }
.folio figcaption > span:last-child { font-size: 20px; }
.work .recognition { margin: 0 0 64px; }
:root[data-theme="dark"] .folio-sheet, :root[data-theme="dark"] .folio-tail { background: linear-gradient(#ddd6c5ed,#d3ccbced),url('assets/materials/paper-fibres.webp') center / 600px; box-shadow: 0 1px 3px #0005, 5px 18px 26px -10px #0007; }
@media (prefers-reduced-motion: no-preference) {
  .folio-scroll[data-scroll-ready] .folio-page { transform: translateY(calc(var(--print-progress,0) * -12px)) rotate(calc(-2deg + var(--print-progress,0) * 2deg)); }
  .folio-scroll[data-scroll-ready] .folio-tail { transform: translateY(calc(var(--print-progress,0) * 72px)) rotate(calc(-2deg + var(--print-progress,0) * 2deg)); }
  .folio-scroll[data-scroll-ready] figcaption { opacity: calc(1 - var(--print-progress,0) * 2); }
  .work-sheet[data-scroll-ready] { transform: translateY(calc((1 - var(--sheet-progress,1)) * 24px)); }
}
@media (max-width: 760px) {
  .folio-scroll { padding-bottom: 72px; margin-top: 30px; }
  .hero-artwork.folio { top: 20px; margin: 0 auto; max-width: 380px; }
  .folio-stack { padding: 16px 14px 20px; }
  .folio-page { padding: 12px 12px 27px; }
  .folio-tail { inset: 24px 18px 24px; }
  .folio-title { font-size: 21px; margin: 20px 6px 0; }
  .folio-note { font-size: 14px; margin: 8px 6px 0; }
  .work .recognition { margin-bottom: 44px; }
}
@media (prefers-reduced-motion: reduce) {
  .folio-scroll { padding-bottom: 0; }
  .hero-artwork.folio { position: relative; top: auto; }
  .folio-tail { display: none; }
}

/* Keep essential controls reachable on touch screens and in long details. */
.wordmark, .header nav > a, .contact-bottom > a, footer > a {
  display: inline-flex; align-items: center; justify-content: center; min-height: 44px; min-width: 44px;
}
.dialog-close {
  position: sticky; display: block; top: 16px; margin: 16px 16px -60px auto;
}
@media (max-width: 760px) {
  .dialog-close { top: 12px; margin: 12px 12px -56px auto; }
}

/* A visible invitation on every project, without competing with its title. */
.project-title { flex-wrap: wrap; gap: 10px 16px; }
.project-detail { display: inline-flex; align-items: center; gap: 8px; margin-left: auto; flex-shrink: 0; min-height: 36px; padding: 4px 12px; border-radius: 999px; font-size: 13px; color: var(--accent); background: var(--accent-soft); white-space: nowrap; }
.project-detail > span { font-size: 20px; line-height: 1; }
.project-open:hover .project-detail, .project-open:focus-visible .project-detail { color: var(--action-text); background: var(--action); }

/* Personal contact: current exploration, people sought, and the original QR. */
.contact { grid-template-columns: minmax(0, 1fr) 250px; gap: 32px 48px; }
.contact .contact-story { max-width: 620px; margin-top: 36px; font-size: 14px; line-height: 1.9; }
.contact-seeking { display: grid; grid-template-columns: 1fr 1fr; gap: 32px; margin-top: 24px; }
.contact .contact-seeking h2 { width: fit-content; margin: 0; font-size: clamp(32px, 2.8vw, 42px); line-height: 1.4; font-weight: 400; color: var(--accent); background: linear-gradient(transparent 78%, var(--accent-soft) 78%, var(--accent-soft) 94%, transparent 94%); }
.contact .contact-seeking p { margin-top: 18px; font-size: 16px; line-height: 1.9; color: var(--ink); }
.wechat-card { text-align: center; }
.wechat-open { display: block; padding: 10px 10px 18px; background: #fff; color: #302e29; border-radius: 4px; box-shadow: 0 2px 3px #332b1914, 3px 10px 20px -12px #332b1940; }
.wechat-open img { display: block; width: 100%; height: auto; }
.wechat-open > span { display: block; margin-top: 6px; font-size: 15px; line-height: 1.6; }
.contact .wechat-card > p { margin-top: 14px; font-size: 12px; line-height: 1.7; }
#wechat-dialog { width: min(440px, calc(100% - 32px)); max-height: 90svh; padding: 20px; border-radius: 12px; text-align: center; }
.wechat-close { position: sticky; display: block; top: 0; margin: 0 0 8px auto; width: 44px; height: 44px; border-radius: 50%; background: var(--action); color: var(--action-text); font: inherit; font-size: 25px; }
#wechat-dialog h2 { margin: 0 0 16px; font-size: 22px; font-weight: 400; }
#wechat-dialog img { display: block; width: 100%; height: auto; border-radius: 3px; }
#wechat-dialog p { font-size: 14px; line-height: 1.8; margin: 16px 0 4px; }
#wechat-dialog > a { display: inline-flex; align-items: center; min-height: 44px; color: var(--accent); font-size: 14px; }
@media (max-width: 900px) {
  .contact { grid-template-columns: minmax(0, 1fr) 220px; gap: 28px; }
  .contact-seeking { grid-template-columns: 1fr; gap: 30px; }
}
@media (max-width: 760px) {
  .contact { grid-template-columns: 1fr; }
  .contact .contact-story { font-size: 14px; margin-top: 28px; }
  .contact .contact-seeking h2 { font-size: 32px; letter-spacing: 0; }
  .contact .contact-seeking p { font-size: 15px; margin-top: 12px; }
  .wechat-card { width: min(100%, 270px); justify-self: center; }
  .contact-bottom { gap: 6px 14px; }
  .contact-bottom > span:first-child { flex-basis: 100%; }
  #wechat-dialog { padding: 16px; }
  #wechat-dialog h2 { font-size: 19px; }
}
