/* Shared Morandi-inspired identity pigments. Status and permission colors are separate. */
:root {
  --catalog-palette-ochre-base: #dec89a;
  --catalog-palette-ochre-ink: #352d1c;
  --catalog-palette-ochre-primary: #74591b;
  --catalog-palette-ochre-dark: #272114;
  --catalog-palette-ochre-light: #e8ddc6;
  --catalog-palette-blue-base: #b7cde8;
  --catalog-palette-blue-ink: #242f3d;
  --catalog-palette-blue-primary: #415f86;
  --catalog-palette-blue-dark: #1a222e;
  --catalog-palette-blue-light: #d4dfed;
  --catalog-palette-terracotta-base: #edbfab;
  --catalog-palette-terracotta-ink: #3b2921;
  --catalog-palette-terracotta-primary: #854d33;
  --catalog-palette-terracotta-dark: #2c1e18;
  --catalog-palette-terracotta-light: #f0d8ce;
  --catalog-palette-plum-base: #d8c2d9;
  --catalog-palette-plum-ink: #362936;
  --catalog-palette-plum-primary: #705172;
  --catalog-palette-plum-dark: #281e28;
  --catalog-palette-plum-light: #e5dae5;
  --catalog-palette-sage-base: #bbd1bf;
  --catalog-palette-sage-ink: #233226;
  --catalog-palette-sage-primary: #46674d;
  --catalog-palette-sage-dark: #19251b;
  --catalog-palette-sage-light: #d6e1d8;
  --catalog-palette-teal-base: #b2d1d9;
  --catalog-palette-teal-ink: #1b3237;
  --catalog-palette-teal-primary: #356671;
  --catalog-palette-teal-dark: #132529;
  --catalog-palette-teal-light: #d2e1e5;
  --catalog-palette-rose-base: #e6bfc4;
  --catalog-palette-rose-ink: #3b282a;
  --catalog-palette-rose-primary: #814c54;
  --catalog-palette-rose-dark: #2c1d1f;
  --catalog-palette-rose-light: #ecd8da;
  --catalog-palette-indigo-base: #c4c8e8;
  --catalog-palette-indigo-ink: #2b2c3d;
  --catalog-palette-indigo-primary: #565986;
  --catalog-palette-indigo-dark: #1f202e;
  --catalog-palette-indigo-light: #dbdded;
  --catalog-palette-sienna-base: #e4c4a6;
  --catalog-palette-sienna-ink: #382b1e;
  --catalog-palette-sienna-primary: #7e5324;
  --catalog-palette-sienna-dark: #2a1f15;
  --catalog-palette-sienna-light: #ebdbcc;
  --catalog-palette-fawn-base: #d4c8bd;
  --catalog-palette-fawn-ink: #352c23;
  --catalog-palette-fawn-primary: #6b5a4b;
  --catalog-palette-fawn-dark: #282018;
  --catalog-palette-fawn-light: #e3ddd7;
  --catalog-palette-lilac-base: #cfc6db;
  --catalog-palette-lilac-ink: #312a3a;
  --catalog-palette-lilac-primary: #645774;
  --catalog-palette-lilac-dark: #241f2b;
  --catalog-palette-lilac-light: #e0dce6;
  --catalog-palette-olive-base: #c9ceb1;
  --catalog-palette-olive-ink: #2d301e;
  --catalog-palette-olive-primary: #5c6237;
  --catalog-palette-olive-dark: #212315;
  --catalog-palette-olive-light: #dde0d1;
  --catalog-palette-sand-base: #d2cab9;
  --catalog-palette-sand-ink: #342d1f;
  --catalog-palette-sand-primary: #685c44;
  --catalog-palette-sand-dark: #272114;
  --catalog-palette-sand-light: #e2ded5;
  --catalog-palette-peach-base: #e3c4af;
  --catalog-palette-peach-ink: #3a2a1f;
  --catalog-palette-peach-primary: #7d5234;
  --catalog-palette-peach-dark: #2b1f16;
  --catalog-palette-peach-light: #eadbd0;
  --catalog-palette-slate-base: #c5cbd2;
  --catalog-palette-slate-ink: #2a2e34;
  --catalog-palette-slate-primary: #565e69;
  --catalog-palette-slate-dark: #1e2227;
  --catalog-palette-slate-light: #dbdee2;

  /* Generated text accents: pnpm --filter web-lab generate:swage-text-accents */
  --catalog-palette-ochre-text: #896b23;
  --catalog-palette-ochre-text-dark: #d1ac5b;
  --catalog-palette-blue-text: #2471c3;
  --catalog-palette-blue-text-dark: #8ab4e8;
  --catalog-palette-terracotta-text: #b45524;
  --catalog-palette-terracotta-text-dark: #ea9b78;
  --catalog-palette-plum-text: #ab3db4;
  --catalog-palette-plum-text-dark: #dd91e2;
  --catalog-palette-sage-text: #267f44;
  --catalog-palette-sage-text-dark: #66ca82;
  --catalog-palette-teal-text: #27798b;
  --catalog-palette-teal-text-dark: #63c0d6;
  --catalog-palette-rose-text: #ca2e5c;
  --catalog-palette-rose-text-dark: #ea95a3;
  --catalog-palette-indigo-text: #635de5;
  --catalog-palette-indigo-text-dark: #a5abe8;
  --catalog-palette-sienna-text: #9b6323;
  --catalog-palette-sienna-text-dark: #e5a15a;
  --catalog-palette-fawn-text: #99642a;
  --catalog-palette-fawn-text-dark: #d7a677;
  --catalog-palette-lilac-text: #914ad0;
  --catalog-palette-lilac-text-dark: #c19fe8;
  --catalog-palette-olive-text: #6d7623;
  --catalog-palette-olive-text-dark: #aeba5b;
  --catalog-palette-sand-text: #896b23;
  --catalog-palette-sand-text-dark: #cbad6d;
  --catalog-palette-peach-text: #a65e24;
  --catalog-palette-peach-text-dark: #ea9d65;
  --catalog-palette-slate-text: #4273a9;
  --catalog-palette-slate-text-dark: #8ab5e6;
  /* End generated text accents */
}

/* One identity binding shared by cards, billboards and generated pages. */
[data-pc='ochre'] {
  --identity-surface: var(--catalog-palette-ochre-base);
  --identity-ink: var(--catalog-palette-ochre-ink);
  --identity-primary: var(--catalog-palette-ochre-primary);
  --identity-text: var(--catalog-palette-ochre-text);
  --identity-text-dark: var(--catalog-palette-ochre-text-dark);
  --identity-dark: var(--catalog-palette-ochre-dark);
  --identity-light: var(--catalog-palette-ochre-light);
}
[data-collection-pc='ochre'] {
  --collection-palette-base: var(--catalog-palette-ochre-base);
}
[data-pc='blue'] {
  --identity-surface: var(--catalog-palette-blue-base);
  --identity-ink: var(--catalog-palette-blue-ink);
  --identity-primary: var(--catalog-palette-blue-primary);
  --identity-text: var(--catalog-palette-blue-text);
  --identity-text-dark: var(--catalog-palette-blue-text-dark);
  --identity-dark: var(--catalog-palette-blue-dark);
  --identity-light: var(--catalog-palette-blue-light);
}
[data-collection-pc='blue'] {
  --collection-palette-base: var(--catalog-palette-blue-base);
}
[data-pc='terracotta'] {
  --identity-surface: var(--catalog-palette-terracotta-base);
  --identity-ink: var(--catalog-palette-terracotta-ink);
  --identity-primary: var(--catalog-palette-terracotta-primary);
  --identity-text: var(--catalog-palette-terracotta-text);
  --identity-text-dark: var(--catalog-palette-terracotta-text-dark);
  --identity-dark: var(--catalog-palette-terracotta-dark);
  --identity-light: var(--catalog-palette-terracotta-light);
}
[data-collection-pc='terracotta'] {
  --collection-palette-base: var(--catalog-palette-terracotta-base);
}
[data-pc='plum'] {
  --identity-surface: var(--catalog-palette-plum-base);
  --identity-ink: var(--catalog-palette-plum-ink);
  --identity-primary: var(--catalog-palette-plum-primary);
  --identity-text: var(--catalog-palette-plum-text);
  --identity-text-dark: var(--catalog-palette-plum-text-dark);
  --identity-dark: var(--catalog-palette-plum-dark);
  --identity-light: var(--catalog-palette-plum-light);
}
[data-collection-pc='plum'] {
  --collection-palette-base: var(--catalog-palette-plum-base);
}
[data-pc='sage'] {
  --identity-surface: var(--catalog-palette-sage-base);
  --identity-ink: var(--catalog-palette-sage-ink);
  --identity-primary: var(--catalog-palette-sage-primary);
  --identity-text: var(--catalog-palette-sage-text);
  --identity-text-dark: var(--catalog-palette-sage-text-dark);
  --identity-dark: var(--catalog-palette-sage-dark);
  --identity-light: var(--catalog-palette-sage-light);
}
[data-collection-pc='sage'] {
  --collection-palette-base: var(--catalog-palette-sage-base);
}
[data-pc='teal'] {
  --identity-surface: var(--catalog-palette-teal-base);
  --identity-ink: var(--catalog-palette-teal-ink);
  --identity-primary: var(--catalog-palette-teal-primary);
  --identity-text: var(--catalog-palette-teal-text);
  --identity-text-dark: var(--catalog-palette-teal-text-dark);
  --identity-dark: var(--catalog-palette-teal-dark);
  --identity-light: var(--catalog-palette-teal-light);
}
[data-collection-pc='teal'] {
  --collection-palette-base: var(--catalog-palette-teal-base);
}
[data-pc='rose'] {
  --identity-surface: var(--catalog-palette-rose-base);
  --identity-ink: var(--catalog-palette-rose-ink);
  --identity-primary: var(--catalog-palette-rose-primary);
  --identity-text: var(--catalog-palette-rose-text);
  --identity-text-dark: var(--catalog-palette-rose-text-dark);
  --identity-dark: var(--catalog-palette-rose-dark);
  --identity-light: var(--catalog-palette-rose-light);
}
[data-collection-pc='rose'] {
  --collection-palette-base: var(--catalog-palette-rose-base);
}
[data-pc='indigo'] {
  --identity-surface: var(--catalog-palette-indigo-base);
  --identity-ink: var(--catalog-palette-indigo-ink);
  --identity-primary: var(--catalog-palette-indigo-primary);
  --identity-text: var(--catalog-palette-indigo-text);
  --identity-text-dark: var(--catalog-palette-indigo-text-dark);
  --identity-dark: var(--catalog-palette-indigo-dark);
  --identity-light: var(--catalog-palette-indigo-light);
}
[data-collection-pc='indigo'] {
  --collection-palette-base: var(--catalog-palette-indigo-base);
}
[data-pc='sienna'] {
  --identity-surface: var(--catalog-palette-sienna-base);
  --identity-ink: var(--catalog-palette-sienna-ink);
  --identity-primary: var(--catalog-palette-sienna-primary);
  --identity-text: var(--catalog-palette-sienna-text);
  --identity-text-dark: var(--catalog-palette-sienna-text-dark);
  --identity-dark: var(--catalog-palette-sienna-dark);
  --identity-light: var(--catalog-palette-sienna-light);
}
[data-collection-pc='sienna'] {
  --collection-palette-base: var(--catalog-palette-sienna-base);
}
[data-pc='fawn'] {
  --identity-surface: var(--catalog-palette-fawn-base);
  --identity-ink: var(--catalog-palette-fawn-ink);
  --identity-primary: var(--catalog-palette-fawn-primary);
  --identity-text: var(--catalog-palette-fawn-text);
  --identity-text-dark: var(--catalog-palette-fawn-text-dark);
  --identity-dark: var(--catalog-palette-fawn-dark);
  --identity-light: var(--catalog-palette-fawn-light);
}
[data-collection-pc='fawn'] {
  --collection-palette-base: var(--catalog-palette-fawn-base);
}
[data-pc='lilac'] {
  --identity-surface: var(--catalog-palette-lilac-base);
  --identity-ink: var(--catalog-palette-lilac-ink);
  --identity-primary: var(--catalog-palette-lilac-primary);
  --identity-text: var(--catalog-palette-lilac-text);
  --identity-text-dark: var(--catalog-palette-lilac-text-dark);
  --identity-dark: var(--catalog-palette-lilac-dark);
  --identity-light: var(--catalog-palette-lilac-light);
}
[data-collection-pc='lilac'] {
  --collection-palette-base: var(--catalog-palette-lilac-base);
}
[data-pc='olive'] {
  --identity-surface: var(--catalog-palette-olive-base);
  --identity-ink: var(--catalog-palette-olive-ink);
  --identity-primary: var(--catalog-palette-olive-primary);
  --identity-text: var(--catalog-palette-olive-text);
  --identity-text-dark: var(--catalog-palette-olive-text-dark);
  --identity-dark: var(--catalog-palette-olive-dark);
  --identity-light: var(--catalog-palette-olive-light);
}
[data-collection-pc='olive'] {
  --collection-palette-base: var(--catalog-palette-olive-base);
}
[data-pc='sand'] {
  --identity-surface: var(--catalog-palette-sand-base);
  --identity-ink: var(--catalog-palette-sand-ink);
  --identity-primary: var(--catalog-palette-sand-primary);
  --identity-text: var(--catalog-palette-sand-text);
  --identity-text-dark: var(--catalog-palette-sand-text-dark);
  --identity-dark: var(--catalog-palette-sand-dark);
  --identity-light: var(--catalog-palette-sand-light);
}
[data-collection-pc='sand'] {
  --collection-palette-base: var(--catalog-palette-sand-base);
}
[data-pc='peach'] {
  --identity-surface: var(--catalog-palette-peach-base);
  --identity-ink: var(--catalog-palette-peach-ink);
  --identity-primary: var(--catalog-palette-peach-primary);
  --identity-text: var(--catalog-palette-peach-text);
  --identity-text-dark: var(--catalog-palette-peach-text-dark);
  --identity-dark: var(--catalog-palette-peach-dark);
  --identity-light: var(--catalog-palette-peach-light);
}
[data-collection-pc='peach'] {
  --collection-palette-base: var(--catalog-palette-peach-base);
}
[data-pc='slate'] {
  --identity-surface: var(--catalog-palette-slate-base);
  --identity-ink: var(--catalog-palette-slate-ink);
  --identity-primary: var(--catalog-palette-slate-primary);
  --identity-text: var(--catalog-palette-slate-text);
  --identity-text-dark: var(--catalog-palette-slate-text-dark);
  --identity-dark: var(--catalog-palette-slate-dark);
  --identity-light: var(--catalog-palette-slate-light);
}
[data-collection-pc='slate'] {
  --collection-palette-base: var(--catalog-palette-slate-base);
}

