html,body{margin:0;background:#fff}

/* wall */
.wall{--ink:#151922;
  --out:cubic-bezier(.2,.8,.2,1);--spring:cubic-bezier(.3,1.5,.5,1);
  --cx:calc(-1 * clamp(230px,36vw,540px));--cy:calc(-1 * min(clamp(150px,27vh,280px),calc(50vh - var(--cw,84px)*.9)));
  --by:calc(var(--bwv) * .03);--lift:clamp(14px,4vh,44px);--R:170px;
  --bwv:min(var(--bw,340px),72vw,64vh);--bh:calc(var(--bwv)*.625);
  position:relative;width:100%;height:100vh;height:100dvh;overflow:hidden;isolation:isolate;
  font-family:system-ui,-apple-system,sans-serif;color:var(--ink);-webkit-font-smoothing:antialiased;
  background:#fff;touch-action:none}
.mesh{position:absolute;inset:0;width:100%;height:100%;display:block;pointer-events:none}
/* ripple dot grids: bottom right, and a smaller one top right (.dtr); each fades out towards the middle of the page */
.dots{position:absolute;right:0;bottom:0;width:min(34vw,520px);height:min(46vh,440px);display:block;pointer-events:none;
  -webkit-mask-image:radial-gradient(ellipse 100% 100% at 100% 100%,#000 38%,transparent 100%);
  mask-image:radial-gradient(ellipse 100% 100% at 100% 100%,#000 38%,transparent 100%);
  animation:dotsIn 1s ease .7s backwards}
@keyframes dotsIn{from{opacity:0}}
.dots.dtr{top:0;bottom:auto;width:min(26vw,390px);height:min(35vh,320px);
  -webkit-mask-image:radial-gradient(ellipse 100% 100% at 100% 0%,#000 38%,transparent 100%);
  mask-image:radial-gradient(ellipse 100% 100% at 100% 0%,#000 38%,transparent 100%)}
@media (max-width:760px){.dots{display:none}}
.wall *,.wall *::before,.wall *::after{box-sizing:border-box}

/* ---------- bot ---------- */
.stage{position:absolute;left:50%;top:50%;translate:calc(-50% + var(--mx,0px)) calc(-50% + var(--by) - var(--lift) + var(--my,0px));rotate:var(--mr,0deg);will-change:translate,rotate,transform;transition:transform .85s cubic-bezier(.2,.8,.2,1)}
.sr{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap}
.bot{position:relative;width:var(--bwv);aspect-ratio:8/5;pointer-events:none}
.bob{position:absolute;inset:0;animation:bob 6s ease-in-out infinite}
@keyframes bob{0%,100%{transform:translateY(0)}50%{transform:translateY(-3.4%)}}
.look{position:absolute;inset:0;transition:transform .6s cubic-bezier(.2,.9,.25,1)}
.ml{position:absolute;left:0;top:0;width:100%;height:100%;display:block;overflow:visible;animation:mlIn .65s cubic-bezier(.3,1.5,.5,1) .12s backwards}
@keyframes mlIn{from{transform:scale(1.05,.04);opacity:0}}
@keyframes mlOut{to{transform:scale(1.04,.04);opacity:0}}
@keyframes settle{from{opacity:0;scale:.94}}

/* ---------- photo card, held by two pieces of washi tape ---------- */
.card{position:absolute;left:50%;top:50%;margin:0;width:var(--cw,84px);
  translate:calc(-50% + var(--cx)) calc(-50% + var(--cy) - var(--up,0px));rotate:-3.4deg;
  transition:translate .5s var(--spring);
  animation:settle .9s var(--out) .5s backwards}
.card:hover{--up:3px}
.sw{position:relative;padding:calc(var(--cw,84px)*.06) calc(var(--cw,84px)*.06) calc(var(--cw,84px)*.17);
  background:#FBFBF9;border-radius:2px;
  box-shadow:0 0 0 1px rgba(21,25,34,.05),0 1px 1px rgba(21,25,34,.12),0 8px 10px -5px rgba(21,25,34,.3),0 16px 22px -14px rgba(21,25,34,.3)}
.ph{display:flex;align-items:center;justify-content:center;width:100%;aspect-ratio:1/1.02;overflow:hidden;background:#ECEEF2;color:#151922}
.ph svg{display:block;width:88%;height:auto;fill:currentColor}
.tape{position:absolute;width:calc(var(--cw,84px)*.37);height:calc(var(--cw,84px)*.1053);z-index:2;pointer-events:none;
  filter:drop-shadow(0 1px 1px rgba(21,25,34,.24))}
.tape svg{display:block;width:100%;height:100%;overflow:visible}
/* the card is tilted -3.4deg, so each strip is turned back by that much and nudged up/down by half the tilt:
   both then sit at the same height and mirror each other on screen */
.tape.tpl{left:0;top:calc(var(--cw,84px)*-.0264);translate:calc(-50% + var(--cw,84px)*.06) calc(-50% + var(--cw,84px)*.05);rotate:-38.6deg}
.tape.tpr{left:100%;top:calc(var(--cw,84px)*.0264);translate:calc(-50% - var(--cw,84px)*.06) calc(-50% + var(--cw,84px)*.05);rotate:45.4deg}

/* ---------- bot status chip ---------- */
.chip{position:absolute;z-index:5;top:clamp(12px,2.4vh,22px);right:clamp(14px,2.2vw,32px);margin:0;display:flex;align-items:center;gap:.45em;
  padding:7px 13px 7px 12px;border-radius:999px;background:#09090B;color:#9CA3AF;pointer-events:none;white-space:nowrap;
  font:500 12px/1 'JetBrains Mono',ui-monospace,SFMono-Regular,Menlo,Consolas,monospace;
  animation:settle .9s var(--out) .6s backwards}
.chip .cv{display:block;overflow:hidden;white-space:nowrap;padding:.25em 0;margin:-.25em 0;transition:width .55s cubic-bezier(.22,.61,.36,1)}
.chip .cs{display:block;width:max-content;font-weight:700;transition:color .45s ease}

/* ---------- intro text, typed like a terminal (no frame) ---------- */
.term{position:absolute;z-index:3;left:clamp(18px,4vw,64px);bottom:clamp(22px,5vh,52px);width:min(372px,calc(100vw - 36px));color:#3A404C;
  font:400 clamp(11px,3.05vw,13px)/2.2 'JetBrains Mono',ui-monospace,SFMono-Regular,Menlo,Consolas,monospace;
  animation:settle .9s var(--out) .4s backwards}
.tbody{position:relative;text-align:left}
.tp{margin:0 0 .6em;padding-right:1.3em}
.tp:last-child{margin-bottom:0}
.tp.th{color:#151922;font-weight:600;font-size:1.12em}
.k{display:inline-block;white-space:nowrap;outline:none;cursor:default;
  background:linear-gradient(var(--hv,rgba(21,25,34,.07)),var(--hv,rgba(21,25,34,.07))) 50% 50%/100% 0 no-repeat;transition:background-size .22s var(--out)}
.k:hover{background-size:100% 1.5em}
.k.nm{color:#7C3AED;font-weight:800;--hv:rgba(124,58,237,.11)}
.k.pl{color:#151922;font-weight:600}
.term.tipping{z-index:12}
.tip{position:absolute;left:0;top:0;z-index:2;pointer-events:none;width:max-content;padding:6px 6px 8px;border-radius:14px;background:#09090B;color:#E5E7EB;text-align:center;
  font:500 10.5px/1 'JetBrains Mono',ui-monospace,SFMono-Regular,Menlo,Consolas,monospace;
  opacity:0;translate:0 6px;scale:.97;transform-origin:50% 100%;
  transition:opacity .18s ease,translate .24s var(--out),scale .24s var(--out)}
.tip.on{opacity:1;translate:0 0;scale:1}
.tip::after{content:"";position:absolute;left:var(--ax,50%);bottom:-4px;width:9px;height:9px;background:#09090B;rotate:45deg;translate:-50% 0;border-radius:2px}
.tip svg{display:block;width:112px;height:auto;border-radius:9px}
.tip .pt{display:flex;align-items:center;justify-content:center;width:112px;height:75px;border-radius:9px;background:#ECEEF2;color:#151922}
.tip .pt svg{width:64%;height:auto;border-radius:0}
.tip .cap{display:block;margin-top:8px;letter-spacing:.02em;max-width:112px;line-height:1.35;text-wrap:balance}
.w{display:inline-block;white-space:nowrap}
.c{display:inline-block;white-space:pre;opacity:0}
.c.on{opacity:1;animation:tin .18s cubic-bezier(.2,.8,.2,1) backwards}
.c.on.now{animation:none}
@keyframes tin{from{opacity:0;transform:translateY(.45em) scale(.88)}}
.tp a{color:#1D4ED8;border-radius:3px;text-decoration:none;transition:background-color .2s ease}
.tp a .c{text-decoration:underline;text-decoration-thickness:1px;text-underline-offset:.2em;text-decoration-color:rgba(29,78,216,.4)}
.tp a:hover{background:rgba(29,78,216,.08)}
.tp a:hover .c{text-decoration-color:currentColor}
.tp a:focus-visible{outline:2px solid #2F6BFF;outline-offset:2px}
.tdash{position:absolute;left:0;top:0;height:1px;pointer-events:none;
  background:repeating-linear-gradient(90deg,#DDDDDD 0,#DDDDDD 3px,transparent 3px,transparent 9px);
  clip-path:inset(0 var(--r,100%) 0 0);transition:clip-path .14s linear}
.cur{position:absolute;left:0;top:0;width:.6em;height:1.15em;border-radius:1px;background:#151922;pointer-events:none}
.cur.idle{animation:caret 1.2s ease-in-out infinite}
@keyframes caret{0%,100%{opacity:1}50%{opacity:.12}}
@media (max-height:700px){.term{font-size:10px;line-height:1.75}}
@media (max-height:520px) and (min-width:761px){.term{width:calc(50vw - 200px);line-height:1.7}}

/* ---------- macbook notch + menu ---------- */
.notch{position:absolute;left:50%;top:0;translate:-50% 0;z-index:6;width:clamp(150px,13vw,196px);height:34px;margin:0;padding:0;
  background:#09090B;border-radius:0 0 16px 16px;color:#fff;
  transition:width .6s var(--out),height .45s var(--out);animation:notchIn .8s var(--out) .15s backwards}
.notch.is-open{width:min(348px,calc(100vw - 20px));height:40px}
.notch::before,.notch::after{content:"";position:absolute;top:0;width:12px;height:12px;pointer-events:none}
.notch::before{right:100%;background:radial-gradient(circle at 0 100%,transparent 11.5px,#09090B 12px)}
.notch::after{left:100%;background:radial-gradient(circle at 100% 100%,transparent 11.5px,#09090B 12px)}
.mbtn{position:absolute;top:0;bottom:0;left:calc(50% - 22px);width:44px;margin:0;padding:0;border:0;background:none;color:#fff;cursor:pointer;
  display:flex;align-items:center;justify-content:center;border-radius:0 0 16px 16px;-webkit-tap-highlight-color:transparent;
  transition:left .6s var(--out)}
.is-open .mbtn{left:calc(100% - 52px)}
.mbtn:focus-visible{outline:2px solid #2F6BFF;outline-offset:-3px}
.mbtn .hit{position:absolute;left:-4px;right:-4px;top:0;bottom:-8px}
.mb{position:relative;display:block;width:18px;height:18px}
.mb i{position:absolute;left:0;right:0;margin:0 auto;display:block;width:18px;height:2px;border-radius:2px;background:#fff;
  will-change:transform;transition:transform .55s cubic-bezier(.22,.61,.36,1)}
.mb i:nth-child(1){top:calc(50% - 4px)}
.mb i:nth-child(2){top:calc(50% + 2px)}
.notch:not(.is-open) .mbtn:hover .mb i{transform:scaleX(.78)}
.is-open .mb i:nth-child(1){transform:translateY(3px) rotate(45deg)}
.is-open .mb i:nth-child(2){transform:translateY(-3px) rotate(-45deg)}
.mi{position:absolute;left:0;top:0;bottom:0;right:56px;margin:0;padding:0 0 0 8px;list-style:none;display:flex;align-items:center;white-space:nowrap}
.mi li{height:100%;opacity:0;visibility:hidden;transform:translateX(-8px);transition:opacity .16s ease,transform .3s var(--out),visibility 0s .18s}
.is-open .mi li{opacity:1;visibility:visible;transform:none;transition:opacity .35s ease var(--d),transform .5s var(--out) var(--d),visibility 0s}
.mlink{position:relative;height:100%;margin:0;padding:0 10px;border:0;background:none;color:#A1A1AA;cursor:pointer;
  font:400 12px/1 'JetBrains Mono',ui-monospace,SFMono-Regular,Menlo,Consolas,monospace;-webkit-tap-highlight-color:transparent;transition:color .2s}
.mlink::before{content:"";position:absolute;left:1px;right:1px;top:7px;bottom:7px;border-radius:8px;background:rgba(255,255,255,.12);opacity:0;transition:opacity .25s}
.mlink::after{content:"";position:absolute;left:0;right:0;top:0;bottom:-8px}
.mlink:hover{color:#fff}
.mlink[aria-current="page"]{color:#fff}
.mlink[aria-current="page"]::before{opacity:1}
.mlink:focus-visible{outline:2px solid #2F6BFF;outline-offset:-3px}
@keyframes notchIn{from{translate:-50% -100%}}

/* ---------- sticker ring slot (the ring itself is the <sticker-ring> module) ---------- */
.orb{position:absolute;inset:0;z-index:8;pointer-events:none}

@media (max-width:760px){
  .wall{--cx:max(-122px,calc(58px - 50vw));--cy:max(clamp(-350px,-38.5vh,-300px),calc(var(--cw,84px)*1.24 - 50vh))}   /* the photo card stays on screen on a 320px phone */
  .chip{top:54px;right:14px}
}
@media (prefers-reduced-motion:reduce){
  .wall *,.wall *::before,.wall *::after{animation:none !important;transition-duration:.01s !important}
  .tip{transition:none}
}

/* ---------- "Find me via": three gooey icon buttons over the bottom-right dot grid ---------- */
.find{--fs:36px;--fgap:12px;position:absolute;z-index:4;right:clamp(18px,4vw,64px);bottom:clamp(22px,5vh,52px);
  display:flex;flex-direction:column;align-items:flex-start;gap:12px;user-select:none;-webkit-user-select:none;
  animation:settle .9s var(--out) .8s backwards}
.fl{margin:0;font:500 12px/1 'JetBrains Mono',ui-monospace,SFMono-Regular,Menlo,Consolas,monospace;color:#4B5160;letter-spacing:.01em;
  text-shadow:0 0 3px #fff,0 0 6px #fff,0 0 10px #fff}
.fr{position:relative;display:flex;gap:var(--fgap)}
.fg{position:absolute;left:0;top:0;width:100%;height:100%;display:block;pointer-events:none}
.fb{position:relative;z-index:1;display:flex;align-items:center;justify-content:center;flex:none;width:var(--fs);height:var(--fs);border-radius:50%;
  color:#F4F4F5;text-decoration:none;cursor:grab;touch-action:none;outline:none;-webkit-user-drag:none;-webkit-tap-highlight-color:transparent;will-change:translate}
.fb:active{cursor:grabbing}
.fb .ic{display:block;width:46%;height:46%;fill:currentColor;opacity:0;scale:.6;transition:opacity .5s ease,scale .6s var(--spring)}
.find[data-go] .fb .ic{opacity:1;scale:1}
.find[data-go] .fb:nth-of-type(2) .ic{transition-delay:.06s}
.find[data-go] .fb:nth-of-type(3) .ic{transition-delay:.12s}
.fb:focus-visible::after{content:"";position:absolute;inset:-4px;border-radius:50%;box-shadow:0 0 0 2px #fff,0 0 0 4px #7C3AED}
@media (max-width:760px){
  .find{--fs:32px;--fgap:9px;top:56px;right:14px;bottom:auto;gap:10px}
  .fl{font-size:11px}
}
@media (prefers-reduced-motion:reduce){.fb .ic{transition:none}}

/* ---------- credit + copyright, very bottom centre (on phones they move to the foot of the page, see .pjfoot) ---------- */
.credit,.pjfoot{margin:0;white-space:nowrap;text-align:center;font:400 11px/1 'JetBrains Mono',ui-monospace,SFMono-Regular,Menlo,Consolas,monospace;letter-spacing:.01em;color:#8B91A0}
.credit p,.pjfoot p{margin:0}
.credit{position:absolute;z-index:3;left:50%;bottom:clamp(8px,1.7vh,18px);translate:-50% 0;display:flex;flex-direction:column;align-items:center;gap:7px;
  animation:settle .9s var(--out) 1s backwards}
.credit a,.pjfoot a{color:#3A404C;font-weight:600;text-decoration:none;border-bottom:1px dashed rgba(21,25,34,.3);transition:color .2s ease,border-color .2s ease}
.credit a:hover,.pjfoot a:hover{color:#151922;border-bottom-color:#151922}
.credit a:focus-visible,.pjfoot a:focus-visible{outline:2px solid #7C3AED;outline-offset:3px;border-radius:2px}
.credit i,.pjfoot i{font-style:normal;padding:0 .1em;color:#B4B9C4}
.pjfoot{display:none}
@media (max-width:760px){.credit{font-size:10px}}

/* ---------- coffee cup, right of the bot (well in from the right edge, a good way down), with steam rising ---------- */
.cup{--cr:clamp(40px,4.2vw,64px);--off:clamp(0px,calc(40vw - 330px),330px);--pe:max(24px,calc(var(--cr) + var(--off) - 77px));position:absolute;z-index:3;right:calc(var(--cr) + var(--off));top:clamp(84px,min(36vh,calc(58vh - 138px)),400px);width:46px;height:58px;pointer-events:none;
  animation:settle .9s var(--out) 1.1s backwards}
.cup.open{z-index:20}
.cup svg{display:block;width:100%;height:100%;overflow:visible}
.cup .sw{fill:none;stroke:#9AA1AF;stroke-width:2.4;stroke-linecap:round;stroke-linejoin:round;opacity:0;
  transform-box:fill-box;transform-origin:50% 100%;animation:steam 3.6s ease-in-out infinite}
.cup .sw2{animation-duration:4.1s;animation-delay:-1.3s}
.cup .sw3{animation-duration:3.3s;animation-delay:-2.4s}
.cup .sw1{animation-delay:-.4s}
@keyframes steam{
  0%{opacity:0;transform:translate(0,7px) scaleY(.55)}
  22%{opacity:.9}
  62%{opacity:.55;transform:translate(1.5px,-3px) scaleY(1)}
  100%{opacity:0;transform:translate(-1px,-13px) scaleY(1.2)}
}
@media (prefers-reduced-motion:reduce){.cup .sw{animation:none !important;opacity:.6}}
/* phones: under the buttons */
@media (max-width:760px){.cup{--cr:48px;--off:0px;--pe:14px;top:120px}}

/* ---------- cup: tap for the "buy me a cappuccino" card ---------- */
.cupbtn{display:block;position:relative;width:100%;height:100%;margin:0;padding:0;border:0;background:none;border-radius:14px;cursor:pointer;pointer-events:auto;
  touch-action:manipulation;-webkit-tap-highlight-color:transparent;outline:none}
.cupbtn svg{transition:translate .35s var(--spring)}
.cupbtn:hover svg,.cup.open .cupbtn svg{translate:0 -2px}
.cupbtn:focus-visible::after{content:"";position:absolute;inset:-4px;border-radius:16px;box-shadow:0 0 0 2px #fff,0 0 0 4px #7C3AED}
.cuppop{position:absolute;top:calc(100% + 12px);right:calc(var(--pe) - var(--cr) - var(--off));width:min(248px,calc(100vw - 28px));padding:14px 14px 14px 16px;border-radius:18px;
  background:#09090B;color:#E5E7EB;box-shadow:0 14px 30px -12px rgba(9,9,11,.45),0 3px 8px -2px rgba(9,9,11,.22);
  transform-origin:calc(100% - var(--cr) - var(--off) + var(--pe) - 23px) 0;opacity:0;visibility:hidden;pointer-events:none;translate:0 -6px;scale:.94;
  transition:opacity .22s ease,translate .32s var(--out),scale .32s var(--spring),visibility 0s linear .32s}
.cuppop::before{content:"";position:absolute;top:-5px;right:calc(var(--cr) + var(--off) - var(--pe) + 18px);width:10px;height:10px;background:#09090B;border-radius:2px;rotate:45deg}
.cup.open .cuppop{opacity:1;visibility:visible;pointer-events:auto;translate:0 0;scale:1;transition-delay:0s}
.cpl{margin:0 0 12px;font:500 12.5px/1.3 'JetBrains Mono',ui-monospace,SFMono-Regular,Menlo,Consolas,monospace;color:#F4F4F5;white-space:nowrap}
.cpr{display:flex;align-items:center;gap:8px}
.cpgo{flex:1;display:flex;align-items:center;justify-content:center;gap:8px;height:36px;padding:0 14px;border-radius:999px;background:#F4F4F5;color:#09090B;text-decoration:none;
  font:700 12.5px/1 'JetBrains Mono',ui-monospace,SFMono-Regular,Menlo,Consolas,monospace;outline:none;transition:background .2s ease,gap .25s var(--out)}
.cpgo span{position:relative;top:1px}   /* the mono font's cap-height sits a touch high in its line box: 1px down centres the ink */
.cpgo svg{display:block;width:14px;height:14px}
.cpgo:hover{background:#fff;gap:11px}
.cpx{flex:none;display:flex;align-items:center;justify-content:center;width:36px;height:36px;margin:0;padding:0;border:0;border-radius:50%;background:#26262B;color:#D1D5DB;cursor:pointer;
  outline:none;transition:background .2s ease,color .2s ease;touch-action:manipulation;-webkit-tap-highlight-color:transparent}
.cpx svg{display:block;width:14px;height:14px}
.cpx:hover{background:#34343C;color:#fff}
.cpgo:focus-visible,.cpx:focus-visible{box-shadow:0 0 0 2px #09090B,0 0 0 4px #A78BFA}
@media (prefers-reduced-motion:reduce){.cuppop{transition:none}}
/* desktop: the cup sits just under the photo card (same centre line); its popup opens beneath it, kept inside the page */
@media (min-width:761px){
  .cup{--L:calc(50vw + var(--cx) - 23px);left:var(--L);right:auto;top:calc(50% + var(--cy) + var(--cw,84px) * .564 + 36px)}
  .cuppop{--pl:max(-101px,calc(14px - var(--L)));left:var(--pl);right:auto;transform-origin:calc(23px - var(--pl)) 0}
  .cuppop::before{right:auto;left:calc(23px - var(--pl) - 5px)}
}
/* very short landscape windows have no room under the photo card (the intro text is there): cup stays on the right, as before */
@media (min-width:761px) and (max-height:520px){
  .cup{left:auto;right:calc(var(--cr) + var(--off));top:clamp(84px,min(36vh,calc(58vh - 138px)),400px)}
  .cuppop{--pl:auto;left:auto;right:calc(var(--pe) - var(--cr) - var(--off));transform-origin:calc(100% - var(--cr) - var(--off) + var(--pe) - 23px) 0}
  .cuppop::before{left:auto;right:calc(var(--cr) + var(--off) - var(--pe) + 18px)}
}

/* ---------- "Say hi" button under the intro text (appears once the typing is done) ---------- */
.tbody .say{display:flex;align-items:center;gap:8px;width:max-content;height:34px;margin:26px 0 0;padding:0 16px 0 13px;border-radius:999px;background:#09090B;color:#F4F4F5;text-decoration:none;
  font:600 12px/1 'JetBrains Mono',ui-monospace,SFMono-Regular,Menlo,Consolas,monospace;outline:none;-webkit-tap-highlight-color:transparent;
  opacity:0;visibility:hidden;translate:0 6px;pointer-events:none;
  transition:opacity .5s ease,translate .6s var(--out),background .2s ease,visibility 0s linear .5s}
.tbody .say svg{display:block;width:15px;height:15px;transition:translate .3s var(--spring)}
.tbody .say span{position:relative;top:.4px}   /* the mono font's capitals sit a touch high in the line box: 1px down centres the ink */
.term[data-done] .say{opacity:1;visibility:visible;translate:0 0;pointer-events:auto;transition-delay:.15s,.15s,0s,0s}
.tbody .say:hover{background:#1E1E24}
.tbody .say:hover svg{translate:0 -1px}
.tbody .say:focus-visible{box-shadow:0 0 0 2px #fff,0 0 0 4px #7C3AED}
@media (max-height:700px){.tbody .say{margin-top:18px;height:30px}}
@media (prefers-reduced-motion:reduce){.tbody .say{transition:none}}

/* phones: no bot status chip */
@media (max-width:760px){.chip{display:none}}

/* ---------- projects: a small stack that opens into a sideways row of larger cards ---------- */
/* closed: the stack (the same cards as the row, small and fanned) sits on the right, a little below the middle */
.pjs{--cr:clamp(40px,4.2vw,64px);position:absolute;z-index:12;right:calc(var(--cr) + 30px);top:58%;translate:0 -50%;width:104px;margin:0;padding:0;border:0;background:none;
  display:flex;flex-direction:column;align-items:center;gap:19px;cursor:pointer;outline:none;-webkit-tap-highlight-color:transparent;touch-action:manipulation;
  animation:settle .9s var(--out) 1.3s backwards}
.pjstk{position:relative;display:block;width:84px;height:84px;margin-top:8px}
.pjstk .pjm{position:absolute;inset:0;width:100%;height:100%;aspect-ratio:auto;z-index:calc(10 - var(--i));pointer-events:none;
  box-shadow:0 0 0 1px rgba(21,25,34,.07),0 6px 10px -6px rgba(21,25,34,.3);
  transform:translate(calc(var(--tx) * 1px * var(--s,1)),calc(var(--ty) * 1px * var(--s,1))) rotate(calc(var(--r) * 1deg * var(--s,1)));transition:transform .6s var(--spring)}
.pjs:hover .pjm,.pjs:focus-visible .pjm{--s:1.9}
.pjs:active .pjstk{scale:.96;transition:scale .15s ease}
.pjl{display:flex;align-items:center;gap:7px;white-space:nowrap;font:500 12px/1 'JetBrains Mono',ui-monospace,SFMono-Regular,Menlo,Consolas,monospace;color:#4B5160;letter-spacing:.01em;transition:opacity .25s ease}
.pjl em{font-style:normal;font-size:10.5px;color:#8B8F99;padding:3px 6px 3px;border-radius:999px;background:#F0F0F3}
.pjs:focus-visible .pjl{box-shadow:0 0 0 2px #fff,0 0 0 4px #7C3AED;border-radius:4px}
/* while the view is open the cards live in the row: the stack's copies step aside and its label fades */
.wall[data-view=proj] .pjs,.wall[data-view=closing] .pjs{pointer-events:none}
.wall[data-view=proj] .pjstk,.wall[data-view=closing] .pjstk{visibility:hidden}
.wall[data-view=proj] .pjl,.wall[data-view=closing] .pjl{opacity:0}

/* open: a white veil takes the other pieces away, the bot stays (half size, a bit higher) and the cards come in */
.pjveil{position:absolute;inset:0;z-index:9;background:#fff;opacity:0;visibility:hidden;pointer-events:none;transition:opacity .45s ease,visibility 0s linear .45s}
.wall[data-view=proj] .pjveil,.wall[data-view=closing] .pjveil{opacity:1;visibility:visible;pointer-events:auto;transition-delay:0s}
.wall[data-view=proj] .stage,.wall[data-view=closing] .stage{z-index:10;transform:translate(var(--pjdx,0px),var(--pjdy,0px)) scale(.5)}

.pjv{--pl:clamp(16px,9.8vw,141px);--pc:min(clamp(220px,29vw,430px),42vh);--pb:clamp(26px,6vh,56px);--pt:clamp(16px,3.6vh,32px);
  position:absolute;inset:0;z-index:11;pointer-events:none;visibility:hidden;opacity:0;transition:opacity .3s ease,visibility 0s linear .3s}
.wall[data-view=proj] .pjv,.wall[data-view=closing] .pjv{visibility:visible;opacity:1;transition-delay:0s}
.pjhd{position:absolute;z-index:2;inset:0;transition:opacity .22s ease}
.wall[data-view=proj] .pjhd{transition:opacity .5s ease .28s}
.wall:not([data-view=proj]) .pjhd{opacity:0}
/* Back: just above the first card (card = --pc square + 14px gap + two caption lines = 50px), left edge on the texts' line */
.pjback{position:absolute;left:var(--pl);bottom:calc(var(--pb) + var(--pc) + 51px + 16px);display:inline-flex;align-items:center;gap:7px;height:24px;margin:0;padding:0 10px 0 8px;
  border:1px solid #E4E4E7;border-radius:5px;background:#fff;color:#151922;cursor:pointer;pointer-events:auto;outline:none;touch-action:manipulation;
  font:500 12px/1 'JetBrains Mono',ui-monospace,SFMono-Regular,Menlo,Consolas,monospace;-webkit-tap-highlight-color:transparent;transition:background .2s ease,border-color .2s ease}
.pjback svg{display:block;width:14px;height:14px;transition:translate .3s var(--spring)}
.pjback span{position:relative;top:.4px}
.pjback:hover{background:#F6F6F8;border-color:#D4D4DA}
.pjback:hover svg{translate:-2px 0}
.pjback:focus-visible{box-shadow:0 0 0 2px #fff,0 0 0 4px #7C3AED}
.pjcol{position:absolute;left:var(--pl);top:var(--pt);width:max(220px,min(400px,calc(50vw - var(--bwv) / 4 - 30px - var(--pl))));
  color:#151922;font:400 13px/1.7 'JetBrains Mono',ui-monospace,SFMono-Regular,Menlo,Consolas,monospace}
.pjtt{position:relative;display:flex;align-items:baseline;justify-content:space-between;height:26px;line-height:24px;padding-bottom:8px;box-sizing:content-box;
  background:repeating-linear-gradient(90deg,#DDDDDD 0,#DDDDDD 3px,transparent 3px,transparent 9px) left bottom/100% 1px no-repeat}
.pjtag{position:absolute;right:calc(100% + 12px);top:0;color:#B0B3BC;font-weight:500}
.pjh{margin:0;font:700 14px/24px 'JetBrains Mono',ui-monospace,SFMono-Regular,Menlo,Consolas,monospace;color:#7C3AED}
.pjn{font-weight:500;color:#9CA3AF}
.pjd{margin:12px 0 0;color:#2A2F3A}

/* the row: one wide scroller that fills the page so the cards can fly in from the stack without being clipped */
.pjrow{position:absolute;inset:0;display:flex;align-items:flex-end;gap:16px;padding:0 0 var(--pb) var(--pl);overflow-x:auto;overflow-y:hidden;overscroll-behavior-x:contain;
  scrollbar-width:none;touch-action:pan-x;pointer-events:auto;cursor:grab;-webkit-overflow-scrolling:touch}
.pjrow::-webkit-scrollbar{display:none}
.pjrow.drag{cursor:grabbing}
.pjend{flex:none;width:calc(var(--pl) - 16px + 24px);height:1px}
.pji{position:relative;flex:none;width:var(--pc);margin:0;z-index:calc(20 - var(--i))}
.pjc{position:relative;display:block;width:100%;aspect-ratio:1;container-type:inline-size;overflow:hidden;border-radius:1.6%;background:var(--bg,#F4F4F5);box-shadow:0 0 0 1px rgba(21,25,34,.045);color:inherit;
  text-decoration:none;outline:none;user-select:none;-webkit-user-select:none;-webkit-user-drag:none;-webkit-tap-highlight-color:transparent}
.pjc:focus-visible{box-shadow:0 0 0 3px #fff,0 0 0 5px #7C3AED}
.pjix{position:absolute;left:5.5cqw;top:5cqw;font:500 3.3cqw/1 'JetBrains Mono',ui-monospace,monospace;color:#A3A6B0}
.pjar{position:absolute;right:5cqw;top:4.6cqw;width:5cqw;height:5cqw;color:#151922;opacity:0;translate:-1.2cqw 1.2cqw;transition:opacity .25s ease,translate .35s var(--out)}
.pjc:hover .pjar,.pjc:focus-visible .pjar{opacity:1;translate:0 0}
.pjcap{display:flex;flex-direction:column;gap:5px;margin:14px 0 0;font:500 12px/1.3 'JetBrains Mono',ui-monospace,SFMono-Regular,Menlo,Consolas,monospace;color:#9CA3AF}
.pjcap b{font-weight:500;color:#4B5160}
.pjcap b,.pjcap span{display:block;min-width:0;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.pj-cur{cursor:pointer}

/* little scenes on the cards */
.pa{position:absolute;inset:0;display:block;width:100%;height:100%}
.pa-text{display:flex;flex-direction:column;justify-content:center;padding:0 9cqw;font:700 14.4cqw/1.04 'JetBrains Mono',ui-monospace,monospace;letter-spacing:-.02em}
.pa-text .ln{display:block;white-space:nowrap}
.pa-text .l1{color:#C4B5FD}.pa-text .l2{color:#7C3AED}.pa-text .l3{color:#151922}
.pa-text i{display:inline-block;font-style:normal}
.pjc:hover .pa-text i,.pjc:focus-visible .pa-text i{animation:pjwave 1.2s ease-in-out infinite;animation-delay:calc(var(--i) * 70ms)}
@keyframes pjwave{0%,100%{transform:translateY(0)}35%{transform:translateY(-.14em)}}
.pa-lid{font-family:'JetBrains Mono',ui-monospace,monospace}
.pa-lid .lid{transform-origin:112px 284px;transform:rotate(-15deg);transition:transform .9s cubic-bezier(.3,1.25,.4,1)}
.pjc:hover .pa-lid .lid,.pjc:focus-visible .pa-lid .lid{transform:rotate(58deg)}
.pa-lid .arc,.pa-lid .px{transition:opacity .4s ease}
.pjc:hover .pa-lid .arc,.pjc:focus-visible .pa-lid .arc{opacity:0}
.pjc:hover .pa-lid .px,.pjc:focus-visible .pa-lid .px{opacity:.15}
.pa-tweak .tb{--v:var(--a)}
.pjc:hover .pa-tweak .tb,.pjc:focus-visible .pa-tweak .tb{--v:var(--b)}
.pa-tweak .kf{transform-box:fill-box;transform-origin:0 50%;scale:var(--v) 1;transition:scale .8s var(--out)}
.pa-tweak .kn{translate:calc(var(--v) * 220px) 0;transition:translate .8s var(--out)}
.pa-tweak .wd{transform-box:fill-box;transform-origin:50% 50%;transition:scale .6s var(--spring)}
.pjc:hover .pa-tweak .wd,.pjc:focus-visible .pa-tweak .wd{scale:1.1 1}
.pa-pass{font-family:'JetBrains Mono',ui-monospace,monospace}
.pa-pass .bk{transform-box:fill-box;transform-origin:50% 100%;transition:transform .7s var(--spring)}
.pjc:hover .pa-pass .bk,.pjc:focus-visible .pa-pass .bk{transform:rotate(-5deg) translateY(-6px)}
.pa-speech .bub{filter:drop-shadow(0 10px 14px rgba(21,25,34,.09))}
.pa-speech .br{transform-box:fill-box;transform-origin:50% 50%}
.pjc:hover .pa-speech .br,.pjc:focus-visible .pa-speech .br{animation:pjbar 1s ease-in-out infinite;animation-delay:calc(var(--n) * -90ms)}
@keyframes pjbar{0%,100%{scale:1 1}50%{scale:1 .38}}

/* phones: no stack (the cards come in by scrolling, see the end of this file); the cards are a little smaller */
@media (max-width:760px){
  .pjv{--pl:16px;--pc:min(66vw,38vh);--pb:clamp(20px,5vh,44px);--pt:14px}
  .pjcol{top:calc(var(--pt) + 38px);width:calc(100vw - 32px)}
  .pjtag{display:none}
  .pjrow{gap:12px}
  .pjd{font-size:12px;line-height:1.65}
}
@media (max-width:1199px) and (min-width:761px){
  .pjtag{display:none}
  .pjcol{top:calc(var(--pt) + 36px)}
}
/* short windows (a phone on its side): no description, smaller cards, so nothing runs into the bot */
@media (max-height:520px) and (min-width:761px){
  .pjd{display:none}
  .pjv{--pc:min(clamp(150px,24vw,300px),48vh);--pb:22px;--pt:14px}
}
@media (prefers-reduced-motion:reduce){
  .wall[data-view] .stage{transition-duration:.01s}
}

/* ---------- small screens: no stack. The page scrolls; the bot shrinks, the other pieces fade away and the
   project cards slide up from below, all driven by the scroll position (--sp, 0 to 1, set from script). No Back button: scroll up. ---------- */
.pjsn{display:none}
@media (max-width:760px){
  .pjroll{--ps:72dvh;--h1:90vw;--tx:40dvh;--h2:90vw;--sp:0;--ep:0;--pf:1;--ef:0;position:relative;height:calc(100dvh + var(--ps) + var(--h1) + var(--tx) + var(--h2))}   /* script sets --ps/--h1/--tx/--h2 in px: intro, projects sideways, hand-over, experiences sideways */
  .pjsn{display:block;position:absolute;left:0;width:1px;height:1px;pointer-events:none}
  /* the credit and the copyright line live under the sticky page, as the very last thing when the scroll reaches the end */
  .credit{display:none}
  .pjroll{--ft:calc(76px + env(safe-area-inset-bottom,0px));box-sizing:content-box;padding-bottom:var(--ft)}
  .pjfoot{position:absolute;left:0;right:0;bottom:0;box-sizing:border-box;height:var(--ft);padding:0 0 calc(14px + env(safe-area-inset-bottom,0px));
    display:flex;flex-direction:column;align-items:center;justify-content:flex-end;gap:8px;font-size:10px}
  .pjroll .wall{position:sticky;top:0;touch-action:pan-y}
  .pjs,.pjback{display:none}
  .pjroll .wall .stage{transition:none;transform:translate(calc(var(--exdx,0px) * var(--ep)),calc(var(--pjdy,0px) * var(--sp) * (1 - var(--ep)) + var(--exdy,0px) * var(--ep))) scale(calc((1 - .5 * var(--sp)) * (1 - var(--ep)) + var(--exs,.32) * var(--ep)))}
  .pjroll:not([data-sc=off]) .wall .stage{z-index:10}
  .pjroll .pjveil{visibility:visible;opacity:min(1,max(0,calc((var(--sp) - .03) * 2.6)));transition:none;pointer-events:none}
  .pjroll .pjv{visibility:visible;opacity:1;transition:none}
  .pjroll .pjrow{translate:0 calc((1 - var(--sp)) * 62dvh)}
  .pjroll[data-sc=off] .pjv{visibility:hidden}
  .pjroll .wall:not([data-view=proj]) .pjhd,.pjroll .pjhd{opacity:min(1,max(0,calc((var(--sp) - .4) * 2.5)));translate:0 calc((1 - var(--sp)) * 26px);transition:none}
  .pjroll .pjv{--pt:24px}
  .pjroll .pjcol{top:var(--pt)}
  .pjroll .pji{translate:0 calc((1 - var(--sp)) * var(--i) * 46px)}
  .pjroll .pjrow{pointer-events:none;touch-action:pan-y;cursor:auto}   /* no sideways touch here: scrolling down moves the rows */
  .pjroll #pj-view{opacity:var(--pf,1);translate:0 calc((1 - var(--pf,1)) * -26px)}
  .pjroll #ex-view{opacity:var(--ef,0);translate:0 calc((1 - var(--ef,0)) * 26px)}
  .pjroll[data-ph=p] #ex-view,.pjroll[data-ph=e] #pj-view{visibility:hidden}

}


/* ---------- five postage stamps stacked sideways, between the status chip and the cup (desktop); they fan out to the right on hover ---------- */
.sts{--sw:clamp(78px,7vw,112px);--stp:calc(var(--sw) * var(--sp));--sh:calc(var(--sw) * 1.3);--sp:.075;
  --chr:clamp(14px,2.2vw,32px);--cr0:clamp(40px,4.2vw,64px);--off0:clamp(0px,calc(40vw - 330px),330px);
  --cht:clamp(12px,2.4vh,22px);--cut:clamp(84px,min(36vh,calc(58vh - 138px)),400px);
  position:absolute;z-index:3;width:calc(var(--sw) * (1 + 5 * var(--sp)));height:var(--sh);
  --rr:calc(((var(--chr) + 48px) + (var(--cr0) + var(--off0) + 23px)) / 2 - var(--sw) * (1 + 5 * var(--sp)) / 2);
  right:var(--rr);
  top:calc(((var(--cht) + 13px) + (var(--cut) + 29px)) / 2 - var(--sh) / 2);
  animation:settle .9s var(--out) 1.4s backwards}
.stm{position:absolute;top:0;left:0;width:var(--sw);height:var(--sh);z-index:calc(9 - var(--i));
  transform:translate(calc(var(--i) * var(--stp)),calc(var(--yj) * 1px)) rotate(calc(var(--r) * 1deg));
  transition:transform .6s var(--spring);filter:drop-shadow(0 1px 1px rgba(21,25,34,.16)) drop-shadow(0 3px 4px rgba(21,25,34,.09))}
.stpaper{position:absolute;inset:0;display:block;width:100%;height:100%;overflow:visible}
.stp{position:absolute;left:13.33%;top:10.26%;width:73.34%;aspect-ratio:1;overflow:hidden;border-radius:1px;container-type:inline-size}
.stp.lg{display:flex;align-items:center;justify-content:center;overflow:visible}
.stp.lg img{display:block;width:68%;height:68%;object-fit:contain;-webkit-user-drag:none;user-select:none}
.stc{position:absolute;left:4%;right:4%;top:67.4%;display:flex;flex-direction:column;align-items:center;gap:calc(var(--sw) * .014);text-align:center;color:#3F4452;white-space:nowrap}
.stc b{display:block;max-width:100%;font:700 calc(var(--sw) * var(--fs,.12))/1.15 'JetBrains Mono',ui-monospace,SFMono-Regular,Menlo,Consolas,monospace;letter-spacing:-.02em;overflow:hidden;text-overflow:ellipsis}
.stc i{display:block;font:500 calc(var(--sw) * .118)/1.15 'JetBrains Mono',ui-monospace,SFMono-Regular,Menlo,Consolas,monospace;font-style:normal;letter-spacing:-.02em;color:#6B7180}
.stl{position:absolute;left:0;right:0;top:calc(100% + 20px);display:flex;align-items:center;justify-content:center;gap:7px;white-space:nowrap;pointer-events:none;font:500 12px/1 'JetBrains Mono',ui-monospace,SFMono-Regular,Menlo,Consolas,monospace;color:#4B5160;letter-spacing:.01em}
.stl em{font-style:normal;font-size:10.5px;color:#8B8F99;padding:3px 6px 3px;border-radius:999px;background:#F0F0F3}
.sts{margin:0;padding:0;border:0;background:none;font:inherit;color:inherit;text-align:center;display:block;cursor:pointer;appearance:none;outline:none;-webkit-tap-highlight-color:transparent;touch-action:manipulation}
.sts:hover,.sts:focus-visible{--stp:max(var(--sw) * var(--sp),min(var(--sw) * .5,calc((var(--rr) + var(--sw) * .3 - 14px) / 5)))}
.sts:focus-visible .stl{box-shadow:0 0 0 2px #fff,0 0 0 4px #7C3AED;border-radius:4px}
.sts:active .stm{scale:.97}
/* while a sideways view is open the stamps' own copies step aside (the big cards fly out of them) */
.wall[data-view=proj] .sts,.wall[data-view=closing] .sts{pointer-events:none}
/* experiences view: the same header + sideways row as projects, with big stamp cards; only the section that is the current kind shows */
@media (min-width:761px){
.wall[data-kind=e] #pj-view,.wall:not([data-kind=e]) #ex-view{visibility:hidden !important;opacity:0 !important;pointer-events:none !important;transition:none !important}
.wall[data-kind=e] #pj-view *,.wall:not([data-kind=e]) #ex-view *{pointer-events:none !important}
}
.pjc.xc{--sw:calc(var(--pc) / 1.3);width:var(--sw);height:var(--pc);aspect-ratio:auto;overflow:visible;border-radius:0;background:none;box-shadow:none;cursor:default;
  filter:drop-shadow(0 1px 2px rgba(21,25,34,.14)) drop-shadow(0 8px 14px rgba(21,25,34,.09))}
.pji.xi{width:calc(var(--pc) / 1.3)}
.exrow{gap:24px}
.pjmb{display:none}
@media (max-width:760px){.exrow{gap:14px}.pjdk{display:none}.pjmb{display:inline}}
.xc .stp.lg img{pointer-events:none}
/* the big cards carry the same stamp face, but their text is set smaller relative to the paper than on the little stamps */
.xc .stp{left:21%;top:7%;width:58%}
.xc .stp.lg img{width:60%;height:60%}
.xc .stc{top:51%;gap:calc(var(--sw) * .012)}
.xc .stpaper path{stroke-width:.4;transition:stroke .35s ease,stroke-width .35s ease}
.xi.xsel .xc .stpaper path{stroke:#7C3AED;stroke-width:.5}
@media (prefers-reduced-motion:reduce){.xc .stpaper path{transition:none}}
.xc .stc b{font-size:calc(var(--sw) * var(--fs,.12) * .66)}
.xc .stc i{font-size:calc(var(--sw) * .07)}
.stx{position:absolute;left:7%;right:7%;top:73%;display:flex;flex-direction:column;align-items:center;gap:calc(var(--sw) * .016);text-align:center;white-space:nowrap;
  font:500 max(9.5px,calc(var(--sw) * .043))/1.3 'JetBrains Mono',ui-monospace,SFMono-Regular,Menlo,Consolas,monospace;color:#9CA3AF}
.stx b{display:block;max-width:100%;overflow:hidden;text-overflow:ellipsis;font-weight:500;color:#4B5160}
.stx span{display:block;max-width:100%;overflow:hidden;text-overflow:ellipsis}
.exv .pjback{bottom:calc(var(--pb) + var(--pc) + 78px)}
@media (max-height:520px) and (min-width:761px){.exv{--pc:min(clamp(150px,24vw,300px),44vh)}}
/* timeline: a track just above the cards (under Back), left = now, right = furthest back; knobs with a year tooltip; fill + tooltips turn violet as the row is scrolled */
.extl{position:absolute;left:var(--pl);right:var(--pl);bottom:calc(var(--pb) + var(--pc) + 14px);height:16px;--p:0;pointer-events:none}
.extl::before{content:"";position:absolute;left:0;right:0;top:50%;height:3px;margin-top:-1.5px;border-radius:2px;background:#E4E4E7}
.tlf{position:absolute;left:0;top:50%;height:3px;margin-top:-1.5px;border-radius:2px;background:#7C3AED;width:calc(var(--p) * 100%);transition:width .12s linear}
.tlk{position:absolute;top:50%;width:8px;height:8px;margin:-4px 0 0 -4px;padding:0;border:1.5px solid #D4D4DA;border-radius:50%;background:#fff;cursor:pointer;pointer-events:auto;outline:none;
  box-shadow:0 0 0 0 rgba(124,58,237,0);touch-action:manipulation;-webkit-tap-highlight-color:transparent;transition:background .3s ease,border-color .3s ease,box-shadow .3s ease,scale .25s var(--spring)}
.tlk:hover:not(:has(.tlt:hover)){scale:1.35}
.tlk.on{background:#7C3AED;border-color:#7C3AED}
.tlk.cur{box-shadow:0 0 0 3px rgba(124,58,237,.18)}
.tlk:focus-visible{box-shadow:0 0 0 2px #fff,0 0 0 4px #7C3AED}
.tlt{position:absolute;left:50%;bottom:calc(100% + 8px);translate:-50% 0;padding:5px 8px;border-radius:6px;background:#F0F0F3;color:#8B8F99;white-space:nowrap;pointer-events:auto;transform-origin:50% 100%;
  font:500 11px/1 'JetBrains Mono',ui-monospace,SFMono-Regular,Menlo,Consolas,monospace;transition:background .3s ease,color .3s ease}
.tlt::after{content:"";position:absolute;left:50%;top:100%;width:7px;height:7px;margin:-4px 0 0 -3.5px;background:inherit;border-radius:1px;rotate:45deg}
.tlk.on .tlt{background:#7C3AED;color:#fff;animation:tlshake .62s cubic-bezier(.3,.6,.4,1)}
/* a tooltip that has just been reached gives a little shake, pivoting on its bottom centre (where the pointer meets the knob) */
@keyframes tlshake{0%{rotate:0deg}18%{rotate:-11deg}38%{rotate:9deg}58%{rotate:-6deg}78%{rotate:3deg}100%{rotate:0deg}}
@media (prefers-reduced-motion:reduce){.tlf,.tlk,.tlt{transition:none}.tlk.on .tlt{animation:none}}
@media (max-width:760px){.sts{display:none}}
@media (min-width:761px) and (max-height:520px){.sts{display:none}}
@media (prefers-reduced-motion:reduce){.sts{animation:none}.stm{transition:none}}

/* ---------- experiences: the bot goes to the top right, Back + timeline + cards move up (script sets --ext, the cards' top edge)
   and what I did at each company is listed below, one entry at a time, following the timeline ---------- */
.exv{--ext:calc(var(--pt) + 230px)}
.exlist{position:absolute;left:var(--pl);right:var(--pl);top:calc(var(--ext) + var(--pc) + 28px);bottom:var(--pb);overflow:hidden;pointer-events:none;
  color:#2A2F3A;font:400 13px/1.65 'JetBrains Mono',ui-monospace,SFMono-Regular,Menlo,Consolas,monospace}
.exl{position:absolute;left:0;top:0;width:100%}
.exl ul{margin:10px 0 0;padding:0;list-style:none;max-width:860px}
.exl .ln{display:block;overflow:hidden;padding-bottom:2px}
.exl .ln>span{display:block;position:relative;transform:translateY(112%);transition:transform .62s cubic-bezier(.2,.8,.2,1);transition-delay:calc(var(--j) * 26ms)}
.exl li>span{padding-left:18px}
.exl li>span::before{content:"";position:absolute;left:3px;top:.72em;width:4px;height:4px;margin-top:-2px;border-radius:50%;background:#B8BBC4}
.exl .exh>span{display:flex;align-items:baseline;gap:12px;font-size:14px;line-height:24px}
.exh i{font-style:normal;font-weight:600;color:#7C3AED;white-space:nowrap}
.exh b{font-weight:600;color:#151922;white-space:nowrap;text-align:right}
.exh u{flex:1;min-width:16px;align-self:flex-end;height:0;margin-bottom:6px;border-bottom:2px dotted #C9CBD3}
.exv.live .exl.sel .ln>span{transform:none;transition-delay:calc(150ms + var(--j) * 60ms)}
.exl.past .ln>span{transform:translateY(-112%)}
@media (min-width:761px){
  .exv{--pc:clamp(150px,min(29vw,440px,calc(100vh - 530px)),440px)}
  .exv .pjcol{top:var(--pt)}
  .exv .pjend{width:calc(100vw - var(--pl) - var(--pc) / 1.3 - 24px)}   /* room after the last card so it can reach the left edge: knob k = card k at the left edge */
  .exv .pjrow{align-items:flex-start;padding:var(--ext) 0 0 var(--pl)}
  .exv .pjback{top:calc(var(--ext) - 96px);bottom:auto}
  .extl{top:calc(var(--ext) - 30px);bottom:auto}
}
@media (max-height:700px) and (min-width:761px){.exlist{bottom:14px}.exv .pjd{display:none}.exv{--pc:clamp(150px,min(29vw,440px,calc(100vh - 490px)),440px)}}
@media (max-height:520px) and (min-width:761px){
  .exv{--pc:clamp(120px,calc(100vh - 360px),300px)}
  .exlist{top:calc(var(--ext) + var(--pc) + 16px);font-size:12px;line-height:1.5}
  .exl .exh>span{font-size:12.5px;line-height:20px}
}
@media (prefers-reduced-motion:reduce){.exl .ln>span{transition-duration:.01s;transition-delay:0s !important}}

/* phones: the list sits in the gap between the header and the timeline (the bot is up in the corner now) */
@media (max-width:760px){
  .exv .pjn{visibility:hidden}   /* the bot takes its place in the corner */
  .exv{--exfs:12px;--pc:calc(min(66vw,38vh) * var(--pcf,1))}   /* script lowers --exfs / --pcf when the list would not fit */
  .exlist{top:var(--exy,150px);bottom:calc(var(--pb) + var(--pc) + 70px);font-size:var(--exfs);line-height:1.55}
  .exl ul{max-width:none;margin-top:8px}
  .exl .exh>span{font-size:calc(var(--exfs) + .5px);line-height:calc(var(--exfs) * 1.8);gap:8px}
  .exl li>span{padding-left:14px}
  .exl li>span::before{top:.7em}
  .exv .exl.sel .ln>span{transform:none;transition-delay:calc(150ms + var(--j) * 60ms)}
}
@media (max-width:760px) and (max-height:720px){
  .exv .pjd{display:none}
  .exv{--exfs:11.5px;--pc:calc(min(66vw,29vh) * var(--pcf,1))}
  .exlist{line-height:1.5}
  .exl ul{margin-top:6px}
}

/* timeline tooltips: month + year, just the year on very narrow screens (so six of them do not touch); the roles may wrap on the small cards */
.tlw{display:none}
@media (max-width:420px){.tlv{display:none}.tlw{display:inline}.extl{right:calc(var(--pl) + 10px)}.tlt{padding:5px 6px;font-size:10px}}   /* "Nov 23": month + year, so two jobs in one year do not read the same */
.stx{white-space:normal;text-wrap:balance}
.stx b,.stx span{overflow:visible;text-overflow:clip}
@container (max-width:215px){.stx{top:68%;left:4%;right:4%;line-height:1.22}}
@container (max-width:120px){.stx{top:66%;font-size:8px;line-height:1.15;gap:1px}}   /* the smallest cards (320px phones): the role lines stay inside the paper */

/* ---------- loading screen ----------
   Black "lids" cover the page while the counter runs. The bot sits on the seam in the middle, drawn light
   on the dark lids: invert + difference blending turns the ink white over black and back to the exact ink
   colour over the page, so it stays right while the lids part behind it. When the count reaches 100 the
   lids slide apart (up and down, like an eye opening), the bot grows and floats to its place and the home
   page plays its entrance. data-boot: load > open (lids move) > live (home entrance plays) > done. */
html.ldlock,html.ldlock body{overflow:hidden}
.wall{--ldo:0px;--ls:.55}
.ld{position:absolute;inset:0;z-index:40;overflow:hidden;pointer-events:auto;cursor:progress;touch-action:none;
  font-family:'JetBrains Mono',ui-monospace,SFMono-Regular,Menlo,Consolas,monospace;-webkit-user-select:none;user-select:none}
.ldd{position:absolute;left:0;right:0;background:#09090B;color:#fff;will-change:transform;
  transition:transform 1.2s cubic-bezier(.76,0,.24,1)}
.ldt{top:0;height:calc(50% - var(--ldo) + 1px)}
.ldb{bottom:0;height:calc(50% + var(--ldo))}
.wall[data-boot=open] .ldt,.wall[data-boot=live] .ldt{transform:translateY(-103%);box-shadow:0 16px 48px -14px rgba(9,9,11,.26)}
.wall[data-boot=open] .ldb,.wall[data-boot=live] .ldb{transform:translateY(103%);box-shadow:0 -16px 48px -14px rgba(9,9,11,.26)}
.wall[data-boot=done] .ld{display:none}

.ldn,.ldr{position:absolute;top:clamp(16px,3vh,28px);font:500 12px/1 'JetBrains Mono',ui-monospace,SFMono-Regular,Menlo,Consolas,monospace;letter-spacing:.02em}
.ldn{left:clamp(18px,4vw,64px);color:#fff}
.ldr{right:clamp(18px,4vw,64px);color:#71717A}

.ldp{position:absolute;left:clamp(18px,4vw,64px);bottom:clamp(20px,4.6vh,52px);margin:0;display:flex;align-items:flex-start;color:#fff;
  font:700 clamp(68px,12.5vw,176px)/.8 'JetBrains Mono',ui-monospace,SFMono-Regular,Menlo,Consolas,monospace;
  font-variant-numeric:tabular-nums;letter-spacing:-.06em;transition:color .35s ease,opacity .3s ease,transform .5s var(--out)}
.ldv{display:block}
.ldu{display:block;margin:.02em 0 0 .08em;font-size:.3em;font-weight:400;letter-spacing:0;color:#71717A;transition:color .35s ease}
.ld.full .ldv{color:#C4B5FD}
.ld.full .ldu{color:#A78BFA}
.ld.go .ldp{opacity:0;transform:translateY(24px)}
.ldm{position:absolute;right:clamp(18px,4vw,64px);bottom:clamp(22px,5vh,56px);margin:0;max-width:calc(100% - 36px);text-align:right;color:#A1A1AA;
  font:400 12px/1 'JetBrains Mono',ui-monospace,SFMono-Regular,Menlo,Consolas,monospace;white-space:nowrap;transition:opacity .3s ease}
.ld.go .ldm{opacity:0}
.ldx{display:inline-block;animation:ldx .5s var(--out) backwards}
.ldx::after{content:"...";display:inline-block;width:0;overflow:hidden;vertical-align:bottom;animation:lddots 1.2s steps(4,end) infinite}
.ld.full .ldx::after{content:"";animation:none}
@keyframes ldx{from{opacity:0;transform:translateY(6px)}}
@keyframes lddots{to{width:1.8em}}
.ldbar{position:absolute;left:0;right:0;bottom:0;height:3px;background:rgba(255,255,255,.1)}
.ldbar i{position:absolute;inset:0;display:block;background:#7C3AED;transform-origin:0 50%;transform:scaleX(0)}

/* the bot: small and light on the lids, then back to its full size and ink colour at home */
html .wall[data-boot=load] .stage{z-index:41;pointer-events:none;mix-blend-mode:difference;filter:invert(1);transition:none;
  transform:translateY(calc(var(--lift) - var(--by) - var(--ldo))) scale(var(--ls))}
html .wall[data-boot=open] .stage,html .wall[data-boot=live] .stage{z-index:41;mix-blend-mode:difference;filter:invert(1);
  transition:transform 1.35s cubic-bezier(.65,0,.15,1)}

/* the home page waits behind the lids: its entrance animations are held at their first frame until "live" */
.wall[data-boot=load] *:not(.stage *):not(.ld *),.wall[data-boot=open] *:not(.stage *):not(.ld *){animation-play-state:paused !important}
@keyframes bloom{from{opacity:0;transform:scale(.3)}}
.orb{transform-origin:50% calc(50% + var(--by) - var(--lift));animation:bloom 1.1s var(--out) .2s backwards}

@media (max-width:760px){
  .wall{--ls:.7}
  .ldp{font-size:clamp(64px,22vw,120px)}
  .ldm{left:clamp(18px,4vw,64px);right:auto;text-align:left;bottom:calc(clamp(20px,4.6vh,52px) + clamp(64px,22vw,120px) * .8 + 18px)}
}
@media (prefers-reduced-motion:reduce){.ld{display:none}}

/* phones: a little less air in the intro text so the sticker ring has room above it (more on short screens) */
@media (max-width:760px){
  .term{bottom:clamp(18px,3.4vh,30px)}
}
@media (max-width:760px) and (min-height:701px) and (max-height:820px){
  .term{line-height:2}
  .tbody .say{margin-top:20px}
}
@media (max-width:760px) and (max-height:700px){
  .term{line-height:1.7}
  .tbody .say{margin-top:14px}
}
@media (max-width:760px) and (max-height:600px){
  .term{line-height:1.6}
  .tbody .say{margin-top:12px;height:28px}
}

/* very narrow phones (320px): the company name may wrap instead of running off the edge */
@media (max-width:345px){
  .exl .exh>span{gap:6px;align-items:flex-start}
  .exl .exh b{white-space:normal;min-width:0}
  .exl .exh u{min-width:6px;align-self:flex-start;margin-top:calc(var(--exfs) * 1.8 - 8px);margin-bottom:0}
}
/* ---------- the two slots for the JS modules (this preview has neither of them) ---------- */
.bot.slot{border:1.5px dashed #AEB4C2;border-radius:20px;display:grid;place-content:center;gap:5px;text-align:center;color:#7E8596;font:500 calc(var(--bwv) * .032)/1.4 'JetBrains Mono',ui-monospace,monospace}
.bot.slot::before{content:'bot eyes';font-weight:700;letter-spacing:.04em}
.bot.slot::after{content:'JS state machine mounts here\A last command: ' attr(data-last);white-space:pre;color:#9AA1B2}
.ringslot{position:absolute;left:50%;top:calc(50% + var(--by) - var(--bwv) * .03 - var(--lift));width:calc(var(--R) * 2);height:calc(var(--R) * 2);translate:-50% -50%;border:1.5px dashed #C9CDD8;border-radius:50%;pointer-events:none}
.ringslot::after{content:'sticker ring \B7  JS module';position:absolute;left:50%;bottom:calc(var(--R) * .1);translate:-50% 0;white-space:nowrap;color:#9AA1B2;font:500 calc(var(--bwv) * .032)/1.4 'JetBrains Mono',ui-monospace,monospace}
