/* Shared portfolio and contact card actions. */
.cv-btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  height: 40px;
  padding: 0 17.5px 0 16px;
  border: 1px solid color-mix(in srgb, var(--cta-light, var(--cool-light)) 55%, transparent);
  border-radius: var(--radius-pill);
  background: linear-gradient(135deg, color-mix(in srgb, var(--cta-base, var(--cool)) 34%, transparent), color-mix(in srgb, var(--cta-base, var(--cool)) 12%, transparent));
  color: color-mix(in srgb, var(--cta-light, var(--cool-light)) 38%, var(--text));
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  text-decoration: none;
  white-space: nowrap;
  overflow: hidden;
  isolation: isolate;
  box-shadow: 0 10px 26px -18px rgba(0, 0, 0, 0.8), inset 0 1px 0 rgba(255, 255, 255, 0.08);
  transition: transform 0.4s var(--easing), border-color 0.4s var(--easing), box-shadow 0.4s var(--easing), color 0.4s var(--easing);
}
.cv-btn::after {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -2;
  background: linear-gradient(135deg, color-mix(in srgb, var(--cta-light, var(--cool-light)) 55%, transparent), color-mix(in srgb, var(--cta-base, var(--cool)) 30%, transparent));
  opacity: 0;
  transition: opacity 0.4s var(--easing);
}
.cv-btn::before {
  content: '';
  position: absolute;
  top: 0;
  bottom: 0;
  left: -70%;
  width: 45%;
  z-index: -1;
  background: linear-gradient(100deg, transparent, var(--cta-shine, rgba(214, 232, 255, 0.34)), transparent);
  transform: skewX(-18deg);
  transition: left 0.8s var(--easing);
}
.cv-btn:is(:hover, :focus-visible) {
  transform: translateY(-2px);
  color: var(--text);
  border-color: var(--cta-light, var(--cool-light));
  box-shadow: 0 16px 34px -14px color-mix(in srgb, var(--cta-base, var(--cool)) 90%, transparent),
    0 0 0 3px color-mix(in srgb, var(--cta-light, var(--cool-light)) 16%, transparent),
    inset 0 1px 0 rgba(255, 255, 255, 0.14);
}
.cv-btn:is(:hover, :focus-visible)::after { opacity: 1; }
.cv-btn:is(:hover, :focus-visible)::before { left: 125%; }
.cv-btn svg { width: 16px; height: 16px; flex-shrink: 0; stroke-width: 1.6; margin-top: -1px; } /* глиф на 0.5px ниже центра */
/* разрядка добавляет пустоту и после последней буквы — гасим, иначе надпись уезжает влево */
.cv-btn > span { margin-right: -0.16em; }
/* Единый ритм иконок. Стрелка движется в направлении действия. */
.cv-arrow { --arrow-from: translateY(-9px); --arrow-to: translateY(4px); }
.card-arrow { --arrow-from: translate(-4px, 4px); --arrow-to: translate(3px, -3px); }

@keyframes ctaArrowTravel {
  0% { transform: var(--arrow-from); opacity: 0; }
  30% { opacity: 1; }
  65% { transform: translate(0, 0); opacity: 1; }
  100% { transform: var(--arrow-to); opacity: 0; }
}

.cv-btn:is(:hover, :focus-visible) :is(.cv-arrow, .card-arrow) {
  animation: ctaArrowTravel 1.6s ease-in-out infinite;
}
.cv-btn:focus-visible { outline: 2px solid var(--cta-light, var(--cool-light)); outline-offset: 3px; }

.contact-card-btn {
  --cta-base: var(--accent-deep);
  --cta-light: var(--accent-glow);
  --cta-shine: rgba(240, 200, 150, 0.36);
}
