/* =========================================================
   BRAND CLOUD (references logos)
========================================================= */
:root {
  --brand-cloud-frame-gradient: linear-gradient(90deg, #080e14 0%, #0b1118 25%, #152030 50%, #0b1118 75%, #080e14 100%);
}

@keyframes brandCloudGradient {
  0%, 100% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
}
@keyframes brandCloudCellInFromTop {
  from {
    opacity: 0;
    transform: translateY(-22px) scale(.92);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}
@keyframes brandCloudCellInFromBottom {
  from {
    opacity: 0;
    transform: translateY(22px) scale(.92);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}
@keyframes brandCloudCellIn {
  from {
    opacity: 0;
    transform: translateY(14px) scale(.9);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}
@keyframes brandCloudGhostIn {
  from {
    opacity: 0;
    transform: translateY(14px) scale(.9);
  }
  to {
    opacity: .55;
    transform: translateY(0) scale(1);
  }
}
@keyframes brandCloudFloat {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-5px); }
}
@keyframes brandCloudCenterIn {
  from {
    opacity: 0;
    transform: translateY(18px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
@keyframes brandCloudCtaPulse {
  0%, 100% { box-shadow: 0 8px 24px rgba(10, 20, 30, .14); }
  50% { box-shadow: 0 12px 30px rgba(10, 20, 30, .22); }
}
.brand-cloud.section {
  padding-top: 40px;
  padding-bottom: 64px;
  background: #fff;
}
.brand-cloud {
  background: #fff;
}
.brand-cloud__frame {
  position: relative;
  display: block;
  min-height: 0;
  background: var(--brand-cloud-frame-gradient);
  background-size: 200% 100%;
  animation: brandCloudGradient 12s ease infinite;
  border-radius: 16px;
  overflow: hidden;
  padding: 40px 48px;
  box-sizing: border-box;
}
.brand-cloud__layout {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(260px, 0.9fr);
  gap: 40px;
  align-items: center;
}
.brand-cloud__aside {
  position: relative;
  display: grid;
  grid-template-columns: repeat(5, 82px);
  grid-template-rows: repeat(4, 82px);
  gap: 12px;
  justify-content: end;
  align-content: center;
  min-height: 364px;
  width: 100%;
}
.brand-cloud__team,
.brand-cloud__logos {
  display: contents;
}
.brand-cloud__cell--ghost {
  display: block;
  width: 82px;
  height: 82px;
  border: 1px solid rgba(255, 255, 255, .18);
  background: rgba(255, 255, 255, .04);
  grid-column: 1;
  grid-row: 1;
  opacity: 0;
  animation: brandCloudGhostIn .55s cubic-bezier(.22, .9, .25, 1) .08s forwards;
}
.brand-cloud__team .brand-cloud__cell--portrait,
.brand-cloud__logos .brand-cloud__cell--logo {
  width: 82px;
  height: 82px;
}
.brand-cloud__logos .brand-cloud__cell--logo:nth-child(1) { grid-column: 4; grid-row: 2; }
.brand-cloud__team .brand-cloud__cell--portrait:nth-child(1) { grid-column: 4; grid-row: 1; }
.brand-cloud__team .brand-cloud__cell--portrait:nth-child(2) { grid-column: 3; grid-row: 2; }
.brand-cloud__logos .brand-cloud__cell--logo:nth-child(2) { grid-column: 2; grid-row: 3; }
.brand-cloud__team .brand-cloud__cell--portrait:nth-child(3) { grid-column: 3; grid-row: 3; }
.brand-cloud__team .brand-cloud__cell--portrait:nth-child(4) { grid-column: 4; grid-row: 3; }
.brand-cloud__logos .brand-cloud__cell--logo:nth-child(3) { grid-column: 5; grid-row: 3; }
.brand-cloud__team .brand-cloud__cell--portrait:nth-child(5) { grid-column: 3; grid-row: 4; }
.brand-cloud__team .brand-cloud__cell--portrait:nth-child(6) { grid-column: 5; grid-row: 2; }
.brand-cloud__logos .brand-cloud__cell--logo {
  padding: 10px;
}
.brand-cloud__team .brand-cloud__cell--portrait,
.brand-cloud__logos .brand-cloud__cell--logo {
  opacity: 0;
  animation:
    brandCloudCellIn .55s cubic-bezier(.22, .9, .25, 1) forwards,
    brandCloudFloat 7s ease-in-out infinite;
  animation-delay:
    calc(var(--cell-i, 0) * 35ms),
    calc(var(--cell-i, 0) * 160ms + 600ms);
}
.brand-cloud__logos .brand-cloud__cell--logo img {
  max-width: 72%;
  max-height: 72%;
}
.brand-cloud__grid--desktop {
  display: none;
}
.brand-cloud__grid--band {
  display: none;
}
.brand-cloud__cell {
  border-radius: 14px;
  box-sizing: border-box;
}
.brand-cloud__cell--hole {
  display: none;
}
.brand-cloud__cell--logo {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 10px;
  border: 1px solid rgba(0, 0, 0, .06);
  background: #fff;
  box-shadow: 0 2px 10px rgba(0, 0, 0, .1);
  text-decoration: none;
  opacity: 0;
  transition: box-shadow .18s ease, border-color .18s ease, background .18s ease, transform .18s ease;
}
.brand-cloud__cell--logo:hover {
  animation-play-state: paused, paused;
  transform: translateY(-2px);
  border-color: rgba(0, 0, 0, .1);
  background: #fff;
  box-shadow: 0 10px 24px rgba(0, 0, 0, .16);
}
.brand-cloud__cell--logo:hover img {
  opacity: .88;
}
.brand-cloud__cell--logo img {
  display: block;
  width: 100%;
  height: 100%;
  max-width: 72%;
  max-height: 72%;
  object-fit: contain;
  filter: grayscale(1);
  opacity: .72;
}
.brand-cloud__cell--portrait {
  display: block;
  padding: 0;
  border: 1px solid rgba(0, 0, 0, .08);
  background: #fff;
  overflow: hidden;
  box-shadow: 0 4px 14px rgba(0, 0, 0, .14);
  opacity: 0;
}
.brand-cloud__cell--portrait img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 1;
  filter: none;
}
.brand-cloud__center {
  position: static;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  text-align: left;
  z-index: 2;
  padding: 0;
  pointer-events: auto;
}
.brand-cloud__title {
  margin: 0 0 22px;
  max-width: 34rem;
  font-size: clamp(1.75rem, 2.8vw, 2.35rem);
  font-weight: 800;
  line-height: 1.12;
  letter-spacing: -.02em;
  color: #fff;
  opacity: 0;
}
.brand-cloud__frame .brand-cloud__title {
  animation: brandCloudCenterIn .7s cubic-bezier(.22, .9, .25, 1) .2s forwards;
}
.brand-cloud__body {
  margin: 0 0 24px;
  max-width: 32rem;
  font-size: 1rem;
  line-height: 1.65;
  color: rgba(255, 255, 255, .94);
  opacity: 0;
}
.brand-cloud__frame .brand-cloud__body {
  animation: brandCloudCenterIn .7s cubic-bezier(.22, .9, .25, 1) .3s forwards;
}
.brand-cloud__cta {
  pointer-events: auto;
  opacity: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 0;
  height: 44px;
  padding: 0 18px;
  border-radius: var(--btn-radius, 4px);
  border: none;
  background: #fff;
  color: #0a141e;
  font-family: inherit;
  font-size: .82rem;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  box-shadow: 0 8px 24px rgba(10, 20, 30, .14);
  transition: transform .18s ease, box-shadow .18s ease, background .18s ease;
}
.brand-cloud__frame .brand-cloud__cta {
  animation:
    brandCloudCenterIn .7s cubic-bezier(.22, .9, .25, 1) .42s forwards,
    brandCloudCtaPulse 2.8s ease-in-out 1.2s infinite;
}
.brand-cloud__cta:hover {
  background: #f8fafc;
  color: #0a141e;
  box-shadow: 0 12px 28px rgba(10, 20, 30, .18);
  transform: translateY(-2px);
}
.brand-cloud__cta-label--mobile {
  display: none;
}
@media (prefers-reduced-motion: reduce) {
  .brand-cloud__frame {
    animation: none;
    background: linear-gradient(90deg, #080e14 0%, #0b1118 50%, #152030 100%);
    background-size: auto;
  }
  .brand-cloud__team .brand-cloud__cell--portrait,
  .brand-cloud__logos .brand-cloud__cell--logo,
  .brand-cloud__cell--ghost,
  .brand-cloud__frame .brand-cloud__grid--band .brand-cloud__cell--logo,
  .brand-cloud__frame .brand-cloud__grid--band .brand-cloud__cell--portrait,
  .brand-cloud__frame .brand-cloud__title,
  .brand-cloud__frame .brand-cloud__body,
  .brand-cloud__frame .brand-cloud__cta {
    animation: none;
    opacity: 1;
    transform: none;
  }
}
@media (max-width: 1024px) {
  .brand-cloud__layout {
    grid-template-columns: 1fr;
    gap: 24px;
  }
  .brand-cloud__aside {
    display: none;
  }
  .brand-cloud__grid--band {
    display: none;
  }
  .brand-cloud__frame {
    min-height: 0;
    padding: 28px 16px 24px;
  }
  .brand-cloud__center {
    align-items: center;
    text-align: center;
    padding: 0 8px;
  }
  .brand-cloud__grid--top .brand-cloud__cell--logo,
  .brand-cloud__grid--top .brand-cloud__cell--portrait {
    animation:
      brandCloudCellInFromTop .55s cubic-bezier(.22, .9, .25, 1) forwards,
      brandCloudFloat 7s ease-in-out infinite;
    animation-delay:
      calc(var(--cell-i, 0) * 40ms),
      calc(var(--cell-i, 0) * 160ms + 600ms);
  }
  .brand-cloud__grid--bottom .brand-cloud__cell--logo,
  .brand-cloud__grid--bottom .brand-cloud__cell--portrait {
    animation:
      brandCloudCellInFromBottom .55s cubic-bezier(.22, .9, .25, 1) forwards,
      brandCloudFloat 6.5s ease-in-out infinite;
    animation-delay:
      calc(var(--cell-i, 0) * 40ms),
      calc(var(--cell-i, 0) * 160ms + 600ms);
  }
  .brand-cloud__cell {
    width: 52px;
    height: 52px;
    flex: 0 0 52px;
  }
  .brand-cloud__cell--logo {
    padding: 6px;
  }
  .brand-cloud__cell--logo img {
    max-width: 40px;
    max-height: 40px;
  }
  .brand-cloud__title {
    font-size: clamp(1.45rem, 5.6vw, 1.9rem);
    margin-bottom: 14px;
  }
  .brand-cloud__body {
    font-size: .92rem;
    margin-bottom: 20px;
  }
  .brand-cloud__cta-label--desktop {
    display: none;
  }
  .brand-cloud__cta-label--mobile {
    display: inline;
  }
  .brand-cloud__cta {
    min-width: 0;
    height: 36px;
    padding: 0 12px;
    font-size: .78rem;
    font-weight: 600;
    line-height: 1;
    white-space: nowrap;
    background: var(--brand-lime, #adf44d);
    color: #0a141e;
    box-shadow: none;
  }
  .brand-cloud__frame .brand-cloud__cta {
    animation: brandCloudCenterIn .7s cubic-bezier(.22, .9, .25, 1) .42s forwards;
  }
  .brand-cloud__cta:hover,
  .brand-cloud__cta:focus-visible {
    background: var(--brand-lime, #adf44d);
    color: #0a141e;
    transform: none;
    box-shadow: none;
  }
}
@media (max-width: 640px) {
  .brand-cloud.section {
    padding: 40px 0;
  }
  .brand-cloud__frame {
    padding: 24px 14px 22px;
  }
  .brand-cloud__body {
    font-size: .88rem;
    margin-bottom: 16px;
  }
  .brand-cloud__cell {
    width: 44px;
    height: 44px;
    flex: 0 0 44px;
    border-radius: 8px;
  }
  .brand-cloud__cell--logo {
    padding: 5px;
  }
  .brand-cloud__cell--logo img {
    max-width: 34px;
    max-height: 34px;
  }
}

.brand-cloud__center--white .brand-cloud__center-panel {
  pointer-events: auto;
  width: min(560px, calc(100% - 2rem));
  max-width: 100%;
  padding: 2.5rem 2rem;
  border-radius: 16px;
  background: #fff;
  box-shadow: 0 20px 60px rgba(8, 20, 30, .16);
}

.brand-cloud__center--white .brand-cloud__title,
.brand-cloud__center--white .ss-cta__title {
  color: var(--ink, #08141e);
}

.brand-cloud__center--white .brand-cloud__body,
.brand-cloud__center--white .ss-cta__body {
  color: var(--ink-soft, #555e6a);
}

.brand-cloud__center--white .ss-cta__badge {
  margin-bottom: 1rem;
}

@media (max-width: 1024px) {
  .brand-cloud__center--white .brand-cloud__center-panel {
    width: 100%;
    padding: 0;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
  }

  .brand-cloud__center--white .brand-cloud__title,
  .brand-cloud__center--white .ss-cta__title,
  .brand-cloud__center--white .brand-cloud__body,
  .brand-cloud__center--white .ss-cta__body {
    color: #fff;
  }
}
