/* KYDOS MOTION LAYER, CSS. No hidden initial states live here: entrances are paused animations created by /assets/js/kydos-motion.js, so nothing is hidden if the script fails.
   Hover and focus rules apply only under html.js-motion (class set by the script, never with reduced motion) and only to fine pointers. Page transition: INK MASK wipe, bottom to top, 450 ms. */
:root { --mo-e: cubic-bezier(.2,.8,.2,1); }

@view-transition { navigation: auto; }
::view-transition-group(root) { background: #070D12; }
::view-transition-old(root) { animation: kydos-ink-dim 450ms var(--mo-e) both; }
::view-transition-new(root) { animation: kydos-ink-wipe 450ms var(--mo-e) both; }
@keyframes kydos-ink-wipe { from { clip-path: inset(100% 0 0 0); } to { clip-path: inset(0 0 0 0); } }
@keyframes kydos-ink-dim { from { opacity: 1; } to { opacity: 0; } }
@media (prefers-reduced-motion: reduce) {
  @view-transition { navigation: none; }
  ::view-transition-old(root), ::view-transition-new(root) { animation: none !important; }
}

@media (hover: hover) and (pointer: fine) {
  /* G: text links draw their underline (TRACE, 220 ms). */
  html.js-motion [data-mo-ul] { position: relative; }
  html.js-motion [data-mo-ul]::after { content: ""; position: absolute; left: 0; right: 0; bottom: -1px; height: 1px; background-color: currentColor; transform: scaleX(0); transform-origin: left center; transition: transform 220ms var(--mo-e); pointer-events: none; }
  html.js-motion [data-mo-ul]:hover::after, html.js-motion [data-mo-ul]:focus-visible::after { transform: scaleX(1); }
  html.js-motion [data-mo-ul]:hover, html.js-motion [data-mo-ul]:focus-visible { text-decoration-color: transparent !important; }
  /* G: cards brighten their hairline (kydos-grade.css, 160 ms) and draw a corner tick. */
  html.js-motion [data-card]:not([data-ticks])::after { content: ""; position: absolute; top: -1px; left: -1px; width: 10px; height: 10px; border-top: 1px solid rgba(242,245,248,0.7); border-left: 1px solid rgba(242,245,248,0.7); transform: scale(0); transform-origin: top left; transition: transform 160ms var(--mo-e); pointer-events: none; }
  html.js-motion [data-surface="frost"] [data-card]:not([data-ticks])::after { border-color: rgba(7,13,18,0.7); }
  html.js-motion [data-card]:not([data-ticks]):hover::after { transform: scale(1); }
  /* G: button arrows move 6 px. Tags do nothing. */
  html.js-motion a:hover > [data-cut], html.js-motion button:hover > [data-cut], html.js-motion a:focus-visible > [data-cut], html.js-motion button:focus-visible > [data-cut] { transform: translateX(6px); }
}
