/* ============================================================
   JUWEL · Vext Labs — juwel-humanist.css
   The humanist + pixel research-lab layer for the vextlabs.ai
   interior pages: research.html, notes.html, open-source.html.
   (History: this file carried a pre-FACET "Humanist Candy" pass,
   was emptied 2026-07-09, and sat as a 200-not-404 stub through
   the LuxLiq rebrand. research/notes/open-source had drifted onto
   classnames — .archive-entry, .package, .method-item, .status,
   .claim-plate, .lab-note-article, .section-heading, etc. — that
   were never ported to the live vextlabs.css, so they rendered
   fully unstyled. This pass writes the missing rules for real.)

   Brand law:
   - Zero new tokens. Every color/space/type value below resolves
     to --vx-* (vextlabs.css) or the global --paper/--ink/--topaz
     union (juwel-ds.css) — both already cascading wherever this
     file loads. No second palette, no second design system.
   - Amber (--vx-nectar) stays reserved for she-acts/record/focus:
     one hero word per page + the one .button--juwel handoff.
     Status pills, section labels, and card chrome stay ink-toned.
   - No gem/candy/circular-orb imagery on the lab site. The visual
     signature here is square instrument ticks + a faint index
     grid — legible as "lab notebook", not "product surface".
   - Everything is scoped under body.lab so this stylesheet stays
     inert on the ~20 product pages that still link it by relative
     path (about/pricing/signin/etc. — none carry body.lab).
   ============================================================ */

/* ---------------------------------------------------------------
   Layout scaffolding — .vext-shell / .section were referenced by
   every lab page but never defined anywhere in the live cascade.
   --------------------------------------------------------------- */
body.lab .vext-shell { width: min(1120px, calc(100% - 48px)); margin-inline: auto; }

body.lab .page-main { position: relative; }

body.lab .section { padding: clamp(56px, 8vw, 96px) 0; position: relative; }
body.lab .section--rule { border-top: 1px solid var(--vx-line); }
body.lab .section--tight { padding-top: 40px; padding-bottom: clamp(64px, 9vw, 96px); }

/* ---------------------------------------------------------------
   Mono / label vocabulary — the pixel-instrument register. Every
   meta string on these pages (eyebrows, section labels, meta
   labels, package meta, note meta) shares one small-caps mono
   treatment, matching .vx-kicker on the home page.
   --------------------------------------------------------------- */
body.lab .eyebrow,
body.lab .meta-label,
body.lab .section-label,
body.lab .package__meta,
body.lab .note-meta,
body.lab .plate__label {
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--vx-ink-3);
}
body.lab .eyebrow { margin: 0 0 18px; }
body.lab .section-label { margin: 0 0 12px; }
body.lab .meta-label { margin: 0 0 8px; display: block; }

/* ---------------------------------------------------------------
   Headings
   --------------------------------------------------------------- */
body.lab .page-title,
body.lab .hero-title {
  margin: 0 0 16px;
  font-size: clamp(34px, 4.4vw, 50px);
  font-weight: 700;
  letter-spacing: -0.032em;
  line-height: 1.08;
  color: var(--vx-ink);
  max-width: 16ch;
}
body.lab .page-title strong,
body.lab .hero-title strong {
  font-weight: 700;
  color: var(--vx-nectar-ink);
}
body.lab .archive-hero__copy > p,
body.lab .hero-copy > p {
  margin: 0 0 26px;
  font-size: 16.5px;
  line-height: 1.6;
  color: var(--vx-ink-2);
  max-width: 54ch;
}

body.lab .section-heading { max-width: 720px; margin: 0 0 40px; }
body.lab .section-title {
  margin: 0;
  font-size: clamp(28px, 3.6vw, 40px);
  font-weight: 700;
  letter-spacing: -0.028em;
  line-height: 1.14;
  color: var(--vx-ink);
}
body.lab .section-title strong { font-weight: 700; color: var(--vx-ink); }
body.lab .section-intro {
  margin: 16px 0 0;
  font-size: 15.5px;
  line-height: 1.6;
  color: var(--vx-ink-2);
  max-width: 60ch;
}

