/* Nav and footer of the Desk product site (landing and demo pages). Same build as orionsolves.com. */
:root { --nav-bar: 68px; --snap: cubic-bezier(.2, .9, .25, 1.18); }
html { scroll-behavior: smooth; }
[id] { scroll-margin-top: calc(var(--nav-bar) + 1px); }
.topnav { position: sticky; top: env(safe-area-inset-top, 0px); z-index: 50; background: var(--ink); border-bottom: 1px solid var(--line); }
.topnav .wrap { display: flex; align-items: center; justify-content: space-between; gap: 24px; height: var(--nav-bar); }
.brand .word { width: 104px; height: 32px; color: var(--bone); flex: none; }
.topnav ul { display: flex; gap: 30px; list-style: none; margin: 0; padding: 0; font-size: 15px; }
.topnav ul a { text-decoration: none; color: var(--soft); transition: color .2s; }
.topnav ul a:hover { color: var(--bone); }
.topnav .btn:not(.icon) { padding: 11px 16px; font-size: 14px; white-space: nowrap; }
.topnav .acts { display: flex; align-items: center; gap: 10px; }
.topnav .only-m { display: none; }
.menu-btn { display: none; width: 44px; height: 44px; padding: 0; border: 1px solid var(--line); border-radius: 2px; background: transparent; color: var(--bone); cursor: pointer; place-items: center; }
.menu-btn span, .menu-btn span::before, .menu-btn span::after { display: block; width: 18px; height: 2px; background: currentColor; transition: transform .2s, background-color .2s; }
.menu-btn span { position: relative; }
.menu-btn span::before, .menu-btn span::after { content: ""; position: absolute; left: 0; }
.menu-btn span::before { top: -6px; } .menu-btn span::after { top: 6px; }
.topnav.open .menu-btn span { background: transparent; }
.topnav.open .menu-btn span::before { transform: translateY(6px) rotate(45deg); }
.topnav.open .menu-btn span::after { transform: translateY(-6px) rotate(-45deg); }
.topnav .menu { display: contents; }
.menu-art { display: none; }
@media (max-width: 860px) {
  .menu-btn { display: grid; }
  .topnav .menu, .topnav .acts .login { display: none; }
  .topnav .only-m { display: block; }
  /* mobile menu: a full-screen panel under the bar, big links up top and the Orion constellation in the space below */
  html:has(.topnav.open) { overflow: hidden; }
  .topnav.open .menu {
    display: flex; flex-direction: column; position: absolute; top: 100%; left: 0; right: 0;
    height: calc(100dvh - var(--nav-bar) - env(safe-area-inset-top, 0px)); background: var(--ink); border-top: 1px solid var(--line);
    padding: 8px var(--gutter) calc(20px + env(safe-area-inset-bottom, 0px)); overflow-y: auto; overscroll-behavior: contain;
  }
  .topnav.open ul { flex-direction: column; gap: 0; counter-reset: m; }
  .topnav.open ul li { border-bottom: 1px solid var(--line); animation: m-in .55s var(--snap) both; }
  .topnav.open ul li:nth-child(2) { animation-delay: .05s; }
  .topnav.open ul li:nth-child(3) { animation-delay: .1s; }
  .topnav.open ul li:nth-child(4) { animation-delay: .15s; }
  .topnav.open ul li:nth-child(5) { animation-delay: .2s; }
  .topnav.open ul a {
    display: flex; align-items: baseline; gap: 14px; padding: 16px 2px; color: var(--bone);
    font: 800 clamp(26px, 8vw, 38px)/1 var(--display); font-stretch: 125%; letter-spacing: -.02em;
  }
  .topnav.open ul a::before { counter-increment: m; content: "0" counter(m); font: 500 11px/1 var(--mono); letter-spacing: .12em; color: var(--mute); transform: translateY(-.9em); }
  .topnav.open .menu-art { display: flex; flex-direction: column; flex: 1; min-height: 150px; padding-top: 16px; animation: m-fade .3s both; }
  .menu-art svg { flex: 1; min-height: 0; width: 100%; }
  .menu-art .field circle { fill: var(--bone); animation: twinkle 3.2s ease-in-out infinite alternate; }
  .menu-art .lines path { fill: none; stroke: var(--mute); stroke-width: .7; stroke-dasharray: 1; stroke-dashoffset: 1; opacity: .7; }
  .topnav.open .menu-art .lines path { animation: draw 1s cubic-bezier(.4, .2, .2, 1) forwards; }
  .menu-art .stars circle { fill: var(--bone); }
  .menu-art .glow { fill: var(--volt); opacity: .14; animation: glow 2.6s ease-in-out infinite alternate; transform-box: fill-box; transform-origin: center; }
  .menu-meta { margin: 0; display: flex; justify-content: space-between; gap: 12px; padding-top: 14px; border-top: 1px solid var(--line); font: 500 10px/1.2 var(--mono); letter-spacing: .12em; text-transform: uppercase; color: var(--mute); }
  .menu-meta span:last-child { color: var(--bone); }
}
@keyframes m-in { from { opacity: 0; transform: translateY(18px); } }
@keyframes m-fade { from { opacity: 0; } }
@keyframes draw { to { stroke-dashoffset: 0; } }
@keyframes twinkle { from { opacity: var(--o, .5); } to { opacity: .08; } }
@keyframes glow { from { transform: scale(.8); } to { transform: scale(1.25); opacity: .06; } }
@media (max-width: 480px) { .topnav .brand .word { display: none; } .topnav .wrap { gap: 12px; } }
@media (max-width: 380px) { .topnav .btn:not(.icon) { padding: 11px 12px; font-size: 13px; } .topnav .acts { gap: 8px; } }

