/* ProjectX (dev.xlaunch.work) — the Xlaunch block system with the amber dev accent.
   Two voices, both terminal: Space Mono for display, JetBrains Mono for
   everything else. Dark only. Every colour below is solved in OKLCH against
   the surface it sits on; ratios are in the comments (WCAG 2.x). */

/* ------------------------------------------------------------ fonts --- */
@font-face { font-family: "Space Mono"; src: url("../fonts/space-mono-700.woff2") format("woff2");
  font-weight: 700; font-style: normal; font-display: swap; }
@font-face { font-family: "Space Mono"; src: url("../fonts/space-mono-400.woff2") format("woff2");
  font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: "JetBrains Mono"; src: url("../fonts/jetbrains-mono-400.woff2") format("woff2");
  font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: "JetBrains Mono"; src: url("../fonts/jetbrains-mono-500.woff2") format("woff2");
  font-weight: 500; font-style: normal; font-display: swap; }
@font-face { font-family: "JetBrains Mono"; src: url("../fonts/jetbrains-mono-700.woff2") format("woff2");
  font-weight: 700; font-style: normal; font-display: swap; }

/* ----------------------------------------------------------- tokens --- */
:root {
  color-scheme: dark;

  /* surfaces */
  --bg:          #0a0f0c;
  --bg-raised:   #121715;
  --bg-sunken:   #050907;
  --bg-hover:    #18201c;
  --line:        #232b27;   /* decorative only */
  --line-strong: #5e6763;   /* 3.2:1 on --bg — control borders */

  /* ink — measured on --bg-raised, the harder ground */
  --text:        #e4ece8;   /* 15.1:1 */
  --text-muted:  #9ba6a0;   /*  7.2:1 */
  --text-faint:  #838f89;   /*  5.4:1; 5.0:1 on --bg-hover, the hardest ground */

  /* the one accent */
  --accent:       #e99e00;  /*  8.6:1 on --bg, 8.1:1 on --bg-raised */
  --accent-hover: #f9b23e;
  --accent-ink:   #1a1204;  /*  8.3:1 on --accent */
  --accent-wash:  #2a1f07;
  --accent-line:  #8f6312;

  /* state — each also carries a word and a shape, never colour alone */
  --ok:      #4ebf6e;
  --warn:    #d19500;
  --fail:    #e0716a;       /* 5.8:1 on --bg-raised */
  --fail-wash: #2a1311;
  --warn-wash: #2a1f07;
  --info:    #5aaef0;


  /* tool identity — 12 hues at 5.0:1 on --bg-raised; always shown with the
     tool's name beside it, never colour alone (site-build/identity_agent.py) */
  --agent-00: #ce695d;
  --agent-01: #c3732c;
  --agent-02: #a78200;
  --agent-03: #7e8f22;
  --agent-04: #439854;
  --agent-05: #009882;
  --agent-06: #0095a4;
  --agent-07: #198fc9;
  --agent-08: #6684d7;
  --agent-09: #9577ce;
  --agent-10: #b56db3;
  --agent-11: #c9678b;

  /* type */
  --display: "Space Mono", "JetBrains Mono", ui-monospace, monospace;
  --mono:    "JetBrains Mono", ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace;

  --t-h1: clamp(2.2rem, 1.1rem + 3.7vw, 4.4rem);     /* 35 -> 70px */
  --t-h2: clamp(1.8rem, 1.2rem + 2.6vw, 3.2rem);     /* 29 -> 51px */
  --t-h3: clamp(1.15rem, 1rem + .5vw, 1.4rem);
  --t-body: clamp(.9375rem, .9rem + .15vw, 1rem);
  --t-small: .8125rem;
  --t-micro: .6875rem;

  /* space — 4px base */
  --s1: 4px; --s2: 8px; --s3: 12px; --s4: 16px; --s5: 24px; --s6: 32px;
  --s7: 48px; --s8: 64px; --s9: 96px; --s10: 128px;

  --r-sm: 4px; --r: 8px; --r-lg: 12px;
  --wrap: 1200px; --wrap-narrow: 760px;
  --gutter: clamp(16px, 4vw, 32px);

  --ease: cubic-bezier(.2, .7, .2, 1);
  --fast: 140ms; --med: 280ms; --slow: 600ms;
}

/* ------------------------------------------------------------- base --- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 80px; }
body {
  margin: 0; background: var(--bg); color: var(--text);
  font: 400 var(--t-body)/1.65 var(--mono);
  font-variant-ligatures: contextual;
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
/* the working surface: a faint 24px grid, the same unit the blocks live on */
body::before {
  content: ""; position: fixed; inset: 0; z-index: -1; pointer-events: none;
  background-image:
    linear-gradient(to right, rgba(228, 236, 232, .028) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(228, 236, 232, .028) 1px, transparent 1px);
  background-size: 24px 24px;
  mask-image: linear-gradient(to bottom, #000 0, #000 70%, transparent);
}
img, svg, canvas { display: block; max-width: 100%; }
[hidden] { display: none !important; }
a { color: inherit; text-underline-offset: 3px; }
button, input, select { font: inherit; color: inherit; }
::selection { background: var(--accent); color: var(--accent-ink); }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; border-radius: 2px; }

h1, h2, h3 { font-family: var(--display); font-weight: 700; margin: 0; color: var(--text); text-wrap: balance; }
h1 { font-size: var(--t-h1); line-height: 1.02; letter-spacing: -.045em; }
h2 { font-size: var(--t-h2); line-height: 1.08; letter-spacing: -.035em; }
h3 { font-size: var(--t-h3); line-height: 1.25; letter-spacing: -.015em; }
h4 { font: 700 1rem/1.35 var(--mono); margin: 0; }
p { margin: 0; }
code, kbd, pre { font-family: var(--mono); }
.muted { color: var(--text-muted); }
.faint { color: var(--text-faint); }
.accent { color: var(--accent); }
.small { font-size: var(--t-small); line-height: 1.55; }
.micro { font-size: var(--t-micro); letter-spacing: .08em; text-transform: uppercase; }
.num { font-variant-numeric: tabular-nums; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: var(--s4); top: -60px; z-index: 100; padding: var(--s2) var(--s4);
  background: var(--accent); color: var(--accent-ink); border-radius: var(--r-sm); font-weight: 700; }
.skip:focus { top: var(--s4); }

.wrap { width: 100%; max-width: var(--wrap); margin-inline: auto; padding-inline: var(--gutter); }
.wrap-narrow { max-width: var(--wrap-narrow); }
.section { padding-block: clamp(72px, 10vw, 128px); position: relative; }
.section + .section { border-top: 1px solid var(--line); }
.center { text-align: center; }

/* -------------------------------------------------------- the head --- */
/* every section opens with the command that would print it */
.head { max-width: 720px; margin-bottom: clamp(36px, 5vw, 56px); }
.head.center { margin-inline: auto; }
.cmd { display: inline-flex; align-items: center; gap: var(--s3); color: var(--accent);
  font-size: var(--t-small); font-weight: 500; margin-bottom: var(--s4); }
.head h2 + p { margin-top: var(--s4); color: var(--text-muted); max-width: 60ch; }
.head.center h2 + p { margin-inline: auto; }

/* the glyph beside each command: 5 x 5 blocks that assemble on reveal */
.glyph { display: grid; grid-template-columns: repeat(5, 4px); gap: 1px; flex: none; }
.glyph i { width: 4px; height: 4px; background: var(--accent); opacity: 0;
  transform: translateY(-9px); transition: opacity 260ms var(--ease), transform 420ms var(--ease);
  transition-delay: calc(var(--d, 0) * 1ms); }
.glyph i.o { background: transparent; }
.is-in .glyph i:not(.o), .glyph.is-in i:not(.o) { opacity: 1; transform: none; }

