@import url("https://api.fontshare.com/v2/css?f[]=satoshi@500,600,700,900&display=swap");

.customers-index .customers-library-exact {
  width: 100%;
  max-width: none;
  overflow: visible;
  padding-inline: 30px;
}

.customer-exact-grid {
  --ugc-blue: #3847fe;
  --card-name-size: 30px;
  --card-body-size: 16px;
  --card-action-size: 14px;
  display: grid;
  width: min(1280px, 100%);
  grid-template-columns: repeat(2, minmax(0, 1fr));
  grid-auto-rows: 1fr;
  gap: 24px;
  margin: 0 auto;
  font-family: "Satoshi", ui-sans-serif, system-ui, -apple-system, sans-serif;
  -webkit-font-smoothing: antialiased;
  text-rendering: geometricPrecision;
}

.customer-exact-grid .exact-card-shell {
  display: flex;
  min-width: 0;
}

.customer-exact-grid .story-card {
  --card-start: #24365a;
  --card-end: #0f1626;
  --topography-x: 50%;
  position: relative;
  display: flex;
  width: 100%;
  min-height: 520px;
  flex: 1 1 auto;
  overflow: hidden;
  flex-direction: column;
  border: 1px solid rgba(255, 255, 255, .1);
  border-radius: 26px;
  background: linear-gradient(148deg, var(--card-start), var(--card-end));
  box-shadow: 0 24px 52px -38px rgba(18, 18, 18, .72);
  color: #fff;
  isolation: isolate;
  transition:
    transform 220ms cubic-bezier(.23, 1, .32, 1),
    box-shadow 220ms ease,
    border-color 220ms ease;
}

.customer-exact-grid .story-card::before {
  position: absolute;
  z-index: -1;
  inset: -6%;
  background: rgba(255, 255, 255, .78);
  content: "";
  opacity: .18;
  pointer-events: none;
  -webkit-mask: url("/assets/customers/topographic-contours.svg") var(--topography-x) center / auto 106% no-repeat;
  mask: url("/assets/customers/topographic-contours.svg") var(--topography-x) center / auto 106% no-repeat;
}

.customer-exact-grid .story-card::after {
  position: absolute;
  z-index: -1;
  inset: 0;
  background: linear-gradient(to bottom, transparent 34%, rgba(7, 8, 14, .1) 58%, rgba(7, 8, 14, .34) 100%);
  content: "";
  pointer-events: none;
}

.customer-exact-grid .theme-ugc-world {
  --card-start: #57307a;
  --card-end: #29113f;
  --topography-x: 30%;
}

.customer-exact-grid .theme-overgrow {
  --card-start: #315f47;
  --card-end: #173325;
  --topography-x: 53%;
}

.customer-exact-grid .theme-viral-app {
  --card-start: #29416d;
  --card-end: #101827;
  --topography-x: 76%;
}

.customer-exact-grid .theme-tinka {
  --card-start: #705a66;
  --card-end: #352d32;
  --topography-x: 68%;
}

.customer-exact-grid .story-visual {
  position: relative;
  display: flex;
  min-height: 140px;
  flex: 1 1 auto;
  align-items: flex-start;
  padding: 34px;
}

.customer-exact-grid .customer-logo {
  position: relative;
  z-index: 1;
  width: 68px;
  height: 68px;
  border: 1px solid rgba(255, 255, 255, .26);
  border-radius: 17px;
  box-shadow: 0 18px 34px -22px rgba(0, 0, 0, .72);
  object-fit: cover;
}

.customer-exact-grid .theme-tinka .customer-logo {
  object-position: center 18%;
}

.customer-exact-grid .story-copy {
  position: relative;
  z-index: 1;
  display: flex;
  min-width: 0;
  flex: 0 0 auto;
  flex-direction: column;
  padding: 0 34px 34px;
  background: transparent;
}

.customer-exact-grid .customer-name {
  margin: 0;
  color: #fff;
  font-family: "Satoshi", ui-sans-serif, system-ui, -apple-system, sans-serif;
  font-size: var(--card-name-size);
  font-weight: 700;
  line-height: 1.05;
  letter-spacing: -.04em;
}

.customer-exact-grid .description {
  max-width: 37ch;
  margin: 18px 0 0;
  color: rgba(255, 255, 255, .7);
  font-size: var(--card-body-size);
  font-weight: 500;
  line-height: 1.5;
  letter-spacing: -.01em;
}

.customer-exact-grid .story-footer {
  margin-top: 24px;
}

.customer-exact-grid .story-link {
  display: inline-flex;
  min-height: 48px;
  align-self: flex-start;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 0 19px;
  border: 1px solid rgba(255, 255, 255, .75);
  border-radius: 999px;
  background: #fff;
  color: #151515;
  font-size: var(--card-action-size);
  font-weight: 700;
  line-height: 1;
  text-decoration: none;
  transition:
    transform 160ms cubic-bezier(.23, 1, .32, 1),
    background-color 160ms ease,
    border-color 160ms ease;
}

.customer-exact-grid .story-link svg {
  width: 16px;
  height: 16px;
  transition: transform 160ms cubic-bezier(.23, 1, .32, 1);
}

.customer-exact-grid .story-link:active {
  transform: scale(.97);
}

.customer-exact-grid .story-link:focus-visible {
  outline: 3px solid rgba(255, 255, 255, .52);
  outline-offset: 4px;
}

@media (hover: hover) and (pointer: fine) {
  .customer-exact-grid .story-card:hover {
    border-color: rgba(255, 255, 255, .18);
    box-shadow: 0 34px 66px -40px rgba(18, 18, 18, .84);
    transform: translateY(-3px);
  }

  .customer-exact-grid .story-link:hover {
    background: rgba(255, 255, 255, .9);
    border-color: rgba(255, 255, 255, .9);
  }

  .customer-exact-grid .story-link:hover svg {
    transform: translateX(2px);
  }
}

@media (max-width: 980px) {
  .customers-index .customers-library-exact {
    padding-inline: 20px;
  }

  .customer-exact-grid {
    --card-body-size: 14px;
    gap: 16px;
  }

  .customer-exact-grid .story-card {
    min-height: 500px;
  }

  .customer-exact-grid .story-visual {
    min-height: 120px;
    padding: 26px;
  }

  .customer-exact-grid .story-copy {
    padding: 0 26px 26px;
  }

}

@media (max-width: 840px) {
  .customers-index .customers-library-exact {
    padding-inline: 14px;
  }

  .customer-exact-grid {
    --card-body-size: 16px;
    width: min(520px, 100%);
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .customer-exact-grid .story-card {
    min-height: 540px;
    border-radius: 22px;
  }

  .customer-exact-grid .story-visual {
    min-height: 145px;
    padding: 28px;
  }

  .customer-exact-grid .customer-logo {
    width: 62px;
    height: 62px;
    border-radius: 15px;
  }

  .customer-exact-grid .story-copy {
    padding: 0 28px 28px;
  }

}

@media (prefers-reduced-motion: reduce) {
  .customer-exact-grid .story-card,
  .customer-exact-grid .story-link,
  .customer-exact-grid .story-link svg {
    transition: none;
  }

  .customer-exact-grid .story-card:hover,
  .customer-exact-grid .story-link:active {
    transform: none;
  }
}
