@import url("/mobile-polish.css?v=12");
@import url("/image-viewer.css?v=3");
@import url("/image-motion.css?v=5");
@import url("/partners.css?v=5");

@font-face{font-family:"Alibaba PuHuiTi";src:url("/fonts/alibaba-puhuiti-regular-site.woff2?v=20260906") format("woff2");font-style:normal;font-weight:400;font-display:swap}
@font-face{font-family:"Alibaba PuHuiTi";src:url("/fonts/alibaba-puhuiti-medium-site.woff2?v=20260906") format("woff2");font-style:normal;font-weight:500;font-display:swap}
@font-face{font-family:"Alibaba PuHuiTi";src:url("/fonts/alibaba-puhuiti-semibold-site.woff2?v=20260906") format("woff2");font-style:normal;font-weight:600;font-display:swap}
@font-face{font-family:"QianTu HouHei";src:url("/fonts/qiantu-houhei-site.woff2?v=20260906") format("woff2");font-style:normal;font-weight:800;font-display:swap}

:root {
  --ink: #101820;
  --white: #fff;
  --soft: #faf9f6;
  --line: rgba(16,24,32,.16);
  --muted: rgba(16,24,32,.68);
  --quiet: rgba(16,24,32,.62);
  --sans: "Alibaba PuHuiTi","PingFang SC","Microsoft YaHei",sans-serif;
  --display: "QianTu HouHei","Alibaba PuHuiTi",sans-serif;
  --pad: clamp(24px,6vw,112px);
  --series-title: clamp(32px,3.2vw,46px);
  --section-title: clamp(44px,4.6vw,68px);
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; color: var(--ink); background: var(--white); font-family: var(--sans); -webkit-font-smoothing: antialiased; }
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; }
:focus-visible { outline: 2px solid var(--ink); outline-offset: 4px; }
::selection { color: var(--white); background: var(--ink); }

/* The global navigation stays separate from the artwork directory. */
.world-header {
  position: fixed; z-index: 30; top: 14px; right: clamp(14px,2.5vw,36px); left: clamp(14px,2.5vw,36px);
  display: grid; min-height: 68px; grid-template-columns: 1fr auto 1fr; align-items: center;
  padding: 0 14px 0 18px; border: 1px solid rgba(255,255,255,.86); border-radius: 18px;
  background: rgba(255,255,255,.94); box-shadow: 0 12px 32px rgba(16,24,32,.07);
  -webkit-backdrop-filter: blur(18px); backdrop-filter: blur(18px);
}
.brand { display: flex; width: 200px; height: 56px; align-items: center; overflow: hidden; }
.brand img { width: 200px; object-fit: contain; }
.world-header nav { display: flex; gap: clamp(20px,2.2vw,34px); font-size: 14px; white-space: nowrap; }
.world-header nav a { padding: 24px 0; border-bottom: 1px solid transparent; }
.world-header nav a:hover, .world-header nav a[aria-current="page"] { border-color: var(--ink); }
.header-action { display: inline-flex; min-height: 46px; align-items: center; justify-content: center; justify-self: end; gap: 22px; padding: 0 17px; border: 1px solid var(--ink); border-radius: 12px; color: var(--white); background: var(--ink); font-size: 13px; }
.header-action:hover { color: var(--ink); background: var(--white); }

/* A directory, not a featured series pretending to be the whole world. */
.worlds-directory { max-width: 1600px; margin-inline: auto; padding: 144px var(--pad) 80px; }
.world-hero { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: end; padding-bottom: 48px; }
.world-hero h1, .region-heading h1 { margin: 0; font-family: var(--display); font-size: clamp(44px,5vw,72px); font-weight: 800; letter-spacing: -.025em; line-height: 1.15; }
.world-hero > p { max-width: 34em; margin: 0; color: var(--muted); font-size: 17px; line-height: 1.85; }
.category-index { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); column-gap: clamp(32px,5vw,76px); scroll-margin-top: 110px; }
.category-group { display: contents; }
.category-link { display: flex; grid-row: 1; min-width: 0; min-height: 76px; align-items: center; justify-content: space-between; gap: 18px; padding-top: 20px; border-top: 1px solid var(--line); }
.category-link strong { font-size: clamp(28px,2.6vw,38px); font-weight: 600; line-height: 1.3; letter-spacing: -.02em; }
.category-link svg { flex: 0 0 24px; transition: transform .25s ease; }
.category-group > p { grid-row: 2; min-width: 0; margin: 10px 0 24px; color: var(--muted); font-size: 16px; line-height: 1.75; }
/* The two squares define the shared image row. The full group portrait fits
   that same height, instead of adding invisible space above/below the squares. */
