body { font-family: HelveticaNeueRegular, "ShouYuSerif", serif; }
.hero__text1, .textWrapper, .introLoader__baseline, .aboutSectionBttn__title {
  font-family: PSTimes, "ShouYuSerif", serif;
}
/* The original scene already draws these labels. Keep their DOM boxes for links and measurement. */
.aboutPage:not(.aboutPage--domText) .aboutSectionBttn .webgl-title, .aboutPage:not(.aboutPage--domText) .aboutSectionBttn .webgl-desc { opacity: 0 !important; }
.aboutPage.aboutPage--domText .aboutSectionBttn__title, .aboutPage.aboutPage--domText .aboutSectionBttn__desc .desc { visibility: visible; }
.introLoader__baseline { font-size: clamp(28px, 2.65vw, 40px); }
.introLoader__scrollDown { font-family: HelveticaNeueRegular, "ShouYuSerif", serif; }
.footer__email, .footer__newsletterWrapper, .footer__newsletterOpen { display: none !important; }
.footer__address { top: 50% !important; bottom: auto !important; width: 90vw; transform: translate(-50%, -50%); }
.footer__address p { font-family: PSTimes, "ShouYuSerif", serif !important; font-size: clamp(32px, 4vw, 58px) !important; line-height: 1.3 !important; }
.mediaBlock__legend, .mediaBlock__legend p { font-family: HelveticaNeueRegular, "ShouYuSerif", serif; line-height: 1.75; white-space: pre-line; }
.projectBlock { position: relative; }
.projectEntry { position: absolute; inset: 0; z-index: 1; cursor: pointer; }
.projectEntry:focus-visible { outline: 2px solid currentColor; outline-offset: -8px; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
.textBlock { overflow-wrap: anywhere; }
.static-preview { margin: 0 auto; padding: 8vh 8vw; max-width: 1000px; font-family: PSTimes, "ShouYuSerif", serif; line-height: 1.8; }
.static-preview h1 { font-size: clamp(38px, 7vw, 80px); line-height: 1.2; }
.static-preview a { color: inherit; text-decoration: underline; }

@media (max-width: 767px) {
  .introLoader__baseline { font-size: 32px; line-height: 1.35; }
  .mediaBlock__legend, .mediaBlock__legend p { font-size: 18px; }
}

@media (prefers-reduced-motion: reduce) {
  .introLoader__baseline, .mediaBlock__legend, .textWrapper { animation: none !important; transition: none !important; }
}

/* The second screen uses one native WebGL title: real newlines preserve its glyph layout. */
.homePage .hero#home-intro {
  height: auto;
  min-height: 100svh;
  margin: 0;
  padding: 10svh 0;
  box-sizing: border-box;
  justify-content: center;
}
.homePage .hero#home-intro .wrapper { align-items: center; }
.homePage .hero#home-intro .hero__text1 {
  grid-column: 2 / 12;
  width: 100%;
  max-width: 920px;
  justify-self: center;
  margin: 0;
  font-size: clamp(26px, 2.23vw, 36px);
  line-height: 1.6;
  text-align: left;
  white-space: pre-line;
}
.homePage .hero#home-intro .hero__homeScrollIndication { display: none; }
@media (max-width: 767px) {
  .homePage .hero#home-intro .hero__text1 { grid-column: 1 / 13; font-size: 22px; line-height: 1.65; }
}
@media (max-width: 360px) {
  .homePage .hero#home-intro .hero__text1 { font-size: 20px; }
}
@media (max-height: 500px) and (min-width: 768px) {
  .homePage .hero#home-intro { padding: 8svh 0; }
  .homePage .hero#home-intro .hero__text1 { font-size: 22px; line-height: 1.45; }
}

.aboutPage__nav { gap: clamp(14px, 2.5vh, 24px); margin-top: 0 !important; }
.aboutPage .aboutPage__nav .aboutSectionBttn { font-size: clamp(28px, 2.45vw, 44px); line-height: 1.3; }
.aboutPage .aboutPage__bottomNav .ctaButton .text {
  font-family: PSTimes, "ShouYuSerif", serif !important;
  font-size: clamp(18px, 1.25vw, 22px) !important;
  font-weight: 400;
  line-height: 1.45;
}
@media (max-height: 500px) {
  .aboutPage__nav { gap: 12px; }
  .aboutPage .aboutPage__nav .aboutSectionBttn { font-size: 24px; line-height: 1.25; }
  .aboutPage .aboutPage__bottomNav .ctaButton .text { font-size: 18px !important; }
}

