/* BlackGrid Labs — public site.
 * Mirrors the axismeridi.com/blackgrid dark-page design:
 *   warm-black bg (#0a0a0a) · parchment-white text (#f4f3ee) ·
 *   Helvetica Neue (light 300 headlines, 500 labels) · SF Mono for data/meta.
 *   Status amber #d4a155 / green #5fb486 / red #d97a7a. */

:root {
  --bg:           #0a0a0a;
  --ink:          #f4f3ee;
  --ink-soft:     #bcb8af;
  --ink-body:     #c0bdb6;
  --muted:        #a3a09a;
  --muted-2:      #888884;
  --rule:         #262626;
  --rule-soft:    rgba(255,255,255,0.04);
  --surface:      rgba(255,255,255,0.025);

  /* Brand accent — silver/steel. Brand chrome (eyebrows, marks, links,
     dividers, atmospheric blob, status pill) is monochrome. Product
     identity carries the color signal instead — see --p-* below. */
  --accent:       #d4d2cb;
  --accent-deep:  #a3a09a;
  --accent-soft:  rgba(212,210,203,0.10);
  --accent-rgb:   212,210,203;

  /* Per-product accents — refreshed 2026-05-19 to a tighter desaturated
     palette. Used on pillar cards, drill-down pages, and each product\'s
     own dashboard chrome. Marketing pages stay silver. */
  --p-tektaris:   #e8a097;  /* muted coral */
  --p-kryptaris:  #9bb1f5;  /* powder blue */
  --p-caduceon:   #8ac8a3;  /* jade */
  --p-oraculum:   #b59ce5;  /* mauve */

  /* Semantic legacy. Warn-state tags still read warm-orange. */
  --amber:        #d4a155;
  --warn:         #d4a155;      /* alias for amber when used as a warning signal */
  --green:        #5fb486;
  --red:          #d97a7a;
  --sans: 'Helvetica Neue', Helvetica, Arial, sans-serif;
  --mono: 'SF Mono', 'JetBrains Mono', Menlo, Consolas, monospace;
  --maxw: 1200px;
  --pad-x: 32px;
}

* { box-sizing: border-box; }

html, body {
  margin: 0; padding: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
::selection { background: var(--ink); color: var(--bg); }

/* ─── Layout ───────────────────────────────────────────────── */
.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 var(--pad-x); }
@media (max-width: 720px) { :root { --pad-x: 22px; } }

/* ─── Header ───────────────────────────────────────────────── */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(10,10,10,0.88);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--rule);
}
.site-header .wrap {
  display: flex; align-items: center; justify-content: space-between;
  height: 68px;
}
.brand {
  display: inline-flex; align-items: baseline; gap: 8px;
  font-family: var(--sans);
  color: var(--ink);
  letter-spacing: -0.008em;
}
.brand-name { font-size: 16px; font-weight: 500; }
.brand-mark { font-family: var(--mono); font-size: 11px; color: var(--muted-2); letter-spacing: 0.18em; }

.nav { display: flex; gap: 28px; align-items: center; }
.nav-link {
  font-family: var(--sans);
  font-size: 13px; font-weight: 400;
  color: var(--ink-soft);
  letter-spacing: 0.01em;
  padding: 6px 0;
  border-bottom: 1px solid transparent;
  transition: color 0.15s, border-color 0.15s;
}
.nav-link:hover { color: var(--ink); }
.nav-link.active { color: var(--ink); border-bottom-color: var(--ink); }

@media (max-width: 720px) {
  .nav .nav-link { display: none; }
}

/* ─── Buttons ──────────────────────────────────────────────── */
.btn {
  font-family: var(--sans);
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 22px;
  font-size: 14px;
  letter-spacing: 0.005em;
  font-weight: 500;
  border: 1px solid transparent;
  cursor: pointer;
  transition: background 0.18s, color 0.18s, border-color 0.18s;
}
.btn-arrow { font-size: 13px; transition: transform 0.18s; }
.btn:hover .btn-arrow { transform: translateX(3px); }
.btn-primary {
  background: var(--ink);
  color: var(--bg);
  border-color: var(--ink);
}
.btn-primary:hover { background: #e8e6df; border-color: #e8e6df; }
.btn-ghost {
  background: transparent;
  color: var(--ink);
  border-color: #303030;
}
.btn-ghost:hover { border-color: var(--ink); }
.btn-sm { padding: 9px 16px; font-size: 13px; }

/* ─── Eyebrow / labels ─────────────────────────────────────── */
.eyebrow {
  font-family: var(--sans);
  font-size: 11px;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  font-weight: 500;
  color: var(--muted);
  margin: 0;
}
.eyebrow-line {
  display: inline-flex; align-items: center; gap: 12px;
}
.eyebrow-line::before {
  content: '';
  width: 28px; height: 1px;
  background: var(--muted);
}

/* ─── Page head ────────────────────────────────────────────── */
.page-head {
  padding: 88px 0 56px;
  max-width: 880px;
}
.page-headline {
  font-family: var(--sans);
  font-size: clamp(44px, 6vw, 84px);
  line-height: 1.0;
  font-weight: 300;
  letter-spacing: -0.032em;
  color: var(--ink);
  margin: 18px 0 28px;
}
.page-headline em { font-style: italic; font-weight: 300; }
.page-sub {
  font-family: var(--sans);
  font-size: 18px;
  line-height: 1.6;
  color: var(--ink-soft);
  font-weight: 400;
  max-width: 660px;
  margin: 0 0 36px;
}
.page-actions { display: flex; gap: 12px; flex-wrap: wrap; }

/* ─── Lab status strip ─────────────────────────────────────── */
.lab-strip {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 28px;
  padding: 18px 24px;
  margin: 48px 0 0;
  background: rgba(255,255,255,0.02);
  border: 1px solid var(--rule);
  align-items: center;
}
@media (max-width: 720px) { .lab-strip { grid-template-columns: 1fr; gap: 14px; } }
.lab-strip-active {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 10px; letter-spacing: 0.22em; text-transform: uppercase;
  color: var(--accent); font-weight: 500; white-space: nowrap;
}
.lab-strip-active::before {
  content: '';
  width: 7px; height: 7px; border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 0 rgba(212,210,203,0.55);
  animation: labPulse 2.6s ease-in-out infinite;
}
@keyframes labPulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(212,210,203,0.55); }
  60%      { box-shadow: 0 0 0 7px rgba(212,210,203,0); }
}
.lab-strip-stats { display: flex; flex-wrap: wrap; gap: 22px; align-items: baseline; }
.lab-strip-stat {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.04em;
  color: var(--ink);
  font-variant-numeric: tabular-nums;
}
.lab-strip-stat-key {
  color: var(--muted-2);
  text-transform: uppercase;
  letter-spacing: 0.18em;
  font-size: 9px;
  margin-right: 6px;
  font-weight: 500;
  font-family: var(--sans);
}
.lab-strip-meta {
  font-family: var(--mono);
  font-size: 10px;
  color: var(--muted-2);
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.06em;
  text-align: right;
  white-space: nowrap;
}

/* ─── Sections inside the page ─────────────────────────────── */
.lab-section { margin-top: 80px; padding: 0 0 88px; }
.lab-section:first-of-type { margin-top: 56px; }
.lab-section-head {
  display: flex; justify-content: space-between; align-items: baseline;
  padding-bottom: 24px;
  border-bottom: 1px solid var(--rule);
  margin-bottom: 36px;
  gap: 24px; flex-wrap: wrap;
}
.lab-section-headline {
  font-family: var(--sans);
  font-size: clamp(28px, 4vw, 44px);
  font-weight: 300;
  letter-spacing: -0.024em;
  color: var(--ink);
  margin: 0; line-height: 1.05;
}
.lab-section-headline em { font-style: italic; }
.lab-section-meta {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.18em;
  color: var(--muted-2);
  text-transform: uppercase;
  font-weight: 500;
}

