.about-us-overview__grid {
  align-items: stretch;
}

.stories-showcase--direct-logo-wall .direct-logo-wall__item.is-dark,
.stories-showcase--direct-logo-wall .direct-logo-wall__item.is-dark:hover {
  background: #151515 !important;
  border-color: #151515 !important;
}

.stories-showcase--direct-logo-wall .direct-logo-wall__item.is-dark {
  opacity: .5;
  transition: background-color .52s cubic-bezier(.22, 1, .36, 1), border-color .52s cubic-bezier(.22, 1, .36, 1), opacity .52s cubic-bezier(.22, 1, .36, 1);
}

.stories-showcase--direct-logo-wall .direct-logo-wall__item.is-dark:hover {
  opacity: 1;
}

.stories-showcase--direct-logo-wall .direct-logo-wall__item.is-dark .direct-logo-wall__color {
  filter: grayscale(1) contrast(1.08) brightness(2.5) !important;
  opacity: 1;
}

.stories-showcase--direct-logo-wall .direct-logo-wall__item.is-dark:hover .direct-logo-wall__color {
  filter: grayscale(0) saturate(1.05) contrast(1.04) brightness(1.18) !important;
  opacity: 1;
}

.stories-showcase--direct-logo-wall .direct-logo-wall__item:not(.is-dark) .direct-logo-wall__color {
  mix-blend-mode: multiply;
}

.stories-showcase--direct-logo-wall .direct-logo-wall__item.is-dark .direct-logo-wall__color {
  mix-blend-mode: normal;
}

/* Stories uses the same title-and-description hierarchy as Events. */
.stories-showcase--source-hidden {
  display: none !important;
}

#direct-logo-wall {
  isolation: isolate;
  position: relative;
  overflow: visible !important;
  padding-bottom: 0 !important;
}

#direct-logo-wall > .container-site,
#direct-logo-wall > .direct-logo-wall__group {
  position: relative;
  z-index: 1;
}

.network-video-showcase {
  position: relative;
  z-index: 1;
  padding-block: clamp(3rem, 6vw, 6rem) clamp(5rem, 9vw, 9rem);
}

.network-video-showcase > * {
  width: 100%;
}

@media (max-width: 767px) {
  .network-video-showcase {
    padding-block: 2.5rem 5rem;
  }
}

.network-curve-draw {
  position: absolute;
  z-index: 0;
  top: clamp(-22rem, -25vw, -12rem);
  right: -10vw;
  left: -10vw;
  height: clamp(35rem, 58vw, 50rem);
  overflow: visible;
  pointer-events: none;
}

.network-curve-draw svg {
  width: 100%;
  height: 100%;
  overflow: visible;
}

.network-curve-draw path {
  fill: none;
  stroke: url("#network-curve-spectrum");
  stroke-width: 14;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-dasharray: 1;
  opacity: 0;
}

#direct-logo-wall.is-network-curve-visible .network-curve-draw path {
  animation: network-curve-draw-path 3.4s cubic-bezier(.22, 1, .36, 1) forwards;
}

@keyframes network-curve-draw-path {
  from { opacity: 1; stroke-dashoffset: 1; }
  to { opacity: 1; stroke-dashoffset: 0; }
}

@media (max-width: 767px) {
  .network-curve-draw {
    display: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  .network-curve-draw path {
    opacity: 1;
    stroke-dashoffset: 0;
    animation: none !important;
  }
}

.direct-logo-wall__group {
  padding-top: 0 !important;
  padding-bottom: 0 !important;
}

#direct-logo-wall > .container-site {
  margin-bottom: clamp(3.5rem, 7vw, 7rem);
}

.stories-showcase--direct-logo-wall .direct-logo-wall__group .stories-showcase__track {
  gap: 22px !important;
  padding: 0 !important;
}

.stories-showcase--direct-logo-wall .stories-showcase__header > .eyebrow {
  display: none !important;
}

.stories-showcase--direct-logo-wall .stories-showcase__header {
  margin-bottom: 0 !important;
  padding: 0 1rem !important;
  text-align: center !important;
}

.stories-showcase--direct-logo-wall .stories-showcase__header .section-title {
  font-size: var(--display-h1-size) !important;
  font-weight: 900 !important;
  line-height: .84 !important;
  letter-spacing: -.012em !important;
  text-align: center !important;
}