/* Netflix-style homepage. Generated from the design mockup; every selector is scoped under .nx (preview panel excepted). */
.nx,
#preview {
  --paper: #fbfaf7;
  --white: #fff;
  --ink: #121213;
  --ink-2: #5c5e64;
  --ink-3: #9b9da3;
  --line: #e6e5e0;
  --red: #c8102e;
  --red-deep: #9e1b1b;
  --red-tint: #fdeef0;
  --dark: #15161a;
  --dark-2: #23242b;
  --display: 'Clash Grotesk', system-ui, sans-serif;
  --body: 'Supreme', system-ui, sans-serif;
  --mono: 'Geist Mono', ui-monospace, Menlo, monospace;
  --ease-spring: cubic-bezier(0.16, 1.24, 0.32, 1);
  --ease-signature: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-standard: cubic-bezier(0.2, 0, 0, 1);
}
/* Catalog identity stays fixed; its material follows the shared Tacet theme. */
.nx[data-home-catalog-stream],
.nx[data-home-catalog-stream] #preview {
  --paper: var(--site-main-seam-surface, var(--background));
  --white: var(--card);
  --ink: var(--foreground);
  --ink-2: var(--muted-foreground);
  --ink-3: var(--muted-foreground);
  --line: var(--border);
}
html.dark .nx[data-home-catalog-stream],
html.dark .nx[data-home-catalog-stream] #preview {
  --ink-2: color-mix(in srgb, var(--foreground) 70%, var(--background));
  --ink-3: var(--ink-2);
}
.nx .card,
.nx .inter,
#preview {
  --pc: var(--category-base);
  --pi: var(--category-deep);
}
html.dark .nx[data-home-catalog-stream] :is(.card, .inter, #preview) {
  --pc: var(--identity-dark, var(--catalog-palette-slate-dark));
  --pi: var(--identity-light, var(--catalog-palette-slate-light));
}
.nx * {
  box-sizing: border-box;
}
.nx {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--body);
  font-size: 16px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  position: static;
  overflow-x: clip;
}
.nx a {
  color: inherit;
  text-decoration: none;
}
.nx a:focus-visible,
.nx button:focus-visible,
.nx input:focus-visible {
  outline: 3px solid var(--ring);
  outline-offset: 3px;
}
.nx button,
.nx input {
  font: inherit;
  color: inherit;
}
.nx h1,
.nx h2,
.nx h3 {
  margin: 0;
  font-family: var(--display);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1;
}
.nx p {
  margin: 0;
}
.nx .k {
  font-family: var(--mono);
  font-size: 11.5px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.nx .pad {
  padding-left: max(32px, calc((100vw - 1720px) / 2));
  padding-right: max(32px, calc((100vw - 1720px) / 2));
}
.nx .btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  height: 48px;
  padding: 0 20px;
  font-family: var(--display);
  font-weight: 600;
  font-size: 16px;
  letter-spacing: -0.01em;
  white-space: nowrap;
  border: 1.5px solid var(--ink);
  background: var(--ink);
  color: #fff;
  transition:
    transform 120ms ease,
    background 120ms ease;
}
.nx .btn:hover {
  transform: translateY(-1px);
}
.nx .btn.red {
  background: var(--red);
  border-color: var(--red);
}
.nx .btn.red:hover {
  background: var(--red-deep);
}
.nx .btn.ghost {
  background: transparent;
  color: var(--ink);
}
.nx .btn.ghost:hover {
  background: #fff;
}
.nx .btn.sm {
  height: 38px;
  padding: 0 14px;
  font-size: 14px;
}
.nx /* ---------- nav: floating pill, .nx like erp.ai ---------- */
  .navwrap {
  position: relative;
  z-index: 20;
  padding: 14px 0 0;
}
.nx .nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  height: 64px;
  margin: 0 auto;
  width: min(1300px, calc(100% - 48px));
  padding: 0 22px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: linear-gradient(
    90deg,
    #fbfaf7 0%,
    #f3eefb 28%,
    #fbeef1 52%,
    #fbf6ec 78%,
    #fbfaf7 100%
  );
  box-shadow: 0 10px 30px -22px rgb(0, 0, 0, 0.35);
}
.nx .wordmark {
  height: 24px;
  display: block;
}
.nx .wordmark svg {
  height: 100%;
  width: auto;
  display: block;
}
.nx .nav .links {
  display: flex;
  gap: 26px;
  font-size: 15.5px;
  font-weight: 600;
  color: var(--ink);
}
.nx .nav .links a:hover {
  color: var(--red);
}
.nx .nav .right {
  display: flex;
  align-items: center;
  gap: 16px;
  font-size: 15px;
  font-weight: 500;
}
.nx .nav .right .btn {
  background: #fff;
  color: var(--ink);
  border-color: var(--line);
  border-radius: 10px;
  height: 40px;
}
@media (max-width: 960px) {
  .nx .nav .links {
    display: none;
  }
}
.nx /* live plates replace the two info boxes */
  .plate {
  margin-top: 30px;
  width: 100%;
  border: 1px solid var(--line);
  background: #fff;
  border-radius: 10px;
  padding: 16px 18px;
  text-align: left;
  display: grid;
  gap: 10px;
  box-shadow: 0 16px 40px -30px rgb(0, 0, 0, 0.35);
}
.nx .plate .ph {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 12px;
  font-size: 13.5px;
}
.nx .plate .ph .proto-section-eyebrow__name {
  font-family: var(--display);
  font-weight: 600;
  font-size: 15px;
}
.nx .plate .ph > span {
  font-family: var(--mono);
  font-size: 11px;
  color: var(--ink-3);
}
.nx .plate svg {
  width: 100%;
  height: auto;
  display: block;
}
.nx .plate .lead {
  font-size: 13.5px;
  color: var(--ink-2);
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
}
.nx .plate .lead b {
  color: var(--ink);
  font-weight: 600;
}
.nx .plate .lead em {
  font-style: normal;
  color: var(--red);
  font-family: var(--mono);
  font-size: 11.5px;
}
.nx .plate .lead :is(a, .skills-copy-btn) {
  color: var(--ink);
  border-bottom: 1px solid var(--red);
}
.nx .circuit .path {
  fill: none;
  stroke: #e6e5e0;
  stroke-width: 2;
}
.nx .circuit .pulse {
  fill: none;
  stroke: var(--red);
  stroke-width: 2.5;
  stroke-linecap: round;
  stroke-dasharray: 60 900;
  stroke-dashoffset: 960;
  filter: drop-shadow(0 0 4px rgb(200, 16, 46, 0.7));
  animation: run 6s linear infinite;
}
.nx .circuit.agent .pulse {
  stroke: #b0401a;
  filter: drop-shadow(0 0 4px rgb(176, 64, 26, 0.7));
}
@keyframes run {
  to {
    stroke-dashoffset: 0;
  }
}
.nx .circuit .node {
  fill: #fff;
  stroke: var(--ink);
  stroke-width: 1.5;
}
.nx .circuit .node.gate {
  fill: var(--red);
  stroke: var(--red);
}
.nx .circuit .lbl {
  font-family: var(--body);
  font-size: 11.5px;
  fill: var(--ink);
  font-weight: 600;
}
.nx .circuit .lbl2 {
  font-family: var(--mono);
  font-size: 9.5px;
  fill: var(--ink-3);
}
.nx .circuit .callout {
  font-family: var(--mono);
  font-size: 9.5px;
  fill: var(--red);
}
.nx .circuit .box {
  fill: #fbfaf7;
  stroke: #e6e5e0;
}
.nx .circuit .ok {
  fill: #1d6b3a;
}
.nx .circuit .lit {
  animation: lit 6s linear infinite;
}
@keyframes lit {
  0%,
  100% {
    opacity: 0.35;
  }
  50% {
    opacity: 1;
  }
}
.nx .tile {
  width: 264px;
  height: 166px;
  overflow: hidden;
  border: 1px solid var(--line);
  background: #fff;
  box-shadow: 0 12px 28px -14px rgb(0, 0, 0, 0.35);
  position: relative;
  flex: none;
}
.nx .tile img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: left top;
  display: block;
}
.nx .tile b {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 22px 10px 8px;
  font-family: var(--display);
  font-weight: 600;
  font-size: 13px;
  color: #fff;
  background: linear-gradient(to top, rgb(0, 0, 0, 0.72), transparent);
}
@keyframes drift {
  from {
    transform: translateX(0);
  }
  to {
    transform: translateX(-50%);
  }
}
.nx /* ---------- process plates: composed from the app's components, .nx animated as a circuit ---------- */
  .plates {
  padding-top: 40px;
}
.nx .plates .track {
  gap: 18px;
}
.nx .plates .plate-canvas {
  flex: none;
  width: min(1180px, calc(100% - 72px));
  scroll-snap-align: start;
}
@media (max-width: 900px) {
  .nx .plates .track {
    flex-direction: column;
    overflow: visible;
    scroll-snap-type: none;
    gap: 16px;
  }
  .nx .plates .plate-canvas {
    width: 100%;
  }
}
.nx .plates .arrow {
  bottom: 40px;
}
.nx .plate-canvas {
  position: relative;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fbfaf7;
  overflow: hidden;
  box-shadow: 0 30px 80px -40px rgb(0, 0, 0, 0.35);
  font-family: var(--body);
  color: var(--ink);
}
.nx .pc-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 12px 20px;
  border-bottom: 1px solid var(--line);
  background: #fff;
  font-size: 13px;
}
.nx .pc-bar .crumb {
  display: flex;
  align-items: center;
  gap: 8px;
}
.nx .pc-bar .crumb i {
  width: 26px;
  height: 26px;
  border-radius: 6px;
  background: var(--red);
  color: #fff;
  font-family: var(--mono);
  font-size: 9px;
  display: inline-grid;
  place-items: center;
}
.nx .pc-bar .crumb b {
  font-family: var(--display);
  font-weight: 600;
  font-size: 14px;
}
.nx .pc-bar .crumb span {
  color: var(--ink-3);
}
.nx .pc-bar .meta {
  font-family: var(--mono);
  font-size: 11px;
  color: var(--ink-2);
  display: flex;
  gap: 14px;
}
.nx .pc-bar .meta em {
  font-style: normal;
  color: var(--ink);
}
.nx .pc-body {
  position: relative;
  padding: 46px 28px 26px;
}
.nx .pc-title {
  position: absolute;
  left: 28px;
  top: 14px;
  font-family: var(--display);
  font-weight: 600;
  font-size: 15px;
}
.nx .pc-title span {
  font-family: var(--mono);
  font-weight: 400;
  font-size: 11px;
  color: var(--ink-3);
  margin-left: 10px;
}
.nx .stages {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 44px;
  position: relative;
  z-index: 2;
}
.nx .rec {
  position: relative;
  z-index: 2;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 12px 12px 10px;
  font-size: 12px;
  transition:
    box-shadow 400ms var(--ease-standard),
    border-color 400ms var(--ease-standard),
    transform 480ms var(--ease-spring);
}
.nx .rec .h {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 8px;
  margin-bottom: 8px;
}
.nx .rec .h b {
  font-family: var(--display);
  font-weight: 600;
  font-size: 13.5px;
}
.nx .rec .h code {
  font-family: var(--mono);
  font-size: 10px;
  color: var(--ink-3);
}
.nx .rec .f {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  padding: 4px 0;
  border-top: 1px solid #f0efe9;
  color: var(--ink-2);
}
.nx .rec .f b {
  color: var(--ink);
  font-weight: 500;
  font-family: var(--mono);
  font-size: 11px;
}
.nx .rec .s {
  display: inline-block;
  margin-top: 8px;
  font-size: 10.5px;
  font-weight: 600;
  padding: 3px 8px;
  border-radius: 999px;
  background: #f3f2ee;
  color: var(--ink-2);
}
.nx .rec .s.ok {
  background: #eaf7ee;
  color: #1d6b3a;
}
.nx .rec .s.gate {
  background: #fdeef0;
  color: var(--red);
}
.nx .rec .s.wait {
  background: #fff6e0;
  color: #8a5a00;
}
.nx .rec.lit {
  border-color: var(--red);
  box-shadow:
    0 0 0 3px rgb(200, 16, 46, 0.12),
    0 18px 40px -22px rgb(200, 16, 46, 0.5);
  transform: translateY(-3px);
}
.nx .rec.gate-card {
  border-color: #f7d6da;
}
.nx .wire {
  position: absolute;
  left: 0;
  right: 0;
  top: 50%;
  height: 12px;
  transform: translateY(-50%);
  z-index: 1;
  pointer-events: none;
  overflow: visible;
}
.nx .wire .base {
  fill: none;
  stroke: #e6e5e0;
  stroke-width: 2;
}
.nx .wire .run {
  fill: none;
  stroke: var(--red);
  stroke-width: 2.5;
  stroke-linecap: round;
  filter: drop-shadow(0 0 5px rgb(200, 16, 46, 0.75));
}
.nx .wire .gate {
  fill: var(--red);
}
.nx .wire .dot {
  fill: #fff;
  stroke: var(--ink);
  stroke-width: 1.5;
}
.nx .callouts {
  position: relative;
  z-index: 3;
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 44px;
  margin-top: 18px;
}
.nx .co {
  font-family: var(--mono);
  font-size: 11px;
  line-height: 1.5;
  color: var(--ink);
  background: #fff;
  border: 1px solid var(--ink);
  border-radius: 6px;
  padding: 8px 10px;
  position: relative;
  opacity: 0;
  transform: translateY(6px);
  transition:
    opacity 420ms var(--ease-signature),
    transform 520ms var(--ease-signature);
}
.nx .co::before {
  content: '';
  position: absolute;
  left: 18px;
  top: -9px;
  width: 1px;
  height: 9px;
  background: var(--ink);
}
.nx .co b {
  color: var(--red);
  font-weight: 500;
}
.nx .co.key {
  border-color: var(--red);
}
.nx .co.show {
  opacity: 1;
  transform: none;
}
.nx .pc-foot {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-top: 18px;
  padding-top: 14px;
  border-top: 1px solid var(--line);
}
.nx .pc-foot em {
  font-style: normal;
  font-size: 11.5px;
  padding: 5px 9px;
  border-radius: 4px;
  background: #f3f2ee;
}
.nx .pc-foot em.c {
  background: #fdeef0;
  color: #9e1b1b;
}
.nx .pc-foot em.p {
  background: #eaf7ee;
  color: #1d6b3a;
}
.nx .pc-foot em.d {
  background: #eef3ff;
  color: #2b4bb5;
}
.nx .pc-foot em.l {
  background: #fff6e0;
  color: #8a5a00;
}
@media (max-width: 900px) {
  .nx .stages {
    grid-template-columns: 1fr;
    gap: 12px;
  }
  .nx .callouts {
    display: none;
  }
  .nx .wire {
    display: none;
  }
  .nx .pc-body {
    padding: 44px 16px 20px;
  }
  .nx .pc-title {
    left: 16px;
  }
  .nx .rec .co {
    display: block;
    opacity: 1;
    transform: none;
    margin-top: 10px;
    border-radius: 6px;
  }
  .nx .rec .co::before {
    display: none;
  }
  .nx .rec.lit {
    transform: none;
  }
}
.nx /* the live app under the headline */
  .stage {
  position: relative;
  padding: 0;
  margin-top: -1px;
  padding-top: 28px;
  background: #fff;
}
.nx .stage .frame {
  position: relative;
  margin: 0 auto;
  max-width: 1480px;
  border: 1px solid var(--line);
  border-bottom: 0;
  border-radius: 12px 12px 0 0;
  overflow: hidden;
  background: #fff;
  box-shadow:
    0 -20px 60px -30px rgb(0, 0, 0, 0.25),
    0 30px 80px -40px rgb(0, 0, 0, 0.35);
}
.nx .stage .frame .bar {
  display: flex;
  align-items: center;
  gap: 10px;
  height: 40px;
  padding: 0 14px;
  border-bottom: 1px solid var(--line);
  background: #f6f5f2;
  font-family: var(--mono);
  font-size: 11.5px;
  color: var(--ink-2);
}
.nx .stage .frame .bar i {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #d9d8d3;
  display: inline-block;
}
.nx .stage .frame .bar .url {
  margin-left: 10px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 4px 10px;
  flex: 1;
  max-width: 520px;
}
.nx .stage .frame img {
  display: block;
  width: 100%;
  height: auto;
}
.nx .stage .tag {
  position: absolute;
  left: 24px;
  top: 64px;
  display: flex;
  gap: 10px;
  align-items: center;
  background: var(--ink);
  color: #fff;
  padding: 10px 14px;
  border-radius: 8px;
  font-size: 14px;
  box-shadow: 0 10px 30px -10px rgb(0, 0, 0, 0.5);
}
.nx .stage .tag b {
  font-family: var(--display);
  font-weight: 600;
}
.nx .stage .tag em {
  font-style: normal;
  font-family: var(--mono);
  font-size: 11px;
  color: #9ee8b5;
}
.nx .stage .start {
  position: absolute;
  right: 24px;
  top: 58px;
}
.nx /* strip */
  .strip {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  border-bottom: 1px solid var(--line);
  background: var(--paper);
}
@media (max-width: 900px) {
  .nx .strip {
    grid-template-columns: 1fr;
  }
}
.nx .strip div {
  padding: 18px 0;
  font-size: 15.5px;
  display: flex;
  gap: 12px;
  align-items: center;
  flex-wrap: wrap;
}
.nx .strip div:first-child {
  justify-content: flex-end;
  padding-right: 40px;
  border-right: 1px solid var(--line);
}
.nx .strip div:last-child {
  padding-left: 40px;
}
@media (max-width: 900px) {
  .nx .strip div:first-child {
    justify-content: flex-start;
    padding-right: 0;
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }
  .nx .strip div:last-child {
    padding-left: 0;
  }
}
.nx .strip b {
  font-family: var(--display);
  font-weight: 600;
}
.nx .strip .arr {
  color: var(--red);
}
.nx .strip code {
  font-family: var(--mono);
  font-size: 12.5px;
  background: #fff;
  border: 1px solid var(--line);
  padding: 3px 8px;
}
.nx /* ---------- search ---------- */
  .search {
  gap: 14px;
  align-items: center;
  flex-wrap: wrap;
  display: block;
  padding-top: var(--space-12);
  padding-bottom: 0;
  position: relative;
  z-index: 4;
  background: var(--background);
}
.nx .search form {
  flex: 1 1 520px;
  display: flex;
  width: 100%;
  max-width: 1120px;
  min-width: 0;
  height: 88px;
  margin-inline: auto;
  align-items: center;
  gap: var(--space-4);
  padding: var(--space-3) var(--space-3) var(--space-3) var(--space-6);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: var(--background);
  box-shadow: var(--tacet-shadow-sm);
  transition:
    border-color 200ms,
    box-shadow 250ms;
}
.nx .search input {
  flex: 1;
  min-width: 0;
  border: 0;
  background: transparent;
  height: 100%;
  padding: 0;
  color: var(--foreground);
  font: 400 clamp(16px, 1.65vw, 23px)/1.4 var(--font-body);
  caret-color: var(--org-on-light);
}
.nx .search input::placeholder {
  color: var(--ink-2);
  opacity: 1;
}
.nx .search button {
  border: 0;
  background: var(--ink);
  color: #fff;
  padding: 0 20px;
  font-family: var(--display);
  font-weight: 600;
  cursor: pointer;
}
.nx .search .chips {
  gap: 8px;
  flex-wrap: wrap;
  display: block;
  min-width: 0;
  overflow: hidden;
  flex: 1;
  mask-image: linear-gradient(90deg, transparent, #000 32px, #000 calc(100% - 32px), transparent);
  scrollbar-width: none;
}
.nx .search .chips a {
  --category-label: var(--category-ink, var(--foreground));
  font-size: 13.5px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  white-space: nowrap;
  border: 1px solid color-mix(in oklch, var(--category-label, var(--foreground)), transparent 90%);
  border-radius: 999px;
  min-height: 44px;
  padding: var(--space-2) var(--space-4);
  background: color-mix(in oklch, var(--category-color, var(--background)), var(--background) 48%);
  color: var(--category-label, var(--foreground));
  transition:
    background-color 180ms,
    border-color 180ms;
}
.nx .search .chips a:hover {
  background: var(--category-color);
  border-color: color-mix(in oklch, var(--category-label), transparent 55%);
  color: var(--category-label);
}
html.dark .nx .search .chips a {
  --category-label: var(--foreground);
  background: color-mix(in srgb, var(--category-color, var(--background)) 20%, var(--background));
}
html.dark .nx .search .chips a:hover {
  background: var(--category-color);
  color: var(--category-ink, var(--foreground));
}
.nx /* ---------- rows ---------- */
  .row-sec {
  padding-top: 36px;
}
.nx .row-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 14px;
}
.nx .row-head h2 {
  font-size: 26px;
  letter-spacing: -0.015em;
  display: flex;
  align-items: baseline;
  gap: 12px;
}
.nx .row-head h2 small {
  font-family: var(--mono);
  font-size: 12px;
  color: var(--ink-3);
  letter-spacing: 0.04em;
}
.nx .row-head h2 .live {
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: 0.1em;
  color: var(--red);
  border: 1px solid var(--red);
  padding: 2px 6px;
}
.nx .row-head a {
  font-size: 14px;
  color: var(--ink-2);
  border-bottom: 1px solid var(--line);
}
.nx .row-head a:hover {
  color: var(--ink);
  border-color: var(--ink);
}
.nx .track {
  display: flex;
  gap: 14px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  padding: 12px 0 28px;
  margin: -12px 0 0;
  scrollbar-width: none;
}
.nx .track::-webkit-scrollbar {
  display: none;
}
.nx /* system card: pastel ground with an ink outline, .nx title in the ink of its hue, .nx photo tuned to the ground, .nx tags in a paler wash */
  .card {
  --category-base: var(--identity-surface, var(--catalog-palette-slate-base));
  --category-deep: var(--identity-ink, var(--catalog-palette-slate-ink));
  flex: none;
  width: 300px;
  scroll-snap-align: start;
  position: relative;
  display: flex;
  flex-direction: column;
  isolation: isolate;
  overflow: hidden;
  border: 1px solid color-mix(in srgb, var(--pi) 22%, var(--pc));
  border-radius: 17px;
  color: var(--pi);
  background: var(--pc);
  transform-origin: 50% 60%;
  transition:
    transform 480ms var(--ease-spring),
    box-shadow 420ms var(--ease-standard),
    opacity 400ms var(--ease-standard),
    border-color 200ms;
  padding-bottom: 14px;
}
.nx .card:hover,
.nx .card.on {
  z-index: 2;
  transform: none;
  box-shadow: none;
  border-color: var(--pi);
}
.nx .track.dim .card:not(.on) {
  opacity: 0.6;
}
.nx .card .phead {
  position: relative;
  padding: 16px 18px 0;
  min-height: 150px;
}
.nx .card .top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
  min-height: 24px;
  margin-bottom: 10px;
}
.nx .card .pcat {
  margin-left: auto;
  padding: 4px 8px;
  border-radius: 20px;
  background: color-mix(in srgb, var(--pi) 8%, transparent);
  font-size: 12px;
  line-height: 1.2;
  font-weight: 550;
  white-space: nowrap;
}
.nx .card .prank {
  padding: 4px 8px;
  border-radius: 20px;
  background: color-mix(in srgb, var(--pi) 8%, transparent);
  font-family: var(--mono);
  font-size: 11px;
}
.nx .card h3 {
  margin: 0;
  font-family: var(--display);
  font-size: 22px;
  line-height: 1.1;
  letter-spacing: -0.02em;
  font-weight: 650;
  color: var(--pi);
  text-wrap: balance;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
  overflow: hidden;
  min-height: 3.3em;
}
.nx .card .ptag {
  font-size: 14px;
  line-height: 1.4;
  color: var(--pi);
  opacity: 0.8;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  overflow: hidden;
  margin-top: 8px;
  -webkit-line-clamp: 2;
  text-wrap: wrap;
}
.nx .card .pphoto-wrap {
  position: relative;
  flex: none;
  margin: 10px 24px 0;
  height: 190px;
  border-radius: 8px;
  overflow: hidden;
}
.nx .card .pphoto {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 35%;
  transition: transform 900ms var(--ease-signature);
  filter: saturate(0.95) contrast(1.03);
}
.nx .card .pphoto-wrap::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 1;
  background: var(--pc);
  mix-blend-mode: multiply;
  opacity: 0.5;
}
.nx .card .pphoto-wrap::after {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 2;
  background: linear-gradient(
    to bottom,
    var(--pc) 0%,
    transparent 38%,
    transparent 84%,
    color-mix(in srgb, var(--pc) 55%, transparent) 100%
  );
}
.nx .card:hover .pphoto,
.nx .card.on .pphoto {
  transform: scale(1.04);
}
.nx .card .ctags {
  flex-wrap: wrap;
  align-content: flex-start;
  list-style: none;
  background: color-mix(in srgb, var(--pc) 45%, var(--white));
  -webkit-box-orient: vertical;
  margin: 0;
  font-size: 13.5px;
  color: var(--pi);
  opacity: 0.88;
  gap: 0;
  display: block;
  -webkit-line-clamp: unset;
  height: 52px;
  min-height: 0;
  padding: 12px 24px 0;
  line-height: 1.45;
  overflow: hidden;
}
.nx .card .ctags li {
  border: 1px solid color-mix(in srgb, var(--pi) 18%, transparent);
  border-radius: 4px;
  background: color-mix(in srgb, var(--white) 70%, transparent);
  color: var(--pi);
  display: inline;
  padding: 0;
  font-size: inherit;
  line-height: inherit;
  font-weight: 450;
  white-space: normal;
}
.nx .card .ctags li.n {
  background: transparent;
  opacity: 0.7;
  border: 0;
}
.nx .card .pcap,
.nx .card .cover,
.nx .card .meta {
  display: none;
}
.nx /* floating preview: the full study card, .nx opened from the compact card's rectangle */
  #preview {
  --tone: #344646;
  --wash: #f2f5f3;
  --category-base: var(--identity-surface, var(--catalog-palette-slate-base));
  --category-deep: var(--identity-ink, var(--catalog-palette-slate-ink));
  position: absolute;
  z-index: 50;
  width: min(470px, calc(100vw - 24px));
  background: var(--white);
  border: 1px solid var(--tone);
  border-radius: 10px;
  box-shadow: 0 40px 80px -30px rgb(0, 0, 0, 0.45);
  overflow: hidden;
  display: none;
  transform-origin: 0 0;
  will-change: transform, opacity;
}
#preview[data-fam='crm'] {
  --tone: #28545a;
  --wash: #eff5f5;
}
#preview[data-fam='hrms'] {
  --tone: #8b3049;
  --wash: #fbf2f4;
}
#preview[data-fam='inventory'] {
  --tone: #396044;
  --wash: #f1f6f0;
}
#preview[data-fam='mrp'] {
  --tone: #7b5036;
  --wash: #f7f3ec;
}
#preview[data-fam='finance'] {
  --tone: #57416e;
  --wash: #f5f2f8;
}
#preview.show {
  display: block;
}
#preview.anim {
  transition:
    transform 460ms var(--ease-spring),
    opacity 220ms var(--ease-standard);
}
#preview.closing {
  transition:
    transform 220ms var(--ease-standard),
    opacity 180ms var(--ease-standard);
}
#preview {
  border-color: color-mix(in srgb, var(--pi) 28%, var(--white));
}
#preview .cover {
  position: relative;
  isolation: isolate;
  background: var(--pc);
  color: var(--pi);
  padding: 22px 22px 18px;
  min-height: 0;
  overflow: hidden;
}
#preview .cover .pcat {
  display: inline-block;
  margin-bottom: 12px;
  padding: 4px 8px;
  border-radius: 20px;
  background: color-mix(in srgb, var(--pi) 8%, transparent);
  font-size: 12px;
  font-weight: 550;
}
#preview .cover h3 {
  font-family: var(--body);
  font-weight: 700;
  letter-spacing: -0.025em;
  line-height: 1.08;
  color: var(--pi);
  text-shadow: none;
  font-size: 25px;
}
#preview .cover .sum {
  font-size: 16px;
  line-height: 1.45;
  color: var(--pi);
  opacity: 0.85;
  -webkit-line-clamp: 3;
  margin-top: 10px;
}
#preview .scope-item {
  position: relative;
  padding: 11px 0;
  font-size: 16px;
  line-height: 1.3;
  font-weight: 600;
  color: var(--pi);
  letter-spacing: -0.01em;
  border-bottom: 1px solid var(--line);
}
#preview .capability-tags li {
  color: var(--pi);
  background: color-mix(in srgb, var(--pc) 32%, var(--white));
  border: 1px solid color-mix(in srgb, var(--pc) 75%, var(--white));
  font-size: 14px;
  padding: 5px 9px;
}
#preview .acts .btn.red {
  color: var(--paper);
  background: var(--pi);
  border-color: var(--pi);
}
#preview .in {
  padding: 0;
}
#preview .scope-body {
  padding: 12px 22px 2px;
}
#preview .scope-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0 18px;
  list-style: none;
  padding: 0;
  margin: 0;
}
#preview .card-capabilities {
  padding: 13px 22px 8px;
}
#preview .capability-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  list-style: none;
  margin: 0;
  padding: 0;
}
#preview .in > * {
  opacity: 0;
  transform: translateY(10px);
  transition:
    opacity 420ms var(--ease-signature),
    transform 520ms var(--ease-signature);
}
#preview.ready .in > * {
  opacity: 1;
  transform: none;
}
#preview.ready .in > *:nth-child(1) {
  transition-delay: 80ms;
}
#preview.ready .in > *:nth-child(2) {
  transition-delay: 140ms;
}
#preview.ready .in > *:nth-child(3) {
  transition-delay: 200ms;
}
#preview .tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  padding: 12px 22px 4px;
}
#preview .tags a {
  font-size: 13px;
  padding: 5px 9px;
  border: 1px solid transparent;
  transition:
    background 160ms var(--ease-standard),
    color 160ms var(--ease-standard),
    transform 320ms var(--ease-spring);
}
#preview .tags a:hover {
  transform: translateY(-2px);
}
#preview .tags a.k-data,
.nx .ctags .k-data {
  --tag-fill: #eef3ff;
  --tag-ink: #2b4bb5;
  --tag-border: #dbe4ff;
  background: var(--tag-fill);
  color: var(--tag-ink);
  border-color: var(--tag-border);
}
#preview .tags a.k-proc,
.nx .ctags .k-proc {
  --tag-fill: #eaf7ee;
  --tag-ink: #1d6b3a;
  --tag-border: #d3ecdb;
  background: var(--tag-fill);
  color: var(--tag-ink);
  border-color: var(--tag-border);
}
#preview .tags a.k-ctrl,
.nx .ctags .k-ctrl {
  --tag-fill: #fdeef0;
  --tag-ink: #9e1b1b;
  --tag-border: #f7d6da;
  background: var(--tag-fill);
  color: var(--tag-ink);
  border-color: var(--tag-border);
}
#preview .tags a.k-plan,
.nx .ctags .k-plan {
  --tag-fill: #fff6e0;
  --tag-ink: #8a5a00;
  --tag-border: #f5e6bd;
  background: var(--tag-fill);
  color: var(--tag-ink);
  border-color: var(--tag-border);
}
#preview .tags a.k-conn,
.nx .ctags .k-conn {
  --tag-fill: #f1ecfb;
  --tag-ink: #5b3fb0;
  --tag-border: #e3daf5;
  background: var(--tag-fill);
  color: var(--tag-ink);
  border-color: var(--tag-border);
}
#preview .tags a.k-data:hover {
  background: #2b4bb5;
  border-color: #2b4bb5;
  color: #fff;
}
#preview .tags a.k-proc:hover {
  background: #1d6b3a;
  border-color: #1d6b3a;
  color: #fff;
}
#preview .tags a.k-ctrl:hover {
  background: #9e1b1b;
  border-color: #9e1b1b;
  color: #fff;
}
#preview .tags a.k-plan:hover {
  background: #8a5a00;
  border-color: #8a5a00;
  color: #fff;
}
#preview .tags a.k-conn:hover {
  background: #5b3fb0;
  border-color: #5b3fb0;
  color: #fff;
}
#preview .legend {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  padding: 8px 22px 0;
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--ink-3);
}
#preview .legend i {
  display: inline-block;
  width: 8px;
  height: 8px;
  border-radius: 2px;
  margin-right: 5px;
  vertical-align: -0.5px;
}
#preview .acts {
  display: flex;
  gap: 8px;
  padding: 12px 22px 22px;
  align-items: center;
}
#preview .acts .btn {
  height: 38px;
  padding: 0 14px;
  font-size: 13.5px;
}
#preview .acts .n {
  margin-left: auto;
  font-family: var(--mono);
  font-size: 10.5px;
  color: var(--ink-3);
}
/* The rail closer borrows Tacet's final CTA metal, with a fine directional grain. */
.nx .card.ask {
  --ask-metal-a: color-mix(in oklch, var(--beige-100), white 8%);
  --ask-metal-b: color-mix(in oklch, var(--beige-200), var(--beige-50) 18%);
  --ask-metal-c: color-mix(in oklch, var(--beige-300), var(--beige-100) 18%);
  --ask-metal-d: color-mix(in oklch, var(--beige-400), var(--beige-200) 24%);
  --ask-metal-e: color-mix(in oklch, var(--beige-500), var(--beige-300) 30%);
  --ask-metal-edge: color-mix(in oklch, var(--beige-700), transparent 52%);
  --ask-metal-highlight: color-mix(in oklch, var(--beige-50), transparent 42%);
  --ask-metal-lowlight: color-mix(in oklch, var(--beige-950), transparent 78%);
  background:
    radial-gradient(ellipse at 12% 18%, var(--ask-metal-highlight), transparent 54%),
    linear-gradient(
      118deg,
      var(--ask-metal-a) 0%,
      var(--ask-metal-b) 22%,
      var(--ask-metal-c) 42%,
      var(--ask-metal-d) 62%,
      var(--ask-metal-e) 82%,
      var(--ask-metal-d) 100%
    );
  color: var(--foreground);
  border-color: var(--ask-metal-edge);
  box-shadow:
    inset 0 1px 0 var(--ask-metal-highlight),
    inset 0 -1px 0 var(--ask-metal-lowlight),
    var(--tacet-shadow-lg);
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 18px;
  gap: 10px;
}
.nx .card.ask::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -1;
  border-radius: inherit;
  pointer-events: none;
  /* Anisotropic noise gives irregular brush marks instead of repeating stripes. */
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='256' height='256'%3E%3Cfilter id='brush'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.012 .65' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix type='saturate' values='0'/%3E%3C/filter%3E%3Cpath fill='white' filter='url(%23brush)' d='M0 0h256v256H0z'/%3E%3C/svg%3E");
  opacity: 0.22;
  mix-blend-mode: soft-light;
}
html.dark .nx .card.ask {
  --ask-metal-a: color-mix(in oklch, var(--beige-700), var(--beige-800) 38%);
  --ask-metal-b: color-mix(in oklch, var(--beige-800), var(--beige-700) 18%);
  --ask-metal-c: color-mix(in oklch, var(--beige-900), var(--beige-800) 32%);
  --ask-metal-d: color-mix(in oklch, var(--beige-800), var(--beige-950) 22%);
  --ask-metal-e: color-mix(in oklch, var(--beige-700), var(--beige-900) 42%);
  --ask-metal-edge: color-mix(in oklch, var(--beige-400), transparent 72%);
  --ask-metal-highlight: color-mix(in oklch, var(--beige-500), transparent 80%);
  --ask-metal-lowlight: color-mix(in oklch, var(--beige-950), transparent 34%);
}
.nx .card.ask b {
  font-family: var(--display);
  font-weight: 600;
  font-size: 20px;
}
.nx .card.ask p {
  font-size: 13.5px;
  opacity: 0.8;
}
.nx .card.ask .btn {
  align-self: flex-start;
  background: var(--red);
  border-color: var(--red);
}
.nx /* row paging arrows, .nx Netflix style */
  .row-wrap {
  position: relative;
}
.nx .arrow {
  position: absolute;
  top: 0;
  bottom: 40px;
  width: 64px;
  border: 0;
  padding: 0;
  cursor: pointer;
  z-index: 4;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--ink);
  background: linear-gradient(
    to left,
    color-mix(in srgb, var(--paper) 96%, transparent),
    color-mix(in srgb, var(--paper) 75%, transparent) 60%,
    transparent
  );
  opacity: 0;
  transition: opacity 260ms var(--ease-standard);
}
.nx .arrow.l {
  left: 0;
  background: linear-gradient(
    to right,
    color-mix(in srgb, var(--paper) 96%, transparent),
    color-mix(in srgb, var(--paper) 75%, transparent) 60%,
    transparent
  );
}
.nx .arrow.r {
  right: 0;
  opacity: 0.55;
}
.nx .arrow svg {
  width: 22px;
  height: 22px;
  transition: transform 320ms var(--ease-spring);
}
.nx .row-wrap:hover .arrow {
  opacity: 1;
}
.nx .arrow:hover svg {
  transform: scale(1.35);
}
.nx .arrow.r:hover svg {
  transform: scale(1.35) translateX(2px);
}
.nx .arrow.l:hover svg {
  transform: scale(1.35) translateX(-2px);
}
.nx .arrow[hidden] {
  display: none;
}
.nx .row-wrap .track {
  scroll-behavior: smooth;
}
@media (pointer: coarse) {
  .nx .arrow {
    display: none;
  }
}
.nx /* ---------- interludes ---------- */
  .inter {
  margin: 36px 0 8px;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: var(--white);
}
.nx .inter .in {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr);
  gap: 56px;
  align-items: center;
  margin-left: max(32px, calc((100vw - 1720px) / 2));
  margin-right: max(32px, calc((100vw - 1720px) / 2));
  padding: 56px 56px;
  background: var(--pc);
  border: 1px solid color-mix(in srgb, var(--pi) 20%, var(--pc));
  border-radius: 17px;
}
@media (max-width: 960px) {
  .nx .inter .in {
    grid-template-columns: 1fr;
    gap: 32px;
  }
  .nx .inter.flip .in > :first-child {
    order: 0;
  }
}
.nx .inter .k {
  color: var(--red);
}
.nx .inter h2 {
  font-size: clamp(36px, 4.4vw, 64px);
  margin-top: 12px;
  text-transform: uppercase;
  letter-spacing: -0.025em;
  line-height: 0.92;
}
.nx .inter p {
  margin-top: 18px;
  font-size: 18px;
  color: var(--ink-2);
  max-width: 26em;
}
.nx .inter .cta {
  margin-top: 24px;
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
}
.nx .proto {
  background: var(--dark);
  color: #e9eaee;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 40px 80px -40px rgb(0, 0, 0, 0.6);
  font-size: 13.5px;
}
.nx .proto .bar {
  height: 38px;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 0 14px;
  background: var(--dark-2);
  font-family: var(--mono);
  font-size: 11px;
  color: #9a9ea8;
}
.nx .proto .bar i {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  display: inline-block;
  background: #3a3b44;
}
.nx .proto .body {
  display: grid;
  grid-template-columns: 250px minmax(0, 1fr);
  min-height: 340px;
}
@media (max-width: 560px) {
  .nx .proto .body {
    grid-template-columns: 1fr;
  }
  .nx .proto .shot {
    display: none;
  }
}
.nx .proto .chat {
  padding: 14px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  border-right: 1px solid #2a2b33;
}
.nx .proto .you {
  align-self: flex-end;
  background: var(--red);
  color: #fff;
  padding: 9px 12px;
  border-radius: 12px 12px 3px 12px;
  max-width: 95%;
  line-height: 1.35;
}
.nx .proto .bot {
  background: var(--dark-2);
  padding: 10px 12px;
  border-radius: 12px 12px 12px 3px;
  max-width: 95%;
  line-height: 1.4;
  color: #d7d9df;
}
.nx .proto .bot ul {
  margin: 8px 0 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 4px;
  font-family: var(--mono);
  font-size: 11px;
  color: #b9bdc7;
}
.nx .proto .bot li::before {
  content: '✓ ';
  color: #6fdc8c;
}
.nx .proto .input {
  margin-top: auto;
  border: 1px solid #33343d;
  border-radius: 8px;
  padding: 9px 12px;
  color: #7d818b;
}
.nx .proto .input b {
  color: #fff;
  font-weight: 400;
  animation: blink 1s steps(1) infinite;
}
@keyframes blink {
  50% {
    opacity: 0;
  }
}
.nx .proto .shot {
  position: relative;
  overflow: hidden;
  background: var(--white);
}
.nx .proto .shot img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: left top;
}
.nx .proto .shot .diff {
  position: absolute;
  right: 14px;
  bottom: 14px;
  background: var(--dark);
  color: #fff;
  font-family: var(--mono);
  font-size: 11px;
  padding: 8px 10px;
  border-radius: 6px;
  line-height: 1.6;
}
.nx .proto .shot .diff em {
  font-style: normal;
  color: #6fdc8c;
}
.nx .term {
  background: var(--dark);
  color: #e9eaee;
  border-radius: 12px;
  padding: 20px 22px;
  font-family: var(--mono);
  font-size: 13px;
  line-height: 1.8;
  box-shadow: 0 40px 80px -40px rgb(0, 0, 0, 0.6);
  overflow-x: auto;
  white-space: pre;
}
.nx .term .c {
  color: #7d818b;
}
.nx .term .g {
  color: #6fdc8c;
}
.nx .term .r {
  color: #ff7a8a;
}
.nx /* ad visuals */
  .inter.flip .in > :first-child {
  order: 2;
}
.nx .inter.dark {
  background: var(--dark);
  color: #fff;
  border-color: var(--dark);
}
.nx .inter.dark p {
  color: rgb(255, 255, 255, 0.72);
}
.nx .inter.dark .k {
  color: #ff8a97;
}
.nx .inter.red {
  background: var(--red);
  color: #fff;
  border-color: var(--red);
}
.nx .inter.red .k {
  color: #ffd6db;
}
.nx .inter.red p {
  color: rgb(255, 255, 255, 0.85);
}
.nx .inter.red .btn {
  background: var(--white);
  color: var(--red);
  border-color: #fff;
}
.nx .inter.red .btn.ghost {
  background: transparent;
  color: #fff;
  border-color: rgb(255, 255, 255, 0.65);
}
.nx .inter.red .btn.ghost:hover {
  background: rgb(255, 255, 255, 0.14);
}
.nx .inter.dark .btn.ghost {
  color: #fff;
  border-color: rgb(255, 255, 255, 0.55);
}
.nx .inter.dark .btn.ghost:hover {
  background: rgb(255, 255, 255, 0.1);
  border-color: #fff;
}
.nx .mini-frame {
  border: 1px solid var(--line);
  border-radius: 10px;
  overflow: hidden;
  background: var(--white);
  box-shadow: 0 30px 60px -30px rgb(0, 0, 0, 0.4);
  position: relative;
}
.nx .mini-frame .bar {
  display: flex;
  align-items: center;
  gap: 8px;
  height: 34px;
  padding: 0 12px;
  border-bottom: 1px solid var(--line);
  background: var(--paper);
  font-family: var(--mono);
  font-size: 11px;
  color: var(--ink-2);
}
.nx .mini-frame .bar i {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #d9d8d3;
}
.nx .mini-frame .bar .url {
  margin-left: 6px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 5px;
  padding: 3px 8px;
  flex: 1;
}
.nx .mini-frame img {
  display: block;
  width: 100%;
  height: auto;
}
.nx .mini-frame .badge {
  position: absolute;
  left: 14px;
  bottom: 14px;
  background: var(--dark);
  color: #fff;
  padding: 8px 12px;
  border-radius: 6px;
  font-size: 13px;
}
.nx .mini-frame .badge b {
  font-family: var(--display);
  font-weight: 600;
}
.nx .site {
  background: var(--white);
  overflow: hidden;
  border: 1px solid var(--line);
  box-shadow: 0 30px 60px -30px rgb(0, 0, 0, 0.4);
}
.nx .site .hero {
  padding: 26px 24px 20px;
  background: #15161a;
  color: #fff;
}
.nx .site .hero small {
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #ff8a97;
}
.nx .site .hero b {
  display: block;
  font-family: var(--display);
  font-weight: 600;
  font-size: 26px;
  margin-top: 6px;
  letter-spacing: -0.015em;
}
.nx .site .hero span {
  display: block;
  margin-top: 6px;
  font-size: 13px;
  color: rgb(255, 255, 255, 0.75);
}
.nx .site .hero .cta {
  display: flex;
  gap: 8px;
  margin-top: 14px;
}
.nx .site .hero .cta em {
  font-style: normal;
  font-size: 12px;
  padding: 7px 10px;
  border-radius: 4px;
  background: var(--red);
  font-family: var(--display);
  font-weight: 600;
}
.nx .site .hero .cta em + em {
  background: transparent;
  border: 1px solid rgb(255, 255, 255, 0.5);
}
.nx .site .body {
  padding: 14px 16px;
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 10px;
  font-size: 12px;
  color: var(--ink-2);
}
.nx .site .body b {
  display: block;
  font-family: var(--display);
  font-weight: 600;
  color: var(--ink);
  font-size: 13px;
  margin-bottom: 2px;
}
.nx .site .foot {
  border-top: 1px solid var(--line);
  padding: 8px 16px;
  font-family: var(--mono);
  font-size: 10.5px;
  color: var(--ink-3);
  display: flex;
  justify-content: space-between;
}
.nx .flow {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 16px;
  box-shadow: 0 30px 60px -30px rgb(0, 0, 0, 0.4);
  display: grid;
  gap: 8px;
}
.nx .flow .node {
  display: grid;
  grid-template-columns: 22px 1fr auto;
  gap: 12px;
  align-items: center;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 6px;
  font-size: 13.5px;
}
.nx .flow .node i {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #1d6b3a;
  justify-self: center;
}
.nx .flow .node.gate i {
  background: var(--red);
  border-radius: 2px;
  transform: rotate(45deg);
}
.nx .flow .node.wait i {
  background: #d9d8d3;
}
.nx .flow .node small {
  font-family: var(--mono);
  font-size: 10.5px;
  color: var(--ink-3);
  display: block;
}
.nx .flow .node em {
  font-style: normal;
  font-family: var(--mono);
  font-size: 10.5px;
  padding: 3px 7px;
  border-radius: 4px;
  background: #eaf7ee;
  color: #1d6b3a;
}
.nx .flow .node.gate em {
  background: #fdeef0;
  color: var(--red);
}
.nx .flow .node.wait em {
  background: var(--paper);
  color: var(--ink-3);
}
.nx .inter .in:has(> .bignum) > * {
  min-width: 0;
}
.nx .bignum {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}
.nx .bignum div {
  background: rgb(255, 255, 255, 0.12);
  border-radius: 10px;
  padding: 22px 20px;
}
.nx .bignum b {
  display: block;
  font-family: var(--display);
  font-weight: 700;
  font-size: clamp(40px, 4.5vw, 64px);
  line-height: 1;
  letter-spacing: -0.03em;
}
.nx .bignum span {
  display: block;
  margin-top: 8px;
  font-size: 14px;
  opacity: 0.85;
}
@media (max-width: 600px) {
  .nx .bignum div {
    padding: var(--space-4) var(--space-3);
  }
  .nx .bignum b {
    font-size: clamp(1.5rem, 8vw, 2.5rem);
  }
}
.nx .ctrl {
  display: grid;
  gap: 0;
  color: var(--ink);
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 30px 60px -30px rgb(0, 0, 0, 0.4);
}
.nx .ctrl > div {
  display: grid;
  grid-template-columns: 34px 1fr;
  gap: 12px;
  padding: 14px 16px;
  border-bottom: 1px solid var(--line);
  font-size: 14px;
}
.nx .ctrl > div:last-child {
  border-bottom: 0;
}
.nx .ctrl > div > b {
  font-family: var(--mono);
  font-size: 11px;
  color: var(--ink);
  padding-top: 3px;
}
.nx .ctrl > div > div span {
  color: var(--ink-2);
  display: block;
  font-size: 13px;
}
.nx .ctrl > div > div strong {
  font-family: var(--display);
  font-weight: 600;
}
.nx .steps3 {
  display: grid;
  gap: 10px;
}
.nx .steps3 > div {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 14px 16px;
  display: grid;
  grid-template-columns: 30px 1fr;
  gap: 12px;
  font-size: 14px;
}
.nx .steps3 > div > b {
  font-family: var(--display);
  font-weight: 700;
  font-size: 22px;
  color: var(--ink);
  line-height: 1;
}
.nx .steps3 > div > div {
  font-weight: 600;
}
.nx .steps3 > div > div span {
  color: var(--ink-2);
  display: block;
  font-size: 13px;
  font-weight: 400;
  margin-top: 2px;
}
.nx /* BOMwiki tree */
  .bom {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 18px 20px;
  box-shadow: 0 30px 60px -30px rgb(0, 0, 0, 0.4);
  font-size: 13.5px;
}
.nx .bom .hd {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 12px;
  margin-bottom: 10px;
  font-family: var(--mono);
  font-size: 11px;
  color: var(--ink-3);
}
.nx .bom .hd b {
  font-family: var(--display);
  font-weight: 600;
  font-size: 15px;
  color: var(--ink);
}
.nx .bom ul {
  list-style: none;
  margin: 0;
  padding: 0;
}
.nx .bom li {
  position: relative;
  padding: 6px 0 6px 22px;
  border-left: 1px solid var(--line);
  margin-left: 8px;
}
.nx .bom > ul > li {
  border-left: 0;
  margin-left: 0;
  padding-left: 0;
}
.nx .bom li::before {
  content: '';
  position: absolute;
  left: -1px;
  top: 18px;
  width: 14px;
  height: 1px;
  background: var(--line);
}
.nx .bom > ul > li::before {
  display: none;
}
.nx .bom .row {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  align-items: center;
}
.nx .bom .row span:first-child {
  font-weight: 600;
}
.nx .bom .row em {
  font-style: normal;
  font-family: var(--mono);
  font-size: 11px;
  color: var(--ink-3);
}
.nx .bom .shared {
  background: #fdeef0;
  color: var(--ink-deep);
  border: 1px solid #f7d6da;
  border-radius: 6px;
  padding: 6px 8px;
  margin: 4px 0;
}
.nx .bom .shared em {
  color: var(--red);
}
.nx /* skill cards */
  .skills {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
}
@media (max-width: 640px) {
  .nx .skills {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
.nx .skill {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 12px 12px 10px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  min-height: 108px;
  box-shadow: 0 16px 30px -24px rgb(0, 0, 0, 0.35);
}
.nx .skill b {
  font-family: var(--display);
  font-weight: 600;
  font-size: 14px;
  line-height: 1.15;
}
.nx .skill span {
  font-family: var(--mono);
  font-size: 10.5px;
  color: var(--ink-3);
}
.nx .skill i {
  margin-top: auto;
  font-style: normal;
  align-self: flex-start;
  font-size: 11px;
  font-weight: 600;
  padding: 3px 8px;
  border-radius: 999px;
  background: #eaf7ee;
  color: #1d6b3a;
}
.nx .skill.add i {
  background: var(--ink);
  color: var(--paper);
}
.nx .skills-foot {
  margin-top: 12px;
  font-family: var(--mono);
  font-size: 12px;
  color: var(--ink-2);
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px;
}
.nx .inter.dark .skill {
  background: var(--white);
  border-color: color-mix(in srgb, var(--pi) 18%, var(--white));
  color: var(--ink);
}
.nx .inter.dark .skill span {
  color: #9a9ea8;
}
.nx .inter.dark .skills-foot {
  color: #9a9ea8;
}
.nx /* department x size matrix */
  .matrix {
  display: grid;
  grid-template-columns: 120px repeat(4, minmax(0, 1fr));
  gap: 6px;
  font-size: 12px;
}
.nx .matrix .h {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ink-3);
  padding: 6px 4px;
}
.nx .matrix .d {
  font-weight: 600;
  padding: 8px 4px;
}
.nx .matrix .c {
  border-radius: 6px;
  padding: 8px 8px;
  background: #eaf7ee;
  color: #1d6b3a;
  font-family: var(--mono);
  font-size: 11px;
  text-align: center;
}
.nx .matrix .c.k {
  opacity: 1;
  background: #eef3ff;
  color: #2b4bb5;
}
.nx .matrix .c.p {
  background: #fff6e0;
  color: #8a5a00;
}
.nx .matrix .c.n {
  background: var(--paper);
  color: var(--ink-3);
}
@media (max-width: 640px) {
  .nx .matrix {
    grid-template-columns: 90px repeat(4, minmax(0, 1fr));
    font-size: 11px;
  }
}
.nx /* thin billboard: one band, .nx headline and action on one line, .nx a live strip beneath */
  .inter.thin .in {
  display: block;
  padding: 26px 40px;
}
.nx .inter.thin .thin-row {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: 24px;
  align-items: center;
}
@media (max-width: 900px) {
  .nx .inter.thin .thin-row {
    grid-template-columns: 1fr;
    gap: 12px;
  }
}
.nx .inter.thin h2 {
  font-size: clamp(24px, 2.4vw, 34px);
  margin-top: 6px;
  letter-spacing: -0.02em;
  line-height: 1;
}
.nx .inter.thin p {
  margin: 0;
  font-size: 15.5px;
  max-width: 40em;
}
.nx .inter.thin .cta {
  margin: 0;
}
.nx .inter.thin .btn {
  height: 42px;
  padding: 0 16px;
  font-size: 15px;
}
.nx .traj {
  margin-top: 16px;
  display: flex;
  gap: 10px;
  overflow: hidden;
  -webkit-mask-image: linear-gradient(to right, transparent, #000 6%, #000 94%, transparent);
  mask-image: linear-gradient(to right, transparent, #000 6%, #000 94%, transparent);
}
.nx .traj .row {
  display: flex;
  gap: 10px;
  width: max-content;
  animation: drift 60s linear infinite;
}
.nx .traj .ev {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 10px;
  border: 1px solid #2a2b33;
  background: #1b1c22;
  font-family: var(--mono);
  font-size: 11px;
  color: #c9ccd4;
  white-space: nowrap;
}
.nx .traj .ev i {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  display: inline-block;
  background: #6fdc8c;
}
.nx .traj .ev.gate i {
  background: #ff8a97;
}
.nx .traj .ev.score i {
  background: #ffcf3d;
}
.nx .traj .ev b {
  font-weight: 500;
  color: #fff;
}
.nx /* compact pill: appears once the billboard has scrolled away; search lives in it */
  .nx-quick-nav {
  position: fixed;
  top: 14px;
  left: 50%;
  z-index: 40;
  transform: translate(-50%, -140%);
  opacity: 0;
  width: min(420px, calc(100% - 32px));
  height: 58px;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 0 12px 0 16px;
  border: 1px solid var(--border);
  border-radius: 14px;
  isolation: isolate;
  background: var(--background);
  color: var(--foreground);
  box-shadow: 0 10px 30px -18px rgb(0, 0, 0, 0.4);
  transition:
    transform 420ms var(--ease-spring),
    opacity 260ms var(--ease-standard),
    width 420ms var(--ease-spring);
}
.nx .nx-quick-nav::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -1;
  border-radius: inherit;
  pointer-events: none;
  background: linear-gradient(
    90deg,
    #fbfaf7 0%,
    #f3eefb 28%,
    #fbeef1 52%,
    #fbf6ec 78%,
    #fbfaf7 100%
  );
}
html.dark .nx .nx-quick-nav::before {
  opacity: 0.1;
}

.nx .nx-quick-nav.show {
  transform: translate(-50%, 0);
  opacity: 1;
}
.nx .nx-quick-nav.open {
  width: min(720px, calc(100% - 32px));
}
.nx .nx-quick-nav .wordmark {
  height: 22px;
  flex: none;
}
.nx .nx-quick-nav .q {
  flex: 1;
  min-width: 0;
  display: none;
  align-items: center;
  gap: 8px;
}
.nx .nx-quick-nav.open .q {
  display: flex;
}
.nx .nx-quick-nav .q input {
  flex: 1;
  min-width: 0;
  border: 0;
  background: transparent;
  font-size: 15px;
  height: 40px;
  outline: 0;
}
.nx .nx-quick-nav .q input::placeholder {
  color: var(--ink-3);
}
.nx .nx-quick-nav .q .hits {
  font-family: var(--mono);
  font-size: 11px;
  color: var(--ink-3);
  white-space: nowrap;
}
.nx .nx-quick-nav .sp {
  flex: 1;
}
.nx .nx-quick-nav.open .sp {
  display: none;
}
.nx .nx-quick-nav button {
  border: 0;
  background: transparent;
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  border-radius: 10px;
  cursor: pointer;
  color: var(--ink);
}
.nx .nx-quick-nav button:hover {
  background: color-mix(in srgb, var(--foreground) 8%, transparent);
}
.nx .nx-quick-nav .menu {
  position: absolute;
  right: 0;
  top: calc(100% + 8px);
  width: 220px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 8px;
  box-shadow: 0 16px 40px -20px rgb(0, 0, 0, 0.35);
  display: none;
}
.nx .nx-quick-nav .menu.show {
  display: block;
}
.nx .nx-quick-nav .menu a {
  display: block;
  padding: 10px 12px;
  border-radius: 8px;
  font-size: 15px;
  font-weight: 500;
}
.nx .nx-quick-nav .menu a:hover {
  background: var(--paper);
}
.nx .nx-quick-nav .menu a.si {
  margin-top: 6px;
  border-top: 1px solid var(--line);
  border-radius: 0 0 8px 8px;
  padding-top: 12px;
  font-weight: 600;
}
.nx .card.hidden {
  display: none;
}
.nx .row-sec.empty {
  display: none;
}
.nx /* ---------- tacet footer: page sheet lifts to reveal a fixed footer; outlined wordmark with a searchlight ---------- */
  body {
  background: #fbfbf8;
}
.nx .shell {
  position: relative;
  z-index: 1;
  background: var(--paper);
  border-radius: 0 0 28px 28px;
  box-shadow: 0 1.25rem 3rem rgb(18, 15, 12, 0.16);
  margin-bottom: var(--footer-height, 0px);
  overflow: clip;
}

.nx /* ---------- footer (old) ---------- */
  .foot {
  margin-top: 48px;
  border-top: 1px solid var(--line);
  padding: 28px 0 40px;
  display: flex;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
  align-items: center;
  font-size: 14px;
  color: var(--ink-2);
}
.nx .foot .links {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
}
.nx .foot .links a:hover {
  color: var(--ink);
}
@media (prefers-reduced-motion: reduce) {
  .nx .card,
  .nx .btn {
    transition: none;
  }
  .nx .proto .input b {
    animation: none;
  }
}
/* page-level: the wrapper paints the paper ground; the site's footer, nav and tokens stay untouched */
.nx .wordmark img {
  height: 22px;
  width: auto;
  display: block;
}
.nx .nx-quick-nav .wordmark img {
  height: 18px;
}
/* resets against site-wide component rules that share class names */
.nx .btn,
#preview .btn {
  text-transform: none;
  border-radius: 0;
  box-shadow: none;
}

/* billboards: same tone as the cards. Pastel ground, ink type, one accent for the primary action. */
.nx .inter,
.nx .inter.dark,
.nx .inter.red {
  --category-base: var(--identity-surface, var(--catalog-palette-slate-base));
  --category-deep: var(--identity-ink, var(--catalog-palette-slate-ink));
  margin: 44px 0 12px;
  border: 0;
  background: transparent;
  color: var(--pi);
}
.nx .inter .k,
.nx .inter.dark .k,
.nx .inter.red .k {
  color: var(--pi);
  opacity: 0.7;
}
.nx .inter h2,
.nx .inter.dark h2,
.nx .inter.red h2 {
  color: var(--pi);
  text-transform: none;
  font-weight: 700;
  letter-spacing: -0.03em;
  font-size: clamp(32px, 3.6vw, 52px);
}
.nx .inter p,
.nx .inter.dark p,
.nx .inter.red p {
  color: var(--pi);
  opacity: 0.82;
}
.nx .inter .btn,
.nx .inter.red .btn,
.nx .inter.dark .btn {
  background: var(--pi);
  border-color: var(--pi);
  color: var(--paper);
}
.nx .inter .btn.red,
.nx .inter.red .btn.red {
  background: var(--red);
  border-color: var(--red);
  color: #fff;
}
.nx .inter .btn.ghost,
.nx .inter.red .btn.ghost,
.nx .inter.dark .btn.ghost {
  background: transparent;
  color: var(--pi);
  border-color: var(--pi);
}
.nx .inter .btn.ghost:hover,
.nx .inter.red .btn.ghost:hover,
.nx .inter.dark .btn.ghost:hover {
  background: color-mix(in srgb, var(--white) 35%, transparent);
}
.nx .inter .bignum div {
  background: color-mix(in srgb, var(--white) 50%, transparent);
  color: var(--pi);
}
.nx .inter.dark .skill span,
.nx .inter.dark .skills-foot {
  color: var(--ink-2);
}
.nx .inter .traj,
.nx .inter .traj .ev {
  color: var(--pi);
}
.nx .inter .matrix .h,
.nx .inter .matrix .d {
  color: var(--pi);
}
@media (max-width: 900px) {
  .nx .inter .in {
    margin-left: 16px;
    margin-right: 16px;
    padding: 32px 22px;
  }
}
.nx .btn::before,
.nx .btn::after,
#preview .btn::before,
#preview .btn::after {
  content: none !important;
  display: none !important;
}
.nx .inter.thin h2,
.nx .inter.thin.dark h2 {
  font-size: clamp(24px, 2.4vw, 34px);
  margin-top: 6px;
}
.nx .inter .traj .ev {
  background: color-mix(in srgb, var(--white) 70%, transparent);
  border-color: color-mix(in srgb, var(--pi) 18%, var(--white));
  color: var(--pi);
}
.nx .inter .traj .ev b {
  color: var(--pi);
}

