/* Pillar hub — reuses Capabilities canvas language (1425px). */
.page-shell:has(.hub-page) {
  overflow: hidden;
}

.hub-page {
  position: relative;
  width: 100%;
  height: calc(var(--design-height) * 1px);
  overflow: hidden;
  background: #fff;
  --gutter: max(0px, (100vw - var(--page-width, 1425px)) / 2);
  --footer-height: 677px;
}

.hub-page--n2 {
  --design-height: 3054;
  --footer-top: 2377px;
  --hub-contact-top: 1913px;
  height: 3054px;
}

.hub-page--n3 {
  --design-height: 3514;
  --footer-top: 2837px;
  --hub-contact-top: 2373px;
  height: 3514px;
}

.hub-page--n7 {
  --design-height: 5354;
  --footer-top: 4677px;
  --hub-contact-top: 4213px;
  height: 5354px;
}

.page-shell:has(.hub-page--n2) {
  --design-height: 3054;
}

.page-shell:has(.hub-page--n3) {
  --design-height: 3514;
}

.page-shell:has(.hub-page--n7) {
  --design-height: 5354;
}

.hub-page .cap-hero__title {
  width: 780px;
  font-size: 64px;
}

.hub-page .cap-hero__eyebrow {
  letter-spacing: 3.2px;
  text-transform: uppercase;
}

.hub-page .cap-hero__lead {
  top: 500px;
}

.hub-switcher {
  position: absolute;
  left: calc(var(--gutter) + 120px);
  top: 640px;
  z-index: 4;
  display: flex;
  align-items: flex-end;
  gap: 28px;
}