.stories-showcase--direct-logo-wall .stories-showcase__description {
  width: 100%;
  max-width: 44.2rem;
  margin: clamp(1.5rem, 3vw, 2.25rem) auto 0;
  font-size: clamp(1rem, 1.25vw, 1.35rem);
  line-height: 1.35;
  text-align: center;
}

#direct-logo-wall .partner-logo-wall__label,
#partner-logo-wall .partner-logo-wall__label {
  padding-inline: calc(var(--site-gutter) + 1rem) !important;
  text-align: center !important;
}

/* The main Network heading and both logo-wall labels share one centered axis. */
.stories-showcase--direct-logo-wall .stories-showcase__header .section-title span + span::before {
  content: " ";
}

.about-us-overview__story {
  height: auto;
  min-height: 0;
  aspect-ratio: auto;
}

.about-us-overview__gallery {
  height: auto;
  width: 100%;
  max-width: 100%;
  min-width: 0;
  min-height: 0;
  aspect-ratio: auto;
}

/* Gallery media must be allowed to shrink with the bento column.  Do not give
   either the card or its fullscreen controls a minimum inline size. */
.about-us-overview__gallery .bento-gallery-card,
.about-us-overview__gallery .bento-gallery-card__content,
.gallery-viewer__stage,
.gallery-viewer__thumbs {
  min-width: 0;
  max-width: 100%;
}

/* One visual scale for every module heading and its supporting copy. */
:root {
  --module-title-size: clamp(3rem, 5.2vw, 4.75rem);
  --module-title-leading: .96;
  --module-subtitle-size: 15px;
  --module-subtitle-leading: 1.42;
}

.page-module .section-title,
.page-module .growth-cards-title,
.news-page .section-title {
  font-size: var(--module-title-size) !important;
  line-height: var(--module-title-leading) !important;
}

.page-module .news-index__intro > p,
.page-module .growth-cards-text,
.page-module .stories-showcase__description,
.fellowships-module .text-size-medium,
.fellowships-module .footer-particle-trigger > p,
.news-page .news-index__intro > p {
  font-size: var(--module-subtitle-size) !important;
  line-height: var(--module-subtitle-leading) !important;
}

/* Keep all supporting copy on the same rhythm. */
.stories-showcase__description,
.fellowships-module .footer-particle-trigger > p.mt-8 {
  margin-top: 24px !important;
}

/* The full Events index is list-only; its heading belongs to the homepage module. */
.news-index--all .news-index__intro {
  display: none !important;
}

/* Keep the What we do stack dense while retaining its existing card motion. */
.what-we-do-scroll-logo-pull {
  --pull-distance: 0px;
  --pull-progress: 0;
  --pull-line-scale: 1;
  position: relative;
  z-index: 2;
  width: 48px;
  height: 48px;
  flex: 0 0 48px;
  overflow: visible;
  visibility: hidden;
}

.what-we-do-scroll-logo-pull.is-ready {
  visibility: visible;
}

.what-we-do-scroll-logo-line {
  position: absolute;
  z-index: 0;
  top: 24px;
  left: 23px;
  width: 2px;
  height: var(--pull-distance);
  border-radius: 999px;
  background: #111;
  transform: scaleY(var(--pull-line-scale));
  transform-origin: 50% 0;
  will-change: transform;
}

.what-we-do-scroll-logo-dot {
  position: absolute;
  z-index: 0;
  top: calc(50% - 4px);
  left: calc(50% - 4px);
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #111;
}

.what-we-do-scroll-logo-pull .what-we-do-scroll-logo {
  position: relative;
  z-index: 1;
}

.capabilities-section__cards .growth-stack-card {
  aspect-ratio: 2 / 1;
  padding: clamp(1.5rem, 2.25vw, 2.25rem);
}

.capabilities-section__cards .growth-stack-card__head h3 {
  width: 100%;
  max-width: 100%;
  min-width: 0;
  font-size: clamp(2rem, 2.85vw, 3rem);
  line-height: .98;
  overflow-wrap: anywhere;
  word-break: break-word;
}

