/* The portfolio and homepage use the same floating navigation. */
.nav-shell,header.mast:has(.mast-inner) {position:fixed;z-index:100;inset:23px 0 auto;padding:0;display:flex;justify-content:center;pointer-events:none}
.nav-shell .mast,.mast-inner[data-menu-root] {position:relative;display:flex;align-items:center;justify-content:space-between;gap:clamp(16px,2.1vw,32px);pointer-events:auto;padding:7px 11px 7px 20px;min-height:61px;border:1px solid #ffffff20;border-radius:40px;background:rgba(12,12,12,.84);backdrop-filter:blur(20px);box-shadow:0 4px 18px #0002}
[data-menu-root] .wordmark {width:auto;display:flex;align-items:center;gap:9px}
[data-menu-root] .wordmark img {width:56px;height:38px;object-fit:contain}
[data-menu-root] .brand-discipline {font-size:.58rem;text-transform:uppercase;letter-spacing:.1em;border-left:1px solid #696969;padding-left:8px}
[data-menu-root] nav {display:flex;align-items:center;gap:clamp(14px,1.8vw,29px)}
[data-menu-root] nav a {display:flex;align-items:center;min-height:40px;text-decoration:none;font:630 .85rem/1.22 'Manrope',Arial,sans-serif;letter-spacing:-.028em;color:#e7e7e7;white-space:nowrap}
[data-menu-root] nav a:hover {color:#ffc4cb}
[data-menu-root] :is(.nav-project,.mast-contact) {background:#332126;color:#ffc4cb;padding:0 17px;min-height:40px;border-radius:40px;gap:7px;font:650 .82rem/1.1 'Manrope',Arial,sans-serif}
[data-menu-root] :is(.nav-project,.mast-contact):hover {background:#503038;color:#ffd4d8}
.nav-group {position:relative;display:flex;align-items:center;gap:0}
.nav-reveal {display:grid;place-items:center;width:25px;min-height:40px;background:none;border:0;padding:0;color:#a19e9e}
.nav-reveal::before {content:'';width:6px;height:6px;border-right:1.5px solid currentColor;border-bottom:1.5px solid currentColor;transform:translateY(-2px) rotate(45deg)}
.nav-reveal[aria-expanded=true]::before {transform:translateY(2px) rotate(225deg)}
.nav-panel {position:absolute;top:100%;left:-12px;padding:8px;min-width:208px;border:1px solid #333;border-radius:14px;background:#141414;box-shadow:0 18px 35px #0008}
[data-menu-root] .nav-panel a {padding:2px 12px;min-height:38px;border-radius:7px;color:#ddd}
[data-menu-root] .nav-panel a:hover,[data-menu-root] .nav-panel a:focus-visible {background:#272224;color:#ffd7db}
@media(max-width:800px) and (min-width:600px){.nav-shell .mast,.mast-inner[data-menu-root]{gap:12px;padding-left:14px}[data-menu-root] nav{gap:13px}[data-menu-root] .brand-discipline{display:none}[data-menu-root] .wordmark img{width:49px}.nav-reveal{width:18px}}
@media(max-width:599px) {
 .nav-shell,header.mast:has(.mast-inner) {inset:0 0 auto}
 .nav-shell .mast,.mast-inner[data-menu-root] {width:100%;max-width:none;border-radius:0;border:0;min-height:55px;gap:8px;padding:4px 14px 4px 19px;background:linear-gradient(#060606ef,#060606d6);box-shadow:none}
 [data-menu-root] .wordmark,.mast .wordmark {width:auto;flex:0 1 auto;flex-direction:row;gap:7px;min-height:44px}
 [data-menu-root] .wordmark img,.mast .wordmark img {width:49px;height:33px}
 [data-menu-root] .wordmark .brand-discipline {display:inline;font-size:.54rem;border-left:1px solid #666;padding-left:7px}
 [data-menu-root] :is(.nav-project,.mast-contact),.mast .nav-project {min-height:34px;padding:0 11px;font-size:.71rem;gap:4px;margin-left:auto}
 [data-menu-root] .menu {width:42px;height:42px;gap:6px}.menu i {width:22px}
 .js-nav [data-menu-root] nav {top:100%;left:10px;right:10px;border-radius:0 0 14px 14px;border-color:#303030;background:#111;padding:8px}
 [data-menu-root] .nav-group {width:100%}[data-menu-root] .nav-group>a {width:100%}
 [data-menu-root] .nav-panel,[data-menu-root] .nav-reveal {display:none}
}
@media(min-width:600px) and (max-height:520px) {.nav-shell,header.mast:has(.mast-inner) {top:6px}.nav-shell .mast,.mast-inner[data-menu-root] {min-height:42px;padding-block:2px}}


[data-menu-root] nav .motion-nav-mobile {display:none}
@media(max-width:599px){.js-nav [data-menu-root].open nav .motion-nav-mobile,html:not(.js-nav) [data-menu-root] nav .motion-nav-mobile {display:flex}}
