.home-stats {
  padding: clamp(64px, 8vw, 108px) var(--site-gutter, 40px);
  background: #f5f5f0;
}

.home-stats__inner { max-width: 1180px; margin-inline: auto; }
.home-stats__heading { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(260px, .75fr); align-items: end; gap: 36px; }
.home-stats__eyebrow { color: #5c7334; font-size: 12px; font-weight: 800; letter-spacing: .085em; }
.home-stats__heading h2 { max-width: 750px; margin: 14px 0 0; font-size: clamp(34px, 4vw, 54px); font-weight: 700; letter-spacing: -.045em; line-height: 1.1; }
.home-stats__heading em { position: relative; display: inline-block; font-style: italic; white-space: nowrap; }
.home-stats__heading em svg { position: absolute; inset-inline: 0; bottom: -.17em; width: 100%; height: .25em; overflow: visible; fill: none; stroke: #b2c54b; stroke-width: 4; stroke-linecap: round; stroke-linejoin: round; }
.home-stats__heading > p { max-width: 380px; margin: 0 0 3px; color: #52627a; font-size: 16px; line-height: 1.7; }

.home-stats__grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; margin-top: clamp(40px, 5vw, 60px); }
.home-stats__card {
  --stats-accent: #0b3e91;
  --stats-tint: #eef4fc;
  --stats-wash: rgba(11, 62, 145, .1);
  display: grid;
  grid-template-columns: minmax(0, 1fr) 138px;
  grid-template-rows: auto 1fr auto;
  column-gap: 20px;
  min-width: 0;
  min-height: 312px;
  padding: 27px 28px 21px;
  border: 1px solid #dce4e9;
  border-radius: 18px;
  background:
    radial-gradient(circle at 92% 8%, var(--stats-wash), transparent 31%),
    linear-gradient(145deg, var(--stats-tint), #fff 52%);
  box-shadow: 0 16px 36px rgba(20, 53, 95, .08), inset 0 1px 0 rgba(255, 255, 255, .9);
}
.home-stats__label { grid-column: 1 / -1; color: var(--stats-accent); font-size: 11px; font-weight: 800; letter-spacing: .095em; text-transform: uppercase; }
.home-stats__copy { min-width: 0; padding-top: 11px; }
.home-stats__value { display: block; color: var(--stats-accent); font-family: 'Saira', 'Plus Jakarta Sans', sans-serif; font-size: clamp(48px, 4.5vw, 64px); font-weight: 700; letter-spacing: -.06em; line-height: 1; }
.home-stats__value--thin { font-weight: 300; }
.home-stats__value--light { font-weight: 400; }
.home-stats__value--bold { font-weight: 700; }
.home-stats__value--extra-bold { font-weight: 800; }
.home-stats__copy h3 { margin: 13px 0 0; font-size: 19px; font-weight: 700; letter-spacing: -.025em; line-height: 1.25; }
.home-stats__copy p { margin: 8px 0 0; color: #52627a; font-size: 13px; line-height: 1.6; }
.home-stats__figure { align-self: center; justify-self: end; width: 138px; margin: 0; }
.home-stats__dots { position: relative; width: 100%; aspect-ratio: 1; background-image: radial-gradient(circle, #dce4ed 0 3px, transparent 3.2px); background-size: 10% 10%; }
.home-stats__dots::after { content: ''; position: absolute; inset: 0; background-image: radial-gradient(circle, var(--stats-accent) 0 3px, transparent 3.2px); background-size: 10% 10%; clip-path: polygon(0 0, 100% 0, 100% var(--filled-rows), var(--filled-cols) var(--filled-rows), var(--filled-cols) var(--last-row), 0 var(--last-row)); }
/* Non-percentage values (durations, fees, counts) get a decorative grid with no filled share. */
.home-stats__dots--neutral { opacity: .75; }
.home-stats__dots--neutral::after { content: none; }
.home-stats__source { display: flex; align-items: center; justify-content: space-between; gap: 8px; grid-column: 1 / -1; margin-top: 20px; padding-top: 15px; border-top: 1px solid #e8edf0; color: #0b3e91; font-size: 13px; font-weight: 700; line-height: 1.35; text-decoration: none; }
.home-stats__source:hover { color: #022a61; text-decoration: underline; }
.home-stats__source:focus-visible { outline: 2px solid #0b3e91; outline-offset: 4px; }
.home-stats__source-arrow { flex: none; font-size: 18px; line-height: 1; }
.home-stats__asat { white-space: nowrap; }

/* Bridging block: links the statistics to what Orbitrio does. */
.home-stats__bridge {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  margin-top: 18px;
  padding: 26px 28px;
  border: 1px solid #dce4e9;
  border-radius: 18px;
  background: #fff;
  box-shadow: 0 16px 36px rgba(20, 53, 95, .06);
}
.home-stats__bridge-copy { min-width: 0; max-width: 760px; }
.home-stats__bridge h3 { margin: 0; color: #1b1b18; font-size: clamp(20px, 1.7vw, 24px); font-weight: 700; letter-spacing: -.02em; line-height: 1.25; }
.home-stats__bridge p { margin: 8px 0 0; color: #52627a; font-size: 15px; line-height: 1.6; }
.home-stats__bridge-cta {
  display: inline-flex;
  flex: none;
  align-items: center;
  gap: 10px;
  padding: 15px 26px;
  border-radius: 12px;
  background: #0b3e91;
  color: #fff;
  font-size: 15px;
  font-weight: 700;
  line-height: 1.2;
  white-space: nowrap;
  text-decoration: none;
  transition: background .2s ease;
}
.home-stats__bridge-cta:hover { background: #022a61; }
.home-stats__bridge-cta:focus-visible { outline: 2px solid #0b3e91; outline-offset: 3px; }

@media (max-width: 900px) {
  .home-stats__heading { grid-template-columns: 1fr; gap: 18px; }
  .home-stats__heading > p { max-width: 620px; }
  .home-stats__grid { grid-template-columns: 1fr; gap: 14px; }
  .home-stats__card { min-height: 0; grid-template-columns: minmax(0, 1fr) 132px; gap: 18px; padding: 24px; }
  .home-stats__figure { width: 132px; }
  .home-stats__bridge { flex-direction: column; align-items: flex-start; gap: 18px; margin-top: 14px; padding: 24px; }
}

@media (max-width: 520px) {
  .home-stats { padding-block: 64px; }
  .home-stats__heading h2 { font-size: clamp(32px, 9vw, 42px); }
  .home-stats__heading > p { font-size: 15px; }
  .home-stats__grid { margin-top: 36px; }
  .home-stats__card { grid-template-columns: 1fr; gap: 0; padding: 22px; }
  .home-stats__copy { padding-top: 12px; }
  .home-stats__figure { justify-self: start; width: 126px; margin-top: 20px; }
  .home-stats__source { margin-top: 18px; }
  .home-stats__bridge { padding: 22px; }
  .home-stats__figure:has(.home-stats__dots--neutral) { display: none; }
  .home-stats__bridge-cta { width: 100%; justify-content: center; }
}
