/* Footer sign-off (Indy 2026-10-24, mockup). Quiet 11px mono, footer --faint colour; no extra rule (the footer's
   single top divider stays the only one). Grok Bot mark = official mark from x.ai/bot, hosted locally, drawn as a CSS
   mask so it takes currentColor in dark and light. */
/* after39 (Indy 5:20 PM PT "i like the orgininal one lets go back to that"): this is the after36 rigid tag again; the loose
   cloth version is parked in parked/loose-fabric-tag/. */
/* after36 (Indy 2026-10-24): the sign-off is no longer in the footer row. It is a woven clothing label sewn to the
   bottom edge of the site card: centred, ~1/4 to 3/4 of the card width, a fine two-way weave (two 2px repeating
   gradients), a stitched inner edge (::before), and a soft hem shadow where it tucks under the card. One line on
   desktop; on phones the two phrases stack. All drawn in CSS. */
.page > .site-tag {
  position: absolute; z-index: 2; top: calc(100% - 1px); left: 50%; translate: -50% 0;
  width: 50%; min-width: max-content; box-sizing: border-box; margin: 0; padding: 10px 22px 11px;
  font-family: var(--ds-mono); font-size: var(--ds-text-xs); line-height: 1.4; letter-spacing: 0.06em;
  white-space: nowrap; text-align: center; color: #6f685b;
  border-radius: 0 0 6px 6px;
  background:
    repeating-linear-gradient(0deg, rgba(90, 70, 40, 0.045) 0 1px, transparent 1px 2px),
    repeating-linear-gradient(90deg, rgba(255, 255, 255, 0.5) 0 1px, transparent 1px 2px),
    linear-gradient(180deg, #ebe6da, #f3efe6 6px, #f1ede3);
  border: 1px solid rgba(60, 50, 30, 0.12); border-top: 0;
  box-shadow: inset 0 4px 4px -3px rgba(60, 45, 20, 0.22), 0 3px 8px -4px rgba(40, 30, 10, 0.22);
}
.page > .site-tag::before {   /* stitched edge */
  content: ""; position: absolute; inset: 5px 6px 5px; border: 1px dashed rgba(90, 76, 52, 0.38);
  border-radius: 0 0 3px 3px; pointer-events: none;
}
html[data-theme="dark"] .page > .site-tag {
  color: rgba(228, 226, 220, 0.62);
  background:
    repeating-linear-gradient(0deg, rgba(0, 0, 0, 0.22) 0 1px, transparent 1px 2px),
    repeating-linear-gradient(90deg, rgba(255, 255, 255, 0.035) 0 1px, transparent 1px 2px),
    linear-gradient(180deg, #141417, #202024 6px, #1c1c20);
  border-color: rgba(255, 255, 255, 0.09);
  box-shadow: inset 0 4px 5px -3px rgba(0, 0, 0, 0.7), 0 4px 10px -4px rgba(0, 0, 0, 0.6);
}
html[data-theme="dark"] .page > .site-tag::before { border-color: rgba(255, 255, 255, 0.2); }
.site-tag .st-line { position: relative; }
@media (max-width: 640px) {
  .page > .site-tag { width: 64%; padding: 10px 16px 11px; line-height: 1.55; }
  .site-tag .st-line { display: block; }
  .site-tag .st-sep { display: none; }
}
@media (forced-colors: active) { .page > .site-tag { border: 1px solid CanvasText; } }
.site-signoff .gb { white-space: nowrap; }
.site-signoff .gb-mark-btn {
  appearance: none; display: inline-block; width: 1.2em; height: 1.2em; margin: 0 0.3em 0 0.1em; padding: 0; border: 0;
  vertical-align: -0.25em; background: none; color: inherit; font: inherit; line-height: 0; cursor: pointer;
  border-radius: 50%; -webkit-tap-highlight-color: transparent; position: relative;
}
.site-signoff .gb-mark-btn::before { content: ""; position: absolute; inset: -8px; }   /* ~28px touch target, no layout change */
.site-signoff .gb-mark-btn:focus-visible { outline: 2px solid var(--ds-accent, #2f62d9); outline-offset: 2px; }
.site-signoff .gb-mark {
  display: block; width: 100%; height: 100%; transform-origin: 50% 100%;
}
/* r4: the mark is inline (same official path data, split into the disc + its two eye cut-outs, the eyes now
   punched out by an SVG mask) so the eyes alone can blink. Fill = currentColor, so it stays the footer colour. */
.site-signoff .gb-svg { display: block; width: 100%; height: 100%; overflow: visible; }
.site-signoff .gb-eye { transform-box: fill-box; transform-origin: 50% 50%; }
.site-signoff .gb-mark.is-blinking .gb-eye { animation: gb-blink 150ms ease-in-out both; }
@keyframes gb-blink { 0%, 100% { transform: scaleY(1); } 45%, 55% { transform: scaleY(0.1); } }
.gb-mark-btn.is-jumping .gb-eye { animation: none !important; }
/* r7 (Indy 2026-10-24): the click now leaps out of the page in real 3D. The button gets perspective, the mark
   preserve-3d; translateZ forward plus a matching scale (reads as ~1.75x at the peak with the perspective), a slight
   rotateX tilt and one rotateY flip, then a spring back with a small overshoot and settle (~1.1s). The soft drop
   shadow grows at the peak (on the svg, so the 3D context is not flattened). Transform only: no layout shift, and
   the sign-off is overflow visible so nothing is clipped. */
.site-signoff, .site-signoff .gb { overflow: visible; }
.site-signoff .gb-mark-btn { perspective: 500px; perspective-origin: 50% 50%; z-index: 2; }
.site-signoff .gb-mark { transform-style: preserve-3d; }
/* r8: the jump itself is now a WAAPI spring timeline in signoff.js (squish, launch, peak, spring back with one 1.06
   overshoot, settle). CSS only supplies the 3D context, origins and the friends' look. */
.site-signoff .gb-wob { display: block; width: 100%; height: 100%; transform-origin: 50% 60%; }
.site-signoff .gb-svg { transform-origin: 50% 100%; }
.gb-mark-btn.is-jumping .gb-eye, .gb-mark-btn[data-expr] .gb-eye { animation: none !important; }
.site-signoff .gb-fx { position: absolute; left: 50%; top: 50%; width: 0; height: 0; pointer-events: none; z-index: 3; }
.site-signoff .gb-friend { display: block; max-width: none; max-height: none; position: absolute; left: -4.5px; top: -4.5px; width: 9px; height: 9px; opacity: 0; transform: scale(0.3);
  pointer-events: none; overflow: visible; }
.gb-friend .gf-body { fill: var(--gf); stroke: var(--gf); stroke-width: 1.6; stroke-linejoin: round; }
.gb-friend .gf-eye { fill: rgba(12, 12, 12, 0.86); }
.gb-friend--star { --gf: #c4a35a; } .gb-friend--cloud { --gf: #8ea3bf; } .gb-friend--tri { --gf: #c08a7e; } .gb-friend--drop { --gf: #7fa596; }
html[data-theme="dark"] .gb-friend--star { --gf: #d6bd7a; } html[data-theme="dark"] .gb-friend--cloud { --gf: #a8bad1; }
html[data-theme="dark"] .gb-friend--tri { --gf: #d3a194; } html[data-theme="dark"] .gb-friend--drop { --gf: #98bdae; }
/* r7: rich black in light mode (dense, not the muted footer grey); the eyes stay punched out of it, so the page
   shows through them and the blink / eye tracking still read. Dark mode keeps the current light-grey treatment. */
html[data-theme="light"] .site-signoff .gb-mark-btn { color: #0a0a0a; }
/* r7: eye tracking moves only the eye cut-outs (the mask group), via the SVG transform attribute from signoff.js */
@media (forced-colors: active) { .site-signoff .gb-disc { fill: CanvasText; } }
@media (prefers-reduced-motion: reduce) { .site-signoff .gb-mark .gb-eye { animation: none !important; } }
/* r8: oversampled mark box (K = 3 in signoff.js): 3x box scaled to 1/3 around its bottom-centre origin; layout box unchanged */
.site-signoff .gb-mark { width: 300%; height: 300%; scale: calc(1 / 3) calc(1 / 3) calc(1 / 3); translate: -33.3333% -66.6667%; }
/* after46 (Indy 2026-10-25): "fabric tag is misplaced with the Grok Bot logo" (iPhone). In WebKit the oversampled 3x mark
   box set the button's baseline, so the orb floated ~26px above "Built with … Grok Bot" and opened a gap. The mark is
   now taken out of flow (absolute, same 3x scale/translate) and the button is an inline-flex box, so the orb sits inline
   on the text line in Safari and Chrome alike. */
.site-signoff .gb-mark-btn { display: inline-flex; }
.site-signoff .gb-mark { position: absolute; left: 0; top: 0; }
