/* Shared header for every page: logo, sound, gold "Book a table" and one square menu box; always pinned.
   Its colours follow what is under it (each page sets is-dark / is-light / is-photo / is-scrolled). */
/* ---------- header: logo, gold button, one square menu box ---------- */
.hdr--box .hdr__book { margin-left: auto; }
.hdr__box { position: relative; width: 46px; height: 46px; padding: 0; border: 0; border-radius: 3px; background: var(--cream); color: var(--night); cursor: pointer; transition: background .3s; }
.hdr__box:hover, .hdr__box:focus-visible { background: var(--gold); }
.hdr__box i { position: absolute; left: 14px; height: 2px; border-radius: 1px; background: currentColor; transition: transform .5s var(--ease), width .5s var(--ease), top .5s var(--ease); }
.hdr__box i:first-child { top: 18px; width: 12px; left: 20px; }
.hdr__box i:last-child { top: 26px; width: 18px; }
.hdr__box[aria-expanded="true"] i:first-child { top: 22px; left: 14px; width: 18px; transform: rotate(45deg); }
.hdr__box[aria-expanded="true"] i:last-child { top: 22px; transform: rotate(-45deg); }

/* ---------- the menu: big links left, one large picture right that follows the link under the pointer ---------- */
.gmenu { position: fixed; z-index: 35; inset: 0; display: grid; grid-template-columns: 1fr; overflow: hidden; gap: var(--gut);
  padding: clamp(96px, 15vh, 128px) var(--gut) clamp(28px, 6vh, 56px); background: var(--night); color: var(--cream);
  clip-path: inset(0 0 100% 0); visibility: hidden; transition: clip-path .7s var(--ease), visibility 0s .7s; }
.gmenu.is-open { clip-path: inset(0 0 0 0); visibility: visible; transition: clip-path .7s var(--ease); }
.gmenu__main { display: flex; flex-direction: column; justify-content: flex-end; min-width: 0; }
.gmenu__nav { display: grid; gap: 2px; justify-items: start; }
.gmenu__nav a { display: flex; align-items: flex-start; gap: 16px; font: 900 min(7.2vw, 12vh, 124px)/.98 var(--sans); letter-spacing: -.03em; text-transform: uppercase; text-decoration: none; color: var(--cream);
  opacity: 0; translate: 0 30px; transition: opacity .6s var(--ease-out), translate .6s var(--ease-out); }
.gmenu__nav a small { font: 700 12px/1 var(--sans); letter-spacing: 0; color: var(--gold); margin-top: .7em; min-width: 18px; }
.gmenu__nav a > span { position: relative; display: block; transition: color .35s; }
/* the active word steps back and the gold line runs across it */
.gmenu__nav a.is-on > span { color: rgba(241, 231, 214, .42); }
.gmenu__line { position: absolute; left: -3%; top: 4%; width: 106%; height: 100%; overflow: visible; pointer-events: none; }
.gmenu__line path { fill: none; stroke: var(--gold); stroke-width: max(3.5px, .058em); stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 1 1; stroke-dashoffset: 1; }
.gmenu.is-open .gmenu__nav a { opacity: 1; translate: none; }
.gmenu.is-open .gmenu__nav a:nth-child(1) { transition-delay: .25s; } .gmenu.is-open .gmenu__nav a:nth-child(2) { transition-delay: .32s; }
.gmenu.is-open .gmenu__nav a:nth-child(3) { transition-delay: .39s; } .gmenu.is-open .gmenu__nav a:nth-child(4) { transition-delay: .46s; }

/* under the links: the laurel badge, then tonight's hours and the ways to reach us */
.gmenu__badge, .gmenu__talk { opacity: 0; translate: 0 16px; transition: opacity .6s var(--ease-out), translate .6s var(--ease-out); }
.gmenu.is-open .gmenu__badge { opacity: 1; translate: none; transition-delay: .55s; }
.gmenu.is-open .gmenu__talk { opacity: 1; translate: none; transition-delay: .62s; }
.gmenu__badge { display: flex; align-items: center; gap: 14px; margin: clamp(22px, 5vh, 48px) 0 clamp(18px, 4vh, 36px) 34px; }
.gmenu__wreath { position: relative; display: grid; place-items: center; width: 96px; aspect-ratio: 120 / 56; color: var(--gold); flex: none; }
.gmenu__wreath svg { position: absolute; inset: 0; width: 100%; height: 100%; }
.gmenu__wreath .mark { font-size: 24px; margin-top: 4px; }
.gmenu__badge p { display: grid; gap: 6px; }
.gmenu__badge b { font: 700 13px/1 var(--serif); letter-spacing: .22em; text-transform: uppercase; color: var(--cream); }
.gmenu__badge p span { font: 600 12px/1 var(--sans); color: rgba(241, 231, 214, .55); }
.gmenu__badge p span em { font-style: normal; color: var(--gold); }
.gmenu__talk { display: grid; gap: 12px; margin-left: 34px; }
.gmenu__open { font: 500 14px/1.4 var(--sans); color: rgba(241, 231, 214, .7); }
.gmenu__links { display: flex; flex-wrap: wrap; gap: 6px 30px; }
.gmenu__links a { position: relative; padding: 6px 0; font: 800 14px/1 var(--sans); letter-spacing: .04em; text-transform: uppercase; text-decoration: none; color: var(--cream); transition: color .3s; }
.gmenu__links a:hover, .gmenu__links a:focus-visible { color: var(--gold); }

