/* A straight menu above a single flowing celeste edge. */
.header{
 --menu-fill:var(--bg);
 top:0;margin:0;width:100%;max-width:none;min-height:90px;
 padding:0 6%;border-radius:0;isolation:isolate;
 background:var(--menu-fill);box-shadow:none
}
html[data-mode=light] .header{--menu-fill:var(--surface)}
.header:before{display:none}
.menu-edge{position:absolute;left:0;top:0;width:100%;height:120px;z-index:-1;pointer-events:none;overflow:hidden}
.menu-fill{fill:var(--menu-fill)}
.menu-celeste{fill:none;stroke:var(--blue);stroke-width:7;vector-effect:non-scaling-stroke}
.header>.brand,.header>.burger,.header-links>a,.header-links>.nav-button,.header-actions>.theme-toggle,.header-actions>.header-cta{transform:none;color:var(--text)}
.header-links>a:hover,.header-links>.nav-button[aria-expanded=true],.header-actions>.theme-toggle:hover,.header-actions>.header-cta:hover{color:var(--blue-ink)}
.mega-menu{top:calc(100% + 30px)}
.header:has(.mega-menu:not([hidden])):after{height:30px}
@media(max-width:1024px){
 .header{min-height:72px;padding-inline:24px}
 .menu-edge{height:100px}
 .menu-celeste{stroke-width:5}
 .burger i{background:var(--text)}
 .header-navigation{top:calc(100% + 28px);left:16px;right:16px;width:auto}
}