.category-preview { display: grid; grid-row: 3; align-self: stretch; width: 100%; min-width: 0; min-height: 0; align-items: center; background: transparent; }
.category-preview-2d { grid-template-columns: 1fr 1fr; gap: 16px; }
.category-preview-2d img { width: 100%; height: auto; aspect-ratio: 1; object-fit: contain; }
.category-preview-3d { position: relative; }
.category-preview-3d img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; object-position: left center; }
.category-series { display: flex; grid-row: 4; min-width: 0; align-self: start; flex-wrap: wrap; gap: 0 24px; margin-top: 18px; padding-top: 8px; border-top: 1px solid var(--line); }
.category-series a { display: inline-flex; min-height: 44px; align-items: center; font-size: 14px; text-decoration: underline; text-decoration-color: var(--line); text-underline-offset: 5px; }
.category-series a:hover { text-decoration-color: var(--ink); }

/* Category pages: page title → series directory → named series → artworks. */
.art-page { padding-top: 106px; }
.art-page > .page-breadcrumb { padding-inline: var(--pad); margin-block: 18px 0; }
.artwork-region { padding: 38px var(--pad) 72px; scroll-margin-top: 110px; }
.region-inner, .partners-inner { width: min(100%,1280px); margin-inline: auto; }
.region-heading { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: end; margin-bottom: 32px; }
.region-heading > p { max-width: 38em; margin: 0; color: var(--muted); font: 400 17px/1.85 var(--sans); }
/* Series navigation stays in document flow; only the global header follows the viewport. */
.region-nav { position: static; display: flex; align-items: center; gap: 24px; min-height: 64px; padding: 8px 0; border-block: 1px solid var(--line); background: var(--white); font-family: var(--sans); }
.region-name { flex: 0 0 auto; font-size: 14px; font-weight: 600; }
.region-links { display: flex; flex: 1; flex-wrap: wrap; gap: 0 24px; }
.region-links a, .region-switch { display: inline-flex; min-height: 44px; align-items: center; font-size: 14px; line-height: 1.5; border-bottom: 2px solid transparent; }
.region-links a[aria-current="location"] { border-color: var(--ink); font-weight: 600; }
.region-links a:hover { border-color: var(--line); }
.region-switch { flex-shrink: 0; color: var(--muted); text-decoration: underline; text-underline-offset: 5px; }
.region-switch:hover { color: var(--ink); }

/* Every series has a clear title and its own unbroken presentation area. */
.collection { display: grid; grid-template-columns: minmax(230px,.7fr) minmax(0,1.3fr); gap: clamp(32px,5vw,76px); align-items: center; padding: clamp(56px,6vw,88px) 0; border-bottom: 1px solid var(--line); scroll-margin-top: 110px; }
.collection:last-child { border-bottom: 0; padding-bottom: 0; }
.collection-copy { min-width: 0; max-width: 34em; }
.collection-copy h2 { margin: 0 0 18px; font-size: var(--series-title); font-weight: 500; line-height: 1.2; letter-spacing: -.025em; text-wrap: balance; }
.collection-copy .collection-lead { margin: 0 0 18px; color: var(--ink); font-size: 17px; font-weight: 500; line-height: 1.7; }
.collection-copy > p:not(.collection-lead) { margin: 0; color: var(--muted); font-size: 16px; line-height: 1.85; }
.collection-status { display: block; margin-top: 22px; color: var(--quiet); font-size: 13px; line-height: 1.7; }
.collection-copy > a { display: inline-flex; min-height: 44px; align-items: center; gap: 18px; margin-top: 14px; border-bottom: 1px solid var(--ink); font-size: 14px; }
.collection figure { min-width: 0; margin: 0; }
.collection figcaption { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 4px 12px; margin-top: 12px; color: var(--quiet); font-size: 13px; line-height: 1.6; }
.collection figcaption small { font-size: 12px; letter-spacing: .02em; }
.art-open { display: block; width: 100%; margin: 0; padding: 0; border: 0; background: transparent; cursor: zoom-in; }
.calendar-gallery, .festival-preview, .snow-gallery { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 18px; align-items: start; }
.calendar-gallery img, .festival-preview img, .snow-gallery img { width: 100%; height: auto; aspect-ratio: 1; object-fit: contain; }
.festival-preview figure:nth-child(2) { margin-top: 32px; }
.botanical-gallery { display: grid; grid-template-columns: minmax(0,1fr) minmax(0,.8fr); gap: 18px; align-items: start; }
.botanical-gallery .botanical-main { grid-column: 1/-1; }
.botanical-gallery img { width: 100%; height: auto; object-fit: contain; }