/* ------------------------------------------------------------ buttons --- */
.btn {
  --h: 44px;
  position: relative; display: inline-flex; align-items: center; justify-content: center; gap: var(--s2);
  min-height: var(--h); padding: 0 var(--s5); border-radius: var(--r);
  border: 1px solid transparent; font: 700 .875rem/1 var(--mono); letter-spacing: -.01em;
  text-decoration: none; cursor: pointer; white-space: nowrap; overflow: hidden; isolation: isolate;
  transition: background var(--fast), border-color var(--fast), color var(--fast), transform var(--fast);
}
.btn svg { width: 16px; height: 16px; flex: none; }
.btn:active { transform: translateY(1px); }
.btn[disabled], .btn[aria-disabled="true"] { opacity: .45; cursor: not-allowed; }
.btn-primary { background: var(--accent); color: var(--accent-ink); }
.btn-primary:hover { background: var(--accent-hover); }
/* the launch sweep: a row of blocks runs through the button on hover */
.btn-primary::after {
  content: ""; position: absolute; inset: auto 0 5px; height: 3px; z-index: -1;
  background: repeating-linear-gradient(90deg, var(--accent-ink) 0 3px, transparent 3px 7px);
  opacity: 0; transform: translateX(-102%);
}
.btn-primary:hover::after { animation: sweep 900ms steps(12) 1 forwards; }
@keyframes sweep { 0% { opacity: .35; transform: translateX(-102%); } 100% { opacity: .35; transform: translateX(0); } }
.btn-ghost { background: transparent; color: var(--text); border-color: var(--line-strong); }
.btn-ghost:hover { border-color: var(--text-muted); background: var(--bg-hover); }
.btn-quiet { background: transparent; color: var(--text-muted); padding-inline: var(--s3); }
.btn-quiet:hover { color: var(--text); }
.btn-outline { background: transparent; color: var(--accent); border-color: var(--accent-line); }
.btn-outline:hover { background: var(--accent); color: var(--accent-ink); border-color: var(--accent); }
.btn-sm { --h: 36px; padding: 0 var(--s4); font-size: .8125rem; }
.btn-block { width: 100%; }

/* -------------------------------------------------------------- nav --- */
.nav { position: sticky; top: 0; z-index: 50; background: rgba(10, 15, 12, .82);
  backdrop-filter: saturate(1.4) blur(12px); -webkit-backdrop-filter: saturate(1.4) blur(12px);
  border-bottom: 1px solid var(--line); }
.nav-in { display: flex; align-items: center; gap: var(--s5); height: 64px; }
.brand { display: inline-flex; align-items: center; gap: var(--s3); text-decoration: none; flex: none; }
.brand-mark { width: 26px; height: 26px; color: var(--accent); --mark-block: var(--accent); }
/* the logo: block X + the name in the same blocks, 46 columns x 9 rows */
.logo { display: block; height: 22px; aspect-ratio: 52 / 9; color: var(--accent); --mark-block: var(--accent); --logo-word: var(--text); }
.logo img { width: 100%; height: 100%; }
.logo-lg { height: 30px; }
.brand-word { font: 700 1.125rem/1 var(--display); letter-spacing: -.04em; }
.badge { display: inline-flex; align-items: center; gap: 6px; height: 20px; padding: 0 7px;
  border-radius: var(--r-sm); font: 700 .625rem/1 var(--mono); letter-spacing: .12em; text-transform: uppercase; }
.badge-accent { background: var(--accent); color: var(--accent-ink); }
.badge-line { border: 1px solid var(--line-strong); color: var(--text-muted); }
.badge-ok { background: var(--accent-wash); color: var(--accent); }
.badge-warn { background: var(--warn-wash); color: var(--warn); }
.badge-fail { background: var(--fail-wash); color: var(--fail); }
.nav-links { display: flex; gap: var(--s1); margin-left: auto; }
.nav-links a { padding: var(--s2) var(--s3); border-radius: var(--r-sm); color: var(--text-muted);
  font-size: var(--t-small); text-decoration: none; transition: color var(--fast), background var(--fast); }
.nav-links a:hover { color: var(--text); background: var(--bg-hover); }
.nav-links a span { color: var(--text-faint); }
.nav-cta { display: flex; align-items: center; gap: var(--s2); }
.nav-toggle { display: none; width: 44px; height: 44px; border: 0; background: transparent; border-radius: var(--r);
  align-items: center; justify-content: center; cursor: pointer; color: var(--text); }
.nav-toggle svg { width: 22px; height: 22px; }
.nav-panel { display: none; }
@media (max-width: 959px) {
  .nav-links, .nav-cta .hide-sm { display: none; }
  .nav-cta { margin-left: auto; }
  .nav-toggle { display: inline-flex; }
  .nav-panel[data-open="true"] { display: grid; gap: 2px; padding: var(--s3) var(--gutter) var(--s5);
    border-top: 1px solid var(--line); }
  .nav-panel a:not(.btn) { padding: var(--s3) 0; color: var(--text-muted); text-decoration: none; border-bottom: 1px solid var(--line); }
  .nav-panel .btn { margin-top: var(--s4); }
}

/* ------------------------------------------------------------- hero --- */
.hero { position: relative; padding-block: clamp(48px, 8vw, 104px) clamp(48px, 6vw, 72px); overflow: hidden; }
.hero-field { position: absolute; inset: 0; z-index: -1; pointer-events: none; }
.hero-grid { display: grid; gap: clamp(32px, 5vw, 64px); align-items: center; }
.hero-grid > * { min-width: 0; }
@media (min-width: 960px) { .hero-grid { grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr); } }
.pill { display: inline-flex; align-items: center; gap: var(--s2); max-width: 100%; padding: 6px var(--s3);
  border: 1px solid var(--line); border-radius: 999px; background: var(--bg-raised);
  font-size: .75rem; color: var(--text-muted); }
