/* The homepage catalogue showcase, using the existing catalogue and artwork. */
.bb-connect-section {
  --connect-bg: #061226;
  --connect-heading: #fff;
  --connect-text: #dedede;
  --connect-accent: #f68b20;
  --connect-accent-hover: #ffb56b;
  --connect-border: #393939;
  --connect-hover: #ffffff08;
  --connect-tile-border: transparent;
  position: relative;
  isolation: isolate;
  overflow: hidden;
  padding: 104px 24px 100px;
  color: var(--connect-heading);
  background: var(--connect-bg);
}
html.light .bb-connect-section {
  --connect-bg: #fff;
  --connect-heading: #061226;
  --connect-text: #40424D;
  --connect-accent: #b75400;
  --connect-accent-hover: #914400;
  --connect-border: #E8EAF0;
  --connect-hover: #06122605;
  --connect-tile-border: #E8EAF0;
}
.bb-connect-section .marquee-statement {
  position: relative;
  z-index: 1;
  max-width: 960px;
  padding: 0;
  text-align: center;
}
.bb-connect-section .marquee-title {
  max-width: 900px;
  margin: 0 auto;
  color: var(--connect-heading);
  font-family: var(--font);
  font-size: clamp(32px, 4.4vw, 48px);
  font-weight: 400;
  line-height: 1.08;
  letter-spacing: -0.035em;
  text-wrap: balance;
}
.bb-connect-description {
  max-width: 680px;
  margin: 28px auto 0;
  color: var(--connect-text);
  font-size: 18px;
  line-height: 1.55;
  text-wrap: pretty;
}
.bb-connect-link {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 44px;
  margin-top: 6px;
  color: var(--connect-accent);
  font-size: 18px;
  font-weight: 600;
}
.bb-connect-link:hover { color: var(--connect-accent-hover); }
.bb-connect-stage {
  position: relative;
  display: grid;
  align-items: center;
  height: 220px;
  max-width: 1600px;
  margin: 64px auto 0;
}
.bb-connect-lines {
  position: absolute;
  z-index: -1;
  top: 50%;
  left: 0;
  width: 100%;
  height: 640px;
  transform: translateY(-50%);
  pointer-events: none;
}
.bb-connect-lines path { stroke: url(#bb-connect-stroke); stroke-width: 1; }
.bb-connect-section section.agent-grid-section {
  --bg-primary: var(--connect-bg);
  width: 100%;
  max-width: none;
  margin: 0;
  padding: 0;
  background: transparent;
}
.bb-connect-section .agent-grid-section::before,
.bb-connect-section .agent-grid-section::after { width: 16%; }
.bb-connect-section .agent-grid { display: flex; gap: 32px; padding: 0; }
.bb-connect-section .ag-carousel-row { padding: 12px 0; }
.bb-connect-section .ag-carousel-track { --ag-gap: 32px; }
.bb-connect-section .agent-grid .ag-tile {
  flex: 0 0 112px;
  width: 112px;
  height: 152px;
  min-width: 112px;
  padding: 6px;
  border: 0;
  border-radius: 0;
  background: #fff;
  box-shadow: inset 0 0 0 1px var(--connect-tile-border);
  transform: none;
}
.bb-connect-section .ag-tile-header { width: 100%; height: 100%; }
.bb-connect-section .ag-tile-icon {
  width: 100%;
  height: 100%;
  border-radius: 0;
  background: transparent;
  object-fit: contain;
}
/* Retain each catalogue name and category for screen readers. */
.bb-connect-section .ag-tile-meta,
.bb-connect-section .ag-tile-status {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}
.bb-connect-section .ag-tile-bar { display: none; }
.bb-connect-hub {
  position: absolute;
  z-index: 6;
  inset: 0;
  display: grid;
  place-items: center;
  width: 196px;
  height: 196px;
  margin: auto;
  padding: 42px;
  background: #fff;
  box-shadow: 0 0 100px 64px var(--connect-bg), inset 0 0 0 1px var(--connect-tile-border);
}
.bb-connect-hub img { display: block; width: 100%; height: auto; }
.bb-connect-categories {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 28px;
  max-width: 920px;
  margin: 76px auto 0;
}
.bb-connect-categories a {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 64px;
  padding: 12px 18px;
  border-left: 1px solid var(--connect-border);
  color: var(--connect-text);
  font-size: 18px;
}
.bb-connect-categories a::before {
  content: '';
  position: absolute;
  top: 0;
  left: -1px;
  width: 1px;
  height: 26px;
  background: #EA720F;
}
.bb-connect-categories a span:last-child { color: var(--connect-accent); }
.bb-connect-categories a:hover { color: var(--connect-heading); background: var(--connect-hover); }
.bb-connect-section a:focus-visible,
.bb-connect-section .ag-carousel-row:focus-visible { outline: 2px solid #f68b20; outline-offset: 5px; }
.bb-connect-section .ag-carousel-row:focus { overflow-x: auto; }
.bb-connect-section .ag-carousel-row:focus .ag-carousel-track { animation: none; transform: none; }
@media (max-width: 768px) {
  .bb-connect-section { padding: 72px 20px; }
  .bb-connect-section .marquee-title { font-size: clamp(36px, 6vw, 48px); }
  .bb-connect-description { margin-top: 24px; font-size: 16px; }
  .bb-connect-link { font-size: 16px; }
  .bb-connect-stage { height: 148px; margin: 48px -20px 0; }
  .bb-connect-hub { width: 136px; height: 136px; padding: 30px; box-shadow: 0 0 48px 22px var(--connect-bg), inset 0 0 0 1px var(--connect-tile-border); }
  .bb-connect-lines { height: 460px; }
  .bb-connect-section .ag-carousel-track { --ag-gap: 20px; }
  .bb-connect-section .agent-grid .ag-tile { flex-basis: 80px; min-width: 80px; width: 80px; height: 108px; padding: 4px; }
  .bb-connect-categories { grid-template-columns: repeat(2, 1fr); gap: 20px; margin-top: 52px; }
  .bb-connect-categories a { min-height: 56px; padding: 10px 14px; font-size: 16px; }
}
@media (prefers-reduced-motion: reduce) {
  .bb-connect-section .ag-carousel-row { overflow-x: auto; }
  .bb-connect-section .ag-carousel-track { animation: none; transform: none; }
}