/* Original character designs retain their own pixels; captions remain outside. */
.origin-gallery { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 32px 20px; min-width: 0; }
.origin-gallery img { display: block; width: 100%; height: auto; }
body .art-page .origin-gallery figcaption { justify-content: center; text-align: center; }
.origin-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 22px; margin-top: 16px; }
.origin-gallery-action { display: inline-flex; align-items: center; gap: 16px; min-height: 44px; padding: 0; border: 0; border-bottom: 1px solid var(--ink); border-radius: 0; background: transparent; color: var(--ink); font: 500 14px/1.6 var(--sans); text-decoration: none; cursor: pointer; }
.origin-gallery-action[hidden] { display: none; }
@media (max-width:580px) {
  .origin-gallery { gap: 16px 10px; }
  body .art-page .origin-gallery figcaption { font-size: 12px; }
}

/* The approved partner series lives only in the 3D page. */
.partners-chapter { font-family: "Junyu Partner Text",var(--sans); border-bottom: 0; }
.partner-series { padding-top: 56px; scroll-margin-top: 110px; }
.partners-heading > p { max-width: 45em; font-size: 16px; }
.partners-group { margin-top: 28px; }
.partner-roster-heading { display: grid; grid-template-columns: 1fr; align-items: start; gap: 10px; margin-bottom: 22px; scroll-margin-top: 110px; }
.partner-roster-heading .partner-roster-note { max-width: 58em; margin: 0; font-size: clamp(15px,1.05vw,17px); line-height: 1.75; text-wrap: pretty; }
.partner-profile-model-link { display: inline-flex; min-height: 44px; align-items: center; gap: 24px; margin-top: 22px; border-bottom: 1px solid var(--ink); color: var(--ink); font-size: 14px; font-weight: 600; }
.partner-profile-model-link span { transition: transform .2s ease; }
.partner-roster, .partner-scenes-heading, .partner-profile { scroll-margin-top: 110px; }
.partner-purpose h3 { font-size: clamp(24px,2.4vw,34px); }

.from-art { padding: 64px var(--pad); border-top: 1px solid var(--line); background: var(--soft); }
.section-heading { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: end; max-width: 1280px; margin: 0 auto 40px; }
.section-heading h2 { margin: 0; font-family: var(--sans); font-size: var(--series-title); font-weight: 500; letter-spacing: -.025em; line-height: 1.2; text-wrap: balance; }
.section-heading > p { margin: 0; color: var(--muted); font-size: 16px; line-height: 1.85; }
.eyebrow { display: none; }
.from-art-grid { display: grid; grid-template-columns: minmax(0,1fr) auto minmax(0,.706667fr); gap: 32px; align-items: start; max-width: 840px; margin-inline: auto; }
.from-art-grid > span { align-self: center; font-size: 28px; }
.from-art-grid figure { min-width: 0; margin: 0; background: transparent; }
.from-art-grid img { display: block; width: 100%; height: auto; aspect-ratio: auto; object-fit: contain; }
.from-art-grid figcaption { margin-top: 14px; padding: 0; color: var(--quiet); font-size: 13px; line-height: 1.6; }
.text-link { display: inline-flex; min-height: 44px; align-items: center; margin-top: 24px; border-bottom: 1px solid var(--ink); font-size: 14px; }
footer { display: grid; min-height: 110px; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 20px; padding: 24px var(--pad); border-top: 1px solid var(--line); color: var(--quiet); font-size: 12px; line-height: 1.7; }
footer span:last-child { justify-self: end; }

/* Viewer dimensions remain compact; image resolution is an independent choice. */
.art-viewer { padding: 0; border: 0; background: var(--white); color: var(--ink); }
.art-viewer::backdrop { background: rgba(16,24,32,.78); }
.viewer-bar, .viewer-controls { display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 12px; min-height: 72px; padding: 12px 22px; border-bottom: 1px solid var(--line); }
.viewer-bar small { color: var(--quiet); font-size: 12px; }
.viewer-bar h2 { margin: 3px 0 0; font-size: 23px; font-weight: 500; }
.viewer-bar > button { width: 44px; height: 44px; border: 0; background: transparent; cursor: pointer; font-size: 30px; }
.viewer-stage { background: var(--soft); }
.viewer-controls { min-height: 60px; grid-template-columns: 1fr auto 1fr; border-top: 1px solid var(--line); border-bottom: 0; }
.viewer-controls button { justify-self: start; min-height: 40px; padding: 7px 0; border: 0; border-bottom: 1px solid var(--ink); background: transparent; cursor: pointer; font-size: 14px; }
.viewer-controls button:last-child { justify-self: end; }
.viewer-controls span { color: var(--quiet); font-size: 12px; }

