/* ==========================================================================
   Julian Neumann Unified Interface
   Release 2026-07-10

   Final presentation layer shared by the portfolio, Digital Systems and the
   public/app surfaces of the Local AI stack. It intentionally loads last.
   ========================================================================= */

:root {
  color-scheme: dark;
  --ui-bg: #0b0b0d;
  --ui-bg-deep: #070708;
  --ui-surface: #141416;
  --ui-surface-raised: #1a1a1e;
  --ui-surface-soft: #202025;
  --ui-paper: #f2eee5;
  --ui-paper-muted: #c9c3b7;
  --ui-muted: #a7a4a0;
  --ui-faint: #77777d;
  --ui-line: rgba(242, 238, 229, .13);
  --ui-line-strong: rgba(242, 238, 229, .24);
  --ui-coral: #ff7657;
  --ui-mint: #78d9ad;
  --ui-sky: #75b7ff;
  --ui-yellow: #f2c96d;
  --ui-danger: #ff7a78;
  --ui-font: "Segoe UI Variable Text", "Aptos", "Segoe UI", -apple-system, BlinkMacSystemFont, system-ui, sans-serif;
  --ui-display: "Segoe UI Variable Display", "Aptos Display", "Segoe UI", -apple-system, BlinkMacSystemFont, system-ui, sans-serif;
  --ui-mono: "Cascadia Code", "Cascadia Mono", ui-monospace, SFMono-Regular, Consolas, monospace;
  --ui-radius: 8px;
  --ui-radius-sm: 5px;
  --ui-header: 72px;
  --ui-max: 1320px;
  --ui-wide: 1480px;
  --ui-gutter: 32px;
  --ui-fast: 160ms;
  --ui-base: 320ms;
  --ui-slow: 680ms;
  --ui-spring: cubic-bezier(.2, .9, .2, 1);
  --ui-shadow: 0 24px 70px rgba(0, 0, 0, .42);

  /* Bridge the existing systems onto one vocabulary. */
  --bg: var(--ui-bg);
  --bg-2: var(--ui-bg-deep);
  --surface: var(--ui-surface);
  --surface-2: var(--ui-surface-raised);
  --panel: var(--ui-surface);
  --panel-strong: var(--ui-surface-raised);
  --panel-soft: var(--ui-surface-soft);
  --card: var(--ui-surface);
  --ink: var(--ui-paper);
  --ink-dim: var(--ui-paper-muted);
  --ink-soft: var(--ui-muted);
  --text: var(--ui-paper);
  --text-dim: var(--ui-paper-muted);
  --text-muted: var(--ui-muted);
  --muted: var(--ui-muted);
  --line: var(--ui-line);
  --line-2: var(--ui-line);
  --border: var(--ui-line);
  --accent: var(--ui-coral);
  --accent-strong: var(--ui-coral);
  --accent-2: var(--ui-mint);
  --ember: var(--ui-coral);
  --steel: var(--ui-sky);
  --warm: var(--ui-yellow);
  --copper: var(--ui-yellow);
  --bronze: var(--ui-yellow);
  --ok: var(--ui-mint);
  --success: var(--ui-mint);
  --warn: var(--ui-yellow);
  --warning: var(--ui-yellow);
  --error: var(--ui-danger);
  --danger: var(--ui-danger);
  --font-display: var(--ui-display);
  --font-body: var(--ui-font);
  --font-mono: var(--ui-mono);
  --radius: var(--ui-radius);
  --radius-lg: var(--ui-radius);
}

@keyframes ui-enter { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }
@keyframes ui-pulse { 50% { opacity: .48; } }

html.jn-v2 {
  min-width: 320px;
  background: var(--ui-bg-deep);
  scroll-padding-top: calc(var(--ui-header) + 20px);
  scrollbar-color: var(--ui-line-strong) var(--ui-bg-deep);
}

html.jn-v2,
html.jn-v2 body {
  overflow-x: clip;
}

html.jn-v2.nav-is-open,
html.jn-v2.nav-is-open body {
  overflow: hidden !important;
}

html.jn-v2 body {
  min-width: 320px;
  background-color: var(--ui-bg);
  background-image:
    linear-gradient(rgba(255,255,255,.018) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.018) 1px, transparent 1px);
  background-size: 72px 72px;
  color: var(--ui-paper);
  font-family: var(--ui-font) !important;
  font-size: 16px;
  line-height: 1.62;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

html.jn-v2 body::selection {
  background: var(--ui-coral);
  color: #120b08;
}

html.jn-v2 :where(h1, h2, h3, h4, h5, h6, p, a, span, small, strong, button, input, textarea, select, label, li, dt, dd, code, pre) {
  letter-spacing: 0 !important;
}

html.jn-v2 :where(h1, h2, h3, h4) {
  font-family: var(--ui-display) !important;
  font-weight: 720;
  line-height: 1.04;
  text-wrap: balance;
}

html.jn-v2 :where(p, li) { text-wrap: pretty; }
html.jn-v2 :where(code, pre, kbd, samp) { font-family: var(--ui-mono) !important; }
html.jn-v2 :where(img, video, canvas, svg) { max-width: 100%; }
html.jn-v2 :where(a, button, input, textarea, select) { -webkit-tap-highlight-color: transparent; }
html.jn-v2 :where(button, input, textarea, select) { font-family: var(--ui-font) !important; }

html.jn-v2 :where(a, button, input, textarea, select, [tabindex]):focus-visible {
  outline: 2px solid var(--ui-mint) !important;
  outline-offset: 3px;
}

/* ---------------------------------------------------------------- header */
html.jn-v2 :where(.site-header, .jn-shell-header) {
  position: sticky;
  inset-block-start: 0;
  z-index: 1100;
  min-height: var(--ui-header);
  background: rgba(11, 11, 13, .84) !important;
  border-bottom: 1px solid var(--ui-line) !important;
  box-shadow: none !important;
  backdrop-filter: blur(20px) saturate(1.18);
  -webkit-backdrop-filter: blur(20px) saturate(1.18);
  transition: background var(--ui-base) ease, min-height var(--ui-base) var(--ui-spring);
}

html.jn-v2 :where(.site-header.is-stuck, .site-header.is-scrolled, .jn-shell-header.is-stuck) {
  background: rgba(7, 7, 8, .94) !important;
}