/* ---------------------------------------------------------------
   Buttons + actions
   --------------------------------------------------------------- */
body.lab .hero-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }

body.lab .button {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 46px;
  font-family: var(--font);
  font-size: 14.5px;
  font-weight: 600;
  text-decoration: none;
  color: var(--vx-stage);
  background: var(--vx-ink);
  border: 1px solid var(--vx-ink);
  border-radius: 13px;
  padding: 0 20px;
  cursor: pointer;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.12);
  transition: filter 0.28s var(--ease-viscous, cubic-bezier(0.22, 1, 0.36, 1)),
    box-shadow 0.28s var(--ease-viscous, cubic-bezier(0.22, 1, 0.36, 1)),
    transform 0.2s var(--ease-viscous, cubic-bezier(0.22, 1, 0.36, 1));
}
@media (hover: hover) and (pointer: fine) {
  body.lab .button:hover { filter: brightness(0.94); box-shadow: var(--vx-shadow), inset 0 1px 0 rgba(255, 255, 255, 0.28); }
}
body.lab .button:active { transform: scale(0.98); }

body.lab .button--quiet {
  color: var(--vx-ink);
  background: transparent;
  border-color: var(--vx-line);
  box-shadow: none;
}
@media (hover: hover) and (pointer: fine) {
  body.lab .button--quiet:hover { border-color: var(--vx-ink-3); background: color-mix(in srgb, var(--vx-well) 45%, transparent); }
}

body.lab .button--juwel {
  color: #201200;
  background: linear-gradient(180deg, color-mix(in srgb, var(--vx-nectar) 88%, white 12%), var(--vx-nectar));
  border-color: color-mix(in srgb, var(--vx-nectar) 70%, black 8%);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.4);
}
@media (hover: hover) and (pointer: fine) {
  body.lab .button--juwel:hover { filter: brightness(1.04); }
}

body.lab .text-link {
  font-size: 13.5px;
  font-weight: 600;
  color: var(--vx-ink);
  text-decoration: none;
  border-bottom: 1px solid var(--vx-line);
  padding-bottom: 1px;
  transition: border-color 0.24s var(--ease-viscous, cubic-bezier(0.22, 1, 0.36, 1));
}
body.lab .text-link:hover { border-color: var(--vx-ink-3); }

/* ---------------------------------------------------------------
   Instrument-card signature — shared square corner ticks across
   every card family on these three pages (archive entries, method
   cards, packages, notes, the claim plate, contact/support
   panels). Deliberately square + hairline, not the circular /
   glow-orb language used for the JUWEL entity elsewhere, so the
   lab reads as measurement instrument, not product surface.
   --------------------------------------------------------------- */
body.lab .archive-entry,
body.lab .method-item,
body.lab .package,
body.lab .lab-note-article,
body.lab .claim-plate,
body.lab .contact-panel,
body.lab .support-panel {
  position: relative;
  background: var(--vx-volume);
  border: 1px solid var(--vx-line);
  border-radius: 16px;
  box-shadow: 0 1px 0 var(--vx-edge) inset;
}
body.lab .archive-entry::after,
body.lab .method-item::after,
body.lab .package::after,
body.lab .lab-note-article::after,
body.lab .claim-plate::after,
body.lab .contact-panel::after,
body.lab .support-panel::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  pointer-events: none;
  opacity: 0.6;
  background:
    linear-gradient(var(--vx-ink-3), var(--vx-ink-3)) top 9px left / 1px 8px no-repeat,
    linear-gradient(var(--vx-ink-3), var(--vx-ink-3)) top left 9px / 8px 1px no-repeat,
    linear-gradient(var(--vx-ink-3), var(--vx-ink-3)) top 9px right / 1px 8px no-repeat,
    linear-gradient(var(--vx-ink-3), var(--vx-ink-3)) top right 9px / 8px 1px no-repeat,
    linear-gradient(var(--vx-ink-3), var(--vx-ink-3)) bottom 9px left / 1px 8px no-repeat,
    linear-gradient(var(--vx-ink-3), var(--vx-ink-3)) bottom left 9px / 8px 1px no-repeat,
    linear-gradient(var(--vx-ink-3), var(--vx-ink-3)) bottom 9px right / 1px 8px no-repeat,
    linear-gradient(var(--vx-ink-3), var(--vx-ink-3)) bottom right 9px / 8px 1px no-repeat;
}

