/* ============================================================
   PIXEL PORTFOLIO — design system
   Shared by index.html and every page under /html.
   Load order: fonts.css, then this file.
   ============================================================ */

@import url("fonts.css");

/* ---------- Tokens ---------- */
:root {
  --ink:        #202848;  /* near-black navy: borders, body ink   */
  --ink-deep:   #0c1638;  /* drop-shadow navy                     */
  --ink-soft:   #485890;  /* muted body copy                      */
  --paper:      #fbf5e4;  /* card background                      */
  --light:      #f8f8f8;  /* outer border / headline text         */
  --haze:       #c8d0e8;  /* headline shadow, footer text         */
  --ink-faint:  #8590b8;  /* disabled / not-yet-published copy     */
  --sky:        #58a8f8;
  --alert:      #e04038;  /* blinking caret, critical severity     */
  --warn:       #f09030;  /* high severity                         */
  --accent:     #f8d030;  /* yellow — CLOUD mode                  */
  --accent-ink: #202848;
  --shell:      3px;      /* the signature triple-border unit     */
}

/* AI mode repaints the accent everywhere it is referenced. */
[data-mode="ai"] { --accent: #48d8b0; --accent-ink: #0c2a22; }

/* ---------- Pixel cursors (inline SVG sprites) ---------- */
html, body { margin: 0; padding: 0; background: #1c3480; cursor: url("data:image/svg+xml;utf8,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20viewBox%3D%220%200%2012%2016%22%20width%3D%2224%22%20height%3D%2232%22%20shape-rendering%3D%22crispEdges%22%3E%3Crect%20x%3D%220%22%20y%3D%220%22%20width%3D%221%22%20height%3D%221%22%20fill%3D%22%23000%22%2F%3E%3Crect%20x%3D%220%22%20y%3D%221%22%20width%3D%221%22%20height%3D%221%22%20fill%3D%22%23000%22%2F%3E%3Crect%20x%3D%221%22%20y%3D%221%22%20width%3D%221%22%20height%3D%221%22%20fill%3D%22%23000%22%2F%3E%3Crect%20x%3D%220%22%20y%3D%222%22%20width%3D%221%22%20height%3D%221%22%20fill%3D%22%23000%22%2F%3E%3Crect%20x%3D%221%22%20y%3D%222%22%20width%3D%221%22%20height%3D%221%22%20fill%3D%22%23fff%22%2F%3E%3Crect%20x%3D%222%22%20y%3D%222%22%20width%3D%221%22%20height%3D%221%22%20fill%3D%22%23000%22%2F%3E%3Crect%20x%3D%220%22%20y%3D%223%22%20width%3D%221%22%20height%3D%221%22%20fill%3D%22%23000%22%2F%3E%3Crect%20x%3D%221%22%20y%3D%223%22%20width%3D%221%22%20height%3D%221%22%20fill%3D%22%23fff%22%2F%3E%3Crect%20x%3D%222%22%20y%3D%223%22%20width%3D%221%22%20height%3D%221%22%20fill%3D%22%23fff%22%2F%3E%3Crect%20x%3D%223%22%20y%3D%223%22%20width%3D%221%22%20height%3D%221%22%20fill%3D%22%23000%22%2F%3E%3Crect%20x%3D%220%22%20y%3D%224%22%20width%3D%221%22%20height%3D%221%22%20fill%3D%22%23000%22%2F%3E%3Crect%20x%3D%221%22%20y%3D%224%22%20width%3D%221%22%20height%3D%221%22%20fill%3D%22%23fff%22%2F%3E%3Crect%20x%3D%222%22%20y%3D%224%22%20width%3D%221%22%20height%3D%221%22%20fill%3D%22%23fff%22%2F%3E%3Crect%20x%3D%223%22%20y%3D%224%22%20width%3D%221%22%20height%3D%221%22%20fill%3D%22%23fff%22%2F%3E%3Crect%20x%3D%224%22%20y%3D%224%22%20width%3D%221%22%20height%3D%221%22%20fill%3D%22%23000%22%2F%3E%3Crect%20x%3D%220%22%20y%3D%225%22%20width%3D%221%22%20height%3D%221%22%20fill%3D%22%23000%22%2F%3E%3Crect%20x%3D%221%22%20y%3D%225%22%20width%3D%221%22%20height%3D%221%22%20fill%3D%22%23fff%22%2F%3E%3Crect%20x%3D%222%22%20y%3D%225%22%20width%3D%221%22%20height%3D%221%22%20fill%3D%22%23fff%22%2F%3E%3Crect%20x%3D%223%22%20y%3D%225%22%20width%3D%221%22%20height%3D%221%22%20fill%3D%22%23fff%22%2F%3E%3Crect%20x%3D%224%22%20y%3D%225%22%20width%3D%221%22%20height%3D%221%22%20fill%3D%22%23fff%22%2F%3E%3Crect%20x%3D%225%22%20y%3D%225%22%20width%3D%221%22%20height%3D%221%22%20fill%3D%22%23000%22%2F%3E%3Crect%20x%3D%220%22%20y%3D%226%22%20width%3D%221%22%20height%3D%221%22%20fill%3D%22%23000%22%2F%3E%3Crect%20x%3D%221%22%20y%3D%226%22%20width%3D%221%22%20height%3D%221%22%20fill%3D%22%23fff%22%2F%3E%3Crect%20x%3D%222%22%20y%3D%226%22%20width%3D%221%22%20height%3D%221%22%20fill%3D%22%23fff%22%2F%3E%3Crect%20x%3D%223%22%20y%3D%226%22%20width%3D%221%22%20height%3D%221%22%20fill%3D%22%23fff%22%2F%3E%3Crect%20x%3D%224%22%20y%3D%226%22%20width%3D%221%22%20height%3D%221%22%20fill%3D%22%23fff%22%2F%3E%3Crect%20x%3D%225%22%20y%3D%226%22%20width%3D%221%22%20height%3D%221%22%20fill%3D%22%23fff%22%2F%3E%3Crect%20x%3D%226%22%20y%3D%226%22%20width%3D%221%22%20height%3D%221%22%20fill%3D%22%23000%22%2F%3E%3Crect%20x%3D%220%22%20y%3D%227%22%20width%3D%221%22%20height%3D%221%22%20fill%3D%22%23000%22%2F%3E%3Crect%20x%3D%221%22%20y%3D%227%22%20width%3D%221%22%20height%3D%221%22%20fill%3D%22%23fff%22%2F%3E%3Crect%20x%3D%222%22%20y%3D%227%22%20width%3D%221%22%20height%3D%221%22%20fill%3D%22%23fff%22%2F%3E%3Crect%20x%3D%223%22%20y%3D%227%22%20width%3D%221%22%20height%3D%221%22%20fill%3D%22%23fff%22%2F%3E%3Crect%20x%3D%224%22%20y%3D%227%22%20width%3D%221%22%20height%3D%221%22%20fill%3D%22%23fff%22%2F%3E%3Crect%20x%3D%225%22%20y%3D%227%22%20width%3D%221%22%20height%3D%221%22%20fill%3D%22%23fff%22%2F%3E%3Crect%20x%3D%226%22%20y%3D%227%22%20width%3D%221%22%20height%3D%221%22%20fill%3D%22%23fff%22%2F%3E%3Crect%20x%3D%227%22%20y%3D%227%22%20width%3D%221%22%20height%3D%221%22%20fill%3D%22%23000%22%2F%3E%3Crect%20x%3D%220%22%20y%3D%228%22%20width%3D%221%22%20height%3D%221%22%20fill%3D%22%23000%22%2F%3E%3Crect%20x%3D%221%22%20y%3D%228%22%20width%3D%221%22%20height%3D%221%22%20fill%3D%22%23fff%22%2F%3E%3Crect%20x%3D%222%22%20y%3D%228%22%20width%3D%221%22%20height%3D%221%22%20fill%3D%22%23fff%22%2F%3E%3Crect%20x%3D%223%22%20y%3D%228%22%20width%3D%221%22%20height%3D%221%22%20fill%3D%22%23fff%22%2F%3E%3Crect%20x%3D%224%22%20y%3D%228%22%20width%3D%221%22%20height%3D%221%22%20fill%3D%22%23fff%22%2F%3E%3Crect%20x%3D%225%22%20y%3D%228%22%20width%3D%221%22%20height%3D%221%22%20fill%3D%22%23fff%22%2F%3E%3Crect%20x%3D%226%22%20y%3D%228%22%20width%3D%221%22%20height%3D%221%22%20fill%3D%22%23fff%22%2F%3E%3Crect%20x%3D%227%22%20y%3D%228%22%20width%3D%221%22%20height%3D%221%22%20fill%3D%22%23fff%22%2F%3E%3Crect%20x%3D%228%22%20y%3D%228%22%20width%3D%221%22%20height%3D%221%22%20fill%3D%22%23000%22%2F%3E%3Crect%20x%3D%220%22%20y%3D%229%22%20width%3D%221%22%20height%3D%221%22%20fill%3D%22%23000%22%2F%3E%3Crect%20x%3D%221%22%20y%3D%229%22%20width%3D%221%22%20height%3D%221%22%20fill%3D%22%23fff%22%2F%3E%3Crect%20x%3D%222%22%20y%3D%229%22%20width%3D%221%22%20height%3D%221%22%20fill%3D%22%23fff%22%2F%3E%3Crect%20x%3D%223%22%20y%3D%229%22%20width%3D%221%22%20height%3D%221%22%20fill%3D%22%23fff%22%2F%3E%3Crect%20x%3D%224%22%20y%3D%229%22%20width%3D%221%22%20height%3D%221%22%20fill%3D%22%23fff%22%2F%3E%3Crect%20x%3D%225%22%20y%3D%229%22%20width%3D%221%22%20height%3D%221%22%20fill%3D%22%23fff%22%2F%3E%3Crect%20x%3D%226%22%20y%3D%229%22%20width%3D%221%22%20height%3D%221%22%20fill%3D%22%23000%22%2F%3E%3Crect%20x%3D%227%22%20y%3D%229%22%20width%3D%221%22%20height%3D%221%22%20fill%3D%22%23000%22%2F%3E%3Crect%20x%3D%228%22%20y%3D%229%22%20width%3D%221%22%20height%3D%221%22%20fill%3D%22%23000%22%2F%3E%3Crect%20x%3D%229%22%20y%3D%229%22%20width%3D%221%22%20height%3D%221%22%20fill%3D%22%23000%22%2F%3E%3Crect%20x%3D%220%22%20y%3D%2210%22%20width%3D%221%22%20height%3D%221%22%20fill%3D%22%23000%22%2F%3E%3Crect%20x%3D%221%22%20y%3D%2210%22%20width%3D%221%22%20height%3D%221%22%20fill%3D%22%23fff%22%2F%3E%3Crect%20x%3D%222%22%20y%3D%2210%22%20width%3D%221%22%20height%3D%221%22%20fill%3D%22%23fff%22%2F%3E%3Crect%20x%3D%223%22%20y%3D%2210%22%20width%3D%221%22%20height%3D%221%22%20fill%3D%22%23000%22%2F%3E%3Crect%20x%3D%224%22%20y%3D%2210%22%20width%3D%221%22%20height%3D%221%22%20fill%3D%22%23fff%22%2F%3E%3Crect%20x%3D%225%22%20y%3D%2210%22%20width%3D%221%22%20height%3D%221%22%20fill%3D%22%23fff%22%2F%3E%3Crect%20x%3D%226%22%20y%3D%2210%22%20width%3D%221%22%20height%3D%221%22%20fill%3D%22%23000%22%2F%3E%3Crect%20x%3D%220%22%20y%3D%2211%22%20width%3D%221%22%20height%3D%221%22%20fill%3D%22%23000%22%2F%3E%3Crect%20x%3D%221%22%20y%3D%2211%22%20width%3D%221%22%20height%3D%221%22%20fill%3D%22%23fff%22%2F%3E%3Crect%20x%3D%222%22%20y%3D%2211%22%20width%3D%221%22%20height%3D%221%22%20fill%3D%22%23000%22%2F%3E%3Crect%20x%3D%224%22%20y%3D%2211%22%20width%3D%221%22%20height%3D%221%22%20fill%3D%22%23000%22%2F%3E%3Crect%20x%3D%225%22%20y%3D%2211%22%20width%3D%221%22%20height%3D%221%22%20fill%3D%22%23fff%22%2F%3E%3Crect%20x%3D%226%22%20y%3D%2211%22%20width%3D%221%22%20height%3D%221%22%20fill%3D%22%23fff%22%2F%3E%3Crect%20x%3D%227%22%20y%3D%2211%22%20width%3D%221%22%20height%3D%221%22%20fill%3D%22%23000%22%2F%3E%3Crect%20x%3D%220%22%20y%3D%2212%22%20width%3D%221%22%20height%3D%221%22%20fill%3D%22%23000%22%2F%3E%3Crect%20x%3D%221%22%20y%3D%2212%22%20width%3D%221%22%20height%3D%221%22%20fill%3D%22%23000%22%2F%3E%3Crect%20x%3D%224%22%20y%3D%2212%22%20width%3D%221%22%20height%3D%221%22%20fill%3D%22%23000%22%2F%3E%3Crect%20x%3D%225%22%20y%3D%2212%22%20width%3D%221%22%20height%3D%221%22%20fill%3D%22%23fff%22%2F%3E%3Crect%20x%3D%226%22%20y%3D%2212%22%20width%3D%221%22%20height%3D%221%22%20fill%3D%22%23fff%22%2F%3E%3Crect%20x%3D%227%22%20y%3D%2212%22%20width%3D%221%22%20height%3D%221%22%20fill%3D%22%23000%22%2F%3E%3Crect%20x%3D%225%22%20y%3D%2213%22%20width%3D%221%22%20height%3D%221%22%20fill%3D%22%23000%22%2F%3E%3Crect%20x%3D%226%22%20y%3D%2213%22%20width%3D%221%22%20height%3D%221%22%20fill%3D%22%23fff%22%2F%3E%3Crect%20x%3D%227%22%20y%3D%2213%22%20width%3D%221%22%20height%3D%221%22%20fill%3D%22%23fff%22%2F%3E%3Crect%20x%3D%228%22%20y%3D%2213%22%20width%3D%221%22%20height%3D%221%22%20fill%3D%22%23000%22%2F%3E%3Crect%20x%3D%225%22%20y%3D%2214%22%20width%3D%221%22%20height%3D%221%22%20fill%3D%22%23000%22%2F%3E%3Crect%20x%3D%226%22%20y%3D%2214%22%20width%3D%221%22%20height%3D%221%22%20fill%3D%22%23fff%22%2F%3E%3Crect%20x%3D%227%22%20y%3D%2214%22%20width%3D%221%22%20height%3D%221%22%20fill%3D%22%23fff%22%2F%3E%3Crect%20x%3D%228%22%20y%3D%2214%22%20width%3D%221%22%20height%3D%221%22%20fill%3D%22%23000%22%2F%3E%3Crect%20x%3D%226%22%20y%3D%2215%22%20width%3D%221%22%20height%3D%221%22%20fill%3D%22%23000%22%2F%3E%3Crect%20x%3D%227%22%20y%3D%2215%22%20width%3D%221%22%20height%3D%221%22%20fill%3D%22%23000%22%2F%3E%3C%2Fsvg%3E") 0 0, auto; }
a, button { cursor: url("data:image/svg+xml;utf8,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20viewBox%3D%220%200%2012%2016%22%20width%3D%2224%22%20height%3D%2232%22%20shape-rendering%3D%22crispEdges%22%3E%3Crect%20x%3D%225%22%20y%3D%220%22%20width%3D%221%22%20height%3D%221%22%20fill%3D%22%23000%22%2F%3E%3Crect%20x%3D%226%22%20y%3D%220%22%20width%3D%221%22%20height%3D%221%22%20fill%3D%22%23000%22%2F%3E%3Crect%20x%3D%224%22%20y%3D%221%22%20width%3D%221%22%20height%3D%221%22%20fill%3D%22%23000%22%2F%3E%3Crect%20x%3D%225%22%20y%3D%221%22%20width%3D%221%22%20height%3D%221%22%20fill%3D%22%23fff%22%2F%3E%3Crect%20x%3D%226%22%20y%3D%221%22%20width%3D%221%22%20height%3D%221%22%20fill%3D%22%23fff%22%2F%3E%3Crect%20x%3D%227%22%20y%3D%221%22%20width%3D%221%22%20height%3D%221%22%20fill%3D%22%23000%22%2F%3E%3Crect%20x%3D%224%22%20y%3D%222%22%20width%3D%221%22%20height%3D%221%22%20fill%3D%22%23000%22%2F%3E%3Crect%20x%3D%225%22%20y%3D%222%22%20width%3D%221%22%20height%3D%221%22%20fill%3D%22%23fff%22%2F%3E%3Crect%20x%3D%226%22%20y%3D%222%22%20width%3D%221%22%20height%3D%221%22%20fill%3D%22%23fff%22%2F%3E%3Crect%20x%3D%227%22%20y%3D%222%22%20width%3D%221%22%20height%3D%221%22%20fill%3D%22%23000%22%2F%3E%3Crect%20x%3D%224%22%20y%3D%223%22%20width%3D%221%22%20height%3D%221%22%20fill%3D%22%23000%22%2F%3E%3Crect%20x%3D%225%22%20y%3D%223%22%20width%3D%221%22%20height%3D%221%22%20fill%3D%22%23fff%22%2F%3E%3Crect%20x%3D%226%22%20y%3D%223%22%20width%3D%221%22%20height%3D%221%22%20fill%3D%22%23fff%22%2F%3E%3Crect%20x%3D%227%22%20y%3D%223%22%20width%3D%221%22%20height%3D%221%22%20fill%3D%22%23000%22%2F%3E%3Crect%20x%3D%228%22%20y%3D%223%22%20width%3D%221%22%20height%3D%221%22%20fill%3D%22%23000%22%2F%3E%3Crect%20x%3D%229%22%20y%3D%223%22%20width%3D%221%22%20height%3D%221%22%20fill%3D%22%23000%22%2F%3E%3Crect%20x%3D%224%22%20y%3D%224%22%20width%3D%221%22%20height%3D%221%22%20fill%3D%22%23000%22%2F%3E%3Crect%20x%3D%225%22%20y%3D%224%22%20width%3D%221%22%20height%3D%221%22%20fill%3D%22%23fff%22%2F%3E%3Crect%20x%3D%226%22%20y%3D%224%22%20width%3D%221%22%20height%3D%221%22%20fill%3D%22%23fff%22%2F%3E%3Crect%20x%3D%227%22%20y%3D%224%22%20width%3D%221%22%20height%3D%221%22%20fill%3D%22%23000%22%2F%3E%3Crect%20x%3D%228%22%20y%3D%224%22%20width%3D%221%22%20height%3D%221%22%20fill%3D%22%23fff%22%2F%3E%3Crect%20x%3D%229%22%20y%3D%224%22%20width%3D%221%22%20height%3D%221%22%20fill%3D%22%23fff%22%2F%3E%3Crect%20x%3D%2210%22%20y%3D%224%22%20width%3D%221%22%20height%3D%221%22%20fill%3D%22%23000%22%2F%3E%3Crect%20x%3D%2211%22%20y%3D%224%22%20width%3D%221%22%20height%3D%221%22%20fill%3D%22%23000%22%2F%3E%3Crect%20x%3D%221%22%20y%3D%225%22%20width%3D%221%22%20height%3D%221%22%20fill%3D%22%23000%22%2F%3E%3Crect%20x%3D%222%22%20y%3D%225%22%20width%3D%221%22%20height%3D%221%22%20fill%3D%22%23000%22%2F%3E%3Crect%20x%3D%224%22%20y%3D%225%22%20width%3D%221%22%20height%3D%221%22%20fill%3D%22%23000%22%2F%3E%3Crect%20x%3D%225%22%20y%3D%225%22%20width%3D%221%22%20height%3D%221%22%20fill%3D%22%23fff%22%2F%3E%3Crect%20x%3D%226%22%20y%3D%225%22%20width%3D%221%22%20height%3D%221%22%20fill%3D%22%23fff%22%2F%3E%3Crect%20x%3D%227%22%20y%3D%225%22%20width%3D%221%22%20height%3D%221%22%20fill%3D%22%23000%22%2F%3E%3Crect%20x%3D%228%22%20y%3D%225%22%20width%3D%221%22%20height%3D%221%22%20fill%3D%22%23fff%22%2F%3E%3Crect%20x%3D%229%22%20y%3D%225%22%20width%3D%221%22%20height%3D%221%22%20fill%3D%22%23fff%22%2F%3E%3Crect%20x%3D%2210%22%20y%3D%225%22%20width%3D%221%22%20height%3D%221%22%20fill%3D%22%23000%22%2F%3E%3Crect%20x%3D%2211%22%20y%3D%225%22%20width%3D%221%22%20height%3D%221%22%20fill%3D%22%23fff%22%2F%3E%3Crect%20x%3D%220%22%20y%3D%226%22%20width%3D%221%22%20height%3D%221%22%20fill%3D%22%23000%22%2F%3E%3Crect%20x%3D%221%22%20y%3D%226%22%20width%3D%221%22%20height%3D%221%22%20fill%3D%22%23fff%22%2F%3E%3Crect%20x%3D%222%22%20y%3D%226%22%20width%3D%221%22%20height%3D%221%22%20fill%3D%22%23fff%22%2F%3E%3Crect%20x%3D%223%22%20y%3D%226%22%20width%3D%221%22%20height%3D%221%22%20fill%3D%22%23000%22%2F%3E%3Crect%20x%3D%224%22%20y%3D%226%22%20width%3D%221%22%20height%3D%221%22%20fill%3D%22%23000%22%2F%3E%3Crect%20x%3D%225%22%20y%3D%226%22%20width%3D%221%22%20height%3D%221%22%20fill%3D%22%23fff%22%2F%3E%3Crect%20x%3D%226%22%20y%3D%226%22%20width%3D%221%22%20height%3D%221%22%20fill%3D%22%23fff%22%2F%3E%3Crect%20x%3D%227%22%20y%3D%226%22%20width%3D%221%22%20height%3D%221%22%20fill%3D%22%23000%22%2F%3E%3Crect%20x%3D%228%22%20y%3D%226%22%20width%3D%221%22%20height%3D%221%22%20fill%3D%22%23fff%22%2F%3E%3Crect%20x%3D%229%22%20y%3D%226%22%20width%3D%221%22%20height%3D%221%22%20fill%3D%22%23fff%22%2F%3E%3Crect%20x%3D%2210%22%20y%3D%226%22%20width%3D%221%22%20height%3D%221%22%20fill%3D%22%23000%22%2F%3E%3Crect%20x%3D%2211%22%20y%3D%226%22%20width%3D%221%22%20height%3D%221%22%20fill%3D%22%23fff%22%2F%3E%3Crect%20x%3D%220%22%20y%3D%227%22%20width%3D%221%22%20height%3D%221%22%20fill%3D%22%23000%22%2F%3E%3Crect%20x%3D%221%22%20y%3D%227%22%20width%3D%221%22%20height%3D%221%22%20fill%3D%22%23fff%22%2F%3E%3Crect%20x%3D%222%22%20y%3D%227%22%20width%3D%221%22%20height%3D%221%22%20fill%3D%22%23fff%22%2F%3E%3Crect%20x%3D%223%22%20y%3D%227%22%20width%3D%221%22%20height%3D%221%22%20fill%3D%22%23000%22%2F%3E%3Crect%20x%3D%224%22%20y%3D%227%22%20width%3D%221%22%20height%3D%221%22%20fill%3D%22%23fff%22%2F%3E%3Crect%20x%3D%225%22%20y%3D%227%22%20width%3D%221%22%20height%3D%221%22%20fill%3D%22%23fff%22%2F%3E%3Crect%20x%3D%226%22%20y%3D%227%22%20width%3D%221%22%20height%3D%221%22%20fill%3D%22%23fff%22%2F%3E%3Crect%20x%3D%227%22%20y%3D%227%22%20width%3D%221%22%20height%3D%221%22%20fill%3D%22%23fff%22%2F%3E%3Crect%20x%3D%228%22%20y%3D%227%22%20width%3D%221%22%20height%3D%221%22%20fill%3D%22%23fff%22%2F%3E%3Crect%20x%3D%229%22%20y%3D%227%22%20width%3D%221%22%20height%3D%221%22%20fill%3D%22%23fff%22%2F%3E%3Crect%20x%3D%2210%22%20y%3D%227%22%20width%3D%221%22%20height%3D%221%22%20fill%3D%22%23000%22%2F%3E%3Crect%20x%3D%2211%22%20y%3D%227%22%20width%3D%221%22%20height%3D%221%22%20fill%3D%22%23fff%22%2F%3E%3Crect%20x%3D%221%22%20y%3D%228%22%20width%3D%221%22%20height%3D%221%22%20fill%3D%22%23000%22%2F%3E%3Crect%20x%3D%222%22%20y%3D%228%22%20width%3D%221%22%20height%3D%221%22%20fill%3D%22%23fff%22%2F%3E%3Crect%20x%3D%223%22%20y%3D%228%22%20width%3D%221%22%20height%3D%221%22%20fill%3D%22%23fff%22%2F%3E%3Crect%20x%3D%224%22%20y%3D%228%22%20width%3D%221%22%20height%3D%221%22%20fill%3D%22%23fff%22%2F%3E%3Crect%20x%3D%225%22%20y%3D%228%22%20width%3D%221%22%20height%3D%221%22%20fill%3D%22%23fff%22%2F%3E%3Crect%20x%3D%226%22%20y%3D%228%22%20width%3D%221%22%20height%3D%221%22%20fill%3D%22%23fff%22%2F%3E%3Crect%20x%3D%227%22%20y%3D%228%22%20width%3D%221%22%20height%3D%221%22%20fill%3D%22%23fff%22%2F%3E%3Crect%20x%3D%228%22%20y%3D%228%22%20width%3D%221%22%20height%3D%221%22%20fill%3D%22%23fff%22%2F%3E%3Crect%20x%3D%229%22%20y%3D%228%22%20width%3D%221%22%20height%3D%221%22%20fill%3D%22%23fff%22%2F%3E%3Crect%20x%3D%2210%22%20y%3D%228%22%20width%3D%221%22%20height%3D%221%22%20fill%3D%22%23fff%22%2F%3E%3Crect%20x%3D%2211%22%20y%3D%228%22%20width%3D%221%22%20height%3D%221%22%20fill%3D%22%23fff%22%2F%3E%3Crect%20x%3D%221%22%20y%3D%229%22%20width%3D%221%22%20height%3D%221%22%20fill%3D%22%23000%22%2F%3E%3Crect%20x%3D%222%22%20y%3D%229%22%20width%3D%221%22%20height%3D%221%22%20fill%3D%22%23fff%22%2F%3E%3Crect%20x%3D%223%22%20y%3D%229%22%20width%3D%221%22%20height%3D%221%22%20fill%3D%22%23fff%22%2F%3E%3Crect%20x%3D%224%22%20y%3D%229%22%20width%3D%221%22%20height%3D%221%22%20fill%3D%22%23fff%22%2F%3E%3Crect%20x%3D%225%22%20y%3D%229%22%20width%3D%221%22%20height%3D%221%22%20fill%3D%22%23fff%22%2F%3E%3Crect%20x%3D%226%22%20y%3D%229%22%20width%3D%221%22%20height%3D%221%22%20fill%3D%22%23fff%22%2F%3E%3Crect%20x%3D%227%22%20y%3D%229%22%20width%3D%221%22%20height%3D%221%22%20fill%3D%22%23fff%22%2F%3E%3Crect%20x%3D%228%22%20y%3D%229%22%20width%3D%221%22%20height%3D%221%22%20fill%3D%22%23fff%22%2F%3E%3Crect%20x%3D%229%22%20y%3D%229%22%20width%3D%221%22%20height%3D%221%22%20fill%3D%22%23fff%22%2F%3E%3Crect%20x%3D%2210%22%20y%3D%229%22%20width%3D%221%22%20height%3D%221%22%20fill%3D%22%23fff%22%2F%3E%3Crect%20x%3D%2211%22%20y%3D%229%22%20width%3D%221%22%20height%3D%221%22%20fill%3D%22%23fff%22%2F%3E%3Crect%20x%3D%222%22%20y%3D%2210%22%20width%3D%221%22%20height%3D%221%22%20fill%3D%22%23000%22%2F%3E%3Crect%20x%3D%223%22%20y%3D%2210%22%20width%3D%221%22%20height%3D%221%22%20fill%3D%22%23fff%22%2F%3E%3Crect%20x%3D%224%22%20y%3D%2210%22%20width%3D%221%22%20height%3D%221%22%20fill%3D%22%23fff%22%2F%3E%3Crect%20x%3D%225%22%20y%3D%2210%22%20width%3D%221%22%20height%3D%221%22%20fill%3D%22%23fff%22%2F%3E%3Crect%20x%3D%226%22%20y%3D%2210%22%20width%3D%221%22%20height%3D%221%22%20fill%3D%22%23fff%22%2F%3E%3Crect%20x%3D%227%22%20y%3D%2210%22%20width%3D%221%22%20height%3D%221%22%20fill%3D%22%23fff%22%2F%3E%3Crect%20x%3D%228%22%20y%3D%2210%22%20width%3D%221%22%20height%3D%221%22%20fill%3D%22%23fff%22%2F%3E%3Crect%20x%3D%229%22%20y%3D%2210%22%20width%3D%221%22%20height%3D%221%22%20fill%3D%22%23fff%22%2F%3E%3Crect%20x%3D%2210%22%20y%3D%2210%22%20width%3D%221%22%20height%3D%221%22%20fill%3D%22%23fff%22%2F%3E%3Crect%20x%3D%2211%22%20y%3D%2210%22%20width%3D%221%22%20height%3D%221%22%20fill%3D%22%23000%22%2F%3E%3Crect%20x%3D%222%22%20y%3D%2211%22%20width%3D%221%22%20height%3D%221%22%20fill%3D%22%23000%22%2F%3E%3Crect%20x%3D%223%22%20y%3D%2211%22%20width%3D%221%22%20height%3D%221%22%20fill%3D%22%23fff%22%2F%3E%3Crect%20x%3D%224%22%20y%3D%2211%22%20width%3D%221%22%20height%3D%221%22%20fill%3D%22%23fff%22%2F%3E%3Crect%20x%3D%225%22%20y%3D%2211%22%20width%3D%221%22%20height%3D%221%22%20fill%3D%22%23fff%22%2F%3E%3Crect%20x%3D%226%22%20y%3D%2211%22%20width%3D%221%22%20height%3D%221%22%20fill%3D%22%23fff%22%2F%3E%3Crect%20x%3D%227%22%20y%3D%2211%22%20width%3D%221%22%20height%3D%221%22%20fill%3D%22%23fff%22%2F%3E%3Crect%20x%3D%228%22%20y%3D%2211%22%20width%3D%221%22%20height%3D%221%22%20fill%3D%22%23fff%22%2F%3E%3Crect%20x%3D%229%22%20y%3D%2211%22%20width%3D%221%22%20height%3D%221%22%20fill%3D%22%23fff%22%2F%3E%3Crect%20x%3D%2210%22%20y%3D%2211%22%20width%3D%221%22%20height%3D%221%22%20fill%3D%22%23fff%22%2F%3E%3Crect%20x%3D%2211%22%20y%3D%2211%22%20width%3D%221%22%20height%3D%221%22%20fill%3D%22%23000%22%2F%3E%3Crect%20x%3D%223%22%20y%3D%2212%22%20width%3D%221%22%20height%3D%221%22%20fill%3D%22%23000%22%2F%3E%3Crect%20x%3D%224%22%20y%3D%2212%22%20width%3D%221%22%20height%3D%221%22%20fill%3D%22%23fff%22%2F%3E%3Crect%20x%3D%225%22%20y%3D%2212%22%20width%3D%221%22%20height%3D%221%22%20fill%3D%22%23fff%22%2F%3E%3Crect%20x%3D%226%22%20y%3D%2212%22%20width%3D%221%22%20height%3D%221%22%20fill%3D%22%23fff%22%2F%3E%3Crect%20x%3D%227%22%20y%3D%2212%22%20width%3D%221%22%20height%3D%221%22%20fill%3D%22%23fff%22%2F%3E%3Crect%20x%3D%228%22%20y%3D%2212%22%20width%3D%221%22%20height%3D%221%22%20fill%3D%22%23fff%22%2F%3E%3Crect%20x%3D%229%22%20y%3D%2212%22%20width%3D%221%22%20height%3D%221%22%20fill%3D%22%23fff%22%2F%3E%3Crect%20x%3D%2210%22%20y%3D%2212%22%20width%3D%221%22%20height%3D%221%22%20fill%3D%22%23000%22%2F%3E%3Crect%20x%3D%223%22%20y%3D%2213%22%20width%3D%221%22%20height%3D%221%22%20fill%3D%22%23000%22%2F%3E%3Crect%20x%3D%224%22%20y%3D%2213%22%20width%3D%221%22%20height%3D%221%22%20fill%3D%22%23fff%22%2F%3E%3Crect%20x%3D%225%22%20y%3D%2213%22%20width%3D%221%22%20height%3D%221%22%20fill%3D%22%23fff%22%2F%3E%3Crect%20x%3D%226%22%20y%3D%2213%22%20width%3D%221%22%20height%3D%221%22%20fill%3D%22%23fff%22%2F%3E%3Crect%20x%3D%227%22%20y%3D%2213%22%20width%3D%221%22%20height%3D%221%22%20fill%3D%22%23fff%22%2F%3E%3Crect%20x%3D%228%22%20y%3D%2213%22%20width%3D%221%22%20height%3D%221%22%20fill%3D%22%23fff%22%2F%3E%3Crect%20x%3D%229%22%20y%3D%2213%22%20width%3D%221%22%20height%3D%221%22%20fill%3D%22%23fff%22%2F%3E%3Crect%20x%3D%2210%22%20y%3D%2213%22%20width%3D%221%22%20height%3D%221%22%20fill%3D%22%23000%22%2F%3E%3Crect%20x%3D%224%22%20y%3D%2214%22%20width%3D%221%22%20height%3D%221%22%20fill%3D%22%23000%22%2F%3E%3Crect%20x%3D%225%22%20y%3D%2214%22%20width%3D%221%22%20height%3D%221%22%20fill%3D%22%23fff%22%2F%3E%3Crect%20x%3D%226%22%20y%3D%2214%22%20width%3D%221%22%20height%3D%221%22%20fill%3D%22%23fff%22%2F%3E%3Crect%20x%3D%227%22%20y%3D%2214%22%20width%3D%221%22%20height%3D%221%22%20fill%3D%22%23fff%22%2F%3E%3Crect%20x%3D%228%22%20y%3D%2214%22%20width%3D%221%22%20height%3D%221%22%20fill%3D%22%23fff%22%2F%3E%3Crect%20x%3D%229%22%20y%3D%2214%22%20width%3D%221%22%20height%3D%221%22%20fill%3D%22%23000%22%2F%3E%3Crect%20x%3D%224%22%20y%3D%2215%22%20width%3D%221%22%20height%3D%221%22%20fill%3D%22%23000%22%2F%3E%3Crect%20x%3D%225%22%20y%3D%2215%22%20width%3D%221%22%20height%3D%221%22%20fill%3D%22%23000%22%2F%3E%3Crect%20x%3D%226%22%20y%3D%2215%22%20width%3D%221%22%20height%3D%221%22%20fill%3D%22%23000%22%2F%3E%3Crect%20x%3D%227%22%20y%3D%2215%22%20width%3D%221%22%20height%3D%221%22%20fill%3D%22%23000%22%2F%3E%3Crect%20x%3D%228%22%20y%3D%2215%22%20width%3D%221%22%20height%3D%221%22%20fill%3D%22%23000%22%2F%3E%3Crect%20x%3D%229%22%20y%3D%2215%22%20width%3D%221%22%20height%3D%221%22%20fill%3D%22%23000%22%2F%3E%3C%2Fsvg%3E") 8 0, pointer; }

a { color: inherit; text-decoration: none; }
a:hover { color: var(--accent); }
::selection { background: #f8d030; color: #202848; }
* { box-sizing: border-box; }

/* ---------- Page shell ---------- */
body {
  min-height: 100vh;
  background: linear-gradient(180deg, #2c4fb8 0%, #1c3480 50%, #0c1638 100%);
  color: var(--ink);
  font-family: 'VT323', monospace;
  position: relative;
}

/* Two full-bleed overlays: a static checker dither and a drifting scanline. */
.fx { position: fixed; inset: 0; pointer-events: none; z-index: 0; }
.fx--dither {
  background-image: repeating-conic-gradient(rgba(255,255,255,.06) 0% 25%, transparent 0% 50%);
  background-size: 8px 8px;
  opacity: .6;
}
.fx--scan {
  background-image: linear-gradient(rgba(255,255,255,.05) 2px, transparent 2px);
  background-size: 100% 64px;
  animation: scroll 6s linear infinite;
}

.wrap { position: relative; z-index: 1; max-width: 980px; margin: 0 auto; padding: 0 32px; }

/* ---------- Type ---------- */
.pixel { font-family: 'Press Start 2P', monospace; }
.body-text { font-size: 20px; line-height: 1.35; color: var(--ink-soft); text-wrap: pretty; }

/* ---------- The card: white shell, navy outline, hard offset shadow ---------- */
.card {
  background: var(--paper);
  border: var(--shell) solid var(--light);
  box-shadow: 0 0 0 var(--shell) var(--ink), 5px 5px 0 var(--shell) var(--ink-deep);
  border-radius: 6px;
  padding: 20px;
}
.card--lift { box-shadow: 0 0 0 var(--shell) var(--ink), 8px 8px 0 var(--shell) var(--ink-deep); }

/* ---------- Header ---------- */
.masthead {
  display: flex; align-items: center; justify-content: space-between;
  flex-wrap: wrap; gap: 14px; padding: 24px 0;
}
.badge {
  background: var(--ink);
  border: var(--shell) solid var(--light);
  box-shadow: 0 0 0 var(--shell) var(--ink), 4px 4px 0 var(--shell) var(--ink-deep);
  padding: 10px 16px;
  font-family: 'Press Start 2P', monospace;
  font-size: 11px; color: var(--light);
  display: flex; align-items: center; gap: 12px;
}
.badge__star { color: var(--accent); }
.badge__lv { color: var(--sky); font-size: 8px; }

.nav { display: flex; flex-wrap: wrap; gap: 18px; font-size: 20px; color: var(--light); text-shadow: 2px 2px 0 var(--ink-deep); }
.nav a { display: flex; align-items: center; gap: 6px; }
.nav__caret { font-size: 12px; font-family: 'Press Start 2P', monospace; }

/* ---------- Section headings ---------- */
.section { padding: 30px 0 60px 0; }
.section__title {
  font-family: 'Press Start 2P', monospace;
  font-size: 14px; margin: 0 0 24px 0;
  color: var(--light); text-shadow: 3px 3px 0 var(--ink-deep);
  display: flex; align-items: center; gap: 12px;
}
.section__title svg { display: block; flex: none; fill: var(--accent); }
.section__head {
  display: flex; align-items: center; justify-content: space-between;
  flex-wrap: wrap; gap: 20px; margin-bottom: 24px;
}
.section__head .section__title { margin: 0; }

/* ---------- Hero ---------- */
.hero { padding: 70px 0 60px 0; }
.hero__card { padding: 44px 40px; position: relative; }
.hero__tag {
  position: absolute; top: -18px; left: 28px;
  background: var(--accent); border: var(--shell) solid var(--ink);
  padding: 6px 12px;
  font-family: 'Press Start 2P', monospace; font-size: 8px; color: var(--accent-ink);
  animation: riseA .4s steps(3) both;
}
.hero__title {
  font-family: 'Press Start 2P', monospace;
  font-size: clamp(18px, 3.2vw, 30px); line-height: 1.75;
  margin: 0; max-width: 780px; color: var(--ink);
  text-shadow: 3px 3px 0 var(--haze);
  animation: riseA .4s steps(3) .15s both;
}
.hero__sub { font-size: 26px; margin: 22px 0 0 0; color: var(--ink-soft); animation: riseA .4s steps(3) .3s both; }
.caret {
  display: inline-block; width: 12px; height: 22px; background: var(--alert);
  margin-left: 8px; vertical-align: text-bottom;
  animation: blink 1s step-end infinite;
}

/* ---------- Tab switch ---------- */
.tabs { display: flex; gap: 10px; }
.tab {
  padding: 10px 16px;
  font-family: 'Press Start 2P', monospace; font-size: 9px;
  border: var(--shell) solid var(--light);
  box-shadow: 0 0 0 var(--shell) var(--ink), 5px 5px 0 var(--shell) var(--ink-deep);
  background: var(--paper); color: var(--ink-soft);
  display: flex; align-items: center; gap: 10px;
  transition: none;
}
/* Pressed tab sits 3px into the page — the shadow shrinks rather than moving. */
.tab[aria-selected="true"] {
  background: var(--accent); color: var(--accent-ink);
  box-shadow: 0 0 0 var(--shell) var(--ink), 2px 2px 0 var(--shell) var(--ink-deep);
}
.tab__key { background: var(--ink); color: var(--light); padding: 3px 5px; font-size: 7px; }

/* ---------- Project grid ---------- */
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 22px; }
.grid--wide { grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); }

.project { display: flex; flex-direction: column; gap: 12px; }
.project:hover { box-shadow: 0 0 0 var(--shell) var(--ink), 5px 5px 0 var(--shell) var(--accent); }
.project__top { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; }
.project__name { font-family: 'Press Start 2P', monospace; font-size: 11px; line-height: 1.7; color: var(--ink); }
.project__num {
  font-family: 'Press Start 2P', monospace; font-size: 9px;
  color: var(--accent-ink); background: var(--accent); padding: 3px 5px;
}
.tags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: auto; }
.tag {
  font-size: 16px; padding: 1px 8px;
  border: 2px solid var(--ink); background: transparent; color: var(--ink);
  white-space: nowrap;
}
.project__cta {
  display: flex; align-items: center; justify-content: space-between; gap: 10px;
  margin-top: 6px; padding-top: 12px; border-top: 2px dashed var(--haze);
  font-family: 'Press Start 2P', monospace; font-size: 8px; color: var(--ink-soft);
}
.project__cta:hover { color: var(--ink); }
.project__cta .arrow { font-size: 10px; animation: cursor .6s steps(2) infinite; }
/* Cards without a write-up yet read as inert rather than broken. */
.project__cta--locked { color: var(--ink-faint); cursor: inherit; }
.project__cta--locked:hover { color: var(--ink-faint); }
.project__cta--locked .arrow { animation: none; }

/* ---------- Experience / certifications ---------- */
.stack { display: flex; flex-direction: column; gap: 22px; }
.role { display: grid; grid-template-columns: 1fr auto; gap: 16px; align-items: baseline; }
.role__left { display: flex; flex-direction: column; gap: 6px; }
.role__title { font-family: 'Press Start 2P', monospace; font-size: 11px; line-height: 1.7; }
.role__org { font-size: 20px; color: var(--ink-soft); }
.chip {
  font-family: 'Press Start 2P', monospace; font-size: 8px;
  color: var(--accent-ink); background: var(--accent);
  border: 2px solid var(--ink); padding: 6px 8px;
}
.chip--past { color: var(--ink-soft); background: transparent; border-color: var(--ink-soft); }

.cert { display: flex; flex-direction: column; gap: 10px; }
.cert__name { font-family: 'Press Start 2P', monospace; font-size: 10px; line-height: 1.8; }
.cert__meta { display: flex; justify-content: space-between; gap: 12px; font-size: 20px; color: var(--ink-soft); }
.cert__meta .year { color: var(--ink); }

/* ---------- Footer ---------- */
.footer {
  display: flex; align-items: center; justify-content: space-between;
  flex-wrap: wrap; gap: 12px; padding: 22px 0 48px 0;
  border-top: var(--shell) solid rgba(248,248,248,.35);
  font-size: 20px; color: var(--haze); text-shadow: 2px 2px 0 var(--ink-deep);
}

/* ---------- Running mascot (built by js/mascot.js) ---------- */
.mascot { position: fixed; left: 0; bottom: 0; z-index: 5; pointer-events: none; animation: runAcross 16s linear infinite; }
.mascot__body { position: relative; animation: hop 5s cubic-bezier(.3,0,.7,1) infinite; }
.mascot__frame { position: absolute; left: 0; top: 0; }

/* ---------- Keyframes ---------- */
@keyframes blink  { 0%, 49% { opacity: 1; } 50%, 100% { opacity: 0; } }
@keyframes riseA  { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: translateY(0); } }
@keyframes riseB  { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: translateY(0); } }
@keyframes cursor { 0%, 100% { transform: translateX(0); } 50% { transform: translateX(4px); } }
@keyframes scroll { from { background-position: 0 0; } to { background-position: 0 64px; } }
@keyframes runAcross { from { transform: translateX(-80px); } to { transform: translateX(100vw); } }
@keyframes hop    { 0%, 22%, 30%, 58%, 66%, 100% { transform: translateY(0); } 26% { transform: translateY(-70px); } 62% { transform: translateY(-50px); } }
@keyframes frameA { 0%, 49% { opacity: 1; } 50%, 100% { opacity: 0; } }
@keyframes frameB { 0%, 49% { opacity: 0; } 50%, 100% { opacity: 1; } }