.pill b { color: var(--text); font-weight: 500; }
.pill .dot { width: 7px; height: 7px; background: var(--accent); flex: none; }
.pill .t { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.hero h1 { margin-top: var(--s5); }
.hero h1 em { font-style: normal; color: var(--accent); }
.caret { display: inline-block; width: .5em; height: .82em; margin-left: .08em; vertical-align: -.04em;
  background: var(--accent); animation: blink 1.1s steps(1) infinite; }
@keyframes blink { 50% { opacity: 0; } }
.lede { margin-top: var(--s5); max-width: 54ch; color: var(--text-muted); font-size: clamp(1rem, .95rem + .25vw, 1.0625rem); }
.lede b { color: var(--text); font-weight: 700; }
.actions { display: flex; flex-wrap: wrap; gap: var(--s3); margin-top: var(--s6); }
.install-line { margin-top: var(--s5); }
.hero-note { margin-top: var(--s4); color: var(--text-faint); font-size: .75rem; }
.markfig { margin: 0; position: relative; }
/* the hero piece has no box: the blocks come up out of the page itself */
.hero .markfield { border: 0; border-radius: 0; background: transparent; aspect-ratio: 5 / 4;
  -webkit-mask-image: radial-gradient(75% 70% at 50% 45%, #000 55%, transparent 100%);
          mask-image: radial-gradient(75% 70% at 50% 45%, #000 55%, transparent 100%); }
@media (min-width: 960px) { .hero .markfig { margin-right: calc(var(--gutter) * -1); } .hero .markfield { aspect-ratio: 1 / 1; } }
.markfield { aspect-ratio: 3 / 2; border: 1px solid var(--line); border-radius: var(--r-lg);
  background: radial-gradient(120% 90% at 50% 40%, #16120a 0, var(--bg-sunken) 70%);
  color: var(--accent); --mark-block: var(--accent); overflow: hidden; }
.markfig figcaption { margin-top: var(--s3); color: var(--text-faint); font-size: .75rem; min-height: 3em; }

/* copyable command line */
.cline { display: flex; align-items: center; gap: var(--s3); max-width: 100%; width: fit-content;
  padding: 0 var(--s2) 0 var(--s4); min-height: 44px; border: 1px solid var(--line); border-radius: var(--r);
  background: var(--bg-sunken); font-size: .8125rem; }
.cline .p { color: var(--accent); flex: none; }
.cline code { overflow-x: auto; white-space: nowrap; scrollbar-width: none; }
.cline code::-webkit-scrollbar { display: none; }
.copy { flex: none; display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  min-width: 36px; height: 32px; padding: 0 var(--s2); border: 0; border-radius: var(--r-sm);
  background: transparent; color: var(--text-faint); cursor: pointer; font-size: .75rem; }
.copy:hover { color: var(--text); background: var(--bg-hover); }
.copy svg { width: 15px; height: 15px; }
.copy[data-done] { color: var(--accent); }

/* -------------------------------------------------- product window --- */
.pw { margin-top: clamp(48px, 7vw, 80px); border: 1px solid var(--line); border-radius: var(--r-lg);
  background: var(--bg-sunken); overflow: hidden;
  box-shadow: 0 0 0 1px rgba(233, 158, 0, .04), 0 40px 120px -40px rgba(233, 158, 0, .18); }
.winbar { display: flex; align-items: center; gap: var(--s3); height: 40px; padding: 0 var(--s4);
  border-bottom: 1px solid var(--line); background: var(--bg-raised); font-size: .75rem; color: var(--text-faint); }
.lights { display: flex; gap: 6px; }
.lights i { width: 10px; height: 10px; border-radius: 50%; background: var(--line-strong); }
.winbar .right { margin-left: auto; display: flex; align-items: center; gap: 6px; }
.live-dot { width: 7px; height: 7px; background: var(--accent); animation: pulse 1.6s ease-in-out infinite; }
@keyframes pulse { 50% { opacity: .35; } }
.pw-body { display: grid; grid-template-columns: 200px minmax(0, 1fr) minmax(0, 330px); min-height: 440px; }
.pw-rail { border-right: 1px solid var(--line); padding: var(--s3); font-size: .75rem; }
.pw-rail .newtask { display: flex; align-items: center; gap: var(--s2); padding: var(--s2) var(--s3); margin-bottom: var(--s3);
  border: 1px solid var(--line); border-radius: var(--r-sm); color: var(--text); }
.pw-rail li { list-style: none; padding: 6px var(--s3); color: var(--text-muted); border-radius: var(--r-sm); }
.pw-rail ul { margin: 0; padding: 0; }
.pw-rail .grp { margin: var(--s4) 0 var(--s2); padding-left: var(--s3); color: var(--text-faint); font-size: .625rem; letter-spacing: .12em; }
.pw-rail .proj { color: var(--accent); }
.pw-rail .cur { background: var(--bg-hover); color: var(--text); margin-left: var(--s3); }
.pw-rail .sub { margin-left: var(--s3); }
.pw-chat { display: flex; flex-direction: column; min-width: 0; }
.tabs { display: flex; gap: var(--s4); padding: 0 var(--s4); height: 38px; align-items: center;
  border-bottom: 1px solid var(--line); font-size: .75rem; color: var(--text-faint); }
.tabs .on { color: var(--accent); box-shadow: inset 0 -2px var(--accent); padding-block: 11px; }
.pw-log { flex: 1; display: flex; flex-direction: column; justify-content: flex-end; gap: var(--s3);
  padding: var(--s4); font-size: .75rem; min-height: 0; overflow: hidden; }
.pw-log > * { animation: rise 360ms var(--ease) both; }
@keyframes rise { from { opacity: 0; transform: translateY(6px); } }
.msg-user { align-self: flex-end; max-width: 78%; padding: var(--s3) var(--s4); background: var(--bg-raised);
  border: 1px solid var(--line); border-radius: var(--r); color: var(--text); }
.msg-step { display: flex; gap: var(--s2); color: var(--text-muted); }
.msg-step b { color: var(--text); font-weight: 500; min-width: 58px; }
.msg-step .k { color: var(--accent); }
.msg-answer { padding: var(--s3) var(--s4); border-left: 2px solid var(--accent); background: var(--accent-wash); color: var(--text); }
.pw-input { margin: 0 var(--s4) var(--s4); display: flex; align-items: center; justify-content: space-between; gap: var(--s3);
  padding: var(--s3) var(--s3) var(--s3) var(--s4); border: 1px solid var(--line); border-radius: var(--r);
  color: var(--text-faint); font-size: .75rem; }
.pw-input .send { width: 24px; height: 24px; background: var(--accent); border-radius: 50%; flex: none; }
.pw-bench { border-left: 1px solid var(--line); display: flex; flex-direction: column; padding: var(--s3); gap: var(--s3); font-size: .75rem; }
.urlbar { padding: var(--s2) var(--s3); border: 1px solid var(--line); border-radius: var(--r-sm); color: var(--text-muted); }
.page { flex: 1; border-radius: var(--r-sm); overflow: hidden; background: #f4f6f5; color: #1b2420; padding: var(--s3); min-height: 220px;
  display: flex; flex-direction: column; gap: var(--s2); font-size: .6875rem; }
.page[data-state="blank"] { background: var(--bg-raised); color: var(--text-faint); align-items: center; justify-content: center; }
.page .ph { display: flex; justify-content: space-between; font-weight: 700; }
.page .ph span:last-child { color: #56655c; font-weight: 400; }
.page .box { border: 1px solid #d5ddd8; background: #fff; border-radius: 4px; padding: var(--s2) var(--s3); }
.page .tot { font-size: 1.125rem; font-weight: 700; }
.page .pay { text-align: center; padding: 6px; border-radius: 4px; color: #fff; font-weight: 700; background: #1a7d48; }
.page[data-state="failing"] .tot { color: #b3261e; }
.page[data-state="failing"] .pay { background: #5f6b64; }
.page .banner { border: 1px solid; border-radius: 4px; padding: 6px var(--s2); }
.page[data-state="failing"] .banner { border-color: #efb4ae; background: #fdecea; color: #a1231b; }
.page[data-state="passing"] .banner { border-color: #a9dcbf; background: #e6f6ed; color: #135c34; }
.pw-foot { display: flex; align-items: center; gap: 6px; color: var(--text-faint); font-size: .6875rem; }
@media (max-width: 1023px) { .pw-body { grid-template-columns: minmax(0, 1fr) minmax(0, 300px); } .pw-rail { display: none; } }
@media (max-width: 719px) {
  .pw-body { grid-template-columns: minmax(0, 1fr); min-height: 0; }
  .pw-bench { border-left: 0; border-top: 1px solid var(--line); }
  .page { min-height: 170px; }
  .pw-log { min-height: 300px; }
}

/* ------------------------------------------------------ block stats --- */
.stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--s3); margin-top: var(--s6); }
@media (max-width: 719px) { .stats { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.stat { border: 1px solid var(--line); border-radius: var(--r); background: var(--bg-raised); padding: var(--s4); text-align: center; }
.stat .digits { height: 44px; color: var(--accent); --mark-block: var(--accent); }
.stat .digits canvas { margin-inline: auto; }
.stat .lbl { margin-top: var(--s3); color: var(--text-faint); font-size: .6875rem; letter-spacing: .12em; text-transform: uppercase; }

/* --------------------------------------------------------- terminal --- */
.term { border: 1px solid var(--line); border-radius: var(--r-lg); background: var(--bg-sunken); overflow: hidden; }
.term-body { padding: var(--s5); font-size: .8125rem; line-height: 1.9; min-height: 330px; overflow-x: auto; }
.term-body div { white-space: pre; }
.term-body .c { color: var(--text); font-weight: 500; }
.term-body .c::before { content: "\276F  "; color: var(--accent); }
.term-body .ok { color: var(--text-muted); }
.term-body .ok::before { content: "\2713  "; color: var(--accent); }
.term-body .out { color: var(--text-muted); }
.term-body .hi { color: var(--warn); }
.term-body .cur::after { content: ""; display: inline-block; width: .6em; height: 1.1em; vertical-align: -.2em;
  background: var(--accent); animation: blink 1.1s steps(1) infinite; }
.term-narrow { max-width: 720px; margin-inline: auto; }

/* ------------------------------------------------------------ ticker --- */
.ticker { border-block: 1px solid var(--line); overflow: hidden; background: var(--bg-sunken); }
.ticker-track { display: flex; width: max-content; gap: var(--s7); padding: var(--s3) 0; animation: tick 60s linear infinite;
  font-size: .75rem; color: var(--text-faint); white-space: nowrap; }
.ticker-track span::before { content: "$ "; color: var(--accent); }
.ticker:hover .ticker-track { animation-play-state: paused; }
@keyframes tick { to { transform: translateX(-50%); } }

/* ------------------------------------------------------------- cards --- */
.grid { display: grid; gap: var(--s4); }
.g2 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 420px), 1fr)); }
.g3 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr)); }
.g4 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 250px), 1fr)); }
.card { position: relative; border: 1px solid var(--line); border-radius: var(--r-lg); background: var(--bg-raised);
  padding: var(--s5); min-width: 0; transition: border-color var(--med); }
.card:hover { border-color: var(--line-strong); }
.card h3 { margin-bottom: var(--s3); }
.card p { color: var(--text-muted); font-size: .875rem; }
.card .eyebrow { display: block; margin-bottom: var(--s3); color: var(--accent); font-size: .6875rem; letter-spacing: .12em; text-transform: uppercase; }
.filetab { display: flex; align-items: center; gap: var(--s2); margin: calc(var(--s5) * -1) calc(var(--s5) * -1) var(--s5);
  padding: var(--s2) var(--s5); border-bottom: 1px solid var(--line); color: var(--text-faint); font-size: .75rem; background: var(--bg-sunken);
  border-radius: var(--r-lg) var(--r-lg) 0 0; }
.filetab::before { content: ""; width: 8px; height: 8px; background: var(--accent); }
.ticks { list-style: none; margin: var(--s4) 0 0; padding: 0; display: grid; gap: var(--s2); font-size: .8125rem; color: var(--text-muted); }
.ticks li { display: flex; gap: var(--s2); }
.ticks li::before { content: "\2713"; color: var(--accent); flex: none; }
.dash li::before { content: "\2014"; color: var(--text-faint); }

/* workbench bento */
.bento { display: grid; gap: var(--s4); grid-template-columns: repeat(6, minmax(0, 1fr)); }
.bento > * { grid-column: span 6; }
@media (min-width: 900px) {
  .bento .b-live { grid-column: span 6; }
  .bento .b-files, .bento .b-tools, .bento .b-sessions { grid-column: span 2; }
  .bento .b-account { grid-column: span 6; }
}
@media (min-width: 1100px) {
  .bento .b-live { grid-column: span 4; grid-row: span 2; }
  .bento .b-files, .bento .b-tools { grid-column: span 2; }
  .bento .b-sessions, .bento .b-account { grid-column: span 3; }
}
.live-grid { display: grid; gap: var(--s5); grid-template-columns: minmax(0, 1fr); margin-top: var(--s5); }
@media (min-width: 720px) { .live-grid { grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); } }
.mini-browser { border: 1px solid var(--line); border-radius: var(--r); overflow: hidden; font-size: .6875rem; }
.mini-browser .urlbar { border: 0; border-bottom: 1px solid var(--line); border-radius: 0; display: flex; justify-content: space-between; }
.mini-browser .page { border-radius: 0; min-height: 0; }
.page .line { display: flex; justify-content: space-between; }
.page .ok-banner { background: #e6f6ed; color: #135c34; border: 1px solid #a9dcbf; border-radius: 4px; padding: 6px var(--s2); font-weight: 700; }
.page .fine { color: #56655c; display: flex; justify-content: space-between; }
.facts { display: grid; gap: var(--s4); }
.facts b { display: block; color: var(--text); font-weight: 700; font-size: .8125rem; }
.facts span { color: var(--text-muted); font-size: .8125rem; }
.tree { margin-top: var(--s4); padding: var(--s3); border: 1px solid var(--line); border-radius: var(--r); background: var(--bg-sunken); font-size: .75rem; line-height: 1.9; color: var(--text-muted); }
.tree .d { color: var(--text); }
.tree .i1 { padding-left: 2ch; } .tree .i2 { padding-left: 4ch; }
.tree .sel { color: var(--accent); background: var(--accent-wash); margin-inline: calc(var(--s3) * -1); padding-inline: calc(var(--s3) + 4ch) var(--s3); }
.apps { margin-top: var(--s4); display: grid; gap: var(--s2); }
.apps div { display: flex; justify-content: space-between; align-items: center; padding: var(--s2) var(--s3);
  border: 1px solid var(--line); border-radius: var(--r-sm); font-size: .75rem; }
.apps span:last-child { color: var(--accent); }
.tasks { margin-top: var(--s4); display: grid; gap: var(--s3); font-size: .75rem; }
.tasks .t { color: var(--text-faint); letter-spacing: .1em; font-size: .625rem; }
.tasks .row { display: flex; gap: var(--s2); color: var(--text-muted); }
.tasks .row::before { content: ""; width: 8px; height: 8px; margin-top: .5em; border: 1px solid var(--line-strong); flex: none; }
.tasks .row.done::before { background: var(--accent); border-color: var(--accent); }
.ledger-mini { margin-top: var(--s4); padding: var(--s4); border: 1px solid var(--line); border-radius: var(--r); background: var(--bg-sunken); font-size: .75rem; }
.ledger-mini .bal { font: 700 1.75rem/1.1 var(--display); letter-spacing: -.03em; margin: var(--s1) 0 var(--s3); }
.ledger-mini .row { display: flex; justify-content: space-between; color: var(--text-muted); padding-top: 4px; }
.ledger-mini .plus { color: var(--accent); }

/* capability + run cards with a code-ish header */
.cap h3 { font-size: 1.125rem; }
.path { color: var(--accent); font-size: .75rem; margin-bottom: var(--s3); display: block; }

/* skills strip */
.skills { margin-top: var(--s7); border: 1px solid var(--line); border-radius: var(--r-lg); overflow: hidden; }
.skills .winbar { background: var(--bg-sunken); }
.skills-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr)); }
.skills-row > div { padding: var(--s5); border-top: 1px solid var(--line); }
@media (min-width: 820px) { .skills-row > div + div { border-left: 1px solid var(--line); } }
.skills-row h4 { margin-bottom: var(--s2); }
.skills-row p { color: var(--text-muted); font-size: .8125rem; }

