/* One title system for the five service/company heroes. Homepage excluded.
   Kept separate from artwork rules so animations retain their own geometry. */
body.inner-page-v2 {
  --snk-hero-type-size: clamp(40px, min(4.5vw, 7.5svh), 76px);
  --snk-hero-type-leading: 1.18;
  --snk-hero-copy-gap: 24px;
}
body.inner-page-v2 main :is(.inner-hero, #ai-geo-hero) #hero-title {
  font-family: Arial, "PingFang SC", "Microsoft YaHei", sans-serif !important;
  font-size: var(--snk-hero-type-size) !important;
  font-weight: 600 !important;
  line-height: var(--snk-hero-type-leading) !important;
  letter-spacing: -.035em !important;
  margin: 0 !important;
  max-width: 100%;
  white-space: normal;
  text-wrap: balance;
}
body.inner-page-v2 main :is(.inner-hero, #ai-geo-hero) #hero-title > span {
  white-space: normal;
}
body.inner-page-v2 main :is(.inner-hero, #ai-geo-hero) #hero-title em {
  font-size: 1em;
  font-weight: inherit;
}
body.page-dongming-ai main .inner-hero #hero-title > span {
  display: block;
}
body.inner-page-v2 main :is(.inner-hero-copy, .sag-copy) > :is(.eyebrow, .says-kicker, .sag-eyebrow) {
  font-family: Arial, "PingFang SC", "Microsoft YaHei", sans-serif;
  font-size: 11px !important;
  font-weight: 600;
  line-height: 1.6;
  letter-spacing: .1em;
  margin: 0 0 20px !important;
}
body.inner-page-v2 main :is(.inner-hero-copy, .sag-copy) > #hero-title + p,
body.inner-page-v2 main .inner-hero-copy > #hero-title + .says-bio {
  margin-top: var(--snk-hero-copy-gap) !important;
}
body.inner-page-v2 main :is(.inner-hero-copy, .sag-copy) > #hero-title + p {
  font-family: Arial, "PingFang SC", "Microsoft YaHei", sans-serif;
  font-size: 16px !important;
  line-height: 1.8 !important;
  text-wrap: pretty;
}
body.inner-page-v2 main :is(.inner-hero-copy, .sag-copy) > :is(.hero-actions, .inner-hero-actions, .sag-actions) {
  margin-top: 28px !important;
}
/* Keep the personal signature on one line without shrinking the whole title. */
html body.inner-page-v2.page-about.has-viewport-hero main .inner-hero .inner-hero-copy #hero-title {
  display: flex;
  align-items: baseline;
  flex-wrap: nowrap;
  gap: .18em;
  white-space: nowrap;
}
html body.inner-page-v2.page-about.has-viewport-hero main .inner-hero .inner-hero-copy #hero-title .dm-signature {
  font-size: 1.04em !important;
  font-weight: 750 !important;
  letter-spacing: .025em;
  flex-shrink: 0;
}
html body.inner-page-v2.page-about.has-viewport-hero main .inner-hero .inner-hero-copy #hero-title > em {
  display: inline;
  margin: 0 !important;
  font-size: .82em !important;
  font-weight: 600 !important;
  white-space: nowrap;
}
@media (min-width: 981px) {
  body.inner-page-v2 {
    --snk-hero-type-size: clamp(30px, min(9.6cqw, 7.5svh), 70px);
  }
  body.inner-page-v2 main :is(.inner-hero-copy, .sag-copy) { container-type: inline-size; }
  body.inner-page-v2 main :is(.inner-hero, #ai-geo-hero) #hero-title > span { white-space: nowrap; }
  body.inner-page-v2.has-viewport-hero main .inner-hero > .shell:is(.inner-hero-grid, .inner-hero-layout),
  body.inner-page-v2 main #ai-geo-hero > .sag-layout.shell {
    grid-template-columns: minmax(0, 1.08fr) minmax(0, 1fr) !important;
    gap: 56px !important;
    width: calc(100% - 160px) !important;
    max-width: 1440px !important;
    margin-inline: auto;
    padding-inline: 0;
  }
  body.inner-page-v2 main #ai-geo-hero .sag-visual {
    width: 100%;
    max-width: 660px;
    justify-self: end;
  }
  body.inner-page-v2.has-viewport-hero main .inner-hero .snk-hero-stage-frame {
    left: auto !important;
    right: 0;
    transform-origin: 100% 0;
  }
  body.page-google-seo main .inner-hero #hero-title .g-word {
    font-size: 1.06em;
    font-weight: 600;
  }
}
@media (min-width: 1501px) {
  body.inner-page-v2.has-viewport-hero main .inner-hero > .shell:is(.inner-hero-grid, .inner-hero-layout),
  body.inner-page-v2 main #ai-geo-hero > .sag-layout.shell {
    width: calc(100% - 112px) !important;
  }
}
@media (min-width: 721px) and (max-width: 980px) {
  body.inner-page-v2 { --snk-hero-type-size: clamp(40px, 5.5vw, 52px); }
  body.inner-page-v2 main :is(.inner-hero, #ai-geo-hero) > .shell {
    width: calc(100% - 80px) !important;
    max-width: 760px !important;
    margin-inline: auto;
  }
  body.page-ai-recommendation #ai-geo-hero .sag-layout { display: block; }
  body.page-ai-recommendation #ai-geo-hero .sag-visual { margin-top: 45px; margin-inline: auto; }
  body.page-ai-recommendation #main-content #ai-geo-hero { padding-inline: 0 !important; }
  body.inner-page-v2.has-viewport-hero main .inner-hero .inner-hero-copy { max-width: none; margin-inline: 0; }
}
@media (max-width: 720px) {
  body.inner-page-v2 {
    --snk-hero-type-size: clamp(26px, 8.2vw, 40px);
    --snk-hero-type-leading: 1.25;
    --snk-hero-copy-gap: 18px;
  }
  body.inner-page-v2 main :is(.inner-hero, #ai-geo-hero) > .shell {
    width: calc(100% - 40px) !important;
    max-width: none !important;
    margin-inline: auto;
  }
  body.page-ai-recommendation #main-content #ai-geo-hero { padding-inline: 0 !important; }
  body.inner-page-v2 main :is(.inner-hero-copy, .sag-copy) > :is(.eyebrow, .says-kicker, .sag-eyebrow) {
    font-size: 10px !important;
    margin-bottom: 18px !important;
  }
  body.inner-page-v2 main :is(.inner-hero-copy, .sag-copy) > #hero-title + p {
    font-size: 14px !important;
  }
  body.inner-page-v2 main :is(.inner-hero-copy, .sag-copy) > :is(.hero-actions, .inner-hero-actions, .sag-actions) {
    margin-top: 24px !important;
  }
  body.page-dongming-ai main .inner-hero-actions > a {
    white-space: nowrap;
    flex-shrink: 0;
  }
}
