.ks-route-scene {
  position: fixed; inset: 0; z-index: 2147483646; overflow: hidden;
  isolation: isolate; pointer-events: none; color: var(--route-ink);
  --route-paper: color-mix(in srgb, var(--route-ink) 8%, #121215);
}
.ks-route-scene *, .ks-route-scene *::before, .ks-route-scene *::after { box-sizing: border-box; }
.ks-route-matte, .ks-route-half { position: absolute; inset: 0; }
.ks-route-half { background: #18181b; background: var(--route-paper); }
.ks-route-half:first-child { bottom: calc(50% - 1px); }
.ks-route-half:last-child { top: 50%; }
.ks-route-thread { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.ks-route-thread path { fill: none; stroke: currentColor; stroke-width: 1; stroke-dasharray: 1; }
.ks-route-register { position: absolute; width: clamp(112px,15vw,192px); height: auto; top: 50%; left: 50vw; transform: translate(-50%,-50%); overflow: visible; }
.ks-route-spline { stroke: currentColor; stroke-width: 1.65; fill: none; stroke-dasharray: 1; }
.ks-route-tangents { fill: none; stroke: currentColor; stroke-width: .8; opacity: .42; }
.ks-route-controls { fill: var(--route-paper); stroke: currentColor; stroke-width: 1; }
.ks-route-ends { fill: currentColor; }
.ks-route-carrier { position: absolute; left: 0; top: 0; transform-origin: 0 0; width: max-content; }
.ks-route-carrier > .ks-wordmark { margin: 0 !important; vertical-align: top; white-space: nowrap; }
.ks-route-bounds { position: absolute; inset: -6px -9px; border: 1px solid color-mix(in srgb,currentColor 38%,transparent); }
.ks-route-bounds::before {
  content: ''; position: absolute; inset: -2px;
  background: linear-gradient(currentColor,currentColor) left top / 4px 4px,
              linear-gradient(currentColor,currentColor) right top / 4px 4px,
              linear-gradient(currentColor,currentColor) left bottom / 4px 4px,
              linear-gradient(currentColor,currentColor) right bottom / 4px 4px;
  background-repeat: no-repeat;
}
.ks-route-landing .wm-motion-letter { animation: ks-letter-land calc(var(--landing-time)*.54) cubic-bezier(.18,.8,.23,1) both; animation-delay: calc(var(--letter)*14ms); }
@keyframes ks-letter-land {
  from { translate: -.55em .18em; rotate: -10deg; }
  72% { translate: .045em -.025em; rotate: 1deg; }
  to { translate: 0 0; rotate: 0deg; }
}
.ks-route-landing .wm-b-chip { animation: var(--chip-motion) calc(var(--landing-time)*.78) steps(1,end) reverse both; }
.ks-route-landing .wm-chat-letter { animation: ks-chat-ink 1ms steps(1,end) both; }
.ks-route-landing .wm-chat-h { animation-delay: calc(var(--landing-time)*.22); }
.ks-route-landing .wm-chat-a { animation-delay: calc(var(--landing-time)*.32); }
.ks-route-landing .wm-chat-t { animation-delay: calc(var(--landing-time)*.42); }
@keyframes ks-chat-ink { from { opacity: 0; } to { opacity: 1; } }

@media (prefers-reduced-motion: reduce), (forced-colors: active) {
  .ks-route-scene { display: none !important; }
}
