/* Shared unboxed navigation, contact feedback and experience sheet. */
html{--toolbar-height:77px;--toolbar-offset:var(--toolbar-height);scroll-padding-top:calc(var(--toolbar-offset) + 12px)}
html.toolbar-retracted{--toolbar-offset:0px}
.site-toolbar{display:block;position:sticky;top:0;z-index:30;transition:transform .18s ease-out;isolation:isolate;overflow:hidden;border-bottom:1px solid #ededee;background:#fff}
.site-toolbar[data-site-header="home"]{position:relative}
html:has(.site-toolbar[data-site-header="home"]){--toolbar-offset:0px}
.toolbar-retracted .site-toolbar[data-site-header="detail"]{transform:translateY(-100%)}
.site-toolbar:focus{outline:none}
.site-toolbar .header-field{position:absolute;inset:0;width:100%;height:100%;pointer-events:none;z-index:-1;opacity:.35}
.site-toolbar-inner{width:min(calc(100% - var(--gutter) * 2),var(--max,1600px));margin:auto;height:calc(var(--toolbar-height) - 1px);display:flex;align-items:center;justify-content:space-between;gap:12px}
.site-toolbar[data-site-header="home"] .site-toolbar-inner{height:82px}
.site-toolbar .toolbar-brand{display:grid;place-items:center;width:52px;height:44px;flex:none;background:#fff;color:#151719;border:0;border-radius:0}
.site-toolbar .toolbar-back{font:550 14px/1 var(--body);padding:12px 8px 12px 0;background:#fff;color:#30363c;text-decoration:none;white-space:nowrap}
.site-toolbar .mast-actions{display:flex;align-items:center;gap:30px;background:#fff;padding-left:24px}
.site-toolbar .mast-actions :is(.mast-action,.phone-link){position:relative;display:inline-flex;align-items:center;justify-content:center;gap:9px;width:auto;min-width:0;height:40px;padding:0 2px;border:0;border-radius:0;background:#fff;color:#43474b;font:500 13px/1 var(--body);text-decoration:none;white-space:nowrap;transition:color .2s}
.site-toolbar .mast-actions :is(.mast-action,.phone-link):hover{background:#fff;color:#090a0b}
.site-toolbar .mast-actions svg{flex:none}
.site-toolbar .mast-actions :is(.mast-action,.phone-link)::after{content:'';position:absolute;bottom:4px;left:0;right:0;height:1px;background:#17191b;transform:scaleX(0);transform-origin:left;transition:transform .2s}
.site-toolbar .mast-actions :is(.mast-action,.phone-link):hover::after{transform:scaleX(1)}
.site-toolbar .mast-actions a[download]{font-weight:650;color:#191b1e}
.site-toolbar :is(.mast-action,.toolbar-brand,.toolbar-back,.phone-link):focus-visible{outline:2px solid #555c60;outline-offset:4px}
/* Original silhouette: two alternating signals, then Y to sky-blue F and back. */
.identity-restored{overflow:visible}
.identity-morph{fill:#17191c}
.identity-bar{fill:#a7aaae;transform-origin:31px 28px}
@media(prefers-reduced-motion:no-preference){
 .identity-morph{animation:identity-morph-cycle 7s ease-in-out infinite}
 .identity-bar-one{animation:identity-signal-one 7s ease-in-out infinite}
 .identity-bar-two{animation:identity-signal-two 7s ease-in-out infinite}
}
@keyframes identity-morph-cycle{
 0%,30%,88%,100%{d:path('M5 7 L13 7 L16.5 12 L20 17 L27 7 L35 7 L29.5 15 L24 23 L24 33 L16 33 L16 23 L10.5 15 Z');fill:#17191c}
 48%,68%{d:path('M8 7 L33 7 L33 14 L16 14 L16 19 L29 19 L29 26 L16 26 L16 33 L8 33 L8 20 L8 14 Z');fill:#38bdf8}
}
@keyframes identity-signal-one{
 0%,5%,20%,27%,88%,100%{fill:#a7aaae;opacity:1;transform:none}
 12%,16%,32%{fill:#38bdf8;opacity:1;transform:none}
 45%,70%{fill:#38bdf8;opacity:0;transform:translate(-5px,-9px) scaleX(1.3)}
}
@keyframes identity-signal-two{
 0%,15%,30%,88%,100%{fill:#a7aaae;opacity:1;transform:none}
 22%,27%,34%{fill:#38bdf8;opacity:1;transform:none}
 45%,70%{fill:#38bdf8;opacity:0;transform:translate(-5px,-9px) scaleX(1.3)}
}
@media(max-width:760px){
 html{--toolbar-height:66px}
 .site-toolbar[data-site-header="home"] .site-toolbar-inner{height:70px}
 .site-toolbar .toolbar-brand{width:44px;height:40px}
 .site-toolbar .mast-actions{gap:14px;padding-left:10px}
 .site-toolbar .mast-actions :is(.mast-action,.phone-link){font-size:12px;gap:6px;height:38px}
}
.contact-toast{position:fixed;z-index:1000;bottom:calc(28px + env(safe-area-inset-bottom));left:50%;transform:translate(-50%,8px);padding:12px 20px;max-width:calc(100vw - 32px);border-radius:6px;background:#171717;color:#fff;box-shadow:0 5px 22px #00000014;font-size:13px;line-height:1.5;white-space:nowrap;opacity:0;pointer-events:none;transition:opacity .18s,transform .18s}
.contact-toast.is-visible{opacity:1;transform:translate(-50%,0)}


#site-experience{
 --experience-gutter:clamp(16px,3.5vw,38px);
 width:min(94vw,820px);max-height:88dvh;overscroll-behavior:contain;
 padding:0;border:1px solid #c7cbd0;border-radius:4px;background:#fff;color:#17191b;color-scheme:light;
}
#site-experience::backdrop{background:#15171a80}
.experience-header{
 position:sticky;top:0;z-index:1;display:flex;align-items:center;justify-content:space-between;gap:12px;
 padding:12px var(--experience-gutter);background:#f6f7f8;border-bottom:1px solid #c7cbd0;
}
.experience-header h2,.experience-sheet h2{font:650 clamp(17px,2vw,22px)/1.45 var(--display);margin:0}
.experience-header h2::before,.experience-sheet h2::before{content:'// ' / '';font:500 .72em var(--mono);color:#596168;margin-right:.55em}
.experience-close{width:34px;height:34px;flex:none;border:1px solid #c7cbd0;border-radius:2px;background:#fff;font:500 21px/1 var(--mono)}
.experience-close:hover{background:#e9eaed}
.experience-sheet{padding:7px var(--experience-gutter) 22px}
.experience-sheet ol,.experience-sheet ul{list-style:none;margin:0;padding:0}
.experience-list{counter-reset:career-row}
.experience-sheet li{display:grid;grid-template-columns:30px 132px minmax(0,1fr);gap:12px;padding:12px 0;border-bottom:1px solid #e2e4e7}
.experience-sheet li::before{
 counter-increment:career-row;content:counter(career-row,decimal-leading-zero) / '';
 color:#686f78;font:500 11px/2 var(--mono)
}
.education-list{counter-reset:career-row}
.experience-period,.education-list li>b{font:500 12px/1.8 var(--mono);color:#596168}
.experience-sheet h3{font:620 16px/1.5 var(--display);margin:0}
.experience-list li div>b,.education-list small{font:500 12px/1.8 var(--body);color:#4d5459}
.experience-sheet p{font:400 13px/1.8 var(--body);color:#575f63;margin:4px 0 0}
.experience-list+h2{margin:18px 0 2px}
.experience-actions{display:flex;justify-content:flex-end;padding-top:16px}
.experience-actions a{display:inline-flex;align-items:center;gap:12px;padding:9px 13px;border:1px solid #c7cbd0;border-radius:2px;color:#17191b;font:550 12px/1.5 var(--body)}
.experience-actions a:hover{background:#f0f1f3}
@media(max-width:600px){
 .experience-sheet li{grid-template-columns:22px minmax(0,1fr);gap:3px 8px}
 .experience-sheet li>div{grid-column:2}
 .education-list small{display:block}
}
@media(prefers-reduced-motion:no-preference){
 #site-experience[open]{animation:experience-open .25s ease-out both}
 #site-experience[open] .experience-sheet{animation:experience-content .25s .09s ease-out both}
 #site-experience[open]::backdrop{animation:experience-backdrop .25s ease-out both}
}
@keyframes experience-open{from{clip-path:inset(0 0 100%);opacity:.35}to{clip-path:inset(0);opacity:1}}
@keyframes experience-content{from{opacity:0;transform:translateY(5px)}to{opacity:1;transform:none}}
@keyframes experience-backdrop{from{opacity:0}to{opacity:1}}

.back-to-top{
 position:fixed;z-index:24;right:calc(20px + env(safe-area-inset-right));bottom:calc(20px + env(safe-area-inset-bottom));
 display:inline-flex;align-items:center;justify-content:center;gap:7px;min-width:44px;min-height:44px;
 padding:0 13px;border:1px solid #b7bbbf;border-radius:4px;background:#fff;color:#25282c;
 box-shadow:0 3px 12px #00000012;font:550 12px/1 var(--body)
}
.back-to-top[hidden]{display:none}
.back-to-top:hover{border-color:currentColor}
body.personal-detail .back-to-top,body:has(.work-collection[data-scope="personal"]) .back-to-top{background:#202226;color:#f1f2f3;border-color:#595e65}
@media(max-width:760px){.back-to-top{padding:0;right:calc(14px + env(safe-area-inset-right));bottom:calc(14px + env(safe-area-inset-bottom))}.back-to-top span{display:none}}
@media(prefers-reduced-motion:reduce){.site-toolbar{transition:none}}

@media(prefers-reduced-motion:reduce){.contact-toast{transition:none}}

/* Resume B: career details and achievement emphasis. */
.career-intro{padding:18px 0 20px;border-bottom:1px solid #e2e4e7}
.career-project{margin:20px 0 0;padding:0 0 18px;border-bottom:1px solid #eceef1}
.career-project:last-child{border-bottom:0;padding-bottom:4px}
.career-project header{display:flex;align-items:baseline;justify-content:space-between;gap:8px;flex-wrap:wrap;margin-bottom:5px}
.career-project h4{font:650 14px/1.6 var(--display);margin:0;color:#202329}
.career-project h4 span{font:400 10px var(--mono);color:#878d97;margin-right:4px}
.career-project time{font:400 11px/1.6 var(--mono);color:#7c838c}
.career-metrics{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px;margin:12px 0}
.career-metrics b{display:block;font:600 14px/1.6 var(--body)}
.career-metrics small{display:block;font:400 10px/1.6 var(--body);color:#747b85;margin-top:3px}
.experience-sheet .career-number{color:#2563eb;font-weight:750}
.experience-sheet .career-result{color:#333b47;margin-top:9px}
@media(max-width:600px){.career-metrics{grid-template-columns:1fr}.career-metrics>div{display:flex;align-items:baseline;gap:12px}.career-metrics small{margin:0}.career-project header{display:block}}
