/* Localized AI pages share the films and scroll choreography. */
.ai-page .site-header {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto auto;
  align-items: center;
  gap: clamp(22px, 3vw, 48px);
}
.ai-page .site-language { justify-self: end; }
.ai-page .primary-nav { min-width: 0; }

.ai-page--zh {
  font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", Arial, sans-serif;
}
.ai-page--zh .site-header {
  padding-block: max(20px, env(safe-area-inset-top)) 20px;
}
.ai-page--zh .wordmark { font-size: 14px; }
.ai-page--zh .wordmark-role { font-size: 10px; }
.ai-page--zh .primary-nav {
  gap: clamp(24px, 2.2vw, 40px);
  font-size: clamp(14px, 1.05vw, 17px);
  letter-spacing: .025em;
}
.ai-page--zh :is(h1, h2, h3, .project-number, .meta-list dt) {
  letter-spacing: 0;
  text-transform: none;
}
.ai-page--zh .ai-localized-english {
  display: block;
  margin-top: .65em;
  color: var(--muted);
  font-family: Arial, Helvetica, sans-serif;
  font-size: 12px;
  font-style: normal;
  font-weight: 400;
  line-height: 1.4;
  letter-spacing: .015em;
  text-transform: none;
}
.ai-page--zh .ai-cinema-banner h1 {
  font-size: clamp(72px, 8.5vw, 140px);
  font-weight: 400;
  line-height: 1.12;
  letter-spacing: .01em;
}
.ai-page--zh .ai-cinema-banner__copy > .ai-localized-english {
  margin: 22px 0 0;
  font-size: clamp(17px, 1.7vw, 25px);
  letter-spacing: .025em;
}
.ai-page--zh .ai-cinema-banner__subtitle { line-height: 1.6; letter-spacing: .025em; }
.ai-page--zh .ai-cinema-banner__index { gap: 14px; line-height: 1.5; letter-spacing: .02em; }
.ai-page--zh .ai-workflows__eyebrow { letter-spacing: .035em; }
.ai-page--zh .ai-workflows__eyebrow > p { letter-spacing: .08em; }
.ai-page--zh .ai-workflows__directory a { font-size: 12px; line-height: 1.6; }
.ai-page--zh .ai-workflows__directory a > span:last-child { white-space: normal; }
.ai-page--zh .ai-workflows__directory small { display: block; color: var(--muted); font-size: 10px; line-height: 1.5; }
.ai-page--zh .ai-workflows__directory .ai-localized-english { margin-top: 2px; font-size: 10px; }
.ai-page--zh .ai-workflows__title > p { line-height: 1.5; letter-spacing: .04em; }
.ai-page--zh .ai-workflows__title h2 {
  font-size: clamp(38px, min(4.1vw, 6svh), 64px);
  line-height: 1.2;
  letter-spacing: 0;
}
.ai-page--zh .ai-workflows__title br { display: none; }
.ai-page--zh .ai-workflows__title em::before { content: none; }
.ai-page--zh .ai-workflows__title .ai-localized-english { margin-top: 8px; font-size: clamp(14px, 1.35vw, 19px); }
.ai-page--zh .ai-workflows__description h3 { line-height: 1.5; letter-spacing: 0; }
.ai-page--zh .ai-workflows__description h3 .ai-localized-english { margin-top: 3px; font-size: 11px; }
.ai-page--zh .ai-workflows__description p { max-width: 48em; font-size: 13px; line-height: 1.85; }
.ai-page--zh .ai-workflows .ab-compare__controls p span { display: inline; }
.ai-page--zh :is(.project-feature__info h2, .section-heading h2) {
  font-size: clamp(40px, 4.8vw, 76px);
  line-height: 1.18;
  letter-spacing: 0;
}
.ai-page--zh :is(.project-feature__info h2, .section-heading h2) .ai-localized-english { font-size: clamp(13px, 1.2vw, 18px); }
.ai-page--zh :is(.project-feature__info > p:not(.project-number), .project-summary > p) {
  max-width: 36em;
  font-size: 15px;
  line-height: 1.85;
}
.ai-page--zh .meta-list { line-height: 1.7; }
.ai-page--zh .project-tool-line { line-height: 1.6; }
.ai-page--zh .capability-list span { line-height: 1.3; letter-spacing: 0; }

