/* The shared top bar and menu, on every page: templates/menu.html, this file, menu/menu.js.
   Alex's handoff (design_handoff_site_menu: layout, proportions, timings, easing and interactions) skinned in the Atlas system:
   night ground, oxblood and paper panels, gold only on dark grounds, Cormorant Garamond at 24px and up, DM Sans for UI, DM Mono
   for labels and numerals, the Ridge wordmark. Self-contained: every token falls back to its Atlas value, so a page only has to
   load the fonts and set --nav-h (76px, 64px at 900px and under), which the bar's height and the overlay's top follow.
   The bar keeps the site's ground logic: page scripts set data-theme (dark / light), .is-past (the scrim past the first screen),
   .is-hidden (away on scroll down) and, on the Work page, data-terr. html.l29m-open is set from open until the close has finished;
   the bar wears the menu's dark skin while .l29m is .is-dark (from the open until the overlay starts to fade on the close, 400ms in),
   and hands back to its page's skin as the overlay fades. */
.l29m {
  --m-night: var(--night, #24050A);
  --m-ground: var(--foundation, #431B23);
  --m-ground-2: var(--foundation-2, #55252F);
  --m-paper: var(--paper, #E9DECA);
  --m-paper-2: var(--paper-2, #E1D3BB);
  --m-metal: var(--metal, #C9A570);
  --m-ink: var(--ink, #1E1517);
  --m-ink-2: var(--ink-2, #57494A);
  --m-2: var(--on-dark-2, rgba(233, 222, 202, .84));
  --m-rule: var(--rule-dark, rgba(233, 222, 202, .2));
  --m-rule-2: var(--rule-dark-2, rgba(233, 222, 202, .34));
  --m-rule-ink: var(--rule, rgba(30, 21, 23, .16));
  --m-rule-ink-2: var(--rule-strong, rgba(30, 21, 23, .32));
  --m-stroke: var(--stroke-dark, rgba(201, 165, 112, .22));
  --m-glass: var(--glass-dark, rgba(36, 5, 10, .55));                 /* night at .55: the Menu pill over a hero */
  --m-side: linear-gradient(var(--m-glass), var(--m-glass)) var(--m-ground);   /* night .55 over foundation = #320F15 */
  --m-display: var(--display, "Cormorant Garamond", "Cormorant", Garamond, "Times New Roman", serif);
  --m-sans: var(--sans, "DM Sans", system-ui, -apple-system, "Segoe UI", Helvetica, Arial, sans-serif);
  --m-mono: var(--mono, "DM Mono", ui-monospace, SFMono-Regular, Menlo, Consolas, monospace);
  --m-out: cubic-bezier(.2, .7, .2, 1);   /* the handoff's two curves */
  --m-io: cubic-bezier(.7, 0, .2, 1);
  --m-h: var(--nav-h, 76px);
  --m-top: env(safe-area-inset-top, 0px);
  --m-link: clamp(44px, min(5vw, 7.4vh), 96px);   /* the six names (8.6vh held five; at 7.4vh six rows take about the same height, so the links and the booking card still rest in the frame) */
}
.l29m *, .l29m *::before, .l29m *::after { box-sizing: border-box; }
.l29m a:focus-visible, .l29m button:focus-visible { outline: 2px solid var(--m-ring, var(--m-metal)); outline-offset: 3px; }

/* ---------- The bar: transparent over a dark first screen, a scrim past it, paper glass over light sections ---------- */
.l29m__bar {
  /* the skin: dark (the default, and always while the menu is open) */
  --m-fg: var(--m-paper); --m-ring: var(--m-metal); --m-sweep: var(--m-metal); --m-where: var(--m-2);
  --m-book: var(--m-paper); --m-book-fg: var(--m-ink); --m-book-fill: var(--m-metal); --m-book-hover: var(--m-ink);
  --m-tog: var(--m-glass); --m-tog-ring: var(--m-rule-2); --m-tog-fg: var(--m-paper); --m-tog-fill: var(--m-paper); --m-tog-hover: var(--m-ink);
  position: fixed; inset: 0 0 auto; z-index: 60; padding-top: var(--m-top);
  color: var(--m-fg); background-color: transparent;
  transition: transform .6s var(--m-out), background-color .45s var(--m-out), color .45s var(--m-out), box-shadow .45s var(--m-out);
}
.l29m:not(.is-dark) .l29m__bar.is-past:not([data-theme="light"]) { background-color: rgba(67, 27, 35, .92); box-shadow: 0 1px 0 var(--m-rule); }   /* foundation .92, no blur */
.l29m:not(.is-dark) .l29m__bar.is-past[data-terr="night"]:not([data-theme="light"]) { background-color: rgba(36, 5, 10, .9); }   /* the Work page's night territories */
.l29m:not(.is-dark) .l29m__bar[data-theme="light"], html:not(.js) .l29m__bar {
  --m-fg: var(--m-ink); --m-ring: var(--m-ground); --m-sweep: var(--m-ground); --m-where: var(--m-ink-2);
  --m-book: var(--m-ground); --m-book-fg: var(--m-paper); --m-book-fill: var(--m-ground-2); --m-book-hover: var(--m-paper);
  --m-tog: transparent; --m-tog-ring: var(--m-rule-ink-2); --m-tog-fg: var(--m-ink); --m-tog-fill: var(--m-ground); --m-tog-hover: var(--m-paper);
  background-color: rgba(233, 222, 202, .9); -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px);
  box-shadow: 0 1px 0 var(--m-rule-ink), 0 8px 24px rgba(30, 21, 23, .06);
}
html:not(.js) .l29m__bar { background-color: rgba(233, 222, 202, .92); }   /* without JS nothing themes the bar: paper keeps it legible everywhere */
/* touch screens: no blur behind the paper bar (Safari samples and blurs what passes under a fixed bar again on every frame of a
   scroll, and while its own toolbar folds away); the paper is solid instead, so nothing scrolls into view sharp under it */
@media (pointer: coarse) {
  .l29m:not(.is-dark) .l29m__bar[data-theme="light"], html:not(.js) .l29m__bar { -webkit-backdrop-filter: none; backdrop-filter: none; background-color: rgb(233, 222, 202); }
}
/* the case studies open on photographs: a night veil under the bar's first screen keeps the wordmark and the line legible */
.l29m__bar[data-veil]::before {
  content: ""; position: absolute; z-index: -1; left: 0; right: 0; top: 0; height: calc(var(--m-h) + 48px + var(--m-top));
  background: linear-gradient(180deg, rgba(36, 5, 10, .6), rgba(36, 5, 10, 0)); pointer-events: none; transition: opacity .45s var(--m-out);
}
.l29m__bar[data-veil].is-past::before, .l29m.is-dark .l29m__bar::before { opacity: 0; }
html:not(.js) .l29m__bar[data-veil]::before { display: none; }   /* without JS the bar is paper (above): no veil to muddy it */
.l29m__bar.is-hidden { transform: translateY(-105%); }
.l29m__bar:focus-within, html.l29m-open .l29m__bar { transform: none; }

.l29m__in {
  display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 24px; height: var(--m-h);
  padding: 0 max(clamp(16px, 2.4vw, 36px), env(safe-area-inset-right, 0px)) 0 max(clamp(16px, 2.4vw, 36px), env(safe-area-inset-left, 0px));
}

/* The wordmark: the Ridge and LATITUDE 29. Hover and keyboard focus sweep a gold copy in from the left over a 1px rule.
   LATITUDE 29 is the supplied lettering (the build inlines it, never type): its box runs from the cap line to the baseline, so it
   centres on the Ridge as the caps of the type did, and the 9's tail hangs below it without moving the bar */
.l29m .brand { position: relative; justify-self: start; display: inline-flex; align-items: center; gap: 12px; min-height: 44px; padding: 8px 0; color: inherit; text-decoration: none; }
.l29m .brand svg { flex: none; width: 40px; height: auto; overflow: visible; }
.l29m .brand path { fill: none; stroke: currentColor; stroke-width: 18; stroke-linecap: round; }
.l29m .brand .brand__word, .l29m .l29m__sweep .l29m__word { width: 130px; }   /* 17px caps */
.l29m .brand :is(.brand__word, .l29m__word) path { fill: currentColor; stroke: none; }
.l29m__sweep {
  position: absolute; inset: 8px 0; display: flex; align-items: center; gap: 12px; color: var(--m-sweep);
  clip-path: inset(0 100% 0 0); transition: clip-path .7s var(--m-io); pointer-events: none;
}
.l29m__rule { position: absolute; left: 0; bottom: 0; width: 100%; height: 1px; background: var(--m-sweep); transform: scaleX(0); transform-origin: 0 50%; transition: transform .7s var(--m-io) .05s; pointer-events: none; }
.l29m .brand:focus-visible .l29m__sweep { clip-path: inset(0); }
.l29m .brand:focus-visible .l29m__rule { transform: scaleX(1); }
@media (hover: hover) {
  .l29m .brand:hover .l29m__sweep { clip-path: inset(0); }
  .l29m .brand:hover .l29m__rule { transform: scaleX(1); }
}

/* The line in the middle. The homepage's hero carries the same words right under the bar, so there it waits until the hero has gone */
.l29m__where {
  grid-column: 2; margin: 0; color: var(--m-where); white-space: nowrap;
  font: 500 12px/16px var(--m-mono); letter-spacing: .08em; text-transform: uppercase;
  transition: color .45s var(--m-out), opacity .45s var(--m-out), visibility .45s;
}
.l29m:not(.is-dark) .l29m__bar[data-hero][data-theme="dark"]:not(.is-past) .l29m__where, html:not(.js) .l29m__bar[data-hero] .l29m__where { opacity: 0; visibility: hidden; }

/* ---------- The two pills: a circle grows from where the pointer came in, the label rolls, magnetic on fine pointers ---------- */
.l29m__acts { grid-column: 3; justify-self: end; display: flex; align-items: center; gap: 8px; }
.l29m .l29m__pill {
  position: relative; display: inline-flex; align-items: center; justify-content: center; flex: none; height: 44px; margin: 0; border: 0; border-radius: var(--r-pill, 999px);
  overflow: hidden; isolation: isolate; white-space: nowrap; text-decoration: none; cursor: pointer; -webkit-tap-highlight-color: transparent;
  font: 500 15px/20px var(--m-sans); letter-spacing: .005em;
  transform: translate(var(--mag-x, 0px), var(--mag-y, 0px));   /* menu.js sets the magnetic pull */
  transition: transform .35s var(--m-out), gap .45s var(--m-out), color .4s, background-color .3s, box-shadow .3s;
}
.l29m__fill { position: absolute; z-index: -1; left: var(--fill-x, 50%); top: var(--fill-y, 50%); border-radius: 50%; pointer-events: none; transform: translate(-50%, -50%) scale(0); transition: transform .6s var(--m-out); }
.l29m__pill.is-hovered .l29m__fill, .l29m__pill:focus-visible .l29m__fill { transform: translate(-50%, -50%) scale(1); }
.l29m__pill:focus-visible:not(.is-hovered) .l29m__fill { left: 50%; top: 50%; }   /* a keyboard fill grows from the centre, and stays whole when the pointer leaves */
.l29m__mask { display: block; height: 20px; line-height: 20px; overflow: hidden; }
.l29m__roll { display: flex; flex-direction: column; }
.l29m__roll > span { display: block; height: 20px; }

.l29m__book { gap: 0; padding: 0 22px; background-color: var(--m-book); color: var(--m-book-fg); }
.l29m__book .l29m__fill { width: 520px; height: 520px; background: var(--m-book-fill); }
.l29m__book .l29m__roll { transition: transform .55s var(--m-io); }
.l29m__arrow { display: flex; width: 0; overflow: hidden; transition: width .45s var(--m-out); }
.l29m__arrow svg { flex: none; width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 1.6; transform: translateX(-14px); transition: transform .55s var(--m-out); }
.l29m__book:is(.is-hovered, :focus-visible) { gap: 10px; color: var(--m-book-hover); }
.l29m__book:is(.is-hovered, :focus-visible) .l29m__roll { transform: translateY(-20px); }
.l29m__book:is(.is-hovered, :focus-visible) .l29m__arrow { width: 16px; }
.l29m__book:is(.is-hovered, :focus-visible) .l29m__arrow svg { transform: none; }

.l29m__toggle { gap: 12px; padding: 0 20px 0 18px; background-color: var(--m-tog); color: var(--m-tog-fg); box-shadow: inset 0 0 0 1px var(--m-tog-ring); }
.l29m.is-dark .l29m__toggle { background-color: var(--m-ground); }
.l29m__toggle .l29m__fill { width: 360px; height: 360px; background: var(--m-tog-fill); }
.l29m__toggle:is(.is-hovered, :focus-visible) { color: var(--m-tog-hover); }
.l29m__toggle .l29m__mask { min-width: 44px; }
.l29m__toggle .l29m__roll { transition: transform .45s var(--m-out); }
.l29m.is-open .l29m__toggle .l29m__roll { transform: translateY(-20px); }
.l29m__icon { position: relative; display: block; flex: none; width: 16px; height: 10px; transition: transform .6s var(--m-out); }
.l29m__icon i { position: absolute; left: 0; top: 1px; width: 16px; height: 1.5px; background: currentColor; transition: top .45s var(--m-out), left .45s var(--m-out), width .45s var(--m-out), transform .45s var(--m-out); }
.l29m__icon i + i { top: 7.5px; }
.l29m:not(.is-open) .l29m__toggle.is-hovered .l29m__icon i + i { left: 7px; width: 9px; }
.l29m.is-open .l29m__icon i, .l29m__shut .l29m__icon i { top: 4px; transform: rotate(45deg); }
.l29m.is-open .l29m__icon i + i, .l29m__shut .l29m__icon i + i { transform: rotate(-45deg); }
.l29m.is-open .l29m__toggle.is-hovered .l29m__icon { transform: rotate(90deg); }

/* without JS the toggle is a link to the menu (#menu:target shows it, resolved) and, while it shows, a link back out */
html:not(.js) [data-l29m-toggle], .l29m .l29m__shut, .l29m:has(.l29m__menu:target) .l29m__open { display: none; }
.l29m:has(.l29m__menu:target) .l29m__shut { display: inline-flex; }
html:not(.js) .l29m:has(.l29m__menu:target) .l29m__bar {   /* over the menu: the dark skin, as when it opens with JS */
  --m-fg: var(--m-paper); --m-ring: var(--m-metal); --m-sweep: var(--m-metal); --m-where: var(--m-2);
  --m-book: var(--m-paper); --m-book-fg: var(--m-ink); --m-book-fill: var(--m-metal); --m-book-hover: var(--m-ink);
  --m-tog: var(--m-ground); --m-tog-ring: var(--m-rule-2); --m-tog-fg: var(--m-paper);
  background-color: transparent; -webkit-backdrop-filter: none; backdrop-filter: none; box-shadow: none;
}

/* ---------- The menu: three panels on night, each revealed bottom-up; links rise out of their masks ---------- */
.l29m__menu {
  position: fixed; inset: 0; z-index: 55;
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.3fr) minmax(0, .72fr); gap: 12px;
  grid-template-rows: minmax(max-content, 1fr);   /* the panels fill the screen; in a window too short for them (or at high zoom) they grow and the menu scrolls */
  padding: 0 max(12px, env(safe-area-inset-right, 0px)) max(12px, env(safe-area-inset-bottom, 0px)) max(12px, env(safe-area-inset-left, 0px));
  border-top: calc(var(--m-h) + 12px + var(--m-top)) solid var(--m-night);   /* the room under the bar is a border, not padding: where the menu scrolls, nothing passes under the bar */
  background: var(--m-night); color: var(--m-paper);
  overflow-y: auto; overscroll-behavior: contain;
  opacity: 0; transition: opacity .4s ease .4s;
}
.l29m__menu[hidden] { display: none; }
.l29m.is-open .l29m__menu { opacity: 1; transition: opacity .35s ease; }
/* the close: the bar keeps the menu's dark skin while the overlay is opaque (menu.js lifts .is-dark 400ms in), then crossfades to
   its page's skin on the overlay's own fade, the pills' fills with it */
@media (prefers-reduced-motion: no-preference) {
  .l29m.is-closing .l29m__bar { transition: transform .6s var(--m-out), background-color .4s ease, color .4s ease, box-shadow .4s ease; }
  .l29m.is-closing .l29m__bar::before { transition: opacity .4s ease; }
  .l29m.is-closing .l29m__where { transition: color .4s ease, opacity .4s ease, visibility .4s; }
  .l29m.is-closing .l29m__pill { transition: transform .35s var(--m-out), gap .45s var(--m-out), color .4s ease, background-color .4s ease, box-shadow .4s ease; }
  .l29m.is-closing .l29m__fill { transition: transform .6s var(--m-out), background-color .4s ease; }
}
.l29m__panel {
  position: relative; min-width: 0; min-height: 0; overflow: hidden; border-radius: var(--r-md, 12px);
  clip-path: inset(100% 0 0 0 round 12px); transition: clip-path .6s var(--m-io) var(--out, 0s);
}
.l29m.is-open .l29m__panel { clip-path: inset(0 round 12px); transition: clip-path 1s var(--m-io) var(--in, 0s); }

/* Panel 1: the six links and the booking card, on oxblood with the plate's gold hairline */
.l29m__main { --in: 0s; --out: .1s; display: flex; flex-direction: column; background: var(--m-ground); box-shadow: inset 0 0 0 1px var(--m-stroke); }
.l29m__links { flex: 1; min-height: 0; display: flex; flex-direction: column; justify-content: center; gap: clamp(2px, 1vh, 10px); padding: clamp(24px, 4vh, 48px) clamp(28px, 3.4vw, 56px); }
.l29m__link { display: flex; align-items: flex-start; flex: none; overflow: hidden; margin: 0 -10px; padding: 0 10px .06em; color: var(--m-paper); text-decoration: none; font: 500 var(--m-link)/1 var(--m-display); letter-spacing: -.015em; }
.l29m .l29m__link:focus-visible { outline-offset: -2px; }   /* the row is a mask: the ring stays inside it, 8px clear of the numeral */
.l29m__step { display: flex; align-items: flex-start; gap: 18px; transform: translateY(110%); transition: transform .4s var(--m-io); }
.l29m.is-open .l29m__step { transform: none; transition: transform 1s var(--m-out) calc(.35s + var(--i, 0) * .07s); }
.l29m__n { position: relative; flex: none; padding-top: calc(var(--m-link) * .19 - 2px); color: var(--m-metal); font: 500 12px/1 var(--m-mono); letter-spacing: .04em; }   /* the numeral's top on the name's cap height */
.l29m__link[aria-current] .l29m__n::after { content: ""; position: absolute; left: 50%; top: calc(100% + 8px); width: 6px; height: 6px; margin-left: -3px; border-radius: 50%; background: var(--m-metal); }
.l29m__name { transition: transform .5s var(--m-out), opacity .4s; }
.l29m__links.has-hi .l29m__link:not(.is-hi) .l29m__name { opacity: .45; }   /* 3.4:1, still legible; the numerals stay gold */
.l29m__link.is-hi .l29m__name { transform: translateX(14px); }
.l29m__booking { flex: none; padding: 12px; border-top: 1px solid var(--m-rule); }
/* The booking card: a warm disc rises from where the pointer came in until the card is sand, and sets toward where it leaves
   (menu.js places it: --fill-x, --fill-y and --fill-r, which reaches the farthest corner). The disc is a circle clipped out of a
   sand layer the card's own size, so nothing ever paints past the card's edge. The card gives by a hair, the title eases toward
   the disc and the arrow turns from -45deg to level, as the site's other discs do. Keyboard focus fills from the centre; a tap
   gives a short press (.is-pressed), never a hover that stays. The text deepens with its ground, so it reads at least as
   strongly on sand as it does on paper */
.l29m .l29m__card {
  --m-sand: #E2D0B1;   /* paper a step deeper, touched with gold */
  position: relative; isolation: isolate;
  display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; min-height: clamp(120px, 20vh, 190px); padding: clamp(22px, 2.4vw, 34px);
  border-radius: var(--r-sm, 8px); background: var(--m-paper); color: var(--m-ground); text-decoration: none; -webkit-tap-highlight-color: transparent;
  transition: transform .7s var(--m-out);
}
.l29m__card-fill {
  position: absolute; z-index: -1; inset: 0; border-radius: inherit; background: var(--m-sand); pointer-events: none;
  clip-path: circle(0px at var(--fill-x, 50%) var(--fill-y, 50%)); transition: clip-path .7s var(--m-out);
}
.l29m__card:is(.is-hovered, .is-pressed, :focus-visible) .l29m__card-fill { clip-path: circle(var(--fill-r, 75%) at var(--fill-x, 50%) var(--fill-y, 50%)); }
.l29m__card:focus-visible:not(.is-hovered, .is-pressed) .l29m__card-fill { clip-path: circle(var(--fill-r, 75%) at 50% 50%); }   /* 75%: past the corners from the centre */
.l29m .l29m__card:is(.is-hovered, .is-pressed, :focus-visible) { transform: scale(.985); }
.l29m__card-t { display: flex; flex-direction: column; gap: 10px; }
.l29m__note { color: var(--m-ink-2); font: 500 12px/16px var(--m-mono); letter-spacing: .08em; text-transform: uppercase; transition: color .7s var(--m-out); }
.l29m__title { font: 500 clamp(30px, 2.8vw, 46px)/1 var(--m-display); letter-spacing: -.015em; text-wrap: balance; transition: transform .7s var(--m-out), color .7s var(--m-out); }
.l29m__card:is(.is-hovered, .is-pressed, :focus-visible) .l29m__note { color: #46393B; }   /* ink-2 a third of the way to ink: 7.3:1 on sand (6.4:1 at rest) */
.l29m__card:is(.is-hovered, .is-pressed, :focus-visible) .l29m__title { color: #320F15; transform: translateX(8px); }   /* the side panel's oxblood: 11.4:1 on sand (11.1:1 at rest) */
.l29m__disc { flex: none; display: grid; place-items: center; width: 56px; height: 56px; border-radius: 50%; background: var(--m-ground); color: var(--m-metal); }
.l29m__disc svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.6; transform: rotate(-45deg); transition: transform .7s var(--m-out); }
.l29m__card:is(.is-hovered, .is-pressed, :focus-visible) .l29m__disc svg { transform: none; }

/* Panel 2: one photograph per link, crossfading; a five-part time bar; the caption and the counter on a night shade */
.l29m__photo { --in: .09s; --out: .05s; background: var(--m-night); }
.l29m__slide { position: absolute; inset: 0; opacity: 0; transition: opacity .7s ease; }
.l29m__slide.is-active { opacity: 1; }
.l29m__slide img { position: absolute; inset: 0; width: 100%; height: 100%; max-width: none; object-fit: cover; transform: scale(1.08); transition: transform 1.6s var(--m-out); }
.l29m.is-open .l29m__slide.is-active img { transform: none; }
.l29m__slide--night { background: var(--m-night); isolation: isolate; }   /* a photograph on flat black (Official AI's own site): */
.l29m__slide--night img { mix-blend-mode: lighten; }   /* its black lifts to night, the ground the other four sit on */
.l29m__shade { position: absolute; inset: 0; pointer-events: none; background: linear-gradient(0deg, rgba(36, 5, 10, .92) 0%, rgba(36, 5, 10, .78) 26%, rgba(36, 5, 10, 0) 58%), linear-gradient(180deg, rgba(36, 5, 10, .6) 0%, rgba(36, 5, 10, 0) 18%); }
.l29m__go { position: absolute; inset: 0; z-index: 1; }   /* the photograph goes where its link goes (pointer only: the link list carries it for keyboards) */
.l29m__bars { position: absolute; left: clamp(24px, 2.6vw, 40px); right: clamp(24px, 2.6vw, 40px); top: 24px; display: flex; gap: 6px; pointer-events: none; }
.l29m__bars span { flex: 1; height: 2px; overflow: hidden; background: var(--m-rule); }
.l29m__bars i { display: block; width: 0; height: 2px; background: var(--m-metal); }
.l29m__foot { position: absolute; z-index: 2; left: clamp(24px, 2.6vw, 40px); right: clamp(24px, 2.6vw, 40px); bottom: clamp(24px, 2.6vw, 40px); display: flex; align-items: flex-end; gap: 16px; pointer-events: none; }
.l29m__caps { flex: 1; min-width: 0; display: grid; margin-right: 8px; }
.l29m__cap { grid-area: 1 / 1; display: flex; flex-direction: column; justify-content: flex-end; gap: 10px; margin: 0; visibility: hidden; }
.l29m__cap.is-active { visibility: visible; }
.l29m__cap-k { color: var(--m-metal); font: 500 12px/16px var(--m-mono); letter-spacing: .08em; text-transform: uppercase; }
.l29m__cap-t { color: var(--m-paper); font: 500 clamp(26px, 2.4vw, 40px)/1.05 var(--m-display); letter-spacing: -.005em; text-wrap: balance; }
.l29m__count { flex: none; color: var(--m-2); font: 500 12px/16px var(--m-mono); letter-spacing: .08em; white-space: nowrap; }
/* the time bar runs for as long as the menu is open: the reader can stop it (it is not there at all under reduced motion).
   A 20px box right after the counter, its tap target 44px */
.l29m .l29m__pause {
  position: relative; flex: none; display: grid; place-items: center; width: 20px; height: 20px; margin: 0 -5px -2px -4px; padding: 0; border: 0; border-radius: 50%;
  background: none; color: var(--m-2); cursor: pointer; pointer-events: auto; transition: color .3s;
}
.l29m__pause::before { content: ""; position: absolute; inset: -12px; }
.l29m__pause svg { width: 10px; height: 10px; overflow: visible; fill: none; stroke: currentColor; stroke-width: 1.5; stroke-linejoin: round; }
.l29m__play-ic, .l29m__pause[aria-pressed="true"] .l29m__pause-ic { display: none; }
.l29m__pause[aria-pressed="true"] .l29m__play-ic { display: inline; }
.l29m .l29m__pause:focus-visible { color: var(--m-metal); }
@media (hover: hover) { .l29m .l29m__pause:hover { color: var(--m-metal); } }

/* Panel 3: Selected work, Instagram and the contact strip, on night glass over oxblood */
.l29m__side { --in: .18s; --out: 0s; display: flex; flex-direction: column; background: var(--m-side); box-shadow: inset 0 0 0 1px var(--m-stroke); }
.l29m__side-in { flex: 1; min-height: 0; display: flex; flex-direction: column; justify-content: space-between; gap: 32px; padding: clamp(28px, 4vh, 48px) clamp(24px, 2.4vw, 40px); }
.l29m__work { display: flex; flex-direction: column; gap: 8px; }
.l29m__label { margin: 0 0 2px; color: var(--m-metal); font: 500 12px/16px var(--m-mono); letter-spacing: .08em; text-transform: uppercase; }
.l29m__work a { display: flex; align-items: center; gap: 12px; min-height: 44px; padding: 5px 0; color: var(--m-paper); text-decoration: none; font: 500 clamp(24px, 1.9vw, 30px)/1.15 var(--m-display); transition: color .3s; }
.l29m__work a[aria-current]::after { content: ""; flex: none; width: 6px; height: 6px; border-radius: 50%; background: var(--m-metal); }
.l29m .l29m__social { display: flex; align-items: center; justify-content: space-between; gap: 16px; max-width: 220px; min-height: 44px; color: var(--m-paper); text-decoration: none; font: 400 16px/1.4 var(--m-sans); transition: color .3s; }
.l29m__social svg { flex: none; width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 1.5; }
.l29m__contact { flex: none; display: flex; flex-direction: column; padding: 11px clamp(24px, 2.4vw, 40px); border-top: 1px solid var(--m-rule); font: 400 15px/1.5 var(--m-sans); overflow-wrap: anywhere; }
.l29m__contact > * { display: flex; align-items: center; min-height: 44px; }
.l29m__contact a { color: var(--m-paper); text-decoration: none; white-space: nowrap; transition: color .3s; }   /* the address and the number never break */
.l29m__contact span { color: var(--m-2); }
.l29m :is(.l29m__work, .l29m__contact) a:focus-visible, .l29m .l29m__social:focus-visible { color: var(--m-metal); }
@media (hover: hover) { .l29m :is(.l29m__work, .l29m__contact) a:hover, .l29m .l29m__social:hover { color: var(--m-metal); } }

/* while the menu is open, and over the bar's controls, the page's custom cursor steps aside (the system pointer stays, as everywhere on the site) */
html.l29m-open .cursor { display: none !important; }
html.l29m-over .cursor { opacity: 0 !important; }

/* ---------- Sizes ---------- */
@media (max-width: 1179px) {
  .l29m__menu { grid-template-columns: minmax(0, 1.3fr) minmax(0, .9fr); }
  .l29m__photo { display: none; }
}
@media (max-width: 1099px) { .l29m__where { display: none; } }   /* the mono line is wide: under 1100px it would all but meet the Book pill */
@media (max-width: 999px) {
  .l29m__in { grid-template-columns: minmax(0, 1fr) auto; }
  .l29m__acts { grid-column: 2; }
}
/* phones and portrait tablets: the links fill the first screen exactly as designed; Selected work and the contact strip follow
   below it, a scroll away, so a phone reaches everything a desktop does */
@media (max-width: 899px) {
  .l29m__menu { display: flex; flex-direction: column; }
  .l29m__panel { flex: none; }
  .l29m__main { min-height: calc(100vh - var(--m-h) - 12px - var(--m-top) - max(12px, env(safe-area-inset-bottom, 0px))); min-height: calc(100dvh - var(--m-h) - 12px - var(--m-top) - max(12px, env(safe-area-inset-bottom, 0px))); }
  .l29m__side-in { gap: 24px; }
}
/* short windows (a laptop under its toolbars, a zoomed browser): the panels draw their spacing in, so all three still rest in the
   frame over the 12px foot; every row keeps its 44px. Five Selected work rows need about 695px at full spacing, hence 720px.
   The six links close their gaps too. Shorter still (under about 600px, 580px under 1100px wide), the menu scrolls */
@media (min-width: 900px) and (max-height: 720px) {
  .l29m__links { gap: clamp(2px, .5vh, 10px); padding-top: 16px; padding-bottom: 16px; }
  .l29m .l29m__card { padding-top: 22px; padding-bottom: 22px; }
  .l29m__side-in { gap: 16px; padding-top: 20px; padding-bottom: 20px; }
  .l29m__work { gap: 0; }
  .l29m__contact { padding-top: 4px; padding-bottom: 4px; }
}
/* under 640px the fifth row takes the room Instagram had: from 1100px, where the bar's middle line already says Kirkland, the
   contact strip's place line steps out and gives it back */
@media (min-width: 1100px) and (max-height: 640px) { .l29m__contact span { display: none; } }
@media (max-width: 559px) {
  .l29m .l29m__book { display: none; }
  .l29m__in { gap: 16px; }
}
@media (max-width: 374px) {   /* the toggle keeps its icon: the typed wordmark (212px) and a labelled toggle all but touched at 360; the drawn one (182px) would leave 36px */
  .l29m .l29m__toggle { width: 44px; padding: 0; gap: 0; }
  .l29m__toggle .l29m__mask { display: none; }
}

/* ---------- Without JS: #menu:target shows the menu as it rests once open ---------- */
html:not(.js) .l29m__menu:target { display: grid; opacity: 1; }
@media (max-width: 899px) { html:not(.js) .l29m__menu:target { display: flex; } }
html:not(.js) .l29m__panel { clip-path: none; }
html:not(.js) .l29m__step, html:not(.js) .l29m__slide img { transform: none; }
html:not(.js) .l29m__pause, html:not(.js) .l29m__go, html:not(.js) .l29m__bars { display: none; }
@media (hover: hover) {   /* the booking card: its fill from the centre, and its text deepens with it, as with JS */
  html:not(.js) .l29m__card:hover .l29m__card-fill { clip-path: circle(75% at 50% 50%); }
  html:not(.js) .l29m__card:hover .l29m__note { color: #46393B; }
  html:not(.js) .l29m__card:hover .l29m__title { color: #320F15; }
}
@media (hover: hover) and (prefers-reduced-motion: reduce) { html:not(.js) .l29m .l29m__card:hover { background: var(--m-sand); } }

/* ---------- Reduced motion: no slide, no clip or mask reveals, no magnetic pull, no time bar; colours still ease on the bar ---------- */
@media (prefers-reduced-motion: reduce) {
  .l29m__bar { transition-property: background-color, color, box-shadow; }
  .l29m__in *, .l29m__in *::before, .l29m__in *::after, .l29m__menu, .l29m__menu *, .l29m__menu *::before, .l29m__menu *::after { transition-duration: 0s !important; transition-delay: 0s !important; }
  .l29m .l29m__pill { transform: none; }
  .l29m__panel, .l29m.is-open .l29m__panel { clip-path: none; }
  .l29m__step, .l29m__name, .l29m .l29m__slide img { transform: none !important; }
  .l29m .l29m__pause { display: none; }
  /* the booking card neither swells nor gives: its ground and text only ease to their deeper tones */
  .l29m__card-fill { display: none; }
  .l29m .l29m__card, .l29m__card .l29m__title, .l29m__card .l29m__disc svg { transform: none !important; }
  .l29m .l29m__card:is(.is-hovered, .is-pressed, :focus-visible) { background: var(--m-sand); }
  /* the full path outranks the homepage's and the Work page's own reduced-motion rule, which would make these colours snap */
  .l29m .l29m__menu .l29m__main .l29m__booking .l29m__card { transition: background-color .4s ease !important; }
  .l29m .l29m__menu .l29m__booking .l29m__card :is(.l29m__note, .l29m__title) { transition: color .4s ease !important; }
}