html.jn-v2 :where(.nav-wrap, .header__inner, .jn-shell-bar) {
  width: min(calc(100% - (var(--ui-gutter) * 2)), var(--ui-wide));
  min-height: var(--ui-header);
  margin-inline: auto;
  padding: 0 !important;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

html.jn-v2 :where(.brand, .jn-brand) {
  min-width: max-content;
  display: inline-flex;
  align-items: center;
  gap: 11px;
  color: var(--ui-paper) !important;
  text-decoration: none;
}

html.jn-v2 :where(.brand-mark, .brand__mark, .jn-brand img) {
  width: 40px !important;
  height: 40px !important;
  border-radius: 7px !important;
  border: 1px solid var(--ui-line-strong) !important;
  background: var(--ui-surface) !important;
  box-shadow: none !important;
  object-fit: cover;
  transition: transform var(--ui-base) var(--ui-spring), border-color var(--ui-base) ease;
}

html.jn-v2 :where(.brand:hover .brand-mark, .brand:hover .brand__mark, .jn-brand:hover img) {
  transform: translateY(-2px) rotate(-2deg);
  border-color: var(--ui-coral) !important;
}

html.jn-v2 .brand > span:not(.brand__text),
html.jn-v2 .jn-brand-txt {
  display: grid;
  gap: 1px;
  font-size: 15px;
  font-weight: 720;
  line-height: 1.08;
}

html.jn-v2 body:not(.nds-page) .brand > span:not(.brand__text)::after {
  content: "Systems · Stories";
  color: var(--ui-faint);
  font-family: var(--ui-mono);
  font-size: 10px;
  font-weight: 560;
  text-transform: uppercase;
}

html.jn-v2 .jn-brand-txt strong { font-size: 15px; font-weight: 720; }
html.jn-v2 .jn-brand-txt small,
html.jn-v2 .brand__tag { color: var(--ui-faint) !important; font-family: var(--ui-mono) !important; font-size: 10px !important; }

html.jn-v2 :where(.site-nav, .nav-desktop, .jn-shell-nav) {
  display: flex;
  align-items: center;
  gap: 2px;
}

html.jn-v2 :where(.site-nav > a, .nav-desktop > a, .jn-shell-nav > a, .nav-ai-btn, .jn-ai-btn) {
  min-height: 44px;
  padding: 0 12px !important;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 0 !important;
  border-radius: var(--ui-radius-sm) !important;
  background: transparent !important;
  color: var(--ui-muted) !important;
  font-size: 14px !important;
  font-weight: 610 !important;
  text-decoration: none;
  transition: color var(--ui-fast) ease, background var(--ui-fast) ease, transform var(--ui-fast) ease;
}

html.jn-v2 :where(.site-nav > a, .nav-desktop > a, .jn-shell-nav > a, .nav-ai-btn, .jn-ai-btn):hover {
  color: var(--ui-paper) !important;
  background: rgba(255,255,255,.055) !important;
}

html.jn-v2 :where(.site-nav > a, .nav-desktop > a, .jn-shell-nav > a)[aria-current="page"],
html.jn-v2 :where(.nav-ai-btn, .jn-ai-btn)[data-active="true"] {
  color: var(--ui-paper) !important;
  background: rgba(255,118,87,.11) !important;
  box-shadow: inset 0 -2px 0 var(--ui-coral);
}

html.jn-v2 :where(.site-nav > a, .jn-shell-nav > a)::after { display: none !important; }
html.jn-v2 :where(.nav-ai, .jn-ai) { position: relative; }

html.jn-v2 :where(.nav-ai-menu, .jn-ai-menu) {
  top: calc(100% + 10px) !important;
  min-width: 330px !important;
  padding: 8px !important;
  border: 1px solid var(--ui-line-strong) !important;
  border-radius: var(--ui-radius) !important;
  background: rgba(20,20,22,.97) !important;
  box-shadow: var(--ui-shadow) !important;
  backdrop-filter: blur(24px);
}

html.jn-v2 :where(.nav-ai-menu, .jn-ai-menu) a {
  min-height: 52px;
  padding: 9px 11px !important;
  display: grid !important;
  align-content: center;
  gap: 1px !important;
  border-radius: 6px !important;
  color: var(--ui-paper-muted) !important;
  font-size: 14px !important;
  font-weight: 650 !important;
  text-decoration: none;
}

html.jn-v2 :where(.nav-ai-menu, .jn-ai-menu) a span {
  color: var(--ui-faint) !important;
  font-size: 12px !important;
  font-weight: 500 !important;
}

html.jn-v2 :where(.nav-ai-menu, .jn-ai-menu) a:hover,
html.jn-v2 :where(.nav-ai-menu, .jn-ai-menu) a:focus-visible {
  color: var(--ui-paper) !important;
  background: rgba(117,183,255,.09) !important;
  transform: translateX(3px);
}

html.jn-v2 :where(.nav-toggle, .jn-shell-toggle) {
  width: 46px !important;
  height: 46px !important;
  border: 1px solid var(--ui-line-strong) !important;
  border-radius: 7px !important;
  background: var(--ui-surface) !important;
  color: var(--ui-paper) !important;
}

html.jn-v2 .book-dots { gap: 0; }
html.jn-v2 .book-dots button {
  position: relative;
  width: 44px;
  height: 44px;
  border: 0;
  background: transparent;
  transform: none !important;
}
html.jn-v2 .book-dots button::before {
  content: "";
  position: absolute;
  inset: 50% auto auto 50%;
  width: 9px;
  height: 9px;
  border: 1px solid var(--ui-line-strong);
  border-radius: 50%;
  transform: translate(-50%, -50%);
  transition: width var(--ui-fast), background var(--ui-fast), border-color var(--ui-fast);
}
html.jn-v2 .book-dots button[aria-selected="true"]::before {
  width: 20px;
  border-radius: 5px;
  border-color: var(--ui-yellow);
  background: var(--ui-yellow);
}

html.jn-v2 :where(.code-head button[data-copy], .code-head button[data-copy-target], [data-jn-copy]) {
  min-height: 44px;
  min-width: 44px;
  padding: 8px 12px;
}

/* ----------------------------------------------------------- context bar */
html.jn-v2 .jn-context {
  background: rgba(11,11,13,.72) !important;
  border-bottom: 1px solid var(--ui-line) !important;
}

html.jn-v2 .jn-context-inner {
  width: min(calc(100% - (var(--ui-gutter) * 2)), var(--ui-wide));
  min-height: 46px;
  font-size: 13px;
}

html.jn-v2 .jn-crumbs a { color: var(--ui-faint) !important; }
html.jn-v2 .jn-crumbs [aria-current="page"] { color: var(--ui-paper-muted) !important; }

html.jn-v2 .jn-pill,
html.jn-v2 .status-pill,
html.jn-v2 .badge {
  min-height: 26px;
  border: 1px solid var(--ui-line-strong) !important;
  border-radius: 999px !important;
  background: rgba(120,217,173,.07) !important;
  color: var(--ui-mint) !important;
  font-family: var(--ui-mono) !important;
  font-size: 10px !important;
  text-transform: uppercase;
}

html.jn-v2 .jn-ctx-cta {
  min-height: 36px;
  border-radius: 6px;
  background: var(--ui-coral) !important;
  color: #160c09 !important;
  font-size: 13px;
  box-shadow: none;
}

html.jn-v2 .jn-ctx-cta.ghost {
  border-color: var(--ui-line-strong) !important;
  background: transparent !important;
  color: var(--ui-paper-muted) !important;
}

/* -------------------------------------------------------- general rhythm */
html.jn-v2 :where(.container, .container-wide) { --gutter: var(--ui-gutter); }

html.jn-v2 :where(.eyebrow, .hero-tag, .project-kicker, .stage-kicker, .book-genre) {
  color: var(--ui-coral) !important;
  font-family: var(--ui-mono) !important;
  font-size: 12px !important;
  font-weight: 650 !important;
  text-transform: uppercase;
}

html.jn-v2 :where(.eyebrow)::before { width: 20px; background: currentColor; }
html.jn-v2 :where(.lead, .hero-lead) { color: var(--ui-paper-muted) !important; font-size: 19px !important; line-height: 1.55; }

/* Critical hero text is readable in the first painted frame. */
html.jn-v2 :where(.hero-copy, .page-hero-copy) :where(.reveal-up, .reveal-fade),
html.jn-v2 .hero-title .reveal-line > span {
  opacity: 1 !important;
  transform: none !important;
  filter: none !important;
}

html.jn-v2 :where(.btn, .button, button.primary, .primary) {
  min-height: 48px;
  padding: 0 18px;
  border: 1px solid var(--ui-line-strong) !important;
  border-radius: 7px !important;
  background: var(--ui-surface-raised) !important;
  color: var(--ui-paper) !important;
  box-shadow: none !important;
  font-size: 14px;
  font-weight: 690;
  text-decoration: none;
  transition: transform var(--ui-fast) var(--ui-spring), border-color var(--ui-fast) ease, background var(--ui-fast) ease, color var(--ui-fast) ease;
}

html.jn-v2 :where(.btn-primary, .button--primary, button.primary, .primary) {
  border-color: var(--ui-coral) !important;
  background: var(--ui-coral) !important;
  color: #160c09 !important;
}

html.jn-v2 :where(.btn, .button, button.primary, .primary):hover {
  transform: translateY(-2px);
  border-color: var(--ui-mint) !important;
  background: var(--ui-surface-soft) !important;
}

html.jn-v2 :where(.btn-primary, .button--primary, button.primary, .primary):hover {
  border-color: #ff8b71 !important;
  background: #ff8b71 !important;
  color: #160c09 !important;
}

html.jn-v2 :where(.btn, .button, button.primary, .primary):active {
  transform: translateY(1px) scale(.985) !important;
  transition-duration: 70ms;
}

html.jn-v2 :where(.card, .proof-card, .eco-card, .feature-card, .module-card, .panel, .flow-step, .code-card, .hero-panel, .upload-card, .status-shell, .contact-panel, .contact-link, .platform) {
  border: 1px solid var(--ui-line) !important;
  border-radius: var(--ui-radius) !important;
  background: rgba(20,20,22,.9) !important;
  box-shadow: none !important;
}

@media (hover: hover) and (pointer: fine) {
  html.jn-v2 :where(.card, .proof-card, .eco-card, .feature-card, .module-card, .flow-step, .contact-panel, .contact-link, .platform) {
    transition: transform var(--ui-base) var(--ui-spring), border-color var(--ui-base) ease, background var(--ui-base) ease;
  }
  html.jn-v2 :where(.card, .proof-card, .eco-card, .feature-card, .module-card, .flow-step, .contact-panel, .contact-link, .platform):hover {
    transform: translateY(-5px);
    border-color: color-mix(in srgb, var(--ui-card-accent, var(--ui-sky)) 58%, var(--ui-line)) !important;
    background: rgba(26,26,30,.96) !important;
  }
}

html.jn-v2 :where(input, textarea, select) {
  min-height: 48px;
  border: 1px solid var(--ui-line-strong) !important;
  border-radius: 6px !important;
  background: #101012 !important;
  color: var(--ui-paper) !important;
  font-size: 16px;
  box-shadow: none !important;
}

html.jn-v2 :where(input, textarea, select)::placeholder { color: var(--ui-faint); opacity: 1; }
html.jn-v2 :where(input, textarea, select):focus { border-color: var(--ui-mint) !important; }

/* -------------------------------------------------------- portfolio hero */
html.jn-v2 body:not(.nds-page):not(.jn-shelled) .hero {
  min-height: 760px;
  max-height: 940px;
}

html.jn-v2 body:not(.nds-page):not(.jn-shelled) .hero-inner {
  width: min(calc(100% - (var(--ui-gutter) * 2)), var(--ui-wide));
  gap: 64px;
}

html.jn-v2 body:not(.nds-page):not(.jn-shelled) .hero-copy { max-width: 700px; }
html.jn-v2 body:not(.nds-page):not(.jn-shelled) .hero-title { font-size: 88px !important; line-height: .94 !important; }
html.jn-v2 body:not(.nds-page):not(.jn-shelled) .hero-media { width: min(34vw, 490px); }
html.jn-v2 body:not(.nds-page):not(.jn-shelled) .portrait { border-radius: var(--ui-radius) !important; border-color: var(--ui-line-strong) !important; }
html.jn-v2 body:not(.nds-page):not(.jn-shelled) .portrait img { animation: none !important; clip-path: none !important; }

html.jn-v2 .page-hero {
  min-height: 560px;
  max-height: 720px;
  border-bottom: 1px solid var(--ui-line);
}

html.jn-v2 .page-hero h1 { max-width: 12ch; font-size: 60px !important; }
html.jn-v2 .section { padding-block: 88px; }
html.jn-v2 .divider-line { border-color: var(--ui-line) !important; }
html.jn-v2 .case { gap: 56px; padding-block: 72px; }
html.jn-v2 .case h2 { font-size: 40px !important; }
html.jn-v2 :where(.grief-title, #runtime-title) { max-width: 13ch; font-size: 60px !important; }
html.jn-v2 .case-visual { border-radius: var(--ui-radius) !important; border-color: var(--ui-line) !important; background-color: var(--ui-surface) !important; }

html.jn-v2 .eco-card:nth-child(3n + 1),
html.jn-v2 .proof-card:nth-child(3n + 1) { --ui-card-accent: var(--ui-coral); }
html.jn-v2 .eco-card:nth-child(3n + 2),
html.jn-v2 .proof-card:nth-child(3n + 2) { --ui-card-accent: var(--ui-mint); }
html.jn-v2 .eco-card:nth-child(3n),
html.jn-v2 .proof-card:nth-child(3n) { --ui-card-accent: var(--ui-sky); }

html.jn-v2 .legal-page,
html.jn-v2 .legal-section {
  max-width: 880px;
  margin-inline: auto;
  color: var(--ui-paper-muted);
}

html.jn-v2 .legal-page {
  padding: 72px 0 !important;
  border: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
}

html.jn-v2 .legal-page h1 {
  max-width: 16ch;
  margin-bottom: 28px;
  color: var(--ui-paper);
  font-size: 48px !important;
  line-height: 1.04 !important;
}

/* ----------------------------------------------------- Digital Systems */
html.jn-v2 body.nds-page {
  --navy: var(--ui-bg);
  --navy-2: var(--ui-bg-deep);
  --surface: var(--ui-surface);
  --surface-2: var(--ui-surface-raised);
  --cyan: var(--ui-mint);
  --teal: var(--ui-sky);
  --champagne: var(--ui-yellow);
  --white: var(--ui-paper);
  --muted: var(--ui-paper-muted);
  --line: var(--ui-line);
  --line-strong: var(--ui-line-strong);
  background-color: var(--ui-bg);
}

html.jn-v2 body.nds-page .site-header { position: sticky; }
html.jn-v2 body.nds-page .header__actions { display: flex; align-items: center; gap: 10px; }
html.jn-v2 body.nds-page .brand__name { color: var(--ui-paper); font-size: 15px; }
html.jn-v2 body.nds-page .hero { min-height: 760px; max-height: 900px; background: var(--ui-bg); }
html.jn-v2 body.nds-page .hero__scrim {
  background: linear-gradient(90deg, rgba(7,7,8,.96) 0%, rgba(7,7,8,.62) 48%, rgba(7,7,8,.04) 100%) !important;
}
html.jn-v2 body.nds-page .hero__inner { padding-block: 96px; }
html.jn-v2 body.nds-page .hero__title { max-width: 12ch; font-size: 66px !important; line-height: .98 !important; }
html.jn-v2 body.nds-page .hero__title em { color: var(--ui-mint) !important; }
html.jn-v2 body.nds-page .hero__copy { max-width: 720px; color: var(--ui-paper-muted); font-size: 17px; }
html.jn-v2 body.nds-page .hero__inner .reveal { transition-duration: 560ms !important; }
html.jn-v2 body.nds-page .hero__inner .reveal:not(.is-visible) { opacity: 1 !important; transform: none !important; }
html.jn-v2 body.nds-page :where(.trustbar, .offers, .process, .use-cases, .about, .contact) { border-color: var(--ui-line) !important; }
html.jn-v2 body.nds-page :where(.service, .offer, .slide, .system__panel, .contact__form, .about__card) {
  border-radius: var(--ui-radius) !important;
  border-color: var(--ui-line) !important;
  background: var(--ui-surface) !important;
}
html.jn-v2 body.nds-page .float-card { border-radius: var(--ui-radius) !important; background: rgba(20,20,22,.92) !important; }
html.jn-v2 body.nds-page .mobile-menu { background: rgba(11,11,13,.98); }

/* -------------------------------------------------------- shared AI apps */
html.jn-v2 body.jn-shelled { color: var(--ui-paper); }
html.jn-v2 .jn-aurora { display: none !important; }
html.jn-v2 body.jn-bridge main { width: min(calc(100% - (var(--ui-gutter) * 2)), var(--ui-max)); }
html.jn-v2 body.jn-bridge .hero {
  min-height: 650px;
  padding-block: 88px;
  gap: 64px;
}
html.jn-v2 body.jn-bridge .hero h1 { max-width: 12ch; font-size: 64px !important; line-height: .98 !important; }
html.jn-v2 :where(.health-hero, .privacy-hero, .admin-login, .admin-top, .job-hero) h1 {
  max-width: 18ch;
  font-size: 48px !important;
  line-height: 1.04 !important;
}
html.jn-v2 body.jn-bridge .section { padding-block: 80px; }
html.jn-v2 body.jn-bridge :where(.grid, .proof-grid) { gap: 16px; }
html.jn-v2 body.jn-bridge :where(.card, .flow-step, .proof-card, .code-card) { padding: 22px; }
html.jn-v2 body.jn-bridge :where(.card, .flow-step, .proof-card) h3 { font-size: 18px !important; }
html.jn-v2 body.jn-bridge pre { border: 1px solid var(--ui-line); border-radius: 6px; background: #08080a; color: #d8efe4; }

html.jn-v2 .home-page .hero { grid-template-columns: minmax(0, 1.12fr) minmax(320px, 460px); }
html.jn-v2 .home-page .hero-panel { padding: 14px; }
html.jn-v2 .home-page .signal-row { border-radius: 6px; background: var(--ui-surface-raised); }
html.jn-v2 .home-page .signal-row:nth-child(2) span { background: var(--ui-mint); }
html.jn-v2 .home-page .signal-row:nth-child(3) span { background: var(--ui-sky); }
html.jn-v2 .home-page .signal-row:nth-child(4) span { background: var(--ui-yellow); }
html.jn-v2 .dropzone { border-radius: 7px !important; background: rgba(117,183,255,.04) !important; }
html.jn-v2 .flow li { border-radius: var(--ui-radius) !important; border-color: var(--ui-line) !important; background: var(--ui-surface) !important; }

html.jn-v2 .docs-page .hero { min-height: 540px; }
html.jn-v2 .docs-page .doc-nav { border-color: var(--ui-line); background: rgba(20,20,22,.96); }
html.jn-v2 .console-card,
html.jn-v2 .result-card { border-radius: var(--ui-radius) !important; border-color: var(--ui-line) !important; background: var(--ui-surface) !important; }

html.jn-v2 :where(.gateway-hero, .bridge-hero) {
  grid-template-columns: minmax(0, 1.05fr) minmax(380px, .8fr);
  align-items: center;
}

html.jn-v2 :where(.gateway-hero, .bridge-hero) .hero-copy { display: grid; gap: 18px; }

html.jn-v2 :where(.gateway-map, .bridge-map) {
  position: relative;
  overflow: hidden;
  min-height: 420px;
  padding: 22px;
  border: 1px solid var(--ui-line-strong);
  border-radius: var(--ui-radius);
  background:
    linear-gradient(rgba(255,255,255,.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.025) 1px, transparent 1px),
    var(--ui-surface);
  background-size: 38px 38px;
}

html.jn-v2 :where(.gateway-map__head, .bridge-map__head) {
  min-height: 44px;
  padding-bottom: 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  border-bottom: 1px solid var(--ui-line);
  color: var(--ui-paper);
  font-size: 14px;
  font-weight: 700;
}

html.jn-v2 :where(.gateway-map__head, .bridge-map__head) code { color: var(--ui-mint); font-size: 12px; font-weight: 560; }
html.jn-v2 :where(.gateway-map, .bridge-map) ol { margin: 22px 0 0; padding: 0; display: grid; gap: 10px; list-style: none; }
html.jn-v2 :where(.gateway-map, .bridge-map) li {
  position: relative;
  min-height: 60px;
  padding: 10px 14px;
  display: grid;
  grid-template-columns: 32px minmax(0,1fr) auto;
  align-items: center;
  gap: 10px;
  border: 1px solid var(--ui-line);
  border-radius: 6px;
  background: rgba(11,11,13,.82);
}
html.jn-v2 :where(.gateway-map, .bridge-map) li::after {
  content: "";
  position: absolute;
  left: 29px;
  top: 100%;
  width: 1px;
  height: 11px;
  background: var(--ui-line-strong);
}
html.jn-v2 :where(.gateway-map, .bridge-map) li:last-child::after { display: none; }
html.jn-v2 :where(.gateway-map, .bridge-map) li > span { color: var(--ui-coral); font-family: var(--ui-mono); font-size: 11px; }
html.jn-v2 :where(.gateway-map, .bridge-map) li strong { color: var(--ui-paper); font-size: 14px; }
html.jn-v2 :where(.gateway-map, .bridge-map) li small { color: var(--ui-muted); font-family: var(--ui-mono); font-size: 11px; text-align: right; }
html.jn-v2 .bridge-map li { grid-template-columns: minmax(0,1fr) auto; }
html.jn-v2 .bridge-map li:nth-child(2) { border-left-color: var(--ui-sky); }
html.jn-v2 .bridge-map li:nth-child(3) { border-left-color: var(--ui-mint); }
html.jn-v2 .bridge-map li:nth-child(4) { border-left-color: var(--ui-yellow); }
html.jn-v2 .bridge-map li:nth-child(5) { border-left-color: var(--ui-coral); }

/* -------------------------------------------------------------- Workspace */
html.jn-v2 :where(.site-body, .app-body) {
  --bg: var(--ui-bg);
  --bg-elevated: var(--ui-surface);
  --panel: var(--ui-surface);
  --card: var(--ui-surface);
  --border: var(--ui-line);
  --text: var(--ui-paper);
  --text-dim: var(--ui-paper-muted);
  --text-muted: var(--ui-muted);
  --accent: var(--ui-coral);
  --accent-2: var(--ui-mint);
  background-color: var(--ui-bg) !important;
}

html.jn-v2 .site-main { width: min(calc(100% - (var(--ui-gutter) * 2)), var(--ui-wide)); }
html.jn-v2 .hero-section { min-height: 690px; gap: 64px; padding-block: 88px; }
html.jn-v2 .hero-section h1 { font-size: 68px !important; max-width: 10ch; }
html.jn-v2 .hero-visual { border: 1px solid var(--ui-line); border-radius: var(--ui-radius) !important; background: var(--ui-surface); overflow: hidden; }
html.jn-v2 .section-grid { gap: 16px; }
html.jn-v2 .feature-card { overflow: hidden; }
html.jn-v2 .feature-card img { border-radius: 5px; }
html.jn-v2 .architecture-band { border-block: 1px solid var(--ui-line); background: transparent !important; }
html.jn-v2 .links-band { border-color: var(--ui-line); }
html.jn-v2 .auth-panel { border-radius: var(--ui-radius) !important; border-color: var(--ui-line) !important; background: var(--ui-surface) !important; }

html.jn-v2 .app-sidebar {
  background: #0d0d0f !important;
  border-right: 1px solid var(--ui-line) !important;
}
html.jn-v2 .app-nav a { min-height: 46px; border-radius: 6px !important; color: var(--ui-muted) !important; }
html.jn-v2 .app-nav a:hover { background: rgba(255,255,255,.055) !important; color: var(--ui-paper) !important; }
html.jn-v2 .app-nav a[aria-current="page"] { background: rgba(255,118,87,.12) !important; color: var(--ui-paper) !important; box-shadow: inset 3px 0 0 var(--ui-coral); }
html.jn-v2 .app-topbar { background: rgba(11,11,13,.88) !important; border-bottom-color: var(--ui-line) !important; backdrop-filter: blur(18px); }
html.jn-v2 .app-main { background-color: var(--ui-bg) !important; }
html.jn-v2 .page-head h1 { font-size: 40px !important; }
html.jn-v2 .metric-grid article,
html.jn-v2 .module-card,
html.jn-v2 .panel,
html.jn-v2 .upload-zone { border-radius: var(--ui-radius) !important; border-color: var(--ui-line) !important; background: var(--ui-surface) !important; }
html.jn-v2 .chat-app { border-radius: var(--ui-radius) !important; border-color: var(--ui-line) !important; background: var(--ui-bg) !important; }
html.jn-v2 .chat-aside,
html.jn-v2 .chat-topbar,
html.jn-v2 .chat-composer { background: var(--ui-surface) !important; border-color: var(--ui-line) !important; }

html.jn-v2 .workspace-home-link {
  min-height: 42px;
  margin-top: auto;
  display: inline-flex;
  align-items: center;
  color: var(--ui-muted);
  font-size: 13px;
  text-decoration: none;
}
html.jn-v2 .workspace-home-link:hover { color: var(--ui-paper); }

/* ------------------------------------------------------- rich summaries */
html.jn-v2 :where(.markdown-output, .summary-content, [data-summary]) {
  color: var(--ui-paper-muted);
  font-size: 16px;
  line-height: 1.72;
}
html.jn-v2 :where(.markdown-output, .summary-content, [data-summary]) :where(h1, h2, h3, h4) {
  margin: 28px 0 10px;
  color: var(--ui-paper);
  font-family: var(--ui-display) !important;
}
html.jn-v2 :where(.markdown-output, .summary-content, [data-summary]) h1 { font-size: 30px !important; }
html.jn-v2 :where(.markdown-output, .summary-content, [data-summary]) h2 { font-size: 23px !important; }
html.jn-v2 :where(.markdown-output, .summary-content, [data-summary]) h3 { font-size: 18px !important; }
html.jn-v2 :where(.markdown-output, .summary-content, [data-summary]) :where(ul, ol) { padding-left: 22px; }
html.jn-v2 :where(.markdown-output, .summary-content, [data-summary]) li { margin-block: 7px; }
html.jn-v2 :where(.markdown-output, .summary-content, [data-summary]) blockquote {
  margin: 22px 0;
  padding: 14px 18px;
  border-left: 3px solid var(--ui-mint);
  background: rgba(120,217,173,.06);
  color: var(--ui-paper-muted);
}

/* --------------------------------------------------------------- footer */
html.jn-v2 :where(.site-footer, .jn-foot, .gateway-footer) {
  margin-top: 0;
  border-top: 1px solid var(--ui-line) !important;
  background: #08080a !important;
}
html.jn-v2 .jn-foot-inner {
  width: min(calc(100% - (var(--ui-gutter) * 2)), var(--ui-wide));
  grid-template-columns: minmax(220px, 1.35fr) repeat(4, minmax(130px, 1fr));
  gap: 32px;
}
html.jn-v2 .jn-foot-col h4 { color: var(--ui-paper); font-size: 13px; }
html.jn-v2 .jn-foot-col a { min-height: 34px; display: flex; align-items: center; color: var(--ui-muted); font-size: 13px; }
html.jn-v2 .jn-foot-col a:hover { color: var(--ui-mint); }
html.jn-v2 .jn-foot-base { border-top-color: var(--ui-line) !important; }

/* ---------------------------------------------------------- motion layer */
html.jn-v2.ui-ready .jn-motion {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity var(--ui-slow) ease, transform var(--ui-slow) var(--ui-spring);
}
html.jn-v2.ui-ready .jn-motion.is-inview { opacity: 1; transform: none; }
html.jn-v2.ui-ready .jn-motion[data-ui-order="1"] { transition-delay: 70ms; }
html.jn-v2.ui-ready .jn-motion[data-ui-order="2"] { transition-delay: 140ms; }
html.jn-v2.ui-ready .jn-motion[data-ui-order="3"] { transition-delay: 210ms; }

.ui-back-top {
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: 900;
  width: 46px;
  height: 46px;
  padding: 0 !important;
  display: grid;
  place-items: center;
  border: 1px solid var(--ui-line-strong) !important;
  border-radius: 50% !important;
  background: rgba(20,20,22,.94) !important;
  color: var(--ui-paper) !important;
  opacity: 0;
  transform: translateY(10px);
  pointer-events: none;
  backdrop-filter: blur(16px);
  transition: opacity var(--ui-base) ease, transform var(--ui-base) var(--ui-spring), border-color var(--ui-fast) ease !important;
}
.ui-back-top.is-visible { opacity: 1; transform: none; pointer-events: auto; }
.ui-back-top:hover { border-color: var(--ui-mint) !important; transform: translateY(-2px) !important; }

/* ------------------------------------------------------------- responsive */
@media (max-width: 1180px) {
  :root { --ui-gutter: 24px; }
  html.jn-v2 body:not(.nds-page):not(.jn-shelled) .hero-title { font-size: 70px !important; }
  html.jn-v2 .page-hero h1 { font-size: 52px !important; }
  html.jn-v2 body.jn-bridge .hero h1 { font-size: 54px !important; }
  html.jn-v2 .hero-section h1 { font-size: 56px !important; }
  html.jn-v2 body.nds-page .hero__title { font-size: 56px !important; }
}

@media (max-width: 980px) {
  :root { --ui-header: 66px; }
  html.jn-v2 :where(.nav-toggle, .jn-shell-toggle) { display: inline-flex !important; align-items: center; justify-content: center; }
  html.jn-v2 .nav-desktop { display: none !important; }
  html.jn-v2 :where(.site-nav, .jn-shell-nav) {
    position: fixed !important;
    inset: var(--ui-header) 0 0 !important;
    width: 100% !important;
    height: calc(100dvh - var(--ui-header));
    padding: 22px var(--ui-gutter) 36px !important;
    display: flex !important;
    flex-direction: column !important;
    align-items: stretch !important;
    justify-content: flex-start !important;
    gap: 4px !important;
    overflow: auto;
    background: #0b0b0d !important;
    border-top: 1px solid var(--ui-line) !important;
    transform: translateX(104%);
    visibility: hidden;
    transition: transform var(--ui-base) var(--ui-spring), visibility 0s linear var(--ui-base);
  }
  html.jn-v2 :where(.site-nav, .jn-shell-nav).is-open {
    transform: none;
    visibility: visible;
    transition: transform var(--ui-base) var(--ui-spring), visibility 0s;
  }
  html.jn-v2 :where(.site-nav > a, .jn-shell-nav > a, .nav-ai-btn, .jn-ai-btn) {
    min-height: 52px;
    width: 100%;
    justify-content: flex-start;
    padding-inline: 14px !important;
    font-size: 16px !important;
  }
  html.jn-v2 :where(.nav-ai, .jn-ai) { display: block !important; width: 100%; }
  html.jn-v2 :where(.nav-ai-menu, .jn-ai-menu) {
    position: static !important;
    min-width: 0 !important;
    width: 100% !important;
    max-height: 0;
    margin: 0 !important;
    padding: 0 8px !important;
    overflow: hidden;
    border: 0 !important;
    background: transparent !important;
    box-shadow: none !important;
  }
  html.jn-v2 :where(.nav-ai, .jn-ai)[data-open="true"] :where(.nav-ai-menu, .jn-ai-menu) {
    max-height: 720px;
    padding-block: 6px 12px !important;
  }
  html.jn-v2 :where(.nav-ai-menu, .jn-ai-menu) a { min-height: 58px; }
  html.jn-v2 .jn-context-inner { min-height: 48px; }
  html.jn-v2 .jn-pill { display: none; }
  html.jn-v2 body:not(.nds-page):not(.jn-shelled) .hero { min-height: 680px; max-height: none; }
  html.jn-v2 body:not(.nds-page):not(.jn-shelled) .hero-inner { gap: 32px; }
  html.jn-v2 body:not(.nds-page):not(.jn-shelled) .hero-title { font-size: 58px !important; }
  html.jn-v2 body:not(.nds-page):not(.jn-shelled) .hero-media { width: min(42vw, 400px); }
  html.jn-v2 .page-hero { min-height: 500px; }
  html.jn-v2 .page-hero h1 { font-size: 46px !important; }
  html.jn-v2 :where(.grief-title, #runtime-title) { font-size: 50px !important; }
  html.jn-v2 body.jn-bridge .hero { min-height: 0; padding-block: 72px; gap: 36px; }
  html.jn-v2 body.jn-bridge .hero h1 { font-size: 50px !important; }
  html.jn-v2 :where(.gateway-hero, .bridge-hero) { grid-template-columns: 1fr; }
  html.jn-v2 :where(.gateway-map, .bridge-map) { min-height: 0; }
  html.jn-v2 .home-page .hero { grid-template-columns: 1fr; }
  html.jn-v2 .hero-section { min-height: 0; grid-template-columns: 1fr; padding-block: 72px; }
  html.jn-v2 .hero-section h1 { font-size: 50px !important; }
  html.jn-v2 body.nds-page .hero { min-height: 700px; }
  html.jn-v2 body.nds-page .hero__title { font-size: 50px !important; }
  html.jn-v2 .jn-foot-inner { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  html.jn-v2 .jn-foot-brand { grid-column: 1 / -1; }
}

@media (max-width: 680px) {
  :root { --ui-gutter: 18px; }
  html.jn-v2 body { font-size: 16px; background-size: 48px 48px; }
  html.jn-v2 :where(.nav-wrap, .header__inner, .jn-shell-bar) { gap: 12px; }
  html.jn-v2 .brand__text { max-width: 180px; }
  html.jn-v2 .brand__name { font-size: 14px !important; }
  html.jn-v2 .brand__tag { display: none; }
  html.jn-v2 .jn-brand-txt small { display: none; }
  html.jn-v2 .jn-context { display: none; }
  html.jn-v2 :where(.lead, .hero-lead) { font-size: 17px !important; }
  html.jn-v2 :where(.btn, .button, button.primary, .primary) { min-height: 50px; }
  html.jn-v2 .hero-actions,
  html.jn-v2 .actions,
  html.jn-v2 .page-hero-actions { align-items: stretch; }
  html.jn-v2 .hero-actions > *,
  html.jn-v2 .actions > *,
  html.jn-v2 .page-hero-actions > * { flex: 1 1 100%; width: 100%; }
  html.jn-v2 body:not(.nds-page):not(.jn-shelled) .hero { min-height: auto; padding-block: 34px 24px; }
  html.jn-v2 body:not(.nds-page):not(.jn-shelled) .hero-inner { grid-template-columns: 1fr; gap: 20px; }
  html.jn-v2 body:not(.nds-page):not(.jn-shelled) .hero-title { font-size: 46px !important; }
  html.jn-v2 body:not(.nds-page):not(.jn-shelled) .hero-media { width: min(100%, 390px); height: 190px; min-height: 0 !important; margin-inline: auto; overflow: hidden; }
  html.jn-v2 body:not(.nds-page):not(.jn-shelled) .portrait,
  html.jn-v2 body:not(.nds-page):not(.jn-shelled) .portrait picture,
  html.jn-v2 body:not(.nds-page):not(.jn-shelled) .portrait img { width: 100%; height: 100%; }
  html.jn-v2 body:not(.nds-page):not(.jn-shelled) .portrait { min-height: 0 !important; aspect-ratio: auto !important; }
  html.jn-v2 body:not(.nds-page):not(.jn-shelled) .portrait picture,
  html.jn-v2 body:not(.nds-page):not(.jn-shelled) .portrait img { height: 100% !important; }
  html.jn-v2 body:not(.nds-page):not(.jn-shelled) .portrait img { object-fit: cover; object-position: center 18%; }
  html.jn-v2 .page-hero { min-height: 460px; }
  html.jn-v2 .page-hero-copy { padding-top: 0 !important; }
  html.jn-v2 .page-hero h1 { font-size: 40px !important; }
  html.jn-v2 :where(.grief-title, #runtime-title) { font-size: 40px !important; }
  html.jn-v2 .section { padding-block: 64px; }
  html.jn-v2 .case { gap: 28px; padding-block: 56px; }
  html.jn-v2 .case h2 { font-size: 32px !important; }
  html.jn-v2 body.nds-page .hero { min-height: auto; max-height: none; }
  html.jn-v2 body.nds-page .hero__inner { padding-block: 34px 28px; }
  html.jn-v2 body.nds-page .hero__title { font-size: 38px !important; }
  html.jn-v2 body.nds-page .hero__claim { margin-top: 16px; font-size: 18px; }
  html.jn-v2 body.nds-page .hero__copy { margin-top: 12px; font-size: 16px; line-height: 1.5; }
  html.jn-v2 body.nds-page .hero__actions { margin-top: 22px; flex-wrap: nowrap; gap: 10px; }
  html.jn-v2 body.nds-page .hero__actions .button { width: auto; min-width: 0; padding-inline: 12px; flex: 1 1 50%; font-size: 13px; }
  html.jn-v2 body.nds-page .hero__mobile-visual {
    width: 100%;
    max-width: none;
    height: 142px;
    margin-top: 22px;
    border-radius: var(--ui-radius) !important;
  }
  html.jn-v2 body.nds-page .hero__mobile-visual img { width: 100%; height: 100%; object-fit: cover; object-position: center 58%; }
  html.jn-v2 body.nds-page .float-card { display: none; }
  html.jn-v2 body.jn-bridge main { width: min(calc(100% - (var(--ui-gutter) * 2)), var(--ui-max)); }
  html.jn-v2 body.jn-bridge .hero { padding-block: 58px; }
  html.jn-v2 body.jn-bridge .hero h1 { font-size: 42px !important; }
  html.jn-v2 body.jn-bridge .section { padding-block: 62px; }
  html.jn-v2 .hero-section { padding-block: 58px; }
  html.jn-v2 .hero-section h1 { font-size: 42px !important; }
  html.jn-v2 .page-head h1 { font-size: 32px !important; }
  html.jn-v2 .legal-page { padding-block: 48px !important; }
  html.jn-v2 .legal-page h1 { font-size: 34px !important; }
  html.jn-v2 .jn-foot-inner { grid-template-columns: 1fr; }
  html.jn-v2 .jn-foot-brand { grid-column: auto; }
  html.jn-v2 .jn-foot-base-inner { align-items: flex-start; flex-direction: column; gap: 6px; }
  html.jn-v2 .ui-back-top { right: 12px; bottom: 12px; }

  html.jn-v2 .hero-section { padding-block: 32px; gap: 18px; }
  html.jn-v2 .hero-section .hero-actions { flex-direction: row !important; flex-wrap: nowrap; gap: 10px; }
  html.jn-v2 .hero-section .hero-actions .btn { width: auto; min-width: 0; padding-inline: 10px; flex: 1 1 50%; font-size: 13px; }
  html.jn-v2 .hero-section .hero-visual { height: 180px; min-height: 0; }
  html.jn-v2 .hero-section .hero-visual img { width: 100%; height: 100%; object-fit: cover; }

  html.jn-v2 .home-page .hero { padding-block: 28px; gap: 18px; }
  html.jn-v2 .home-page .hero-actions { flex-wrap: nowrap; gap: 10px; }
  html.jn-v2 .home-page .hero-actions .btn { width: auto; min-width: 0; padding-inline: 10px; flex: 1 1 50%; font-size: 13px; }
  html.jn-v2 .home-page .hero-panel { grid-template-columns: repeat(2, minmax(0,1fr)); gap: 8px; padding: 8px; }
  html.jn-v2 .home-page .signal-row {
    min-height: 76px;
    padding: 10px;
    grid-template-columns: 10px minmax(0,1fr);
    align-content: center;
    gap: 5px 8px;
  }
  html.jn-v2 .home-page .signal-row em { grid-column: 2; font-size: 11px; }
  html.jn-v2 .home-page .signal-row strong { font-size: 13px; }
  html.jn-v2 :where(.health-hero, .privacy-hero, .admin-login, .admin-top, .job-hero) h1 { font-size: 34px !important; }
  html.jn-v2 body:not(.nds-page):not(.jn-shelled) .portrait img { animation: none !important; clip-path: none !important; }

  html.jn-v2 :where(.gateway-hero, .bridge-hero) { padding-block: 26px !important; gap: 18px; }
  html.jn-v2 :where(.gateway-hero, .bridge-hero) .actions { flex-wrap: nowrap; gap: 10px; }
  html.jn-v2 :where(.gateway-hero, .bridge-hero) .actions .btn { width: auto; min-width: 0; padding-inline: 10px; flex: 1 1 50%; font-size: 13px; }
  html.jn-v2 :where(.gateway-map, .bridge-map) { height: 174px; min-height: 0; padding: 12px; }
  html.jn-v2 :where(.gateway-map__head, .bridge-map__head) { min-height: 34px; padding-bottom: 8px; }
  html.jn-v2 :where(.gateway-map, .bridge-map) ol {
    margin-top: 10px;
    display: flex;
    gap: 8px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scrollbar-width: thin;
  }
  html.jn-v2 :where(.gateway-map, .bridge-map) li {
    min-width: 180px;
    min-height: 92px;
    flex: 0 0 180px;
    grid-template-columns: 24px minmax(0,1fr);
    align-content: center;
    scroll-snap-align: start;
  }
  html.jn-v2 .bridge-map li { grid-template-columns: minmax(0,1fr); }
  html.jn-v2 :where(.gateway-map, .bridge-map) li::after { display: none; }
  html.jn-v2 :where(.gateway-map, .bridge-map) li small { grid-column: 2; text-align: left; }
  html.jn-v2 .bridge-map li small { grid-column: 1; }
}

@media (max-width: 390px) {
  :root { --ui-gutter: 14px; }
  html.jn-v2 body:not(.nds-page):not(.jn-shelled) .hero-title,
  html.jn-v2 .page-hero h1,
  html.jn-v2 :where(.grief-title, #runtime-title),
  html.jn-v2 body.nds-page .hero__title,
  html.jn-v2 body.jn-bridge .hero h1,
  html.jn-v2 .hero-section h1 { font-size: 36px !important; }
  html.jn-v2 :where(.brand-mark, .brand__mark, .jn-brand img) { width: 36px !important; height: 36px !important; }
  html.jn-v2 .brand > span:not(.brand__text)::after { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  html.jn-v2 *, html.jn-v2 *::before, html.jn-v2 *::after {
    scroll-behavior: auto !important;
    animation-duration: 1ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 1ms !important;
  }
  html.jn-v2 .jn-motion { opacity: 1 !important; transform: none !important; }
}
