.brand-strip {
  --brand-gap: 20px;
  --brand-min-tile: calc(132px + var(--brand-gap));
}

.brand-window,
.brand-window.wordmark {
  display: block;
  height: 48px;
  overflow: hidden;
  contain: inline-size;
}

.brand-window:focus-visible { outline-offset: -3px; }

.brand-track {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, var(--brand-min-tile)), 1fr));
  grid-auto-rows: 48px;
}

.brand-tile {
  display: flex;
  justify-content: space-around;
  align-items: center;
}

.mbti-brand-paw {
  width: 36px;
  height: 32px;
  flex: none;
}

.brand-logo {
  width: auto;
  height: 32px;
  flex: none;
}

.brand-motion-controls {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  align-items: center;
  padding-inline: 12px;
  font-size: 12px;
}

.brand-strip-public {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
}

.brand-strip-public .brand-motion-controls { padding-inline: 4px; }

.brand-strip-public .brand-motion-toggle {
  display: grid;
  place-items: center;
  width: 32px;
  min-height: 32px;
  padding: 0;
}

.brand-strip-public .brand-motion-toggle:focus-visible { outline-offset: -2px; }

.brand-motion-toggle svg {
  width: 16px;
  height: 16px;
  fill: currentColor;
}

.brand-play-icon,
[data-motion-paused] .brand-pause-icon { display: none; }
[data-motion-paused] .brand-play-icon { display: inline; }

.brand-motion-toggle {
  min-height: 32px;
  padding: 4px 8px;
  background: none;
  color: inherit;
  text-decoration: underline;
}

[data-motion-enabled] .brand-track {
  display: flex;
  width: max-content;
  height: 48px;
  animation: brand-scroll var(--brand-duration) linear infinite var(--brand-play-state, running);
}

[data-motion-enabled] .brand-tile {
  flex: 0 0 var(--brand-step);
  justify-content: flex-start;
  gap: var(--brand-gap);
  padding-right: var(--brand-gap);
}

[data-motion-paused] .brand-track { --brand-play-state: paused; }

@keyframes brand-scroll {
  to { transform: translateX(calc(-1 * var(--brand-step))); }
}

@media (prefers-reduced-motion: reduce) {
  [data-motion-enabled] .brand-track {
    animation: brand-scroll var(--brand-duration) linear infinite var(--brand-play-state, running) !important;
  }
}