@media (prefers-reduced-motion: reduce) {
  .fx--scan, .mascot, .mascot__body { animation: none; }
  .mascot { display: none; }
}

@media (max-width: 640px) {
  .wrap { padding: 0 18px; }
  .hero { padding: 48px 0 40px 0; }
  .hero__card { padding: 34px 22px; }
  .role { grid-template-columns: 1fr; }
}

/* ============================================================
   CASE STUDY PAGES (/html/*.html)
   ============================================================ */

.backlink {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: 'Press Start 2P', monospace; font-size: 9px;
  color: var(--light); text-shadow: 2px 2px 0 var(--ink-deep);
  padding: 22px 0 0 0;
}
.backlink .arrow { animation: cursor .6s steps(2) infinite; }

.case-hero { padding: 28px 0 46px 0; }
.case-hero__card { padding: 40px 36px; position: relative; }
.case-hero__tag {
  position: absolute; top: -18px; left: 28px;
  background: var(--accent); border: var(--shell) solid var(--ink);
  padding: 6px 12px;
  font-family: 'Press Start 2P', monospace; font-size: 8px; color: var(--accent-ink);
}
.case-hero__title {
  font-family: 'Press Start 2P', monospace;
  font-size: clamp(16px, 2.6vw, 24px); line-height: 1.75;
  margin: 0; color: var(--ink); text-shadow: 3px 3px 0 var(--haze);
  animation: riseA .4s steps(3) both;
}
.case-hero__sub { font-size: 24px; margin: 20px 0 0 0; color: var(--ink-soft); text-wrap: pretty; }

