/* The same section grid on React pages and mirrored HTML pages. */
:root { --site-gutter: 100px; }
@media (min-width: 1280px) { :root { --site-gutter: 160px; } }
@media (min-width: 1920px) { :root { --site-gutter: 200px; } }
@media (max-width: 991px) { :root { --site-gutter: 64px; } }
@media (max-width: 767px) { :root { --site-gutter: 40px; } }
@media (max-width: 479px) { :root { --site-gutter: 24px; } }

.content:not(.results):not(.blog) { padding-inline: var(--site-gutter); }
.content > .vertical-wrapper-40px { width: 100%; max-width: none; }
.content:has(> .footer.lightmode) { margin-bottom: clamp(64px, 6vw, 112px); }
.footer.lightmode { margin-bottom: 0; }
.results-panel { padding-inline: var(--site-gutter); }
.results-panel .results-inner,
.chapter-grid, .trust-inner, .services-inner, .svc-list-page { max-width: none; }

/* About: keep section edges on the header grid; constrain only the copy. */
.page-about .content.first-item { gap: clamp(80px, 8vw, 128px); }
.page-about .content > .vertical-wrapper-20px.center.first.left,
.page-about .content > .vertical-wrapper-20px._1200 {
  width: 100%; max-width: none; align-self: stretch;
}
.page-about .hero-left { width: 100%; max-width: none; }
.page-about .hero-left h1 { max-width: 18ch; text-wrap: balance; }
.page-about .hero-left .paragraph { max-width: 72ch; }
.page-about .about-team-intro { max-width: 72ch; }
.page-about .about-logos { min-width: 0; }

/* Open Source: shared outer grid, readable inner panels and steps. */
.page-open-source .content > :is(.vertical-wrapper-40px,.vertical-wrapper-64px) {
  width: 100%; max-width: none; min-width: 0;
}
.page-open-source .outline-1px-2 {
  max-width: 1100px;
  align-self: center;
  margin-inline: auto;
  padding: clamp(24px, 3.4vw, 48px);
  gap: 32px;
}
.page-open-source .outline-1px-2 > .vertical-wrapper-16-px {
  width: 100%; max-width: 1000px; gap: 32px;
}
.page-open-source .outline-1px-2 .heading-16 {
  max-width: 32ch; margin-inline: auto; text-wrap: balance;
}
.page-open-source .outline-1px-2 .horizontal-wrapper-24-px {
  gap: 24px 48px;
}
.page-open-source .outline-1px-2 .wrapper-11 { align-items: flex-start; }
.page-open-source .outline-1px-2.bottom .vertical-wrapper-12-px {
  display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px 48px;
  max-width: 800px; align-self: center;
}
.page-open-source .outline-1px-2 .custom-cta-button {
  width: fit-content; max-width: 100%; align-self: center;
  white-space: normal; overflow-wrap: anywhere; text-align: center;
  font-size: var(--type-control); padding: 16px 28px;
}
.page-open-source .vertical-wrapper-20-px {
  padding: 0; width: fit-content; max-width: min(1100px, 100%); align-self: center; margin-inline: auto;
}
.page-open-source .horizontal-wrapper-12px-3 { flex: 1; min-width: 0; max-width: none; }
.page-open-source .horizontal-wrapper-12px-3 .heading-15 { max-width: 54ch; }
.page-open-source .horizontal-wrapper-12px-3 .paragraph-14 { max-width: 70ch; }
.page-open-source .horizontal-wrapper-12px-2 > .vertical-wrapper-0px-6 { flex-shrink: 0; }
@media (max-width: 767px) {
  .page-about .content.first-item { gap: 72px; }
  .page-open-source .outline-1px-2 .horizontal-wrapper-24-px { flex-direction: column; }
  .page-open-source .outline-1px-2.bottom .vertical-wrapper-12-px { grid-template-columns: minmax(0, 1fr); }
}
.page-open-source .outline-1px-2 .grid-item-1-2 {
  display: grid; grid-template-columns: repeat(2, minmax(0, 1fr));
  width: 100%; gap: 24px 48px;
}
.page-open-source .outline-1px-2 .grid-item-1-2.bottom {
  grid-template-columns: minmax(0, 1fr); max-width: 800px; align-self: center;
}
@media (max-width: 767px) {
  .page-open-source .outline-1px-2 .grid-item-1-2 { grid-template-columns: minmax(0, 1fr); }
}

