/* Corporate shell: header, navigation, mobile menu, breadcrumbs, page widths, TOC and footer. */

.nk-skip-link {
  position: fixed;
  top: 0.75rem;
  left: 0.75rem;
  z-index: calc(var(--nk-z-mobile-menu) + 40);
  padding: 0.65rem 0.9rem;
  border-radius: var(--nk-radius-sm);
  background: var(--nk-color-white);
  color: var(--nk-color-charcoal);
  font-weight: 700;
  text-decoration: none;
  transform: translateY(-180%);
}

.nk-skip-link:focus {
  transform: translateY(0);
}

.nk-site-header {
  position: sticky;
  top: 0;
  z-index: var(--nk-z-header);
  min-height: var(--nk-header-height);
  border-bottom: 1px solid var(--nk-color-border);
  background: rgba(9, 5, 15, 0.94);
  box-shadow: none;
  backdrop-filter: blur(18px);
  transition:
    background var(--nk-duration-medium) var(--nk-ease-standard),
    box-shadow var(--nk-duration-medium) var(--nk-ease-standard);
}

.nk-site-header.is-scrolled,
.nk-site-header.has-open-menu {
  background: rgba(6, 4, 11, 0.985);
  box-shadow: var(--nk-shadow-header);
}

.nk-header__inner {
  width: min(calc(100% - (2 * var(--nk-page-gutter))), var(--nk-width-wide));
  min-height: var(--nk-header-height);
  margin-inline: auto;
  display: flex;
  align-items: center;
  gap: 2rem;
}

.nk-brand {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  flex-shrink: 0;
  color: var(--nk-color-white);
  font-weight: 750;
  text-decoration: none;
}

.nk-brand:hover {
  color: var(--nk-color-white);
}

.nk-brand__mark {
  width: 2.5rem;
  height: 2.5rem;
  object-fit: contain;
  background-color: var(--nk-color-white);
  border-radius: 8px;
}

.nk-brand__name {
  font-size: 0.95rem;
  letter-spacing: -0.015em;
  white-space: nowrap;
}

.nk-brand__name .word-1,
.nk-brand__name .word-2 {
  display: block;
}

.nk-desktop-nav {
  min-width: 0;
  margin-left: auto;
  display: flex;
  align-self: stretch;
  align-items: center;
  gap: clamp(0.35rem, 1vw, 1.15rem);
}

.nk-nav-group {
  display: flex;
  align-self: stretch;
  align-items: center;
}

.nk-nav-link {
  position: relative;
  min-height: 2.75rem;
  padding: 0.55rem 0.4rem;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  border: 0;
  background: transparent;
  color: var(--nk-color-text-muted);
  font-size: 0.875rem;
  font-weight: 650;
  text-decoration: none;
  cursor: pointer;
}

.nk-nav-link::after {
  content: "";
  position: absolute;
  right: 0.4rem;
  bottom: 0.25rem;
  left: 0.4rem;
  height: 2px;
  background: linear-gradient(90deg, var(--nk-color-violet), var(--nk-color-blue));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform var(--nk-duration-medium) var(--nk-ease-standard);
}

.nk-nav-link:hover,
.nk-nav-link:focus-visible,
.nk-nav-link.is-active,
.nk-nav-link[aria-expanded="true"] {
  color: var(--nk-color-white);
}

.nk-nav-link:hover::after,
.nk-nav-link:focus-visible::after,
.nk-nav-link.is-active::after,
.nk-nav-link[aria-expanded="true"]::after {
  transform: scaleX(1);
}

.nk-nav-link--contact {
  margin-left: 0.3rem;
  padding-inline: 0.95rem;
  border: 1px solid var(--nk-color-border-strong);
  border-radius: var(--nk-radius-sm);
  color: var(--nk-color-white);
}

.nk-nav-link--contact::after {
  display: none;
}

.nk-nav-link--contact:hover,
.nk-nav-link--contact:focus-visible {
  border-color: var(--nk-color-violet-bright);
  background: var(--nk-color-violet-soft);
}

