.hero-wrapper iframe.tools-video-embed {
  max-width: 100%;
  width: 100%;
  height: 870px;
  border-radius: 40px;
  border: 0;
  display: block;
  object-fit: cover;
}

@media (max-width: 1300px) {
  .hero-wrapper iframe.tools-video-embed {
    height: 700px;
  }

  .hero-wrapper.version-4 iframe.tools-video-embed {
    height: 800px;
  }
}

@media (max-width: 991px) {
  .hero-wrapper iframe.tools-video-embed {
    border-radius: 20px;
  }
}

@media (max-width: 767px) {
  .hero-wrapper.version-4 iframe.tools-video-embed {
    height: 740px;
  }
}

.services-content-wrapper__video iframe.tools-video-embed {
  max-width: 100%;
  margin: 50px auto 0 auto;
  border-radius: 40px;
  display: block;
  border: 0;
  width: 100%;
  aspect-ratio: 16 / 9;
  height: auto;
  min-height: 420px;
}

@media (max-width: 1200px) {
  .services-content-wrapper__video iframe.tools-video-embed {
    border-radius: 0;
  }
}

/* GraphQL: Next.js Headless Starter after the in-page form — Figma 21258:36306 */
.services-content-wrapper .contactus-form + .services-content-wrapper__video,
.services-content-wrapper .footer-contact + .services-content-wrapper__video {
  margin-top: 0;
  padding-top: 110px;
  background-color: #101010;
}

.services-content-wrapper .contactus-form + .services-content-wrapper__video h3,
.services-content-wrapper .footer-contact + .services-content-wrapper__video h3 {
  margin-bottom: 30px;
}

/* Kill the blue gradient strip under the form card (padding + rounded-corner leak) */
.services-content-wrapper .footer-contact:has(+ .services-content-wrapper__video),
.services-content-wrapper .contactus-form:has(+ .services-content-wrapper__video) {
  padding-bottom: 0;
}

.services-content-wrapper .footer-contact:has(+ .services-content-wrapper__video)::after,
.services-content-wrapper .contactus-form:has(+ .services-content-wrapper__video)::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 48px;
  background: #101010;
  pointer-events: none;
  z-index: 0;
}

@media (max-width: 1200px) {
  .services-content-wrapper .contactus-form + .services-content-wrapper__video,
  .services-content-wrapper .footer-contact + .services-content-wrapper__video {
    padding-top: 80px;
  }
}

