body.page-home .hero-copy h1 {
  max-width: 11ch;
}

body.page-home .hero-copy p {
  max-width: 58ch;
}

body.page-home .hero-copy > p:not(.kicker) {
  color: rgba(244, 241, 232, 0.94);
  font-weight: 500;
  text-shadow: 0 1px 16px rgba(0, 0, 0, 0.58);
}

body.page-home .surface.panel img {
  border-radius: calc(var(--radius-lg) - 0.2rem);
}

body.page-home .grid.grid-4 {
  align-items: stretch;
}

body.page-home service-card,
body.page-home ai-service-card,
body.page-home case-study-card,
body.page-home blog-card,
body.page-home section-title,
body.page-home cta-section,
body.page-home contact-form {
  display: block;
  min-width: 0;
}

body.page-home service-card .service-card,
body.page-home blog-card .blog-card {
  display: flex;
  min-width: 0;
  flex-direction: column;
}

body.page-home service-card .text-link,
body.page-home blog-card .text-link {
  margin-top: auto;
}

body.page-home .home-value-section .surface.panel img,
body.page-home .home-case-study-section .surface.panel img {
  width: 100%;
  height: auto;
  object-fit: contain;
}

body.page-home .home-ai-network-picture {
  display: block;
}

body.page-home .home-ai-network-picture img {
  width: 100%;
  height: auto;
}

body.page-home .home-services-section .card-media {
  aspect-ratio: 16 / 9;
}

body.page-home .home-webpronto-callout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: var(--space-md);
  align-items: center;
  margin-top: var(--space-md);
  border-color: rgba(57, 214, 200, 0.24);
  background:
    linear-gradient(145deg, rgba(57, 214, 200, 0.09), rgba(255, 177, 92, 0.07)),
    rgba(244, 241, 232, 0.045);
}

body.page-home .home-webpronto-callout h3 {
  margin-bottom: 0.5rem;
}

body.page-home .home-webpronto-callout p:last-child {
  margin-bottom: 0;
  color: var(--color-muted);
}

body.page-home .home-services-section service-card:nth-child(1) .card-media {
  object-position: 50% 44%;
}

body.page-home .home-services-section service-card:nth-child(2) .card-media,
body.page-home .home-services-section service-card:nth-child(3) .card-media {
  object-position: 50% 48%;
}

body.page-home .home-contact-section {
  padding-top: 2rem;
}