/* Role / timeline / status strip under the title. */
.meta-row {
  display: flex; flex-wrap: wrap; gap: 12px 28px;
  margin-top: 26px; padding-top: 20px; border-top: 2px dashed var(--haze);
}
.meta { display: flex; flex-direction: column; gap: 6px; }
.meta__label { font-family: 'Press Start 2P', monospace; font-size: 7px; color: var(--ink-soft); }
.meta__value { font-size: 20px; color: var(--ink); }

/* Outcome scoreboard. */
.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 22px; }
.stat { text-align: center; display: flex; flex-direction: column; gap: 8px; padding: 22px 16px; }
.stat__value {
  font-family: 'Press Start 2P', monospace; font-size: 20px; line-height: 1.4;
  color: var(--ink); text-shadow: 2px 2px 0 var(--accent);
}
.stat__label { font-size: 18px; color: var(--ink-soft); line-height: 1.3; }

/* Body copy inside a card. */
.prose { display: flex; flex-direction: column; gap: 14px; padding: 26px 28px; }
.prose p { margin: 0; font-size: 21px; line-height: 1.4; color: var(--ink-soft); text-wrap: pretty; }
.prose strong { color: var(--ink); font-weight: normal; background: var(--accent); padding: 0 4px; }

/* Numbered approach steps. */
.steps { display: flex; flex-direction: column; gap: 22px; counter-reset: step; }
.step { display: grid; grid-template-columns: auto 1fr; gap: 18px; align-items: start; }
.step__num {
  font-family: 'Press Start 2P', monospace; font-size: 11px;
  background: var(--accent); color: var(--accent-ink);
  border: 2px solid var(--ink); padding: 8px 9px; line-height: 1;
}
.step__body { display: flex; flex-direction: column; gap: 10px; }
.step__title { font-family: 'Press Start 2P', monospace; font-size: 11px; line-height: 1.7; color: var(--ink); margin: 0; }
.step__text { font-size: 20px; line-height: 1.4; color: var(--ink-soft); margin: 0; text-wrap: pretty; }

