/* ==========================================================
   CORROBO — editorial serif · warm stone neutrals · cinematic dark
   Type system mirrors the reference site: Newsreader for display,
   Geist for everything else. Both are open-licensed (SIL OFL).
   ========================================================== */

:root {
  --bg: #f5f5f4;            /* stone-100 — warm off-white */
  --bg-2: #fafaf9;          /* stone-50 */
  --bg-3: #e7e5e4;          /* stone-200 */
  --bg-dark: #0c0a09;       /* stone-950 */
  --bg-dark-2: #1c1917;     /* stone-900 */

  --ink: #1c1917;           /* stone-900 */
  --ink-2: #292524;         /* stone-800 */
  --ink-3: #57534e;         /* stone-600 */
  /* stone-500, not stone-400: this carries the eyebrows, school lines and
     plan tags, and stone-400 measured 2.31:1 on the stone-100 ground — below
     WCAG AA. This lands ~4.6:1 and still reads as quiet. */
  --ink-soft: #78716c;

  --on-dark: #f5f5f4;
  --on-dark-2: rgba(245, 245, 244, 0.62);
  --on-dark-3: rgba(245, 245, 244, 0.40);

  --line: #e7e5e4;
  --line-2: #d6d3d1;
  --line-strong: #a8a29e;
  --line-dark: rgba(245, 245, 244, 0.14);

  --indigo: #4338ca;        /* brand accent, used sparingly now */
  --indigo-2: #6366f1;
  --indigo-3: #312e81;

  --butter: #fff5cc;
  --butter-2: #fde68a;
  --butter-ink: #854d0e;

  --warn: #92580d;
  --warn-soft: #fef3c7;
  --alert: #b91c1c;
  --alert-soft: #fee2e2;

  --shadow-sm: 0 1px 2px rgba(10,10,10,.03), 0 1px 4px rgba(10,10,10,.03);
  --shadow-md: 0 4px 16px -6px rgba(10,10,10,.08), 0 2px 6px rgba(10,10,10,.04);
  --shadow-lg: 0 24px 60px -24px rgba(10,10,10,.14);

  --radius: 12px;
  --serif: 'Newsreader', 'Iowan Old Style', Georgia, serif;
  --display: 'Geist', system-ui, -apple-system, sans-serif;
  --sans: 'Geist', system-ui, -apple-system, sans-serif;
  --mono: 'JetBrains Mono', ui-monospace, monospace;

  /* Drop a licensed photo in here and the hero uses it instead of the
     CSS backdrop, e.g. --hero-img: url('/hero.jpg'); */
  --hero-img: none;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
section[id] { scroll-margin-top: 70px; }
body {
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  line-height: 1.55;
  font-weight: 400;
  font-size: 15px;
}

/* paper grain — softer */
body::before {
  content: '';
  position: fixed; inset: 0;
  background-image:
    radial-gradient(circle at 1px 1px, rgba(10,10,10,0.025) 1px, transparent 1px);
  background-size: 24px 24px;
  pointer-events: none; z-index: 0;
  mask-image: radial-gradient(ellipse 100% 80% at 50% 30%, black 30%, transparent 80%);
  -webkit-mask-image: radial-gradient(ellipse 100% 80% at 50% 30%, black 30%, transparent 80%);
}

#bg-canvas { display: none; }
section { position: relative; z-index: 1; }
::selection { background: var(--butter); color: var(--ink); }
code, pre { font-family: var(--mono); }

/* highlighter — softer, more subtle */
.hl {
  position: relative;
  display: inline-block;
  white-space: nowrap;
}
.hl::before {
  content: '';
  position: absolute;
  inset: 12% -3% 2% -3%;
  background: var(--butter);
  z-index: -1;
  transform: skewX(-6deg);
  transition: transform .4s cubic-bezier(.2,.7,.2,1);
}
.hl:hover::before { transform: skewX(-6deg) scaleY(1.08); }

/* generic display type */
h1, h2, h3, h4 {
  font-family: var(--display);
  letter-spacing: -0.02em;
  line-height: 1.05;
  font-weight: 600;
}

/* ============== NAV ============== */
.nav {
  position: sticky; top: 0;
  z-index: 40;
  width: 100%;
  padding: 12px 4vw;
  display: flex; align-items: center; gap: 24px;
  background: rgba(250,250,247,0.85);
  backdrop-filter: blur(20px) saturate(160%);
  -webkit-backdrop-filter: blur(20px) saturate(160%);
  border-bottom: 1px solid var(--line);
}
.nav-logo {
  display: flex; align-items: center; gap: 10px;
  text-decoration: none; color: var(--ink);
}
.logo-mark { display: inline-flex; }
.logo-text {
  font-family: var(--display);
  font-size: 19px;
  font-weight: 700;
  letter-spacing: -0.025em;
}
.logo-text .lens {
  color: var(--indigo);
  font-weight: 500;
}
.nav-links {
  list-style: none;
  display: flex; gap: 22px;
  flex: 1; justify-content: center;
  font-family: var(--display);
  font-size: 13px;
  font-weight: 500;
  letter-spacing: -0.005em;
}
.nav-links a {
  color: var(--ink-3);
  text-decoration: none;
  transition: color .2s;
}
.nav-links a:hover { color: var(--ink); }
.nav-cta {
  background: var(--ink);
  color: var(--bg);
  text-decoration: none;
  padding: 10px 18px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 500;
  display: inline-flex;
  gap: 6px;
  white-space: nowrap;
  font-family: var(--display);
  transition: transform .2s, background .2s;
}
.nav-cta:hover { background: var(--indigo); transform: translateY(-1px); }
.nav-cta span { transition: transform .2s; display: inline-block; }
.nav-cta:hover span { transform: translate(2px, -2px); }

/* Below 920px the links used to vanish with no hamburger, stranding phone
   visitors on whatever page they landed on. Wrap them to a second row. */
@media (max-width: 920px) {
  .nav { flex-wrap: wrap; gap: 10px 16px; padding: 12px 5vw; }
  .nav-logo { margin-right: auto; }
  .nav-links {
    order: 3; width: 100%; flex: none;
    justify-content: flex-start; gap: 20px;
    padding-top: 8px; border-top: 1px solid var(--line);
  }
}
/* ============== TIGHTER SECTION PADDING ============== */
.brief, .stories, .agents, .flow, .vlm, .why, .cta {
  padding: 70px 4vw;
}

/* ============== STORY CARDS ============== */
.story-cards {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 22px;
}
.sc {
  background: var(--bg-2);
  border: 1px solid var(--line);
  border-radius: 10px;
  overflow: hidden;
  transition: transform .3s, box-shadow .3s, border-color .3s;
}
.sc:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); border-color: var(--line-2); }
.sc-head {
  display: flex; align-items: center; gap: 12px;
  padding: 18px 22px;
  border-bottom: 1px solid var(--line);
  background: var(--bg);
}
.sc-no {
  font-family: var(--display);
  font-size: 26px;
  font-weight: 700;
  color: var(--indigo);
  letter-spacing: -0.04em;
}
.sc-head h3 {
  font-family: var(--display);
  font-size: 18px;
  font-weight: 600;
  color: var(--ink);
  flex: 1;
  letter-spacing: -0.015em;
}
.sc-tag {
  font-family: var(--display);
  font-size: 10px;
  font-weight: 600;
  background: var(--butter);
  color: var(--butter-ink);
  padding: 3px 9px;
  border-radius: 100px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.sc-body { padding: 8px 22px 22px; }
.sc-step {
  display: grid;
  grid-template-columns: 32px 1fr;
  gap: 14px;
  padding: 14px 0;
  border-bottom: 1px dashed var(--line);
  align-items: start;
}
.sc-step:last-child { border-bottom: none; }
.sc-step b {
  font-family: var(--mono);
  font-size: 11px;
  background: var(--ink);
  color: var(--butter-2);
  padding: 3px 6px;
  border-radius: 3px;
  letter-spacing: 0.05em;
  height: fit-content;
  font-weight: 500;
}
.sc-step p { color: var(--ink-2); font-size: 14px; line-height: 1.5; }
.sc-step i { font-style: italic; color: var(--indigo); font-weight: 500; }
.sc-step code {
  background: var(--butter);
  color: var(--butter-ink);
  padding: 1px 6px;
  border-radius: 3px;
  font-size: 12.5px;
  font-weight: 500;
}

@media (max-width: 820px) { .story-cards { grid-template-columns: 1fr; } }

/* ============== AGENTS LIST ============== */
.agents-intro {
  display: grid;
  grid-template-columns: 1.3fr 1fr;
  gap: 50px;
  margin-bottom: 40px;
  align-items: end;
}
.agents-intro h2 {
  font-family: var(--serif);
  font-size: clamp(28px, 4.2vw, 54px);
  font-weight: 400;
  letter-spacing: -0.018em;
  line-height: 1.08;
  color: var(--ink);
}
.agents-intro p {
  color: var(--ink-3);
  font-size: 15px;
  max-width: 38ch;
}

.agent-list {
  list-style: none;
  border-top: 1px solid var(--line-2);
}
.ag-row {
  display: grid;
  grid-template-columns: 50px 50px 1.2fr 2fr 0.9fr;
  gap: 18px;
  padding: 22px 0;
  border-bottom: 1px solid var(--line);
  align-items: center;
  transition: background .3s, padding-left .3s, padding-right .3s;
}
.ag-row:hover {
  background: var(--bg-2);
  padding-left: 14px;
  padding-right: 14px;
}
.ag-no {
  font-family: var(--mono);
  font-size: 12px;
  color: var(--ink-soft);
  letter-spacing: 0.08em;
}
.ag-icon {
  width: 38px; height: 38px;
  border-radius: 8px;
  background: var(--bg-3);
  color: var(--ink);
  display: grid; place-items: center;
  transition: transform .35s, background .35s, color .35s;
}
.ag-icon svg { width: 20px; height: 20px; }
.ag-row:hover .ag-icon {
  background: var(--ink);
  color: var(--butter-2);
  transform: rotate(-6deg) scale(1.05);
}
.ag-name {
  font-family: var(--display);
  font-size: 18px;
  font-weight: 600;
  letter-spacing: -0.015em;
  color: var(--ink);
}
.ag-desc {
  color: var(--ink-3);
  font-size: 13.5px;
  line-height: 1.5;
}
.ag-tags {
  display: flex; gap: 5px;
  flex-wrap: wrap;
  justify-content: flex-end;
}
.ag-tags span {
  font-family: var(--display);
  font-size: 10.5px;
  font-weight: 500;
  padding: 3px 8px;
  border: 1px solid var(--line-2);
  border-radius: 100px;
  color: var(--ink-3);
  letter-spacing: 0.02em;
  text-transform: uppercase;
}
.ag-row-fusion {
  background: linear-gradient(90deg, var(--butter) 0%, var(--bg) 50%);
}
.ag-row-fusion:hover { background: linear-gradient(90deg, var(--butter-2) 0%, var(--bg) 60%); }
.ag-row-fusion .ag-no {
  color: var(--indigo);
  font-family: var(--display);
  font-size: 22px;
  font-weight: 700;
}

@media (max-width: 920px) {
  .ag-row { grid-template-columns: 38px 1fr; gap: 12px; }
  .ag-no, .ag-tags { grid-column: 2; }
  .ag-icon { grid-row: 1 / span 2; }
  .ag-name, .ag-desc { grid-column: 2; }
  .agents-intro { grid-template-columns: 1fr; gap: 18px; }
}

/* ============== FLOW (kept structure, lighter colors) ============== */
.flow-board {
  position: relative;
  display: grid;
  grid-template-columns: 1fr 1.3fr 1fr;
  gap: 30px;
  padding: 28px;
  background: var(--bg-2);
  border: 1px solid var(--line);
  border-radius: 12px;
  box-shadow: var(--shadow-sm);
}
.flow-svg { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; }
.flow-col { display: flex; flex-direction: column; gap: 10px; position: relative; z-index: 2; }
.col-label {
  font-family: var(--display);
  font-size: 11px; letter-spacing: 0.08em;
  color: var(--ink-soft);
  text-transform: uppercase;
  margin-bottom: 6px;
  font-weight: 600;
}
.chip {
  background: var(--bg);
  border: 1px solid var(--line);
  padding: 11px 14px;
  border-radius: 7px;
  font-size: 13.5px;
  display: flex; align-items: center; gap: 10px;
  transition: all .25s;
  color: var(--ink-2);
}
.chip span { font-size: 16px; }
.chip:hover {
  border-color: var(--indigo);
  background: var(--bg-2);
  transform: translateX(4px);
  box-shadow: var(--shadow-sm);
}
.engine-card, .fusion-card {
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 14px;
}
.engine-card { margin-bottom: 12px; }
.fusion-card { background: linear-gradient(160deg, var(--butter), var(--bg)); border-color: var(--butter-2); }
.engine-head { display: flex; align-items: center; gap: 10px; font-size: 13.5px; font-weight: 600; margin-bottom: 12px; color: var(--ink); }
.orb {
  width: 18px; height: 18px;
  border-radius: 50%;
  background: radial-gradient(circle at 30% 30%, #fff, var(--indigo-2) 50%, var(--indigo-3));
  box-shadow: 0 0 0 3px rgba(99,102,241,0.12);
  animation: spin 6s linear infinite;
}
.orb-pink { background: radial-gradient(circle at 30% 30%, #fff, var(--butter-2) 50%, var(--butter-ink)); box-shadow: 0 0 0 3px rgba(254,243,199,0.5); }
@keyframes spin { to { transform: rotate(360deg); } }
.engine-rows, .fusion-rows { display: flex; flex-direction: column; gap: 6px; }
.erow, .fusion-rows > div {
  background: var(--bg-2);
  border: 1px solid var(--line);
  padding: 8px 11px;
  border-radius: 5px;
  font-size: 12.5px;
  color: var(--ink-2);
  display: flex; align-items: center; gap: 8px;
}
.erow b { color: var(--indigo); font-weight: 700; font-family: var(--mono); }

.out {
  border-radius: 8px;
  padding: 13px;
  border: 1px solid var(--line);
  background: var(--bg-2);
  transition: transform .25s, box-shadow .25s;
}
.out:hover { transform: translateX(-3px); box-shadow: var(--shadow-sm); }
.out-head { display: flex; align-items: center; gap: 9px; margin-bottom: 5px; font-size: 13.5px; color: var(--ink); font-weight: 600; }
.out p { font-size: 12.5px; color: var(--ink-3); }
.out .ico { width: 22px; height: 22px; border-radius: 50%; display: grid; place-items: center; font-weight: 700; font-size: 12px; }
.out-green { border-color: var(--butter-2); }
.out-green .ico { background: var(--butter); color: var(--butter-ink); }
.out-amber { border-color: #f4d8a3; }
.out-amber .ico { background: var(--warn-soft); color: var(--warn); }
.out-red { border-color: #f4c4be; }
.out-red .ico { background: var(--alert-soft); color: var(--alert); }

@media (max-width: 920px) {
  .flow-board { grid-template-columns: 1fr; gap: 20px; padding: 18px; }
  .flow-svg { display: none; }
}

/* ============== VLM ============== */
.vlm-demo {
  position: relative;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 22px;
  align-items: stretch;
}
.doc {
  position: relative;
  background: var(--bg-2);
  color: var(--ink);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 26px;
  font-family: var(--mono);
  font-size: 12.5px;
  box-shadow: var(--shadow-sm);
  overflow: hidden;
  min-height: 360px;
}
.doc-corner { position: absolute; top: 0; right: 0; width: 50px; height: 50px; background: linear-gradient(225deg, transparent 50%, var(--bg-3) 50%); }
.doc-head { border-bottom: 2px solid var(--ink); padding-bottom: 10px; margin-bottom: 14px; }
.doc-title { font-family: var(--display); font-size: 20px; font-weight: 700; letter-spacing: -0.02em; }
.doc-no { font-size: 10.5px; color: var(--ink-soft); margin-top: 3px; }
.doc-row {
  display: flex; justify-content: space-between;
  padding: 8px 0;
  border-bottom: 1px dashed var(--line-2);
  position: relative;
  transition: background .3s;
}
.doc-row span { color: var(--ink-soft); }
.doc-row b {
  font-weight: 600;
  color: var(--ink);
  position: relative;
  transition: background .3s, color .3s;
  padding: 2px 4px;
  border-radius: 3px;
}
.doc-row.scanning b { background: rgba(67,56,202,0.18); color: var(--indigo-3); }
.doc-row.scanned b { background: var(--butter); color: var(--butter-ink); }
.doc-stamp {
  position: absolute; bottom: 18px; right: 18px;
  font-family: var(--display);
  font-size: 18px; font-weight: 800;
  color: rgba(185,28,28,0.4);
  border: 2.5px solid rgba(185,28,28,0.4);
  padding: 3px 10px;
  border-radius: 5px;
  transform: rotate(-8deg);
  letter-spacing: 2px;
}
.scan-beam {
  position: absolute;
  top: 0; left: 0;
  width: calc(50% - 11px);
  height: 50px;
  background: linear-gradient(180deg,
    rgba(67,56,202,0) 0%,
    rgba(67,56,202,0.04) 50%,
    rgba(67,56,202,0.16) 99%,
    var(--indigo) 100%);
  border-bottom: 2px solid var(--indigo);
  border-radius: 4px;
  animation: scan 4s ease-in-out infinite;
  z-index: 3;
  pointer-events: none;
  mix-blend-mode: multiply;
}
@keyframes scan {
  0% { top: 50px; opacity: 0; }
  10% { opacity: 0.85; }
  90% { opacity: 0.85; }
  100% { top: calc(100% - 70px); opacity: 0; }
}
.json {
  background: var(--bg-dark);
  border: 1px solid #1f1f2b;
  border-radius: 10px;
  padding: 22px 26px;
  overflow: auto;
  font-size: 12.5px;
  position: relative;
  box-shadow: var(--shadow-sm);
}
.json::before {
  content: '● ● ●';
  display: block;
  letter-spacing: 6px;
  font-size: 10px;
  color: #4a4a55;
  margin-bottom: 14px;
}
.json pre { color: #a8a8bc; line-height: 1.7; }
.json .k { color: var(--butter-2); }
.json .s { color: #c4c0f5; }
.json .n { color: #fbcfe8; }

@media (max-width: 820px) {
  .vlm-demo { grid-template-columns: 1fr; }
  .scan-beam { width: 100%; }
}

/* ============== WHY ============== */
.why-block {
  max-width: 1100px;
  margin: 0 auto 50px;
  padding: 40px 0;
  border-top: 1px solid var(--line-2);
  border-bottom: 1px solid var(--line-2);
}
.why-block .quote {
  font-family: var(--display);
  font-size: clamp(22px, 3vw, 40px);
  line-height: 1.3;
  letter-spacing: -0.018em;
  font-weight: 500;
  color: var(--ink);
  margin-bottom: 26px;
  max-width: 38ch;
}
.why-block .quote em { letter-spacing: -0.012em; }
.why-block .quote em { font-style: italic; font-weight: 400; color: var(--indigo); }
.quote-foot {
  display: flex; justify-content: space-between;
  flex-wrap: wrap; gap: 20px;
  font-family: var(--display);
  font-size: 11.5px;
  font-weight: 500;
  color: var(--ink-3);
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.qf-name { color: var(--ink); font-weight: 700; }
.qf-loc { font-size: 10.5px; }
.qf-stat b { display: block; color: var(--ink); margin-bottom: 3px; font-weight: 700; }
.qf-stat span { color: var(--ink-soft); }

.why-pillars {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
  border-radius: 10px;
  overflow: hidden;
}
.pillar {
  background: var(--bg-2);
  padding: 24px 20px;
  transition: background .3s;
}
.pillar:hover { background: #fffefa; }
.p-mark {
  width: 32px; height: 32px;
  display: grid; place-items: center;
  background: var(--ink);
  color: var(--butter-2);
  border-radius: 6px;
  font-size: 16px;
  margin-bottom: 12px;
}
.pillar h4 {
  font-family: var(--display);
  font-size: 16px;
  font-weight: 600;
  letter-spacing: -0.015em;
  color: var(--ink);
  margin-bottom: 5px;
}
.pillar p { color: var(--ink-3); font-size: 13px; }

@media (max-width: 920px) { .why-pillars { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 520px) { .why-pillars { grid-template-columns: 1fr; } }

/* ============== CTA ============== */
.cta-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 60px;
  align-items: center;
  max-width: 1200px;
  margin: 0 auto;
}
.cta-text p i { color: #a5b4fc; font-style: italic; }

.cta-form {
  background: var(--ink);
  color: var(--butter-2);
  padding: 32px 28px;
  border-radius: 10px;
  display: flex; flex-direction: column;
  gap: 10px;
  position: relative;
  box-shadow: var(--shadow-md);
}
.cta-form::before {
  content: ''; position: absolute; inset: 0;
  background-image: radial-gradient(circle at 1px 1px, rgba(254,243,199,0.05) 1px, transparent 1px);
  background-size: 18px 18px;
  pointer-events: none;
  border-radius: inherit;
}
.cta-form > * { position: relative; }
.cta-form label {
  font-family: var(--display);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(254,243,199,0.5);
  margin-top: 6px;
}
.cta-form label:first-of-type { margin-top: 0; }
.cta-form input {
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.12);
  color: white;
  padding: 11px 13px;
  font-size: 14px;
  border-radius: 6px;
  font-family: inherit;
  outline: none;
  transition: border-color .2s;
}
.cta-form input:focus { border-color: var(--butter-2); }
.cta-form input::placeholder { color: rgba(255,255,255,0.3); }
.cta-form button {
  margin-top: 12px;
  background: var(--butter-2);
  color: var(--ink);
  border: none;
  padding: 12px 18px;
  border-radius: 6px;
  font-weight: 700;
  font-size: 14px;
  font-family: var(--display);
  cursor: pointer;
  display: inline-flex; align-items: center; justify-content: space-between;
  gap: 8px;
  transition: background .2s, transform .2s;
}
.cta-form button:hover:not(:disabled) { background: white; transform: translateY(-1px); }
.cta-form button:disabled { opacity: 0.7; cursor: default; }
.cta-fine {
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: 0.05em;
  color: rgba(254,243,199,0.5);
  text-align: center;
  margin-top: 4px;
}

@media (max-width: 920px) { .cta-grid { grid-template-columns: 1fr; gap: 30px; } }

/* ============== FOOTER ============== */
.foot {
  background: var(--bg-dark);
  color: #c8c8d4;
  padding: 36px 4vw 28px;
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 24px;
  align-items: end;
  font-size: 13px;
  position: relative; z-index: 1;
}
/* footer logo — matches the header nav-logo, adapted for the dark footer */
.foot-logo {
  display: inline-flex; align-items: center; gap: 10px;
  text-decoration: none;
  margin-bottom: 10px;
}
.foot-logo .logo-mark { display: inline-flex; }
.foot-logo .logo-text {
  font-family: var(--display);
  font-size: 19px;
  font-weight: 700;
  letter-spacing: -0.025em;
  color: var(--on-dark);
}
.foot-logo .logo-text .lens { color: #a5b4fc; font-weight: 500; }
.foot-tag { font-family: var(--display); font-size: 11px; font-weight: 500; letter-spacing: 0.05em; color: rgba(255,255,255,0.5); text-transform: uppercase; }
.foot-mid { text-align: center; color: rgba(255,255,255,0.4); font-size: 11.5px; }
.foot-tm { display: inline-block; margin-top: 6px; font-size: 10.5px; line-height: 1.5; opacity: .8; }
.foot-r { display: flex; gap: 16px; justify-content: flex-end; flex-wrap: wrap; font-family: var(--display); font-weight: 500; font-size: 11.5px; }
.foot-r a { color: rgba(255,255,255,0.55); text-decoration: none; transition: color .2s; }
.foot-r a:hover { color: var(--butter-2); }

@media (max-width: 720px) {
  .foot { grid-template-columns: 1fr; text-align: left; gap: 16px; }
  .foot-mid, .foot-r { text-align: left; justify-content: flex-start; }
}

/* ============== §07 END-TO-END PIPELINE ============== */
.e2e { padding: 70px 4vw; }
.e2e-board {
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.e2e-row {
  display: grid;
  position: relative;
  gap: 14px;
}
.e2e-row-two { grid-template-columns: 1fr 1fr; }
.e2e-row-bottom { grid-template-columns: 1.4fr 1fr; }
@media (max-width: 920px) {
  .e2e-row-two, .e2e-row-bottom { grid-template-columns: 1fr; }
}

.e2e-arrow {
  position: absolute;
  left: 50%; bottom: -28px;
  transform: translateX(-50%);
  font-family: var(--display);
  font-size: 22px;
  color: var(--ink-soft);
  width: 28px; height: 28px;
  background: var(--bg);
  border-radius: 50%;
  display: grid; place-items: center;
  border: 1px solid var(--line-2);
  z-index: 2;
  animation: arrowBob 2s ease-in-out infinite;
}
.e2e-arrow.center { left: 50%; }
@keyframes arrowBob {
  50% { transform: translate(-50%, 4px); }
}

.e2e-stage {
  background: var(--bg-2);
  border: 1px solid var(--line-2);
  border-radius: 12px;
  padding: 22px;
  position: relative;
  transition: transform .3s, box-shadow .3s;
}
.e2e-stage:hover { box-shadow: var(--shadow-sm); }

.stage-head {
  display: flex; align-items: center; gap: 10px;
  margin-bottom: 16px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--line);
}
.stage-head-sm { padding-bottom: 10px; margin-bottom: 12px; }
.stage-no {
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 600;
  background: var(--ink);
  color: var(--butter-2);
  padding: 3px 7px;
  border-radius: 4px;
  letter-spacing: 0.05em;
}
.stage-name {
  font-family: var(--display);
  font-size: 15px;
  font-weight: 600;
  color: var(--ink);
  letter-spacing: -0.015em;
  flex: 1;
}
.stage-name i { font-style: italic; color: var(--ink-soft); font-weight: 500; }
.stage-tag {
  font-family: var(--display);
  font-size: 10.5px;
  font-weight: 500;
  color: var(--ink-soft);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
.stage-body { font-size: 13px; color: var(--ink-2); }

/* Stage 1 — Alert input */
.e2e-input .src-tag {
  font-family: var(--display);
  font-size: 11.5px; font-weight: 500;
  color: var(--ink-3);
  margin-bottom: 8px;
}
.alert-pill {
  display: inline-block;
  background: var(--alert-soft);
  color: var(--alert);
  font-family: var(--display);
  font-weight: 700;
  font-size: 11.5px;
  letter-spacing: 0.05em;
  padding: 4px 10px;
  border-radius: 100px;
  margin-bottom: 14px;
}
.case-mini {
  display: grid;
  grid-template-columns: 100px 1fr;
  gap: 6px 12px;
  font-family: var(--mono);
  font-size: 11.5px;
}
.case-mini dt { color: var(--ink-soft); text-transform: uppercase; letter-spacing: 0.05em; font-size: 10px; align-self: center; }
.case-mini dd { color: var(--ink); font-weight: 500; }
.case-mini dd i { color: var(--indigo); padding: 0 4px; font-style: normal; }
.case-mini dd.reason { color: var(--alert); font-weight: 600; }

/* Stage 2, Verdict out card (replaces the old Run Investigation cue) */
.verdict-card {
  background: var(--bg);
  border: 1px solid var(--line-2);
  border-radius: 10px;
  padding: 16px 18px;
  display: flex; flex-direction: column;
  gap: 9px;
  position: relative;
}
.verdict-card::before {
  content: 'VERDICT';
  position: absolute;
  top: -8px; left: 14px;
  background: var(--alert);
  color: white;
  font-family: var(--mono);
  font-size: 9.5px;
  font-weight: 600;
  letter-spacing: 0.12em;
  padding: 3px 8px;
  border-radius: 3px;
}
.verdict-row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  font-size: 13px;
  color: var(--ink-2);
  border-bottom: 1px dotted var(--line-2);
  padding-bottom: 6px;
}
.verdict-row:last-of-type { border-bottom: none; padding-bottom: 0; }
.verdict-lbl {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-soft);
}
.verdict-score {
  font-family: var(--display);
  font-size: 22px;
  font-weight: 700;
  color: var(--alert);
  letter-spacing: -0.02em;
}
.verdict-score i {
  font-style: normal;
  font-size: 11px;
  color: var(--ink-soft);
  font-weight: 500;
  margin-left: 1px;
}
.verdict-band {
  background: var(--alert-soft);
  color: var(--alert);
  font-family: var(--mono);
  font-size: 10.5px;
  font-weight: 600;
  letter-spacing: 0.06em;
  padding: 3px 9px;
  border-radius: 3px;
}
.verdict-decision {
  background: var(--ink);
  color: var(--butter-2);
  font-family: var(--display);
  font-size: 12px;
  font-weight: 600;
  padding: 5px 11px;
  border-radius: 5px;
}
.verdict-time {
  font-family: var(--mono);
  font-size: 12px;
  color: var(--ink);
  font-weight: 500;
}
.verdict-foot {
  margin-top: 4px;
  padding-top: 8px;
  border-top: 1px solid var(--line);
  font-family: var(--mono);
  font-size: 10px;
  color: var(--ink-soft);
  letter-spacing: 0.04em;
  text-align: center;
}

/* Legacy trigger-card kept for backward compatibility (unused) */
.trigger-card {
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  text-align: center;
  padding: 28px 16px;
  border: 1.5px dashed var(--line-2);
  border-radius: 10px;
  background: var(--bg);
}
.trigger-cta {
  font-family: var(--display);
  font-size: 17px;
  font-weight: 700;
  color: var(--ink);
  background: var(--butter);
  padding: 11px 20px;
  border-radius: 8px;
  margin-bottom: 12px;
  position: relative;
  display: inline-flex; align-items: center; gap: 8px;
  box-shadow: 0 0 0 4px rgba(255,245,204,0.4);
  animation: ctaPulse 2.4s ease-in-out infinite;
}
@keyframes ctaPulse {
  50% { box-shadow: 0 0 0 8px rgba(255,245,204,0.2); }
}
.trigger-cta .cursor {
  width: 12px; height: 12px;
  background: var(--ink);
  clip-path: polygon(0 0, 100% 50%, 50% 60%, 70% 100%, 0 80%);
  animation: cursorClick 2.4s ease-in-out infinite;
}
@keyframes cursorClick {
  45%, 55% { transform: translate(2px, 2px) scale(0.9); }
}
.trigger-sub {
  font-family: var(--display);
  font-size: 11.5px;
  color: var(--ink-soft);
  font-weight: 500;
  letter-spacing: 0.02em;
}

/* Stage 3 — Master agent (most prominent) */
.e2e-master {
  background: linear-gradient(160deg, #f0eeff, var(--bg-2) 70%);
  border-color: #d8d4ff;
}
.master-body {
  display: grid;
  grid-template-columns: 1.3fr 1fr 1fr;
  gap: 18px;
}
.master-bot {
  display: flex; gap: 14px;
  align-items: flex-start;
}
.bot-orb {
  flex: 0 0 56px;
  width: 56px; height: 56px;
  border-radius: 14px;
  background: linear-gradient(160deg, var(--indigo-2), var(--indigo-3));
  position: relative;
  box-shadow: 0 8px 24px -8px rgba(67,56,202,0.5);
  animation: botFloat 3s ease-in-out infinite;
}
@keyframes botFloat { 50% { transform: translateY(-3px); } }
.bot-orb::before, .bot-orb::after {
  content: '';
  position: absolute;
  width: 7px; height: 9px;
  background: white;
  border-radius: 3px;
  top: 18px;
}
.bot-orb::before { left: 14px; }
.bot-orb::after { right: 14px; }
.bot-orb .smile,
.bot-orb {
  --smile: 0;
}
.bot-text {
  font-size: 13px;
  color: var(--ink-2);
  line-height: 1.55;
}
.master-checks {
  list-style: none;
  display: flex; flex-direction: column;
  gap: 6px;
  font-size: 12.5px;
  color: var(--ink-2);
}
.master-checks li {
  position: relative;
  padding-left: 20px;
}
.master-checks li::before {
  content: '✓';
  position: absolute; left: 0; top: 0;
  color: var(--indigo);
  font-weight: 700;
}
.master-plan {
  background: var(--bg-2);
  border: 1px dashed var(--line-2);
  border-radius: 10px;
  padding: 12px 14px;
}
.mp-head {
  font-family: var(--display);
  font-size: 10px;
  font-weight: 700;
  color: var(--ink-soft);
  letter-spacing: 0.1em;
  margin-bottom: 8px;
}
.master-plan ol {
  list-style: none;
  font-size: 12.5px;
  color: var(--ink-2);
  counter-reset: mp;
}
.master-plan li {
  counter-increment: mp;
  padding: 3px 0;
  display: flex; gap: 8px;
}
.master-plan li::before {
  content: counter(mp) ".";
  color: var(--indigo);
  font-weight: 600;
  font-family: var(--mono);
  font-size: 11px;
  min-width: 18px;
}

@media (max-width: 920px) {
  .master-body { grid-template-columns: 1fr; }
}

/* Stage 4 — Tools grid */
.e2e-tools-stage {
  background: linear-gradient(160deg, #f1faf3, var(--bg-2) 70%);
  border-color: #cfe9d7;
}
.e2e-tools {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 8px;
}
.e2e-tool {
  background: var(--bg-2);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 14px 12px;
  text-align: center;
  transition: all .3s;
  position: relative;
}
.e2e-tool.active,
.e2e-tool:hover {
  border-color: var(--indigo);
  background: var(--bg);
  transform: translateY(-3px);
  box-shadow: 0 6px 20px -8px rgba(67,56,202,0.35);
}
.e2e-tool.active .tool-ico,
.e2e-tool:hover .tool-ico {
  background: var(--indigo);
  color: white;
  transform: rotate(-6deg) scale(1.05);
}
.tool-ico {
  width: 36px; height: 36px;
  margin: 0 auto 9px;
  border-radius: 9px;
  background: var(--bg-3);
  color: var(--ink);
  display: grid; place-items: center;
  transition: all .35s;
}
.tool-ico svg { width: 20px; height: 20px; }
.tool-name {
  font-family: var(--display);
  font-size: 12.5px;
  font-weight: 600;
  color: var(--ink);
  letter-spacing: -0.01em;
  margin-bottom: 6px;
  line-height: 1.2;
}
.tool-desc {
  font-size: 11px;
  color: var(--ink-3);
  line-height: 1.4;
}

@media (max-width: 1100px) { .e2e-tools { grid-template-columns: repeat(4, 1fr); } }
@media (max-width: 720px) { .e2e-tools { grid-template-columns: repeat(2, 1fr); } }

/* Stage 5 — Fusion engine + gauge */
.fusion-engine {
  background: linear-gradient(160deg, var(--butter), var(--bg-2) 70%);
  border-color: var(--butter-2);
}
.fusion-body {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 18px;
  align-items: center;
}
.fusion-text p {
  font-size: 13px;
  color: var(--ink-2);
  margin-bottom: 14px;
  line-height: 1.5;
}
.composite {
  font-family: var(--display);
  font-weight: 700;
  font-size: 12px;
  color: var(--ink);
  letter-spacing: 0.04em;
  text-transform: uppercase;
  background: var(--bg);
  border: 1px solid var(--line-2);
  padding: 6px 10px;
  border-radius: 6px;
  display: inline-block;
}
.gauge {
  position: relative;
  width: 130px;
  height: 90px;
  text-align: center;
}
.gauge svg { width: 100%; height: 80px; }
.gauge-num {
  position: absolute;
  bottom: 16px; left: 0; right: 0;
  font-family: var(--display);
  font-size: 28px;
  font-weight: 700;
  color: var(--alert);
  letter-spacing: -0.02em;
}
.gauge-num i { font-size: 0.45em; color: var(--ink-soft); font-style: normal; font-weight: 500; }
.gauge-lbl {
  position: absolute;
  bottom: -2px; left: 0; right: 0;
  font-family: var(--display);
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 0.1em;
  color: var(--alert);
}

/* Stage 6 — Decision */
.decision {
  background: linear-gradient(160deg, #fff4ea, var(--bg-2) 70%);
  border-color: #f5d6a3;
}
.decision-banner {
  background: var(--alert);
  color: white;
  font-family: var(--display);
  font-weight: 700;
  font-size: 13px;
  padding: 9px 14px;
  border-radius: 8px;
  margin-bottom: 14px;
  display: inline-block;
}
.reasons-head {
  font-family: var(--display);
  font-size: 10px;
  font-weight: 700;
  color: var(--ink-soft);
  letter-spacing: 0.1em;
  margin-bottom: 6px;
}
.reasons ul {
  list-style: none;
  font-size: 12.5px;
  color: var(--ink-2);
  margin-bottom: 14px;
}
.reasons li {
  padding: 3px 0;
  position: relative;
  padding-left: 16px;
}
.reasons li::before {
  content: '●';
  position: absolute; left: 0;
  color: var(--alert);
  font-size: 8px;
  top: 8px;
}
.recommended {
  background: var(--ink);
  color: var(--butter-2);
  padding: 9px 12px;
  border-radius: 7px;
  display: flex; justify-content: space-between;
  align-items: center;
  font-size: 12px;
}
.rec-lbl {
  font-family: var(--mono);
  font-size: 9.5px;
  letter-spacing: 0.12em;
  color: rgba(255,255,255,0.5);
  text-transform: uppercase;
}
.rec-val {
  font-family: var(--display);
  font-weight: 700;
}

/* Stage 7 — Reports */
.report .rep-list {
  list-style: none;
  font-size: 13px;
  color: var(--ink-2);
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4px 14px;
  margin-bottom: 12px;
}
.report .rep-list li {
  padding: 3px 0;
  position: relative;
  padding-left: 18px;
}
.report .rep-list li::before {
  content: '✓';
  position: absolute; left: 0;
  color: #10b981;
  font-weight: 700;
}
.report-str .rep-list li::before { color: var(--alert); content: '✓'; }
.rep-export {
  font-family: var(--mono);
  font-size: 11px;
  color: var(--ink);
  background: var(--bg-3);
  padding: 6px 10px;
  border-radius: 5px;
  display: inline-block;
  letter-spacing: 0.04em;
  font-weight: 500;
}
.report-str { background: linear-gradient(160deg, #fff0ee, var(--bg-2) 70%); border-color: #f5c4be; }

/* Stage 8 + 9 — sources + stack */
.stack .stack-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 6px 12px;
  font-family: var(--display);
  font-size: 12.5px;
  font-weight: 500;
  color: var(--ink-2);
}
.stack .stack-grid > div {
  padding: 6px 0;
  display: flex; align-items: center; gap: 8px;
}
.stack .stack-grid span {
  width: 26px; height: 26px;
  background: var(--bg-3);
  border-radius: 6px;
  display: grid; place-items: center;
  font-size: 12px;
  color: var(--indigo);
}

/* Bottom summary */
.e2e-summary {
  margin-top: 6px;
  background: linear-gradient(160deg, #f2f0fa, var(--bg-2) 70%);
  border: 1px solid #d8d4ff;
  border-radius: 12px;
  padding: 18px 22px;
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 18px;
  align-items: center;
}
.es-ico {
  width: 36px; height: 36px;
  border-radius: 8px;
  background: var(--indigo);
  color: white;
  display: grid; place-items: center;
  font-size: 18px;
}
.es-text { font-size: 13px; color: var(--ink-2); line-height: 1.55; }
.es-text b { font-family: var(--display); font-weight: 700; color: var(--ink); margin-right: 4px; }
.es-out {
  font-family: var(--display);
  font-weight: 700;
  font-size: 13px;
  color: var(--indigo);
  background: var(--bg-2);
  padding: 9px 14px;
  border-radius: 100px;
  border: 1px solid var(--line-2);
  white-space: nowrap;
}
@media (max-width: 720px) {
  .e2e-summary { grid-template-columns: 1fr; }
}

/* ============== 08 LIVE DEMO ============== */
.demo { padding: 70px 4vw; background: var(--bg-2); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.demo-layout {
  display: grid;
  grid-template-columns: 280px minmax(0, 1fr);
  gap: 24px;
  align-items: start;
  width: 100%;
  max-width: 100%;
}
@media (max-width: 920px) { .demo-layout { grid-template-columns: minmax(0, 1fr); } }

.demo-case {
  background: var(--bg-2);
  border: 1px solid var(--line-2);
  border-radius: 10px;
  overflow: hidden;
  box-shadow: var(--shadow-md);
  position: sticky;
  top: 70px;
}
@media (max-width: 920px) { .demo-case { position: static; } }
.dcc-top {
  background: var(--ink);
  color: white;
  padding: 11px 14px;
  display: flex; justify-content: space-between; align-items: center;
}
.dcc-label {
  font-family: var(--mono);
  font-size: 9.5px; letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.5);
}
.dcc-id {
  font-family: var(--mono);
  font-size: 11px;
  color: var(--butter-2);
  font-weight: 500;
}
.dcc-body { padding: 16px; }
.dcc-rows {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 6px 14px;
  margin-bottom: 14px;
}
.dcc-rows dt {
  font-family: var(--mono);
  font-size: 9.5px;
  color: var(--ink-soft);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  align-self: center;
}
.dcc-rows dd {
  font-size: 12.5px; color: var(--ink); font-weight: 500;
  text-align: right;
}
.dcc-rows dd.amber { color: var(--warn); }
.dcc-rows dd.red { color: var(--alert); font-weight: 600; }
.dcc-rows dd i { color: var(--indigo); padding: 0 4px; font-style: normal; }

.run-btn {
  width: 100%;
  padding: 12px;
  background: var(--ink);
  color: var(--butter-2);
  font-family: var(--display);
  font-size: 13.5px;
  font-weight: 600;
  border: none;
  border-radius: 7px;
  cursor: pointer;
  display: flex; align-items: center; justify-content: center; gap: 8px;
  transition: background .2s, transform .15s;
}
.run-btn:hover:not(:disabled) { background: var(--indigo); transform: translateY(-1px); }
.run-btn:disabled { opacity: 0.5; cursor: default; }
.run-btn.spinning svg { animation: rbSpin 1s linear infinite; }
@keyframes rbSpin { to { transform: rotate(360deg); } }

.inv-panel {
  background: var(--bg);
  border: 1px solid var(--line-2);
  border-radius: 10px;
  min-height: 460px;
  min-width: 0;
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
  overflow: hidden;
}
.inv-idle {
  min-height: 460px;
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  text-align: center;
  padding: 40px 30px;
  gap: 8px;
  color: var(--ink-3);
}
.inv-idle-title {
  font-family: var(--display);
  font-size: 22px;
  font-weight: 600;
  color: var(--ink);
  letter-spacing: -0.02em;
  margin-bottom: 4px;
}
.inv-idle p { font-size: 14px; max-width: 38ch; }
.inv-idle-fine {
  font-family: var(--mono);
  font-size: 11px;
  color: var(--ink-soft);
  letter-spacing: 0.04em;
  margin-top: 6px;
}

.inv-content {
  display: block;
  width: 100%;
  min-width: 0;
  max-width: 100%;
  box-sizing: border-box;
}
.inv-top {
  padding: 12px 16px;
  border-bottom: 1px solid var(--line);
  display: flex; justify-content: space-between; align-items: center;
  background: var(--bg-2);
}
.inv-label {
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-3);
}
.inv-timer {
  font-family: var(--mono);
  font-size: 11px;
  color: var(--ink-soft);
}
.inv-steps {
  padding: 12px;
  display: block;
  width: 100%;
  min-width: 0;
  max-width: 100%;
  box-sizing: border-box;
}
.inv-steps > * {
  margin-bottom: 10px;
  flex-shrink: 0;
}
.inv-steps > *:last-child { margin-bottom: 0; }

/* step cards */
.sc {
  background: var(--bg-2);
  border: 1px solid var(--line);
  border-radius: 7px;
  display: block;
  overflow: hidden;
  transition: opacity .3s, transform .3s;
  width: 100%;
  min-width: 0;
  max-width: 100%;
  box-sizing: border-box;
  flex-shrink: 0;
}
/* only JS-inserted demo step cards start hidden — story cards must
   be visible without JavaScript */
.inv-steps .sc { opacity: 0; transform: translateY(8px); }
.sc.in { opacity: 1; transform: translateY(0); }
.sc-head {
  padding: 9px 13px;
  display: flex; justify-content: space-between; align-items: center;
  gap: 10px;
  border-bottom: 1px solid var(--line);
  background: var(--bg);
  flex-wrap: wrap;
  row-gap: 6px;
}
.sc-left { display: flex; align-items: center; gap: 8px; min-width: 0; flex: 1 1 auto; }
.sc-idx {
  font-family: var(--mono);
  font-size: 10px; color: var(--ink-soft);
  min-width: 22px;
  flex-shrink: 0;
}
.sc-name {
  font-family: var(--display);
  font-size: 13px; font-weight: 600;
  color: var(--ink);
  min-width: 0;
  overflow-wrap: break-word;
}
.sc-right {
  display: flex; align-items: center; gap: 5px;
  flex-shrink: 0;
  flex-wrap: wrap;
  justify-content: flex-end;
  row-gap: 4px;
}
.score-n {
  font-family: var(--display);
  font-size: 19px;
  font-weight: 700;
  min-width: 28px;
  text-align: center;
  letter-spacing: -0.02em;
}
.score-hi { color: var(--warn); }
.score-crit { color: var(--alert); }
.score-med { color: var(--indigo); }
.score-lo { color: #1c6e3d; }
.pill {
  font-family: var(--mono);
  font-size: 9px;
  font-weight: 500;
  letter-spacing: 0.04em;
  padding: 2px 7px;
  border-radius: 3px;
  white-space: nowrap;
}
.p-CRITICAL { background: var(--alert-soft); color: var(--alert); }
.p-HIGH { background: #fef3c7; color: var(--warn); }
.p-MEDIUM { background: #e8eef8; color: #1a4fa0; }
.p-LOW { background: #e8f5ee; color: #1c6e3d; }
.p-gate-AUTO { background: #e8f5ee; color: #1c6e3d; }
.p-gate-QUEUE { background: #e8eef8; color: #1a4fa0; }
.p-gate-LLM { background: #f3f0ff; color: #6941c6; }
.p-gate-STR { background: var(--alert-soft); color: var(--alert); }
.p-llm-y { background: #f3f0ff; color: #6941c6; }
.p-llm-n { background: var(--bg-3); color: var(--ink-soft); }
.sc-body { padding: 10px 13px; }
.sc-meta { display: flex; flex-wrap: wrap; gap: 4px; margin-bottom: 8px; max-width: 100%; }
.sme-tag, .rc-tag { word-break: break-all; max-width: 100%; }
.sme-tag {
  font-family: var(--mono);
  font-size: 9px;
  background: #fef3c7;
  color: var(--warn);
  padding: 2px 6px;
  border-radius: 3px;
}
.rc-tag {
  font-family: var(--mono);
  font-size: 9px;
  background: var(--bg);
  color: var(--ink-3);
  padding: 2px 6px;
  border-radius: 3px;
  border: 1px solid var(--line);
}
.findings {
  list-style: none;
  display: flex; flex-direction: column; gap: 4px;
}
.findings li {
  font-size: 12px;
  color: var(--ink-2);
  line-height: 1.5;
  padding-left: 12px;
  position: relative;
  word-wrap: break-word;
  overflow-wrap: break-word;
}
.findings li::before { content: '—'; position: absolute; left: 0; color: var(--ink-soft); }
.three-s {
  display: flex; gap: 14px;
  padding: 8px 0 2px;
  border-top: 1px solid var(--line);
  margin-top: 8px;
  flex-wrap: wrap;
}
.ts-col { display: flex; flex-direction: column; gap: 1px; }
.ts-k {
  font-family: var(--mono);
  font-size: 8.5px;
  color: var(--ink-soft);
  letter-spacing: 0.05em;
  text-transform: uppercase;
}
.ts-v {
  font-family: var(--mono);
  font-size: 13px;
  color: var(--warn);
  font-weight: 600;
}
.sc-verdict {
  margin-top: 6px;
  font-size: 11px;
  color: var(--ink-soft);
  font-style: italic;
}

/* fusion summary card */
.fusion {
  background: var(--bg-2);
  border: 1px solid var(--line-2);
  border-radius: 8px;
  padding: 18px;
  opacity: 0;
  transform: translateY(8px);
  transition: opacity .35s, transform .35s;
  margin-top: 4px;
}
.fusion.in { opacity: 1; transform: translateY(0); }
.fusion-top {
  display: grid;
  grid-template-columns: 96px minmax(0, 1fr);
  gap: 18px;
  align-items: center;
}
.f-ring {
  width: 86px; height: 86px;
  border: 2.5px solid var(--warn);
  border-radius: 50%;
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
}
.f-num {
  font-family: var(--display);
  font-size: 28px;
  font-weight: 700;
  color: var(--warn);
  line-height: 1;
  letter-spacing: -0.02em;
}
.f-den {
  font-family: var(--mono);
  font-size: 9px;
  color: var(--ink-soft);
}
.f-label {
  font-family: var(--mono);
  font-size: 9.5px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-soft);
  margin-bottom: 4px;
}
.f-verdict {
  font-family: var(--display);
  font-size: 18px;
  font-weight: 700;
  color: var(--ink);
  letter-spacing: -0.02em;
  margin-bottom: 5px;
}
.f-action { font-size: 12.5px; color: var(--ink-2); }
.f-pills { display: flex; gap: 5px; margin-top: 9px; flex-wrap: wrap; }
.f-pill-esc {
  background: #fef3c7; color: var(--warn);
  font-family: var(--mono); font-size: 9px;
  padding: 3px 9px; border-radius: 3px;
  letter-spacing: 0.05em; font-weight: 500;
}
.f-pill-str {
  background: var(--alert-soft); color: var(--alert);
  font-family: var(--mono); font-size: 9px;
  padding: 3px 9px; border-radius: 3px;
  letter-spacing: 0.05em; font-weight: 500;
}
.f-bars {
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px solid var(--line);
  display: flex; flex-direction: column;
  gap: 5px;
}
.f-bar-row {
  display: grid;
  grid-template-columns: 110px minmax(0, 1fr) 32px;
  gap: 8px;
  align-items: center;
}
.f-bar-k {
  font-family: var(--mono);
  font-size: 9.5px;
  color: var(--ink-3);
}
.f-bar-bg {
  height: 4px;
  background: var(--bg-3);
  border-radius: 2px;
  overflow: hidden;
}
.f-bar-fill {
  height: 100%;
  border-radius: 2px;
  transition: width 1.2s cubic-bezier(.2,.7,.2,1);
}
.f-bar-v {
  font-family: var(--mono);
  font-size: 10px;
  color: var(--ink-3);
  text-align: right;
  font-weight: 500;
}

/* ============== 09 BUILT BY ============== */
.team { padding: 70px 4vw; }
.team-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 22px;
  max-width: 1140px;
  margin: 0 auto;
}
@media (max-width: 980px) { .team-grid { grid-template-columns: repeat(2, 1fr); max-width: 620px; } }
@media (max-width: 560px) { .team-grid { grid-template-columns: 1fr; max-width: 360px; } }

.founder {
  background: var(--bg-2);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 28px 20px 24px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  transition: transform .3s, box-shadow .3s, border-color .3s;
}
.founder:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
  border-color: var(--line-2);
}
.f-photo {
  width: 200px; height: 200px;
  border-radius: 50%;
  overflow: hidden;
  background: var(--bg-3);
  border: 3px solid var(--line);
  flex-shrink: 0;
  box-shadow: var(--shadow-sm);
}
.f-photo img {
  width: 100%; height: 100%;
  object-fit: cover;
  display: block;
  filter: grayscale(0.15) contrast(1.04);
  transition: filter .35s, transform .5s ease-out;
}
.founder:hover .f-photo img {
  filter: grayscale(0) contrast(1);
  transform: scale(1.05);
}
.f-body {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  align-self: stretch;
}
.f-name {
  font-family: var(--display);
  font-size: 18px;
  font-weight: 600;
  color: var(--ink);
  letter-spacing: -0.015em;
  line-height: 1.2;
}
.f-role {
  font-family: var(--display);
  font-size: 11.5px;
  font-weight: 500;
  color: var(--ink-soft);
  letter-spacing: 0.04em;
  text-transform: uppercase;
  margin-bottom: 6px;
}
.f-school {
  font-family: var(--display);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.005em;
  color: var(--indigo);
  background: #eef0ff;
  border: 1px solid #d8d4ff;
  padding: 4px 11px;
  border-radius: 100px;
  text-align: center;
  white-space: nowrap;
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* ============== 10 PRICING ============== */
.pricing { padding: 70px 4vw; background: var(--bg-2); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.price-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-bottom: 20px;
}
@media (max-width: 920px) { .price-grid { grid-template-columns: 1fr; } }

.plan {
  background: var(--bg);
  border: 1px solid var(--line-2);
  border-radius: 12px;
  padding: 28px 24px;
  display: flex; flex-direction: column;
  gap: 14px;
  transition: transform .3s, box-shadow .3s, border-color .3s;
  position: relative;
}
.plan:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); }
.plan-feature {
  background: linear-gradient(160deg, #f0eeff, var(--bg) 70%);
  border-color: #d8d4ff;
  box-shadow: var(--shadow-md);
}
.plan-tag {
  font-family: var(--display);
  font-size: 10.5px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ink-soft);
  background: var(--bg-2);
  border: 1px solid var(--line-2);
  padding: 3px 9px;
  border-radius: 100px;
  align-self: flex-start;
}
.plan-feature .plan-tag {
  background: var(--indigo);
  color: white;
  border-color: var(--indigo);
}
.plan-name {
  font-family: var(--display);
  font-size: 22px;
  font-weight: 700;
  color: var(--ink);
  letter-spacing: -0.02em;
}
.plan-price {
  font-family: var(--display);
  font-size: 30px;
  font-weight: 700;
  color: var(--ink);
  letter-spacing: -0.025em;
  line-height: 1.1;
}
.plan-price span {
  font-size: 14px;
  font-weight: 500;
  color: var(--ink-soft);
  letter-spacing: 0;
}
.plan-desc { color: var(--ink-3); font-size: 13.5px; line-height: 1.55; }
.plan-feat {
  list-style: none;
  display: flex; flex-direction: column;
  gap: 7px;
  flex: 1;
  border-top: 1px solid var(--line);
  padding-top: 14px;
}
.plan-feat li {
  position: relative;
  padding-left: 22px;
  font-size: 13px;
  color: var(--ink-2);
  line-height: 1.45;
}
.plan-feat li::before {
  content: '✓';
  position: absolute; left: 0; top: 0;
  color: var(--indigo);
  font-weight: 700;
  font-size: 13px;
}
.plan-cta {
  font-family: var(--display);
  font-weight: 600;
  font-size: 13.5px;
  color: var(--ink);
  text-decoration: none;
  padding: 11px 16px;
  border: 1px solid var(--ink);
  border-radius: 7px;
  text-align: center;
  transition: background .2s, color .2s, transform .15s;
}
.plan-cta:hover { background: var(--ink); color: var(--bg); transform: translateY(-1px); }
.plan-cta-primary { background: var(--ink); color: var(--bg); }
.plan-cta-primary:hover { background: var(--indigo); border-color: var(--indigo); }
.pricing-fine {
  text-align: center;
  font-family: var(--mono);
  font-size: 11px;
  color: var(--ink-soft);
  letter-spacing: 0.03em;
  max-width: 700px;
  margin: 0 auto;
}

/* ============== CTA META (added) ============== */
.cta-meta {
  margin-top: 26px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  border-top: 1px solid var(--line);
  padding-top: 18px;
}
.cta-meta div { display: flex; flex-direction: column; gap: 2px; font-size: 13px; }
.cta-meta b {
  font-family: var(--display);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--ink-soft);
}
.cta-meta span { color: var(--ink); font-weight: 500; font-size: 13.5px; }

/* ============== REVEAL ON SCROLL ============== */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .8s ease-out, transform .8s ease-out; }
.reveal.in { opacity: 1; transform: translateY(0); }

/* ============== FILE C — SOURCE OF WEALTH ============== */
.sc-filec { margin-top: 22px; }
.filec-body {
  display: grid;
  grid-template-columns: 0.95fr 1.05fr;
  gap: 38px;
  padding: 26px 24px;
  align-items: start;
}
.filec-prose p {
  color: var(--ink-2);
  font-size: 14px;
  line-height: 1.6;
  margin-bottom: 13px;
}
.filec-prose p:last-child { margin-bottom: 0; }

.sow-doc {
  position: relative;
  background: var(--bg-2);
  border: 1px solid var(--line-2);
  border-radius: 10px;
  padding: 22px 22px 58px;
  font-family: var(--mono);
  box-shadow: var(--shadow-md);
}
.sow-head { border-bottom: 2px solid var(--ink); padding-bottom: 10px; margin-bottom: 4px; }
.sow-title {
  font-family: var(--display);
  font-size: 17px;
  font-weight: 700;
  letter-spacing: -0.01em;
  color: var(--ink);
}
.sow-no { font-size: 10px; color: var(--ink-soft); letter-spacing: 0.08em; margin-top: 3px; }
.sow-lines { list-style: none; }
.sow-line {
  padding: 11px 8px;
  margin: 0 -8px;
  border-bottom: 1px dashed var(--line-2);
  border-radius: 4px;
  font-size: 12.5px;
  line-height: 1.7;
  color: var(--ink-2);
  transition: background .5s ease;
}
.sow-line:last-child { border-bottom: none; }
.sow-chip {
  display: inline-block;
  margin-left: 8px;
  padding: 1px 7px;
  border: 1px solid #d8d4ff;
  border-radius: 3px;
  font-size: 9.5px;
  letter-spacing: 0.06em;
  color: var(--indigo);
  background: #eef0ff;
  white-space: nowrap;
  transition: opacity .35s ease;
}
.sow-line.flagged { background: var(--warn-soft); }
.sow-line.flagged .sow-chip {
  float: right;
  margin-left: 12px;
  border-color: var(--warn);
  color: var(--warn);
  background: transparent;
}
.sow-was-flagged {
  display: inline-block;
  margin-left: 8px;
  font-size: 9.5px;
  letter-spacing: 0.04em;
  color: var(--warn);
}
.sow-stamp {
  position: absolute;
  bottom: 14px; right: 18px;
  font-family: var(--display);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.08em;
  color: var(--indigo);
  border: 2px solid var(--indigo);
  padding: 3px 10px;
  border-radius: 5px;
  transform: rotate(-5deg);
  opacity: 0.9;
}
.sow-tagline {
  margin-top: 14px;
  font-family: var(--display);
  font-size: 13.5px;
  font-weight: 600;
  color: var(--ink-3);
  text-align: center;
  letter-spacing: 0.01em;
}
/* animated state — applied by JS only when motion is allowed;
   without it the finished file above renders statically */
.sow-animate .sow-chip { opacity: 0; }
.sow-animate .sow-line.done .sow-chip,
.sow-animate .sow-line.flagged .sow-chip { opacity: 1; }
.sow-animate .sow-was-flagged { display: none; }
.sow-animate .sow-stamp { opacity: 0; transition: opacity .6s ease; }
.sow-animate .sow-stamp.on { opacity: 0.9; }
.sow-line.typing .sow-text::after {
  content: '▍';
  color: var(--indigo);
  animation: sowBlink 0.9s steps(1) infinite;
}
@keyframes sowBlink { 50% { opacity: 0; } }

@media (max-width: 920px) {
  .filec-body { grid-template-columns: 1fr; gap: 24px; }
}

/* ============== FILE A/B — LIVE REPLAY STAGES ============== */
.sca {
  border-top: 1px dashed var(--line-2);
  background: var(--bg);
  padding: 12px 22px 14px;
  font-family: var(--mono);
  font-size: 11px;
  color: var(--ink-2);
}
.sca-top {
  display: flex; align-items: center; gap: 8px;
  margin-bottom: 8px;
}
.sca-live {
  display: inline-flex; align-items: center; gap: 6px;
  margin-right: auto;
  font-size: 9.5px; letter-spacing: 0.12em;
  color: var(--ink-soft); font-weight: 500;
}
.sca-live i {
  width: 5px; height: 5px; border-radius: 50%;
  background: #ef4444; box-shadow: 0 0 5px #ef4444;
  animation: pulse 1.4s ease-in-out infinite;
}
.sca-tc {
  font-size: 10px; letter-spacing: 0.08em;
  color: var(--ink); font-weight: 500;
  background: var(--bg-3);
  padding: 2px 8px; border-radius: 3px;
}
.sca-replay {
  font-family: var(--mono);
  font-size: 9px; letter-spacing: 0.08em;
  background: none;
  border: 1px solid var(--line-2);
  color: var(--ink-3);
  padding: 3px 8px; border-radius: 3px;
  cursor: pointer;
  transition: color .2s, border-color .2s;
}
.sca-replay:hover { color: var(--indigo); border-color: var(--indigo); }
.sca-row {
  display: grid;
  grid-template-columns: 58px 1fr;
  gap: 10px;
  padding: 6px 0;
  border-bottom: 1px dotted var(--line);
  align-items: baseline;
}
.sca-row:last-child { border-bottom: none; }
.sca-lbl {
  font-size: 8.5px; letter-spacing: 0.12em;
  color: var(--ink-soft);
}
.sca-cell { line-height: 2; min-width: 0; }
.sca-type { font-weight: 500; color: var(--ink); }
.sca-chip {
  display: inline-block;
  font-size: 8.5px; letter-spacing: 0.06em;
  border: 1px solid var(--line-2);
  color: var(--ink-3);
  background: var(--bg-2);
  padding: 1px 6px; border-radius: 3px;
  margin: 0 2px;
  white-space: nowrap;
}
.sca-chip-warn { border-color: #f4d8a3; color: var(--warn); background: var(--warn-soft); }
.sca-score {
  font-family: var(--display);
  font-weight: 700; font-size: 14px;
  color: var(--indigo);
}
.sca-edge { color: var(--ink-3); }
.sca-note {
  display: inline-block;
  font-style: italic;
  color: var(--ink-soft);
  font-size: 9.5px;
}
.sca-stamp {
  display: inline-block;
  font-size: 9px; font-weight: 600; letter-spacing: 0.08em;
  border: 1.5px solid currentColor;
  padding: 2px 8px; border-radius: 3px;
  margin-right: 6px;
  transform: rotate(-1.5deg);
}
.sca-stamp-clear { color: #1c6e3d; }
.sca-stamp-refer { color: var(--alert); }
.sca-stamp-hold { color: var(--warn); background: var(--warn-soft); }
.sca-loopnote {
  margin-top: 8px;
  font-size: 8.5px; letter-spacing: 0.08em;
  color: var(--ink-soft);
  text-transform: uppercase;
}
/* animated gating — .sca-animate is added by JS only when motion is
   allowed; without it the finished state above renders statically */
.sca-animate .sca-row { opacity: 0.22; transition: opacity .45s ease; }
.sca-animate .sca-row.on { opacity: 1; }
.sca-animate .sca-chip,
.sca-animate .sca-note,
.sca-animate .sca-edge,
.sca-animate .sca-loopnote { opacity: 0; transition: opacity .4s ease; }
.sca-animate .sca-chip.on,
.sca-animate .sca-note.on,
.sca-animate .sca-edge.on,
.sca-animate .sca-loopnote.on { opacity: 1; }
.sca-animate .sca-stamp {
  opacity: 0;
  transform: rotate(-1.5deg) scale(1.3);
  transition: opacity .3s ease, transform .3s cubic-bezier(.2,.7,.2,1);
}
.sca-animate .sca-stamp.on { opacity: 1; transform: rotate(-1.5deg) scale(1); }

/* ============== 07 CONTACT — placeholder chip + secondary line ============== */
.ph-chip {
  display: inline-block;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.04em;
  color: var(--warn);
  border: 1px dashed var(--warn);
  padding: 4px 10px;
  border-radius: 5px;
}
.cta-email { margin-top: 16px; }
.ph-inline { font-size: 9.5px; padding: 1px 6px; border-radius: 3px; }
.f-bio {
  font-size: 12.5px;
  color: var(--ink-3);
  line-height: 1.6;
  text-align: left;
  align-self: stretch;
  margin-top: 10px;
}
.cta-secondary {
  margin-top: 14px;
  font-size: 13.5px;
  color: var(--ink-3);
  max-width: 42ch;
}
.sc-step p a {
  color: var(--indigo);
  text-decoration: none;
  border-bottom: 1px solid var(--line-2);
  transition: color .2s, border-color .2s;
}
.sc-step p a:hover { color: var(--indigo-3); border-color: var(--indigo); }

/* ============== TYPOLOGY CARD — money mule detection ============== */
.typology {
  margin: 12px 0 4px;
  padding: 14px 16px 16px;
  background: var(--bg);
  border: 1px solid var(--line-2);
  border-left: 3px solid var(--warn);
  border-radius: 8px;
}
.typ-lbl {
  display: inline-block;
  font-family: var(--mono);
  font-size: 9.5px;
  font-weight: 600;
  letter-spacing: 0.12em;
  color: var(--warn);
  background: var(--warn-soft);
  padding: 3px 9px;
  border-radius: 3px;
  margin-bottom: 10px;
}
.typ-def {
  font-size: 13.5px;
  font-weight: 500;
  color: var(--ink);
  line-height: 1.55;
  margin-bottom: 8px;
}
.typ-story {
  font-size: 13px;
  color: var(--ink-2);
  line-height: 1.55;
  margin-bottom: 10px;
}
.typ-chips { display: flex; flex-wrap: wrap; gap: 4px 2px; }

/* ============== 03.5 THE KNOWLEDGE HUB ============== */
.memo-lbl {
  font-family: var(--mono);
  font-size: 9.5px;
  font-weight: 600;
  letter-spacing: 0.14em;
  color: var(--ink-soft);
  margin-bottom: 14px;
}

/* stroke glyphs replacing emoji */
.gly {
  display: inline-flex;
  width: 16px;
  height: 16px;
  flex-shrink: 0;
  color: var(--indigo);
}
.gly svg { width: 100%; height: 100%; }
.stack-grid span svg { width: 14px; height: 14px; }
.fusion-rows .gly { width: 14px; height: 14px; color: var(--butter-ink); }

.form-strip span { display: inline-flex; align-items: center; gap: 6px; }

/* ============== REDUCED MOTION — static finished states ============== */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .dot-live, .orb, .bot-orb, .sca-live i,
  .scan-beam, .e2e-arrow, .trigger-cta, .trigger-cta .cursor { animation: none; }
  .scan-beam { display: none; }
  .reveal { opacity: 1; transform: none; transition: none; }
}

/* ---- Engagement: two-offering layout (Pilot + Production) ---- */
.price-grid-two {
  grid-template-columns: repeat(2, 1fr);
  max-width: 860px;
  margin-left: auto;
  margin-right: auto;
}
@media (max-width: 720px) {
  .price-grid-two { grid-template-columns: 1fr; }
}

/* =========================================================
   MULTI-PAGE SYSTEM — nav active · page heroes · home cards
   · engine explainer · improved live-demo pipeline
   ========================================================= */

/* active nav link */
.nav-links a[aria-current="page"] { color: var(--ink); }
.nav-links a[aria-current="page"]::after {
  content: ""; display: block; height: 2px; margin-top: 3px;
  background: var(--indigo); border-radius: 2px;
}

/* live demo — tool pipeline + progress + internal scroll */
.inv-pipeline {
  display: flex; flex-wrap: wrap; gap: 6px;
  padding: 12px 14px; border-bottom: 1px solid var(--line-2); background: var(--bg-3);
}
.pip {
  font-family: var(--mono); font-size: 10.5px; letter-spacing: .03em;
  padding: 4px 9px; border-radius: 999px; white-space: nowrap;
  border: 1px solid var(--line-2); color: var(--ink-soft); background: var(--bg-2);
  transition: color .2s, border-color .2s, background .2s;
}
.pip.active { color: var(--indigo); border-color: var(--indigo); background: #eef0ff; animation: pipPulse 1s ease-in-out infinite; }
.pip.done { color: var(--ink); border-color: var(--line-strong); }
.pip.done::before { content: "✓ "; color: #1c6e3d; }
.pip-fusion.done { color: #fff; background: var(--indigo); border-color: var(--indigo); }
.pip-fusion.done::before { content: "Σ "; color: #fff; }
@keyframes pipPulse { 0%,100% { box-shadow: 0 0 0 0 rgba(67,56,202,.26); } 50% { box-shadow: 0 0 0 4px rgba(67,56,202,0); } }
.inv-progress { height: 3px; background: var(--line); overflow: hidden; }
.inv-progress i {
  display: block; height: 100%; width: 0%;
  background: linear-gradient(90deg, var(--indigo-2), var(--indigo));
  transition: width .5s cubic-bezier(.2,.7,.3,1);
}
.inv-steps { max-height: 430px; overflow-y: auto; padding: 14px 16px; }
@media (prefers-reduced-motion: reduce) { .pip.active { animation: none; } }

/* Adhish headshot — nudge down so the crown/hair is not cropped */
.f-photo img[src="adhish.jpg"] { object-position: center 20%; }

/* ==== Monitoring section — the account watchers (EDIT-2) ==== */
.mon-grid { border-top: 1px solid var(--line-2); }
.mon-beat {
  display: grid; grid-template-columns: 150px 1fr; gap: 24px;
  padding: 24px 0; border-bottom: 1px solid var(--line); align-items: start;
}
.mon-k { font-family: var(--mono); font-size: 10.5px; letter-spacing: 0.1em; color: var(--indigo); padding-top: 5px; }
.mon-beat h3 { font-family: var(--display); font-weight: 700; font-size: 20px; color: var(--ink); margin-bottom: 7px; letter-spacing: -0.01em; }
.mon-beat p { font-size: 14.5px; line-height: 1.6; color: var(--ink-3); }

/* ==== Company contact email link (EDIT-11) ==== */
.cta-email-addr {
  font-family: var(--serif); font-size: clamp(20px, 2vw, 27px); font-weight: 400;
  letter-spacing: -0.012em; color: #a5b4fc; text-decoration: none;
  border-bottom: 1px solid rgba(165, 180, 252, 0.4); transition: border-color .2s, color .2s;
}
.cta-email-addr:hover { color: #c7d2fe; border-color: #a5b4fc; }


/* ==========================================================
   HOME — cinematic / editorial
   Newsreader display · Geist body · warm stone neutrals.
   The hero uses a CSS-built dusk backdrop. To swap in a real
   licensed photograph, set --hero-img on :root — nothing else
   needs to change; the scrims already sit on top of it.
   ========================================================== */

body.home { background: var(--bg); }

.eyebrow {
  font-family: var(--sans);
  font-size: 11.5px;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink-soft);
  margin-bottom: clamp(18px, 2vw, 26px);
}

/* ---------- NAV over the dark hero ---------- */
.nav-over {
  background: transparent;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  border-bottom: none;
  position: absolute;
  top: 0; left: 0; right: 0;
}
.nav-over .logo-text { color: var(--on-dark); }
.nav-over .logo-text .lens { color: #a5b4fc; }
.nav-over .nav-links a { color: var(--on-dark-2); }
.nav-over .nav-links a:hover,
.nav-over .nav-links a[aria-current="page"] { color: var(--on-dark); }
.nav-over .nav-cta {
  background: rgba(245,245,244,0.94);
  color: var(--ink);
}
.nav-over .nav-cta:hover { background: #fff; color: var(--ink); }

/* ---------- PILL BUTTONS (the reference's shape) ---------- */
.pill {
  display: inline-flex; align-items: center; justify-content: center;
  padding: 14px 30px;
  border-radius: 999px;
  font-family: var(--sans);
  font-size: 15px;
  font-weight: 500;
  text-decoration: none;
  border: 1px solid transparent;
  transition: background .2s, color .2s, transform .2s, box-shadow .2s;
}
.pill-light { background: #f5f5f4; color: var(--ink); }
.pill-light:hover {
  background: #fff;
  transform: translateY(-2px);
  box-shadow: 0 14px 40px -12px rgba(0,0,0,.5);
}
.pill-dark { background: var(--ink); color: var(--on-dark); }
.pill-dark:hover { background: var(--indigo); transform: translateY(-2px); }

/* ---------- CINEMATIC HERO ---------- */
.cine {
  position: relative;
  min-height: 100vh;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 0 0 clamp(28px, 3.5vw, 44px);
  overflow: hidden;
  background: var(--bg-dark);
  isolation: isolate;
}

/* Dusk through tower glass, built in CSS: warm horizon glow low and
   left, a cool counter-glow high and right, then vertical mullions. */
.cine-bg {
  position: absolute; inset: 0; z-index: -3;
  background-image: var(--hero-img);
  background-size: cover;
  background-position: center;
}
.cine-bg::before {
  content: '';
  position: absolute; inset: 0;
  background:
    radial-gradient(115% 75% at 28% 88%, rgba(217, 119, 6, 0.42) 0%, rgba(120, 53, 15, 0.18) 34%, transparent 66%),
    radial-gradient(85% 65% at 88% 12%, rgba(79, 70, 229, 0.34) 0%, rgba(49, 46, 129, 0.10) 40%, transparent 70%),
    radial-gradient(60% 40% at 55% 62%, rgba(251, 191, 36, 0.10) 0%, transparent 70%),
    linear-gradient(178deg, #0c0a09 0%, #1c1917 38%, #292524 62%, #1c1917 82%, #0c0a09 100%);
}
/* window mullions — only when no photograph is supplied */
.cine-bg::after {
  content: '';
  position: absolute; inset: 0;
  background: repeating-linear-gradient(
    90deg,
    rgba(12, 10, 9, 0.72) 0px, rgba(12, 10, 9, 0.72) 4px,
    transparent 4px, transparent 232px
  );
  opacity: .55;
}
/* a supplied photo replaces the painted scene entirely */
.has-hero-photo .cine-bg::before,
.has-hero-photo .cine-bg::after { content: none; }

/* the reference's exact two-scrim technique: darken top so the nav
   reads, darken bottom so the type reads */
.cine-scrim-top {
  position: absolute; inset: 0 0 auto 0; height: 55%; z-index: -2;
  background: linear-gradient(rgba(0,0,0,0.45) 0%, rgba(0,0,0,0) 100%);
}
.cine-scrim-bot {
  position: absolute; inset: auto 0 0 0; height: 78%; z-index: -2;
  background: linear-gradient(rgba(0,0,0,0) 0%, rgba(0,0,0,0.72) 78%, rgba(0,0,0,0.86) 100%);
}

.cine-inner {
  padding: 0 6vw;
  max-width: 1320px;
  width: 100%;
  margin: auto auto 0;
  padding-top: 22vh;
}

.cine-title {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(46px, 7.4vw, 108px);
  line-height: 1.0;
  letter-spacing: -0.022em;
  color: var(--on-dark);
  margin-bottom: clamp(20px, 2.4vw, 30px);
}

.cine-sub {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(21px, 2.5vw, 34px);
  line-height: 1.25;
  letter-spacing: -0.012em;
  color: var(--on-dark);
  margin-bottom: clamp(16px, 1.8vw, 22px);
}
.cine-sub em { font-style: italic; color: #a5b4fc; }

.cine-body {
  font-family: var(--sans);
  font-size: clamp(15px, 1.2vw, 17px);
  font-weight: 300;
  line-height: 1.6;
  color: var(--on-dark-2);
  max-width: 50ch;
  margin-bottom: clamp(26px, 3vw, 36px);
}

/* Where the reference puts a customer logo wall. Corrobo has no
   customers to show yet, so this carries the deployment truths
   instead — same structural beat, nothing invented. */
.cine-strip {
  position: relative;
  margin-top: clamp(30px, 4.5vh, 56px);
  padding: 22px 6vw 0;
  max-width: 1320px;
  width: 100%;
  margin-left: auto; margin-right: auto;
  border-top: 1px solid var(--line-dark);
  display: flex; align-items: center; justify-content: space-between;
  flex-wrap: wrap; gap: 14px 28px;
}
.cine-strip-lead {
  font-family: var(--serif);
  font-style: italic;
  font-size: clamp(15px, 1.5vw, 19px);
  color: var(--on-dark);
}
.cine-marks {
  display: flex; flex-wrap: wrap; gap: 10px 26px;
  list-style: none;
  font-family: var(--sans);
  font-size: 11.5px;
  font-weight: 500;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  color: var(--on-dark-3);
}

/* ---------- SLABS (light sections) ---------- */
.slab {
  max-width: 1320px;
  margin: 0 auto;
  padding: clamp(54px, 8vh, 100px) 6vw;
}
/* Full-bleed slabs centre their CONTENT COLUMN with padding, not by giving
   every child `margin: auto`. The old approach collided with .slab-title's
   own max-width (20ch), which turned the title into a narrow box floating in
   the middle of the section while every other slab stayed left-aligned. */
.slab-alt, .slab-dark {
  max-width: none;
  padding-left: max(6vw, calc((100% - 1320px) / 2));
  padding-right: max(6vw, calc((100% - 1320px) / 2));
}
.slab-alt { background: var(--bg-2); }

.slab-title {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(30px, 4.1vw, 58px);
  line-height: 1.1;
  letter-spacing: -0.018em;
  color: var(--ink);
  max-width: 20ch;
  margin-bottom: clamp(18px, 2vw, 26px);
}
.slab-sub {
  font-family: var(--sans);
  font-size: clamp(16px, 1.3vw, 18.5px);
  font-weight: 300;
  line-height: 1.65;
  color: var(--ink-3);
  max-width: 58ch;
  margin-bottom: clamp(26px, 3vw, 42px);
}

/* dark slab variant */
.slab-dark {
  background: var(--bg-dark);
  color: var(--on-dark);
}
.slab-dark .slab-title { color: var(--on-dark); }
.slab-dark .slab-sub { color: var(--on-dark-2); }
.slab-dark .tri h3 { color: var(--on-dark); }
.slab-dark .tri p { color: var(--on-dark-2); }
.slab-dark .tri { border-top-color: var(--line-dark); }

/* ---------- TRIAD (the three roles) ---------- */
.triad {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(24px, 2.8vw, 42px);
}
.tri { padding-top: 22px; border-top: 1px solid var(--line-2); }
.tri h3 {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(21px, 2vw, 27px);
  letter-spacing: -0.012em;
  color: var(--ink);
  margin-bottom: 12px;
}
.tri p {
  font-family: var(--sans);
  font-size: 15px;
  font-weight: 300;
  line-height: 1.68;
  color: var(--ink-3);
}

/* ---------- DARK CORRIDOR BAND ---------- */
.band-dark {
  position: relative;
  padding: clamp(60px, 9vh, 118px) 6vw;
  background: var(--bg-dark);
  overflow: hidden;
  isolation: isolate;
  text-align: center;
}
.band-dark-bg {
  position: absolute; inset: 0; z-index: -1;
  background:
    radial-gradient(70% 120% at 50% 120%, rgba(217, 119, 6, 0.26) 0%, transparent 62%),
    radial-gradient(60% 100% at 12% 0%, rgba(79, 70, 229, 0.22) 0%, transparent 66%),
    linear-gradient(180deg, #0c0a09 0%, #1c1917 55%, #0c0a09 100%);
}
.band-dark-inner { max-width: 900px; margin: 0 auto; }
.band-dark-title {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(30px, 4.4vw, 62px);
  line-height: 1.08;
  letter-spacing: -0.02em;
  color: var(--on-dark);
  margin-bottom: 18px;
}
.band-dark-sub {
  font-family: var(--sans);
  font-size: clamp(15px, 1.3vw, 18px);
  font-weight: 300;
  line-height: 1.65;
  color: var(--on-dark-2);
  max-width: 58ch;
  margin: 0 auto;
}

/* ---------- THE BRIEF ---------- */
.claims { display: grid; gap: clamp(24px, 3vw, 40px); max-width: 72ch; }
.claim {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(21px, 2.4vw, 33px);
  line-height: 1.38;
  letter-spacing: -0.014em;
  color: var(--ink-2);
}
.claim b { font-weight: 600; color: var(--ink); }

/* ---------- FIGURES ---------- */
.figures {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: clamp(36px, 4.6vw, 62px) clamp(36px, 6vw, 84px);
}
.fig-k {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(40px, 5vw, 68px);
  line-height: 1;
  letter-spacing: -0.03em;
  color: var(--ink);
  margin-bottom: 14px;
}
.fig-k .u {
  font-size: 0.38em;
  font-family: var(--sans);
  font-weight: 500;
  color: var(--indigo);
  margin-left: 4px;
  letter-spacing: -0.005em;
}
.fig-k-word { font-size: clamp(32px, 3.4vw, 46px); letter-spacing: -0.02em; }
.fig h3 {
  font-family: var(--sans);
  font-size: 16px;
  font-weight: 500;
  letter-spacing: -0.005em;
  color: var(--ink);
  margin-bottom: 8px;
}
.fig p {
  font-family: var(--sans);
  font-size: 15px;
  font-weight: 300;
  line-height: 1.65;
  color: var(--ink-3);
  max-width: 46ch;
}

/* ---------- WHERE TO NEXT ---------- */
.ways { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(24px, 3vw, 44px); }
.way {
  display: flex; flex-direction: column; gap: 10px;
  padding-top: 22px;
  border-top: 1px solid var(--ink);
  text-decoration: none;
  color: var(--ink);
  transition: border-color .2s, transform .2s;
}
.way:hover { border-color: var(--indigo); transform: translateY(-2px); }
.way h3 {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(21px, 2vw, 27px);
  letter-spacing: -0.012em;
}
.way p {
  flex: 1;
  font-family: var(--sans);
  font-size: 14.5px; font-weight: 300; line-height: 1.62;
  color: var(--ink-3);
}
.way-go {
  font-family: var(--sans);
  font-size: 13.5px; font-weight: 500;
  color: var(--indigo);
}
.way:hover .way-go { text-decoration: underline; }

/* ---------- CLOSE ---------- */
.close {
  position: relative;
  padding: clamp(64px, 10vh, 120px) 6vw;
  background: var(--bg-dark);
  text-align: center;
  overflow: hidden;
  isolation: isolate;
}
.close-bg {
  position: absolute; inset: 0; z-index: -1;
  background:
    radial-gradient(75% 130% at 50% 130%, rgba(217, 119, 6, 0.30) 0%, transparent 60%),
    radial-gradient(55% 90% at 85% 0%, rgba(79, 70, 229, 0.24) 0%, transparent 64%),
    linear-gradient(180deg, #0c0a09 0%, #1c1917 60%, #0c0a09 100%);
}
.close-inner { max-width: 780px; margin: 0 auto; }
.close-title {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(34px, 5.2vw, 74px);
  line-height: 1.05;
  letter-spacing: -0.022em;
  color: var(--on-dark);
  margin-bottom: 20px;
}
.close p {
  font-family: var(--sans);
  font-size: clamp(15px, 1.3vw, 18px);
  font-weight: 300;
  line-height: 1.65;
  color: var(--on-dark-2);
  max-width: 54ch;
  margin: 0 auto clamp(30px, 4vw, 44px);
}

/* ---------- HERO ENTRANCE ----------
   Pure CSS with `backwards` fill, so the copy always lands visible
   even if script.js never runs. */
@keyframes cine-in {
  from { opacity: 0; transform: translateY(18px); }
  to   { opacity: 1; transform: none; }
}
.cine-inner > * { animation: cine-in .9s cubic-bezier(.2,.7,.2,1) backwards; }
.cine-inner > *:nth-child(2) { animation-delay: .08s; }
.cine-inner > *:nth-child(3) { animation-delay: .16s; }
.cine-inner > *:nth-child(4) { animation-delay: .24s; }
.cine-strip { animation: cine-in 1s cubic-bezier(.2,.7,.2,1) .34s backwards; }

@media (prefers-reduced-motion: reduce) {
  .cine-inner > *, .cine-strip { animation: none; }
}

@media (max-width: 900px) {
  .triad { grid-template-columns: 1fr; }
  .figures { grid-template-columns: 1fr; }
  .ways { grid-template-columns: 1fr; }
  .cine-inner { padding-top: 26vh; }
  .cine-strip { flex-direction: column; align-items: flex-start; }
}

/* ==========================================================
   DEEP PAGES — same cinematic system as home
   ========================================================== */

/* ---------- shorter page hero ---------- */
.cine-page { min-height: 62vh; min-height: 62svh; }
.cine-page .cine-inner { padding-top: 12vh; }
.cine-page .cine-title {
  font-size: clamp(36px, 5.3vw, 76px);
  max-width: 19ch;
  margin-bottom: clamp(16px, 1.8vw, 24px);
}
.cine-page .cine-body { margin-bottom: 0; max-width: 58ch; }

.cine-eyebrow {
  font-family: var(--sans);
  font-size: 11.5px;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--on-dark-3);
  margin-bottom: clamp(18px, 2vw, 26px);
}

/* ---------- section intro (shared by platform / demo / company) ---------- */
.agents-intro {
  max-width: 1320px;
  margin-bottom: clamp(28px, 3.2vw, 46px);
}
.agents-intro h2 { max-width: 18ch; margin-bottom: 18px; }
.agents-intro p {
  font-family: var(--sans);
  font-size: clamp(15px, 1.25vw, 17.5px);
  font-weight: 300;
  line-height: 1.7;
  color: var(--ink-3);
  max-width: 70ch;
}

/* ---------- THE SEVEN SPECIALISTS ---------- */
.agent-list {
  list-style: none;
  border-top: 1px solid var(--line-2);
}
.ag-row {
  display: grid;
  grid-template-columns: 34px 40px minmax(150px, 1fr) minmax(260px, 2fr) auto;
  gap: clamp(9px, 1.1vw, 14px) clamp(16px, 2vw, 30px);
  align-items: start;
  padding: 21px 0;
  border-bottom: 1px solid var(--line);
  transition: background .2s;
}
.ag-row:hover { background: rgba(28, 25, 23, 0.022); }
.ag-no {
  font-family: var(--serif);
  font-size: 15px;
  color: var(--ink-soft);
  padding-top: 5px;
}
.ag-icon { width: 32px; height: 32px; color: var(--ink-3); padding-top: 2px; }
.ag-icon svg { width: 100%; height: 100%; }
.ag-name {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(19px, 1.65vw, 24px);
  letter-spacing: -0.012em;
  line-height: 1.25;
  color: var(--ink);
}
.ag-desc {
  font-family: var(--sans);
  font-size: 15px;
  font-weight: 300;
  line-height: 1.65;
  color: var(--ink-3);
}
.ag-tags { display: flex; flex-wrap: wrap; gap: 6px; justify-content: flex-end; }
.ag-tags span {
  font-family: var(--sans);
  font-size: 10.5px;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  white-space: nowrap;
  color: var(--ink-soft);
  border: 1px solid var(--line-2);
  padding: 5px 11px;
  border-radius: 999px;
  background: none;
}
.ag-row-fusion { background: rgba(67, 56, 202, 0.035); }
.ag-row-fusion:hover { background: rgba(67, 56, 202, 0.055); }
.ag-row-fusion .ag-name { color: var(--indigo-3); }
.ag-row-fusion .ag-icon { color: var(--indigo); }

/* ---------- KNOWLEDGE HUB LOOPS ---------- */
.loop-list { border-top: 1px solid var(--line-2); max-width: 92ch; }
.loop {
  display: grid;
  grid-template-columns: 110px 1fr;
  gap: clamp(16px, 2vw, 28px);
  padding: 24px 0;
  border-bottom: 1px solid var(--line);
}
.loop-k {
  font-family: var(--sans);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  color: var(--ink-soft);
  padding-top: 5px;
}
.loop p {
  font-family: var(--sans);
  font-size: 16px;
  font-weight: 300;
  line-height: 1.68;
  color: var(--ink-2);
}
.slab-note {
  margin-top: clamp(30px, 3.5vw, 46px);
  font-family: var(--serif);
  font-style: italic;
  font-size: clamp(17px, 1.6vw, 23px);
  line-height: 1.55;
  color: var(--ink-2);
  max-width: 62ch;
}

/* ---------- MONITORING ---------- */
.mon-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: clamp(32px, 4vw, 58px) clamp(36px, 5vw, 76px);
}
.mon-beat {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
  padding-top: 20px;
  border-top: 1px solid var(--line-2);
}
.mon-k {
  font-family: var(--sans);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-soft);
}
.mon-beat h3 {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(19px, 1.75vw, 25px);
  letter-spacing: -0.012em;
  color: var(--ink);
  margin-bottom: 9px;
}
.mon-beat p {
  font-family: var(--sans);
  font-size: 15px;
  font-weight: 300;
  line-height: 1.65;
  color: var(--ink-3);
}

@media (max-width: 900px) {
  .ag-row {
    grid-template-columns: 30px 1fr;
    gap: 10px 16px;
    row-gap: 8px;
  }
  .ag-icon { display: none; }
  .ag-desc, .ag-tags { grid-column: 2; }
  .ag-tags { justify-content: flex-start; margin-top: 4px; }
  .mon-grid { grid-template-columns: 1fr; }
  .loop { grid-template-columns: 1fr; gap: 6px; }
}

/* ==========================================================
   COMPANY — team · engagement · contact
   ========================================================== */

/* ---------- TEAM ---------- */
.team-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: clamp(22px, 2.6vw, 40px);
}
.founder {
  display: flex; flex-direction: column;
  padding-top: 22px;
  border-top: 1px solid var(--line-2);
  background: none;
  border-left: none; border-right: none; border-bottom: none;
  border-radius: 0;
  box-shadow: none;
}
.f-photo {
  width: 100%;
  aspect-ratio: 1 / 1;
  overflow: hidden;
  border-radius: 4px;
  margin-bottom: 18px;
  background: var(--bg-3);
  filter: grayscale(1) contrast(1.04);
  transition: filter .4s ease;
}
.founder:hover .f-photo { filter: grayscale(0) contrast(1); }
.f-photo img { width: 100%; height: 100%; object-fit: cover; display: block; }
.f-body { text-align: left; }
.f-name {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(19px, 1.6vw, 23px);
  letter-spacing: -0.012em;
  line-height: 1.25;
  color: var(--ink);
  margin-bottom: 4px;
}
.f-role {
  font-family: var(--sans);
  font-size: 11px; font-weight: 500;
  letter-spacing: 0.13em; text-transform: uppercase;
  color: var(--indigo);
  margin-bottom: 8px;
}
/* one-line capability label above each founder bio — mono eyebrow style */
.f-cap {
  font-family: var(--mono);
  font-size: 10px; font-weight: 500;
  letter-spacing: 0.12em;
  color: var(--ink-3);
  margin-bottom: 7px;
}
/* LinkedIn link under each founder bio */
.f-link {
  display: inline-block; margin-top: 9px;
  font-family: var(--sans); font-size: 12.5px; font-weight: 500;
  color: var(--indigo); text-decoration: none;
}
.f-link:hover { text-decoration: underline; }
.f-school {
  font-family: var(--sans);
  font-size: 12.5px; font-weight: 400;
  color: var(--ink-soft);
  margin-bottom: 12px;
  display: block;
  background: none;
  border: none;
  border-radius: 0;
  padding: 0;
}
.f-bio {
  font-family: var(--sans);
  font-size: 13.5px; font-weight: 300; line-height: 1.62;
  color: var(--ink-3);
  text-align: left;
}

/* ---------- ENGAGEMENT ---------- */
.price-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: clamp(24px, 3vw, 48px);
}
.plan {
  display: flex; flex-direction: column;
  padding: 34px 32px 32px;
  background: var(--bg);
  border: 1px solid var(--line-2);
  border-radius: 10px;
  box-shadow: none;
}
.plan-feature {
  background: var(--bg-dark);
  border-color: var(--bg-dark);
  color: var(--on-dark);
}
.plan-tag {
  font-family: var(--sans);
  font-size: 10.5px; font-weight: 500;
  letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--ink-soft);
  margin-bottom: 18px;
  align-self: flex-start;
  background: none;
  border: none;
  border-radius: 0;
  padding: 0;
}
.plan-feature .plan-tag { color: var(--on-dark-3); background: none; }
.plan-name {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(26px, 2.6vw, 36px);
  letter-spacing: -0.016em;
  color: var(--ink);
  margin-bottom: 6px;
}
.plan-feature .plan-name { color: var(--on-dark); }
.plan-price {
  font-family: var(--sans);
  font-size: 14px; font-weight: 400;
  color: var(--indigo);
  margin-bottom: 16px;
}
.plan-feature .plan-price { color: #a5b4fc; }
.plan-desc {
  font-family: var(--sans);
  font-size: 14.5px; font-weight: 300; line-height: 1.65;
  color: var(--ink-3);
  margin-bottom: 22px;
}
.plan-feature .plan-desc { color: var(--on-dark-2); }
.plan-feat { list-style: none; display: grid; gap: 10px; margin-bottom: 28px; flex: 1; }
.plan-feat li {
  position: relative;
  padding-left: 18px;
  font-family: var(--sans);
  font-size: 14px; font-weight: 300; line-height: 1.6;
  color: var(--ink-2);
}
.plan-feat li::before {
  content: '—';
  position: absolute; left: 0;
  color: var(--ink-soft);
}
.plan-feature .plan-feat li { color: var(--on-dark-2); }
.plan-feature .plan-feat li::before { color: var(--on-dark-3); }
.plan-cta {
  display: inline-flex; align-items: center; justify-content: center;
  padding: 13px 24px;
  border-radius: 999px;
  font-family: var(--sans);
  font-size: 14px; font-weight: 500;
  text-decoration: none;
  border: 1px solid var(--line-strong);
  color: var(--ink);
  transition: background .2s, color .2s, border-color .2s, transform .2s;
}
.plan-cta:hover { background: var(--ink); color: var(--bg); border-color: var(--ink); transform: translateY(-2px); }
.plan-cta-primary {
  background: #f5f5f4; color: var(--ink); border-color: #f5f5f4;
}
.plan-cta-primary:hover { background: #fff; color: var(--ink); border-color: #fff; }
.pricing-fine {
  margin-top: clamp(28px, 3vw, 40px);
  font-family: var(--sans);
  font-size: 13.5px; font-weight: 300;
  color: var(--ink-soft);
  max-width: 62ch;
}

/* ---------- CONTACT (dark) ---------- */
.cta {
  position: relative;
  padding: clamp(60px, 9vh, 110px) 6vw;
  background: var(--bg-dark);
  overflow: hidden;
  isolation: isolate;
  border: none;
}
.cta-bg {
  position: absolute; inset: 0; z-index: -1;
  background:
    radial-gradient(70% 110% at 18% 110%, rgba(217, 119, 6, 0.24) 0%, transparent 62%),
    radial-gradient(60% 90% at 88% 0%, rgba(79, 70, 229, 0.24) 0%, transparent 64%),
    linear-gradient(180deg, #0c0a09 0%, #1c1917 58%, #0c0a09 100%);
}
.eyebrow-dark { color: var(--on-dark-3); }
.cta-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(36px, 5vw, 80px);
  max-width: 1320px;
  margin: 0 auto;
  align-items: start;
}
.cta-title {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(32px, 4.4vw, 62px);
  line-height: 1.06;
  letter-spacing: -0.022em;
  color: var(--on-dark);
  margin-bottom: 18px;
}
.cta-text > p {
  font-family: var(--sans);
  font-size: clamp(15px, 1.25vw, 17px);
  font-weight: 300; line-height: 1.65;
  color: var(--on-dark-2);
  max-width: 48ch;
}
.cta-secondary { color: var(--on-dark-3); font-size: 13.5px; margin-top: 14px; }
.cta-meta {
  display: flex; gap: 44px; flex-wrap: wrap;
  margin-top: clamp(28px, 3.4vw, 42px);
  padding-top: 22px;
  border-top: 1px solid var(--line-dark);
}
.cta-meta div { display: flex; flex-direction: column; gap: 5px; }
.cta-meta b {
  font-family: var(--sans);
  font-size: 10.5px; font-weight: 500;
  letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--on-dark-3);
}
.cta-meta span { font-family: var(--sans); font-size: 14px; color: var(--on-dark); font-weight: 300; }

/* the placeholder chip has to stay legible on the dark panel */
.cta-email { margin-top: 20px; }
.ph-chip { color: #fbbf24; border-color: rgba(251, 191, 36, 0.55); }

/* ---------- CONTACT FORM (on dark) ---------- */
.cta-form {
  display: flex; flex-direction: column;
  background: rgba(245, 245, 244, 0.045);
  border: 1px solid var(--line-dark);
  border-radius: 10px;
  padding: 28px;
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}
.form-strip {
  display: flex; justify-content: space-between; align-items: center;
  font-family: var(--sans);
  font-size: 10px; font-weight: 500;
  letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--on-dark-3);
  border-bottom: 1px solid var(--line-dark);
  padding-bottom: 14px;
  margin-bottom: 20px;
}
.cta-form label {
  font-family: var(--sans);
  font-size: 11px; font-weight: 500;
  letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--on-dark-2);
  margin-bottom: 7px;
}
.cta-form input[type="email"],
.cta-form input[type="text"]:not([name="_gotcha"]) {
  font-family: var(--sans);
  font-size: 14.5px; font-weight: 300;
  color: var(--on-dark);
  background: rgba(12, 10, 9, 0.42);
  border: 1px solid var(--line-dark);
  border-radius: 7px;
  padding: 12px 14px;
  margin-bottom: 18px;
  transition: border-color .2s, background .2s;
}
.cta-form input::placeholder { color: rgba(245, 245, 244, 0.3); }
.cta-form input:focus {
  outline: none;
  border-color: #a5b4fc;
  background: rgba(12, 10, 9, 0.62);
}
.cta-form button {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  margin-top: 4px;
  padding: 14px 24px;
  border-radius: 999px;
  border: none;
  cursor: pointer;
  background: #f5f5f4;
  color: var(--ink);
  font-family: var(--sans);
  font-size: 14.5px; font-weight: 500;
  transition: background .2s, transform .2s;
}
.cta-form button:hover { background: #fff; transform: translateY(-2px); }
.cta-fine {
  margin-top: 14px;
  font-family: var(--sans);
  font-size: 12.5px; font-weight: 300;
  color: var(--on-dark-3);
  text-align: center;
}

@media (max-width: 980px) {
  .team-grid { grid-template-columns: repeat(2, 1fr); }
  .cta-grid { grid-template-columns: 1fr; }
  .price-grid { grid-template-columns: 1fr; }
}
@media (max-width: 560px) {
  .team-grid { grid-template-columns: 1fr; }
}


/* ==========================================================
   COMPACT SECTIONS + MOTION  (2026-07-14, pass 5)

   The hero is back to the painted CSS dusk backdrop — the founder
   found the photographic version less professional. The mechanism to
   drop a real photograph back in still exists: set --hero-img on
   :root (or add .has-hero-photo to <body> and point it at a file).

   The brief and the proof band used to run ~920px each against the
   413px of "Where to next". Both now use that same compact rhythm:
   a hairline-topped column grid instead of stacked full-width blocks.
   ========================================================== */

/* ---------- tighter slab ---------- */
.slab-tight {
  padding-top: clamp(34px, 4.4vh, 56px);
  padding-bottom: clamp(34px, 4.4vh, 56px);
}
.slab-tight .eyebrow { margin-bottom: clamp(15px, 1.7vw, 22px); }

/* heading and its follow-on line share one block instead of stacking
   a 58px title on top of a separate sub */
.slab-title-sm {
  font-size: clamp(19px, 1.9vw, 27px);
  line-height: 1.35;
  letter-spacing: -0.012em;
  max-width: 74ch;
  margin-bottom: clamp(24px, 2.6vw, 36px);
}
.slab-title-quiet { color: var(--ink-3); }

/* ---------- THE BRIEF — three columns, like "Where to next" ---------- */
.claims {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(24px, 3vw, 44px);
  max-width: none;
}
.claim {
  padding: 16px 0 0;
  border-top: 1px solid var(--ink);
  border-bottom: none;
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(15.5px, 1.25vw, 18px);
  line-height: 1.5;
  letter-spacing: -0.008em;
  color: var(--ink-2);
}
.claim:first-child, .claim:last-child { padding: 16px 0 0; }
.claim b { font-weight: 600; color: var(--ink); }

/* ---------- PROOF — four columns, same rhythm ---------- */
.figures {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: clamp(20px, 2.4vw, 36px);
}
.fig {
  display: flex;
  flex-direction: column;
  padding-top: 16px;
  border-top: 1px solid var(--ink);
}
.fig-k {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(23px, 2.2vw, 31px);
  line-height: 1;
  letter-spacing: -0.02em;
  color: var(--ink);
  margin-bottom: 8px;
}
.fig-k-word { font-size: clamp(19px, 1.8vw, 25px); letter-spacing: -0.012em; }
/* real spaces now live in the markup ("1 command", "< 90 sec"), so the unit
   needs no left margin — and the percent sign must stay tight to its number */
.fig-k .u {
  font-family: var(--sans);
  font-size: 0.42em;
  font-weight: 500;
  color: var(--indigo);
  margin-left: 0;
  letter-spacing: 0;
}
.fig h3 {
  font-family: var(--sans);
  font-size: 13px;
  font-weight: 500;
  letter-spacing: -0.003em;
  color: var(--ink);
  margin-bottom: 4px;
}
.fig p {
  font-family: var(--sans);
  font-size: 12.5px;
  font-weight: 300;
  line-height: 1.52;
  color: var(--ink-3);
  max-width: none;
}

/* ---------- CORRIDOR BAND ---------- */
.band-dark-bg {
  background:
    radial-gradient(70% 120% at 50% 120%, rgba(217, 119, 6, 0.22) 0%, transparent 62%),
    radial-gradient(60% 100% at 12% 0%, rgba(79, 70, 229, 0.20) 0%, transparent 66%),
    linear-gradient(180deg, rgba(12, 10, 9, 0.90) 0%, rgba(28, 25, 23, 0.78) 50%, rgba(12, 10, 9, 0.94) 100%),
    url('/skyline.jpg') center 40% / cover no-repeat;
}

/* abstract "moment" band — purely painted, same dusk language as the hero,
   no photograph. A pulled-out claim gets a cinematic full-width beat. */
.band-quote .band-dark-bg {
  background:
    radial-gradient(90% 80% at 22% 115%, rgba(217, 119, 6, 0.34) 0%, rgba(120, 53, 15, 0.12) 38%, transparent 68%),
    radial-gradient(80% 70% at 85% -10%, rgba(79, 70, 229, 0.38) 0%, rgba(49, 46, 129, 0.12) 42%, transparent 70%),
    radial-gradient(50% 40% at 55% 50%, rgba(251, 191, 36, 0.06) 0%, transparent 70%),
    linear-gradient(178deg, #0c0a09 0%, #1c1917 44%, #211d1a 60%, #0c0a09 100%);
}
.band-quote .band-dark-title { max-width: 20ch; }
/* highlight that works on a dark ground — an indigo wash, not the butter marker */
.hl-dark { color: #c7d2fe; }

/* ---------- SCROLL MOTION ---------- */
/* .reveal is only ever added by script.js, so with JS off nothing is hidden. */
.reveal {
  opacity: 0;
  transform: translateY(34px);
  transition: opacity .8s cubic-bezier(.2, .7, .2, 1), transform .8s cubic-bezier(.2, .7, .2, 1);
  will-change: opacity, transform;
}
.reveal.in { opacity: 1; transform: none; }

/* headline numbers and serif titles get a touch of scale as well, so the
   number "rises and settles" rather than just sliding */
.fig.reveal, .slab-title.reveal, .close-title.reveal, .band-dark-title.reveal {
  transform: translateY(34px) scale(.975);
  transform-origin: left bottom;
}
.fig.reveal.in, .slab-title.reveal.in, .close-title.reveal.in, .band-dark-title.reveal.in {
  transform: none;
}

.cine-bg { will-change: transform; transform: scale(1.06); }

/* dark bands are oversized past their frame so the parallax drift never
   reveals an edge (the section clips with overflow:hidden) */
.band-dark-bg, .close-bg, .cta-bg { inset: -14% 0; will-change: transform; }

@media (prefers-reduced-motion: reduce) {
  .reveal,
  .fig.reveal, .slab-title.reveal, .close-title.reveal, .band-dark-title.reveal {
    opacity: 1; transform: none; transition: none;
  }
  .cine-bg { transform: none; }
  .band-dark-bg, .close-bg, .cta-bg { transform: none; }
}

@media (max-width: 980px) {
  .figures { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 760px) {
  .claims { grid-template-columns: 1fr; }
  .figures { grid-template-columns: 1fr; }
}

/* ==========================================================
   /DEMO — CASE FILES  (EDIT-12, re-expansion 2026-07-17)

   Static content: renders in full with JavaScript disabled and
   never depends on the reveal script. Class names are namespaced
   (.dossier*, .mono-chip, .morning-queue/.mq-*) so they never
   collide with the script-driven "Run Investigation" widget, whose
   .sc / .sc-head / .sc-body hooks are reused by script.js.
   Every case-ID stamp and citation chip is JetBrains Mono.
   ========================================================== */

/* ---- shared: mono citation chip + sentence-length screen readout ---- */
.mono-chip {
  display: inline-block;
  font-family: var(--mono);
  font-size: 10.5px;
  font-weight: 500;
  letter-spacing: 0.02em;
  line-height: 1.5;
  color: var(--indigo);
  background: #eef0ff;
  border: 1px solid #d8d4ff;
  padding: 1px 7px;
  border-radius: 4px;
  white-space: nowrap;
  vertical-align: baseline;
}
/* flags / mandates / warnings — the theme's warning amber */
.mono-chip-warn {
  color: var(--warn);
  background: var(--warn-soft);
  border-color: #f4d8a3;
}
/* a chip carrying a longer citation is allowed to wrap rather than overflow */
.mono-chip-wide { white-space: normal; }

/* a system readout on its own line: verdicts, maxims, the two-column
   tier reads. Mono, quiet, indigo hairline (amber for a "review" tier). */
.screen-line {
  display: block;
  width: fit-content;
  max-width: 100%;
  font-family: var(--mono);
  font-size: 12px;
  line-height: 1.6;
  color: var(--ink-2);
  background: var(--bg-3);
  border-left: 2px solid var(--indigo);
  border-radius: 0 5px 5px 0;
  padding: 8px 12px;
  margin: 10px 0;
}
.screen-line-warn { border-left-color: var(--warn); color: var(--warn); background: var(--warn-soft); }

/* a small illustrative / synthetic-framing note under a section intro */
.file-note {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.03em;
  color: var(--ink-soft);
  margin-top: -18px;
  margin-bottom: clamp(30px, 3.4vw, 46px);
}

/* ---- THE MORNING QUEUE — overnight monitoring scene ---- */
.morning-queue {
  background: var(--bg);
  border: 1px solid var(--line-2);
  border-left: 3px solid var(--indigo);
  border-radius: 10px;
  padding: 22px 24px;
  max-width: 860px;
  box-shadow: var(--shadow-sm);
}
.mq-head { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 14px; margin-bottom: 14px; }
.mq-rank {
  font-family: var(--mono);
  font-size: 11px; font-weight: 500; letter-spacing: 0.06em;
  color: #fff; background: var(--ink);
  padding: 3px 9px; border-radius: 4px;
}
.mq-tag {
  font-family: var(--sans);
  font-size: 11px; font-weight: 500;
  letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--warn);
}
.mq-lead {
  font-family: var(--serif);
  font-size: clamp(17px, 1.5vw, 21px);
  line-height: 1.45; letter-spacing: -0.01em;
  color: var(--ink);
  margin-bottom: 14px;
}
.mq-facts { list-style: none; display: grid; gap: 6px; margin-bottom: 16px; }
.mq-facts li {
  position: relative; padding-left: 16px;
  font-size: 14px; line-height: 1.55; color: var(--ink-2);
}
.mq-facts li::before { content: '—'; position: absolute; left: 0; color: var(--ink-soft); }
.mq-chips { display: flex; flex-wrap: wrap; gap: 5px; }

.wires-note {
  margin-top: clamp(26px, 3vw, 40px);
  max-width: 76ch;
  font-family: var(--sans);
  font-size: 14.5px; font-weight: 300; line-height: 1.7;
  color: var(--ink-3);
}

/* ---- THE INVESTIGATION FILES — A / B / C / D ---- */
.dossier-stack {
  display: flex; flex-direction: column;
  gap: clamp(22px, 2.6vw, 34px);
  max-width: 1060px;
}
.dossier {
  background: var(--bg);
  border: 1px solid var(--line-2);
  border-radius: 12px;
  padding: clamp(22px, 2.4vw, 32px);
  box-shadow: var(--shadow-sm);
}
.dossier-head {
  display: flex; flex-wrap: wrap; gap: 12px 18px;
  justify-content: space-between; align-items: flex-start;
  padding-bottom: 16px; margin-bottom: 18px;
  border-bottom: 1px solid var(--line);
}
.dossier-headline { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.dossier-file {
  font-family: var(--mono);
  font-size: 10.5px; font-weight: 500;
  letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--indigo);
}
.dossier-title {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(21px, 2vw, 28px);
  line-height: 1.2; letter-spacing: -0.014em;
  color: var(--ink);
}
.dossier-meta { display: flex; flex-direction: column; align-items: flex-end; gap: 7px; flex-shrink: 0; }
/* the case-ID stamp — mono, echoing the widget's own case-file header */
.dossier-id {
  font-family: var(--mono);
  font-size: 12px; font-weight: 500; letter-spacing: 0.04em;
  color: var(--butter-2); background: var(--ink);
  padding: 4px 10px; border-radius: 4px;
  white-space: nowrap;
}
.dossier-kind {
  font-family: var(--sans);
  font-size: 10px; font-weight: 500;
  letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--ink-soft);
  border: 1px solid var(--line-2);
  padding: 4px 10px; border-radius: 999px;
  white-space: nowrap;
}
.dossier-brief {
  font-family: var(--serif);
  font-size: clamp(16px, 1.4vw, 19px);
  line-height: 1.5; letter-spacing: -0.01em;
  color: var(--ink-2);
  margin-bottom: 20px; max-width: 72ch;
}
.dossier-beats { list-style: none; display: flex; flex-direction: column; gap: 16px; }
.dossier-beat {
  display: grid; grid-template-columns: 40px 1fr;
  gap: 6px 16px; align-items: start;
}
.dossier-beat-no {
  font-family: var(--mono);
  font-size: 12px; font-weight: 500; letter-spacing: 0.05em;
  color: var(--indigo);
  padding-top: 3px;
}
.dossier-beat-body {
  font-size: 14.5px; line-height: 1.62;
  color: var(--ink-2);
  max-width: 78ch;
  overflow-wrap: break-word;
}
.dossier-beat-body .mono-chip { margin: 0 1px; }
.dossier-replay {
  display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px;
  margin-top: 20px; padding-top: 16px;
  border-top: 1px solid var(--line);
}
.dossier-replay-lbl {
  font-family: var(--mono);
  font-size: 9.5px; font-weight: 500;
  letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--ink-soft);
}
.dossier-replay-flow {
  font-family: var(--mono);
  font-size: 11px; line-height: 1.7; letter-spacing: 0.02em;
  color: var(--ink);
  background: var(--bg-3);
  padding: 6px 12px; border-radius: 6px;
}

@media (max-width: 620px) {
  .dossier-head { flex-direction: column; }
  .dossier-meta { align-items: flex-start; flex-direction: row; flex-wrap: wrap; }
  .dossier-beat { grid-template-columns: 1fr; gap: 3px; }
  .dossier-beat-no { padding-top: 0; }
  .dossier-replay-flow { font-size: 10px; }
}

/* ============================================================
   NAV — MOBILE MENU (≤920px, progressive enhancement)
   script.js injects a burger button and html carries .nav-js when
   JS runs (set by the dropdown script). With JS on, the wrapped
   second-row links hide behind the burger and open as a column
   panel on a solid dark ground; the Platform dropdown becomes an
   inline accordion inside the panel. With JS off, the old
   wrapped-row fallback below 920px remains untouched.
   ============================================================ */
.nav-burger { display: none; }
@media (max-width: 920px) {
  .nav-js .nav-links { display: none; }
  .nav-burger {
    display: inline-flex; flex-direction: column; justify-content: center; gap: 4.5px;
    width: 40px; height: 40px; padding: 9px 10px; flex: none;
    background: none; border: 1px solid rgba(245, 245, 244, 0.25); border-radius: 9px;
    cursor: pointer;
  }
  .nav-burger span { display: block; height: 1.7px; width: 100%; background: var(--on-dark, #f5f5f4); border-radius: 2px; transition: transform .2s, opacity .2s; }
  .nav.menu-open .nav-burger span:nth-child(1) { transform: translateY(6.2px) rotate(45deg); }
  .nav.menu-open .nav-burger span:nth-child(2) { opacity: 0; }
  .nav.menu-open .nav-burger span:nth-child(3) { transform: translateY(-6.2px) rotate(-45deg); }

  .nav-js .nav.menu-open { background: #0e0c0a; }
  .nav-js .nav.menu-open .nav-links {
    display: flex; flex-direction: column; align-items: stretch; gap: 0;
    order: 3; width: 100%; flex: none;
    padding: 6px 0 10px; margin-top: 4px;
    border-top: 1px solid rgba(245, 245, 244, 0.14);
  }
  .nav-js .nav.menu-open .nav-links > li { width: 100%; }
  .nav-js .nav.menu-open .nav-links a,
  .nav-js .nav.menu-open .nav-drop-trigger { display: flex; width: 100%; padding: 12px 2px; font-size: 15px; }
  /* the Platform dropdown becomes an inline accordion in the panel */
  .nav-js .nav.menu-open .nav-drop { display: block; }
  .nav-js .nav.menu-open .nav-drop-menu {
    display: none;
    position: static; min-width: 0; max-width: none; padding: 0 0 6px 16px;
    background: transparent; border: none; box-shadow: none;
    opacity: 1; visibility: visible; pointer-events: auto; transform: none; transition: none;
    -webkit-backdrop-filter: none; backdrop-filter: none;
  }
  .nav-js .nav.menu-open .nav-drop.open > .nav-drop-menu { display: block; }
  .nav-js .nav.menu-open .nav-drop-menu::before { content: none; }
  .nav-js .nav.menu-open .nav-drop-menu a { padding: 10px 8px; }
}
/* very narrow phones: logo + CTA + burger stay on one row */
@media (max-width: 400px) {
  .nav { gap: 8px; }
  .nav-cta { padding: 8px 13px; font-size: 12px; }
  .logo-text { font-size: 17px; }
}
@media (prefers-reduced-motion: reduce) {
  .nav-burger span { transition: none; }
}

/* ============================================================
   STORY EXPANDERS — tools bench + platform product grid
   Inline accordion beneath a card row: a mono "SEE IT WORK" button
   opens a synthetic-case vignette in place (one open at a time,
   ~200ms height/opacity via the 0fr→1fr grid trick). Reduced motion:
   instant. No-JS: a per-page <noscript> rule shows every story open
   and hides the dead buttons.
   ============================================================ */
.story-btn {
  grid-column: 1 / -1; justify-self: start;
  display: inline-flex; align-items: center; gap: 6px;
  margin: 2px 0 0; padding: 0; border: 0; background: none; cursor: pointer;
  font-family: var(--mono); font-size: 10.5px; font-weight: 500;
  letter-spacing: 0.08em; color: var(--butter-ink, #854d0e);
}
.story-btn:hover { text-decoration: underline; }
.story-btn:focus-visible { outline: 2px solid var(--indigo); outline-offset: 3px; }
.story-chev { display: inline-block; transition: transform .2s; }
.story-btn[aria-expanded="true"] .story-chev { transform: rotate(180deg); }
.story-wrap {
  grid-column: 1 / -1;
  display: grid; grid-template-rows: 0fr; opacity: 0;
  transition: grid-template-rows .2s ease, opacity .2s ease;
}
.story-wrap.open { grid-template-rows: 1fr; opacity: 1; }
.story-inner { overflow: hidden; }
.story-card {
  margin: 10px 0 6px; padding: 16px 18px;
  background: var(--bg-3); border: 1px solid var(--line-2);
  border-left: 3px solid var(--butter-2); border-radius: 10px;
}
.story-tag {
  display: inline-block; font-family: var(--mono); font-size: 9.5px;
  letter-spacing: 0.12em; color: var(--ink-3);
  border: 1px solid var(--line-2); border-radius: 999px;
  padding: 2px 8px; margin-bottom: 10px;
}
.story-text { font-family: var(--sans); font-size: 13.5px; font-weight: 300; line-height: 1.6; color: var(--ink-2); max-width: 78ch; margin: 0 0 12px; }
.story-link { font-family: var(--mono); font-size: 10.5px; letter-spacing: 0.08em; color: var(--butter-ink, #854d0e); text-decoration: none; }
.story-link:hover { text-decoration: underline; }
@media (prefers-reduced-motion: reduce) {
  .story-wrap, .story-chev { transition: none; }
}

/* ============================================================
   NAV — PLATFORM DROPDOWN
   A parent "Platform" trigger expands to two entries (Product
   overview → /platform, Tools → /platform/tools). Desktop: a small
   panel on hover + click. Mobile (≤920px): the same panel taps open
   below the item. Uses the nav's own indigo accent + display type.
   Progressive enhancement: with no JS, :focus-within opens the menu;
   the script adds .nav-js on <html> and then manages open/close, so
   focus-within no longer fights Escape-to-close.
   ============================================================ */
.nav-drop { position: relative; display: inline-flex; align-items: center; }
.nav-drop-trigger {
  display: inline-flex; align-items: center; gap: 5px;
  font-family: var(--display); font-size: 13px; font-weight: 500; letter-spacing: -0.005em;
  color: var(--ink-3);
  background: none; border: 0; padding: 0; margin: 0; cursor: pointer;
  transition: color .2s;
}
.nav-drop-trigger:hover,
.nav-drop.open > .nav-drop-trigger { color: var(--ink); }
.nav-drop-trigger:focus-visible { outline: 2px solid var(--indigo); outline-offset: 4px; border-radius: 3px; }
.nav-chev { width: 11px; height: 11px; flex: none; transition: transform .2s; opacity: .7; }
.nav-drop.open > .nav-drop-trigger .nav-chev { transform: rotate(180deg); }

/* active parent — marked the way the nav marks the current page */
.nav-drop-trigger.is-active { color: var(--ink); }
.nav-drop-trigger.is-active .nav-drop-label::after {
  content: ""; display: block; height: 2px; margin-top: 3px;
  background: var(--indigo); border-radius: 2px;
}

/* the menu panel */
.nav-drop-menu {
  list-style: none; margin: 0;
  position: absolute; top: calc(100% + 9px); left: 0;
  min-width: 212px; padding: 6px;
  background: rgba(18, 16, 14, 0.97);
  -webkit-backdrop-filter: blur(16px) saturate(150%); backdrop-filter: blur(16px) saturate(150%);
  border: 1px solid rgba(245, 245, 244, 0.14);
  border-radius: 12px;
  box-shadow: 0 24px 50px -26px rgba(0, 0, 0, .8);
  opacity: 0; visibility: hidden; pointer-events: none;
  transform: translateY(-6px);
  transition: opacity .18s ease, transform .18s ease, visibility 0s linear .18s;
  z-index: 50;
}
.nav-drop-menu::before {              /* invisible bridge across the gap, so hover doesn't drop */
  content: ""; position: absolute; top: -11px; left: 0; right: 0; height: 11px;
}
/* open: JS .open (any width) · no-JS focus-within · desktop hover */
.nav-drop.open > .nav-drop-menu,
:root:not(.nav-js) .nav-drop:focus-within > .nav-drop-menu {
  opacity: 1; visibility: visible; pointer-events: auto; transform: translateY(0);
  transition: opacity .18s ease, transform .18s ease, visibility 0s;
}
@media (min-width: 921px) {
  .nav-drop:hover > .nav-drop-menu {
    opacity: 1; visibility: visible; pointer-events: auto; transform: translateY(0);
    transition: opacity .18s ease, transform .18s ease, visibility 0s;
  }
}

/* menu items — scoped under .nav-links to beat `.nav-over .nav-links a` */
.nav-links .nav-drop-menu li { display: block; }
.nav-links .nav-drop-menu a {
  display: flex; align-items: center; gap: 10px;
  padding: 9px 11px; border-radius: 8px;
  color: var(--on-dark-2); text-decoration: none;
  font-family: var(--display); font-size: 13px; font-weight: 500; white-space: nowrap;
  transition: background .15s, color .15s;
}
.nav-links .nav-drop-menu a:hover,
.nav-links .nav-drop-menu a:focus-visible {
  background: rgba(245, 245, 244, .07); color: var(--on-dark); outline: none;
}
.nav-drop-ico { width: 17px; height: 17px; flex: none; opacity: .85; }
/* active child */
.nav-links .nav-drop-menu a[aria-current="page"] { color: var(--on-dark); background: rgba(165, 180, 252, .14); }
.nav-links .nav-drop-menu a[aria-current="page"]::after { display: none; }
.nav-links .nav-drop-menu a[aria-current="page"] .nav-drop-ico { color: #a5b4fc; opacity: 1; }

/* nav-over (dark hero) — trigger colours match the other links */
.nav-over .nav-drop-trigger { color: var(--on-dark-2); }
.nav-over .nav-drop-trigger:hover,
.nav-over .nav-drop.open > .nav-drop-trigger,
.nav-over .nav-drop-trigger.is-active { color: var(--on-dark); }

/* mobile — no hover; the panel taps open below the Platform item */
@media (max-width: 920px) {
  .nav-drop-menu { left: 0; right: auto; min-width: 200px; max-width: calc(100vw - 40px); top: calc(100% + 8px); }
}