/* Faint index numerals — the "pixel index" motif shared by every
   numbered card. Tabular mono, flush ink-on-line, never amber. */
body.lab .archive-entry__number,
body.lab .method-item__number,
body.lab .package__number {
  font-family: var(--mono);
  font-weight: 600;
  line-height: 1;
  letter-spacing: -0.02em;
  color: var(--vx-line);
  font-variant-numeric: tabular-nums;
  pointer-events: none;
}

/* ---------------------------------------------------------------
   Hero zones — .archive-hero (research/open-source, copy-only)
   and .site-hero (notes, copy + claim-plate visual). Both get a
   contained, edge-faded pixel-dot grid behind the copy: the
   "pixel grid" half of the brief, scoped to the hero band only
   so it never competes with body-copy contrast further down.
   --------------------------------------------------------------- */
body.lab .archive-hero,
body.lab .site-hero {
  position: relative;
  padding-top: clamp(56px, 8vw, 88px);
  padding-bottom: clamp(40px, 6vw, 64px);
  overflow: hidden;
}
body.lab .archive-hero::before,
body.lab .site-hero::before {
  content: "";
  position: absolute;
  inset: -10% -6% auto -6%;
  height: 130%;
  z-index: 0;
  pointer-events: none;
  background-image: radial-gradient(color-mix(in srgb, var(--vx-ink) 16%, transparent) 1px, transparent 1px);
  background-size: 18px 18px;
  background-position: 0 0;
  -webkit-mask-image: radial-gradient(120% 90% at 18% 22%, black, transparent 62%);
  mask-image: radial-gradient(120% 90% at 18% 22%, black, transparent 62%);
  opacity: 0.55;
}
body.lab .archive-hero__copy,
body.lab .hero-copy,
body.lab .hero-visual {
  position: relative;
  z-index: 1;
}
body.lab .archive-hero__copy { max-width: 640px; }

body.lab .site-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 360px);
  gap: 48px;
  align-items: center;
}
body.lab .hero-copy > *:last-child { margin-bottom: 0; }

/* ---------------------------------------------------------------
   Archive summary strip (research + open-source)
   --------------------------------------------------------------- */
body.lab .archive-summary {
  display: grid;
  grid-template-columns: 1.15fr 1fr 1fr;
  border-top: 1px solid var(--vx-line);
  border-bottom: 1px solid var(--vx-line);
  padding: 24px 0;
}
body.lab .archive-summary__item {
  display: grid;
  gap: 5px;
  padding: 2px 26px;
  font-size: 13.5px;
  color: var(--vx-ink-2);
}
body.lab .archive-summary__item:first-child { padding-left: 0; }
body.lab .archive-summary__item + .archive-summary__item { border-left: 1px solid var(--vx-line); }
body.lab .archive-summary__item b { font-size: 16.5px; font-weight: 700; color: var(--vx-ink); letter-spacing: -0.01em; }
body.lab .archive-summary__item .meta-label { margin-bottom: 2px; }

/* ---------------------------------------------------------------
   Research: archive list + status pills
   --------------------------------------------------------------- */
