/* 2026-11-24 · Site menu for the home page (Claude, requested by Anderson).
   The exact header used on every inner page (logo, Services menu, Intelligence,
   Work, Studio, Insights, Contact, Apex Guide robot, Start a project, phone menu),
   copied from main.css with its tokens scoped to the header, so the home's own
   styles are untouched. On the home the header stays sticky (no layout change). */
.header.nav, .mmenu {
  --ink: #F6F4F0; --line: rgba(40, 28, 70, .10); --line-2: rgba(40, 28, 70, .18);
  --text: #16121F; --muted: #5D5669; --dim: #6B6477;
  --volt: #4F2FD0; --volt-ink: #fff; --uv: #9B60E5; --uv-2: #5B45D6;
  --brand-grad: linear-gradient(120deg, #7ED5FB 0%, #7B8BF7 38%, #9B60E5 68%, #E85CB6 100%);
  --gutter: clamp(16px, 4vw, 56px); --max: 1360px; --nav-h: 76px;
  --ease: cubic-bezier(.2, .7, .1, 1); --ease-out: cubic-bezier(.16, 1, .3, 1);
  --font: "Archivo", system-ui, -apple-system, "Segoe UI", sans-serif;
  --mono: "JetBrains Mono", ui-monospace, "SF Mono", Menlo, monospace;
  font-family: var(--font); color: var(--text); line-height: 1.6; -webkit-font-smoothing: antialiased;
}
.header.nav ul, .mmenu ul { list-style: none; margin: 0; padding: 0; }
.header.nav button, .mmenu button { font: inherit; color: inherit; cursor: pointer; }
.header.nav svg, .mmenu svg { display: block; max-width: 100%; }
.header.nav .wrap { width: 100%; max-width: var(--max); margin: 0 auto; padding-inline: var(--gutter); }
/* ---------- buttons ---------- */
.btn {
  --bx: 0px; --by: 0px;
  position: relative; display: inline-flex; align-items: center; justify-content: center; gap: 12px;
  min-height: 54px; padding: 0 26px; border-radius: 999px; border: 0;
  font-weight: 700; font-size: 15px; letter-spacing: .01em; white-space: nowrap;
  transform: translate(var(--bx), var(--by));
  transition: transform .35s var(--ease-out), background .3s, color .3s, box-shadow .3s;
  isolation: isolate; overflow: hidden;
}
.btn svg { width: 18px; height: 18px; transition: transform .35s var(--ease-out); }
.btn:hover svg { transform: translateX(4px) rotate(-45deg); }
.btn--volt { background: var(--brand-grad); color: #09060C; box-shadow: 0 0 0 1px rgba(232, 92, 182, .35), 0 12px 40px -10px rgba(232, 92, 182, .55); }
.btn--volt::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(105deg, transparent 30%, rgba(255, 255, 255, .7) 50%, transparent 70%);
  transform: translateX(-120%); transition: transform .8s var(--ease-out);
}
.btn--volt:hover::before { transform: translateX(120%); }
.btn--ghost { background: rgba(255, 255, 255, .04); color: var(--text); box-shadow: inset 0 0 0 1px var(--line-2); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); }
.btn--ghost:hover { background: rgba(255, 255, 255, .09); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .3); }
.btn--sm { min-height: 44px; padding: 0 18px; font-size: 14px; }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; }
.link-arrow { display: inline-flex; align-items: center; gap: 10px; font-weight: 700; color: var(--text); border-bottom: 1px solid var(--line-2); padding-bottom: 4px; transition: color .25s, border-color .25s, gap .3s var(--ease-out); }
.link-arrow:hover { color: var(--volt); border-color: var(--volt); gap: 14px; }
.link-arrow svg { width: 16px; height: 16px; flex: none; }