.nk-nav-chevron {
  width: 0.45rem;
  height: 0.45rem;
  display: inline-block;
  border-right: 1.5px solid currentColor;
  border-bottom: 1.5px solid currentColor;
  transform: translateY(-0.15rem) rotate(45deg);
  transition: transform var(--nk-duration-fast) var(--nk-ease-standard);
}

[aria-expanded="true"] > .nk-nav-chevron {
  transform: translateY(0.1rem) rotate(225deg);
}

.nk-mega-menu {
  position: fixed;
  top: var(--nk-header-height);
  right: 0;
  left: 0;
  z-index: var(--nk-z-mega-menu);
  border-top: 1px solid var(--nk-color-border);
  border-bottom: 1px solid var(--nk-color-border);
  background:
    radial-gradient(circle at 15% 0%, rgba(139, 92, 255, 0.18), transparent 30rem),
    rgba(10, 6, 17, 0.985);
  box-shadow: var(--nk-shadow-overlay);
  backdrop-filter: blur(22px);
}

.nk-mega-menu[hidden] {
  display: none;
}

.nk-mega-menu__inner {
  width: min(calc(100% - (2 * var(--nk-page-gutter))), var(--nk-width-wide));
  margin-inline: auto;
  padding-block: clamp(2rem, 4vw, 3.5rem);
  display: grid;
  grid-template-columns: minmax(13rem, 0.8fr) minmax(0, 2.2fr);
  gap: clamp(2rem, 6vw, 6rem);
}

.nk-mega-menu__eyebrow {
  margin: 0 0 0.75rem;
  color: var(--nk-color-violet-bright);
  font-size: var(--nk-text-xs);
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.nk-mega-menu__summary {
  max-width: 28ch;
  margin: 0;
  color: var(--nk-color-text-muted);
  font-size: 1rem;
  line-height: 1.65;
}

.nk-mega-menu__grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0 2.5rem;
}

.nk-mega-menu__column h2 {
  margin: 0 0 0.75rem;
  color: var(--nk-color-white);
  font-size: 1rem;
}

.nk-mega-menu__item {
  min-height: 3.25rem;
  padding-block: 0.8rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  border-bottom: 1px solid var(--nk-color-border);
  color: var(--nk-color-text-muted);
  font-size: 0.95rem;
  font-weight: 650;
  text-decoration: none;
}

.nk-mega-menu__item:hover,
.nk-mega-menu__item:focus-visible,
.nk-mega-menu__item[aria-current="page"] {
  color: var(--nk-color-white);
  border-color: rgba(173, 124, 255, 0.55);
}

.nk-mega-menu__item span:last-child {
  color: var(--nk-color-violet-bright);
  transition: transform var(--nk-duration-fast) var(--nk-ease-standard);
}

.nk-mega-menu__item:hover span:last-child,
.nk-mega-menu__item:focus-visible span:last-child {
  transform: translateX(0.25rem);
}

.nk-header__actions {
  display: flex;
  align-items: center;
  gap: 0.45rem;
}

.nk-icon-button,
.nk-mobile-menu-button {
  width: 2.75rem;
  height: 2.75rem;
  padding: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid transparent;
  border-radius: var(--nk-radius-sm);
  background: transparent;
  color: var(--nk-color-white);
  cursor: pointer;
}

.nk-icon-button:hover,
.nk-icon-button:focus-visible,
.nk-mobile-menu-button:hover,
.nk-mobile-menu-button:focus-visible {
  border-color: var(--nk-color-border);
  background: rgba(255, 255, 255, 0.05);
}

.nk-icon-button svg {
  width: 1.35rem;
  height: 1.35rem;
  fill: currentColor;
}

.nk-mobile-menu-button {
  display: none;
  flex-direction: column;
  gap: 0.38rem;
}

.nk-mobile-menu-button span {
  width: 1.25rem;
  height: 2px;
  display: block;
  background: currentColor;
}

.nk-mobile-menu {
  position: fixed;
  inset: 0;
  z-index: var(--nk-z-mobile-menu);
  padding: 0 var(--nk-page-gutter) 2rem;
  overflow-y: auto;
  background:
    radial-gradient(circle at 80% 0%, rgba(139, 92, 255, 0.22), transparent 28rem),
    var(--nk-color-black);
}