body.lab .archive-list { display: grid; gap: 12px; }
body.lab .archive-entry {
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr) auto;
  gap: 20px;
  align-items: center;
  padding: 22px 24px;
}
body.lab .archive-entry__number { font-size: 26px; }
body.lab .archive-entry h3 { margin: 0 0 6px; font-size: 17.5px; font-weight: 650; letter-spacing: -0.012em; color: var(--vx-ink); }
body.lab .archive-entry p { margin: 0; font-size: 13.5px; line-height: 1.55; color: var(--vx-ink-2); max-width: 58ch; }
body.lab .archive-entry__record {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  align-items: center;
  gap: 7px 14px;
  max-width: 220px;
}

body.lab .status {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: var(--mono);
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  white-space: nowrap;
  color: var(--vx-ink-2);
  background: color-mix(in srgb, var(--vx-well) 55%, transparent);
  border: 1px solid var(--vx-line);
  border-radius: 999px;
  padding: 5px 10px 5px 8px;
}
body.lab .status::before {
  content: "";
  width: 5px;
  height: 5px;
  flex-shrink: 0;
  background: currentColor;
  opacity: 0.55;
}

/* ---------------------------------------------------------------
   Publication contract — method list
   --------------------------------------------------------------- */
body.lab .method-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
body.lab .method-item { padding: 26px 26px 24px; overflow: hidden; }
body.lab .method-item__number {
  position: absolute;
  top: 4px;
  right: 20px;
  font-size: 64px;
  opacity: 0.7;
}
body.lab .method-item h3 { margin: 0 0 8px; font-size: 19px; font-weight: 700; letter-spacing: -0.015em; color: var(--vx-ink); max-width: 20ch; }
body.lab .method-item p { margin: 0; font-size: 14px; line-height: 1.55; color: var(--vx-ink-2); max-width: 34ch; }

/* ---------------------------------------------------------------
   Contact / support panels (bridge to the product)
   --------------------------------------------------------------- */
body.lab .contact-panel,
body.lab .support-panel {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) auto;
  gap: 32px;
  align-items: center;
  padding: 36px 40px;
}
body.lab .support-panel { margin-top: 48px; }
body.lab .contact-panel h2,
body.lab .support-panel h2 {
  margin: 0 0 8px;
  font-size: clamp(22px, 2.6vw, 28px);
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--vx-ink);
}
body.lab .contact-panel p,
body.lab .support-panel p {
  margin: 0;
  font-size: 14.5px;
  line-height: 1.55;
  color: var(--vx-ink-2);
  max-width: 44ch;
}
body.lab .contact-panel .hero-actions,
body.lab .support-panel .hero-actions { flex-wrap: nowrap; }

/* ---------------------------------------------------------------
   Notes: claim plate (hero visual) + article stack
   --------------------------------------------------------------- */
body.lab .claim-plate { padding: 20px 22px; }
body.lab .claim-plate__head { border-bottom: 1px dashed var(--vx-line); padding-bottom: 12px; margin-bottom: 12px; }
body.lab .claim-plate__title { margin: 6px 0 0; font-size: 15.5px; font-weight: 650; letter-spacing: -0.01em; color: var(--vx-ink); line-height: 1.4; }
body.lab .claim-plate__body { display: grid; gap: 10px; }
body.lab .plate-row { display: grid; grid-template-columns: 52px minmax(0, 1fr); gap: 14px; font-size: 13px; }
body.lab .plate__label { margin: 0; padding-top: 2px; }
body.lab .plate__value { color: var(--vx-ink-2); line-height: 1.5; }

body.lab .article-stack { display: grid; gap: 16px; max-width: 780px; }
body.lab .lab-note-article { padding: 28px 30px; }
body.lab .lab-note-article .note-meta { margin: 0 0 12px; }
body.lab .lab-note-article h2 {
  margin: 0 0 14px;
  font-size: clamp(21px, 2.2vw, 26px);
  font-weight: 700;
  letter-spacing: -0.018em;
  line-height: 1.25;
  color: var(--vx-ink);
}
body.lab .lab-note-article h2 strong { font-weight: 700; color: var(--vx-nectar-ink); }
body.lab .lab-note-article p { margin: 0 0 14px; font-size: 14.5px; line-height: 1.62; color: var(--vx-ink-2); max-width: 66ch; }
body.lab .lab-note-article p:last-of-type { margin-bottom: 0; }
body.lab .note-status {
  display: block;
  font-family: var(--mono);
  font-size: 11.5px;
  letter-spacing: 0.03em;
  color: var(--vx-mint);
  border-top: 1px dashed var(--vx-line);
  padding-top: 14px;
  margin-top: 18px !important;
}

