/* Compact global navigation, inspired by the Vivid Motion menu. */
body.has-compact-menu .nav .nav__row { grid-template-columns: minmax(0,1fr) auto auto !important; gap: 12px !important; align-items: center; }
/* Empty transparent header space must not intercept the page below it. */
body.has-compact-menu .nav, body.has-compact-menu .nav .nav__row { pointer-events: none; }
body.has-compact-menu .nav .brand, body.has-compact-menu .nav .nav__menu-toggle, body.has-compact-menu .nav .compact-header-cta { pointer-events: auto; }
/* The row keeps one layout open or closed, so nothing in the header jumps when the menu opens (Ed, 2026-12-02). */
/* :is(.is-open,:not(.is-open)) keeps the weight these rules had when they read :not(.is-open), so they still win over
   inquiry-machine and home-mac-intro, which set two columns for the Start a project page and the inquiry (that left the
   menu button wrapping under the logo next to the experience switch, Ed's iPhone, 2026-12-02). */
body.has-compact-menu .nav:is(.is-open,:not(.is-open)) .nav__row { grid-template-columns:minmax(0,1fr) auto auto auto !important; }
body.has-compact-menu.spx .nav:is(.is-open,:not(.is-open)) .nav__row, body.has-compact-menu.mac-inquiry-active .nav:is(.is-open,:not(.is-open)) .nav__row { grid-template-columns:minmax(0,1fr) auto auto !important; }
.ler-experience-selector { display:inline-flex; align-items:center; padding:3px; gap:2px; background:rgb(0 0 0 / .55); border-radius:999px; pointer-events:auto; white-space:nowrap; }
.ler-experience-selector :is(button,a) { display:inline-flex; align-items:center; justify-content:center; width:40px; height:40px; min-width:40px; min-height:40px; padding:0; border:0; border-radius:999px; background:transparent; color:#fff; cursor:pointer; text-decoration:none; transition:background-color .2s,color .2s; }
.ler-experience-selector button:not([aria-pressed="true"]), .compact-menu__links a { --ler-action-paint:1; position:relative; isolation:isolate; overflow:hidden; }
.ler-experience-selector :is(button,a) svg { display:block; width:20px; height:20px; fill:none; stroke:currentColor; stroke-width:1.5; stroke-linecap:round; stroke-linejoin:round; }
[data-site-sound-toggle][aria-pressed="false"] svg { opacity:.52; }
.ler-experience-selector [data-site-sound-toggle][aria-pressed="true"] { background:transparent; color:#fff; cursor:pointer; }
[data-site-sound-toggle][data-playing] path { transform-origin:center; animation:ler-sound-meter .8s ease-in-out infinite alternate; }
@keyframes ler-sound-meter { to { transform:scaleY(.66); } }
@media (prefers-reduced-motion:reduce) { [data-site-sound-toggle][data-playing] path { animation:none; } }
.ler-experience-option { position:relative; display:flex; }
.ler-experience-tip {
  --ler-tip-display:block;
  position:absolute;
  z-index:1;
  inset-block-start:100%;
  inset-inline-start:50%;
  translate:-50% 0;
  padding-block-start:8px;
  visibility:hidden;
  opacity:0;
  transition:opacity .16s ease, visibility .16s;
}
.ler-experience-tip span {
  display:block;
  padding:6px 9px;
  border-radius:999px;
  background:rgb(32 32 32 / .84);
  color:#fff;
  font:400 11px/1.3 'LER Navigation Pixel',monospace;
}
.ler-experience-option:has(button:focus-visible):not([data-tip-dismissed]) .ler-experience-tip {
  visibility:visible;
  opacity:1;
}
@media (hover:hover) {
  .ler-experience-option:hover:not([data-tip-dismissed]) .ler-experience-tip {
    visibility:visible;
    opacity:1;
  }
}
@media (prefers-reduced-motion:reduce) {
  .ler-experience-tip { transition:none; }
}
.ler-experience-selector button[aria-pressed="true"] { background:#fff; color:#505052; cursor:default; }
.ler-experience-selector button:not([aria-pressed="true"]):is(:focus-visible,[data-ler-action-pressed]) { background:rgb(255 255 255 / .2); }
.ler-experience-selector :is(button,a):focus-visible { outline:2px solid #dd3d06; outline-offset:2px; }
.ler-experience-selector a:hover { background:rgb(255 255 255 / .2); }
body.has-compact-menu .nav.is-open .ler-experience-selector { opacity:0; visibility:hidden; pointer-events:none; }
body.has-compact-menu .nav .brand { justify-self: start; width: fit-content; }
body.has-compact-menu .nav .brand img:not(.brand__icon) { height: 32px !important; width: auto; }
body.has-compact-menu .nav.is-open { z-index: 60 !important; }
body.has-compact-menu .nav.is-open .nav__row { background: transparent !important; box-shadow: none !important; }
body.has-compact-menu .nav.is-open .brand img:not(.brand__icon) { filter: none !important; }
/* The navigation sits directly over the page at every scroll position. */
body.has-compact-menu .nav .nav__row,
body.has-compact-menu .nav:is(.is-scrolled, .is-on-light, .is-open) .nav__row {
  background: transparent !important; box-shadow: none !important;
  backdrop-filter: none !important; -webkit-backdrop-filter: none !important;
}
/* Let the page surface continue underneath the utility strip as well. */
body.has-compact-menu.has-utility-bar:not(.estimate-booking-embed) { padding-top: 0; }
body.has-compact-menu .nav .utility-bar { background: transparent !important; border-bottom: 0; box-shadow: none; backdrop-filter: none; -webkit-backdrop-filter: none; }
body.has-compact-menu .nav.header-utility-on-light:not(.is-open) .utility-bar,
body.has-compact-menu .nav.header-utility-on-light:not(.is-open) .utility-bar :is(a, [aria-current], span) { color: #080d10 !important; }
body.has-compact-menu .nav.header-utility-on-light:not(.is-open) .utility-bar__estimate::before { border-color: rgba(8, 13, 16, .35); }
body.has-compact-menu .nav.header-on-light:not(.is-open) .brand img:not(.brand__icon) { filter: invert(1) !important; }
body.has-compact-menu .nav.header-on-dark:not(.is-open) .brand img:not(.brand__icon),
body.has-compact-menu .nav.is-open .brand img:not(.brand__icon) { filter: none !important; }
body.has-compact-menu .nav .nav__links,
body.has-compact-menu .nav .nav__right { display: none !important; }
body.has-compact-menu .nav .compact-header-cta { display: inline-flex; align-items: center; justify-content: center; min-height: 44px; padding: 0 17px; border-radius: 8px; background: #d83a05; color: #fff; text-decoration: none; white-space: nowrap; font: 600 12px/1 Matter, system-ui, sans-serif; letter-spacing: .04em; text-transform: uppercase; transition: background-color .5s cubic-bezier(.65,0,.35,1); }
body.has-compact-menu .nav .compact-header-cta:is(:hover, :focus-visible) { background: var(--orange-dark, #b93305); }
body.has-compact-menu .nav .compact-header-cta:focus-visible { outline: 2px solid #dd3d06; outline-offset: 3px; }
.compact-header-cta__short { display: none; }
body.has-compact-menu .nav.is-open .compact-header-cta { opacity:0; visibility:hidden; pointer-events:none; }
body.has-compact-menu .nav .nav__menu-toggle {
  display: flex !important; justify-content: center; align-items: center;
  width: 44px !important; min-width: 44px !important;
  height: 44px !important; flex-basis: auto !important; padding: 0 !important;
  border: 0; border-radius: 50% !important; background: #202022 !important; color: #fff !important;
  transition: width .3s ease, border-radius .3s cubic-bezier(.34,1.4,.5,1), background-color .3s cubic-bezier(.34,1.4,.5,1);
}
body.has-compact-menu .nav:not(.is-open) :is(.compact-header-cta,.nav__menu-toggle) { backdrop-filter:none; -webkit-backdrop-filter:none; }
body.has-compact-menu .nav.is-scrolled:not(.is-open) :is(.compact-header-cta,.nav__menu-toggle) { backdrop-filter:blur(24px) saturate(1.1); -webkit-backdrop-filter:blur(24px) saturate(1.1); }
body.has-compact-menu .nav:not(.is-open) .nav__menu-toggle:is(:focus-visible,:active,[data-ler-action-pressed]) { border-radius:8px !important; }
@media (hover:hover) and (pointer:fine) {
  body.has-compact-menu .nav:not(.is-open) .nav__menu-toggle:hover { border-radius:8px !important; }
  .ler-experience-selector button:not([aria-pressed="true"]):hover { background:rgb(255 255 255 / .2); }
}
/* Open: the button stays put and becomes the top-right corner of the menu, which grows out of it. */
body.has-compact-menu .nav.is-open .nav__menu-toggle { border-radius: 8px !important; }
body.has-compact-menu .nav .nav__menu-toggle::before,
body.has-compact-menu .nav .nav__menu-toggle::after { display:none !important; }
.compact-menu__dots { display: grid; grid-template-columns: repeat(2, 3px); gap: 4px; flex: none; }
.compact-menu__dots i { display: block; width: 3px; height: 3px; background: currentColor; }
.compact-menu__minus { display: none; width: 11px; height: 2px; flex: none; background: currentColor; }
body.has-compact-menu .nav.is-open .compact-menu__dots { display: none; }
body.has-compact-menu .nav.is-open .compact-menu__minus { display: block; }
body.has-compact-menu .nav .nav__menu-toggle:focus-visible,
body.has-compact-menu .compact-menu__links a:focus-visible,
body.has-compact-menu .compact-menu__cta:focus-visible,
body.has-compact-menu .compact-menu__project:focus-visible { outline: 2px solid var(--orange,#dd3d06); outline-offset: 3px; }
body.has-compact-menu .nav .mobile-menu {
  position: absolute !important; left: auto !important; bottom: auto !important;
  width: 384px !important; height: auto !important; max-height: calc(100dvh - 84px) !important; min-height: 0 !important;
  display: grid !important; grid-template-columns: 120px minmax(0,256px); gap: 8px !important;
  padding: 0 !important; overflow: visible !important; background: transparent !important; box-shadow: none !important;
  border: 0; border-radius: 0; clip-path: none !important;
  opacity: 0 !important; visibility: hidden !important; pointer-events: none !important;
  transform: translateY(-8px) !important; transition: opacity .25s ease, transform .25s ease, visibility 0s linear .25s !important;
}
body.has-compact-menu .nav.is-open .mobile-menu { opacity: 1 !important; visibility: visible !important; pointer-events: auto !important; transform: translateY(0) !important; transition-delay: 0s !important; }
.compact-menu__backdrop { position: fixed; inset: 0; z-index: 49; background: rgba(8,8,8,.70); opacity: 0; visibility: hidden; pointer-events: none; transition: opacity .25s ease, visibility 0s linear .25s; }
.compact-menu__backdrop.is-open { opacity: 1; visibility: visible; pointer-events: auto; transition-delay: 0s; }
.compact-menu__side { display:grid; align-content:start; gap:8px; }
.compact-menu__project,.compact-menu__clock { position:relative; width:120px; height:120px; overflow:hidden; border-radius:8px; background:#242426; }
.compact-menu__project { display:block; border:4px solid #29292b; color:#fff; }
.compact-menu__project img { width:100%; height:100%; object-fit:cover; }
.compact-menu__project span { position:absolute; left:8px; bottom:8px; font:600 9px/1.2 Matter,system-ui,sans-serif; text-shadow:0 1px 4px #000; }
.compact-menu__clock { display:grid; place-items:center; }
.compact-menu__dial { position:relative; width:94px; height:94px; border-radius:50%; background:#f8f8f7; }
.compact-menu__dial::before { content:''; position:absolute; inset:3px; border-radius:50%; background:repeating-conic-gradient(#a6a6a6 0deg 1deg,transparent 1deg 6deg); mask:radial-gradient(transparent 0 41px,#000 42px); }
.compact-menu__dial span { position:absolute; left:calc(50% - 1px); bottom:50%; width:2px; transform-origin:50% 100%; border-radius:2px; background:#161616; }
.compact-menu__dial .compact-menu__hour { height:23px; }
.compact-menu__dial .compact-menu__minute { height:34px; }
.compact-menu__dial .compact-menu__second { width:1px; height:38px; background:var(--orange,#dd3d06); }
.compact-menu__dial i { position:absolute; left:calc(50% - 3px); top:calc(50% - 3px); width:6px; height:6px; border:1px solid #181818; border-radius:50%; background:var(--orange,#dd3d06); }
.compact-menu__time { position:absolute; bottom:7px; padding:3px 4px; border-radius:3px; background:#090909; color:#fff; font:600 9px/1 Matter,system-ui,sans-serif; }
.compact-menu__main { min-width:0; }
.compact-menu__links { display:grid; gap:0; max-height:calc(100dvh - 101px); overflow:auto; padding:46px 5px 8px; border-radius:8px; background:#202022; }
.compact-menu__links a { display:flex; align-items:center; min-height:40px; padding:0 10px; border-radius:8px; color:#fff; text-decoration:none; font:400 20px/1.15 Matter,system-ui,sans-serif; letter-spacing:-.035em; transition:background-color .3s cubic-bezier(.65,0,.35,1); }
.compact-menu__links a:is(:hover,:focus-visible,[data-ler-action-pressed]) { background:rgb(0 0 0 / .65); color:#fff; }
@media (pointer:coarse) { .compact-menu__links a { min-height:44px; } }
.compact-menu__links .compact-menu__language { margin-top: 4px; border-top: 1px solid #444; border-radius: 0; font-size: 14px; letter-spacing: 0; }
.compact-menu__cta { display:flex; align-items:center; gap:10px; min-height:44px; margin-top:8px; padding:0 15px; border-radius:8px; background:#202022; color:#fff; text-decoration:none; font:600 12px/1 Matter,system-ui,sans-serif; letter-spacing:.04em; }
.compact-menu__cta:is(:hover,:focus-visible) { background:#303032; }
.compact-menu__asterisk { width:15px; height:15px; color:var(--orange,#dd3d06); }
@media (max-width: 600px) {
  body.has-compact-menu .nav .nav__row { gap: 6px !important; }
  body.has-compact-menu .nav .compact-header-cta { padding: 0 7px; font-size: 10px; }
  .compact-header-cta__full { display: none; }
  .compact-header-cta__short { display: inline; }
  body.has-compact-menu .nav .mobile-menu { width:var(--compact-menu-width) !important; grid-template-columns:minmax(0,1fr); }
  .compact-menu__side { display:none; }
  body.has-compact-menu .nav .ler-experience-selector button { width:34px; height:34px; min-width:34px; min-height:34px; }
}
@media (prefers-reduced-motion: reduce) {
  body.has-compact-menu .nav :is(.nav__menu-toggle,.compact-header-cta,.ler-experience-selector button),body.has-compact-menu .nav .mobile-menu,.compact-menu__backdrop,.compact-menu__links a { transition:none !important; }
}
@media (forced-colors:active) {
  .ler-experience-selector button[aria-pressed="true"] { border:2px solid Highlight; }
  .compact-menu__dots i, .compact-menu__minus { forced-color-adjust:none; background:ButtonText; }
}
@media (prefers-reduced-motion: no-preference) {
  html.mac-intro-enter .nav .compact-header-cta { animation: mac-enter-header .6s cubic-bezier(.22, 1, .36, 1) both; }
}

/* An actual dark surface takes precedence over the light Macintosh scene. */
body.has-compact-menu.mac-scene-light .nav.header-on-dark:not(.is-open) .brand img:not(.brand__icon) { filter: none !important; }

@media (max-width:375px) {
  body.has-compact-menu .nav .nav__row { gap:4px !important; }
  body.has-compact-menu .nav .brand { min-width:0; }
  body.has-compact-menu .nav .brand img:not(.brand__icon) { height:24px !important; }
  body.has-compact-menu .nav .compact-header-cta { padding-inline:3px; font-size:9px; }
  body.has-compact-menu .nav .ler-experience-selector button { width:30px; height:30px; min-width:30px; min-height:30px; }
}
/* Match the shared site typography while preserving the compact menu layout. */
@font-face { font-family:'LER Navigation Pixel'; src:url('/assets/fonts/geist-pixel/GeistPixel-Square.woff2') format('woff2'); font-display:swap; }
body.has-compact-menu .nav :is(.compact-header-cta,.nav__menu-toggle,.compact-menu__links a,.compact-menu__cta,.compact-menu__project span,.compact-menu__time) { font-family:'LER Navigation Pixel',monospace !important; font-weight:400 !important; letter-spacing:0; }


/* One seamless opening (Ed, 2026-12-02: "the way that the menu open in our website is also weird ... make sure it
   effects/transition is correct and seamless"). Measured before: the button stretched right to left on one timer
   (.3s ease) while a half-transparent panel faded and dropped on another (.25s), "Start a project" and, on phones,
   the logo vanished instantly, and the page dimmed to 70% on a third. Now the menu grows out of the button as one
   opaque shape (its top-right corner is the button), on one easing; the links cascade in like odama.io's menu chips;
   header items fade instead of disappearing; closing plays back faster. */
body.has-compact-menu .nav :is(.brand, .nav__menu-toggle) { position: relative; z-index: 3; }
body.has-compact-menu .nav .mobile-menu {
  /* Below the header row (z-index 2), so the logo and the menu button stay on top of the menu. */
  z-index: 1 !important;
  opacity: 1 !important; transform: none !important;
  clip-path: inset(0 0 calc(100% - 44px) calc(100% - 44px) round 22px) !important;
  transition: clip-path .36s cubic-bezier(.76,0,.24,1), visibility 0s linear .36s !important;
}
body.has-compact-menu .nav.is-open .mobile-menu {
  clip-path: inset(-6px -6px -6px -6px round 8px) !important;
  transition: clip-path .56s cubic-bezier(.76,0,.24,1), visibility 0s linear 0s !important;
}
body.has-compact-menu .nav :is(.compact-menu__links > a, .compact-menu__cta, .compact-menu__side > *) {
  opacity: 0; transform: translateY(10px);
  transition: opacity .14s ease, transform .2s ease, background-color .3s cubic-bezier(.65,0,.35,1);
}
body.has-compact-menu .nav.is-open :is(.compact-menu__links > a, .compact-menu__cta, .compact-menu__side > *) {
  opacity: 1; transform: none;
  transition: opacity .42s cubic-bezier(.16,1,.3,1) var(--menu-delay, .12s), transform .6s cubic-bezier(.16,1,.3,1) var(--menu-delay, .12s), background-color .3s cubic-bezier(.65,0,.35,1);
}
.compact-menu__links > a:nth-child(1) { --menu-delay: .12s; }
.compact-menu__links > a:nth-child(2) { --menu-delay: .15s; }
.compact-menu__links > a:nth-child(3) { --menu-delay: .18s; }
.compact-menu__links > a:nth-child(4) { --menu-delay: .21s; }
.compact-menu__links > a:nth-child(5) { --menu-delay: .24s; }
.compact-menu__links > a:nth-child(6) { --menu-delay: .27s; }
.compact-menu__links > a:nth-child(7) { --menu-delay: .30s; }
.compact-menu__links > a:nth-child(8) { --menu-delay: .33s; }
.compact-menu__links > a:nth-child(n+9) { --menu-delay: .36s; }
.compact-menu__cta { --menu-delay: .38s; }
.compact-menu__side > :nth-child(1) { --menu-delay: .2s; }
.compact-menu__side > :nth-child(2) { --menu-delay: .28s; }
.compact-menu__backdrop { background: rgba(8,8,8,.55); transition: opacity .36s cubic-bezier(.76,0,.24,1), visibility 0s linear .36s; }
.compact-menu__backdrop.is-open { transition: opacity .56s cubic-bezier(.76,0,.24,1), visibility 0s linear 0s; }
body.has-compact-menu .nav :is(.compact-header-cta, .ler-experience-selector) {
  transition: opacity .3s cubic-bezier(.16,1,.3,1) .26s, visibility 0s linear 0s, background-color .5s cubic-bezier(.65,0,.35,1);
}
body.has-compact-menu .nav.is-open :is(.compact-header-cta, .ler-experience-selector) {
  transition: opacity .16s ease, visibility 0s linear .16s, background-color .5s cubic-bezier(.65,0,.35,1);
}
/* The logo turns light only once the dark menu has reached it (phones: the menu spans the header). */
body.has-compact-menu .nav .brand img:not(.brand__icon) { transition: filter .24s ease; }
body.has-compact-menu .nav.is-open .brand img:not(.brand__icon) { transition: filter .24s ease .16s; }
/* Menu icon: the four dots turn and fade as the bar draws in. */
body.has-compact-menu .nav .compact-menu__dots { transition: opacity .2s ease, transform .4s cubic-bezier(.16,1,.3,1); }
body.has-compact-menu .nav .compact-menu__minus { display: block; position: absolute; left: calc(50% - 5.5px); top: calc(50% - 1px); opacity: 0; transform: scaleX(0); transition: opacity .2s ease, transform .4s cubic-bezier(.16,1,.3,1); }
body.has-compact-menu .nav.is-open .compact-menu__dots { display: grid; opacity: 0; transform: rotate(90deg) scale(.5); }
body.has-compact-menu .nav.is-open .compact-menu__minus { opacity: 1; transform: none; transition-delay: .08s; }
@media (prefers-reduced-motion: reduce) {
  body.has-compact-menu .nav .mobile-menu, body.has-compact-menu .nav.is-open .mobile-menu,
  body.has-compact-menu .nav :is(.compact-menu__links > a, .compact-menu__cta, .compact-menu__side > *, .compact-header-cta, .ler-experience-selector, .compact-menu__dots, .compact-menu__minus, .brand img),
  body.has-compact-menu .nav.is-open :is(.compact-menu__links > a, .compact-menu__cta, .compact-menu__side > *, .compact-header-cta, .ler-experience-selector, .compact-menu__dots, .compact-menu__minus, .brand img),
  .compact-menu__backdrop, .compact-menu__backdrop.is-open { transition: none !important; }
}
/* The menu's "Start a project" bar is part of the solid menu, not a see-through glass button over a photo. */
html body:not(.bf-page) .nav .compact-menu__cta { --ler-action-fill: #202022; }
/* Phones: the menu spans the header, so the logo leaves (Ed, 2026-12-02: "The Ler logo shouldn't be showing on the
   mobile menu"). It fades out before the dark menu reaches it and comes back after the menu has closed. */
@media (max-width: 600px) {
  body.has-compact-menu .nav .brand { transition: opacity .3s cubic-bezier(.16,1,.3,1) .26s, visibility 0s linear 0s; }
  body.has-compact-menu .nav.is-open .brand { opacity: 0; visibility: hidden; pointer-events: none; transition: opacity .14s ease, visibility 0s linear .14s; }
}
@media (max-width: 600px) and (prefers-reduced-motion: reduce) {
  body.has-compact-menu .nav .brand, body.has-compact-menu .nav.is-open .brand { transition: none !important; }
}