/* steps */
.steps { counter-reset: s; display: grid; gap: var(--s4); grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr)); }
.step { border: 1px solid var(--line); border-radius: var(--r-lg); padding: var(--s5); background: var(--bg-raised); }
.step .n { font: 700 2.5rem/1 var(--display); color: var(--accent); letter-spacing: -.04em; }
.step h3 { margin: var(--s4) 0 var(--s2); font-size: 1.125rem; }
.step p { color: var(--text-muted); font-size: .8125rem; margin-bottom: var(--s4); }
.step .cline { width: 100%; }
.split { display: grid; gap: clamp(32px, 5vw, 64px); align-items: center; margin-top: clamp(56px, 8vw, 96px); }
@media (min-width: 960px) { .split { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); } }
.split .term-body { min-height: 0; }

/* stack */
.stack { display: grid; gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--r-lg); overflow: hidden;
  grid-template-columns: repeat(auto-fill, minmax(min(50%, 150px), 1fr)); }
.stack div { background: var(--bg); padding: var(--s4); display: grid; gap: 2px; transition: background var(--fast); }
.stack div:hover { background: var(--bg-raised); }
.stack b { font-size: .875rem; font-weight: 500; }
.stack span { font-size: .625rem; letter-spacing: .12em; color: var(--text-faint); }

/* gateway */
.gw { display: grid; gap: clamp(32px, 5vw, 56px); }
@media (min-width: 1000px) { .gw { grid-template-columns: minmax(0, .95fr) minmax(0, 1.05fr); align-items: start; } }
.gw h2 small { display: block; font-size: .5em; color: var(--accent); letter-spacing: -.02em; margin-top: var(--s2); }
.gw-points { display: grid; gap: var(--s4); margin-top: var(--s6); grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr)); }
.gw-points div { border-top: 1px solid var(--line); padding-top: var(--s3); }
.gw-points b { display: block; font-size: .875rem; margin-bottom: 2px; }
.gw-points span { font-size: .8125rem; color: var(--text-muted); }
.streamfig { margin: 0 0 var(--s4); }
.stream { height: 210px; border: 1px solid var(--line); border-radius: var(--r-lg); background: var(--bg-sunken);
  color: var(--accent); --mark-block: var(--accent); overflow: hidden; }
.streamfig figcaption { margin-top: var(--s2); font-size: .6875rem; color: var(--text-faint); }
.code .term-body { min-height: 0; font-size: .78rem; line-height: 1.85; }
.code .k { color: var(--info); } .code .s { color: var(--accent); } .code .cm { color: var(--text-faint); }

/* numbers */
.nums { display: grid; gap: var(--s4); grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr)); }
.nums .card .digits { height: 56px; color: var(--accent); --mark-block: var(--accent); }
.nums .card h4 { margin: var(--s4) 0 var(--s2); }