.nk-mobile-menu[hidden] {
  display: none;
}

.nk-mobile-menu__header {
  min-height: var(--nk-header-height);
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--nk-color-border);
}

.nk-mobile-menu__nav {
  padding-block: 1.25rem;
}

.nk-mobile-nav-link,
.nk-mobile-nav-trigger {
  width: 100%;
  min-height: 3.75rem;
  padding: 0.9rem 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  border: 0;
  border-bottom: 1px solid var(--nk-color-border);
  background: transparent;
  color: var(--nk-color-white);
  font-size: 1.1rem;
  font-weight: 700;
  text-align: left;
  text-decoration: none;
  cursor: pointer;
}

.nk-mobile-nav-link--contact {
  color: var(--nk-color-violet-bright);
}

.nk-mobile-nav-section {
  padding: 0.5rem 0 1rem 1rem;
  border-bottom: 1px solid var(--nk-color-border);
}

.nk-mobile-nav-section[hidden] {
  display: none;
}

.nk-mobile-nav-section a {
  min-height: 3rem;
  padding: 0.65rem 0;
  display: flex;
  align-items: center;
  color: var(--nk-color-text-muted);
  font-size: 0.95rem;
  text-decoration: none;
}

.nk-mobile-nav-section a:hover,
.nk-mobile-nav-section a:focus-visible,
.nk-mobile-nav-section a[aria-current="page"] {
  color: var(--nk-color-white);
}