/* a little bigger: wider column, larger cards and row headings on desktop */
@media (min-width: 1100px) {
  .nx .card {
    width: 340px;
  }
  .nx .card .phead {
    min-height: 136px;
    padding: 18px 20px 0;
  }
  .nx .card h3 {
    font-size: 25px;
  }
  .nx .card .ptag {
    font-size: 15px;
  }
  .nx .card .pphoto-wrap {
    height: 200px;
  }
  .nx .card .ctags li {
    font-size: 13.5px;
  }
  .nx .row-head h2 {
    font-size: 30px;
  }
  .nx .track {
    gap: 16px;
  }
  .nx .stage .frame {
    max-width: 1720px;
  }
}

/* card capability line: plain text on the card ground, dotted, two lines, aligned with the photo */
.nx .card .ctags,
.nx .card .ctags li {
  background: transparent;
  border: 0;
  border-radius: 0;
}
.nx .card .ctags li + li::before {
  opacity: 0.55;
  content: none;
}

/* clean card: photo with no tint frame, three-line title, two-line tagline, separators trail */
.nx .card .pphoto-wrap::before,
.nx .card .pphoto-wrap::after {
  content: none;
}
.nx .card .ctags li:not(:last-child)::after {
  opacity: 0.55;
  content: '\00a0·';
}
@media (min-width: 1100px) {
  .nx .card .phead {
    min-height: 164px;
  }
  .nx .card .pphoto-wrap {
    height: 200px;
  }
}