/* ---------------------------------------------------------------
   Open source: package cards
   --------------------------------------------------------------- */
body.lab .package-stack { display: grid; gap: 14px; }
body.lab .package {
  display: grid;
  grid-template-columns: 60px minmax(0, 1fr);
  grid-template-areas: "num content" ".   aside";
  column-gap: 20px;
  row-gap: 8px;
  align-items: start;
  padding: 26px 28px;
}
body.lab .package__number { grid-area: num; font-size: 36px; }
body.lab .package__number + div { grid-area: content; }
body.lab .package__aside { grid-area: aside; font-size: 13px; color: var(--vx-ink-3); }
body.lab .package h3 { margin: 0 0 8px; font-size: 19px; font-weight: 700; letter-spacing: -0.014em; color: var(--vx-ink); }
body.lab .package h3 span { font-weight: 500; }
body.lab .package p { margin: 0 0 14px; font-size: 14px; line-height: 1.55; color: var(--vx-ink-2); max-width: 58ch; }

body.lab .install-command {
  background: color-mix(in srgb, var(--vx-well) 65%, transparent);
  border: 1px solid var(--vx-line);
  border-radius: 10px;
  padding: 11px 14px;
  margin: 0 0 10px;
  overflow-x: auto;
}
body.lab .install-command code {
  font-family: var(--mono);
  font-size: 12.5px;
  color: var(--vx-ink);
  white-space: pre;
}
body.lab .package__links a {
  font-size: 13px;
  font-weight: 600;
  color: var(--vx-ink);
  text-decoration: none;
  border-bottom: 2px solid var(--vx-nectar);
  padding-bottom: 1px;
}

/* ---------------------------------------------------------------
   Responsive
   --------------------------------------------------------------- */
@media (max-width: 900px) {
  body.lab .site-hero { grid-template-columns: 1fr; gap: 32px; }
}
@media (max-width: 860px) {
  body.lab .method-list { grid-template-columns: 1fr; }
  body.lab .archive-summary { grid-template-columns: 1fr; gap: 18px; padding: 20px 0; }
  body.lab .archive-summary__item { padding: 0; }
  body.lab .archive-summary__item + .archive-summary__item { border-left: none; border-top: 1px solid var(--vx-line); padding-top: 16px; }
  body.lab .archive-entry { grid-template-columns: minmax(0, 1fr); gap: 12px; }
  body.lab .archive-entry__number { font-size: 15px; opacity: 0.85; }
  body.lab .archive-entry__record { justify-content: flex-start; max-width: none; }
  body.lab .contact-panel,
  body.lab .support-panel { grid-template-columns: 1fr; gap: 20px; padding: 28px 26px; }
  body.lab .contact-panel .hero-actions,
  body.lab .support-panel .hero-actions { flex-wrap: wrap; }
  body.lab .package { grid-template-columns: minmax(0, 1fr); grid-template-areas: "num" "content" "aside"; }
  body.lab .package__number { font-size: 26px; }
}
@media (max-width: 640px) {
  body.lab .eyebrow { white-space: normal; }
  body.lab .archive-hero,
  body.lab .site-hero { padding-top: 40px; }
}

/* ---------------------------------------------------------------
   Reduced motion / no-JS safety — hero grid and ticks are static
   décor already; nothing here animates on its own, so the global
   prefers-reduced-motion block in vextlabs.css covers [data-reveal].
   --------------------------------------------------------------- */
