/* Approved Figma menu 01: desktop 83:199, mobile 83:250. */
html:has(#menu-dialog[open]){overflow:hidden;scrollbar-gutter:auto}
body:has(#menu-dialog[open]){overflow:visible}
#menu-dialog{position:fixed;inset:0 0 0 auto;margin:0;width:min(570px,100%);max-width:100%;height:100dvh;max-height:100dvh;padding:40px 48px 90px;border:0;border-radius:0;background:var(--cream);color:var(--forest);overflow-y:auto;overscroll-behavior:contain;box-shadow:-16px 0 60px #08120f18}
#menu-dialog[open]{display:flex;flex-direction:column;animation:contact-in .65s cubic-bezier(.22,1,.36,1) both}
#menu-dialog::backdrop{background:rgb(35 53 44 / .64);backdrop-filter:none;animation:contact-backdrop-in .5s ease both}
#menu-dialog.is-closing{animation:contact-out .38s cubic-bezier(.4,0,.2,1) both;pointer-events:none}
#menu-dialog.is-closing::backdrop{animation:contact-backdrop-out .38s ease both}
#menu-dialog>*{flex-shrink:0}
.menu-drawer-header{display:flex;align-items:center;justify-content:space-between;gap:24px;min-height:79px}
.menu-drawer-wordmark{width:237px;height:auto;max-width:calc(100% - 68px)}
.menu-drawer-logo{display:none}
.menu-drawer-close{display:grid;place-items:center;flex:none;width:44px;height:44px;padding:0;border:0;border-radius:50%;background:none}
.menu-drawer-close:hover{background:#23352c0a}
#menu-dialog :is(a,button):is(:focus,:focus-visible){outline:none}
#menu-dialog .menu-drawer-links{display:flex;flex-direction:column;align-items:stretch;gap:0;margin-top:clamp(40px,calc(100dvh - 797px),103px)}
#menu-dialog .menu-drawer-links a{display:flex;align-items:center;justify-content:space-between;gap:24px;min-height:89px;border-bottom:1px solid #23352c2e;font-family:var(--serif);font-weight:300;font-size:52px;line-height:1.08;letter-spacing:-.05em}
.menu-drawer-links a>span:first-child{transition:transform .25s ease}
.menu-drawer-links a:hover>span:first-child{transform:translateX(5px)}
.menu-drawer-links .menu-number{font:400 12px/1.45 var(--sans);letter-spacing:0;opacity:.55}
.menu-drawer-footer{display:flex;flex-direction:column;align-items:center;gap:24px;margin-top:clamp(48px,calc(100dvh - 764px),136px)}
#menu-dialog .menu-contact{display:flex;align-items:center;justify-content:center;width:100%;min-height:52px;padding:12px 24px;border-radius:100px;background:var(--forest);color:var(--cream);font:400 14px/1.45 var(--sans);transition:background .2s}
#menu-dialog .menu-contact:hover{background:#344b3f}
.menu-back{font:400 14px/1.45 var(--sans)}
.menu-back:hover{text-decoration:underline;text-underline-offset:4px}
@media(max-width:760px){
 #menu-dialog{width:100%;padding:20px 32px max(32px,env(safe-area-inset-bottom))}
 .menu-drawer-header{min-height:92px}
 .menu-drawer-wordmark{display:none}
 .menu-drawer-logo{display:block;width:78.4px;height:auto}
 #menu-dialog .menu-drawer-links{margin-top:54px}
 #menu-dialog .menu-drawer-links a{min-height:73px;font-size:42px}
 .menu-drawer-footer{margin-top:clamp(48px,calc(100dvh - 652px),192px)}
}
@media(prefers-reduced-motion:reduce){#menu-dialog[open],#menu-dialog.is-closing,#menu-dialog::backdrop,#menu-dialog.is-closing::backdrop{animation:none}.menu-drawer-links a:hover>span:first-child{transform:none}}

/* Six entries fit the available viewport, including the lower actions. */
#menu-dialog{padding:clamp(8px,2.8dvh,28px) clamp(24px,4vw,40px) max(clamp(8px,2.8dvh,28px),env(safe-area-inset-bottom))}
#menu-dialog .menu-drawer-header{min-height:44px;height:clamp(44px,8dvh,70px);flex:0 0 auto;gap:16px}
#menu-dialog .menu-drawer-wordmark{width:200px;max-height:100%;object-fit:contain;object-position:left center}
#menu-dialog .menu-drawer-logo{width:auto;height:100%;max-height:70px}
#menu-dialog .menu-drawer-links{display:grid;grid-template-rows:repeat(7,minmax(0,1fr));flex:1 1 auto;min-height:0;margin-top:clamp(8px,2.5dvh,24px)}
#menu-dialog .menu-drawer-links :is(a,button){display:flex;align-items:center;justify-content:space-between;gap:12px;width:100%;min-height:0;padding:0;border:0;border-bottom:1px solid #23352c2e;background:none;color:inherit;font-family:var(--serif);font-weight:300;font-size:clamp(20px,min(4.8dvh,7.6vw),40px);line-height:1.08;letter-spacing:-.05em;text-align:left;text-decoration:none}
#menu-dialog .menu-drawer-links :is(a,button)>span:first-child{transition:transform .25s ease}
#menu-dialog .menu-drawer-links :is(a,button):hover>span:first-child{transform:translateX(5px)}
#menu-dialog .menu-drawer-footer{flex:0 0 auto;gap:clamp(4px,1.3dvh,12px);margin-top:clamp(8px,2.5dvh,24px)}
#menu-dialog .menu-contact{min-height:44px;height:44px;padding:8px 16px}
#menu-dialog .menu-back{display:flex;align-items:center;min-height:24px;font-size:13px;line-height:1.3}
body.home-page #header nav button{font:inherit;letter-spacing:inherit;padding:0;min-height:44px;white-space:nowrap;text-decoration:none}
@media(min-width:761px) and (max-width:1100px){body.home-page #header nav{gap:clamp(12px,2vw,22px);font-size:14px}}
@media(prefers-reduced-motion:reduce){#menu-dialog .menu-drawer-links :is(a,button):hover>span:first-child{transform:none}}

/* All six destinations remain readable in the homepage navbar. */
@media(min-width:1101px){body.home-page #header nav{gap:24px}}
@media(min-width:761px) and (max-width:1100px){body.home-page #header nav{top:92px;left:var(--site-gutter);width:calc(100% - var(--site-gutter) * 2);gap:16px;justify-content:center;transform:translate3d(0,calc(-8px * var(--dock)),0)}}
/* Mobile navbar stays in one row; content measurement chooses the hamburger. */
@media(max-width:760px){
 body.home-page #header{height:105px}
 body.home-page #header nav{display:flex;flex-wrap:nowrap;top:26px;left:calc(var(--site-gutter) + 64px);width:max-content;height:44px;gap:12px;justify-content:flex-start;font-size:14px;transform:translate3d(0,calc(-8px * var(--dock)),0)}
 body.home-page #header nav :is(a,button){display:flex;align-items:center;flex:none;min-height:44px;white-space:nowrap}
 body.home-page #header.nav-compact nav{visibility:hidden;pointer-events:none}
 body.home-page #header.nav-compact .header-actions{width:70px}
 body.home-page #header.nav-compact .header-cta{visibility:hidden;pointer-events:none}
 body.home-page #header.nav-compact .menu-toggle{transform:none}
}