/* ─── Track (research) — 3 col grid ────────────────────────── */
.track-x {
  display: grid;
  grid-template-columns: 110px 1.1fr 1fr;
  gap: 40px;
  padding: 38px 0;
  border-bottom: 1px solid var(--rule);
  align-items: start;
}
.track-x:last-of-type { border-bottom: none; }
@media (max-width: 980px) { .track-x { grid-template-columns: 1fr; gap: 22px; padding: 28px 0; } }
.track-x-id {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--muted-2);
  font-weight: 500;
  padding-top: 4px;
}
.track-x-id-num {
  display: block;
  color: var(--ink);
  font-size: 22px;
  font-weight: 300;
  font-family: var(--sans);
  letter-spacing: -0.012em;
  margin-top: 4px;
  font-variant-numeric: tabular-nums;
}
.track-x-name {
  font-family: var(--sans);
  font-size: 21px;
  font-weight: 500;
  color: var(--ink);
  letter-spacing: -0.015em;
  margin: 0 0 16px;
  line-height: 1.2;
}
.track-x-detail + .track-x-detail { margin-top: 16px; }
.track-x-detail-label {
  font-family: var(--mono);
  font-size: 9px;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--muted-2);
  font-weight: 500;
  margin-bottom: 6px;
  display: block;
}
.track-x-detail-text {
  font-family: var(--sans);
  font-size: 14px;
  line-height: 1.6;
  color: var(--ink-body);
  margin: 0;
}
.track-x-detail-text strong { color: var(--ink); font-weight: 500; }

/* ─── Lab artifact (data block) ────────────────────────────── */
.lab-artifact {
  background: var(--surface);
  border: 1px solid var(--rule);
  margin-top: 4px;
}
.lab-artifact-head {
  display: flex; justify-content: space-between;
  padding: 11px 14px;
  border-bottom: 1px solid var(--rule);
  font-size: 9px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--muted-2);
  font-weight: 500;
  font-family: var(--sans);
}
.lab-artifact-row {
  display: grid;
  grid-template-columns: 1fr auto auto;
  gap: 12px;
  padding: 7px 14px;
  font-family: var(--mono);
  font-size: 11px;
  font-variant-numeric: tabular-nums;
  border-bottom: 1px solid var(--rule-soft);
}
.lab-artifact-row:last-of-type { border-bottom: none; }
.lab-artifact-row-key { color: var(--ink-body); }
.lab-artifact-row-val { color: var(--ink); text-align: right; }
.lab-artifact-row-tag {
  font-family: var(--sans);
  font-size: 9px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--muted-2);
  font-weight: 500;
  text-align: right;
  white-space: nowrap;
}
.lab-artifact-row-tag--good { color: var(--green); }
.lab-artifact-row-tag--warn { color: var(--amber); }
.lab-artifact-row-tag--fail { color: var(--red); }
.lab-artifact-foot {
  padding: 11px 14px;
  border-top: 1px solid var(--rule);
  font-size: 9px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--muted-2);
  font-weight: 500;
  font-family: var(--sans);
  display: flex;
  justify-content: space-between;
  gap: 14px;
}
.lab-artifact-foot strong { color: var(--ink); font-weight: 500; }

/* ─── Lab notes (timeline) ─────────────────────────────────── */
.lab-log { list-style: none; margin: 12px 0 0; padding: 0; }
.lab-log-entry {
  display: grid;
  grid-template-columns: 130px 1fr 110px;
  gap: 24px;
  padding: 16px 0;
  border-bottom: 1px solid var(--rule);
  align-items: baseline;
}
.lab-log-entry:last-child { border-bottom: none; }
@media (max-width: 720px) { .lab-log-entry { grid-template-columns: 1fr; gap: 6px; } }
.lab-log-date {
  font-family: var(--mono);
  font-size: 11px;
  color: var(--muted-2);
  letter-spacing: 0.04em;
  font-variant-numeric: tabular-nums;
}
.lab-log-text {
  font-family: var(--sans);
  font-size: 14px;
  line-height: 1.6;
  color: var(--ink-body);
  margin: 0;
}
.lab-log-text strong { color: var(--ink); font-weight: 500; }
.lab-log-tag {
  font-family: var(--sans);
  font-size: 9px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--muted-2);
  font-weight: 500;
  white-space: nowrap;
  text-align: right;
}

/* ─── Papers ───────────────────────────────────────────────── */
.papers { list-style: none; margin: 12px 0 0; padding: 0; }
.paper {
  display: grid;
  grid-template-columns: 60px 1fr 160px;
  gap: 24px;
  padding: 18px 0;
  border-bottom: 1px solid var(--rule);
  align-items: baseline;
}
.paper:last-child { border-bottom: none; }
@media (max-width: 720px) { .paper { grid-template-columns: auto 1fr; gap: 14px; } .paper-status { grid-column: 1 / -1; padding-top: 4px; } }
.paper-num {
  font-family: var(--mono);
  font-size: 10px;
  color: var(--muted-2);
  letter-spacing: 0.04em;
}
.paper-title {
  font-family: var(--sans);
  font-size: 15.5px;
  font-weight: 500;
  color: var(--ink);
  letter-spacing: -0.01em;
  margin: 0 0 4px;
  line-height: 1.35;
}
.paper-meta {
  font-family: var(--sans);
  font-size: 12px;
  color: var(--muted-2);
  margin: 0;
  letter-spacing: 0.02em;
}
.paper-status {
  font-family: var(--sans);
  font-size: 9px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--muted-2);
  font-weight: 500;
  white-space: nowrap;
  text-align: right;
}
.paper-status--draft { color: var(--amber); }
.paper-status--public { color: var(--green); }

/* ─── Prose (About) ────────────────────────────────────────── */
.prose { max-width: 720px; font-family: var(--sans); font-size: 16.5px; line-height: 1.7; color: var(--ink-soft); }
.prose p { margin: 0 0 22px 0; }
.prose p strong { color: var(--ink); font-weight: 500; }
.prose h3 { font-family: var(--sans); color: var(--ink); font-size: 22px; font-weight: 500; margin: 40px 0 14px 0; letter-spacing: -0.012em; }
.prose ul { padding-left: 22px; margin: 0 0 22px; }
.prose li { margin-bottom: 10px; }
.prose li strong { color: var(--ink); font-weight: 500; }
.prose em { font-style: italic; }

/* ─── Pillars (home) ───────────────────────────────────────── */
.pillars {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border-top: 1px solid var(--rule);
  margin-top: 36px;
}
.pillar {
  padding: 36px 32px;
  border-right: 1px solid var(--rule);
  border-bottom: 1px solid var(--rule);
}
.pillar:nth-child(3n) { border-right: none; }
@media (max-width: 980px) {
  .pillars { grid-template-columns: 1fr; }
  .pillar { border-right: none; }
}
.pillar-num {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--muted-2);
  font-weight: 500;
  margin-bottom: 18px;
}
.pillar-num b { color: var(--ink); font-weight: 500; }
.pillar-name { font-family: var(--sans); font-size: 20px; font-weight: 500; letter-spacing: -0.014em; color: var(--ink); margin: 0 0 12px 0; }
.pillar-text { font-family: var(--sans); font-size: 14.5px; line-height: 1.6; color: var(--ink-body); margin: 0 0 20px; }
.pillar-link {
  font-family: var(--sans);
  font-size: 11px; letter-spacing: 0.22em; text-transform: uppercase;
  color: var(--muted); font-weight: 500;
  transition: color 0.15s;
}
.pillar-link:hover { color: var(--ink); }

