/* A steady invitation to the portfolio; palette-aware and motion optional. */
html[data-theme] body[data-wdg-shell="r5"] .studio-r1 .sr3-portfolio-cta {
  --portfolio-glow: var(--studio-accent-soft);
  position: relative;
  isolation: isolate;
  overflow: hidden;
  gap: 14px;
  border-color: var(--portfolio-glow) !important;
  box-shadow: 0 0 0 2px color-mix(in srgb, var(--portfolio-glow) 30%, transparent),
              0 0 24px color-mix(in srgb, var(--portfolio-glow) 55%, transparent);
  animation: portfolio-beacon-r7 3.6s ease-in-out infinite;
  transition: transform .2s ease;
}
html[data-theme="light"] body[data-wdg-shell="r5"] .studio-r1 .sr3-portfolio-cta {
  --portfolio-glow: var(--studio-accent);
}
html[data-theme] body[data-wdg-shell="r5"] .studio-r1 .sr3-portfolio-cta > span {
  position: relative;
  z-index: 2;
}
html[data-theme] body[data-wdg-shell="r5"] .studio-r1 .sr3-portfolio-cta::before {
  content: "";
  position: absolute;
  inset: auto -25% 0;
  height: 3px;
  z-index: 1;
  pointer-events: none;
  background: linear-gradient(110deg, transparent 35%, rgb(255 255 255 / .7) 49%, transparent 63%);
  transform: translateX(-140%);
  animation: portfolio-shimmer-r7 7.2s ease-in-out infinite;
}
html[data-theme] body[data-wdg-shell="r5"] .studio-r1 .sr3-portfolio-arrow {
  display: inline-block;
  font-size: 20px;
  line-height: 1;
  transition: transform .2s ease;
}
html[data-theme] body[data-wdg-shell="r5"] .studio-r1 .sr3-portfolio-cta:is(:hover, :focus-visible) {
  text-decoration: none;
  transform: translateY(-2px);
}
html[data-theme] body[data-wdg-shell="r5"] .studio-r1 .sr3-portfolio-cta:focus-visible {
  outline: 3px solid var(--studio-on-dark);
  outline-offset: 7px;
}
html[data-theme="light"] body[data-wdg-shell="r5"] .studio-r1 .sr3-portfolio-cta:focus-visible {
  outline-color: var(--studio-ink);
}
html[data-theme] body[data-wdg-shell="r5"] .studio-r1 .sr3-portfolio-cta:is(:hover, :focus-visible) .sr3-portfolio-arrow {
  transform: translateX(4px);
}
@keyframes portfolio-beacon-r7 {
  0%, 100% {
    box-shadow: 0 0 0 2px color-mix(in srgb, var(--portfolio-glow) 25%, transparent),
                0 0 18px color-mix(in srgb, var(--portfolio-glow) 40%, transparent),
                0 5px 18px rgb(0 0 0 / .12);
  }
  50% {
    box-shadow: 0 0 0 5px color-mix(in srgb, var(--portfolio-glow) 18%, transparent),
                0 0 34px color-mix(in srgb, var(--portfolio-glow) 80%, transparent),
                0 0 58px color-mix(in srgb, var(--portfolio-glow) 28%, transparent);
  }
}
@keyframes portfolio-shimmer-r7 {
  0%, 62% { transform: translateX(-140%); opacity:0; }
  66% { opacity:1; }
  84%, 100% { transform: translateX(140%); opacity:0; }
}
@media (prefers-reduced-motion: reduce) {
  html[data-theme] body[data-wdg-shell="r5"] .studio-r1 .sr3-portfolio-cta,
  html[data-theme] body[data-wdg-shell="r5"] .studio-r1 .sr3-portfolio-cta::before,
  html[data-theme] body[data-wdg-shell="r5"] .studio-r1 .sr3-portfolio-arrow {
    animation: none !important;
    transition: none !important;
    transform: none !important;
  }
  html[data-theme] body[data-wdg-shell="r5"] .studio-r1 .sr3-portfolio-cta::before { display:none; }
}
