/* Bottom navigation concepts (r2/nav.js, ?nav=a|b|c). The glass is CSS (backdrop-filter) shaped on Liquid Glass Studio's
   look: a frosted body, a bright rim on the light side, a darker rim opposite, a soft glare, a tint from the section. */
html.nv-on { --fm: 0px; } html.nv-on.nvm-b { --fm: 40px; } /* the ticker is a full-width strip: the stages stop above it */
html.nv-on .fmap { display: none; }
/* the wall's own buttons sit above the bar instead of under it */
html.nv-on:not(.nvm-b) .field.own .f-bar { bottom: 66px; }
html.nv-on.touch:not(.nvm-b) .field.own .f-down { left: 16px; bottom: 80px; } /* on the same line as Start view and Clients */
.nv { position: fixed; z-index: 56; left: 50%; bottom: calc(14px + env(safe-area-inset-bottom)); transform: translateX(-50%); font-family: 'Albert Sans', system-ui, sans-serif; --c: #e6e4de; --ci: #111; }
.nv-glass, .nv-pill, .nv-sheet, .nv.nv-b, .nv-cap, .nv-lens {
  background: linear-gradient(180deg, rgba(255, 255, 255, .34), rgba(255, 255, 255, .1) 48%, rgba(255, 255, 255, .16)), color-mix(in srgb, var(--c) 18%, transparent);
  -webkit-backdrop-filter: blur(16px) saturate(1.7) brightness(1.04); backdrop-filter: blur(16px) saturate(1.7) brightness(1.04);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .85), inset 1px 0 0 rgba(255, 255, 255, .35), inset 0 -1px 0 rgba(0, 0, 0, .12), inset 0 -10px 18px -12px rgba(255, 255, 255, .55), 0 10px 30px -8px rgba(0, 0, 0, .35), 0 1px 2px rgba(0, 0, 0, .12);
  transition: background-color .6s, background .6s; }

/* ---------- a. Dock ---------- */
.nv-pill { all: unset; box-sizing: border-box; cursor: pointer; display: flex; align-items: center; gap: 12px; height: 52px; padding: 0 18px 0 8px; border-radius: 26px; color: #111;
  background: linear-gradient(180deg, rgba(255, 255, 255, .42), rgba(255, 255, 255, .12) 50%, rgba(255, 255, 255, .2)), color-mix(in srgb, var(--c) 22%, transparent); }
.nv-pill:focus-visible { outline: 2px solid #111; outline-offset: 3px; }
.nv-n { display: grid; place-items: center; min-width: 38px; height: 38px; border-radius: 19px; background: var(--c); color: var(--ci); font: 400 17px/1 Anton, sans-serif; letter-spacing: .02em; box-shadow: inset 0 1px 0 rgba(255, 255, 255, .5), inset 0 -2px 6px rgba(0, 0, 0, .15); transition: background-color .5s, color .5s; }
.nv-name { display: inline-flex; overflow: hidden; font: 400 26px/1.15 Anton, sans-serif; letter-spacing: .01em; text-transform: uppercase; padding: 2px 0; }
.nv-name i { font-style: normal; display: inline-block; }
.nv-name.roll i { animation: nv-roll .62s cubic-bezier(.2, .9, .25, 1) both; animation-delay: calc(var(--i) * 28ms); }
@keyframes nv-roll { from { transform: translateY(105%) rotate(6deg); opacity: 0; } 60% { opacity: 1; } to { transform: none; } }
.nv.open .nv-pill svg { transform: rotate(180deg); } .nv-pill svg { transition: transform .3s; }
.nv-sheet { position: absolute; left: 50%; bottom: calc(100% + 10px); transform: translateX(-50%); width: min(560px, calc(100vw - 24px)); padding: 10px; border-radius: 28px; display: grid; grid-template-columns: 1fr 1fr; gap: 2px; color: #111; }
.nv-sheet[hidden] { display: none; }
.nv-sheet a { display: flex; align-items: baseline; gap: 10px; padding: 8px 12px; border-radius: 16px; color: inherit; text-decoration: none; font: 400 30px/1.05 Anton, sans-serif; text-transform: uppercase; animation: nv-up .5s cubic-bezier(.2, .9, .25, 1) both; animation-delay: calc(var(--i) * 22ms); transition: background-color .2s; }
.nv-sheet a small { font: 600 12px/1 'Albert Sans', sans-serif; opacity: .55; min-width: 18px; }
.nv-sheet a:hover, .nv-sheet a:focus-visible, .nv-sheet a[aria-current] { background: var(--c); outline: none; }
@keyframes nv-up { from { transform: translateY(40%); opacity: 0; } }

/* ---------- b. Ticker ---------- */
.nv.nv-b { left: 0; right: 0; transform: none; bottom: 0; height: 40px; overflow: hidden; border-radius: 0; padding-bottom: env(safe-area-inset-bottom);
  -webkit-mask: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent); mask: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent); }