/* Keep the vision in a wide, readable column with room between lines. */
.homePage .textBlock[id="愿景"] {
  min-height: 100svh;
  padding-top: clamp(72px, 10svh, 132px);
  padding-bottom: clamp(72px, 10svh, 132px);
  align-content: center;
  row-gap: clamp(28px, 4svh, 44px);
}
.homePage .textBlock[id="愿景"] .textBlock__text--1,
.homePage .textBlock[id="愿景"] .textBlock__text--2 {
  grid-column: 2 / 12;
  width: 100%;
  max-width: 1120px;
  justify-self: center;
}
.homePage .textBlock[id="愿景"] .textBlock__text--1 {
  font-size: clamp(34px, 2.9vw, 52px);
  line-height: 1.35;
}
.homePage .textBlock[id="愿景"] .textBlock__text--2 {
  font-size: clamp(26px, 1.95vw, 36px);
  line-height: 1.72;
}
.homePage .textBlock[id="愿景"] .textBlock__text--2,
.homePage .textBlock[id="愿景"] .textBlock__text--2 div { text-align: left !important; }
@media (max-width: 767px) {
  .homePage .textBlock[id="愿景"] { padding: 8svh 32px; row-gap: 28px; }
  .homePage .textBlock[id="愿景"] .textBlock__text--1,
  .homePage .textBlock[id="愿景"] .textBlock__text--2 { grid-column: 1 / 13; }
  .homePage .textBlock[id="愿景"] .textBlock__text--1 { font-size: 30px; }
  .homePage .textBlock[id="愿景"] .textBlock__text--2 { font-size: 21px; line-height: 1.85; }
}
@media (max-width: 360px) {
  .homePage .textBlock[id="愿景"] { padding-left: 24px; padding-right: 24px; }
  .homePage .textBlock[id="愿景"] .textBlock__text--2 { font-size: 19px; }
}
@media (max-height: 500px) {
  .homePage .textBlock[id="愿景"] { min-height: 100svh; padding-top: 56px; padding-bottom: 56px; }
}

/* Native media planes follow these DOM boxes, retaining their reveal and hover effects. */
.homePage .page__wrapper {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: flex-start;
  column-gap: 28px;
}
.homePage .page__wrapper > :not(.projectBlock) { flex-basis: 100%; width: 100%; }
.homePage .page__wrapper > .projectBlock {
  flex: 0 1 calc((100% - 120px) / 3);
  max-width: 360px;
  margin: 0 0 36px !important;
  gap: 16px;
}
.homePage .projectCard__title { font-family: PSTimes, "ShouYuSerif", serif; font-size: 25px; font-weight: 400; line-height: 1.35; text-align: center; }
.homePage .projectBlock .mediaBlock__grid { padding: 0; grid-template-columns: 1fr; gap: 18px; }
.homePage .projectBlock .mediaBlock__image.image { grid-column: 1; width: 100%; max-width: 180px; height: auto; aspect-ratio: 1; object-fit: contain; margin: 0; justify-self: center; }
.homePage .projectBlock .mediaBlock__image.text {
  grid-column: 1;
  width: 100%;
  margin: 0;
  font-size: 18px;
  line-height: 1.7;
}
.homePage .projectBlock .text__mobileLink { display: none !important; }
.homePage .textBlock[id="核心创意"], .homePage .textBlock:is([id="其他作品"], [id="心创组内部使用"]) {
  min-height: 0 !important;
  padding-top: 80px;
  padding-bottom: 32px;
  row-gap: 14px;
}
.homePage .textBlock[id="核心创意"] .textBlock__text,
.homePage .textBlock:is([id="其他作品"], [id="心创组内部使用"]) .textBlock__text { grid-column: 2 / 12; }
.homePage .textBlock[id="核心创意"] .textBlock__text--1,
.homePage .textBlock:is([id="其他作品"], [id="心创组内部使用"]) .textBlock__text--1 { font-size: 34px; line-height: 1.35; }
.homePage .textBlock[id="核心创意"] .textBlock__text--2,
.homePage .textBlock:is([id="其他作品"], [id="心创组内部使用"]) .textBlock__text--2 { font-size: 18px; line-height: 1.75; }
@media (min-width: 768px) and (max-width: 1099px) {
  .homePage .page__wrapper > .projectBlock { flex-basis: calc((100% - 96px) / 2); max-width: 420px; }
}
@media (max-width: 767px) {
  .homePage .page__wrapper { column-gap: 0; }
  .homePage .page__wrapper > .projectBlock { flex: 0 0 calc(100% - 64px); max-width: none; margin-bottom: 28px !important; gap: 12px; }
  .homePage .projectCard__title { font-size: 23px; }
  .homePage .projectBlock .mediaBlock__grid { grid-template-columns: 104px minmax(0, 1fr); gap: 16px; }
  .homePage .projectBlock .mediaBlock__image.image { grid-column: 1; grid-row: 1; height: auto; width: 104px; max-width: none; aspect-ratio: 1; align-self: start; }
  .homePage .projectBlock .mediaBlock__image.text { grid-column: 2; grid-row: 1; align-self: start; font-size: 16px; line-height: 1.7; }
  .homePage .textBlock[id="核心创意"], .homePage .textBlock:is([id="其他作品"], [id="心创组内部使用"]) { padding-top: 48px; padding-bottom: 24px; }
  .homePage .textBlock[id="核心创意"] .textBlock__text,
  .homePage .textBlock:is([id="其他作品"], [id="心创组内部使用"]) .textBlock__text { grid-column: 1 / 13; }
  .homePage .textBlock[id="核心创意"] .textBlock__text--1,
  .homePage .textBlock:is([id="其他作品"], [id="心创组内部使用"]) .textBlock__text--1 { font-size: 30px; }
  .homePage .textBlock[id="核心创意"] .textBlock__text--2,
  .homePage .textBlock:is([id="其他作品"], [id="心创组内部使用"]) .textBlock__text--2 { font-size: 17px; }
}

