/* ---------- mobile ---------- */

/* ---------- 404 ----------

   The one page nobody is meant to arrive at, so it is the one place the site
   plays. The number drifts across the screen and bounces off the edges the way
   a DVD player's logo did, and on a computer you can pick it up and throw it
   (Anthony, 2026-09-17, after SPACE10's). There is no copy: "404" says it, the
   wordmark goes home, and the menu is where it always is.

   The mark is exclusion-blended like the wordmark, so it inverts over whatever
   it crosses. It is driven frame by frame from app.js — one translate3d, no
   layout — and it does not move at all under Reduce motion. */
.nf{
  position:absolute;
  inset:0;
  overflow:hidden;
  visibility:hidden;
  pointer-events:none;
  transition:visibility 0s linear 420ms;
}
body.nf-open .nf{visibility:visible;pointer-events:auto;transition-delay:0s}

.nf-mark{
  position:absolute;
  top:0;left:0;
  /* TRIMMED TO THE GLYPHS (.trim in the markup does the same for type
     everywhere else). A 280px line box carries about 40px of leading above the
     digits, and the number looked as though it bounced off an invisible line
     short of the top (Anthony). Trimmed, the box IS the number, so it reaches
     the real edges — under the header and footer, which paint after it. */
  font-size:clamp(120px, 22vw, 280px);
  font-weight:600;
  line-height:1;
  letter-spacing:-.03em;
  user-select:none;
  -webkit-user-select:none;
  /* the loop writes this, and only this */
  transform:translate3d(0, 0, 0);
  opacity:0;
  transition:opacity 420ms var(--ease) 120ms;
}
body.nf-open .nf-mark{opacity:1}

/* Throwable, and it says so. `grab` is safe here where a cursor on a card is
   not: the flicker that banned it lives on cards inside a transformed
   scroller, and this page has neither. */
@media (hover: hover) and (pointer: fine){
  .nf-mark{cursor:grab;touch-action:none}
  .nf-mark.is-held{cursor:grabbing}
  /* An open entry is movable too (Anthony, 2026-09-17: "I can pick it up and
     move it around the screen, like the 404 number"), and the same reasoning
     lets it say so — it is a static overlay, not a card inside the strip. It is
     picked up ANYWHERE on it, the way the number is, so the whole surface says
     grab; the two real controls in it, the X and the related links, keep their
     own pointer and are excluded from the drag in app.js. */
  body.journal-open .jr-card{cursor:grab}
  body.journal-open .jr-card.is-held{cursor:grabbing}
  body.journal-open .jr-links a,
  body.journal-open .jr-x{cursor:pointer}
}

@media (prefers-reduced-motion: reduce){
  /* parked where the loop would have started it, and left there */
  .nf-mark{transition:none}
}