/* Homepage catalog surfaces are scoped below; system mini-sites retain their own geometry. */

/* ---------- system mini-site ---------- */
.nx .sys-bill {
  background: var(--pc, #dbe5df);
  color: var(--pi, var(--catalog-palette-sage-ink));
  border-bottom: 1px solid color-mix(in srgb, var(--pi) 18%, var(--pc));
}
.nx .sys-hero {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr);
  gap: 56px;
  align-items: center;
  padding-top: 72px;
  padding-bottom: 64px;
}
.nx .sys-hero .pcat {
  display: inline-block;
  font-size: 13px;
  padding: 5px 10px;
  border-radius: 999px;
  background: rgb(255, 255, 255, 0.45);
  color: var(--pi);
}
.nx .sys-hero h1 {
  margin-top: 18px;
  font-size: clamp(40px, 5vw, 76px);
  line-height: 0.95;
  letter-spacing: -0.03em;
  color: var(--pi);
  text-wrap: balance;
}
.nx .sys-hero .sys-tag {
  margin-top: 18px;
  font-family: var(--display);
  font-weight: 600;
  font-size: clamp(20px, 1.8vw, 26px);
  color: var(--pi);
}
.nx .sys-hero .sys-desc {
  margin-top: 12px;
  font-size: 18px;
  line-height: 1.5;
  color: var(--pi);
  opacity: 0.85;
  max-width: 34em;
}
.nx .sys-hero .cta {
  margin-top: 26px;
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
}
.nx .sys-hero .btn.ghost {
  color: var(--pi);
  border-color: var(--pi);
}
.nx .sys-hero .sys-in {
  margin-top: 14px;
  font-size: 14px;
  color: var(--pi);
  opacity: 0.75;
}
.nx .sys-photo {
  overflow: hidden;
  aspect-ratio: 4 / 3;
  border: 1px solid color-mix(in srgb, var(--pi) 20%, var(--pc));
}
.nx .sys-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  filter: saturate(0.95) contrast(1.03);
}
.nx .sys-sec {
  padding-top: 48px;
  padding-bottom: 8px;
}
.nx .sys-sec .row-head {
  align-items: baseline;
}
.nx .sys-sec .row-head .k {
  color: var(--ink-3);
}
.nx .sys-modules {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  list-style: none;
  margin: 18px 0 0;
  padding: 0;
}
.nx .sys-modules li {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 18px 18px 16px;
}
.nx .sys-modules b {
  display: block;
  font-family: var(--display);
  font-weight: 650;
  font-size: 18px;
  letter-spacing: -0.01em;
}
.nx .sys-modules span {
  display: block;
  margin-top: 6px;
  font-size: 14.5px;
  line-height: 1.45;
  color: var(--ink-2);
}
.nx .sys-plate {
  margin-top: 18px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 20px 22px 14px;
}
.nx .sys-plate .circuit {
  width: 100%;
  height: auto;
  display: block;
  max-width: 820px;
  margin: 0 auto;
}
.nx .sys-plate .lead {
  margin-top: 8px;
  font-size: 14px;
  color: var(--ink-2);
  text-align: center;
}
.nx .sys-tags {
  margin-top: 16px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.nx .sys-tags a {
  font-size: 14px;
  padding: 7px 11px;
  border: 1px solid transparent;
  background: #eef0ec;
  color: var(--ink);
}
.nx .sys-tags a.k-data {
  background: #eef3ff;
  color: #2b4bb5;
}
.nx .sys-tags a.k-proc {
  background: #eaf7ee;
  color: #1d6b3a;
}
.nx .sys-tags a.k-ctrl {
  background: #fdeef0;
  color: #9e1b1b;
}
.nx .sys-tags a.k-plan {
  background: #fff6e0;
  color: #8a5a00;
}
.nx .sys-tags a.k-conn {
  background: #f1edff;
  color: #5b3fb0;
}
.nx .sys-tags a:hover {
  transform: translateY(-2px);
}
.nx .sys-legend {
  margin-top: 12px;
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ink-2);
}
.nx .sys-legend i {
  display: inline-block;
  width: 8px;
  height: 8px;
  border-radius: 2px;
  margin-right: 6px;
  vertical-align: middle;
}
.nx .sys-agent {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr);
  gap: 40px;
  align-items: center;
  margin-top: 18px;
}
.nx .sys-agent h3 {
  font-size: 28px;
  letter-spacing: -0.02em;
}
.nx .sys-agent p {
  margin-top: 12px;
  color: var(--ink-2);
  font-size: 17px;
  max-width: 30em;
}
.nx .sys-depth {
  max-width: 62em;
}
.nx .sys-depth h2 {
  font-size: 28px;
  letter-spacing: -0.02em;
  margin-top: 40px;
}
.nx .sys-depth h3 {
  font-size: 18px;
  margin-top: 22px;
}
.nx .sys-depth p,
.nx .sys-depth li {
  font-size: 16.5px;
  line-height: 1.6;
  color: var(--ink);
  margin-top: 10px;
}
.nx .sys-depth ul,
.nx .sys-depth ol {
  padding-left: 22px;
}
.nx .sys-depth table {
  border-collapse: collapse;
  width: 100%;
  margin-top: 12px;
  font-size: 14px;
  display: block;
  overflow-x: auto;
}
.nx .sys-depth th,
.nx .sys-depth td {
  text-align: left;
  padding: 8px 10px;
  border-bottom: 1px solid var(--line);
  vertical-align: top;
}
.nx .sys-depth code {
  font-family: var(--mono);
  font-size: 13px;
  background: #f1f0ec;
  padding: 1px 5px;
  border-radius: 3px;
}
.nx .sys-depth pre {
  background: var(--dark);
  color: #e9eaee;
  padding: 16px;
  border-radius: 10px;
  overflow-x: auto;
  font-size: 12.5px;
}
.nx .sys-faq {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px 40px;
  margin-top: 18px;
  max-width: 70em;
}
.nx .sys-faq div b {
  display: block;
  font-family: var(--display);
  font-weight: 650;
  font-size: 17px;
}
.nx .sys-faq div p {
  margin-top: 6px;
  color: var(--ink-2);
  font-size: 15.5px;
  line-height: 1.5;
}
.nx .sys-rows {
  margin-top: 24px;
}
@media (max-width: 900px) {
  .nx .sys-hero {
    grid-template-columns: 1fr;
    gap: 24px;
    padding-top: 40px;
    padding-bottom: 36px;
  }
  .nx .sys-modules {
    grid-template-columns: 1fr;
  }
  .nx .sys-agent {
    grid-template-columns: 1fr;
  }
  .nx .sys-faq {
    grid-template-columns: 1fr;
  }
}

