/* =========================================================
   Directory Agent landing page
   Signal orange · ink · bone. Condensed display, mono labels.
   ========================================================= */

:root {
  --signal: #ff5a1f;
  --signal-hi: #ff7a45;
  --signal-deep: #d9430c;
  --ink: #0b0b0a;
  --ink-2: #131311;
  --ink-3: #1c1b18;
  --ink-4: #2a2925;
  --bone: #efebe2;
  --bone-2: #e3ded2;
  --mute: #8d887c;
  --mute-dark: #6f6b61;
  --line-d: rgba(239, 235, 226, .12);
  --line-l: rgba(11, 11, 10, .14);

  /* state colours (dark surfaces) */
  --s-pub: #c4f24a;
  --s-pend: #ffc23d;
  --s-you: #ff5a1f;
  --s-rej: #5b5850;

  --seba-green: #0fa347;
  --seba-ink: #0a1014;
  --seba-paper: #f6f8f7;

  --f-sans: "Archivo", ui-sans-serif, system-ui, sans-serif;
  --f-mono: "JetBrains Mono", ui-monospace, "SFMono-Regular", Menlo, monospace;

  --wrap: 1240px;
  --gutter: clamp(16px, 4vw, 48px);
  --ease: cubic-bezier(.2, .7, .1, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--ink);
  color: var(--bone);
  font-family: var(--f-sans);
  font-size: 17px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img, canvas, svg { display: block; max-width: 100%; }
a { color: inherit; }
code, kbd, pre { font-family: var(--f-mono); }
code { font-size: .86em; background: rgba(127,127,127,.16); padding: .1em .35em; border-radius: 3px; }
button { font: inherit; color: inherit; cursor: pointer; }
.defs { position: absolute; width: 0; height: 0; }
.mono { font-family: var(--f-mono); font-size: 12px; letter-spacing: .08em; }
.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }
::selection { background: var(--signal); color: var(--ink); }
:focus-visible { outline: 2px solid var(--signal); outline-offset: 3px; }

/* ---------- type ---------- */
.display, .display-2 {
  font-family: var(--f-sans);
  font-stretch: 62%;
  font-weight: 560;
  text-transform: uppercase;
  letter-spacing: -.01em;
  line-height: .86;
  margin: 0;
}
.display { font-size: clamp(40px, 6.5vw, 108px); }
.display .line { display: block; }
.display .line-outline {
  color: transparent;
  -webkit-text-stroke: 1.5px var(--ink);
}
.display-2 { font-size: clamp(44px, 6vw, 92px); }
.eyebrow {
  font-family: var(--f-mono);
  font-size: 12px;
  letter-spacing: .14em;
  color: var(--signal);
  margin: 0 0 22px;
}
.eyebrow-ink { color: var(--ink); }
.sec-head { margin-bottom: clamp(40px, 6vw, 72px); max-width: 860px; }
.sec-head-row { max-width: none; display: grid; grid-template-columns: 1.1fr .9fr; gap: 40px; align-items: end; }
.sec-lede { font-size: clamp(17px, 1.4vw, 19px); color: var(--mute); max-width: 620px; margin: 26px 0 0; }
.sec-head-row .sec-lede { margin: 0; }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--f-mono); font-size: 13px; font-weight: 500;
  letter-spacing: .08em; text-transform: uppercase; text-decoration: none;
  padding: 14px 20px; border: 1.5px solid currentColor; border-radius: 2px;
  transition: transform .2s var(--ease), background .2s, color .2s;
  white-space: nowrap;
}
.btn:hover { transform: translate(-2px, -2px); }
.btn-ink { background: var(--ink); color: var(--bone); border-color: var(--ink); box-shadow: 0 0 0 0 var(--ink); }
.btn-ink:hover { box-shadow: 4px 4px 0 0 rgba(11,11,10,.35); }
.btn-ghost { background: transparent; color: var(--ink); border-color: var(--ink); }
.btn-ghost:hover { background: var(--ink); color: var(--bone); }
.btn-signal { background: var(--signal); color: var(--ink); border-color: var(--signal); }
.btn-signal:hover { box-shadow: 4px 4px 0 0 var(--bone); }

/* ---------- nav ---------- */
.nav {
  position: fixed; inset: 0 0 auto 0; z-index: 50;
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
  padding: 14px var(--gutter);
  color: var(--ink);
  transition: background .3s, color .3s, border-color .3s;
  border-bottom: 1px solid transparent;
}
.nav.is-scrolled { background: var(--signal); border-bottom-color: rgba(11,11,10,.25); }
.nav.is-dark { background: rgba(11,11,10,.86); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); color: var(--bone); border-bottom-color: var(--line-d); }
.nav.is-dark .btn-ink { background: var(--signal); border-color: var(--signal); color: var(--ink); }
.wordmark { display: inline-flex; align-items: center; gap: 4px; text-decoration: none; font-stretch: 62%; font-weight: 700; font-size: 22px; letter-spacing: .02em; }
.wm-cursor { width: 10px; height: 18px; background: currentColor; display: inline-block; animation: blink 1.05s steps(1) infinite; }
.nav-links { display: flex; gap: clamp(16px, 2.6vw, 36px); font-family: var(--f-mono); font-size: 12px; letter-spacing: .12em; text-transform: uppercase; }
.nav-links a { text-decoration: none; position: relative; }
.nav-links a::after { content: ""; position: absolute; left: 0; right: 100%; bottom: -4px; height: 1.5px; background: currentColor; transition: right .25s var(--ease); }
.nav-links a:hover::after { right: 0; }
.nav-cta { padding: 10px 14px; font-size: 12px; }

@keyframes blink { 50% { opacity: 0; } }