.nv-track { display: flex; width: max-content; height: 40px; will-change: transform; }
.nv-row { display: flex; align-items: center; }
.nv-b a { display: inline-flex; align-items: baseline; gap: 6px; padding: 0 14px; color: transparent; -webkit-text-stroke: 1px rgba(0, 0, 0, .7); text-decoration: none; font: 400 25px/40px Anton, sans-serif; text-transform: uppercase; letter-spacing: .01em; transition: color .4s, -webkit-text-stroke-color .4s; }
.nv-b a small { font: 600 11px/1 'Albert Sans', sans-serif; -webkit-text-stroke: 0; color: rgba(0, 0, 0, .55); }
.nv-b a:hover { color: rgba(0, 0, 0, .85); }
.nv-b a[aria-current] { color: #000; -webkit-text-stroke-color: #000; text-shadow: 0 0 22px var(--c); }
.nv-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--c); box-shadow: inset 0 1px 1px rgba(255, 255, 255, .7); flex: none; }

/* ---------- c. Lens ---------- */
.nv-cap { position: relative; display: flex; align-items: center; height: 46px; padding: 0 5px; border-radius: 23px; }
.nv-c a { position: relative; z-index: 2; display: flex; align-items: center; height: 46px; padding: 0 9px; color: rgba(0, 0, 0, .62); text-decoration: none; transition: color .3s; }
.nv-num { font: 400 15px/1 Anton, sans-serif; letter-spacing: .03em; transition: transform .45s cubic-bezier(.2, .9, .25, 1); }
.nv-word { display: inline-flex; overflow: hidden; max-width: 0; font: 400 21px/1.2 Anton, sans-serif; text-transform: uppercase; white-space: nowrap; transition: max-width .55s cubic-bezier(.2, .9, .25, 1), margin .55s; }
.nv-word i { font-style: normal; display: inline-block; transform: translateY(110%); transition: transform .5s cubic-bezier(.2, .9, .25, 1); transition-delay: calc(var(--i) * 18ms); }
.nv-c a.on { color: var(--ci); }
.nv-c a.on .nv-num { transform: scale(.82); opacity: .7; }
.nv-c a.on .nv-word { max-width: 9em; margin-left: 7px; }
.nv-c a.on .nv-word i { transform: none; }
.nv-c a:focus-visible { outline: 2px solid #111; outline-offset: -4px; border-radius: 18px; }
/* the lens: a bead of the section's colour seen through glass, with a hot glare top left and a caustic at the bottom */
.nv-lens { position: absolute; z-index: 1; left: 0; top: 4px; height: 38px; width: 0; border-radius: 19px; pointer-events: none;
  background: radial-gradient(120% 90% at 30% 10%, rgba(255, 255, 255, .7), rgba(255, 255, 255, 0) 40%), radial-gradient(90% 60% at 50% 115%, rgba(255, 255, 255, .55), rgba(255, 255, 255, 0) 60%), var(--c);
  box-shadow: inset 0 1.5px 0 rgba(255, 255, 255, .9), inset 0 -2px 4px rgba(0, 0, 0, .18), inset 0 0 0 .5px rgba(0, 0, 0, .15), 0 6px 14px -4px color-mix(in srgb, var(--c) 70%, #000);
  -webkit-backdrop-filter: none; backdrop-filter: none; transition: background-color .5s; }
@media (max-width: 760px) {
  .nv { bottom: calc(10px + env(safe-area-inset-bottom)); }
  .nv-name { font-size: 22px; } .nv-pill { height: 48px; }
  .nv-sheet a { font-size: 25px; }
  .nv-c a { padding: 0 6.5px; } .nv-num { font-size: 13.5px; } .nv-word { font-size: 18px; }
  .nv-cap { height: 42px; } .nv-c a { height: 42px; } .nv-lens { top: 4px; height: 34px; }
}
@media (prefers-reduced-motion: reduce) { .nv * { animation: none !important; transition: none !important; } }

/* ---------- a phone (2026-11-12 sweep): the dock gets its own strip, so no section's controls sit under it ---------- */
html.nv-on.nvm-a { --fm: 66px; } html.nv-on.nvm-c { --fm: 64px; } /* the same on a desktop, for the capsule (desktop sweep: it sat on Motion's set buttons, Events' cards, the Social phone) */
html.nv-on.nvm-a .field.own, html.nv-on.nvm-a.touch .field.own, html.nv-on.nvm-c .field.own { height: 100vh !important; height: 100svh !important; } /* the wall alone runs under the glass; its buttons are lifted above */
/* the dock reads on any ground: a brighter glass under a dark label */
.nv-a .nv-pill { background: linear-gradient(180deg, rgba(255, 255, 255, .86), rgba(255, 255, 255, .66)), color-mix(in srgb, var(--c) 30%, transparent); color: #111; }
.nv-c .nv-cap { background: linear-gradient(180deg, rgba(255, 255, 255, .7), rgba(255, 255, 255, .5)), color-mix(in srgb, var(--c) 18%, transparent); }
/* the wall's client list stands above the lifted row of buttons, not on it */
html.nv-on:not(.nvm-b) .field.own .f-clients { bottom: 138px; max-height: min(60vh, calc(100vh - 230px)); }

/* ---------- THE SPINE (r2/nav.js, 2026-11-15): the bar says what it is ---------- */
/* along the top edge, the eleven section colours in order and in proportion to each section; the one you are in fills as you read */
.nv-spine { position: absolute; left: 0; right: 0; top: -6px; height: 6px; display: flex; gap: 2px; pointer-events: none; }
.nv-spine i { position: relative; flex: 1 1 0; min-width: 3px; background: color-mix(in srgb, var(--sc) 45%, transparent); overflow: hidden; transition: flex-grow .6s; }
.nv-spine i b { position: absolute; inset: 0; background: var(--sc); transform-origin: 0 50%; transform: scaleX(0); }
.nv-spine i.on { box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--r2-ink, #111) 35%, transparent); }
/* desktop keeps the lens as Omer approved it (2026-11-15: "I asked to fix only the phone, not the desktop") */
/* phone: the button that opens the list says so, and Next is its own button */
html.nv-on .nv-a { display: flex; }
html.nv-on .nv-a .nv-pill { flex: 1 1 auto; min-width: 0; width: auto; }
html.nv-on .nv-a .nv-name { min-width: 0; }
.nv-all { margin-left: auto; display: inline-flex; align-items: center; gap: 6px; flex: none; font: 600 13px/1 'Albert Sans', system-ui, sans-serif; opacity: .8; }
html.nv-on .nv-a .nv-pill .nv-all svg { margin-left: 0; width: 14px; height: 14px; }
.nv-next { all: unset; box-sizing: border-box; cursor: pointer; flex: none; display: grid; align-content: center; gap: 3px; max-width: 44%; height: 54px; padding: 0 14px; background: var(--r2-ink, #111); color: var(--r2-paper, #e6e4de); }
.nv-next small { font: 600 11px/1 'Albert Sans', system-ui, sans-serif; opacity: .75; }
.nv-next span { font: 400 19px/1.05 Anton, sans-serif; text-transform: uppercase; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.nv-next:focus-visible, .nv-pill:focus-visible { outline: 3px solid #2F5BFF; outline-offset: -3px; }
html.nv-on.nvm-a .nv-a .nv-name { font-size: 22px; }
@media (max-width: 360px) { .nv-all { font-size: 0; gap: 0; } }
@media (prefers-reduced-motion: reduce) { .nv-spine i { transition: none; } }
.nv-spine[hidden] { display: none; }