/* ---------- authored specification as designed blocks ---------- */
.nx .sys-spec .row-head {
  margin-top: 44px;
}
.nx .spec-lead {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 2fr);
  gap: 40px;
  align-items: start;
}
.nx .spec-lead .row-head {
  margin-top: 0;
}
.nx .spec-prose p {
  font-size: 18px;
  line-height: 1.6;
  color: var(--ink);
  margin: 0 0 14px;
  max-width: 46em;
}
.nx .spec-prose p:last-child {
  margin-bottom: 0;
}
.nx .spec-prose hr {
  display: none;
}
.nx .spec-flow {
  list-style: none;
  margin: 18px 0 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  counter-reset: stage;
}
.nx .spec-flow > li {
  counter-increment: stage;
  position: relative;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 18px 20px 16px 64px;
}
.nx .spec-flow > li::before {
  content: counter(stage);
  position: absolute;
  left: 18px;
  top: 16px;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: var(--ink);
  color: #fff;
  font-family: var(--display);
  font-weight: 700;
  font-size: 14px;
  display: grid;
  place-items: center;
}
.nx .spec-flow > li > b {
  display: block;
  font-family: var(--display);
  font-weight: 650;
  font-size: 18px;
  letter-spacing: -0.01em;
}
.nx .spec-flow > li > p {
  margin: 6px 0 0;
  font-size: 15px;
  line-height: 1.5;
  color: var(--ink-2);
}
.nx .spec-flow > li > ul {
  margin: 8px 0 0;
  padding-left: 18px;
  font-size: 14.5px;
  line-height: 1.5;
  color: var(--ink-2);
}
.nx .spec-flow > li > ul li + li {
  margin-top: 4px;
}
.nx .spec-roles,
.nx .spec-reports {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  margin-top: 18px;
}
.nx .spec-views {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  margin-top: 18px;
}
.nx .spec-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 18px 20px 16px;
  min-width: 0;
}
.nx .spec-card > b,
.nx .spec-card .vh b {
  font-family: var(--display);
  font-weight: 650;
  font-size: 17px;
  letter-spacing: -0.01em;
}
.nx .spec-card > p {
  margin: 6px 0 0;
  font-size: 14.5px;
  line-height: 1.5;
  color: var(--ink-2);
}
.nx .spec-card .vh {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 12px;
}
.nx .spec-card .mono {
  font-family: var(--mono);
  font-size: 11px;
  color: var(--ink-3);
  white-space: nowrap;
}
.nx .spec-card .chips {
  list-style: none;
  margin: 12px 0 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.nx .spec-card .chips li {
  font-size: 12.5px;
  line-height: 1.3;
  padding: 4px 8px;
  border-radius: 4px;
  background: #f1f0ec;
  color: var(--ink);
}
.nx .spec-card .chips.roles li {
  background: #eef3ff;
  color: #2b4bb5;
}
.nx .spec-view .filter {
  display: block;
  margin-top: 10px;
  font-family: var(--mono);
  font-size: 12px;
  color: #9e1b1b;
  background: #fdf3f4;
  border-radius: 6px;
  padding: 6px 10px;
  white-space: normal;
  overflow-wrap: anywhere;
}
.nx .spec-view .cols {
  margin-top: 10px;
  display: flex;
  flex-wrap: wrap;
  gap: 0 10px;
  font-family: var(--mono);
  font-size: 11.5px;
  color: var(--ink-2);
  line-height: 1.7;
}
.nx .spec-view .cols span + span::before {
  content: '· ';
  color: var(--ink-3);
}
@media (max-width: 1100px) {
  .nx .spec-roles,
  .nx .spec-reports {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .nx .spec-lead {
    grid-template-columns: 1fr;
    gap: 12px;
  }
}
@media (max-width: 720px) {
  .nx .spec-roles,
  .nx .spec-reports,
  .nx .spec-views,
  .nx .spec-flow {
    grid-template-columns: 1fr;
  }
}

/* ---------- system website: sub-navigation, document pages ---------- */
.nx .sysnav {
  position: sticky;
  top: 0;
  z-index: 30;
  display: flex;
  align-items: center;
  gap: 6px;
  height: 56px;
  background: rgb(251, 250, 247, 0.92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.nx .sysnav-home {
  font-family: var(--display);
  font-weight: 700;
  font-size: 16px;
  margin-right: 12px;
  padding: 6px 0;
}
.nx .sysnav-groups {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  gap: 2px;
  flex: 1;
}
.nx .sysnav-group {
  position: relative;
}
.nx .sysnav-group > button {
  border: 0;
  background: transparent;
  font: inherit;
  font-weight: 500;
  font-size: 15px;
  padding: 8px 12px;
  border-radius: 6px;
  cursor: pointer;
  color: var(--ink-2);
}
.nx .sysnav-group.on > button,
.nx .sysnav-group > button:hover {
  color: var(--ink);
  background: #f1f0ec;
}
.nx .sysnav-menu {
  display: none;
  position: absolute;
  left: 0;
  top: 100%;
  min-width: 360px;
  max-width: 520px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 12px;
  box-shadow: 0 24px 60px -24px rgb(0, 0, 0, 0.35);
  padding: 8px;
  list-style: none;
  margin: 6px 0 0;
  z-index: 40;
}
.nx .sysnav-group:hover .sysnav-menu,
.nx .sysnav-group:focus-within .sysnav-menu {
  display: block;
}
.nx .sysnav-menu a {
  display: block;
  padding: 9px 12px;
  border-radius: 8px;
}
.nx .sysnav-menu a:hover,
.nx .sysnav-menu li.on a {
  background: #f1f0ec;
}
.nx .sysnav-menu b {
  display: block;
  font-family: var(--display);
  font-weight: 650;
  font-size: 15px;
}
.nx .sysnav-menu span {
  display: block;
  font-size: 13px;
  color: var(--ink-2);
  line-height: 1.4;
  margin-top: 2px;
}
.nx .sysnav-cta {
  margin-left: auto;
  height: 38px;
  padding: 0 14px;
  font-size: 14px;
}
.nx .doc-head {
  padding-top: 56px;
  padding-bottom: 36px;
  border-bottom: 1px solid var(--line);
  background: #fff;
}
.nx .doc-head .k {
  color: var(--ink-3);
}
.nx .doc-head h1 {
  margin-top: 10px;
  font-size: clamp(36px, 4vw, 56px);
  letter-spacing: -0.03em;
  line-height: 1;
}
.nx .doc-head .doc-summary {
  margin-top: 16px;
  font-size: 20px;
  line-height: 1.45;
  color: var(--ink-2);
  max-width: 40em;
}
.nx .doc {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 300px;
  gap: 56px;
  padding-top: 40px;
  padding-bottom: 40px;
  align-items: start;
}
.nx .doc-body {
  max-width: 58em;
  min-width: 0;
}
.nx .doc-body h2 {
  font-size: 26px;
  letter-spacing: -0.02em;
  margin: 40px 0 12px;
}
.nx .doc-body h2:first-child {
  margin-top: 0;
}
.nx .doc-body h3 {
  font-size: 18px;
  margin: 26px 0 8px;
}
.nx .doc-body p,
.nx .doc-body li {
  font-size: 17px;
  line-height: 1.6;
  color: var(--ink);
}
.nx .doc-body p {
  margin: 0 0 14px;
}
.nx .doc-body ul,
.nx .doc-body ol {
  padding-left: 24px;
  margin: 0 0 14px;
}
.nx .doc-body li + li {
  margin-top: 6px;
}
.nx .doc-body table {
  border-collapse: collapse;
  width: 100%;
  margin: 8px 0 20px;
  font-size: 15px;
}
.nx .doc-body th {
  text-align: left;
  font-family: var(--display);
  font-weight: 650;
  font-size: 13px;
  letter-spacing: 0.02em;
  padding: 8px 10px;
  border-bottom: 2px solid var(--ink);
}
.nx .doc-body td {
  padding: 9px 10px;
  border-bottom: 1px solid var(--line);
  vertical-align: top;
}
.nx .doc-body code {
  font-family: var(--mono);
  font-size: 13px;
  background: #f1f0ec;
  padding: 1px 5px;
  border-radius: 3px;
}
.nx .doc-body pre {
  background: var(--dark);
  color: #e9eaee;
  padding: 16px 18px;
  border-radius: 10px;
  overflow-x: auto;
  font-size: 13px;
  line-height: 1.5;
  margin: 8px 0 18px;
}
.nx .doc-body pre code {
  background: transparent;
  color: inherit;
  padding: 0;
  font-size: inherit;
}
.nx .doc-body .spec-roles,
.nx .doc-body .spec-reports {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}
.nx .doc-body .spec-card p,
.nx .doc-body .spec-card li {
  font-size: 14px;
}
.nx .spec-tables {
  margin-top: 12px;
  display: grid;
  gap: 8px;
}
.nx .spec-table {
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #fff;
}
.nx .spec-table summary {
  display: grid;
  grid-template-columns: 220px minmax(0, 1fr) auto;
  gap: 16px;
  align-items: baseline;
  padding: 12px 16px;
  cursor: pointer;
  list-style: none;
}
.nx .spec-table summary::-webkit-details-marker {
  display: none;
}
.nx .spec-table summary b {
  font-family: var(--display);
  font-weight: 650;
  font-size: 15px;
}
.nx .spec-table summary span {
  font-size: 14px;
  color: var(--ink-2);
}
.nx .spec-table summary i {
  font-style: normal;
  font-family: var(--mono);
  font-size: 11px;
  color: var(--ink-3);
}
.nx .spec-table table {
  margin: 0;
  font-size: 13.5px;
}
.nx .spec-table td,
.nx .spec-table th {
  padding: 7px 16px;
}
.nx .doc-aside {
  position: sticky;
  top: 72px;
  display: grid;
  gap: 14px;
}
.nx .doc-aside-box {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 16px 18px;
}
.nx .doc-aside-box > b {
  display: block;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-3);
  margin-bottom: 8px;
}
.nx .doc-aside-box ul {
  list-style: none;
  margin: 0;
  padding: 0;
}
.nx .doc-aside-box li a {
  display: block;
  padding: 6px 0;
  font-size: 14.5px;
  color: var(--ink-2);
  border-bottom: 1px solid var(--line);
}
.nx .doc-aside-box li.on a {
  color: var(--ink);
  font-weight: 600;
}
.nx .doc-aside-box.cta p {
  font-size: 14px;
  color: var(--ink-2);
  margin: 4px 0 12px;
}
.nx .doc-aside-box.cta .btn {
  width: 100%;
  justify-content: center;
  margin-top: 8px;
  height: 42px;
  font-size: 15px;
}
.nx .doc-next {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  padding-top: 8px;
  padding-bottom: 56px;
}
.nx .doc-next a {
  display: block;
  padding: 14px 18px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #fff;
  min-width: 240px;
}
.nx .doc-next a.next {
  text-align: right;
}
.nx .doc-next a b {
  display: block;
  font-family: var(--display);
  font-weight: 650;
  font-size: 16px;
  margin-top: 2px;
}
.nx .sitemap {
  margin-top: 18px;
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 16px;
}
.nx .sitemap-group > b {
  display: block;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-3);
  margin-bottom: 8px;
}
.nx .sitemap-group ul {
  list-style: none;
  margin: 0;
  padding: 0;
}
.nx .sitemap-group li {
  padding: 8px 0;
  border-top: 1px solid var(--line);
}
.nx .sitemap-group li a {
  font-family: var(--display);
  font-weight: 650;
  font-size: 15px;
}
.nx .sitemap-group li span {
  display: block;
  font-size: 13px;
  color: var(--ink-2);
  line-height: 1.4;
  margin-top: 2px;
}
.nx .sys-modules li a {
  display: block;
  color: inherit;
}
.nx .sys-modules li:has(a):hover {
  border-color: var(--ink);
}
@media (max-width: 1100px) {
  .nx .sitemap {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .nx .doc {
    grid-template-columns: 1fr;
  }
  .nx .doc-aside {
    position: static;
  }
}
@media (max-width: 900px) {
  .nx .sysnav {
    height: auto;
    flex-wrap: wrap;
    padding-top: 8px;
    padding-bottom: 8px;
  }
  .nx .sysnav-groups {
    flex-wrap: wrap;
  }
  .nx .sysnav-menu {
    position: static;
    min-width: 0;
    box-shadow: none;
  }
  .nx .sitemap {
    grid-template-columns: 1fr;
  }
}
.nx .doc-body ul {
  list-style: disc;
}
.nx .doc-body ol {
  list-style: decimal;
}
.nx .doc-body li::marker {
  color: var(--ink-3);
}
.nx .doc-body ol > li > b:first-child,
.nx .doc-body ol > li > strong:first-child {
  font-family: var(--display);
  font-weight: 650;
}

/* Homepage hero: the Web Lab full-bleed audience-panel treatment.
   Copy and process circuits remain authored in index.njk. */
.nx-home {
  --hero-human-signal: var(--red);
}
.nx .bill {
  --hero-ink: var(--ink-deep);
  --hero-muted: var(--ink-mid);
  --hero-line: color-mix(in oklch, var(--ink-deep), transparent 78%);
  --hero-cell: color-mix(in oklch, var(--background), var(--beige-100) 34%);
  --hero-accent: var(--org-on-light);
  --hero-edge: max(clamp(1.5rem, 4vw, 3rem), calc((100vw - 90rem) / 2 + 3rem));
  --hero-center: var(--hero-catalog-center-gutter);
  --hero-nav-top: calc(var(--space-2) + 2.125rem);
  --hero-nav-height: 4.125rem;
  --hero-safe-top: calc(var(--hero-nav-top) + var(--hero-nav-height) + var(--space-24));
  position: relative;
  overflow: clip;
  border-bottom: 1px solid var(--hero-line);
  background:
    radial-gradient(
      circle at 50% 0%,
      color-mix(in oklch, var(--tacet-orange), transparent 88%),
      transparent 42%
    ),
    var(--background);
  border-bottom-color: transparent;
}
html.dark .nx .bill {
  --hero-ink: var(--beige-100);
  --hero-muted: color-mix(in oklch, var(--beige-300), transparent 18%);
  --hero-line: color-mix(in oklch, var(--beige-200), transparent 82%);
  --hero-cell: color-mix(in oklch, var(--beige-900), var(--beige-950) 34%);
  --hero-accent: var(--org);
}
.nx .bill .split {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  grid-template-rows: auto auto auto auto auto;
  padding: 0;
}
.nx .half {
  --hero-hover-ink: var(--hero-catalog-on-solid);
  --hero-hover-muted: var(--hero-catalog-muted-on-solid);
  --hero-hover-bg: color-mix(in oklch, var(--hero-human-signal), var(--tacet-orange) 22%);
  --hero-action-bg: color-mix(in oklch, var(--hero-hover-bg), var(--ink-deep) 34%);
  --hero-action-ink: var(--hero-catalog-on-solid);
  --hero-heading-max: 8.35rem;
  position: relative;
  isolation: isolate;
  display: grid;
  grid-row: span 5;
  grid-template-rows: subgrid;
  row-gap: var(--space-6);
  min-width: 0;
  padding-block: var(--hero-safe-top) var(--space-6);
  color: var(--hero-ink);
  background-color: color-mix(in oklch, var(--hero-cell), transparent 15%);
  transition: background-color var(--hero-catalog-panel-duration) var(--ease-standard);
}
.nx .half.humans {
  background-color: color-mix(in oklab, var(--hero-cell), var(--tacet-orange) 5%);
  padding-inline: var(--hero-edge) var(--hero-center);
  text-align: right;
}
.nx .half.agents {
  background-color: color-mix(in oklab, var(--hero-cell), var(--beige-400) 8%);
  --hero-hover-bg: var(--hero-catalog-dark-ink);
  --hero-hover-muted: var(--hero-catalog-agent-dark-surface);
  --hero-action-bg: color-mix(
    in oklch,
    var(--hero-catalog-dark-ink),
    var(--hero-catalog-on-solid) 20%
  );
  padding-inline: var(--hero-center) var(--hero-edge);
  border-inline-start: 1px solid var(--hero-line);
  border-inline-start-color: transparent;
}
html.dark .nx .half.agents {
  --hero-hover-bg: var(--hero-catalog-agent-dark-surface);
  --hero-hover-ink: var(--hero-catalog-dark-ink);
  --hero-hover-muted: var(--hero-catalog-agent-dark-muted);
  --hero-action-bg: var(--hero-catalog-agent-dark-action);
}
.nx .half::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  opacity: 0;
  background:
    radial-gradient(
      circle at var(--hero-glare-x, 50%) var(--hero-glare-y, 32%),
      color-mix(in oklch, var(--hero-hover-ink), transparent 92%),
      transparent 50%
    ),
    linear-gradient(
      118deg,
      color-mix(in oklch, var(--hero-hover-bg), var(--hero-hover-ink) 18%) 0%,
      color-mix(in oklch, var(--hero-hover-bg), var(--hero-hover-ink) 7%) 16%,
      var(--hero-hover-bg) 36%,
      color-mix(in oklch, var(--hero-hover-bg), var(--hero-hover-ink) 12%) 54%,
      color-mix(in oklch, var(--hero-hover-bg), var(--hero-hover-ink) 3%) 74%,
      var(--hero-hover-bg) 88%,
      color-mix(in oklch, var(--hero-hover-bg), var(--hero-hover-ink) 7%) 100%
    );
  transition: opacity var(--hero-catalog-panel-duration) var(--ease-standard);
}
.nx .half:is(:focus-within, [data-hero-active]) {
  --hero-ink: var(--hero-hover-ink);
  --hero-muted: var(--hero-hover-muted);
  --hero-accent: var(--hero-hover-ink);
  --hero-line: color-mix(in oklch, var(--hero-hover-ink), transparent 65%);
  background-color: var(--hero-hover-bg);
}
.nx .half:is(:focus-within, [data-hero-active])::before {
  opacity: 1;
}
.nx .half .layer {
  display: flex;
  align-items: center;
  gap: var(--hero-catalog-eyebrow-gap);
  color: var(--hero-muted);
  font-family: var(--font-body);
  font-size: var(--hero-catalog-copy-size);
  font-weight: 650;
  line-height: 1.2;
}
.nx .humans .layer {
  justify-self: end;
  margin-inline-end: var(--space-4);
  text-align: right;
}
.nx .agents .layer {
  justify-self: start;
  margin-inline-start: var(--space-4);
  text-align: left;
}
.nx .layer .hero-catalog__layer-icon--agent {
  color: var(--hero-accent);
}
.nx .half h1,
.nx .half .h1 {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: var(--hf, clamp(2.55rem, 7vw, 8.35rem));
  line-height: 0.72;
  height: 1.5em;
  letter-spacing: 0;
  text-transform: uppercase;
  margin: 0;
  color: var(--hero-ink);
  white-space: nowrap;
}
.nx .humans h1 {
  text-align: right;
}
.nx .agents .h1 {
  color: var(--hero-accent);
  text-align: left;
}
.nx .half .sub {
  margin: 0;
  max-width: 42ch;
  min-height: 4.5em;
  font-size: clamp(0.925rem, 1.1vw, 1.075rem);
  font-weight: 550;
  line-height: 1.5;
  color: var(--hero-muted);
  text-shadow: none;
  display: flex;
  align-items: center;
}
.nx .humans .sub {
  margin-inline-start: auto;
}
.nx .half .cta {
  display: flex;
  align-items: stretch;
  gap: var(--space-3);
  margin: 0;
}
.nx .humans .cta {
  justify-content: flex-end;
}
.nx .half .cta .btn {
  flex: 0 1 auto;
  height: auto;
  min-height: var(--space-12);
  padding: var(--space-3) var(--space-4);
  font-family: var(--font-body);
  font-size: var(--text-btn);
  font-weight: 650;
  line-height: 1.25;
  white-space: normal;
  color: var(--hero-ink);
  border: 1px solid var(--hero-line);
  border-bottom: var(--border-width-md) solid var(--hero-accent);
  background: transparent;
  transform: none;
  transition:
    background-color var(--hero-catalog-panel-duration) var(--ease-standard),
    color var(--hero-catalog-panel-duration) var(--ease-standard);
}
.nx .half:is(:focus-within, [data-hero-active]) .cta .btn:not(.ghost) {
  background: var(--hero-action-bg);
  color: var(--hero-action-ink);
}
.nx .half .cta .btn.ghost {
  border: 0;
  border-bottom: 1px solid var(--hero-line);
}
.nx .half .cta .btn:hover {
  background: color-mix(in oklch, var(--hero-ink), transparent 90%);
}
.nx .half :is(a, button):focus-visible {
  outline: var(--outline-width) solid var(--hero-ink);
  outline-offset: var(--outline-offset);
}
/* Keep the existing circuit content and structure for the dedicated diagram pass. */
.nx .half .plate :is(.ph span, .lead) {
  color: var(--hero-muted);
}
.nx .half .plate :is(.lead b, .lead a, .lead .skills-copy-btn) {
  color: var(--hero-ink);
}
.nx .half .circuit .lbl {
  fill: var(--hero-ink);
}
.nx .half .circuit .lbl2 {
  fill: var(--hero-muted);
}
.nx .half .circuit .node {
  fill: var(--hero-cell);
  stroke: var(--hero-ink);
}
.nx .half .circuit .box {
  fill: var(--hero-cell);
  stroke: var(--hero-line);
}
.nx .half .circuit .path {
  stroke: var(--hero-line);
}
.nx .half .circuit .pulse {
  stroke: var(--org-on-light);
  filter: none;
}
.nx .half .circuit .callout {
  fill: var(--org-on-light);
}
.nx .half .plate .ph {
  flex-direction: column;
  align-items: flex-start;
  gap: var(--space-1);
  position: relative;
  text-align: left;
  transform: translateY(0);
  transition: transform 800ms cubic-bezier(0.2, 0.8, 0.2, 1);
}
.nx .half.agents .plate .ph {
  align-items: flex-end;
  text-align: right;
}
.nx .half .plate .ph span {
  white-space: normal;
}
.nx .half .plate .ph .proto-section-eyebrow {
  margin: 0;
}
.nx .half .plate .ph .proto-section-eyebrow__name {
  padding-bottom: var(--space-1);
  border-color: color-mix(in oklch, var(--hero-ink), transparent 65%);
}
.nx .half .plate .ph .proto-section-eyebrow__context {
  padding-bottom: var(--space-1);
  border-color: var(--hero-line);
}
@media (max-width: 64rem) {
  .nx .bill .split {
    grid-template-columns: minmax(0, 1fr);
    grid-template-rows: none;
  }
  .nx .half {
    --hero-heading-max: 5.45rem;
    grid-row: auto;
    grid-template-rows: auto auto auto auto auto;
    gap: var(--space-4);
  }
  .nx .half.humans,
  .nx .half.agents {
    padding-inline: var(--hero-edge);
    text-align: left;
  }
  .nx .half.agents {
    padding-block-start: var(--space-12);
    border-inline-start: 0;
    border-block-start: 1px solid var(--hero-line);
  }
  .nx .humans .layer,
  .nx .humans .cta {
    justify-content: flex-start;
  }
  .nx .humans .sub {
    margin-inline-start: 0;
  }
}
@media (prefers-reduced-motion: reduce) {
  .nx .half,
  .nx .half::before,
  .nx .half .cta .btn {
    transition: none;
  }
  .nx .half .circuit .pulse {
    animation: none;
  }
}
.nx-home .nx[data-home-catalog-stream] {
  position: relative;
}
.nx-home .nx[data-home-catalog-stream] .navwrap {
  position: absolute;
  inset: calc(var(--space-2) + 2.125rem) 0 auto;
  z-index: var(--z-nav);
  padding: 0;
  pointer-events: none;
}
.nx-home .nx[data-home-catalog-stream] .nav {
  position: relative;
  isolation: isolate;
  pointer-events: auto;
  width: min(calc((100% - 2rem) * 0.985), 70rem);
  height: 4.125rem;
  padding: var(--space-3);
  gap: var(--space-3);
  border: 1px solid color-mix(in oklch, var(--foreground), transparent 80%);
  border-radius: var(--radius-lg);
  background: color-mix(in oklch, var(--background), transparent 40%);
  color: var(--foreground);
  box-shadow: var(--shadow-sm);
  backdrop-filter: blur(16px) grayscale(1%) saturate(180%);
}
.nx-home .nx[data-home-catalog-stream] .nav::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -1;
  border-radius: inherit;
  opacity: 0.58;
  background: url('../images/proto/gradient-navbar-bg.png') top center / cover;
  pointer-events: none;
}
.nx-home .nx[data-home-catalog-stream] .nav .links {
  color: var(--foreground);
  font-size: var(--text-btn);
  gap: var(--space-6);
}
.nx-home .nx[data-home-catalog-stream] .nav .links a:hover {
  color: var(--org-on-light);
}
.nx-home .nx[data-home-catalog-stream] .nav .right .btn {
  color: var(--foreground);
  background: var(--background);
  border-color: var(--border);
  border-radius: var(--radius-sm);
}
html.dark .nx-home .nx[data-home-catalog-stream] .nav {
  background: color-mix(in oklch, var(--background) 90%, transparent);
}
html.dark .nx-home .nx[data-home-catalog-stream] .nav::before {
  opacity: 0.1;
}
html.dark .nx-home .nx[data-home-catalog-stream] .wordmark img {
  filter: brightness(0) invert(1);
}
.nx-home .nx[data-home-catalog-stream] .nx-quick-nav:not(.show) {
  visibility: hidden;
  pointer-events: none;
}
@media (max-width: 64rem) {
  .nx-home .nx[data-home-catalog-stream] .navwrap {
    display: none;
  }
  .nx-home .nx[data-home-catalog-stream] .nx-quick-nav:not(.show),
  .nx-home .nx[data-home-catalog-stream] .nx-quick-nav.show {
    visibility: visible;
    pointer-events: auto;
    top: calc(var(--space-2) + 2.125rem);
    width: min(calc((100% - 2rem) * 0.9), 25rem);
    height: 4.25rem;
    opacity: 1;
    transform: translate(-50%, 0);
    border-radius: var(--radius-lg);
    border-color: var(--border);
    background: var(--background);
    color: var(--foreground);
    box-shadow: var(--shadow-sm);
  }
  .nx-home .nx[data-home-catalog-stream] .nx-quick-nav .menu {
    width: 100%;
    background: var(--background);
    border-color: var(--border);
  }
  .nx-home .nx[data-home-catalog-stream] .nx-quick-nav .menu a,
  .nx-home .nx[data-home-catalog-stream] .nx-quick-nav button {
    color: var(--foreground);
  }
  .nx-home .nx[data-home-catalog-stream] .nx-quick-nav.open .wordmark {
    display: none;
  }
  .nx-home .nx[data-home-catalog-stream] .nx-quick-nav .q input::placeholder {
    color: var(--muted-foreground);
  }
}

@media (hover: hover) and (pointer: fine) {
  .nx .half:hover .hero-catalog__layer-icon {
    animation: hero-catalog-icon-signal var(--duration-cinema) var(--ease-standard) both;
  }
}
@media (prefers-reduced-motion: reduce) {
  .nx .half:hover .hero-catalog__layer-icon {
    animation: none;
  }
}

/* Two voices, one process: an editorial stage built into each hero panel. */
.nx .half .plate {
  margin: 0;
  padding: var(--space-4) 0 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  color: var(--hero-ink);
  height: 100%;
  display: grid;
  grid-template-rows: auto 1fr auto;
  gap: var(--space-1);
  position: relative;
  isolation: isolate;
  --hero-accent: var(--org-on-light);
  z-index: 2;
  min-height: calc(var(--space-24) + var(--space-16) + var(--space-4));
}
.nx .half .plate .ph :is(.proto-section-eyebrow__name, .proto-section-eyebrow__context) {
  font-family: var(--font-body);
  font-weight: 600;
  position: relative;
  font-size: 14px;
  line-height: 18px;
  letter-spacing: -0.015em;
  color: var(--hero-ink);
  transform: translateY(0);
  transition:
    transform 650ms var(--ease-decelerate),
    color 450ms;
}
.nx .half .plate .lead {
  font-size: 12px;
  line-height: 1.5;
  gap: var(--space-3);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: translateY(4px);
  transition:
    opacity 250ms var(--ease-standard),
    transform 350ms var(--ease-decelerate),
    visibility 0s 250ms;
  --closing-ink: var(--hero-hover-bg);
  background: var(--hero-hover-ink);
  color: var(--closing-ink);
  padding: var(--space-2) var(--hero-center) var(--space-2) var(--hero-edge);
  margin: calc(-1 * var(--space-2)) calc(-1 * var(--hero-center)) calc(-1 * var(--space-2))
    calc(-1 * var(--hero-edge));
  min-width: 0;
  margin-block: 0;
  /* Visibility preserves the closing row's space before audience focus. */
  overflow: hidden;
}
.nx .half .plate .lead em {
  color: var(--hero-accent);
}
.nx .half .plate .lead :is(a, .skills-copy-btn) {
  border-color: var(--hero-line);
  border-color: currentColor;
}

.nx .hero-flow {
  min-width: 0;
  display: grid;
  gap: var(--space-1);
}
.nx .hero-flow__viewport {
  overflow: visible;
}
.nx .hero-flow__steps {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  list-style: none;
  padding: 0;
  margin: 0;
  min-width: 0;
}
.nx .hero-flow__step {
  position: relative;
  min-width: 0;
  isolation: isolate;
}
.nx .hero-flow__step button {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
  padding: 0 4px;
  border: 0;
  background: none;
  cursor: pointer;
  color: var(--hero-ink);
  text-align: center;
}
.nx .hero-flow__step svg {
  width: 56px;
  height: 56px;
  overflow: visible;
  fill: none;
  stroke: var(--hero-muted);
  stroke-width: 1.25;
  stroke-linecap: round;
  stroke-linejoin: round;
  transform: scale(1);
  transform-origin: center;
  transition:
    transform 650ms var(--ease-decelerate),
    stroke-width 450ms,
    color 500ms,
    filter 500ms;
}
.nx .hero-flow__step .flow-surface {
  fill: var(--hero-accent);
  fill-opacity: 0.06;
  stroke: var(--hero-muted);
  transition:
    fill 600ms,
    stroke 600ms;
}
.nx .hero-flow__step strong {
  display: block;
  font: 600 12px/1.3 var(--font-body);
  margin-top: 4px;
  color: var(--hero-ink);
  transition:
    color 600ms,
    text-shadow 600ms;
}
.nx .hero-flow__detail {
  display: block;
  margin-top: 4px;
  font: 10px/1.35 var(--font-mono);
  color: var(--hero-muted);
  min-height: 27px;
}
.nx .hero-flow__step .flow-aura {
  stroke: var(--hero-accent);
  stroke-width: 1.25;
  fill: none;
  opacity: 0;
  transform: scale(1.08);
  transform-origin: center;
  transform-box: fill-box;
  pointer-events: none;
}
.nx .hero-flow__step.is-current .flow-aura {
  opacity: 0.5;
  animation: flow-breathe 1900ms var(--ease-decelerate) infinite;
}
.nx .hero-flow__step.is-current svg {
  stroke: var(--hero-accent);
  stroke-width: 2.25;
  transform: scale(1.2);
  filter: drop-shadow(0 0 8px color-mix(in oklch, var(--hero-accent), transparent 60%));
}
.nx .hero-flow__step.is-current .flow-surface {
  stroke: var(--hero-accent);
  stroke-width: 2.25;
  fill: var(--hero-accent);
  fill-opacity: 0.14;
}
.nx .hero-flow__step.is-current strong {
  color: var(--hero-accent);
  text-shadow: 0 0 16px color-mix(in oklch, var(--hero-accent), transparent 70%);
}
.nx .hero-flow__step .flow-check {
  stroke-dasharray: 36;
  stroke-dashoffset: 36;
  transition: stroke-dashoffset 700ms var(--ease-standard);
}
.nx .hero-flow__step.is-passing .flow-check,
.nx .hero-flow__step.is-done .flow-check {
  stroke-dashoffset: 0;
}
.nx .hero-flow__step.is-passing .flow-gate,
.nx .hero-flow__step.is-done .flow-gate {
  opacity: 0;
}
.nx .hero-flow__step .flow-gate {
  transition: opacity 400ms;
}
.nx .hero-flow__step.is-current .flow-ink {
  stroke-dasharray: 50;
  animation: flow-write 1200ms var(--ease-standard) both;
}
.nx .hero-flow__step.is-current .flow-input {
  stroke-dasharray: 8 5;
  animation: flow-converge 900ms linear infinite;
}
.nx .hero-flow__connection {
  position: absolute;
  top: 28px;
  left: calc(50% + 26px);
  width: calc(100% - 52px);
  height: 1px;
  background: var(--hero-line);
  z-index: -1;
}
.nx .hero-flow__step:last-child .hero-flow__connection {
  display: none;
}
.nx .hero-flow__connection i {
  position: absolute;
  left: -32px;
  top: -1px;
  width: 32px;
  height: 3px;
  border-radius: 3px;
  background: linear-gradient(90deg, transparent, var(--hero-accent));
  opacity: 0;
}
.nx .hero-flow__connection i::after {
  content: '';
  position: absolute;
  right: -2px;
  top: -1px;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--hero-accent);
  box-shadow: 0 0 9px var(--hero-accent);
}
.nx .hero-flow__step.is-passing .hero-flow__connection i {
  animation: flow-transfer 1100ms var(--ease-standard) both;
}
.nx .hero-flow__step.is-done .hero-flow__connection {
  background: color-mix(in oklch, var(--hero-accent), transparent 55%);
}
.nx .hero-flow__footer {
  position: relative;
  min-height: 24px;
  padding-inline-end: var(--space-8);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-2);
}
.nx .hero-flow__caption {
  margin: 0;
  font: 9px/1.4 var(--font-mono);
  color: var(--hero-muted);
}
.nx .hero-flow__toggle {
  flex: none;
  display: grid;
  place-items: center;
  position: absolute;
  right: calc(-1 * var(--space-4));
  top: 50%;
  transform: translateY(-50%);
  width: 44px;
  height: 44px;
  padding: var(--space-4);
  background: none;
  border: 0;
  color: var(--hero-muted);
  cursor: pointer;
}
.nx .hero-flow__toggle[hidden] {
  display: none;
}
.nx .hero-flow__toggle svg {
  width: 12px;
  height: 12px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.5;
}
.nx .hero-flow__toggle .flow-play,
.nx .hero-flow__toggle[aria-pressed='true'] .flow-pause {
  display: none;
}
.nx .hero-flow__toggle[aria-pressed='true'] .flow-play {
  display: block;
}
.nx .hero-flow[data-moving='false'] * {
  animation-play-state: paused !important;
}
@keyframes flow-breathe {
  0% {
    opacity: 0.6;
    transform: scale(1.08);
  }
  75%,
  100% {
    opacity: 0;
    transform: scale(1.45);
  }
}
@keyframes flow-write {
  from {
    stroke-dashoffset: 50;
  }
  to {
    stroke-dashoffset: 0;
  }
}
@keyframes flow-converge {
  to {
    stroke-dashoffset: -26;
  }
}
@keyframes flow-transfer {
  0% {
    opacity: 0;
    transform: translateX(0) scaleX(0.6);
  }
  12% {
    opacity: 1;
    transform: translateX(-7px) scaleX(0.45);
  }
  24% {
    opacity: 1;
    transform: translateX(-7px) scaleX(0.65);
  }
  60% {
    opacity: 1;
    transform: translateX(calc(var(--flow-link-width, 64px) * 0.85)) scaleX(1.35);
  }
  82% {
    opacity: 1;
    transform: translateX(calc(var(--flow-link-width, 64px) + 3px)) scaleX(0.8);
  }
  100% {
    opacity: 0;
    transform: translateX(var(--flow-link-width, 64px)) scaleX(1);
  }
}
@media (prefers-reduced-motion: reduce) {
  .nx .hero-flow *,
  .nx .hero-flow *::after {
    animation: none !important;
    transition: none !important;
  }
  .nx .hero-flow__step .flow-check {
    stroke-dashoffset: 0;
  }
  .nx .hero-flow__step .flow-gate {
    opacity: 0;
  }
  .nx .hero-flow__toggle {
    display: none;
  }
}

