.references-page {
  --font-manrope: "Manrope", Arial, sans-serif;
  --font-grotesk: "Space Grotesk", "Arial Narrow", Arial, sans-serif;
  overflow-x: hidden;
  background: #f3f6f4;
}

.references-hero {
  position: relative;
  isolation: isolate;
  min-height: 520px;
  display: grid;
  align-items: end;
  color: #f7faf8;
  background: #06263c url("references-hero.png") center 42% / cover no-repeat;
}

.references-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(90deg, rgba(3, 27, 46, .98) 0%, rgba(4, 35, 58, .9) 39%, rgba(4, 35, 58, .34) 72%, rgba(4, 35, 58, .18) 100%);
}

.references-hero-inner {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 48px;
  align-items: end;
  padding-block: 70px 54px;
}

.references-copy { max-width: 760px; }
.references-kicker {
  display: inline-flex;
  align-items: center;
  gap: 24px;
  font: 700 12px/1 var(--font-grotesk);
  letter-spacing: .34em;
}
.references-kicker::after { content: ""; width: 74px; height: 1px; background: rgba(255,255,255,.75); }
.references-copy h1 { margin: 24px 0 20px; font: 650 clamp(52px, 6.2vw, 88px)/.96 var(--font-grotesk); letter-spacing: -.045em; }
.references-copy h1 i { color: #2aa9ee; font-style: normal; }
.references-copy p { max-width: 720px; margin: 0; color: #e0e9ec; font-size: clamp(16px, 1.45vw, 21px); line-height: 1.55; }

.references-stats {
  display: flex;
  min-width: 430px;
  padding: 20px 24px;
  border: 1px solid rgba(255,255,255,.72);
  border-radius: 12px;
  background: rgba(5, 25, 41, .55);
  box-shadow: 0 18px 50px rgba(0,0,0,.28);
  backdrop-filter: blur(8px);
}
.references-stats .stat { flex: 1; display: grid; grid-template-columns: 54px auto; grid-template-rows: auto auto; align-items: center; column-gap: 14px; padding: 0 22px; }
.references-stats .stat + .stat { border-left: 1px solid rgba(255,255,255,.55); }
.references-stats svg { grid-row: 1 / 3; width: 48px; fill: none; stroke: currentColor; stroke-width: 2; }
.references-stats strong { font: 700 38px/1 var(--font-grotesk); }
.references-stats span { font-size: 15px; line-height: 1.35; }

.reference-gallery { padding: 44px 0 80px; background: linear-gradient(180deg, #f7f9f7 0%, #eef3ef 100%); }
.reference-grid { display: grid; grid-template-columns: repeat(8, minmax(0, 1fr)); gap: 14px; }
.reference-card {
  margin: 0;
  aspect-ratio: 1.12;
  overflow: hidden;
  border: 1px solid #dfe6e1;
  border-radius: 10px;
  background: #fff;
  box-shadow: 0 8px 22px rgba(7, 33, 47, .07);
  transition: transform .24s ease, box-shadow .24s ease, border-color .24s ease;
  outline: none;
}
.reference-card svg { display: block; width: 100%; height: 100%; }
.logo-pending { height: 100%; display: grid; place-content: center; gap: 5px; text-align: center; color: #78909a; background: repeating-linear-gradient(135deg,#fbfcfb,#fbfcfb 10px,#f4f7f5 10px,#f4f7f5 20px); }
.logo-pending strong { font: 700 16px/1 var(--font-grotesk); letter-spacing: .18em; }
.logo-pending span { font-size: 10px; }
.reference-card:hover, .reference-card:focus-visible { transform: translateY(-5px) scale(1.03); border-color: #9fd43c; box-shadow: 0 18px 34px rgba(7, 33, 47, .16); z-index: 1; }
.reference-card:focus-visible { outline: 3px solid #9fd43c; outline-offset: 3px; }

@media (max-width: 1199px) { .reference-grid { grid-template-columns: repeat(6, minmax(0, 1fr)); } }
@media (max-width: 900px) {
  .references-hero-inner { grid-template-columns: 1fr; gap: 30px; }
  .references-stats { min-width: 0; width: min(100%, 520px); }
  .reference-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}
@media (max-width: 720px) {
  .references-hero { min-height: 610px; background-position: 59% center; }
  .references-hero::before { background: linear-gradient(180deg, rgba(3,27,46,.84), rgba(3,27,46,.96)); }
  .references-hero-inner { padding-block: 72px 42px; }
  .references-copy h1 { font-size: clamp(46px, 15vw, 64px); }
  .references-kicker { font-size: 10px; letter-spacing: .28em; }
  .references-stats { padding: 17px 10px; }
  .references-stats .stat { grid-template-columns: 38px auto; padding: 0 10px; column-gap: 8px; }
  .references-stats svg { width: 34px; }
  .references-stats strong { font-size: 30px; }
  .references-stats span { font-size: 12px; }
  .reference-gallery { padding: 24px 0 56px; }
  .reference-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
}
@media (max-width: 350px) {
  .references-copy h1 { font-size: 43px; }
  .references-stats .stat { grid-template-columns: 30px auto; padding-inline: 7px; }
  .references-stats svg { width: 28px; }
  .references-stats strong { font-size: 25px; }
  .references-stats span { font-size: 11px; }
}
@media (prefers-reduced-motion: reduce) { .reference-card { transition: none; } }