/* ---------- hero ---------- */
.hero {
  position: relative;
  background: var(--signal);
  color: var(--ink);
  padding: 112px 0 0;
  overflow: hidden;
  isolation: isolate;
}
.hero-grain {
  position: absolute; inset: 0; z-index: -1; pointer-events: none; opacity: .22; mix-blend-mode: multiply;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='220' height='220'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='2' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 0  0 0 0 0 0  0 0 0 0 0  0 0 0 .7 0'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>");
}
.hero::before { /* faint engineering grid */
  content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background-image:
    linear-gradient(to right, rgba(11,11,10,.08) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(11,11,10,.08) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: linear-gradient(to bottom, #000 0%, #000 70%, transparent 100%);
}
.hero-inner {
  max-width: 1440px; margin: 0 auto; padding: 0 var(--gutter);
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.08fr); gap: clamp(28px, 4vw, 64px);
  align-items: center;
  min-height: calc(100svh - 112px - 58px);
  padding-bottom: 48px;
}
.kicker { font-family: var(--f-mono); font-size: 12px; letter-spacing: .14em; margin: 0 0 28px; display: flex; align-items: center; gap: 10px; }
.dot-live { width: 8px; height: 8px; border-radius: 50%; background: currentColor; display: inline-block; animation: pulse 1.6s ease-in-out infinite; }
@keyframes pulse { 0%,100% { opacity: 1; transform: scale(1); } 50% { opacity: .35; transform: scale(.7); } }
.lede { font-size: clamp(17px, 1.35vw, 20px); max-width: 540px; margin: 30px 0 0; line-height: 1.5; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 30px; }

/* mini terminal */
.term { font-family: var(--f-mono); font-size: 13px; }
.term-mini { margin-top: 34px; max-width: 560px; background: var(--ink); color: var(--bone); border-radius: 3px; box-shadow: 6px 6px 0 rgba(11,11,10,.25); }
.term-tabs { display: flex; border-bottom: 1px solid var(--line-d); overflow-x: auto; scrollbar-width: none; }
.term-tabs::-webkit-scrollbar { display: none; }
.term-tabs button { background: none; border: 0; padding: 10px 14px; font-size: 11px; letter-spacing: .1em; text-transform: uppercase; color: var(--mute); border-right: 1px solid var(--line-d); white-space: nowrap; }
.term-tabs button[aria-selected="true"] { color: var(--bone); background: var(--ink-3); box-shadow: inset 0 -2px 0 var(--signal); }
.term-body { display: grid; grid-template-columns: auto 1fr auto; gap: 10px; padding: 14px; align-items: start; line-height: 1.55; }
.prompt { color: var(--signal); }
.term-line { min-height: 3.1em; }
.term-line::after { content: "▍"; color: var(--signal); animation: blink 1s steps(1) infinite; }
.copy { background: none; border: 1px solid var(--line-d); color: var(--mute); font-size: 10px; letter-spacing: .1em; padding: 4px 8px; border-radius: 2px; }
.copy:hover { color: var(--bone); border-color: var(--bone); }

/* matrix */
.hero-matrix { margin: 0; position: relative; }
.matrix-head, .matrix-legend {
  display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap;
  font-family: var(--f-mono); font-size: 11px; letter-spacing: .1em; text-transform: uppercase;
}
.matrix-head { padding: 0 0 10px; border-bottom: 1.5px solid var(--ink); margin-bottom: 14px; }
.matrix-legend { padding: 12px 0 0; border-top: 1.5px solid var(--ink); margin-top: 14px; justify-content: flex-start; gap: 22px; }
.matrix-legend b { font-weight: 700; margin-left: 4px; font-variant-numeric: tabular-nums; }
.lg { display: inline-block; width: 10px; height: 10px; margin-right: 6px; vertical-align: -1px; }
.lg-pub { background: var(--ink); }
.lg-pend { background: repeating-linear-gradient(45deg, var(--ink) 0 1.5px, transparent 1.5px 3.5px); outline: 1px solid var(--ink); outline-offset: -1px; }
.lg-you { border: 1.5px solid var(--ink); background: var(--bone); }
.lg-rej { width: 4px; height: 4px; background: var(--ink); margin: 0 9px 2px 3px; }
#matrix { width: 100%; height: auto; aspect-ratio: 920 / 640; image-rendering: pixelated; }
.matrix-tag {
  position: absolute; pointer-events: none; transform: translate(14px, -50%);
  display: flex; font-family: var(--f-mono); font-size: 11px; letter-spacing: .06em; white-space: nowrap;
  box-shadow: 3px 3px 0 rgba(11,11,10,.3);
  transition: left .35s var(--ease), top .35s var(--ease);
}
.matrix-tag[hidden] { display: none; }
.matrix-tag .t-dom { background: var(--ink); color: var(--bone); padding: 5px 8px; }
.matrix-tag .t-state { background: var(--bone); color: var(--ink); padding: 5px 8px; font-weight: 700; }

/* ticker */
.ticker { background: var(--ink); color: var(--bone); overflow: hidden; border-top: 1.5px solid var(--ink); }
.ticker-track { display: flex; gap: 28px; width: max-content; padding: 17px 0; font-family: var(--f-mono); font-size: 13px; letter-spacing: .12em; animation: tick 48s linear infinite; }
.ticker-track span:nth-child(even) { color: var(--signal); }
@keyframes tick { to { transform: translateX(-50%); } }

/* ---------- backlinks ---------- */
.links { background: var(--bone); color: var(--ink); padding: clamp(88px, 11vw, 150px) 0; position: relative; overflow: hidden; }
.links-inner { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: clamp(32px, 5vw, 72px); align-items: center; }
.links .sec-head, .links-copy { margin: 0; }
.links .sec-lede { color: #4a4841; margin-top: 26px; }
.eyebrow-deep { color: var(--signal-deep); }
.link-stats { display: grid; grid-template-columns: repeat(3, 1fr); border-top: 1.5px solid var(--ink); margin-top: 36px; }
.link-stats > div { padding: 16px 14px 4px 0; }
.link-stats > div + div { padding-left: 14px; border-left: 1px solid var(--line-l); }
.link-stats b { display: block; font-stretch: 62%; font-weight: 600; font-size: clamp(40px, 4.2vw, 60px); line-height: .9; font-variant-numeric: tabular-nums; }
.link-stats span { display: block; font-family: var(--f-mono); font-size: 11px; letter-spacing: .04em; color: #5a574f; margin-top: 8px; }
.link-note { font-family: var(--f-mono); font-size: 11.5px; color: #6f6b61; margin: 22px 0 0; max-width: 520px; }

.graph { margin: 0; border: 1.5px solid var(--ink); background:
  linear-gradient(to right, rgba(11,11,10,.05) 1px, transparent 1px) 0 0 / 30px 30px,
  linear-gradient(to bottom, rgba(11,11,10,.05) 1px, transparent 1px) 0 0 / 30px 30px, #f6f3ec; }
.graph-head { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 8px 16px; padding: 12px 14px; border-bottom: 1.5px solid var(--ink); font-family: var(--f-mono); font-size: 11px; letter-spacing: .08em; }
.graph-head b { font-variant-numeric: tabular-nums; margin-right: 10px; }
.lk { display: inline-block; width: 16px; height: 0; border-top: 2px solid var(--ink); vertical-align: 3px; margin-right: 6px; }
.lk-do { border-color: var(--signal-deep); }
.lk-no { border-top-style: dashed; border-color: #9b968a; }
.graph-svg { width: 100%; height: auto; display: block; }
.g-orbit { fill: none; stroke: rgba(11,11,10,.12); stroke-dasharray: 2 5; }
.g-line { stroke: transparent; stroke-width: 2; transition: stroke-dashoffset .65s cubic-bezier(.5,0,.2,1); }
.g-line.drawn.is-do { stroke: var(--signal-deep); }
.g-line.drawn.is-no { stroke: #9b968a; }
.g-line.dashed { stroke-dasharray: 5 5 !important; }
.g-dot { fill: var(--signal); opacity: 0; }
.g-dot.on { opacity: 1; }
.g-node { opacity: .38; transition: opacity .4s; }
.g-node.lit { opacity: 1; }
.g-box { fill: #fff; stroke: var(--ink); stroke-width: 1.2; }
.g-dom { font-family: var(--f-mono); font-size: 12px; fill: var(--ink); }
.g-dr-box { fill: var(--ink); }
.g-dr-txt { font-family: var(--f-mono); font-size: 12px; font-weight: 700; fill: var(--bone); }
.g-node.lit .g-dr-box { fill: var(--ink); }
.g-cbox { fill: var(--ink); }
.g-clabel { font-family: var(--f-mono); font-size: 9px; letter-spacing: .14em; fill: var(--signal); }
.g-cdom { font-family: var(--f-mono); font-size: 13px; font-weight: 700; fill: var(--bone); }
.g-ring { fill: none; stroke: var(--signal); stroke-width: 2; opacity: 0; transform-box: fill-box; transform-origin: center; }
.g-ring.pulse { animation: gRing .8s ease-out; }
@keyframes gRing { 0% { opacity: .9; transform: scale(.7); } 100% { opacity: 0; transform: scale(1.35); } }
.ledger { list-style: none; margin: 0; padding: 0 14px 4px; border-top: 1.5px solid var(--ink); min-height: 118px; font-family: var(--f-mono); font-size: 12px; }
.ledger li { display: grid; grid-template-columns: 14px 1fr auto auto auto; gap: 12px; align-items: center; padding: 9px 0; border-bottom: 1px solid var(--line-l); opacity: 0; transform: translateY(-6px); transition: all .35s var(--ease); }
.ledger li:last-child { border-bottom: 0; }
.ledger li.on { opacity: 1; transform: none; }
.lg-plus { color: var(--signal-deep); font-weight: 700; }
.lg-dom { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.lg-dr { font-weight: 700; }
.lg-type.do { color: var(--signal-deep); }
.lg-type.no { color: #8d887c; }
.lg-st { background: var(--s-pub); padding: 2px 6px; font-size: 10px; font-weight: 700; }
.graph-cap { font-family: var(--f-mono); font-size: 10.5px; color: #6f6b61; padding: 10px 14px; border-top: 1px solid var(--line-l); }

/* ---------- AI visibility ---------- */
.ai { background: var(--ink-2); padding: clamp(88px, 11vw, 150px) 0; border-bottom: 1px solid var(--line-d); position: relative; overflow: hidden; }
.ai::before { content: ""; position: absolute; inset: 0; pointer-events: none; background: radial-gradient(ellipse 60% 50% at 80% 50%, rgba(255,90,31,.12), transparent 70%); }
.ai-inner { position: relative; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(32px, 5vw, 72px); align-items: center; }
.ai .ticks { margin-top: 28px; color: #cdc8bc; }
.chat { margin: 0; background: var(--bone); color: var(--ink); border-radius: 4px; overflow: hidden; box-shadow: 0 30px 70px -30px rgba(255,90,31,.45), 0 0 0 1px rgba(255,255,255,.06); }
.chat-body { padding: 18px; display: grid; grid-template-columns: minmax(0, 1fr); gap: 14px; min-height: 430px; align-content: start; }
.msg { max-width: 92%; font-size: 15px; line-height: 1.5; }
.msg-user { justify-self: end; background: var(--ink); color: var(--bone); padding: 10px 14px; border-radius: 14px 14px 2px 14px; min-height: 44px; }
.msg-user span:empty::after { content: "▍"; color: var(--signal); animation: blink 1s steps(1) infinite; }
.msg-ai { justify-self: start; width: 100%; max-width: 100%; }
.crawl-head { font-family: var(--f-mono); font-size: 11px; letter-spacing: .08em; color: var(--mute-dark); margin: 0 0 8px; text-transform: uppercase; }
.crawl-head:not(:empty)::before { content: ""; display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: var(--signal); margin-right: 8px; animation: pulse 1.2s ease-in-out infinite; }
.crawl-head.done::before { background: #2f7a12; animation: none; }
.crawl { list-style: none; margin: 0 0 14px; padding: 0; display: grid; grid-template-columns: minmax(0, 1fr); gap: 4px; font-family: var(--f-mono); font-size: 11.5px; }
.crawl li { display: flex; justify-content: space-between; gap: 10px; padding: 6px 8px; background: #fff; border: 1px solid var(--line-l); opacity: 0; transform: translateX(-6px); transition: all .3s var(--ease); }
.crawl li.on { opacity: 1; transform: none; }
.cr-dom { min-width: 0; max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cr-dom em { font-style: normal; color: var(--mute-dark); }
.cr-res { white-space: nowrap; font-weight: 700; }
.cr-res.hit { color: var(--signal-deep); }
.cr-res.miss { color: var(--mute-dark); font-weight: 400; }
.ai-answer { margin: 0; font-size: 15px; min-height: 4.5em; }
.sources { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 10px; }
.src { font-family: var(--f-mono); font-size: 10.5px; padding: 3px 8px; border: 1px solid var(--ink); border-radius: 99px; animation: swapIn .4s var(--ease); }
.chat-cap { font-family: var(--f-mono); font-size: 10.5px; color: var(--mute-dark); padding: 10px 18px; border-top: 1px solid var(--line-l); }

/* ---------- RUN / pipeline ---------- */
.run { background: var(--ink); padding: clamp(88px, 11vw, 150px) 0; position: relative; }
.run::before {
  content: ""; position: absolute; inset: 0; pointer-events: none; opacity: .5;
  background-image: radial-gradient(rgba(239,235,226,.09) 1px, transparent 1px);
  background-size: 22px 22px;
  mask-image: radial-gradient(ellipse at 50% 40%, #000 20%, transparent 75%);
}
.run .wrap { position: relative; }

.pipeline { border: 1px solid var(--line-d); background: linear-gradient(180deg, var(--ink-2), var(--ink)); border-radius: 4px; padding: 28px clamp(14px, 2.4vw, 32px) 22px; position: relative; overflow: hidden; }
.rail { position: relative; padding: 0 0 128px; }
.lane { position: absolute; left: 0; right: 0; top: 118px; height: 1px; background-image: linear-gradient(90deg, var(--ink-4) 0 6px, transparent 6px 12px); background-size: 12px 1px; }
.lane-tick { position: absolute; top: 92px; width: 1px; height: 26px; background: var(--ink-4); }
.lane-tick.is-hit { background: var(--signal); box-shadow: 0 0 8px var(--signal); }
.rail-line { position: absolute; left: 4%; right: 4%; top: 27px; height: 2px; background: var(--ink-4); }
.rail-fill { position: absolute; inset: 0 auto 0 0; width: 0; background: var(--signal); box-shadow: 0 0 12px var(--signal); transition: width .6s var(--ease); }
.stages { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(8, 1fr); position: relative; z-index: 2; }
.stage-btn {
  display: flex; flex-direction: column; align-items: center; gap: 10px;
  background: none; border: 0; width: 100%; padding: 0; color: var(--mute);
  font-family: var(--f-mono); font-size: 11px; letter-spacing: .12em; text-transform: uppercase;
}
.stage-node {
  width: 56px; height: 56px; display: grid; place-items: center;
  background: var(--ink-2); border: 1.5px solid var(--ink-4); border-radius: 50%;
  font-size: 13px; font-weight: 700; color: var(--mute); position: relative;
  transition: border-color .3s, color .3s, background .3s, transform .3s var(--ease);
}
.stage-node::after { /* radar ring */
  content: ""; position: absolute; inset: -8px; border-radius: 50%; border: 1px solid var(--signal); opacity: 0; transform: scale(.8);
}
.stage-btn:hover .stage-node { border-color: var(--bone); color: var(--bone); }
.stage-btn.is-done .stage-node { border-color: var(--signal); color: var(--signal); }
.stage-btn.is-active { color: var(--bone); }
.stage-btn.is-active .stage-node { background: var(--signal); border-color: var(--signal); color: var(--ink); transform: scale(1.08); }
.stage-btn.is-active .stage-node::after { animation: ring 1.8s ease-out infinite; }
.stage-btn.is-hit .stage-node { animation: hit .35s ease-out; }
@keyframes ring { 0% { opacity: .9; transform: scale(.85); } 100% { opacity: 0; transform: scale(1.6); } }
@keyframes hit { 50% { box-shadow: 0 0 0 6px rgba(255,90,31,.25); } }
.stage-label { white-space: nowrap; }

.packets { position: absolute; inset: 0; pointer-events: none; z-index: 3; }
.pkt {
  position: absolute; left: 0; top: 0; will-change: transform;
  font-family: var(--f-mono); font-size: 10.5px; letter-spacing: .04em; white-space: nowrap;
  padding: 3px 7px 3px 14px; border-radius: 2px; color: var(--bone);
  background: rgba(28,27,24,.92); border: 1px solid var(--ink-4);
}
.pkt::before { content: ""; position: absolute; left: 5px; top: 50%; width: 5px; height: 5px; margin-top: -2.5px; border-radius: 50%; background: var(--bone); }
.pkt.st-rej { color: var(--mute); border-color: var(--ink-4); text-decoration: line-through; }
.pkt.st-rej::before { background: var(--s-rej); }
.pkt.st-you { border-color: var(--s-you); color: var(--s-you); }
.pkt.st-you::before { background: var(--s-you); }
.pkt.st-pend { border-color: var(--s-pend); color: var(--s-pend); }
.pkt.st-pend::before { background: var(--s-pend); }
.pkt.st-pub { border-color: var(--s-pub); color: var(--s-pub); }
.pkt.st-pub::before { background: var(--s-pub); }
.pkt.is-dot { padding: 0; width: 8px; height: 8px; border-radius: 50%; font-size: 0; background: var(--bone); border: 0; }
.pkt.is-dot::before { display: none; }
.pkt.is-dot.st-you { background: var(--s-you); } .pkt.is-dot.st-pend { background: var(--s-pend); } .pkt.is-dot.st-pub { background: var(--s-pub); } .pkt.is-dot.st-rej { background: var(--s-rej); }

.bins { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; border-top: 1px dashed var(--line-d); padding-top: 16px; }
.bin { display: flex; justify-content: space-between; align-items: baseline; gap: 8px; padding: 10px 12px; background: var(--ink-3); border-left: 3px solid; font-family: var(--f-mono); font-size: 11px; letter-spacing: .08em; text-transform: uppercase; color: var(--mute); }
.bin b { font-family: var(--f-sans); font-stretch: 62%; font-size: 30px; line-height: 1; color: var(--bone); font-variant-numeric: tabular-nums; }
.bin-rej { border-color: var(--s-rej); } .bin-you { border-color: var(--s-you); } .bin-pend { border-color: var(--s-pend); } .bin-pub { border-color: var(--s-pub); }
.bin.bump b { animation: bump .4s var(--ease); }
@keyframes bump { 40% { transform: translateY(-4px); color: var(--signal); } }

/* inspector */
.inspector { display: grid; grid-template-columns: minmax(0, .82fr) minmax(0, 1.18fr); gap: clamp(24px, 4vw, 56px); margin-top: 28px; }
.insp-copy { padding-top: 6px; }
.insp-meta { display: flex; align-items: center; gap: 14px; font-family: var(--f-mono); font-size: 12px; color: var(--mute); }
.insp-num { color: var(--signal); font-weight: 700; letter-spacing: .1em; }
.insp-progress { flex: 1; height: 2px; background: var(--ink-4); position: relative; overflow: hidden; }
.insp-progress span { position: absolute; inset: 0 auto 0 0; width: 0; background: var(--signal); }
.insp-play { background: none; border: 1px solid var(--line-d); color: var(--mute); font-family: var(--f-mono); font-size: 10px; letter-spacing: .12em; padding: 5px 9px; border-radius: 2px; }
.insp-play:hover { color: var(--bone); border-color: var(--bone); }
.insp-title { font-stretch: 62%; font-weight: 560; text-transform: uppercase; font-size: clamp(48px, 5.4vw, 80px); line-height: .9; margin: 22px 0 26px; }
.insp-title.swap { animation: swapIn .5s var(--ease); }
@keyframes swapIn { from { opacity: 0; transform: translateY(14px); filter: blur(4px); } }
.insp-dl { margin: 0; display: grid; gap: 18px; }
.insp-dl > div { display: grid; grid-template-columns: 78px 1fr; gap: 14px; border-top: 1px solid var(--line-d); padding-top: 14px; }
.insp-dl dt { font-family: var(--f-mono); font-size: 11px; letter-spacing: .14em; color: var(--signal); padding-top: 3px; }
.insp-dl dd { margin: 0; color: #cdc8bc; font-size: 16px; }
.insp-dl dd code { color: var(--bone); }

.insp-stage { display: grid; gap: 12px; align-content: start; min-width: 0; }
.window { background: var(--bone); color: var(--ink); border-radius: 4px; overflow: hidden; box-shadow: 0 30px 60px -30px rgba(255,90,31,.35), 0 0 0 1px rgba(255,255,255,.06); }
.win-bar { display: flex; align-items: center; gap: 6px; padding: 9px 12px; background: var(--bone-2); border-bottom: 1px solid var(--line-l); font-family: var(--f-mono); font-size: 11px; color: var(--mute-dark); }
.win-bar i { width: 9px; height: 9px; border-radius: 50%; background: rgba(11,11,10,.18); }
.win-bar span { margin-left: 8px; }
.win-body { height: 330px; padding: 18px; position: relative; overflow: hidden; font-size: 14px; }
.log {
  margin: 0; height: 132px; overflow: hidden; background: #070706; border: 1px solid var(--line-d); border-radius: 4px;
  padding: 12px 14px; font-size: 12px; line-height: 1.65; color: #a9a497; white-space: pre-wrap; word-break: break-word;
  display: flex; flex-direction: column; justify-content: flex-end;
}
.log .l-cmd { color: var(--bone); }
.log .l-cmd::before { content: "$ "; color: var(--signal); }
.log .l-ok { color: var(--s-pub); }
.log .l-warn { color: var(--s-pend); }
.log .l-stop { color: var(--s-you); }

/* ---------- stage visualisations (light window) ---------- */
.v-mono { font-family: var(--f-mono); font-size: 12.5px; line-height: 1.7; }
.v-json { white-space: pre; color: #3b3a35; }
.v-json .k { color: #a2360a; } .v-json .s { color: #1e5e3a; }
.v-caret::after { content: "▍"; color: var(--signal); animation: blink 1s steps(1) infinite; }
.v-checks { position: absolute; right: 16px; bottom: 16px; display: grid; gap: 6px; }
.chip { display: inline-flex; align-items: center; gap: 8px; font-family: var(--f-mono); font-size: 11px; letter-spacing: .04em; padding: 5px 9px; border-radius: 2px; background: var(--ink); color: var(--bone); opacity: 0; transform: translateY(6px); transition: opacity .3s, transform .3s var(--ease); }
.chip.on { opacity: 1; transform: none; }
.chip .c-ok { color: var(--s-pub); } .chip .c-warn { color: var(--s-pend); } .chip .c-stop { color: var(--s-you); }
.chip-light { background: #fff; color: var(--ink); border: 1px solid var(--line-l); }
.chip-light .c-ok { color: #2f7a12; } .chip-light .c-warn { color: #a36a00; } .chip-light .c-stop { color: var(--signal-deep); }

.v-search { display: grid; gap: 12px; }
.v-q { display: flex; align-items: center; gap: 10px; border: 1.5px solid var(--ink); padding: 9px 12px; font-family: var(--f-mono); font-size: 13px; background: #fff; }
.v-q::before { content: "⌕"; font-size: 16px; }
.v-results { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; }
.v-res { font-family: var(--f-mono); font-size: 11px; padding: 6px 8px; background: #fff; border: 1px solid var(--line-l); opacity: 0; transform: scale(.96); transition: all .3s var(--ease); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.v-res.on { opacity: 1; transform: none; }
.v-res.dup { text-decoration: line-through; color: var(--mute-dark); background: transparent; }
.v-counters { display: flex; gap: 22px; font-family: var(--f-mono); font-size: 11px; letter-spacing: .08em; text-transform: uppercase; color: var(--mute-dark); border-top: 1px solid var(--line-l); padding-top: 10px; }
.v-counters b { display: block; font-family: var(--f-sans); font-stretch: 62%; font-size: 34px; line-height: 1; color: var(--ink); font-variant-numeric: tabular-nums; }

.v-score-head { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 14px; }
.v-score-head .dom { font-family: var(--f-mono); font-size: 13px; }
.v-total { font-stretch: 62%; font-weight: 600; font-size: 64px; line-height: .8; font-variant-numeric: tabular-nums; }
.v-total small { font-size: 22px; color: var(--mute-dark); }
.v-bars { display: grid; gap: 9px; }
.v-bar { display: grid; grid-template-columns: 92px 1fr 46px; gap: 10px; align-items: center; font-family: var(--f-mono); font-size: 11px; text-transform: uppercase; letter-spacing: .06em; }
.v-bar .track { height: 12px; background: repeating-linear-gradient(90deg, rgba(11,11,10,.1) 0 1px, transparent 1px 8px); border: 1px solid var(--line-l); position: relative; }
.v-bar .fill { position: absolute; inset: 0 auto 0 0; width: 0; background: var(--ink); transition: width .7s var(--ease); }
.v-bar .val { text-align: right; font-variant-numeric: tabular-nums; }
.v-tier { position: absolute; right: 18px; bottom: 16px; font-family: var(--f-mono); font-size: 12px; display: flex; gap: 6px; }
.v-tier span { padding: 5px 9px; border: 1px solid var(--line-l); color: var(--mute-dark); transition: all .3s; }
.v-tier span.on { background: var(--signal); color: var(--ink); border-color: var(--signal); font-weight: 700; }

.v-browser { position: absolute; inset: 14px 14px 14px 14px; border: 1px solid var(--line-l); background: #fff; display: grid; grid-template-rows: auto 1fr; }
.v-url { font-family: var(--f-mono); font-size: 11px; padding: 6px 10px; border-bottom: 1px solid var(--line-l); color: var(--mute-dark); display: flex; gap: 8px; }
.v-url b { color: var(--ink); font-weight: 500; }
.v-page { position: relative; padding: 14px 16px; display: grid; gap: 9px; align-content: start; }
.v-page h4 { margin: 0 0 4px; font-stretch: 80%; font-size: 20px; text-transform: uppercase; }
.v-field { display: grid; gap: 3px; }
.v-field label { font-family: var(--f-mono); font-size: 10px; letter-spacing: .08em; color: var(--mute-dark); text-transform: uppercase; }
.v-input { height: 26px; border: 1px solid rgba(11,11,10,.25); background: #faf9f6; font-family: var(--f-mono); font-size: 11.5px; padding: 4px 8px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; transition: border-color .2s, background .2s; }
.v-input.tall { height: 46px; white-space: normal; line-height: 1.45; }
.v-input.active { border-color: var(--signal); background: #fff; box-shadow: 0 0 0 3px rgba(255,90,31,.18); }
.v-input.flag { border-color: var(--signal); }
.v-row { display: flex; align-items: center; gap: 8px; font-family: var(--f-mono); font-size: 11px; }
.v-box { width: 13px; height: 13px; border: 1.5px solid var(--ink); display: grid; place-items: center; font-size: 10px; line-height: 1; }
.v-submit { justify-self: start; background: var(--ink); color: var(--bone); font-family: var(--f-mono); font-size: 11px; letter-spacing: .1em; padding: 7px 14px; transition: transform .1s, background .2s; }
.v-submit.press { transform: scale(.94); background: var(--signal); color: var(--ink); }
.v-scan { position: absolute; left: 0; right: 0; height: 40px; top: -40px; background: linear-gradient(180deg, transparent, rgba(255,90,31,.25)); border-bottom: 2px solid var(--signal); pointer-events: none; }
.v-page.has-flags { padding-right: calc(16px + 44%); }
.v-flags { position: absolute; right: 10px; top: 10px; display: grid; gap: 5px; justify-items: end; z-index: 2; }
.v-cursor { position: absolute; width: 14px; height: 14px; left: 0; top: 0; z-index: 4; pointer-events: none; transition: transform .6s var(--ease); }
.v-cursor::before { content: ""; position: absolute; inset: 0; background: var(--ink); clip-path: polygon(0 0, 0 100%, 30% 72%, 52% 100%, 64% 94%, 44% 66%, 82% 66%); }

.v-write { display: grid; gap: 12px; }
.v-src { font-size: 12.5px; color: var(--mute-dark); border-left: 3px solid var(--line-l); padding: 2px 0 2px 10px; line-height: 1.5; }
.v-src b { font-family: var(--f-mono); font-size: 10px; letter-spacing: .1em; display: block; color: var(--ink); margin-bottom: 2px; }
.v-target { border: 1.5px solid var(--ink); background: #fff; padding: 10px 12px; min-height: 92px; position: relative; font-size: 14px; line-height: 1.5; }
.v-target b.lab { position: absolute; top: -9px; left: 10px; background: var(--bone); padding: 0 6px; font-family: var(--f-mono); font-size: 10px; letter-spacing: .1em; }
.v-count { position: absolute; right: 8px; bottom: 6px; font-family: var(--f-mono); font-size: 11px; color: var(--mute-dark); font-variant-numeric: tabular-nums; }
.v-count.ok { color: #2f7a12; }
.v-valid { display: flex; flex-wrap: wrap; gap: 6px; }

.v-confirm { position: absolute; inset: 14px; background: #fff; border: 1px solid var(--line-l); display: grid; place-items: center; text-align: center; padding: 18px; }
.v-confirm .big { font-stretch: 70%; font-weight: 600; font-size: 34px; text-transform: uppercase; line-height: .95; margin: 0 0 10px; }
.v-confirm p { margin: 0; font-size: 14px; color: #4a4841; max-width: 360px; }
.v-confirm mark { background: transparent; background-image: linear-gradient(var(--signal), var(--signal)); background-repeat: no-repeat; background-size: 0% 100%; background-position: left; transition: background-size 1.1s var(--ease); padding: 1px 0; }
.v-confirm mark.on { background-size: 100% 100%; }
.v-evidence { position: absolute; left: 14px; right: 14px; bottom: 14px; background: var(--ink); color: var(--bone); font-family: var(--f-mono); font-size: 11px; line-height: 1.6; padding: 10px 12px; transform: translateY(120%); transition: transform .5s var(--ease); }
.v-evidence.on { transform: none; }
.v-evidence .k { color: var(--signal); }

.v-report { display: grid; gap: 4px; font-family: var(--f-mono); font-size: 11.5px; }
.v-rrow { display: grid; grid-template-columns: 1fr 1.15fr 1.15fr; gap: 10px; padding: 5px 8px; background: #fff; border: 1px solid var(--line-l); opacity: 0; transform: translateX(-8px); transition: all .35s var(--ease); align-items: center; }
.v-rrow.on { opacity: 1; transform: none; }
.v-rrow > span { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.v-rrow.head { background: transparent; border: 0; color: var(--mute-dark); font-size: 10px; letter-spacing: .1em; opacity: 1; transform: none; }
.pill { display: inline-block; font-family: var(--f-mono); font-size: 10px; font-weight: 700; letter-spacing: .04em; padding: 3px 6px; border-radius: 2px; white-space: nowrap; }
.pill-pub { background: var(--s-pub); color: var(--ink); }
.pill-pend { background: var(--s-pend); color: var(--ink); }
.pill-you { background: var(--signal); color: var(--ink); }
.pill-rej { background: #d6d1c5; color: #5b5850; }
.pill-off { background: transparent; color: var(--mute-dark); border: 1px solid var(--line-l); }

/* ---------- S.E.B.A ---------- */
.seba-mark { width: 1.25em; height: 1.25em; flex: none; display: inline-block; vertical-align: -.25em; }
.seba-mark .seba-block, .seba-mark .seba-dots rect { fill: var(--seba-green); }
.seba-mark .seba-dots { display: none; }
.kicker .seba-mark { width: 18px; height: 18px; }
.kicker .seba-mark .seba-block { fill: var(--ink); animation: blink 1.05s steps(1) infinite; }
.seba-status { display: flex; align-items: center; gap: 10px; margin: 18px 0 0; font-family: var(--f-mono); font-size: 11px; letter-spacing: .12em; color: #b9c4bf; }
.seba-status .seba-mark { width: 22px; height: 22px; color: var(--seba-paper); }
.seba-status.is-thinking .seba-block { display: none; }
.seba-status.is-thinking .seba-dots { display: inline; }
.seba-status.is-thinking .seba-dots rect { animation: sebaDot 1.1s ease-in-out infinite; }
.seba-status.is-thinking .seba-dots rect:nth-child(2) { animation-delay: .18s; }
.seba-status.is-thinking .seba-dots rect:nth-child(3) { animation-delay: .36s; }
.seba-status:not(.is-thinking) { color: var(--seba-green); }
@keyframes sebaDot { 0%, 100% { opacity: .25; } 40% { opacity: 1; } }

.brain {
  background-color: var(--seba-ink); color: var(--seba-paper); padding: clamp(80px, 10vw, 140px) 0; position: relative; overflow: hidden;
  background-image: repeating-linear-gradient(135deg, rgba(15,163,71,.05) 0 1px, transparent 1px 22px);
  border-top: 1px solid rgba(246,248,247,.08); border-bottom: 3px solid var(--seba-green);
}
.brain-inner { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: clamp(32px, 6vw, 96px); align-items: center; }
.brain-mark { display: grid; place-items: center; }
.brain-mark .seba-mark { width: min(100%, 360px); height: auto; aspect-ratio: 1; color: var(--seba-paper); }
.brain-mark .seba-block { animation: blink 1.05s steps(1) infinite; }
.eyebrow-seba { color: var(--seba-green); }
.seba-word { margin: 0; font-family: "Space Grotesk", var(--f-sans); font-weight: 700; font-size: clamp(64px, 9vw, 140px); line-height: .9; letter-spacing: .02em; }
.seba-word i, .seba-word-s i { font-style: normal; color: var(--seba-green); }
.brain .sec-lede { color: #b9c4bf; }
.brand-link { color: var(--seba-paper); text-decoration: underline; text-decoration-color: var(--seba-green); text-decoration-thickness: 2px; text-underline-offset: 4px; transition: color .2s; }
.brand-link:hover { color: var(--seba-green); }
.foot-link { color: var(--bone); text-decoration: none; border-bottom: 1px solid var(--signal); }
.foot-link:hover { color: var(--signal); }
.seba-term { margin: 30px 0 0; font-size: 14px; line-height: 1.8; color: #d6dedb; white-space: pre-wrap; }
.seba-term span { color: var(--seba-green); }
.seba-cursor { display: inline-block; width: 9px; height: 17px; background: var(--seba-green); vertical-align: -3px; margin-left: 6px; animation: blink 1s steps(1) infinite; }
.cell-tag-seba { display: flex; align-items: center; gap: 10px; }
.cell-tag-seba .seba-mark { width: 20px; height: 20px; color: var(--ink); }

/* ---------- split (who does what) ---------- */
.split { background: var(--bone); color: var(--ink); padding: clamp(88px, 11vw, 150px) 0; }
.split .sec-lede, .states .sec-lede { color: #5a574f; }
.trio { display: grid; grid-template-columns: repeat(3, 1fr); border-top: 1.5px solid var(--ink); }
.cell { padding: 28px 28px 34px 0; border-right: 1px solid var(--line-l); }
.cell + .cell { padding-left: 28px; }
.cell:last-child { border-right: 0; }
.cell-tag { font-family: var(--f-mono); font-size: 12px; letter-spacing: .14em; margin: 0 0 40px; }
.cell h3 { font-stretch: 62%; font-weight: 560; text-transform: uppercase; font-size: clamp(32px, 3vw, 44px); line-height: .95; margin: 0 0 16px; }
.cell p { margin: 0 0 22px; color: #44423c; }
.cell-you { background: var(--ink); color: var(--bone); padding-left: 28px !important; padding-right: 28px; }
.cell-you p { color: #bdb8ac; }
.cell-you .cell-tag { color: var(--signal); }
.ticks { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; font-family: var(--f-mono); font-size: 12.5px; }
.ticks li { position: relative; padding-left: 20px; }
.ticks li::before { content: "→"; position: absolute; left: 0; top: 0; color: var(--signal-deep); }
.cell-you .ticks li::before, .ticks-light li::before { color: var(--signal); }

/* ---------- states ---------- */
.states { background: var(--bone); color: var(--ink); padding: 0 0 clamp(88px, 11vw, 150px); }
.states .wrap { border-top: 1.5px solid var(--ink); padding-top: clamp(64px, 8vw, 110px); }
.state-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(196px, 1fr)); gap: 8px; }
.st {
  text-align: left; border: 1.5px solid var(--ink); background: transparent; padding: 12px 12px 14px; border-radius: 2px;
  font-family: var(--f-mono); font-size: 12px; font-weight: 700; letter-spacing: .02em; position: relative; overflow: hidden;
  transition: transform .2s var(--ease), background .2s, color .2s;
}
.st small { display: block; font-weight: 400; font-size: 10px; letter-spacing: .12em; margin-top: 10px; color: var(--mute-dark); text-transform: uppercase; }
.st::before { content: ""; position: absolute; top: 0; right: 0; width: 18px; height: 18px; background: var(--g); clip-path: polygon(0 0, 100% 0, 100% 100%); }
.st:hover, .st.on { background: var(--ink); color: var(--bone); transform: translate(-2px, -2px); box-shadow: 4px 4px 0 var(--g); }
.st:hover small, .st.on small { color: #a9a497; }
.st[data-g="done"] { --g: #8fcf1d; } .st[data-g="wait"] { --g: #f2a900; } .st[data-g="you"] { --g: var(--signal); } .st[data-g="end"] { --g: #a5a091; } .st[data-g="flow"] { --g: #4c6ef5; }
.state-rule { margin: 22px 0 0; padding: 16px 18px; background: var(--ink); color: var(--bone); font-size: 15px; min-height: 58px; border-radius: 2px; }
.state-rule .mono { color: var(--signal); margin-right: 8px; }

/* ---------- result ---------- */
.result { background: var(--ink); padding: clamp(88px, 11vw, 150px) 0; }
.result-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.doc { background: var(--ink-2); border: 1px solid var(--line-d); border-radius: 4px; overflow: hidden; }
.doc-bar { display: flex; justify-content: space-between; padding: 12px 16px; border-bottom: 1px solid var(--line-d); font-family: var(--f-mono); font-size: 12px; color: var(--mute); }
.doc-bar b { color: var(--bone); font-weight: 500; }
.doc-body { padding: 22px 22px 26px; }
.doc-h { font-family: var(--f-mono); font-size: 13px; color: var(--signal); margin: 0 0 14px; }
.doc-h2 { font-family: var(--f-mono); font-size: 12px; color: var(--mute); margin: 22px 0 10px; }
.sum { width: 100%; border-collapse: collapse; font-size: 15px; }
.sum td { padding: 8px 0; border-bottom: 1px solid var(--line-d); }
.sum td:last-child { text-align: right; font-stretch: 62%; font-weight: 600; font-size: 26px; line-height: 1; font-variant-numeric: tabular-nums; }
.evid { display: grid; grid-template-columns: auto auto 1fr; gap: 10px; align-items: center; padding: 10px 0; border-bottom: 1px dashed var(--line-d); font-size: 13.5px; }
.evid-dom { font-family: var(--f-mono); font-size: 12px; }
.evid q { color: #bdb8ac; font-style: italic; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.todo { display: grid; grid-template-columns: 20px 1fr auto; gap: 12px; padding: 14px 0; border-bottom: 1px solid var(--line-d); cursor: pointer; align-items: start; }
.todo input { appearance: none; -webkit-appearance: none; width: 16px; height: 16px; border: 1.5px solid var(--bone); margin: 3px 0 0; border-radius: 2px; display: grid; place-items: center; cursor: pointer; }
.todo input:checked { background: var(--signal); border-color: var(--signal); }
.todo input:checked::after { content: "✓"; font-size: 11px; color: var(--ink); font-weight: 700; }
.todo span { font-size: 15px; }
.todo em { display: block; font-style: normal; font-family: var(--f-mono); font-size: 11.5px; color: var(--mute); margin-top: 4px; }
.todo input:checked + span { text-decoration: line-through; color: var(--mute); }
.todo kbd { font-size: 10.5px; letter-spacing: .06em; padding: 3px 7px; border: 1px solid var(--line-d); border-radius: 2px; color: var(--mute); white-space: nowrap; }
.doc-foot { margin: 18px 0 0; font-size: 13px; color: var(--mute); }

/* ---------- guardrails ---------- */
.guard { background: var(--ink); padding: 0 0 clamp(88px, 11vw, 150px); }
.guard-inner { border-top: 1px solid var(--line-d); padding-top: clamp(64px, 8vw, 110px); display: grid; grid-template-columns: .9fr 1.1fr; gap: clamp(32px, 5vw, 80px); align-items: start; }
.never { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line-d); }
.never li { display: grid; grid-template-columns: 34px 1fr; column-gap: 8px; padding: 16px 0; border-bottom: 1px solid var(--line-d); }
.nv-x { grid-row: span 2; font-family: var(--f-mono); color: var(--signal); font-size: 16px; line-height: 1.4; }
.never s { font-stretch: 75%; font-weight: 500; font-size: clamp(20px, 2vw, 26px); line-height: 1.2; text-decoration: none; position: relative; color: var(--bone); width: fit-content; }
.never s::after { content: ""; position: absolute; left: 0; top: 55%; height: 2px; width: 0; background: var(--signal); transition: width .7s var(--ease) .2s; }
.never li.in s::after { width: 100%; }
.never em { font-style: normal; font-family: var(--f-mono); font-size: 11.5px; color: var(--mute); margin-top: 4px; }

/* ---------- multi ---------- */
.multi { background: var(--ink-2); padding: clamp(88px, 11vw, 150px) 0; border-top: 1px solid var(--line-d); }
.multi-inner { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 5vw, 80px); align-items: center; }
.multi .sec-head { margin: 0; }
.multi .ticks { margin-top: 28px; color: #cdc8bc; }
.tree { background: #070706; border: 1px solid var(--line-d); border-radius: 4px; padding: 26px 24px; overflow-x: auto; }
.tree pre { margin: 0; font-size: 13px; line-height: 1.75; color: #8d887c; }
.tree b { color: var(--bone); font-weight: 500; }
.tree i { font-style: normal; color: var(--signal); }
.tree .c { color: var(--bone); }
.blink { color: var(--signal); animation: blink 1s steps(1) infinite; }

/* ---------- pricing ---------- */
.pricing { position: relative; background: var(--signal); color: var(--ink); padding: clamp(88px, 11vw, 150px) 0; isolation: isolate; overflow: hidden; overflow: clip; }
.plans-note { margin: 22px 0 0; font-family: var(--f-mono); font-size: 12px; letter-spacing: .04em; }
.sec-lede-ink { color: rgba(11,11,10,.78); }

.alt-offer { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 20px; margin: 0 0 22px; padding: 14px 18px; border: 1.5px solid var(--ink); color: var(--ink); text-decoration: none; transition: background .2s, color .2s; }
.alt-offer .alt-q { font-stretch: 80%; font-weight: 600; font-size: 18px; }
.alt-offer .alt-a { font-family: var(--f-mono); font-size: 13px; letter-spacing: .02em; }
.alt-offer b { font-weight: 700; border-bottom: 1.5px solid currentColor; }
.alt-offer:hover { background: var(--ink); color: var(--bone); }
.offer { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); border: 1.5px solid var(--ink); background: var(--ink); color: var(--bone); scroll-margin-top: 110px; box-shadow: 10px 10px 0 rgba(11,11,10,.22); }
.offer-main { padding: clamp(26px, 3.6vw, 48px); display: flex; flex-direction: column; align-self: start; position: sticky; top: 72px; }
.offer-flag { display: inline-flex; align-items: center; gap: 8px; width: fit-content; margin: 0 0 26px; padding: 6px 11px; background: var(--signal); color: var(--ink); font-family: var(--f-mono); font-size: 11px; font-weight: 700; letter-spacing: .16em; }
.offer-flag .dot-live { color: var(--ink); width: 7px; height: 7px; }
.offer-name { font-family: var(--f-mono); font-size: 12px; letter-spacing: .16em; color: var(--signal); margin: 0 0 14px; }
.offer-title { font-stretch: 62%; font-weight: 560; text-transform: uppercase; font-size: clamp(46px, 5vw, 76px); line-height: .88; margin: 0 0 18px; }
.offer-sub { margin: 0 0 22px; color: #cdc8bc; font-size: 16.5px; max-width: 480px; }
.offer-own { list-style: none; padding: 0; margin: 0 0 30px; display: flex; flex-wrap: wrap; gap: 8px; }
.offer-own li { font-family: var(--f-mono); font-size: 11.5px; letter-spacing: .06em; padding: 6px 10px; border: 1px solid rgba(239,235,226,.3); }
.offer-own li::before { content: "✓ "; color: var(--s-pub); }
.offer-features { padding: clamp(26px, 3.6vw, 48px); background: var(--ink-2); border-left: 1px solid var(--line-d); }
.offer-fh { font-family: var(--f-mono); font-size: 12px; letter-spacing: .16em; color: var(--mute); margin: 0 0 16px; }
.feat { list-style: none; margin: 0; padding: 0; display: grid; gap: 0; }
.feat li { position: relative; padding: 10px 0 10px 26px; border-top: 1px solid var(--line-d); font-size: 14.5px; line-height: 1.45; color: #dcd7cb; }
.feat li::before { content: "+"; position: absolute; left: 2px; top: 10px; font-family: var(--f-mono); font-weight: 700; color: var(--signal); }
.wl-form { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 10px; }
.wl-form input { font: inherit; font-family: var(--f-mono); font-size: 14px; color: var(--bone); background: var(--ink-3); border: 1.5px solid var(--ink-4); border-radius: 2px; padding: 14px 14px; min-width: 0; }
.wl-form input::placeholder { color: #77736a; }
.wl-form input:focus { outline: none; border-color: var(--signal); box-shadow: 0 0 0 3px rgba(255,90,31,.25); }
.wl-btn { justify-content: center; }
.wl-btn:disabled { opacity: .6; }
.wl-form.is-busy .wl-btn { pointer-events: none; opacity: .7; }
.wl-form.is-done .wl-btn { background: var(--s-pub); border-color: var(--s-pub); pointer-events: none; }
.wl-msg { grid-column: 1 / -1; margin: 2px 0 0; min-height: 1.4em; font-family: var(--f-mono); font-size: 12px; color: var(--mute); }
.wl-msg[data-kind="ok"] { color: var(--s-pub); }
.wl-msg[data-kind="error"] { color: var(--signal-hi); }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }

/* ---------- faq ---------- */
.faq { background: var(--bone); color: var(--ink); padding: clamp(88px, 11vw, 150px) 0; }
.faq-inner { display: grid; grid-template-columns: .7fr 1.3fr; gap: clamp(32px, 5vw, 80px); align-items: start; }
.qa { border-top: 1.5px solid var(--ink); }
.qa details { border-bottom: 1px solid var(--line-l); }
.qa summary { list-style: none; cursor: pointer; padding: 22px 40px 22px 0; position: relative; font-stretch: 80%; font-weight: 600; font-size: clamp(19px, 1.7vw, 23px); line-height: 1.2; }
.qa summary::-webkit-details-marker { display: none; }
.qa summary::after { content: "+"; position: absolute; right: 4px; top: 18px; font-family: var(--f-mono); font-size: 22px; transition: transform .25s var(--ease); }
.qa details[open] summary::after { transform: rotate(45deg); color: var(--signal-deep); }
.qa p { margin: 0 0 24px; color: #44423c; max-width: 680px; }

/* ---------- footer ---------- */
.foot { background: var(--ink); color: var(--bone); padding: 40px 0; border-top: 1px solid var(--line-d); }
.foot-inner { display: flex; justify-content: space-between; align-items: center; gap: 20px; flex-wrap: wrap; }
.foot .mono { margin: 0; color: var(--mute); }
.foot-status { display: flex; align-items: center; gap: 8px; }
.foot-status .dot-live { color: var(--s-pub); }

/* ---------- toast ---------- */
.toast { position: fixed; left: 50%; bottom: 24px; transform: translate(-50%, 220%); visibility: hidden; background: var(--ink); color: var(--bone); border: 1px solid var(--signal); font-family: var(--f-mono); font-size: 12px; letter-spacing: .06em; padding: 12px 16px; z-index: 60; transition: transform .35s var(--ease); max-width: calc(100% - 32px); }
.toast.on { transform: translate(-50%, 0); visibility: visible; }

/* ---------- reveal ---------- */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
.reveal.in { opacity: 1; transform: none; }

/* ---------- responsive ---------- */
@media (max-width: 1080px) {
  .hero-inner { grid-template-columns: minmax(0, 1fr); min-height: 0; padding-top: 10px; }
  .hero-matrix { max-width: 760px; }
  .inspector { grid-template-columns: minmax(0, 1fr); gap: 0; }
  .insp-copy { display: contents; }
  .insp-meta { order: 1; }
  .seba-status { order: 2; }
  .insp-title { order: 3; margin: 16px 0 18px; }
  .insp-stage { order: 4; margin-bottom: 28px; }
  .insp-dl { order: 5; }
  .stage-label { font-size: 10px; letter-spacing: .06em; }
  .guard-inner, .multi-inner, .faq-inner, .sec-head-row, .brain-inner, .links-inner, .ai-inner { grid-template-columns: minmax(0, 1fr); }
  .brain-mark { justify-items: start; }
  .brain-mark .seba-mark { width: 200px; }
}
@media (max-width: 860px) {
  .nav-links { display: none; }
  .trio, .result-grid { grid-template-columns: 1fr; }
  .cell, .cell + .cell { padding: 26px 0 30px; border-right: 0; border-bottom: 1px solid var(--line-l); }
  .cell-you { padding: 26px 22px 30px !important; }
  .offer { grid-template-columns: minmax(0, 1fr); box-shadow: 6px 6px 0 rgba(11,11,10,.22); }
  .offer-features { border-left: 0; border-top: 1px solid var(--line-d); }
  .bins { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 720px) {
  body { font-size: 16px; }
  .hero { padding-top: 92px; }
  .display .line-outline { -webkit-text-stroke-width: 1.2px; }
  .stage-node { width: 34px; height: 34px; font-size: 10px; }
  .rail-line { top: 17px; }
  .stage-label { display: none; }
  .rail { padding-bottom: 96px; }
  .lane { top: 58px; }
  .lane-tick { top: 40px; height: 18px; }
  .win-body { height: 340px; padding: 14px; }
  .v-results { grid-template-columns: repeat(2, 1fr); }
  .v-page.has-flags { padding-right: 16px; }
  .v-json { font-size: 11px; white-space: pre-wrap; }
  .link-stats { grid-template-columns: 1fr; }
  .wl-form { grid-template-columns: minmax(0, 1fr); }
  .offer-main { position: static; }
  .link-stats > div + div { padding-left: 0; border-left: 0; border-top: 1px solid var(--line-l); }
  .link-stats > div { display: flex; align-items: baseline; gap: 14px; padding: 12px 0; }
  .link-stats b { font-size: 40px; min-width: 92px; }
  .link-stats span { margin: 0; }
  .ledger li { grid-template-columns: 12px 1fr auto auto; gap: 8px; font-size: 11px; }
  .ledger .lg-st { display: none; }
  .chat-body { min-height: 470px; padding: 14px; }
  .crawl li { flex-direction: column; gap: 2px; }
  .g-dr-txt { font-size: 15px; }
  .tree { padding: 18px 14px; }
  .tree pre { font-size: 11px; }
  .display .line-outline { white-space: nowrap; }
  .state-grid { grid-template-columns: 1fr 1fr; gap: 6px; }
  .st { font-size: 10.5px; padding: 10px 9px 11px; overflow-wrap: anywhere; }
  .st small { margin-top: 6px; font-size: 9px; }
  .kicker { font-size: 10.5px; letter-spacing: .08em; align-items: flex-start; }
  .brain-mark .seba-mark { width: 140px; }
  .v-flags .chip { opacity: .94; }
  .v-rrow { grid-template-columns: 1fr 1.2fr; }
  .v-rrow > span:nth-child(3) { display: none; }
  .v-bar { grid-template-columns: 76px 1fr 40px; }
  .matrix-legend { gap: 12px 18px; }
  .evid { grid-template-columns: auto 1fr; }
  .evid q { grid-column: 1 / -1; white-space: normal; }
  .insp-dl > div { grid-template-columns: 1fr; gap: 4px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; scroll-behavior: auto !important; }
  .reveal { opacity: 1; transform: none; }
}