.page-open-source .vertical-wrapper-40px > .vertical-wrapper-0px:has(> .vertical-wrapper-20-px) {
  width: 100%; min-width: 0;
}

/* Reading measure affects article content only, leaving the masthead intact. */
@media (min-width: 992px) {
  .content.blog { container-type: inline-size; }
  .content.blog .blog-text.w-richtext {
    width: 100%; max-width: 64ch; margin-inline: auto;
  }
  .content.blog .form.blog {
    width: 100%; max-width: 64ch; margin-inline: auto;
    font-family: var(--font-body); font-size: var(--type-body);
  }
  .content.blog .blog-text.w-richtext figure.w-richtext-figure-type-image,
  .content.blog .blog-text.w-richtext > .w-embed:has(video),
  .content.blog .blog-text.w-richtext > img {
    width: 100cqw;
    max-width: none;
    margin-inline: calc((100% - 100cqw) / 2);
  }
  .content.blog .blog-text.w-richtext figure.w-richtext-figure-type-image > div {
    width: 100%;
  }
  .content.blog .blog-text.w-richtext figure.w-richtext-figure-type-image img {
    width: 100%; height: auto;
  }
}
.body .heading-2.lightmode.center.closing-headline {
  max-width: 22ch; margin-inline: auto; text-wrap: balance;
}
/* Anchor the About glow to the title group, rather than the full hero copy. */
.page-about .hero-left > .vertical-wrapper-8px {
  position: relative; width: fit-content; max-width: 100%;
}
.page-about .hero-left .vertical-wrapper-8px > .gradient-wrapper .gradient-radial {
  width: 480px; height: 480px; max-width: none;
  left: 65%; top: 55%; margin: 0; transform: translate(-50%, -50%);
}
@media (max-width: 767px) {
  .page-about .hero-left .vertical-wrapper-8px > .gradient-wrapper .gradient-radial {
    width: 100%; height: auto; aspect-ratio: 1; left: 50%;
  }
}

.page-open-source .outline-1px-2.bottom { max-width: 860px; }
.page-open-source .outline-1px-2.bottom .grid-item-1-2,
.page-open-source .outline-1px-2.bottom .vertical-wrapper-12-px {
  width: 100%; max-width: none;
}

/* White navigation controls and footer links on the Open Source dark page. */
.page-open-source .navbar.light-mode.darkmode {
  background-image: linear-gradient(180deg, var(--dark-black), #0a0b0b00);
}
.page-open-source .nav-wrapper .button.secondary.nav {
  color: var(--white); border-color: var(--white); background: transparent;
}
.page-open-source .nav-wrapper .button.secondary.nav:is(:hover, :focus-visible) {
  color: var(--white); border-color: var(--white); background: #ffffff1a;
}
.page-open-source .footer a,
.page-open-source .footer .footer-link { color: var(--white); }
.page-open-source .footer a:is(:hover, :focus-visible),
.page-open-source .footer a:is(:hover, :focus-visible) .footer-link { color: var(--blue-02); }

.page-open-source .grid-24px._2x2 > .outline-1px.grid-item-2.darkmode {
  opacity: 1 !important;
  transform: none !important;
  background-image: none;
  -webkit-backdrop-filter: none;
  backdrop-filter: none;
}
/* The surface stays painted; only the copy inside it reveals on scroll. */
.page-open-source .content.color.darkmode-color,
.page-open-source .content.color.darkmode-color > .vertical-wrapper-40px {
  opacity: 1 !important;
  transform: none !important;
}
.page-open-source .os-benefit-card::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  pointer-events: none;
  background-image: linear-gradient(90deg, #d0e3ff08, #d0e3ff14 25% 75%, #d0e3ff08);
  -webkit-backdrop-filter: none;
  backdrop-filter: none;
}
.page-open-source .os-benefit-card > .grid-item-2 { z-index: 1; }
.page-open-source .os-benefit-card-copy {
  display: flex;
  flex-direction: column;
  gap: 16px;
  width: 100%;
}
/* Webflow adds inline preserve-3d to its reveal layers. Flatten this 2D
   section so backdrop filters can sample the section's background. */
.page-open-source .content.color.darkmode-color,
.page-open-source .content.color.darkmode-color * {
  transform-style: flat !important;
}

.page-open-source .nav-wrapper .nav-link { color: var(--white); }
.page-open-source .nav-wrapper .nav-link:is(:hover, :focus-visible),
.page-open-source .nav-wrapper .nav-link.w--current { color: var(--blue-01); }
.footer a[href^="mailto:"] { cursor: pointer; }
