*{box-sizing:border-box}html{scroll-behavior:smooth}body{margin:0;background:white;color:#181b20;font:16px/1.55 -apple-system,BlinkMacSystemFont,"Segoe UI",Arial,sans-serif}main{max-width:760px;margin:auto;padding:0 24px}a{color:#2164d8;text-decoration:none}a:hover,summary:hover{text-decoration:underline;text-underline-offset:4px}nav{display:flex;justify-content:flex-end;gap:26px;padding:24px 0;font-size:14px}nav a,footer a{color:#475368}header{position:relative;padding:48px 0 62px}h1,h2,h3{font-weight:500;letter-spacing:-.035em;line-height:1.25}h1{font-size:31px;margin:0}p{color:#536074}header p{max-width:75%;margin:13px 0 18px}h2{font-size:24px;margin:0 0 26px}h3{font-size:21px;margin:5px 0}#michael{position:absolute;top:60px;right:7%;z-index:5;border:0;background:none;cursor:grab;padding:2px;touch-action:none;user-select:none}#michael[data-pose=dragged]{cursor:grabbing} @keyframes type{to{transform:translateY(-1.5px) rotate(.7deg)}}@keyframes jump{50%{transform:translateY(-15px) rotate(-7deg)}}
.stage{background:white;padding:8px 0}article{border-bottom:1px solid #e2e6eb;padding:12px 0}article button{font:inherit;text-align:left;border:0;background:none;padding:0;cursor:pointer;width:100%;color:inherit}article small{color:#2463d1;font-size:12px}article h3 span{font-size:15px;color:#226be2}.panel p{margin:4px 0 14px}.panel svg{display:block;background:#f5f7fa;width:100%;height:clamp(150px,25vh,258px);color:#5381ed;margin:0 0 8px}.panel a{font-size:14px}.part{transition:transform .16s linear}#side,#writing{margin-top:66px}#side h2,#writing h2{font-size:19px;margin-bottom:12px}details{font-size:15px;color:#485469}summary{cursor:pointer;list-style:none;padding:10px 0}summary::-webkit-details-marker{display:none}summary small{float:right;color:#667383}details p{max-width:54ch;margin:2px 0 15px}#work>a,#writing>a{display:inline-block;font-size:14px;margin-top:12px}footer{border-top:1px solid #e3e7ec;display:flex;justify-content:space-between;margin:64px 0 20px;padding-top:18px;font-size:13px;color:#697283}
@media(max-width:600px){main{padding:0 22px}nav{gap:16px;font-size:13px}header{padding-top:36px}.desktop{display:none}header p{max-width:72%}#michael{right:0}h1{font-size:27px}article h3{font-size:18px}}@media(prefers-reduced-motion:reduce){*{scroll-behavior:auto!important;animation:none!important;transition:none!important}}
.home-row{padding:10px 0;font-size:15px}.home-row a{color:#485469;display:block}.home-row small{float:right}
.current-role{display:flex;align-items:center;gap:6px;margin-bottom:20px;color:#536074;font-size:14px}
.current-role>span:last-child{color:#2164d8}.role-dot{width:6px;height:6px;border-radius:50%;background:#2164d8;margin-right:4px}
.header-links{display:flex;align-items:center;gap:25px;font-size:16px}.header-links a:last-child{color:#536074}
.header-blueprint{position:absolute;right:0;bottom:5px;width:175px;height:auto;color:#c7d9f5;opacity:.45;pointer-events:none}
header{isolation:isolate}header h1,header p,.current-role,.header-links{position:relative;z-index:1}
#michael{top:77px;right:8%;z-index:2}

@media(max-width:600px){.current-role{font-size:13px;margin-bottom:18px}.header-links{gap:18px;font-size:14px}.header-blueprint{width:115px;bottom:5px;opacity:.35}#michael{top:84px;right:0}}

:root { --nav-height: 64px; }
main > nav { position: sticky; top: 0; z-index: 10; height: var(--nav-height); align-items: center; padding-block: 0; background: white; }
.nav-home { margin-right: auto; display: inline-flex; align-items: center; min-height: 44px; }

#work { scroll-margin-top: var(--nav-height); }
@media (max-width: 600px) { :root { --nav-height: 52px; } main > nav { gap: clamp(6px, 3vw, 16px); } }

.project-list { list-style: none; padding: 0; margin: 0; }
.project-list li { border-bottom: 1px solid #e2e6eb; }
.project-list a { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: baseline; gap: 1rem; padding: 12px 0; color: #202938; font-size: 18px; }
.project-list small { color: #2463d1; font-size: 14px; text-align: right; }
.project-list a:hover { text-decoration: none; }
.project-list a:is(:hover, :focus-visible) > span { text-decoration: underline; text-underline-offset: 4px; }

#michael { width: 110px; height: 100px; }
.mascot-frame {
  position: absolute; bottom: 0; left: 0; width: 100%; height: 100%;
  object-fit: contain; object-position: center bottom; pointer-events: none;
  visibility: hidden;
}
#michael[data-pose="typing"] .pose-typing,
#michael[data-pose="clicked"] .pose-clicked,
#michael[data-pose="dragged"] .pose-dragged,
#michael[data-pose="napping"] .pose-napping { visibility: visible; }
#michael[data-pose="typing"] .typing-hand { transform-origin: 150px 191px; animation: tap-keys .55s ease-in-out infinite; }
@keyframes tap-keys { 0%, 55%, 100% { transform: rotate(0); } 25% { transform: rotate(5deg); } 77% { transform: rotate(3deg); } }
@media(max-width:600px) { #michael { width: 76px; height: 69px; } }

#career-story { margin-bottom: 56px; }
#career-story h2 { margin-bottom: 12px; }
#career-story > p { max-width: 64ch; margin: 0 0 24px; }
#career-story ul { padding: 0; margin: 0; list-style: none; }
#career-story li { display: grid; grid-template-columns: 8rem 1fr; gap: 1rem; border-top: 1px solid #e2e6eb; padding: 15px 0; }
#career-story small { color: #596573; font: 13px/1.7 ui-monospace, monospace; }
#career-story li a { color: inherit; text-decoration: underline; text-underline-offset: 4px; font-weight: 500; }
#career-story li a:hover { color: #2164d8; }
#career-story li span { margin-left: .35rem; color: #596573; font-size: 14px; }
#career-story li p { margin: 4px 0 0; }
@media (max-width: 540px) { #career-story li { grid-template-columns: 1fr; gap: 3px; } }

@media (min-width: 601px) {
  header:has(#michael) p { max-width: 71%; }
  #michael { top: 46%; right: 12%; }
}
