/* Fonts are served from this site (SIL Open Font License, see fonts/). */
@font-face { font-family: "Chakra Petch"; font-weight: 500; font-display: swap; src: url("fonts/chakra-petch-latin-500-normal.woff2") format("woff2"); unicode-range: U+0000-00FF, U+2000-206F, U+2190-21FF, U+2500-257F; }
@font-face { font-family: "Chakra Petch"; font-weight: 500; font-display: swap; src: url("fonts/chakra-petch-latin-ext-500-normal.woff2") format("woff2"); unicode-range: U+0100-02BA, U+1E00-1E9F; }
@font-face { font-family: "Chakra Petch"; font-weight: 600; font-display: swap; src: url("fonts/chakra-petch-latin-600-normal.woff2") format("woff2"); unicode-range: U+0000-00FF, U+2000-206F, U+2190-21FF, U+2500-257F; }
@font-face { font-family: "Chakra Petch"; font-weight: 600; font-display: swap; src: url("fonts/chakra-petch-latin-ext-600-normal.woff2") format("woff2"); unicode-range: U+0100-02BA, U+1E00-1E9F; }
@font-face { font-family: "Chakra Petch"; font-weight: 700; font-display: swap; src: url("fonts/chakra-petch-latin-700-normal.woff2") format("woff2"); unicode-range: U+0000-00FF, U+2000-206F; }
@font-face { font-family: "JetBrains Mono"; font-weight: 400; font-display: swap; src: url("fonts/jetbrains-mono-latin-400-normal.woff2") format("woff2"); }

/* Light by default; dark when the system or the visitor asks. The desk
   example keeps the app's own colours in both. */
:root {
  --bg: #F6F7F9; --panel: #FFFFFF; --raised: #ECEEF3; --line: #DCDFE7; --line-hi: #B4BAC9;
  --text: #0A0F1F; --soft: #353C52; --muted: #5C647C;
  --accent: #1F3FE0; --accent-hi: #1630B8; --on-accent: #FFFFFF; --signal: #A8157A;
  --warn-bg: #FAEFF6; --warn-line: #E6B8D6;
  --head-base: #F6F7F9; --head-a: #0A0F1F; --head-b: #1F3FE0;
  --display: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", sans-serif;
  --body: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", sans-serif;
  --mono: "JetBrains Mono", ui-monospace, Menlo, Consolas, monospace;
  --max: 1160px; --gutter: 16px;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) { color-scheme: dark;
  --bg: #090A0F; --panel: #0F1118; --raised: #171A24; --line: #232735; --line-hi: #3A4055;
  --text: #ECEEF5; --soft: #B7BCCE; --muted: #8C93AA;
  --accent: #8AB4FF; --accent-hi: #B3CEFF; --on-accent: #08101F; --signal: #F07ACB;
  --warn-bg: #1C1020; --warn-line: #55244D;
  --head-base: #090A0F; --head-a: #ECEEF5; --head-b: #8AB4FF; } }
:root[data-theme="dark"] { color-scheme: dark;
  --bg: #090A0F; --panel: #0F1118; --raised: #171A24; --line: #232735; --line-hi: #3A4055;
  --text: #ECEEF5; --soft: #B7BCCE; --muted: #8C93AA;
  --accent: #8AB4FF; --accent-hi: #B3CEFF; --on-accent: #08101F; --signal: #F07ACB;
  --warn-bg: #1C1020; --warn-line: #55244D;
  --head-base: #090A0F; --head-a: #ECEEF5; --head-b: #8AB4FF; }
.desk {
  --bg: #07070D; --panel: #0B0B15; --raised: #14152A; --line: #24263A; --line-hi: #3A3D5C;
  --text: #E8E9F3; --soft: #B9BBD3; --muted: #9A9CB8;
  --accent: #22E5FF; --accent-hi: #9AF3FF; --on-accent: #07070D; --signal: #FF2BD6;
  --head-base: #0A0A14; --head-a: #22E5FF; --head-b: #FF2BD6;
  --display: "Chakra Petch", system-ui, sans-serif; --cut: 12px;
  color: var(--text); color-scheme: dark;
}
@media (min-width: 760px) { :root { --gutter: 40px; } }

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 84px; }
body { margin: 0; background: var(--bg); color: var(--text); font-family: var(--body); font-size: 16px; line-height: 1.6; -webkit-font-smoothing: antialiased; }
h1, h2, h3, p, ul, ol, dl, dd, figure, pre, table { margin: 0; }
ul, ol { padding: 0; list-style: none; }
a { color: var(--accent); text-underline-offset: 3px; }
a:hover { color: var(--accent-hi); }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
code, pre { font-family: var(--mono); font-size: 0.875em; }
.frame { max-width: var(--max); margin-inline: auto; padding-inline: var(--gutter); }
.skip { position: absolute; left: -999px; top: 8px; background: var(--accent); color: var(--on-accent); padding: 8px 12px; z-index: 10; }
.skip:focus { left: 8px; }

/* Header */
.top { position: sticky; top: 0; z-index: 4; background: color-mix(in srgb, var(--bg) 82%, transparent); -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); border-bottom: 1px solid transparent; transition: border-color 0.2s; }
.top.stuck { border-bottom-color: var(--line); }
.bar { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding-block: 14px; }
.mark { display: inline-flex; align-items: center; gap: 10px; font-weight: 400; font-size: 16px; color: var(--muted); text-decoration: none; white-space: nowrap; }
.mark svg { color: var(--text); }
.mark b { font-weight: 650; color: var(--text); }
.mark:hover { color: var(--muted); }
.top nav { display: flex; align-items: center; gap: 2px; overflow-x: auto; scrollbar-width: none; }
.top nav a, .theme { font: 500 15px var(--body); color: var(--soft); text-decoration: none; padding: 7px 12px; white-space: nowrap; border-radius: 6px; }
.top nav a:hover, .theme:hover { color: var(--text); background: var(--raised); }
.top nav .gh, .theme { border: 1px solid var(--line-hi); margin-left: 8px; }
.theme { background: none; cursor: pointer; }
@media (max-width: 759px) { .top nav a:not(.gh) { display: none; } }