/* download */
.dl { display: grid; gap: var(--s4); grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr)); }
.dl .card { display: flex; flex-direction: column; gap: var(--s2); }
.dl .card .btn { margin-top: auto; }
.dl .card.mine { border-color: var(--accent-line); background: linear-gradient(var(--bg-raised), var(--bg-raised)) padding-box; }
.dl .os { display: flex; align-items: center; justify-content: space-between; }
.dl .os h3 { font-size: 1.25rem; }
.dl .spacer { flex: 1; min-height: var(--s4); }
.dl-cli { margin-top: var(--s6); display: grid; justify-items: center; gap: var(--s3); }
.notice { display: flex; gap: var(--s3); align-items: flex-start; padding: var(--s3) var(--s4); border-radius: var(--r);
  border: 1px solid var(--line-strong); background: var(--bg-raised); font-size: .8125rem; color: var(--text-muted); }
.notice::before { content: ""; width: 8px; height: 8px; margin-top: .45em; flex: none; background: var(--warn); }
.notice.good::before { background: var(--accent); }
.notice.bad { border-color: #5a2a26; background: var(--fail-wash); color: #f0b1ab; }
.notice.bad::before { background: var(--fail); }
.notice.warn { border-color: #4a3a12; background: var(--warn-wash); color: #e9c77a; }

/* pricing */
.plans { display: grid; gap: var(--s4); grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr)); align-items: stretch; }
.plan { display: flex; flex-direction: column; }
.plan.pop { border-color: var(--accent); box-shadow: 0 0 0 1px var(--accent), 0 30px 80px -40px rgba(233, 158, 0, .3); }
.plan .top { display: flex; justify-content: space-between; align-items: center; gap: var(--s2); }
.plan h3 { font-size: 1.125rem; margin: 0; }
.plan .price { margin: var(--s5) 0 var(--s1); display: flex; align-items: baseline; gap: var(--s2); }
.plan .price b { font: 700 3.25rem/1 var(--display); letter-spacing: -.05em; }
.plan .price span { color: var(--text-faint); font-size: .8125rem; }
.plan .quota { color: var(--accent); font-size: .8125rem; }
.plan .btn { margin: var(--s5) 0; }
.plan .ticks { margin-top: 0; }
.pay-row { margin-top: var(--s6); text-align: center; color: var(--text-faint); font-size: .75rem; }

/* faq */
.faq { border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { list-style: none; cursor: pointer; display: flex; gap: var(--s3); align-items: baseline;
  padding: var(--s5) 0; font-weight: 500; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::before { content: "\276F"; color: var(--accent); transition: transform var(--med) var(--ease); flex: none; }
.faq details[open] summary::before { transform: rotate(90deg); }
.faq summary:hover { color: var(--accent-hover); }
.faq details p { padding: 0 0 var(--s5) 2.2ch; color: var(--text-muted); font-size: .875rem; max-width: 70ch; }

/* cta */
.cta { text-align: center; }
.cta .markfield { max-width: 560px; margin: 0 auto var(--s5); aspect-ratio: 5 / 2; border: 0; background: transparent;
  -webkit-mask-image: radial-gradient(70% 80% at 50% 50%, #000 55%, transparent 100%); mask-image: radial-gradient(70% 80% at 50% 50%, #000 55%, transparent 100%); }
.cta .actions { justify-content: center; }

/* footer */
.footer { border-top: 1px solid var(--line); padding-block: var(--s8) var(--s6); background: var(--bg-sunken); }
.foot-grid { display: grid; gap: var(--s6); grid-template-columns: repeat(auto-fit, minmax(min(100%, 170px), 1fr)); }
.foot-grid .about { grid-column: 1 / -1; max-width: 42ch; }
@media (min-width: 900px) { .foot-grid { grid-template-columns: 2fr repeat(3, 1fr); } .foot-grid .about { grid-column: auto; } }
.foot-grid h4 { font-size: .6875rem; letter-spacing: .12em; color: var(--text-faint); margin-bottom: var(--s3); font-weight: 500; }
.foot-grid nav { display: grid; gap: var(--s2); }
.foot-grid nav a { color: var(--text-muted); text-decoration: none; font-size: .8125rem; }
.foot-grid nav a:hover { color: var(--accent); }
.legal { margin-top: var(--s7); padding-top: var(--s5); border-top: 1px solid var(--line); display: flex; flex-wrap: wrap;
  justify-content: space-between; gap: var(--s3); color: var(--text-faint); font-size: .75rem; }

/* ---------------------------------------------------------- platform --- */
.platform { display: grid; gap: var(--s4); grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr)); }
.prod { display: flex; flex-direction: column; gap: var(--s3); }
.prod .top { display: flex; align-items: center; justify-content: space-between; gap: var(--s3); }
.prod .logo { height: 18px; }
.prod h3 { font-size: 1.25rem; }
.prod p { flex: 1; }
.prod .more { color: var(--accent); font-size: .8125rem; text-decoration: none; display: inline-flex; gap: 6px; align-items: center; }
.prod .more svg { width: 14px; height: 14px; }
.prod .more:hover { color: var(--accent-hover); }

/* ----------------------------------------------------------- compose --- */
.compose { display: grid; gap: var(--s6); align-items: center; margin-top: clamp(48px, 7vw, 80px);
  padding: var(--s5); border: 1px solid var(--line); border-radius: var(--r-lg); background: var(--bg-sunken); }
@media (min-width: 960px) { .compose { grid-template-columns: minmax(0, 1.25fr) minmax(0, .75fr); padding: var(--s6); } }
.compose-fig { height: clamp(330px, 42vw, 400px); }
.compose-cap { display: grid; gap: var(--s2); min-height: 4.5em; }
.compose-cap b { font: 700 clamp(1.4rem, 1.1rem + 1.2vw, 2rem)/1.1 var(--display); letter-spacing: -.03em; color: var(--accent); }
.compose-cap span { color: var(--text-muted); font-size: .8125rem; }

/* ------------------------------------------------------------ market --- */
.market { display: grid; gap: clamp(32px, 5vw, 64px); align-items: center; }
@media (min-width: 960px) { .market { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); } }
.econ { aspect-ratio: 1 / 1; max-width: 520px; width: 100%; margin-inline: auto; color: var(--accent); --mark-block: var(--accent); }
.shelves { display: grid; gap: var(--s3); grid-template-columns: repeat(auto-fit, minmax(min(100%, 200px), 1fr)); margin-top: var(--s6); }
.shelf { border: 1px solid var(--line); border-radius: var(--r); padding: var(--s4); background: var(--bg-raised); }
.shelf b { display: flex; align-items: center; gap: var(--s2); font-size: .875rem; }
.shelf span { display: block; margin-top: var(--s1); color: var(--text-muted); font-size: .8125rem; }

/* operated-by line */
.operated { display: flex; gap: var(--s4); align-items: center; justify-content: center; flex-wrap: wrap; text-align: center;
  padding: var(--s5) var(--gutter); border-top: 1px solid var(--line); color: var(--text-muted); font-size: .8125rem; }
.operated .logo { height: 16px; }

/* ----------------------------------------------------------- reveal --- */
/* only hidden when JS has said it will reveal them */
.js [data-reveal] { opacity: 0; transform: translateY(14px); transition: opacity 600ms var(--ease), transform 600ms var(--ease);
  transition-delay: calc(var(--i, 0) * 70ms); }
.js [data-reveal].is-in { opacity: 1; transform: none; }

/* ------------------------------------------------- auth + account --- */
.shell-top { border-bottom: 1px solid var(--line); }
.shell-top .nav-in { height: 60px; }
.auth { min-height: calc(100vh - 61px); display: grid; place-items: center; padding: var(--s7) var(--gutter); }
.auth-card { width: 100%; max-width: 420px; }
.auth-card h1 { font-size: clamp(1.9rem, 1.5rem + 1.6vw, 2.5rem); }
.auth-card .sub { margin-top: var(--s3); color: var(--text-muted); font-size: .875rem; }
.form { display: grid; gap: var(--s5); margin-top: var(--s6); }
.field { display: grid; gap: var(--s2); }
.field > span { font-size: .75rem; color: var(--text-muted); }
.input { width: 100%; min-height: 46px; padding: 0 var(--s4); border: 1px solid var(--line-strong); border-radius: var(--r);
  background: var(--bg-sunken); color: var(--text); font-size: .875rem; transition: border-color var(--fast), box-shadow var(--fast); }
.input:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 1px var(--accent); }
.input[aria-invalid="true"] { border-color: var(--fail); }
.input::placeholder { color: var(--text-faint); }
.hint { font-size: .75rem; color: var(--text-faint); }
.hint.bad { color: var(--fail); }
select.input { cursor: pointer; }
.swap { margin-top: var(--s5); font-size: .8125rem; color: var(--text-muted); }
.swap a { color: var(--accent); }

