/* The menu (js/menu.js), on every page, on a phone only: on desktop the nav keeps its "Talk to us" and its pill of links,
   and on a phone (where that pill is hidden) the menu takes Talk to us's place. The same light pill, reading Menu, two lines
   that turn into a cross. It opens a glass panel from the button's corner: the pages, large, each with its numeral, the
   one you're on ticked; on hover a page's name rolls over to its stretch of the spectrum. At its foot, the way to start a
   conversation. On a phone the panel runs the width of the screen (the nav's pill of links is hidden there). */
.nav-menu{display:none;cursor:pointer;font-family:inherit;gap:11px}
.mn-t{position:relative;display:block;height:1.25em;line-height:1.25em;overflow:hidden}
.mn-t>span{display:block;transition:transform .6s cubic-bezier(.19,1,.22,1)}
.nav-menu[aria-expanded="true"] .mn-t>span{transform:translate3d(0,-100%,0)}
.mn-i{position:relative;display:block;width:16px;height:10px;flex:none}
.mn-i i{position:absolute;left:0;right:0;height:1.5px;border-radius:2px;background:currentColor;transition:transform .55s cubic-bezier(.19,1,.22,1),top .45s cubic-bezier(.19,1,.22,1)}
.mn-i i:first-child{top:1.5px}
.mn-i i:last-child{top:7px;transform:scaleX(.62);transform-origin:100% 50%}
.nav-menu:hover .mn-i i:last-child{transform:none}
.nav-menu[aria-expanded="true"] .mn-i i{top:4.25px}
.nav-menu[aria-expanded="true"] .mn-i i:first-child{transform:rotate(45deg)}
.nav-menu[aria-expanded="true"] .mn-i i:last-child{transform:rotate(-45deg);transform-origin:50% 50%}
/* while the menu is open the nav stays put */
.nav.mn-on{transform:none!important}

/* the page behind softens a little */
.mn-scrim{position:fixed;inset:0;z-index:49;background:rgba(232,234,240,.38);-webkit-backdrop-filter:blur(4px);backdrop-filter:blur(4px);
  opacity:0;visibility:hidden;transition:opacity .5s cubic-bezier(.22,1,.36,1),visibility 0s linear .5s}
.mn-scrim.open{opacity:1;visibility:visible;transition:opacity .5s cubic-bezier(.22,1,.36,1)}

/* the panel opens out of the button's corner */
.mn{position:fixed;top:78px;right:var(--m);z-index:60;width:min(440px,calc(100vw - 2 * var(--m)));padding:18px 26px 24px;border-radius:26px;color:#111318;
  background:linear-gradient(180deg,rgba(253,253,255,.94),rgba(246,247,250,.92));-webkit-backdrop-filter:blur(24px) saturate(160%);backdrop-filter:blur(24px) saturate(160%);
  border:1px solid rgba(17,19,24,.07);box-shadow:inset 0 1px 0 #fff,0 40px 90px -40px rgba(32,26,70,.42),0 10px 30px -18px rgba(17,19,24,.18);
  clip-path:inset(0 0 100% 55% round 26px);visibility:hidden;
  transition:clip-path .6s cubic-bezier(.7,0,.84,0),visibility 0s linear .6s}
.mn.open{clip-path:inset(0 0 0 0 round 26px);visibility:visible;transition:clip-path .85s cubic-bezier(.19,1,.22,1)}
/* a faint spectral light inside it: lilac high at the button's corner, peach low on the far side */
.mn::before{content:"";position:absolute;inset:0;border-radius:inherit;pointer-events:none;
  background:radial-gradient(60% 46% at 92% 0%,rgba(140,123,255,.17),transparent 72%),radial-gradient(55% 44% at 6% 100%,rgba(255,154,92,.13),transparent 72%)}
.mn>*{position:relative}
.mn-l{list-style:none;margin:0;padding:0}
.mn-l li{overflow:hidden;border-bottom:1px solid rgba(17,19,24,.08)}
.mn-l a{display:grid;grid-template-columns:48px minmax(0,1fr) auto;align-items:center;padding:13px 0 14px;color:inherit;text-decoration:none;
  font-family:var(--fd,var(--f));font-weight:500;font-size:clamp(30px,2.5vw,40px);line-height:1.04;letter-spacing:-.042em;
  transform:translate3d(0,110%,0);transition:transform .5s cubic-bezier(.7,0,.84,0)}