/* ─── Services grid ────────────────────────────────────────── */
.services-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  border-top: 1px solid var(--rule);
  margin-top: 36px;
}
.service {
  padding: 36px 32px;
  border-right: 1px solid var(--rule);
  border-bottom: 1px solid var(--rule);
  display: flex; flex-direction: column;
}
.service:nth-child(2n) { border-right: none; }
@media (max-width: 980px) {
  .services-grid { grid-template-columns: 1fr; }
  .service { border-right: none; }
}
.service-num {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.22em;
  color: var(--muted-2);
  font-weight: 500;
  margin-bottom: 16px;
}
.service-name { font-family: var(--sans); font-size: 22px; font-weight: 500; letter-spacing: -0.014em; color: var(--ink); margin: 0 0 8px 0; }
.service-tag {
  font-family: var(--sans); font-size: 9px; letter-spacing: 0.22em;
  text-transform: uppercase; color: var(--muted-2); font-weight: 500;
  margin-bottom: 18px;
}
.service-text { font-family: var(--sans); font-size: 14.5px; line-height: 1.6; color: var(--ink-body); margin: 0 0 22px; flex: 1; }
.service-stat {
  display: flex; gap: 22px; flex-wrap: wrap;
  padding-top: 16px;
  border-top: 1px solid var(--rule);
  font-family: var(--mono); font-size: 11px;
  color: var(--muted-2);
  font-variant-numeric: tabular-nums;
}
.service-stat strong { color: var(--ink); font-weight: 500; }

/* ─── Principles (About) ───────────────────────────────────── */
.principle-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border-top: 1px solid var(--rule);
  margin-top: 40px;
}
.principle {
  padding: 32px 28px;
  border-right: 1px solid var(--rule);
  border-bottom: 1px solid var(--rule);
}
.principle:nth-child(3n) { border-right: none; }
@media (max-width: 980px) {
  .principle-grid { grid-template-columns: 1fr; }
  .principle { border-right: none; }
}
.principle-num {
  font-family: var(--mono); font-size: 10px;
  letter-spacing: 0.22em; color: var(--muted-2); font-weight: 500;
  margin-bottom: 14px;
}
.principle-name { font-family: var(--sans); font-size: 19px; font-weight: 500; letter-spacing: -0.014em; color: var(--ink); margin: 0 0 10px 0; }
.principle-text { font-family: var(--sans); font-size: 14px; line-height: 1.6; color: var(--ink-body); margin: 0; }

/* ─── Contact form ─────────────────────────────────────────── */
.contact-layout {
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: 80px;
  margin-top: 8px;
}
@media (max-width: 980px) { .contact-layout { grid-template-columns: 1fr; gap: 40px; } }
.contact-info { font-family: var(--sans); color: var(--ink-soft); font-size: 14.5px; line-height: 1.7; }
.contact-info h3 {
  font-family: var(--sans);
  color: var(--muted);
  font-size: 10px;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  font-weight: 500;
  margin: 32px 0 8px 0;
}
.contact-info h3:first-child { margin-top: 0; }
.contact-info a { color: var(--ink); border-bottom: 1px solid var(--rule); padding-bottom: 1px; }
.contact-info a:hover { border-bottom-color: var(--ink); }
.contact-info p { margin: 0 0 8px; }

.contact-form { display: flex; flex-direction: column; gap: 20px; }
.field { display: flex; flex-direction: column; gap: 8px; }
.field-label {
  font-family: var(--sans); font-size: 10px;
  letter-spacing: 0.24em; text-transform: uppercase;
  color: var(--muted); font-weight: 500;
}
.field-input, .field-textarea {
  background: transparent;
  border: 1px solid var(--rule);
  color: var(--ink);
  padding: 12px 14px;
  font-size: 15px; font-family: var(--sans);
  width: 100%;
  transition: border-color 0.18s;
}
.field-input:focus, .field-textarea:focus { outline: none; border-color: var(--ink); }
.field-textarea { min-height: 160px; resize: vertical; line-height: 1.55; }
.field-input--err, .field-textarea--err { border-color: var(--red); }
.notice {
  padding: 14px 18px;
  font-family: var(--sans); font-size: 13px;
  background: rgba(95,180,134,0.06);
  border: 1px solid rgba(95,180,134,0.3);
  color: var(--green);
  margin-bottom: 24px;
}
.notice-error {
  background: rgba(217,122,122,0.06);
  border-color: rgba(217,122,122,0.3);
  color: var(--red);
}

.tektaris-foot {
  margin-top: 56px;
  display: flex; justify-content: space-between; align-items: baseline;
  flex-wrap: wrap; gap: 16px;
  font-family: var(--sans); font-size: 13px;
  color: var(--muted);
}
.tektaris-foot-link {
  border-bottom: 1px solid var(--rule); padding-bottom: 2px;
  color: var(--ink); font-weight: 500; font-size: 13px;
  letter-spacing: 0.02em;
}
.tektaris-foot-link:hover { border-bottom-color: var(--ink); }

/* ─── End CTA ──────────────────────────────────────────────── */
.end-cta {
  padding: 110px 0 120px;
  border-top: 1px solid var(--rule);
}
@media (max-width: 980px) { .end-cta { padding: 80px 0 90px; } }
.end-cta-grid {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 80px; align-items: end;
}
@media (max-width: 980px) { .end-cta-grid { grid-template-columns: 1fr; gap: 32px; } }
.end-cta-headline {
  font-family: var(--sans);
  font-size: clamp(40px, 5.6vw, 78px);
  line-height: 0.98;
  font-weight: 300;
  letter-spacing: -0.032em;
  color: var(--ink);
  margin: 16px 0 0;
}
.end-cta-sub {
  font-family: var(--sans);
  font-size: 17px; line-height: 1.55;
  color: var(--ink-soft);
  max-width: 480px;
  margin: 0 0 28px;
}
.end-cta-row { display: flex; gap: 12px; flex-wrap: wrap; }

/* ─── Footer ───────────────────────────────────────────────── */
.site-footer {
  border-top: 1px solid var(--rule);
  padding: 56px 0 32px 0;
  font-family: var(--sans);
  font-size: 13px; color: var(--muted-2);
}
.footer-grid {
  display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr 1fr;
  gap: 36px;
  margin-bottom: 48px;
}
@media (max-width: 1080px) { .footer-grid { grid-template-columns: 1.4fr 1fr 1fr; gap: 32px; } }
@media (max-width: 720px)  { .footer-grid { grid-template-columns: 1fr 1fr; gap: 32px; } }
.footer-col h4 {
  font-family: var(--sans);
  font-size: 10px; letter-spacing: 0.24em; text-transform: uppercase;
  color: var(--muted-2); font-weight: 500; margin: 0 0 14px 0;
}
.footer-col ul { list-style: none; padding: 0; margin: 0; }
.footer-col li { margin-bottom: 8px; }
.footer-col a {
  font-family: var(--sans);
  color: var(--ink-soft); font-size: 14px;
  transition: color 0.15s;
}
.footer-col a:hover { color: var(--ink); }
.footer-tag {
  font-family: var(--sans); font-size: 14px; line-height: 1.6;
  color: var(--ink-soft); margin: 0 0 12px 0;
  max-width: 360px;
}
.footer-tag b { color: var(--ink); font-weight: 500; }
.footer-bottom {
  border-top: 1px solid var(--rule);
  padding-top: 22px;
  display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px;
  font-size: 11px; color: var(--muted-2); font-family: var(--mono);
  letter-spacing: 0.04em;
}

/* ─── Family / hierarchy block ────────────────────────────── */
.family { display: grid; grid-template-columns: 1fr; gap: 28px; }
.family-parent {
  padding: 24px 26px;
  border: 1px solid var(--rule);
  background: var(--surface);
}
.family-tag {
  font-family: var(--mono);
  font-size: 9px; letter-spacing: 0.24em;
  color: var(--muted-2); font-weight: 500;
}
.family-tag--self { color: var(--accent); }
.family-name {
  font-family: var(--sans); font-size: 24px;
  font-weight: 500; letter-spacing: -0.012em;
  color: var(--ink); margin: 10px 0 6px;
}
.family-name a { color: inherit; border-bottom: 1px solid var(--rule); padding-bottom: 1px; }
.family-name a:hover { border-bottom-color: var(--ink); }
.family-sub { color: var(--ink-body); font-size: 14.5px; line-height: 1.55; margin: 0; max-width: 720px; }