/* Centred chef emblem, compact after the opening scroll. */
.header{min-height:76px}
.menu-edge{height:96px;filter:drop-shadow(0 5px 5px #00000028)}
.menu-celeste{stroke-width:12}
.header-navigation{padding-left:0;display:grid;grid-template-columns:1fr 1fr;gap:160px}
.header-links{gap:18px}
.header-links>a,.header-links>.nav-button{padding:20px 0;font-size:15px}
.header-actions{justify-self:end;margin-left:0;gap:10px}
.menu-emblem{position:absolute;left:50%;top:4px;transform:translateX(-50%);width:112px;height:120px;z-index:2;filter:drop-shadow(0 5px 5px #00000035);transition:width .24s ease,height .24s ease,top .24s ease}
.menu-emblem svg{display:block;width:100%;height:100%}
.header.scrolled .menu-emblem{width:56px;height:60px;top:6px}
.mega-menu{top:calc(100% + 40px)}
.header:has(.mega-menu:not([hidden])):after{height:40px}
@media(max-width:1280px) and (min-width:1025px){.header-links{gap:12px}.header-links>a,.header-links>.nav-button{font-size:14px}.header-navigation{gap:130px}.header-cta,.theme-toggle{padding-inline:8px}}
@media(max-width:1024px){
 .header{min-height:64px}
 .menu-edge{height:80px}
 .menu-celeste{stroke-width:10}
 .menu-emblem{width:94px;height:100px;top:3px}
 .header.scrolled .menu-emblem{width:46px;height:50px;top:5px}
 .header-navigation{display:none;padding:20px}
 .header-navigation.open{display:flex;top:calc(100% + 40px)}
 .header-links>a,.header-links>.nav-button{font-size:16px;padding:14px 0}
 .header-links{gap:0}
 .header-actions{gap:8px}
}
@media(prefers-reduced-motion:reduce){.menu-emblem{transition:none}}

/* Mirrored fabric waves with an opaque upper panel and no rectangular overhang. */
.header{background:transparent}
.edge-mobile{display:none}
.menu-celeste{display:none}
.menu-edge{filter:drop-shadow(0 5px 5px #00000030)}
@media(max-width:1024px){.edge-desktop{display:none}.edge-mobile{display:block}}

/* A subtle translucent panel only once the menu is compact. */
.menu-fill{transition:fill .2s ease}
.header.scrolled .menu-fill{fill:color-mix(in srgb,var(--menu-fill) 94%,transparent)}
@media(prefers-reduced-motion:reduce){.menu-fill{transition:none}}

/* Compact phone navigation and smaller opening emblem. */
@media(max-width:700px){
 .header{min-height:52px;padding-inline:16px}
 .menu-edge{height:64px}
 .menu-emblem{width:62px;height:66px;top:2px}
 .header.scrolled .menu-emblem{width:36px;height:39px;top:4px}
 .burger{width:44px;height:44px}
 .header-navigation.open{top:calc(100% + 15px);padding:12px 18px;max-height:calc(100dvh - 82px)}
 .header-links>a,.header-links>.nav-button{padding:8px 0;min-height:44px;font-size:15px}
 .header-actions{margin-top:12px;gap:0}
 .header-cta,.theme-toggle{min-height:44px;font-size:15px;padding:6px 12px}
 .mega-menu{padding-bottom:12px}
 .menu-categories{gap:2px}
 .menu-categories .category-button{min-height:52px;padding:4px}
 .category-icon{width:36px;height:36px}
 .menu-content{padding:12px 0}
}

/* Desktop menu contracts smoothly after the opening scroll. */
@media(min-width:1025px){
 .header{transition:min-height .3s ease,padding .3s ease}
 .menu-edge{transition:height .3s ease}
 .header-links>a,.header-links>.nav-button{transition:padding .3s ease,color .2s ease}
 .header.scrolled{min-height:54px}
 .header.scrolled .menu-edge{height:70px}
 .header.scrolled .header-links>a,.header.scrolled .header-links>.nav-button{padding-block:8px}
 .header.scrolled .menu-emblem{width:39px;height:42px;top:4px}
 .header.scrolled .mega-menu{top:calc(100% + 20px)}
 .header.scrolled:has(.mega-menu:not([hidden])):after{height:20px}
}
@media(prefers-reduced-motion:reduce){.header,.menu-edge,.header-links>a,.header-links>.nav-button{transition:none}}

/* Fill the compact desktop menu vertically with the centred emblem. */
@media(min-width:1025px){
 .header.scrolled .menu-emblem{width:52px;height:56px;top:0;margin:0;padding:0}
}

@media(min-width:1025px){
 .header.scrolled .menu-emblem{width:49px;height:53px;top:3px}
}

/* Phones keep the opening menu, then smoothly reduce its footprint on scroll. */
@media(max-width:700px){
 .header{transition:min-height .3s ease}
 .menu-edge{transition:height .3s ease}
 .header.scrolled{min-height:44px}
 .header.scrolled .menu-edge{height:56px}
 .header.scrolled .menu-emblem{width:39px;height:42px;top:3px;margin:0;padding:0}
 .header.scrolled .header-navigation.open{top:calc(100% + 15px)}
}
@media(prefers-reduced-motion:reduce){.header,.menu-edge{transition:none}}

/* Let the emblem hang below an even slimmer scrolled phone bar. */
@media(max-width:700px){
 .header.scrolled{min-height:32px}
 .header.scrolled .menu-edge{height:44px}
 .header.scrolled .burger{position:absolute;right:16px;top:-6px;height:44px;width:44px}
 .header.scrolled .header-navigation.open{top:calc(100% + 20px)}
}

/* The desktop dropdown continues the upper menu, with the ribbon below it. */
.dropdown-edge{display:none}
@media(min-width:1025px){
 .header:has(.mega-menu:not([hidden])){background:var(--menu-fill)}
 .header:has(.mega-menu:not([hidden]))>.menu-edge{opacity:0}
 .header:has(.mega-menu:not([hidden])):after{display:none}
 .header .mega-menu,.header.scrolled .mega-menu{
  top:100%;left:0;right:0;width:100%;padding:28px 6% 44px;
  border-radius:0;background:transparent;box-shadow:none;
  max-height:none;overflow:visible;isolation:isolate
 }
 .mega-menu:before{content:'';position:absolute;top:0;bottom:40px;left:0;right:0;height:auto;background:var(--menu-fill);z-index:-1;pointer-events:none}
 .dropdown-edge{display:block;position:absolute;left:0;bottom:-18px;width:100%;height:96px;z-index:-1;pointer-events:none;overflow:visible;filter:none}
 .mega-menu .menu-body{max-height:calc(100dvh - 220px);overflow:auto;padding:2px 0}
 .menu-categories .category-button[aria-pressed=true]{background:color-mix(in srgb,var(--text) 6%,var(--menu-fill))}
 .menu-card{background:color-mix(in srgb,var(--text) 5%,var(--menu-fill))}
 .menu-edge{transition:height .3s ease,opacity .15s ease}
}
@media(prefers-reduced-motion:reduce){.menu-edge{transition:none}}

@media(min-width:1025px){.dropdown-edge .edge-desktop>path:nth-child(2){filter:drop-shadow(0 8px 8px #00000030)}}

/* Phone navigation opens as one continuous ribbon panel. */
.navigation-scroll{display:contents}
.navigation-edge{display:none}
@media(max-width:1024px){
 .header:has(.header-navigation.open){background:var(--menu-fill)}
 .header:has(.header-navigation.open)>.menu-edge{opacity:0}
 .header .header-navigation.open,.header.scrolled .header-navigation.open{
  top:100%;left:0;right:0;width:100%;padding:0 0 26px;
  border-radius:0;background:transparent;box-shadow:none;
  max-height:none;overflow:visible;isolation:isolate
 }
 .header-navigation.open:before{content:'';position:absolute;inset:0 0 18px;background:var(--menu-fill);z-index:-1;pointer-events:none}
 .navigation-scroll{display:block;padding:14px 24px 4px;max-height:calc(100dvh - 120px);overflow:auto;overscroll-behavior:contain}
 .header.scrolled .navigation-scroll{max-height:calc(100dvh - 88px)}
 .navigation-edge{display:block;position:absolute;left:0;bottom:-12px;width:100%;height:64px;z-index:-1;pointer-events:none;overflow:visible}
 .navigation-edge .ribbon-band{filter:drop-shadow(0 6px 6px #00000030)}
 .header-navigation.open .menu-fill{fill:var(--menu-fill)}
 .header .mega-menu{background:transparent}
 .header-actions{margin:12px 0 0}
 .menu-edge{transition:height .3s ease,opacity .15s ease}
}
@media(max-width:700px){
 .navigation-scroll{padding:12px 20px 4px}
 .menu-card-grid{gap:12px}
 .menu-card img{height:160px}
 .menu-card-photo{margin-bottom:12px}
}
@media(prefers-reduced-motion:reduce){.menu-edge{transition:none}}
/* Expand the mobile panel and its ribbon together, including on close. */
@media(max-width:1024px){
 .header .header-navigation,.header.scrolled .header-navigation{
  display:grid;grid-template-rows:0fr;top:100%;left:0;right:0;width:100%;
  padding:0;border-radius:0;background:transparent;box-shadow:none;
  max-height:none;overflow:visible;isolation:isolate;
  opacity:0;visibility:hidden;pointer-events:none;
  transition:grid-template-rows .4s cubic-bezier(.22,1,.36,1),padding-bottom .4s cubic-bezier(.22,1,.36,1),opacity .25s ease,visibility 0s .4s
 }
 .header .header-navigation.open,.header.scrolled .header-navigation.open{
  display:grid;grid-template-rows:1fr;padding-bottom:26px;
  opacity:1;visibility:visible;pointer-events:auto;transition-delay:0s
 }
 .header-navigation:before{content:'';position:absolute;inset:0 0 18px;background:var(--menu-fill);z-index:-1;pointer-events:none}
 .navigation-scroll{min-height:0}
 .header-navigation:not(.open) .navigation-scroll{overflow:hidden}
 .header-navigation .menu-fill{fill:var(--menu-fill)}
}

@media(max-width:1024px){.header .header-navigation{grid-template-columns:minmax(0,1fr);gap:0}}

@media(min-width:1025px){
 .mega-menu .menu-body{position:relative}
 .mega-menu:not([hidden]),.mega-menu .menu-content{animation:none}
 .mega-menu .menu-outgoing{position:absolute!important;pointer-events:none;animation:none;margin:0;z-index:1}
}
