/* ==========================================================================
   JUNIPER-0 — enterprise AI marketing site
   Light, warm, editorial. Source Serif 4 display + Inter body. Juniper green
   used as a restrained accent. No glows, no neon — precise and premium.
   Tokens first; then base, components, sections, responsive, motion.
   ========================================================================== */

:root {
  color-scheme: light;

  /* warm paper surfaces */
  --paper: #fbfaf7;
  --paper-2: #f5f3ec;
  --paper-3: #edeae1;
  --white: #ffffff;

  /* ink (deep charcoal with a hint of green) */
  --ink: #1a211d;
  --ink-2: #464f49;
  --ink-3: #737b74;
  --ink-4: #9aa096;

  /* juniper accent */
  --accent: #2f6b4a;
  --accent-2: #234f37;   /* darker — hover */
  --accent-3: #3e8c63;   /* lighter — small marks */
  --accent-wash: #eaf1eb;
  --accent-wash-2: #dde8e0;

  /* deep forest — the one rich color moment (footer/quote) */
  --forest: #173b2c;
  --forest-2: #102a20;

  /* hairlines */
  --line: #e7e4db;
  --line-2: #d9d5ca;
  --line-3: #c7c3b6;

  /* status (muted, professional) */
  --good: #2f6b4a;
  --warn: #b4791f;
  --bad: #b23a2e;
  --node-gray: #b3ad9f;

  /* radii — restrained */
  --r-1: 5px;
  --r-2: 8px;
  --r-3: 12px;
  --r-4: 16px;
  --r-pill: 999px;

  --f-serif: "Source Serif 4", Georgia, "Times New Roman", serif;
  --f-sans: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --f-mono: "JetBrains Mono", ui-monospace, "Cascadia Mono", Consolas, monospace;

  --wrap: 1200px;
  --gutter: clamp(20px, 5vw, 52px);
  --shadow-sm: 0 1px 2px rgba(26, 33, 29, 0.05);
  --shadow-md: 0 1px 2px rgba(26, 33, 29, 0.05), 0 14px 32px -20px rgba(26, 33, 29, 0.18);
  --shadow-lg: 0 2px 4px rgba(26, 33, 29, 0.04), 0 40px 70px -34px rgba(26, 33, 29, 0.24);
  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
}

/* ------------------------------ reset/base ------------------------------ */
* { box-sizing: border-box; }
[hidden] { display: none !important; }
html {
  scroll-behavior: smooth;
  scroll-padding-top: 136px; /* fixed header (76) + sticky sub-nav (54) + breathing room */
  -webkit-text-size-adjust: 100%;
}
body {
  margin: 0;
  font-family: var(--f-sans);
  font-size: 17px;
  line-height: 1.62;
  color: var(--ink-2);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: none; cursor: pointer; }
input, textarea, select { font: inherit; color: inherit; }
h1, h2, h3, h4 {
  color: var(--ink);
  font-family: var(--f-serif);
  font-weight: 600;
  line-height: 1.1;
  letter-spacing: -0.015em;
  margin: 0;
}
p { margin: 0; }
ul { margin: 0; padding: 0; list-style: none; }
strong, b { color: var(--ink); font-weight: 600; }

::selection { background: var(--accent-wash-2); color: var(--accent-2); }

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: 3px;
}

.skip {
  position: absolute;
  left: 12px;
  top: -60px;
  z-index: 200;
  background: var(--accent);
  color: #fff;
  padding: 10px 16px;
  border-radius: var(--r-2);
  font-weight: 600;
  transition: top 0.18s var(--ease);
}
.skip:focus { top: 12px; }

/* ------------------------------ layout ------------------------------ */
.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding-inline: var(--gutter); }
.section { padding-block: clamp(72px, 10vw, 128px); position: relative; }
.section--tight { padding-block: clamp(52px, 7vw, 84px); }
.divider { border-top: 1px solid var(--line); }
.section--paper2 { background: var(--paper-2); }
.section--white { background: var(--white); }

.mono { font-family: var(--f-mono); font-variant-numeric: tabular-nums; }
.accent { color: var(--accent); }

/* section header block — numbered editorial eyebrow */
.kicker {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-family: var(--f-mono);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 22px;
}
.kicker::before {
  content: "";
  width: 26px;
  height: 1px;
  background: var(--accent);
  opacity: 0.6;
}
.section-head--center .kicker { justify-content: center; }
.section-title {
  font-size: clamp(29px, 4.3vw, 48px);
  font-weight: 600;
  max-width: 20ch;
}
.section-lede {
  margin-top: 22px;
  font-size: clamp(17px, 1.6vw, 19px);
  color: var(--ink-2);
  max-width: 60ch;
}
.section-head { max-width: 760px; margin-bottom: clamp(44px, 6vw, 66px); }
.section-head--center { margin-inline: auto; text-align: center; }
.section-head--center .section-title,
.section-head--center .section-lede { margin-inline: auto; }

.figcap {
  font-family: var(--f-mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-4);
}

/* ------------------------------ buttons ------------------------------ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  padding: 12px 22px;
  border-radius: var(--r-2);
  font-family: var(--f-sans);
  font-weight: 600;
  font-size: 15px;
  letter-spacing: -0.005em;
  border: 1px solid transparent;
  transition: transform 0.16s var(--ease), background 0.2s var(--ease),
    border-color 0.2s var(--ease), box-shadow 0.2s var(--ease), color 0.2s var(--ease);
  white-space: nowrap;
}
.btn:active { transform: translateY(1px); }
.btn--primary {
  background: var(--accent);
  color: #fff;
  box-shadow: var(--shadow-sm);
}
.btn--primary:hover { background: var(--accent-2); transform: translateY(-1px); box-shadow: var(--shadow-md); }
.btn--ghost {
  background: var(--white);
  border-color: var(--line-2);
  color: var(--ink);
}
.btn--ghost:hover { border-color: var(--accent); color: var(--accent); transform: translateY(-1px); }
.btn--lg { padding: 15px 28px; font-size: 16px; }
.btn__arrow { transition: transform 0.18s var(--ease); }
.btn:hover .btn__arrow { transform: translateX(3px); }

/* text link with arrow */
.link {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-weight: 600;
  color: var(--accent);
  font-size: 15px;
}
.link::after { content: "→"; transition: transform 0.18s var(--ease); }
.link:hover { color: var(--accent-2); }
.link:hover::after { transform: translateX(3px); }

.chip {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-family: var(--f-mono);
  font-size: 12px;
  letter-spacing: 0.02em;
  color: var(--ink-2);
  background: var(--white);
  border: 1px solid var(--line-2);
  border-radius: var(--r-pill);
  padding: 7px 14px;
}

/* generic card */
.card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--r-3);
  padding: 26px;
  position: relative;
  box-shadow: var(--shadow-sm);
  transition: border-color 0.24s var(--ease), transform 0.24s var(--ease), box-shadow 0.24s var(--ease);
}
.card:hover { border-color: var(--line-3); transform: translateY(-3px); box-shadow: var(--shadow-md); }