.projectsPage .projectListItem .name { font-size: clamp(24px, 2.2vw, 32px); line-height: 1.5; }
.projectsPage .projectListItem .type { font-size: 16px; line-height: 1.5; }
.projectsPage .listingProjects .projectListItem { padding-top: 8px; padding-bottom: 8px; }
.projectsPage .listingProjects__projectsItems { gap: 8px; }
.projectsPage .listing__content { padding-top: 12vh; }
.projectsPage .listing__content--ordered { top: 12vh; }
@media (max-width: 767px) {
  .projectsPage .projectListItem .name { font-size: 25px; }
  .projectsPage .listingProjects__projectsItems { gap: 12px; }
}

/* Credits stay visible in the compact cards and the full works index. */
.projectsPage { position: relative; z-index: 1; }
.homePage .projectCard__designers { margin: 0; font-family: PSTimes, "ShouYuSerif", serif; font-size: 16px; line-height: 1.65; color: #343434; }
.projectsPage .projectListItem__designers { font-family: PSTimes, "ShouYuSerif", serif; font-size: 15px; line-height: 1.65; color: #343434; grid-column: 8 / 13; grid-row: 2; margin: 0; }
.projectsPage .projectListItem a.name {
  grid-row: 1;
  line-height: 1.5;
  transition: color 200ms ease, transform 200ms ease;
}
.projectsPage .projectListItem a.name::after { content: none; }
@media (hover: hover) and (pointer: fine) {
  .projectsPage .projectListItem:hover .name {
    color: #294c3a;
    transform: translateX(3px);
  }
}
.projectsPage .projectListItem .name:focus-visible {
  color: #294c3a;
  outline: 1px solid currentColor;
  outline-offset: 5px;
}
@media (prefers-reduced-motion: reduce) {
  .projectsPage .projectListItem a.name { transition: none; }
  .projectsPage .projectListItem:hover .name { transform: none; }
}
.homePage .textBlock[id="边界"] .textBlock__text--1,
.homePage .textBlock[id="心创组第一届成员"] .textBlock__text--1 { grid-column: 2 / 12; font-size: clamp(38px, 2.9vw, 52px); line-height: 1.35; }
.homePage .textBlock[id="心创组第一届成员"] { padding-top: 100px; padding-bottom: 120px; row-gap: 56px; }
.homePage .textBlock[id="心创组第一届成员"] .textBlock__text--2 { grid-column: 2 / 12; width: 100%; max-width: 1120px; justify-self: center; font-size: 30px; line-height: 1.6; }
.homePage .memberGrid { display: grid !important; grid-template-columns: repeat(4,minmax(0,1fr)); column-gap: 64px; row-gap: 46px; width: 100%; }
.homePage .memberName { display: block; white-space: nowrap; text-align: center; }
@media (max-width: 1024px) {
  .projectsPage .projectListItem__designers { grid-column: 1 / -1; }
}
@media (max-width: 767px) {
  .homePage .projectCard__designers { font-size: 14px; }
  .projectsPage .projectListItem__designers { font-size: 14px; grid-column: 1 / -1; }
  .homePage .textBlock[id="边界"] .textBlock__text--1,
  .homePage .textBlock[id="心创组第一届成员"] .textBlock__text--1 { grid-column: 1 / 13; font-size: 32px; }
  .homePage .textBlock[id="心创组第一届成员"] { padding: 72px 32px 88px; row-gap: 40px; }
  .homePage .textBlock[id="心创组第一届成员"] .textBlock__text--2 { grid-column: 1 / 13; font-size: 24px; }
  .homePage .memberGrid { grid-template-columns: repeat(2,minmax(0,1fr)); column-gap: 30px; row-gap: 28px; }
}
@media (max-width: 360px) {
  .homePage .textBlock[id="心创组第一届成员"] { padding-left: 24px; padding-right: 24px; }
  .homePage .textBlock[id="心创组第一届成员"] .textBlock__text--1 { font-size: 28px; }
  .homePage .textBlock[id="心创组第一届成员"] .textBlock__text--2 { font-size: 22px; }
}

/* Square source, DOM geometry and GPU plane use the same dimensions at every size. */
.projectsPage .listingProjects__previewItems img { aspect-ratio: 1; object-fit: contain; }

/* Keep the artwork opaque while the pale background fades in DOM previews. */
img[src*="/shouyulove/"][src*="-square."] {
  filter: url("#syl-project-icon-alpha");
}
@media (max-width: 360px) {
  .homePage .page__wrapper > .projectBlock { flex-basis: calc(100% - 48px); }
  .homePage .projectBlock .mediaBlock__grid { grid-template-columns: 88px minmax(0, 1fr); gap: 14px; }
  .homePage .projectBlock .mediaBlock__image.image { width: 88px; }
}

/* Give desktop boundary paragraphs the same generous measure as the vision. */
@media (min-width: 1025px) {
  .homePage .textBlock[id="边界"] .textBlock__text--2 {
    grid-column: 2 / 12;
    width: 100%;
    max-width: 1120px;
    justify-self: center;
  }
}

/* Keep the shared cursor motion without mouse-following instruction text. */
.cursor .cursor__text { display: none !important; }

/* Keep the works shortcut above the existing sound control and phone safe areas. */
#syl-home-shortcut { display: none; }
#syl-home-shortcut[hidden], #syl-shortcut-guide[hidden] { display: none !important; }
@media (max-width:640px), (max-width:960px) and (max-height:640px) and (pointer:coarse) {
  #syl-home-shortcut {
    display: block; position: fixed; z-index: 100002;
    right: max(20px, env(safe-area-inset-right));
    bottom: calc(88px + env(safe-area-inset-bottom));
    font-family: PSTimes, "ShouYuSerif", serif; color: #294c3a;
  }
  #syl-home-shortcut button { cursor: pointer; -webkit-tap-highlight-color: transparent; }
  #syl-home-shortcut-button {
    display: flex; align-items: center; justify-content: center; gap: 8px;
    min-height: 44px; padding: 10px 16px; border: 0; border-radius: 999px;
    background: #294c3a; color: #fff; font: inherit; font-size: 16px; line-height: 1.5;
    touch-action: manipulation;
  }
  #syl-home-shortcut svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; flex: none; }
  #syl-home-shortcut-button:active { background: #1d392b; }
  #syl-home-shortcut-button:disabled { opacity: .65; cursor: wait; }
  #syl-home-shortcut button:focus-visible { outline: 2px solid #294c3a; outline-offset: 4px; }
  #syl-shortcut-guide {
    position: absolute; bottom: calc(100% + 12px); right: 0;
    width: min(300px, calc(100vw - 40px)); max-height: calc(100svh - 170px);
    box-sizing: border-box; overflow: auto; padding: 22px;
    border: 1px solid #9daaa2; border-radius: 12px; background: #e8e8e8;
  }
  #syl-shortcut-guide h2 { margin: 0 30px 12px 0; font: inherit; font-size: 22px; line-height: 1.4; }
  #syl-shortcut-guide p { margin: 0; font-size: 16px; line-height: 1.75; text-wrap: pretty; }
  #syl-shortcut-guide .syl-shortcut-close {
    position: absolute; top: 8px; right: 8px; width: 44px; height: 44px;
    display: grid; place-content: center; border: 0; border-radius: 50%;
    background: transparent; color: inherit; touch-action: manipulation;
  }
  #syl-shortcut-guide ::selection { background: #294c3a; color: #fff; }
}