.mn.open .mn-l a{transform:none;transition:transform 1s cubic-bezier(.19,1,.22,1) calc(.12s + var(--i,0) * .055s)}
.mn-l small{align-self:center;font-family:"Geist Mono",ui-monospace,Menlo,monospace;font-size:11px;font-weight:400;letter-spacing:.04em;color:#9A9FA8}
/* the name rolls over to its stretch of the spectrum */
.mn-r{position:relative;display:block;overflow:hidden;padding-bottom:.08em;margin-bottom:-.08em}
.mn-r>span{display:block;transition:transform .6s cubic-bezier(.19,1,.22,1)}
.mn-r>span+span{position:absolute;left:0;top:0;transform:translate3d(0,105%,0);
  background-image:linear-gradient(90deg,var(--a),var(--b));-webkit-background-clip:text;background-clip:text;color:transparent;-webkit-text-fill-color:transparent}
.mn-l a:hover .mn-r>span:first-child,.mn-l a:focus-visible .mn-r>span:first-child{transform:translate3d(0,-105%,0)}
.mn-l a:hover .mn-r>span+span,.mn-l a:focus-visible .mn-r>span+span{transform:none}
.mn-l a:focus-visible{outline:0}
.mn-l a:focus-visible small{color:#111318}
/* an arrow comes in on hover; the page you're on carries a tick instead */
.mn-l a>i{width:15px;height:15px;justify-self:end;background:currentColor;opacity:0;transform:translate3d(-6px,6px,0);transition:opacity .35s,transform .55s cubic-bezier(.19,1,.22,1);
  -webkit-mask:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 14 14' fill='none' stroke='black' stroke-width='1.5'%3E%3Cpath d='M2.5 11.5 11.5 2.5M4.5 2.5h7v7'/%3E%3C/svg%3E") center/contain no-repeat;
  mask:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 14 14' fill='none' stroke='black' stroke-width='1.5'%3E%3Cpath d='M2.5 11.5 11.5 2.5M4.5 2.5h7v7'/%3E%3C/svg%3E") center/contain no-repeat}
.mn-l a:hover>i,.mn-l a:focus-visible>i{opacity:1;transform:none}
.mn-l a[aria-current]>i{opacity:1;transform:none;width:14px;height:9px;background:none;-webkit-mask:none;mask:none;border-left:1.6px solid #6F5CFF;border-bottom:1.6px solid #6F5CFF;transform:translate3d(0,-2px,0) rotate(-45deg)}
.mn-l a[aria-current] small{color:#6F5CFF}
/* the foot: the way to start a conversation, and where we are */
.mn-f{display:flex;align-items:center;justify-content:space-between;gap:16px;margin-top:22px;opacity:0;transform:translate3d(0,10px,0);transition:opacity .3s,transform .4s}
.mn.open .mn-f{opacity:1;transform:none;transition:opacity .7s cubic-bezier(.22,1,.36,1) .38s,transform .9s cubic-bezier(.22,1,.36,1) .38s}
.mn-go{position:relative;isolation:isolate;overflow:hidden;display:inline-flex;align-items:center;gap:12px;height:44px;padding:0 18px 0 20px;border-radius:99px;
  background:linear-gradient(180deg,#2C2E36,#111318);color:#F4F5F6;font-size:14px;font-weight:500;letter-spacing:-.01em;text-decoration:none;
  box-shadow:inset 0 1px 0 rgba(255,255,255,.16);transition:transform .35s cubic-bezier(.22,1,.36,1)}
.mn-go::before{content:"";position:absolute;inset:0;z-index:-1;border-radius:inherit;background:linear-gradient(100deg,#3B4CFF 0%,#6F5CFF 40%,#B45CF0 70%,#FF5C9A 100%);
  transform:translate3d(-101%,0,0);transition:transform .6s cubic-bezier(.19,1,.22,1)}
.mn-go:hover::before,.mn-go:focus-visible::before{transform:none}
.mn-go:hover{transform:translate3d(0,-1px,0)}
.mn-go:focus-visible{outline:2px solid #8A5CFF;outline-offset:3px}
.mn-go i{width:14px;height:10px;background:currentColor;
  -webkit-mask:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 14 10' fill='none' stroke='black' stroke-width='1.5'%3E%3Cpath d='M0 5h12.5M8.5 1l4 4-4 4'/%3E%3C/svg%3E") center/contain no-repeat;
  mask:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 14 10' fill='none' stroke='black' stroke-width='1.5'%3E%3Cpath d='M0 5h12.5M8.5 1l4 4-4 4'/%3E%3C/svg%3E") center/contain no-repeat;
  transition:transform .5s cubic-bezier(.19,1,.22,1)}
.mn-go:hover i{transform:translate3d(3px,0,0)}
.mn-at{margin:0;font-size:13px;line-height:1.35;color:#8E939C;text-align:right}

@media (max-width:860px){
  .nav-menu{display:inline-flex}
  .nav-talk{display:none}
  .mn{top:70px;left:10px;right:10px;width:auto;padding:12px 20px 20px;border-radius:22px}
  .mn.open{clip-path:inset(0 0 0 0 round 22px)}
  .mn-l a{font-size:clamp(32px,9vw,42px);padding:14px 0 15px}
  .mn-f{flex-wrap:wrap}
}
@media (prefers-reduced-motion:reduce){
  .mn,.mn.open,.mn-l a,.mn.open .mn-l a,.mn-f,.mn.open .mn-f{transition:opacity .2s,visibility 0s}
  .mn{clip-path:none;opacity:0}.mn.open{opacity:1}
  .mn-l a{transform:none}
}
