/*
 * Sinecdo Motion & Interaction v1.0.0 — Phase 1.3 / 2026-12-01
 * Source: Figma 60zlnPJ1kmX4meinJ9GPNB, Motion & Interaction 21:43.
 * Reuses foundations + UI states. No runtime JS, images or external requests.
 * The sweep is an animated CSS treatment, not a static Figma vector export.
 */
:root { --sc-motion-version: "1.0.0"; }

/* The existing primary buttons keep their size, accessible name and action.
   A clipped, noninteractive overlay avoids clipping the button's focus outline. */
/* Keep the generated overlay absent at rest to avoid needless paint layers. */
html body :is(.button:not(.secondary), .q-primary, .sc-button:not(.sc-button--secondary))::after {
  content: none;
  position: absolute;
  inset: 0;
  z-index: 1;
  border-radius: inherit;
  pointer-events: none;
  opacity: 0;
  background: linear-gradient(110deg, transparent 34%, rgba(255,255,255,var(--sc-shine-opacity)) 50%, transparent 66%) no-repeat;
  background-size: 260% 100%;
  background-position: 100% 50%;
}
@keyframes sc-specular-sweep {
  0% { background-position: 100% 50%; opacity: 0; }
  16% { opacity: 1; }
  82% { opacity: 1; }
  100% { background-position: 0% 50%; opacity: 0; }
}
@media (hover: hover) and (pointer: fine) and (prefers-reduced-motion: no-preference) and (forced-colors: none) {
  html body :is(.button:not(.secondary), .q-primary, .sc-button:not(.sc-button--secondary)):not(:disabled):not([aria-disabled="true"]):not([aria-busy="true"]):hover {
    position: relative;
    isolation: isolate;
  }
  html body :is(.button:not(.secondary), .q-primary, .sc-button:not(.sc-button--secondary)):not(:disabled):not([aria-disabled="true"]):not([aria-busy="true"]):hover::after {
    content: "";
    /* Linear traversal keeps the highlight visible across the entire CTA;
       the separate opacity keyframes soften the entry and exit. */
    animation: sc-specular-sweep var(--sc-motion-shine) var(--sc-ease-linear) 1 both;
  }
}

/* Soft transition on actual navigation links only, not the wordmark,
   language selector, or informational cards. Preserve the native focus ring. */
html body .nav-links > a[href]:not(.button) {
  text-decoration-line: underline;
  text-decoration-color: transparent;
  text-decoration-thickness: 1px;
  text-underline-offset: .35em;
  transition: color var(--sc-motion-standard) var(--sc-ease-standard), text-decoration-color var(--sc-motion-standard) var(--sc-ease-standard);
}
html body .nav-links > a[href]:not(.button):focus-visible {
  text-decoration-color: var(--sc-aqua);
}
@media (hover: hover) and (pointer: fine) {
  html body .nav-links > a[href]:not(.button):not([aria-disabled="true"]):hover {
    text-decoration-color: var(--sc-aqua);
  }
}

/* One existing signal marker in the hero; the original dot never disappears.
   Two 1.8 s pulses, then a transparent halo (3.6 s total; no endless loop).
   .sc-signal-pulse is an opt-in utility for an 8px decorative signal dot. */
.sc-signal-pulse {
  display: inline-block;
  width: 8px;
  height: 8px;
  flex: 0 0 8px;
  border-radius: 50%;
  background: var(--sc-aqua);
}
:is(.hero-copy .eyebrow, .sc-signal-pulse) { position: relative; }
:is(.hero-copy .eyebrow, .sc-signal-pulse)::after {
  content: "";
  position: absolute;
  box-sizing: border-box;
  width: 20px;
  height: 20px;
  left: 4px;
  top: 50%;
  border: 1px solid var(--sc-aqua);
  border-radius: 50%;
  transform: translate(-50%,-50%) scale(.82);
  opacity: 0;
  pointer-events: none;
}
@keyframes sc-signal-pulse {
  0% { transform: translate(-50%,-50%) scale(.82); opacity: .12; }
  55% { transform: translate(-50%,-50%) scale(1.08); opacity: var(--sc-pulse-opacity); }
  100% { transform: translate(-50%,-50%) scale(1.18); opacity: 0; }
}
@media (prefers-reduced-motion: no-preference) {
  :is(.hero-copy .eyebrow, .sc-signal-pulse)::after {
    animation: sc-signal-pulse var(--sc-motion-ambient) var(--sc-ease-standard) 2 both;
  }
}

/* Use the system's cursor, with the optional drag semantics only on
   elements that are genuinely draggable. No decorative global cursor. */
[draggable="true"]:not([aria-disabled="true"]) { cursor: var(--sc-cursor-drag); }
[draggable="true"]:not([aria-disabled="true"]):active { cursor: var(--sc-cursor-dragging); }

@media (prefers-reduced-motion: reduce), (forced-colors: active) {
  html body :is(.button:not(.secondary), .q-primary, .sc-button:not(.sc-button--secondary))::after,
  :is(.hero-copy .eyebrow, .sc-signal-pulse)::after {
    animation: none !important;
    opacity: 0 !important;
  }
}
@media (prefers-reduced-motion: reduce) {
  html body .nav-links > a[href]:not(.button) { transition: none; }
}
