.products {
  content-visibility: visible;
  contain-intrinsic-size: none;
}

.infinite-grid-menu {
  --grid-accent: #695cff;
  position: relative;
  width: 100%;
  padding: 0;
  background: #f7f8fa;
  color: #11151b;
}

.infinite-grid-menu__stage {
  position: relative;
  height: clamp(560px, 66vw, 820px);
  min-height: 520px;
  overflow: hidden;
  isolation: isolate;
  background:
    radial-gradient(circle at 50% 46%, rgba(118, 97, 255, .14), transparent 31%),
    radial-gradient(circle at 74% 24%, rgba(103, 223, 248, .12), transparent 26%),
    #f1f4fa;
}

.infinite-grid-menu__stage::after {
  content: "";
  position: absolute;
  z-index: 3;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(90deg, rgba(241, 244, 250, .96), transparent 19%, transparent 81%, rgba(241, 244, 250, .96)),
    linear-gradient(rgba(241, 244, 250, .78), transparent 17%, transparent 83%, rgba(241, 244, 250, .88));
}

.infinite-grid-menu__title {
  position: absolute;
  z-index: 5;
  top: clamp(16px, 2.4vw, 36px);
  left: clamp(24px, 4vw, 64px);
  right: clamp(24px, 4vw, 64px);
  width: auto;
  max-width: none;
  margin: 0;
  color: #11151b;
  font-family: var(--font-display);
  text-align: left;
  pointer-events: none;
  text-shadow: 0 2px 24px rgba(247, 249, 253, .96);
}

.text-type {
  display: block;
  white-space: pre-wrap;
}

.text-type__value,
.text-type__cursor {
  display: inline-block;
  font-size: clamp(36px, 5.2vw, 72px);
  font-weight: 900;
  line-height: 1.5;
  letter-spacing: -.065em;
  white-space: nowrap;
}

.text-type__cursor {
  margin-left: .16em;
  font-weight: 700;
  letter-spacing: 0;
  opacity: 1;
  animation: text-type-cursor-blink .72s steps(1, end) infinite;
}

.text-type__cursor--hidden {
  display: none;
}

@keyframes text-type-cursor-blink {
  50% { opacity: 0; }
}

#infinite-grid-menu-canvas {
  cursor: grab;
  width: 100%;
  height: 100%;
  overflow: hidden;
  position: relative;
  outline: none;
  z-index: 1;
  display: block;
  touch-action: none;
}

#infinite-grid-menu-canvas:active { cursor: grabbing; }
#infinite-grid-menu-canvas:focus-visible { box-shadow: inset 0 0 0 3px var(--grid-accent); }

.face-title,
.face-description {
  display: none !important;
}

.action-button {
  position: absolute;
}

.face-title {
  user-select: none;
  position: absolute;
  font-weight: 900;
  font-size: 3rem;
  left: 1.6em;
  top: 50%;
  margin: 0;
  color: #172038;
  font-family: var(--font-display);
  transform: translate(20%, -50%);
}

.face-description {
  user-select: none;
  position: absolute;
  max-width: 10ch;
  top: 50%;
  font-size: 1.2rem;
  right: 1%;
  margin: 0;
  color: rgba(48, 58, 82, .76);
  transform: translate(0, -50%);
}

.face-title.active {
  opacity: 1;
  transform: translate(20%, -50%);
  pointer-events: auto;
  transition: .5s ease;
}

.face-title.inactive {
  pointer-events: none;
  opacity: 0;
  transition: .1s ease;
}

.face-description.active {
  opacity: 1;
  transform: translate(-90%, -50%);
  pointer-events: auto;
  transition: .5s ease;
}

.face-description.inactive {
  pointer-events: none;
  transform: translate(-60%, -50%);
  opacity: 0;
  transition: .1s ease;
}

.action-button {
  position: absolute;
  left: 50%;
  z-index: 10;
  width: 60px;
  height: 60px;
  display: grid;
  place-items: center;
  background: #5b45f5;
  border: 5px solid #f7f9fd;
  border-radius: 50%;
  cursor: pointer;
  padding: 0;
  box-shadow: 0 8px 28px rgba(78, 62, 221, .28), 0 0 0 1px rgba(54, 63, 94, .12);
}

.action-button-icon {
  user-select: none;
  position: relative;
  color: #fff;
  top: 2px;
  width: 26px;
  height: 26px;
  font-size: 26px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.action-button.active {
  bottom: 3.8em;
  transform: translateX(-50%) scale(1);
  opacity: 1;
  pointer-events: auto;
  transition: .5s ease;
}

.action-button.inactive {
  bottom: -80px;
  transform: translateX(-50%) scale(0);
  opacity: 0;
  pointer-events: none;
  transition: .1s ease;
}

@media (max-width: 1500px) {
  .face-title,
  .face-description {
    display: none;
  }
}

@media (max-width: 640px) {
  .text-type__value,
  .text-type__cursor {
    font-size: clamp(34px, 11vw, 48px);
  }
}

@media (max-width: 560px) {
  .infinite-grid-menu { padding: 0; }
  .infinite-grid-menu__stage { min-height: 560px; }
  .infinite-grid-menu__title {
    top: 14px;
    left: 24px;
    right: 24px;
    width: auto;
    max-width: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  .face-title,
  .face-description,
  .action-button { transition: none !important; }

  .text-type__cursor {
    display: none;
    animation: none !important;
  }
}
