/* BARA Labs — site styles.
   Layout: editorial single column; split hero (statement + live agent ledger); ink bands for proof and contact.
   One deliberate light theme: warm ivory paper, logo ink, aqua as the "watching" accent. */
:root {
  color-scheme: light;
  /* colour */
  --ivory: #F8F4EA;      /* page */
  --paper: #FFFDF8;      /* cards */
  --ink: #171918;        /* logo ink */
  --ink-2: #45463F;      /* secondary text */
  --stone: #66645B;      /* muted text, 5.4:1 on ivory */
  --line: #E4DDCC;       /* hairlines */
  --aqua: #69D2C5;       /* brand accent: fills, dots, on-ink text */
  --aqua-deep: #16695F;  /* aqua for text on ivory, 5.9:1 */
  --aqua-wash: #E1F4F0;
  --amber-wash: #F6EAD2;
  --hold-wash: #F7DFD0;
  --red-wash: #F5D9D5;
  --on-ink: #F8F4EA;
  --on-ink-muted: #A9A79C;
  /* type */
  --font: "Manrope", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  --mono: ui-monospace, "SF Mono", "SFMono-Regular", Menlo, Consolas, monospace;
  --step--1: 0.8125rem;  /* 13 */
  --step-0: 1.0625rem;   /* 17 */
  --step-1: 1.25rem;     /* 20 */
  --step-2: 1.625rem;    /* 26 */
  --step-3: clamp(2rem, 1.4rem + 2.4vw, 2.75rem);
  --step-4: clamp(2.5rem, 1.6rem + 3.8vw, 4rem);
  --radius: 14px;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--ivory);
  color: var(--ink);
  font: 400 var(--step-0)/1.6 var(--font);
  font-feature-settings: "ss01" on;
}
body::before {
  content: ""; position: fixed; inset: 0 0 auto; height: env(safe-area-inset-top, 0px);
  z-index: 30; background: var(--ivory);
}
img { max-width: 100%; height: auto; }
a { color: var(--aqua-deep); text-underline-offset: 3px; }
a:hover { color: var(--ink); }
:focus-visible { outline: 3px solid var(--aqua); outline-offset: 3px; border-radius: 4px; }

.wrap {
  max-width: 1160px; margin: 0 auto;
  padding-left: max(20px, env(safe-area-inset-left, 0px));
  padding-right: max(20px, env(safe-area-inset-right, 0px));
}

h1, h2, h3 { font-weight: 800; letter-spacing: -0.025em; line-height: 1.1; margin: 0; text-wrap: balance; }
h1 { font-size: var(--step-4); }
h2 { font-size: var(--step-3); }
h3 { font-size: var(--step-1); letter-spacing: -0.01em; line-height: 1.3; }
p { margin: 0; }
.lede { font-size: var(--step-1); line-height: 1.55; color: var(--ink-2); max-width: 36em; }
.prose { max-width: 40em; display: grid; gap: 1em; color: var(--ink-2); }
.prose strong { color: var(--ink); }
.muted { color: var(--stone); }
.small { font-size: var(--step--1); }
.mono { font-family: var(--mono); font-size: 0.85em; }

/* eyebrow with the aqua dot from the logo */
.eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  font-size: var(--step--1); font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; color: var(--ink-2);
}
.eyebrow::before {
  content: ""; width: 10px; height: 10px; border-radius: 50%; background: var(--aqua); flex: none;
}

/* header */
.site-header {
  position: sticky; top: env(safe-area-inset-top, 0px); z-index: 20;
  background: color-mix(in srgb, var(--ivory) 92%, transparent);
  backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 12px 24px; flex-wrap: wrap; padding-block: 14px; }
