@font-face{font-family:'Geist Mono';src:url('assets/geist-mono.ttf') format('truetype');font-style:normal;font-weight:400;font-display:swap}
:root{color-scheme:dark;--bg:#0b0c0d;--fg:#eee;--muted:#9b9da0;--line:#35373a;--accent:#e4e4e4;--panel:#121315;--hover:#252628}
:root[data-theme=light]{color-scheme:light;--bg:#fafafa;--fg:#17181a;--muted:#686b70;--line:#d1d3d5;--accent:#222;--panel:#fff;--hover:#eee}
*{box-sizing:border-box}body{margin:0;min-height:100svh;display:flex;flex-direction:column;background:var(--bg);color:var(--muted);font:14px/24px 'Geist Mono',ui-monospace,monospace;-webkit-font-smoothing:antialiased}button,input{font:inherit}button{color:inherit;background:none;border:0;padding:0;cursor:pointer}button:hover,a:hover{color:var(--fg)}button:focus-visible,a:focus-visible{outline:1px solid var(--fg);outline-offset:5px}a{color:inherit;text-decoration:none}[hidden]{display:none!important}
.masthead{margin:40px 56px 0;display:flex;justify-content:space-between;align-items:center}.identity{display:flex;align-items:center;gap:12px}.masthead h1,.name{font-size:16px;line-height:24px;font-weight:600;color:var(--fg);margin:0}.menu-trigger{font-size:12px}kbd{font:11px/20px 'Geist Mono',monospace;border:1px solid var(--line);border-radius:4px;padding:3px 8px}
main{width:calc(100% - 112px);max-width:1240px;margin:0 auto;flex:1;display:grid;grid-template-columns:minmax(340px,440px) minmax(0,1fr);column-gap:clamp(56px,8vw,120px);align-items:center;padding:48px 0}.profile{width:100%}.timeline{list-style:none;position:relative;margin:0;padding:0 0 0 24px}.timeline:before{content:'';position:absolute;left:3px;top:12px;bottom:12px;width:1px;background:var(--line)}.timeline li{position:relative;margin-bottom:20px}.timeline li:last-child{margin-bottom:0}.timeline li:before{content:'';position:absolute;left:-24px;top:9px;width:7px;height:7px;background:#555;border-radius:50%}.timeline li:first-child:before{background:var(--fg)}.stage{display:grid;grid-template-columns:110px 1fr;align-items:baseline;gap:14px;min-height:24px}.company{justify-self:start;font-size:15px;font-weight:700;color:var(--fg);text-decoration:underline;text-decoration-color:#73767a;text-underline-offset:4px;text-decoration-thickness:1px}.company:hover{text-decoration-color:var(--fg)}.role{font-size:13px;text-align:right;cursor:text}.profile-meta{display:flex;gap:28px;margin-top:44px;font-size:13px;line-height:24px}.location-label{width:105px;font-size:12px}.thoughts-link{display:inline-block;margin-top:18px;text-decoration:underline;text-decoration-color:var(--line);text-underline-offset:4px;font-size:14px}
.foot{margin:auto 56px 0;padding:24px 0 30px;display:flex;align-items:center;justify-content:space-between}.contacts{display:flex;gap:24px}.contacts a{font-size:11px;font-weight:700;letter-spacing:.06em;text-decoration:underline;text-underline-offset:4px;text-decoration-color:var(--line)}#theme{font-size:12px;line-height:24px}
.study{width:100%;max-width:560px;justify-self:center;margin:0;pointer-events:none}canvas{display:block;width:100%;aspect-ratio:1;pointer-events:none}
.avatar-wrap{position:relative;width:28px;height:28px;z-index:5}#avatar{display:block;position:relative;width:28px;height:28px;z-index:2}#avatar img{display:block;width:28px;height:28px;object-fit:cover;border-radius:50%;transform-origin:top left;transition:transform .45s cubic-bezier(.18,.9,.28,1.15);box-shadow:0 0 0 1px var(--line)}.greeting #avatar img{transform:translate(6px,72px) scale(3.6)}.hello{position:absolute;left:-5px;top:30px;width:300px;height:190px;pointer-events:none;color:var(--fg);opacity:0}.hello svg{width:100%;height:100%;overflow:visible;stroke:currentColor;stroke-width:1.2;stroke-linecap:round;stroke-linejoin:round}.hello path{stroke-dasharray:1;stroke-dashoffset:1}.hello-orbit{stroke:var(--muted);stroke-width:.8}.hello-bubble{position:absolute;left:153px;top:56px;padding:9px 14px;border:1px solid var(--line);border-radius:12px 12px 12px 3px;background:var(--panel);box-shadow:0 8px 30px #0002;font-size:14px;white-space:nowrap;opacity:0}.hello-cursor{margin-left:5px;font-size:11px;color:var(--muted)}.greeting .hello{animation:hello-visibility 4.8s both}.greeting #avatar img{animation:portrait-pop .6s both}.greeting .hello-circle{animation:ink .85s .15s forwards}.greeting .hello-orbit{animation:ink 1s .55s forwards}.greeting .hello-arrow{animation:ink .4s .95s forwards}.greeting .hello-bubble{animation:bubble-pop 3.6s 1.05s both}.greeting .hello-cursor{animation:blink .6s step-end 5}
@keyframes ink{to{stroke-dashoffset:0}}@keyframes portrait-pop{0%{transform:translate(0,0) scale(1)}65%{transform:translate(6px,69px) scale(3.8)}100%{transform:translate(6px,72px) scale(3.6)}}@keyframes hello-visibility{0%,83%{opacity:1}100%{opacity:0}}@keyframes bubble-pop{0%{opacity:0;transform:translate(-8px,5px) scale(.88)}12%{opacity:1;transform:translate(0,-2px) scale(1.04)}20%,82%{opacity:1;transform:none}100%{opacity:0;transform:translateY(-5px)}}@keyframes blink{50%{opacity:0}}
dialog{padding:0;width:min(560px,calc(100% - 32px));max-height:80svh;border:1px solid var(--line);border-radius:10px;background:var(--panel);color:var(--fg);box-shadow:0 24px 100px #0006;margin:15svh auto auto}dialog::backdrop{background:#0008;backdrop-filter:blur(7px)}.search-row{display:flex;gap:14px;padding:18px 20px;align-items:center;border-bottom:1px solid var(--line)}.search-row>span{font-size:24px;color:var(--muted)}input{width:100%;min-width:0;background:none;border:0;outline:none;color:var(--fg);font-size:16px}input::placeholder{color:var(--muted)}.close{font-size:12px;border:1px solid var(--line);padding:2px 7px;border-radius:4px;color:var(--muted)}#results{padding:8px;max-height:49svh;overflow:auto}.group-label{font-size:11px;text-transform:uppercase;letter-spacing:.1em;color:var(--muted);padding:13px 12px 5px}.result{display:flex;justify-content:space-between;align-items:center;gap:16px;width:100%;padding:11px 12px;text-align:left;border-radius:5px;font-size:14px}.result small{font-size:12px;color:var(--muted)}.result.selected,.result:hover{background:var(--hover);color:var(--accent)}.menu-foot{display:flex;gap:20px;border-top:1px solid var(--line);padding:12px 20px;color:var(--muted);font-size:11px}.empty{padding:20px;color:var(--muted)}


main.writing{display:block;flex:1;width:calc(100% - 48px);max-width:640px;margin:72px auto 0;padding:0}.writing h1{font:600 20px/30px 'Geist Mono',monospace;margin:0 0 44px;color:var(--fg)}.writing h2{font:400 14px/24px 'Geist Mono',monospace;margin:0}
@media(min-width:1600px){main{max-width:none;grid-template-columns:minmax(340px,480px) minmax(0,1fr)}.study{max-width:620px}}
@media(max-width:760px){.masthead{margin:28px 24px 0}.masthead h1{font-size:14px}.identity{gap:8px}kbd{font-size:10px;padding:2px 5px}main{width:calc(100% - 48px);grid-template-columns:1fr;gap:24px;padding:48px 0 16px}.stage{grid-template-columns:100px 1fr;gap:10px}.company{font-size:14px}.role{font-size:12px}.profile-meta{margin-top:32px;font-size:12px;gap:20px}.location-label{width:94px}.study{max-width:390px}.foot{margin:auto 24px 0;padding:20px 0 24px}.contacts{gap:20px}.hello{width:280px}.hello-bubble{left:140px;top:52px}dialog{margin-top:10svh}.result small{max-width:46%;overflow-wrap:anywhere;text-align:right}.menu-foot{gap:12px;font-size:10px}}
main{max-width:none}.profile{align-self:start;padding-top:104px}
body,button,input{text-transform:uppercase}
@media(min-width:761px){.study{width:min(100%,calc(100svh - 250px))}main{padding-bottom:24px}}
.greeting #avatar img{box-shadow:none}
.profile-meta{display:grid;grid-template-columns:110px 1fr;gap:14px;margin-left:24px;font-size:15px}
.location-label{width:auto;font-size:inherit}
.profile-meta>span:last-child{text-align:right}
.thoughts-link{margin-left:24px;font-size:15px;font-weight:700;color:var(--fg)}
.contacts button{position:relative;font-size:11px;font-weight:700;letter-spacing:.06em;text-decoration:underline;text-underline-offset:4px;text-decoration-color:var(--line)}
.copy-spark{position:absolute;left:50%;top:-5px;opacity:0;pointer-events:none;text-decoration:none}
.copied .copy-spark{animation:copy-spark .8s ease-out both}
.copied #email-label{display:inline-block;animation:copy-pop .35s ease-out}
.sr-only{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}
.hello-bubble{left:153px;top:44px;width:244px;white-space:normal;text-transform:none;border:0;border-radius:0;background:none;box-shadow:none;padding:0;line-height:22px;font-size:14px}
.greeting .hello{animation:none;opacity:1}
.greeting .hello-bubble{animation:none;opacity:1}
.greeting .hello-arrow{animation:ink .4s .1s forwards}
.greeting .hello-cursor{animation:blink .6s step-end infinite}
@keyframes copy-spark{0%{opacity:0;transform:translateY(0) scale(.5)}25%{opacity:1}100%{opacity:0;transform:translateY(-30px) rotate(100deg) scale(1.3)}}
@keyframes copy-pop{50%{transform:translateY(-3px)}}
@media(max-width:760px){.profile{padding-top:100px}.profile-meta{grid-template-columns:100px 1fr;gap:10px;font-size:14px}.thoughts-link{font-size:14px}.hello-bubble{left:130px;top:44px;width:min(210px,calc(100vw - 174px));font-size:12px;line-height:20px}.hello-arrow{transform:translateX(-10px)}.role{font-size:11px}}
.identity{align-items:flex-start}.identity-text{min-width:0}.header-location{font-size:15px;line-height:24px;margin:5px 0 0;font-weight:400}
.masthead{align-items:flex-start}.menu-trigger{margin-top:3px}
.role{font-size:15px}.stage{grid-template-columns:90px minmax(0,1fr)}
.thoughts-link{margin-top:34px}.hello-bubble{left:165px}
main.writing{width:calc(100% - 48px);max-width:540px;margin:96px auto 0}
.writing-home{font-size:14px;color:var(--fg)}
.article-link{display:flex;justify-content:space-between;gap:24px;padding:0 0 16px;margin-bottom:16px;border-bottom:1px solid var(--line);color:var(--fg)}.article-link:last-child{border:0;margin:0;padding:0}.article-link time{color:var(--muted);white-space:nowrap}.article-link:hover span{text-decoration:underline}
.article h1{font-size:26px;line-height:1.4;color:var(--fg);border:0;margin:40px 0 16px;text-transform:none}.article time{font-size:12px}.article-body{text-transform:none;font-size:16px;line-height:1.8;color:var(--fg);margin-top:32px;overflow-wrap:anywhere}.article-body h2,.article-body h3{font:600 20px/1.5 'Geist Mono',monospace;margin:32px 0 12px}.article-body p{margin:0 0 24px}.article-body img{max-width:100%;height:auto}.article-body a{text-decoration:underline}.article-body pre{overflow-x:auto;padding:16px;background:var(--panel)}.article-body blockquote{border-left:2px solid var(--line);margin:24px 0;padding-left:20px;color:var(--muted)}.byline{margin:40px 0;font-size:12px}
.writing h1{font-size:14px;line-height:24px;font-weight:400;color:var(--muted);margin:64px 0 0;padding-bottom:10px;border-bottom:1px solid var(--line)}
.writing-year{display:grid;grid-template-columns:132px 1fr;padding:16px 0;border-bottom:1px solid var(--line)}
.writing-year h2,.writing-year p{font-size:14px;font-weight:400;line-height:24px;margin:0}
@media(min-width:761px){.study{width:min(100%,calc(100svh - 280px))}}
@media(min-width:761px) and (max-width:1000px){main{grid-template-columns:minmax(330px,1.2fr) minmax(0,1fr);column-gap:32px}}
@media(max-width:760px){.role,.header-location{font-size:14px}.stage{grid-template-columns:74px minmax(0,1fr);gap:10px}.hello-bubble{left:142px;width:calc(100vw - 180px)}main.writing{margin-top:64px}.writing-year{grid-template-columns:80px 1fr}}
@media(max-width:360px){.masthead{margin-left:18px;margin-right:18px}.masthead h1{font-size:13px}main{width:calc(100% - 36px)}.role,.company{font-size:13px}.stage{grid-template-columns:65px minmax(0,1fr);gap:8px}.hello-bubble{width:calc(100vw - 168px)}}
/* Keep the UK GOV (AI) label together, with its role to the right. */
.stage{grid-template-columns:max-content minmax(0,1fr)}.company{white-space:nowrap}
@media(prefers-reduced-motion:reduce){*{transition:none!important}.greeting #avatar img{animation:none}.greeting .hello{animation:none;opacity:1}.greeting .hello path{animation:none;stroke-dashoffset:0}.greeting .hello-bubble{animation:none;opacity:1}.greeting .hello-cursor,.copied .copy-spark,.copied #email-label{animation:none}}