.family-children { display: grid; grid-template-columns: 1fr 1fr; gap: 1px; background: var(--rule); border: 1px solid var(--rule); }
@media (max-width: 980px) { .family-children { grid-template-columns: 1fr; } }
.family-child {
  background: var(--bg);
  padding: 28px 26px;
}
.family-child--self { background: rgba(212,210,203,0.03); }
.family-child-head { margin-bottom: 14px; }
.family-child-name {
  font-family: var(--sans); font-size: 20px; font-weight: 500;
  letter-spacing: -0.012em; color: var(--ink);
  margin: 8px 0 0; line-height: 1.2;
}
.family-child-name a { color: inherit; border-bottom: 1px solid var(--rule); padding-bottom: 1px; }
.family-child-name a:hover { border-bottom-color: var(--ink); }
.family-child-sub { color: var(--ink-body); font-size: 14px; line-height: 1.55; margin: 0 0 18px; }
.family-child-list { list-style: none; padding: 0; margin: 0; border-top: 1px solid var(--rule); }
.family-child-list li {
  display: flex; justify-content: space-between; align-items: baseline;
  padding: 10px 0;
  border-bottom: 1px solid var(--rule);
  font-family: var(--sans);
}
.family-child-list li:last-child { border-bottom: none; }
.family-prod-name { font-size: 14.5px; color: var(--ink); font-weight: 500; letter-spacing: -0.005em; }
.family-prod-name--soon { color: var(--muted); font-style: italic; font-weight: 400; }
.family-prod-meta { font-family: var(--mono); font-size: 10px; letter-spacing: 0.12em; color: var(--muted-2); text-transform: uppercase; }
.family-prod-meta--live { color: var(--accent); }

/* ─── Product hero (Tektaris card) ────────────────────────── */
.product-hero {
  display: grid;
  grid-template-columns: 1.7fr 1fr;
  gap: 56px;
  align-items: start;
  padding: 36px 32px;
  border: 1px solid var(--rule);
  background: var(--surface);
}
@media (max-width: 980px) { .product-hero { grid-template-columns: 1fr; gap: 36px; padding: 28px 24px; } }
.product-hero-eyebrow {
  font-family: var(--mono);
  font-size: 10px; letter-spacing: 0.22em;
  color: var(--accent); font-weight: 500;
  margin-bottom: 14px;
}
.product-hero-name {
  font-family: var(--sans);
  font-size: clamp(36px, 4.6vw, 56px);
  font-weight: 300;
  letter-spacing: -0.024em;
  color: var(--ink);
  margin: 0 0 18px;
  line-height: 1.0;
}
.product-hero-tag { font-family: var(--sans); font-size: 16px; line-height: 1.55; color: var(--ink-soft); margin: 0 0 22px; max-width: 620px; }
.product-hero-points { list-style: none; padding: 0; margin: 0 0 26px; border-top: 1px solid var(--rule); }
.product-hero-points li {
  padding: 12px 0;
  border-bottom: 1px solid var(--rule);
  font-family: var(--sans);
  font-size: 14px; line-height: 1.55;
  color: var(--ink-body);
}
.product-hero-points li:last-child { border-bottom: none; }
.product-hero-points li strong { color: var(--ink); font-weight: 500; }
.product-hero-cta { margin-top: 6px; }

.product-hero-stats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1px;
  background: var(--rule);
  border: 1px solid var(--rule);
}
.product-stat {
  background: var(--bg);
  padding: 22px 20px;
}
.product-stat-num {
  display: block;
  font-family: var(--sans);
  font-size: 28px; font-weight: 300; letter-spacing: -0.012em;
  color: var(--ink);
  font-variant-numeric: tabular-nums;
}
.product-stat-key {
  display: block;
  margin-top: 6px;
  font-family: var(--mono); font-size: 9px;
  letter-spacing: 0.22em; color: var(--muted-2);
  font-weight: 500;
}

/* ─── Pipeline cards (Products page — what's next) ────────── */
.pipeline {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1px;
  background: var(--rule);
  border: 1px solid var(--rule);
}
@media (max-width: 980px) { .pipeline { grid-template-columns: 1fr; } }
.pipeline-card {
  background: var(--bg);
  padding: 28px 26px;
  display: flex; flex-direction: column;
  min-height: 200px;
}
.pipeline-num {
  font-family: var(--mono); font-size: 10px;
  letter-spacing: 0.22em; color: var(--muted-2);
  margin-bottom: 10px;
}
.pipeline-status {
  align-self: flex-start;
  font-family: var(--sans); font-size: 9px;
  letter-spacing: 0.22em; font-weight: 500;
  padding: 4px 10px;
  border: 1px solid var(--muted-2);
  color: var(--muted-2);
  margin-bottom: 16px;
}
.pipeline-status--pilot     { color: var(--green); border-color: rgba(95,180,134,0.5); }
.pipeline-status--active    { color: var(--amber); border-color: rgba(212,161,85,0.5); }
.pipeline-status--coldstart { color: var(--ink-soft); border-color: var(--rule); }
.pipeline-status--draft     { color: var(--muted); border-color: var(--rule); }
.pipeline-name { font-family: var(--sans); font-size: 19px; font-weight: 500; letter-spacing: -0.012em; color: var(--ink); margin: 0 0 10px; }
.pipeline-text { font-family: var(--sans); font-size: 14px; line-height: 1.55; color: var(--ink-body); margin: 0; }

/* ─── ANIMATIONS ───────────────────────────────────────────── */

/* Top-of-page navigation loading bar (built by anims.js). */
.js-navbar {
  position: fixed; top: 0; left: 0; right: 0;
  height: 2px;
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: 0 0;
  transition: transform 0.4s cubic-bezier(0.2, 0.7, 0.3, 1);
  z-index: 100;
  pointer-events: none;
  opacity: 0;
  box-shadow: 0 0 8px rgba(212,210,203,0.35);
}
.js-navbar.busy { opacity: 1; }
.js-navbar.done { transition: transform 0.18s cubic-bezier(0.2, 0.7, 0.3, 1); }

/* Page entrance.
   Header fades + slides down, then hero block fades up. */
.site-header {
  opacity: 0;
  transform: translateY(-12px);
  transition: opacity 0.6s ease, transform 0.5s cubic-bezier(0.2, 0.7, 0.3, 1);
}
.is-loaded .site-header {
  opacity: 1;
  transform: translateY(0);
}

.page-head { opacity: 0; transform: translateY(14px); transition: opacity 0.7s ease 0.15s, transform 0.7s cubic-bezier(0.2, 0.7, 0.3, 1) 0.15s; }
.is-loaded .page-head { opacity: 1; transform: translateY(0); }
.lab-strip { opacity: 0; transform: translateY(14px); transition: opacity 0.7s ease 0.32s, transform 0.7s cubic-bezier(0.2, 0.7, 0.3, 1) 0.32s; }
.is-loaded .lab-strip { opacity: 1; transform: translateY(0); }

/* Hero italic word — decode/scramble effect target.
   The .decoding state hints visually with a subtle blur+amber tint
   while characters are cycling. .decoded clears it. */
.js-decode {
  display: inline-block;
  transition: filter 0.4s ease, color 0.4s ease;
}
.js-decode.decoding {
  filter: blur(0.3px);
  color: var(--accent);
}
.js-decode.decoded {
  filter: none;
  color: var(--accent);
}

/* Scroll-triggered reveals (set by IntersectionObserver in anims.js). */
.js-reveal,
.js-reveal-item {
  opacity: 0;
  transform: translateY(18px);
  transition:
    opacity 0.7s ease,
    transform 0.7s cubic-bezier(0.2, 0.7, 0.3, 1);
}
.js-reveal-item {
  /* Per-item stagger driven by --i set in JS. */
  transition-delay: calc(var(--i, 0) * 70ms);
}
.js-reveal.in-view,
.js-reveal-item.in-view {
  opacity: 1;
  transform: translateY(0);
}