.brand { display: inline-flex; align-items: center; gap: 12px; color: var(--ink); text-decoration: none; }
.brand img { width: auto; height: 36px; }
.brand span { font-weight: 700; letter-spacing: 0.2em; font-size: 0.95rem; }
.nav { display: flex; align-items: center; gap: 4px 22px; flex-wrap: wrap; }
.nav a { color: var(--ink-2); text-decoration: none; font-weight: 600; font-size: 0.95rem; padding: 6px 0; border-bottom: 2px solid transparent; }
.nav a:hover { color: var(--ink); }
.nav a[aria-current="page"] { color: var(--ink); border-bottom-color: var(--aqua); }

/* buttons */
.btn {
  display: inline-flex; align-items: center; gap: 10px; padding: 13px 22px; border-radius: 999px;
  font-weight: 700; font-size: 0.98rem; text-decoration: none; border: 1.5px solid var(--ink); cursor: pointer;
  font-family: var(--font);
}
.btn-primary { background: var(--ink); color: var(--on-ink); }
.btn-primary:hover { background: #2a2d2b; color: var(--on-ink); }
.btn-ghost { background: transparent; color: var(--ink); }
.btn-ghost:hover { background: var(--paper); color: var(--ink); }
.btn-aqua { background: var(--aqua); border-color: var(--aqua); color: var(--ink); }
.btn-aqua:hover { background: #82dbd0; color: var(--ink); }
.actions { display: flex; gap: 12px; flex-wrap: wrap; }

/* sections */
.section { padding-block: clamp(56px, 8vw, 104px); }
.section + .section { border-top: 1px solid var(--line); }
.section-head { display: grid; gap: 14px; margin-bottom: 40px; max-width: 46em; }

/* hero */
.hero { padding-block: clamp(40px, 6vw, 88px) clamp(48px, 7vw, 96px); }
.hero .wrap { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); gap: clamp(32px, 5vw, 64px); align-items: center; }
.hero-copy { display: grid; gap: 24px; min-width: 0; }
.page-hero { padding-block: clamp(40px, 6vw, 80px) clamp(32px, 4vw, 56px); }
.page-hero .wrap { display: grid; gap: 20px; }

/* the agent ledger: transaction monitoring, shown */
.ledger { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: 0 24px 48px -32px rgba(23, 25, 24, 0.35); min-width: 0; }
.ledger-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 14px 18px; border-bottom: 1px solid var(--line); }
.ledger-head strong { font-size: 0.9rem; }
.live { display: inline-flex; align-items: center; gap: 8px; font-size: var(--step--1); color: var(--stone); font-weight: 600; }
.live::before { content: ""; width: 9px; height: 9px; border-radius: 50%; background: var(--aqua); box-shadow: 0 0 0 0 rgba(105, 210, 197, 0.6); animation: pulse 2.4s infinite; }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 rgba(105, 210, 197, 0.6); } 70% { box-shadow: 0 0 0 9px rgba(105, 210, 197, 0); } 100% { box-shadow: 0 0 0 0 rgba(105, 210, 197, 0); } }
.ledger ol { list-style: none; margin: 0; padding: 6px 0; }
.ledger li { display: grid; grid-template-columns: 4.6em minmax(0, 1fr) 3.4em 5.6em; gap: 10px; align-items: center; padding: 10px 18px; font-size: 0.9rem; }
.ledger li + li { border-top: 1px dashed var(--line); }
.ledger .t { font-family: var(--mono); font-size: 0.8rem; color: var(--stone); font-variant-numeric: tabular-nums; }
.ledger .what { min-width: 0; }
.ledger .who { font-family: var(--mono); font-size: 0.8rem; color: var(--stone); }
.ledger .act { display: block; overflow-wrap: anywhere; }
.ledger .risk { font-family: var(--mono); font-size: 0.85rem; text-align: right; font-variant-numeric: tabular-nums; font-weight: 600; }
.ledger-foot { padding: 12px 18px; border-top: 1px solid var(--line); font-size: var(--step--1); color: var(--stone); }
.flagged { background: linear-gradient(90deg, rgba(105, 210, 197, 0.16), transparent 70%); }