/* Hero */
.hero { padding-top: 24px; }
.lead { display: grid; gap: 8px; align-items: center; }
@media (min-width: 900px) { .lead { grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: 32px; min-height: 520px; } }
h1 { font-family: var(--display); font-weight: 650; font-size: clamp(2.3rem, 1.2rem + 4.2vw, 4.4rem); line-height: 1.04; letter-spacing: -0.03em; text-wrap: balance; }
.lede { margin-top: 24px; color: var(--soft); font-size: clamp(1.05rem, 1rem + 0.4vw, 1.25rem); line-height: 1.5; max-width: 46ch; }
.actions { margin-top: 32px; display: flex; flex-wrap: wrap; gap: 12px; }
.figure { position: relative; height: 340px; order: -1; }
@media (min-width: 900px) { .figure { height: 520px; order: 0; } }
.head { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.button { display: inline-block; font: 600 16px var(--body); text-decoration: none; color: var(--text); padding: 11px 20px; border: 1px solid var(--line-hi); background: var(--panel); border-radius: 8px; }
.button:hover { background: var(--raised); color: var(--text); }
.button.primary { background: var(--accent); color: var(--on-accent); border-color: var(--accent); }
.button.primary:hover { background: var(--accent-hi); border-color: var(--accent-hi); color: var(--on-accent); }
.evidence { margin-top: 40px; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); border-top: 1px solid var(--text); }
@media (min-width: 900px) { .evidence { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.evidence > div { padding: 20px 20px 20px 0; border-bottom: 1px solid var(--line); }
.evidence dt { font-family: var(--display); font-weight: 650; font-size: clamp(1.5rem, 1.1rem + 1.4vw, 2.2rem); letter-spacing: -0.02em; line-height: 1.1; font-variant-numeric: tabular-nums; }
.evidence dd { margin-top: 8px; color: var(--muted); font-size: 14.5px; line-height: 1.45; max-width: 30ch; }

/* Sections */
.block { padding-block: 88px 0; }
.block > h2, .split h2 { font-family: var(--display); font-weight: 650; font-size: clamp(1.7rem, 1.2rem + 1.6vw, 2.5rem); line-height: 1.1; letter-spacing: -0.025em; margin-bottom: 20px; }
h3 { font-family: var(--display); font-weight: 650; font-size: 1.15rem; letter-spacing: -0.01em; margin-bottom: 10px; }
.block p { color: var(--soft); max-width: 66ch; }
.block p + p { margin-top: 12px; }
.block .intro { margin-bottom: 24px; font-size: 1.05rem; }
.block .fine { margin-top: 16px; color: var(--muted); font-size: 14px; }
.sub { margin-top: 56px; margin-bottom: 16px; }

.rail { position: relative; grid-column: 1 / -1; height: 1px; margin-bottom: 44px; background: var(--line); }
.split > .rail { margin-bottom: 4px; }
.rail .tag { color: var(--text); font-weight: 600; }
.rail .beam { position: absolute; left: 0; top: 0; width: 100%; height: 1px; background: var(--text); transform-origin: left; transform: scaleX(var(--p, 1)); }
.progress { position: fixed; z-index: 5; left: 0; top: 0; width: 100%; height: 2px; background: var(--accent); transform-origin: left; transform: scaleX(var(--p, 0)); }
.rv { opacity: 0; transform: translateY(10px); transition: opacity 0.5s ease-out, transform 0.5s cubic-bezier(0.2, 0.7, 0.2, 1); transition-delay: calc(var(--i, 0) * 50ms); }
.rv.in { opacity: 1; transform: none; }

/* Thesis */
.block .big { font-family: var(--display); font-weight: 600; font-size: clamp(1.6rem, 1rem + 2.6vw, 2.9rem); line-height: 1.14; letter-spacing: -0.025em; color: var(--text); max-width: 26ch; text-wrap: balance; }
.pillars { margin-top: 48px; display: grid; border-top: 1px solid var(--line); }
.pillars li { padding: 24px 0; border-bottom: 1px solid var(--line); }
.pillars h3 { font-size: 1.3rem; }
@media (min-width: 860px) { .pillars { grid-template-columns: repeat(3, minmax(0, 1fr)); } .pillars li { padding: 28px 32px 28px 0; } .pillars li + li { padding-left: 32px; border-left: 1px solid var(--line); } }

/* Research programme */
.block .legend { font-size: 13.5px; color: var(--muted); margin-bottom: 24px; max-width: none; }
.legend .st { margin: 0 6px 0 14px; } .legend .st:first-child { margin-left: 0; }
.st { font-family: var(--mono); font-size: 12.5px; color: var(--muted); white-space: nowrap; }
.st.rel { color: var(--accent); }
.st.open { color: var(--signal); }
.lines { border-top: 1px solid var(--text); }
.line { display: grid; gap: 16px; padding: 32px 0; border-bottom: 1px solid var(--line); }
.line h3 { font-size: 1.05rem; margin: 0; color: var(--muted); font-weight: 600; }
.line .q { font-family: var(--display); font-weight: 600; font-size: clamp(1.2rem, 1rem + 0.9vw, 1.55rem); line-height: 1.22; letter-spacing: -0.015em; color: var(--text); text-wrap: balance; max-width: 30ch; }
.line .q + p { margin-top: 12px; max-width: 56ch; }
.arts { font-size: 14px; align-self: start; }
.arts li { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; padding: 8px 0; border-bottom: 1px solid var(--line); color: var(--soft); }
.arts li:first-child { border-top: 1px solid var(--line); }
.arts a { font-family: var(--mono); font-size: 13.5px; text-decoration: none; }
.arts a:hover { text-decoration: underline; }
@media (min-width: 980px) { .line { grid-template-columns: 190px minmax(0, 1fr) 360px; gap: 40px; } }

/* Next */
.next { display: grid; gap: 16px; }
@media (min-width: 760px) { .next { grid-template-columns: repeat(6, minmax(0, 1fr)); } .next li { grid-column: span 3; } .next li:nth-child(n+3) { grid-column: span 2; } }
.next li { background: var(--panel); border: 1px solid var(--line); border-radius: 12px; padding: 28px; display: flex; flex-direction: column; }
.next h3 { font-size: 1.35rem; letter-spacing: -0.02em; margin-bottom: 12px; }
.next p { max-width: 48ch; }
.block .next .on { margin-top: auto; padding-top: 20px; font-size: 14px; color: var(--muted); }

/* Releases */
.tablewrap { overflow-x: auto; }
.releases { width: 100%; min-width: 560px; border-collapse: collapse; font-size: 15px; border-top: 1px solid var(--text); }
.releases th, .releases td { text-align: left; padding: 12px 16px 12px 0; border-bottom: 1px solid var(--line); font-weight: 400; vertical-align: baseline; }
.releases thead th { font-size: 13px; color: var(--muted); font-weight: 500; }
.releases tbody th a { font-family: var(--mono); font-size: 14px; text-decoration: none; }
.releases tbody th a:hover { text-decoration: underline; }
.releases td:nth-child(2), .releases td:nth-child(3) { font-family: var(--mono); font-size: 13.5px; color: var(--soft); white-space: nowrap; }
.releases td:last-child { color: var(--soft); }

/* The desk example: the app's own look */
.desk { display: grid; grid-template-columns: minmax(0, 1fr); border: 1px solid var(--line); background: var(--panel); margin-top: 8px; border-radius: 10px; overflow: hidden; }
.desk h2, .desk button, .desk .who { font-family: var(--display); }
.stage { position: relative; min-height: 300px; overflow: hidden; background:
    repeating-linear-gradient(0deg, rgba(255,255,255,0.025) 0 1px, transparent 1px 4px),
    radial-gradient(120% 90% at 50% 40%, #12142E 0%, #0A0A14 55%, #07070D 100%); }
.tick { position: absolute; width: 18px; height: 18px; border: 0 solid var(--accent); }
.tick.tl { left: 0; top: 0; border-width: 2px 0 0 2px; }
.tick.tr { right: 0; top: 0; border-width: 2px 2px 0 0; }
.tick.bl { left: 0; bottom: 0; border-width: 0 0 2px 2px; }
.tick.br { right: 0; bottom: 0; border-width: 0 2px 2px 0; }
.status { position: absolute; top: 16px; right: 20px; z-index: 1; display: grid; justify-items: end; gap: 2px; font-family: var(--mono); font-size: 12px; color: var(--muted); }
.tele { display: none; }
.desk.urgent .status span:first-child { color: #FF8A7D; }
.talk { border-top: 1px solid var(--line); padding: 0 24px 20px; }
.scenes { display: flex; margin: 0 -24px 18px; padding-inline: 12px; border-bottom: 1px solid var(--line); overflow-x: auto; scrollbar-width: none; }
.scenes button { font: 600 14px var(--display); color: var(--muted); background: none; border: 0; border-bottom: 2px solid transparent; padding: 12px; cursor: pointer; white-space: nowrap; }
.scenes button:hover { color: var(--text); }
.scenes button[aria-selected="true"] { color: var(--text); border-bottom-color: var(--accent); }
.no-js .scenes { display: none; }
.no-js .talk { padding-top: 18px; }
.log { display: grid; gap: 12px; min-height: 168px; align-content: start; }
.log .who { display: block; font-size: 12.5px; color: var(--muted); margin-bottom: 4px; }
.log p { color: var(--text); }
.log .you { justify-self: end; text-align: right; }
.log .you p { display: inline-block; text-align: left; background: var(--raised); border: 1px solid var(--line); padding: 8px 12px; }
.log .it .who { color: var(--accent); }
.log .it p { border-left: 2px solid #16404A; padding-left: 12px; max-width: 68ch; min-height: 1.6em; }
.answers { display: flex; gap: 8px; margin-top: 12px; }
.chipbtn { font-weight: 600; font-size: 14px; padding: 7px 14px; border: 1px solid var(--accent); color: var(--accent); background: none; cursor: pointer; }
.chipbtn:hover { background: var(--raised); }
.chipbtn.quiet { border-color: var(--line-hi); color: var(--soft); }
.composer { margin-top: 16px; display: flex; justify-content: space-between; align-items: stretch; border: 1px solid var(--line-hi); background: var(--raised); color: var(--muted); }
.composer span { padding: 10px 14px; }
.composer .send { font-family: var(--display); font-weight: 600; background: var(--accent); color: var(--on-accent); padding-inline: 22px; clip-path: polygon(var(--cut) 0, 100% 0, 100% 100%, 0 100%, 0 var(--cut)); }
.side { border-top: 1px solid var(--line); padding: 18px 24px 22px; font-size: 14px; }
.side h2 { font-weight: 600; font-size: 13px; color: var(--muted); margin: 20px 0 10px; letter-spacing: 0; }
.side h2:first-child { margin-top: 0; }
.side h2.needs { color: var(--signal); }
.side .item { display: flex; gap: 10px; align-items: baseline; color: var(--text); }
.side .item.none { color: var(--muted); }
.side .item.urgent { color: #FF8A7D; }
.side .item.urgent .dot { background: #FF4D3D; }
.dot { flex: none; width: 7px; height: 7px; background: var(--line-hi); display: inline-block; }
.dot.hot { background: var(--signal); }
.topics li { position: relative; padding: 8px 0 8px 18px; }
.topics li::before { content: ""; position: absolute; left: 0; top: 16px; width: 7px; height: 7px; background: var(--line-hi); }
.topics li.news::before { background: var(--signal); }
.topics li.here { background: var(--raised); margin-inline: -24px; padding-inline: 42px 24px; box-shadow: inset 2px 0 0 var(--accent); }
.topics li.here::before { left: 24px; }
.topics b { display: block; font-family: var(--display); font-weight: 600; font-size: 15px; }
.topics span { color: var(--muted); font-size: 13px; }
.lately li { display: flex; gap: 12px; color: var(--soft); padding: 3px 0; }
.lately time { color: var(--muted); font-variant-numeric: tabular-nums; }
.block .note { margin-top: 12px; color: var(--muted); font-size: 13.5px; }
@media (min-width: 980px) {
  .desk { grid-template-columns: minmax(0, 1fr) 300px; grid-template-rows: auto auto; }
  .stage { grid-column: 1; grid-row: 1; }
  .talk { grid-column: 1; grid-row: 2; }
  .side { grid-column: 2; grid-row: 1 / span 2; border-top: 0; border-left: 1px solid var(--line); }
}
@media (max-width: 759px) {
  .scenes { margin-inline: -16px; padding-inline: 4px; }
  .talk, .side { padding-inline: 16px; }
  .topics li.here { margin-inline: -16px; padding-inline: 34px 16px; }
  .topics li.here::before { left: 16px; }
}

/* What it does, the gate, the avatar */
.does { border-top: 1px solid var(--text); }
.does > div { display: grid; grid-template-columns: 1fr; gap: 4px; padding: 16px 0; border-bottom: 1px solid var(--line); }
.does dt { font-family: var(--display); font-weight: 650; font-size: 1.05rem; }
.does dd { color: var(--soft); max-width: 70ch; }
@media (min-width: 760px) { .does > div { grid-template-columns: 220px minmax(0, 1fr); gap: 24px; align-items: baseline; } }
.split { display: grid; gap: 40px; }
@media (min-width: 980px) { .split { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 64px; align-items: start; } }
#gate { grid-template-columns: minmax(0, 1fr); gap: 32px; }
.facts { margin-top: 24px; border-top: 1px solid var(--line); }
@media (min-width: 760px) { .facts { display: grid; grid-template-columns: 1fr 1fr; column-gap: 48px; } }
.facts li { padding: 12px 0; border-bottom: 1px solid var(--line); color: var(--soft); }
.facts b { display: block; font-weight: 650; color: var(--text); }
.block .warn { margin-top: 20px; padding: 12px 14px; background: var(--warn-bg); border: 1px solid var(--warn-line); border-left: 3px solid var(--signal); color: var(--text); font-size: 15px; border-radius: 6px; }
.flow { border: 1px solid var(--line); background: var(--panel); min-width: 0; border-radius: 10px; }
.flow figcaption { border-top: 1px solid var(--line); padding: 10px 24px; color: var(--muted); font-size: 13.5px; }
.flow .scroll { overflow-x: auto; padding: 24px; }
.flow svg { display: block; width: 100%; min-width: 760px; height: auto; }
.flow .node rect { fill: var(--bg); stroke: var(--line-hi); }
.flow .node text { fill: var(--soft); font-family: var(--mono); font-size: 14px; text-anchor: middle; }
.flow .gate rect { stroke: var(--accent); stroke-width: 1.5; }
.flow .gate text { fill: var(--accent); }
.flow .wire { fill: none; stroke: var(--line-hi); stroke-width: 1.5; stroke-dasharray: 5 7; animation: wire 1.2s linear infinite; }
.flow .wire.hot { stroke: var(--accent); }
.flow .wire.back { stroke: var(--signal); }
.flow .wire.dim { stroke-dasharray: 2 6; animation-name: wire8; animation-duration: 2s; }
.flow marker path { fill: var(--muted); }
@keyframes wire { to { stroke-dashoffset: -12; } }
@keyframes wire8 { to { stroke-dashoffset: -8; } }
.people { margin-top: 18px; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.people li { border: 1px solid var(--line-hi); padding: 12px 14px; background: var(--panel); border-radius: 8px; }
.people li:first-child { border-color: var(--accent); }
.people b { display: block; font-weight: 650; }
.people span { color: var(--muted); font-size: 13.5px; }
@media (max-width: 480px) { .people { grid-template-columns: 1fr; } }

/* Install */
.install { border: 1px solid var(--line); background: var(--panel); border-radius: 10px; overflow: hidden; }
.tablist { display: flex; overflow-x: auto; border-bottom: 1px solid var(--line); scrollbar-width: none; }
.tablist button { font: 600 15px var(--body); color: var(--muted); background: none; border: 0; border-bottom: 2px solid transparent; padding: 14px 20px; cursor: pointer; white-space: nowrap; }
.tablist button:hover { color: var(--text); }
.tablist button[aria-selected="true"] { color: var(--text); border-bottom-color: var(--accent); }
.tabpanel { padding: 24px; }
.tabpanel p + p { margin-top: 16px; }
.tabpanel .warn { max-width: 66ch; }
.install .fine { padding: 0 24px 20px; margin: 0; }
.cmd { position: relative; margin-top: 16px; border: 1px solid var(--line-hi); background: var(--bg); border-radius: 8px; }
.cmd pre { padding: 16px 84px 16px 16px; overflow-x: auto; color: var(--text); line-height: 1.7; }
.copy { position: absolute; top: 8px; right: 8px; font: 600 13px var(--body); color: var(--soft); background: var(--raised); border: 1px solid var(--line-hi); padding: 5px 10px; cursor: pointer; border-radius: 6px; }
.copy:hover { color: var(--text); }
.no-js .copy { display: none; }
.state { margin-top: 32px; }

/* Footer */
.foot { margin-top: 112px; padding-block: 28px 48px; border-top: 1px solid var(--line); display: flex; flex-wrap: wrap; gap: 16px 32px; align-items: center; justify-content: space-between; }
.foot nav { display: flex; flex-wrap: wrap; gap: 6px 22px; }
.foot nav a { color: var(--soft); font-size: 14px; text-decoration: none; }
.foot nav a:hover { color: var(--text); text-decoration: underline; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .flow .wire { animation: none; }
  .progress { display: none; }
}