/* GraphQL page — mobile only (Figma 21317:36971, 375 frame). Desktop unchanged. */
@media (max-width: 767px) {
  html.page-graphql,
  html.page-graphql body {
    overflow-x: hidden;
  }

  html.page-graphql .hero-wrapper.version-4,
  html.page-graphql .services-content-wrapper {
    max-width: 100%;
    overflow-x: hidden;
  }

  /* Hero card: 5px inset, 20px radius. Video fills the card; copy is in-flow so
     the plugin blurb cannot overflow onto Integration Benefits. */
  html.page-graphql .hero-wrapper.version-4 {
    padding: 5px !important;
  }

  html.page-graphql .hero-wrapper.version-4 > .position-relative {
    position: relative;
    min-height: 738px;
    overflow: hidden;
    border-radius: 20px;
  }

  html.page-graphql .hero-wrapper.version-4 iframe.tools-video-embed,
  html.page-graphql .hero-wrapper.version-4 video {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    min-height: 738px;
    border-radius: 20px;
    object-fit: cover;
    z-index: 0;
  }

  html.page-graphql .hero-wrapper.version-4 .hero-wrapper__content {
    position: relative !important;
    height: auto !important;
    max-height: none !important;
    top: auto !important;
    bottom: auto !important;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch !important;
    justify-content: flex-start !important;
    padding: 125px 10px 40px;
    width: 100%;
    box-sizing: border-box;
    gap: 0;
    z-index: 1;
  }

  html.page-graphql .hero-wrapper.version-4 .hero-wrapper__content .content-center {
    display: flex;
    flex-direction: column;
    align-items: center;
    max-width: 100%;
    width: 100%;
    padding: 0;
    gap: 18px;
    text-align: center;
  }

  html.page-graphql .hero-wrapper.version-4 .hero-wrapper__content .content-center h1.title_2 {
    font-size: 40px;
    line-height: 50px;
    letter-spacing: 1.2px;
    font-weight: 500;
    text-align: center;
    max-width: 100%;
    margin: 0;
  }

  html.page-graphql .hero-wrapper.version-4 .hero-wrapper__content .content-center p {
    font-size: 15px;
    line-height: 25px;
    letter-spacing: 0.45px;
    text-align: center;
    margin: 0;
    -webkit-line-clamp: unset;
    overflow: visible;
    display: block;
  }

  html.page-graphql .hero-wrapper.version-4 .hero-wrapper__content .content-center .btn-blue {
    width: auto;
    min-width: 199px;
    height: 55px;
    margin: 0;
    padding: 0 10px;
    border-radius: 10px;
    font-size: 15px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
  }

  /* Why Free / Arroact.Umbraco.GraphQL — 20px page inset, 25px title */
  html.page-graphql .hero-wrapper.version-4 .hero-wrapper__content .d-grid {
    display: flex !important;
    flex-direction: column;
    align-items: flex-start;
    gap: 25px;
    width: calc(100% - 10px);
    max-width: 100%;
    min-width: 0;
    margin: 70px 5px 0;
    text-align: left;
  }

  html.page-graphql .hero-wrapper.version-4 .hero-wrapper__content .d-grid .col {
    display: block;
    width: 100% !important;
    max-width: 100%;
    min-width: 0;
    flex: none;
  }

  html.page-graphql .hero-wrapper.version-4 .hero-wrapper__content .d-grid .title_3 {
    display: block;
    width: 100%;
    max-width: 100%;
    margin: 0;
    font-size: 25px;
    line-height: 45px;
    letter-spacing: 0.75px;
    font-weight: 300;
    overflow: visible;
    -webkit-line-clamp: unset;
    line-clamp: unset;
    white-space: normal;
    overflow-wrap: anywhere;
    word-break: break-word;
  }

  html.page-graphql .hero-wrapper.version-4 .hero-wrapper__content .d-grid p {
    display: block;
    width: 100%;
    max-width: 100%;
    margin: 0;
    font-size: 16px;
    line-height: 30px;
    letter-spacing: 0.48px;
    font-weight: 200;
    overflow: visible;
    -webkit-line-clamp: unset;
    line-clamp: unset;
    overflow-wrap: anywhere;
    word-break: break-word;
  }

  /* Body copy: 15px side inset (345/375) */
  html.page-graphql .services-content-wrapper .container,
  html.page-graphql .services-content-wrapper > .services-content-wrapper__video > .container {
    width: calc(100% - 30px);
    max-width: 100%;
    margin-left: auto;
    margin-right: auto;
    box-sizing: border-box;
  }

  html.page-graphql .services-content-wrapper.top-gap {
    margin-top: 0;
  }

  html.page-graphql .benefits-wrapper {
    margin: 50px auto 0;
    padding-top: 0;
    position: relative;
    z-index: 1;
  }

  html.page-graphql .benefits-wrapper h3 {
    font-size: 35px;
    line-height: 45px;
    letter-spacing: 1.05px;
    font-weight: 300;
    margin-bottom: 30px;
  }

  html.page-graphql .benefits-wrapper > .container > p {
    font-size: 16px;
    line-height: 30px;
    letter-spacing: 0.48px;
    font-weight: 200;
  }

  html.page-graphql .benefits-wrapper .d-grid {
    padding: 0;
    margin: 0;
    border-top: 1px solid rgba(255, 255, 255, 0.2);
  }

  html.page-graphql .benefits-wrapper .d-grid:first-of-type {
    margin-top: 70px;
    padding-top: 0;
    border-top: 0;
  }

  html.page-graphql .benefits-wrapper .d-grid .title {
    font-size: 30px;
    line-height: 35px;
    letter-spacing: 0.9px;
    font-weight: 600;
    margin-bottom: 25px;
  }

  html.page-graphql .benefits-wrapper .d-grid p {
    font-size: 14px;
    line-height: 25px;
    letter-spacing: 0.42px;
  }

  html.page-graphql .benefits-wrapper .d-grid + .d-grid {
    margin-top: 40px;
    padding-top: 40px;
  }

  /* Query builder heading + cards */
  html.page-graphql .services-wrapper.w-full {
    margin: 70px auto 0;
    padding: 0;
  }

  html.page-graphql .services-wrapper .col-2 .title_3,
  html.page-graphql .services-wrapper h2,
  html.page-graphql .services-wrapper .title_3 {
    font-size: 35px;
    line-height: 45px;
    letter-spacing: 1.05px;
    font-weight: 300;
    margin-top: 0;
    margin-bottom: 0;
  }

  html.page-graphql .services-wrapper_items {
    margin-top: 40px;
    display: flex;
    flex-direction: column;
    gap: 15px;
  }

  html.page-graphql .services-wrapper_items .d-flex {
    width: 100%;
    padding: 20px 15px;
    gap: 15px;
    border-radius: 20px;
    box-sizing: border-box;
  }

  html.page-graphql .services-wrapper_items .item-icon {
    width: 60px;
    min-width: 60px;
    max-width: 60px;
    height: 60px;
  }

  html.page-graphql .services-wrapper_items .item-content h3,
  html.page-graphql .services-wrapper_items .item-content .title {
    font-size: 20px;
    letter-spacing: 0.6px;
    font-weight: 500;
  }

  html.page-graphql .services-wrapper_items .item-content p {
    font-size: 12px;
    line-height: 20px;
    letter-spacing: 0.36px;
    margin-top: 10px;
  }

  /* See it in action / Next.js: 15px copy, full-bleed 16:9 video */
  html.page-graphql .services-content-wrapper__video {
    margin: 50px auto 0;
  }

  html.page-graphql .services-content-wrapper__video h3 {
    font-size: 35px;
    line-height: 45px;
    letter-spacing: 1.05px;
    font-weight: 300;
    margin-bottom: 30px;
  }

  html.page-graphql .services-content-wrapper__video p {
    font-size: 16px;
    line-height: 30px;
    letter-spacing: 0.48px;
    font-weight: 200;
  }

  html.page-graphql .services-content-wrapper__video iframe.tools-video-embed {
    width: 100%;
    max-width: 100%;
    margin: 30px 0 0;
    min-height: 0;
    height: auto;
    aspect-ratio: 1420 / 799;
    border-radius: 0;
  }

  html.page-graphql .services-content-wrapper .footer-contact + .services-content-wrapper__video {
    padding-top: 50px;
  }

  html.page-graphql .services-content-wrapper .footer-contact:has(+ .services-content-wrapper__video)::after {
    height: 20px;
  }

  /* Form: 5px inset, 60px vertical pad, 20px card radius */
  html.page-graphql .services-content-wrapper .footer-contact {
    margin-top: 0 !important;
    padding: 60px 5px !important;
  }

  html.page-graphql .services-content-wrapper .footer-contact__content {
    max-width: 100%;
    width: 100%;
    margin: 0 auto;
    padding: 30px 15px !important;
    border-radius: 20px;
    box-sizing: border-box;
  }

  html.page-graphql .services-content-wrapper .footer-contact .flex-head,
  html.page-graphql .services-content-wrapper .footer-contact .footer-contact__items,
  html.page-graphql .services-content-wrapper .footer-contact .footer-contact__form {
    width: 100%;
    min-width: 0;
    max-width: 100%;
  }

  html.page-graphql .services-content-wrapper .footer-contact h3.title_3 {
    font-size: 35px;
    line-height: 45px;
    letter-spacing: 1.05px;
    font-weight: 300;
    margin: 0 0 30px;
  }

  /* Manage your query cards */
  html.page-graphql .box-items-2 {
    margin: 50px auto 0;
  }

  html.page-graphql .box-items-2 h3 {
    font-size: 35px;
    line-height: 45px;
    letter-spacing: 1.05px;
    font-weight: 300;
    margin-bottom: 30px;
  }

  html.page-graphql .box-items-2 .d-grid {
    display: flex !important;
    flex-direction: column;
    gap: 20px;
    width: calc(100% - 30px);
    max-width: 100%;
    margin-left: auto;
    margin-right: auto;
  }

  html.page-graphql .box-items-2 .d-grid .item {
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    padding: 25px;
    border-radius: 20px;
  }

  html.page-graphql .box-items-2 .d-grid .item .title,
  html.page-graphql .box-items-2 .d-grid .item h3 {
    font-size: 30px;
    line-height: 35px;
    letter-spacing: 0.9px;
  }

  html.page-graphql .box-items-2 .d-grid .item p {
    font-size: 14px;
    line-height: 25px;
    letter-spacing: 0.42px;
  }
}