footer.site { border-top: 1px solid var(--line); overflow: clip; background: var(--ink); }
.foot-cta { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 24px 40px;
  padding-block: clamp(56px, 8vw, 96px) clamp(40px, 5vw, 64px); border-bottom: 1px solid var(--line); }
.foot-cta h2 { font-size: clamp(34px, 4.6vw, 64px); margin: 16px 0 0; }
.foot-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr; gap: 40px; padding-block: 48px; }
.foot-brand p { color: var(--mute); max-width: 34ch; margin: 18px 0 0; font-size: 15px; }
.foot-brand .foot-loc { margin-top: 14px; font-size: 14px; }
.foot-loc a { color: var(--soft); text-underline-offset: 3px; } .foot-loc a:hover { color: var(--bone); }
.foot-col h3 { margin: 0 0 16px; font: 500 12px/1.2 var(--mono); letter-spacing: .12em; text-transform: uppercase; color: var(--mute); }
.social { list-style: none; display: flex; gap: 10px; margin: 18px 0 0; padding: 0; }
.social a { display: grid; place-items: center; width: 38px; height: 38px; border: 1px solid var(--line); color: var(--mute); transition: color .2s, border-color .2s; }
.social svg { width: 17px; height: 17px; }
.to-top:hover, .social a:hover { border-color: var(--accent-line); color: var(--accent); }
.foot-col ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.foot-col a { color: var(--mute); text-decoration: none; font-size: 15px; transition: color .2s; }
.foot-col a:hover { color: var(--bone); }
.foot-col a::before { content: ""; display: inline-block; width: 0; height: 2px; background: var(--accent-line); vertical-align: middle;
  margin-right: 0; transition: width .25s, margin-right .25s; }
.foot-col a:hover::before { width: 12px; margin-right: 8px; }
.foot-row { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px;
  padding-block: 22px; border-top: 1px solid var(--line); font-size: 13px; color: var(--mute); }
.to-top { display: inline-flex; align-items: center; gap: 10px; background: none; border: 1px solid var(--line); color: var(--bone);
  font: 500 12px/1 var(--mono); letter-spacing: .12em; text-transform: uppercase; padding: 10px 14px; cursor: pointer; transition: border-color .2s, color .2s; }
.foot-big { height: clamp(70px, 14vw, 190px); overflow: hidden; margin-top: 8px; }
.foot-big svg { display: block; width: 100%; height: auto; aspect-ratio: 1210 / 365; color: var(--slate-2);
  -webkit-mask-image: linear-gradient(#000 20%, transparent 95%); mask-image: linear-gradient(#000 20%, transparent 95%); }
@media (max-width: 760px) { .foot-grid { grid-template-columns: 1fr 1fr; } .foot-brand { grid-column: 1 / -1; } }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } .topnav *, .topnav *::before { animation: none !important; } .menu-art .lines path { stroke-dashoffset: 0; } }