/* SVG path draw-in. */
.js-draw {
  transition: stroke-dashoffset 1.2s cubic-bezier(0.2, 0.7, 0.3, 1);
}
.js-draw.drawing {
  stroke-dashoffset: 0;
}

/* Card hover lift. Subtle, lab-grade — 2-3px translate + border accent. */
.pillar, .service, .pipeline-card, .family-child, .paper, .lab-log-entry {
  transition: transform 0.28s cubic-bezier(0.2, 0.7, 0.3, 1), border-color 0.2s ease, background-color 0.3s ease;
}
.pillar:hover, .service:hover, .pipeline-card:hover {
  transform: translateY(-2px);
  background-color: rgba(255,255,255,0.012);
}
.pillar:hover .pillar-link { color: var(--accent); }
.family-child:hover { background-color: rgba(255,255,255,0.025); }

/* Buttons get a stronger glow on hover. */
.btn-primary {
  position: relative;
  overflow: hidden;
}
.btn-primary::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(120deg, transparent 30%, rgba(255,255,255,0.25) 50%, transparent 70%);
  transform: translateX(-100%);
  transition: transform 0.6s cubic-bezier(0.2, 0.7, 0.3, 1);
  pointer-events: none;
}
.btn-primary:hover::after { transform: translateX(100%); }

/* Lab-strip pulse: brighten the active label briefly on hover. */
.lab-strip:hover .lab-strip-active::before {
  animation-duration: 1.2s;
}

/* Subtle ambient glow on the product-hero (Tektaris card). */
.product-hero {
  position: relative;
}
.product-hero::before {
  content: '';
  position: absolute;
  inset: -1px;
  border: 1px solid transparent;
  background:
    linear-gradient(0deg, transparent, transparent),
    linear-gradient(90deg, rgba(212,210,203,0.0) 0%, rgba(212,210,203,0.5) 50%, rgba(212,210,203,0.0) 100%);
  background-origin: border-box;
  background-clip: padding-box, border-box;
  opacity: 0.5;
  pointer-events: none;
  mix-blend-mode: screen;
}

/* Skeleton shimmer (used on dashboard tab loads too). */
@keyframes bg-shimmer {
  0%   { background-position: -200% 0; }
  100% { background-position:  200% 0; }
}
.skeleton {
  background:
    linear-gradient(
      90deg,
      rgba(255,255,255,0.04) 0%,
      rgba(255,255,255,0.10) 50%,
      rgba(255,255,255,0.04) 100%
    );
  background-size: 200% 100%;
  animation: bg-shimmer 1.4s linear infinite;
  border: 1px solid var(--rule);
}

/* Reduced motion: collapse all animation. */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }
  .js-reveal, .js-reveal-item { opacity: 1 !important; transform: none !important; }
  .js-draw { stroke-dashoffset: 0 !important; }
  .js-decode { color: var(--accent); }
  .js-navbar { display: none !important; }
}

/* ─── ANIMATION VARIANTS — distinct per content type ─────── */

/* TYPEWRITER (eyebrows, monospaced labels) — JS retypes character by
   character; CSS shows a blinking caret while typing. */
.js-type { display: inline-block; }
.js-type::after {
  content: '▌';
  margin-left: 2px;
  color: var(--accent);
  opacity: 0;
  animation: caret-blink 0.7s steps(2) infinite;
}
.js-type.typing::after { opacity: 1; }
.js-type.typed::after { opacity: 0; transition: opacity 0.4s ease 0.3s; }
@keyframes caret-blink {
  0%, 50%   { opacity: 1; }
  51%, 100% { opacity: 0; }
}

/* CLIP-PATH WIPE (section headlines' italic em, end-cta italic em).
   Auto-plays on load (no IntersectionObserver dependency — that was
   occasionally failing for inline-block elements inside wrapping
   headings, leaving the em permanently clipped). The final clip extends
   ~0.25em past the top and bottom of the layout box so italic
   descenders (g, p, y, j) aren't clipped. The .in-view selector is
   kept as a fallback for any future JS-controlled reveals. */
.js-wipe {
  display: inline-block;
  clip-path: inset(-0.25em 100% -0.25em 0);
  -webkit-clip-path: inset(-0.25em 100% -0.25em 0);
  animation: js-wipe-reveal 0.9s cubic-bezier(0.6, 0.04, 0.18, 1) 0.45s forwards;
}
@keyframes js-wipe-reveal {
  to {
    clip-path: inset(-0.25em 0 -0.25em 0);
    -webkit-clip-path: inset(-0.25em 0 -0.25em 0);
  }
}
.js-wipe.in-view {
  clip-path: inset(-0.25em 0 -0.25em 0);
  -webkit-clip-path: inset(-0.25em 0 -0.25em 0);
}

/* UNDERLINE DRAW (lab/family names — subtle line traces under). */
.js-underline {
  display: inline-block;
  position: relative;
}
.js-underline::after {
  content: '';
  position: absolute;
  left: 0; bottom: -3px;
  height: 1px;
  width: 0;
  background: var(--accent);
  transition: width 0.8s cubic-bezier(0.6, 0.04, 0.18, 1) 0.25s;
}
.js-underline.in-view::after { width: 100%; }

/* SLIDE-LEFT (timeline log entries, paper rows — slide from left). */
.js-slide-left {
  opacity: 0;
  transform: translateX(-22px);
  transition:
    opacity 0.65s ease,
    transform 0.65s cubic-bezier(0.2, 0.7, 0.3, 1);
}
.js-slide-left.in-view {
  opacity: 1;
  transform: translateX(0);
}
/* When a parent has .js-stagger and applies --i to children, slide-left
   uses the same per-child stagger so groups cascade in sequence. */
.js-stagger > .js-slide-left {
  transition-delay: calc(var(--i, 0) * 60ms);
}

/* BAR FILL (status-strip values — a 1px amber bar fills underneath the
   numeric value, in step with the counter). */
.js-bar {
  position: relative;
  display: inline-block;
  padding-bottom: 4px;
}
.js-bar::after {
  content: '';
  position: absolute;
  left: 0; bottom: 0;
  height: 1px;
  width: 0;
  background: var(--accent);
  opacity: 0.85;
  transition: width 1.1s cubic-bezier(0.2, 0.7, 0.3, 1);
}
.js-bar.in-view::after { width: 100%; }

/* GROW-Y (vertical-scale entrance from the bottom — used on the
   product-hero stat tiles for a "data crystallizing" feel). */
.js-grow-y {
  transform-origin: 0 100%;
  transform: scaleY(0.6);
  opacity: 0;
  transition:
    transform 0.55s cubic-bezier(0.2, 0.7, 0.3, 1),
    opacity 0.45s ease;
}
.js-grow-y.in-view { transform: scaleY(1); opacity: 1; }

/* SCAN LINE — one-shot horizontal sweep down the viewport on first
   page load. Subtle (opacity 0.55 max), 4.5s total. Removed from DOM
   when animation finishes (see anims.js). */
@keyframes scan-pass {
  0%   { top: -2px; opacity: 0; }
  6%   { opacity: 0.55; }
  90%  { opacity: 0.55; }
  100% { top: 100vh; opacity: 0; }
}
.scan-line {
  position: fixed;
  left: 0; right: 0;
  top: -2px;
  height: 1px;
  background: linear-gradient(
    90deg,
    transparent 0%,
    rgba(212,210,203,0.0) 20%,
    rgba(212,210,203,0.7) 50%,
    rgba(212,210,203,0.0) 80%,
    transparent 100%
  );
  z-index: 99;
  pointer-events: none;
  animation: scan-pass 4.5s ease 0.7s forwards;
  box-shadow: 0 0 8px rgba(212,210,203,0.35);
}

/* MAGNETIC BUTTON — JS sets inline transform; the smooth transition
   here makes the pull feel like a tracked-cursor magnet, not snapping. */
