.hero-wrapper {
  --hero-lift: 32px;
  --spinner-size: 268px;
  --spinner-left: -130px;
  --spinner-top: 0px;
  --hero-row-gap: 32px;
  --hero-title-gap: 48px;
  --hero-top-gap: 24px;
  --hero-img-w: 672px;
  --hero-img-radius: 60px;
  --hero-logo-a: 52px;
  --hero-logo-b: 42px;
  --hero-partners-gap: 48px;
  --hero-partners-pad: 80px;
  --hero-bottom-pad: 60px;
  --hero-bottom-gap: 24px;
  --hero-info-gap: 20px;
  --feature-label-h: 62px;
  --feature-label-pad: 32px;
  --feature-label-gap: 16px;
  --feature-label-icon: 20px;

  width: 100%;
  min-height: calc(100vh - 2 * var(--container-pad-y));
  display: grid;
  align-content: center;
}
.hero {
  position: relative;
  isolation: isolate;

  display: grid;
  grid-template-rows: auto 1fr auto;
  row-gap: var(--hero-row-gap);
}
.hero-spinner {
  position: absolute;
  z-index: -1;
  top: var(--spinner-top);
  left: var(--spinner-left);
  width: var(--spinner-size);
}
.hero__top {
  display: flex;
  align-items: flex-start;
  gap: var(--hero-top-gap);
  width: 100%;
}
.hero__partners {
  flex: 1 1 auto;
  min-width: max-content;
  display: flex;
  flex-wrap: nowrap;
  justify-content: center;
  align-items: center;
  gap: var(--hero-partners-gap);
  padding-left: max(
    var(--hero-partners-pad),
    calc(var(--spinner-size) + var(--spinner-left) + 16px)
  );
  padding-top: 32px;
}
.hero__partners-logo {
  width: auto;
  max-width: 100%;
  object-fit: contain;
}
.hero__partners-logo:first-child {
  height: var(--hero-logo-a);
}
.hero__partners-logo:last-child {
  height: var(--hero-logo-b);
}
.hero__img {
  flex: 0 1 var(--hero-img-w);
  width: var(--hero-img-w);
  max-width: 100%;
  min-width: 0;
  height: auto;
  aspect-ratio: 672 / 388;
  border-radius: var(--hero-img-radius);
  object-fit: cover;
}

.hero__title-section {
  --hero-plaque-w: min(
    1140px,
    calc((100cqw - var(--hero-title-gap)) / 1.1588141)
  );
  --cta-h: calc(var(--hero-plaque-w) * 184 / 1140);

  width: 100%;
  align-self: center;
  margin-bottom: calc(2 * var(--hero-lift));
  container-type: inline-size;

  display: flex;
  align-items: flex-end;
  gap: var(--hero-title-gap);
}
.hero__title-bg {
  --title-padding: 5.2632%;
  --title-main-width: 72.807%;
  --title-main-height: 72.1485%;
  --title-secondary-width: 62.1053%;
  --title-secondary-height: 48.8064%;
  --title-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1140 377' preserveAspectRatio='none'%3E%3Cpath d='M830 133C830 166.137 856.863 193 890 193H1080C1113.14 193 1140 219.863 1140 253V317C1140 350.137 1113.14 377 1080 377H484.5C455.505 377 432 353.495 432 324.5C432 295.505 408.495 272 379.5 272H60C26.8629 272 0 245.137 0 212V60C0 26.8629 26.8629 0 60 0H770C803.137 0 830 26.8629 830 60V133Z'/%3E%3C/svg%3E");

  position: relative;
  flex: none;
  width: var(--hero-plaque-w);
  aspect-ratio: 1140 / 377;
  background-color: #ed1c24;
  color: #fff;

  mask-image: var(--title-mask);
  mask-size: 100% 100%;
  mask-repeat: no-repeat;
}
.hero__title-main,
.hero__title-secondary {
  position: absolute;
  margin: 0;
  display: flex;
  align-items: center;
  padding: 0 var(--title-padding);
}
.hero__title-main {
  top: 0;
  left: 0;
  width: var(--title-main-width);
  height: var(--title-main-height);
  font-weight: 700;
}
.hero__title-secondary {
  bottom: 0;
  right: 0;
  width: var(--title-secondary-width);
  height: var(--title-secondary-height);
  font-weight: 300;
}

.hero__bottom {
  width: 100%;
  max-width: 1140px;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: flex-end;
  gap: var(--hero-bottom-gap);
  padding-left: var(--hero-bottom-pad);
}
.hero__info-wrapper {
  display: flex;
  flex-wrap: wrap;
  gap: var(--hero-info-gap);
}
@media (max-width: 1439px) {
  .hero-wrapper {
    --spinner-size: 240px;
    --spinner-left: -120px;
    --hero-title-gap: 40px;
    --cta-shift-x: 20px;
    --hero-partners-pad: 48px;
  }
}