/* The artwork contains English text, so keep localized context visible beside it. */
.ai-page--zh .ai-news.is-enhanced .ai-news__caption {
  position: static;
  width: auto;
  height: auto;
  padding-top: 16px;
  overflow: visible;
  clip-path: none;
  white-space: normal;
}
.ai-page--zh .ai-news__heading h2 { font-size: 15px; letter-spacing: .08em; }
.ai-page--zh .ai-news__caption h3 { font-size: clamp(20px, 1.8vw, 26px); line-height: 1.4; letter-spacing: 0; }
.ai-page--zh .ai-news__caption .ai-localized-english { margin-top: 4px; font-size: 12px; }
.ai-page--zh .ai-news__caption p { line-height: 1.7; }
.ai-page--zh .ai-news__steps button { font-size: 12px; line-height: 1.6; }
.ai-page .ai-partnerships-copy { max-width: 1774px; margin: 0 auto 26px; }
.ai-page .ai-partnerships-copy h2 { margin: 0 0 10px; font-size: 15px; font-weight: 400; line-height: 1.5; }
.ai-page .ai-partnerships-copy p { max-width: 76em; margin: 0; color: var(--muted); font-size: 13px; line-height: 1.85; }
.ai-page .ai-partnerships-copy p + p { margin-top: 8px; }
.ai-page--zh .industry-partnerships { padding-block: clamp(32px, 3vw, 48px); }
.ai-page--zh .industry-partnerships__image-link {
  aspect-ratio: 1774 / 747;
  overflow: hidden;
}
.ai-page--zh .industry-partnerships__image-link img { transform: translateY(-7.9%); }
.ai-page--zh .ai-partnerships-copy { margin-bottom: 28px; }
.ai-page--zh .ai-partnerships-copy h2 {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 8px 22px;
  margin: 0;
  font-size: clamp(28px, 3vw, 48px);
  line-height: 1.25;
}
.ai-page--zh .ai-partnerships-copy h2 .ai-localized-english {
  margin: 0;
  font-size: 14px;
  letter-spacing: .025em;
}

/* A wide canvas gives the film the main column and its context a quiet side rail. */
@media (min-width: 1200px) and (min-height: 651px) {
  .ai-page--zh .ai-workflows__layout {
    grid-template-columns: clamp(180px, 12vw, 210px) minmax(0, 1fr);
    gap: 28px;
    padding-top: 18px;
  }
  .ai-page--zh .ai-workflows__item {
    display: grid;
    grid-template-columns: minmax(0, 1fr) clamp(210px, 14vw, 232px);
    grid-template-rows: auto minmax(0, 1fr);
    gap: 18px 24px;
    align-items: start;
  }
  .ai-page--zh .ai-workflows__title { grid-column: 1 / -1; }
  .ai-page--zh .ai-workflows__title > p { margin-bottom: 6px; }
  .ai-page--zh .ai-workflows__title h2 {
    font-size: clamp(38px, 3.2vw, 54px);
    line-height: 1.2;
  }
  .ai-page--zh .ai-workflows__title .ai-localized-english {
    margin: 6px 0 0;
    font-size: 16px;
  }
  .ai-page--zh .ai-workflows__item > :is(.ab-compare, .workflow-player) {
    grid-column: 1;
    grid-row: 2;
    min-width: 0;
    align-self: stretch;
  }
  .ai-page--zh .ai-workflows__description {
    grid-column: 2;
    grid-row: 2;
    grid-template-columns: minmax(0, 1fr);
    gap: 24px;
    min-width: 0;
    padding-top: 2px;
  }
  .ai-page--zh .ai-workflows__description h3 { font-size: 16px; }
  .ai-page--zh .ai-workflows__description p { font-size: 13px; line-height: 1.9; }
  .ai-page--zh .ai-workflows__credits {
    align-items: start;
    gap: 10px;
    padding-top: 18px;
    border-top: 1px solid var(--line);
    font-size: 11px;
    white-space: normal;
  }
  .ai-page--zh .ai-workflows.is-enhanced .ai-workflows__pin { padding-bottom: 20px; }
  .ai-page--zh .ai-workflows.is-enhanced .ai-workflows__item > :is(.ab-compare, .workflow-player) {
    align-items: start;
    justify-content: start;
  }
}

@media (max-width: 960px) {
  .ai-page .site-header {
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 0 18px;
    padding: max(8px, env(safe-area-inset-top)) max(18px, env(safe-area-inset-right)) 10px max(18px, env(safe-area-inset-left));
  }
  .ai-page .wordmark { grid-column: 1; grid-row: 1; }
  .ai-page .site-language { grid-column: 2; grid-row: 1; gap: 6px; font-size: 11px; }
  .ai-page .primary-nav {
    grid-column: 1 / -1;
    grid-row: 2;
    justify-content: space-between;
    width: 100%;
    gap: 8px;
    font-size: 11px;
    letter-spacing: .035em;
  }
  .ai-page .primary-nav a { min-width: 44px; justify-content: center; padding-inline: 3px; }
  .ai-page--zh .primary-nav { font-size: 14px; letter-spacing: 0; }
}