@media (min-width: 761px) and (max-width: 1040px) {
  body.page-home .container {
    width: min(920px, calc(100vw - 3rem));
  }

  body.page-home .hero {
    min-height: auto;
    padding-block: 4.5rem;
  }

  body.page-home .hero-copy {
    max-width: 48rem;
  }

  body.page-home .hero-copy h1 {
    max-width: 15ch;
    font-size: clamp(2.7rem, 6.2vw, 3.5rem);
  }

  body.page-home .hero-visual {
    max-width: 46rem;
  }

  body.page-home .home-services-section .grid.grid-4,
  body.page-home .home-insights-section .grid.grid-3 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  body.page-home .home-webpronto-callout {
    grid-template-columns: 1fr;
  }

  body.page-home .home-ai-section .grid.grid-3 {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  body.page-home .home-case-study-section .grid.grid-2 {
    grid-template-columns: minmax(0, 1.08fr) minmax(0, 0.92fr);
    align-items: stretch;
  }

  body.page-home .home-case-study-section .surface.panel,
  body.page-home .home-case-study-section case-study-card,
  body.page-home .home-case-study-section .case-study-card {
    height: 100%;
  }

  body.page-home .home-case-study-section .case-study-card {
    display: flex;
    flex-direction: column;
    justify-content: center;
  }
}

@media (max-width: 760px) {
  body.page-home {
    --home-inline-space: 0.85rem;
  }

  body.page-home .container {
    width: calc(100vw - (var(--home-inline-space) * 2));
  }

  body.page-home main > section:not(.hero) {
    padding-block: 2.35rem;
  }

  body.page-home main > section.home-contact-section {
    padding-top: 1.25rem;
    padding-bottom: 3.25rem;
  }

  body.page-home .section-head {
    max-width: none;
    margin-bottom: 1.15rem;
  }

  body.page-home .section-head .kicker {
    margin-bottom: 0.45rem;
    font-size: 0.66rem;
    line-height: 1.35;
  }

  body.page-home .section-head h2 {
    margin-bottom: 0.65rem;
    font-size: clamp(1.42rem, 6.7vw, 1.8rem);
    line-height: 1.13;
    text-wrap: balance;
  }

  body.page-home .section-head p:last-child {
    margin-bottom: 0;
    font-size: 0.9rem;
    line-height: 1.55;
  }

  body.page-home .hero {
    min-height: auto;
    padding-top: 2.25rem;
    padding-bottom: 2.1rem;
  }

  body.page-home .hero-bg {
    opacity: 0.2;
    object-position: 52% center;
    filter: saturate(0.72) contrast(1.12);
  }

  body.page-home .hero::before {
    background:
      linear-gradient(180deg, rgba(13, 15, 18, 0.26) 0%, rgba(13, 15, 18, 0.94) 100%),
      radial-gradient(circle at 12% 22%, rgba(255, 177, 92, 0.18) 0%, transparent 38%),
      radial-gradient(circle at 88% 30%, rgba(57, 214, 200, 0.16) 0%, transparent 42%);
  }

  body.page-home .hero-grid {
    gap: 1.1rem;
  }

  body.page-home .hero-copy h1 {
    max-width: 16ch;
    margin-bottom: 0.75rem;
    font-size: clamp(1.9rem, 8.25vw, 2.35rem);
    line-height: 1.07;
    letter-spacing: -0.02em;
    text-wrap: balance;
  }

  body.page-home .hero-copy .kicker {
    margin-bottom: 0.55rem;
    font-size: 0.66rem;
    line-height: 1.4;
  }

  body.page-home .hero-copy > p:not(.kicker) {
    margin-bottom: 0;
    font-size: 0.91rem;
    line-height: 1.55;
    text-shadow: 0 1px 12px rgba(0, 0, 0, 0.72);
  }

  body.page-home .hero-actions {
    gap: 0.52rem;
    margin-top: 1rem;
  }

  body.page-home .home-webpronto-callout {
    grid-template-columns: 1fr;
    gap: 0.9rem;
  }

  body.page-home .home-webpronto-callout .btn {
    width: 100%;
  }

  body.page-home .hero-actions .btn {
    min-height: 2.85rem;
    padding: 0.68rem 1rem;
    font-size: 0.84rem;
  }

  body.page-home .hero-visual {
    padding: 0.85rem;
    border-radius: 0.9rem;
  }

  body.page-home .hero-visual::before {
    inset: 6px;
  }

  body.page-home .hero-list {
    gap: 0.62rem;
  }

  body.page-home .hero-list li {
    gap: 0.55rem;
    font-size: 0.81rem;
    line-height: 1.42;
  }

  body.page-home .hero-list li::before {
    width: 8px;
    height: 8px;
    margin-top: 0.32rem;
  }

  body.page-home .home-value-section .surface.panel,
  body.page-home .home-case-study-section .surface.panel {
    padding: 0.48rem;
    border-radius: 0.9rem;
    box-shadow: 0 14px 40px rgba(0, 0, 0, 0.26);
  }

  body.page-home .home-value-section .surface.panel img,
  body.page-home .home-case-study-section .surface.panel img {
    border-radius: 0.68rem;
  }

  body.page-home .home-services-section .grid,
  body.page-home .home-ai-section .grid,
  body.page-home .home-case-study-section .grid,
  body.page-home .home-insights-section .grid {
    gap: 0.78rem;
  }

  body.page-home .home-services-section .service-card,
  body.page-home .home-ai-section .ai-card,
  body.page-home .home-case-study-section .case-study-card,
  body.page-home .home-insights-section .blog-card {
    border-radius: 0.85rem;
  }

  body.page-home .home-services-section .service-card h3,
  body.page-home .home-ai-section .ai-card h3,
  body.page-home .home-case-study-section .case-study-card h3,
  body.page-home .home-insights-section .blog-card h3 {
    font-size: 1.08rem;
    line-height: 1.23;
  }

  body.page-home .home-ai-section .ai-card,
  body.page-home .home-insights-section .blog-card {
    padding: 0.95rem;
  }

  body.page-home .home-ai-section .ai-card h3 {
    margin: 0.48rem 0 0.4rem;
  }

  body.page-home .home-ai-section .ai-card p,
  body.page-home .home-insights-section .blog-card p {
    margin-bottom: 0.7rem;
    font-size: 0.84rem;
    line-height: 1.52;
  }

  body.page-home .home-ai-section .section-offset-sm {
    margin-top: 0.9rem;
  }

  body.page-home .home-ai-section .section-offset-sm .btn {
    width: 100%;
    min-height: 2.8rem;
    padding: 0.68rem 1rem;
    font-size: 0.84rem;
  }

  body.page-home .home-case-study-section .case-study-card {
    padding: 1rem;
  }

  body.page-home .home-case-study-section .case-study-card .btn {
    width: 100%;
    min-height: 2.75rem;
    padding: 0.65rem 0.9rem;
    font-size: 0.82rem;
  }

  body.page-home .home-insights-section .blog-card .badge {
    align-self: flex-start;
  }

  body.page-home .home-insights-section .blog-card h3 {
    margin: 0.5rem 0;
  }

  body.page-home .home-insights-section .blog-card p {
    display: -webkit-box;
    overflow: hidden;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 3;
  }

  body.page-home .home-insights-section .text-link,
  body.page-home .home-services-section .text-link {
    font-size: 0.78rem;
  }

  body.page-home .home-cta-section .cta-panel {
    gap: 0.85rem;
    padding: 1rem;
  }

  body.page-home .home-cta-section .cta-panel h2 {
    margin-bottom: 0.55rem;
    font-size: 1.35rem;
    line-height: 1.15;
  }

  body.page-home .home-cta-section .cta-panel p {
    margin-bottom: 0;
    font-size: 0.88rem;
    line-height: 1.5;
  }

  body.page-home .home-cta-section .cta-actions {
    gap: 0.5rem;
  }

  body.page-home .home-cta-section .btn {
    min-height: 2.75rem;
    padding: 0.66rem 0.9rem;
    font-size: 0.82rem;
  }

  body.page-home .home-contact-section .contact-form {
    gap: 0.72rem;
    padding: 0.9rem;
    border-radius: 0.9rem;
  }

  body.page-home .home-contact-section .contact-form h2 {
    font-size: 1.35rem;
  }

  body.page-home .home-contact-section .contact-form label,
  body.page-home .home-contact-section .contact-form input,
  body.page-home .home-contact-section .contact-form select,
  body.page-home .home-contact-section .contact-form textarea {
    font-size: 0.88rem;
  }
}

@media (min-width: 541px) and (max-width: 760px) {
  body.page-home .home-services-section .grid.grid-4,
  body.page-home .home-insights-section .grid.grid-3 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  body.page-home .home-services-section .service-card {
    height: 100%;
  }

  body.page-home .home-services-section .card-media {
    height: 138px;
  }
}

@media (max-width: 540px) {
  body.page-home .home-services-section .grid.grid-4 {
    gap: 0.65rem;
  }

  body.page-home .home-services-section .service-card {
    display: grid;
    min-height: 122px;
    grid-template-columns: 96px minmax(0, 1fr);
    grid-template-rows: auto auto 1fr;
    column-gap: 0.78rem;
    align-items: start;
    padding: 0.72rem;
  }

  body.page-home .home-services-section .card-media {
    width: 96px;
    max-width: 96px;
    height: 100%;
    min-height: 98px;
    max-height: 126px;
    grid-row: 1 / -1;
    margin: 0;
    border: 0;
    border-radius: 0.65rem;
    object-fit: cover;
  }

  body.page-home .home-services-section .service-card h3,
  body.page-home .home-services-section .service-card p,
  body.page-home .home-services-section .service-card ul,
  body.page-home .home-services-section .service-card .text-link {
    grid-column: 2;
  }

  body.page-home .home-services-section .service-card h3 {
    margin: 0 0 0.25rem;
    font-size: 0.96rem;
    line-height: 1.18;
  }

  body.page-home .home-services-section .service-card p {
    display: -webkit-box;
    margin: 0 0 0.42rem;
    overflow: hidden;
    font-size: 0.76rem;
    line-height: 1.4;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
  }

  body.page-home .home-services-section .service-card ul {
    display: none;
  }

  body.page-home .home-services-section .service-card .text-link {
    align-self: end;
    font-size: 0.73rem;
  }

  body.page-home .home-case-study-section .surface.panel img {
    aspect-ratio: 16 / 10;
  }
}

@media (max-width: 390px) {
  body.page-home {
    --home-inline-space: 0.62rem;
  }

  body.page-home main > section:not(.hero) {
    padding-block: 2.05rem;
  }

  body.page-home .hero {
    padding-top: 1.85rem;
    padding-bottom: 1.8rem;
  }

  body.page-home .hero-copy h1 {
    max-width: none;
    font-size: 1.78rem;
  }

  body.page-home .hero-copy > p:not(.kicker) {
    font-size: 0.86rem;
  }

  body.page-home .hero-visual {
    padding: 0.75rem;
  }

  body.page-home .home-services-section .service-card {
    grid-template-columns: 84px minmax(0, 1fr);
    column-gap: 0.65rem;
    padding: 0.65rem;
  }

  body.page-home .home-services-section .card-media {
    width: 84px;
    max-width: 84px;
    min-height: 94px;
  }
}
