/* --------------------------------------------------------------- webfonts
   Self-hosted: the site CSP is font-src 'self' data:, and a portfolio that
   preaches security should not be leaking visitor IPs to a font CDN.
   IBM Plex Mono is reused from the app bundle so the static pages and the
   desktop UI share one voice; Lato is subset to Latin for long-form reading. */
@font-face {
  font-family: "IBM Plex Mono"; font-style: normal; font-weight: 500; font-display: swap;
  src: url("/assets/fonts/-F6qfjptAgt5VM-kVkqdyU8n3twJwlBFgg.woff2") format("woff2");
}
@font-face {
  font-family: "IBM Plex Mono"; font-style: normal; font-weight: 700; font-display: swap;
  src: url("/assets/fonts/-F6qfjptAgt5VM-kVkqdyU8n3pQPwlBFgg.woff2") format("woff2");
}
@font-face {
  font-family: "Lato"; font-style: normal; font-weight: 400; font-display: swap;
  src: url("/assets/fonts/lato-400.woff2") format("woff2");
}
@font-face {
  font-family: "Lato"; font-style: normal; font-weight: 700; font-display: swap;
  src: url("/assets/fonts/lato-700.woff2") format("woff2");
}

/* ==========================================================================
   niteshgupta.com: shared design system for the static (indexable) pages.

   Direction: an operator's console crossed with an engagement report.
   The palette is taken from Kali's own brand: the blue of the distro and the
   amber of the dragon: rather than the usual acid-green-on-black, so the site
   looks like the tooling it is about instead of a generic dark portfolio.
   ========================================================================== */

:root {
  /* ground */
  --bg:          #0A0E13;
  --bg-grad:     radial-gradient(1100px 620px at 12% -8%, rgba(91,163,245,.10), transparent 62%),
                 radial-gradient(820px 520px at 96% 4%, rgba(240,136,62,.07), transparent 58%);
  --surface:     #101823;
  --raised:      #16202D;
  --sunken:      #0C1219;
  --border:      #22303F;
  --border-soft: #1A2532;

  /* ink */
  --ink:    #E3E9F0;
  --ink-2:  #B4C0CD;
  --muted:  #7E8FA1;
  --faint:  #5C6B7C;

  /* brand */
  --accent:      #5BA3F5;
  --accent-ink:  #9CC8FF;
  --accent-dim:  #2B4C72;
  --accent-line: rgba(91,163,245,.34);
  --accent-wash: rgba(91,163,245,.10);
  --amber:       #F0883E;
  --amber-wash:  rgba(240,136,62,.12);

  /* semantic: deliberately separate from the accent */
  --crit: #F2555A;  --crit-wash: rgba(242,85,90,.13);
  --high: #F0883E;  --high-wash: rgba(240,136,62,.13);
  --med:  #E3B341;  --med-wash:  rgba(227,179,65,.13);
  --low:  #4FB477;  --low-wash:  rgba(79,180,119,.13);

  --mono: "IBM Plex Mono", ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  --sans: "Lato", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;

  --wrap: 1180px;
  --r:    10px;
  --r-sm: 6px;
}

/* Deliberately single-theme: this is a Kali-derived console UI and it only
   reads correctly on a dark ground. Every colour is stated explicitly so the
   page never inherits a host background. */
* { box-sizing: border-box; }
html { color-scheme: dark; -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; }
}

body {
  margin: 0;
  background: var(--bg-grad), var(--bg);
  background-attachment: fixed;
  color: var(--ink);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

::selection { background: rgba(91,163,245,.28); color: #fff; }

a { color: var(--accent); text-decoration-color: rgba(91,163,245,.4); text-underline-offset: 3px; }
a:hover { color: var(--accent-ink); text-decoration-color: currentColor; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; border-radius: 3px; }

img { max-width: 100%; height: auto; }

.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0;
}
.skip {
  position: absolute; left: -999px; top: 0; z-index: 100;
  background: var(--accent); color: #05080C; padding: 10px 16px;
  font-family: var(--mono); font-size: .82rem; font-weight: 600; border-radius: 0 0 var(--r-sm) 0;
}
.skip:focus { left: 0; }

.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 24px; }

/* ---------------------------------------------------------------- site bar */

.sitebar {
  position: sticky; top: 0; z-index: 40;
  background: rgba(10,14,19,.82);
  backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border-soft);
}
.sitebar__in {
  max-width: var(--wrap); margin: 0 auto; padding: 0 24px;
  height: 58px; display: flex; align-items: center; gap: 26px;
}
.brand {
  display: inline-flex; align-items: baseline; gap: 9px;
  font-family: var(--mono); font-weight: 700; font-size: .95rem;
  color: var(--ink); text-decoration: none; letter-spacing: -.01em; white-space: nowrap;
}
.brand .sig { color: var(--accent); }
.brand .caret {
  width: 8px; height: 15px; background: var(--amber); display: inline-block;
  transform: translateY(2px); animation: blink 1.25s steps(1) infinite;
}
@keyframes blink { 0%,55% { opacity: 1 } 56%,100% { opacity: 0 } }

.sitenav { display: flex; gap: 4px; margin-left: auto; flex-wrap: wrap; }
.sitenav a {
  font-family: var(--mono); font-size: .8rem; color: var(--ink-2);
  text-decoration: none; padding: 7px 11px; border-radius: var(--r-sm);
  border: 1px solid transparent; white-space: nowrap;
  transition: color .14s ease, background .14s ease, border-color .14s ease;
}
.sitenav a:hover { color: var(--ink); background: rgba(255,255,255,.045); }
.sitenav a[aria-current="page"] {
  color: var(--accent-ink); background: var(--accent-wash); border-color: var(--accent-line);
}
@media (max-width: 720px) {
  .sitebar__in { height: auto; padding: 10px 16px 12px; flex-wrap: wrap; gap: 10px; }
  .sitenav { margin-left: 0; width: 100%; }
  .sitenav a { padding: 6px 9px; font-size: .75rem; }
}

