:root {
  --bg: #0f0e0d;
  --bg-2: #161514;
  --panel: #1c1b19;
  --panel-2: #24221f;
  --line: rgba(240, 236, 228, 0.11);
  --line-2: rgba(240, 236, 228, 0.22);
  --text: #f4f1ea;
  --muted: rgba(244, 241, 234, 0.62);
  --faint: rgba(244, 241, 234, 0.38);
  --ink: #12100e;
  --orange: #ff5b0a;
  --bone: #e7e2d8;
  --clay: #c9b09a;
  --slate: #3b3733;
  --sans: "Hanken Grotesk", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Helvetica, Arial, sans-serif;
  --display: "Bricolage Grotesque", "Hanken Grotesk", ui-sans-serif, system-ui, sans-serif;
  --serif: "Instrument Serif", "Iowan Old Style", Georgia, serif;
  --mono: "Martian Mono", ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  --grain: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='240' height='240'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 0  0 0 0 0 0  0 0 0 0 0  0 0 0 .5 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  --speck: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='300' height='300'%3E%3Cfilter id='s'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.55' numOctaves='2' seed='7' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 0  0 0 0 0 0  0 0 0 0 0  0 0 0 7 -4.9'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23s)'/%3E%3C/svg%3E");
  --ease: cubic-bezier(.19, 1, .22, 1);
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; overflow-x: clip; }
body { margin: 0; background: var(--bg); color: var(--text); font-family: var(--sans); font-size: 16px; line-height: 1.5; -webkit-font-smoothing: antialiased; }
body::after { content: ""; position: fixed; inset: 0; z-index: 60; pointer-events: none; background-image: var(--grain); opacity: .16; mix-blend-mode: soft-light; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, p { margin: 0; font-weight: 400; }
h1 { font-size: clamp(40px, 5.2vw, 68px); line-height: 1; letter-spacing: -0.035em; }
h2 { font-size: clamp(28px, 3.5vw, 44px); line-height: 1.06; letter-spacing: -0.03em; text-wrap: balance; }
h3 { font-size: 22px; line-height: 1.15; letter-spacing: -0.02em; }
.wrap { max-width: 1200px; margin: 0 auto; padding: 0 32px; }
.mono { font-family: var(--mono); font-size: 11.5px; letter-spacing: 0.09em; text-transform: uppercase; }
.muted { color: var(--muted); }
section { padding: 120px 0; position: relative; }
@media (max-width: 760px) { section { padding: 76px 0; } .wrap { padding: 0 20px; } }
[hidden] { display: none !important; }
:focus-visible { outline: 1px solid var(--orange); outline-offset: 3px; }

/* paper: a physical, grainy surface */
.paper { position: relative; isolation: isolate; }
.paper::before { content: ""; position: absolute; inset: 0; z-index: -1; background-image: var(--speck), var(--grain); background-size: 300px, 240px; mix-blend-mode: multiply; opacity: .3; border-radius: inherit; pointer-events: none; }
/* the same fibre, light on dark */
.fibre { position: relative; isolation: isolate; }
.fibre::before { content: ""; position: absolute; inset: 0; z-index: -1; background-image: var(--speck), var(--grain); background-size: 300px, 240px; filter: invert(1); mix-blend-mode: screen; opacity: .1; pointer-events: none; }
.paper.orange { background: var(--orange); color: var(--ink); }
.paper.bone { background: var(--bone); color: var(--ink); }

.btn { display: inline-flex; align-items: center; gap: 10px; font: 500 13.5px/1 var(--sans); letter-spacing: -0.005em; padding: 12px 18px; border-radius: 999px; border: 0; cursor: pointer; background: var(--orange); color: var(--ink); white-space: nowrap; transition: background .3s, color .3s; }
.btn:hover { background: #ff7a35; }
.btn.bone { background: var(--bone); }
.btn.bone:hover { background: #fff; }
.btn .arr { width: 14px; height: 9px; position: relative; overflow: hidden; }
.btn .arr::before, .btn .arr::after { content: "\2192"; position: absolute; inset: 0; line-height: 9px; font-size: 14px; transition: transform .5s var(--ease); }
.btn .arr::after { transform: translateX(-18px); }
.btn:hover .arr::before { transform: translateX(18px); }
.btn:hover .arr::after { transform: none; }
.btn.line { background: transparent; color: var(--text); box-shadow: inset 0 0 0 1px var(--line-2); }
.btn.line:hover { background: rgba(244, 241, 234, 0.07); }
.btn.dark { background: var(--ink); color: var(--bone); }
.btn.dark:hover { background: #26221e; }
.btn.onpaper { background: transparent; color: var(--ink); box-shadow: inset 0 0 0 1px rgba(18, 16, 14, 0.45); }
.btn.onpaper:hover { background: rgba(18, 16, 14, 0.08); }
.btn[disabled] { opacity: .5; cursor: default; }

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

/* nav */
header.nav { position: sticky; top: 0; z-index: 30; background: rgba(15, 14, 13, 0.82); backdrop-filter: blur(14px); }
.nav .wrap { display: flex; align-items: center; justify-content: space-between; height: 68px; gap: 16px; }
.logo { display: inline-flex; align-items: center; gap: 10px; font-size: 21px; font-weight: 500; letter-spacing: -0.035em; }
.logo svg { width: 20px; height: 20px; }
.nav nav { display: flex; gap: 30px; color: var(--muted); }
.nav nav a { transition: color .3s; }
.nav nav a:hover { color: var(--text); }
.nav .right { display: flex; gap: 8px; }
@media (max-width: 880px) { .nav nav { display: none; } }
@media (max-width: 480px) { .nav .right .line { display: none; } }

/* hero */
.hero { padding: 72px 0 0; overflow: clip; text-align: center; }
.hero h1 { font-size: clamp(44px, 6.6vw, 88px); font-weight: 500; letter-spacing: -0.03em; line-height: 1; }
h1 .l { display: block; overflow: hidden; padding-bottom: .12em; margin-bottom: -.12em; }
h1 .l span { display: block; }
.js h1 .l span { transform: translateY(110%); animation: up 1.3s var(--ease) forwards; animation-delay: calc(var(--i) * 110ms + 150ms); }
@keyframes up { to { transform: none; } }
.facts { display: flex; justify-content: center; align-items: center; gap: 14px 28px; flex-wrap: wrap; margin: 30px 0 34px; color: var(--muted); font-size: 18px; }
.facts b { color: var(--text); font-weight: 500; }
.facts span + span { padding-left: 28px; border-left: 1px solid var(--line-2); }
@media (max-width: 640px) { .facts span + span { padding-left: 0; border-left: 0; } .facts { font-size: 16px; } }
.sq::before { content: ""; display: inline-block; width: 8px; height: 8px; border-radius: 2px; background: var(--sqc, var(--orange)); margin-right: 10px; }
.openbar { display: flex; gap: 6px; width: min(560px, 100%); margin: 0 auto; background: var(--panel); border: 1px solid var(--line-2); border-radius: 999px; padding: 6px; transition: border-color .3s; }
.openbar:focus-within { border-color: var(--orange); }
.openbar input { flex: 1; min-width: 0; background: transparent; border: 0; outline: none; color: var(--text); font: 14px var(--mono); padding: 0 16px; }
.openbar input::placeholder { color: var(--faint); }
.hero > .wrap { position: relative; z-index: 2; }
#heroFolder { margin-top: 0; min-height: min(700px, 88svh); text-align: left; }

/* line cards: outlined, with a second outline offset behind */
.lc { background: var(--bg); border: 1px solid rgba(244, 241, 234, 0.5); border-radius: 12px; box-shadow: 5px 5px 0 -1px var(--bg), 5px 5px 0 0 rgba(244, 241, 234, 0.5); }

/* folder row */
#folderRow { display: flex; justify-content: center; align-items: flex-end; gap: 40px 56px; flex-wrap: wrap; min-height: 320px; }
.hintcap { text-align: center; margin-top: 44px; color: var(--faint); }

/* flow */
.flow { margin-top: 80px; display: grid; grid-template-columns: 1fr auto 1.5fr auto 1fr; gap: 14px; align-items: start; }
.flow > div > .mono { display: block; margin-bottom: 14px; color: var(--muted); }
.flow .lc { padding: 20px; min-height: 150px; }
.flow .lc pre { margin: 0; font: 12.5px/1.9 var(--mono); color: #ddd8ce; white-space: pre-wrap; overflow-wrap: anywhere; }
.flow .lc p { font-size: 19px; letter-spacing: -0.01em; line-height: 1.3; }
.flow .dots { display: flex; gap: 6px; padding-bottom: 12px; margin: -4px 0 12px; border-bottom: 1px solid var(--line-2); }
.flow .dots i { width: 8px; height: 8px; border-radius: 50%; border: 1px solid rgba(244, 241, 234, 0.6); }
.flow .dots i:first-child { background: var(--text); }
.flow .arrow { width: 44px; border-top: 1px dashed rgba(244, 241, 234, 0.6); position: relative; margin-top: 104px; }
.flow .arrow::after { content: ""; position: absolute; right: -1px; top: -5px; width: 8px; height: 8px; border-top: 1px solid rgba(244, 241, 234, 0.8); border-right: 1px solid rgba(244, 241, 234, 0.8); transform: rotate(45deg); }
.flow .ok { display: flex; align-items: center; gap: 10px; font-size: 19px; padding-bottom: 12px; margin-bottom: 12px; border-bottom: 1px dashed var(--line-2); }
.flow .ok::before { content: "\2713"; display: grid; place-items: center; width: 22px; height: 22px; border-radius: 50%; background: var(--orange); color: var(--ink); font-size: 13px; }
.checks { display: flex; gap: 10px 26px; flex-wrap: wrap; justify-content: center; margin-top: 30px; color: var(--muted); text-transform: none; letter-spacing: .02em; }
.checks span::before { content: "\2713"; color: var(--orange); margin-right: 8px; }
@media (max-width: 900px) { .flow { grid-template-columns: 1fr; } .flow .arrow { width: 0; height: 30px; border-top: 0; border-left: 1px dashed rgba(244, 241, 234, 0.6); margin: 0 auto; } .flow .arrow::after { right: -5px; top: auto; bottom: 0; transform: rotate(135deg); } }

/* result */
.result { display: none; padding: 0 0 56px; position: relative; z-index: 3; }
.result.on { display: block; animation: rise .9s var(--ease); }
@keyframes rise { from { opacity: 0; transform: translateY(24px); } }
.window { background: #131211; border: 1px solid var(--line); border-radius: 4px; overflow: hidden; }
.tabs { display: flex; align-items: center; border-bottom: 1px solid var(--line); padding: 0 10px; overflow-x: auto; }
.tabs button { font: 12px var(--mono); letter-spacing: .03em; color: var(--faint); background: none; border: 0; border-bottom: 1px solid transparent; padding: 15px 11px 14px; margin-bottom: -1px; cursor: pointer; white-space: nowrap; transition: color .3s; }
.tabs button:hover { color: var(--muted); }
.tabs button[aria-selected="true"] { color: var(--text); border-bottom-color: var(--orange); }
.tabs .spacer { flex: 1; }
.tabs .meta { font: 11.5px var(--mono); color: var(--faint); padding: 0 8px; white-space: nowrap; }
.copy { background: none; border: 0; color: var(--faint); cursor: pointer; padding: 8px; font: 11.5px var(--mono); transition: color .3s; }
.copy:hover { color: var(--text); }
pre.out { margin: 0; padding: 22px; font: 12.5px/1.75 var(--mono); color: #ddd8ce; white-space: pre-wrap; overflow-wrap: anywhere; max-height: 460px; overflow: auto; }

/* strip */
.strip { border-block: 1px solid var(--line); }
.strip .wrap { display: flex; align-items: center; gap: 48px; min-height: 86px; flex-wrap: wrap; padding-block: 22px; }
.strip .mono { color: var(--faint); }
.strip ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 14px 44px; font-size: 19px; letter-spacing: -0.02em; color: var(--muted); }

/* section header */
.sh { display: grid; grid-template-columns: 1fr 1.25fr; gap: 60px; margin-bottom: 72px; }
.sh .mono { color: var(--faint); padding-top: 12px; }
@media (max-width: 880px) { .sh { grid-template-columns: 1fr; gap: 18px; margin-bottom: 44px; } }

/* ledger */
.ledger { border-top: 1px solid var(--line); }
.ledger > div { display: grid; grid-template-columns: 70px 1fr 1.25fr; gap: 24px; align-items: baseline; padding: 26px 0; border-bottom: 1px solid var(--line); position: relative; transition: padding .7s var(--ease), background .5s; }
.ledger > div::before { content: ""; position: absolute; left: 0; top: -1px; width: 0; height: 1px; background: var(--orange); transition: width .9s var(--ease); }
.ledger > div:hover { padding-left: 16px; background: linear-gradient(90deg, rgba(244, 241, 234, 0.035), transparent 60%); }
.ledger > div:hover::before { width: 100%; }
.ledger .n { font: 11.5px var(--mono); color: var(--faint); }
.ledger p { color: var(--muted); max-width: 520px; }
@media (max-width: 880px) { .ledger > div { grid-template-columns: 40px 1fr; } .ledger p { grid-column: 2; } }

/* three calls */
.calls { display: grid; grid-template-columns: repeat(2, 1fr); gap: 22px; }
@media (max-width: 960px) { .calls { grid-template-columns: 1fr; } }
.call { padding: 28px; display: flex; flex-direction: column; gap: 14px; }
.call .mono { color: var(--orange); }
.call h3 { font-size: 30px; margin-top: 18px; }
.call > p { color: var(--muted); min-height: 3em; }
.call dl { margin: 10px 0 0; display: grid; gap: 0; }
.call dl div { display: grid; grid-template-columns: 96px 1fr; gap: 12px; padding: 11px 0; border-top: 1px solid var(--line); font-size: 14px; }
.call dt { font-family: var(--mono); font-size: 11px; letter-spacing: .08em; text-transform: uppercase; color: var(--faint); padding-top: 3px; }
.call dd { margin: 0; color: var(--muted); }
.call pre { margin: 18px 0 0; background: var(--panel); padding: 18px; font: 11.5px/1.8 var(--mono); color: #ddd8ce; white-space: pre-wrap; overflow-wrap: anywhere; flex: 1; }

/* diet */
.diet { display: grid; grid-template-columns: 1.3fr 1fr; margin-top: 72px; }
@media (max-width: 880px) { .diet { grid-template-columns: 1fr; } }
.diet > div { padding: 30px; min-height: 230px; display: flex; flex-direction: column; }
.diet .before { background: var(--panel); }
.diet pre { margin: 22px 0; font: 12px/1.8 var(--mono); white-space: pre-wrap; overflow-wrap: anywhere; }
.diet .before pre { color: var(--faint); }
.diet .after pre { font-size: 15px; }
.meter { margin-top: auto; display: flex; align-items: center; gap: 14px; }
.meter b { flex: 1; height: 1px; background: currentColor; opacity: .25; position: relative; }
.meter b i { position: absolute; left: 0; top: -1px; height: 3px; width: 0; background: currentColor; transition: width 2s var(--ease) .3s; }
.in .meter b i { width: var(--w); }
.meter span { text-transform: none; letter-spacing: .02em; }

/* playground + api */
.alt { background: var(--bg-2); }
.duo { display: grid; grid-template-columns: 320px 1fr; gap: 80px; align-items: start; }
@media (max-width: 960px) { .duo { grid-template-columns: 1fr; gap: 36px; } }
.duo .lead .mono { color: var(--faint); display: block; margin-bottom: 22px; }
.duo .lead h2 { font-size: clamp(26px, 2.8vw, 34px); }
.duo .lead p { margin-top: 18px; color: var(--muted); font-size: 15px; }
.duo .lead .btn { margin-top: 26px; }
.mat { padding: 44px; border-radius: 4px; }
@media (max-width: 640px) { .mat { padding: 12px; } }
.mat .window { box-shadow: 0 30px 60px -30px rgba(18, 16, 14, 0.7); }
.form { padding: 20px; display: grid; gap: 16px; }
.frow { display: grid; grid-template-columns: 1fr 200px; gap: 12px; }
@media (max-width: 640px) { .frow { grid-template-columns: 1fr; } }
label { display: grid; gap: 8px; font: 11px var(--mono); letter-spacing: .09em; text-transform: uppercase; color: var(--faint); }
input.f, select.f, textarea.f { width: 100%; background: #0c0b0a; border: 1px solid var(--line); border-radius: 3px; color: var(--text); font: 13.5px var(--mono); padding: 11px 12px; transition: border-color .3s; }
textarea.f { font-family: var(--sans); font-size: 15px; resize: vertical; min-height: 80px; }
input.f:focus, select.f:focus, textarea.f:focus { outline: none; border-color: var(--line-2); }
.check { display: flex; align-items: center; gap: 8px; text-transform: none; letter-spacing: 0; font-size: 12.5px; color: var(--muted); }
.check input { accent-color: var(--orange); }
.actions { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.actions .usage { font: 11.5px var(--mono); color: var(--faint); margin-left: 6px; }
#log { border-top: 1px solid var(--line); display: none; }
#log.on { display: block; }
#logBody { padding: 20px; max-height: 520px; overflow: auto; }
#log .ev { font: 12px/1.7 var(--mono); color: var(--faint); animation: rise .6s var(--ease); }
#log .ev b { color: var(--orange); font-weight: 400; }
#log .txt { font: 15px/1.6 var(--sans); color: var(--text); white-space: pre-wrap; overflow-wrap: anywhere; }
#log .err { color: #ff9479; font: 12.5px var(--mono); }
#log .q { font: 12.5px var(--mono); color: var(--muted); margin: 14px 0 6px; }
.running #runBtn { opacity: .6; }
.hintline { border-bottom: 1px solid var(--line); padding: 12px 22px; font: 12px var(--mono); color: var(--muted); }
.hintline i { color: var(--orange); font-style: normal; margin-right: 10px; }

/* skeleton loading */
.sk { display: grid; gap: 11px; padding: 4px 0; white-space: normal; }
.sk i { display: block; height: 11px; border-radius: 2px; background: linear-gradient(90deg, rgba(244, 241, 234, 0.07) 25%, rgba(244, 241, 234, 0.17) 50%, rgba(244, 241, 234, 0.07) 75%); background-size: 200% 100%; animation: shimmer 1.6s linear infinite; }
@keyframes shimmer { from { background-position: 200% 0; } to { background-position: 0 0; } }

/* boundaries */
.tiles3 { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 10px; }
@media (max-width: 960px) { .tiles3 { grid-template-columns: 1fr; } }
.tile { background: var(--panel); padding: 24px; min-height: 320px; display: flex; flex-direction: column; overflow: hidden; transition: background .6s; }
.tile:hover { background: var(--panel-2); }
.tile svg { position: absolute; right: -20px; top: -10px; width: 300px; height: 300px; transition: transform 1.6s var(--ease); }
.tile:hover svg { transform: rotate(8deg) scale(1.06); }
.tile svg * { fill: none; stroke: rgba(244, 241, 234, 0.12); }
.tile svg .dot { fill: var(--orange); stroke: none; }
.tile .mono { color: var(--faint); position: relative; }
.tile h3 { margin-top: auto; position: relative; }
.tile p { color: var(--muted); font-size: 14.5px; margin-top: 10px; max-width: 320px; position: relative; }

/* closing */
.close { padding: 72px; border-radius: 4px; display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: end; min-height: 440px; }
@media (max-width: 900px) { .close { grid-template-columns: 1fr; padding: 32px 22px; gap: 36px; } }
.close h2 { font-size: clamp(36px, 5vw, 64px); line-height: .98; letter-spacing: -0.04em; }
.close p { margin: 20px 0 30px; max-width: 340px; color: rgba(18, 16, 14, 0.85); }
.close .btns { display: flex; gap: 8px; flex-wrap: wrap; }
.note-card { background: var(--ink); color: var(--bone); border-radius: 3px; align-self: center; box-shadow: 0 40px 70px -30px rgba(18, 16, 14, 0.8); }
.note-card .top { display: flex; justify-content: space-between; align-items: center; padding: 8px 8px 8px 18px; border-bottom: 1px solid var(--line); color: var(--muted); }
.note-card pre { margin: 0; padding: 20px 18px 24px; font: 13px/1.7 var(--mono); white-space: pre-wrap; overflow-wrap: anywhere; }
.note-card pre u { color: var(--orange); text-decoration: none; }
.caret { display: inline-block; width: 7px; height: 1em; background: var(--orange); vertical-align: text-bottom; animation: caret 1.1s steps(2) infinite; }
@keyframes caret { 50% { opacity: 0; } }
@keyframes march { to { background-position: 8px 0; } }

footer { padding: 40px 0 44px; }
.foot { display: grid; grid-template-columns: 1.5fr 1fr 1fr; gap: 40px; padding-bottom: 90px; }
@media (max-width: 760px) { .foot { grid-template-columns: 1fr; padding-bottom: 48px; } }
footer .logo { font-size: 44px; gap: 16px; }
footer .logo svg { width: 40px; height: 40px; }
footer h4 { margin: 8px 0 24px; font-weight: 400; color: var(--faint); }
footer .col { display: grid; gap: 12px; align-content: start; }
footer .col a, footer .col span { color: var(--muted); transition: color .3s; }
footer .col a:hover { color: var(--text); }
footer small { display: block; padding-top: 22px; border-top: 1px solid var(--line); color: var(--faint); font: 11.5px var(--mono); }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
  .js .rv, .js .pin { opacity: 1; transform: none; }
  .js h1 .l span { transform: none; }
  .js .floor path { stroke-dashoffset: 0; }
  .meter b i { width: var(--w); }
  .sk i { background: rgba(244, 241, 234, 0.1); }
}

/* ---- multi-page additions ---- */
.sh h1, .duo .lead h1 { font-size: clamp(28px, 3.5vw, 44px); line-height: 1.06; letter-spacing: -0.03em; text-wrap: balance; }
.duo .lead h1 { font-size: clamp(26px, 2.8vw, 34px); }
.nav nav a[aria-current="page"] { color: var(--text); }
@media (max-width: 880px) {
  .nav .wrap { flex-wrap: wrap; height: auto; padding-top: 14px; }
  .nav nav { display: flex; order: 3; width: 100%; overflow-x: auto; gap: 22px; padding: 14px 0; scrollbar-width: none; }
}
.logo svg { color: var(--text); }

/* prose: docs and articles */
.page-top { padding: 96px 0 0; }
.page-top .mono { color: var(--faint); display: block; margin-bottom: 22px; }
.page-top h1 { max-width: 880px; }
.page-top p.lede { color: var(--muted); font-size: 19px; line-height: 1.45; max-width: 640px; margin-top: 24px; }
.prose { max-width: 720px; font-size: 17px; line-height: 1.65; color: rgba(244, 241, 234, 0.82); }
.prose h2 { font-size: 28px; margin: 64px 0 18px; color: var(--text); scroll-margin-top: 110px; }
.prose h3 { font-size: 20px; margin: 40px 0 12px; color: var(--text); scroll-margin-top: 110px; }
.prose p, .prose ul, .prose ol, .prose pre, .prose table { margin: 0 0 20px; }
.prose ul, .prose ol { padding-left: 22px; }
.prose li { margin-bottom: 8px; }
.prose a { color: var(--text); text-decoration: underline; text-decoration-color: var(--orange); text-underline-offset: 4px; }
.prose code { font: 0.85em var(--mono); background: var(--panel); padding: 2px 6px; border-radius: 3px; }
.prose pre { background: var(--panel); padding: 18px 20px; border-radius: 4px; overflow-x: auto; font: 13px/1.7 var(--mono); color: #ddd8ce; }
.prose pre code { background: none; padding: 0; font-size: 1em; }
.prose table { width: 100%; border-collapse: collapse; font-size: 15px; }
.prose th { text-align: left; font: 11px var(--mono); letter-spacing: .08em; text-transform: uppercase; color: var(--faint); font-weight: 400; }
.prose th, .prose td { padding: 11px 14px 11px 0; border-bottom: 1px solid var(--line); vertical-align: top; }
.prose blockquote { margin: 0 0 20px; padding: 4px 0 4px 20px; border-left: 2px solid var(--orange); color: var(--text); }
.docs { display: grid; grid-template-columns: 220px 1fr; gap: 72px; padding: 64px 0 120px; align-items: start; }
.docs aside { position: sticky; top: 100px; display: grid; gap: 11px; }
.docs aside a { color: var(--muted); transition: color .3s; }
.docs aside a:hover { color: var(--text); }
@media (max-width: 900px) { .docs { grid-template-columns: 1fr; gap: 32px; } .docs aside { position: static; grid-auto-flow: column; overflow-x: auto; justify-content: start; gap: 20px; } }

/* blog */
.posts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
@media (max-width: 960px) { .posts { grid-template-columns: 1fr; } }
.post { padding: 28px; display: flex; flex-direction: column; gap: 14px; min-height: 280px; transition: transform .6s var(--ease); }
.post:hover { transform: translate(-3px, -3px); }
.post .mono { color: var(--muted); }
.post h3 { font-size: 23px; }
.post p { color: var(--muted); font-size: 15px; }
.post .more { margin-top: auto; font-size: 14px; }
.post .more::after { content: " \2192"; color: var(--orange); }
.article { padding: 56px 0 120px; }
.article .back { display: inline-block; margin-top: 64px; }
.docs > *, .article > * { min-width: 0; }
.prose table { display: block; overflow-x: auto; }
.prose pre { max-width: 100%; }
.prose { overflow-wrap: anywhere; }

/* the live view heading */
.seen { margin-bottom: 28px; }
.seen .mono { color: var(--faint); display: block; margin-bottom: 16px; }
.seen h2 { font-size: clamp(30px, 4vw, 52px); overflow-wrap: anywhere; }
.seen p { color: var(--muted); max-width: 720px; margin-top: 14px; min-height: 1.5em; }

/* typefaces */
h1, h2, h3, .logo, .big, .strip ul, .call h3, .tile h3 { font-family: var(--display); }
h1 em, h2 em { font-family: var(--serif); font-style: italic; font-weight: 400; letter-spacing: -0.02em; font-size: 1.06em; }
.mono { font-size: 10.5px; letter-spacing: 0.07em; }

/* ---- console ---- */
.enter { animation: rise 1s var(--ease); }
.auth { display: grid; grid-template-columns: 1fr 420px; gap: 80px; align-items: start; }
@media (max-width: 900px) { .auth { grid-template-columns: 1fr; gap: 40px; } }
.auth .lead .mono { color: var(--faint); display: block; margin-bottom: 22px; }
.auth .lead h1 { font-size: clamp(34px, 4.4vw, 52px); }
.auth .lead p { color: var(--muted); max-width: 440px; margin-top: 22px; }
.auth dl { margin: 48px 0 0; border-top: 1px solid var(--line); max-width: 460px; }
.auth dl div { display: grid; grid-template-columns: 90px 1fr; gap: 12px; padding: 14px 0; border-bottom: 1px solid var(--line); font-size: 15px; }
.auth dt { font: 10.5px var(--mono); letter-spacing: .08em; text-transform: uppercase; color: var(--faint); padding-top: 4px; }
.auth dd { margin: 0; color: var(--muted); }
.sheet { background: var(--panel); padding: 28px; border-radius: 6px; display: grid; gap: 16px; }
.seg { display: grid; grid-template-columns: 1fr 1fr; border-bottom: 1px solid var(--line); margin: -8px 0 6px; }
.seg button { background: none; border: 0; border-bottom: 1px solid transparent; margin-bottom: -1px; color: var(--faint); font: 10.5px var(--mono); letter-spacing: .07em; text-transform: uppercase; padding: 14px 0; cursor: pointer; transition: color .3s; }
.seg button[aria-selected="true"] { color: var(--text); border-bottom-color: var(--orange); }
.msg { font-size: 14px; min-height: 1.5em; color: var(--muted); }
.msg.err { color: #ff9479; }
.btn.text { background: none; color: var(--muted); padding: 6px 0; }
.btn.text:hover { color: var(--text); background: none; }
.chead { display: flex; justify-content: space-between; align-items: end; gap: 24px; flex-wrap: wrap; margin-bottom: 36px; }
.chead .mono { color: var(--faint); display: block; margin-bottom: 16px; }
.chead h1 { font-size: clamp(34px, 4.4vw, 52px); }
.who { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; color: var(--muted); font-size: 14px; }
.chip { border: 1px solid var(--line-2); border-radius: 99px; padding: 9px 14px; color: var(--muted); }
.chip b { color: var(--text); font-weight: 500; }
.callout { background: var(--panel); border-left: 2px solid var(--orange); padding: 14px 18px; margin-bottom: 24px; font-size: 15px; color: var(--muted); }
.callout a { color: var(--text); text-decoration: underline; text-decoration-color: var(--orange); text-underline-offset: 4px; }
.ctabs { display: flex; gap: 6px; border-bottom: 1px solid var(--line); margin-bottom: 40px; overflow-x: auto; }
.ctabs button { background: none; border: 0; border-bottom: 1px solid transparent; margin-bottom: -1px; padding: 16px 16px 15px; color: var(--faint); font: inherit; letter-spacing: inherit; text-transform: inherit; cursor: pointer; white-space: nowrap; transition: color .3s; }
.ctabs button:hover:not(:disabled) { color: var(--muted); }
.ctabs button[aria-selected="true"] { color: var(--text); border-bottom-color: var(--orange); }
.ctabs button:disabled { opacity: .4; cursor: default; }
.console .duo .lead h2 { font-size: clamp(24px, 2.6vw, 32px); }
.cgrid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
@media (max-width: 900px) { .cgrid { grid-template-columns: 1fr; } }
.box { background: var(--panel); padding: 28px; border-radius: 6px; display: flex; flex-direction: column; gap: 14px; min-height: 220px; }
.box.paper.orange { background: var(--orange); }
.box.paper.orange > .mono { color: rgba(18, 16, 14, 0.7); }
.box.paper.orange p { color: rgba(18, 16, 14, 0.82); max-width: 380px; }
.box > .mono { color: var(--faint); margin-bottom: 10px; }
.box .foot { margin-top: auto; padding-top: 12px; }
.span2 { grid-column: 1 / -1; }
.big { font-size: 48px; line-height: 1; letter-spacing: -0.04em; }
.big small { font-size: 16px; letter-spacing: 0; opacity: .6; margin-left: 10px; font-family: var(--sans); }
.keys { border-top: 1px solid var(--line); }
.krow { display: grid; grid-template-columns: 1.2fr 1fr 1fr auto; gap: 16px; align-items: center; padding: 15px 0; border-bottom: 1px solid var(--line); font-size: 14.5px; }
.krow code { font: 12.5px var(--mono); color: var(--muted); }
.krow span { color: var(--faint); font-size: 13.5px; }
@media (max-width: 700px) { .krow { grid-template-columns: 1fr auto; } .krow span { display: none; } }
.newkey { display: flex; gap: 8px; flex-wrap: wrap; }
.newkey input { flex: 1; min-width: 180px; }
.reveal { padding: 18px; border-radius: 6px; }
.reveal code { display: block; font: 13px var(--mono); overflow-wrap: anywhere; margin: 10px 0 14px; }
.reveal p { font-size: 13.5px; color: rgba(18, 16, 14, 0.75); margin-top: 10px; }
.reveal .code { font: 12px var(--mono); }
.empty { padding: 22px 0; color: var(--faint); font-size: 14.5px; border-bottom: 1px solid var(--line); }
.topups { display: flex; gap: 8px; flex-wrap: wrap; }
#paymentElement { margin: 6px 0 20px; min-height: 110px; }
.bars { display: grid; grid-template-columns: repeat(14, 1fr); gap: 8px; height: 190px; align-items: end; }
.bar { height: 100%; display: flex; flex-direction: column; justify-content: flex-end; gap: 8px; }
.bar i { display: block; background: var(--orange); min-height: 2px; height: 0; border-radius: 2px 2px 0 0; transition: height 1.2s var(--ease); }
.bar span { font: 10px var(--mono); color: var(--faint); text-align: center; }
.sk.line { display: block; height: 12px; margin-bottom: 18px; }
.sk.h1 { display: block; height: 46px; width: min(420px, 70%); }
.sk.big { display: block; height: 40px; width: 180px; margin: 8px 0 14px; }
.sk.row { display: block; height: 44px; margin: 0 0 12px; }
i.sk { border-radius: 2px; background: linear-gradient(90deg, rgba(244, 241, 234, 0.07) 25%, rgba(244, 241, 234, 0.17) 50%, rgba(244, 241, 234, 0.07) 75%); background-size: 200% 100%; animation: shimmer 1.6s linear infinite; }

/* the prompt box on the home page */
.askbar { width: min(680px, 100%); margin: 0 auto; background: var(--panel); border: 1px solid var(--line-2); border-radius: 18px; padding: 8px; text-align: left; transition: border-color .3s, box-shadow .4s; }
.askbar:focus-within { border-color: var(--orange); box-shadow: 0 0 0 6px rgba(255, 91, 10, 0.12); }
.askbar textarea { display: block; width: 100%; background: transparent; border: 0; outline: none; resize: none; color: var(--text); font: 17px/1.45 var(--sans); padding: 12px 14px 6px; min-height: 76px; }
.askbar textarea::placeholder { color: var(--faint); }
.askrow { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 4px 4px 4px 14px; flex-wrap: wrap; }
.askrow .mono { color: var(--faint); }
.chips { display: flex; justify-content: center; gap: 8px; flex-wrap: wrap; margin-top: 18px; }
.chips button { background: transparent; border: 1px solid var(--line-2); border-radius: 99px; color: var(--muted); font: 14px var(--sans); padding: 8px 14px; cursor: pointer; transition: color .3s, border-color .3s; }
.chips button:hover { color: var(--text); border-color: var(--text); }

/* ---- agent-ready: the checker page and its report (also used in the console) ---- */
.readyhero { padding-bottom: 40px; }
.readybar { display: flex; gap: 8px; align-items: center; padding: 8px; }
.readybar input { flex: 1; min-width: 0; background: transparent; border: 0; outline: none; color: var(--text); font: 17px var(--sans); padding: 10px 14px; }
.readybar input::placeholder { color: var(--faint); }
.rd-msg { min-height: 1.5em; margin-top: 18px; color: var(--muted); font-size: 15px; }
.rd-msg.err { color: #ff9479; }
.readyout { padding: 0 0 20px; }
.readyout:has(#readyOut:empty) { display: none; }
.wrap.narrow { max-width: 860px; }
.rd { display: grid; gap: 22px; text-align: left; }
.rd-top { display: flex; align-items: center; gap: 22px; }
.rd-score { flex: none; position: relative; width: 132px; height: 132px; display: grid; place-content: center; text-align: center; }
.rd-score svg { position: absolute; inset: 0; transform: rotate(-90deg); }
.rd-score circle { fill: none; stroke: var(--line); stroke-width: 5; }
.rd-score .arc { stroke: var(--orange); stroke-linecap: round; transition: stroke-dashoffset 1.4s var(--ease); }
.rd-score b { font: 500 44px/1 var(--display); letter-spacing: -0.04em; }
.rd-score span { font: 9.5px var(--mono); color: var(--faint); text-transform: uppercase; letter-spacing: .08em; margin-top: 4px; }
.rd-verdict { color: var(--text) !important; margin-top: 10px !important; }
.rd-top h3 { font-size: 24px; letter-spacing: -0.02em; overflow-wrap: anywhere; }
.rd-top p { color: var(--muted); font-size: 14.5px; margin-top: 4px; }
.rd-checks { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; }
.rd-checks li { display: grid; gap: 6px; align-content: start; padding: 16px 18px 16px 46px; border: 1px solid var(--line); border-radius: 12px; font-size: 14px; position: relative; background: #121110; }
.rd-checks li::before { content: "\2715"; position: absolute; left: 16px; top: 16px; width: 20px; height: 20px; border-radius: 50%; display: grid; place-items: center; font-size: 10px; background: rgba(255, 148, 121, 0.14); color: #ff9479; }
.rd-checks li.ok::before { content: "\2713"; background: rgba(111, 207, 139, 0.14); color: #6fcf8b; }
.rd-checks li.no { border-color: rgba(255, 148, 121, 0.3); }
.rd-checks b { font-weight: 500; font-size: 14.5px; }
.rd-checks span { color: var(--muted); line-height: 1.45; }
.rd-checks em { font-style: normal; color: var(--text); line-height: 1.45; padding-top: 6px; border-top: 1px solid var(--line); }
.rd-tiles { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.rd-tile { border: 1px solid var(--line); border-radius: 12px; padding: 16px 18px; display: grid; gap: 8px; align-content: start; min-width: 0; }
.rd-tile b { font-weight: 500; }
.rd-tile span { color: var(--muted); font-size: 13.5px; line-height: 1.45; }
.rd-tile code { font: 12px/1.5 var(--mono); color: var(--orange); overflow-wrap: anywhere; padding-top: 8px; border-top: 1px solid var(--line); }
.rd-tabs { display: flex; gap: 2px; margin-right: auto; margin-left: 14px; flex-wrap: wrap; }
.rd-tabs button { background: none; border: 0; color: var(--faint); font: 11.5px var(--mono); padding: 5px 10px; border-radius: 6px; cursor: pointer; }
.rd-tabs button[aria-selected="true"] { background: rgba(244, 241, 234, 0.1); color: var(--text); }
@media (max-width: 760px) { .rd-checks, .rd-tiles { grid-template-columns: 1fr; } .rd-score { width: 104px; height: 104px; } .rd-score b { font-size: 34px; } }
.rd-block { display: grid; gap: 10px; min-width: 0; }
.rd-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.rd h4 { font: 500 16px var(--sans); letter-spacing: -0.01em; }
.rd-note { color: var(--muted); font-size: 13.5px; }
.rd-pre { margin: 0; background: #0a0908; border: 1px solid var(--line); border-radius: 12px; padding: 16px; font: 12.5px/1.65 var(--mono); color: var(--muted); overflow: auto; max-height: 340px; white-space: pre; }
.rd-url { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.3fr) auto; gap: 14px; align-items: center; padding: 12px 0; border-top: 1px solid var(--line); font-size: 14px; }
.rd-url b { display: block; font-weight: 500; }
.rd-url span { color: var(--faint); font-size: 13px; overflow-wrap: anywhere; }
.rd-url code { font: 12.5px var(--mono); color: var(--muted); overflow-wrap: anywhere; }
@media (max-width: 700px) { .rd-url { grid-template-columns: 1fr auto; } .rd-url > div { grid-column: 1 / -1; } .rd-top { gap: 16px; } }

.posts.four { grid-template-columns: repeat(2, 1fr); }
@media (max-width: 960px) { .posts.four { grid-template-columns: 1fr; } }

/* ---- the "works with" loop ---- */
.strip.loop { display: flex; align-items: center; gap: 28px; padding-left: max(32px, calc((100vw - 1200px) / 2 + 32px)); overflow: hidden; }
.strip.loop > .mono { flex: none; color: var(--faint); }
#marqueeRoot { flex: 1; min-width: 0; mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); }
#marqueeRoot ul { list-style: none; margin: 0; padding: 18px 0; display: flex; gap: 40px; color: var(--muted); }
#marqueeRoot .mq { margin: 0 !important; }
#marqueeRoot .mq > div { max-width: none; padding: 18px 0; }
.mq-item { display: inline-flex; align-items: center; gap: 12px; margin: 0 26px; font: 500 15px var(--sans); color: var(--muted); white-space: nowrap; transition: color .3s; }
.mq-item:hover { color: var(--text); }
.mq-item i { width: 6px; height: 6px; background: var(--orange); }
@media (max-width: 640px) { .strip.loop { padding-left: 16px; gap: 16px; } }

/* ---- careers ---- */
.careers-intro { max-width: 620px; margin: 26px auto 0; color: var(--muted); font-size: 18px; line-height: 1.55; }
.careers-rail [data-slot="team-lanyard-rail"] { background: transparent; }
.careers-rail .btn { text-decoration: none; }

/* ---- the prompt bar: nothing in it but a glitching "Prompt your agents" ---- */
.askbar { display: flex; align-items: flex-end; gap: 8px; }
.askfield { position: relative; flex: 1; min-width: 0; }
.askghost { position: absolute; left: 14px; top: 14px; pointer-events: none; font: 500 19px var(--mono); letter-spacing: .14em; text-transform: uppercase; color: rgba(244, 241, 234, 0.3); animation: ghost-flicker 5s steps(1) infinite; }
.askghost::before, .askghost::after { content: attr(data-text); position: absolute; inset: 0; opacity: .7; }
.askghost::before { color: rgba(255, 91, 10, 0.55); animation: ghost-a 2.6s steps(1) infinite; }
.askghost::after { color: rgba(231, 226, 216, 0.35); animation: ghost-b 3.4s steps(1) infinite; }
#askText:not(:placeholder-shown) + .askghost, #askText:focus:not(:placeholder-shown) + .askghost { display: none; }
#askText:focus + .askghost { opacity: .55; }
.asksend { flex: none; width: 46px; height: 46px; padding: 0; justify-content: center; border-radius: 50%; }
@keyframes ghost-a { 0%, 100% { transform: none; clip-path: inset(0 0 0 0); opacity: 0; } 8% { transform: translate(-2px, 1px); clip-path: inset(10% 0 55% 0); opacity: .8; } 12% { transform: translate(2px, -1px); clip-path: inset(60% 0 8% 0); opacity: .8; } 16% { opacity: 0; } 62% { transform: translate(3px, 0); clip-path: inset(35% 0 30% 0); opacity: .7; } 66% { opacity: 0; } }
@keyframes ghost-b { 0%, 100% { transform: none; opacity: 0; } 30% { transform: translate(2px, 1px); clip-path: inset(70% 0 5% 0); opacity: .6; } 34% { transform: translate(-3px, 0); clip-path: inset(5% 0 70% 0); opacity: .6; } 38% { opacity: 0; } 84% { transform: translate(-1px, -1px); clip-path: inset(40% 0 40% 0); opacity: .6; } 88% { opacity: 0; } }
@keyframes ghost-flicker { 0%, 100% { opacity: 1; } 47% { opacity: .55; } 49% { opacity: 1; } 71% { opacity: .7; } 72% { opacity: 1; } }
@media (prefers-reduced-motion: reduce) { .askghost, .askghost::before, .askghost::after { animation: none; } }
@media (max-width: 560px) { .askghost { font-size: 15px; letter-spacing: .1em; } }

/* ---- status page ---- */
.st { max-width: 860px; display: grid; gap: 22px; }
.st-head { display: flex; gap: 18px; align-items: flex-start; border: 1px solid var(--line); border-radius: 18px; padding: 24px 26px; background: #151413; }
.st-head b { font: 500 22px/1.2 var(--display); letter-spacing: -0.02em; }
.st-head p { color: var(--muted); margin-top: 6px; max-width: 60ch; }
.st-dot { flex: none; width: 14px; height: 14px; border-radius: 50%; margin-top: 7px; background: var(--faint); box-shadow: 0 0 0 5px rgba(244, 241, 234, 0.06); }
.st-dot[data-state="operational"] { background: #58c88a; box-shadow: 0 0 0 5px rgba(88, 200, 138, 0.14); }
.st-dot[data-state="degraded"] { background: #e9b23c; box-shadow: 0 0 0 5px rgba(233, 178, 60, 0.14); }
.st-dot[data-state="down"] { background: #ff5b0a; box-shadow: 0 0 0 5px rgba(255, 91, 10, 0.16); }
.st-list { border: 1px solid var(--line); border-radius: 18px; overflow: hidden; }
.st-row { display: flex; justify-content: space-between; align-items: center; gap: 18px; padding: 16px 22px; border-top: 1px solid var(--line); }
.st-row:first-child { border-top: 0; }
.st-row b { display: block; font-weight: 500; }
.st-row small { color: var(--faint); font-size: 13.5px; }
.st-tag { flex: none; font-size: 11.5px; padding: 5px 10px; border-radius: 999px; border: 1px solid var(--line); color: var(--faint); }
.st-tag[data-state="operational"] { color: #58c88a; border-color: rgba(88, 200, 138, 0.35); }
.st-tag[data-state="degraded"] { color: #e9b23c; border-color: rgba(233, 178, 60, 0.4); }
.st-tag[data-state="down"] { color: #ff5b0a; border-color: rgba(255, 91, 10, 0.5); }
.st-foot { color: var(--faint); font-size: 11.5px; }
