.brands-cylinder-hero {
  position: relative;
  isolation: isolate;
  display: grid;
  grid-template-columns: minmax(0, .84fr) minmax(620px, 1.16fr);
  align-items: center;
  gap: clamp(34px, 4vw, 80px);
  min-height: max(800px, calc(100svh - 68px));
  max-height: 980px;
  overflow: hidden;
  padding: 116px clamp(28px, 6vw, 116px) 70px;
  color: #fff;
  background:
    radial-gradient(circle at 78% 50%, rgba(111, 84, 234, .19), transparent 34%),
    radial-gradient(circle at 56% 95%, rgba(255, 112, 38, .17), transparent 36%),
    linear-gradient(145deg, #070709 0%, #101017 52%, #08090c 100%);
  border-radius: 0 0 38px 38px;
}

.brands-hero-aurora {
  position: absolute;
  z-index: -1;
  right: -9%;
  bottom: -42%;
  width: 78vw;
  aspect-ratio: 1;
  border-radius: 50%;
  background: conic-gradient(from 100deg, rgba(245, 120, 48, .18), rgba(177, 75, 221, .2), rgba(71, 114, 249, .14), rgba(245, 120, 48, .18));
  filter: blur(75px);
  animation: brands-aurora-drift 16s linear infinite;
}

.brands-hero-copy {
  position: relative;
  z-index: 5;
  max-width: 720px;
}

.brands-hero-copy .eyebrow { color: #ff782b; }

.brands-hero-copy h1 {
  margin: 18px 0 25px;
  font-size: clamp(60px, 6.3vw, 112px);
  line-height: .91;
  letter-spacing: -.075em;
}

.brands-hero-copy h1 span {
  background: linear-gradient(105deg, #ff782b 0%, #d8589d 48%, #a36be5 74%, #c2e95d 112%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.brands-hero-copy p {
  max-width: 630px;
  margin: 0;
  color: rgba(255, 255, 255, .67);
  font-size: clamp(17px, 1.35vw, 21px);
  line-height: 1.55;
}

.brands-hero-copy .pill.outline {
  border-color: rgba(255, 255, 255, .35);
  color: #fff !important;
}

.brands-cylinder-wrap {
  position: relative;
  z-index: 6;
  isolation: isolate;
  min-height: 650px;
  perspective: 1000px;
  transform: translateZ(0);
}

.brands-cylinder {
  position: absolute;
  z-index: 4;
  inset: 38px 0 72px;
  transform-style: preserve-3d;
}

.brands-cylinder-item {
  --cylinder-offset: 0;
  position: absolute;
  z-index: 2;
  top: 50%;
  left: 50%;
  width: min(820px, 94%);
  padding: 25px 32px;
  border: 0;
  border-radius: 28px;
  color: rgba(255, 255, 255, .78);
  background: linear-gradient(105deg, rgba(82, 65, 130, .76), rgba(93, 58, 111, .72));
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, .16),
    0 28px 60px rgba(0, 0, 0, .22);
  font: 760 clamp(25px, 3.05vw, 54px)/1.05 -apple-system, BlinkMacSystemFont, "SF Pro Display", "Segoe UI", sans-serif;
  letter-spacing: -.045em;
  text-align: center;
  cursor: pointer;
  opacity: calc(1 - var(--cylinder-distance, 0) * .21);
  transform:
    translate(-50%, -50%)
    translateY(calc(var(--cylinder-offset) * 132px))
    rotateX(calc(var(--cylinder-offset) * -20deg))
    scale(calc(1 - var(--cylinder-distance, 0) * .085));
  backface-visibility: hidden;
  will-change: transform, opacity;
  transition: transform .55s cubic-bezier(.2, .75, .17, 1), opacity .45s ease, color .45s ease, background .45s ease, box-shadow .45s ease;
}

.brands-cylinder-item.is-active {
  z-index: 5;
  color: #fff;
  background: linear-gradient(105deg, rgba(255, 122, 42, .94), rgba(204, 77, 162, .92) 52%, rgba(115, 92, 226, .92));
  box-shadow: 0 28px 80px rgba(221, 78, 122, .25), inset 0 1px 0 rgba(255, 255, 255, .42);
}

.brands-cylinder-item.is-distant {
  opacity: 0;
  pointer-events: none;
}

.brands-cylinder-item:focus-visible { outline-color: #fff; }

.brands-cylinder-focus {
  position: absolute;
  z-index: 1;
  top: 50%;
  left: 50%;
  width: 86%;
  height: 150px;
  transform: translate(-50%, -50%);
  border-radius: 50%;
  background: radial-gradient(ellipse, rgba(255, 101, 48, .2), transparent 68%);
  filter: blur(26px);
}

.brands-cylinder-orbit {
  position: absolute;
  z-index: 0;
  inset: 8% 2% 10%;
  border: 1px solid rgba(255, 255, 255, .11);
  border-radius: 50%;
  transform: rotate(-8deg);
  box-shadow: inset 0 0 80px rgba(124, 87, 222, .08);
}

.brands-cylinder-orbit::before,
.brands-cylinder-orbit::after {
  content: "";
  position: absolute;
  border-radius: 50%;
  background: #ff782b;
  box-shadow: 0 0 22px rgba(255, 120, 43, .8);
}

.brands-cylinder-orbit::before { top: 7%; left: 19%; width: 8px; height: 8px; }
.brands-cylinder-orbit::after { right: 12%; bottom: 14%; width: 5px; height: 5px; }

.brands-cylinder-hint {
  position: absolute;
  z-index: 7;
  right: 7%;
  bottom: 24px;
  margin: 0;
  color: rgba(255, 255, 255, .42);
  font-size: 12px;
  letter-spacing: .12em;
  text-transform: uppercase;
}

@keyframes brands-aurora-drift {
  to { transform: rotate(360deg); }
}

@media (max-width: 1100px) {
  .brands-cylinder-hero {
    grid-template-columns: 1fr;
    max-height: none;
    padding-top: 108px;
  }
  .brands-hero-copy { max-width: 850px; text-align: center; margin: 0 auto; }
  .brands-hero-copy p { margin: 0 auto; }
  .brands-hero-copy .hero-actions { justify-content: center; }
  .brands-cylinder-wrap { min-height: 610px; }
}

@media (max-width: 620px) {
  .brands-cylinder-hero { min-height: 0; padding: 92px 16px 38px; border-radius: 0 0 26px 26px; }
  .brands-hero-copy h1 { font-size: clamp(52px, 15vw, 72px); }
  .brands-hero-copy p { font-size: 16px; }
  .brands-cylinder-wrap { min-height: 520px; }
  .brands-cylinder { inset: 25px 0 58px; }
  .brands-cylinder-item {
    width: 100%;
    padding: 20px 16px;
    border-radius: 22px;
    font-size: clamp(22px, 7vw, 32px);
    transform:
      translate(-50%, -50%)
      translateY(calc(var(--cylinder-offset) * 102px))
      rotateX(calc(var(--cylinder-offset) * -18deg))
      scale(calc(1 - var(--cylinder-distance, 0) * .07));
  }
  .brands-cylinder-hint { right: 50%; width: 100%; transform: translateX(50%); text-align: center; }
}

@media (prefers-reduced-motion: reduce) {
  .brands-hero-aurora { animation: none; }
  .brands-cylinder-item { transition-duration: .01ms; }
}
