/* Homepage review iteration: V4 scale with the current responsive structure.
  Quote controls and shared page styles remain owned by styles.css. */
/* Reversible text-only trial for the four homepage benefits. */
.home-design-revision .why-cpl__fact-icon { display: none; }
.home-design-revision .why-cpl__fact { grid-template-columns: minmax(0, 1fr); }
.home-design-revision .journey-v3__line { opacity: 1; }
@media (min-width: 1001px) {
  .home-design-revision .journey-v3__line { left: -90px; width: calc(100% + 180px); }
}
.home-design-revision .client-stories__route-path { stroke: #1767c7; opacity: 1; }
.home-design-revision .client-stories__decor-piece--tick { top: 16%; right: 7%; }
.home-design-revision .mobile-quote-shortcut:not([hidden]) { animation: none; }
.home-design-revision .why-cpl__content h2,
.home-design-revision .journey-v3__text h2,
.home-design-revision .services-v4__header h2,
.home-design-revision .reviews-v2__intro h2,
.home-design-revision .client-stories__header h2 {
  font-weight: 800;
  letter-spacing: -.02em;
  text-wrap: wrap;
}
.home-design-revision .why-cpl__content h2 { font-size: clamp(2.8rem, 4.5vw, 3.75rem); line-height: 1.05; }
.home-design-revision .journey-v3__text h2 { font-size: clamp(2.6rem, 5vw, 3.8rem); line-height: 1.1; }
.home-design-revision .services-v4__header h2 { font-size: clamp(2.4rem, 4.2vw, 3.6rem); line-height: 1.02; }
.home-design-revision .reviews-v2__intro h2 { font-size: 3rem; line-height: 1.1; }
.home-design-revision .client-stories__header h2 { font-size: clamp(2rem, 3.8vw, 3.2rem); line-height: 1.05; }
.home-design-revision .client-stories__header { max-width: 1100px !important; }
.home-design-revision .services-v4__card {
  border-radius: 20px;
  box-shadow: 0 2px 12px rgba(7,28,99,.04), 0 8px 28px rgba(7,28,99,.03);
}
.home-design-revision .services-v4__arrow { width: 48px; height: 48px; border-width: 2px; }
.home-design-revision .journey-v3__num { color: var(--color-coral); }
.home-design-revision .journey-v3__card {
  box-shadow: 0 2px 12px rgba(7,28,99,.05), 0 8px 24px rgba(7,28,99,.03);
}
.home-design-revision .client-stories__video {
  border-radius: 20px;
  box-shadow: 0 8px 32px rgba(7,28,99,.15), 0 2px 8px rgba(7,28,99,.08);
}

@media (min-width: 1001px) {
  .home-design-revision .why-cpl__content h2 { max-width: 650px; }
  .home-design-revision .journey-v3__top {
    max-width: none;
    grid-template-columns: 1fr 1fr;
    align-items: end;
    gap: clamp(32px, 5vw, 64px);
    min-height: 320px;
    margin-bottom: 60px;
  }
  .home-design-revision .journey-v3__image { position: absolute; right: 0; bottom: 0; width: auto; }
  .home-design-revision .journey-v3__image img { width: 61vw; max-width: 773px; transform: translateY(25%); }
  .home-design-revision .journey-v3__grid { max-width: 85%; margin: 10% auto 0; }
  .home-design-revision .journey-v3__num { font-size: clamp(54px, 4.5vw, 66px) !important; }
  .home-design-revision .journey-v3__badge { width: 80px !important; height: 80px !important; }
  .home-design-revision .journey-v3__badge svg { width: 50px !important; height: 50px !important; }
  .home-design-revision .journey-v3__card p { max-width: 86% !important; line-height: 1.55; }
  .home-design-revision .services-v4__container { max-width: 1440px; }
  .home-design-revision .services-v4__card { min-height: 300px; }
  .home-design-revision .services-v4__card-copy { flex-basis: 42%; padding: 42px 24px 42px 44px; }
  .home-design-revision .services-v4__card-copy h3 { font-size: clamp(1.3rem, 1.8vw, 1.7rem); line-height: 1.15; text-wrap: wrap; }
  .home-design-revision .services-v4__card-copy p { font-size: 1rem; line-height: 1.55; }
  .home-design-revision .services-v4__card-img { flex: 1 1 58%; padding: 8px 12px 0 0; }
  .home-design-revision .homepage-quote-illustration { margin: 18px 0 0 -18%; }
  .home-design-revision .homepage-quote-illustration img { width: 116%; max-width: 550px; height: auto; }
}

/* Keep the working tablet and phone layouts, including the small quote art. */
@media (max-width: 1000px) {
  .home-design-revision .journey-title-break { display: none; }
  .home-design-revision .journey-v3__text h2 { font-size: clamp(2.35rem, 5vw, 3rem); }
  .home-design-revision .why-cpl__content h2 { font-size: clamp(2.35rem, 4.6vw, 3rem); }
  .home-design-revision .reviews-v2__intro h2 { font-size: clamp(2.35rem, 4.6vw, 3rem); }
}
@media (max-width: 768px) {
  .home-design-revision .why-cpl__content h2 { font-size: clamp(2rem, 9.5vw, 2.72rem); }
  .home-design-revision .journey-v3__text h2,
  .home-design-revision .services-v4__header h2 { font-size: clamp(2.3rem, 10.5vw, 2.9rem); line-height: 1.05; letter-spacing: -.04em; }
  .home-design-revision .reviews-v2__intro h2,
  .home-design-revision .client-stories__header h2 { font-size: clamp(2.25rem, 10vw, 2.8rem); line-height: 1.05; }
  .home-design-revision .services-v4__card-copy { flex-basis: 50%; padding: 24px 8px 24px 20px; }
  .home-design-revision .services-v4__card-img { flex: 1 1 50% !important; padding-right: 8px; }
  .home-design-revision .services-v4__card-img img { width: 115% !important; max-width: 115% !important; }
}
@media (max-width: 600px) {
  .home-design-revision .journey-v3__num { font-size: 2.1rem !important; }
  .home-design-revision .journey-v3__badge { width: 40px !important; height: 40px !important; top: 16px !important; right: 12px !important; }
  .home-design-revision .journey-v3__badge svg { width: 25px !important; height: 25px !important; }
  .home-design-revision .journey-v3__card h3 { font-size: .98rem !important; }
  .home-design-revision .journey-v3__card p { font-size: .86rem !important; }
}
@media (max-width: 359px) {
  .home-design-revision .journey-v3__card { padding: 14px !important; }
  .home-design-revision .journey-v3__num { font-size: 1.9rem !important; }
  .home-design-revision .journey-v3__badge { width: 32px !important; height: 32px !important; right: 10px !important; }
}

/* Original V4 first-paint guard for the restored controller. */
@media (prefers-reduced-motion: no-preference) {
  html.motion-preload .why-cpl-section--alt .why-cpl__fact,
  html.motion-preload .journey-v3__card,
  html.motion-preload .services-v4__header,
  html.motion-preload .services-v4__card,
  html.motion-preload .reviews-v2__intro > *,
  html.motion-preload .reviews-v2__illustration,
  html.motion-preload .reviews-v2__cards,
  html.motion-preload .client-stories__header > *,
  html.motion-preload .client-stories__video,
  html.motion-preload .client-stories__decor-piece,
  html.motion-preload .footer-trust-bridge {
    opacity: 0;
    visibility: hidden;
  }
}