@media (max-width: 1279px) {
  .hero-wrapper {
    --spinner-size: 210px;
    --spinner-left: -105px;
    --hero-title-gap: 32px;
    --cta-shift-x: 16px;
    --hero-partners-pad: 24px;
    --hero-partners-gap: 32px;
    --hero-img-radius: 48px;
    --hero-logo-a: 46px;
    --hero-logo-b: 38px;
    --hero-bottom-pad: 24px;
    --hero-info-gap: 12px;
    --feature-label-h: 58px;
    --feature-label-pad: 20px;
    --feature-label-gap: 12px;
  }
}

@media (max-width: 1023px) {
  .hero-wrapper {
    --spinner-size: 180px;
    --spinner-left: -90px;
    --hero-lift: 16px;
    --hero-partners-pad: 0px;
    --hero-partners-gap: 24px;
    --hero-img-radius: 40px;
    --hero-logo-a: 40px;
    --hero-logo-b: 32px;
    --hero-bottom-pad: 24px;
    --feature-label-h: 56px;
  }
}

@media (max-width: 899px) {
  .hero-wrapper {
    --spinner-size: 150px;
    --spinner-left: -75px;
    --cta-shift-x: 12px;
    --hero-lift: 0px;
    --hero-row-gap: 24px;
    --hero-title-gap: 24px;
    --hero-img-radius: 32px;
    --hero-logo-a: 36px;
    --hero-logo-b: 30px;
    --hero-bottom-pad: 0px;
    --feature-label-h: 56px;
    --feature-label-icon: 18px;
  }
  .hero__bottom {
    flex-direction: column;
    align-items: stretch;
  }
}

@media (max-width: 767px) {
  .hero-spinner {
    display: none;
  }
  .hero-wrapper {
    --spinner-size: 0px;
    --spinner-left: 0px;
    --hero-title-gap: 20px;
    --cta-shift-x: 8px;
    --hero-top-gap: 20px;
    --hero-img-radius: 28px;
    --feature-label-h: 54px;
    --feature-label-pad: 20px;
  }
  .hero {
    min-height: 0;
  }
  .hero__top {
    flex-direction: column;
    align-items: stretch;
  }
  .hero__partners {
    justify-content: flex-start;
    padding-top: 0;
    order: 2;
  }
  .hero__img {
    flex: none;
    width: 100%;
    order: 1;
  }
  .hero__title-section {
    margin-bottom: 0;
  }
}

@media (max-width: 599px) {
  .hero-wrapper {
    --hero-img-radius: 24px;
    --hero-info-gap: 12px;
    --feature-label-h: 52px;
    --feature-label-icon: 16px;
  }
  .hero__title-section {
    flex-direction: column;
    align-items: stretch;
    gap: 16px;
  }
  .hero__title-bg {
    width: auto;
    aspect-ratio: auto;
    padding: 24px;
    border-radius: 32px;
    mask-image: none;

    display: flex;
    flex-direction: column;
    gap: 4px;
  }
  .hero__title-main,
  .hero__title-secondary {
    position: static;
    width: auto;
    height: auto;
    padding: 0;
    display: block;
  }
  .hero__title-secondary {
    align-self: flex-end;
    text-align: right;
  }
}

@media (max-width: 424px) {
  .hero-wrapper {
    --hero-logo-a: 32px;
    --hero-logo-b: 26px;
    --feature-label-h: 52px;
    --feature-label-pad: 18px;
  }
  .hero__title-bg {
    padding: 20px;
    border-radius: 24px;
  }
  .hero__info-wrapper {
    flex-direction: column;
  }
}

@media (max-width: 374px) {
  .hero-wrapper {
    --hero-partners-gap: 16px;
    --hero-logo-a: 28px;
    --hero-logo-b: 23px;
    --feature-label-h: 50px;
    --feature-label-pad: 16px;
  }
  .hero__title-bg {
    padding: 16px;
    border-radius: 20px;
  }
}

@media (min-width: 1024px) and (min-height: 700px) {
  .hero {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    height: 720px;
  }
  .hero__title-section {
    position: absolute;
    left: 0;
    right: 0;
    top: calc(50% - var(--hero-lift));
    translate: 0 -50%;
    width: auto;
    margin-bottom: 0;
  }
}

@media (min-width: 1024px) and (max-width: 1279px) and (min-height: 700px) {
  .hero {
    height: calc(0.414 * (100vw - 253.6px) + 264px);
  }
}

@media (min-width: 1280px) and (max-width: 1439px) and (min-height: 700px) {
  .hero {
    height: calc(0.414 * (100vw - 292px) + 248px);
  }
}

@media (max-height: 699px) and (min-width: 900px) {
  .hero-wrapper {
    --hero-lift: 0px;
    --hero-row-gap: 20px;
    --hero-img-w: 520px;
  }
}

@media (max-height: 599px) and (min-width: 900px) {
  .hero-wrapper {
    --hero-img-w: 400px;
    --hero-img-radius: 32px;
    --hero-logo-a: 40px;
    --hero-logo-b: 32px;
  }
  .hero {
    min-height: 0;
  }
}