/* the picture wall: four real photos in two staggered columns, one warm monochrome so they read as one set;
   the columns drift up and down against each other with the pointer, the photo of the active link takes its colour back */
.gmenu__wall { --s: min(20.5vw, 46vh); --wg: calc(var(--s) * .16); position: absolute; top: calc(50% + 5vh); right: var(--gut); translate: 0 -50%; display: flex; gap: var(--wg); pointer-events: none; }
.gmenu__col { display: grid; gap: var(--wg); align-content: start; opacity: 0; translate: 0 14vh; transition: opacity .5s, translate 0s .7s; will-change: transform; }
.gmenu__col:nth-child(2) { margin-top: calc(var(--s) * .45); translate: 0 -14vh; }
.gmenu.is-open .gmenu__col { opacity: 1; translate: none; transition: opacity .8s var(--ease-out) .2s, translate 1.1s var(--ease) .15s; }
.gmenu.is-open .gmenu__col:nth-child(2) { transition-delay: .3s, .25s; }
.gmenu__tile { width: var(--s); aspect-ratio: 1 / 1.03; overflow: hidden; border-radius: 2px; background: var(--night-2); }
.gmenu__tile img { display: block; width: 100%; height: 118%; margin-top: -9%; object-fit: cover; will-change: transform;
  filter: grayscale(1) sepia(.32) brightness(.78) contrast(1.08); transition: filter .6s var(--ease-out); }
.gmenu__tile.is-on img { filter: none; }

/* the page change: the loader's gilded pharaoh fills, then the next page opens through it */
.pageload { opacity: 0; transition: opacity .35s; }
.pageload.is-in { opacity: 1; }
.pageload .loader__foot { letter-spacing: .2em; text-transform: uppercase; color: rgba(241, 231, 214, .7); }
html.msx-arrive body::after { content: ""; position: fixed; inset: 0; z-index: 99; background: var(--night); }

/* the header over the open menu is always cream on night, whatever page it is on */
body.menu-open .hdr--box { color: var(--cream) !important; }
body.menu-open .hdr--box .hdr__brand { filter: none; }
body.menu-open .hdr--box .hdr__box { background: var(--cream); color: var(--night); }
body.menu-open .hdr--box .hdr__book { background: var(--gold); border-color: var(--gold); color: var(--gold-ink); }

/* phones (temporary): no picture, the links and contacts stacked */
@media (max-width: 767px) {
  .gmenu { grid-template-columns: 1fr; }
  .gmenu__wall { display: none; }
  .gmenu__nav a { font-size: 13vw; gap: 10px; }
  .gmenu__badge, .gmenu__talk { margin-left: 28px; }
  .gmenu__links { gap: 6px 20px; }
}
body.menu-open { overflow: hidden; }

/* always pinned; ink over the gold before the footer, a soft wash over photos */
.hdr--box { transition: color .4s, background .4s; }
.hdr--box .hdr__sound { margin-left: auto; }
.hdr--box .hdr__book { margin-left: 0; }
.hdr--box.is-light { color: var(--papyrus-ink); }
.hdr--box.is-light .hdr__box { background: var(--night); color: var(--cream); }
.hdr--box.is-light .hdr__book { background: var(--night); border-color: var(--night); color: var(--gold); }
/* Home: ink on the light sand */
.hdr--box:not(.is-dark) .hdr__box { background: var(--night); color: var(--cream); }
.hdr--box.is-dark .hdr__box, .page-girls .hdr__box { background: var(--cream); color: var(--night); }
.hdr--box.is-light .hdr__box { background: var(--night); color: var(--cream); }
/* no bar behind the header: only the logo and the buttons stay pinned, with a soft shadow so they read on any ground */
.hdr--box { background: none !important; }
.hdr--box .hdr__brand { filter: drop-shadow(0 1px 6px rgba(13, 10, 8, .45)); }
.hdr--box:not(.is-dark) .hdr__brand, .hdr--box.is-light .hdr__brand { filter: none; }