.nx .hero-flow[data-moving='false'] .flow-ink {
  animation: none;
  stroke-dashoffset: 0;
}
@media (max-width: 40rem) {
  .nx .hero-flow__step svg {
    width: 40px;
    height: 40px;
  }
  .nx .hero-flow__step strong {
    font-size: 10px;
    min-height: 26px;
  }
  .nx .hero-flow__detail {
    font-size: 9px;
  }
  .nx .hero-flow__connection {
    top: 20px;
    left: calc(50% + 18px);
    width: calc(100% - 36px);
  }
  .nx .hero-flow__step button {
    padding-inline: 2px;
  }
}

/* Audience focus: the process rests on glass, then lifts into its panel. */
.nx .half.agents .plate {
  --hero-accent: color-mix(in oklab, var(--pur-on-light) 60%, var(--org-on-light));
}
.nx .half .plate::before {
  content: '';
  position: absolute;
  z-index: -1;
  pointer-events: none;
  inset: 0 calc(-1 * var(--hero-center)) calc(-1 * var(--space-6)) calc(-1 * var(--hero-edge));
  background: linear-gradient(
    160deg,
    color-mix(in oklch, var(--background), transparent 20%),
    color-mix(in oklch, var(--hero-accent), transparent 94%)
  );
  opacity: 1;
  transition: opacity 650ms var(--ease-standard);
  box-shadow: 0 -12px 28px
    color-mix(
      in oklch,
      var(--ink-deep),
      transparent calc(100% - var(--hero-scroll-shadow, 0) * 15%)
    );
  top: calc(-1 * var(--space-6));
  bottom: 0;
  backdrop-filter: blur(24px) saturate(115%);
  mask-image: linear-gradient(to bottom, transparent, #000 var(--space-8));
}
.nx .half.agents .plate::before {
  left: calc(-1 * var(--hero-center));
  right: calc(-1 * var(--hero-edge));
}
.nx .half .hero-flow__viewport {
  transform: translateY(2px) scale(0.91);
  transform-origin: center;
  transition:
    transform 800ms cubic-bezier(0.2, 0.8, 0.2, 1),
    opacity 600ms var(--ease-standard);
}
.nx .half:is(:focus-within, [data-hero-active]) .plate {
  --hero-accent: var(--hero-hover-ink);
}
.nx .half:is(:focus-within, [data-hero-active]) .plate::before {
  opacity: 0;
  opacity: var(--hero-scroll-shadow, 0);
  background: var(--hero-hover-bg);
  background: color-mix(in oklch, var(--hero-hover-bg), transparent 10%);
}
.nx .half:is(:focus-within, [data-hero-active]) .hero-flow__viewport {
  transform: translateY(-4px) scale(1.025);
}
.nx
  .bill:has(.half:is(:focus-within, [data-hero-active]))
  .half:not(:is(:focus-within, [data-hero-active]))
  .hero-flow__viewport {
  transform: translateY(3px) scale(0.88);
  opacity: 0.85;
}
.nx .hero-flow__step.is-current .flow-gate {
  stroke-dasharray: 100;
  animation: flow-write 1100ms var(--ease-standard) both;
}
.nx .hero-flow__step.is-passing svg {
  animation: flow-recoil 1100ms var(--ease-standard) both;
}
@keyframes flow-recoil {
  0% {
    transform: scale(1.2);
  }
  18%,
  24% {
    transform: translateX(-2px) scale(0.99, 1.12);
  }
  44% {
    transform: translateX(2px) scale(1.3, 1.17);
  }
  72% {
    transform: scale(1.16, 1.22);
  }
  100% {
    transform: scale(1.2);
  }
}
@media (max-width: 64rem) {
  .nx .half .plate::before,
  .nx .half.agents .plate::before {
    left: calc(-1 * var(--hero-edge));
    right: calc(-1 * var(--hero-edge));
  }
}
@media (prefers-reduced-motion: reduce) {
  .nx .half .hero-flow__viewport,
  .nx .half .plate::before {
    transition: none;
  }
  .nx .half .hero-flow__viewport,
  .nx .half:is(:focus-within, [data-hero-active]) .hero-flow__viewport,
  .nx
    .bill:has(.half:is(:focus-within, [data-hero-active]))
    .half:not(:is(:focus-within, [data-hero-active]))
    .hero-flow__viewport {
    transform: none;
  }
}

/* The scene title and its byline share each panel’s outer alignment. */

.nx .half .plate .ph > span {
  line-height: 1.4;
  font-size: 10px;
  color: var(--hero-accent);
  letter-spacing: 0.025em;
  transition:
    color 450ms,
    transform 650ms var(--ease-decelerate);
}
/* Lift the title and byline together as the diagram expands into this space. */
.nx .half:is(:focus-within, [data-hero-active]) .plate .ph {
  transform: translateY(calc(-1 * var(--space-4)));
}
.nx .plate[data-flow-phase='passing'][data-flow-moving='true'] .ph > span {
  animation: flow-annotation 1100ms var(--ease-standard) both;
}
@keyframes flow-annotation {
  0%,
  100% {
    opacity: 0.8;
    text-shadow: none;
  }
  35% {
    opacity: 1;
    text-shadow: 0 0 12px color-mix(in oklch, var(--hero-accent), transparent 35%);
  }
}
/* Independent translate lets the wave coexist with the SVG's selection recoil. */
.nx .hero-flow__step:nth-child(1) {
  --flow-wave-delay: 0ms;
}
.nx .hero-flow__step:nth-child(2) {
  --flow-wave-delay: 100ms;
}
.nx .hero-flow__step:nth-child(3) {
  --flow-wave-delay: 200ms;
}
.nx .hero-flow__step:nth-child(4) {
  --flow-wave-delay: 300ms;
}
.nx .hero-flow__step:nth-child(5) {
  --flow-wave-delay: 400ms;
}
.nx .half:is(:focus-within, [data-hero-active]) .hero-flow__step button {
  animation: flow-audience-wave 900ms cubic-bezier(0.22, 1, 0.36, 1) var(--flow-wave-delay) both;
}
@keyframes flow-audience-wave {
  0%,
  100% {
    translate: 0 0;
  }
  22% {
    translate: 0 2px;
  }
  48% {
    translate: 0 -8px;
  }
  76% {
    translate: 0 1px;
  }
}
@media (max-width: 40rem) {
  .nx .half .plate .ph :is(.proto-section-eyebrow__name, .proto-section-eyebrow__context) {
    font-size: 12px;
  }
  .nx .half .plate .ph > span {
    font-size: 9px;
  }
}
@media (prefers-reduced-motion: reduce) {
  .nx .half .plate .ph,
  .nx .half:is(:focus-within, [data-hero-active]) .plate .ph,
  .nx .half .plate .ph .proto-section-eyebrow,
  .nx .half .plate .ph > span {
    animation: none !important;
    transition: none;
    transform: none;
  }
}

/* Reserve the closing line, revealing its repeated action only in audience focus. */
.nx .half:is(:focus-within, [data-hero-active]) .plate .lead {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translateY(0);
  transition-delay: 0s;
}
@media (prefers-reduced-motion: reduce) {
  .nx .half .plate .lead {
    transition: none;
    transform: none;
  }
}

/* Audience closing actions form a contrasting underline toward the shared seam. */
.nx .half.humans .plate .lead {
  justify-content: flex-end;
  text-align: right;
}
.nx .half.agents .plate .lead {
  justify-content: flex-start;
  text-align: left;
  padding-inline: var(--hero-center) var(--hero-edge);
  margin-inline: calc(-1 * var(--hero-center)) calc(-1 * var(--hero-edge));
}
.nx .half .plate .lead :is(span, b, em, a, .skills-copy-btn) {
  color: var(--closing-ink);
}
.nx .half .plate .lead :is(a, .skills-copy-btn):focus-visible {
  outline-color: var(--closing-ink);
}
.nx .bill + .strip {
  --hero-edge: max(clamp(1.5rem, 4vw, 3rem), calc((100vw - 90rem) / 2 + 3rem));
  --hero-center: var(--hero-catalog-center-gutter);
  position: relative;
  z-index: 3;
  padding-inline: 0;
  isolation: isolate;
  background: transparent;
  backdrop-filter: none;
  border-bottom: 0;
  box-shadow: none;
  margin-bottom: calc(-1 * var(--hero-depth-tail, 0px));
}
.nx .bill + .strip > div {
  min-width: 0;
  gap: var(--space-3);
  font-size: 14px;
  padding-block: var(--space-4);
  position: relative;
  isolation: isolate;
  border: 0;
  --strip-ink: var(--hero-catalog-on-solid);
  --strip-bg: color-mix(in oklch, var(--hero-human-signal), var(--tacet-orange) 22%);
  color: var(--strip-ink);
}
.nx .bill + .strip > div:first-child {
  padding-inline: var(--hero-edge) var(--hero-center);
  justify-content: flex-end;
  text-align: right;
}
.nx .bill + .strip > div:last-child {
  padding-inline: var(--hero-center) var(--hero-edge);
  justify-content: flex-start;
  text-align: left;
  --strip-bg: var(--hero-catalog-dark-ink);
}
@media (max-width: 64rem) {
  .nx .half .plate .lead,
  .nx .half.agents .plate .lead {
    margin-inline: calc(-1 * var(--hero-edge));
    padding-inline: var(--hero-edge);
    justify-content: flex-start;
    text-align: left;
  }
  .nx .bill + .strip {
    grid-template-columns: 1fr;
  }
  .nx .bill + .strip > div:first-child,
  .nx .bill + .strip > div:last-child {
    padding-inline: var(--hero-edge);
    justify-content: flex-start;
    text-align: left;
  }
}

/* Tight closing rhythm; feather only the glass, never the readable foreground. */
.nx .bill .half {
  padding-bottom: 0;
}
.nx .bill + .strip::before {
  position: absolute;
  z-index: -1;
  pointer-events: none;
  inset: calc(-1 * var(--space-4)) 0 0;
  background: color-mix(in oklch, var(--background), transparent 6%);
  backdrop-filter: blur(24px);
  mask-image: linear-gradient(to bottom, transparent, #000 var(--space-6));
  content: none;
}

/* Moving frames leave an uninterrupted surface behind them. */
.nx .half.agents::after {
  content: '';
  position: absolute;
  top: 0;
  bottom: var(--hero-seam-lift, 0px);
  left: -1px;
  width: 1px;
  background: var(--hero-line);
  pointer-events: none;
}
@media (max-width: 64rem) {
  .nx .half.agents::after {
    display: none;
  }
}

/* One clear entry point, followed by a quiet alternative. */
.nx .half > .cta {
  position: relative;
  z-index: 1;
  flex-direction: column;
  align-items: flex-start;
  gap: 0;
}
.nx .half.humans > .cta {
  align-items: flex-end;
}
.nx .half > .cta .btn:not(.ghost) {
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-6);
  min-height: 52px;
  padding: var(--space-3) var(--space-6);
  border: 0;
  border-radius: var(--radius-sm);
  background: var(--ink-deep);
  color: var(--beige-100);
  font-size: 15px;
  font-weight: 650;
  box-shadow: 0 2px 4px color-mix(in oklch, var(--ink-deep), transparent 90%);
  transition:
    background-color 200ms,
    color 200ms,
    transform 150ms var(--ease-decelerate),
    box-shadow 200ms;
}
.nx .half:is(:focus-within, [data-hero-active]) > .cta .btn:not(.ghost) {
  background: var(--hero-hover-ink);
  color: var(--hero-hover-bg);
}
.nx .half > .cta .btn.ghost {
  min-height: 36px;
  padding: var(--space-2) 0;
  border: 0;
  border-radius: 0;
  background: none;
  box-shadow: none;
  color: var(--hero-muted);
  font-size: 12px;
  font-weight: 400;
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 4px;
  text-decoration-color: color-mix(in oklch, currentColor, transparent 65%);
  transition:
    color 150ms,
    text-decoration-color 150ms;
}
.nx .half > .cta .btn.ghost:hover {
  color: var(--hero-ink);
  text-decoration-color: currentColor;
}
.nx .half > .cta .hero-cta-arrow {
  width: 18px;
  height: 18px;
  stroke-width: 2;
  transition: transform 180ms var(--ease-decelerate);
}
@media (hover: hover) and (pointer: fine) {
  .nx .half > .cta .btn:not(.ghost):hover .hero-cta-arrow {
    transform: translateX(3px);
  }
  .nx .half > .cta .btn:not(.ghost):hover {
    box-shadow: 0 4px 12px color-mix(in oklch, var(--ink-deep), transparent 82%);
  }
}
.nx .half > .cta .btn:not(.ghost):active {
  transform: scale(0.96);
}
@media (max-width: 64rem) {
  .nx .half.humans > .cta {
    align-items: flex-start;
  }
}
@media (prefers-reduced-motion: reduce) {
  .nx .half > .cta .btn,
  .nx .half > .cta .hero-cta-arrow {
    transition: none;
  }
  .nx .half > .cta .btn:not(.ghost):active,
  .nx .half > .cta .btn:not(.ghost):hover .hero-cta-arrow {
    transform: none;
  }
}

html.dark .nx .half:not(:is(:focus-within, [data-hero-active])) > .cta .btn:not(.ghost) {
  background: var(--beige-100);
  color: var(--ink-deep);
}

/* The final row retains each audience's color, even after pointer exit. */
.nx .bill + .strip > div::before {
  content: '';
  position: absolute;
  pointer-events: none;
  z-index: -1;
  inset: 0;
  background: linear-gradient(
    118deg,
    color-mix(in oklch, var(--strip-bg), var(--strip-ink) 18%) 0%,
    color-mix(in oklch, var(--strip-bg), var(--strip-ink) 7%) 16%,
    var(--strip-bg) 36%,
    color-mix(in oklch, var(--strip-bg), var(--strip-ink) 12%) 54%,
    color-mix(in oklch, var(--strip-bg), var(--strip-ink) 3%) 74%,
    var(--strip-bg) 88%,
    color-mix(in oklch, var(--strip-bg), var(--strip-ink) 7%) 100%
  );
}
.nx .bill + .strip .arr {
  color: var(--strip-ink);
  opacity: 0.75;
}
.nx .bill + .strip code {
  color: var(--strip-ink);
  background: color-mix(in oklch, var(--strip-ink), transparent 92%);
  border-color: color-mix(in oklch, var(--strip-ink), transparent 70%);
}
html.dark .nx .bill + .strip > div:last-child {
  --strip-bg: var(--hero-catalog-agent-dark-surface);
  --strip-ink: var(--hero-catalog-dark-ink);
}
@media (max-width: 64rem) {
  .nx .bill + .strip > div:first-child::before {
    bottom: 0;
  }
}

/* Close the space vacated by the lifted row with the page surface. */
.nx .bill + .strip::after {
  position: absolute;
  z-index: -2;
  pointer-events: none;
  top: 100%;
  left: 0;
  right: 0;
  height: var(--hero-depth-tail, 0px);
  background: var(--background);
  content: none;
}

/* Fit all three hero layers on desktop/tablet from a 780px viewport. */
@media (min-width: 48rem) and (max-height: 900px), (min-width: 48rem) and (max-width: 64rem) {
  .nx .bill {
    --hero-safe-top: calc(var(--hero-nav-top) + var(--hero-nav-height) + var(--space-12));
    --hero-edge: var(--space-6);
    --hero-center: var(--space-6);
  }
  .nx .bill .split {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    grid-template-rows: auto auto auto auto auto;
  }
  .nx .bill .half {
    --hero-heading-max: 5rem;
    grid-row: span 5;
    grid-template-rows: subgrid;
    row-gap: var(--space-3);
    padding-top: var(--hero-safe-top);
  }
  .nx .bill .half.agents {
    border-block-start: 0;
    padding-inline: var(--hero-center) var(--hero-edge);
  }
  .nx .bill .half.humans {
    padding-inline: var(--hero-edge) var(--hero-center);
  }
  .nx .bill .humans .layer {
    justify-self: end;
  }
  .nx .bill .humans > .cta {
    align-items: flex-end;
  }
  .nx .bill .half .sub {
    min-height: 3em;
    font-size: 14px;
  }
  .nx .bill .half .plate {
    padding-top: var(--space-2);
  }
  .nx .bill + .strip {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    --hero-edge: var(--space-6);
    --hero-center: var(--space-6);
  }
  .nx .bill + .strip > div {
    font-size: 12px;
    gap: var(--space-2);
    padding-block: var(--space-3);
  }
  .nx .bill + .strip > div:first-child {
    justify-content: flex-end;
    text-align: right;
  }
  .nx .half.agents::after {
    display: block;
  }
}
@media (min-width: 48rem) and (max-width: 64rem) {
  .nx .hero-flow__step svg {
    width: 40px;
    height: 40px;
  }
  .nx .hero-flow__step strong {
    font-size: 10px;
    min-height: 26px;
  }
  .nx .hero-flow__detail {
    font-size: 9px;
  }
  .nx .hero-flow__connection {
    top: 20px;
    left: calc(50% + 18px);
    width: calc(100% - 36px);
  }
  .nx .half .plate .ph :is(.proto-section-eyebrow__name, .proto-section-eyebrow__context) {
    font-size: 12px;
  }
  .nx .half .plate .ph > span {
    font-size: 9px;
  }
}

@media (min-width: 48rem) and (max-width: 64rem) {
  .nx .bill .half {
    row-gap: var(--space-2);
  }
  .nx .half .plate .lead {
    row-gap: var(--space-1);
    padding-block: var(--space-1);
  }
}

/* Search is the quiet, deliberate entry into the catalog. */
.nx .search form:focus-within {
  border-color: var(--org-on-light);
  box-shadow:
    0 0 0 3px color-mix(in oklch, var(--org-on-light), transparent 88%),
    var(--tacet-shadow-md);
}
.nx .search-glyph {
  width: 24px;
  height: 24px;
  flex: none;
  color: var(--muted-foreground);
}
.nx .search input:focus {
  outline: none;
  box-shadow: none;
}
.nx .search form button {
  align-self: stretch;
  min-width: 108px;
  padding: var(--space-3) var(--space-6);
  border-radius: var(--radius-sm);
  background: color-mix(in oklch, var(--foreground), var(--background) 88%);
  color: var(--ink-2);
  font-size: 15px;
  transition:
    background-color 200ms,
    color 200ms,
    transform 150ms;
}
.nx .search form[data-has-query='true'] button {
  background: var(--foreground);
  color: var(--background);
}
.nx .search form button:active {
  transform: scale(0.97);
}
.nx .search-categories {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  max-width: 1200px;
  margin: var(--space-4) auto 0;
  margin-top: var(--space-2);
}
.nx .category-track {
  display: flex;
  width: max-content;
}
.nx .category-group {
  display: flex;
  flex: none;
  gap: var(--space-2);
  padding: var(--space-2) var(--space-2) var(--space-2) 0;
}
.nx .search-categories[data-ready='true'] .category-track {
  animation: category-drift var(--category-duration, 100s) linear infinite;
}
.nx .search-categories:is(:hover, :focus-within, [data-visible='false']) .category-track {
  animation-play-state: paused;
}
.nx .search .chips:focus-within {
  overflow-x: auto;
  mask-image: none;
}
.nx .search .chips:focus-within .category-track {
  animation: none;
}
@keyframes category-drift {
  to {
    transform: translateX(calc(-1 * var(--category-width)));
  }
}
@media (max-width: 40rem) {
  .nx .search form {
    height: 72px;
    gap: var(--space-2);
    padding: var(--space-2) var(--space-2) var(--space-2) var(--space-3);
  }
  .nx .search-glyph {
    width: 18px;
    height: 18px;
  }
  .nx .search form button {
    min-width: 68px;
    padding-inline: var(--space-3);
    font-size: 13px;
  }
  .nx .search .chips a {
    font-size: 12px;
  }
}
@media (prefers-reduced-motion: reduce) {
  .nx .search-categories .category-track {
    animation: none !important;
  }
  .nx .search .chips {
    overflow-x: auto;
  }
  .nx .category-group[aria-hidden='true'] {
    display: none;
  }
  .nx .search form,
  .nx .search form button {
    transition: none;
  }
}

/* Keep focused categories scrollable without exposing a scrollbar rail. */
.nx .search .chips::-webkit-scrollbar {
  display: none;
}

/* The catalog reclaims the reveal's vacated space; each boundary has one owner. */
.nx .search + #rows > .row-sec:first-child {
  padding-top: var(--space-8);
}
.nx .search + #rows > .row-sec:first-child .row-head {
  margin-bottom: var(--space-4);
}

