/* =========================================================================
   VALIANT · Site menu (Industries panel + mobile menu)
   Shared by every page that has the main nav. Pairs with industries-menu.js,
   which builds the industry cards from one INDUSTRIES list.
   Load this AFTER the page's inline <style> so it wins over older nav rules.
   ========================================================================= */

/* ---------- Nav trigger (sits inside .nav__links) ---------- */
.nav__ind {
  display: inline-flex; align-items: center; gap: 7px;
  padding: 7px 13px; margin: 0 -13px;
  border: 0; border-radius: 999px; background: transparent; cursor: pointer;
  font-family: inherit; font-size: 14px; font-weight: inherit;
  letter-spacing: -0.005em;
  color: var(--v-fg-60);
  transition: color .2s ease, background .2s ease;
}
.nav__ind:hover { color: var(--v-fg); }
.nav__ind[aria-expanded="true"] { color: var(--v-fg); background: rgba(255,255,255,0.09); }
.nav__ind svg { width: 10px; height: 10px; flex: none; transition: transform .25s ease; }
.nav__ind[aria-expanded="true"] svg { transform: rotate(180deg); }
.nav__ind:focus-visible { outline: 2px solid var(--v-accent); outline-offset: 2px; }

/* ---------- Scrim: dims the page while the panel is open ---------- */
.mega-scrim {
  position: fixed; inset: 0; z-index: 40;
  background: rgba(3, 11, 16, 0.62);
  opacity: 0; visibility: hidden; pointer-events: none;
  transition: opacity .25s ease, visibility .25s ease;
}
.mega-scrim.is-open { opacity: 1; visibility: visible; }