/* status dots (solid, no glow) */
.dot { width: 7px; height: 7px; border-radius: 50%; display: inline-block; flex: none; }
.dot--green { background: var(--accent); }
.dot--gray { background: var(--node-gray); }
.dot--warn { background: var(--warn); }
.dot--bad { background: var(--bad); }
.dot--pulse { animation: pulse 2.6s var(--ease) infinite; }
@keyframes pulse { 0%, 100% { opacity: 1; } 50% { opacity: 0.35; } }

/* ============================ HEADER / NAV ============================ */
.site-header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 100;
  transition: background 0.3s var(--ease), border-color 0.3s var(--ease), box-shadow 0.3s var(--ease);
  border-bottom: 1px solid transparent;
}
.site-header.is-scrolled {
  background: rgba(251, 250, 247, 0.86);
  -webkit-backdrop-filter: saturate(140%) blur(14px);
  backdrop-filter: saturate(140%) blur(14px);
  border-bottom-color: var(--line);
}
.nav { display: flex; align-items: center; gap: 24px; height: 76px; }
.brand { display: inline-flex; align-items: center; gap: 12px; }
.brand__icon { width: 36px; height: 36px; flex: none; }
.brand__lockup { display: inline-flex; flex-direction: column; gap: 3px; }
.brand__word { font-family: var(--f-serif); font-weight: 700; font-size: 21px; line-height: 1; letter-spacing: -0.01em; color: var(--ink); }
.brand__zero { color: var(--accent); }
.brand__tag {
  font-family: var(--f-mono); font-size: 9.5px; font-weight: 500;
  letter-spacing: 0.15em; text-transform: uppercase; color: var(--ink-3);
  white-space: nowrap;
}
.nav__links { display: flex; align-items: center; gap: 2px; margin-left: auto; }
.nav__link {
  padding: 9px 15px;
  border-radius: var(--r-2);
  font-size: 15px;
  font-weight: 500;
  color: var(--ink-2);
  transition: color 0.18s var(--ease), background 0.18s var(--ease);
}
.nav__link:hover { color: var(--ink); background: rgba(26, 33, 29, 0.04); }
.nav__actions { display: flex; align-items: center; gap: 10px; margin-left: auto; }
.nav__cta { padding: 10px 18px; }

/* sticky product sub-nav (VMware-style section tab bar) */
.subnav {
  position: sticky;
  top: 76px;
  z-index: 90;
  background: rgba(251, 250, 247, 0.9);
  -webkit-backdrop-filter: saturate(150%) blur(12px);
  backdrop-filter: saturate(150%) blur(12px);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.subnav__inner { display: flex; align-items: center; gap: 26px; height: 54px; }
.subnav__label {
  font-family: var(--f-mono); font-size: 11px; letter-spacing: 0.14em;
  text-transform: uppercase; color: var(--ink-4); white-space: nowrap;
}
.subnav__tabs { display: flex; align-items: center; gap: 4px; margin-right: auto; }
.subnav__tab {
  padding: 8px 14px; font-size: 14px; font-weight: 500; color: var(--ink-2);
  border-bottom: 2px solid transparent; white-space: nowrap;
  transition: color 0.18s var(--ease), border-color 0.18s var(--ease);
}
.subnav__tab:hover { color: var(--ink); }
.subnav__tab.is-active { color: var(--accent); border-bottom-color: var(--accent); }
.subnav__cta { padding: 9px 18px; }
.nav__toggle {
  display: none;
  width: 42px; height: 42px;
  border-radius: var(--r-2);
  border: 1px solid var(--line-2);
  background: var(--white);
  align-items: center; justify-content: center;
}
.nav__toggle span { position: relative; width: 18px; height: 2px; background: var(--ink); border-radius: 2px; transition: 0.2s var(--ease); }
.nav__toggle span::before, .nav__toggle span::after {
  content: ""; position: absolute; left: 0; width: 18px; height: 2px; background: var(--ink); border-radius: 2px; transition: 0.2s var(--ease);
}
.nav__toggle span::before { top: -6px; }
.nav__toggle span::after { top: 6px; }
.nav__toggle[aria-expanded="true"] span { background: transparent; }
.nav__toggle[aria-expanded="true"] span::before { top: 0; transform: rotate(45deg); }
.nav__toggle[aria-expanded="true"] span::after { top: 0; transform: rotate(-45deg); }

.mobile-nav {
  position: fixed;
  inset: 76px 0 auto 0;
  z-index: 99;
  background: var(--white);
  border-bottom: 1px solid var(--line);
  box-shadow: var(--shadow-md);
  padding: 12px var(--gutter) 26px;
  display: grid;
  gap: 2px;
  transform: translateY(-12px);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.24s var(--ease), transform 0.24s var(--ease), visibility 0.24s;
}
.mobile-nav.is-open { transform: translateY(0); opacity: 1; visibility: visible; }
.mobile-nav a {
  padding: 15px 12px;
  border-radius: var(--r-2);
  font-size: 17px;
  font-weight: 500;
  color: var(--ink);
  border-bottom: 1px solid var(--line);
}
.mobile-nav a:last-of-type { border-bottom: 0; }
.mobile-nav .btn { margin-top: 14px; color: #fff; }

/* ============================ HERO ============================ */
.hero { padding-top: clamp(124px, 15vw, 176px); padding-bottom: clamp(56px, 7vw, 88px); position: relative; }
.hero__grid {
  display: grid;
  grid-template-columns: minmax(0, 1.04fr) minmax(0, 0.96fr);
  gap: clamp(32px, 5vw, 72px);
  align-items: center;
}
.hero__eyebrow { margin-bottom: 26px; }
.hero__title {
  font-family: var(--f-serif);
  font-weight: 600;
  font-size: clamp(42px, 6.6vw, 78px);
  line-height: 1.03;
  letter-spacing: -0.02em;
  color: var(--ink);
}
.hero__title .em { color: var(--accent); font-style: italic; font-weight: 600; }
.hero__lede {
  margin-top: 26px;
  font-size: clamp(17px, 1.7vw, 20px);
  color: var(--ink-2);
  max-width: 52ch;
}
.hero__cta { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 34px; }
.hero__meta {
  margin-top: 32px;
  padding-top: 26px;
  border-top: 1px solid var(--line);
  display: flex;
  flex-wrap: wrap;
  gap: 12px 26px;
  font-family: var(--f-mono);
  font-size: 12.5px;
  letter-spacing: 0.02em;
  color: var(--ink-3);
}
.hero__meta li { display: inline-flex; align-items: center; gap: 8px; }

/* hero figure (canvas graph in a framed figure) */
.hero__visual {
  position: relative;
  border-radius: var(--r-4);
  border: 1px solid var(--line);
  background: var(--white);
  box-shadow: var(--shadow-lg);
  overflow: hidden;
}
.hero__canvas-wrap { position: relative; aspect-ratio: 1 / 0.86; min-height: 320px; }
.hero__visual canvas { position: absolute; inset: 0; width: 100%; height: 100%; }
.hero__figcap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 13px 18px;
  border-top: 1px solid var(--line);
  background: var(--paper);
}
.hero__figcap .figcap { color: var(--ink-3); }
.hero__legend { display: flex; gap: 16px; font-family: var(--f-mono); font-size: 10.5px; letter-spacing: 0.04em; color: var(--ink-3); }
.hero__legend span { display: inline-flex; align-items: center; gap: 6px; }

/* trust strip */
.trust {
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  padding-block: 22px;
  background: var(--paper-2);
}
.trust__row { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 28px; justify-content: center; }
.trust__label { font-family: var(--f-mono); font-size: 11px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--ink-4); }
.trust__item { display: inline-flex; align-items: center; gap: 9px; color: var(--ink-2); font-size: 14px; font-weight: 500; }