.btn-primary {
  transition:
    background 0.18s ease,
    border-color 0.18s ease,
    color 0.18s ease,
    transform 0.18s cubic-bezier(0.2, 0.7, 0.3, 1);
}

/* Reduced motion: collapse the new variants too. */
@media (prefers-reduced-motion: reduce) {
  .js-wipe, .js-underline::after, .js-slide-left, .js-bar::after, .js-grow-y {
    transition: none !important;
  }
  .js-wipe { clip-path: inset(-0.25em 0 -0.25em 0); -webkit-clip-path: inset(-0.25em 0 -0.25em 0); animation: none !important; }
  .js-slide-left { opacity: 1; transform: none; }
  .js-underline::after, .js-bar::after { width: 100%; }
  .js-grow-y { opacity: 1; transform: none; }
  .scan-line { display: none; }
  .js-type::after { display: none; }
}

/* ─── 4-col pillars variant (home page suite overview) ────── */
.pillars--four {
  grid-template-columns: repeat(4, 1fr);
}
@media (max-width: 1180px) { .pillars--four { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 720px)  { .pillars--four { grid-template-columns: 1fr; } }
.pillars--four .pillar:nth-child(2n) { border-right: 1px solid var(--rule); }
.pillars--four .pillar:nth-child(4n) { border-right: none; }
.pillars--four .pillar-name {
  color: var(--ink);
  font-weight: 500;
  letter-spacing: -0.012em;
}

/* ─── Products page 4-product matrix ──────────────────────── */
.product-matrix {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: var(--rule);
  border: 1px solid var(--rule);
  margin-top: 24px;
}
@media (max-width: 1180px) { .product-matrix { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 720px)  { .product-matrix { grid-template-columns: 1fr; } }

.product-matrix-card {
  background: var(--bg);
  padding: 28px 24px 22px;
  display: flex; flex-direction: column;
  gap: 10px;
  position: relative;
  text-decoration: none;
  color: inherit;
  transition:
    background 0.22s ease,
    transform 0.22s cubic-bezier(0.2, 0.7, 0.3, 1);
  overflow: hidden;
}
.product-matrix-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 2px;
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: 0 0;
  transition: transform 0.4s cubic-bezier(0.2, 0.7, 0.3, 1);
}
.product-matrix-card:hover {
  background: rgba(255,255,255,0.022);
  transform: translateY(-2px);
}
.product-matrix-card:hover::before { transform: scaleX(1); }

.product-matrix-card--kryptaris::before { background: #4dd6c6; }
.product-matrix-card--caduceon::before  { background: #5fb486; }
.product-matrix-card--oraculum::before  { background: #a888d4; }

.product-matrix-num {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.22em;
  color: var(--muted-2);
}
.product-matrix-name {
  font-family: var(--sans);
  font-size: 28px;
  font-weight: 500;
  letter-spacing: -0.018em;
  color: var(--ink);
  line-height: 1.1;
}
.product-matrix-card--kryptaris .product-matrix-name { color: #4dd6c6; }
.product-matrix-card--caduceon  .product-matrix-name { color: #5fb486; }
.product-matrix-card--oraculum  .product-matrix-name { color: #a888d4; }
.product-matrix-card--tektaris  .product-matrix-name { color: var(--amber); }

.product-matrix-tag {
  font-family: var(--mono);
  font-size: 9px;
  letter-spacing: 0.22em;
  color: var(--muted-2);
}
.product-matrix-stats {
  display: flex; gap: 14px; flex-wrap: wrap;
  margin-top: 8px;
  font-family: var(--mono);
  font-size: 10px;
  color: var(--ink-body);
}
.product-matrix-stats b {
  color: var(--ink);
  font-weight: 500;
  margin-right: 3px;
  font-variant-numeric: tabular-nums;
}
.product-matrix-cta {
  margin-top: auto;
  padding-top: 14px;
  border-top: 1px solid var(--rule);
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.22em;
  color: var(--accent);
  transition: color 0.18s ease;
}
.product-matrix-card--kryptaris .product-matrix-cta { color: #4dd6c6; }
.product-matrix-card--caduceon  .product-matrix-cta { color: #5fb486; }
.product-matrix-card--oraculum  .product-matrix-cta { color: #a888d4; }

/* ─── Slogan / tagline ─────────────────────────────────────
   Sits between the hero headline and the page-sub. Mono, small
   caps, amber-tinted — feels like a brand mark, not a sentence. */
.page-tagline {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--accent);
  margin: -10px 0 26px;
  padding-left: 0;
  display: inline-flex;
  align-items: center;
  gap: 12px;
  opacity: 0;
  transform: translateY(8px);
  transition: opacity 0.7s ease 0.4s, transform 0.7s cubic-bezier(0.2, 0.7, 0.3, 1) 0.4s;
}
.is-loaded .page-tagline { opacity: 1; transform: translateY(0); }
.page-tagline::before {
  content: '';
  width: 28px; height: 1px;
  background: var(--accent);
  opacity: 0.5;
}

/* Footer slogan — italic, soft, sits below the company description. */
.footer-slogan {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--accent);
  margin: 14px 0 0 0;
  opacity: 0.85;
}

/* ─── SURVEILLANCE / "WATCHING" EFFECT ────────────────────────
   Applied to the home slogan H1 (.js-watch) + the live OBSERVED
   ticker beneath the brand tagline. Tasteful, lab-grade ominous —
   subtle breath, infrequent glitch, blinking caret, streaming
   surveillance log. Not horror — intelligence-agency unsettling. */

/* Subtle breath on the watched headline. */
.js-watch {
  animation: watch-breathe 6.4s ease-in-out infinite;
  /* Ensure the glitch text-shadow has somewhere to render. */
  position: relative;
}
@keyframes watch-breathe {
  0%, 100% { opacity: 1; }
  50%      { opacity: 0.92; }
}

/* Brief red-tinted glow + jitter when a glitch frame fires. */
.js-watch.is-glitching {
  text-shadow:
    1px 0 0 rgba(217, 122, 122, 0.45),
    -1px 0 0 rgba(212,210,203, 0.30);
  animation: watch-breathe 6.4s ease-in-out infinite, watch-jitter 90ms steps(2);
}
@keyframes watch-jitter {
  0%   { transform: translateX(0); }
  25%  { transform: translateX(-1px); }
  50%  { transform: translateX(1px); }
  75%  { transform: translateX(-1px); }
  100% { transform: translateX(0); }
}

/* Watching cursor — blinks after "everything." resolves. */
.watch-cursor {
  display: inline-block;
  color: var(--accent);
  margin-left: 6px;
  font-weight: 300;
  animation:
    watch-cursor-blink 1.1s steps(2) infinite,
    watch-cursor-fade-in 0.4s ease both;
  vertical-align: baseline;
}
@keyframes watch-cursor-blink {
  0%, 49%   { opacity: 1; }
  50%, 100% { opacity: 0; }
}
@keyframes watch-cursor-fade-in {
  from { opacity: 0; transform: translateX(-4px); }
  to   { opacity: 1; transform: translateX(0); }
}

/* OBSERVED ticker — pulsing REC dot + monospaced surveillance line. */
.page-watch-ticker {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  margin: 18px 0 30px;
  padding: 8px 14px;
  border-left: 1px solid rgba(217,122,122,0.35);
  background: linear-gradient(90deg, rgba(217,122,122,0.04), transparent 80%);
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.06em;
  max-width: 100%;
  overflow: hidden;
}
@media (max-width: 720px) {
  .page-watch-ticker { font-size: 10px; gap: 8px; padding: 6px 10px; }
}
.page-watch-rec {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--red);
  letter-spacing: 0.28em;
  font-size: 10px;
  font-weight: 500;
  text-transform: uppercase;
  flex-shrink: 0;
}
.page-watch-rec-dot {
  display: inline-block;
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--red);
  box-shadow: 0 0 6px var(--red);
  animation: watch-rec-pulse 1.4s ease-in-out infinite;
}
@keyframes watch-rec-pulse {
  0%, 100% { opacity: 1; transform: scale(1); box-shadow: 0 0 6px var(--red); }
  50%      { opacity: 0.55; transform: scale(0.82); box-shadow: 0 0 10px var(--red); }
}
.page-watch-arrow {
  color: var(--muted-2);
  font-size: 9px;
  flex-shrink: 0;
}
.page-watch-line {
  color: var(--ink-3);
  letter-spacing: 0.04em;
  transition: opacity 0.26s ease;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.page-watch-line.is-fading { opacity: 0; }

/* Reduced motion: kill all the unsettling stuff so it's static. */
@media (prefers-reduced-motion: reduce) {
  .js-watch { animation: none; }
  .js-watch.is-glitching { animation: none; text-shadow: none; }
  .watch-cursor { animation: none; }
  .page-watch-rec-dot { animation: none; }
  .page-watch-line { transition: none; }
}

/* ─── Status indicator in top nav ──────────────────────────
   Small green-dot + "STATUS" pill linking to /status. */
.nav-status {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.22em;
  color: var(--green);
  padding: 5px 10px;
  border: 1px solid rgba(95,180,134,0.35);
  text-decoration: none;
  transition: background 0.15s ease, border-color 0.15s ease;
}
.nav-status:hover {
  background: rgba(95,180,134,0.08);
  border-color: var(--green);
  color: var(--green);
}
.nav-status-dot {
  display: inline-block;
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 6px var(--green);
  animation: nav-status-pulse 2.6s ease-in-out infinite;
}
@keyframes nav-status-pulse {
  0%, 100% { opacity: 1; }
  50%      { opacity: 0.5; }
}
@media (max-width: 640px) {
  .nav-status { display: none; }
}

/* ─── 2026-05 redesign · atmospheric backdrop + accent components ───────── */

/* Soft single-blob aurora top-left, sky-blue accent at low opacity. */
.bg-aurora {
  position: fixed; inset: 0; z-index: 0;
  pointer-events: none; overflow: hidden;
}
.bg-blob {
  position: absolute;
  width: 36vw; height: 36vw;
  left: -10vw; top: -12vw;
  background: radial-gradient(circle, rgba(var(--accent-rgb), 0.22), transparent 65%);
  filter: blur(110px);
  mix-blend-mode: screen;
  animation: bg-blob-drift 36s ease-in-out infinite alternate;
  will-change: transform;
}
@keyframes bg-blob-drift {
  from { transform: translate3d(0,0,0) scale(1); }
  to   { transform: translate3d(4vw, 3vw, 0) scale(1.08); }
}

/* Faint geometric grid masked to fade at edges. */
.bg-grid {
  position: fixed; inset: 0; z-index: 0;
  pointer-events: none;
  background-image:
    linear-gradient(0deg,  rgba(255,255,255,0.018) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.018) 1px, transparent 1px);
  background-size: 80px 80px;
  mask-image:         radial-gradient(circle at 30% 20%, black 0%, transparent 70%);
  -webkit-mask-image: radial-gradient(circle at 30% 20%, black 0%, transparent 70%);
}

/* Cursor-follow spotlight. JS sets --mx/--my as px values. */
.bg-spotlight {
  position: fixed; inset: 0; z-index: 1;
  pointer-events: none;
  background: radial-gradient(
    420px circle at var(--mx, 50%) var(--my, 30%),
    rgba(var(--accent-rgb), 0.06),
    transparent 50%
  );
  transition: background 0.25s cubic-bezier(0.2, 0.7, 0.3, 1);
}

/* Site chrome floats above backdrop. */
.site-header, main, .site-footer { position: relative; z-index: 2; }

/* Brand mark — small accent square next to the wordmark. */
.brand-mark-dot {
  display: inline-block;
  width: 10px; height: 10px;
  background: var(--accent);
  margin-right: 4px;
  position: relative;
  top: 1px;
  box-shadow: 0 0 12px rgba(var(--accent-rgb), 0.5);
  animation: brand-mark-pulse 3s ease-in-out infinite;
}
@keyframes brand-mark-pulse {
  0%, 100% { opacity: 1; }
  50%      { opacity: 0.55; }
}

/* New accent button — cyan-tinted outline that fills on hover. */
.btn-accent {
  background: rgba(var(--accent-rgb), 0.08);
  color: var(--accent);
  border: 1px solid rgba(var(--accent-rgb), 0.45);
}
.btn-accent:hover {
  background: var(--accent);
  color: #0a0a0a;
  border-color: var(--accent);
}
.btn-accent .btn-arrow { color: inherit; }

/* Slightly cooler primary on hover so it doesn't look stale next to cyan. */
.btn-primary:hover { background: #f7f5ee; border-color: #f7f5ee; }

/* Eyebrow tint — was muted gray, now low-key sky for marketing pages. */
.eyebrow-line::before { background: var(--accent); opacity: 0.65; }

/* Section dividers pick up the accent on hover only — keep them quiet by default. */
.lab-section-head { border-bottom-color: rgba(255,255,255,0.07); }

/* Page-headline em — was just italic. Keep italic, but allow the accent to
   show through when the em carries the .js-decode class (slogan accent word). */
.page-headline em.js-decode { color: var(--accent); }

/* Reduced motion respect. */
@media (prefers-reduced-motion: reduce) {
  .bg-blob, .brand-mark-dot, .bg-spotlight { animation: none !important; transition: none !important; }
}

/* ─── 2026-05 redesign · hero status pill + stats banner + pillar index ─── */

/* Status pill — small eyebrow above the headline with a pulsing accent dot. */
.status-pill {
  display: inline-flex; align-items: center; gap: 10px;
  margin: 0 0 24px;
  padding: 6px 14px 6px 12px;
  background: rgba(var(--accent-rgb), 0.06);
  border: 1px solid rgba(var(--accent-rgb), 0.22);
  border-radius: 999px;
  font-family: var(--sans);
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink-soft);
  font-weight: 500;
}
.status-pill-dot {
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 0 rgba(var(--accent-rgb), 0.5);
  animation: status-pill-pulse 2.4s ease-in-out infinite;
}
@keyframes status-pill-pulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(var(--accent-rgb), 0.55); }
  60%      { box-shadow: 0 0 0 8px rgba(var(--accent-rgb), 0); }
}

/* Stats banner — 4 KPI tiles under the hero. Subtle borders, accent on the
   number. Tabular numerals so the numbers line up vertically. */
.hero-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  margin: 0 0 88px;
  border: 1px solid var(--rule);
  background: rgba(255,255,255,0.012);
}
.hero-stat {
  padding: 28px 24px 26px;
  border-right: 1px solid var(--rule);
  display: flex; flex-direction: column; gap: 6px;
}
.hero-stat:last-child { border-right: none; }
.hero-stat-num {
  font-family: var(--sans);
  font-size: clamp(28px, 4vw, 40px);
  font-weight: 300;
  letter-spacing: -0.025em;
  color: var(--ink);
  line-height: 1;
  font-variant-numeric: tabular-nums;
}
.hero-stat-num small { font-size: 0.5em; color: var(--muted); margin-left: 2px; font-weight: 400; }
.hero-stat-key {
  font-family: var(--sans);
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted-2);
  font-weight: 500;
}
@media (max-width: 880px) {
  .hero-stats { grid-template-columns: repeat(2, 1fr); }
  .hero-stat:nth-child(2) { border-right: none; }
  .hero-stat:nth-child(1), .hero-stat:nth-child(2) { border-bottom: 1px solid var(--rule); }
}

/* Pillar cards — add the index number + accent hover treatment. */
.pillar { position: relative; }
.pillar-index {
  font-family: var(--mono);
  font-size: 11px;
  color: var(--muted-2);
  letter-spacing: 0.22em;
  margin-bottom: 18px;
  font-variant-numeric: tabular-nums;
  transition: color 0.2s ease;
}
.pillar:hover .pillar-index { color: var(--accent); }
.pillar { transition: border-color 0.25s ease, background 0.25s ease; }
.pillar:hover { border-color: rgba(var(--accent-rgb), 0.35); }
.pillar-tag {
  font-family: var(--mono);
  font-size: 11px;
  color: var(--muted);
  letter-spacing: 0.06em;
  margin: 0 0 14px;
}
.pillar-link {
  display: inline-flex; align-items: center; gap: 6px;
  color: var(--ink-soft);
  font-size: 13px; font-weight: 500;
  border-bottom: 1px solid rgba(255,255,255,0);
  padding-bottom: 1px;
  transition: color 0.2s ease, border-color 0.2s ease;
}
.pillar-link:hover { color: var(--accent); border-bottom-color: rgba(var(--accent-rgb), 0.4); }
.pillar-link .btn-arrow { transition: transform 0.18s ease; }
.pillar-link:hover .btn-arrow { transform: translateX(3px); }

/* Family block — link styling on product names (OrangePeel sub-products). */
.family-prod-name a {
  color: inherit;
  border-bottom: 1px solid rgba(255,255,255,0.18);
  padding-bottom: 1px;
  transition: color 0.18s ease, border-color 0.18s ease;
}
.family-prod-name a:hover { color: var(--accent); border-bottom-color: var(--accent); }

/* Family-block footer link — points each instance through to /family. */
.family-foot {
  margin-top: 22px;
  padding-top: 18px;
  border-top: 1px solid var(--rule);
  display: flex; justify-content: flex-end;
}
.family-foot-link {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--sans);
  font-size: 13px;
  font-weight: 500;
  color: var(--ink-soft);
  border-bottom: 1px solid transparent;
  padding-bottom: 1px;
  transition: color 0.2s ease, border-color 0.2s ease;
}
.family-foot-link:hover { color: var(--accent); border-bottom-color: var(--accent); }
.family-foot-link .btn-arrow { transition: transform 0.18s ease; }
.family-foot-link:hover .btn-arrow { transform: translateX(3px); }

/* ─── Page-contextual OrangePeel surfaces ─────────────────────────────── */

/* Products page — sister-lab product strip. */
.sister-intro {
  font-family: var(--sans);
  font-size: 15px;
  line-height: 1.6;
  color: var(--ink-body);
  max-width: 720px;
  margin: 0 0 28px;
}
.sister-intro a { color: var(--accent); border-bottom: 1px solid rgba(var(--accent-rgb), 0.4); padding-bottom: 1px; transition: border-color 0.18s ease; }
.sister-intro a:hover { border-bottom-color: var(--accent); }

.sister-strip {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--rule);
  border: 1px solid var(--rule);
}
@media (max-width: 880px) { .sister-strip { grid-template-columns: 1fr; } }
.sister-card {
  display: flex; flex-direction: column;
  padding: 24px 22px;
  background: rgba(255,255,255,0.012);
  text-decoration: none; color: inherit;
  transition: background 0.2s ease;
}
.sister-card:hover:not(.sister-card--static) { background: rgba(var(--accent-rgb), 0.04); }
.sister-card-tier {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--muted-2);
  margin-bottom: 14px;
}
.sister-card-name {
  font-family: var(--sans);
  font-size: 22px;
  font-weight: 400;
  letter-spacing: -0.018em;
  color: var(--ink);
  margin: 0 0 10px;
}
.sister-card:hover:not(.sister-card--static) .sister-card-name { color: var(--accent); }
.sister-card-tag {
  font-size: 13.5px;
  line-height: 1.55;
  color: var(--ink-body);
  margin: 0 0 16px;
  flex: 1;
}
.sister-card-link {
  font-family: var(--sans);
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent);
  font-weight: 500;
  display: inline-flex; align-items: center; gap: 6px;
}
.sister-card-link .btn-arrow { transition: transform 0.18s ease; }
.sister-card:hover .sister-card-link .btn-arrow { transform: translateX(3px); }
.sister-card--static .sister-card-tier { color: var(--muted-2); }

