/* Mobile typography guardrail: keep key marketing titles to two lines. */
@media screen and (max-width: 767px) {
  #root .hero__title {
    font-size: clamp(25px, 7vw, 28px) !important;
    line-height: 1.12 !important;
    letter-spacing: -0.035em !important;
  }

  #root .bento__header {
    display: flex !important;
    justify-content: center !important;
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
    padding-inline: 14px !important;
    overflow: visible !important;
    text-align: center !important;
  }

  #root .bento__heading {
    --minuit-section-title-font-size: clamp(20px, 5.65vw, 22px);
    --minuit-section-title-line-height: 1.12;
    width: min(100%, calc(100vw - 28px)) !important;
    max-width: calc(100vw - 28px) !important;
    margin: 0 auto !important;
    transform: none !important;
    font-size: clamp(20px, 5.65vw, 22px) !important;
    line-height: 1.12 !important;
    letter-spacing: -0.035em !important;
    text-align: center !important;
    text-wrap: balance;
  }

  #root .section-projects {
    width: 100vw !important;
    max-width: 100vw !important;
    margin-left: calc(50% - 50vw) !important;
    margin-right: calc(50% - 50vw) !important;
    padding-left: 0 !important;
    padding-right: 0 !important;
    overflow-x: hidden !important;
    box-sizing: border-box !important;
  }

  #root .section-projects .project-container,
  #root .section-projects .project-collection {
    width: 100% !important;
    max-width: none !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
    padding-left: 0 !important;
    padding-right: 0 !important;
    box-sizing: border-box !important;
  }

  #root .section-projects .projects {
    width: 100vw !important;
    max-width: 100vw !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
    padding-left: 0 !important;
    padding-right: 0 !important;
    scroll-padding-left: 0 !important;
    scroll-padding-right: 0 !important;
    box-sizing: border-box !important;
  }

  #root .projects__heading,
  #root .app-section__title,
  #root .process-40__title,
  #root .testimonial__heading,
  #root .blog-featured-title,
  #root .cta__heading,
  #root .process-cta__title {
    font-size: clamp(26px, 7.6vw, 30px) !important;
    line-height: 1.12 !important;
    letter-spacing: -0.03em !important;
    text-wrap: balance;
  }

  #root .process-40__subtitle,
  #root .app-section__subtitle,
  #root .blog-featured-subtitle {
    max-width: calc(100vw - 28px) !important;
    font-size: clamp(11px, 3.1vw, 13px) !important;
    line-height: 1.35 !important;
    text-wrap: balance;
  }

  #root .bento__card--team .bento-cad__title,
  #root .bento__card--chat .bento-cad__title {
    width: 100% !important;
    max-width: 100% !important;
    padding-left: 6px !important;
    padding-right: 6px !important;
    font-size: clamp(12.5px, 3.45vw, 14px) !important;
    line-height: 1.15 !important;
    letter-spacing: -0.045em !important;
    word-spacing: -0.05em !important;
    text-wrap: balance;
  }

  #root .bento-cad__title-copy,
  #root .bento-cad__title-2,
  #root .process-40__card-title,
  #root .project__card-title {
    line-height: 1.15 !important;
    text-wrap: balance;
  }

  #root .blog-article-scroller__title {
    display: -webkit-box !important;
    overflow: hidden !important;
    max-height: 2.5em !important;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    font-size: clamp(14px, 4vw, 16px) !important;
    line-height: 1.25 !important;
  }
}

@media screen and (max-width: 374px) {
  #root .hero__title {
    font-size: 24px !important;
  }

  #root .bento__heading {
    --minuit-section-title-font-size: 19px;
    font-size: 19px !important;
  }
}
