/* Always-visible SkyPrint logo: softly moving ink with a travelling highlight. */
.brand-motion {
  position: relative;
  display: inline-flex;
  flex-shrink: 0;
  width: 156px;
  height: 40px;
  overflow: visible;
  border-radius: 4px;
  text-decoration: none;
  animation: none;
  transform: none;
}
.brand-motion::before, .brand-motion::after, .brand-motion .brand-face::after { content: none; }
.brand-motion .brand-face {
  display: block;
  width: 100%;
  height: 100%;
  overflow: visible;
  background: none;
  border-radius: 0;
}
.brand-motion .sp-vector { display: block; width: 100%; height: 100%; overflow: visible; }
/* Both S halves share a pivot so the ribbon stays connected throughout the loop. */
.sp-vector .sp-piece {
  opacity: 1;
  transform-box: view-box;
  transform-origin: 29px 32px;
  filter: drop-shadow(0 1px 1px rgba(25, 10, 57, .22));
  animation: skyprintRibbonFloat 6s ease-in-out infinite;
}
.sp-vector .sp-piece path { stroke-dasharray: none; stroke-dashoffset: 0; }
.sp-vector .sp-piece .sp-ink-light {
  stroke: #fff;
  stroke-width: 2.5px;
  opacity: .38;
  stroke-dasharray: 17 83;
  animation: skyprintInkLight 6s linear infinite;
}
.sp-vector .sp-piece-bottom .sp-ink-light { animation-delay: -3s; }
.sp-vector .sp-letter {
  fill: #fff;
  font-family: Arial, Helvetica, sans-serif;
  font-size: 52px;
  font-weight: 700;
  letter-spacing: 0;
  opacity: 1;
  transform-box: fill-box;
  transform-origin: center;
  animation: skyprintLetterFlow 6s ease-in-out infinite;
  animation-delay: var(--delay);
}
.brand-motion:focus-visible { outline: 2px solid #bcefff; outline-offset: 7px; }
@keyframes skyprintRibbonFloat {
  0%, 100% { transform: translateY(.4px) rotate(-1.5deg) scale(1); }
  50% { transform: translateY(-.6px) rotate(1.5deg) scale(1.025); }
}
@keyframes skyprintInkLight {
  from { stroke-dashoffset: 100; }
  to { stroke-dashoffset: 0; }
}
@keyframes skyprintLetterFlow {
  0%, 100% { transform: translateY(0); fill: #fff; }
  42% { transform: translateY(-1.1px); fill: #e7edff; }
  70% { transform: translateY(.25px); fill: #fff; }
}
/* Alternate saved choice: assemble, hold and disperse, with the same letter spacing. */
.brand-motion[data-logo-animation="assemble"] .sp-piece {
  transform-box: fill-box;
  transform-origin: center;
  animation: skyprintAssembleInk 9s cubic-bezier(.22,.68,.25,1) infinite both;
}
.brand-motion[data-logo-animation="assemble"] .sp-piece-top { --scatter-x: 24px; --scatter-y: -16px; --turn: -110deg; }
.brand-motion[data-logo-animation="assemble"] .sp-piece-bottom { --scatter-x: -20px; --scatter-y: 17px; --turn: 110deg; animation-delay: .12s; }
.brand-motion[data-logo-animation="assemble"] .sp-piece path:not(.sp-ink-light) {
  stroke-dasharray: 100;
  animation: skyprintAssembleDraw 9s ease-in-out infinite both;
}
.brand-motion[data-logo-animation="assemble"] .sp-piece-bottom path:not(.sp-ink-light) { animation-delay: .12s; }
.brand-motion[data-logo-animation="assemble"] .sp-ink-light { display: none; }
.brand-motion[data-logo-animation="assemble"] .sp-letter {
  --scatter-x: 9px;
  animation: skyprintAssembleType 9s cubic-bezier(.22,.68,.25,1) infinite both;
  animation-delay: calc(var(--delay) * -.45);
}
.brand-motion[data-logo-animation="assemble"] .sp-letter:nth-of-type(odd) { --scatter-x: -9px; }
@keyframes skyprintAssembleInk {
  0%, 3% { opacity: 0; transform: translate(var(--scatter-x),var(--scatter-y)) rotate(var(--turn)) scale(.12); }
  11% { opacity: 1; }
  24%, 73% { opacity: 1; transform: translate(0,0) rotate(0deg) scale(1); }
  88%, 100% { opacity: 0; transform: translate(var(--scatter-x),var(--scatter-y)) rotate(var(--turn)) scale(.08); }
}
@keyframes skyprintAssembleDraw {
  0%, 5% { stroke-dashoffset: 100; }
  24%, 74% { stroke-dashoffset: 0; }
  91%, 100% { stroke-dashoffset: -100; }
}
@keyframes skyprintAssembleType {
  0%, 10% { opacity: 0; transform: translate(var(--scatter-x),17px) rotate(-12deg) scale(.45); }
  26%, 72% { opacity: 1; transform: translate(0,0) rotate(0deg) scale(1); }
  86%, 100% { opacity: 0; transform: translate(var(--scatter-x),-17px) rotate(12deg) scale(.35); }
}
/* Keyboard focus and reduced motion always show a complete, readable logo. */
.brand-motion:focus-visible .sp-piece,
.brand-motion:focus-visible .sp-letter,
.brand-motion:focus-visible .sp-piece path:not(.sp-ink-light),
.brand-motion:focus-visible .sp-ink-light {
  animation: none; transform: none; opacity: 1; stroke-dashoffset: 0;
}
@media (prefers-reduced-motion: reduce) {
  .brand-motion .sp-piece, .brand-motion .sp-letter, .brand-motion .sp-piece path, .brand-motion .sp-piece .sp-ink-light,
  .brand-motion[data-logo-animation] .sp-piece, .brand-motion[data-logo-animation] .sp-letter,
  .brand-motion[data-logo-animation] .sp-piece path:not(.sp-ink-light) {
    animation: none; transform: none; opacity: 1; stroke-dashoffset: 0;
  }
}
