:root{
    --bg:#fdfdfc; --fg:#0a0a0a; --fg-2:#404040; --muted:#737373; --soft:#a3a3a3; --dim:#8a8a8a;
    --line:#e9e9e7; --line-2:#dcdcd9; --card:#ffffff; --hover:#f5f5f3;
    /* one accent only, ~5% of the page (60-30-10, tightened). ink blue in
       both modes: the classic monochrome pairing, like a blue pen annotating
       printed pages. light uses the deep ink blue; dark uses a brighter blue
       so the same marks stay visible against black. no red anywhere.
       the accent appears only in the status dot and the copied check. */
    --accent:#1d4ed8; --gh1:#c7dbfc; --gh2:#8fb4f5; --gh3:#4f83e3;
    --sans:'Geist',ui-sans-serif,system-ui,-apple-system,'Segoe UI',sans-serif;
    --mono:'Geist Mono',ui-monospace,SFMono-Regular,Menlo,monospace;
    --serif:'Instrument Serif',Georgia,serif;
    --col:720px; --pad:24px;
    --ease:cubic-bezier(0.16,1,0.3,1); --spring:linear(0,0.0471,0.1646,0.3209,0.4904,0.6539,0.7989,0.9179,1.0084,1.0707,1.108,1.1244,1.1248,1.114,1.0963,1.0754,1.0542,1.0345,1.0177,1.0044,0.9947,0.9884,0.9851,0.984,0.9848,0.9866,0.9891,0.9918,0.9944,0.9967,0.9986,1.0001,1.0011,1.0017,1.002,1.002,1.0018,1.0015,1.0012,1);
    color-scheme:light;
  }
  html.dark{
    --bg:#0a0a0a; --fg:#ededed; --fg-2:#c4c4c4; --muted:#8f8f8f; --soft:#5f5f5f; --dim:#767676;
    --line:#1e1e1e; --line-2:#2c2c2c; --card:#111111; --hover:#161616; --accent:#60a5fa; --gh1:#1d3a5f; --gh2:#2f5ea8; --gh3:#4f83e3;
    color-scheme:dark;
  }
  *,*::before,*::after{box-sizing:border-box}
  blockquote,dd,dl,figure,h1,h2,h3,p,ul{margin:0;padding:0}
  html{background:var(--bg);scroll-behavior:smooth;scroll-padding-top:72px;overflow-x:clip;scrollbar-gutter:stable}
  @media (prefers-reduced-motion: reduce){
    html{scroll-behavior:auto}
    *,*::before,*::after{animation-duration:.01ms!important;transition-duration:.01ms!important}
  }
  body{
    margin:0;background:var(--bg);color:var(--fg);
    font-family:var(--sans);font-size:15px;line-height:1.65;
    -webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale;overflow-x:clip;
  }
  ul{list-style:none}
  a{color:inherit;text-decoration:none}
  button{font:inherit;color:inherit;background:none;border:0;padding:0;cursor:pointer}
  img{display:block;max-width:100%}
  svg{display:block}
  ::selection{background:color-mix(in srgb, var(--fg) 14%, transparent);color:var(--fg)}
  :focus-visible{outline:1.5px solid var(--fg);outline-offset:2px;border-radius:6px}
  .icon{width:15px;height:15px;flex:none;fill:none;stroke:currentColor;stroke-width:1.6;stroke-linecap:round;stroke-linejoin:round}

  /* ---------- page frame ---------- */
  .page{position:relative;max-width:var(--col);margin:0 auto;min-height:100vh}
  .page::before,.page::after{
    content:'';position:absolute;top:0;bottom:0;width:1px;pointer-events:none;
    background:linear-gradient(to bottom,var(--soft) 1px,transparent 1px) 0 0/1px 4px repeat-y;
  }
  .page::before{left:-1px}.page::after{right:-1px}
  @media (max-width:760px){ :root{--pad:20px} .page::before,.page::after{display:none} }
  .wide-line{position:relative}
  .wide-line::after{
    content:'';position:absolute;left:calc(50% - 50vw);right:calc(50% - 50vw);bottom:0;height:1px;pointer-events:none;
    background:linear-gradient(to right,var(--soft) 1px,transparent 1px) 0 0/4px 1px repeat-x;
  }
  .band{position:relative;height:32px;background:radial-gradient(circle,var(--line-2) .6px,transparent 1px) 0 0/8px 8px}
  .band::before,.band::after{
    content:'';position:absolute;left:calc(50% - 50vw);right:calc(50% - 50vw);height:1px;pointer-events:none;
    background:linear-gradient(to right,var(--soft) 1px,transparent 1px) 0 0/4px 1px repeat-x;
  }
  .band::before{top:0}.band::after{bottom:0}

  .reveal{transition:opacity .8s var(--ease),filter .9s var(--ease),transform 1s var(--ease);transition-delay:calc(var(--i, 0) * 70ms)}
  .reveal-ready .reveal:not(.in){opacity:0;transform:translateY(14px) scale(.985);filter:blur(10px)}
  .reveal.in{opacity:1;transform:none;filter:none}
  /* section headings rise letter by letter, like the reference's reveal-split */
  .sec-head h2 .ch{display:inline-block;opacity:0;filter:blur(8px);transform:translateY(.28em);transition:opacity .7s var(--ease),filter .8s var(--ease),transform .9s var(--ease);transition-delay:calc(var(--ci, 0) * 38ms)}
  .sec-head.in h2 .ch{opacity:1;filter:none;transform:none}
  /* soft press + hover easing everywhere it matters */
  .project{transition:background-color .35s var(--ease)}
  .links a,.links button{transition:border-color .25s var(--ease),color .25s var(--ease),background-color .25s var(--ease),transform .45s var(--spring)}
  .links a:active,.links button:active{transform:scale(.96)}
  .role-head .role-badge{transition:border-color .25s var(--ease),background-color .25s var(--ease)}
  .role-head:hover .role-badge{border-color:var(--line-2);background:var(--hover)}
  /* no hover zoom on the avatar or the banner */
  /* the avatar's bubble pops the reference's way: it springs from a
     tucked-away state (shifted, scaled down, transparent) into its
     resting tilt when the .on class lands; see .me-say below */
  /* theme flips the reference's way: the new theme radiates out of the
     toggle button in a growing circle (view-transition), not a cross-fade */
  @property --theme-r{syntax:'<length>';inherits:false;initial-value:0px}
  html.theme-vt::view-transition-old(root){animation:none}
  ::view-transition-group(site-nav){animation:none}
  ::view-transition-old(site-nav){display:none}
  ::view-transition-new(site-nav){animation:none}
  html.theme-vt::view-transition-new(root){
    -webkit-mask-image:radial-gradient(circle at var(--vt-x,100%) var(--vt-y,0),#000 var(--theme-r),transparent calc(var(--theme-r) + 16vmax));
    mask-image:radial-gradient(circle at var(--vt-x,100%) var(--vt-y,0),#000 var(--theme-r),transparent calc(var(--theme-r) + 16vmax));
    animation:theme-in 1.5s both;
  }
  @keyframes theme-in{from{--theme-r:-16vmax}to{--theme-r:150vmax}}
  @media (prefers-reduced-motion: reduce){ .reveal{opacity:1;transform:none;filter:none} .sec-head h2 .ch{opacity:1;filter:none;transform:none} }

  /* ---------- nav ---------- */
  .nav{
    position:sticky;top:0;z-index:40;height:56px;min-height:56px;view-transition-name:site-nav;display:flex;align-items:center;justify-content:space-between;
    padding:0 calc(var(--pad) - 8px) 0 var(--pad);
    background:color-mix(in srgb, var(--bg) 84%, transparent);
    backdrop-filter:blur(12px) saturate(1.4);-webkit-backdrop-filter:blur(12px) saturate(1.4);
  }
  .nav-progress{position:absolute;left:0;right:0;bottom:-1px;height:1px;background:var(--fg);transform:scaleX(0);transform-origin:left;pointer-events:none}
  .nav-mark{font-family:var(--serif);font-style:italic;font-size:24px;line-height:1;letter-spacing:-.01em}
  .nav-right{display:flex;align-items:center;gap:2px}
  .nav-link{padding:5px 9px;border-radius:8px;font-size:14px;color:var(--muted);transition:color .2s,background-color .2s}
  .lbl-short{display:none}
  .nav-link:hover,.nav-link.active{color:var(--fg)}
  .nav-link:hover{background:var(--hover)}
  .nav-sep{width:1px;height:16px;margin:0 6px;background:var(--line-2)}
  .icon-btn{display:inline-grid;place-items:center;width:32px;height:32px;border-radius:8px;color:var(--muted);transition:color .2s,background-color .2s;-webkit-tap-highlight-color:transparent}
  @media (hover:none){ .icon-btn:hover{color:var(--muted);background:transparent} }
  .icon-btn:hover{color:var(--fg);background:var(--hover)}
  .icon-btn .icon{width:17px;height:17px}
  .icon-btn .i-sun{display:none}
  html.dark .icon-btn .i-sun{display:block}
  html.dark .icon-btn .i-moon{display:none}
  @media (max-width:560px){
    .nav-mark{font-size:21px}
    .nav-link{padding:4px 6px;font-size:13px}
    .nav-sep{margin:0 3px}
    .pill svg{width:13px;height:13px}
    .lbl-full{display:none}
    .lbl-short{display:inline}
  }

  /* ---------- cover + profile ---------- */
  .cover{position:relative;z-index:0}
  .cover-frame{position:relative;aspect-ratio:3/1;overflow:hidden;background:var(--hover)}
  .cover-frame picture{position:absolute;inset:0;display:block}
  .cover-frame .cover-dark{display:none}
  html.dark .cover-frame .cover-light{display:none}
  html.dark .cover-frame .cover-dark{display:block}
  .cover-frame img.cover-gif{position:absolute;inset:0;width:100%;height:100%;object-fit:cover}

  .profile{position:relative;z-index:5;display:flex;align-items:flex-start;gap:20px;margin-top:-54px;padding:0 var(--pad) 18px}
  .avatar{position:relative;flex:none;width:112px;height:112px;cursor:pointer}
  .avatar-frame{position:absolute;inset:0;overflow:hidden;border-radius:16px;border:1px solid var(--line-2);background:var(--card);box-shadow:0 0 0 5px var(--bg)}
  .avatar-frame img{width:100%;height:100%;object-fit:cover;object-position:center 22%}
  .avatar-sleep{display:none;position:absolute;left:72%;top:20%;z-index:4;pointer-events:none;color:#000;font-family:'Architects Daughter','Segoe Print',cursive;line-height:1}
  html.dark .avatar-sleep{color:#fff}
  .avatar.sleeping .avatar-sleep{display:block}
  .avatar.sleeping .avatar-say{visibility:hidden}
  .avatar-sleep span{position:absolute;font-size:18px;opacity:0;animation:avatar-sleep-drift 2.8s linear infinite}
  .avatar-sleep span:nth-child(2){font-size:21px;animation-delay:-.93s}
  .avatar-sleep span:nth-child(3){font-size:24px;animation-delay:-1.86s}
  .avatar.sleep-paused .avatar-sleep span,.avatar.sleep-offscreen .avatar-sleep span{animation-play-state:paused}
  @keyframes avatar-sleep-drift{
    0%{transform:translate(0,0) scale(.65) rotate(-8deg);opacity:0}
    15%{opacity:.85}
    65%{opacity:.55}
    100%{transform:translate(28px,-64px) scale(1.15) rotate(6deg);opacity:0}
  }
  @media (prefers-reduced-motion: reduce){
    .avatar-sleep span{animation:none;opacity:.7;transform:translate(0,0)}
    .avatar-sleep span:nth-child(2){transform:translate(10px,-16px)}
    .avatar-sleep span:nth-child(3){transform:translate(22px,-32px)}
  }
  /* the bubble straddles the avatar's top-right corner, and its look
     is the reference's own: a card-coloured bubble with a thin ink
     border, a small 4px corner at the bottom left for a tail, a 2deg
     tilt, and the handwritten face the reference uses for it.
     at rest (no .on) it sits tucked away: shifted toward the avatar,
     scaled down and transparent; .on springs it out to its tilt */
  .avatar-say{position:absolute;left:56px;top:-13px;z-index:4}
  .me-say{
    position:relative;display:block;background:var(--card);border:1.2px solid var(--fg);color:var(--fg);
    padding:5px 12px 6px;border-radius:16px 16px 16px 4px;
    font-family:'Architects Daughter','Segoe Print',cursive;font-size:15.5px;line-height:1.3;white-space:nowrap;
    transform-origin:0 100%;transform:translate(-10px,10px) scale(.6) rotate(2deg);opacity:0;
    transition:transform .5s var(--spring),opacity .2s var(--ease);
  }
  .me-say.on{transform:rotate(2deg);opacity:1}
  /* only the avatar overlaps the banner: the name block is pushed
     62px down inside the profile row, so with the profile pulled up
     54px over the banner, the name's top sits 8px below the banner's
     bottom edge, fully visible on the plain page background */
  .who{min-width:0;padding-top:62px;position:relative;z-index:3}
  .name{display:flex;align-items:center;gap:9px;font-family:var(--serif);font-weight:400;font-size:42px;line-height:1.08;letter-spacing:-.015em}
  .name-text{min-width:0}
  .name-note{width:17px;height:17px;display:block}
  .name-note-btn{flex:none;display:inline-grid;place-items:center;margin-top:5px;padding:5px;border-radius:8px;color:var(--soft);transition:color .2s,background-color .2s}
  .name-note-btn:hover{color:var(--fg);background:var(--hover)}
  /* while the name is singing, the button stays lit, like the reference */
  .name-note-btn.playing{color:var(--fg);background:var(--hover)}
  .role-line{margin-top:7px;font:13px/1.5 var(--mono);color:var(--muted)}
  @media (max-width:560px){
    /* stacked, like the reference on phones: avatar overlaps the banner,
       name and role sit below it on the plain page background: the speech
       bubble stays up by the avatar and never covers the name */
    .profile{flex-direction:column;align-items:flex-start;gap:10px;margin-top:-44px}
    .avatar{width:96px;height:96px}
    .avatar-frame{border-radius:15px}
    .avatar-say{left:48px;top:-12px}
    .who{padding-top:0}
    .name{font-size:34px;gap:8px}
    .role-line{font-size:12.5px}
    .cover-frame{aspect-ratio:3/1}
  }
  .meta{display:grid;grid-template-columns:1.12fr .88fr;gap:11px 28px;padding:6px var(--pad) 22px;font:13px/1.5 var(--mono);color:var(--fg-2)}
  .meta li{display:flex;align-items:center;gap:10px;min-width:0}
  .meta .icon{width:16px;height:16px;color:var(--soft)}
  .meta-dim{color:var(--soft)}
  .meta b{font-weight:500;color:var(--fg)}
  .meta a,.meta button{border-bottom:1px solid transparent;transition:border-color .2s,color .2s;text-align:left}
  .meta a:hover,.meta button:hover{color:var(--fg);border-bottom-color:var(--line-2)}
  /* the header email is a copy control: same copied check as the
     say-hi copy button, in the one accent colour */
  /* the email control shrinks to exactly its text: the copied check
     sits out of flow beside the text, and the hover underline lives
     on the text span alone, so it starts and stops with the address */
  .meta button.meta-copy{position:relative;display:inline-flex;align-items:center;flex:none;width:max-content;cursor:pointer;border-bottom:0}
  .meta-copy-text{border-bottom:1px solid transparent;transition:border-color .2s}
  .meta button.meta-copy:hover .meta-copy-text{border-bottom-color:var(--line-2)}
  .meta-check{position:absolute;left:calc(100% + 6px);top:50%;width:13px;height:13px;color:var(--accent);opacity:0;transform:translateY(-50%) scale(.5);transition:opacity .2s,transform .4s var(--spring);pointer-events:none}
  .meta-copy.copied .meta-check{opacity:1;transform:translateY(-50%)}
  @media (max-width:560px){ .meta{grid-template-columns:1fr} }
  .links{display:flex;flex-wrap:wrap;gap:8px;padding:0 var(--pad) 26px}
  .links a,.links button{
    display:inline-flex;align-items:center;gap:8px;font-size:13.5px;color:var(--fg-2);
    border:1px solid var(--line-2);border-radius:10px;padding:7px 13px;background:var(--card);
  }
  .links a:hover,.links button:hover{color:var(--fg);border-color:var(--soft);background:var(--hover)}
  .links .icon{width:15px;height:15px;color:var(--muted)}
  /* the social icons stay muted/monochrome at all times: no
     brand colour and no colour change on hover (the tech stack
     icons below keep their hover colour reveal; these do not) */
  .links .icon.fill{fill:currentColor;stroke:none}
  .name .l{display:inline-block;transition:transform .45s var(--spring)}
  /* a letter lifts while its note rings (added by the tune, below) */
  .name .l.sing{transform:translateY(-4px)}
  /* hovering a letter lifts it the same way, but silently:
     a purely visual hover, no bell note and no tick */
  .name .l:hover{transform:translateY(-4px)}
  .me-say.long{white-space:normal;width:max-content;max-width:280px}
  @media (max-width:560px){ .me-say.long{max-width:210px} }
  /* the live-region mirror of the bubble line lives fixed off the
     left edge of the viewport, so its text can never paint anywhere
     on the page: the line shows in exactly one place, the bubble */
  .sr-live{position:fixed;left:-9999px;top:0;width:1px;height:1px;overflow:hidden;clip-path:inset(50%)}

  /* ---------- margin notes (wide screens only) ----------
     Handwritten asides in the clean page margin, always visible,
     each with its small hand-drawn curved arrow curving in to point
     at the content, the way the first version had them. Placement
     stays disciplined: fully in the margin with consistent
     clearance, a gentle tilt, never over the dotted lines or the
     content. Below 1240px there is no clean margin, so they
     don't render. */
  main section{position:relative}
  .note{display:none}
  @media (min-width:1240px){
    .note{display:block;position:absolute;top:var(--nt,120px);width:170px;z-index:2}
    .note-r{left:calc(100% + 44px);text-align:left}
    .note-l{right:calc(100% + 44px);text-align:right}
    .note-in{
      position:absolute;top:0;width:170px;display:inline-flex;flex-direction:column;gap:0;
      font-family:'Caveat',cursive;font-weight:500;font-size:20.5px;line-height:1.25;color:var(--muted);
    }
    .note-r .note-in{left:2px;align-items:flex-start;text-align:left;transform:rotate(-1.4deg)}
    .note-l .note-in{right:2px;align-items:flex-end;text-align:right;transform:rotate(1.4deg)}
    .note-arrow{width:64px;height:46px;margin-top:2px;fill:none;stroke:var(--soft);stroke-width:1.7;stroke-linecap:round;stroke-linejoin:round;overflow:visible}
    .note-r .note-arrow{margin-left:-30px}
    .note-l .note-arrow{margin-right:-30px;transform:scaleX(-1)}
    /* the oss note ("yes, all 45 are real") gets a wider box and a
       single no-wrap line, sized to still fit when the live pr
       count reaches three digits. it stays anchored to the same
       right edge, so the extra width only extends into the margin */
    .note--wide{width:252px}
    .note--wide .note-in{width:252px}
    .note--wide .note-line{white-space:nowrap}
  }

  /* ---------- sections ---------- */
  .sec-head{display:flex;align-items:baseline;justify-content:space-between;gap:16px;padding:16px var(--pad) 12px}
  .sec-head h2{font-family:var(--serif);font-weight:400;font-size:30px;line-height:1.1;letter-spacing:-.01em}
  .sec-title-group{display:flex;align-items:baseline;gap:10px;min-width:0}
  .hover-hint{font:12px/1.4 var(--mono);color:var(--soft);white-space:nowrap;letter-spacing:.01em}
  @media (max-width:560px){ .hover-hint{font-size:12px} .sec-title-group{gap:8px} }
  .sec-meta{display:inline-flex;flex:none;align-items:center;gap:8px;white-space:nowrap;font:12px/1 var(--mono);color:var(--soft)}
  @media (max-width:560px){ .sec-meta .sec-note{display:none} }
  .sec-body{padding:22px var(--pad) 30px}
  .prose p{color:var(--fg-2);line-height:1.75}
  .prose p + p{margin-top:14px}
  .prose b{font-weight:500;color:var(--fg)}
  .quote-line{
    margin:22px 0;padding-left:16px;border-left:2px solid var(--line-2);
    font-family:var(--serif);font-style:italic;font-size:20px;line-height:1.35;color:var(--fg);
  }
  .ext{display:inline-flex;align-items:center;gap:3px;color:var(--fg);border-bottom:1px solid var(--line-2);transition:border-color .2s}
  .ext:hover{border-color:var(--fg)}
  .ext .icon{width:11px;height:11px;color:var(--soft)}

  /* right-now rows */
  .rows > div{display:grid;grid-template-columns:130px 1fr;gap:16px;padding:12px 0}
  .rows > div + div{border-top:1px dashed var(--line)}
  .rows dt{font:12px/1.9 var(--mono);color:var(--muted)}
  .rows dd{color:var(--fg-2);line-height:1.7}
  .rows dd b{font-weight:500;color:var(--fg)}
  @media (max-width:560px){ .rows > div{grid-template-columns:1fr;gap:2px} }

  /* ---------- experience ---------- */
  .role-head{display:grid;grid-template-columns:34px 1fr auto 16px;align-items:center;gap:14px;width:100%;text-align:left;padding:14px 0}
  .role-badge{
    width:34px;height:34px;border-radius:9px;border:1px solid var(--line);background:var(--card);
    display:grid;place-items:center;font-family:var(--serif);font-style:italic;font-size:17px;color:var(--fg-2);
    overflow:hidden;flex:none;
  }
  .role-badge svg{width:22px;height:22px;flex:none}
  .role-badge img{width:100%;height:100%;object-fit:cover}
  /* shipd: their own logo (black mark on white), fitted like an app icon */
  .role-badge--shipd{background:#fff;padding:0}
  .role-head:hover .role-badge--shipd{background:#fff}
  /* open source: original github mark in dark on a white tile,
     matching the shipd tile beside it */
  .role-badge--github{background:#fff;color:#181717}
  .role-head:hover .role-badge--github{background:#fff}
  .role-title h3{display:flex;align-items:center;gap:8px;font-size:15px;font-weight:500;line-height:1.3}
  .role-title p{font-size:14px;color:var(--muted);line-height:1.4}
  .role-when{font:12px/1.5 var(--mono);color:var(--muted);text-align:right;white-space:nowrap}
  .chev{width:14px;height:14px;color:var(--soft);transition:transform .45s var(--spring),color .2s}
  .role-head:hover .chev{color:var(--fg)}
  .role-row{border-bottom:1px solid var(--line)}
  .roles{border-top:1px solid var(--line)}
  .role-row.open .chev{transform:rotate(180deg)}
  .role-more{display:none}
  .role-row.open .role-more{display:block}
  .role-more .inner{padding:2px 0 20px 48px;color:var(--fg-2);line-height:1.75}
  .role-more ul{display:grid;gap:10px}
  .role-more li{position:relative;padding-left:18px}
  .role-more li::before{content:'-';position:absolute;left:0;color:var(--soft)}
  .role-more li b{font-weight:500;color:var(--fg)}
  .role-more p + p{margin-top:12px}
  @media (max-width:560px){ .role-more .inner{padding-left:0} .role-when{white-space:normal} }

  /* ---------- projects ---------- */
  #work .sec-body{padding-block:6px}
  .project{display:block;margin:0 calc(var(--pad) * -1);padding:18px var(--pad);transition:background-color .2s}
  .project + .project{border-top:1px solid var(--line)}
  .project:hover{background:var(--hover)}
  .project-top{display:flex;align-items:baseline;justify-content:space-between;gap:12px;margin-bottom:6px}
  .project h3{font-size:15px;font-weight:500}
  .project-where{display:inline-flex;align-items:center;gap:4px;font:12px/1 var(--mono);color:var(--soft);transition:color .2s;white-space:nowrap}
  .project-where .icon{width:11px;height:11px;transition:transform .4s var(--spring)}
  .project:hover .project-where{color:var(--fg)}
  .project:hover .project-where .icon{transform:translate(1px,-1px)}
  .project p{color:var(--fg-2);line-height:1.7}
  .project p.project-meta{margin-top:8px;font:12px/1.5 var(--mono);color:var(--muted)}

  /* ---------- oss table ---------- */
  .oss-note{color:var(--fg-2);line-height:1.75;margin-bottom:18px}
  .oss-note b{font-weight:500;color:var(--fg)}
  .oss-table{width:100%;border-collapse:collapse}
  .oss-table th{font:12px/1 var(--mono);letter-spacing:.06em;text-transform:lowercase;color:var(--soft);text-align:left;padding:10px 0;border-bottom:1px solid var(--line-2);font-weight:500}
  .oss-table th.num,.oss-table td.num{text-align:right}
  .oss-table td{padding:9px 0;border-bottom:1px solid var(--line);font-size:14.5px;color:var(--fg-2)}
  .oss-table td.repo a{font:13.5px/1.5 var(--mono);color:var(--fg);border-bottom:1px solid transparent;transition:border-color .2s}
  .oss-table td.repo a:hover{border-bottom-color:var(--line-2)}
  .oss-table td.repo a span{color:var(--soft)}
  .oss-table td.num{font:13.5px/1.5 var(--mono);color:var(--fg)}
  @media (max-width:560px){ .oss-table td.repo a{font-size:12.5px;word-break:break-all} }

  /* ---------- tech stack pills ---------- */
  .pills{display:flex;flex-wrap:wrap;gap:8px}
  .pill{display:inline-flex;align-items:center;gap:8px;padding:7px 13px 7px 10px;border:1px solid var(--line);border-radius:10px;background:var(--card);font-size:13.5px;color:var(--fg-2);transition:border-color .25s var(--ease),background-color .25s var(--ease),color .25s var(--ease),transform .45s var(--spring)}
  .pill:hover{border-color:var(--line-2);background:var(--hover);color:var(--fg)}
  .pill:active{transform:scale(.96)}
  /* the stack icons show their full brand colours at all times:
     no muted rest state, no hover reveal (the hover note stays) */
  .pill svg{width:16px;height:16px;flex:none}
  html.dark .pill svg.dk{fill:#ededed}

  /* ---------- github activity ---------- */
  .gh{margin-top:30px}
  .gh-head{display:flex;align-items:baseline;justify-content:space-between;gap:12px;margin-bottom:12px}
  .gh-head h3{font-family:var(--serif);font-weight:400;font-size:22px}
  .gh-head span{font:12px/1.5 var(--mono);color:var(--soft);white-space:nowrap}
  @media (max-width:560px){ .gh-head span{display:none} }
  .gh-grid{width:100%;height:auto}
  .gh-grid path{stroke-width:4;stroke-linejoin:round}
  .gh-grid .g0{fill:var(--line);stroke:var(--line)}
  .gh-grid .g1{fill:var(--gh1);stroke:var(--gh1)} .gh-grid .g2{fill:var(--gh2);stroke:var(--gh2)} .gh-grid .g3{fill:var(--gh3);stroke:var(--gh3)} .gh-grid .g4{fill:var(--accent);stroke:var(--accent)}
  .gh-foot{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-top:9px;font:12px/1.5 var(--mono);color:var(--soft)}
  .gh-legend{display:inline-flex;align-items:center;gap:3px}
  .gh-legend i{width:9px;height:9px;border-radius:2px;display:inline-block;margin:0 1px}
  .gh-legend .s0{background:var(--line)} .gh-legend .s1{background:var(--gh1)} .gh-legend .s2{background:var(--gh2)} .gh-legend .s3{background:var(--gh3)} .gh-legend .s4{background:var(--accent)}

  /* ---------- say hi / footer ---------- */
  .mail-row{display:flex;align-items:center;flex-wrap:wrap;gap:12px;margin-top:18px}
  .mail-big{font-family:var(--serif);font-size:clamp(25px,6vw,32px);line-height:1.2;letter-spacing:-.01em;color:var(--fg);border-bottom:1px solid var(--line-2);transition:border-color .2s;word-break:break-all}
  .mail-big:hover{border-bottom-color:var(--fg)}
  .copy-btn{position:relative;display:inline-grid;place-items:center;width:34px;height:34px;flex:none;border-radius:9px;border:1px solid var(--line);color:var(--muted);transition:color .2s,background-color .2s,border-color .2s,transform .4s var(--spring)}
  .copy-btn:hover{color:var(--fg);background:var(--hover);border-color:var(--line-2)}
  .copy-btn:active{transform:scale(.94)}
  .copy-btn svg{grid-area:1/1;width:15px;height:15px;transition:opacity .2s,transform .4s var(--spring)}
  .copy-btn .i-check{opacity:0;transform:scale(.5);color:var(--accent)}
  .copy-btn.copied .i-copy{opacity:0;transform:scale(.5)}
  .copy-btn.copied .i-check{opacity:1;transform:none}
  .text-btn{font-size:14px;color:var(--fg-2);border-bottom:1px solid var(--line-2);transition:color .2s,border-color .2s}
  .text-btn:hover{color:var(--fg);border-color:var(--fg)}
  .site-footer{padding:26px var(--pad) 40px}
  .foot-quote{font-family:var(--serif);font-style:italic;font-size:20px;line-height:1.4;color:var(--fg);max-width:36ch;margin-inline:auto;text-align:center}
  .foot-quote-by{font:12px/1.6 var(--mono);color:var(--soft);margin-top:6px;text-align:center}
  .foot-row{display:flex;flex-wrap:wrap;gap:8px 20px;justify-content:space-between;margin-top:26px;padding-top:18px;border-top:1px solid var(--line);font-size:13.5px;color:var(--muted)}
  .foot-row a{border-bottom:1px solid transparent;transition:color .2s,border-color .2s}
  .foot-row a:hover{color:var(--fg);border-bottom-color:var(--line-2)}

  /* Supporting text uses the readable muted ink; soft stays decorative. */
  .meta-dim,.hover-hint,.sec-meta,.project-where,.oss-table th,
  .oss-table td.repo a span,.gh-head span,.gh-foot,.foot-quote-by,.name-note-btn{color:var(--muted)}

  .toast{
    position:fixed;left:50%;bottom:26px;transform:translate(-50%,80px);z-index:80;
    background:var(--fg);color:var(--bg);font-size:13.5px;font-weight:500;
    padding:10px 18px;border-radius:999px;opacity:0;transition:all .3s var(--ease);pointer-events:none;
    box-shadow:0 12px 32px -12px rgba(0,0,0,.35);white-space:nowrap;
  }
  .toast.show{transform:translate(-50%,0);opacity:1}

  /* ---------- intro loader (the reference's loader, adapted) ----------
     A copy of the pfp sits centered over a plain backdrop in the
     page's own background colour; it pops in, its bubble pops with
     "hey :)", it holds a beat, then it FLIPs into the header
     avatar's exact place while the backdrop fades. The script at
     the bottom drives the 2.1s hold and 900ms flight; CSS starts
     the entrance before that script loads. The 6.5s failsafe means
     the page can never be trapped behind the intro if the script
     stalls, and reduced motion removes the intro outright. */
  .intro-backdrop{
    display:none;
    position:fixed;inset:0;z-index:110;background:var(--bg);opacity:1;
    transition:opacity .9s var(--ease);
    animation:intro-failsafe .3s var(--ease) 6.5s forwards;
  }
  .intro-backdrop.fade{opacity:0}
  .intro-face{
    display:none;
    position:fixed;left:50%;top:50%;z-index:111;width:148px;height:148px;opacity:1;
    transform:translate(-50%,-50%);pointer-events:none;
    animation:intro-enter .5s var(--ease),intro-failsafe .3s var(--ease) 6.5s forwards;
  }
  .intro-frame{
    position:absolute;inset:0;overflow:hidden;border-radius:21px;
    border:1px solid var(--line-2);background:var(--card);box-shadow:0 0 0 5px var(--bg);
  }
  .intro-ready .intro-backdrop,.intro-ready .intro-face{display:block}
  .intro-frame img{width:100%;height:100%;object-fit:cover;object-position:center 22%}
  .intro-say-wrap{position:absolute;left:74px;top:-13px;z-index:4}
  @keyframes intro-enter{
    from{opacity:0;transform:translate(-50%,-50%) translateY(6px) scale(.96)}
    to{opacity:1;transform:translate(-50%,-50%)}
  }
  @keyframes intro-failsafe{to{opacity:0;visibility:hidden}}
  html.intro-lock{overflow:hidden;scrollbar-gutter:stable}
  @media (max-width:560px){
    .intro-face{width:128px;height:128px}
    .intro-say-wrap{left:64px;top:-12px}
  }
  @media (prefers-reduced-motion: reduce){
    .intro-backdrop,.intro-face{display:none!important}
  }
