/* Landing page partners band (.hp-*). Layout only, tokens only.
   Desktop: a tinted band with the heading and button in the middle and partner logos scattered on both sides, some cut off by the screen edge.
   Tablets and phones (under 1200px): heading and button first, the logos in a wrapped row underneath.
   js/home-partners.js gives each logo a slot class (hp-slot-1 to hp-slot-12) in a new random order on every load. */
.hp-partners { position: relative; overflow: hidden; padding: var(--space-6) 0; }
.hp-stage { position: relative; min-height: calc(var(--space-9) * 4.6); display: flex; align-items: center; justify-content: center; }
.hp-band { position: absolute; left: 0; right: 0; top: 13%; bottom: 11%; background: var(--color-primary-soft); }
.hp-content { position: relative; z-index: 1; text-align: center; max-width: calc(var(--space-9) * 4); padding: 0 var(--space-4); }
.hp-title { margin: 0 0 var(--space-5); }
.hp-cloud { position: absolute; inset: 0; margin: 0; padding: 0; list-style: none; pointer-events: none; }
.hp-item { position: absolute; margin: 0; padding: 0; }
.hp-logo { display: flex; align-items: center; justify-content: center; box-sizing: border-box; width: var(--hp-size); height: var(--hp-size); padding: calc(var(--hp-size) * 0.14); border-radius: var(--radius-full); background: var(--color-bg); border: 1px solid var(--color-border); box-shadow: var(--shadow-pt-card); text-decoration: none; pointer-events: auto; animation: hp-float 7s ease-in-out infinite; transition: box-shadow 0.2s ease; }
.hp-logo img { display: block; max-width: 100%; max-height: 100%; width: auto; height: auto; object-fit: contain; }
.hp-logo--fill { padding: 0; overflow: hidden; }
.hp-logo--fill img { width: 100%; height: 100%; max-width: none; max-height: none; object-fit: cover; border-radius: var(--radius-full); }
a.hp-logo:hover { box-shadow: var(--shadow-primary-md); }
a.hp-logo:focus-visible { outline: none; box-shadow: var(--shadow-focus); border-color: var(--color-primary); }
.hp-d-1 { animation-delay: -1s; }
.hp-d-2 { animation-delay: -2.5s; }
.hp-d-3 { animation-delay: -4s; }
.hp-d-4 { animation-delay: -5.5s; }
@keyframes hp-float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(calc(var(--space-2) * -1)); } }

/* The 12 places, in an order where any first few are well spread (left, right, left, right ...). Sizes: s, m, l. */
.hp-slot-1  { --hp-size: calc(var(--space-8) * 1.6);  left: 10%;  top: 22%; }
.hp-slot-2  { --hp-size: calc(var(--space-8) * 1.6);  right: 12%; top: 8%; }
.hp-slot-3  { --hp-size: calc(var(--space-8) * 1.4);  left: 14%;  top: 66%; }
.hp-slot-4  { --hp-size: calc(var(--space-8) * 1.6);  right: 20%; top: 62%; }
.hp-slot-5  { --hp-size: calc(var(--space-8) * 1);    left: 1%;   top: 4%; }
.hp-slot-6  { --hp-size: calc(var(--space-8) * 1.3);  right: 1%;  top: 2%; }
.hp-slot-7  { --hp-size: calc(var(--space-8) * 1.9);  left: -3%;  top: 52%; }
.hp-slot-8  { --hp-size: calc(var(--space-8) * 1.9);  right: -3%; top: 62%; }
.hp-slot-9  { --hp-size: calc(var(--space-8) * 1.3);  left: 21%;  top: 8%; }
.hp-slot-10 { --hp-size: calc(var(--space-8) * 1.2);  right: 4%;  top: 37%; }
.hp-slot-11 { --hp-size: calc(var(--space-8) * 0.9);  left: 24%;  top: 46%; }
.hp-slot-12 { --hp-size: calc(var(--space-8) * 1);    right: 25%; top: 6%; }

@media (max-width: 1199px) {
  .hp-stage { display: block; min-height: 0; padding: var(--space-6) var(--space-4) var(--space-5); }
  .hp-band { top: 0; bottom: 0; }
  .hp-content { max-width: none; padding: 0; }
  .hp-cloud { position: relative; inset: auto; display: flex; flex-wrap: wrap; justify-content: center; gap: var(--space-5); margin-top: var(--space-5); }
  .hp-item { position: static; }
  .hp-slot-1, .hp-slot-2, .hp-slot-3, .hp-slot-4, .hp-slot-5, .hp-slot-6,
  .hp-slot-7, .hp-slot-8, .hp-slot-9, .hp-slot-10, .hp-slot-11, .hp-slot-12 { --hp-size: calc(var(--space-8) * 1.3); }
  .hp-slot-5, .hp-slot-11 { --hp-size: calc(var(--space-8) * 1); }
}
@media (prefers-reduced-motion: reduce) { .hp-logo { animation: none; transition: none; } }
