/* United Loans — Our clients page (our-clients.html).
   Loaded after united-site.css, united-sections.css and united-products.css. Reuses their hero,
   tiles, chart, stories, about block, phone form and footer, and adds only the hero collage
   and the two-by-two figure grid. Classes keep the u- prefix, with u-cl for this page. */

/* ---------- Hero ---------- */
.u-clhero { overflow-x: clip; }
.u-clhero .hero-copy > p { max-width: 30em; }

/* The collage leans 5 degrees as one piece. Sized in em: the stage is 29.2em wide and the lean
   adds about 2.2em, so 1em is the column width divided by about 32. */
.u-clhero-art { min-width: 0; width: 100%; container-type: inline-size; }
.u-clhero-stage {
  position: relative; width: 29.2em; height: 25.2em; margin-inline: auto;
  font-size: min(3.1cqw, 19px); color: var(--ink); transform: skewX(-5deg);
}
.u-clhero-stage .u-i { transform: skewX(5deg); }

.u-clhero-photo { position: absolute; overflow: hidden; border-radius: .55em; background: #d0e1ef; }
.u-clhero-photo img { width: 100%; height: 100%; object-fit: cover; }
.u-clhero-photo--a { left: 1.5em; top: 0; width: 13.2em; height: 11.5em; }
.u-clhero-photo--a img { object-position: 34% 30%; transform: scale(2.4); transform-origin: 35% 30%; }
.u-clhero-photo--b { left: 14.6em; top: 13em; width: 13.5em; height: 12.2em; }
.u-clhero-photo--b img { object-position: 77% 20%; transform: scale(2.6); transform-origin: 78% 10%; }

.u-clhero-card {
  position: absolute; display: flex; flex-direction: column; justify-content: space-between; gap: 1em;
  padding: 1.05em 1em 1em; border: 1px solid #ffffff26; border-radius: .7em;
  background: #ffffff17; color: #fff; box-shadow: 0 1.6em 2.6em -1.6em #020c1acc;
  -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
}
.u-clhero-card p { font-size: 1.45em; font-weight: 700; letter-spacing: -.03em; line-height: 1.1; }
.u-clhero-card ul { list-style: none; margin: 0; padding: 0; display: grid; gap: .5em; justify-items: start; }
.u-clhero-card li {
  display: flex; align-items: center; gap: .6em; padding: .5em .8em .5em .5em;
  border-radius: .5em; background: #ffffff17; font-size: .9em; white-space: nowrap;
}
.u-clhero-card--a { left: 16.2em; top: 0; width: 13em; height: 11.8em; }
.u-clhero-card--b { left: 0; top: 13em; width: 13.6em; height: 8.6em; }
.u-clhero-ico { display: grid; place-items: center; flex-shrink: 0; width: 1.75em; height: 1.75em; border-radius: .4em; color: var(--navy); }
.u-clhero-ico .u-i { width: 1.05em; height: 1.05em; stroke-width: 2.2; }
.u-clhero-ico--mint { background: var(--mint); }
.u-clhero-ico--sky { background: var(--sky); }
.u-clhero-ico--blue { background: var(--blue); color: #fff; }

.u-clhero-chip {
  position: absolute; z-index: 2; left: 1.1em; top: 20.4em; display: flex; align-items: center; gap: .55em;
  padding: .6em 1em .6em .65em; border-radius: .6em; background: var(--paper); color: var(--ink);
  box-shadow: 0 1.4em 2.2em -1.3em #020c1aa6; white-space: nowrap;
}
.u-clhero-faces { display: flex; }
.u-clhero-faces i { display: grid; place-items: center; width: 2.1em; height: 2.1em; overflow: hidden; border: 2px solid var(--paper); border-radius: 50%; background: var(--mint); color: var(--navy); }
.u-clhero-faces i + i { margin-left: -.6em; }
.u-clhero-faces .u-i { width: 1em; height: 1em; stroke-width: 2.6; }
.u-clhero-faces img { width: 100%; height: 100%; object-fit: cover; object-position: 44% 24%; transform: scale(3.2); transform-origin: 44% 24%; }
.u-clhero-chip b { display: block; font-size: 1.35em; letter-spacing: -.02em; line-height: 1.1; font-variant-numeric: tabular-nums; }
.u-clhero-chip small { display: block; font-size: .78em; line-height: 1.2; }

/* On load the copy rises into place and the collage slides in from the right while it grows.
   Resting styles are the end of the story. */
.u-clhero .hero-copy > * { animation: u-cl-rise 1.2s ease-in-out both; }
.u-clhero .hero-copy > p { animation-delay: .05s; }
.u-clhero .hero-copy > .u-chero-actions { animation-delay: .35s; }
.u-clhero-art { animation: u-cl-in 1.2s ease-in-out both; }
@keyframes u-cl-rise { from { opacity: 0; transform: translateY(150px); } }
@keyframes u-cl-in { from { opacity: 0; transform: scale(.8) translateX(50%); } }

/* ---------- Mission: four figures, two by two ---------- */
.u-tiles--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.u-clmission .u-tile { min-height: clamp(250px, 20vw, 340px); }
.u-clmission .u-tile-title { max-width: 11em; font-size: clamp(18px, 1.45vw, 26px); }

/* ---------- Join line + three reasons ---------- */
.u-clperks .u-tile--sky { min-height: clamp(270px, 22vw, 390px); }
.u-clperks .u-tile--sky .u-tile-title { max-width: none; font-size: clamp(20px, 1.75vw, 30px); }
.u-clperks .u-tile--sky .u-tile-fig b { font-size: clamp(46px, 5.2vw, 92px); }

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .u-clhero.hero-expanded { padding-top: clamp(48px, 8vw, 72px); }
  .u-clhero.hero-expanded .hero-grid { padding-bottom: clamp(56px, 9vw, 80px); }
  .u-clhero-art { max-width: 560px; margin-inline: auto; }
  .u-clhero-stage { font-size: 3.1cqw; }
}

/* Five-digit savings need a smaller figure than the payments chart's on narrow bars */
@media (max-width: 760px) {
  .u-clchart .u-bar-value { padding-inline: 2px; font-size: clamp(12px, 3.6vw, 16px); letter-spacing: -.03em; }
}

@media (max-width: 620px) {
  .u-tiles--2 { grid-template-columns: 1fr; }
  .u-clmission .u-tile { min-height: 210px; }
}

@media (prefers-reduced-motion: reduce) {
  .u-clhero .hero-copy > *, .u-clhero-art { animation: none; }
}