/* decision pills: text stays ink, the tint and dot carry the state */
.pill { display: inline-flex; align-items: center; justify-content: center; gap: 6px; padding: 3px 10px; border-radius: 999px; font-size: 0.78rem; font-weight: 700; color: var(--ink); white-space: nowrap; }
.pill::before { content: ""; width: 7px; height: 7px; border-radius: 50%; }
.pill-allow { background: var(--aqua-wash); } .pill-allow::before { background: var(--aqua-deep); }
.pill-alert { background: var(--amber-wash); } .pill-alert::before { background: #9A5B00; }
.pill-hold { background: var(--hold-wash); } .pill-hold::before { background: #B4540A; }
.pill-block { background: var(--red-wash); } .pill-block::before { background: #B42318; }

/* reasons (why-now) */
.trio { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 32px; }
.trio > div { display: grid; gap: 10px; align-content: start; border-top: 2px solid var(--ink); padding-top: 18px; }
.trio p { color: var(--ink-2); }

/* steps: a real sequence, so numbered */
.steps { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 20px; counter-reset: step; list-style: none; margin: 0; padding: 0; }
.steps li { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; display: grid; gap: 10px; align-content: start; counter-increment: step; min-width: 0; }
.steps li::before { content: counter(step); font-weight: 800; font-size: 1.6rem; color: var(--aqua-deep); line-height: 1; }
.steps p { color: var(--ink-2); font-size: 0.97rem; }

/* ink band */
.band { background: var(--ink); color: var(--on-ink); }
.band .eyebrow { color: var(--on-ink-muted); }
.band h2 { color: var(--on-ink); }
.band p { color: var(--on-ink-muted); }
.band a { color: var(--aqua); }
.stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 32px; margin-top: 40px; }
.stat { display: grid; gap: 6px; border-left: 2px solid var(--aqua); padding-left: 18px; }
.stat b { font-size: clamp(2.4rem, 1.8rem + 2.4vw, 3.4rem); font-weight: 800; letter-spacing: -0.03em; color: var(--aqua); line-height: 1; font-variant-numeric: tabular-nums; }
.stat span { color: var(--on-ink); font-weight: 600; }
.stat small { color: var(--on-ink-muted); font-size: var(--step--1); }

/* principles / feature grid */
.grid2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px 40px; }
.feature { display: grid; gap: 8px; align-content: start; min-width: 0; }
.feature p { color: var(--ink-2); }
.feature h3 { display: flex; gap: 10px; align-items: baseline; }
.feature h3::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--aqua); flex: none; transform: translateY(-2px); }

/* table */
.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius); background: var(--paper); }
table { border-collapse: collapse; width: 100%; font-size: 0.97rem; }
th, td { text-align: left; padding: 14px 18px; border-bottom: 1px solid var(--line); vertical-align: top; }
th { font-size: var(--step--1); letter-spacing: 0.08em; text-transform: uppercase; color: var(--stone); font-weight: 700; }
tr:last-child td { border-bottom: 0; }
td:first-child { color: var(--ink-2); }

/* layer detail */
.layers { display: grid; gap: 20px; }
.layer { display: grid; grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.4fr); gap: 24px 48px; padding: 28px 0; border-top: 1px solid var(--line); }
.layer:first-child { border-top: 0; }
.layer h3 { font-size: var(--step-2); }
.layer .tag { font-size: var(--step--1); font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; color: var(--aqua-deep); }
.layer ul { margin: 0; padding-left: 1.1em; display: grid; gap: 8px; color: var(--ink-2); }

