/* ==========================================================================
   Phone navigation: logo pill left, round menu button right. Opening it
   sweeps a cobalt tile mosaic out from the button to fill the screen, then
   the pages rise in as big type. Shared by every page (see mobilenav.js).
   ========================================================================== */
.mburger { display: none; }
.mnav { display: none; }

@media (max-width: 760px) {
  /* the bar: brand pill on the left, the button on the right */
  .nav { padding: 12px var(--gutter) !important; align-items: center; }
  .nav .menu { padding: 6px 14px 6px 8px; }
  .nav .menu a.link, .nav .menu .burger, .nav .cta-btns { display: none !important; }
  .nav .menu.open { flex-wrap: nowrap; width: auto; border-radius: 999px; padding: 6px 14px 6px 8px; }
  .mburger { position: relative; z-index: 2; display: grid; place-items: center; width: 50px; height: 50px; border-radius: 50%; border: 0; padding: 0; cursor: pointer;
    background: var(--ink, #0A0A0A); box-shadow: 0 10px 26px rgba(10, 20, 80, .18); transition: background .4s var(--ease, cubic-bezier(.22, 1, .36, 1)), transform .4s var(--ease, cubic-bezier(.22, 1, .36, 1)); }
  .mburger:active { transform: scale(.94); }
  .mburger i { position: absolute; left: 16px; width: 18px; height: 2px; border-radius: 2px; background: #fff; transition: transform .55s var(--ease, cubic-bezier(.22, 1, .36, 1)), top .55s var(--ease, cubic-bezier(.22, 1, .36, 1)), background .4s; }
  .mburger i:nth-child(1) { top: 20px; } .mburger i:nth-child(2) { top: 28px; }
  .mopen .mburger { background: #fff; }
  .mopen .mburger i { background: var(--ink, #0A0A0A); top: 24px; }
  .mopen .mburger i:nth-child(1) { transform: rotate(45deg); } .mopen .mburger i:nth-child(2) { transform: rotate(-45deg); }
  .mopen .nav { transform: none !important; }
  .mopen .nav .menu { background: #fff; border-color: #fff; box-shadow: 0 10px 30px rgba(6, 14, 70, .25); }

  /* the sheet */
  .mnav { position: fixed; inset: 0; z-index: 49; display: block; visibility: hidden; pointer-events: none; color: #fff; }
  .mnav.on { visibility: visible; pointer-events: auto; }
  .mnav canvas { position: absolute; inset: 0; width: 100%; height: 100%; }
  .mnav .in { position: relative; height: 100%; display: flex; flex-direction: column; padding: 108px var(--gutter) calc(24px + env(safe-area-inset-bottom, 0px)); }
  .mnav .eb { font-family: 'Geist Mono', monospace; font-size: 11px; letter-spacing: .2em; text-transform: uppercase; color: rgba(255, 255, 255, .7); }
  .mnav ol { list-style: none; margin: 22px 0 0; padding: 0; display: flex; flex-direction: column; }
  .mnav li { overflow: hidden; border-top: 1px solid rgba(255, 255, 255, .16); }
  .mnav li:last-child { border-bottom: 1px solid rgba(255, 255, 255, .16); }
  .mnav li a { display: flex; align-items: center; gap: 14px; padding: 16px 0 14px; font-family: 'Bricolage Grotesque', system-ui, sans-serif; font-weight: 800; font-size: clamp(40px, 12.5vw, 56px); line-height: .95; letter-spacing: -.05em; color: #fff;
    transform: translateY(105%); transition: transform .8s var(--ease, cubic-bezier(.22, 1, .36, 1)), color .3s; transition-delay: calc(var(--i) * 70ms + 260ms); }
  .mnav li a em { font-style: normal; font-family: 'Geist Mono', monospace; font-size: 11px; font-weight: 400; letter-spacing: .14em; color: rgba(255, 255, 255, .62); align-self: flex-start; margin-top: .42em; width: 24px; flex-shrink: 0; }
  .mnav li a.here em { color: #FFB48A; }
  .mnav li a .cur { width: 12px; height: 12px; border-radius: 3px; background: var(--sundown, #FF5A1F); margin-left: auto; margin-right: 14px; box-shadow: 0 0 0 5px rgba(255, 90, 31, .22); transform: scale(0); transition: transform .5s var(--ease, cubic-bezier(.22, 1, .36, 1)) .7s; }
  .mnav li a .go { margin-left: auto; width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .34); transition: background .3s, box-shadow .3s, transform .3s; }
  .mnav li a .go svg { width: 14px; height: 14px; }
  .mnav li a.here .go { display: none; }
  .mnav li a { -webkit-tap-highlight-color: transparent; }
  .mnav li a:active { color: #CFDDFF; } .mnav li a:active .go { background: #fff; transform: scale(.92); } .mnav li a:active .go path { stroke: var(--cobalt, #1F4BFF); }
  .mnav .ft { margin-top: auto; display: flex; flex-direction: column; gap: 18px; opacity: 0; transform: translateY(16px); transition: opacity .5s ease, transform .8s var(--ease, cubic-bezier(.22, 1, .36, 1)); transition-delay: .55s; }
  .mnav .cta { display: flex; align-items: center; justify-content: space-between; height: 60px; padding: 0 8px 0 24px; border-radius: 999px; background: #fff; color: var(--ink, #0A0A0A); font-size: 17px; font-weight: 700; letter-spacing: -.01em; }
  .mnav .cta span { width: 44px; height: 44px; border-radius: 50%; background: var(--ink, #0A0A0A); display: grid; place-items: center; }
  .mnav .cta span svg { width: 15px; height: 15px; }
  .mnav .row { display: flex; align-items: flex-end; justify-content: space-between; gap: 12px; padding: 0 4px; }
  .mnav .row a.mail { display: flex; flex-direction: column; gap: 6px; font-size: 17px; font-weight: 600; letter-spacing: -.01em; color: #fff; }
  .mnav .row a.mail em { font-style: normal; font-family: 'Geist Mono', monospace; font-size: 10px; font-weight: 400; letter-spacing: .18em; text-transform: uppercase; color: rgba(255, 255, 255, .6); }
  .mnav .so { display: flex; gap: 6px; }
  .mnav .so a { height: 34px; padding: 0 11px; display: inline-flex; align-items: center; border-radius: 999px; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .3); font-family: 'Geist Mono', monospace; font-size: 10px; letter-spacing: .12em; text-transform: uppercase; color: #fff; }
  .mnav .in { opacity: 0; transition: opacity .35s ease; }
  .mnav.shown .in, .mnav.closing .in { opacity: 1; }
  .mnav.shown li a { transform: none; }
  .mnav.shown li a .cur { transform: scale(1); }
  .mnav.shown .ft { opacity: 1; transform: none; }
  .mnav.closing li a { transform: translateY(-105%); transition-delay: calc(var(--i) * 40ms); transition-duration: .45s; }
  .mnav.closing .ft { opacity: 0; transform: translateY(10px); transition-delay: 0s; transition-duration: .3s; }
}
@media (max-width: 760px) and (prefers-reduced-motion: reduce) {
  .mnav li a, .mnav .ft { transition: opacity .2s !important; transform: none !important; }
}
