/* after63 (Vera's footer-tag spec): the footer tag click is a per-character vertical roll.
   Transform only: no blur, no sheen, no particles, no opacity change (except the reduced-motion crossfade).
   a47.js splits both lines into inline-block chars only for the ~700 ms of the roll, then collapses back to plain text. */
:root { --st-roll-in: cubic-bezier(.22, 1, .36, 1); --st-roll-out: cubic-bezier(.4, 0, .6, 1); --st-spring: cubic-bezier(.34, 1.56, .64, 1); }

/* the slot: both lines share one cell; vertically clipped (clip-path) while a roll runs */
.site-tag .st-slot { display: grid; grid-template-columns: minmax(0, 1fr); justify-items: center; align-items: center; width: 100%; height: 1.4em; line-height: 1.4; }
.site-tag .st-slot > .st-line { grid-area: 1 / 1; }
.site-tag .st-slot { box-sizing: content-box; }
/* the mask is exactly one line (1.4em) tall and clips vertically only: wide horizontal inset so the width morph never crops the old line */
.site-tag.is-rolling .st-slot { clip-path: inset(0 -100vw); }
.site-tag.is-rolling .st-line { visibility: visible; opacity: 1; pointer-events: none; }

/* colour on hover: 200 ms */
.site-tag .st-design, .site-tag .st-built { transition: color 200ms; }
.site-tag .st-design:hover, .site-tag .st-built:hover { color: var(--fg); }

/* focus ring: 1px muted, 2px offset */
.site-tag .st-design:focus-visible, .site-signoff .gb-mark-btn:focus-visible { outline: 1px solid var(--muted); outline-offset: 2px; }

/* press: scale(.96) in 80 ms ease-out; release springs back in 360 ms. Origin is the top edge so the tag keeps hugging the card. */
.page > .site-tag.site-signoff.is-tailored { transform-origin: 50% 0; transition: transform 360ms var(--st-spring); }
.page > .site-tag.site-signoff.is-tailored.is-morphing { transition: width 420ms var(--st-roll-in) 60ms, border-radius 420ms var(--st-roll-in) 60ms, transform 360ms var(--st-spring); }
.page > .site-tag.site-signoff.is-tailored.is-down { transform: scale(.96); transition: transform 80ms ease-out; }
.page > .site-tag.site-signoff.is-tailored.is-down.is-morphing { transition: width 420ms var(--st-roll-in) 60ms, transform 80ms ease-out; }

/* the roll */
.site-tag .ch { display: inline-block; white-space: pre; text-indent: 0; will-change: transform; }
.site-tag .ch.out { animation: st-out 280ms var(--st-roll-out) both; }
.site-tag .ch.in  { animation: st-in 420ms var(--st-roll-in) both; }
.site-tag.is-rev .ch.out { animation-name: st-out-r; }
.site-tag.is-rev .ch.in  { animation-name: st-in-r; }
@keyframes st-out   { to   { transform: translateY(-110%); } }
@keyframes st-in    { from { transform: translateY(110%); } }
@keyframes st-out-r { to   { transform: translateY(110%); } }
@keyframes st-in-r  { from { transform: translateY(-110%); } }

/* reduced motion: a 120 ms opacity crossfade only (no split, no roll, no press) */
@keyframes st-fade { from { opacity: 0; } }
.site-tag.is-rolling.is-rm .st-line.fx-in  { animation: st-fade 120ms linear both; }
.site-tag.is-rolling.is-rm .st-line.fx-out { animation: st-fade 120ms linear both reverse; }
@media (prefers-reduced-motion: reduce) {
  .page > .site-tag.site-signoff.is-tailored, .page > .site-tag.site-signoff.is-tailored.is-morphing,
  .page > .site-tag.site-signoff.is-tailored.is-down { transform: none; transition: none; }
  .site-tag .st-design, .site-tag .st-built { transition: none; }
}

/* flush: the tag box starts exactly at the card's outer bottom edge (gap 0), text centred in the 44px touch box */
.page > .site-tag.site-signoff { top: calc(100% + 1px); }