.acct { padding-block: var(--s7) var(--s9); }
.acct-head { display: flex; flex-wrap: wrap; gap: var(--s4); align-items: end; justify-content: space-between; margin-bottom: var(--s6); }
.acct-head h1 { font-size: clamp(1.9rem, 1.4rem + 2vw, 2.75rem); }
.acct-grid { display: grid; gap: var(--s4); }
@media (min-width: 960px) { .acct-grid.two { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); } }
.panel { border: 1px solid var(--line); border-radius: var(--r-lg); background: var(--bg-raised); min-width: 0; }
.panel > header { display: flex; justify-content: space-between; align-items: end; gap: var(--s3); padding: var(--s5) var(--s5) 0; flex-wrap: wrap; }
.panel > header .cmd { margin-bottom: var(--s1); }
.panel > header h2 { font-size: 1.25rem; letter-spacing: -.02em; }
.panel > .bd { padding: var(--s5); }
.panel code.aside { font-size: .75rem; color: var(--text-faint); }
.balance { font: 700 clamp(2.4rem, 2rem + 2vw, 3.25rem)/1 var(--display); letter-spacing: -.05em; }
.balance.neg { color: var(--fail); }
.amounts { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--s2); }
@media (max-width: 479px) { .amounts { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.amounts .btn { --h: 56px; font: 700 1.25rem/1 var(--display); }
.row-form { display: flex; gap: var(--s2); margin-top: var(--s3); flex-wrap: wrap; }
.row-form .input { flex: 1 1 180px; min-width: 0; }
.money { position: relative; flex: 1 1 160px; }
.money span { position: absolute; left: var(--s4); top: 50%; transform: translateY(-50%); color: var(--text-faint); }
.money .input { padding-left: calc(var(--s4) + 1.4ch); }
.list { list-style: none; margin: 0; padding: 0; border: 1px solid var(--line); border-radius: var(--r); }
.list li { display: flex; align-items: center; justify-content: space-between; gap: var(--s3); padding: var(--s3) var(--s4); font-size: .8125rem; }
.list li + li { border-top: 1px solid var(--line); }
.list .mono-s { font-size: .75rem; color: var(--text-muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.list .min { min-width: 0; }
.btn-danger { background: transparent; color: var(--fail); border-color: #5a2a26; }
.btn-danger:hover { background: var(--fail-wash); }
.keyreveal { padding: var(--s4); border: 1px solid var(--accent-line); border-radius: var(--r); background: var(--accent-wash); display: grid; gap: var(--s3); margin-bottom: var(--s4); }
.keyreveal code { display: block; padding: var(--s2) var(--s3); border-radius: var(--r-sm); background: var(--bg-sunken); word-break: break-all; font-size: .75rem; }
.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--r); }
table { width: 100%; border-collapse: collapse; font-size: .8125rem; }
th { text-align: left; font-weight: 500; color: var(--text-faint); font-size: .6875rem; letter-spacing: .1em; text-transform: uppercase; padding: var(--s3) var(--s4); border-bottom: 1px solid var(--line); white-space: nowrap; }
td { padding: var(--s3) var(--s4); border-bottom: 1px solid var(--line); white-space: nowrap; }
tr:last-child td { border-bottom: 0; }
td.r, th.r { text-align: right; }
td.plus { color: var(--accent); }
.steps-list { list-style: none; margin: 0; padding: 0; display: grid; gap: var(--s5); }
.steps-list li { display: grid; grid-template-columns: 28px minmax(0, 1fr); gap: var(--s3); }
.steps-list .n { width: 26px; height: 26px; display: grid; place-items: center; border: 1px solid var(--accent-line); color: var(--accent); font-size: .75rem; }
.steps-list h3 { font: 700 .9375rem/1.4 var(--mono); }
.steps-list p { color: var(--text-muted); font-size: .8125rem; margin-top: var(--s1); }
.steps-list .cline { width: 100%; margin-top: var(--s2); }
.lbl-s { margin-top: var(--s4); font-size: .6875rem; color: var(--text-faint); letter-spacing: .1em; text-transform: uppercase; }
.step-tag { font-size: .6875rem; color: var(--accent); letter-spacing: .12em; text-transform: uppercase; }
.loading { color: var(--text-faint); font-size: .8125rem; }
.loading::after { content: ""; display: inline-block; width: .55em; height: 1em; vertical-align: -.15em; margin-left: 4px; background: var(--text-faint); animation: blink 1.1s steps(1) infinite; }
.toast { position: fixed; left: 50%; bottom: var(--s5); transform: translateX(-50%); z-index: 90; max-width: min(560px, calc(100vw - 32px)); }

/* --------------------------------------------------- reduced motion --- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important;
    transition-duration: .001ms !important; transition-delay: 0ms !important; scroll-behavior: auto !important; }
  .caret, .live-dot, .term-body .cur::after, .loading::after { animation: none !important; }
  .ticker-track { animation: none !important; flex-wrap: wrap; width: auto; justify-content: center; row-gap: var(--s2); padding-inline: var(--gutter); }
  .ticker-track [aria-hidden] { display: none; }
}

/* the workbench page before the agent has opened anything */
.page[data-state="blank"] > * { display: none; }
.page[data-state="blank"]::after { content: "about:blank"; }

/* grid children that hold code must be allowed to shrink below their content */
.gw > *, .market > *, .split > *, .compose > *, .live-grid > *, .acct-grid > * { min-width: 0; }
.shell-top .nav-cta { margin-left: auto; }

/* =================================================== ProjectX additions === */
.pass { color: var(--ok); }
.tag { display: inline-flex; align-items: center; height: 20px; padding: 0 6px; font-size: .6875rem; font-weight: 700; letter-spacing: .06em; white-space: nowrap; }
.tag-live { color: var(--ok); background: rgba(78, 191, 110, .1); }
.tag-beta { color: var(--accent); background: var(--accent-wash); }
.lic { font-size: .6875rem; color: var(--text-faint); border: 1px solid var(--line); padding: 1px 6px; white-space: nowrap; }

/* hero */
.hero .kicker { display: grid; gap: 4px; font-size: .8125rem; color: var(--text-muted); margin-bottom: var(--s5); }
.hero .kicker b { color: var(--accent); font-weight: 500; }
.hero h1 .dim { color: var(--text-muted); }
.hero-sub .hero h1 { font-size: clamp(2rem, 1.2rem + 3vw, 3.6rem); }
.page-hero { padding-block: clamp(40px, 7vw, 88px) clamp(32px, 5vw, 56px); position: relative; overflow: hidden; }
.page-hero .hero-grid { align-items: end; }
.page-hero h1 { font-size: clamp(2.1rem, 1.2rem + 3.4vw, 4rem); margin-top: var(--s3); }
.page-hero .lede { margin-top: var(--s4); }
.page-hero .markfield { aspect-ratio: 16 / 9; }
.for { font-size: .8125rem; color: var(--text-faint); margin-top: var(--s3); }

/* command-line tabs */
.tabs-term .tabbar { display: flex; overflow-x: auto; border-bottom: 1px solid var(--line); background: var(--bg-raised); scrollbar-width: none; }
.tabs-term .tabbar button { flex: none; min-height: 40px; padding: 0 var(--s4); border: 0; border-right: 1px solid var(--line); background: transparent; color: var(--text-muted); font-size: .75rem; cursor: pointer; }
.tabs-term .tabbar button[aria-selected="true"] { color: var(--accent); background: var(--bg-sunken); box-shadow: inset 0 -2px var(--accent); }
.tabs-term .tabbar button:hover { color: var(--text); }
.tabs-term .tabbar .replay { margin-left: auto; border-left: 1px solid var(--line); border-right: 0; }
.tl { white-space: pre; }
.tl .s { display: inline-block; width: 2ch; color: var(--text-faint); }
.tl.cmd { color: var(--text); font-weight: 500; }
.tl.cmd .s { color: var(--accent); }
.tl.pass { color: var(--ok); }
.tl.dim { color: var(--text-faint); }
.tl.out { color: var(--text-muted); }
.note-mono { margin-top: var(--s3); color: var(--text-faint); font-size: .75rem; }

/* about */
.about { display: grid; gap: var(--s2); font-size: clamp(1rem, .95rem + .3vw, 1.1875rem); color: var(--text-muted); max-width: 64ch; }
.about p::before { content: "> "; color: var(--accent); }
.about b { color: var(--text); font-weight: 500; }

/* gates */
.gates-fig { margin: 0; }
.gates { height: 210px; border: 1px solid var(--line); border-radius: var(--r-lg); background: var(--bg-sunken); color: var(--accent); --mark-block: var(--accent); }
.gates-fig figcaption { margin-top: var(--s2); color: var(--text-faint); font-size: .6875rem; }
.gate-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--r-lg); overflow: hidden; }
.gate-list li { background: var(--bg-raised); padding: var(--s4) var(--s5); display: grid; grid-template-columns: 9ch 9ch minmax(0, 1fr); gap: var(--s4); align-items: baseline; font-size: .8125rem; }
.gate-list .pass { white-space: nowrap; }
.gate-list .gn { color: var(--text-faint); }
.gate-list .gd { color: var(--text-muted); }
.gate-list b { color: var(--text); font-weight: 500; display: block; }
@media (max-width: 599px) { .gate-list li { grid-template-columns: minmax(0, 1fr) auto; } .gate-list .gd { grid-column: 1 / -1; } }

/* tools */
.tool-list { display: grid; gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--r-lg); overflow: hidden; }
.tool { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: var(--s2) var(--s4); padding: var(--s4) var(--s5); background: var(--bg-raised); text-decoration: none; transition: background var(--fast); }
.tool:hover { background: var(--bg-hover); }
.tool:hover .tn { color: var(--accent); }
.tool .tn { font-weight: 700; font-size: .9375rem; color: var(--text); transition: color var(--fast); overflow-wrap: anywhere; }
.tool .tn .p { color: var(--accent); }
.tool .td { grid-column: 1 / -1; color: var(--text-muted); font-size: .8125rem; max-width: 80ch; }
.group-h { display: flex; flex-wrap: wrap; align-items: baseline; gap: var(--s3); margin: var(--s7) 0 var(--s3); font-size: .8125rem; }
.group-h b { color: var(--accent); font-weight: 500; }
.group-h span { color: var(--text-faint); }
.big-count { display: flex; align-items: center; gap: var(--s5); }
.big-count .digits { height: 72px; width: 120px; color: var(--accent); --mark-block: var(--accent); }

