/* AI work page: the name in particles over a slow dithered field. Both are made of dots;
   hovering a project tints the field and the particles in that project's colour. */
*{box-sizing:border-box}
html,body{margin:0;height:100%}
body{
  background:#fff;color:var(--ink);font:13px/1.5 "Geist Mono",ui-monospace,Menlo,Consolas,monospace;
  min-height:100svh;overflow:hidden;
}
a{color:inherit;text-decoration:none}
.sr-only{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap}
.skip-link{position:absolute;left:-9999px}
.skip-link:focus{left:16px;top:16px;z-index:200;background:#fff;padding:8px 12px}
a:focus-visible{outline:2px solid var(--blue);outline-offset:3px;border-radius:2px}

.ai-dither,.ai-field{position:fixed;inset:0;width:100%;height:100%}
.ai-dither{z-index:0;pointer-events:none}
.ai-field{z-index:1}

/* Frame (frame.css) pinned over the field. */
.ai-top,.ai-bottom{position:fixed;left:0;right:0;z-index:2}
.ai-top{top:0}
.ai-bottom{bottom:0;padding:20px var(--frame-x);display:flex;justify-content:space-between;align-items:flex-end;gap:24px}
/* Projects on the left, status on the right, same line. */
/* One project per line, stacked in the bottom-left corner. */
.ai-bottom .frame-projects{flex-direction:column;flex-wrap:nowrap;gap:2px}
.ai-bottom .ai-status{flex:none}

/* One-line positioning (top left, under the name) and current status (bottom right). Same mono and size as
   the rest of the frame, so the page uses one typeface for text. */
.ai-intro{position:fixed;z-index:2;top:64px;left:var(--frame-x);display:flex;flex-direction:column;align-items:flex-start;gap:8px}
/* The positioning line is the one thing to read first, so it uses the project pages' headline face. */
.ai-line{margin:0;font:600 22px/1.3 var(--font-ui);letter-spacing:-.01em;color:var(--ink)}
.ai-status{margin:0;display:flex;align-items:center;gap:10px;font:400 13px/1.5 var(--font-mono);color:var(--muted)}
/* Status marker: a small square that blinks like a text cursor, in the page's mono language
   (the same square that marks section labels on the project pages). */
.ai-dot{width:6px;height:6px;background:var(--ink);animation:ai-blink 1.2s steps(2,start) infinite}
@keyframes ai-blink{to{visibility:hidden}}
@media (prefers-reduced-motion:reduce){.ai-dot{animation:none}}
.ai-sep{color:#c8c8c2}
/* Two lines on wide screens; on phones a third break keeps the lines even. */
.ai-line br.m{display:none}
@media (max-width:700px){
  .ai-line br.m{display:inline}
  .ai-intro{top:56px;right:var(--frame-x)}
  /* Phones: the status sits above the project list, still on the right. */
  .ai-bottom{flex-direction:column;align-items:stretch;gap:12px}
  .ai-bottom .ai-status{position:static;order:-1;justify-content:flex-end}
  .ai-line{font-size:18px}
  .ai-status{font-size:12px}
}

@media (max-width:700px){
  .ai-top{justify-content:flex-end}
  .ai-top .frame-name{display:none}  /* the particles already spell the name */
}
