/* 6769 Skills. Claude identity: ivory, slate ink, clay. One button pair, one card, one radius scale. */
:root {
  --ivory: #faf9f5;
  --paper: #ffffff;
  --oat: #f0eee6;
  --oat-2: #e8e6dc;
  --ink: #141413;
  --ink-2: #3d3d3a;
  --muted: #6b6a64;
  --rule: #e3e1d8;
  --rule-2: #d1cfc5;
  --clay: #d97757;
  --clay-deep: #b4532f;
  --clay-hover: #9e4627;
  --clay-tint: #f6e6dc;
  --top-bg: rgba(250, 249, 245, 0.9);
  --fade-0: rgba(250, 249, 245, 0);
  --on-ink: #ffffff;
  --btn-hover: #2b2b29;
  --on-clay: #ffffff;
  --code-bg: #141413;
  --code-fg: #f0eee6;
  --code-btn: #33332f;
  --code-dim: #8f8d86;
  --code-dir: #f3c58f;
  --dust: #c9c5b8;
  --mono-filter: none;
  color-scheme: light;

  --tab-start: #f3dfa2; --tab-method: #d6e2ee; --tab-review: #dce6cf; --tab-design: #f3d3c4; --tab-motion: #e8d5c0;
  --tab-docs: #efe3c8; --tab-memory: #cfe4e2; --tab-research: #dde3c3; --tab-growth: #f6d9c9; --tab-business: #e2ddd2;
  --tab-security: #ebcfcb; --tab-cloud: #d7e0ea; --tab-niche: #e9dfcf; --tab-dirs: #e6e4dc;

  --serif: "Source Serif 4", "Tiempos Headline", Georgia, serif;
  --sans: "Hanken Grotesk", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  --mono: "JetBrains Mono", ui-monospace, "SF Mono", Menlo, monospace;
  --ease-out: cubic-bezier(0.23, 1, 0.32, 1);
  --ease-drawer: cubic-bezier(0.32, 0.72, 0, 1);
  --r-s: 8px; --r-m: 12px; --r-l: 16px; --r-xl: 22px;
  --shadow-s: 0 1px 2px rgba(20, 20, 19, 0.06);
  --shadow-m: 0 12px 28px -14px rgba(20, 20, 19, 0.28), 0 2px 6px rgba(20, 20, 19, 0.05);
  --shadow-l: 0 30px 70px -30px rgba(20, 20, 19, 0.4), 0 8px 20px -10px rgba(20, 20, 19, 0.15);
  --gutter: 28px; --max: 1260px; --top: 64px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
html.locked { overflow: hidden; }
body { margin: 0; background: var(--ivory); color: var(--ink); font: 400 16px/1.55 var(--sans); -webkit-font-smoothing: antialiased; overflow-x: hidden; }
img { display: block; max-width: 100%; }
a { color: inherit; }
code, pre, kbd { font-family: var(--mono); }
code { font-size: 0.86em; background: var(--oat); padding: 0.14em 0.4em; border-radius: 5px; }
button, select, input { font: inherit; color: inherit; }
:focus-visible { outline: 2.5px solid var(--clay-deep); outline-offset: 2px; border-radius: 6px; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: 12px; top: -48px; background: var(--ink); color: var(--on-ink); padding: 8px 12px; border-radius: 8px; z-index: 100; }
.skip:focus { top: 12px; }
.wrap { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 var(--gutter); }
h1, h2, h3 { margin: 0; font-family: var(--serif); font-weight: 500; letter-spacing: -0.015em; line-height: 1.1; text-wrap: balance; }
h1 { font-size: clamp(34px, 4.2vw, 52px); }
h2 { font-size: clamp(26px, 2.8vw, 36px); }
h3 { font-size: 19px; }
p { text-wrap: pretty; }
.section-sub { color: var(--muted); margin: 10px 0 0; max-width: 62ch; font-size: 17px; }
.mono { font-family: var(--mono); }
.js .ssr { display: none; }
.ssr { padding: 32px var(--gutter); }

/* spark */
.spark-mark svg, .spark-mini svg, .k-spark, .on-spark { fill: var(--clay); display: block; }
.spark-mark { width: 26px; height: 26px; display: block; }
.spark-mark svg { width: 100%; height: 100%; transition: transform 600ms var(--ease-out); }
.brand:hover .spark-mark svg { transform: rotate(90deg); }
.spark-mini { width: 14px; height: 14px; display: inline-block; vertical-align: -2px; margin-right: 6px; }
.spark-mini svg { width: 100%; height: 100%; }
.k-spark { width: 13px; height: 13px; display: inline-block; vertical-align: -1px; margin-right: 6px; }
.cc-spark { color: var(--clay); font-size: 15px; line-height: 1; }

/* ---------- header ---------- */
.top { position: sticky; top: 0; z-index: 40; background: var(--top-bg); backdrop-filter: saturate(1.4) blur(14px); -webkit-backdrop-filter: saturate(1.4) blur(14px); border-bottom: 1px solid transparent; transition: border-color 220ms ease, box-shadow 220ms ease; view-transition-name: top; }
.top.scrolled { border-bottom-color: var(--rule); box-shadow: 0 10px 30px -24px rgba(20, 20, 19, 0.5); }
.top-in { display: flex; align-items: center; gap: 20px; height: var(--top); }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; flex: none; }
.brand-name { font-family: var(--serif); font-size: 21px; font-weight: 400; letter-spacing: -0.015em; color: var(--ink-2); }
.brand-name b { font-weight: 600; color: var(--ink); font-variant-numeric: lining-nums tabular-nums; letter-spacing: -0.03em; }
.nav { display: flex; gap: 2px; overflow-x: auto; scrollbar-width: none; margin-left: 12px; }
.nav::-webkit-scrollbar { display: none; }
.nav a { flex: none; display: inline-flex; align-items: center; gap: 6px; height: 36px; padding: 0 12px; border-radius: 9px; text-decoration: none; font-weight: 550; font-size: 15px; color: var(--ink-2); transition: background-color 160ms ease, color 160ms ease; }
.nav a b { font: 500 12px var(--mono); color: var(--muted); }
.nav a[aria-current] { background: var(--oat-2); color: var(--ink); }
.owner-pill { margin-left: auto; flex: none; display: inline-flex; align-items: center; gap: 8px; height: 38px; padding: 0 14px 0 5px; border-radius: 999px; border: 1px solid var(--rule-2); background: var(--paper); text-decoration: none; font-weight: 600; font-size: 14px; transition: border-color 160ms ease, transform 140ms var(--ease-out); }
.owner-pill img { width: 28px; height: 28px; border-radius: 50%; }
.owner-pill:active { transform: scale(0.97); }
@media (hover: hover) and (pointer: fine) { .nav a:not([aria-current]):hover { background: var(--oat); color: var(--ink); } .owner-pill:hover { border-color: var(--ink); } }
.crumbs ol { list-style: none; display: flex; flex-wrap: wrap; gap: 4px; margin: 0; padding: 14px 0 0; font-size: 13.5px; color: var(--muted); }
.crumbs li + li::before { content: "/"; margin-right: 4px; color: var(--rule-2); }
.crumbs a { text-decoration: none; }
.crumbs a:hover { color: var(--ink); text-decoration: underline; }
.crumbs [aria-current] { color: var(--ink); font-weight: 600; }

