/* The Vix menu (Lock 3 part 1, 2026-11-02): the issue's contents page. Built once in the identity
   (reads only system/tokens.css), mounted by system/menu.js on any page with a .nav .menu button.
   Answers #122 (bring the hamburger back), #52 (want to love the menu), #47 (no swagger), #59 (the
   phone sheet), #60 and #61 (the closed icon: offset equals, animate on interaction), #58 (no case
   study inside the menu). Round 3 (11/02 evening): the full-screen contents page was "way too much"
   (#188); it is now the side pop-out Anthony liked on another client's site, squared off (#189), and the icon
   lost its dot (#187). */

/* ---- the icon: two unequal bars, no dot (#187); they snap into line on hover ---- */
.vx-burger { position: relative; display: block; width: 26px; height: 14px; }
.vx-burger i { position: absolute; left: 0; height: 2px; background: currentColor; transition: transform var(--t-move) var(--ease), width var(--t-move) var(--ease), left var(--t-move) var(--ease), top var(--t-move) var(--ease); }
.vx-burger i:nth-child(1) { top: 0; width: 26px; }
.vx-burger i:nth-child(2) { top: 12px; left: 8px; width: 18px; }
.vx-burger b { display: none; }
.menu:hover .vx-burger i:nth-child(2), .menu:focus-visible .vx-burger i:nth-child(2) { left: 0; width: 26px; }
/* Open: an x. */
.vx-burger[data-x] i:nth-child(1) { top: 6px; transform: rotate(45deg); }
.vx-burger[data-x] i:nth-child(2) { top: 6px; left: 0; width: 26px; transform: rotate(-45deg); }

/* ---- the sheet: a squared-off panel from the right, the page dimmed behind it (#189) ---- */
.vx-menu { position: fixed; inset: 0 0 0 auto; width: min(440px, 100vw); height: 100%; max-width: none; max-height: none; margin: 0; padding: 0; border: 0; border-left: var(--rule) solid var(--ink); border-radius: 0; background: var(--bg); color: var(--ink); overflow: auto; overscroll-behavior: contain; }
.vx-menu::backdrop { background: rgba(18, 14, 30, .34); }
.vx-menu .vm-in { padding-inline: var(--s6); }
@media (max-width: 480px) { .vx-menu { border-left: 0; } .vx-menu .vm-in { padding-inline: var(--s4); } }
.vx-menu .vm-head { position: sticky; top: 0; z-index: 2; background: var(--bg); border-bottom: var(--rule) solid var(--ink); }
.vx-menu .vm-head .vm-in { height: 68px; display: grid; grid-template-columns: 1fr auto; align-items: center; gap: var(--s4); }
.vx-menu .vm-mark { width: 62px; height: 44px; background: currentColor; -webkit-mask: url(../shared/brand/vix-logo.svg) no-repeat left center / 62px 26px; mask: url(../shared/brand/vix-logo.svg) no-repeat left center / 62px 26px; }
.vx-menu .vm-close { justify-self: end; width: 44px; height: 44px; display: grid; place-items: center; border: 0; background: none; color: inherit; cursor: pointer; }

.vx-menu .vm-body { display: grid; grid-template-columns: minmax(0, 1fr); gap: var(--s6); padding-block: var(--s5) var(--s7); }
.vx-menu .vm-label { display: block; font: 600 var(--label)/1.2 var(--body); text-transform: uppercase; letter-spacing: .08em; color: var(--muted); padding-bottom: var(--s3); border-bottom: 1px solid var(--line); margin-bottom: var(--s2); }

/* The lead items, set like a contents page: serif, a page number on the right. */
.vx-menu .vm-lead { list-style: none; margin: 0; padding: 0; }
.vx-menu .vm-lead a { display: grid; grid-template-columns: 1fr auto; align-items: baseline; gap: var(--s3); padding: var(--s3) 0; border-bottom: 1px solid var(--line); color: inherit; text-decoration: none; font: 400 clamp(30px, 3vw, 38px)/1.1 var(--display); }
.vx-menu .vm-lead a span { white-space: nowrap; transition: transform var(--t-move) var(--ease); }
.vx-menu .vm-lead a small { font: 500 var(--small)/1 var(--body); color: var(--muted); }
.vx-menu .vm-lead a:hover span, .vx-menu .vm-lead a:focus-visible span { transform: translateX(6px); }
.vx-menu .vm-lede { margin: var(--s4) 0 0; max-width: 36ch; color: var(--muted); font-size: var(--text); }

/* What we do and the industries: numbered accordions, closed until asked (the pattern he liked on another client's site). */
.vx-menu .vm-groups { display: grid; gap: 0; }
.vx-menu .vm-groups > .vm-label { margin-bottom: 0; }
.vx-menu .vm-group { border-bottom: 1px solid var(--line); }
.vx-menu details > summary { list-style: none; display: flex; align-items: center; justify-content: space-between; min-height: 56px; cursor: pointer; }
.vx-menu details > summary::-webkit-details-marker { display: none; }
.vx-menu details > summary::after { content: "+"; font: 400 26px/1 var(--body); transition: transform var(--t-move) var(--ease); }
.vx-menu details[open] > summary::after { transform: rotate(45deg); }
.vx-menu .vm-group h3 { margin: 0; font: 400 var(--h3)/1.1 var(--display); }
.vx-menu .vm-group h3 b { font: 600 var(--label)/1 var(--body); color: var(--muted); margin-right: var(--s2); vertical-align: middle; }
.vx-menu summary .vm-label { border: 0; padding: 0; margin: 0; }
.vx-menu .vm-links { list-style: none; margin: 0; padding: 0 0 var(--s4); display: grid; gap: 2px; }
.vx-menu .vm-links a { display: inline-flex; min-height: 36px; align-items: center; color: var(--ink); text-decoration: none; font-size: 16px; }
.vx-menu .vm-links a:hover, .vx-menu .vm-links a:focus-visible { text-decoration: underline; text-underline-offset: 4px; }
.vx-menu .vm-side { display: grid; align-content: start; gap: var(--s6); }
.vx-menu .vm-cta { display: grid; gap: var(--s3); padding-top: var(--s5); border-top: var(--rule) solid var(--ink); }
.vx-menu .vm-cta .btn { justify-self: start; }
.vx-menu .vm-login { display: inline-flex; min-height: 44px; align-items: center; gap: var(--s2); color: var(--ink); font: 500 16px/1 var(--body); text-decoration: none; }
.vx-menu .vm-login:hover, .vx-menu .vm-login:focus-visible { text-decoration: underline; text-underline-offset: 4px; }

/* ---- motion: the panel slides in, its lines rise in order; off under reduced motion ---- */
@media (prefers-reduced-motion: no-preference) {
  .vx-menu[open] { animation: vm-in var(--t-move) var(--ease); }
  .vx-menu[open]::backdrop { animation: vm-dim var(--t-move) var(--ease); }
  .vx-menu[open] [data-rise] { animation: vm-rise var(--t-reveal) var(--ease) both; animation-delay: calc(var(--i, 0) * 40ms + 80ms); }
  .vx-menu.vm-closing { animation: vm-out var(--t-quick) ease-in forwards; }
  @keyframes vm-in { from { transform: translateX(48px); opacity: 0; } to { transform: none; opacity: 1; } }
  @keyframes vm-dim { from { opacity: 0; } }
  @keyframes vm-rise { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: none; } }
  @keyframes vm-out { to { opacity: 0; transform: translateX(32px); } }
}
@media (prefers-reduced-motion: reduce) { .vx-burger i { transition: none; } }
