/* The first screen keeps its existing artwork and typography. */
@media (min-width: 1200px) {
  #top.mxd-hero-07 {
    background-image:
      radial-gradient(ellipse 43% 46% at 50% 75%, #220e38a6 0%, #220e3854 48%, transparent 100%),
      url("brand/wide-pattern.jpg");
  }
}

@media (max-width: 767px) {
  #top .mxd-hero-07__bottom {
    overflow-x: clip;
    overflow-y: visible;
  }

  #top .mxd-hero-07__circle {
    margin-bottom: 76px;
  }

  #top .hero-07-circle__container.mobile-row {
    position: absolute;
    inset: calc(100% + 16px) 0 auto;
    display: grid;
    grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr);
    align-items: center;
    justify-items: center;
    gap: 0;
  }

  #top .hero-07-circle__container.mobile-row .hero-07-circle__item {
    position: static;
    width: 100%;
    max-width: none;
    border: 0;
    border-radius: 0;
    padding: 0 8px;
    background: none;
    box-shadow: none;
    backdrop-filter: none;
  }

  #top .hero-07-circle__container.mobile-row .hero-07-circle__item + .hero-07-circle__item {
    border-inline-start: 1px solid #f3deff4a;
  }

  #top .mobile-row .mxd-counter {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: clamp(5px, 2vw, 10px);
  }

  #top .mobile-row .mxd-counter__number {
    flex: none;
    margin: 0;
    font-size: clamp(24px, 7.3vw, 34px);
    line-height: 1;
    white-space: nowrap;
  }

  #top .mobile-row .mxd-counter__descr {
    margin: 0;
    font-size: clamp(10px, 3.1vw, 13px);
    line-height: 1.25;
  }
}

/* Keep the second line inside the desktop content edge during its reveal. */
@media (min-width: 1200px) {
  .hs-statement__effect {
    padding-inline-end: .28em;
  }
}

@media (max-width: 767px) {
  #projects.hs-projects {
    padding-top: 44px;
  }

  #projects .mxd-projects-masonry__title.headline-title {
    margin-bottom: 38px;
  }
}

/* Put the case information outside the image and on one shared left edge. */
#projects {
  --project-caption: #51455e;
  --project-meta: #655572;
}

html[color-scheme="dark"] #projects {
  --project-caption: #c8b9d4;
  --project-meta: #b7a3c8;
}

#projects .mxd-project-item .masonry-promo {
  display: grid;
  justify-items: start;
  gap: 7px;
  margin-top: clamp(16px, 2vw, 26px);
  padding: 0;
}

#projects .masonry-promo .mxd-project-item__name {
  margin: 0;
  font-size: clamp(23px, 2.25vw, 36px);
  font-weight: 500;
  line-height: 1.12;
  letter-spacing: -.035em;
}

#projects .masonry-promo .mxd-project-item__name a {
  inline-size: fit-content;
  color: var(--t-bright);
  background: none;
}

#projects .masonry-promo .mxd-project-item__name a:is(:hover, :focus-visible) {
  color: var(--accent);
}

#projects .hs-project-summary {
  margin: 0;
  font: 400 clamp(15px, 1.35vw, 20px)/1.4 var(--_font-default);
  color: var(--project-caption);
}

#projects .hs-project-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 9px;
  margin-top: 4px;
  color: var(--project-meta);
  font: 400 clamp(11px, 1.05vw, 14px)/1.4 var(--hs-font-mono);
}

#projects .hs-project-meta span {
  display: inline-flex;
  align-items: center;
  gap: 9px;
}

#projects .hs-project-meta span + span::before {
  content: "";
  width: 3px;
  height: 3px;
  border-radius: 50%;
  background: currentColor;
}

/* The same surface frames each service. Violet is concentrated near the artwork. */
#insights {
  --service-surface: #f2ebf6;
  --service-title-ink: #261831;
  --service-body-ink: #53425e;
  --service-tag-edge: #6344784d;
  --service-glow: #b966e94d;
  --service-arrow: #71239c;
  --service-arrow-surface: #ffffffa6;
  --service-arrow-hover: #efe1f8;
}