/* ------------------------------------------------------------- breadcrumbs */

.crumb {
  font-family: var(--mono); font-size: .76rem; color: var(--muted);
  padding: 18px 0 0; display: flex; flex-wrap: wrap; gap: 7px; align-items: center;
}
.crumb a { color: var(--muted); text-decoration: none; }
.crumb a:hover { color: var(--accent); }
.crumb .sep { color: var(--faint); }
.crumb [aria-current] { color: var(--ink-2); }

/* -------------------------------------------------------------------- type */

h1, h2, h3, h4 { font-family: var(--mono); font-weight: 700; letter-spacing: -.021em; line-height: 1.18; margin: 0; text-wrap: balance; }
h1 { font-size: clamp(1.95rem, 4.4vw, 2.85rem); }
h2 { font-size: clamp(1.3rem, 2.5vw, 1.62rem); }
h3 { font-size: 1.06rem; }

.eyebrow {
  font-family: var(--mono); font-size: .72rem; font-weight: 600;
  letter-spacing: .17em; text-transform: uppercase; color: var(--accent);
}
.lede { font-size: 1.09rem; line-height: 1.68; color: var(--ink-2); max-width: 68ch; margin: 14px 0 0; }

.pagehead { padding: 30px 0 34px; border-bottom: 1px solid var(--border-soft); }
.pagehead h1 { margin-top: 10px; }

/* ------------------------------------------------------------------- chips */