/* risk profile card */
.profile { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; display: grid; gap: 18px; min-width: 0; }
.profile header { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; flex-wrap: wrap; }
.profile .meta { font-size: var(--step--1); color: var(--stone); }
.profile ul { margin: 0; padding-left: 1.1em; display: grid; gap: 6px; }
.controls { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px 20px; font-size: 0.92rem; }
.ctl { display: flex; gap: 8px; align-items: baseline; }
.ctl i { font-style: normal; font-weight: 800; width: 1.1em; flex: none; }
.ok i { color: var(--aqua-deep); } .bad i { color: #B42318; }
.ncsc { font-family: var(--mono); font-size: 0.72rem; color: var(--stone); border: 1px solid var(--line); border-radius: 4px; padding: 0 5px; white-space: nowrap; }

/* code */
pre { margin: 0; background: var(--ink); color: var(--on-ink); border-radius: var(--radius); padding: 22px; overflow-x: auto; font: 0.88rem/1.6 var(--mono); }
pre .c { color: var(--on-ink-muted); } pre .k { color: var(--aqua); }

/* founder */
.founder { display: grid; grid-template-columns: minmax(0, 300px) minmax(0, 1fr); gap: clamp(28px, 5vw, 64px); align-items: start; }
.portrait { aspect-ratio: 4 / 5; max-width: 100%; border-radius: var(--radius); background: var(--ink); position: relative; display: grid; place-items: center; overflow: hidden; }
.portrait b { color: var(--on-ink); font-size: 4.2rem; font-weight: 800; letter-spacing: -0.04em; }
.portrait::after { content: ""; position: absolute; width: 22%; aspect-ratio: 1; border-radius: 50%; background: var(--aqua); top: 9%; right: 9%; }
.timeline { list-style: none; margin: 0; padding: 0; display: grid; gap: 0; }
.timeline li { display: grid; grid-template-columns: 8.5em minmax(0, 1fr); gap: 20px; padding: 18px 0; border-top: 1px solid var(--line); }
.timeline .when { color: var(--stone); font-weight: 600; font-size: 0.92rem; font-variant-numeric: tabular-nums; }
.timeline p { color: var(--ink-2); font-size: 0.97rem; }
.facts { display: flex; flex-wrap: wrap; gap: 8px; }
.facts span { border: 1px solid var(--line); background: var(--paper); border-radius: 999px; padding: 5px 12px; font-size: 0.88rem; font-weight: 600; min-width: 0; max-width: 100%; }
.btn { max-width: 100%; text-align: center; }

/* empty state */
.empty { background: var(--paper); border: 1px dashed #CFC6B2; border-radius: var(--radius); padding: clamp(28px, 5vw, 56px); display: grid; gap: 14px; justify-items: start; }
.empty .dot { width: 18px; height: 18px; border-radius: 50%; background: var(--aqua); }

/* contact */
.contact { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: 32px 64px; align-items: center; }
.email-box { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; background: rgba(248, 244, 234, 0.06); border: 1px solid rgba(248, 244, 234, 0.18); border-radius: var(--radius); padding: 18px 20px; }
.email-box code { font: 700 1.15rem/1.3 var(--font); color: var(--on-ink); user-select: all; overflow-wrap: anywhere; }
.copy { margin-left: auto; }

/* footer */
.site-footer { background: var(--ink); color: var(--on-ink-muted); font-size: 0.92rem; }
.site-footer .wrap { display: grid; gap: 28px; padding-block: 56px calc(40px + env(safe-area-inset-bottom, 0px)); }
.foot-top { display: grid; grid-template-columns: minmax(0, 1.4fr) repeat(3, minmax(0, 1fr)); gap: 28px; }
.foot-top img { height: 48px; width: auto; }
.foot-top h4 { margin: 0 0 10px; color: var(--on-ink); font-size: 0.85rem; letter-spacing: 0.12em; text-transform: uppercase; }
.foot-top ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.site-footer a { color: var(--on-ink); text-decoration: none; }
.site-footer a:hover { color: var(--aqua); }
.legal { border-top: 1px solid rgba(248, 244, 234, 0.14); padding-top: 22px; font-size: var(--step--1); }

@media (max-width: 900px) {
  .hero .wrap, .contact, .founder, .layer { grid-template-columns: minmax(0, 1fr); }
  .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .trio, .stats { grid-template-columns: minmax(0, 1fr); }
  .foot-top { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .founder .portrait { max-width: 260px; }
}
@media (max-width: 560px) {
  .steps, .grid2, .controls, .foot-top { grid-template-columns: minmax(0, 1fr); }
  .ledger li { grid-template-columns: minmax(0, 1fr) auto auto; }
  .ledger .t { grid-column: 1 / -1; }
  .ledger .risk { text-align: left; }
  .timeline li { grid-template-columns: minmax(0, 1fr); gap: 4px; }
  .brand span { letter-spacing: 0.16em; }
}
@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; }
}

/* =====================================================================
   Interaction layer (v2): depth, motion and the live agent network.
   Everything below degrades to a complete static page.
   ===================================================================== */
:root { --line-strong: #CFC6B2; --shadow-deep: 0 1px 0 rgba(255,255,255,.8) inset, 0 30px 60px -30px rgba(23,25,24,.45), 0 12px 24px -16px rgba(23,25,24,.25); }

.site-header { transition: box-shadow .3s ease, background-color .3s ease; }
.site-header.scrolled { box-shadow: 0 10px 30px -22px rgba(23, 25, 24, 0.55); }
.btn { transition: transform .2s ease, background-color .2s ease, box-shadow .2s ease; }
.btn:hover { transform: translateY(-2px); box-shadow: 0 10px 20px -14px rgba(23, 25, 24, 0.6); }

/* reveal: elements are visible at rest; only their position eases in */
.will-reveal { transform: translateY(22px); transition: transform .8s cubic-bezier(.2, .7, .2, 1); }
.will-reveal.in { transform: none; }

/* 3D tilt with a soft aqua glare */
[data-tilt] { position: relative; transition: transform .35s cubic-bezier(.2, .7, .2, 1), box-shadow .35s ease; will-change: transform; }
[data-tilt]::after { content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none; opacity: 0; transition: opacity .3s ease;
  background: radial-gradient(260px circle at var(--gx, 50%) var(--gy, 50%), rgba(105, 210, 197, .22), transparent 60%); }
[data-tilt]:hover { box-shadow: var(--shadow-deep); }
[data-tilt]:hover::after { opacity: 1; }

/* pointer-following glow on ink bands */
.band { position: relative; overflow: hidden; }
.band::before { content: ""; position: absolute; inset: 0; pointer-events: none;
  background: radial-gradient(520px circle at var(--mx, 85%) var(--my, 15%), rgba(105, 210, 197, .17), transparent 62%); }
.band > .wrap { position: relative; }

/* hero: ambient aqua field behind the network */
.hero { position: relative; overflow: hidden; }
.hero::before { content: ""; position: absolute; width: 640px; height: 640px; right: -120px; top: -160px; border-radius: 50%;
  background: radial-gradient(circle, rgba(105, 210, 197, .30), rgba(105, 210, 197, 0) 65%); filter: blur(10px); pointer-events: none;
  animation: drift 16s ease-in-out infinite alternate; }
@keyframes drift { to { transform: translate(-60px, 50px) scale(1.08); } }
.hero .wrap { position: relative; }

/* the live network card */
.netcard { background: var(--paper); border: 1px solid var(--line); border-radius: 18px; box-shadow: var(--shadow-deep); position: relative; min-width: 0; overflow: hidden; }
.netcard .ledger-head { flex-wrap: wrap; }
.net-tools { display: flex; gap: 8px; flex-wrap: wrap; }
.chip-btn { font: 700 0.8rem/1 var(--font); border-radius: 999px; padding: 8px 12px; border: 1.5px solid var(--ink); background: var(--paper); color: var(--ink); cursor: pointer; transition: transform .2s ease, background-color .2s ease; }
.chip-btn:hover { transform: translateY(-1px); background: var(--ivory); }
.chip-btn.primary { background: var(--ink); color: var(--on-ink); }
.chip-btn.primary:hover { background: #2a2d2b; }
.chip-btn:disabled { opacity: .55; cursor: progress; transform: none; }
.net-stage { position: relative; border-bottom: 1px solid var(--line);
  background: radial-gradient(circle at 80% 12%, rgba(105, 210, 197, .14), transparent 45%), linear-gradient(var(--paper), #FBF8F0); }
#agent-network { display: block; width: 100%; height: auto; touch-action: pan-y; user-select: none; -webkit-user-select: none; }
#agent-network .node { cursor: grab; touch-action: none; transition: opacity .35s ease; }
#agent-network.dragging .node { cursor: grabbing; }
#agent-network .link { stroke: var(--line-strong); stroke-width: 1.4; transition: stroke .25s ease, opacity .35s ease; }
#agent-network .link-egress { stroke-dasharray: 3 4; }
#agent-network .link-watch { stroke: var(--aqua); stroke-width: 1.2; stroke-dasharray: 2 6; opacity: .7; }
#agent-network .link.is-active { stroke: var(--ink); }
#agent-network .link-watch.is-caught { stroke: var(--aqua-deep); stroke-width: 2.6; stroke-dasharray: none; opacity: 1; }
#agent-network .core { stroke-width: 1.5; }
#agent-network .node-agent .core { fill: var(--ink); stroke: var(--ink); }
#agent-network .node-tool .core { fill: var(--paper); stroke: var(--ink); }
#agent-network .node-dest .core { fill: var(--ivory); stroke: var(--stone); stroke-dasharray: 3 2; }
#agent-network .node-threat .core { fill: #F5D9D5; stroke: #B42318; }
#agent-network .node-monitor .core { fill: var(--aqua); stroke: none; transform-box: fill-box; transform-origin: center; animation: breathe 3.2s ease-in-out infinite; }
#agent-network .node-monitor.alarmed .core { animation-duration: .8s; }
@keyframes breathe { 50% { transform: scale(1.12); } }
#agent-network .ring { fill: none; stroke: transparent; stroke-width: 3; transform-box: fill-box; transform-origin: center; }
#agent-network .state-alert .ring { stroke: #9A5B00; }
#agent-network .state-hold .ring { stroke: #B4540A; animation: ringpulse 1s ease-in-out infinite; }
#agent-network .state-block .ring { stroke: #B42318; }
@keyframes ringpulse { 50% { transform: scale(1.25); opacity: .4; } }
#agent-network text { font: 600 11px var(--font); fill: var(--ink-2); paint-order: stroke; stroke: var(--paper); stroke-width: 3px; stroke-linejoin: round; }
#agent-network .node-agent text { font: 700 11px var(--mono); fill: var(--ink); }
#agent-network .node-monitor text { font-weight: 800; fill: var(--aqua-deep); }
#agent-network .node-threat text { fill: #B42318; font-weight: 800; }
#agent-network .is-dim { opacity: .3; }
#agent-network .is-hidden { opacity: 0; pointer-events: none; }
#agent-network .boundary { stroke: var(--line-strong); stroke-dasharray: 4 5; }
#agent-network .zone { font: 700 9.5px var(--font); letter-spacing: .12em; text-transform: uppercase; fill: var(--stone); stroke: none; }
#agent-network .pulse { filter: drop-shadow(0 0 4px rgba(105, 210, 197, .9)); }
.net-callout { position: absolute; transform: translate(-50%, calc(-100% - 22px)); background: var(--ink); color: var(--on-ink); border-radius: 10px;
  padding: 8px 12px; font-size: .78rem; display: grid; gap: 2px; pointer-events: none; opacity: 0; transition: opacity .3s ease, transform .3s ease; white-space: nowrap; z-index: 2; }
.net-callout b { color: var(--aqua); letter-spacing: .04em; }
.net-callout.show { opacity: 1; transform: translate(-50%, calc(-100% - 28px)); }
.net-hint { position: absolute; left: 14px; bottom: 10px; font-size: .72rem; color: var(--stone); font-weight: 600; pointer-events: none; }
.netcard .ledger { border: 0; border-radius: 0; box-shadow: none; background: transparent; }
.feed-in { animation: feedin .6s cubic-bezier(.2, .7, .2, 1); }
@keyframes feedin { from { transform: translateY(-8px); background-color: rgba(105, 210, 197, .22); } }

/* flowing line between the four steps */
.steps { position: relative; }
.steps::before { content: ""; position: absolute; left: 4%; right: 4%; top: 42px; height: 2px; z-index: 0;
  background: repeating-linear-gradient(90deg, var(--aqua) 0 10px, transparent 10px 20px); background-size: 40px 2px; animation: flow 1.1s linear infinite; }
.steps li { position: relative; z-index: 1; }
@keyframes flow { to { background-position: 40px 0; } }

/* product cards (about page) */
.products { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; }
.product { background: var(--paper); border: 1px solid var(--line); border-radius: 18px; padding: clamp(24px, 3vw, 36px); display: grid; gap: 14px; align-content: start; min-width: 0; text-decoration: none; color: var(--ink); }
.product h3 { font-size: var(--step-2); }
.product p { color: var(--ink-2); }
.product .tag { font-size: var(--step--1); font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--aqua-deep); }
.product .go { font-weight: 700; color: var(--aqua-deep); }
.product.next { background: transparent; border: 1.5px dashed var(--line-strong); }
.product.next .tag { color: var(--stone); }
.orbit { width: 64px; height: 64px; position: relative; }
.orbit::before { content: ""; position: absolute; inset: 14px; border-radius: 50%; background: var(--ink); }
.orbit::after { content: ""; position: absolute; width: 16px; height: 16px; border-radius: 50%; background: var(--aqua); top: 0; left: 24px; transform-origin: 8px 32px; animation: orbit 6s linear infinite; }
.product.next .orbit::before { background: transparent; border: 1.5px dashed var(--line-strong); }
@keyframes orbit { to { transform: rotate(360deg); } }

/* alert-budget explorer */
.explorer { background: var(--paper); border: 1px solid var(--line); border-radius: 18px; padding: clamp(18px, 3vw, 32px); display: grid; gap: 22px; box-shadow: var(--shadow-deep); }
.ex-controls { display: grid; gap: 10px; }
.ex-controls label { font-weight: 700; }
.ex-controls output { font-variant-numeric: tabular-nums; color: var(--aqua-deep); font-weight: 800; }
.ex-body { display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr); gap: 24px; align-items: center; }
#ex-chart { width: 100%; height: auto; display: block; cursor: ew-resize; touch-action: pan-y; }
#ex-chart text { font: 600 11px var(--font); fill: var(--stone); }
#ex-chart .lbl { font-weight: 800; font-size: 12px; }
.ex-readout { display: grid; gap: 14px; }
.ex-card { border-radius: 14px; padding: 16px 18px; display: grid; gap: 2px; border: 1px solid var(--line); }
.ex-card.am { background: var(--aqua-wash); border-color: rgba(22, 105, 95, .25); }
.ex-card span { font-weight: 700; font-size: .9rem; }
.ex-card b { font-size: 2.4rem; line-height: 1.05; font-weight: 800; letter-spacing: -.03em; font-variant-numeric: tabular-nums; }
.ex-card.am b { color: var(--aqua-deep); }
.ex-card small { color: var(--ink-2); }
.ex-card em { font-style: normal; font-size: .85rem; color: var(--stone); font-variant-numeric: tabular-nums; }
input[type="range"] { width: 100%; accent-color: var(--aqua-deep); height: 28px; }

@media (max-width: 900px) {
  .products, .ex-body { grid-template-columns: minmax(0, 1fr); }
  .steps::before { display: none; }
}
@media (max-width: 560px) {
  #agent-network .node-tool text, #agent-network .node-dest text { display: none; }
  .net-hint { display: none; }
}

/* illustration label and founder photo (pre-funding copy) */
.illus { display: inline-block; margin-left: 8px; padding: 2px 8px; border-radius: 999px; border: 1px solid var(--line-strong);
  font-size: .7rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--stone); vertical-align: middle; }
.portrait img { width: 100%; height: 100%; object-fit: cover; display: block; }
.portrait::after { z-index: 1; }
