/* Transparent openings and a shared full-width glass navigation surface. */
body.primary-nav-ready{--nav-height:64px;--nav-inset:clamp(24px,6vw,100px);--nav-glass:rgba(21,21,21,.3)}
html body.primary-nav-ready .site-header{position:fixed!important;z-index:80!important;inset:0 0 auto!important;width:100%!important;height:var(--nav-height)!important;padding:0 var(--nav-inset)!important;display:flex!important;align-items:center!important;justify-content:flex-end!important;opacity:1!important;pointer-events:auto!important;transform:none!important;transition:background .4s,opacity .25s!important;box-shadow:none!important}
html body.primary-nav-ready .site-header::before{content:'';position:absolute;inset:0;z-index:-1;background:var(--nav-glass);backdrop-filter:blur(44px) saturate(135%);-webkit-backdrop-filter:blur(44px) saturate(135%);opacity:0;transition:opacity .4s;pointer-events:none}
html body.primary-nav-ready.primary-nav-glass .site-header::before{opacity:0}
html body.primary-nav-ready.primary-nav-glass .site-header{background:var(--nav-glass)!important;backdrop-filter:blur(48px)!important;-webkit-backdrop-filter:blur(48px)!important}
html body.primary-nav-ready .global-nav{display:flex!important;align-items:center!important;gap:clamp(24px,4vw,64px)!important;width:auto!important;padding:0!important;border:0!important;border-radius:0!important;background:transparent!important;box-shadow:none!important;backdrop-filter:none!important;-webkit-backdrop-filter:none!important}
html body.primary-nav-ready .global-nav::before,html body.primary-nav-ready .global-nav__indicator{display:none!important}
html body.primary-nav-ready .global-nav__item{position:relative;flex:none!important;min-height:42px!important;padding:12px 0!important;border:0!important;border-radius:0!important;background:transparent!important;box-shadow:none!important;font-size:13px!important;letter-spacing:.08em;color:var(--primary-nav-ink,#e0e5e1)!important;text-shadow:none!important;transition:color .25s,translate .35s!important}
html body.primary-nav-ready.primary-nav-glass .global-nav__item{color:#edf0ec!important}
html body.primary-nav-ready .global-nav__item::after{content:'';position:absolute;bottom:3px;left:0;right:0;height:1px;background:currentColor;transform:scaleX(0);transform-origin:left;transition:transform .35s cubic-bezier(.2,.8,.2,1)}
html body.primary-nav-ready .global-nav__item:hover{translate:0 -2px}
html body.primary-nav-ready .global-nav__item:hover::after{transform:scaleX(.35)}
html body.primary-nav-ready .global-nav__item.is-current::after{transform:scaleX(1)}
html body[data-page=experience].primary-nav-ready:not(.experience-detail) .site-header{position:absolute!important}
html body[data-page=portfolio].primary-nav-ready .site-header{position:absolute!important}
body[data-page=experience] #app>.mast{visibility:hidden}
html body[data-page=portfolio].primary-nav-ready.in-work .site-header{opacity:0!important;visibility:hidden!important;pointer-events:none!important}
html body[data-page=portfolio].primary-nav-ready{--work-top:64px}
html body.primary-nav-ready .work-switch-wrap{top:0;z-index:81;background:var(--nav-glass);backdrop-filter:blur(48px);-webkit-backdrop-filter:blur(48px);padding:0 var(--nav-inset);height:var(--nav-height);isolation:isolate}
html body.primary-nav-ready .work-switch-wrap::before{display:none}
html body.primary-nav-ready .work-switch-wrap::after{display:none}
html body.primary-nav-ready .work-switch{height:var(--nav-height);min-height:0;opacity:1;transform:none;pointer-events:auto;transition:opacity .24s,translate .36s cubic-bezier(.2,.8,.2,1)}
html body.primary-nav-ready .work-switch button{color:#e2e6e3}
html body.primary-nav-ready .work-switch button span{color:#d2d9d5}
html body.primary-nav-ready .work-switch button[aria-selected=true],html body.primary-nav-ready .work-switch button:hover{color:#fff}
.work-primary-links{position:absolute;inset:0 var(--nav-inset);padding-right:62px;display:flex;align-items:center;justify-content:flex-end;gap:clamp(24px,4vw,64px);opacity:0;visibility:hidden;translate:min(24px,var(--nav-inset)) 0;pointer-events:none;transition:opacity .24s,translate .36s cubic-bezier(.2,.8,.2,1),visibility .3s}
html body.primary-nav-ready .work-primary-links .global-nav__item{color:#edf0ec!important}
.work-menu-toggle{position:absolute;right:12px;top:10px;width:44px;height:44px;display:flex;flex-direction:column;justify-content:center;align-items:center;gap:5px;border:0;background:transparent;color:#edf0ec;cursor:pointer}
.work-menu-toggle span{height:1px;width:21px;background:currentColor;transition:transform .3s,opacity .2s}
.work-menu-toggle:focus-visible{outline:1px solid #edf0ec;outline-offset:2px}
html body.primary-nav-ready.work-primary-open .work-switch{opacity:0;translate:-24px 0;pointer-events:none}
.work-primary-open .work-primary-links{opacity:1;visibility:visible;translate:0 0;pointer-events:auto}
.work-primary-open .work-menu-toggle span:first-child{transform:translateY(6px) rotate(45deg)}
.work-primary-open .work-menu-toggle span:nth-child(2){opacity:0}
.work-primary-open .work-menu-toggle span:last-child{transform:translateY(-6px) rotate(-45deg)}
html body.primary-nav-ready .work-nav-reveal{display:none!important}
html body.primary-nav-ready.primary-opening .site-header{opacity:0!important;visibility:hidden!important;pointer-events:none!important}
html body.primary-nav-ready .site-header>.back{position:absolute!important;left:var(--nav-inset)!important;top:0!important;height:var(--nav-height)!important;min-height:0!important;width:auto!important;max-width:30vw;padding:0!important;border:0!important;border-radius:0!important;background:transparent!important;backdrop-filter:none!important;-webkit-backdrop-filter:none!important;box-shadow:none!important;display:flex;align-items:center;gap:12px;color:#edf0ec;z-index:1}
html body.primary-nav-ready .site-header>.back span{position:static;width:auto;height:auto;clip-path:none;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-size:12px}
@media(max-width:1100px){html body.primary-nav-ready .site-header>.back span{display:none}html body[data-page=experience].experience-detail.primary-nav-ready .site-header{padding-left:64px!important}}
@media(max-width:600px){body.primary-nav-ready{--nav-inset:20px}html body.primary-nav-ready .global-nav{width:100%!important;justify-content:space-between!important;gap:12px!important}html body.primary-nav-ready .global-nav__item{font-size:11px!important;letter-spacing:0}.work-primary-links{justify-content:space-between;gap:10px;padding-right:42px}.work-switch{padding-right:32px}.work-menu-toggle{right:12px}}
@media(prefers-reduced-motion:reduce){.primary-nav-ready .site-header,.work-switch,.work-primary-links{transition:none!important}}