/* Six destinations remain visible in one row on phones; link height stays
   44px and the existing locale font sizes are preserved. */
@media (max-width: 420px) {
  .ai-page .primary-nav { gap: 4px; letter-spacing: 0; }
  .ai-page .primary-nav a { min-width: 0; padding-inline: 0; white-space: nowrap; }
}

@media (max-width: 680px) {
  .ai-page--zh .ai-cinema-banner h1 { font-size: clamp(50px, 12vw, 76px); line-height: 1.15; }
  .ai-page--zh .ai-cinema-banner__copy > .ai-localized-english { margin-top: 18px; font-size: 16px; }
  .ai-page--zh .ai-cinema-banner__subtitle { max-width: 20em; font-size: 15px; line-height: 1.7; }
  .ai-page--zh .ai-workflows__eyebrow > p { font-size: 11px; }
  .ai-page--zh .ai-workflows__directory a { font-size: 10px; line-height: 1.5; }
  .ai-page--zh .ai-workflows__directory :is(small, .ai-localized-english) { font-size: 8px; line-height: 1.5; }
  .ai-page--zh .ai-workflows__title h2 { font-size: clamp(24px, 6.4vw, 40px); line-height: 1.3; }
  .ai-page--zh .ai-workflows__title .ai-localized-english { margin-top: 6px; font-size: 12px; line-height: 1.45; }
  .ai-page--zh .ai-workflows__title > p { margin-bottom: 9px; font-size: 9px; }
  .ai-page--zh .ai-workflows__item { gap: 14px; }
  .ai-page--zh .ai-workflows__description { gap: 10px; }
  .ai-page--zh .ai-workflows__description h3 { margin-bottom: 5px; font-size: 13px; }
  .ai-page--zh .ai-workflows__description p { font-size: 12px; line-height: 1.75; }
  .ai-page--zh .ai-workflows__credits { font-size: 9px; }
  .ai-page--zh .ai-workflows .ab-compare__label { letter-spacing: .015em; }
  .ai-page--zh :is(.project-feature__info h2, .section-heading h2) { font-size: clamp(34px, 9vw, 50px); line-height: 1.25; }
  .ai-page--zh :is(.project-feature__info > p:not(.project-number), .project-summary > p) { font-size: 14px; line-height: 1.85; }
  .ai-page--zh .ai-news__caption h3 { font-size: 20px; }
  .ai-page--zh .ai-news__caption p { font-size: 12px; }
  .ai-page--zh .ai-news__steps button { font-size: 11px; }
  .ai-page .ai-partnerships-copy { margin-bottom: 20px; }
  .ai-page .ai-partnerships-copy p { font-size: 12px; }
  .ai-page--zh .ai-partnerships-copy h2 { gap: 6px 16px; }
}

/* News uses a readable heading, one current theme, and an aligned edition. */
.ai-page--zh .ai-news__heading { gap: 24px 34px; padding-bottom: 20px; }
.ai-page--zh .ai-news__heading h2 { display: flex; align-items: baseline; gap: 16px; font-size: clamp(26px, 2.2vw, 36px); letter-spacing: .02em; line-height: 1.25; }
.ai-page--zh .ai-news__heading h2 .ai-localized-english { margin: 0; font-size: 14px; }
.ai-page--zh .ai-news__edition { max-width: 52em; font-size: clamp(14px, 1.15vw, 18px); line-height: 1.65; }
.ai-page--zh .ai-news__count { font-size: 13px; }
.ai-page--zh .ai-news__caption h3 { font-size: clamp(23px, 2vw, 30px); }
.ai-page--zh .ai-news__caption p { font-size: 15px; }
.ai-page--zh .ai-news__caption time { font-size: 13px; }
.ai-page--zh .ai-news__steps button { font-size: 14px; }
.ai-page--zh .ai-news.is-enhanced .ai-news__item[aria-hidden="true"] .ai-news__caption { visibility: hidden; }
.ai-page--zh #xuantian .project-number { margin-bottom: 12px; font-size: clamp(14px, 1.1vw, 18px); line-height: 1.6; }
.ai-page--zh #xuantian .project-tool-line--detail { gap: 10px; font-size: clamp(14px, 1vw, 16px); line-height: 1.7; }
.ai-page--zh #xuantian .project-tool-logo { width: 16px; height: 16px; flex-basis: 16px; }