/* ---------- logo ---------- */
.logo { display: inline-flex; align-items: center; gap: 12px; font-weight: 800; }
.logo svg { width: 40px; height: 33px; flex: none; overflow: visible; filter: drop-shadow(0 4px 14px rgba(155, 96, 229, .35)); }
.logo__word { font-weight: 700; letter-spacing: .32em; font-size: 15px; line-height: 1; text-transform: uppercase; white-space: nowrap; }
.logo__word b { font-weight: 900; }
.logo__word i { font-style: normal; font-weight: 500; margin-left: 3px; background: var(--brand-grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.logo .f3, .logo .f4 { transition: transform .6s var(--ease-out); }
.logo:hover .f3, .logo:hover .f4 { transform: translate(-3px, 2px); }
@keyframes core { 0%, 100% { opacity: 1; } 50% { opacity: .55; } }

/* ---------- header ---------- */
.nav {
  position: fixed; inset: 0 0 auto 0; z-index: 80; height: var(--nav-h);
  display: flex; align-items: center;
  transition: transform .5s var(--ease-out), background .4s, backdrop-filter .4s, border-color .4s;
  border-bottom: 1px solid transparent;
}
.nav.is-solid { background: rgba(9, 6, 12, .72); backdrop-filter: blur(18px) saturate(140%); -webkit-backdrop-filter: blur(18px) saturate(140%); border-color: var(--line); }
.nav.is-hidden { transform: translateY(-100%); }
.nav .wrap { display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.nav__links { display: flex; align-items: center; gap: 4px; list-style: none; margin: 0; padding: 0; }
.nav__links > li { position: relative; }
.nav__links a, .nav__links button.nav__drop {
  display: inline-flex; align-items: center; gap: 6px; padding: 10px 14px; border-radius: 999px;
  font-size: 14.5px; font-weight: 600; color: #d9dbe3; background: none; border: 0;
  transition: color .2s, background .2s;
}
.nav__links a:hover, .nav__links button.nav__drop:hover, .nav__links a[aria-current="page"] { color: #fff; background: rgba(255, 255, 255, .06); }
.nav__links a[aria-current="page"]::after { content: ""; width: 5px; height: 5px; border-radius: 50%; background: var(--volt); margin-left: 2px; }
.nav__drop svg { width: 12px; height: 12px; transition: transform .3s; }
.has-mega.is-open .nav__drop svg { transform: rotate(180deg); }
.mega {
  position: absolute; top: calc(100% + 10px); left: 50%; width: min(760px, 86vw);
  transform: translate(-50%, 8px); opacity: 0; visibility: hidden;
  transition: opacity .25s, transform .35s var(--ease-out), visibility .25s;
  background: rgba(14, 14, 20, .92); border: 1px solid var(--line-2); border-radius: 22px; padding: 12px;
  backdrop-filter: blur(24px); -webkit-backdrop-filter: blur(24px);
  box-shadow: 0 40px 80px -20px rgba(0, 0, 0, .7);
  display: grid; grid-template-columns: 1fr 1fr; gap: 4px;
}
.mega::before { content: ""; position: absolute; inset: -14px 0 auto 0; height: 14px; }
.has-mega.is-open .mega { opacity: 1; visibility: visible; transform: translate(-50%, 0); }
.mega a { display: grid !important; grid-template-columns: 40px 1fr; gap: 2px 14px; padding: 14px !important; border-radius: 14px !important; align-items: start; }
.mega a:hover { background: rgba(255, 255, 255, .05) !important; }
.mega a::after { display: none !important; }
.mega__ico { grid-row: span 2; width: 40px; height: 40px; border-radius: 11px; display: grid; place-items: center; background: linear-gradient(140deg, rgba(126, 213, 251, .16), rgba(155, 96, 229, .2)); border: 1px solid var(--line-2); }
.mega__ico svg { width: 20px; height: 20px; color: var(--volt); }
.mega strong { font-size: 15px; color: #fff; }
.mega small { font-size: 13px; color: var(--muted); font-weight: 500; line-height: 1.4; }
.nav__cta { display: flex; align-items: center; gap: 10px; }
.burger { display: none; width: 48px; height: 48px; border-radius: 50%; border: 0; background: rgba(255, 255, 255, .06); box-shadow: inset 0 0 0 1px var(--line-2); position: relative; }
.burger span { position: absolute; left: 15px; right: 15px; height: 2px; background: #fff; border-radius: 2px; transition: transform .4s var(--ease-out), top .4s var(--ease-out), opacity .2s; }
.burger span:nth-child(1) { top: 19px; } .burger span:nth-child(2) { top: 27px; }
.menu-open .burger span:nth-child(1) { top: 23px; transform: rotate(45deg); }
.menu-open .burger span:nth-child(2) { top: 23px; transform: rotate(-45deg); }
@media (max-width: 1080px) {
  .nav__links, .nav__cta .btn { display: none; }
  .burger { display: block; }
}

/* mobile menu */
.mmenu {
  position: fixed; inset: 0; z-index: 79; background: rgba(9, 6, 12, .97);
  backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px);
  padding: calc(var(--nav-h) + 24px) var(--gutter) 32px;
  display: flex; flex-direction: column; overflow-y: auto;
  clip-path: circle(0% at calc(100% - 40px) 38px); visibility: hidden;
  transition: clip-path .7s var(--ease-out), visibility 0s .7s;
}
.menu-open .mmenu { clip-path: circle(150% at calc(100% - 40px) 38px); visibility: visible; transition: clip-path .8s var(--ease-out), visibility 0s; }
.menu-open { overflow: hidden; }
.mmenu ul { list-style: none; margin: 0; padding: 0; }
.mmenu__main a { display: flex; justify-content: space-between; align-items: baseline; padding: 12px 0; border-bottom: 1px solid var(--line); font-size: clamp(2rem, 9vw, 3.4rem); font-weight: 800; font-variation-settings: "wdth" 120; letter-spacing: -.03em; text-transform: uppercase; line-height: 1; opacity: 0; transform: translateY(30px); transition: opacity .5s, transform .7s var(--ease-out), color .2s; }
.mmenu__main a span { font-family: var(--mono); font-size: 12px; color: var(--dim); font-weight: 400; letter-spacing: .1em; }
.mmenu__main a:hover { color: var(--volt); }
.menu-open .mmenu__main a { opacity: 1; transform: none; }
.menu-open .mmenu__main li:nth-child(2) a { transition-delay: .05s; } .menu-open .mmenu__main li:nth-child(3) a { transition-delay: .1s; }
.menu-open .mmenu__main li:nth-child(4) a { transition-delay: .15s; } .menu-open .mmenu__main li:nth-child(5) a { transition-delay: .2s; }
.mmenu__sub { display: grid; grid-template-columns: 1fr 1fr; gap: 10px 16px; margin-top: 26px !important; }
.mmenu__sub a { color: var(--muted); font-size: 15px; font-weight: 600; }
.mmenu__sub a:hover { color: #fff; }
.mmenu__foot { margin-top: auto; padding-top: 32px; display: grid; gap: 12px; }
.mmenu__foot .btn { width: 100%; }
.nav__badge { display: inline-block; margin-left: 4px; padding: 2px 7px; border-radius: 99px; font-size: 10px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; color: #09060C; background: var(--brand-grad); }
.nav__new[aria-current="page"]::after { display: none; }
.nav {background:rgba(9,6,12,.92);border-color:#41344e80;backdrop-filter:blur(18px);-webkit-backdrop-filter:blur(18px)}
.nav .wrap {gap:18px}.nav__links a,.nav__links button.nav__drop {padding-inline:11px}
@media(max-width:1200px){.nav__links,.nav__cta .btn {display:none}.burger {display:block}}
.nav, .nav.is-solid { background: rgb(246 244 240 / .86); border-color: rgb(40 28 70 / .08); }
.nav__links a, .nav__links button.nav__drop { color: #524b62; }
.nav__links a:hover, .nav__links button.nav__drop:hover, .nav__links a[aria-current="page"] { color: #16121F; background: rgba(40, 28, 70, .05); }
.mega { background: rgba(252, 250, 255, .97); box-shadow: 0 40px 80px -30px rgba(43, 24, 102, .35); }
.mega a:hover { background: rgba(79, 47, 208, .06) !important; }
.mega strong { color: #16121F; }
.burger { background: rgba(255, 255, 255, .7); }
.burger span { background: #16121F; }
.mmenu { background: rgba(246, 244, 240, .98); }
.mmenu__sub a:hover { color: #16121F; }
.nav, .nav.is-solid { background: rgb(246 244 240 / .95); }

/* home placement: keep the home's sticky header box and height */
.header.nav { position: sticky; inset: auto; top: 0; z-index: 80; height: var(--nav-h); transform: none !important; background: rgb(246 244 240 / .95); border-bottom: 1px solid rgb(40 28 70 / .08); backdrop-filter: blur(18px); -webkit-backdrop-filter: blur(18px); box-shadow: none; }
.header.nav.is-scrolled { background: rgb(246 244 240 / .97); box-shadow: 0 10px 30px -18px rgb(30 18 70 / .35); }
.mmenu .btn { min-height: 54px; }
