.site-header nav a[aria-current="page"] {
  color: var(--ink);
  text-decoration: underline;
  text-underline-offset: .35em;
}

.profile-intro {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 168px;
  gap: clamp(1.5rem, 5vw, 4rem);
  align-items: start;
  padding-block: clamp(2rem, 5vw, 3.5rem);
}

.profile-copy { max-width: 70ch; }
.profile-copy h1 {
  margin: 0 0 .3rem;
  font-size: clamp(2.2rem, 5vw, 3.7rem);
  line-height: 1.05;
  letter-spacing: -.035em;
}
.profile-copy h1 span {
  display: inline-block;
  margin-inline-start: .25em;
  color: var(--muted);
  font-size: .48em;
  font-weight: 500;
  letter-spacing: 0;
}
.profile-copy p { margin: .8rem 0; }
.profile-copy .profile-role { margin: .65rem 0 1.15rem; font-weight: 600; }
.profile-portrait {
  width: 100%;
  height: auto;
  aspect-ratio: 21 / 26;
  object-fit: cover;
  border-radius: 6px;
}
.profile-links {
  display: flex;
  flex-wrap: wrap;
  gap: .4rem 1.1rem;
  align-items: baseline;
  font-size: .9rem;
}
.profile-copy .profile-links { margin-top: 1rem; }

.homepage-section {
  border-top: 1px solid var(--line);
  padding: 1.65rem 0 2.1rem;
}
.homepage-section-heading {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: .25rem 1.25rem;
  margin-bottom: .65rem;
}
.homepage-section-heading h2 { font-size: clamp(1.5rem, 3vw, 2rem); margin: 0; }
.homepage-section-heading > a { font-size: .9rem; }
.document-list { list-style: none; padding: 0; margin: .7rem 0 0; }

.studio-overview {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 235px);
  gap: clamp(1.5rem, 5vw, 4rem);
  align-items: start;
  padding-block: clamp(1.75rem, 4vw, 3.4rem);
}
.studio-overview-copy { max-width: 690px; }
.studio-overview h1 {
  margin: 0;
  font-size: clamp(2.2rem, 5vw, 3.75rem);
  line-height: 1.1;
  letter-spacing: -.035em;
}
.studio-overview h1 span {
  display: inline-block;
  font-size: .52em;
  color: var(--muted);
  font-weight: 500;
  letter-spacing: 0;
}
.studio-overview-copy > p { max-width: 60ch; }
.studio-home-preview { margin: 0; }
.studio-home-preview > a { display: block; width: fit-content; }
.studio-home-preview img { display: block; width: 220px; height: auto; border: 1px solid var(--line); border-radius: 14px; }
.studio-home-preview figcaption { margin-top: .55rem; font-size: .83rem; color: var(--muted); }
.studio-experience {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: .75rem 1rem;
  padding: 1rem 1.25rem;
  margin-top: 1.55rem;
  border: 1px solid var(--line);
  border-radius: 10px;
}
.studio-experience h2 { margin: 0 0 .35rem; font-size: 1.3rem; }
.studio-experience p { margin: 0 0 .45rem; }
.studio-experience figure { margin: 0; text-align: center; }
.studio-experience img { display: block; width: 124px; height: auto; margin: 0 auto; }
.studio-experience figcaption { color: var(--muted); font-size: .75rem; }

@media (max-width: 768px) {
  .profile-intro { grid-template-columns: minmax(0, 1fr) 110px; gap: 1.1rem; }
  .studio-overview { grid-template-columns: minmax(0, 1fr) minmax(0, 180px); }
}

@media (max-width: 540px) {
  .profile-intro { grid-template-columns: 1fr; }
  .profile-portrait { width: 102px; grid-row: 1; }
  .studio-overview { grid-template-columns: 1fr; }
  .studio-experience { padding: .8rem; font-size: .9rem; }
  .studio-experience img { width: 102px; }
}

/* Keep section headings visible below the sticky navigation on direct links. */
.homepage-section[id],
#work.focus-section,
.xunpu-page section[id] {
  scroll-margin-top: 4rem;
}

@media (max-width: 768px) {
  .homepage-section[id],
  #work.focus-section,
  .xunpu-page section[id] {
    scroll-margin-top: 7.25rem;
  }
}

