/* Services overview: two columns and a circular reveal from pointer entry. */
.wl-service-choices {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.wl-service-choice {
  position: relative;
  overflow: hidden;
  isolation: isolate;
  transition: border-color 200ms;
}

.wl-service-choice:hover {
  background: var(--bg);
  transform: none;
}

.wl-service-choice:hover .wl-service-icon-badge {
  background: var(--accent-soft);
  border-color: rgba(50, 36, 223, 0.12);
  color: var(--accent);
  transform: none;
}

.wl-service-surface {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  width: 100%;
  flex: 1;
}

/* Keep the action in the layout; reveal it only on the blue layer. */
.wl-service-surface:not(.wl-service-reveal) .wl-choice-action {
  opacity: 0;
}

.wl-service-reveal {
  position: absolute;
  inset: 0;
  width: auto;
  padding: inherit;
  border-radius: inherit;
  pointer-events: none;
  background: var(--accent);
  color: #fff;
  clip-path: circle(0px at var(--reveal-x, 50%) var(--reveal-y, 50%));
  transition: clip-path 650ms cubic-bezier(.22, 1, .36, 1);
}

.wl-service-choice.is-revealed .wl-service-reveal {
  clip-path: circle(var(--reveal-radius) at var(--reveal-x, 50%) var(--reveal-y, 50%));
}

.wl-service-choice .wl-service-reveal :is(h2, p, .wl-service-number, .wl-choice-action, .wl-service-icon-badge) {
  color: #fff;
}

.wl-service-choice .wl-service-reveal .wl-service-icon-badge {
  background: transparent;
  border-color: #ffffff3d;
  transform: none;
  transition: none;
}

.wl-service-reveal .wl-choice-action > span {
  border-color: #ffffff5c;
}

.wl-service-choice:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 4px;
}

@media (max-width: 809px) {
  .wl-service-choices { grid-template-columns: minmax(0, 1fr); }
}

@media (prefers-reduced-motion: reduce) {
  .wl-service-reveal { transition: none; }
}