.capabilities-section__cards .growth-stack-card__head h3 > span {
  display: block;
  max-width: 100%;
  overflow-wrap: anywhere;
  word-break: break-word;
  hyphens: auto;
}

.capabilities-section {
  min-height: 0;
  padding-top: 64px;
  padding-bottom: 128px;
}

@media (min-width: 768px) {
  .growth-cards-stack.capabilities-section__cards {
    width: calc(100% - min(12vw, 12rem));
    margin-left: auto;
    margin-right: 0;
    padding-inline: 0;
  }
}

/* ICP filing record. */
.site-footer-bar__icp {
  margin-left: 1rem;
  color: rgba(255, 255, 255, 0.44);
  font-size: 16px !important;
  font-weight: 600;
  letter-spacing: 0.06em;
  line-height: 1.48;
  text-transform: uppercase;
  white-space: nowrap;
  text-decoration: none;
}

.site-footer-bar__icp:hover {
  text-decoration: underline;
}

@media (max-width: 767px) {
  .what-we-do-scroll-logo-line,
  .what-we-do-scroll-logo-dot {
    display: none;
  }

  .site-footer-bar__legal {
    flex-wrap: wrap;
    gap: 0.35rem 0.75rem;
  }

  .site-footer-bar__icp {
    margin-left: 0;
  }

  .site-footer-bar__icp {
    letter-spacing: 0.025em;
  }
}

/* Events index: title first, then one continuous vertical article list. */
@media (min-width: 901px) {
  .news-index--all .news-index__layout {
    display: block;
  }

  .news-index--all .news-index__intro {
    position: relative;
    top: auto;
    max-width: none;
    margin-bottom: clamp(3rem, 7vw, 6rem);
  }

  .news-index--all .news-index__grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .news-index--all .featured-article:first-child {
    position: static;
    width: auto;
  }

  .news-index--all .featured-article:first-child .featured-article__link {
    flex-direction: row;
    gap: 28px;
  }

  .news-index--all .featured-article:first-child .featured-article__media {
    width: 10.25rem;
    height: 10.25rem;
    aspect-ratio: auto;
  }

  .news-index--all .featured-article:first-child .featured-article__content {
    padding-right: clamp(0rem, 3vw, 3.75rem);
  }
}

@media (max-width: 900px) {
  .news-index--all .news-index__layout,
  .news-index--all .news-index__grid {
    display: block;
  }

  .news-index--all .news-index__intro {
    position: relative;
    top: auto;
  }

  .news-index--all .featured-article + .featured-article {
    margin-top: 40px;
  }
}

/* WeChat Channels uses its own golden-orange identity. */
.site-footer-bar__channel:nth-child(2):hover,
.nav-contact-card__channel:nth-child(2):hover {
  background: rgba(246, 163, 17, 0.16);
}

.site-footer-bar__channel:nth-child(2):hover img,
.nav-contact-card__channel:nth-child(2):hover img {
  filter: none;
}

/* Channel QR cards stay out of the layout and appear only for the hovered contact. */
.site-footer-bar__channel,
.nav-contact-card__channel {
  position: relative;
  overflow: visible;
}

.site-footer-bar {
  overflow: visible;
  z-index: 50;
  isolation: isolate;
}

.site-footer-bar__channel img.contact-channel__qr,
.nav-contact-card__channel img.contact-channel__qr {
  position: absolute;
  z-index: 100;
  bottom: calc(100% + 0.7rem);
  left: 50%;
  display: block;
  width: clamp(14.4rem, 16vw, 17.6rem);
  max-width: none;
  height: auto;
  aspect-ratio: 1;
  padding: 0.35rem;
  border: 1px solid rgba(17, 17, 17, 0.12);
  border-radius: 0.9rem;
  background: #fff;
  mix-blend-mode: normal;
  box-shadow: 0 14px 30px rgba(17, 17, 17, 0.16);
  object-fit: cover;
  object-position: var(--qr-position, center);
  filter: none !important;
  pointer-events: none;
  opacity: 1;
  visibility: hidden;
  transform: translate(-50%, 0.45rem) scale(0.96);
  transform-origin: center bottom;
  transition: transform 0.12s ease-out;
}

