.references-page {
  --ref-gutter: max(clamp(1.25rem, 6vw, 6rem), calc((100% - 78rem) / 2));
  color: var(--ink);
  background: var(--canvas);
}

.references-page .ref-hero { padding: clamp(3.2rem, 7vw, 7rem) var(--ref-gutter); }
.references-page .ref-hero h1 {
  margin: 0;
  font-size: clamp(2.4rem, 7vw, 6.25rem);
  line-height: 1.03;
  letter-spacing: -.065em;
  overflow-wrap: anywhere;
}
.references-page .ref-hero p { max-width: 42rem; margin: 1.2rem 0 0; font-size: clamp(1rem, 1.4vw, 1.22rem); }

.ref-strip {
  --ref-gap: clamp(.7rem, 1.4vw, 1.4rem);
  padding-block: clamp(2.8rem, 5vw, 5rem);
  border-bottom: 1px solid var(--line);
}
.ref-strip + .ref-strip { background: var(--blue-surface); }
.ref-strip-head {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  margin: 0 var(--ref-gutter) clamp(1.35rem, 2.3vw, 2.3rem);
}
.ref-strip-head h2 {
  font-size: clamp(1.8rem, 3.6vw, 3.35rem);
  line-height: 1.1;
  letter-spacing: -.055em;
}
.ref-strip-head button {
  display: inline-flex;
  gap: .45rem;
  align-items: center;
  justify-content: center;
  min-width: 2.75rem;
  min-height: 2.75rem;
  padding: .4rem .85rem;
  border-radius: 99rem;
  border: 1px solid var(--line-strong);
  color: var(--dark);
  background: #fff;
  cursor: pointer;
}
.ref-strip-head button:hover { border-color: var(--accent); }
.ref-strip-head button[hidden] { display: none; }
.ref-rail { overflow: hidden; }
.ref-track {
  display: flex;
  width: max-content;
  animation: ref-scroll 42s linear infinite;
}
.ref-list {
  display: flex;
  flex: none;
  align-items: stretch;
  justify-content: space-around;
  min-width: 100vw;
  gap: var(--ref-gap);
  list-style: none;
  margin: 0;
  padding: 0 var(--ref-gap) 0 0;
}
.ref-tile {
  display: flex;
  flex: none;
  align-items: center;
  justify-content: center;
  gap: .5rem;
  width: clamp(9.5rem, 17vw, 16.5rem);
  min-height: clamp(5rem, 8vw, 7rem);
  padding: clamp(.75rem, 1.4vw, 1.4rem);
  border: 1px solid var(--line);
  border-radius: .85rem;
  background: #fff;
  color: var(--dark);
}
.ref-tile img { object-fit: contain; max-width: 100%; width: 100%; height: clamp(2.6rem, 4vw, 3.6rem); }
.ref-tile img:has(+ span) { width: 2rem; height: 2rem; flex-shrink: 0; }
.ref-tile span { font-weight: 600; line-height: 1.2; font-size: clamp(.9rem, 1.4vw, 1.1rem); }
.ref-tile[data-light-logo] { background: var(--dark); border-color: var(--dark); color: var(--light); }
.ref-strip + .ref-strip .ref-track { animation-direction: reverse; }
.ref-strip[data-paused] .ref-track, .ref-rail:focus-within .ref-track { animation-play-state: paused; }
@media (hover: hover) {
  .ref-rail:hover .ref-track { animation-play-state: paused; }
}
@keyframes ref-scroll { to { transform: translateX(-50%); } }

.ref-strip[data-static] .ref-track { display: block; width: auto; margin-inline: var(--ref-gutter); animation: none; }
.ref-strip[data-static] .ref-list { min-width: 0; flex-wrap: wrap; justify-content: flex-start; padding: 0; }
.ref-strip[data-static] .ref-list + .ref-list { display: none; }
.ref-strip[data-static] .ref-tile { width: min(100%, clamp(8rem, 16vw, 15rem)); }
@media (prefers-reduced-motion: reduce) {
  .ref-track { display: block; width: auto; margin-inline: var(--ref-gutter); animation: none; }
  .ref-list { min-width: 0; flex-wrap: wrap; justify-content: flex-start; padding: 0; }
  .ref-list + .ref-list, .ref-strip-head button { display: none; }
  .ref-tile { width: min(100%, clamp(8rem, 16vw, 15rem)); }
}
