/* Metaxy finale (see assets/js/finale.js). Both pieces are decorative, aria-hidden elements the script inserts:
   1. .fin-word: at the end of every footer, a large ASCII "METAXY" that scatters from the cursor and re-forms.
   2. .fin-obj: in the page head of Labs (lattice), Practice (bridge) and Journal (stack of pages), a hero-scale 3D ASCII object (tesseract, bridge, book + typewriter).
   Layout only: the art is drawn in the canvases. Boxes hold their size while empty, so nothing shifts on load.
   Neither piece ever takes pointer events away from links: .fin-word ignores the pointer (the script listens on the
   document), .fin-obj sits beside the text, never over it. */

/* the footer is a one-column grid whose track would otherwise size itself to the canvas */
footer:has(> .fin-word){grid-template-columns:minmax(0,1fr)}
.fin-word{
  min-width:0;
  grid-column:1 / -1;position:relative;display:block;width:100%;
  aspect-ratio:8 / 1;margin:clamp(36px,6vw,84px) 0 -4px;
  pointer-events:none;contain:layout paint;
  -webkit-user-select:none;user-select:none;
}
.fin-word canvas{position:absolute;inset:0;display:block;width:100%;height:100%}

.fin-obj{
  position:relative;display:block;width:100%;height:320px;
  margin:clamp(24px,5vw,40px) 0 0;
  contain:layout paint;-webkit-user-select:none;user-select:none;
}
.fin-obj canvas{position:absolute;inset:0;display:block;width:100%;height:100%}

/* Wide screens (finale.js measures and sets mode, width, height and top): the object is a hero element in the right part
   of the head, below the title and to the right of the lead and status line, so it never touches text. Elsewhere it
   follows the status line in the flow, full width, 300-360px tall (height set by the script; 320px reserved before). */
.fin-obj[data-mode="side"]{position:absolute;right:var(--gut);margin:0}
@media print{.fin-word,.fin-obj{display:none}}