/* Bullet list styled as a pixel checklist. */
.checklist { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
/* Absolute marker rather than a grid column: list items carry inline <code>
   and <strong>, and grid would promote each of those to its own column. */
.checklist li {
  position: relative; padding-left: 30px;
  font-size: 20px; line-height: 1.4; color: var(--ink-soft); text-wrap: pretty;
}
.checklist li::before {
  content: '▪'; position: absolute; left: 0; top: 1px;
  color: var(--accent-ink); background: var(--accent);
  font-size: 12px; line-height: 1.5; padding: 0 5px;
}

.case-nav {
  display: flex; justify-content: space-between; flex-wrap: wrap; gap: 14px;
  padding: 10px 0 50px 0;
}

@media (max-width: 640px) {
  .case-hero__card { padding: 32px 20px; }
  .prose { padding: 22px 20px; }
  .step { grid-template-columns: 1fr; }
  .step__num { justify-self: start; }
}

code {
  font-family: 'VT323', monospace; font-size: 1em;
  background: var(--haze); color: var(--ink); padding: 0 5px;
}

/* ---------- Evidence: role assignment table ---------- */
.table-scroll { overflow-x: auto; padding: 4px; margin: -4px; }
.dtable { border-collapse: collapse; width: 100%; min-width: 560px; font-size: 19px; }
.dtable th {
  font-family: 'Press Start 2P', monospace; font-size: 8px; text-align: left;
  color: var(--ink-soft); font-weight: normal;
  padding: 0 14px 12px 0; border-bottom: 2px solid var(--ink);
}
.dtable td { padding: 12px 14px 12px 0; border-bottom: 2px dashed var(--haze); color: var(--ink-soft); vertical-align: top; }
.dtable tr:last-child td { border-bottom: none; }
.dtable .principal { color: var(--ink); }
.dtable .kind { font-size: 17px; }
/* Privileged administrator roles are the ones worth counting. */
.pill {
  display: inline-block; font-family: 'Press Start 2P', monospace; font-size: 7px;
  padding: 4px 6px; border: 2px solid var(--ink); white-space: nowrap;
}
.pill--priv { background: var(--accent); color: var(--accent-ink); }
.pill--job { background: transparent; color: var(--ink-soft); border-color: var(--ink-soft); }

/* ---------- Evidence: before / after config ---------- */
.compare { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 22px; }
.compare__head {
  font-family: 'Press Start 2P', monospace; font-size: 9px;
  padding: 8px 10px; margin: -20px -20px 16px -20px;
  border-bottom: 2px solid var(--ink);
}
.compare__head--before { background: var(--haze); color: var(--ink); }
.compare__head--after { background: var(--accent); color: var(--accent-ink); }
.settings { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 12px; }
.settings li { display: grid; grid-template-columns: auto 1fr; gap: 10px; align-items: start; font-size: 19px; line-height: 1.3; color: var(--ink-soft); }
.settings .mark { font-family: 'Press Start 2P', monospace; font-size: 9px; line-height: 1.5; padding: 2px 4px; border: 2px solid var(--ink); }
.mark--off { background: transparent; color: var(--ink-soft); border-color: var(--ink-soft); }
.mark--on { background: var(--ink); color: var(--paper); }
.mark--risk { background: var(--alert); color: var(--paper); border-color: var(--ink); }

/* ---------- Honest "not done yet" note ---------- */
.callout { border-left: 8px solid var(--accent); }
.callout .step__title { margin-bottom: 4px; }

/* Caption text that belongs to screen readers only. */
.visually-hidden {
  position: absolute; width: 1px; height: 1px; overflow: hidden;
  clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap;
}

/* ---------- Spec cards: a name and a paragraph (hardware, tooling) ---------- */
.spec { display: flex; flex-direction: column; gap: 10px; }
.spec__name { font-family: 'Press Start 2P', monospace; font-size: 10px; line-height: 1.8; color: var(--ink); }
.spec__desc { font-size: 19px; line-height: 1.4; color: var(--ink-soft); margin: 0; text-wrap: pretty; }

/* ---------- Schematic panel: dark ground so the boxes read as a diagram ---------- */
.diagram {
  background: var(--ink-deep);
  border: var(--shell) solid var(--light);
  box-shadow: 0 0 0 var(--shell) var(--ink), 5px 5px 0 var(--shell) var(--ink-deep);
  border-radius: 6px;
  padding: 24px 20px;
  overflow-x: auto;
}
.diagram svg { display: block; min-width: 640px; width: 100%; height: auto; }

/* ---------- Buttons ---------- */
.btn-row { display: flex; flex-wrap: wrap; gap: 14px; }
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: 'Press Start 2P', monospace; font-size: 9px; line-height: 1.6;
  padding: 13px 16px;
  border: var(--shell) solid var(--light);
  box-shadow: 0 0 0 var(--shell) var(--ink), 5px 5px 0 var(--shell) var(--ink-deep);
  background: var(--accent); color: var(--accent-ink);
}
.btn--ghost { background: var(--paper); color: var(--ink-soft); }
/* Pressed look on hover, and hold the label colour against the global a:hover. */
.btn:hover, .btn--ghost:hover {
  color: var(--accent-ink);
  box-shadow: 0 0 0 var(--shell) var(--ink), 2px 2px 0 var(--shell) var(--ink-deep);
}
.btn--ghost:hover { color: var(--ink); }