html[color-scheme="dark"] #insights {
  --service-surface: #1a1125;
  --service-title-ink: #fbf5ff;
  --service-body-ink: #d9cce5;
  --service-tag-edge: #dfbbff57;
  --service-glow: #802fba5e;
  --service-arrow: #edd5ff;
  --service-arrow-surface: #33194b;
  --service-arrow-hover: #492568;
}

#insights .hs-service-card .mxd-services-cards__inner {
  --service-glow-position: 82% 77%;
  background: radial-gradient(ellipse at var(--service-glow-position), var(--service-glow), transparent 58%), var(--service-surface);
  color: var(--service-title-ink);
}

#insights .hs-service-card:nth-child(2) .mxd-services-cards__inner {
  --service-glow-position: 58% 84%;
}

#insights .hs-service-card:nth-child(3) .mxd-services-cards__inner {
  --service-glow-position: 83% 55%;
}

#insights .hs-service-card .mxd-services-cards__info > p {
  color: var(--service-body-ink);
}

#insights .hs-service-card .mxd-services-cards__tags .tag {
  color: var(--service-title-ink);
  border-color: var(--service-tag-edge);
}

#insights .hs-service-card .mxd-services-cards__controls a {
  background: var(--service-arrow-surface) !important;
  border: 1px solid var(--service-tag-edge);
  color: var(--service-arrow) !important;
}

#insights .hs-service-card .mxd-services-cards__controls a:is(:hover, :focus-visible) {
  background: var(--service-arrow-hover) !important;
}

@media (max-width: 1199px) {
  #insights .hs-service-card .mxd-services-cards__inner {
    --service-glow-position: 56% 84%;
  }
}

/* Constrain the copy to a pale panel and keep one focal image. */
#contact .mxd-promo__inner {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  padding: 0;
  isolation: isolate;
  border-radius: clamp(22px, 3vw, 42px);
  background: #faf6fc;
}

#contact .mxd-promo__bg {
  position: static;
  grid-area: 1 / 2;
  inline-size: auto;
  block-size: auto;
  background-position: center;
}

#contact .mxd-promo__content {
  grid-area: 1 / 1;
  align-self: center;
  margin: 0;
  padding: clamp(28px, 4vw, 72px);
  gap: clamp(24px, 3.5vw, 64px);
  container-type: inline-size;
}

#contact .mxd-promo__title {
  display: block;
  width: 100%;
  margin: 0;
  line-height: 1;
}

#contact .mxd-promo__caption {
  color: #201327;
  font-size: min(10.2cqi, 84px) !important;
  line-height: 1.08;
  letter-spacing: -.035em;
}

#contact .mxd-promo__images {
  position: relative;
  inset: auto;
  grid-area: 1 / 2;
  display: grid;
  place-items: center;
  inline-size: auto;
  block-size: auto;
  min-height: clamp(310px, 34vw, 555px);
  pointer-events: none;
}

#contact .mxd-promo__images .promo-image-1 {
  position: static;
  width: min(72%, 425px);
  max-height: 82%;
  object-fit: contain;
}

@media (max-width: 767px) {
  #contact .mxd-promo__inner {
    grid-template-columns: minmax(0, 1fr);
  }

  #contact .mxd-promo__content {
    padding: clamp(24px, 6.5vw, 42px);
  }

  #contact :is(.mxd-promo__bg, .mxd-promo__images) {
    grid-area: 2 / 1;
  }

  #contact .mxd-promo__images {
    min-height: clamp(172px, 56vw, 305px);
  }

  #contact .mxd-promo__images .promo-image-1 {
    width: min(54%, 210px);
  }
}

/* The animated statement is reserved for the desktop layout. */
@media (max-width: 1199px) {
  .hs-statement {
    display: none;
  }
}