/* ---------- buttons and controls ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 42px; padding: 0 18px; border-radius: 10px; border: 1px solid var(--ink); background: var(--ink); color: var(--on-ink); font-weight: 600; font-size: 15px; cursor: pointer; text-decoration: none; white-space: nowrap; transition: transform 140ms var(--ease-out), background-color 160ms ease, border-color 160ms ease; }
.btn:active { transform: scale(0.97); }
.btn.clay { background: var(--clay-deep); border-color: var(--clay-deep); color: var(--on-clay); }
.btn.ghost { background: var(--paper); color: var(--ink); border-color: var(--rule-2); }
.btn.sm { min-height: 36px; padding: 0 13px; font-size: 14px; }
.btn svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.ico-stack { position: relative; width: 16px; height: 16px; flex: none; }
.ico-stack svg { position: absolute; inset: 0; transition: opacity 180ms var(--ease-out), transform 180ms var(--ease-out), filter 180ms var(--ease-out); }
.ico-check { opacity: 0; transform: scale(0.6); filter: blur(2px); }
.copied .ico-copy { opacity: 0; transform: scale(0.6); filter: blur(2px); }
.copied .ico-check { opacity: 1; transform: none; filter: none; }
@media (hover: hover) and (pointer: fine) { .btn:hover { background: var(--btn-hover); } .btn.clay:hover { background: var(--clay-hover); border-color: var(--clay-hover); } .btn.ghost:hover { border-color: var(--ink); background: var(--paper); } }
.pick { display: inline-flex; align-items: center; gap: 6px; font-size: 14px; color: var(--muted); font-weight: 500; }
select { height: 38px; border: 1px solid var(--rule-2); border-radius: 9px; padding: 0 30px 0 11px; font-size: 14.5px; font-weight: 550; color: var(--ink); background: var(--paper) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%236b6a64' stroke-width='2' stroke-linecap='round'%3E%3Cpath d='m7 10 5 5 5-5'/%3E%3C/svg%3E") no-repeat right 9px center / 14px; appearance: none; cursor: pointer; }
.toggle { min-height: 38px; padding: 0 14px; border-radius: 999px; border: 1px solid var(--rule-2); background: var(--paper); cursor: pointer; font-weight: 550; font-size: 14px; color: var(--ink-2); transition: background-color 160ms ease, color 160ms ease, border-color 160ms ease, transform 140ms var(--ease-out); white-space: nowrap; }
.toggle:active { transform: scale(0.97); }
.toggle[aria-pressed="true"] { background: var(--clay-tint); border-color: var(--clay); color: var(--clay-hover); }
.linkish { all: unset; cursor: pointer; color: var(--clay-deep); text-decoration: underline; text-underline-offset: 3px; }
.hero-search, .tb-search { position: relative; }
.hero-search svg, .tb-search svg { position: absolute; left: 14px; top: 50%; width: 18px; height: 18px; transform: translateY(-50%); fill: none; stroke: var(--muted); stroke-width: 2; stroke-linecap: round; pointer-events: none; }
.hero-search input, .tb-search input { width: 100%; height: 46px; border: 1px solid var(--rule-2); background: var(--paper); border-radius: 12px; padding: 0 40px 0 42px; font-size: 16px; outline: none; transition: border-color 160ms ease, box-shadow 160ms ease; }
.hero-search input:focus, .tb-search input:focus { border-color: var(--clay); box-shadow: 0 0 0 3px var(--clay-tint); }
.hero-search kbd, .tb-search kbd { position: absolute; right: 11px; top: 50%; transform: translateY(-50%); font-size: 12px; border: 1px solid var(--rule-2); border-radius: 6px; padding: 1px 7px; color: var(--muted); background: var(--ivory); }

/* Claude Code style box */
.cc-box { background: var(--paper); border: 1.5px solid var(--clay); border-radius: 14px; padding: 14px 16px; box-shadow: var(--shadow-s); }
.cc-head { font: 500 13.5px var(--mono); color: var(--clay-deep); display: flex; gap: 8px; align-items: center; }
.cc-prompt { margin: 10px 0 0; font: 400 14.5px/1.6 var(--mono); color: var(--ink); white-space: pre-wrap; }
.cc-foot { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 14px; padding-top: 12px; border-top: 1px dashed var(--rule-2); flex-wrap: wrap; }

