  /* self-hosted Google Fonts files (SIL OFL 1.1, licenses in fonts/); Plus Jakarta Sans is one variable file for all weights */
  @font-face { font-family: "Plus Jakarta Sans"; font-weight: 400 800; font-display: swap; src: url(fonts/jakarta-latin.woff2) format("woff2");
    unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
  @font-face { font-family: "Plus Jakarta Sans"; font-weight: 400 800; font-display: swap; src: url(fonts/jakarta-latin-ext.woff2) format("woff2");
    unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF; }
  @font-face { font-family: "DM Mono"; font-weight: 400; font-display: swap; src: url(fonts/dm-mono-400-latin.woff2) format("woff2");
    unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
  @font-face { font-family: "DM Mono"; font-weight: 400; font-display: swap; src: url(fonts/dm-mono-400-latin-ext.woff2) format("woff2");
    unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF; }
  @font-face { font-family: "DM Mono"; font-weight: 500; font-display: swap; src: url(fonts/dm-mono-500-latin.woff2) format("woff2");
    unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
  @font-face { font-family: "DM Mono"; font-weight: 500; font-display: swap; src: url(fonts/dm-mono-500-latin-ext.woff2) format("woff2");
    unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF; }

  :root {
    --bg: #121214;
    --fg: #eceaf2;
    --dim: #8b8898;
    --faint: #55525f;
    --line: #26242c;
    --mag: #e700ce;
    --vio: #a400e8;
    --cyan: #00e7e7;
    --green: #2fe700;
    --yellow: #e7cf00;
    --sans: "Plus Jakarta Sans", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    --mono: "DM Mono", ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
    --pad: clamp(18px, 4vw, 48px);
  }
  * { box-sizing: border-box; }
  html { background: var(--bg); color: var(--fg); scroll-behavior: smooth; }
  body { margin: 0; font: 400 17px/1.65 var(--sans); -webkit-font-smoothing: antialiased; overflow-x: hidden; }
  a { color: inherit; }
  ::selection { background: var(--mag); color: #fff; }

  /* ---------- canvases ---------- */
  canvas.fx { position: fixed; inset: 0; width: 100vw; height: 100vh; pointer-events: none; display: block; }
  #glow { z-index: 0; image-rendering: pixelated; }
  #oct { z-index: 6; }
  .no-gl canvas.fx { display: none; }

  /* ---------- top bar + wordmark ---------- */
  .bar { position: fixed; top: 0; left: 0; right: 0; height: 76px; z-index: 3; pointer-events: none;
         background: linear-gradient(var(--bg) 45%, rgba(18,18,20,0)); opacity: 0; }
  html:not(.motion) .bar { display: none; }
  #slot-corner { position: fixed; top: 10px; right: calc(var(--pad) - 6px); width: 52px; height: 52px; pointer-events: none; }

  .wm { margin: 0; font-family: var(--sans); font-weight: 800; letter-spacing: -0.055em; line-height: .9;
        white-space: nowrap; font-size: clamp(64px, 16vw, 220px); }
  .wm a { text-decoration: none; display: inline-block; }
    .wm .bl { display: inline-block; width: 0; height: 0; }
  .motion body > .wm { position: fixed; left: 0; top: 0; z-index: 4; transform-origin: 0 0; will-change: transform; }
  .motion .wm .dot { color: rgba(236, 234, 242, var(--dot, 0)); padding: 0 .07em; }
  /* until app.js moves the wordmark out to float over the page, it sits in its slot at about the size and place layout() gives it
     (0.3294em per px of "iter.ca" width; trimmed to the letters like the slot), so the first paint already looks laid out */
  .motion #wm-home .wm { font-size: max(56px, min((100vw - 2 * var(--pad)) * .3294, 494px, 62vh)); margin: -.1076em 0 -.1em; }
  @media (max-width: 699.98px) { .motion #wm-home .wm { font-size: max(56px, min((100vw - 2 * var(--pad)) * .3294, 30vh)); margin-top: 0; } }

  main { position: relative; z-index: 1; }

  /* ---------- hero ---------- */
  .hero { min-height: 100vh; min-height: 100svh; display: flex; flex-direction: column; justify-content: center; padding-bottom: 24px !important;
          padding: 22px var(--pad) 72px; position: relative; }
  .corner-meta { position: absolute; font: 400 12px/1.4 var(--mono); color: var(--dim); text-shadow: 0 1px 6px #000; letter-spacing: .06em; text-transform: lowercase; }
  .corner-meta.tr { top: 24px; right: var(--pad); text-align: right; }
  .corner-meta.bl, .corner-meta.br { display: none; } /* the first screen is full of content now */
  .corner-meta a { text-decoration: none; }
  footer .say { text-shadow: 0 0 4px var(--bg), 0 0 14px var(--bg), 0 0 28px rgba(18,18,20,.85); }
  footer .say { color: #b3afc0; }
  /* filter halo (not text-shadow) so it survives the gradient-clipped hover state */
  footer .mail { filter: drop-shadow(0 0 3px var(--bg)) drop-shadow(0 0 12px rgba(18,18,20,.9)); }
  /* hero legibility over the ribbon/cursor glow: a soft dark halo plus slightly lifted greys */
  .hero .intro p, .hero .hl-list a, .corner-meta { text-shadow: 0 0 3px var(--bg), 0 0 10px var(--bg), 0 0 18px rgba(18,18,20,.9); }
  .hero .intro .hl-h, .hero .hl-list .m, .hero .hl-list .ar, .hero .intro-text > ul a { color: #9a96a8; }
  .hero .intro-text p { color: #d4d1dd; }
  /* first screen below the wordmark: intro + "elsewhere" on top, then things-I've-done and recent; the wordmark is sized so at
     least 5.5 rows show on the first screen (layout() measures with .fit), and the rest of the lists continue down the page */
  .intro { --rh: 34px; flex: 1 1 auto; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
           grid-template-rows: auto auto auto; grid-template-areas: "text else" "done done" "recent recent";
           gap: clamp(14px, 2.4vh, 26px) clamp(24px, 4vw, 64px); margin-top: clamp(58px, 8vh, 84px); max-width: 1240px; width: 100%; }
  .intro-text { grid-area: text; }
  .intro-text p { margin: 0 0 10px; color: #c9c6d3; font-size: clamp(15px, 1.2vw, 16.5px); line-height: 1.55; max-width: 36em; }
  .intro-text strong { font-weight: inherit; color: var(--fg); }
  .intro-text code { font: 400 .88em var(--mono); color: var(--fg); }
  .intro-text > ul { display: flex; flex-wrap: wrap; gap: 6px 18px; margin: 0; padding: 0; list-style: none; font: 400 13px/1.6 var(--mono); }
  .intro-text > ul a { color: var(--dim); text-decoration: none; border-bottom: 1px solid var(--line); }
  .intro-text > ul a:hover { color: var(--fg); border-color: var(--mag); }
  .intro .hl-h { display: flex; margin: 2px 0 6px; font: 400 12px/1 var(--mono); color: var(--faint); letter-spacing: .08em; }
  .hl-h a { margin-left: auto; color: var(--dim); text-decoration: none; letter-spacing: .02em; }
  .hl-h a:hover { color: var(--fg); }
  .hl-h a.hl-self { margin-left: 0; color: inherit; letter-spacing: inherit; border-bottom: 1px solid var(--line); }   /* the heading itself links to everything */
  .hl-h a.hl-self:hover, .hl-h a.hl-self:focus-visible { color: var(--fg); border-color: var(--mag); }
  .intro-done { grid-area: done; } .intro-recent { grid-area: recent; margin-top: clamp(18px, 3vh, 34px); }
  .fit .intro-recent { display: none; }   /* the wordmark is sized so things I've done (5.5+ rows) fits on the first screen */
  /* things I've done: bold, flush left (no date column), on the same right edge as recent */
  .hero .hl-list li.top a { grid-template-columns: minmax(0, max-content) auto minmax(0, 1fr) 14px; }
  /* things I've done lead the merged list, in bold, then recent items by date */
  .hero .hl-list li.top .t { font-weight: 700; color: var(--fg); }
  .fit .intro-col .hl-list { height: calc(5.5 * var(--rh) + 2px); overflow: hidden; }
  .intro-col { display: flex; flex-direction: column; min-height: 0; }
  .intro-col .hl-list { flex: 0 0 auto; margin: 0 -10px; padding-right: 4px;
                        scrollbar-width: thin; scrollbar-color: #3a3842 transparent; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
  /* the kind pill sits right after the title; the arrow stays on the right edge */
  .hero .hl-list a { grid-template-columns: 44px minmax(0, max-content) auto minmax(0, 1fr) 14px; gap: 10px; padding: 0 10px; margin: 0; height: var(--rh); align-items: center; border-radius: 6px; }
  .hero .hl-list .t { font-size: 14.5px; line-height: 1.35; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .hero .hl-list .m { font-size: 12px; }
  .hero .hl-list .kd { font-size: 10px; padding: 3px 7px 2px; justify-self: start; }
  .hero .hl-list .ar { grid-column: -2; }
  /* "elsewhere" joins the first screen only where it has room; otherwise it keeps its own section */
  .intro-else { grid-area: else; }
  .intro-else .links { gap: 7px; }
  .intro-else .links a { padding: 6px 11px 5px; font-size: 12.5px; gap: 7px; }
  /* chevron pill: expands every active account from /p/accounts/ (a panel over the lists on desktop, inline on phones) */
  .intro-else { position: relative; }
  .acc-more { display: inline-grid; place-items: center; width: 30px; height: 100%; min-height: 27px; padding: 0; border: 1px solid var(--line); border-radius: 99px;
              background: rgba(18,18,20,.6); color: var(--dim); cursor: pointer; transition: border-color .2s, background .2s, color .2s; }
  .acc-more svg { transition: transform .25s cubic-bezier(.2,.8,.2,1); }
  .acc-more:hover, .acc-more:focus-visible, .acc-more[aria-expanded="true"] { border-color: var(--mag); background: rgba(231,0,206,.08); color: var(--fg); outline: none; }
  .acc-more[aria-expanded="true"] svg { transform: rotate(180deg); }
  .acc-all { margin-top: 7px !important; } .acc-all[hidden] { display: none; }   /* .links sets display, which would override hidden */
  .acc-all small, .acc-plain small { font-size: 10.5px; color: #a19dae; letter-spacing: .02em; }
  .acc-plain { display: inline-flex; align-items: baseline; gap: 7px; padding: 6px 11px 5px; border: 1px dashed var(--line); border-radius: 99px;
               font: 400 12.5px/1 var(--mono); color: var(--fg); }
  @media (min-width: 700px) {
    .acc-all:not([hidden]) { position: absolute; z-index: 8; left: -12px; right: -12px; top: 100%; padding: 12px; border-radius: 14px;
             background: rgba(20,19,24,.96); -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px);
             border: 1px solid rgba(255,255,255,.1); box-shadow: 0 18px 50px rgba(0,0,0,.55); animation: accin .2s ease-out; }
  }
  @keyframes accin { from { opacity: 0; transform: translateY(-4px); } }
  #links, #recent, #done { display: none; }
  .no-else .intro-else { display: none; } .no-else #links { display: block; }   /* set by layout() when it would overflow */
  .no-else .intro-text { grid-column: 1 / -1; }
  /* shorter windows: tighter rows and spacing so 5.5 rows still fit under a big wordmark */
  @media (min-width: 700px) and (max-height: 780px) {
    .intro { --rh: 29px; row-gap: 10px; margin-top: 48px; }
    .intro-text p { margin-bottom: 6px; line-height: 1.45; }
    .intro .hl-h { margin-bottom: 4px; }
    .hero .hl-list .t { font-size: 14px; }
  }
  @media (min-width: 700px) and (max-height: 640px) { .intro { --rh: 27px; } }
  /* phones: one continuous page, the desktop first screen stacked: bio and links, elsewhere, then the merged list */
  @media (max-width: 699.98px) {
    .intro-col .hl-list { height: auto; overflow: visible; }
    .intro-recent .hl-list li.x { display: none; }   /* the same 20 recent items as the current homepage; "recent" links to the rest */
    .hero .intro-col .hl-list a { grid-template-columns: 44px minmax(0, 1fr) 14px; grid-template-areas: none; padding: 0 10px; margin: 0; }
    .hero .intro-col .hl-list a > * { grid-area: auto; }
    .hero .intro-col .hl-list li.top a { grid-template-columns: minmax(0, 1fr) 14px; }
    .intro-recent { margin-top: 0; }   /* the stacked grid's row gap already separates them */
    .hero .intro-col .hl-list a { height: auto; min-height: var(--rh); padding-top: 7px; padding-bottom: 7px; align-items: baseline; }
    .hero .intro-col .hl-list .t { white-space: normal; }   /* no scroll box here, so titles wrap instead of truncating */
    .hero .hl-list .kd { display: none; }
    .no-else .intro-else { display: block; } .no-else #links { display: none; }
  }
  .scrollhint span { display: inline-block; animation: nudge 1.8s ease-in-out infinite; }
  @keyframes nudge { 50% { transform: translateY(4px); } }

  /* ---------- sections ---------- */
  .wrap { max-width: 980px; margin: 0 auto; padding: 0 var(--pad); }
  .sec { padding: clamp(56px, 8vw, 104px) 0; }
  .list.num a { grid-template-columns: 44px minmax(0, 1fr) auto 22px; }
  .sh { display: flex; align-items: baseline; gap: 14px; margin: 0 0 22px; border-bottom: 1px solid var(--line); padding-bottom: 14px; }
  .sh .n { font: 400 12px/1 var(--mono); color: var(--faint); letter-spacing: .08em; }
  .sh h2 { margin: 0; font: 800 clamp(26px, 3.4vw, 40px)/1.1 var(--sans); letter-spacing: -0.035em; }
  .sh .more { margin-left: auto; font: 400 13px/1 var(--mono); color: var(--dim); text-decoration: none; white-space: nowrap; }
  .sh .more:hover { color: var(--fg); }

  /* ---------- residual-stream sidebar + layer headings (from prototype B) ---------- */
  .layers { --gx: 44px; --lpad: 112px; --smag: #ff4fd8; --svio: #8f63ff; --scya: #41e6ff;
            position: relative; max-width: 1180px; margin: 0 auto; padding: 0 var(--pad) 0 var(--lpad); }
  .layers .wrap { max-width: none; margin: 0; padding: 0; }
  .layers .sec { padding: 15vh 0 4vh; }
  .layers.empty { display: none; }
  .layers { counter-reset: layer; } .layers > .sec { counter-increment: layer; } .lab .ln::after { content: counter(layer); }
  .stream { position: absolute; left: var(--gx); top: 0; bottom: 0; width: 2px; background: rgba(255,255,255,.09); border-radius: 2px; }
  .stream .flow { position: absolute; inset: 0; transform-origin: 50% 0; transform: scaleY(0); border-radius: 2px; will-change: transform;
                  background: linear-gradient(180deg, var(--smag), var(--svio) 45%, var(--scya)); box-shadow: 0 0 14px rgba(255,79,216,.55), 0 0 2px #fff; }
  .stream .packet { position: absolute; left: 50%; top: 0; width: 12px; height: 12px; margin: -6px 0 0 -6px; border-radius: 50%; background: #fff; will-change: transform;
                    box-shadow: 0 0 0 3px rgba(65,230,255,.25), 0 0 22px 6px rgba(143,99,255,.8); }
  .lh { position: relative; margin: 0 0 28px; }
  .node { position: absolute; left: calc(var(--gx) - var(--lpad) - 15px); top: 0; width: 32px; height: 32px; border-radius: 50%; display: grid; place-items: center;
          background: var(--bg); border: 1px solid rgba(255,255,255,.2); font: 500 17px/1 var(--mono); color: var(--dim); transition: color .4s, border-color .4s, box-shadow .4s, transform .3s; }
  .sec.lit .node { color: #fff; border-color: var(--smag); box-shadow: 0 0 0 4px rgba(255,79,216,.12), 0 0 20px rgba(255,79,216,.55); }
  .lab { font: 400 12px/1 var(--mono); letter-spacing: .05em; color: var(--dim); display: flex; flex-wrap: wrap; gap: 2px 12px; align-items: center; min-height: 32px; }
  .lab b { font-weight: 500; color: var(--smag); white-space: nowrap; }
  .lab em { font-style: normal; color: var(--faint); }
  .lh h2 { margin: 6px 0 16px; font: 800 clamp(40px, 7.4vw, 92px)/.95 var(--sans); letter-spacing: -.05em; }
  .lh h2 .grad { background: linear-gradient(100deg, var(--mag), var(--vio) 30%, var(--cyan) 65%, var(--green) 90%);
                 -webkit-background-clip: text; background-clip: text; color: transparent; }
  .lh .more { font: 400 13px/1 var(--mono); color: var(--dim); text-decoration: none; margin-left: auto; }
  .lh .more:hover { color: var(--fg); }
  .strip { display: block; width: 100%; height: 30px; image-rendering: pixelated; border-radius: 3px; background: #141317; border: 1px solid rgba(255,255,255,.09); }
  .stripmeta { display: flex; justify-content: space-between; font: 400 10.5px/1 var(--mono); color: var(--faint); margin-top: 7px; letter-spacing: .03em; }

  /* ---------- interactions ---------- */
  #sparks { position: fixed; inset: 0; width: 100vw; height: 100vh; z-index: 5; pointer-events: none; image-rendering: pixelated; }
  #oct-hit { position: fixed; left: 0; top: 0; z-index: 7; border-radius: 50%; cursor: grab; touch-action: none; -webkit-tap-highlight-color: transparent; -webkit-touch-callout: none; user-select: none; -webkit-user-select: none; display: none; }
  .motion #oct-hit { display: block; }
  #oct-hit.drag { cursor: grabbing; }
  .no-gl #oct-hit { display: none; }
  .wm .ch { display: inline-block; will-change: transform; }
  .stream-hit { position: absolute; left: -18px; right: -18px; top: 0; bottom: 0; cursor: pointer; pointer-events: auto; }
  .stream .tok { position: absolute; left: 50%; top: 0; width: 8px; height: 22px; margin: -11px 0 0 -4px; border-radius: 4px; pointer-events: none; animation: tokin .2s ease-out both;
                 background: linear-gradient(#fff, var(--scya)); box-shadow: 0 0 14px 3px rgba(65,230,255,.8), 0 0 30px 8px rgba(255,79,216,.45); }
  @keyframes tokin { from { opacity: 0; } }
  .node { cursor: pointer; z-index: 1; }
  .node:hover { transform: scale(1.12); }
  .node.zap { color: #fff; border-color: var(--scya) !important; box-shadow: 0 0 0 6px rgba(65,230,255,.18), 0 0 34px rgba(65,230,255,.9) !important; transform: scale(1.25); transition: color .12s, border-color .12s, box-shadow .12s, transform .12s; }
  .strip { cursor: crosshair; touch-action: pan-y; }

  /* where */
  #here-mini { text-decoration: none; color: var(--fg); }
  /* the corner location opens a card with the /where/ details (above the fixed wordmark) */
  .where-hover { position: absolute; top: 0; left: 0; right: 0; z-index: 6; }
  #here-mini { border-bottom: 1px dotted transparent; transition: border-color .2s, color .2s; }
  .where-hover.open #here-mini, #here-mini:focus-visible { color: var(--fg); border-color: var(--mag); outline: none; }
  .where-pop { position: absolute; top: 70px; right: calc(var(--pad) - 6px); width: min(400px, calc(100vw - 2 * var(--pad))); padding: 16px 16px 14px;
               background: rgba(20,19,24,.94); border: 1px solid rgba(255,255,255,.1); border-radius: 14px; backdrop-filter: blur(10px);
               box-shadow: 0 18px 50px rgba(0,0,0,.55), 0 0 0 1px rgba(255,79,216,.06); text-align: left;
               opacity: 0; visibility: hidden; transform: translateY(-6px) scale(.985); transform-origin: top right;
               transition: opacity .2s ease, transform .28s cubic-bezier(.2,.8,.2,1), visibility 0s linear .28s; }
  .where-pop::before { content: ""; position: absolute; left: 0; right: 0; top: -18px; height: 18px; }   /* hover bridge from the corner text */
  .where-hover.open .where-pop { opacity: 1; visibility: visible; transform: none; transition: opacity .2s ease, transform .28s cubic-bezier(.2,.8,.2,1), visibility 0s; }
  .where-pop .here .place { font-size: 34px; }
  .where-pop .here .hmeta { margin: 8px 0 10px; font-size: 12px; }
  .where-pop .hchips { gap: 6px; }
  .where-pop .hchips li { font-size: 11px; padding: 5px 9px 4px; }
  .where-pop .mapbox { margin-top: 14px; }
  .here .eyebrow { margin: 0 0 6px; font: 400 12px/1.4 var(--mono); color: var(--dim); letter-spacing: .06em; text-transform: lowercase; }
  .here .place { margin: 0; font: 800 clamp(44px, 6.4vw, 84px)/1 var(--sans); letter-spacing: -.05em; }
  .here .flag { font-size: .7em; vertical-align: .08em; }
  .here .hmeta { margin: 14px 0 16px; font: 400 14px/1.6 var(--mono); color: var(--dim); }
  .here .hmeta b { color: var(--fg); font-weight: 500; }
  .here .nw { white-space: nowrap; }
  .hchips { display: flex; flex-wrap: wrap; gap: 8px; margin: 0; padding: 0; list-style: none; }
  .hchips li { font: 400 12px/1 var(--mono); color: #cfcbdb; border: 1px solid rgba(255,255,255,.1); border-radius: 99px; padding: 7px 11px 6px; }
  .hchips li b { color: #41e6ff; font-weight: 500; }
  .mapbox { position: relative; }
  #trailmap { display: block; width: 100%; aspect-ratio: 16 / 9; border-radius: 10px; background: #141317; border: 1px solid rgba(255,255,255,.09); touch-action: pan-y; cursor: crosshair; }
  .mapcap { display: flex; justify-content: space-between; font: 400 10.5px/1 var(--mono); color: var(--faint); margin-top: 7px; letter-spacing: .03em; }
  #map-hover { color: var(--dim); }


  /* ---------- link hovercards ---------- */
  #hc { position: fixed; left: 0; top: 0; z-index: 20; width: 340px; pointer-events: none; opacity: 0; visibility: hidden;
        transform-origin: 30px 0; will-change: transform, opacity;
        border-radius: 14px; padding: 1px; background: linear-gradient(135deg, rgba(255,79,216,.75), rgba(143,99,255,.4) 45%, rgba(65,230,255,.7));
        box-shadow: 0 18px 50px rgba(0,0,0,.55), 0 0 40px rgba(143,99,255,.18); }
  #hc .in { border-radius: 13px; overflow: hidden; background: rgba(20,19,24,.97); -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px); }
  #hc img { opacity: 0; transition: opacity .25s; }
  #hc img.ok { opacity: 1; }
  #hc .im { display: block; width: 100%; height: 150px; object-fit: cover; background: #0d0c10; border-bottom: 1px solid rgba(255,255,255,.08); }
  #hc .bd { padding: 13px 15px 12px; }
  #hc .top { display: flex; align-items: center; gap: 8px; font: 400 11px/1 var(--mono); color: var(--dim); letter-spacing: .04em; }
  #hc .top .site { color: #cfcbdb; }
  #hc .top .pip { width: 6px; height: 6px; border-radius: 50%; background: #ff4fd8; box-shadow: 0 0 8px #ff4fd8; }
  #hc .top .pip.ext { background: #41e6ff; box-shadow: 0 0 8px #41e6ff; }
  #hc .top .kd { margin-left: auto; border: 1px solid rgba(255,255,255,.12); border-radius: 99px; padding: 3px 7px 2px; }
  #hc .top .kd.lw { color: #9fdcff; border-color: #1f3a48; }
  #hc .hd { display: flex; gap: 11px; align-items: center; margin: 10px 0 0; }
  #hc .av { width: 38px; height: 38px; border-radius: 50%; flex: none; border: 1px solid rgba(255,255,255,.15); }
  #hc h3 { margin: 0; font: 700 17px/1.25 var(--sans); letter-spacing: -.02em; color: var(--fg); }
  #hc .tx { margin: 7px 0 0; font: 400 13.5px/1.5 var(--sans); color: #b9b5c4; display: -webkit-box; -webkit-line-clamp: 4; -webkit-box-orient: vertical; overflow: hidden; }
  #hc .tx i { font-style: normal; color: var(--fg); }
  #hc .mt { margin: 10px 0 0; font: 400 11px/1.4 var(--mono); color: var(--dim); display: flex; flex-wrap: wrap; gap: 4px 12px; }
  #hc .mt b { font-weight: 400; color: #41e6ff; }
  #hc canvas { display: block; width: 100%; height: 6px; image-rendering: pixelated; }
  #hc .url { padding: 7px 15px 8px; font: 400 10.5px/1.2 var(--mono); color: var(--faint); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; border-top: 1px solid rgba(255,255,255,.06); }
  /* lists */
  .list { list-style: none; margin: 0; padding: 0; }
  .list a { display: grid; grid-template-columns: 104px minmax(0, 1fr) auto 22px; align-items: baseline; gap: 18px;
            padding: 13px 10px; margin: 0 -10px; border-radius: 10px; text-decoration: none; position: relative;
            transition: background .25s; }
  .list li + li a::before { content: ""; position: absolute; left: 10px; right: 10px; top: 0; border-top: 1px solid var(--line); }
  .list .m { font: 400 13px/1.5 var(--mono); color: var(--faint); letter-spacing: .03em; white-space: nowrap; }
  .list .t { font-weight: 500; font-size: 17px; line-height: 1.4; }
  .list .kd { font: 400 11px/1 var(--mono); color: var(--dim); border: 1px solid var(--line); border-radius: 99px; padding: 4px 8px 3px;
              letter-spacing: .04em; white-space: nowrap; align-self: center; }
  .list .kd.lw { color: #9fdcff; border-color: #1f3a48; }
  .list .kd.app { color: #f7a6ec; border-color: #4a2144; }
  .list .ar { font-family: var(--mono); color: var(--faint); text-align: right; transition: transform .25s, color .25s; }
  .list a:hover, .list a:focus-visible { background: linear-gradient(90deg, rgba(231,0,206,.09), rgba(0,231,231,.06) 60%, transparent); outline: none; }
  .list a:hover .t, .list a:focus-visible .t { color: #fff; }
  .list a:hover .ar, .list a:focus-visible .ar { color: var(--cyan); transform: translateX(4px); }
  .list a:hover .ar.ext, .list a:focus-visible .ar.ext { transform: translate(3px, -3px); }
  .list a:focus-visible { box-shadow: inset 0 0 0 1px var(--cyan); }

  /* links */
  .links { display: flex; flex-wrap: wrap; gap: 10px; margin: 0; padding: 0; list-style: none; }
  .links a { display: inline-flex; align-items: baseline; gap: 10px; text-decoration: none; padding: 11px 16px 10px; border: 1px solid var(--line);
             border-radius: 99px; font: 400 14px/1 var(--mono); color: var(--fg); background: rgba(18,18,20,.6); transition: border-color .2s, background .2s; }
  .links a:hover, .links a:focus-visible { border-color: var(--mag); background: rgba(231,0,206,.08); outline: none; }
  .links a.primary { border-color: #3d2340; }

  /* footer */
  footer { position: relative; z-index: 1; min-height: 100vh; min-height: 100svh; display: flex; flex-direction: column; align-items: center;
           padding: 8vh var(--pad) 28px; text-align: center; }
  #slot-foot { width: clamp(190px, 28vw, 360px); aspect-ratio: 1; }
  .no-gl #slot-foot { background: url(/avatar/a256.png) center/contain no-repeat; border-radius: 16px; }
  footer .say { margin: 26px 0 0; font: 400 15px/1 var(--mono); color: var(--dim); letter-spacing: .08em; }
  footer .mail { display: inline-block; margin: 10px 0 .23em; padding: 0 .03em .22em; /* padding so the gradient (background-clip:text) covers the @ descender */ font: 800 clamp(52px, 12vw, 176px)/1.05 var(--sans); letter-spacing: -0.045em; text-decoration: none; }
  footer .mail:hover { background: linear-gradient(100deg, var(--mag), var(--cyan)); -webkit-background-clip: text; background-clip: text; color: transparent; }
  footer .fine { margin-top: auto; font: 400 12px/1.8 var(--mono); color: #cfcbdb; letter-spacing: .04em;
                padding: 8px 16px; border-radius: 99px; background: rgba(18,18,20,.72); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); margin-bottom: 0; }
  footer .fine a { text-decoration: none; border-bottom: 1px solid rgba(255,255,255,.25); }
  footer .fine a:hover { border-color: #fff; }

  /* scroll-driven reveals (CSS, compositor-friendly) */
  @media (prefers-reduced-motion: no-preference) {
    @supports (animation-timeline: view()) {
      .reveal, .list li, .links li { animation: rise linear both; animation-timeline: view(); animation-range: entry 0% entry 55%; }
    }
  }
  @keyframes rise { from { opacity: 0; transform: translateY(28px); } }
  .hero .list li, .hero .links li { animation: none; }   /* first-screen lists: a half-revealed row just looks disabled */
  @media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    .scrollhint span { animation: none; }
  }

  /* ---------- mobile ---------- */
  @media (max-width: 700px) {
    body { font-size: 16px; }
    .list a, .list.num a { grid-template-columns: minmax(0, 1fr) auto 18px; grid-template-areas: "m kd ar" "t t ar"; row-gap: 4px; column-gap: 10px; padding: 14px 8px; margin: 0 -8px; }
    .list .m { grid-area: m; font-size: 12px; }
    .list .kd { grid-area: kd; justify-self: end; }
    .list .t { grid-area: t; font-size: 16px; }
    .list .ar { grid-area: ar; align-self: center; }
    .corner-meta.tr { display: none; }
    .hero { justify-content: flex-start; padding-top: 88px; }
    .intro { grid-template-columns: 1fr; grid-template-rows: none; grid-template-areas: "text" "else" "done" "recent"; flex: 0 0 auto; row-gap: 34px; }
    .corner-meta.bl, .corner-meta.br { display: none; }
    .sh .more { display: none; }
    .layers { --gx: 17px; --lpad: 46px; padding-right: 18px; }
    .layers .sec { padding-top: 13vh; }
    .lh .more { display: none; }
    .where-hover { display: none; }
    #trailmap { aspect-ratio: 4 / 3; }
    .node { width: 28px; height: 28px; font-size: 15px; left: calc(var(--gx) - var(--lpad) - 13px); }
  }
  @media (prefers-reduced-motion: reduce) {
    .stream .flow { transform: none; }
    .stream .packet { display: none; }
  }
