:root {
  --refs-navy: #07152e;
  --refs-text: #344158;
  --refs-muted: #667188;
  --refs-orange: #ff6508;
  --refs-orange-dark: #ea5300;
  --refs-blue: #2670ee;
  --refs-green: #16b36a;
  --refs-purple: #9b5de5;
  --refs-line: #e8edf4;
  --refs-surface: #ffffff;
  --refs-bg: #f8fafc;
  --refs-shadow: 0 16px 42px rgba(16, 31, 59, .08);
}

.go-references-page {
  min-height: 100vh;
  overflow: hidden;
  background: var(--refs-bg);
  color: var(--refs-navy);
  font-family: Inter, Arial, sans-serif;
}

.go-references-page *,
.go-references-page *::before,
.go-references-page *::after {
  box-sizing: border-box;
}

.go-references-page a {
  text-decoration: none;
}

.refs-container {
  position: relative;
  z-index: 2;
  width: min(1180px, calc(100% - 40px));
  margin: 0 auto;
}

.sr-only {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  white-space: nowrap !important;
  border: 0 !important;
}

.refs-proof-slider-section {
  border-top: 1px solid #f3f5f8;
}

.refs-hero {
  position: relative;
  padding: 68px 0 42px;
  isolation: isolate;
  background:
    radial-gradient(circle at 7% 23%, rgba(255, 101, 8, .16), transparent 23%),
    radial-gradient(circle at 93% 25%, rgba(38, 112, 238, .13), transparent 23%),
    radial-gradient(circle at 50% 100%, rgba(255, 255, 255, .92), transparent 55%),
    linear-gradient(180deg, #fbfcff 0%, #f7f9fd 100%);
}

.refs-hero::after {
  position: absolute;
  inset: auto 0 0;
  z-index: -1;
  height: 34%;
  content: "";
  background: linear-gradient(180deg, transparent, rgba(255, 255, 255, .62));
}

.refs-dot-field {
  position: absolute;
  top: 72px;
  width: 128px;
  height: 96px;
  opacity: .48;
  background-image: radial-gradient(circle, currentColor 1.7px, transparent 1.9px);
  background-size: 16px 16px;
}

.refs-dot-left {
  left: max(5vw, 24px);
  color: #ff9b64;
}

.refs-dot-right {
  right: max(5vw, 24px);
  color: #98bafa;
}

.refs-hero-copy {
  max-width: 760px;
  margin: 0 auto 38px;
  text-align: center;
}

.refs-eyebrow {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 30px;
  padding: 6px 13px;
  border: 1px solid #ffd9c4;
  border-radius: 999px;
  background: #fff2eb;
  color: var(--refs-orange);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: .04em;
}

.refs-hero-copy h1 {
  margin: 14px 0 10px;
  color: var(--refs-navy);
  font-size: clamp(42px, 5vw, 60px);
  font-weight: 950;
  line-height: 1.05;
  letter-spacing: -.045em;
}

.refs-hero-copy h1 mark,
.refs-section-title h2 mark {
  padding: 0;
  background: transparent;
  color: var(--refs-orange);
}

.refs-hero-copy p {
  max-width: 680px;
  margin: 0 auto;
  color: #5d6981;
  font-size: 16px;
  line-height: 1.7;
}

.refs-stats {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 22px;
}

.refs-stat-card {
  display: flex;
  min-height: 104px;
  align-items: center;
  gap: 17px;
  padding: 20px 22px;
  border: 1px solid rgba(224, 230, 239, .92);
  border-radius: 14px;
  background: rgba(255, 255, 255, .86);
  box-shadow: 0 10px 28px rgba(15, 35, 68, .055);
  backdrop-filter: blur(10px);
}

.refs-stat-icon {
  display: grid;
  flex: 0 0 52px;
  width: 52px;
  height: 52px;
  place-items: center;
  border-radius: 12px;
}

.refs-stat-icon svg,
.refs-cta-icon svg {
  width: 29px;
  height: 29px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.9;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.refs-stat-icon.is-orange {
  background: #fff1e8;
  color: #ff720f;
}

.refs-stat-icon.is-blue {
  background: #edf3ff;
  color: #3978ef;
}

.refs-stat-icon.is-green {
  background: #eaf9f1;
  color: var(--refs-green);
}

.refs-stat-icon.is-purple {
  background: #f6edff;
  color: var(--refs-purple);
}

.refs-stat-card > span:last-child {
  min-width: 0;
}

.refs-stat-card strong,
.refs-stat-card small {
  display: block;
}

.refs-stat-card strong {
  color: var(--refs-navy);
  font-size: 24px;
  font-weight: 950;
  line-height: 1.1;
}

.refs-stat-card small {
  margin-top: 7px;
  color: var(--refs-muted);
  font-size: 12px;
  font-weight: 600;
}

.refs-projects {
  padding: 46px 0 88px;
  background:
    radial-gradient(circle at 100% 48%, rgba(255, 117, 41, .12), transparent 19%),
    radial-gradient(circle at 0 72%, rgba(44, 115, 237, .09), transparent 18%),
    var(--refs-bg);
}

.refs-section-title {
  max-width: 720px;
  margin: 0 auto 28px;
  text-align: center;
}

.refs-section-title > span {
  color: var(--refs-orange);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: .08em;
}

.refs-section-title h2 {
  margin: 10px 0 0;
  color: var(--refs-navy);
  font-size: clamp(30px, 4vw, 42px);
  font-weight: 950;
  line-height: 1.14;
  letter-spacing: -.035em;
}

.refs-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  margin: 0 0 24px;
}

.refs-filter-scroll {
  display: flex;
  min-width: 0;
  gap: 10px;
}

.refs-filter-button {
  min-height: 42px;
  padding: 0 16px;
  border: 1px solid #e4e9f0;
  border-radius: 8px;
  outline: none;
  background: #fff;
  color: #344056;
  box-shadow: 0 4px 12px rgba(16, 31, 59, .04);
  cursor: pointer;
  font: inherit;
  font-size: 12px;
  font-weight: 800;
  white-space: nowrap;
  transition: color .2s ease, border-color .2s ease, background .2s ease, transform .2s ease, box-shadow .2s ease;
}

.refs-filter-button:hover,
.refs-filter-button:focus-visible {
  transform: translateY(-1px);
  border-color: #ffc9aa;
  color: var(--refs-orange);
}

.refs-filter-button.is-active {
  border-color: var(--refs-orange);
  background: linear-gradient(135deg, #ff7a1a, #ff5c04);
  color: #fff;
  box-shadow: 0 8px 18px rgba(255, 101, 8, .24);
}

.refs-sector-select {
  position: relative;
  flex: 0 0 190px;
}

.refs-sector-select::after {
  position: absolute;
  top: 50%;
  right: 15px;
  width: 7px;
  height: 7px;
  border-right: 1.5px solid #273248;
  border-bottom: 1.5px solid #273248;
  content: "";
  pointer-events: none;
  transform: translateY(-70%) rotate(45deg);
}

.refs-sector-select select {
  width: 100%;
  min-height: 42px;
  appearance: none;
  padding: 0 42px 0 15px;
  border: 1px solid #e4e9f0;
  border-radius: 8px;
  outline: none;
  background: #fff;
  color: #303b50;
  box-shadow: 0 4px 12px rgba(16, 31, 59, .04);
  cursor: pointer;
  font: inherit;
  font-size: 12px;
  font-weight: 750;
}

.refs-sector-select select:focus-visible {
  border-color: var(--refs-orange);
  box-shadow: 0 0 0 3px rgba(255, 101, 8, .13);
}

.refs-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 22px;
}

.refs-project-card {
  display: flex;
  min-width: 0;
  flex-direction: column;
  overflow: hidden;
  border: 1px solid #e4e9f0;
  border-radius: 16px;
  background: var(--refs-surface);
  box-shadow: var(--refs-shadow);
  transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
}

.refs-project-card:hover {
  transform: translateY(-5px);
  border-color: #ffd2b8;
  box-shadow: 0 22px 50px rgba(16, 31, 59, .13);
}

.refs-project-card[hidden] {
  display: none !important;
}

.refs-project-media {
  position: relative;
  min-height: 0;
  overflow: hidden;
  aspect-ratio: 16 / 7.6;
  border-bottom: 1px solid #e8edf4;
  background: linear-gradient(135deg, #edf2f8, #f8fafc);
}

.refs-project-media > img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
  transition: transform .45s ease;
}

.refs-project-card:hover .refs-project-media > img {
  transform: scale(1.035);
}

.refs-project-fallback {
  display: grid;
  width: 100%;
  height: 100%;
  place-items: center;
  background:
    radial-gradient(circle at 24% 20%, rgba(255, 255, 255, .55), transparent 25%),
    linear-gradient(135deg, #0b2348, #276ee8);
  color: #fff;
}

.refs-project-fallback b {
  display: grid;
  width: 76px;
  height: 76px;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, .3);
  border-radius: 22px;
  background: rgba(255, 255, 255, .12);
  font-size: 25px;
  font-weight: 950;
  backdrop-filter: blur(8px);
}

.refs-service-badge {
  position: absolute;
  left: 14px;
  bottom: -1px;
  display: inline-flex;
  min-height: 29px;
  align-items: center;
  gap: 7px;
  padding: 6px 10px;
  border-radius: 8px 8px 0 0;
  background: #edf4ff;
  color: #276ee8;
  font-size: 11px;
  font-weight: 900;
  box-shadow: 0 -4px 12px rgba(16, 31, 59, .05);
}

.refs-service-badge i {
  width: 8px;
  height: 8px;
  border: 2px solid currentColor;
  border-radius: 2px;
  transform: rotate(12deg);
}

.refs-service-badge.is-ads {
  background: #fff1e6;
  color: #ff6909;
}

.refs-service-badge.is-software {
  background: #f5eaff;
  color: #9855dc;
}

.refs-service-badge.is-seo,
.refs-service-badge.is-social {
  background: #e9f9f0;
  color: #0ca662;
}

.refs-service-badge.is-other {
  background: #eef1f5;
  color: #48546a;
}

.refs-project-body {
  display: flex;
  flex: 1;
  flex-direction: column;
  padding: 18px 17px 15px;
}

.refs-project-heading {
  display: flex;
  min-width: 0;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.refs-project-heading > div {
  min-width: 0;
}

.refs-project-heading h3 {
  overflow: hidden;
  margin: 0;
  color: var(--refs-navy);
  font-size: 15px;
  font-weight: 900;
  line-height: 1.3;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.refs-project-heading span {
  display: block;
  overflow: hidden;
  margin-top: 4px;
  color: #7a8497;
  font-size: 11px;
  font-weight: 700;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.refs-project-logo {
  display: block;
  width: 38px;
  height: 30px;
  flex: 0 0 auto;
  object-fit: contain;
}

.refs-project-body > p {
  display: -webkit-box;
  min-height: 38px;
  overflow: hidden;
  margin: 11px 0 15px;
  color: #667188;
  font-size: 11.5px;
  line-height: 1.6;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.refs-project-footer {
  display: flex;
  min-width: 0;
  align-items: flex-end;
  justify-content: space-between;
  gap: 12px;
  margin-top: auto;
}

.refs-service-list {
  display: flex;
  min-width: 0;
  flex-wrap: wrap;
  gap: 5px;
}

.refs-service-list span {
  max-width: 132px;
  overflow: hidden;
  padding: 4px 7px;
  border-radius: 999px;
  background: #f3f6fa;
  color: #637087;
  font-size: 9px;
  font-weight: 750;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.refs-project-footer > a {
  display: inline-flex;
  min-width: 0;
  max-width: 46%;
  flex: 0 1 auto;
  align-items: center;
  gap: 5px;
  overflow: hidden;
  color: #2f67cc;
  font-size: 9.5px;
  font-weight: 800;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.refs-project-footer > a:hover {
  color: var(--refs-orange);
}

.refs-project-footer > a svg {
  width: 14px;
  height: 14px;
  flex: 0 0 auto;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.refs-empty-state,
.refs-filter-empty {
  padding: 52px 24px;
  border: 1px dashed #ccd5e2;
  border-radius: 18px;
  background: rgba(255, 255, 255, .78);
  color: var(--refs-muted);
  text-align: center;
}

.refs-empty-state strong,
.refs-filter-empty strong {
  display: block;
  margin-bottom: 7px;
  color: var(--refs-navy);
  font-size: 20px;
}

.refs-empty-state p,
.refs-filter-empty span {
  margin: 0;
  font-size: 14px;
  line-height: 1.6;
}

.refs-testimonials {
  border-top: 1px solid #edf0f5;
  border-bottom: 1px solid #edf0f5;
  background:
    radial-gradient(circle at 12% 30%, rgba(255, 104, 11, .08), transparent 22%),
    linear-gradient(180deg, #fff, #fbfcfe);
}

.refs-testimonials .go-testimonials-head > span {
  letter-spacing: .06em;
}

.refs-cta-section {
  padding: 42px 0 64px;
  background: #f8fafc;
}

.refs-cta {
  display: grid;
  max-width: 860px;
  min-height: 94px;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 18px;
  margin: 0 auto;
  padding: 18px 22px;
  border: 1px solid #e3e8ef;
  border-radius: 16px;
  background: #fff;
  box-shadow: 0 14px 34px rgba(16, 31, 59, .07);
}

.refs-cta-icon {
  display: grid;
  width: 50px;
  height: 50px;
  place-items: center;
  border-radius: 12px;
  background: #fff0e7;
  color: var(--refs-orange);
}

.refs-cta h2 {
  margin: 0;
  color: var(--refs-navy);
  font-size: 18px;
  font-weight: 900;
  line-height: 1.3;
}

.refs-cta p {
  margin: 5px 0 0;
  color: var(--refs-muted);
  font-size: 13px;
}

.refs-cta > a {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 0 18px;
  border-radius: 9px;
  background: linear-gradient(135deg, #ff7a19, #ff5c04);
  color: #fff;
  box-shadow: 0 10px 22px rgba(255, 101, 8, .22);
  font-size: 12px;
  font-weight: 900;
  white-space: nowrap;
  transition: transform .2s ease, box-shadow .2s ease;
}

.refs-cta > a:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 28px rgba(255, 101, 8, .3);
}

@media (max-width: 1040px) {
  .refs-stats {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .refs-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .refs-toolbar {
    align-items: stretch;
    flex-direction: column;
    gap: 13px;
  }

  .refs-filter-scroll {
    width: 100%;
    padding-bottom: 4px;
    overflow-x: auto;
    scrollbar-width: none;
  }

  .refs-filter-scroll::-webkit-scrollbar {
    display: none;
  }

  .refs-sector-select {
    width: min(100%, 260px);
    flex-basis: auto;
  }
}

@media (max-width: 720px) {
  .refs-container {
    width: min(100% - 24px, 1180px);
  }

  .refs-dot-field {
    display: none;
  }

  .refs-hero {
    padding: 48px 0 32px;
  }

  .refs-hero-copy {
    margin-bottom: 28px;
  }

  .refs-hero-copy h1 {
    margin-top: 12px;
    font-size: clamp(37px, 11vw, 48px);
  }

  .refs-hero-copy p {
    max-width: 94%;
    font-size: 14px;
    line-height: 1.65;
  }

  .refs-stats {
    gap: 10px;
  }

  .refs-stat-card {
    min-height: 90px;
    gap: 11px;
    padding: 14px 12px;
  }

  .refs-stat-icon {
    flex-basis: 42px;
    width: 42px;
    height: 42px;
    border-radius: 10px;
  }

  .refs-stat-icon svg {
    width: 24px;
    height: 24px;
  }

  .refs-stat-card strong {
    font-size: 19px;
  }

  .refs-stat-card small {
    margin-top: 4px;
    font-size: 10px;
    line-height: 1.25;
  }

  .refs-projects {
    padding: 40px 0 62px;
  }

  .refs-section-title {
    margin-bottom: 22px;
  }

  .refs-section-title h2 {
    font-size: 30px;
  }

  .refs-filter-button {
    min-height: 40px;
  }

  .refs-sector-select {
    width: 100%;
  }

  .refs-grid {
    grid-template-columns: 1fr;
    gap: 18px;
  }

  .refs-project-media {
    aspect-ratio: 16 / 8.4;
  }

  .refs-project-heading h3 {
    font-size: 17px;
  }

  .refs-project-body > p {
    font-size: 12px;
  }

  .refs-project-footer {
    align-items: flex-start;
    flex-direction: column;
  }

  .refs-project-footer > a {
    max-width: 100%;
    font-size: 10.5px;
  }

  .refs-cta-section {
    padding: 28px 0 48px;
  }

  .refs-cta {
    grid-template-columns: auto 1fr;
    padding: 18px;
  }

  .refs-cta > a {
    grid-column: 1 / -1;
    width: 100%;
  }
}

@media (max-width: 410px) {
  .refs-stats {
    grid-template-columns: 1fr;
  }

  .refs-stat-card {
    min-height: 80px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .refs-project-card,
  .refs-project-media > img,
  .refs-filter-button,
  .refs-cta > a {
    transition: none !important;
  }
}