/* ---------- Desktop panel ---------- */
.mega {
  position: absolute; left: 0; right: 0; top: 100%;
  padding: 6px 40px 0;
  opacity: 0; visibility: hidden; pointer-events: none;
  transform: translateY(-8px);
  transition: opacity .22s ease, transform .22s ease, visibility .22s ease;
}
.mega.is-open { opacity: 1; visibility: visible; pointer-events: auto; transform: none; }
.mega__panel {
  position: relative; overflow: hidden;
  max-width: 1200px; margin: 0 auto;
  display: grid; grid-template-columns: 290px 1fr; gap: 36px;
  padding: 34px 32px 32px 36px;
  background: #091a24;
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 22px;
  box-shadow: 0 50px 110px -30px rgba(0,0,0,0.85);
}
/* sunset line across the top edge */
.mega__panel::after {
  content: ""; position: absolute; left: 0; right: 0; top: 0; height: 2px;
  background: linear-gradient(90deg, #FD6C1D, #2A56D6 55%, #4623B1);
}
/* brand glow, bottom-left */
.mega__panel::before {
  content: ""; position: absolute; left: -160px; bottom: -220px;
  width: 480px; height: 480px; border-radius: 50%;
  background: var(--v-conic); filter: blur(100px); opacity: .26;
  pointer-events: none;
}
.mega__intro { position: relative; display: flex; flex-direction: column; align-items: flex-start; gap: 16px; }
.mega .v-overline { text-transform: uppercase; font-size: 12px; }
.mega__intro h3 { margin: 4px 0 0; padding-bottom: 18px; width: 100%; border-bottom: 1px solid var(--v-fg-10); font-size: 30px; line-height: 1.08; font-weight: 500; letter-spacing: -0.025em; text-wrap: balance; }
.mega__intro p { margin: 0; font-size: 14px; line-height: 1.55; color: var(--v-fg-60); }
.mega__stats { display: flex; gap: 28px; margin-top: 4px; }
.mega__stats div { display: flex; flex-direction: column; gap: 5px; }
.mega__stats b { font-size: 26px; line-height: 1; font-weight: 500; letter-spacing: -0.03em; color: var(--v-fg); }
.mega__stats span { font-size: 11px; letter-spacing: .08em; text-transform: uppercase; color: var(--v-fg-40); }
.mega__links { margin-top: auto; padding-top: 18px; display: flex; flex-direction: column; gap: 12px; width: 100%; border-top: 1px solid var(--v-fg-10); }
.mega__link { display: inline-flex; align-items: center; justify-content: space-between; gap: 10px; font-size: 14px; color: var(--v-fg); transition: color .2s ease; }
a.mega__link:hover { color: var(--v-accent); }
.mega__link span { font-size: 11px; letter-spacing: .06em; text-transform: uppercase; color: var(--v-fg-40); }
span.mega__link { color: var(--v-fg-60); }

/* ---------- Industry cards (desktop panel + mobile menu) ---------- */
.mega__grid { position: relative; display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.mega__card {
  --tone: 253,108,29;
  position: relative; overflow: hidden;
  display: flex; flex-direction: column;
  border: 1px solid rgba(255,255,255,0.11);
  border-radius: 16px;
  background: #0d212c;
  text-align: center;
  transition: transform .25s ease, border-color .25s ease, box-shadow .25s ease;
}
.mega__card--blue   { --tone: 78,125,255; }
.mega__card--purple { --tone: 137,104,245; }
/* header band: tone wash + graph-paper grid + glow behind the token */
.mega__top {
  position: relative;
  height: 112px;
  display: grid; place-items: center;
  border-bottom: 1px solid rgba(255,255,255,0.09);
  background:
    radial-gradient(circle at 50% 62%, rgba(var(--tone), .34), transparent 60%),
    linear-gradient(rgba(255,255,255,.05) 1px, transparent 1px) 0 -1px / 100% 14px,
    linear-gradient(90deg, rgba(255,255,255,.05) 1px, transparent 1px) -1px 0 / 14px 100%,
    rgba(var(--tone), .09);
}
.tok { display: block; width: 68px; height: 76px; overflow: visible; filter: drop-shadow(0 12px 14px rgba(var(--tone), .42)); transition: transform .35s cubic-bezier(.16,1,.3,1); }
.mega__body { display: flex; flex-direction: column; align-items: center; gap: 6px; flex: 1; padding: 16px 14px 16px; }
.mega__name { font-size: 17px; line-height: 1.2; font-weight: 500; letter-spacing: -0.02em; color: var(--v-fg); }
.mega__sub  { font-size: 13px; line-height: 1.4; color: var(--v-fg-60); margin-bottom: 10px; text-wrap: balance; }
.mega__chip {
  margin-top: auto;
  padding: 5px 10px;
  border: 1px solid rgba(var(--tone), .55);
  border-radius: 999px;
  font-family: var(--v-font); font-weight: 600; font-variant-numeric: tabular-nums;
  font-size: 10px; line-height: 1.2; letter-spacing: .08em; text-transform: uppercase;
  color: var(--v-fg);
  background: rgba(var(--tone), .16);
}
a.mega__card:hover { transform: translateY(-3px); border-color: rgba(var(--tone), .6); box-shadow: 0 18px 40px -18px rgba(var(--tone), .55); }
a.mega__card:hover .tok { transform: translateY(-4px) scale(1.04); }
a.mega__card:active .tok { transform: translateY(1px) scale(.98); }
a.mega__card:focus-visible { outline: 2px solid var(--v-accent); outline-offset: 2px; }
.mega__card.is-current { border-color: rgba(var(--tone), .6); }
.mega__card.is-soon { cursor: default; }
.mega__card.is-soon .mega__chip { color: var(--v-fg-60); border-color: var(--v-fg-20); background: none; }

/* cards rise in one after another when the panel opens */
.mega .mega__card { opacity: 0; transform: translateY(10px); }
.mega.is-open .mega__card { opacity: 1; transform: none; transition: opacity .35s ease, transform .35s ease, border-color .25s ease, box-shadow .25s ease; }
.mega.is-open .mega__card:nth-child(1) { transition-delay: .03s, .03s, 0s, 0s; }
.mega.is-open .mega__card:nth-child(2) { transition-delay: .07s, .07s, 0s, 0s; }
.mega.is-open .mega__card:nth-child(3) { transition-delay: .11s, .11s, 0s, 0s; }
.mega.is-open .mega__card:nth-child(4) { transition-delay: .15s, .15s, 0s, 0s; }
.mega.is-open .mega__card:nth-child(5) { transition-delay: .19s, .19s, 0s, 0s; }
.mega.is-open .mega__card:nth-child(6) { transition-delay: .23s, .23s, 0s, 0s; }
.mega.is-open a.mega__card:hover { transform: translateY(-3px); transition-delay: 0s; }

/* =========================================================================
   MOBILE MENU (v2): full-screen numbered list, industries open in place,
   call to action pinned to the bottom.
   ========================================================================= */
.navmenu--v2 {
  display: flex; flex-direction: column; align-items: stretch; justify-content: flex-start;
  overflow-y: auto; overscroll-behavior: contain;
  background: #06141c;
  backdrop-filter: none; -webkit-backdrop-filter: none;
}
/* solid header while the menu is open, so rows scroll under it cleanly */
.nav-wrap.menu-open, .nav-wrap.menu-open.is-scrolled {
  background: #06141c; border-bottom-color: var(--v-fg-10);
  backdrop-filter: none; -webkit-backdrop-filter: none;
}
.navmenu--v2 .navmenu__inner {
  flex: 1 0 auto;
  display: flex; flex-direction: column; align-items: stretch; gap: 0;
  width: 100%; max-width: 680px; margin: 0 auto;
  padding: 78px 22px 18px;
  counter-reset: mrow;
}
.mrow {
  --tone: 253,108,29;
  counter-increment: mrow;
  display: grid; grid-template-columns: 34px 1fr 36px; align-items: center; column-gap: 14px;
  width: 100%; padding: 17px 0;
  border: 0; border-bottom: 1px solid var(--v-fg-10); background: none;
  font-family: inherit; text-align: left; color: var(--v-fg); cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}
.mrow--acc { scroll-margin-top: 70px; }
.mrow--b { --tone: 78,125,255; }
.mrow--p { --tone: 137,104,245; }
.mrow__n {
  align-self: start; margin-top: 7px;
  height: 22px; border-radius: 999px;
  display: grid; place-items: center;
  font-family: var(--v-font); font-weight: 600; font-variant-numeric: tabular-nums; font-size: 11px; letter-spacing: .02em;
  color: rgb(var(--tone));
  background: rgba(var(--tone), .14);
  border: 1px solid rgba(var(--tone), .42);
}
.mrow__n::before { content: "0" counter(mrow); }
.mrow__t { display: flex; flex-direction: column; gap: 7px; font-size: 31px; line-height: 1.02; font-weight: 500; letter-spacing: -0.03em; }
.mrow__t small { font-size: 11px; line-height: 1.2; font-weight: 500; letter-spacing: .12em; text-transform: uppercase; color: var(--v-fg-40); }
.mrow__go {
  position: relative;
  width: 36px; height: 36px; border-radius: 50%;
  display: grid; place-items: center;
  border: 1px solid var(--v-fg-20); color: var(--v-fg);
  transition: background .2s ease, border-color .2s ease, transform .2s ease;
}
.mrow__go svg { width: 14px; height: 14px; }
.mrow__go--plus::before, .mrow__go--plus::after { content: ""; position: absolute; width: 13px; height: 1.5px; border-radius: 2px; background: currentColor; transition: transform .25s ease; }
.mrow__go--plus::after { transform: rotate(90deg); }
.mrow[aria-expanded="true"] .mrow__go { background: var(--v-accent); border-color: var(--v-accent); }
.mrow[aria-expanded="true"] .mrow__go--plus::after { transform: rotate(0deg); }
.mrow[aria-expanded="true"] { border-bottom-color: transparent; }
.mrow:active .mrow__go { transform: scale(.94); }

.mrow__panel { padding: 4px 0 24px; border-bottom: 1px solid var(--v-fg-10); }
.mrow__panel[hidden] { display: none; }
.mrow__intro { margin: 0 0 16px; font-size: 15px; line-height: 1.5; color: var(--v-fg-60); }
.mrow__intro b { display: block; margin-bottom: 6px; font-size: 19px; line-height: 1.2; font-weight: 500; letter-spacing: -0.02em; color: var(--v-fg); }
.mega__grid--m { grid-template-columns: 1fr 1fr; gap: 10px; }
.mega__grid--m .mega__top { height: 92px; }
.mega__grid--m .tok { width: 56px; height: 63px; }
.mega__grid--m .mega__body { padding: 13px 10px 14px; gap: 5px; }
.mega__grid--m .mega__name { font-size: 15px; }
.mega__grid--m .mega__sub { font-size: 12px; margin-bottom: 8px; }
.mega__grid--m .mega__chip { font-size: 9px; padding: 4px 8px; }

.navmenu__bar {
  position: sticky; bottom: 0; z-index: 2;
  width: 100%; max-width: 680px; margin: 0 auto;
  display: flex; flex-direction: column; align-items: stretch; gap: 0;
  padding: 26px 22px calc(18px + env(safe-area-inset-bottom));
  background: linear-gradient(180deg, rgba(6,20,28,0), #06141c 34%);
}
.navmenu__bar .v-cta { display: flex; margin: 0; }
.navmenu__bar .v-cta__core { width: 100%; justify-content: center; }

/* ---------- Home page industries grid ---------- */
.mega__grid--home { gap: 18px; margin-top: 24px; }
.mega__grid--home .mega__top { height: 148px; }
.mega__grid--home .tok { width: 86px; height: 96px; }
.mega__grid--home .mega__body { padding: 20px 18px 22px; gap: 8px; }
.mega__grid--home .mega__name { font-size: 21px; }
.mega__grid--home .mega__sub { font-size: 14px; margin-bottom: 14px; }
.mega__grid--home .mega__chip { font-size: 11px; padding: 6px 12px; }
.ind-home__foot { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 28px; margin: 28px 0 0; font-size: 15px; color: var(--v-fg-60); }
.ind-home__foot a { color: var(--v-fg); font-weight: 500; }
.ind-home__foot a b { display: inline-block; font-weight: 500; color: var(--v-accent); transition: transform .35s cubic-bezier(.16,1,.3,1); }
.ind-home__foot a:hover b { transform: translateX(5px); }
@media (max-width: 720px) {
  .mega__grid--home { grid-template-columns: 1fr 1fr; gap: 10px; }
  .mega__grid--home .mega__top { height: 96px; }
  .mega__grid--home .tok { width: 58px; height: 65px; }
  .mega__grid--home .mega__body { padding: 14px 10px 15px; gap: 5px; }
  .mega__grid--home .mega__name { font-size: 16px; }
  .mega__grid--home .mega__sub { font-size: 12px; margin-bottom: 9px; }
  .mega__grid--home .mega__chip { font-size: 9px; padding: 4px 8px; }
  .ind-home__foot { flex-direction: column; align-items: flex-start; }
}

/* ---------- "Other industries" strip (industry pages) ---------- */
.ind-strip { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; }
.ind-pill {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 9px 16px;
  border: 1px solid var(--v-fg-10); border-radius: 999px;
  background: rgba(255,255,255,0.04);
  font-size: 14px; color: var(--v-fg-80);
  transition: border-color .2s ease, color .2s ease;
}
a.ind-pill:hover { border-color: var(--v-fg-40); color: var(--v-fg); }

@media (min-width: 620px) {
  .mega__grid--m { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 1100px) {
  .mega, .mega-scrim { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  .mega, .mega .mega__card, .tok { transition: none !important; }
  .mega .mega__card { opacity: 1; transform: none; }
}