/* code */
.code .term-body .fn { color: var(--accent); }
.code .term-body .st { color: var(--ok); }

/* verify box */
.vbox { display: grid; gap: var(--s4); }
@media (min-width: 980px) { .vbox { grid-template-columns: minmax(0, 1.25fr) minmax(0, .75fr); } }
.vbox > * { min-width: 0; }
.editor { border: 1px solid var(--line); border-radius: var(--r-lg); background: var(--bg-sunken); overflow: hidden; display: flex; flex-direction: column; }
.editor.drag { border-color: var(--accent); box-shadow: 0 0 0 1px var(--accent); }
.editor textarea { flex: 1; min-height: 360px; width: 100%; resize: vertical; border: 0; outline: none; padding: var(--s4) var(--s5); background: transparent; color: var(--text);
  font: 400 .78rem/1.7 var(--mono); tab-size: 2; white-space: pre; overflow: auto; }
.editor .foot { display: flex; flex-wrap: wrap; align-items: center; gap: var(--s2); padding: var(--s3) var(--s4); border-top: 1px solid var(--line); background: var(--bg-raised); }
.editor .foot .faint { margin-left: auto; font-size: .75rem; }
.vresult { border: 1px solid var(--line); border-radius: var(--r-lg); background: var(--bg-raised); padding: var(--s5); display: grid; gap: var(--s4); align-content: start; }
.digestgrid { aspect-ratio: 1 / 1; width: 100%; max-width: 300px; margin-inline: auto; color: var(--accent); --mark-block: var(--accent); }
.vline { font-size: .75rem; color: var(--text-muted); display: grid; gap: 2px; }
.vline code { color: var(--text); word-break: break-all; font-size: .72rem; }
.vstatus { font-weight: 700; font-size: .875rem; display: flex; gap: var(--s2); align-items: center; }
.vstatus::before { content: ""; width: 8px; height: 8px; background: var(--text-faint); }
.vstatus.ok { color: var(--ok); } .vstatus.ok::before { background: var(--ok); }
.vstatus.bad { color: var(--fail); } .vstatus.bad::before { background: var(--fail); }
.vstatus.err { color: var(--warn); } .vstatus.err::before { background: var(--warn); }

/* surfaces table */
.ls { border: 1px solid var(--line); border-radius: var(--r-lg); overflow: hidden; }
.ls-head, .ls-row { display: grid; grid-template-columns: 8ch 12ch 9ch minmax(0, 1fr) minmax(0, 15rem); gap: var(--s4); padding: var(--s4) var(--s5); align-items: baseline; }
.ls-head { font-size: .6875rem; letter-spacing: .12em; color: var(--text-faint); background: var(--bg-sunken); border-bottom: 1px solid var(--line); }
.ls-row { font-size: .8125rem; text-decoration: none; background: var(--bg-raised); transition: background var(--fast); }
.ls-row + .ls-row { border-top: 1px solid var(--line); }
.ls-row:hover { background: var(--bg-hover); }
.ls-row .c { color: var(--accent); }
.ls-row b { font-weight: 700; }
.ls-row .w { color: var(--text-muted); }
.ls-row .pr { color: var(--text-faint); font-size: .75rem; }
.ls-foot { padding: var(--s3) var(--s5); font-size: .75rem; color: var(--text-faint); background: var(--bg-sunken); border-top: 1px solid var(--line); }
@media (max-width: 859px) {
  .ls-head { display: none; }
  .ls-row { grid-template-columns: minmax(0, 1fr) auto; gap: var(--s1) var(--s3); }
  .ls-row .c { display: none; }
  .ls-row .w, .ls-row .pr { grid-column: 1 / -1; }
}

/* principles */
.principles { display: grid; gap: var(--s4); grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr)); }
.principles .n { color: var(--text-faint); font-size: .75rem; }
.principles h3 { margin: var(--s2) 0; font-size: 1.125rem; }

/* key/value summary */
.kv { display: grid; grid-template-columns: minmax(0, 14ch) minmax(0, 1fr); border: 1px solid var(--line); border-radius: var(--r-lg); overflow: hidden; }
.kv dt, .kv dd { margin: 0; padding: var(--s3) var(--s5); border-bottom: 1px solid var(--line); font-size: .8125rem; }
.kv dt { color: var(--text-faint); font-size: .6875rem; letter-spacing: .12em; background: var(--bg-sunken); }
.kv dd { background: var(--bg-raised); color: var(--text); overflow-wrap: anywhere; }
.kv dt:nth-last-child(2), .kv dd:last-child { border-bottom: 0; }
.kv dd a { color: var(--accent); }
@media (max-width: 599px) { .kv { grid-template-columns: minmax(0, 1fr); } .kv dt { border-bottom: 0; padding-bottom: 0; } }
.comment { margin-top: var(--s3); color: var(--text-faint); font-size: .75rem; }