.site-footer-bar__channel:hover img.contact-channel__qr,
.site-footer-bar__channel:focus-visible img.contact-channel__qr,
.nav-contact-card__channel:hover img.contact-channel__qr,
.nav-contact-card__channel:focus-visible img.contact-channel__qr {
  opacity: 1;
  visibility: visible;
  transform: translate(-50%, 0) scale(1);
  transition-delay: 0s;
}

/* Phones have no hover: a tap keeps the selected channel QR visible. */
@media (hover: none), (pointer: coarse) {
  .site-footer-bar__channel.is-qr-active img.contact-channel__qr,
  .nav-contact-card__channel.is-qr-active img.contact-channel__qr {
    opacity: 1;
    visibility: visible;
    transform: translate(-50%, 0) scale(1);
  }
}

/* The navigation contact card opens from the top, so its QR cards expand downward. */
.nav-contact-card__channel img.contact-channel__qr {
  top: calc(100% + 0.7rem);
  bottom: auto;
  transform-origin: center top;
}

/* Keep each footer QR inside the viewport as the three controls sit at its edge. */
.site-footer-bar__channel:first-child img.contact-channel__qr {
  left: 0;
  transform: translate(0, 0.45rem) scale(0.96);
  transform-origin: left bottom;
}

.site-footer-bar__channel:last-child img.contact-channel__qr {
  right: 0;
  left: auto;
  transform: translate(0, 0.45rem) scale(0.96);
  transform-origin: right bottom;
}

.site-footer-bar__channel:first-child:hover img.contact-channel__qr,
.site-footer-bar__channel:first-child:focus-visible img.contact-channel__qr,
.site-footer-bar__channel:last-child:hover img.contact-channel__qr,
.site-footer-bar__channel:last-child:focus-visible img.contact-channel__qr {
  transform: translate(0, 0) scale(1);
}

@media (max-width: 767px) {
  .site-footer-bar__channel img.contact-channel__qr,
  .nav-contact-card__channel img.contact-channel__qr {
    width: min(11rem, calc(100vw - 2rem));
    border-radius: 0.75rem;
  }

  /* The contact drawer clips its children by default. Release that clipping
     only while a QR is open so the code can extend beyond the card. */
  .twostep-nav__bar:has(.nav-contact-card__channel.is-qr-active),
  .twostep-nav__bottom:has(.nav-contact-card__channel.is-qr-active),
  .twostep-nav__bottom-overflow:has(.nav-contact-card__channel.is-qr-active),
  .twostep-nav__visual:has(.nav-contact-card__channel.is-qr-active),
  .nav-contact-popover:has(.nav-contact-card__channel.is-qr-active) {
    overflow: visible !important;
  }

  .nav-contact-card:has(.nav-contact-card__channel.is-qr-active) {
    position: relative;
    z-index: 120;
  }

  .nav-contact-card__channel.is-qr-active img.contact-channel__qr {
    z-index: 220;
  }
}

@media (max-width: 900px) {
  .about-us-overview__story {
    min-height: 0;
  }

  /* The gallery uses absolutely positioned media, so it needs its own intrinsic
     responsive height when the bento grid changes to one column. */
  .about-us-overview__gallery {
    min-height: clamp(20rem, 62vw, 30rem);
    aspect-ratio: 4 / 3;
  }

  .capabilities-section__cards .growth-stack-card {
    aspect-ratio: auto;
    min-height: 15.5rem;
    padding: clamp(1.35rem, 5vw, 1.75rem);
  }

  .capabilities-section__cards .growth-stack-card__head h3 {
    font-size: clamp(1.85rem, 7.25vw, 2.6rem);
  }

}
/* Keep philosophy accordion indices anchored inside their own cards while titles reflow. */
@media (min-width: 768px) {
  .philosophy-accordion__item.drivers-focus-card {
    position: relative;
    min-width: 0;
  }

  .philosophy-accordion__item .drivers-focus-left {
    position: relative;
    min-height: 0;
    padding-bottom: 3rem;
  }

  .philosophy-accordion__item .drivers-focus-button {
    position: absolute;
    z-index: 1;
    bottom: 0;
    left: 0;
    display: flex;
    align-items: flex-end;
    width: auto;
    min-height: 3rem;
  }
}