@media (hover:hover) and (pointer:fine) and (prefers-reduced-motion:no-preference) {
  .category-link:hover svg { transform: translateX(5px); }
  .partner-profile-model-link:hover span { transform: translate(3px,-3px); }
}
@media (max-width:1080px) {
  .world-header { grid-template-columns: 1fr auto; }
  .world-header nav { display: none; }
  .collection { grid-template-columns: 1fr; gap: 30px; }
  .collection-copy { max-width: 42em; }
  .calendar-gallery, .festival-preview, .botanical-gallery, .snow-gallery { width: min(100%,760px); justify-self: center; }
  .region-name { display: none; }
  footer { grid-template-columns: 1fr auto; }
  footer > span:nth-child(2) { display: none; }
}
@media (max-width:700px) {
  :root { --pad: 20px; --series-title: clamp(30px,7.8vw,38px); --section-title: clamp(38px,10vw,52px); }
  .world-header { top: 8px; right: 8px; left: 8px; min-height: 62px; padding: 0 10px 0 13px; border-radius: 16px; }
  .header-action { min-height: 44px; padding: 0 13px; gap: 10px; }
  .worlds-directory { padding-top: 112px; padding-bottom: 48px; }
  .world-hero { grid-template-columns: 1fr; gap: 20px; padding-bottom: 32px; }
  .world-hero h1, .region-heading h1 { font-size: clamp(38px,10vw,52px); }
  .world-hero > p, .region-heading > p { font-size: 16px; line-height: 1.75; }
  .category-index { grid-template-columns: repeat(2,minmax(0,1fr)); gap: 0 20px; }
  .category-link { min-height: 56px; align-items: start; padding-top: 16px; gap: 6px; }
  .category-link strong { font-size: 22px; line-height: 1.4; }
  .category-link svg { flex-basis: 18px; width: 18px; height: 18px; margin-top: 6px; }
  .category-group > p { grid-row: 2; margin: 8px 0 16px; font-size: 14px; line-height: 1.7; }
  .category-preview-2d { gap: 6px; }
  .category-series { grid-row: 4; align-self: start; gap: 0 12px; margin-top: 14px; padding-top: 8px; }
  .category-series a { font-size: 14px; line-height: 1.6; }
  .art-page { padding-top: 84px; }
  .art-page > .page-breadcrumb { margin-block: 16px 0; }
  .artwork-region { padding: 28px 20px 48px; }
  .region-heading { grid-template-columns: 1fr; gap: 18px; margin-bottom: 24px; }
  .region-nav { display: grid; grid-template-columns: 1fr auto; gap: 0 12px; padding: 0; min-height: 88px; }
  .region-name { display: inline-flex; min-height: 44px; align-items: center; }
  .region-links { grid-column: 1/-1; grid-row: 2; justify-content: space-between; gap: 0 8px; }
  .region-switch { grid-column: 2; grid-row: 1; }
  .region-links a { font-size: 14px; }
  .collection { padding-block: 44px; scroll-margin-top: 96px; }
  .collection-copy .collection-lead { font-size: 16px; margin-bottom: 14px; }
  .collection-status { margin-top: 18px; }
  .calendar-gallery, .festival-preview, .snow-gallery { grid-template-columns: repeat(2,minmax(0,1fr)); gap: 18px 14px; }
  .festival-preview figure:nth-child(2) { margin-top: 22px; }
  .botanical-gallery { gap: 14px; }
  .partner-series { padding-top: 36px; }
  .partner-series, .partner-roster, .partner-roster-heading, .partner-scenes-heading, .partner-profile { scroll-margin-top: 96px; }
  .partner-roster-heading { grid-template-columns: 1fr; align-items: start; gap: 14px; margin-bottom: 22px; }
  .region-links { justify-content: flex-start; gap: 0 18px; }
  .from-art { padding: 48px 20px; }
  .section-heading { grid-template-columns: 1fr; gap: 20px; margin-bottom: 28px; }
  .from-art-grid { gap: 10px; }
  .from-art-grid > span { font-size: 20px; }
  .from-art-grid figcaption { margin-top: 12px; font-size: 12px; }
  footer { display: flex; align-items: flex-start; flex-direction: column; gap: 14px; }
  .viewer-bar, .viewer-controls { padding: 10px 14px; }
  .viewer-bar h2 { font-size: 19px; }
}
@media (max-width:440px) {
  .header-action span { display: none; }
}
@media (prefers-reduced-motion:reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: .01ms!important; }
}
@media (prefers-reduced-transparency:reduce) {
  .world-header { background: var(--white); -webkit-backdrop-filter: none; backdrop-filter: none; }
}
@media (forced-colors:active) {
  .world-header, .header-action { border: 1px solid CanvasText; background: Canvas; color: CanvasText; box-shadow: none; -webkit-backdrop-filter: none; backdrop-filter: none; }
  .region-links a[aria-current="location"] { border-color: LinkText; }
}