/* ============================ VERBS ============================ */
.verbs {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
  border-radius: var(--r-3);
  overflow: hidden;
}
.verb { background: var(--white); padding: clamp(28px, 3.4vw, 42px); }
.verb__k { font-family: var(--f-mono); font-size: 12px; letter-spacing: 0.14em; color: var(--accent); display: block; margin-bottom: 16px; }
.verb__t { font-family: var(--f-serif); font-size: clamp(22px, 2.6vw, 29px); font-weight: 600; margin-bottom: 12px; color: var(--ink); }
.verb__d { color: var(--ink-2); font-size: 15.5px; }

/* ============================ ARCHITECTURE ============================ */
.arch { display: grid; grid-template-columns: 1fr auto 1fr; gap: clamp(20px, 4vw, 52px); align-items: center; }
.arch__col-label { font-family: var(--f-mono); font-size: 11px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--ink-4); margin-bottom: 16px; text-align: center; }
.arch__sources { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.arch__source {
  display: flex; align-items: center; gap: 10px;
  padding: 13px 15px;
  background: var(--white); border: 1px solid var(--line); border-radius: var(--r-2);
  font-size: 13.5px; color: var(--ink-2); box-shadow: var(--shadow-sm);
  transition: border-color 0.25s var(--ease), transform 0.25s var(--ease);
}
.arch__source:hover { border-color: var(--accent); transform: translateX(2px); }
.arch__core {
  display: grid; place-items: center; gap: 12px;
  padding: 32px 28px; border-radius: var(--r-4);
  background: var(--accent-wash);
  border: 1px solid var(--accent-wash-2);
  text-align: center; min-width: 200px;
}
.arch__core img { width: 44px; height: 44px; }
.arch__core b { font-family: var(--f-serif); color: var(--ink); font-size: 22px; letter-spacing: -0.01em; }
.arch__core small { font-family: var(--f-mono); font-size: 11px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--accent); }
.arch__out {
  padding: 22px; border-radius: var(--r-3);
  background: var(--accent); color: #fff; text-align: center;
}
.arch__out b { font-family: var(--f-serif); color: #fff; font-size: 19px; display: block; }
.arch__out span { color: rgba(255, 255, 255, 0.82); font-size: 14px; }
.arch__flow { color: var(--accent); text-align: center; font-size: 20px; }

/* ============================ PILLARS ============================ */
.pillars { display: grid; gap: 22px; }
.pillar {
  display: grid; grid-template-columns: 0.92fr 1.08fr; gap: clamp(24px, 4vw, 60px);
  align-items: center; padding: clamp(28px, 4vw, 52px);
  background: var(--white); border: 1px solid var(--line); border-radius: var(--r-4);
  box-shadow: var(--shadow-sm);
}
.pillar:nth-child(even) .pillar__media { order: -1; }
.pillar__k { font-family: var(--f-mono); font-size: 12px; letter-spacing: 0.14em; color: var(--accent); }
.pillar__t { font-family: var(--f-serif); font-size: clamp(25px, 3.1vw, 36px); font-weight: 600; margin: 14px 0 16px; color: var(--ink); }
.pillar__d { color: var(--ink-2); font-size: 16.5px; max-width: 46ch; }
.pillar__list { margin-top: 22px; display: grid; gap: 11px; }
.pillar__list li { display: flex; gap: 11px; align-items: flex-start; font-size: 14.5px; color: var(--ink-2); }
.pillar__list .dot { margin-top: 8px; }
.pillar__media { min-width: 0; }

/* example queries */
.qlist { display: grid; gap: 10px; }
.qlist .q {
  display: flex; gap: 12px; align-items: center;
  padding: 15px 17px; background: var(--paper); border: 1px solid var(--line); border-radius: var(--r-2);
  font-size: 15px; color: var(--ink);
  transition: border-color 0.25s var(--ease), transform 0.25s var(--ease), background 0.25s var(--ease);
}
.qlist .q:hover { border-color: var(--accent); transform: translateX(3px); background: var(--white); }
.qlist .q .caret { color: var(--accent); font-family: var(--f-mono); flex: none; font-weight: 500; }

/* dependency tree */
.tree { font-family: var(--f-mono); font-size: 13px; background: var(--paper); border: 1px solid var(--line); border-radius: var(--r-3); padding: 22px; }
.tree__root { color: var(--ink); font-weight: 500; display: flex; align-items: center; gap: 9px; margin-bottom: 8px; }
.tree ul { padding-left: 20px; border-left: 1px solid var(--line-2); margin-left: 5px; display: grid; gap: 8px; margin-top: 8px; }
.tree li { position: relative; color: var(--ink-2); display: flex; align-items: center; gap: 9px; }
.tree li::before { content: ""; position: absolute; left: -20px; top: 50%; width: 14px; height: 1px; background: var(--line-2); }

/* impact readout */
.impact { margin-top: 18px; background: var(--accent-wash); border: 1px solid var(--accent-wash-2); border-radius: var(--r-3); padding: 20px; }
.impact__q { font-family: var(--f-mono); font-size: 13px; color: var(--accent-2); margin-bottom: 16px; }
.impact__grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; }
.impact__stat { display: flex; flex-direction: column; gap: 2px; }
.impact__stat b { font-family: var(--f-serif); font-size: 27px; color: var(--ink); letter-spacing: -0.01em; font-weight: 600; }
.impact__stat span { font-size: 12.5px; color: var(--ink-3); }

/* ACT vertical flow */
.flow-v { display: grid; gap: 0; }
.flow-v__step {
  display: flex; align-items: center; gap: 14px;
  padding: 14px 16px; background: var(--paper); border: 1px solid var(--line); border-radius: var(--r-2);
  font-size: 14.5px; color: var(--ink);
}
.flow-v__step .idx { font-family: var(--f-mono); font-size: 12px; color: var(--accent); width: 22px; flex: none; }
.flow-v__arrow { text-align: center; color: var(--ink-4); font-size: 15px; padding: 6px 0; }
.flow-v__step.is-gate { border-color: var(--accent); background: var(--accent-wash); }
.flow-v__step.is-gate .gate-badge {
  margin-left: auto; font-family: var(--f-mono); font-size: 11px; letter-spacing: 0.04em;
  color: #fff; background: var(--accent); padding: 4px 10px; border-radius: var(--r-pill); font-weight: 600;
}