/* Balance rotating copy inside its stable reserve instead of leaving a CTA gulf. */
@media (min-width: 48rem) {
  .nx .humans .sub {
    justify-content: flex-end;
    text-align: right;
  }
}

body:has(.back-to-search) {
  --search-return-size: 3.5rem;
}

/* Reserve the floating control's final slot in the footer's shared center line. */
.site-footer__utilities--search-return {
  flex-wrap: nowrap;
  flex-shrink: 0;
  min-block-size: var(--search-return-size);
}
.site-footer__utilities--search-return > * {
  flex-shrink: 0;
  white-space: nowrap;
}

.site-footer__utilities--search-return::after {
  content: '';
  flex: 0 0 var(--search-return-size);
  /* Include the dock in intrinsic sizing in Safari and Firefox. */
  inline-size: var(--search-return-size);
  block-size: var(--search-return-size);
}
@media (max-width: 42rem) {
  .site-footer__utilities--search-return {
    inline-size: 100%;
    gap: var(--space-3);
    justify-content: flex-end;
  }
}

.back-to-search {
  position: fixed;
  right: var(--space-6);
  bottom: calc(var(--space-6) + env(safe-area-inset-bottom, 0px));
  z-index: 80;
  display: grid;
  place-items: center;
  width: var(--search-return-size);
  height: var(--search-return-size);
  translate: var(--search-dock-x, 0px) var(--search-dock-y, 0px);
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: var(--foreground);
  color: var(--background);
  cursor: pointer;
  box-shadow: var(--tacet-shadow-lg);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition:
    opacity 180ms var(--ease-standard),
    visibility 180ms,
    transform 180ms var(--ease-standard);
}
.back-to-search[data-visible='true'] {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}
.back-to-search[hidden] {
  display: none;
}
.back-to-search:hover {
  transform: translateY(-2px);
}
.back-to-search:active {
  transform: scale(0.95);
}
.back-to-search:focus-visible {
  outline: 2px solid var(--org-on-light);
  outline-offset: 4px;
}
.back-to-search-arrow {
  width: 24px;
  height: 24px;
}
.search-progress {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  fill: none;
  stroke-width: 2;
  transform: rotate(-90deg);
  pointer-events: none;
}
.search-progress-track {
  stroke: currentColor;
  opacity: 0.2;
}
.search-progress-value {
  stroke: var(--tacet-orange, var(--org-on-light));
  stroke-dasharray: 100;
  stroke-dashoffset: var(--search-progress-offset, 100);
  stroke-linecap: round;
}
@media (max-width: 40rem) {
  .back-to-search {
    right: var(--space-4);
    bottom: calc(var(--space-4) + env(safe-area-inset-bottom, 0px));
  }
}
@media (prefers-reduced-motion: reduce) {
  .back-to-search {
    transition: none;
  }
}

/* Playback controls stay on the inner alignment rails, outside scene scaling. */
.nx .agents .hero-flow__footer {
  padding-inline: var(--space-8) 0;
  justify-content: flex-end;
}
.nx .agents .hero-flow__toggle {
  right: auto;
  left: calc(-1 * var(--space-4));
}
.nx .hero-flow__toggle:focus-visible {
  outline: 2px solid var(--hero-accent);
  outline-offset: -4px;
  border-radius: var(--radius-sm);
}

@media (prefers-reduced-motion: reduce) {
  .nx *,
  .nx *::before,
  .nx *::after {
    animation: none !important;
    transition: none !important;
    scroll-behavior: auto !important;
  }
  .nx #preview {
    transform: none !important;
  }
}