/* Shotlab: the brief, a full-width world, then its character and scene studies. */
.shotlab-project { padding: clamp(72px, 7vw, 120px) var(--pad); border-bottom: 1px solid var(--line); scroll-margin-top: 112px; }
.shotlab-project__intro { display: grid; grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr); gap: clamp(40px, 7vw, 120px); margin-bottom: clamp(40px, 5vw, 80px); }
.shotlab-project__heading h2 { margin: 22px 0; font-size: clamp(42px, 5.2vw, 84px); font-weight: 400; line-height: 1.2; letter-spacing: -.025em; }
.shotlab-project__heading .ai-localized-english { display: block; margin-top: 16px; color: var(--muted); font-size: clamp(15px, 1.3vw, 20px); font-weight: 400; line-height: 1.4; letter-spacing: .015em; }
.shotlab-project__heading .project-number { color: var(--ink); font-size: 15px; line-height: 1.6; letter-spacing: .03em; }
.shotlab-project__heading .meta-list { margin-top: 36px; }
.shotlab-project__heading .meta-list dt { font-size: 13px; }
.shotlab-project__heading .meta-list dd { font-size: 14px; line-height: 1.8; }
.shotlab-project__heading .text-links { margin-top: 28px; }
.shotlab-project__story { max-width: 48em; }
.shotlab-project__story p { margin: 0 0 20px; color: var(--muted); font-size: 16px; line-height: 1.95; }
.shotlab-project__story .shotlab-project__lead { margin-bottom: 26px; color: var(--ink); font-size: clamp(21px, 1.9vw, 30px); line-height: 1.6; }
.shotlab-project__story .shotlab-project__signature { margin-top: 28px; color: var(--ink); font-size: 17px; }
.shotlab-project__hero { margin: 0 0 clamp(24px, 3vw, 48px); }
.shotlab-project__hero img { display: block; width: 100%; height: auto; }
.shotlab-project__gallery { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: clamp(24px, 3vw, 48px); align-items: start; }
.shotlab-project__still { grid-column: span 3; margin: 0; min-width: 0; }
.shotlab-project__still:nth-last-child(2) { grid-column: span 4; }
.shotlab-project__still--selection { grid-column: span 2; }
.shotlab-project__still img { display: block; width: 100%; height: auto; }
.shotlab-project__still figcaption { margin-top: 14px; color: var(--ink); font-size: 15px; line-height: 1.65; }
.shotlab-project__still figcaption span { display: block; margin-top: 2px; color: var(--muted); font-size: 12px; }
@media (max-width: 900px) {
  .shotlab-project__intro { grid-template-columns: 1fr; gap: 32px; }
  .shotlab-project__heading .meta-list { max-width: 560px; margin-top: 28px; }
}
@media (max-width: 680px) {
  .ai-page--zh .ai-news__heading { display: grid; gap: 10px 12px; }
  .ai-page--zh .ai-news__heading h2 { gap: 12px; font-size: 26px; }
  .ai-page--zh .ai-news__heading h2 .ai-localized-english { font-size: 12px; }
  .ai-page--zh .ai-news__edition { min-height: 3.3em; font-size: 13px; line-height: 1.65; }
  .ai-page--zh .ai-news__caption p, .ai-page--zh .ai-news__steps button { font-size: 13px; }
  .shotlab-project { padding-block: 72px; scroll-margin-top: 120px; }
  .shotlab-project__heading h2 { font-size: clamp(34px, 9vw, 52px); }
  .shotlab-project__story p { font-size: 15px; line-height: 1.9; }
  .shotlab-project__gallery { grid-template-columns: minmax(0, 1fr); gap: 32px; }
  .shotlab-project__gallery .shotlab-project__still { grid-column: auto; }
  .shotlab-project__still--selection { width: min(100%, 400px); justify-self: center; }
}

/* Model credits follow the same icon, separator and name rhythm as the film tools. */
.project-tool-line--models { flex-wrap: wrap; gap: 8px; white-space: normal; }
.shotlab-project__heading .project-tool-line--models { margin-top: 14px; font-size: 14px; line-height: 1.6; }
.shotlab-project__heading .project-tool-line--models .project-tool-logo { width: 16px; height: 16px; flex-basis: 16px; }
.ai-workflows__credits .project-tool-line--models { justify-content: flex-end; font-size: 12px; line-height: 1.6; }
@media (min-width: 1200px) and (min-height: 651px) {
  .ai-page--zh .ai-workflows__credits .project-tool-line--models { justify-content: flex-start; }
}

/* On phones, favor the hero subject and start the workflow close to its label. */
@media (max-width: 680px) {
  .ai-page .ai-cinema-banner__image { object-position: 66% 60%; }
  .ai-page .ai-workflows { padding-top: 24px; }
  .ai-page .ai-workflows__layout { padding-top: 14px; }
  .ai-page .ai-workflows__directory { align-self: start; }
  .ai-page .ai-workflows.is-enhanced .ai-workflows__pin { padding-bottom: 16px; }
  .ai-page .ai-workflows.is-enhanced .ai-workflows__item { justify-content: flex-start; }
}
