/* A small pill that follows the reader on the three case pages: back to the work,
   the resume, and the one way to reach me. It appears once the page header has
   scrolled away. Colours come from whichever page it sits on (the portfolio pages
   or the Aura page), so it reads as part of that page. */
html nav.cn { --land: cubic-bezier(.2, 1.35, .35, 1); --soft: cubic-bezier(.2, .8, .2, 1);
  position: fixed; z-index: 50; top: 14px; left: 50%; width: max-content; max-width: calc(100vw - 20px);
  display: flex; flex-wrap: nowrap; justify-content: flex-start; align-items: center; gap: 2px; margin: 0; padding: 4px; min-height: 0; height: auto; border: 0; border-radius: 999px;
  background: var(--raised, var(--card, #1a1f23)); color: var(--ink);
  box-shadow: 0 0 0 1px var(--line, rgba(255, 255, 255, .12)), 0 18px 40px -18px rgba(0, 0, 0, .6);
  opacity: 0; visibility: hidden; transform: translate(-50%, -160%);
  transition: transform 250ms var(--soft), opacity 200ms var(--soft), visibility 0s 250ms; }
html nav.cn.on { opacity: 1; visibility: visible; transform: translate(-50%, 0);
  transition: transform 450ms var(--land), opacity 250ms var(--soft), visibility 0s; }
html nav.cn a { display: flex; align-items: center; min-height: 44px; padding: 0 14px; border-radius: 999px; color: var(--muted); font: 500 14px/1 "Inter", system-ui, sans-serif; text-decoration: none; white-space: nowrap; transition: color 260ms var(--soft); }
html nav.cn a:hover { color: var(--ink); }
html nav.cn a:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
html nav.cn .cn-back::before { content: "\2190"; content: "\2190" / ""; margin-right: 8px; opacity: .7; }
html nav.cn .cn-cta { margin-left: 6px; background: var(--button-bg, var(--accent)); color: var(--button-ink, var(--on-accent, #fff)); }
html nav.cn .cn-cta:hover { color: var(--button-ink, var(--on-accent, #fff)); opacity: .9; }
html:has(.cn) { scroll-padding-top: 88px; }
@media (max-width: 360px) { html nav.cn a { padding: 0 9px; font-size: 13px; } }
@media (prefers-reduced-motion: reduce) { html nav.cn, html nav.cn.on, html nav.cn a { transition: none; } }