/* Catalog material: the existing pigment and photograph persist through expansion. */
.nx[data-home-catalog-stream] {
  --catalog-radius: 24px;
  --catalog-rail-inset: max(32px, calc((100vw - 1720px) / 2));
}
.nx[data-home-catalog-stream] .row-sec.pad {
  padding-inline: var(--catalog-rail-inset);
}
.nx[data-home-catalog-stream] .row-wrap {
  margin-inline: calc(-1 * var(--catalog-rail-inset));
}
.nx[data-home-catalog-stream] .track {
  gap: 20px;
  padding: 16px var(--catalog-rail-inset) 36px;
  scroll-padding-inline: var(--catalog-rail-inset);
  margin-top: -16px;
}
.nx[data-home-catalog-stream] .row-wrap .arrow {
  top: 50%;
  bottom: auto;
  width: 44px;
  height: 44px;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: var(--paper);
  color: var(--ink);
  box-shadow: var(--tacet-shadow-sm);
  transform: translateY(-50%);
  opacity: 0.8;
  z-index: 4;
  transition:
    opacity 160ms,
    box-shadow 160ms;
}
.nx[data-home-catalog-stream] .row-wrap .arrow.l {
  left: 12px;
}
.nx[data-home-catalog-stream] .row-wrap .arrow.r {
  right: 12px;
}
.nx[data-home-catalog-stream] .row-wrap .arrow:is(:hover, :focus-visible) {
  opacity: 1;
  box-shadow: var(--tacet-shadow-md);
}
.nx[data-home-catalog-stream] .row-wrap .arrow svg {
  width: 22px;
  height: 22px;
}
.nx[data-home-catalog-stream] :is(.card:not(.ask), #preview) {
  --card-halo-light: color-mix(in srgb, var(--pc) 78%, var(--white));
  --card-halo-deep: color-mix(in srgb, var(--pc) 92%, var(--pi));
  border: 1px solid color-mix(in srgb, var(--pi) 16%, var(--pc));
  border-radius: var(--catalog-radius);
  padding: 0;
  color: var(--pi);
  background: var(--pc);
  box-shadow: var(--tacet-shadow-xs), var(--tacet-shadow-sm);
}
.nx[data-home-catalog-stream] .card:not(.ask):is(:hover, :focus-visible, .on) {
  border-color: color-mix(in srgb, var(--pi) 25%, var(--pc));
}
.nx[data-home-catalog-stream] .card:focus-visible {
  outline: 2px solid var(--pi);
  outline-offset: -4px;
}
.nx[data-home-catalog-stream] .track.dim .card:not(.on) {
  opacity: 0.85;
}
.nx[data-home-catalog-stream] :is(.card, #preview) .phead {
  position: relative;
  z-index: 2;
  padding: var(--space-6) var(--space-6) 0;
  min-height: 0;
  background:
    radial-gradient(ellipse 360px 140px at 12% 0%, var(--card-halo-light), transparent), var(--pc);
}
.nx[data-home-catalog-stream] :is(.card, #preview) .top {
  display: flex;
  justify-content: flex-start;
  align-items: center;
  gap: 12px;
  margin-bottom: var(--space-4);
}
.nx[data-home-catalog-stream] :is(.card, #preview) h3 {
  margin: 0;
  min-height: 0;
  font-family: var(--display);
  font-size: 25px;
  font-weight: 650;
  line-height: 1.12;
  letter-spacing: -0.02em;
  color: var(--pi);
  text-wrap: pretty;
}
.nx[data-home-catalog-stream] .card .ptag {
  margin-top: var(--space-3);
  min-height: 2.8em;
  opacity: 1;
  color: color-mix(in srgb, var(--pi) 88%, var(--pc));
}
/* Clip the photograph independently so the rank can bleed beyond the card edge. */
.nx[data-home-catalog-stream] :is(.card, #preview) .card-surface {
  display: flex;
  flex: 1;
  flex-direction: column;
  min-height: 0;
  overflow: clip;
  isolation: isolate;
  border-radius: inherit;
  /* Explicitly clip composited backgrounds and blur layers in Safari.
     The outer card keeps its shadow, focus outline, and overflowing rank. */
  clip-path: inset(0 round var(--catalog-radius));
}
.nx[data-home-catalog-stream] .row-wrap:has(.prank) .track {
  padding-top: var(--space-12);
  margin-top: calc(-1 * var(--space-12));
}
.nx[data-home-catalog-stream] #rows > .row-sec:has(.prank) .row-head {
  margin-bottom: var(--space-10);
}
.nx[data-home-catalog-stream] :is(.card, #preview):has(> .prank) .top {
  min-height: 28px;
  justify-content: flex-end;
  flex-wrap: wrap;
  gap: var(--space-2);
  padding-inline-start: var(--space-12);
}
.nx[data-home-catalog-stream] :is(.card, #preview) .prank {
  position: absolute;
  top: -32px;
  left: -8px;
  display: block;
  padding: 0;
  border-radius: 0;
  background: transparent;
  z-index: 3;
  color: var(--category-base);
  -webkit-text-stroke: 2px var(--category-deep);
  font-family: var(--display);
  font-size: 112px;
  font-weight: 650;
  line-height: 1;
  letter-spacing: -0.06em;
  font-variant-numeric: lining-nums tabular-nums;
  pointer-events: none;
  user-select: none;
  transform-origin: left top;
  filter: drop-shadow(0 2px 0 color-mix(in srgb, var(--category-deep) 16%, transparent))
    drop-shadow(0 8px 8px color-mix(in srgb, var(--ink-deep) 24%, transparent));
}
@media (prefers-reduced-motion: no-preference) {
  .nx[data-home-catalog-stream] :is(.card, #preview) .prank {
    transition:
      transform 280ms var(--ease-standard),
      filter 280ms var(--ease-standard),
      opacity 180ms var(--ease-standard);
  }
  .nx[data-home-catalog-stream] :is(.card:focus-visible, .card.on, #preview.ready) .prank {
    transform: translate(12px, 4px) scale(0.9);
    filter: drop-shadow(0 2px 0 color-mix(in srgb, var(--category-deep) 24%, transparent))
      drop-shadow(0 12px 12px color-mix(in srgb, var(--ink-deep) 32%, transparent));
  }
}
.nx[data-home-catalog-stream] .card.on > .prank {
  opacity: 0;
}
/* The expanded rank keeps the resting card's weight and straddles its corner. */
.nx[data-home-catalog-stream] #preview > .prank {
  top: calc(-1 * var(--space-12));
  left: calc(-1 * var(--space-4));
}
@media (prefers-reduced-motion: no-preference) {
  .nx[data-home-catalog-stream] #preview > .prank {
    transform: translateY(var(--space-1)) scale(0.96);
  }
  .nx[data-home-catalog-stream] #preview.ready > .prank {
    transform: none;
  }
}
@media (forced-colors: active) {
  .nx[data-home-catalog-stream] :is(.card, #preview) .prank {
    color: CanvasText;
    -webkit-text-stroke: 0;
    filter: none;
  }
}
.nx[data-home-catalog-stream] :is(.card, #preview) .pcat {
  margin-left: 0;
  padding: 5px 9px;
  border-radius: 6px;
  background: color-mix(in srgb, var(--pi) 7%, transparent);
  color: var(--pi);
  font-size: 12px;
  line-height: 1.3;
  font-weight: 550;
}
.nx[data-home-catalog-stream] :is(.card, #preview):has(> .prank) .pcat {
  margin-inline: 0;
  max-inline-size: 100%;
  white-space: normal;
  overflow-wrap: anywhere;
}
.nx[data-home-catalog-stream] :is(.card, #preview) .card-media {
  position: relative;
  isolation: isolate;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  flex: 1;
  min-height: 200px;
  margin-top: 0;
  padding: var(--space-8) var(--space-6) var(--space-6);
}
.nx[data-home-catalog-stream] :is(.card, #preview) .pphoto {
  position: absolute;
  inset: var(--card-photo-top, 0px) 0 0;
  z-index: -2;
  width: 100%;
  height: calc(100% - var(--card-photo-top, 0px));
  object-fit: cover;
  object-position: center;
  filter: saturate(0.9);
  transform: none;
}
/* Three bounded, static blur fields end at different depths over the photo. */
.nx[data-home-catalog-stream] :is(.card, #preview) .card-vignette {
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
}
.nx[data-home-catalog-stream] :is(.card, #preview) .card-vignette::after {
  content: '';
  position: absolute;
  inset: -2px 0 0;
  background:
    linear-gradient(var(--pc), transparent 56px),
    linear-gradient(
      to top,
      color-mix(in srgb, var(--category-deep) 88%, var(--ink-deep)),
      color-mix(in srgb, var(--ink-deep) 72%, transparent) 72px,
      transparent 160px
    );
}
.nx[data-home-catalog-stream] :is(.card, #preview) .card-vignette i {
  position: absolute;
  display: block;
}
.nx[data-home-catalog-stream] :is(.card, #preview) .card-vignette i:nth-child(1) {
  top: calc(-88px + var(--card-feather-rise, 0px));
  left: -16%;
  width: 132%;
  height: 144px;
  border-radius: 24%;
  background: var(--pc);
  filter: blur(24px);
}
.nx[data-home-catalog-stream] :is(.card, #preview) .card-vignette i:nth-child(2) {
  top: calc(-100px + var(--card-feather-rise, 0px));
  left: -36%;
  width: 118%;
  height: 280px;
  border-radius: 50%;
  background: var(--card-halo-deep);
  filter: blur(32px);
}
.nx[data-home-catalog-stream] :is(.card, #preview) .card-vignette i:nth-child(3) {
  top: calc(-80px + var(--card-feather-rise, 0px));
  right: -16%;
  width: 184px;
  height: 184px;
  border-radius: 50%;
  background: var(--card-halo-light);
  filter: blur(20px);
}
/* Move the resting photograph and its feather independently of the expanded material. */
.nx[data-home-catalog-stream] .card:not(.ask) {
  overflow: visible;
  --card-photo-top: -36px;
  --card-feather-rise: -56px;
}
@supports (color: oklch(from red l c calc(h + 2))) {
  .nx[data-home-catalog-stream] :is(.card:not(.ask), #preview) {
    --card-halo-light: oklch(from var(--pc) calc(l + 0.04) c calc(h + 2));
    --card-halo-deep: oklch(from var(--pc) calc(l - 0.025) c calc(h - 2));
  }
}
@media (hover: hover) and (pointer: fine) and (prefers-reduced-motion: no-preference) {
  .nx[data-home-catalog-stream] #preview .pphoto {
    transform: translate3d(var(--preview-image-x, 0px), var(--preview-image-y, 0px), 0) scale(1.08);
    transition: transform 280ms var(--ease-standard);
  }
}
.nx[data-home-catalog-stream] :is(.card, #preview) .ctags {
  position: relative;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  height: auto;
  min-height: 0;
  margin: 0 0 16px;
  padding: 0;
  opacity: 1;
  overflow: visible;
  -webkit-line-clamp: unset;
  list-style: none;
  color: var(--pi);
}
.nx[data-home-catalog-stream] :is(.card, #preview) .ctags li {
  display: block;
  max-width: 100%;
  padding: 5px 8px;
  border: 1px solid var(--tag-outline, var(--tag-border));
  border-radius: 6px;
  background: var(--tag-surface, var(--tag-fill));
  color: var(--tag-text, var(--tag-ink));
  font-size: 12px;
  line-height: 1.35;
  overflow-wrap: anywhere;
}
/* Resting metadata lets the photo through; the primary action stays solid. */
.nx[data-home-catalog-stream] .card .ctags li {
  --tag-surface: color-mix(in srgb, var(--tag-fill) 72%, transparent);
  --tag-outline: color-mix(in srgb, var(--tag-border) 48%, transparent);
  --tag-text: color-mix(in srgb, var(--tag-ink) 60%, var(--ink-deep));
}
/* The link owns its complete surface so hover has only one rounded edge. */
.nx[data-home-catalog-stream] #preview .ctags li {
  padding: 0;
  border: 0;
  background: none;
}
.nx[data-home-catalog-stream] #preview .ctags a {
  display: block;
  padding: 5px 8px;
  border: 1px solid var(--tag-border);
  border-radius: inherit;
  background: var(--tag-fill);
  transition:
    background 160ms var(--ease-standard),
    border-color 160ms var(--ease-standard),
    color 160ms var(--ease-standard);
}
.nx[data-home-catalog-stream] #preview .ctags a:is(:hover, :focus-visible) {
  border-color: var(--tag-ink);
  background: var(--tag-ink);
  color: var(--primary-foreground);
}
.nx[data-home-catalog-stream] #preview .ctags a:focus-visible {
  outline-color: var(--primary-foreground);
}
.nx[data-home-catalog-stream] .card .ctags li::before,
.nx[data-home-catalog-stream] .card .ctags li:not(:last-child)::after {
  content: none;
}
.nx[data-home-catalog-stream] :is(.card, #preview) .card-actions {
  display: flex;
  align-items: center;
  flex-wrap: nowrap;
  gap: 24px;
}
/* An inverse primary stays legible over photography in either theme. */
.nx[data-home-catalog-stream] :is(.card, #preview) .card-start {
  min-height: 48px;
  padding: 12px 14px 12px 16px;
  border: 1px solid color-mix(in srgb, var(--ink-deep) 16%, transparent);
  border-radius: var(--radius-lg);
  background: linear-gradient(90deg, var(--primary) 50%, var(--primary-foreground) 50%);
  background-size: 202% 100%;
  background-position: 100% 0;
  background-origin: border-box;
  background-repeat: no-repeat;
  color: var(--ink-deep);
  font-family: var(--body);
  font-size: 14px;
  font-weight: 600;
  letter-spacing: normal;
  gap: 24px;
  transition:
    background-position var(--duration-fast) var(--ease-standard),
    transform var(--duration-fast) var(--ease-standard);
}
.nx[data-home-catalog-stream] :is(.card, #preview) .card-start:is(:hover, :focus-visible) {
  background-position: 0 0;
  transform: none;
}
.nx[data-home-catalog-stream] :is(.card, #preview) .card-actions a:focus-visible {
  outline: 2px solid var(--primary-foreground);
  outline-offset: 3px;
}
.nx[data-home-catalog-stream] :is(.card, #preview) .card-actions svg {
  width: 18px;
  height: 18px;
}
.nx[data-home-catalog-stream] #preview {
  position: fixed;
  max-height: none;
  overflow: visible;
  box-shadow: var(--tacet-shadow-md), var(--tacet-shadow-lg);
}
.nx[data-home-catalog-stream] #preview .phead {
  padding: 24px 28px 0;
}
.nx[data-home-catalog-stream] #preview h3 {
  padding-right: 24px;
  font-size: 30px;
}
.nx[data-home-catalog-stream] #preview .top {
  padding-right: 32px;
}
.nx[data-home-catalog-stream] #preview .sum {
  display: grid;
  margin: 16px 0 20px;
  font-size: 16px;
  line-height: 1.45;
  color: color-mix(in srgb, var(--pi) 88%, var(--pc));
}
.nx[data-home-catalog-stream] #preview .sum span {
  grid-area: 1 / 1;
  transition: opacity 180ms var(--ease-standard);
}
.nx[data-home-catalog-stream] #preview .summary-full {
  opacity: 0;
}
.nx[data-home-catalog-stream] #preview.ready .summary-full {
  opacity: 1;
}
.nx[data-home-catalog-stream] #preview.ready .summary-brief {
  opacity: 0;
}
.nx[data-home-catalog-stream] #preview .scope-body {
  padding: 0;
}
.nx[data-home-catalog-stream] #preview .scope-grid {
  margin: 0;
  padding: 0;
  gap: 0 24px;
}
.nx[data-home-catalog-stream] #preview .scope-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 0;
  border-color: color-mix(in srgb, var(--pi) 13%, transparent);
  font-size: 14px;
  line-height: 1.35;
}
.nx[data-home-catalog-stream] #preview .scope-item svg {
  width: 18px;
  height: 18px;
  flex: none;
  opacity: 0.8;
}
.nx[data-home-catalog-stream] #preview .card-media {
  min-height: 240px;
  padding: 48px 28px 24px;
}
/* Fit information-rich previews without an internal scrolling panel. */
.nx[data-home-catalog-stream] #preview.is-compact .phead {
  padding: 24px 24px 0;
}
.nx[data-home-catalog-stream] #preview.is-compact .top {
  margin-bottom: 16px;
}
.nx[data-home-catalog-stream] #preview.is-compact h3 {
  font-size: 26px;
}
.nx[data-home-catalog-stream] #preview.is-compact .sum {
  margin: 12px 0;
  font-size: 14px;
}
.nx[data-home-catalog-stream] #preview.is-compact .scope-item {
  padding-block: 6px;
}
.nx[data-home-catalog-stream] #preview.is-compact .card-media {
  min-height: 0;
  padding: 24px 24px 20px;
}
.nx[data-home-catalog-stream] #preview.is-compact .ctags {
  margin-bottom: 12px;
}
.nx[data-home-catalog-stream] :is(.card, #preview) .card-explore {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 48px;
  padding: 12px 0;
  border-radius: var(--radius-sm);
  background: transparent;
  color: var(--primary-foreground);
  font-family: var(--body);
  font-size: 14px;
  font-weight: 400;
  text-decoration: underline;
  text-decoration-color: color-mix(in srgb, var(--primary-foreground) 50%, transparent);
  text-underline-offset: 5px;
  transition: text-decoration-color var(--duration-fast) var(--ease-standard);
}
.nx[data-home-catalog-stream] :is(.card, #preview) .card-explore:is(:hover, :focus-visible) {
  text-decoration-color: currentColor;
}
@media (prefers-reduced-motion: no-preference) {
  .nx[data-home-catalog-stream] :is(.card, #preview) .card-actions a:active {
    transform: translateY(1px);
  }
}
.nx[data-home-catalog-stream] #preview .preview-close {
  position: absolute;
  top: 12px;
  right: 12px;
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  border: 0;
  border-radius: 50%;
  background: color-mix(in srgb, var(--pc) 70%, var(--white));
  color: var(--pi);
  z-index: 3;
}
.nx[data-home-catalog-stream] #preview .preview-close svg {
  width: 16px;
  height: 16px;
}
.nx[data-home-catalog-stream] #preview :is(.scope-body, .ctags .is-added) {
  opacity: 0;
  transform: translateY(8px);
  transition:
    opacity 220ms var(--ease-standard),
    transform 280ms var(--ease-standard);
  transition-delay: calc(80ms + var(--tag-order, 0) * 25ms);
}
.nx[data-home-catalog-stream] #preview.ready :is(.scope-body, .ctags .is-added) {
  opacity: 1;
  transform: none;
}
/* Billboards are satin panels: the generated palette stays intact, while a
   shallow rim and restrained edge reflection distinguish them from photo cards.
   Keep this treatment out of the generated content and its grid geometry. */
.nx[data-home-catalog-stream] .inter .in {
  position: relative;
  isolation: isolate;
  border-radius: var(--radius-2xl);
  border-color: transparent;
  background: transparent;
}
.nx[data-home-catalog-stream] .inter .in::after {
  content: '';
  position: absolute;
  inset: -1px;
  z-index: -1;
  pointer-events: none;
  border-radius: inherit;
  border: var(--border-width-base) solid;
  border-color: color-mix(in srgb, var(--pi) 20%, var(--pc));
  background: linear-gradient(
    180deg,
    color-mix(in srgb, var(--pc) 88%, var(--ink-light)) 0%,
    var(--pc) 18%,
    var(--pc) 82%,
    color-mix(in srgb, var(--pc) 96%, var(--ink-deep)) 100%
  );
  box-shadow: var(--tacet-shadow-sm);
}
.nx[data-home-catalog-stream] .inter .in::before {
  content: '';
  position: absolute;
  inset: var(--space-1);
  border: var(--border-width-base) solid color-mix(in srgb, var(--pi) 9%, transparent);
  border-top-color: color-mix(in srgb, var(--ink-light) 40%, transparent);
  border-radius: calc(var(--radius-2xl) - var(--space-1));
  pointer-events: none;
}
/* Decorative surface only: native scrolling and every reading edge stay fixed. */
@media (prefers-reduced-motion: no-preference) {
  .nx[data-home-catalog-stream] .inter .billboard-pending::after,
  .nx[data-home-catalog-stream] .inter .billboard-pending::before {
    opacity: 0.08;
    transform: scale(1.035, 1.04);
  }
  .nx[data-home-catalog-stream] .inter .billboard-enter::after,
  .nx[data-home-catalog-stream] .inter .billboard-enter::before {
    animation: billboard-surface-enter 520ms var(--ease-standard) both;
  }
}
@keyframes billboard-surface-enter {
  from {
    opacity: 0.08;
    transform: scale(1.035, 1.04);
  }
  to {
    opacity: 1;
    transform: none;
  }
}
.nx[data-home-catalog-stream] .inter .btn {
  border-radius: 8px;
}
@media (max-width: 600px) {
  .nx[data-home-catalog-stream] {
    --catalog-radius: 20px;
    --catalog-rail-inset: 16px;
  }
  .nx[data-home-catalog-stream] .card:not(.ask) {
    width: min(300px, calc(100vw - 48px));
  }
  .nx[data-home-catalog-stream] :is(.card, #preview) .phead {
    padding: 28px 20px 0;
  }
  .nx[data-home-catalog-stream] :is(.card, #preview) .card-media {
    padding-inline: 20px;
  }
  .nx[data-home-catalog-stream] #preview h3 {
    font-size: 26px;
  }
  .nx[data-home-catalog-stream] #preview > .prank {
    top: calc(-1 * var(--space-6));
    left: 0;
    font-size: var(--space-20);
  }
  .nx[data-home-catalog-stream] #preview.is-compact .phead {
    padding: var(--space-4) var(--space-4) 0;
  }
  .nx[data-home-catalog-stream] #preview.is-compact .scope-grid {
    column-gap: var(--space-3);
  }
  .nx[data-home-catalog-stream] #preview.is-compact .card-media {
    padding: var(--space-4);
  }
  .nx[data-home-catalog-stream] #preview.is-compact:has(> .prank) .card-media {
    padding-top: var(--space-4);
  }
}

/* Capability tags share one text-sized, inline icon contract on cards/previews. */
.nx .card .ctags li,
.nx[data-home-catalog-stream] :is(.card, #preview) .ctags li:has(> [data-icon]),
.nx[data-home-catalog-stream] #preview .ctags a {
  display: inline-flex;
  align-items: center;
  gap: 0.35em;
}
.nx :is(.card, #preview) .ctags [data-icon],
.nx :is(.card, #preview) .ctags svg {
  display: inline-block;
  width: 1em;
  height: 1em;
  min-width: 1em;
  flex: 0 0 1em;
  margin: 0;
  vertical-align: -0.125em;
}
.nx :is(.card, #preview) .ctags span {
  min-width: 0;
}

/* The missing-media artwork inherits the same category ink as its card. */
.nx[data-home-catalog-stream] :is(.card, #preview) .card-placeholder {
  color: var(--pi);
  object-fit: contain;
}
.nx[data-home-catalog-stream] :is(.card, #preview) .card-placeholder:has(+ img.pphoto) {
  display: none;
}
.nx[data-home-catalog-stream] #preview .card-surface {
  min-height: var(--preview-min-height, 0px);
}

.nx .sys-bill[data-pc] {
  --pc: var(--identity-surface);
  --pi: var(--identity-ink);
}
html.dark .nx .sys-bill[data-pc] {
  --pc: var(--identity-dark);
  --pi: var(--identity-light);
}
