.references-page {
  background: var(--theme-surface, #fff);
}

.references-page .desktop-nav a[data-nav="references"] {
  color: var(--theme-primary);
}

.references-page .desktop-nav a[data-nav="references"]::after {
  transform: scaleX(1);
}

.references-hero {
  position: relative;
  overflow: hidden;
  padding: clamp(72px, 8vw, 112px) 0 clamp(54px, 6vw, 82px);
  background:
    radial-gradient(circle at 12% 18%, rgba(var(--theme-primary-rgb), 0.10), transparent 28%),
    radial-gradient(circle at 88% 72%, rgba(var(--theme-primary-rgb), 0.065), transparent 25%),
    linear-gradient(180deg, #fff 0%, rgba(var(--theme-primary-rgb), 0.025) 100%);
  border-bottom: 1px solid rgba(var(--theme-primary-rgb), 0.10);
}

.references-orb {
  position: absolute;
  border: 1px solid rgba(var(--theme-primary-rgb), 0.10);
  border-radius: 50%;
  pointer-events: none;
}

.references-orb-one {
  width: 280px;
  height: 280px;
  left: -135px;
  top: -118px;
  box-shadow: 0 0 0 38px rgba(var(--theme-primary-rgb), 0.018), 0 0 0 78px rgba(var(--theme-primary-rgb), 0.012);
}

.references-orb-two {
  width: 200px;
  height: 200px;
  right: -95px;
  bottom: -110px;
  box-shadow: 0 0 0 30px rgba(var(--theme-primary-rgb), 0.016);
}

.references-hero-inner {
  position: relative;
  z-index: 1;
  text-align: center;
}

.references-breadcrumb {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  margin-bottom: 2.2rem;
  color: var(--theme-muted);
  font-size: 0.82rem;
  font-weight: 650;
}

.references-breadcrumb a {
  color: inherit;
  text-decoration: none;
}

.references-breadcrumb strong {
  color: var(--theme-primary);
}

.references-kicker {
  margin: 0 0 0.8rem;
  color: var(--theme-primary);
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 0.18em;
}

.references-hero h1 {
  max-width: 820px;
  margin: 0 auto;
  color: var(--theme-text, #12343a);
  font-size: clamp(2.55rem, 5.4vw, 4.8rem);
  line-height: 0.98;
  letter-spacing: -0.055em;
}

.references-intro {
  max-width: 690px;
  margin: 1.35rem auto 0;
  color: var(--theme-muted);
  font-size: clamp(1rem, 1.7vw, 1.14rem);
  line-height: 1.65;
}

.references-grid-section {
  padding: clamp(64px, 7vw, 96px) 0 clamp(82px, 9vw, 120px);
  background: #fff;
}

.references-grid {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 22px;
  max-width: 1120px;
  margin: 0 auto;
}

.reference-card {
  grid-column: span 2;
  min-height: 188px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 30px 28px;
  background: rgba(255, 255, 255, 0.96);
  border: 1px solid rgba(var(--theme-primary-rgb), 0.12);
  border-radius: 18px;
  box-shadow: 0 16px 42px rgba(var(--theme-secondary-rgb), 0.055);
  transition: transform 180ms ease, border-color 180ms ease, box-shadow 180ms ease;
}

.reference-card:hover {
  transform: translateY(-4px);
  border-color: rgba(var(--theme-primary-rgb), 0.25);
  box-shadow: 0 22px 52px rgba(var(--theme-secondary-rgb), 0.085);
}

.reference-card img {
  width: min(100%, 320px);
  max-height: 98px;
  height: auto;
  display: block;
  object-fit: contain;
  object-position: center;
}

.reference-card:nth-child(4):nth-last-child(2) {
  grid-column: 2 / span 2;
}

.reference-card:nth-child(5):last-child {
  grid-column: 4 / span 2;
}

@media (max-width: 900px) {
  .references-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
  .reference-card {
    grid-column: span 2;
    min-height: 176px;
  }
  .reference-card:nth-child(4),
  .reference-card:nth-child(5),
  .reference-card:nth-child(4):nth-last-child(2),
  .reference-card:nth-child(5):last-child {
    grid-column: span 2;
  }
  .reference-card:last-child:nth-child(odd) {
    grid-column: 2 / span 2;
  }
}


@media (max-width: 620px) {
  .references-hero {
    padding: 54px 0 48px;
  }
  .references-breadcrumb {
    margin-bottom: 1.6rem;
  }
  .references-kicker {
    font-size: 0.7rem;
    letter-spacing: 0.14em;
  }
  .references-hero h1 {
    font-size: clamp(2.25rem, 11vw, 3.2rem);
  }
  .references-intro {
    max-width: 92%;
    margin-top: 1rem;
    font-size: 0.98rem;
  }
  .references-grid-section {
    padding: 46px 0 70px;
  }
  .references-grid {
    grid-template-columns: 1fr;
    gap: 14px;
  }
  .reference-card,
  .reference-card:nth-child(4),
  .reference-card:nth-child(5),
  .reference-card:nth-child(4):nth-last-child(2),
  .reference-card:nth-child(5):last-child,
  .reference-card:last-child:nth-child(odd) {
    grid-column: auto;
    width: 100%;
    min-height: 148px;
    padding: 24px 22px;
  }
  .reference-card img {
    width: min(100%, 260px);
    max-height: 88px;
    height: auto;
  }
}
