@media (min-width: 64rem) {
  .page-home .home-hero-heading {
    font-size: 72px;
  }

  .page-home .home-section-heading,
  .page-home .home-testimonials-heading .home-section-heading {
    font-size: 60px;
  }

  .page-home .content-section:not(.section-5) p,
  .page-home .home-accordion-panel-inner h3 {
    font-size: 23px;
  }
}

.site-page.page-home .section-1 {
  align-items: center;
}

.page-home .section-1 > .content-inner {
  align-self: stretch;
}

.page-home .section-1 > .content-inner,
.page-home .section-1 > .home-hero-logo-frame,
.page-home .section-1 > .content-inner > .content-grid {
  justify-content: center;
}

.page-home .section-4 .home-story-portrait::after {
  display: none;
}

.page-home .home-question-copy .deferred-form-button {
  min-height: 4rem;
  padding: 1rem clamp(1.75rem, 3vw, 2.25rem);
  font-size: 1.05rem;
}


/* Home service-panel alignment refinement. */
.page-home .section-2 .content-card .home-service-image {
  width: 100%;
  aspect-ratio: 3 / 2;
}

.page-home .section-2 .content-card .home-service-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.page-home .section-2 .content-card:nth-child(2) .home-service-image img {
  object-position: center center;
}

.page-home .section-2 .content-card .page-button {
  width: min(100%, 12.25rem);
  min-height: 3.6rem;
  padding: 0.85rem 1.35rem;
  font-size: 1rem;
  border-radius: var(--radius-pill);
}

.page-home .section-5 {
  padding-bottom: var(--testimonial-layout-gap);
}

@media (min-width: 64rem) {
  .page-home .section-2 .content-card:nth-child(2) .home-service-image {
    aspect-ratio: 9 / 7;
  }

  .page-home .section-2 .content-card > .content-inner > .content-grid {
    display: grid;
    gap: 1.25rem;
    align-content: start;
    height: auto;
  }

  .page-home .section-2 .content-card:nth-child(2) > .content-inner {
    padding-top: 0;
  }

  .page-home .section-2 .content-card:nth-child(2) > .content-inner > .content-grid {
    padding-top: 0;
  }
}


@media (min-width: 48rem) and (max-width: 63.99rem) {
  .page-home .section-2 .content-card:nth-child(2) > .content-inner {
    padding-top: 0;
  }
}


/* Final Home hero image refinement: enlarge from the fixed right-hand anchor. */
@media (min-width: 64rem) {
  .page-home .home-hero-logo-mark {
    justify-self: end;
    width: min(135%, 42.9rem);
    margin-right: calc(clamp(2.25rem, 5vw, 4.5rem) * -1);
  }
}

@media (min-width: 48rem) and (max-width: 63.99rem) {
  .page-home .home-hero-logo-mark {
    justify-self: end;
    width: min(118%, 34rem);
    margin-right: calc(clamp(1.5rem, 4vw, 3rem) * -0.5);
  }
}

@media (max-width: 47.99rem) {
  .page-home .home-hero-logo-mark {
    justify-self: end;
    width: min(104%, 27rem);
    margin-right: calc(clamp(1rem, 3vw, 1.5rem) * -0.35);
  }
}

/* Final design pass: keep the enlarged right-anchored hero mark fully visible. */
.page-home .home-hero-logo-mark {
  top: -0.55rem;
}

@media (min-width: 48rem) {
  .page-home .home-hero-logo-mark {
    top: -1rem;
  }
}

@media (min-width: 64rem) {
  .page-home .home-hero-logo-mark {
    top: clamp(-3.75rem, calc(0.58rem - 4.8vw), -2.65rem);
  }
}

@media (max-width: 22rem) {
  .site-page.page-home .section-1 > .home-hero-logo-frame {
    justify-self: start;
    max-width: calc(100vw - var(--site-inline) - var(--site-inline) - clamp(1.3rem, 2.4vw, 2.2rem));
  }
}


/* Final responsive spacing and alignment corrections. */
.page-home .section-5 .content-card::before {
  content: none;
}

@media (min-width: 64rem) {
  .site-page.page-home .section-1 {
    container-type: inline-size;
  }

  .page-home .section-1 > .content-inner {
    box-sizing: border-box;
    padding-inline-start: max(0px, calc(50cqw - 41rem));
  }
}

@media (max-width: 63.99rem) {
  .page-home .home-hero-logo-mark {
    justify-self: center;
    margin-right: 0;
  }

  .page-home .section-1 > .content-inner {
    min-width: 0;
    width: 100%;
    max-width: 100%;
  }

  .page-home .section-1 > .content-inner > .content-grid {
    justify-items: center;
    width: 100%;
    min-width: 0;
  }

  .page-home .section-1 .content-item {
    width: 100%;
    min-width: 0;
    align-items: center;
    text-align: center;
  }

  .page-home .home-hero-heading {
    width: 100%;
    max-width: none;
    overflow-wrap: normal;
    text-align: center;
  }

  .page-home .section-1 .content-item > p {
    width: 100%;
    text-align: center;
  }

  .page-home .section-1 .page-button {
    display: flex;
    width: fit-content;
    margin-inline: auto;
  }

}

@media (min-width: 48rem) and (max-width: 63.99rem) {
  .page-home .home-hero-heading {
    font-size: clamp(3.75rem, 8vw, 4.5rem);
  }
}

@media (max-width: 47.99rem) {
  .page-home .home-hero-heading {
    font-size: clamp(2.35rem, 12vw, 3.35rem);
  }

  .page-home .section-5 .card-grid {
    grid-auto-rows: auto;
  }

  .page-home .section-5 blockquote {
    grid-template-rows: auto auto;
    height: auto;
  }

}
