@font-face {
  font-family: "Space Grotesk";
  src: url("/fonts/my-body-space-grotesk-400.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Space Grotesk";
  src: url("/fonts/my-body-space-grotesk-700.woff2") format("woff2");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Source Han Sans SC";
  src: url("/fonts/my-body-source-han-sans-sc-400.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

:root {
  --font-n27: "Space Grotesk", "Source Han Sans SC", "PingFang SC",
    "Microsoft YaHei", sans-serif;
}

body {
  letter-spacing: 0;
}

/* The restored profile stays readable before and after expansion. */
.pw-profile .rich-text {
  color: #3d3d3b;
  text-transform: none;
}
.pw-profile .rich-text p {
  filter: none !important;
}
.pw-profile a {
  text-underline-offset: 3px;
}
.dark .pw-profile .rich-text {
  color: #d8d7d2;
}
[data-grid-item-id="about"]:has(.pw-profile button[aria-expanded="true"]) {
  z-index: 125 !important;
}

/* 关闭法文切换入口（按钮）；T 键仍会点到按钮，但 setIsFrench 已改为空操作 */
[aria-label="Switch language"] {
  display: none !important;
}

/* Hide inactive project headers while preserving geometry for the panel animations. */
[data-grid-item-id="project-details"]:has([aria-disabled="true"]),
[data-grid-item-id="project-details-images"]:has([aria-disabled="true"]) {
  visibility: hidden;
  pointer-events: none;
}

/* Projects with a dedicated experience show one entrance, without trailing images. */
#project-gallery-scroll:has(> :is(.pw-film-card, .pw-stills-card, .pw-scenes-card, .pw-story-card)) {
  padding-bottom: 0 !important;
}
#project-gallery-scroll:has(> :is(.pw-film-card, .pw-stills-card, .pw-scenes-card, .pw-story-card)) > .flex.flex-col.gap-2 {
  display: none !important;
}
#project-gallery-scroll > :is(.pw-film-card, .pw-stills-card, .pw-scenes-card, .pw-story-card) {
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-height: 100%;
  box-sizing: border-box;
  margin: 0;
}
#project-gallery-scroll :is(.pw-film-copy, .pw-scenes-copy, .pw-stills-card-text) {
  box-sizing: border-box;
  width: 100%;
}
