/* A compact, Chinese-only corner index, shared by every portfolio page. */
.portfolio-header {
  --nav-accent:#198e86;
  position:fixed;
  top:24px;
  right:max(clamp(20px,3vw,56px), calc((100vw - 1840px)/2));
  z-index:50;
  width:max-content;
  color:#1a1a1a;
  font-family:"Portfolio Satoshi",Arial,"PingFang SC","Microsoft YaHei",sans-serif;
  font-weight:400;
  line-height:1.5;
  isolation:isolate;
  transition:opacity .4s ease,visibility .4s;
}
/* The paper backing belongs only to the small menu, never the full top edge. */
.portfolio-header::before {
  content:"";
  position:absolute;
  inset:-10px -12px;
  z-index:-1;
  pointer-events:none;
  background-color:var(--paper,#fafaf9);
  background-image:var(--paper-texture);
  background-size:var(--paper-grain-size,640px 640px);
  opacity:.94;
  mask-image:linear-gradient(90deg,transparent,#000 12px, #000 calc(100% - 12px),transparent);
}
.portfolio-nav {display:flex;flex-direction:column;align-items:stretch}
.portfolio-nav a {
  display:flex;
  align-items:center;
  gap:10px;
  min-height:32px;
  min-width:80px;
  padding:3px 0;
  font-size:16px;
  letter-spacing:.02em;
  white-space:nowrap;
  color:#1a1a1a;
  text-decoration:none;
  transition:color .25s ease;
}
.portfolio-nav-asterisk {
  display:block;
  flex:0 0 16px;
  width:16px;
  height:16px;
  color:var(--nav-accent);
  transition:transform .35s cubic-bezier(.22,1,.36,1);
}
.portfolio-nav-label {text-decoration-thickness:1px;text-underline-offset:5px}
.portfolio-nav a[aria-current="page"] .portfolio-nav-label {text-decoration-line:underline;text-decoration-color:var(--nav-accent)}
.portfolio-nav a:focus-visible {outline:1px solid var(--nav-accent);outline-offset:4px}
@media (hover:hover) {
  .portfolio-nav a:hover {color:var(--nav-accent)}
  .portfolio-nav a:hover .portfolio-nav-asterisk {transform:rotate(60deg)}
}
body.is-intro-playing .portfolio-header,
body.pr-intro-playing .portfolio-header {opacity:0;visibility:hidden;pointer-events:none}
/* Keep existing content clear of the new vertical footprint. */
body.is-contact-page #app-view {padding-top:68px}
.detail-topline {padding-right:118px}
#collection-site .stage-note {right:calc(var(--gutter) + 120px)}
@media (max-width:1000px) {
  .pr-topline {padding-right:112px}
}
@media (max-width:720px) {
  .portfolio-header {top:16px}
  .portfolio-nav a {min-height:36px;font-size:14px;gap:9px;min-width:74px}
  .portfolio-nav-asterisk {width:15px;height:15px;flex-basis:15px}
  .pa-shell,.pr-shell {padding-top:226px}
  .pr-topline {padding-right:0}
  body.is-contact-page #app-view {padding-top:166px}
  .detail-panel {margin-top:216px;min-height:calc(100svh - 216px)}
  .detail-topline {padding-right:0}
}
@media (max-width:640px) {
  #collection-site .stage-note {top:184px;left:var(--gutter);right:auto;text-align:left}
  #collection-site .chapter-nav {top:120px}
}
@media (prefers-reduced-motion:reduce) {
  .portfolio-header,.portfolio-nav a,.portfolio-nav-asterisk {transition:none}
}