/* Research page — OrangePeel lineage strip. */
.lineage {
  display: grid;
  grid-template-columns: 1fr auto 1fr auto 1fr;
  gap: 22px;
  align-items: stretch;
  margin: 0 0 22px;
}
@media (max-width: 980px) {
  .lineage { grid-template-columns: 1fr; gap: 12px; }
  .lineage-arrow { transform: rotate(90deg); }
}
.lineage-step {
  border: 1px solid var(--rule);
  padding: 22px 22px 20px;
  background: rgba(255,255,255,0.012);
  display: flex; flex-direction: column; gap: 8px;
}
.lineage-step--live { background: rgba(var(--accent-rgb), 0.04); border-color: rgba(var(--accent-rgb), 0.25); }
.lineage-step-num {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.22em;
  color: var(--muted-2);
  font-variant-numeric: tabular-nums;
}
.lineage-step--live .lineage-step-num { color: var(--accent); }
.lineage-step-tag {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--muted);
}
.lineage-step-name {
  font-family: var(--sans);
  font-size: 18px;
  font-weight: 400;
  letter-spacing: -0.01em;
  color: var(--ink);
  margin: 4px 0 4px;
  line-height: 1.25;
}
.lineage-step-text {
  font-size: 13.5px;
  line-height: 1.55;
  color: var(--ink-body);
  margin: 0;
}
.lineage-arrow {
  font-family: var(--sans);
  font-size: 22px;
  color: var(--muted-2);
  align-self: center;
  font-weight: 200;
}
.lineage-foot {
  font-family: var(--sans);
  font-size: 13px;
  color: var(--muted);
  margin: 18px 0 0;
}
.lineage-foot a {
  color: var(--ink-soft);
  border-bottom: 1px solid rgba(255,255,255,0.18);
  padding-bottom: 1px;
  transition: color 0.18s ease, border-color 0.18s ease;
  display: inline-flex; align-items: center; gap: 6px;
}
.lineage-foot a:hover { color: var(--accent); border-bottom-color: var(--accent); }

