/* The selected poster occupies the viewport below the persistent navigation. */
.category-anchor {
  --poster-ground: var(--page-paper, #faf9f5);
  --poster-ink: #20292c;
  --poster-muted: #526368;
  --poster-logo-height: 58px;
  --poster-top-space: 28px;
  --poster-bottom-space: 48px;
  box-sizing: border-box;
  display: grid;
  min-height: calc(100svh - var(--nav-height));
  padding: var(--poster-top-space) 24px var(--poster-bottom-space);
  background: var(--poster-ground);
  color: var(--poster-ink);
  text-align: center;
  scroll-margin-top: var(--nav-height);
}
html[data-theme="light"] .category-anchor {
  --poster-ground: #19272b;
  --poster-ink: #f5f2eb;
  --poster-muted: #bbc7c7;
}
.category-anchor-inner {
  display: grid;
  /* Reduce the previous logo-to-top gap by one third without changing internal spacing. */
  grid-template-rows: minmax(0, 2fr) auto auto minmax(0, 2fr) auto minmax(0, 4fr);
  /* Retain two thirds of the prior top offset, including the fixed section padding. */
  translate: 0 calc((var(--poster-bottom-space) + 50.5px - var(--poster-top-space)) / 3);
  width: min(100%, 144rem);
  margin-inline: auto;
}
.category-anchor .mktc-ch05-logo {
  color: inherit;
  height: var(--poster-logo-height);
  width: auto;
  margin: 0 auto;
}
.category-anchor .platform-wordmark,
.category-anchor-inner > .mktc-ch05-logo {
  grid-row: 2;
  margin-bottom: 25px;
}
.category-anchor-inner > .mktc-ch05-logo {
  aspect-ratio: 416 / 155;
  background-color: currentColor;
  mask: url("assets/xtory-platform-x.svg") center / contain no-repeat;
}
.category-eyebrow {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: .1em .65em;
  margin: 0 0 clamp(2rem, 4.5svh, 3.5rem);
  color: var(--intro-muted);
  font: 500 .875rem/1.7 "Helvetica Neue", "PingFang SC", Arial, sans-serif;
  letter-spacing: .14em;
}
.category-eyebrow span { white-space: nowrap; }
.category-anchor .category-eyebrow {
  grid-row: 3;
  margin-bottom: 29px;
  color: var(--poster-muted);
}
.category-anchor:lang(zh) :is(.platform-wordmark, .category-anchor-inner > .mktc-ch05-logo) {
  margin-bottom: 15.5px;
}
.category-anchor .category-eyebrow:lang(zh) {
  display: block;
  justify-self: center;
  width: calc(var(--poster-logo-height) * 2.63);
  font-size: calc(var(--poster-logo-height) * .22);
  letter-spacing: normal;
  white-space: nowrap;
  text-autospace: no-autospace;
  text-align-last: justify;
  text-justify: inter-character;
}
.category-title {
  grid-row: 5;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  justify-items: center;
  align-self: center;
  /* Halve the former centered gap: 1/4 of free space, minus half of 29px + 24px. */
  margin: -26.5px 0 26.5px;
  padding-block: 24px;
  font: 700 clamp(3rem, min(8.5vw, 23svh), 9rem)/1.06 "Xtory Futura", Futura, "Helvetica Neue", sans-serif;
  letter-spacing: -.045em;
}
.category-title span {
  white-space: nowrap;
  translate: var(--title-ink-offset, 0px) 0;
}
.category-title:lang(zh) {
  font-family: "PingFang SC", "Helvetica Neue", sans-serif;
  font-size: clamp(4.275rem, min(11.7vw, 22.5svh), 11.7rem);
  font-weight: 600;
  line-height: 1.04;
  letter-spacing: .032em;
  row-gap: .036em;
}
.category-title:lang(zh-Hant),
.category-eyebrow:lang(zh-Hant) {
  font-family: "PingFang TC", "Helvetica Neue", sans-serif;
}
/* Keep the transition close, as approved in the standalone poster. */
#starHero .intro-caption { padding-bottom: 32px; }
@media (max-width: 700px) {
  .category-anchor {
    --poster-logo-height: 40px;
    min-height: calc((100svh - var(--nav-height)) / 2);
    padding: 24px 22px;
  }
  .category-anchor-inner {
    grid-template-rows: auto auto auto;
    align-content: center;
    translate: none;
  }
  .category-anchor-inner > :is(.platform-wordmark, .mktc-ch05-logo, .category-eyebrow, .category-title) { grid-row: auto; }
  .category-anchor .platform-wordmark,
  .category-anchor-inner > .mktc-ch05-logo { margin-bottom: 10px; }
  .category-anchor:lang(zh) :is(.platform-wordmark, .category-anchor-inner > .mktc-ch05-logo) { margin-bottom: 10px; }
  .category-eyebrow { letter-spacing: .065em; margin-bottom: 2rem; }
  .category-anchor .category-eyebrow { margin-bottom: 20px; }
  .category-title { margin: 0; padding: 0; font-size: clamp(1.95rem, 9.8vw, 4rem); }
  .category-title:lang(zh) { font-size: clamp(min(3.7125rem, 16vw), 14.85vw, 6.3rem); }
  #starHero .intro-caption { padding-bottom: 19px; }
}
/* Adjacent surfaces meet directly; their colors define the sections. */
#starHero + #category-anchor,
#category-anchor + #platform-intro {
  border-block-start: 0;
}
#platform-intro .workflow-eyebrow {
  margin-bottom: clamp(1.25rem, 2.5svh, 2rem);
}
/* The Flow heading follows the opening size, with a readable narrow-screen floor. */
#platform-intro .mktc-ch05-headline {
  font-size: max(1.125rem, calc(var(--opening-slogan-size, 2rem) * .7));
}