/* ---------- home ---------- */
.hero { overflow-x: clip; display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr); gap: 40px; align-items: center; padding-top: 64px; padding-bottom: 72px; }
.hero h1 { line-height: 1; letter-spacing: -0.025em; }
/* the number is the brand: one giant numeral, digits roll in once */
.h-num { display: block; font-size: clamp(78px, 8.6vw, 132px); line-height: 1; letter-spacing: -0.02em; white-space: nowrap; font-variant-numeric: lining-nums proportional-nums; }
.h-rest { display: block; font-size: clamp(30px, 3.3vw, 46px); line-height: 1.04; letter-spacing: -0.02em; max-width: 15ch; margin-top: 6px; }
/* digits roll inside a window that clips only top and bottom, so the serif curves are never cut */
.odo-d { display: inline-block; height: 1em; vertical-align: top; text-align: center; clip-path: inset(0 -0.4em); }
.odo-col { display: block; transition: transform var(--odo-t, 1600ms) cubic-bezier(0.16, 1, 0.3, 1); will-change: transform; }
.odo-col span { display: block; height: 1em; line-height: 1; }
.lede { font-size: 19px; color: var(--ink-2); margin: 20px 0 26px; max-width: 50ch; }
.hero .cc-box { max-width: 560px; }
.hero-search { max-width: 560px; margin-top: 14px; }
.hero-art { --R: 232px; position: relative; width: calc(var(--R) * 2 + 96px); max-width: 100%; aspect-ratio: 1; justify-self: center; }
.big-spark { position: absolute; inset: 30%; }
.spark-svg { width: 100%; height: 100%; fill: var(--clay); animation: spin 90s linear infinite; }
.orbit-ring { position: absolute; inset: 48px; border-radius: 50%; border: 1px dashed var(--rule-2); animation: spin 140s linear infinite reverse; }
.orb { position: absolute; left: 50%; top: 50%; width: 0; height: 0; transform: rotate(calc(360deg / var(--n) * var(--i))) translateY(calc(var(--R) * -1)); }
.orb-in { position: absolute; left: -40px; top: -40px; width: 80px; display: grid; justify-items: center; gap: 5px; animation: spin-back 140s linear infinite; }
.orb-ico { display: grid; place-items: center; width: 48px; height: 48px; border-radius: 14px; background: var(--paper); box-shadow: var(--shadow-m); outline: 1px solid var(--rule); outline-offset: -1px; }
.orb img { width: 30px; height: 30px; display: block; }
.orb em { font: 500 11.5px var(--mono); font-style: normal; color: var(--muted); white-space: nowrap; }
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes spin-back { from { transform: rotate(calc(-360deg / var(--n) * var(--i))); } to { transform: rotate(calc(-360deg / var(--n) * var(--i) + 360deg)); } }
.agents-strip { background: var(--oat); border-top: 1px solid var(--rule); border-bottom: 1px solid var(--rule); padding: 28px 0 30px; }
.strip-h { font-size: 20px; }
.agent-logos { list-style: none; margin: 16px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 10px; }
.agent-logos li { display: inline-flex; align-items: center; gap: 9px; height: 44px; padding: 0 16px 0 9px; background: var(--paper); border: 1px solid var(--rule); border-radius: 999px; font-weight: 600; font-size: 14.5px; }
.agent-logos img { width: 26px; height: 26px; }
.block { padding-top: 80px; }
.block-head { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; }
.more { color: var(--clay-deep); text-decoration: none; font-weight: 600; white-space: nowrap; }
.more:hover { text-decoration: underline; }
.builds-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 16px; margin-top: 24px; }
.bcard { display: flex; flex-direction: column; gap: 14px; background: var(--paper); border: 1px solid var(--rule); border-radius: var(--r-l); padding: 20px; transition: box-shadow 200ms ease, transform 200ms var(--ease-out), border-color 200ms ease; }
.bcard-link { text-decoration: none; display: grid; gap: 4px; }
.bcard-k { font: 500 12.5px var(--mono); color: var(--muted); display: flex; align-items: center; }
.bcard-link b { font-family: var(--serif); font-weight: 500; font-size: 26px; letter-spacing: -0.015em; line-height: 1.1; }
.bcard-sub { color: var(--ink-2); font-size: 15px; line-height: 1.45; margin-top: 6px; }
.bcard-foot { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-top: auto; padding-top: 12px; border-top: 1px solid var(--rule); }
.faces { display: flex; }
.faces img { width: 28px; height: 28px; border-radius: 50%; border: 2px solid var(--paper); margin-left: -7px; background: var(--oat); transition: transform 260ms var(--ease-out); transition-delay: calc(var(--k, 0) * 22ms); }
.faces img:first-child { margin-left: 0; }
.bcard-n { color: var(--muted); font-size: 13px; }
.bcard .btn { align-self: flex-start; }
@media (hover: hover) and (pointer: fine) { .bcard:hover { box-shadow: var(--shadow-m); transform: translateY(-2px); border-color: var(--rule-2); } .bcard-link:hover b { color: var(--clay-deep); } }
.charts-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; margin-top: 24px; }
.chart { background: var(--paper); border: 1px solid var(--rule); border-radius: var(--r-l); padding: 18px 16px 8px; }
.chart h3 { padding: 0 4px 10px; border-bottom: 1px solid var(--rule); }
.rank { list-style: none; margin: 0; padding: 0; counter-reset: r; }
.rank li { counter-increment: r; }
.rank li + li { border-top: 1px solid var(--rule); }
.rank a { display: grid; grid-template-columns: 22px 36px minmax(0, 1fr) auto; gap: 12px; align-items: center; padding: 10px 4px; border-radius: 10px; text-decoration: none; }
.rank a::before { content: counter(r); font: 500 13.5px var(--mono); color: var(--muted); text-align: right; }
.rank img { width: 36px; height: 36px; border-radius: 10px; outline: 1px solid rgba(20, 20, 19, 0.08); outline-offset: -1px; }
.rk-main { min-width: 0; }
.rk-name { display: block; font-weight: 650; line-height: 1.2; }
.rk-sub { display: block; color: var(--muted); font-size: 13px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.rk-num { font: 600 14.5px var(--mono); font-variant-numeric: tabular-nums; text-align: right; min-width: 6ch; }
.rk-num small { display: block; font: 500 11.5px var(--sans); color: var(--muted); }
@media (hover: hover) and (pointer: fine) { .rank a:hover { background: var(--ivory); } }
.colstrip { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 20px; }
.colchip { display: inline-flex; align-items: center; gap: 8px; min-height: 40px; padding: 0 14px 0 6px; border-radius: 999px; background: var(--paper); border: 1px solid var(--rule); text-decoration: none; font-weight: 600; font-size: 14.5px; transition: border-color 160ms ease; }
.colchip img { width: 26px; height: 26px; border-radius: 50%; }
.colchip b { font: 500 12px var(--mono); color: var(--muted); }
@media (hover: hover) and (pointer: fine) { .colchip:hover { border-color: var(--ink); } }
.steps3 { list-style: none; padding: 0; margin: 22px 0 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; counter-reset: s; }
.steps3 li { counter-increment: s; background: var(--paper); border: 1px solid var(--rule); border-radius: var(--r-l); padding: 20px; color: var(--ink-2); }
.steps3 li::before { content: counter(s); display: grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; background: var(--clay-tint); color: var(--clay-hover); font: 600 14px var(--mono); margin-bottom: 12px; }
.steps3 b { color: var(--ink); display: block; }

/* ---------- library ---------- */
.lib { display: grid; grid-template-columns: 250px minmax(0, 1fr); gap: 36px; padding-top: 18px; padding-bottom: 150px; }
.side { position: sticky; top: calc(var(--top) + 12px); align-self: start; max-height: calc(100svh - var(--top) - 24px); overflow-y: auto; overscroll-behavior: contain; padding: 4px 4px 24px 0; scrollbar-width: thin; }
.side-h { margin: 18px 10px 6px; font: 500 13px var(--mono); color: var(--clay-deep); }
.side-h:first-child { margin-top: 6px; }
.side-item { display: flex; align-items: center; gap: 9px; min-height: 34px; padding: 0 10px; border-radius: 8px; text-decoration: none; font-size: 14.5px; color: var(--ink-2); }
.side-item span { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.side-item b { font: 500 12px var(--mono); color: var(--muted); font-variant-numeric: tabular-nums; }
.side-item i { width: 10px; height: 10px; border-radius: 3px; background: var(--c); box-shadow: inset 0 0 0 1px rgba(20, 20, 19, 0.12); flex: none; }
.side-item img { width: 18px; height: 18px; border-radius: 50%; flex: none; }
.side-item[aria-current] { background: var(--paper); color: var(--ink); font-weight: 600; box-shadow: inset 2px 0 0 var(--clay), var(--shadow-s); }
@media (hover: hover) and (pointer: fine) { .side-item:not([aria-current]):hover { background: var(--oat); color: var(--ink); } }
.lib-head h1 { font-size: clamp(32px, 3.6vw, 46px); }
.lib-head p { color: var(--muted); margin: 10px 0 0; max-width: 66ch; font-size: 16.5px; }
.lib-head .lib-kicker { font: 500 13px var(--mono); color: var(--clay-deep); margin: 0 0 8px; display: flex; align-items: center; }
.lib-who { display: flex; gap: 16px; align-items: center; }
.lib-who img { width: 52px; height: 52px; border-radius: 50%; }
.lib-tools { position: sticky; top: var(--top); z-index: 10; display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin: 22px 0 0; padding: 12px 0; background: linear-gradient(var(--ivory) 80%, var(--fade-0)); }
.lib-tools .tb-search { flex: 1 1 280px; max-width: 460px; }
.lib-tools .tb-search input { height: 40px; }
.side-toggle { display: none; }
.result-line { margin-left: auto; color: var(--muted); font-size: 14px; font-variant-numeric: tabular-nums; }
.cat { margin-top: 30px; }
.cat h2 { font-size: 22px; display: flex; align-items: center; gap: 10px; margin-bottom: 12px; }
.cat h2::before { content: ""; width: 12px; height: 12px; border-radius: 4px; background: var(--c); box-shadow: inset 0 0 0 1px rgba(20, 20, 19, 0.12); }
.cat h2 a { text-decoration: none; }
.cat h2 a:hover { color: var(--clay-deep); }
.cat h2 span { font: 500 13px var(--mono); color: var(--muted); }
.tiles { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 12px; }
.tile { position: relative; background: var(--paper); border: 1px solid var(--rule); border-radius: 14px; transition: border-color 160ms ease, box-shadow 200ms ease, transform 200ms var(--ease-out); }
.tile.on { border-color: var(--clay); box-shadow: 0 0 0 1px var(--clay); }
.tile-main { display: flex; gap: 12px; padding: 14px 52px 14px 14px; text-decoration: none; border-radius: 14px; }
.tile-logo { flex: none; width: 40px; height: 40px; border-radius: 10px; background: var(--oat); outline: 1px solid rgba(20, 20, 19, 0.08); outline-offset: -1px; transition: transform 320ms var(--ease-out); }
.tile-text { min-width: 0; display: grid; gap: 2px; }
.tile-text b { font-size: 15.5px; font-weight: 650; line-height: 1.25; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tile-repo { font: 400 12px var(--mono); color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tile-desc { font-size: 13.5px; color: var(--ink-2); line-height: 1.4; margin-top: 4px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.tile-meta { display: flex; align-items: center; gap: 9px; margin-top: 7px; }
.tile-no { margin-left: auto; font: 500 11.5px var(--mono); color: var(--muted); font-variant-numeric: tabular-nums; letter-spacing: 0.02em; }
.tile-no::before { content: "No."; margin-right: 3px; opacity: 0.7; }
.badge { font: 600 11px/1 var(--sans); font-style: normal; padding: 4px 6px; border-radius: 5px; background: var(--oat); color: var(--ink-2); }
.badge.pack { background: var(--clay-tint); color: var(--clay-hover); }
.stars, .xchip { font: 500 12.5px var(--mono); display: inline-flex; align-items: center; gap: 4px; color: var(--ink-2); font-variant-numeric: tabular-nums; }
.stars svg { width: 12px; height: 12px; fill: #d9a43a; }
.xchip svg { width: 10px; height: 10px; fill: currentColor; }
.tile-add { position: absolute; top: 12px; right: 12px; width: 34px; height: 34px; border-radius: 50%; border: 1px solid var(--rule-2); background: var(--paper); cursor: pointer; display: grid; place-items: center; transition: background-color 160ms ease, border-color 160ms ease, transform 140ms var(--ease-out); }
.tile-add::after { content: ""; position: absolute; inset: -5px; }
.tile-add:active { transform: scale(0.9); }
.tile-add .plus { width: 16px; height: 16px; fill: none; stroke: var(--ink); stroke-width: 2; stroke-linecap: round; transition: transform 200ms var(--ease-out), opacity 160ms ease; }
.tile-add .on-spark { position: absolute; width: 18px; height: 18px; fill: var(--on-clay); opacity: 0; transform: scale(0.4) rotate(-90deg); transition: transform 260ms var(--ease-out), opacity 160ms ease; }
.tile.on .tile-add { background: var(--clay-deep); border-color: var(--clay-deep); }
.tile.on .tile-add .plus { opacity: 0; transform: rotate(90deg); }
.tile.on .tile-add .on-spark { opacity: 1; transform: none; }
@media (hover: hover) and (pointer: fine) { .tile:not(.on):hover { border-color: var(--rule-2); box-shadow: var(--shadow-m); transform: translateY(-2px); } .tile-add:hover { border-color: var(--ink); } .tile.on .tile-add:hover { background: var(--clay-hover); } }
.more-btn { margin-top: 12px; }
.empty { text-align: center; padding: 60px 20px; color: var(--muted); }
.empty-t { font-family: var(--serif); font-size: 24px; color: var(--ink); margin: 0 0 8px; }

/* kit bar: Claude Code input box */
.kitbar { position: fixed; z-index: 30; left: 50%; bottom: 14px; transform: translateX(-50%); width: min(940px, calc(100vw - 24px)); }
.kb-bar { display: flex; align-items: center; gap: 10px; padding: 8px 8px 8px 10px; background: var(--paper); border: 1.5px solid var(--ink); border-radius: 16px; box-shadow: var(--shadow-l); }
.kitbar.has .kb-bar { border-color: var(--clay); }
.kb-sum { all: unset; box-sizing: border-box; cursor: pointer; flex: 1; min-width: 0; display: flex; align-items: center; gap: 8px; padding: 6px 8px; border-radius: 10px; font-size: 14.5px; }
.kb-sum b { font: 600 15px var(--mono); font-variant-numeric: tabular-nums; }
.kb-sum > span:not(.cc-spark) { color: var(--muted); white-space: nowrap; }
.kb-line { flex: 1; min-width: 0; background: none; padding: 0 0 0 10px; margin-left: 4px; border-left: 1px solid var(--rule); color: var(--ink-2); font-size: 13px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; border-radius: 0; }
.kb-sum:focus-visible { outline: 2.5px solid var(--clay-deep); }
@media (hover: hover) and (pointer: fine) { .kb-sum:hover { background: var(--ivory); } }
.kb-panel { margin-bottom: 8px; background: var(--paper); border: 1px solid var(--rule-2); border-radius: 16px; padding: 14px; box-shadow: var(--shadow-l); max-height: 46svh; overflow-y: auto; }
.kb-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.kchip { display: inline-flex; align-items: center; gap: 7px; height: 32px; padding: 0 10px 0 5px; border-radius: 999px; border: 1px solid var(--rule); background: var(--ivory); cursor: pointer; font-size: 13.5px; font-weight: 550; }
.kchip img { width: 22px; height: 22px; border-radius: 50%; }
.kchip span { color: var(--muted); font-size: 16px; line-height: 1; }
.kchip.pop { animation: pop 380ms var(--ease-out); }
@keyframes pop { from { transform: scale(0.7); opacity: 0; } to { transform: none; opacity: 1; } }
.kb-cmd { margin: 12px 0 0; padding: 12px 14px; background: var(--code-bg); color: var(--code-fg); border-radius: 12px; font-size: 13px; line-height: 1.6; white-space: pre-wrap; word-break: break-word; }
.kb-tools { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; }

/* ---------- pages ---------- */
.page-head { padding-top: 34px; }
.page[data-page="builds"] .builds-grid { margin-bottom: 30px; }
.pgroup { margin-top: 34px; }
.pgroup h2 { font-size: 24px; margin-bottom: 14px; }
.pgrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 12px; }
.pcard { display: flex; align-items: center; gap: 14px; padding: 14px 16px; background: var(--paper); border: 1px solid var(--rule); border-radius: 14px; text-decoration: none; transition: border-color 160ms ease, box-shadow 200ms ease; }
.pcard img { width: 44px; height: 44px; border-radius: 50%; }
.pcard span { font-weight: 650; font-size: 16px; }
.pcard small { display: block; color: var(--muted); font-weight: 500; font-size: 13.5px; }
@media (hover: hover) and (pointer: fine) { .pcard:hover { border-color: var(--ink); box-shadow: var(--shadow-s); } }
.agents-card { display: grid; grid-template-columns: 1.1fr 1fr; gap: 32px; margin-top: 26px; background: var(--paper); border: 1px solid var(--rule); border-radius: var(--r-xl); padding: 28px; }
.agents-card > * { min-width: 0; }
.task-label { display: block; font-weight: 650; margin: 0 0 8px; }
#task { width: 100%; height: 46px; border: 1px solid var(--rule-2); border-radius: 12px; padding: 0 14px; font-size: 16px; outline: none; margin-bottom: 18px; background: var(--paper); }
#task:focus { border-color: var(--clay); box-shadow: 0 0 0 3px var(--clay-tint); }
#agent-a { width: 100%; height: 44px; margin-bottom: 18px; }
.agents-btns { display: flex; gap: 10px; margin-top: 14px; }
.agents-copy h2 { font-size: 24px; }
.agents-copy p { color: var(--ink-2); }
.mt { margin-top: 28px; } .mt-l { margin-top: 48px; }
.agent-files { list-style: none; padding: 0; margin: 12px 0 0; display: grid; gap: 12px; }
.agent-files li { display: grid; gap: 2px; }
.agent-files span { color: var(--muted); font-size: 14.5px; }
.how-grid { display: grid; grid-template-columns: 1fr 1.1fr; gap: 32px; margin-top: 28px; align-items: start; }
.how-grid > * { min-width: 0; }
.tree { background: var(--code-bg); color: var(--code-fg); border-radius: var(--r-l); padding: 22px 24px; overflow-x: auto; }
.tree pre { margin: 0; font-size: 14px; line-height: 1.9; }
.t-dir { color: var(--code-dir); } .t-req { color: var(--clay); font-weight: 600; } .t-note { color: var(--code-dim); }
.levels { margin: 0; padding: 0; list-style: none; counter-reset: lv; display: grid; gap: 18px; }
.levels li { counter-increment: lv; display: grid; grid-template-columns: 38px 1fr; gap: 14px; color: var(--ink-2); }
.levels li::before { content: counter(lv); width: 32px; height: 32px; border-radius: 50%; background: var(--clay-tint); color: var(--clay-hover); display: grid; place-items: center; font: 600 14px var(--mono); }
.levels strong { color: var(--ink); display: block; }
.how-foot { color: var(--muted); max-width: 80ch; margin: 26px 0 0; }
.ways { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; margin-top: 18px; }
.ways > div { background: var(--paper); border: 1px solid var(--rule); border-radius: var(--r-l); padding: 18px; min-width: 0; }
.ways p { color: var(--ink-2); font-size: 15px; margin: 8px 0 0; word-break: break-word; }
.articles { list-style: none; margin: 16px 0 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 12px; }
.articles a { display: flex; flex-direction: column; gap: 10px; height: 100%; padding: 16px 18px; background: var(--paper); border: 1px solid var(--rule); border-radius: var(--r-m); text-decoration: none; }
.articles a:hover strong { color: var(--clay-deep); }
.articles strong { font-size: 15.5px; line-height: 1.35; }
.articles span { color: var(--muted); font-size: 13.5px; margin-top: auto; }

/* ---------- footer: one quiet line ---------- */
.foot { margin-top: 80px; border-top: 1px solid var(--rule); padding: 16px 0 22px; font-size: 13px; color: var(--muted); }
body[data-page="library"] .foot { margin-top: 0; padding-bottom: 96px; }
.foot-in { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 18px; }
.foot a { color: var(--muted); text-decoration: none; }
.foot a:hover { color: var(--ink); text-decoration: underline; }
.foot-by a { color: var(--ink-2); font-weight: 600; }
.quiet-btn { color: var(--muted); text-decoration: none; font-size: 13px; }
.quiet-btn:hover { color: var(--ink); text-decoration: underline; }
.foot-more { margin-left: auto; }
.foot-more summary { cursor: pointer; list-style: none; }
.foot-more summary::-webkit-details-marker { display: none; }
.foot-more summary:hover { color: var(--ink); }
.foot-more[open] { flex-basis: 100%; margin-left: 0; }
.foot-more nav { display: flex; flex-wrap: wrap; gap: 4px 14px; margin-top: 10px; }

/* ---------- drawer ---------- */
.scrim { position: fixed; inset: 0; background: rgba(20, 20, 19, 0.3); z-index: 60; opacity: 0; transition: opacity 240ms ease; }
.scrim.on { opacity: 1; }
.drawer { position: fixed; top: 8px; right: 8px; bottom: 8px; width: min(560px, calc(100vw - 16px)); background: var(--ivory); z-index: 61; border-radius: 18px; border: 1px solid var(--rule); box-shadow: var(--shadow-l); transform: translateX(calc(100% + 16px)); transition: transform 380ms var(--ease-drawer); overflow-y: auto; overflow-x: hidden; overscroll-behavior: contain; }
.drawer.on { transform: none; }
.dr-close { position: absolute; right: 14px; top: 14px; width: 40px; height: 40px; border-radius: 50%; border: 1px solid var(--rule); background: var(--paper); cursor: pointer; display: grid; place-items: center; transition: transform 140ms var(--ease-out), border-color 160ms ease; }
.dr-close:hover { border-color: var(--ink); }
.dr-close:active { transform: scale(0.94); }
.dr-close svg { width: 16px; height: 16px; stroke: var(--ink); stroke-width: 2.2; stroke-linecap: round; }
.dr-body { padding: 26px 26px 40px; }
.dr-top { display: flex; gap: 14px; align-items: center; padding-right: 50px; }
.dr-top img { width: 56px; height: 56px; border-radius: 14px; outline: 1px solid rgba(20, 20, 19, 0.08); outline-offset: -1px; }
.dr-kind { color: var(--muted); font-size: 14px; }
.dr-no { font-family: var(--mono); font-size: 12.5px; color: var(--clay-deep); margin-right: 10px; font-variant-numeric: tabular-nums; }
.mcp-note { font-size: 14.5px; margin-top: 10px; }
.mcp-note code { font-family: var(--mono); font-size: 13px; background: var(--oat); padding: 2px 6px; border-radius: 6px; overflow-wrap: anywhere; }
.dr-name { font-family: var(--serif); font-size: 30px; font-weight: 500; word-break: break-word; }
.dr-tags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 16px; }
.dr-cat, .dr-col { display: inline-flex; align-items: center; gap: 6px; min-height: 30px; padding: 0 11px; border-radius: 999px; font-weight: 600; font-size: 13px; text-decoration: none; }
.dr-cat { background: var(--c); }
.dr-col { background: var(--paper); border: 1px solid var(--rule); padding-left: 4px; }
.dr-col img { width: 20px; height: 20px; border-radius: 50%; }
.dr-desc { font-size: 18px; line-height: 1.5; margin: 14px 0 18px; }
.dr-stats { display: grid; grid-template-columns: repeat(3, 1fr); background: var(--paper); border: 1px solid var(--rule); border-radius: 12px; margin-bottom: 16px; }
.dr-stats div { padding: 11px 13px; border-left: 1px solid var(--rule); min-width: 0; }
.dr-stats div:first-child { border-left: 0; }
.dr-stats b { display: block; font: 600 18px var(--mono); font-variant-numeric: tabular-nums; }
.dr-stats span { color: var(--muted); font-size: 12.5px; }
.kit-btn { width: 100%; min-height: 46px; margin-bottom: 16px; }
.install { background: var(--paper); border: 1px solid var(--rule); border-radius: 14px; padding: 12px; }
.itabs-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; font-weight: 650; font-size: 14px; margin-bottom: 10px; }
.itabs { display: flex; gap: 2px; padding: 3px; background: var(--oat); border-radius: 10px; overflow-x: auto; scrollbar-width: none; margin-bottom: 10px; }
.itabs button { flex: none; min-height: 32px; padding: 0 11px; border: 0; border-radius: 8px; background: transparent; cursor: pointer; font-size: 13.5px; font-weight: 550; color: var(--ink-2); transition: background-color 160ms ease, box-shadow 160ms ease; }
.itabs button[aria-selected="true"] { background: var(--paper); color: var(--ink); box-shadow: var(--shadow-s); }
.cmd { display: flex; align-items: center; gap: 10px; background: var(--code-bg); color: var(--code-fg); border-radius: 12px; padding: 6px 6px 6px 14px; }
.cmd code { flex: 1; min-width: 0; background: none; color: inherit; padding: 0; font-size: 13px; line-height: 1.55; white-space: pre-wrap; word-break: break-word; }
.cmd .btn { background: var(--code-btn); border-color: var(--code-btn); color: var(--code-fg); min-height: 36px; flex: none; }
.ihelp { color: var(--muted); font-size: 13.5px; margin: 8px 2px 2px; }
.isteps { margin: 4px 0; padding-left: 20px; color: var(--ink-2); font-size: 14.5px; display: grid; gap: 6px; }
.dr-links { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; }
.dr-label { font-weight: 650; margin: 24px 0 8px; font-size: 14.5px; }
.xcard { display: grid; grid-template-columns: auto 1fr; gap: 2px 12px; align-items: center; padding: 12px 14px; background: var(--paper); border: 1px solid var(--rule); border-radius: 12px; text-decoration: none; }
.xcard:hover { border-color: var(--ink); }
.xcard svg { grid-row: span 2; width: 20px; height: 20px; }
.xcard b { font-size: 15px; } .xcard span { color: var(--muted); font-size: 13.5px; }
.dr-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 2px; }
.dr-list a { display: flex; gap: 10px; align-items: baseline; padding: 7px 8px; border-radius: 8px; font-size: 14.5px; text-decoration: none; }
.dr-list .mono { font-weight: 600; font-size: 13.5px; flex: none; }
.dr-list .dim { min-width: 0; color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
@media (hover: hover) and (pointer: fine) { .dr-list a:hover { background: var(--oat); } }
.dr-owner { display: flex; align-items: center; gap: 10px; margin-top: 22px; padding: 12px 14px; border-radius: 12px; background: var(--oat); text-decoration: none; font-size: 14.5px; color: var(--ink-2); }
.dr-owner img { width: 28px; height: 28px; border-radius: 50%; }
.dr-owner:hover b { text-decoration: underline; }


/* inside a skill */
.inside { background: var(--paper); border: 1px solid var(--rule); border-radius: 14px; padding: 4px 16px 14px; margin: 0 0 16px; }
.dr-label.first { margin-top: 12px; color: var(--clay-deep); font: 500 13px var(--mono); }
.inside-k { display: block; font: 500 12px var(--mono); color: var(--muted); margin: 14px 0 6px; }
.inside-what p { margin: 0; font-family: var(--serif); font-size: 17.5px; line-height: 1.5; color: var(--ink); }
.inside-outline ol { margin: 0; padding-left: 20px; display: grid; gap: 3px; font-size: 14.5px; color: var(--ink-2); }
.inside-outline li::marker { color: var(--clay); font-family: var(--mono); font-size: 12px; }
.inside-files ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px; }
.inside-files a { display: inline-flex; align-items: center; min-height: 28px; padding: 0 9px; border-radius: 7px; background: var(--oat); font: 500 12.5px var(--mono); text-decoration: none; color: var(--ink-2); }
.inside-files a:hover { color: var(--ink); background: var(--oat-2); }
.inside-full { margin-top: 14px; border-top: 1px dashed var(--rule-2); padding-top: 10px; }
.inside-full summary { cursor: pointer; font-weight: 600; font-size: 14.5px; color: var(--clay-deep); list-style: none; min-height: 32px; display: flex; align-items: center; }
.inside-full summary::-webkit-details-marker { display: none; }
.inside-full summary::before { content: "+"; font: 600 15px var(--mono); width: 18px; }
.inside-full[open] summary::before { content: "\2212"; }
.md { font-size: 14.5px; line-height: 1.6; color: var(--ink-2); overflow-wrap: anywhere; }
.md p { margin: 8px 0; }
.md h3 { font-size: 19px; margin: 18px 0 6px; color: var(--ink); }
.md h4 { font-size: 16px; margin: 14px 0 4px; color: var(--ink); font-family: var(--sans); font-weight: 650; }
.md ul, .md ol { padding-left: 20px; margin: 6px 0; }
.md li { margin: 2px 0; }
.md pre { background: var(--code-bg); color: var(--code-fg); border-radius: 10px; padding: 10px 12px; overflow-x: auto; font-size: 12.5px; line-height: 1.5; margin: 8px 0; }
.md pre code { background: none; padding: 0; color: inherit; }
.md pre.tbl { background: var(--oat); color: var(--ink-2); }
.md blockquote { margin: 8px 0; padding: 2px 0 2px 12px; border-left: 3px solid var(--clay); color: var(--ink-2); }
.md a { color: var(--clay-deep); }
.inside-intro { margin-top: 10px; }
.inside-load { display: flex; gap: 6px; padding: 14px 0 4px; }
.inside-load i { width: 8px; height: 8px; background: var(--clay); animation: load 0.9s steps(2) infinite; }
.inside-load i:nth-child(2) { animation-delay: 0.15s; } .inside-load i:nth-child(3) { animation-delay: 0.3s; }
@keyframes load { 50% { opacity: 0.25; } }

/* ---------- toast ---------- */
.toast { position: fixed; left: 50%; top: 16px; transform: translate(-50%, -12px); opacity: 0; background: var(--ink); color: var(--ivory); padding: 10px 16px; border-radius: 12px; font-weight: 600; font-size: 14px; z-index: 80; pointer-events: none; transition: opacity 180ms var(--ease-out), transform 260ms var(--ease-out); max-width: calc(100vw - 32px); }
.toast.on { opacity: 1; transform: translate(-50%, 0); }

/* ---------- critters (pixel sprites) ---------- */
.critters { position: fixed; inset: 0; pointer-events: none; z-index: 35; overflow: hidden; }
.critter { position: absolute; left: 0; bottom: 0; pointer-events: auto; cursor: pointer; will-change: transform; }
.critter .sprite { width: 52px; height: 48px; }
.critter .sprite svg { display: block; image-rendering: pixelated; }
.critter .carry { position: absolute; left: 50%; bottom: 44px; transform: translateX(-50%); width: 28px; height: 28px; border-radius: 4px; image-rendering: pixelated; outline: 2px solid #141413; background: var(--paper); }
.critter .bubble { position: absolute; bottom: calc(100% + 12px); left: 50%; transform: translateX(-50%); background: var(--paper); color: var(--ink); border: 2px solid var(--ink); border-radius: 0; padding: 6px 10px; font: 500 12.5px/1.35 var(--mono); white-space: nowrap; box-shadow: 3px 3px 0 var(--ink); }
.critter .bubble::after { content: ""; position: absolute; left: 50%; top: 100%; width: 8px; height: 8px; background: var(--ink); transform: translate(-50%, 2px); clip-path: polygon(0 0, 100% 0, 50% 100%); }
.critter .zz { position: absolute; right: -12px; top: -18px; width: 30px; height: 30px; font: 700 12px var(--mono); color: var(--clay-deep); }
.critter .zz b { position: absolute; opacity: 0; animation: zz 2.1s steps(6) infinite; }
.critter .zz b:nth-child(1) { left: 0; bottom: 0; }
.critter .zz b:nth-child(2) { left: 9px; bottom: 8px; font-size: 14px; animation-delay: 0.7s; }
.critter .zz b:nth-child(3) { left: 18px; bottom: 16px; font-size: 16px; animation-delay: 1.4s; }
@keyframes zz { 0% { opacity: 0; transform: translateY(4px); } 20% { opacity: 1; } 80% { opacity: 1; } 100% { opacity: 0; transform: translateY(-8px); } }
.dust { position: fixed; width: 4px; height: 4px; background: var(--dust); pointer-events: none; z-index: 34; animation: dust 0.5s steps(4) forwards; }
.dust.land { width: 6px; height: 4px; animation-name: dustland; }
@keyframes dust { 0% { opacity: 0.9; transform: translate(0, 0); } 100% { opacity: 0; transform: translate(0, -6px) scale(1.5); } }
@keyframes dustland { 0% { opacity: 0.9; transform: translate(0, 0); } 100% { opacity: 0; transform: translate(var(--dx), -4px) scale(1.4); } }
.tile.wiggle { animation: wiggle 600ms steps(4) 2; }
@keyframes wiggle { 25% { transform: rotate(-1.2deg); } 75% { transform: rotate(1.2deg); } }
.star-pop { position: fixed; z-index: 36; pointer-events: none; color: #d9a43a; font-size: 18px; animation: starpop 1s steps(8) forwards; }
@keyframes starpop { to { transform: translateY(-46px) scale(1.3); opacity: 0; } }


/* ---------- dark theme: near-black, warm, quiet ---------- */
:root[data-theme="dark"] {
  --ivory: #0d0d0c;
  --paper: #161614;
  --oat: #1d1c1a;
  --oat-2: #262522;
  --ink: #eeece4;
  --ink-2: #c9c6bc;
  --muted: #8f8c84;
  --rule: #272624;
  --rule-2: #393834;
  --clay: #e0825f;
  --clay-deep: #d97757;
  --clay-hover: #e8906f;
  --clay-tint: #33201a;
  --top-bg: rgba(13, 13, 12, 0.82);
  --fade-0: rgba(13, 13, 12, 0);
  --on-ink: #0d0d0c;
  --btn-hover: #ffffff;
  --on-clay: #160c08;
  --code-bg: #090908;
  --code-fg: #e6e3da;
  --code-btn: #22211e;
  --code-dim: #7c7a73;
  --code-dir: #f0c08c;
  --dust: #4a4842;
  --mono-filter: invert(0.92);
  --shadow-s: 0 1px 2px rgba(0, 0, 0, 0.5);
  --shadow-m: 0 14px 30px -14px rgba(0, 0, 0, 0.7), 0 2px 6px rgba(0, 0, 0, 0.35);
  --shadow-l: 0 30px 70px -26px rgba(0, 0, 0, 0.85), 0 8px 20px -10px rgba(0, 0, 0, 0.5);
  --tab-start: #4a3e1d; --tab-method: #233247; --tab-review: #2a3a26; --tab-design: #4a2b22; --tab-motion: #43352a;
  --tab-docs: #433820; --tab-memory: #1f3a39; --tab-research: #363c22; --tab-growth: #4a2d21; --tab-business: #33302b;
  --tab-security: #46292a; --tab-cloud: #24303f; --tab-niche: #3c3429; --tab-dirs: #2b2a27;
  color-scheme: dark;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
  --ivory: #0d0d0c;
  --paper: #161614;
  --oat: #1d1c1a;
  --oat-2: #262522;
  --ink: #eeece4;
  --ink-2: #c9c6bc;
  --muted: #8f8c84;
  --rule: #272624;
  --rule-2: #393834;
  --clay: #e0825f;
  --clay-deep: #d97757;
  --clay-hover: #e8906f;
  --clay-tint: #33201a;
  --top-bg: rgba(13, 13, 12, 0.82);
  --fade-0: rgba(13, 13, 12, 0);
  --on-ink: #0d0d0c;
  --btn-hover: #ffffff;
  --on-clay: #160c08;
  --code-bg: #090908;
  --code-fg: #e6e3da;
  --code-btn: #22211e;
  --code-dim: #7c7a73;
  --code-dir: #f0c08c;
  --dust: #4a4842;
  --mono-filter: invert(0.92);
  --shadow-s: 0 1px 2px rgba(0, 0, 0, 0.5);
  --shadow-m: 0 14px 30px -14px rgba(0, 0, 0, 0.7), 0 2px 6px rgba(0, 0, 0, 0.35);
  --shadow-l: 0 30px 70px -26px rgba(0, 0, 0, 0.85), 0 8px 20px -10px rgba(0, 0, 0, 0.5);
  --tab-start: #4a3e1d; --tab-method: #233247; --tab-review: #2a3a26; --tab-design: #4a2b22; --tab-motion: #43352a;
  --tab-docs: #433820; --tab-memory: #1f3a39; --tab-research: #363c22; --tab-growth: #4a2d21; --tab-business: #33302b;
  --tab-security: #46292a; --tab-cloud: #24303f; --tab-niche: #3c3429; --tab-dirs: #2b2a27;
  color-scheme: dark;
  }
}
img.mono { filter: var(--mono-filter); }
.theme-btn { flex: none; width: 38px; height: 38px; border-radius: 50%; border: 1px solid var(--rule-2); background: var(--paper); cursor: pointer; display: grid; place-items: center; color: var(--ink); transition: border-color 160ms ease, transform 140ms var(--ease-out); }
.theme-btn:active { transform: scale(0.94); }
.theme-btn svg { width: 17px; height: 17px; fill: none; stroke: currentColor; stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; }
.theme-btn .moon { display: none; }
:root[data-theme="dark"] .theme-btn .moon { display: block; } :root[data-theme="dark"] .theme-btn .sun { display: none; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .theme-btn .moon { display: block; } :root:not([data-theme="light"]) .theme-btn .sun { display: none; } }
@media (hover: hover) and (pointer: fine) { .theme-btn:hover { border-color: var(--ink); } }
.owner-pill { margin-left: 0; }
.top-in .theme-btn { margin-left: auto; }
.big-spark { filter: drop-shadow(0 0 0 transparent); }
:root[data-theme="dark"] .big-spark { filter: drop-shadow(0 0 40px rgba(217, 119, 87, 0.22)); }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .big-spark { filter: drop-shadow(0 0 40px rgba(217, 119, 87, 0.22)); } }


/* ---------- motion: answers to what you do, transform and opacity only ---------- */
:root { --ease-in-out: cubic-bezier(0.77, 0, 0.175, 1); }
.kitbar { view-transition-name: kitbar; }
@media (hover: hover) and (pointer: fine) {
  .tile:hover { transform: translateY(-2px); box-shadow: var(--shadow-m); border-color: var(--rule-2); }
  .tile.on:hover { border-color: var(--clay); box-shadow: 0 0 0 1px var(--clay), var(--shadow-m); }
  .tile:hover .tile-logo { transform: rotate(-5deg) scale(1.07); }
  .bcard:hover .faces img { transform: translateX(calc(var(--k, 0) * 3px)); }
  .agent-logos li { transition: transform 220ms var(--ease-out), border-color 160ms ease; }
  .agent-logos li img { transition: transform 320ms var(--ease-out); }
  .agent-logos li:hover { transform: translateY(-2px); border-color: var(--rule-2); }
  .agent-logos li:hover img { transform: rotate(-8deg) scale(1.12); }
  .orb-ico { transition: transform 260ms var(--ease-out), box-shadow 260ms ease; }
  .orb:hover .orb-ico { transform: scale(1.14); box-shadow: var(--shadow-l); }
  .big-spark { cursor: pointer; }
}
.big-spark { transform: rotate(var(--tilt, 0deg)) scale(var(--zoom, 1)); will-change: transform; }

/* page changes: old page fades, new one settles in from 8px below; header and kit bar stay put */
::view-transition-old(root) { animation: vt-out 150ms ease both; }
::view-transition-new(root) { animation: vt-in 320ms var(--ease-out) both; }
@keyframes vt-out { to { opacity: 0; } }
@keyframes vt-in { from { opacity: 0; transform: translateY(8px); } }
/* theme switch: the new theme grows as a circle from the button */
html.vt-theme .top, html.vt-theme .kitbar { view-transition-name: none; }
html.vt-theme::view-transition-old(root) { animation: none; }
html.vt-theme::view-transition-new(root) { animation: theme-in 560ms var(--ease-in-out) both; }
@keyframes theme-in { from { clip-path: circle(0 at var(--vx, 50%) var(--vy, 0)); } to { clip-path: circle(var(--vr, 150vmax) at var(--vx, 50%) var(--vy, 0)); } }
.theme-btn svg { transition: transform 420ms var(--ease-out), opacity 200ms ease; }
.theme-btn:active svg { transform: rotate(-40deg) scale(0.85); }

/* drawer content arrives in a short cascade the first time it opens */
.dr-body.enter > * { animation: rise 440ms var(--ease-out) both; animation-delay: calc(var(--i, 0) * 34ms); }
@keyframes rise { from { opacity: 0; transform: translateY(10px); } }

/* adding to the kit: a spark flies to the bar, the counter bumps */
.fly { position: fixed; left: 0; top: 0; width: 22px; height: 22px; z-index: 80; pointer-events: none; will-change: transform, opacity; }
.fly svg { width: 100%; height: 100%; fill: var(--clay); display: block; }
[data-kit-count] { display: inline-block; }
.bump { animation: bump 420ms var(--ease-out); }
@keyframes bump { 35% { transform: scale(1.45); color: var(--clay); } }
.kitbar.has .kb-bar { transition: border-color 200ms ease, box-shadow 260ms ease; }
.kitbar.glow .kb-bar { box-shadow: 0 0 0 4px var(--clay-tint), var(--shadow-l); }

@media (prefers-reduced-motion: reduce) {
  ::view-transition-old(root), html.vt-theme::view-transition-old(root) { animation: vt-out 160ms ease both; }
  ::view-transition-new(root), html.vt-theme::view-transition-new(root) { animation: vt-fade 220ms ease both; }
  @keyframes vt-fade { from { opacity: 0; } }
  .dr-body.enter > * { animation-name: vt-fade; animation-duration: 260ms; }
  .tile:hover, .agent-logos li:hover { transform: none; }
}

/* ---------- responsive ---------- */
@media (max-width: 1100px) {
  .hero { grid-template-columns: 1fr; }
  .hero-art { --R: 190px; margin-top: 8px; }
  .ways { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 900px) {
  .nav { display: none; }
  .lib { grid-template-columns: 1fr; gap: 0; }
  .side { position: fixed; inset: var(--top) auto 0 0; width: 290px; max-height: none; z-index: 45; background: var(--ivory); border-right: 1px solid var(--rule); padding: 10px 12px 40px; transform: translateX(-102%); transition: transform 260ms var(--ease-drawer); box-shadow: var(--shadow-l); }
  .side.open { transform: none; }
  .side-toggle { display: inline-flex; }
  .charts-grid, .agents-card, .how-grid { grid-template-columns: 1fr; }
  .steps3 { grid-template-columns: 1fr; }
}
@media (max-width: 680px) {
  :root { --gutter: 16px; --top: 58px; }
  .brand-name { font-size: 19px; }
  .owner-pill span { display: none; }
  .owner-pill { padding: 0 4px; }
  .hero { padding-top: 24px; padding-bottom: 44px; gap: 10px; }
  .h-num { font-size: 24vw; }
  .h-rest { font-size: 34px; margin-top: 4px; }
  .lede { font-size: 17px; }
  .hero-art { --R: min(128px, calc(50vw - 56px)); }
  .orbit-ring { inset: 40px; }
  .orb-ico { width: 38px; height: 38px; } .orb img { width: 24px; height: 24px; }
  .orb em { display: none; }
  .hero-search kbd, .tb-search kbd { display: none; }
  .lib-tools .tb-search { flex-basis: 100%; max-width: none; }
  .result-line { margin-left: 0; width: 100%; }
  .tiles { grid-template-columns: 1fr; }
  .kitbar { bottom: 8px; }
  .kb-bar { flex-wrap: wrap; }
  .kb-sum { flex-basis: 100%; }
  .kb-line { display: none; }
  .kb-bar .pick { flex: 1; }
  .kb-bar .pick select { width: 100%; }
  .ways { grid-template-columns: 1fr; }
  .foot-more { margin-left: 0; }
  .drawer { top: auto; left: 0; right: 0; bottom: 0; width: 100vw; height: 90svh; border-radius: 20px 20px 0 0; transform: translateY(100%); }
  .dr-body { padding: 22px 16px 36px; }
}

@media (prefers-reduced-motion: reduce) {
  .spark-svg { animation-duration: 240s; }
  .orbit-ring, .orb-in { animation-duration: 380s; }
  .drawer, .toast, .scrim, .side { transition-duration: 1ms; }
  .kchip.pop { animation: none; }
}