.evidence-actions { display: flex; flex-wrap: wrap; gap: .45rem .55rem; align-items: center; }
.evidence-actions a {
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  gap: .35rem;
  max-width: 100%;
  min-height: 36px;
  padding: .32rem .63rem;
  border: 1px solid #bdcce3;
  border-radius: 5px;
  background: #f7faff;
  color: #123d76;
  font-size: .84rem;
  font-weight: 650;
  line-height: 1.35;
  text-decoration: none;
}
.evidence-actions a:hover { background: #e8f0fc; border-color: #547fb7; text-decoration: underline; }
.evidence-actions a:focus-visible { outline: 2px solid #123d76; outline-offset: 3px; }
.profile-intro .profile-links a { text-decoration: underline; text-underline-offset: .18em; font-weight: 600; }

.research-group { padding-top: 1.15rem; }
.research-group h3 { font-size: 1.26rem; margin: 0 0 .4rem; }
.manuscript-entry { padding: 1rem 0; border-top: 1px solid var(--line); }
.manuscript-entry h4, .experiment-entry h4 { margin: 0 0 .28rem; font-size: 1.05rem; line-height: 1.4; font-weight: 700; }
.manuscript-entry p, .experiment-entry p { max-width: 78ch; margin: .28rem 0 .55rem; }
.manuscript-entry .entry-context { color: var(--muted); font-size: .86rem; }

.project-evidence-image { margin: 1.2rem 0; }
.project-evidence-image img { display: block; max-width: 100%; height: auto; border: 1px solid var(--line); border-radius: 5px; }
.project-evidence-image figcaption { color: var(--muted); font-size: .85rem; margin-top: .3rem; }
.detail-intro > .evidence-actions { margin-block: 1rem; }
#reelstudio small { display: inline-block; color: var(--muted); font-size: .62em; font-weight: 500; }
.selected-award-list { margin: .7rem 0 1.2rem; padding-left: 1.4rem; }
.selected-award-list li { padding: .28rem 0; }
#manuscripts, #experiments, #reelstudio, #record, #certifications, #path, #experience, #ip { scroll-margin-top: 4rem; }

@media (max-width: 768px) {
  #manuscripts, #experiments, #reelstudio, #record, #certifications, #path, #experience, #ip { scroll-margin-top: 7.25rem; }
}
@media (max-width: 620px) {
}


.quiet-page {
  width: min(960px, calc(100% - 48px));
  margin-inline: auto;
}
.quiet-page-intro { padding: 2.35rem 0 1.5rem; }
.quiet-page-intro h1 { margin: 0 0 .35rem; font-size: clamp(2.2rem, 5vw, 3.3rem); line-height: 1.08; }
.quiet-page-intro p { margin: 0; color: var(--muted); }
.quiet-page .profile-intro { padding-block: clamp(1.65rem, 4vw, 2.7rem); }
.quiet-page .profile-intro { grid-template-columns: minmax(0, 1fr) 126px; }
.quiet-page .profile-copy h1 { font-size: clamp(2.2rem, 5vw, 3.4rem); }
.quiet-award {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: .5rem 1.25rem;
  margin-bottom: 1.85rem;
  padding-block: .75rem;
  border-top: 1px solid var(--line);
}
.quiet-award h2 { margin: 0; font-size: 1.05rem; line-height: 1.4; }
.quiet-award p { margin: .18rem 0 0; color: var(--muted); font-size: .86rem; }
.quiet-actions { display: flex; flex-wrap: wrap; gap: .4rem 1rem; align-items: baseline; }
.quiet-actions a, .quiet-section-nav a { color: #10427f; font-weight: 600; font-size: .9rem; text-decoration: underline; text-underline-offset: .2em; }
.quiet-primary {
  display: inline-flex;
  align-items: center;
  gap: .4rem;
  min-height: 40px;
  padding: .45rem .8rem;
  border-radius: 5px;
  background: #143f78;
  color: #fff;
  font-weight: 650;
  font-size: .88rem;
}
.quiet-primary:hover { background: #0e3060; color: #fff; }
.quiet-workbench-notes summary, .quiet-case-steps summary { cursor: pointer; color: var(--ink); font-weight: 650; }
.quiet-project-list { border-top: 1px solid var(--line); }
.quiet-project {
  display: grid;
  grid-template-columns: 142px minmax(0, 1fr);
  gap: 1.15rem;
  align-items: start;
  padding-block: 1rem;
  border-bottom: 1px solid var(--line);
  scroll-margin-top: 4rem;
}
.quiet-project figure { margin: 0; }
.quiet-project figure a { display: block; }
.quiet-project img {
  display: block;
  width: 100%;
  height: 93px;
  object-fit: contain;
  background: #f5f7fa;
  border: 1px solid var(--line);
  border-radius: 5px;
}
.quiet-project h3 { margin: 0 0 .25rem; font-size: 1.15rem; font-weight: 750; line-height: 1.25; }
.quiet-project p { max-width: 66ch; margin: .25rem 0 .38rem; }
.quiet-other-project { padding-block: 1.25rem; }
.quiet-other-project h2 { margin: 0; font-size: 1.15rem; }
.quiet-other-project p { margin: .3rem 0; }
.quiet-workbench-notes { padding: .9rem 0; border-top: 1px solid var(--line); }
.quiet-workbench-notes > .work-grid { margin-top: 1rem; }

.xunpu-page.quiet-page .studio-overview {
  grid-template-columns: minmax(0, 1fr) 110px 146px;
  grid-template-areas: 'intro qr image';
  align-items: center;
  gap: 1.2rem 2rem;
  padding-block: clamp(1.4rem, 4vw, 2.4rem);
}
.xunpu-page.quiet-page .studio-overview-copy { grid-area: intro; }
.xunpu-page.quiet-page .studio-overview h1 { font-size: clamp(2.1rem, 5vw, 3.4rem); }
.xunpu-page.quiet-page .studio-overview-copy p { margin: .6rem 0 .9rem; }
.xunpu-page.quiet-page .studio-experience {
  grid-area: qr;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: .35rem;
  border: 0;
  margin: 0;
  padding: 0;
}
.xunpu-page.quiet-page .studio-experience img { margin: 0; width: 100px; border: 1px solid var(--line); border-radius: 5px; }
.xunpu-page.quiet-page .studio-experience h2 { margin: 0; font-size: .82rem; font-weight: 500; color: var(--muted); }
.xunpu-page.quiet-page .studio-home-preview { grid-area: image; }
.xunpu-page.quiet-page .studio-home-preview img { width: 146px; border-radius: 9px; }
.xunpu-page.quiet-page .studio-home-preview figcaption { font-size: .8rem; }
.quiet-section-nav {
  display: flex;
  flex-wrap: wrap;
  gap: .35rem 1rem;
  padding-block: .65rem;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.xunpu-page.quiet-page .editorial-section { padding-block: 1.8rem; }
.xunpu-page.quiet-page .editorial-section-heading { margin-bottom: .85rem; }
.xunpu-page.quiet-page .editorial-section-heading h2 { font-size: clamp(1.4rem, 3vw, 1.85rem); line-height: 1.22; }
.xunpu-page.quiet-page .case-tabs { margin-bottom: .9rem; }
.xunpu-page.quiet-page .case-tabs button { padding: .5rem .85rem; }
.xunpu-page.quiet-page .case-tabs button:first-child { padding-left: 0; }
.xunpu-page.quiet-page .case-content { display: grid; grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr); gap: 1.5rem; align-items: start; }
.xunpu-page.quiet-page .case-content > figure { margin: 0; }
.quiet-case-steps { margin: .65rem 0; }
.quiet-case-steps > dl { margin: .5rem 0; }
.xunpu-page.quiet-page .recording-layout { display: grid; grid-template-columns: minmax(0, 310px) minmax(0, 1fr); align-items: start; gap: 1.6rem; }
.xunpu-page.quiet-page .recording-layout video { display: block; width: auto; max-width: 100%; max-height: min(58vh, 520px); object-fit: contain; }
.xunpu-page.quiet-page .module-matrix-wrap { max-width: 100%; overflow-x: auto; }
.xunpu-page.quiet-page .module-matrix { min-width: 580px; }
.xunpu-page.quiet-page .research-boundary { display: grid; gap: .6rem; }
.xunpu-page.quiet-page .research-boundary > div { display: grid; gap: .55rem; }
.xunpu-page.quiet-page .research-boundary a { display: flex; flex-wrap: wrap; gap: .2rem .65rem; }

@media (max-width: 768px) {
  .quiet-project { scroll-margin-top: 7.25rem; }
}
@media (max-width: 620px) {
  .quiet-page { width: calc(100% - 36px); }
  .quiet-page .profile-intro { grid-template-columns: minmax(0, 1fr); gap: .8rem; }
  .quiet-page .profile-portrait { grid-row: 1; width: 76px; }
  .quiet-project { grid-template-columns: 72px minmax(0, 1fr); gap: .72rem; }
  .quiet-project img { height: 61px; }
  .quiet-project h3 { font-size: 1.02rem; }
  .quiet-project p { font-size: .92rem; }
  .quiet-actions { gap: .26rem .72rem; }
  .quiet-actions a { font-size: .84rem; }
  .xunpu-page.quiet-page .studio-overview { grid-template-columns: repeat(2, minmax(0, 1fr)); grid-template-areas: 'intro intro' 'qr image'; gap: .9rem; }
  .xunpu-page.quiet-page .studio-home-preview img { width: 108px; }
  .xunpu-page.quiet-page .studio-experience, .xunpu-page.quiet-page .studio-home-preview { justify-self: center; }
  .xunpu-page.quiet-page .case-content { grid-template-columns: 1fr; gap: .85rem; }
  .xunpu-page.quiet-page .studio-experience img { width: 112px; }
  .xunpu-page.quiet-page .recording-layout { grid-template-columns: 1fr; gap: .8rem; }
}

.experiment-heading {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: .25rem 1rem;
  padding-bottom: .45rem;
}
.experiment-heading h3 { margin: 0; }
.experiment-heading > span {
  color: #264764;
  background: #edf3f8;
  border-radius: 4px;
  padding: .18rem .55rem;
  font-size: .82rem;
  font-weight: 650;
}
.experiment-list { list-style: none; padding: 0; margin: 0; }
.experiment-list > li {
  display: grid;
  grid-template-columns: 2.1rem minmax(0, 4fr) minmax(0, 6fr);
  gap: .8rem 1rem;
  align-items: start;
  border-top: 1px solid var(--line);
  padding: 1.35rem 0;
}
.experiment-number {
  align-self: start;
  color: #264764;
  background: #edf3f8;
  border-radius: 4px;
  text-align: center;
  padding-block: .18rem;
  font-size: .83rem;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
}
.experiment-list h4 {
  margin: 0;
  color: var(--ink);
  font-size: 1.12rem;
  font-weight: 750;
  line-height: 1.35;
}
.experiment-list p { max-width: 72ch; margin: .28rem 0 .4rem; }

.experiment-copy .quiet-actions { margin-top: .75rem; }
.experiment-case-link {
  padding: .25rem .52rem;
  border: 1px solid #b7cadc;
  border-radius: 4px;
  background: #edf3f8;
}
.experiment-snapshot a:hover img { border-color: #5580a3; }
.experiment-snapshot { margin: 0; }
.experiment-snapshot a { display: block; }
.experiment-snapshot img {
  display: block;
  width: 100%;
  height: auto;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 5px;
}
.experiment-snapshot figcaption { margin-top: .4rem; color: var(--muted); font-size: .82rem; line-height: 1.4; }
.experiment-detail-figure { max-width: 850px; margin: .9rem 0 1.25rem; }

.study-detail { margin-top: 1.3rem; }
.study-detail h3, .study-detail h4 { margin: 1.35rem 0 .45rem; line-height: 1.3; }
.study-detail p { max-width: 76ch; }
.study-steps { max-width: 78ch; padding-inline-start: 1.45rem; }
.study-steps li { margin: .3rem 0; }
.case-figures {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem 1.4rem;
  margin: 1rem 0 1.35rem;
  align-items: start;
}
.case-figures figure, .case-figure { min-width: 0; margin: 0; }
.study-detail > .case-figure + .case-figure { margin-top: 1rem; }
.case-figure a, .case-figures figure a { display: block; }
.case-figure img, .case-figures img {
  display: block;
  width: 100%;
  height: auto;
  border: 1px solid var(--line);
  border-radius: 5px;
  background: #fff;
}
.case-figure figcaption, .case-figures figcaption {
  margin-top: .36rem;
  color: var(--muted);
  font-size: .86rem;
  line-height: 1.45;
}
.graphomr-study { grid-column: 1 / -1; }
#graphomr, #mgsa, #mgsa-evaluation, #folk-audio, #audio, #semantic, #other-projects { scroll-margin-top: 4rem; }

@media (max-width: 768px) {
  #graphomr, #mgsa, #mgsa-evaluation, #folk-audio, #audio, #semantic, #other-projects { scroll-margin-top: 7.25rem; }
  .experiment-list > li { grid-template-columns: 1.85rem minmax(0, 1fr); gap: .55rem .65rem; }
  .experiment-snapshot { grid-column: 1 / -1; }
}
@media (max-width: 620px) {
  .case-figures { grid-template-columns: minmax(0, 1fr); }
}

.form-boundary-jump { margin: .1rem 0 1rem; }
.form-boundary-table { margin: 1rem 0; max-width: 680px; }
.form-boundary-table th, .form-boundary-table td { padding: .55rem .6rem; border-bottom: 1px solid var(--line); text-align: left; }
.form-boundary-table table { width: 100%; border-collapse: collapse; font-size: .92rem; }
.harmony-research-example { margin: 1.8rem 0; }
.harmony-research-example .case-figure { max-width: 700px; }
.harmony-research-example .quiet-actions { margin-top: .5rem; }
