/* Shared proportions for the five published case studies. */
.project-page:is([data-project="myco"],[data-project="whisper-grove"],[data-project="xiaoxinsi"],[data-project="ultraman"],[data-project="1984"]),
body[data-project="myco"] {
  --case-image-large:22px;
  --case-image-small:14px;
}
body[data-project="myco"] .portfolio-dock-inner {
  padding:7px 10px;
  box-shadow:0 10px 30px #2530231f,0 2px 6px #2530230a,inset 0 1px 0 #fff;
}
@media(hover:hover) and (pointer:fine) {
  body[data-project="myco"] .portfolio-dock-link:hover { box-shadow:none; }
}
.project-page :is(.whisper-back-top,.xx-back-top,.be-back-top) {
  z-index:80;
  width:56px;
  height:56px;
  padding:0;
  right:28px;
  bottom:28px;
  border:1px solid #ffffffd9;
  color:#515650;
  background:#f1f2efcf;
  backdrop-filter:blur(18px);
  box-shadow:inset 0 0 0 1px #d9ddda80,0 5px 20px #18221314;
  transform:translateY(8px);
  transition:opacity .25s,transform .25s,visibility .25s,background .2s;
  cursor:pointer;
}
.project-page :is(.whisper-back-top,.xx-back-top,.be-back-top).is-visible { transform:none; }
.project-page :is(.whisper-back-top,.xx-back-top,.be-back-top):hover { background:#fff; }
.project-page :is(.whisper-back-top,.xx-back-top,.be-back-top):focus-visible { outline:2px solid #3e756b; outline-offset:4px; }
.project-page :is(.whisper-back-top,.xx-back-top,.be-back-top) svg { width:22px; height:22px; stroke-width:1.6; }

/* Keep full-width art and smaller grouped images on two radius scales. */
.project-page .xx-section>.xx-artwork img,
.project-page .be-track img,
.project-page .be-gallery figure:is(:first-child,:nth-child(3)) img,
body[data-project="myco"] :is(.hero-art,.feature-image,.passport-main-image) { border-radius:var(--case-image-large); }
.project-page .xx-grid .xx-artwork img,
.project-page .be-gallery img,
.project-page .whisper-editorial :is(.whisper-scene-pair figure,.whisper-storyboard-grid figure),
body[data-project="myco"] :is(.collection-photo,.support-material-image,.passport-detail-image) { border-radius:var(--case-image-small); }
@media(max-width:760px) {
  .project-page:is([data-project="myco"],[data-project="whisper-grove"],[data-project="xiaoxinsi"],[data-project="ultraman"],[data-project="1984"]),
  body[data-project="myco"] { --case-image-large:14px; --case-image-small:12px; }
  .project-page :is(.whisper-back-top,.xx-back-top,.be-back-top) {
    width:46px;
    height:46px;
    right:16px;
    bottom:calc(104px + env(safe-area-inset-bottom,0px));
  }
  .project-page :is(.xx-hero,.be-hero,.whisper-hero) h1,
  body[data-project="myco"] .hero h1 { font-size:clamp(25px,6.3vw,36px); line-height:1.45; }
  .project-page :is(.xx-hero,.be-hero) > p,
  .project-page .whisper-hero-copy > p,
  body[data-project="myco"] .hero-intro { font-size:14px; line-height:1.85; }
  .project-page :is(.xx-hero-links,.be-links,.whisper-hero-links) > a,
  body[data-project="myco"] .hero .hero-actions > :is(a,button) {
    font-size:12px;
    line-height:1.5;
    padding:9px 14px;
    gap:10px;
    min-height:44px;
  }
}
@media(prefers-reduced-motion:reduce) {
  .project-page :is(.whisper-back-top,.xx-back-top,.be-back-top) { transition:none; }
}