/* ============================ PRODUCT DEMO (light app UI) ============================ */
.demo__frame {
  border: 1px solid var(--line); border-radius: var(--r-4);
  background: var(--white); box-shadow: var(--shadow-lg);
  overflow: hidden; max-width: 940px; margin-inline: auto;
}
.demo__chrome {
  display: flex; align-items: center; gap: 12px;
  padding: 14px 20px; border-bottom: 1px solid var(--line); background: var(--paper);
}
.demo__dots { display: flex; gap: 7px; }
.demo__dots i { width: 11px; height: 11px; border-radius: 50%; background: var(--line-3); display: inline-block; }
.demo__app { display: inline-flex; align-items: center; gap: 9px; font-weight: 600; font-size: 14px; color: var(--ink); }
.demo__app .brand__icon { width: 19px; height: 19px; }
.demo__tag { margin-left: auto; font-family: var(--f-mono); font-size: 11px; color: var(--ink-4); letter-spacing: 0.04em; }
.demo__body { padding: clamp(22px, 3vw, 36px); display: grid; gap: 20px; }
.demo__askbar {
  display: flex; align-items: center; gap: 12px;
  padding: 15px 18px; border: 1px solid var(--line-2); border-radius: var(--r-3); background: var(--paper);
}
.demo__askbar .prompt { color: var(--accent); font-weight: 700; }
.demo__q { font-size: clamp(16px, 1.9vw, 19px); color: var(--ink); font-weight: 500; font-family: var(--f-serif); }
.demo__caret { display: inline-block; width: 2px; height: 1.05em; background: var(--accent); translate: 0 3px; animation: blink 1.05s steps(1) infinite; }
@keyframes blink { 50% { opacity: 0; } }
.demo__status { font-family: var(--f-mono); font-size: 13px; color: var(--ink-3); display: flex; align-items: center; gap: 10px; }
.demo__answer { display: grid; gap: 16px; }
.demo__lead { color: var(--ink-2); font-size: 15.5px; }
.demo__lead b { color: var(--ink); }
.demo__affected { display: grid; gap: 8px; }
.demo__affected .row {
  display: flex; align-items: center; gap: 11px;
  padding: 12px 15px; background: var(--paper); border: 1px solid var(--line); border-radius: var(--r-2);
  font-size: 14.5px; color: var(--ink);
}
.demo__metrics { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
.demo__metric { padding: 16px; background: var(--paper); border: 1px solid var(--line); border-radius: var(--r-2); }
.demo__metric b { font-family: var(--f-serif); font-size: 26px; font-weight: 600; color: var(--ink); display: block; letter-spacing: -0.01em; }
.demo__metric span { font-size: 12px; color: var(--ink-3); }
.demo__foot { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; padding-top: 4px; }
.reveal-step { transition: opacity 0.4s var(--ease), transform 0.4s var(--ease); }
.js .reveal-step { opacity: 0; transform: translateY(6px); }
.reveal-step.show { opacity: 1; transform: none; }

/* ============================ ENTERPRISE GRAPH + IMPACT ============================ */
.atlas-block { display: grid; grid-template-columns: 1.35fr 1fr; gap: clamp(20px, 3vw, 30px); align-items: stretch; }
.atlas-stage {
  position: relative; border: 1px solid var(--line); border-radius: var(--r-4);
  background: var(--white); box-shadow: var(--shadow-sm); overflow: hidden; min-height: 450px;
}
.atlas-stage svg { width: 100%; height: 100%; display: block; }
.atlas-hint {
  position: absolute; left: 18px; top: 16px; z-index: 4;
  font-family: var(--f-mono); font-size: 11px; letter-spacing: 0.04em; text-transform: uppercase; color: var(--ink-4);
  display: flex; align-items: center; gap: 8px;
}
.atlas-panel {
  border: 1px solid var(--line); border-radius: var(--r-4);
  background: var(--white); box-shadow: var(--shadow-md);
  padding: 26px; display: flex; flex-direction: column;
}
.atlas-panel__head { display: flex; align-items: center; gap: 10px; font-family: var(--f-mono); font-size: 11px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--ink-3); margin-bottom: 10px; }
.atlas-panel__node { font-family: var(--f-serif); font-size: 24px; color: var(--ink); font-weight: 600; letter-spacing: -0.01em; margin-bottom: 4px; }
.atlas-panel__sub { font-size: 13.5px; color: var(--ink-3); margin-bottom: 22px; }
.atlas-rows { display: grid; gap: 9px; margin-bottom: 22px; }
.atlas-row {
  display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 12px;
  padding: 12px 14px; background: var(--paper); border: 1px solid var(--line); border-radius: var(--r-2);
}
.atlas-row__name { font-size: 14.5px; color: var(--ink); display: flex; align-items: center; gap: 10px; }
.atlas-row__state { font-family: var(--f-mono); font-size: 11px; letter-spacing: 0.03em; padding: 4px 10px; border-radius: var(--r-pill); }
.state--critical { color: #8a2318; background: #f6e5e2; border: 1px solid #e6c3bc; }
.state--degraded { color: #855405; background: #f7ecd8; border: 1px solid #e7d3ac; }
.state--blocked { color: #5c6158; background: #ecebe4; border: 1px solid #dbd9cd; }
.atlas-metrics { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin-top: auto; }
.atlas-metric { padding: 14px; background: var(--paper); border: 1px solid var(--line); border-radius: var(--r-2); text-align: center; }
.atlas-metric b { font-family: var(--f-serif); font-size: 25px; font-weight: 600; color: var(--ink); display: block; letter-spacing: -0.01em; }
.atlas-metric span { font-size: 11px; color: var(--ink-3); }
.atlas-panel__cta { margin-top: 20px; }

.gnode { cursor: pointer; outline: none; transition: opacity 0.25s var(--ease); }
.gnode circle { transition: r 0.2s var(--ease), fill 0.2s var(--ease), stroke 0.2s var(--ease); }
.gnode:hover circle { stroke: var(--accent); stroke-width: 2.4; }
.gnode:focus-visible circle { stroke: var(--accent); stroke-width: 2.8; }
.gnode text { font-family: var(--f-mono); font-size: 10px; fill: var(--ink-3); pointer-events: none; user-select: none; }
.gedge { transition: stroke 0.25s var(--ease), stroke-width 0.25s var(--ease); }

/* ============================ CONNECTIVITY ============================ */
.conns { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.conn {
  display: flex; flex-direction: column; gap: 12px; padding: 22px;
  background: var(--white); border: 1px solid var(--line); border-radius: var(--r-3); box-shadow: var(--shadow-sm);
  transition: border-color 0.24s var(--ease), transform 0.24s var(--ease), box-shadow 0.24s var(--ease);
}
.conn:hover { border-color: var(--line-3); transform: translateY(-3px); box-shadow: var(--shadow-md); }
.conn__mark {
  width: 42px; height: 42px; border-radius: var(--r-2);
  display: grid; place-items: center;
  background: var(--accent-wash); border: 1px solid var(--accent-wash-2);
  color: var(--accent); font-family: var(--f-mono); font-weight: 500; font-size: 14px;
}
.conn__name { font-size: 15px; color: var(--ink); font-weight: 600; }
.conn__kind { font-family: var(--f-mono); font-size: 11px; color: var(--ink-4); letter-spacing: 0.04em; }
.conn--custom { background: var(--accent-wash); border-color: var(--accent-wash-2); }
.conn--custom .conn__mark { background: var(--accent); color: #fff; border-color: var(--accent); }
.conn--custom .conn__desc { font-size: 13px; color: var(--ink-2); }

/* ============================ MODEL AGNOSTIC ============================ */
.models { display: grid; grid-template-columns: 0.85fr 1.15fr; gap: clamp(24px, 4vw, 52px); align-items: center; }
.model-select { background: var(--white); border: 1px solid var(--line); border-radius: var(--r-4); padding: 24px; box-shadow: var(--shadow-md); }
.model-select__head { font-family: var(--f-mono); font-size: 11px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--ink-3); margin-bottom: 16px; display: flex; align-items: center; gap: 9px; }
.model-opts { display: grid; gap: 8px; }
.model-opt {
  display: flex; align-items: center; gap: 13px; width: 100%; text-align: left;
  padding: 14px 16px; background: var(--paper); border: 1px solid var(--line); border-radius: var(--r-2);
  cursor: pointer; transition: border-color 0.2s var(--ease), background 0.2s var(--ease);
}
.model-opt:hover { border-color: var(--line-3); }
.model-opt__radio { width: 18px; height: 18px; border-radius: 50%; border: 2px solid var(--line-3); flex: none; display: grid; place-items: center; transition: border-color 0.2s var(--ease); }
.model-opt__radio::after { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--accent); transform: scale(0); transition: transform 0.2s var(--ease); }
.model-opt__name { font-size: 15px; color: var(--ink-2); }
.model-opt__meta { margin-left: auto; font-family: var(--f-mono); font-size: 11px; color: var(--ink-4); }
.model-opt.is-active { border-color: var(--accent); background: var(--accent-wash); }
.model-opt.is-active .model-opt__radio { border-color: var(--accent); }
.model-opt.is-active .model-opt__radio::after { transform: scale(1); }
.model-opt.is-active .model-opt__name { color: var(--ink); font-weight: 600; }
.model-highlights { display: grid; gap: 14px; }
.model-highlights li { display: flex; gap: 12px; align-items: flex-start; font-size: 15.5px; color: var(--ink-2); }
.model-highlights .dot { margin-top: 8px; }
.model-highlights li b { color: var(--ink); font-weight: 600; }

/* ============================ SECURITY ============================ */
.sec-flow { display: flex; flex-wrap: wrap; align-items: stretch; gap: 10px; margin-bottom: 40px; }
.sec-flow__step {
  flex: 1 1 150px; padding: 16px 18px;
  background: var(--white); border: 1px solid var(--line); border-radius: var(--r-2); box-shadow: var(--shadow-sm);
  display: grid; gap: 4px;
}
.sec-flow__step .n { font-family: var(--f-mono); font-size: 11px; color: var(--accent); letter-spacing: 0.04em; }
.sec-flow__step .l { font-size: 14.5px; color: var(--ink); font-weight: 600; }
.sec-flow__step .s { font-size: 12.5px; color: var(--ink-3); }
.sec-flow__arrow { align-self: center; color: var(--ink-4); }
.sec-highlight {
  padding: 24px 28px;
  background: var(--accent-wash); border: 1px solid var(--accent-wash-2); border-left: 3px solid var(--accent);
  border-radius: var(--r-2);
  font-family: var(--f-serif); font-size: clamp(17px, 2vw, 21px); color: var(--ink); margin-bottom: 40px; line-height: 1.4;
}
.sec-highlight b { color: var(--accent); font-weight: 600; }
.roles { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-bottom: 36px; }
.role { padding: 26px; background: var(--white); border: 1px solid var(--line); border-radius: var(--r-3); box-shadow: var(--shadow-sm); }
.role__name { font-family: var(--f-serif); font-size: 18px; color: var(--ink); font-weight: 600; margin-bottom: 16px; display: flex; align-items: center; gap: 10px; }
.perm { display: flex; align-items: center; gap: 11px; padding: 10px 0; font-size: 14.5px; border-bottom: 1px solid var(--line); }
.perm:last-child { border-bottom: 0; }
.perm.allow { color: var(--ink); }
.perm.deny { color: var(--ink-3); }
.perm .ic { width: 18px; height: 18px; flex: none; }
.ic-allow { color: var(--good); }
.ic-deny { color: var(--bad); }
.sec-props { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.sec-prop { display: flex; align-items: center; gap: 11px; padding: 15px 16px; background: var(--white); border: 1px solid var(--line); border-radius: var(--r-2); font-size: 14px; color: var(--ink-2); box-shadow: var(--shadow-sm); }

/* ============================ DEPLOYMENT ============================ */
.deploys { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.deploy { padding: 30px; background: var(--white); border: 1px solid var(--line); border-radius: var(--r-3); box-shadow: var(--shadow-sm); transition: border-color 0.24s var(--ease), transform 0.24s var(--ease), box-shadow 0.24s var(--ease); }
.deploy:hover { border-color: var(--line-3); transform: translateY(-3px); box-shadow: var(--shadow-md); }
.deploy__ic { width: 46px; height: 46px; border-radius: var(--r-2); display: grid; place-items: center; background: var(--accent-wash); border: 1px solid var(--accent-wash-2); color: var(--accent); margin-bottom: 20px; }
.deploy__name { font-family: var(--f-serif); font-size: 20px; color: var(--ink); margin-bottom: 8px; }
.deploy__desc { font-size: 14px; color: var(--ink-3); margin-bottom: 20px; }
.deploy__list { display: grid; gap: 10px; }
.deploy__list li { display: flex; align-items: center; gap: 10px; font-family: var(--f-mono); font-size: 13px; color: var(--ink-2); }

/* ============================ AUTOMATION ============================ */
.pipe { display: flex; flex-wrap: wrap; gap: 10px; align-items: stretch; margin-bottom: 34px; }
.pipe__step {
  flex: 1 1 130px; text-align: center; padding: 22px 16px;
  background: var(--white); border: 1px solid var(--line); border-radius: var(--r-2); box-shadow: var(--shadow-sm);
  transition: border-color 0.25s var(--ease), transform 0.25s var(--ease);
}
.pipe__step:hover { border-color: var(--accent); transform: translateY(-2px); }
.pipe__step .n { font-family: var(--f-mono); font-size: 11px; color: var(--accent); display: block; margin-bottom: 8px; letter-spacing: 0.06em; }
.pipe__step .l { font-size: 15px; color: var(--ink); font-weight: 600; }
.pipe__step.is-approve { border-color: var(--accent); background: var(--accent-wash); }
.runtimes { display: flex; flex-wrap: wrap; gap: 10px; }

/* ============================ USE CASES ============================ */
.cases { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.case { padding: 28px; background: var(--white); border: 1px solid var(--line); border-radius: var(--r-3); box-shadow: var(--shadow-sm); transition: border-color 0.24s var(--ease), transform 0.24s var(--ease), box-shadow 0.24s var(--ease); }
.case:hover { border-color: var(--line-3); transform: translateY(-3px); box-shadow: var(--shadow-md); }
.case__role { font-family: var(--f-mono); font-size: 11px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--accent); margin-bottom: 18px; }
.case__q { font-family: var(--f-serif); font-size: 19px; color: var(--ink); font-weight: 600; line-height: 1.3; margin-bottom: 12px; }
.case__a { font-size: 14px; color: var(--ink-2); }

/* ============================ WHY / REASONS ============================ */
.reasons { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--r-3); overflow: hidden; }
.reason { background: var(--white); padding: 32px; }
.reason__ic { color: var(--accent); margin-bottom: 18px; }
.reason__t { font-family: var(--f-serif); font-size: 19px; color: var(--ink); margin-bottom: 10px; font-weight: 600; }
.reason__d { font-size: 14px; color: var(--ink-2); }

/* ============================ FUTURE BAND (pale green) ============================ */
.future { text-align: center; padding: clamp(64px, 9vw, 116px) 0; background: var(--accent-wash); border-top: 1px solid var(--accent-wash-2); border-bottom: 1px solid var(--accent-wash-2); }
.future .kicker { color: var(--accent-2); }
.future__title { font-family: var(--f-serif); font-size: clamp(30px, 5vw, 56px); font-weight: 600; max-width: 18ch; margin-inline: auto; color: var(--ink); }
.future__lede { margin: 24px auto 42px; max-width: 58ch; font-size: 18px; color: var(--ink-2); }
.future__verbs { display: inline-flex; flex-wrap: wrap; justify-content: center; gap: 14px; }
.future__verb {
  font-family: var(--f-serif); font-size: clamp(22px, 3vw, 34px); font-weight: 600; letter-spacing: -0.01em; color: var(--ink);
  padding: 10px 30px; border: 1px solid var(--accent); border-radius: var(--r-pill); background: var(--white);
}
.future__verb:nth-child(2) { color: #fff; background: var(--accent); }

/* ============================ FINAL CTA + CONTACT ============================ */
.cta-contact { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(28px, 5vw, 68px); align-items: start; }
.cta-copy .section-title { font-size: clamp(30px, 4vw, 46px); }
.cta-copy .btn-row { display: flex; gap: 14px; flex-wrap: wrap; margin-top: 28px; }
.cta-points { margin-top: 34px; display: grid; gap: 13px; }
.cta-points li { display: flex; gap: 11px; align-items: flex-start; color: var(--ink-2); font-size: 15px; }
.cta-points .dot { margin-top: 8px; }

.form { background: var(--white); border: 1px solid var(--line); border-radius: var(--r-4); padding: clamp(24px, 3vw, 36px); box-shadow: var(--shadow-lg); }
.form__title { font-family: var(--f-serif); font-size: 22px; margin-bottom: 6px; color: var(--ink); }
.form__sub { font-size: 14px; color: var(--ink-3); margin-bottom: 24px; }
.form__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.field { display: grid; gap: 7px; }
.field--full { grid-column: 1 / -1; }
.field label { font-size: 13px; color: var(--ink-2); font-weight: 600; }
.field label .req { color: var(--accent); }
.field input, .field select, .field textarea {
  padding: 12px 14px; background: var(--paper); border: 1px solid var(--line-2); border-radius: var(--r-2);
  color: var(--ink); font-size: 15px; width: 100%;
  transition: border-color 0.18s var(--ease), background 0.18s var(--ease), box-shadow 0.18s var(--ease);
}
.field input::placeholder, .field textarea::placeholder { color: var(--ink-4); }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--accent); background: var(--white); box-shadow: 0 0 0 3px var(--accent-wash); }
.field textarea { resize: vertical; min-height: 98px; }
.field select { appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%23737b74' stroke-width='1.6' fill='none' stroke-linecap='round'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 14px center; padding-right: 38px; }
.form__submit { margin-top: 22px; width: 100%; color: #fff; }
.form__note { margin-top: 14px; font-size: 12.5px; color: var(--ink-4); text-align: center; }
.form__msg { margin-top: 16px; padding: 13px 16px; border-radius: var(--r-2); font-size: 14px; display: none; align-items: center; gap: 8px; }
.form__msg.show { display: flex; }
.form__msg.info { background: var(--accent-wash); border: 1px solid var(--accent-wash-2); color: var(--accent-2); }
.form__msg.warn { background: #f7ecd8; border: 1px solid #e7d3ac; color: #855405; }
.form__msg.err { background: #f6e5e2; border: 1px solid #e6c3bc; color: #8a2318; }
.field__error { font-size: 12px; color: var(--bad); display: none; }
.field.invalid input, .field.invalid select { border-color: var(--bad); }
.field.invalid .field__error { display: block; }

/* ============================ ABOUT ============================ */
.about-grid { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: clamp(28px, 5vw, 68px); align-items: start; }
.about-lede { font-family: var(--f-serif); font-size: clamp(21px, 2.6vw, 30px); color: var(--ink); line-height: 1.32; letter-spacing: -0.01em; font-weight: 600; }
.about-body { display: grid; gap: 18px; font-size: 16.5px; color: var(--ink-2); }
.about-body b { color: var(--ink); font-weight: 600; }

/* ============================ FOOTER (deep forest) ============================ */
.site-footer { background: var(--forest); color: rgba(255, 255, 255, 0.7); padding-block: 60px 34px; }
.site-footer .brand__word { color: #fff; }
.site-footer .brand__zero { color: #8fd6b0; }
.site-footer .brand__tag { color: rgba(255, 255, 255, 0.55); }
.site-footer .brand__icon { filter: brightness(0) invert(1); opacity: 0.92; }
.foot__top { display: grid; grid-template-columns: 1.7fr 1fr 1fr 1fr; gap: 32px; margin-bottom: 46px; }
.foot__brand .brand { margin-bottom: 18px; }
.foot__tag { font-size: 14px; color: rgba(255, 255, 255, 0.6); max-width: 32ch; }
.foot__statement { margin-top: 20px; font-family: var(--f-mono); font-size: 12.5px; color: #8fd6b0; letter-spacing: 0.02em; }
.foot__col h4 { font-size: 12px; letter-spacing: 0.1em; text-transform: uppercase; color: rgba(255, 255, 255, 0.45); margin-bottom: 16px; font-weight: 600; }
.foot__col ul { display: grid; gap: 11px; }
.foot__col a { font-size: 14.5px; color: rgba(255, 255, 255, 0.72); transition: color 0.18s var(--ease); }
.foot__col a:hover { color: #fff; }
.foot__bottom { display: flex; flex-wrap: wrap; gap: 12px 24px; align-items: center; justify-content: space-between; padding-top: 28px; border-top: 1px solid rgba(255, 255, 255, 0.12); }
.foot__bottom p { font-size: 13px; color: rgba(255, 255, 255, 0.5); }
.foot__legal { display: flex; gap: 20px; }
.foot__legal a { font-size: 13px; color: rgba(255, 255, 255, 0.6); }
.foot__legal a:hover { color: #fff; }

/* ============================ LEGAL / PROSE ============================ */
.legal { padding-top: clamp(124px, 14vw, 172px); }
.legal__head { max-width: 760px; margin-bottom: 40px; }
.legal__updated { font-family: var(--f-mono); font-size: 12.5px; color: var(--ink-4); letter-spacing: 0.04em; margin-top: 14px; }
.prose { max-width: 720px; }
.prose h2 { font-family: var(--f-serif); font-size: clamp(21px, 2.4vw, 27px); margin: 42px 0 14px; }
.prose h3 { font-size: 17px; color: var(--ink); margin: 26px 0 10px; }
.prose p { color: var(--ink-2); margin-bottom: 14px; }
.prose ul { display: grid; gap: 9px; margin: 4px 0 16px; }
.prose li { color: var(--ink-2); display: flex; gap: 11px; align-items: flex-start; }
.prose li::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--accent); margin-top: 9px; flex: none; }
.prose a { color: var(--accent); text-decoration: underline; text-underline-offset: 3px; }
.prose__note { margin-top: 40px; padding: 16px 18px; border: 1px solid var(--line-2); border-radius: var(--r-2); background: var(--paper-2); font-size: 13.5px; color: var(--ink-3); }

/* ============================ REVEAL ANIMATION ============================ */
.reveal { transition: opacity 0.7s var(--ease), transform 0.7s var(--ease); }
.js .reveal { opacity: 0; transform: translateY(20px); }
.reveal.is-in { opacity: 1; transform: none; }
.reveal[data-delay="1"] { transition-delay: 0.07s; }
.reveal[data-delay="2"] { transition-delay: 0.14s; }
.reveal[data-delay="3"] { transition-delay: 0.21s; }
.reveal[data-delay="4"] { transition-delay: 0.28s; }

/* ============================ RESPONSIVE ============================ */
@media (max-width: 1000px) {
  .hero__grid { grid-template-columns: 1fr; }
  .hero__visual { order: -1; max-width: 580px; }
  .models, .cta-contact, .about-grid, .atlas-block { grid-template-columns: 1fr; }
  .pillar, .pillar:nth-child(even) { grid-template-columns: 1fr; }
  .pillar__media, .pillar:nth-child(even) .pillar__media { order: 0; }
  .conns { grid-template-columns: repeat(3, 1fr); }
  .foot__top { grid-template-columns: 1fr 1fr; }
  .foot__brand { grid-column: 1 / -1; }
  .reasons { grid-template-columns: 1fr 1fr; }
  /* let the sub-nav tabs scroll horizontally when space is tight */
  .subnav__label, .subnav__cta { display: none; }
  .subnav__tabs { overflow-x: auto; -webkit-overflow-scrolling: touch; scrollbar-width: none; }
  .subnav__tabs::-webkit-scrollbar { display: none; }
}
@media (max-width: 720px) {
  html { scroll-padding-top: 90px; }
  .nav__actions .nav__cta { display: none; }
  .nav__toggle { display: inline-flex; }
  .subnav { display: none; }
  .brand__tag { font-size: 8px; letter-spacing: 0.1em; }
  .brand__icon { width: 32px; height: 32px; }
  .verbs { grid-template-columns: 1fr; }
  .reasons { grid-template-columns: 1fr; }
  .arch { grid-template-columns: 1fr; }
  .arch__flow { transform: rotate(90deg); }
  .arch__core { min-width: 0; }
  .deploys, .cases, .sec-props, .roles { grid-template-columns: 1fr; }
  .conns { grid-template-columns: 1fr 1fr; }
  .demo__metrics { grid-template-columns: 1fr 1fr; }
  .impact__grid { grid-template-columns: 1fr 1fr; }
  .form__grid { grid-template-columns: 1fr; }
  .sec-flow__arrow { transform: rotate(90deg); }
  .sec-flow__step { flex-basis: 100%; }
}
@media (max-width: 440px) {
  .conns { grid-template-columns: 1fr; }
}

/* ============================ REDUCED MOTION ============================ */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }
  .js .reveal { opacity: 1 !important; transform: none !important; }
  .js .reveal-step { opacity: 1 !important; transform: none !important; }
  .demo__caret, .dot--pulse { animation: none !important; }
}

/* ==========================================================================
   INSIDE THE CONSOLE — faithful in-page recreation of the product UI.
   Self-contained, all-CSS (no raster screenshots), theme tokens throughout.
   ========================================================================== */
.console-band { border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }

.console {
  max-width: 1080px; margin-inline: auto;
  background: var(--white); border: 1px solid var(--line-2);
  border-radius: var(--r-4); box-shadow: var(--shadow-lg); overflow: hidden;
}
.console__chrome {
  display: flex; align-items: center; gap: 12px;
  padding: 13px 18px; border-bottom: 1px solid var(--line); background: var(--paper);
}
.console__tabs {
  display: flex; gap: 4px; padding: 10px 14px 0; background: var(--paper);
}
.console__tab {
  font-family: var(--f-sans); font-size: 13.5px; font-weight: 600; color: var(--ink-3);
  padding: 9px 16px; border-radius: var(--r-2) var(--r-2) 0 0; border: 1px solid transparent;
  border-bottom: none; transition: color .18s var(--ease), background .18s var(--ease);
}
.console__tab:hover { color: var(--ink); }
.console__tab.is-active {
  color: var(--accent-2); background: var(--white);
  border-color: var(--line); box-shadow: 0 -1px 0 var(--accent) inset;
}

.console__frame {
  display: grid; grid-template-columns: 190px 1fr; min-height: 430px;
  border-top: 1px solid var(--line); background: var(--white);
}

/* shared sidebar */
.cui-side {
  border-right: 1px solid var(--line); padding: 16px 12px;
  display: flex; flex-direction: column; gap: 16px; background: var(--paper);
}
.cui-brand { display: flex; align-items: center; gap: 9px; padding: 2px 6px 12px; border-bottom: 1px solid var(--line); }
.cui-brand span { display: flex; flex-direction: column; line-height: 1.15; }
.cui-brand b { font-family: var(--f-serif); font-size: 15px; color: var(--ink); }
.cui-brand small { font-size: 11px; color: var(--ink-3); }
.cui-nav { display: flex; flex-direction: column; gap: 2px; }
.cui-navitem {
  display: flex; align-items: center; gap: 10px; padding: 7px 9px;
  border-radius: var(--r-2); font-size: 13px; font-weight: 500; color: var(--ink-2);
}
.cui-navitem.is-active { background: var(--accent-wash); color: var(--accent-2); font-weight: 600; }
.cui-ic { width: 15px; height: 15px; border-radius: 4px; background: var(--paper-3); flex: none; position: relative; }
.cui-ic::after { content: ""; position: absolute; inset: 4px; border-radius: 1.5px; background: var(--ink-4); opacity: .5; }
.cui-navitem.is-active .cui-ic { background: var(--accent-wash-2); }
.cui-navitem.is-active .cui-ic::after { background: var(--accent); opacity: .9; }
.cui-side__foot { margin-top: auto; font-size: 11px; color: var(--ink-4); padding: 0 6px; }

/* main + screen switching */
.cui-main { display: flex; flex-direction: column; min-width: 0; position: relative; }
.console__screen { animation: cfade .32s var(--ease); }
@keyframes cfade { from { opacity: 0; transform: translateY(6px); } }
.cui-topbar {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 14px 20px; border-bottom: 1px solid var(--line);
}
.cui-title { font-family: var(--f-serif); font-size: 16px; font-weight: 600; color: var(--ink); }
.cui-scope { display: inline-flex; align-items: center; gap: 7px; font-size: 12px; color: var(--ink-3); }
.cui-body { padding: 18px 20px; display: flex; flex-direction: column; gap: 14px; min-width: 0; }
.cui-inventory { display: grid; grid-template-columns: 1fr; }

/* inventory: stats + table + drawer */
#cscreen-inventory { display: grid; grid-template-columns: 1fr 232px; }
#cscreen-inventory .cui-body { grid-column: 1; }
.cui-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.cui-stat { padding: 12px 14px; background: var(--paper); border: 1px solid var(--line); border-radius: var(--r-2); }
.cui-stat b { display: block; font-family: var(--f-serif); font-size: 22px; color: var(--ink); letter-spacing: -.01em; }
.cui-stat span { font-size: 11px; color: var(--ink-3); }
.cui-table { border: 1px solid var(--line); border-radius: var(--r-2); overflow: hidden; }
.cui-tr {
  display: grid; grid-template-columns: 1.5fr 1fr .8fr 1.4fr .7fr; gap: 10px;
  padding: 9px 13px; font-size: 12.5px; color: var(--ink-2); align-items: center;
  border-top: 1px solid var(--line-2);
}
.cui-tr span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cui-tr span:first-child { color: var(--ink); font-weight: 500; }
.cui-tr--head {
  border-top: none; background: var(--paper); font-size: 10.5px; text-transform: uppercase;
  letter-spacing: .05em; color: var(--ink-3); font-weight: 600;
}
.cui-tr.is-sel { background: var(--accent-wash); }
.cui-src { color: var(--ink-3); }
.cui-drawer {
  grid-column: 2; grid-row: 1 / span 2; border-left: 1px solid var(--line);
  padding: 16px 16px 18px; background: var(--paper); display: flex; flex-direction: column; gap: 3px;
}
.cui-drawer__head { display: flex; flex-direction: column; gap: 2px; margin-bottom: 10px; }
.cui-drawer__head b { font-family: var(--f-serif); font-size: 15px; color: var(--ink); }
.cui-drawer__head span { font-size: 11px; color: var(--ink-3); }
.cui-drawer__grp {
  font-size: 10.5px; text-transform: uppercase; letter-spacing: .05em; color: var(--accent-2);
  font-weight: 700; margin: 12px 0 4px;
}
.cui-kv { display: grid; grid-template-columns: 84px 1fr; gap: 8px; padding: 4px 0; font-size: 12px; border-bottom: 1px solid var(--line-2); }
.cui-kv span:first-child { color: var(--ink-3); }
.cui-kv span:last-child { color: var(--ink); overflow-wrap: anywhere; }

/* collectors */
.cui-body--grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.cui-coll { border: 1px solid var(--line); border-radius: var(--r-2); padding: 13px 14px; display: flex; flex-direction: column; gap: 8px; background: var(--white); }
.cui-coll__head { display: flex; align-items: flex-start; justify-content: space-between; gap: 8px; }
.cui-coll__head b { display: block; font-size: 13.5px; color: var(--ink); }
.cui-coll__head .mono { font-size: 10.5px; color: var(--ink-3); }
.cui-coll__d { font-size: 11.5px; color: var(--ink-3); line-height: 1.45; margin: 0; }
.cui-coll__stats { display: flex; gap: 18px; padding: 8px 0; border-top: 1px solid var(--line-2); border-bottom: 1px solid var(--line-2); }
.cui-coll__stats > div { display: flex; flex-direction: column; }
.cui-coll__stats b { font-size: 14px; color: var(--ink); font-family: var(--f-mono); }
.cui-coll__stats span { font-size: 10px; text-transform: uppercase; letter-spacing: .04em; color: var(--ink-4); }
.cui-coll__run { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; font-size: 11px; color: var(--ink-3); }
.cui-coll__act { display: flex; gap: 6px; margin-top: auto; flex-wrap: wrap; }
.cui-badge {
  display: inline-flex; align-items: center; gap: 5px; padding: 2px 8px; border-radius: var(--r-pill);
  font-size: 10.5px; font-weight: 600; border: 1px solid var(--line-2); color: var(--ink-3); background: var(--paper);
}
.cui-badge--ok { color: var(--accent-2); background: var(--accent-wash); border-color: var(--accent-wash-2); }
.cui-badge--run { color: var(--accent-2); background: var(--accent-wash); border-color: var(--accent-wash-2); }
.cui-btn {
  display: inline-flex; align-items: center; font-size: 11.5px; font-weight: 600; color: var(--ink-2);
  padding: 5px 11px; border: 1px solid var(--line-2); border-radius: var(--r-2); background: var(--white);
}
.cui-btn--p { background: var(--accent); border-color: var(--accent); color: #fff; }
.cui-btn--muted { color: var(--ink-4); }

/* minerva */
.cui-chat { padding: 18px 20px; display: flex; flex-direction: column; gap: 16px; flex: 1; }
.cui-msg { display: flex; gap: 11px; max-width: 82%; }
.cui-msg--user { align-self: flex-end; flex-direction: row-reverse; }
.cui-av {
  width: 28px; height: 28px; flex: none; border-radius: 7px; display: grid; place-items: center;
  font-size: 11px; font-weight: 700; background: var(--paper-3); color: var(--ink-2); border: 1px solid var(--line-2);
}
.cui-av--ai { background: var(--accent); color: #fff; border-color: var(--accent); }
.cui-bub { background: var(--paper); border: 1px solid var(--line); border-radius: var(--r-3); padding: 11px 14px; }
.cui-msg--user .cui-bub { background: var(--accent-wash); border-color: var(--accent-wash-2); }
.cui-bub > b { display: block; font-size: 11px; color: var(--ink-3); margin-bottom: 3px; font-family: var(--f-sans); }
.cui-bub p { font-size: 13px; color: var(--ink-2); margin: 0 0 6px; line-height: 1.5; }
.cui-bub p b { color: var(--ink); font-weight: 600; }
.cui-bub p:last-child { margin-bottom: 0; }
.cui-cites { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 9px; padding-top: 9px; border-top: 1px solid var(--line-2); }
.cui-cite {
  display: inline-flex; align-items: center; gap: 5px; font-size: 10.5px; font-weight: 600; color: var(--accent-2);
  padding: 2px 8px; border-radius: var(--r-pill); background: var(--accent-wash); border: 1px solid var(--accent-wash-2);
}
.cui-composer { display: flex; align-items: center; gap: 10px; margin: 0 20px 18px; padding: 10px 12px; border: 1px solid var(--line-2); border-radius: var(--r-3); background: var(--paper); }
.cui-composer__ph { flex: 1; font-size: 13px; color: var(--ink-4); }

.console__foot {
  display: flex; align-items: center; justify-content: space-between; gap: 14px; flex-wrap: wrap;
  padding: 14px 18px; border-top: 1px solid var(--line); background: var(--paper);
}
.console__foot .mono { font-size: 12px; color: var(--ink-4); }

@media (max-width: 860px) {
  .console__frame { grid-template-columns: 1fr; }
  .cui-side { flex-direction: row; align-items: center; border-right: none; border-bottom: 1px solid var(--line); overflow-x: auto; }
  .cui-brand { border-bottom: none; border-right: 1px solid var(--line); padding: 0 12px 0 4px; }
  .cui-nav { flex-direction: row; flex: 1; }
  .cui-side__foot { display: none; }
  #cscreen-inventory { grid-template-columns: 1fr; }
  .cui-drawer { grid-column: 1; grid-row: auto; border-left: none; border-top: 1px solid var(--line); }
  .cui-body--grid { grid-template-columns: 1fr; }
}
@media (max-width: 560px) {
  .cui-tr { grid-template-columns: 1.4fr .9fr .8fr; }
  .cui-tr span:nth-child(4), .cui-tr span:nth-child(5) { display: none; }
  .cui-stats { grid-template-columns: 1fr 1fr; }
  .console__tab { padding: 8px 12px; font-size: 12.5px; }
}