/* ---------- Screenshot evidence ---------- */
.shot { margin: 22px 0 0 0; }
.shot img {
  display: block; width: 100%; height: auto;
  background: var(--paper);
  border: var(--shell) solid var(--light);
  box-shadow: 0 0 0 var(--shell) var(--ink), 5px 5px 0 var(--shell) var(--ink-deep);
  border-radius: 4px;
}
/* Captions sit on the page ground, not on paper, so they take the light palette. */
.shot figcaption {
  margin-top: 14px; font-size: 18px; line-height: 1.35;
  color: var(--haze); text-shadow: 2px 2px 0 var(--ink-deep); text-wrap: pretty;
}
.shot figcaption b { color: var(--light); font-weight: normal; }
.shot-pair { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 22px; }
.shot-pair .shot { margin-top: 0; }

/* ---------- Severity pills (findings tables) ---------- */
.pill--crit { background: var(--alert); color: var(--paper); }
.pill--high { background: var(--warn); color: var(--ink); }
.pill--med  { background: transparent; color: var(--ink-soft); border-color: var(--ink-soft); }
.pill--info { background: var(--haze); color: var(--ink); }

/* ---------- Code block: a terminal pane on the dark ground ---------- */
.codeblock {
  background: var(--ink-deep);
  border: var(--shell) solid var(--light);
  box-shadow: 0 0 0 var(--shell) var(--ink), 5px 5px 0 var(--shell) var(--ink-deep);
  border-radius: 6px;
  overflow: hidden;
}
.codeblock__bar {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 11px 14px; border-bottom: 2px solid rgba(248, 248, 248, .25);
  font-family: 'Press Start 2P', monospace; font-size: 8px; color: var(--haze);
}
.codeblock__dots { display: flex; gap: 5px; flex: none; }
.codeblock__dots i { width: 8px; height: 8px; display: block; }
.codeblock pre {
  margin: 0; padding: 18px 16px; overflow-x: auto;
  font-family: 'VT323', monospace; font-size: 19px; line-height: 1.5;
  color: var(--haze); tab-size: 2;
}
/* Syntax colours are fixed rather than tokenised — they must stay legible on
   the dark pane whichever accent the page is in. */
.codeblock .kw  { color: #48d8b0; }
.codeblock .str { color: #f8d030; }
.codeblock .key { color: #58a8f8; }
.codeblock .cm  { color: var(--ink-faint); }

/* ---------- Phase label on a timeline step ---------- */
.step__phase {
  align-self: flex-start;
  font-family: 'Press Start 2P', monospace; font-size: 7px; line-height: 1.6;
  background: var(--accent); color: var(--accent-ink); padding: 4px 6px;
}

/* A tall photo shouldn't run the full column width. */
.shot--portrait img { max-width: 380px; margin: 0 auto; }
.shot--portrait figcaption { max-width: 380px; margin-left: auto; margin-right: auto; }

/* ---------- Profile avatar in the masthead badge ---------- */
.badge__avatar {
  width: 30px; height: 30px; flex: none;
  border: 2px solid var(--light);
  border-radius: 3px;
  object-fit: cover;
  image-rendering: pixelated;              /* keep the pixel art crisp */
  background: var(--ink-deep);
}
