@layer hunter-home-refine {
  html[data-hm-home-refine] {
    scroll-padding-top: 104px;
  }

  html[data-hm-home-refine] body,
  html[data-hm-home-refine] main {
    overflow-x: hidden;
  }

  #hm-home-priority-root {
    display: none !important;
  }

  .hm-home-module-refined {
    scroll-margin-top: 112px;
  }

  .hm-home-module-refined > div {
    min-width: 0;
  }

  .hm-home-module-refined .hm-module-copy-pane {
    order: 1;
  }

  .hm-home-module-refined .hm-module-card-pane {
    order: 2;
  }

  @media (min-width: 1024px) {
    .hm-home-module-refined.hm-module--card-left .hm-module-card-pane {
      order: 1 !important;
    }

    .hm-home-module-refined.hm-module--card-left .hm-module-copy-pane {
      order: 2 !important;
    }

    .hm-home-module-refined.hm-module--card-right .hm-module-copy-pane {
      order: 1 !important;
    }

    .hm-home-module-refined.hm-module--card-right .hm-module-card-pane {
      order: 2 !important;
    }
  }

  .hm-form-flow-note {
    margin-top: 8px;
    color: rgba(180, 190, 210, 0.62);
    font-size: 12px;
    line-height: 1.55;
  }

  .hm-partner-ecosystem {
    overflow: hidden;
  }

  .hm-partner-heading {
    width: min(1100px, calc(100% - 48px));
    margin: 0 auto 34px;
    text-align: center;
  }

  .hm-partner-heading span {
    display: none;
  }

  .hm-partner-heading h3 {
    margin: 0;
    color: #f7f8ff;
    font-size: clamp(32px, 4.6vw, 62px);
    line-height: 1.02;
    font-weight: 950;
    letter-spacing: 0;
  }

  .hm-partner-heading p {
    display: none;
  }

  .hm-partner-marquee {
    position: relative;
    width: 100%;
    padding: 16px 0;
  }

  .hm-partner-track {
    display: flex;
    width: max-content;
    gap: 54px;
    align-items: center;
    animation: hmPartnerMarquee 32s linear infinite;
    will-change: transform;
  }

  .hm-partner-track__set {
    display: flex;
    align-items: center;
    gap: 54px;
    padding-inline: 27px;
  }

  .hm-partner-logo {
    min-width: auto;
    height: 62px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 13px;
    padding: 0;
    border: 0;
    border-radius: 0;
    background: transparent;
    color: rgba(138, 149, 174, 0.78);
    box-shadow: none;
    transition: color 0.24s ease, transform 0.24s ease, filter 0.24s ease;
  }

  .hm-partner-logo i {
    width: 38px;
    height: 38px;
    flex: 0 0 auto;
    background: currentColor;
    -webkit-mask: var(--hm-logo) center / contain no-repeat;
    mask: var(--hm-logo) center / contain no-repeat;
  }

  .hm-partner-logo b {
    color: currentColor;
    font-size: 17px;
    font-weight: 900;
    letter-spacing: 0.01em;
    white-space: nowrap;
  }

  .hm-partner-logo:hover {
    color: rgba(231, 236, 248, 0.94);
    transform: translateY(-2px);
    filter: drop-shadow(0 0 18px rgba(155, 107, 255, 0.16));
  }

  .hm-partner-fade {
    position: absolute;
    top: 0;
    bottom: 0;
    z-index: 2;
    width: min(16vw, 220px);
    pointer-events: none;
  }

  .hm-partner-fade--left {
    left: 0;
    background: linear-gradient(90deg, #0a0a0f 0%, rgba(10, 10, 15, 0) 100%);
  }

  .hm-partner-fade--right {
    right: 0;
    background: linear-gradient(270deg, #0a0a0f 0%, rgba(10, 10, 15, 0) 100%);
  }

  @keyframes hmPartnerMarquee {
    0% {
      transform: translateX(0);
    }
    100% {
      transform: translateX(-50%);
    }
  }

  @media (max-width: 768px) {
    html[data-hm-home-refine] {
      scroll-padding-top: 88px;
    }

    .hm-partner-heading {
      width: min(100% - 32px, 640px);
      margin-bottom: 28px;
      text-align: left;
    }

    .hm-partner-heading h3 {
      font-size: clamp(28px, 9vw, 42px);
    }

    .hm-partner-heading p {
      margin-left: 0;
      font-size: 14px;
    }

    .hm-partner-track,
    .hm-partner-track__set {
      gap: 28px;
    }

    .hm-partner-logo {
      height: 54px;
    }

    .hm-partner-logo i {
      width: 32px;
      height: 32px;
    }

    .hm-partner-logo b {
      font-size: 15px;
    }
  }

  @media (prefers-reduced-motion: reduce) {
    .hm-partner-track {
      animation: none !important;
      transform: none !important;
    }

    .hm-partner-logo {
      transition: none !important;
    }
  }
}