.hub-switcher__link {
  display: flex;
  flex-direction: column;
  gap: 4px;
  color: var(--color-ink, #1e1e1e);
  font-family: var(--font-light, "Helvetica Light", Helvetica, Arial, sans-serif);
}

.hub-switcher__name {
  font-size: 18px;
  line-height: 1;
}

.hub-switcher__count {
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  opacity: 0.55;
}

.hub-switcher__link.is-current .hub-switcher__name,
.hub-switcher__link:hover .hub-switcher__name {
  color: var(--color-primary, #f9363d);
}

.hub-page .pillar,
.hub-page .pillar--strategy,
.hub-page .pillar--create,
.hub-page .pillar--grow,
.hub-page .pillar--build {
  top: 846px;
  height: auto;
  min-height: 0;
  pointer-events: none;
}

.hub-page--pillar-scroll .hub-page .pillar.is-pinned,
.hub-page--pillar-scroll .hub-page .pillar.is-releasing,
html.hub-page--pillar-scroll .hub-page .pillar.is-pinned,
html.capabilities-page--pillar-scroll .hub-page .pillar.is-pinned {
  position: fixed;
  z-index: 6;
  pointer-events: none;
}

html.capabilities-page--pillar-scroll .hub-page .pillar.is-pinned .pillar__cta,
html.capabilities-page--pillar-scroll .hub-page .pillar.is-releasing .pillar__cta {
  pointer-events: auto;
}

.hub-page .pillar__cta {
  pointer-events: auto;
}

.hub-page .section-contact-wrap {
  top: var(--hub-contact-top) !important;
}

.hub-page .cap-cards {
  height: 100%;
}

.hub-page .cap-card {
  pointer-events: auto;
}

html.hub-page--pillar-scroll .hub-page .cap-card.cap-card--scroll-driven {
  will-change: transform, opacity;
}

.hub-page .cap-card__hit {
  display: block;
  position: absolute;
  inset: 0;
  color: inherit;
}

.hub-page .cap-card--nested .cap-card__content {
  top: 292px;
}

.hub-page .hub-card__children {
  position: absolute;
  left: 40px;
  right: 40px;
  bottom: 16px;
  z-index: 3;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.hub-page .hub-card__child {
  display: inline-flex;
  align-items: center;
  min-height: 26px;
  padding: 3px 10px;
  border: 1px solid rgba(255, 255, 255, 0.45);
  border-radius: 40px;
  font-family: var(--font-light, "Helvetica Light", Helvetica, Arial, sans-serif);
  font-size: 12px;
  line-height: 1.2;
  color: #fff;
  white-space: nowrap;
}

.hub-page .hub-card__child:hover {
  background: rgba(249, 54, 61, 0.9);
  border-color: transparent;
}

@media (max-width: 768px) {
  .page-shell:has(.hub-page) {
    overflow: visible;
  }

  html.tvl-mobile .hub-page {
    height: auto !important;
    overflow: visible;
    --gutter: 20px;
    --footer-top: auto;
  }

  html.tvl-mobile .hub-page .cap-hero,
  html.tvl-mobile .hub-page .pillar,
  html.tvl-mobile .hub-page .cap-cards,
  html.tvl-mobile .hub-page .section-contact-wrap,
  html.tvl-mobile .hub-page .hub-switcher {
    position: relative !important;
    top: auto !important;
    left: auto !important;
    width: 100% !important;
    height: auto !important;
    margin-bottom: 28px;
  }

  html.tvl-mobile .hub-page .cap-hero {
    display: flex;
    flex-direction: column;
    padding: 12px var(--gutter) 0;
  }

  html.tvl-mobile .hub-page .cap-hero__ellipse,
  html.tvl-mobile .hub-page .cap-hero__divider {
    display: none;
  }

  html.tvl-mobile .hub-page .cap-hero__eyebrow,
  html.tvl-mobile .hub-page .cap-hero__title,
  html.tvl-mobile .hub-page .cap-hero__lead,
  html.tvl-mobile .hub-page .cap-hero__visual {
    position: relative !important;
    left: auto !important;
    top: auto !important;
    width: 100% !important;
  }

  html.tvl-mobile .hub-page .cap-hero__title {
    font-size: var(--tvl-m-display) !important;
    margin: 8px 0 12px;
  }

  html.tvl-mobile .hub-page .cap-hero__visual {
    width: min(100%, 340px) !important;
    height: auto !important;
    margin: 12px auto 0;
  }

  html.tvl-mobile .hub-page .hub-switcher {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    padding: 0 var(--gutter);
  }

  html.tvl-mobile .hub-page .pillar {
    padding: 0 var(--gutter);
  }

  html.tvl-mobile .hub-page .pillar__title,
  html.tvl-mobile .hub-page .pillar__body,
  html.tvl-mobile .hub-page .pillar__cta {
    position: relative !important;
    left: auto !important;
    top: auto !important;
    width: 100% !important;
    max-width: 100% !important;
  }

  html.tvl-mobile .hub-page .cap-cards {
    display: flex;
    flex-direction: column;
    gap: 20px;
    padding: 0 var(--gutter);
  }

  html.tvl-mobile .hub-page .cap-card {
    position: relative !important;
    top: auto !important;
    left: auto !important;
    width: 100% !important;
    height: auto !important;
    aspect-ratio: 660 / 432;
    border-radius: 24px;
  }

  html.tvl-mobile .hub-page .cap-card__content {
    top: auto;
    bottom: 48px;
    left: 16px;
    right: 16px;
  }

  html.tvl-mobile .hub-page .hub-card__children {
    left: 16px;
    right: 16px;
    bottom: 12px;
  }

  html.tvl-mobile .hub-page .section-contact-wrap {
    padding: 0 var(--gutter);
  }

  html.tvl-mobile .hub-page .section-contact-wrap__title,
  html.tvl-mobile .hub-page .section-contact-wrap__subtitle,
  html.tvl-mobile .hub-page .section-contact,
  html.tvl-mobile .hub-page .contact-panel,
  html.tvl-mobile .hub-page .contact-form-card {
    position: relative !important;
    left: auto !important;
    top: auto !important;
    transform: none !important;
    width: 100% !important;
    height: auto !important;
  }
}
