.nv {
  --nv-ink: #f4effb;
  --nv-muted: #c1b7cc;
  --nv-accent: #dcc4ff;
  --nv-rule: #3d3249;
  background: #100d15;
  color: var(--nv-ink);
  font-family: var(--font-serif);
}
.nv-wrap { width: min(1190px, calc(100% - clamp(36px, 8vw, 110px))); margin-inline: auto; }
.nv-section { padding-block: clamp(63px, 8.5vw, 128px); }
.nv [id] { scroll-margin-top: calc(var(--header-height) + 24px); }
.nv h1, .nv h2 { color: inherit; margin: 0; line-height: 1.07; letter-spacing: -.035em; font-weight: 600; text-wrap: balance; }
.nv h2 { font-size: clamp(2.35rem, 4.5vw, 4.2rem); }
.nv p { color: var(--nv-muted); line-height: 1.65; text-wrap: pretty; }
.nv h1 + p, .nv h2 + p { margin-top: 18px; max-width: 58ch; }
.nv figure { margin: 0; }
.nv figcaption { margin-top: 10px; color: var(--nv-muted); font-size: .91rem; line-height: 1.55; }
.nv :focus-visible { outline: 2px solid currentColor; outline-offset: 4px; }

.nv .netvis-hero {
  min-height: min(850px, 95svh);
  padding-block: calc(var(--header-height) + 48px) 66px;
}
.nv .netvis-hero-inner {
  grid-template-columns: 1fr minmax(0, 540px);
  min-height: 560px;
  max-width: 1290px;
}
.nv .netvis-hero-copy { max-width: 540px; }
.nv .netvis-title { font-size: clamp(3rem, 5.5vw, 5.3rem); }
.nv .netvis-subtitle { font-size: clamp(1rem, 1.6vw, 1.2rem); max-width: 42ch; }
.nv-brand { display: flex; align-items: center; gap: 12px; margin-bottom: 23px; font: 650 1rem var(--font-sans); }
.nv-hero-actions { display: flex; justify-content: flex-end; flex-wrap: wrap; gap: 10px 22px; margin-top: 24px; }
.nv-button, .nv-link { display: inline-flex; align-items: center; gap: .55em; min-height: 46px; font-size: .94rem; font-weight: 700; }
.nv-button { padding: 9px 18px; border-radius: 7px; color: #211330; background: var(--nv-accent); }
.nv-button:hover { color: #211330; background: #f1e6ff; }
.nv-link { color: var(--nv-accent); }
.nv-link:hover { text-decoration: underline; }
.nv p.nv-meta { margin-top: 13px; font: .76rem/1.5 var(--font-sans); }

.nv-intro { max-width: 790px; margin-bottom: clamp(27px, 4vw, 49px); }
.nv-replay-image img { width: 100%; height: auto; border-radius: 10px; }
.nv-investigate { background: #1a1422; }
.nv-investigation-layout { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, .33fr); align-items: center; gap: clamp(18px, 5vw, 65px); }
.nv-views { position: relative; min-inline-size: 0; border: 0; padding: 0; margin: 0; }
.nv-views legend { margin-bottom: 8px; color: var(--nv-muted); font: .8rem var(--font-sans); }
.nv-views input { position: absolute; width: 1px; height: 1px; clip-path: inset(50%); }
.nv-view-controls { display: flex; border-bottom: 1px solid #685579; margin-bottom: 17px; }
.nv-view-controls label { padding: 11px 15px; cursor: pointer; color: var(--nv-muted); border-bottom: 2px solid transparent; font-weight: 650; }
#nv-events:checked ~ .nv-view-controls [for="nv-events"],
#nv-conversations:checked ~ .nv-view-controls [for="nv-conversations"] { color: var(--nv-accent); border-color: currentColor; }
#nv-events:focus-visible ~ .nv-view-controls [for="nv-events"],
#nv-conversations:focus-visible ~ .nv-view-controls [for="nv-conversations"] { outline: 2px solid var(--nv-accent); outline-offset: -2px; }
.nv-views figure { display: none; }
#nv-events:checked ~ .nv-events-view,
#nv-conversations:checked ~ .nv-conversations-view { display: block; }
.nv-investigation-layout img { width: 100%; height: auto; border-radius: 8px; }

.nv-annotations {
  color: var(--nv-ink);
  --nv-ink: #221632;
  --nv-muted: #493761;
  background: #dcc9f5;
}
.nv-annotations .nv-intro { max-width: 960px; }
.nv-annotation-figure img { width: 100%; height: auto; border-radius: 10px; }
.nv-annotation-figure figcaption { max-width: 78ch; }
.nv-annotation-figure strong { color: var(--nv-ink); }

.nv-local, .nv-faq { display: grid; grid-template-columns: minmax(0, .87fr) minmax(0, 1.13fr); gap: clamp(24px, 7vw, 100px); }
.nv-local { align-items: center; }
.nv-local img { width: 100%; height: auto; }
.nv-local .nv-link { margin-top: 13px; }
.nv-faq { border-top: 1px solid var(--nv-rule); align-items: start; }
.nv-faq details { border-bottom: 1px solid var(--nv-rule); }
.nv-faq summary { cursor: pointer; padding: 14px 0; font-weight: 650; }
.nv-faq summary:hover { color: var(--nv-accent); }
.nv-faq p { padding-bottom: 14px; }
.nv-trial { border-top: 1px solid var(--nv-rule); text-align: center; }
.nv-trial img { margin: 0 auto 18px; }
.nv-trial p { margin-inline: auto; }
.nv-trial .nv-button { margin-top: 21px; }

@media (max-width: 1100px) {
  .nv .netvis-hero-inner { grid-template-columns: minmax(0, .85fr) minmax(0, 1fr); }
  .nv .netvis-graph-orb { left: -230px; transform: translateY(-50%) scale(.76); }
}
@media (max-width: 820px) {
  .nv .netvis-hero { padding-block: calc(var(--header-height) + 340px) 44px; min-height: 0; }
  .nv .netvis-hero-inner { display: block; min-height: 0; }
  .nv .netvis-hero-copy { text-align: left; align-items: flex-start; }
  .nv-hero-actions { justify-content: flex-start; }
  .nv .netvis-graph-orb { top: 224px; left: 50%; width: 500px; height: 500px; transform: translate(-50%, -50%); }
  .nv .netvis-graph-network { transform: scale(.91); }
  .nv .host-node { width: 50px; height: 50px; }
  .nv .host-node.is-primary { width: 66px; height: 66px; }
  .nv-local, .nv-faq { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 570px) {
  .nv .netvis-hero { padding-top: calc(var(--header-height) + 300px); }
  .nv .netvis-graph-orb { width: 400px; height: 400px; top: 198px; }
  .nv .netvis-title { font-size: clamp(2.6rem, 10vw, 3.5rem); }
  .nv-investigation-layout { grid-template-columns: minmax(0, 1fr); }
  .nv-inspector { max-width: 300px; }
}
@media (prefers-reduced-motion: reduce) {
  html:has(.nv) { scroll-behavior: auto; }
}