.nk-mobile-nav-section__title {
  margin: 0.75rem 0 0.25rem;
  color: var(--nk-color-violet-bright);
  font-size: var(--nk-text-xs);
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.nk-mobile-menu__network {
  padding-top: 1.5rem;
  border-top: 1px solid var(--nk-color-border);
}

.nk-mobile-menu__network p {
  margin: 0 0 0.75rem;
  color: var(--nk-color-text-faint);
  font-size: var(--nk-text-xs);
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.nk-mobile-menu__network a {
  margin-right: 1rem;
  color: var(--nk-color-text-muted);
  text-decoration: none;
}

.nk-mobile-menu__network a[aria-current="page"] {
  color: var(--nk-color-white);
}

.nk-page--home .md-content__inner,
.nk-page--landing .md-content__inner,
.nk-page--service .md-content__inner {
  width: min(calc(100% - (2 * var(--nk-page-gutter))), var(--nk-width-wide));
  margin-inline: auto;
  padding-block: clamp(3rem, 6vw, 6rem);
}

.nk-page--article .md-content__inner,
.nk-page--framework .md-content__inner,
.nk-page--legal .md-content__inner {
  width: min(calc(100% - (2 * var(--nk-page-gutter))), var(--nk-width-reading));
  margin-inline: auto;
  padding-block: clamp(3rem, 6vw, 6rem);
}

.nk-page--assessment .md-content__inner {
  width: min(calc(100% - (2 * var(--nk-page-gutter))), var(--nk-width-content));
  margin-inline: auto;
  padding-block: clamp(3rem, 6vw, 6rem);
}

.nk-breadcrumbs {
  border-bottom: 1px solid var(--nk-color-border);
  background: rgba(255, 255, 255, 0.015);
}

.nk-breadcrumbs__list {
  width: min(calc(100% - (2 * var(--nk-page-gutter))), var(--nk-width-wide));
  min-height: 3.25rem;
  margin: 0 auto;
  padding: 0;
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.5rem;
  list-style: none;
}

.nk-breadcrumbs__list li {
  display: inline-flex;
  align-items: center;
  color: var(--nk-color-text-faint);
  font-size: var(--nk-text-sm);
}

.nk-breadcrumbs__list a {
  color: var(--nk-color-text-muted);
  text-decoration: none;
}

.nk-breadcrumbs__list a:hover,
.nk-breadcrumbs__list a:focus-visible {
  color: var(--nk-color-white);
}

.nk-breadcrumbs__list li:not(:last-child)::after {
  content: "/";
  margin-left: 0.5rem;
  color: var(--nk-color-text-faint);
}

.nk-page-toc {
  padding-top: 3rem;
}

.nk-page-toc .md-nav__title {
  color: var(--nk-color-white);
}

.nk-page-toc .md-nav__link {
  color: var(--nk-color-text-muted);
}

.nk-page-toc .md-nav__link--active,
.nk-page-toc .md-nav__link:hover {
  color: var(--nk-color-violet-bright);
}

.nk-site-footer {
  border-top: 1px solid var(--nk-color-border);
  background:
    radial-gradient(circle at 15% 0%, rgba(139, 92, 255, 0.12), transparent 28rem),
    #08050e;
}

.nk-footer__main {
  width: min(calc(100% - (2 * var(--nk-page-gutter))), var(--nk-width-wide));
  margin-inline: auto;
  padding-block: clamp(3.5rem, 7vw, 6rem);
  display: grid;
  grid-template-columns: minmax(17rem, 1.1fr) minmax(0, 2fr);
  gap: clamp(3rem, 7vw, 7rem);
}

.nk-footer__brand > p {
  max-width: 40ch;
  color: var(--nk-color-text-muted);
  line-height: 1.7;
}

.nk-footer__brand >
.nk-brand__name .word-1,
.nk-brand__name .word-2 {
  display: block;
}

.nk-footer__location {
  margin-top: 1.25rem;
  color: var(--nk-color-text-faint) !important;
  font-size: var(--nk-text-sm);
}

.nk-footer__network {
  margin-top: 1.5rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1.25rem;
}

.nk-footer__network a {
  color: var(--nk-color-text-muted);
  font-size: var(--nk-text-sm);
  text-decoration: none;
}

.nk-footer__network a:hover,
.nk-footer__network a:focus-visible,
.nk-footer__network a[aria-current="page"] {
  color: var(--nk-color-white);
}

.nk-footer__columns {
  display: grid;
  grid-template-columns: 1.5fr 1fr 0.8fr;
  gap: clamp(1.5rem, 4vw, 4rem);
}

.nk-footer__column h2 {
  margin: 0 0 1rem;
  color: var(--nk-color-white);
  font-size: 0.9rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.nk-footer__column ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

.nk-footer__column li + li {
  margin-top: 0.7rem;
}

.nk-footer__column a {
  color: var(--nk-color-text-muted);
  font-size: 0.9rem;
  line-height: 1.5;
  text-decoration: none;
}

.nk-footer__column a:hover,
.nk-footer__column a:focus-visible {
  color: var(--nk-color-white);
}

.nk-footer__meta {
  width: min(calc(100% - (2 * var(--nk-page-gutter))), var(--nk-width-wide));
  min-height: 4.5rem;
  margin-inline: auto;
  padding-block: 1rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  border-top: 1px solid var(--nk-color-border);
}

.nk-footer__meta p {
  margin: 0;
  color: var(--nk-color-text-faint);
  font-size: var(--nk-text-xs);
}

.nk-footer__meta .md-social {
  padding: 0;
}

.nk-footer__meta .md-social__link {
  color: var(--nk-color-text-muted);
}

.nk-footer__meta .md-social__link:hover,
.nk-footer__meta .md-social__link:focus-visible {
  color: var(--nk-color-white);
}

@media (max-width: 1100px) {
  .nk-desktop-nav {
    display: none;
  }

  .nk-header__actions {
    margin-left: auto;
  }

  .nk-mobile-menu-button {
    display: inline-flex;
  }

  .nk-page-toc {
    display: none;
  }

  .nk-footer__main {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 760px) {
  :root {
    --nk-header-height: 4.5rem;
  }

  .nk-header__inner {
    gap: 0.75rem;
  }

  .nk-header__inner > .nk-brand .nk-brand__name {
    display: block;
  }

  .nk-footer__columns {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .nk-footer__meta {
    align-items: flex-start;
    flex-direction: column;
  }

  .nk-breadcrumbs__list {
    padding-block: 0.75rem;
  }
}
