.commitments-home {
  background: #fff;
  overflow: hidden;
}

.commitments-home .container-wide {
  position: relative;
  z-index: 1;
}

.commitment-section-orb {
  position: absolute;
  border-radius: 999px;
  filter: blur(64px);
  pointer-events: none;
}

.commitment-section-orb-blue {
  top: 0;
  left: 0;
  width: 20rem;
  height: 20rem;
  background: hsl(218 83% 49% / .08);
}

.commitment-section-orb-green {
  right: 0;
  bottom: 0;
  width: 18rem;
  height: 18rem;
  background: hsl(141 90% 28% / .08);
}

.commitment-interactive {
  display: grid;
  grid-template-columns: minmax(0, 2fr) minmax(0, 3fr);
  gap: 2rem;
  align-items: stretch;
  margin-top: 3rem;
}

.commitment-list {
  display: grid;
  align-content: start;
  gap: .25rem;
}

.commitment-list button {
  position: relative;
  width: 100%;
  border: 0;
  border-radius: .75rem;
  background: transparent;
  color: var(--text-secondary);
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1rem 1.25rem;
  text-align: left;
  cursor: pointer;
  overflow: hidden;
  transition: background .3s ease, color .3s ease, transform .3s ease;
}

.commitment-list button:hover {
  background: hsl(210 29% 97% / .6);
}

.commitment-list button.active {
  background: var(--gray-soft);
}

.commitment-list button span {
  flex: 0 0 auto;
  width: 2.25rem;
  height: 2.25rem;
  border-radius: .5rem;
  display: grid;
  place-items: center;
  background: hsl(218 83% 49% / .1);
  color: var(--blue);
  font-size: .875rem;
  font-weight: 800;
  line-height: 1;
  transition: background .3s ease, color .3s ease;
}

.commitment-list button.active span {
  background: linear-gradient(135deg, var(--blue), var(--green));
  color: #fff;
}

.commitment-list button strong {
  color: inherit;
  font-size: 1rem;
  font-weight: 600;
  line-height: 1.35;
  transition: color .3s ease;
}

.commitment-list button:hover strong,
.commitment-list button.active strong {
  color: var(--navy);
}

.commitment-list button i {
  position: absolute;
  left: 1.25rem;
  right: 1.25rem;
  bottom: 0;
  height: .125rem;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--blue), var(--green));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .3s ease;
}

.commitment-list button:hover i,
.commitment-list button.active i {
  transform: scaleX(1);
}

.commitment-content {
  min-width: 0;
  height: 100%;
}

.commitment-display {
  position: relative;
  min-height: 23rem;
  height: 100%;
  border-radius: 1.5rem;
  color: #fff;
  padding: clamp(2rem, 3vw, 2.5rem);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, .25);
}

.commitment-display.is-changing {
  animation: commitment-slide-right .7s cubic-bezier(.16, 1, .3, 1) both;
}

.commitment-glow {
  position: absolute;
  border-radius: 999px;
  filter: blur(40px);
  pointer-events: none;
}

.commitment-glow-blue {
  top: 0;
  right: 0;
  width: 12rem;
  height: 12rem;
  background: hsl(218 83% 49% / .2);
}

.commitment-glow-green {
  left: 0;
  bottom: 0;
  width: 10rem;
  height: 10rem;
  background: hsl(141 90% 28% / .2);
}

.commitment-stripes {
  position: absolute;
  inset: 0;
  opacity: .2;
  background-image:
    repeating-linear-gradient(
      135deg,
      rgba(255, 255, 255, .16) 0,
      rgba(255, 255, 255, .16) 1px,
      transparent 1px,
      transparent 18px
    );
}

.commitment-display-inner {
  position: relative;
  z-index: 1;
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.commitment-display-inner > span {
  color: hsl(48 92% 52% / .3);
  font-size: 3.75rem;
  font-weight: 800;
  line-height: 1;
}

.commitment-display h3 {
  color: #fff;
  font-size: clamp(1.5rem, 2.6vw, 1.875rem);
  font-weight: 800;
  line-height: 1.15;
  margin: 1rem 0;
}

.commitment-display p {
  color: #dbeafe;
  font-size: 1.125rem;
  line-height: 1.65;
}

.commitment-display em {
  display: block;
  width: 4rem;
  height: .25rem;
  border-radius: 999px;
  margin-top: 1.5rem;
  background: linear-gradient(90deg, var(--blue), var(--green));
}

.commitments-home .center-line {
  margin-top: 2.5rem;
}

@keyframes commitment-slide-right {
  from {
    opacity: 0;
    transform: translateX(40px);
  }

  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@media (max-width: 1023px) {
  .commitment-interactive {
    grid-template-columns: 1fr;
  }

  .commitment-display {
    min-height: 19rem;
  }
}

@media (max-width: 767px) {
  .commitment-list button {
    padding: .9rem 1rem;
  }

  .commitment-list button i {
    left: 1rem;
    right: 1rem;
  }

  .commitment-display {
    min-height: 17rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  .commitment-display.is-changing {
    animation: none;
  }
}