/* Full design collections use a dedicated page, with one image per preview. */
.design-gallery-page { max-width: 1600px; margin-inline: auto; }
.design-gallery { padding: 48px var(--pad) 88px; }
.design-gallery-heading { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: end; padding-bottom: 48px; margin-bottom: 40px; border-bottom: 1px solid var(--line); }
.design-gallery-count { margin: 0 0 16px; color: var(--quiet); font-size: 14px; }
.design-gallery-heading h1 { margin: 0; font-size: clamp(40px,4.5vw,68px); line-height: 1.2; }
.design-gallery-description p { max-width: 34em; margin: 0; color: var(--muted); font-size: 16px; line-height: 1.85; }
.design-gallery-description .design-gallery-lead { margin-bottom: 14px; color: var(--ink); font-size: 18px; font-weight: 500; }
.design-gallery-grid { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 56px 32px; }
.design-gallery-grid figure { min-width: 0; margin: 0; }
.design-gallery-grid img { width: 100%; height: auto; aspect-ratio: 1; object-fit: contain; }
.design-gallery-grid figcaption { margin-top: 16px; text-align: center; }
.design-gallery-grid h2 { margin: 0; font-size: 24px; line-height: 1.4; }
.design-gallery-return { margin-top: 64px; }
@media (max-width:860px) {
  .design-gallery-heading { grid-template-columns: 1fr; gap: 24px; padding-bottom: 32px; }
  .design-gallery-grid { grid-template-columns: repeat(2,minmax(0,1fr)); gap: 36px 20px; }
  .design-gallery-grid h2 { font-size: 20px; }
}
@media (max-width:580px) {
  .design-gallery { padding-top: 32px; padding-bottom: 64px; }
  .design-gallery-heading { margin-bottom: 28px; }
  .design-gallery-heading h1 { font-size: clamp(36px,10vw,48px); }
  .design-gallery-description p { font-size: 15px; }
  .design-gallery-description .design-gallery-lead { font-size: 16px; }
  .design-gallery-grid figcaption { margin-top: 12px; }
  .design-gallery-grid h2 { font-size: 18px; }
  .design-gallery-return { margin-top: 48px; }
}
@media (max-width:340px) {
  .design-gallery-grid { grid-template-columns: 1fr; }
  .design-gallery-grid h2 { font-size: 22px; }
}

/* Center captions on the figure itself, with measured anchors for props extending sideways. */
body .art-page :is(.origin-gallery,.design-gallery-grid) figcaption {
  position: relative; left: var(--character-caption-x,50%); transform: translateX(-50%);
  width: max-content; max-width: 100%; margin-inline: 0; text-align: center;
}

/* Match the site's directional link feedback without moving labels or rules. */
.art-page .art-link-arrow { display: inline-block; flex-shrink: 0; transition: transform 350ms cubic-bezier(.16,1,.3,1); --arrow-x: 3px; --arrow-y: -3px; }
.art-page .art-link-arrow[data-direction="down-right"] { --arrow-y: 3px; }
.art-page .art-link-arrow[data-direction="left"] { --arrow-x: -4px; --arrow-y: 0px; }
.art-page .art-link-arrow[data-direction="right"] { --arrow-x: 4px; --arrow-y: 0px; }
@media (hover:hover) and (pointer:fine) and (prefers-reduced-motion:no-preference) {
  .art-page :is(a,button):is(:hover,:focus-visible) .art-link-arrow { transform: translate(var(--arrow-x),var(--arrow-y)); }
}
@media (prefers-reduced-motion:reduce) { .art-page .art-link-arrow { transition: none; } }

/* Continue between the design collections without retracing the full directory. */
.design-gallery-pagination { display:flex; align-items:center; justify-content:space-between; flex-wrap:wrap; gap:16px 32px; margin-top:64px; padding-top:24px; border-top:1px solid var(--line); }
.design-gallery-pagination .design-gallery-return { margin-top:0; }
@media(max-width:580px) { .design-gallery-pagination { margin-top:44px; } }