/* product page blocks */
.prob { border-left: 2px solid var(--accent); padding: var(--s2) 0 var(--s2) var(--s5); color: var(--text-muted); max-width: 66ch; font-size: 1rem; }
.gets { list-style: none; margin: 0; padding: 0; display: grid; gap: var(--s3); }
.gets li { display: flex; gap: var(--s3); color: var(--text-muted); font-size: .9375rem; }
.gets li::before { content: "\203A"; color: var(--accent); flex: none; }
.pricing { display: grid; gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--r-lg); overflow: hidden; }
.pricing div { display: flex; justify-content: space-between; gap: var(--s4); padding: var(--s4) var(--s5); background: var(--bg-raised); font-size: .875rem; flex-wrap: wrap; }
.pricing b { font: 700 1.125rem/1.2 var(--display); color: var(--text); letter-spacing: -.02em; }
.pricing span { color: var(--text-muted); }
.startcmds { display: grid; gap: var(--s3); }
.startcmds .lbl { font-size: .6875rem; letter-spacing: .12em; color: var(--text-faint); text-transform: uppercase; }
.startcmds .cline { width: 100%; }
.twocol { display: grid; gap: clamp(32px, 5vw, 56px); }
@media (min-width: 960px) { .twocol { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); } }
.twocol > * { min-width: 0; }
.others { display: flex; flex-wrap: wrap; gap: var(--s2); align-items: center; font-size: .8125rem; color: var(--text-faint); }
.others a { padding: var(--s2) var(--s3); border: 1px solid var(--line); color: var(--text-muted); text-decoration: none; }
.others a:hover { color: var(--accent); border-color: var(--accent-line); }
.cats { display: flex; flex-wrap: wrap; gap: var(--s2); }
.cats span { padding: var(--s1) var(--s3); border: 1px solid var(--line); font-size: .75rem; color: var(--text-muted); }

/* run card (verify) */
.run { border: 1px solid var(--line); border-radius: var(--r-lg); background: var(--bg-sunken); overflow: hidden; }
.run .rows { padding: var(--s4) var(--s5); display: grid; gap: var(--s3); font-size: .8125rem; }
.run .row { display: grid; grid-template-columns: 8ch minmax(0, 1fr) auto; gap: var(--s3); }
.run .row .k { color: var(--text-faint); }
.run .row .d { color: var(--text-muted); }
.run .meta { border-top: 1px solid var(--line); padding: var(--s4) var(--s5); display: grid; gap: var(--s2); font-size: .75rem; }
.run .meta div { display: grid; grid-template-columns: 10ch minmax(0, 1fr); gap: var(--s3); }
.run .meta span:first-child { color: var(--text-faint); }
.run .meta code { word-break: break-all; }

/* on-chain table */
.pk { width: 100%; border-collapse: collapse; font-size: .8125rem; }
.pk th { text-align: left; }

/* legal: less -N */
.less { border: 1px solid var(--line); border-radius: var(--r-lg); background: var(--bg-sunken); overflow: hidden; }
.less ol { list-style: none; margin: 0; padding: var(--s4) 0; counter-reset: ln; font-size: .8125rem; line-height: 1.85; }
.less li { counter-increment: ln; display: grid; grid-template-columns: 5ch minmax(0, 1fr); gap: var(--s3); padding: 0 var(--s5) 0 0; }
.less li::before { content: counter(ln); text-align: right; color: var(--text-faint); }
.less li.h1 { color: var(--text); font-weight: 700; }
.less li.h2 { color: var(--accent); }
.less li.p { color: var(--text-muted); }
.less .end { padding: var(--s2) var(--s5); background: var(--text); color: var(--bg); font-size: .75rem; display: inline-block; margin: 0 0 var(--s4) var(--s5); }
.less .mod { padding: var(--s3) var(--s5); border-top: 1px solid var(--line); color: var(--text-faint); font-size: .75rem; }

/* contact */
.mail-big { display: inline-flex; gap: var(--s3); align-items: baseline; font: 700 clamp(1.2rem, 1rem + 1.2vw, 1.75rem)/1.2 var(--display); letter-spacing: -.02em; text-decoration: none; overflow-wrap: anywhere; }
.mail-big span { color: var(--accent); }
.mail-big:hover { color: var(--accent); }
.form-grid { display: grid; gap: var(--s4); grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr)); }
.form-grid .full { grid-column: 1 / -1; }
textarea.input { min-height: 140px; padding: var(--s3) var(--s4); resize: vertical; line-height: 1.6; }
.hp-field { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.others-mail { margin-top: var(--s3); padding-left: var(--s4); border-left: 1px solid var(--line); display: grid; gap: var(--s1); font-size: .8125rem; }
.others-mail a { color: var(--text-muted); }
.family { display: flex; align-items: center; gap: var(--s3); color: var(--text-faint); font-size: .75rem; text-decoration: none; }
.family .logo { height: 14px; aspect-ratio: 46 / 9; }
.family:hover { color: var(--text); }
/* the home headline is a sentence, not a slogan: set it a step smaller */
.hero h1 { font-size: clamp(2.05rem, 1.05rem + 3.1vw, 3.75rem); line-height: 1.04; }
@media (min-width: 960px) { .hero .hero-grid { grid-template-columns: minmax(0, 1.4fr) minmax(0, .6fr); } }
.page-hero .markfield { border: 0; border-radius: 0; background: transparent;
  -webkit-mask-image: radial-gradient(75% 75% at 50% 50%, #000 55%, transparent 100%); mask-image: radial-gradient(75% 75% at 50% 50%, #000 55%, transparent 100%); }
.startcmds { grid-template-columns: minmax(0, 1fr); }
.cline code { min-width: 0; }

/* ================================================= agentic hub additions === */
.boundary, .beat, .stream.mstream { border: 1px solid var(--line); border-radius: var(--r-lg); background: var(--bg-sunken); color: var(--accent); --mark-block: var(--accent); }
.boundary { height: 210px; }
.beat { height: 150px; }
.econ.dev { max-width: 460px; }
.fig-cap { margin-top: var(--s2); color: var(--text-faint); font-size: .6875rem; }
.vision { font: 700 clamp(1.4rem, 1rem + 1.8vw, 2.25rem)/1.25 var(--display); letter-spacing: -.03em; color: var(--text); max-width: 30ch; }
.vision em { font-style: normal; color: var(--accent); }
.pillars { display: grid; gap: var(--s4); grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr)); margin-top: var(--s7); }
.pillar { border-top: 2px solid var(--accent); padding-top: var(--s4); }
.pillar .k { font-size: .6875rem; letter-spacing: .12em; color: var(--text-faint); text-transform: uppercase; }
.pillar h3 { margin: var(--s2) 0; font-size: 1.125rem; }
.pillar p { color: var(--text-muted); font-size: .875rem; }
.citizen { display: flex; flex-direction: column; gap: var(--s4); }
.citizen .top { display: flex; align-items: center; justify-content: space-between; gap: var(--s3); flex-wrap: wrap; }
.citizen h3 { font-size: clamp(1.6rem, 1.2rem + 1.4vw, 2.25rem); letter-spacing: -.04em; margin: 0; }
.citizen .role { color: var(--accent); font-size: .8125rem; }
.citizen blockquote { margin: 0; padding-left: var(--s4); border-left: 2px solid var(--line-strong); color: var(--text-muted); font-size: .9375rem; }
.facts-kv { display: grid; grid-template-columns: minmax(0, 17ch) minmax(0, 1fr); gap: 6px var(--s4); font-size: .8125rem; }
.facts-kv dt { color: var(--text-faint); margin: 0; }
.facts-kv dd { margin: 0; color: var(--text); overflow-wrap: anywhere; }
.facts-kv dd a { color: var(--accent); }
.facts-kv .num { font: 700 1.125rem/1.2 var(--display); letter-spacing: -.02em; }
.addr { font-size: .72rem; color: var(--text-muted); word-break: break-all; text-decoration: none; }
.addr:hover { color: var(--accent); }
.flow { display: grid; gap: var(--s2); margin-top: var(--s3); font-size: .75rem; color: var(--text-muted); }
.flow code { color: var(--text); }
.status-row { display: flex; flex-wrap: wrap; gap: var(--s2); }
.quote-big { font: 700 clamp(1.25rem, 1rem + 1.2vw, 1.75rem)/1.3 var(--display); letter-spacing: -.025em; max-width: 34ch; }
.quote-big em { font-style: normal; color: var(--accent); }
.who { display: grid; gap: var(--s4); grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr)); }
.who .card b { display: block; font-size: 1rem; margin-bottom: var(--s2); }
.who .card p { font-size: .8125rem; }
.lessons li { color: var(--text-muted); font-size: .875rem; }
.lessons b { color: var(--text); }
@media (max-width: 439px) { .nav-cta .btn-primary { display: none; } }
.btn-outline.btn-sm { white-space: normal; text-align: left; height: auto; min-height: 36px; padding-block: 8px; line-height: 1.35; }
@media (max-width: 599px) { .facts-kv { grid-template-columns: minmax(0, 1fr); gap: 2px; } .facts-kv dd { margin-bottom: 8px; } }