.chip {
  display: inline-flex; align-items: center; gap: 6px;
  font-family: var(--mono); font-size: .715rem; font-weight: 500;
  padding: 3px 8px; border-radius: 999px;
  border: 1px solid var(--border); background: var(--sunken); color: var(--ink-2);
  white-space: nowrap;
}
.chip--port { color: var(--accent-ink); border-color: var(--accent-line); background: var(--accent-wash); }
.chip--cve  { color: var(--crit); border-color: rgba(242,85,90,.4); background: var(--crit-wash); }
.chip--tool { color: var(--amber); border-color: rgba(240,136,62,.36); background: var(--amber-wash); }
.chip--os   { font-weight: 600; letter-spacing: .04em; text-transform: uppercase; font-size: .66rem; }
.chip--win  { color: #7FB3F0; border-color: rgba(127,179,240,.4);  background: rgba(127,179,240,.11); }
.chip--lin  { color: #F0B45A; border-color: rgba(240,180,90,.4);   background: rgba(240,180,90,.11); }
.chip--ad   { color: #C29BF5; border-color: rgba(194,155,245,.42); background: rgba(194,155,245,.12); }

.chips { display: flex; flex-wrap: wrap; gap: 6px; }

/* ------------------------------------------------------------------- cards */

.grid { display: grid; gap: 14px; }
.grid--3 { grid-template-columns: repeat(auto-fill, minmax(310px, 1fr)); }
.grid--2 { grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); }

.card {
  position: relative; display: flex; flex-direction: column; gap: 9px;
  padding: 17px 18px 16px;
  background: linear-gradient(180deg, var(--surface), var(--sunken));
  border: 1px solid var(--border-soft); border-radius: var(--r);
  text-decoration: none; color: inherit;
  transition: border-color .16s ease, transform .16s ease, box-shadow .16s ease;
}
a.card:hover, a.card:focus-visible {
  border-color: var(--accent-line); transform: translateY(-2px);
  box-shadow: 0 10px 30px -18px rgba(0,0,0,.9), 0 0 0 1px var(--accent-wash);
}
.card__top { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.card__name { font-family: var(--mono); font-size: 1.02rem; font-weight: 700; color: var(--ink); letter-spacing: -.012em; }
a.card:hover .card__name { color: var(--accent-ink); }
.card__desc {
  font-size: .855rem; line-height: 1.6; color: var(--muted); margin: 0;
  display: -webkit-box; -webkit-line-clamp: 3; line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden;
}
.card__foot { margin-top: auto; padding-top: 4px; }

/* ----------------------------------------------------------------- section */

.section { padding: 40px 0 4px; }
.section__head { display: flex; align-items: baseline; gap: 12px; flex-wrap: wrap; margin-bottom: 6px; }
.section__count { font-family: var(--mono); font-size: .74rem; color: var(--faint); }
.section__note { color: var(--muted); font-size: .9rem; max-width: 74ch; margin: 0 0 18px; }

/* ------------------------------------------------------------------ footer */

.sitefoot {
  margin-top: 76px; border-top: 1px solid var(--border-soft);
  background: rgba(8,11,15,.55);
}
.sitefoot__in {
  max-width: var(--wrap); margin: 0 auto; padding: 34px 24px 40px;
  display: grid; gap: 26px; grid-template-columns: 1.4fr 1fr 1fr;
}
@media (max-width: 720px) { .sitefoot__in { grid-template-columns: 1fr; gap: 20px; } }
.sitefoot h4 {
  font-family: var(--mono); font-size: .7rem; letter-spacing: .15em; text-transform: uppercase;
  color: var(--faint); margin: 0 0 11px; font-weight: 600;
}
.sitefoot ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 7px; }
.sitefoot a { color: var(--ink-2); text-decoration: none; font-size: .875rem; }
.sitefoot a:hover { color: var(--accent); }
.sitefoot p { color: var(--muted); font-size: .855rem; margin: 0 0 10px; max-width: 40ch; }
.sitefoot .legal {
  grid-column: 1 / -1; border-top: 1px solid var(--border-soft); padding-top: 16px;
  font-family: var(--mono); font-size: .72rem; color: var(--faint);
  display: flex; justify-content: space-between; gap: 14px; flex-wrap: wrap;
}

/* ==========================================================================
   Writeups: engagement-report layout.
   Sticky target rail on the left, walkthrough on the right.
   ========================================================================== */

.wu {
  display: grid; gap: 40px; align-items: start;
  grid-template-columns: 268px minmax(0, 1fr);
  padding: 26px 0 0;
}
@media (max-width: 1000px) { .wu { grid-template-columns: 1fr; gap: 26px; } }

.wu__rail { position: sticky; top: 78px; display: flex; flex-direction: column; gap: 14px; }
@media (max-width: 1000px) { .wu__rail { position: static; } }

.target {
  background: linear-gradient(180deg, var(--surface), var(--sunken));
  border: 1px solid var(--border-soft); border-radius: var(--r); overflow: hidden;
}
.target__head {
  padding: 11px 15px; border-bottom: 1px solid var(--border-soft);
  background: rgba(91,163,245,.05);
  display: flex; align-items: center; justify-content: space-between; gap: 10px;
}
.target__label { font-family: var(--mono); font-size: .68rem; letter-spacing: .15em; text-transform: uppercase; color: var(--faint); font-weight: 600; }
.target__body { padding: 14px 15px; display: flex; flex-direction: column; gap: 13px; }
.target__row { display: flex; flex-direction: column; gap: 6px; }
.target__k { font-family: var(--mono); font-size: .67rem; letter-spacing: .13em; text-transform: uppercase; color: var(--faint); font-weight: 600; }
.target__v { font-family: var(--mono); font-size: .82rem; color: var(--ink-2); line-height: 1.55; }

.toc { font-family: var(--mono); }
.toc ol { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 1px; border-left: 2px solid var(--border); }
.toc a {
  display: block; padding: 6px 0 6px 13px; margin-left: -2px;
  border-left: 2px solid transparent; font-size: .78rem;
  color: var(--muted); text-decoration: none; line-height: 1.45;
}
.toc a:hover { color: var(--accent); border-left-color: var(--accent); background: var(--accent-wash); }

/* -------------------------------------------------------------- article -- */

.wu__body { min-width: 0; }
.wu__body .page-title {
  font-family: var(--mono); font-size: clamp(2rem, 4.6vw, 2.9rem);
  font-weight: 700; letter-spacing: -.024em; line-height: 1.12; margin: 0 0 6px; color: var(--ink);
}
.wu__body .page-description { color: var(--muted); font-size: .95rem; margin: 0; }

.wu__body .page-body { margin-top: 26px; }
.wu__body p { color: var(--ink-2); margin: 0 0 17px; max-width: 74ch; }
.wu__body h2 {
  font-size: 1.34rem; margin: 42px 0 14px; padding-top: 18px;
  border-top: 1px solid var(--border-soft); color: var(--ink); scroll-margin-top: 80px;
}
.wu__body h2::before {
  content: "##"; font-family: var(--mono); font-size: .82rem; font-weight: 500;
  color: var(--accent); margin-right: 10px; vertical-align: 2px;
}
.wu__body ul, .wu__body ol { color: var(--ink-2); max-width: 74ch; padding-left: 22px; }
.wu__body li { margin-bottom: 7px; }
.wu__body b, .wu__body strong { color: var(--ink); font-weight: 600; }
.wu__body hr { border: 0; border-top: 1px solid var(--border-soft); margin: 34px 0; }

/* inline + block code */
.wu__body code {
  font-family: var(--mono); font-size: .855em;
  background: var(--sunken); border: 1px solid var(--border-soft);
  border-radius: var(--r-sm); padding: 1.5px 5px; color: var(--amber);
}
.wu__body pre {
  position: relative; margin: 0 0 22px; padding: 15px 17px;
  background: var(--sunken); border: 1px solid var(--border);
  border-left: 3px solid var(--accent); border-radius: var(--r);
  overflow-x: auto; font-family: var(--mono); font-size: .805rem; line-height: 1.62;
  white-space: pre; -webkit-overflow-scrolling: touch;
}
.wu__body pre code {
  background: none; border: 0; padding: 0; color: #CBD6E2;
  font-size: inherit; white-space: pre;
}
.wu__body pre.code-wrap { white-space: pre-wrap; word-break: break-word; }
.wu__body pre.code-wrap code { white-space: pre-wrap; }

/* screenshots */
.wu__body figure { margin: 0 0 24px; }
.wu__body figure.image { display: block; }
.wu__body figure img {
  display: block; width: 100%; height: auto;
  border: 1px solid var(--border); border-radius: var(--r);
  background: var(--sunken);
}
.wu__body figure figcaption {
  font-family: var(--mono); font-size: .73rem; color: var(--faint);
  margin-top: 8px; padding-left: 2px;
}

/* prev / next */
.wu__pager { display: grid; gap: 12px; grid-template-columns: 1fr 1fr; margin: 46px 0 0; }
@media (max-width: 640px) { .wu__pager { grid-template-columns: 1fr; } }
.wu__pager a {
  display: flex; flex-direction: column; gap: 4px; padding: 14px 16px;
  border: 1px solid var(--border-soft); border-radius: var(--r);
  background: var(--surface); text-decoration: none;
  transition: border-color .16s ease;
}
.wu__pager a:hover { border-color: var(--accent-line); }
.wu__pager .dir { font-family: var(--mono); font-size: .68rem; letter-spacing: .14em; text-transform: uppercase; color: var(--faint); }
.wu__pager .nm { font-family: var(--mono); font-weight: 600; color: var(--accent-ink); font-size: .95rem; }
.wu__pager .next { text-align: right; align-items: flex-end; }

.wu__more { margin: 46px 0 0; padding-top: 24px; border-top: 1px solid var(--border-soft); }

/* ==========================================================================
   Tools
   ========================================================================== */

.tool__shell {
  background: linear-gradient(180deg, var(--surface), var(--sunken));
  border: 1px solid var(--border-soft); border-radius: var(--r); overflow: hidden;
}
.tool__bar {
  display: flex; align-items: center; gap: 9px; padding: 10px 14px;
  border-bottom: 1px solid var(--border-soft); background: rgba(255,255,255,.02);
}
.tool__dot { width: 10px; height: 10px; border-radius: 50%; background: var(--border); }
.tool__dot:nth-child(1) { background: #F2555A; }
.tool__dot:nth-child(2) { background: #E3B341; }
.tool__dot:nth-child(3) { background: #4FB477; }
.tool__title { font-family: var(--mono); font-size: .78rem; color: var(--muted); margin-left: 6px; }

/* ==========================================================================
   About
   ========================================================================== */

.tl { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; }
.tl__item {
  display: grid; grid-template-columns: 190px minmax(0,1fr); gap: 22px;
  padding: 20px 0; border-top: 1px solid var(--border-soft);
}
.tl__item:first-child { border-top: 0; padding-top: 6px; }
@media (max-width: 700px) { .tl__item { grid-template-columns: 1fr; gap: 6px; } }
.tl__when {
  font-family: var(--mono); font-size: .78rem; color: var(--accent);
  padding-top: 3px; white-space: nowrap;
}
.tl__what h3 { font-family: var(--mono); font-size: 1rem; color: var(--ink); margin: 0 0 3px; }
.tl__co { color: var(--muted); font-weight: 400; }
.tl__loc { font-family: var(--mono); font-size: .74rem; color: var(--faint); margin: 0 0 9px; }
.tl__what p { color: var(--ink-2); margin: 0; font-size: .93rem; max-width: 70ch; }

ul.tick { list-style: none; margin: 4px 0 0; padding: 0; display: flex; flex-direction: column; gap: 6px; }
ul.tick li {
  position: relative; padding-left: 19px; font-size: .875rem; color: var(--ink-2); line-height: 1.5;
}
ul.tick li::before {
  content: "▸"; position: absolute; left: 0; top: -1px;
  color: var(--accent); font-size: .8rem;
}

.faq { display: flex; flex-direction: column; gap: 8px; }
.faq details {
  background: linear-gradient(180deg, var(--surface), var(--sunken));
  border: 1px solid var(--border-soft); border-radius: var(--r);
  padding: 0 16px; transition: border-color .16s ease;
}
.faq details[open] { border-color: var(--accent-line); }
.faq summary {
  cursor: pointer; padding: 14px 0; list-style: none;
  font-family: var(--mono); font-size: .92rem; font-weight: 600; color: var(--ink);
  display: flex; align-items: center; gap: 10px;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::before {
  content: "+"; color: var(--accent); font-weight: 700; width: 12px; flex: none;
}
.faq details[open] summary::before { content: "\2212"; }
.faq summary:hover { color: var(--accent-ink); }
.faq details p {
  margin: 0 0 15px; padding-left: 22px; color: var(--ink-2);
  font-size: .92rem; max-width: 74ch;
}

a.chip { text-decoration: none; transition: border-color .15s ease, color .15s ease; }
a.chip:hover { border-color: var(--accent); color: var(--accent-ink); }

.card ul.tick { margin-top: 2px; }

.grid--half { grid-template-columns: repeat(2, minmax(0, 1fr)); }
@media (max-width: 760px) { .grid--half { grid-template-columns: 1fr; } }

/* ---------------------------------------------------------------- errors -- */
.errpage { padding: 84px 0 96px; max-width: 62ch; }
.errpage__code {
  font-family: var(--mono); font-size: clamp(3.6rem, 12vw, 6.6rem); font-weight: 700;
  line-height: 1; letter-spacing: -.05em; color: transparent;
  -webkit-text-stroke: 2px var(--border);
  margin-bottom: 6px; user-select: none;
}
.errpage h1 { margin-bottom: 6px; }

/* Title sits above the two columns so the reading order on a phone is
   title -> target summary -> walkthrough, rather than target -> title. */
.wu__head { padding-bottom: 22px; }
.wu__head .page-title { margin: 8px 0 6px; }
.wu__head .page-description { color: var(--muted); font-size: .95rem; margin: 0; }
.wu { padding-top: 22px; }

/* The section divider already sits above; don't stack a second rule on it. */
.wu__body .page-body > h2:first-child { border-top: 0; padding-top: 0; margin-top: 0; }

/* ==========================================================================
   Mobile home
   The app's phone layout was a list of navigation buttons with no content, and
   it is generated by styled-components with hashed class names that change on
   every build: so it cannot be restyled safely from here. This is a real
   document instead: full control, and Google (which indexes mobile-first) gets
   the whole profile rather than five buttons.
   ========================================================================== */

#m-home { display: none; }

@media (max-width: 820px) {
  #root { display: none !important; }
  #m-home { display: block; padding-bottom: 96px; }
}

.mh__hero {
  padding: 26px 0 22px;
  display: flex; flex-direction: column; gap: 14px;
}
.mh__id { display: flex; align-items: center; gap: 14px; }
.mh__ava {
  width: 62px; height: 62px; border-radius: 14px; flex: none; object-fit: cover;
  border: 1px solid var(--border); background: var(--sunken);
}
.mh__name { font-family: var(--mono); font-size: 1.5rem; font-weight: 700; letter-spacing: -.028em; line-height: 1.1; margin: 0; }
.mh__role { font-family: var(--mono); font-size: .78rem; color: var(--accent); margin: 5px 0 0; line-height: 1.4; }
.mh__where { font-family: var(--mono); font-size: .72rem; color: var(--muted); margin: 4px 0 0; }
.mh__bio { color: var(--ink-2); font-size: .95rem; margin: 0; }

.mh__status {
  display: inline-flex; align-items: center; gap: 7px; align-self: flex-start;
  font-family: var(--mono); font-size: .74rem; color: #8FD9AE;
  background: rgba(79,180,119,.12); border: 1px solid rgba(79,180,119,.36);
  padding: 5px 11px; border-radius: 999px;
}
.mh__status::before {
  content: ""; width: 7px; height: 7px; border-radius: 50%; background: #4FB477;
  box-shadow: 0 0 0 0 rgba(79,180,119,.6); animation: pulse 2.4s ease-out infinite;
}
@keyframes pulse { 70% { box-shadow: 0 0 0 7px rgba(79,180,119,0) } 100% { box-shadow: 0 0 0 0 rgba(79,180,119,0) } }

.mh__cta { display: grid; grid-template-columns: 1fr 1fr; gap: 9px; }
.mh__cta a {
  display: flex; align-items: center; justify-content: center; gap: 8px;
  padding: 12px 10px; border-radius: var(--r); text-decoration: none;
  font-family: var(--mono); font-size: .82rem; font-weight: 600;
  border: 1px solid var(--border); background: var(--surface); color: var(--ink);
}
.mh__cta a.prime { background: var(--accent); border-color: var(--accent); color: #05080C; }
.mh__cta a:active { transform: scale(.985); }

.mh__stats {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; margin: 4px 0 0;
}
.mh__stat {
  background: var(--surface); border: 1px solid var(--border-soft);
  border-radius: var(--r-sm); padding: 10px 6px; text-align: center;
}
.mh__stat b {
  display: block; font-family: var(--mono); font-size: 1.12rem; color: var(--accent);
  font-weight: 700; line-height: 1;
}
.mh__stat span {
  display: block; font-family: var(--mono); font-size: .58rem; letter-spacing: .07em;
  text-transform: uppercase; color: var(--faint); margin-top: 5px; line-height: 1.25;
}

.mh__sec { padding: 22px 0 0; }
.mh__sec > h2 {
  font-family: var(--mono); font-size: .74rem; letter-spacing: .16em; text-transform: uppercase;
  color: var(--faint); margin: 0 0 12px; font-weight: 600;
  display: flex; align-items: center; gap: 10px;
}
.mh__sec > h2::after { content: ""; flex: 1; height: 1px; background: var(--border-soft); }

.mh__list { display: flex; flex-direction: column; gap: 8px; }
.mh__row {
  display: flex; align-items: center; gap: 12px; padding: 13px 14px;
  background: var(--surface); border: 1px solid var(--border-soft);
  border-radius: var(--r); text-decoration: none; color: inherit;
}
.mh__row:active { border-color: var(--accent-line); }
.mh__row .t { font-family: var(--mono); font-size: .9rem; font-weight: 600; color: var(--ink); }
.mh__row .s { font-size: .78rem; color: var(--muted); margin-top: 2px; line-height: 1.45; }
.mh__row .go { margin-left: auto; color: var(--faint); font-family: var(--mono); flex: none; }

.mh__job { padding: 13px 0; border-top: 1px solid var(--border-soft); }
.mh__job:first-child { border-top: 0; padding-top: 0; }
.mh__job .w { font-family: var(--mono); font-size: .7rem; color: var(--accent); }
.mh__job .r { font-family: var(--mono); font-size: .9rem; font-weight: 600; color: var(--ink); margin-top: 3px; }
.mh__job .c { font-size: .82rem; color: var(--muted); }

.mh__desk {
  margin-top: 26px; padding: 15px; border-radius: var(--r);
  border: 1px dashed var(--border); background: var(--sunken); text-align: center;
}
.mh__desk p { margin: 0 0 9px; font-size: .82rem; color: var(--muted); }
.mh__desk a { font-family: var(--mono); font-size: .82rem; font-weight: 600; }

.mh__dock {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 50;
  display: grid; grid-template-columns: repeat(4, 1fr);
  background: rgba(10,14,19,.93); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  border-top: 1px solid var(--border);
  padding: 7px 6px calc(7px + env(safe-area-inset-bottom));
}
.mh__dock a {
  display: flex; flex-direction: column; align-items: center; gap: 3px;
  padding: 6px 2px; text-decoration: none; border-radius: var(--r-sm);
  font-family: var(--mono); font-size: .6rem; letter-spacing: .04em; color: var(--muted);
}
.mh__dock a[aria-current] { color: var(--accent); background: var(--accent-wash); }
.mh__dock svg { width: 19px; height: 19px; stroke: currentColor; fill: none; stroke-width: 1.7; }

/* Phone visitor who explicitly asked for the desktop app. */
html.force-desktop #m-home { display: none !important; }
html.force-desktop #root  { display: block !important; }

/* ==========================================================================
   Session lock: the site opens as a Kali session, so the greeter should read
   like one: clock, date, avatar, session line, unlock affordance.
   ========================================================================== */

.lockscreen {
  position: fixed; inset: 0; z-index: 3;
  display: grid; place-items: center; padding: 24px;
  background: rgba(6, 9, 13, .52);
  backdrop-filter: blur(14px) saturate(1.1);
  -webkit-backdrop-filter: blur(14px) saturate(1.1);
  animation: lockIn .45s ease both;
}
@keyframes lockIn { from { opacity: 0 } to { opacity: 1 } }

.lock__card {
  display: flex; flex-direction: column; align-items: center; gap: 0;
  text-align: center; max-width: 460px; width: 100%;
}

.lock__clock {
  font-family: var(--mono); font-weight: 700;
  font-size: clamp(3.2rem, 9vw, 5rem); line-height: 1;
  letter-spacing: -.04em; color: #F2F6FA;
  font-variant-numeric: tabular-nums;
  text-shadow: 0 2px 30px rgba(0,0,0,.55);
}
.lock__date {
  font-family: var(--mono); font-size: .84rem; letter-spacing: .1em;
  text-transform: uppercase; color: rgba(226,236,246,.62); margin-top: 8px;
}

.lock__ava {
  width: 96px; height: 96px; border-radius: 50%; object-fit: cover;
  margin: 34px 0 14px;
  border: 2px solid rgba(91,163,245,.55);
  box-shadow: 0 0 0 6px rgba(91,163,245,.10), 0 14px 40px -12px rgba(0,0,0,.8);
}

.lock__user {
  font-family: var(--mono); font-size: 1.4rem; font-weight: 700;
  letter-spacing: -.02em; color: #F2F6FA;
}
.lock__role {
  font-size: .9rem; color: rgba(226,236,246,.72); margin-top: 5px; line-height: 1.45;
}

.lock__session {
  display: inline-flex; align-items: center; gap: 8px; margin-top: 16px;
  font-family: var(--mono); font-size: .72rem; letter-spacing: .06em;
  color: rgba(143,217,174,.92);
  background: rgba(79,180,119,.10); border: 1px solid rgba(79,180,119,.30);
  padding: 5px 12px; border-radius: 999px;
}
.lock__dot {
  width: 6px; height: 6px; border-radius: 50%; background: #4FB477;
  box-shadow: 0 0 8px rgba(79,180,119,.9);
  animation: lockPulse 2.2s ease-in-out infinite;
}
@keyframes lockPulse { 0%,100% { opacity: 1 } 50% { opacity: .35 } }

.lock__unlock {
  margin-top: 30px; cursor: pointer;
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--mono); font-size: .84rem; font-weight: 600;
  color: #DCE7F2; background: rgba(255,255,255,.06);
  border: 1px solid rgba(255,255,255,.16); border-radius: 999px;
  padding: 10px 20px;
  transition: background .18s ease, border-color .18s ease, color .18s ease;
}
.lock__unlock:hover, .lock__unlock:focus-visible {
  background: rgba(91,163,245,.16); border-color: rgba(91,163,245,.55); color: #EAF3FF;
}
.lock__key {
  display: inline-grid; place-items: center; width: 22px; height: 22px;
  border-radius: 5px; background: rgba(255,255,255,.10);
  border: 1px solid rgba(255,255,255,.18); font-size: .8rem; line-height: 1;
}

/* ==========================================================================
   Motion layer
   Everything here is transform/opacity only, so it composites on the GPU and
   never triggers layout. All of it is disabled under prefers-reduced-motion.
   ========================================================================== */

/* ---- ambient background ------------------------------------------------- */
/* Two slow-drifting light sources plus a fixed grid and a grain overlay. The
   grid is what makes it read as an instrument panel rather than a gradient. */

body.doc::before,
body.doc::after {
  content: "";
  position: fixed;
  inset: -25%;
  z-index: -2;
  pointer-events: none;
  will-change: transform;
}
body.doc::before {
  background:
    radial-gradient(38rem 30rem at 18% 12%, rgba(91,163,245,.16), transparent 62%),
    radial-gradient(30rem 26rem at 82% 8%,  rgba(240,136,62,.10), transparent 60%);
  animation: drift-a 34s ease-in-out infinite alternate;
}
body.doc::after {
  background:
    radial-gradient(34rem 28rem at 72% 88%, rgba(91,163,245,.11), transparent 62%),
    radial-gradient(26rem 22rem at 12% 78%, rgba(194,155,245,.08), transparent 60%);
  animation: drift-b 46s ease-in-out infinite alternate;
}
@keyframes drift-a {
  from { transform: translate3d(-3%, -2%, 0) scale(1);    }
  to   { transform: translate3d( 4%,  3%, 0) scale(1.12); }
}
@keyframes drift-b {
  from { transform: translate3d( 3%,  2%, 0) scale(1.08); }
  to   { transform: translate3d(-4%, -3%, 0) scale(1);    }
}

.bg-grid {
  position: fixed; inset: 0; z-index: -1; pointer-events: none;
  background-image:
    linear-gradient(rgba(91,163,245,.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(91,163,245,.045) 1px, transparent 1px);
  background-size: 46px 46px;
  mask-image: radial-gradient(120% 90% at 50% 0%, #000 35%, transparent 78%);
  -webkit-mask-image: radial-gradient(120% 90% at 50% 0%, #000 35%, transparent 78%);
}
.bg-grain {
  position: fixed; inset: 0; z-index: -1; pointer-events: none; opacity: .32;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='140' height='140'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3'/%3E%3C/filter%3E%3Crect width='140' height='140' filter='url(%23n)' opacity='.32'/%3E%3C/svg%3E");
}

/* ---- scroll reveal ------------------------------------------------------ */

[data-reveal] {
  opacity: 0;
  transform: translate3d(0, 14px, 0);
  transition: opacity .55s cubic-bezier(.22,.61,.36,1),
              transform .55s cubic-bezier(.22,.61,.36,1);
  will-change: opacity, transform;
}
[data-reveal].is-in { opacity: 1; transform: none; will-change: auto; }
[data-reveal-stagger] > * { transition-delay: var(--d, 0ms); }

/* ---- cursor spotlight on cards ------------------------------------------ */
/* --mx/--my are written by site.js on pointer move; the highlight is a single
   compositor-friendly radial gradient rather than a box-shadow. */

.card, .target, .faq details, .tool__shell, .mh__row {
  position: relative;
  isolation: isolate;
}
.card::before,
.mh__row::before {
  content: "";
  position: absolute; inset: 0; border-radius: inherit;
  background: radial-gradient(18rem 18rem at var(--mx, 50%) var(--my, 50%),
              rgba(91,163,245,.10), transparent 70%);
  opacity: 0;
  transition: opacity .25s ease;
  pointer-events: none;
  z-index: -1;
}
.card:hover::before,
.mh__row:hover::before { opacity: 1; }

/* ---- site bar reacts to scroll ------------------------------------------ */

.sitebar { transition: background .25s ease, border-color .25s ease, box-shadow .25s ease; }
.sitebar.is-scrolled {
  background: rgba(10,14,19,.94);
  border-bottom-color: var(--border);
  box-shadow: 0 10px 30px -22px rgba(0,0,0,.95);
}

/* ---- decode effect on the page title ------------------------------------ */

.decode { display: inline-block; }
.decode .scr { color: var(--accent); opacity: .85; }

/* ---- counters ----------------------------------------------------------- */

.mh__stat b, .stat-n { font-variant-numeric: tabular-nums; }

/* ---- link + chip polish -------------------------------------------------- */

.sitenav a { position: relative; }
.sitenav a::after {
  content: ""; position: absolute; left: 11px; right: 11px; bottom: 4px;
  height: 1px; background: currentColor; transform: scaleX(0);
  transform-origin: left; transition: transform .22s cubic-bezier(.22,.61,.36,1);
}
.sitenav a:hover::after { transform: scaleX(1); }
.sitenav a[aria-current="page"]::after { display: none; }

.chip { transition: transform .16s ease, border-color .16s ease, color .16s ease; }
a.chip:hover { transform: translateY(-1px); }

.wu__body figure img { transition: transform .4s cubic-bezier(.22,.61,.36,1), border-color .25s ease; }
.wu__body figure:hover img { transform: scale(1.008); border-color: var(--accent-line); }

/* ---- reduced motion: strip all of it ------------------------------------ */

@media (prefers-reduced-motion: reduce) {
  body.doc::before, body.doc::after { animation: none; }
  [data-reveal] { opacity: 1; transform: none; transition: none; }
  .card::before, .mh__row::before { display: none; }
  .wu__body figure:hover img { transform: none; }
  .sitenav a::after { transition: none; }
}

.wu__date {
  font-family: var(--mono); font-size: .74rem; color: var(--faint);
  margin: 6px 0 0; letter-spacing: .04em;
}

/* ---- services ----------------------------------------------------------- */
.svc .card__desc { color: var(--ink-2); margin-bottom: 4px; }
.svc .tick { margin-top: 8px; }

.steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px;
         grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
.step {
  display: flex; gap: 13px; align-items: flex-start; padding: 16px 17px;
  background: linear-gradient(180deg, var(--surface), var(--sunken));
  border: 1px solid var(--border-soft); border-radius: var(--r);
}
.step__n {
  flex: none; width: 26px; height: 26px; border-radius: 7px;
  display: grid; place-items: center;
  font-family: var(--mono); font-size: .8rem; font-weight: 700;
  color: var(--accent); background: var(--accent-wash);
  border: 1px solid var(--accent-line);
}
.step h3 { font-family: var(--mono); font-size: .95rem; margin: 2px 0 5px; color: var(--ink); }
.step p { margin: 0; font-size: .875rem; color: var(--muted); line-height: 1.55; }

/* ============================================================== org orbs ===
 * Acknowledged organisations drifting across the wallpaper in glass capsules,
 * each one poppable. The layer sits at z-index 0, under the dock (10) and the
 * windows (501), so a capsule beneath a window cannot be reached and the
 * desktop keeps every click that belongs to it. The container ignores pointer
 * events and only the capsules opt back in, so bare wallpaper stays bare.
 */
#org-orbs {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
  opacity: 0;
  transition: opacity 1.2s ease;
}
#org-orbs.is-on { opacity: 1; }
/* A maximised window leaves no open wallpaper to drift in. */
#org-orbs.is-blocked { opacity: 0; pointer-events: none; }

.oo__tag {
  position: absolute;
  left: 96px;
  bottom: 26px;
  display: flex;
  align-items: baseline;
  gap: 9px;
  font: 500 10px/1 var(--mono, ui-monospace, "JetBrains Mono", monospace);
  letter-spacing: .18em;
  text-transform: uppercase;
  color: rgba(133, 174, 203, .58);
}
.oo__tag::before { content: "//"; color: rgba(91, 163, 245, .5); }
.oo__tag b {
  font: 700 14px/1 var(--mono, ui-monospace, monospace);
  letter-spacing: 0;
  color: #F0883E;
}

/* The capsule. Dark glass with a thin blue rim, a soft specular top-left and a
 * faint scanline, so it belongs to the same surface language as the dock and
 * the terminal rather than looking like a rainbow soap bubble. */
.oo__orb {
  position: absolute;
  top: 0; left: 0;
  display: grid;
  place-items: center;
  padding: 0;
  border-radius: 50%;
  border: 1px solid rgba(91, 163, 245, .34);
  background:
    radial-gradient(circle at 32% 27%, rgba(255,255,255,.16) 0%, rgba(255,255,255,0) 42%),
    radial-gradient(circle at 50% 46%, rgba(206,224,242,.13) 0%, rgba(20,28,38,.74) 58%,
                                       rgba(10,14,19,.70) 82%, rgba(91,163,245,.12) 100%);
  box-shadow: 0 6px 20px rgba(0,0,0,.42),
              inset 0 0 18px rgba(91,163,245,.10);
  -webkit-backdrop-filter: blur(3px) saturate(1.06);
          backdrop-filter: blur(3px) saturate(1.06);
  pointer-events: auto;      /* the one thing on this layer that takes a click */
  cursor: pointer;
  will-change: transform;
  overflow: hidden;
  transition: transform .18s ease, border-color .18s ease, box-shadow .18s ease;
  animation: ooIn .55s ease-out;   /* arrives rather than blinks into existence */
}
/* Opacity only: the simulation writes transform every frame, and a CSS
 * animation outranks an inline style, so animating transform here would
 * snap the capsule to the origin for the duration of the fade. */
@keyframes ooIn { from { opacity: 0; } to { opacity: 1; } }
/* Scanline, kept inside the rim by the circular clip. */
.oo__orb::after {
  content: "";
  position: absolute;
  inset: 0;
  background: repeating-linear-gradient(180deg,
    rgba(91,163,245,.05) 0 1px, rgba(91,163,245,0) 1px 4px);
  pointer-events: none;
}
/* A circle's usable area is its inscribed box, so a little wider than tall
 * lets a squarish mark breathe without a wordmark touching the rim. */
.oo__orb img {
  width: 74%;
  height: 62%;
  object-fit: contain;
  display: block;
  filter: drop-shadow(0 1px 3px rgba(0,0,0,.6));
  pointer-events: none;
}
/* Dim marks only: lifted, not recoloured, so they stay their own hue. */
.oo__orb.is-lift img {
  filter: brightness(1.55) saturate(1.06) drop-shadow(0 1px 3px rgba(0,0,0,.6));
}

.oo__orb:hover {
  border-color: rgba(91, 163, 245, .72);
  box-shadow: 0 8px 26px rgba(0,0,0,.5), inset 0 0 22px rgba(91,163,245,.2);
}

/* Name on hover, so a capsule reads without having to be destroyed. */
.oo__name {
  position: absolute;
  left: 50%;
  bottom: -22px;
  transform: translateX(-50%);
  white-space: nowrap;
  font: 500 10px/1 var(--mono, ui-monospace, monospace);
  letter-spacing: .08em;
  color: rgba(190, 214, 234, .95);
  background: rgba(8, 12, 18, .8);
  border: 1px solid rgba(91, 163, 245, .22);
  border-radius: 5px;
  padding: 4px 7px;
  opacity: 0;
  transition: opacity .16s ease;
  pointer-events: none;
}
.oo__orb:hover .oo__name { opacity: 1; }

.oo__orb.is-pop {
  transform-origin: center;
  animation: ooPop .34s cubic-bezier(.3,.9,.4,1) forwards;
  pointer-events: none;
}
@keyframes ooPop {
  0%   { opacity: 1; }
  40%  { opacity: .85; }
  100% { opacity: 0; }
}
/* The pop scales the element itself, which the drift also writes to, so the
 * shrink lives on the image instead and leaves transform to the simulation. */
.oo__orb.is-pop img { animation: ooPopImg .34s ease-in forwards; }
@keyframes ooPopImg {
  0%   { transform: scale(1); opacity: 1; }
  35%  { transform: scale(1.18); opacity: .9; }
  100% { transform: scale(.35); opacity: 0; }
}

/* Shards, thrown out along --a to a distance of --d. */
.oo__burst {
  position: absolute;
  top: 0; left: 0;
  width: 0; height: 0;
  pointer-events: none;
}
.oo__burst i {
  position: absolute;
  width: 4px; height: 4px;
  margin: -2px 0 0 -2px;
  border-radius: 50%;
  background: rgba(133, 190, 245, .9);
  animation: ooShard .58s cubic-bezier(.2,.7,.3,1) forwards;
}
@keyframes ooShard {
  0%   { transform: rotate(var(--a)) translateX(0) scale(1); opacity: 1; }
  100% { transform: rotate(var(--a)) translateX(var(--d)) scale(.2); opacity: 0; }
}
.oo__burst b {
  position: absolute;
  left: 0; top: 0;
  transform: translate(-50%, -50%);
  white-space: nowrap;
  font: 700 11px/1 var(--mono, ui-monospace, monospace);
  letter-spacing: .06em;
  color: #cfe3f7;
  text-shadow: 0 0 12px rgba(91,163,245,.7), 0 1px 3px rgba(0,0,0,.9);
  animation: ooName 1.5s ease-out forwards;
}
@keyframes ooName {
  0%   { opacity: 0; transform: translate(-50%,-50%) scale(.9); }
  14%  { opacity: 1; transform: translate(-50%,-62%) scale(1); }
  70%  { opacity: 1; transform: translate(-50%,-78%) scale(1); }
  100% { opacity: 0; transform: translate(-50%,-96%) scale(1); }
}

/* Motion off: a static shelf beside the label, nothing drifting or popping. */
.oo__shelf {
  position: absolute;
  left: 96px;
  bottom: 52px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px;
  max-width: 460px;
}
.oo__shelf img {
  height: 26px;
  width: auto;
  max-width: 84px;
  object-fit: contain;
  opacity: .85;
}

@media (max-width: 1023px) { #org-orbs { display: none; } }