/* Per-product pillar — each card carries its own --p / --p-rgb from inline
   style; brand chrome stays silver until you hover or focus a specific card. */
.pillar--product:hover { border-color: rgba(var(--p-rgb), 0.45); }
.pillar--product:hover .pillar-index { color: var(--p); }
.pillar--product:hover .pillar-link { color: var(--p); border-bottom-color: rgba(var(--p-rgb), 0.5); }
.pillar--product:hover .pillar-name { color: var(--p); }

/* OrangePeel product acronyms (TAL/POP/MAM) — small monospace tag next to
   the product name in family lists and the Products page sister-strip. */
.family-prod-acro,
.sister-card-acro {
  display: inline-block;
  margin-left: 8px;
  padding: 2px 7px;
  border: 1px solid var(--rule);
  border-radius: 3px;
  font-family: var(--mono);
  font-size: 9px;
  letter-spacing: 0.16em;
  color: var(--muted);
  font-weight: 500;
  vertical-align: 2px;
}
.sister-card-acro {
  font-size: 10px;
  vertical-align: 4px;
}

/* Coming-soon variant of the sister-card — full Open link still active so
   the visitor can click through to whatever pop.* / mam.* serves, but the
   tier strip carries a small chip flagging it isn't shipped yet. Slightly
   dimmed name + tag so the live TAL card reads as the primary CTA. */
.sister-card-soon {
  display: inline-block;
  margin-left: 8px;
  padding: 2px 7px;
  border: 1px solid rgba(var(--accent-rgb), 0.35);
  border-radius: 3px;
  font-family: var(--mono);
  font-size: 9px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--accent);
  font-weight: 500;
  vertical-align: 1px;
}
.sister-card--soon .sister-card-name,
.sister-card--soon .sister-card-tag { opacity: 0.78; }
.sister-card--soon:hover .sister-card-name,
.sister-card--soon:hover .sister-card-tag { opacity: 1; }
