@font-face { font-family: "Instrument Sans"; src: url(fonts/instrument-sans.woff2) format("woff2"); font-weight: 400 700; font-display: swap; }
:root {
  --bg: #f6f8f5;
  --surface: #ffffff;
  --text: #16211c;
  --muted: #4b5b54;
  --line: #dbe3de;
  --green: #0e4d3a;
  --gold: #e3b23c;
  --accent: #0e4d3a;
  --accent-text: #ffffff;
  --btn-bg: #0e4d3a;
  --btn-text: #ffffff;
  --code-bg: #0d1613;
  --code-text: #dcebe4;
  --tag-today: #0e4d3a;
  --tag-dev-bg: #fbefc9;
  --tag-dev-text: #5a4204;
  --focus: #0e4d3a;
  --max: 1180px;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0b1512;
    --surface: #111e19;
    --text: #e6efea;
    --muted: #9fb1a9;
    --line: #23342d;
    --accent: #5eead4;
    --btn-bg: #e3b23c;
    --btn-text: #10211a;
    --accent-text: #0b1512;
    --tag-today: #5eead4;
    --tag-dev-bg: #3a2f10;
    --tag-dev-text: #f0d37e;
    --focus: #5eead4;
  }
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 17px/1.6 "Instrument Sans", system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  -webkit-text-size-adjust: 100%;
}
.wrap { max-width: var(--max); margin: 0 auto; padding: 0 20px; }
a { color: var(--accent); text-underline-offset: 3px; }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; border-radius: 4px; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--surface); padding: 8px 12px; z-index: 10; }
.skip:focus { left: 8px; }

/* header */
header.site { position: sticky; top: 0; z-index: 5; background: color-mix(in srgb, var(--bg) 90%, transparent); backdrop-filter: blur(8px); border-bottom: 1px solid var(--line); }
header.site .wrap { display: flex; align-items: center; justify-content: space-between; height: 64px; gap: 16px; }
header.site img { height: 40px; width: auto; display: block; }
nav.main { display: flex; align-items: center; gap: 22px; font-size: 15px; }
nav.main a { color: var(--muted); text-decoration: none; }
nav.main a:hover { color: var(--text); }
@media (max-width: 620px) { nav.main a.hide-sm { display: none; } }

.btn { display: inline-block; background: var(--btn-bg); color: var(--btn-text); font-weight: 600; text-decoration: none; padding: 12px 22px; border-radius: 8px; border: 0; font-size: 16px; font-family: inherit; cursor: pointer; }
.btn:hover { filter: brightness(1.1); }
nav.main .btn { white-space: nowrap; padding: 8px 16px; font-size: 15px; color: var(--btn-text); }
nav.main .btn:hover { color: var(--btn-text); }

/* sections */
section { padding: clamp(48px, 6.5vw, 84px) 0; scroll-margin-top: 64px; }
h1, h2, h3 { line-height: 1.08; margin: 0 0 16px; text-wrap: balance; }
h1 { font-size: clamp(42px, 8.2vw, 104px); letter-spacing: -0.045em; font-weight: 600; line-height: .98; }
h2 { font-size: clamp(32px, 5vw, 60px); letter-spacing: -0.035em; font-weight: 600; }
h3 { font-size: 20px; letter-spacing: -0.01em; }
p { margin: 0 0 16px; }
.lede { font-size: clamp(18px, 2vw, 22px); line-height: 1.45; color: var(--muted); max-width: 34em; }
.caption, figcaption { font-size: 14px; color: var(--muted); margin: 14px 0 0; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); margin: 0; }
.tag { display: inline-block; font-size: 13px; font-weight: 600; padding: 3px 11px; border-radius: 99px; letter-spacing: 0; line-height: 1.5; }
.tag.dev { background: var(--tag-dev-bg); color: var(--tag-dev-text); }
.tag.today { background: var(--green); color: #fff; }
.tag.new { background: var(--accent); color: var(--accent-text); }
.tag.plan { border: 1px dashed var(--muted); color: var(--muted); }
ul.plain { list-style: none; margin: 0; padding: 0; }
ul.plain li { padding: 9px 0; border-top: 1px solid var(--line); }

/* hero: green field, screenshot hangs over its lower edge */
.hero { padding: clamp(56px, 8vw, 104px) 0 0; background: linear-gradient(var(--green) calc(100% - 22vw), var(--bg) 0); color: #fff; }
.hero .gold { color: var(--gold); }
.hero .lede { color: #d3e6dd; margin: 0; }
.hero-row { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: 28px 48px; margin: 28px 0 56px; }
.hero-row .lede { flex: 1 1 420px; }
.cta-row { display: flex; align-items: center; gap: 14px 20px; flex-wrap: wrap; font-size: 15px; color: #d3e6dd; }
.cta-row a:not(.btn) { color: #fff; text-decoration: underline; text-underline-offset: 3px; }
.hero .btn { background: var(--gold); color: #10211a; }
@media (max-width: 560px) { .cta-row { gap: 12px; } .cta-row .btn { flex: 1 1 100%; text-align: center; } .cta-row a:not(.btn), .cta-row span { flex: 1 1 100%; } .cta-row span { margin-top: 4px; font-size: 14px; } }
.hero :focus-visible { outline-color: #fff; }
.shot { margin: 0; }
.shot .rise { display: block; transform: translateY(var(--rise, 0px)); will-change: transform; }
.shot img { width: 100%; height: auto; display: block; border-radius: 14px; box-shadow: 0 30px 80px -24px rgba(0, 20, 12, .65); }

/* demo */
.strike { color: var(--muted); }
.demo { --d-line: #26342e; margin-top: 36px; background: #06090f; color: #dcebe4; border-radius: 18px; overflow: hidden; border: 1px solid var(--d-line); position: relative; }
.demo-bar { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 14px; flex-wrap: wrap; }
.seg { display: flex; background: #18211f; border-radius: 10px; padding: 4px; }
.demo button { font: inherit; font-size: 15px; font-weight: 600; color: #b9cac2; background: none; border: 0; border-radius: 7px; padding: 8px 16px; cursor: pointer; }
.demo button[aria-pressed=true] { background: #dcebe4; color: #0d1613; }
.demo[data-mode=lab] button[aria-pressed=true] { background: var(--gold); }
.demo :focus-visible { outline-color: #5eead4; }
.demo-panes { display: grid; grid-template-columns: 1.6fr 1fr; border-block: 1px solid var(--d-line); }
.pane { min-width: 0; }
.pane + .pane { border-left: 1px solid var(--d-line); }
.pane-h { display: flex; justify-content: space-between; gap: 12px; padding: 12px 18px; font-size: 14px; color: #a3b5ad; }
.state::before { content: ""; display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: #5eead4; margin-right: 8px; }
.state.off::before { background: #f87171; }
.scope { position: relative; height: clamp(220px, 30vw, 360px); }
.scope canvas { width: 100%; height: 100%; display: block; transition: opacity .35s; }
.veil { position: absolute; inset: 0; display: grid; place-items: center; text-align: center; margin: 0; color: #a3b5ad; opacity: 0; visibility: hidden; transition: opacity .35s; }
[data-mode=script] .scope canvas { opacity: .1; }
[data-mode=script] .veil { opacity: 1; visibility: visible; }
.term { margin: 0; padding: 8px 18px 18px; font: 14px/1.75 ui-monospace, Menlo, Consolas, monospace; white-space: pre-wrap; min-height: 12em; }
[data-mode=vendor] .term { color: #fca5a5; }
.demo-save { display: flex; flex-wrap: wrap; gap: 4px 20px; padding: 16px 18px; font-size: 15px; align-items: baseline; }
.save-l { color: #a3b5ad; }
.save-v { font-family: ui-monospace, Menlo, Consolas, monospace; font-size: 14px; }
.save-q { color: #fca5a5; }
[data-mode=lab] .save-q { color: #5eead4; }

/* map */
.map { display: grid; grid-template-columns: 200px 1fr 190px .7fr 240px; align-items: stretch; margin-top: 44px; min-height: 400px; }
.os { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 10px; margin: 36px 0 0; color: var(--muted); }
.os b { font-weight: 600; color: var(--text); background: var(--surface); border: 1px solid var(--line); border-radius: 99px; padding: 4px 14px; font-size: 15px; }
.map ul { list-style: none; margin: 0; padding: 0; display: grid; grid-auto-rows: 1fr; }
.map li { display: flex; flex-direction: column; justify-content: center; font-size: 18px; line-height: 1.35; padding: 0 14px; }
.map-in li { text-align: right; padding-left: 0; }
.map-out li span { color: var(--muted); font-size: 15px; }
.map-out li.dash b { color: var(--muted); }
.wires { width: 100%; height: 100%; overflow: visible; }
.wires path { fill: none; stroke: var(--muted); stroke-width: 2; vector-effect: non-scaling-stroke; opacity: .75; }
.wires.out path { stroke: var(--gold); stroke-width: 3; opacity: 1; }
.wires.out .dash { stroke-dasharray: 5 6; }
.wires.rail { display: none; }
/* travelling data points; dash lengths are screen px because the stroke does not scale */
.wires .flow { stroke: var(--accent) !important; stroke-width: 8 !important; stroke-linecap: round; stroke-dasharray: .1 149.9; opacity: 1 !important; animation: flow 2.6s linear infinite; }
.map:not(.run) .flow { animation-play-state: paused; }
@keyframes flow { from { stroke-dashoffset: 150; } to { stroke-dashoffset: 0; } }
.hub { align-self: center; background: var(--green); color: #fff; border-radius: 20px; padding: 34px 12px; text-align: center; font-size: 20px; }
.hub img { display: block; margin: 0 auto 12px; }

/* bento */
.legend { margin: 0; color: var(--muted); font-size: 15px; }
.legend .tag { margin-right: 6px; }
.bento { display: grid; grid-template-columns: repeat(6, 1fr); gap: 16px; margin-top: 40px; }
.cell { background: var(--surface); border-radius: 18px; padding: 28px; display: flex; flex-direction: column; min-width: 0; }
.cell { grid-column: span 2; }
.cell.wide { grid-column: span 4; }
.cell.half { grid-column: span 3; }
.cell h3 .tag { vertical-align: 2px; margin-left: 4px; }
.zoom { display: block; }
.cell .zoom { margin-bottom: 4px; }
.cell .zoom img { width: 100%; height: auto; display: block; border-radius: 10px; border: 1px solid var(--line); }
.wide-shot { margin: 40px 0 0; max-width: 880px; }
.wide-shot img { width: 100%; height: auto; display: block; border-radius: 14px; border: 1px solid var(--line); box-shadow: 0 24px 60px -30px rgba(0, 20, 12, .5); }
.story-code { min-width: 0; }
.after-code { margin: 16px 0 0; color: var(--muted); font-size: 16px; }
.cell h3 { margin: auto 0 6px; padding-top: 28px; }
.cell p:last-child { margin: 0; color: var(--muted); }
.sensors { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; background: #06090f; border-radius: 10px; padding: 12px; }
.sensor { background: #1b2636; border-radius: 10px; padding: 14px 16px; min-width: 0; color: #a9b6c8; }
.sensor span { display: block; font-size: 14px; }
.cell .sensor p { margin: 4px 0 0; color: #a9b6c8; font-size: 15px; font-variant-numeric: tabular-nums; }
.sensor i { font-style: normal; font-weight: 600; color: #4ade80; margin-right: 10px; }
.sensor i::before { content: ""; display: inline-block; border: 5px solid transparent; border-left: 8px solid; border-right: 0; margin-right: 6px; }
.sensor b { color: #7db4ff; } .sensor em { font-style: normal; font-weight: 600; color: #4ade80; margin-left: 10px; }
.cell .sensor p.v { font-size: 18px; } .sensor strong { color: #fff; font-weight: 500; font-size: 24px; letter-spacing: -.01em; }
.big { font-size: clamp(64px, 8vw, 104px); font-weight: 600; letter-spacing: -.05em; line-height: 1; margin: 0; color: var(--accent); white-space: nowrap; }
.big small { font-size: .3em; letter-spacing: 0; }
.snip { margin: 0; background: var(--code-bg); color: var(--code-text); border-radius: 10px; padding: 18px; font: 14px/1.7 ui-monospace, Menlo, Consolas, monospace; overflow-x: auto; }
.snip .s { color: var(--gold); } .snip .c { color: #93a89f; }
.rec { background: #06090f; color: #dcebe4; border-radius: 10px; padding: 18px; }
.rec svg { width: 100%; height: 80px; display: block; }
.rec path { fill: none; stroke: #f4ef3a; stroke-width: 1.5; vector-effect: non-scaling-stroke; }
.rec dl { display: flex; flex-wrap: wrap; gap: 8px 28px; margin: 14px 0 0; }
.rec dt { font-size: 13px; color: #a3b5ad; } .rec dd { margin: 0; font: 14px/1.4 ui-monospace, Menlo, Consolas, monospace; }

/* device story */
.story { display: grid; grid-template-columns: 1.25fr 1fr; gap: 0 28px; align-items: center; margin-top: 36px; }
pre.code { margin: 0; background: var(--code-bg); color: var(--code-text); border-radius: 18px; padding: 28px; overflow-x: auto; font: 13.5px/1.6 ui-monospace, Menlo, Consolas, monospace; }
pre.code .k { color: #5eead4; } pre.code .s { color: var(--gold); } pre.code .c { color: #93a89f; } pre.code .n { color: #f0a8d0; }
.story figure { margin: 0; position: relative; }
.story img { width: 100%; height: auto; display: block; }

/* ai */
#ai { background: var(--surface); }
.ai { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: center; }
.chat { display: flex; flex-direction: column; gap: 14px; }
.chat p { margin: 0; }
.me, .it { padding: 16px 20px; border-radius: 18px; max-width: 88%; }
.me { align-self: flex-end; background: var(--green); color: #fff; border-bottom-right-radius: 4px; }
.it { background: var(--bg); border-bottom-left-radius: 4px; }
.it code { font: 15px ui-monospace, Menlo, Consolas, monospace; }
.srv { font: 14px/1.5 ui-monospace, Menlo, Consolas, monospace; background: var(--code-bg); color: #fca5a5; border-radius: 10px; padding: 12px 18px; }
.srv.ok { color: #5eead4; }
.srv span { display: block; color: #a3b5ad; font-size: 13px; }
.chat > p { transition: opacity .35s, transform .35s; }
.chat.playing > p:not(.in):not(.caption) { opacity: 0; transform: translateY(10px); }
.it { position: relative; }
.it.think { color: transparent; } .it.think code { color: transparent; }
.it.think::after { content: "•••"; position: absolute; left: 20px; top: 50%; translate: 0 -50%; color: var(--muted); letter-spacing: 3px; animation: blink .8s ease-in-out infinite alternate; }
@keyframes blink { from { opacity: .25; } }

/* paper */
.paper { background: #1c2533; color: #fff; }
.paper-img { width: 100%; height: auto; display: block; border-radius: 18px; }
.paper-grid { display: grid; grid-template-columns: 1fr 1.55fr; gap: clamp(32px, 5vw, 80px); align-items: center; }
.paper-grid > * { min-width: 0; }
.paper-img { aspect-ratio: 4 / 3; object-fit: cover; object-position: 55% 50%; }
@media (min-width: 861px) { .paper-img { order: 2; } .paper .paper-grid { grid-template-columns: 1.55fr 1fr; } }
.kick { color: var(--gold); font-weight: 600; font-size: 18px; }
.paper blockquote { margin: 0 0 28px; font-size: clamp(32px, 4.8vw, 62px); font-weight: 600; line-height: 1.05; letter-spacing: -.035em; text-wrap: balance; }
.paper p { font-size: 18px; } .paper a { color: var(--gold); }
.dev-at { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 22px; margin: 36px 0 0; padding-top: 28px; border-top: 1px solid #ffffff33; color: #c9d3e0; font-size: 15px; line-height: 1.4; }
.dev-at img { height: 44px; width: auto; display: block; }
.legal .dev-at { border-top: 0; padding-top: 0; margin-top: 8px; color: var(--muted); }
.paper-note { color: #c9d3e0; margin: 0; }
.paper :focus-visible { outline-color: #fff; }

/* status */
.status-grid { display: grid; gap: 36px 32px; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); margin-top: 36px; }
.status-grid .wide { grid-column: span 2; }
ul.plain.cols { column-count: 2; column-gap: 32px; }
ul.plain.cols li { break-inside: avoid; }
.status-grid h3 { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; font-size: 15px; margin-bottom: 12px; }
.status-grid .sub { flex-basis: 100%; font-weight: 400; color: var(--muted); }
.next { margin: 14px 0 0; font-size: 15px; color: var(--muted); font-style: italic; }
.release { margin: 36px 0 0; font-size: 18px; }

@media (max-width: 860px) {
  .demo-panes, .paper-grid, .story, .ai, .status-grid { grid-template-columns: minmax(0, 1fr); }
  .status-grid .wide { grid-column: auto; }
  ul.plain.cols { column-count: 1; }
  .pane + .pane { border-left: 0; border-top: 1px solid var(--d-line); }
  .story img { width: 100%; margin: 16px 0 0; }
  .ai { gap: 40px; }
  .bento { grid-template-columns: minmax(0, 1fr); } .cell, .cell.wide, .cell.half { grid-column: auto; }
  .map { grid-template-columns: 56px minmax(0, 1fr); min-height: 0; }
  .wires:not(.rail) { display: none; } .wires.rail { display: block; }
  .map-in { grid-column: 2; grid-row: 1; } .wires.rail:not(.out) { grid-column: 1; grid-row: 1; }
  .hub { grid-column: 1 / -1; display: flex; align-items: center; gap: 14px; padding: 16px 14px; text-align: left; }
  .hub img { width: 44px; height: 44px; margin: 0; }
  .map-out { grid-column: 2; } .wires.rail.out { grid-column: 1; }
  .map li { text-align: left; padding: 10px 12px; } .map-in li { padding: 7px 12px; }
}
@media (max-width: 600px) { #demo-pause { display: none; } }
@media (max-width: 480px) { .seg { width: 100%; } .seg button { flex: 1; padding: 8px 4px !important; font-size: 14px !important; } }

/* contact */
.contact-grid { display: grid; gap: 40px; }
@media (min-width: 900px) { .contact-grid { grid-template-columns: 1fr 1.1fr; } }
form { background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: 28px; }
#turnstile { margin-bottom: 18px; } #turnstile:empty { display: none; }
label { display: block; font-weight: 600; font-size: 15px; margin-bottom: 6px; }
label .opt { font-weight: 400; color: var(--muted); }
input[type=text], input[type=email], textarea { width: 100%; font: inherit; color: var(--text); background: var(--bg); border: 1px solid var(--muted); border-radius: 8px; padding: 11px 12px; margin-bottom: 18px; }
textarea { min-height: 140px; resize: vertical; }
.hp { position: absolute; left: -9999px; height: 0; overflow: hidden; }
.form-note { font-size: 14px; color: var(--muted); margin: 16px 0 0; }
#form-status { margin-top: 16px; font-weight: 600; min-height: 1.4em; }
.alt { color: var(--muted); }

/* footer */
footer { border-top: 1px solid var(--line); padding: 32px 0 48px; color: var(--muted); font-size: 15px; }
footer .wrap { display: flex; flex-wrap: wrap; gap: 12px 28px; justify-content: space-between; }
footer nav { display: flex; gap: 22px; }
footer a { color: var(--muted); }

/* legal pages */
.legal { padding: 56px 20px 80px; max-width: 760px; }
.legal h1 { font-size: 36px; }
.legal h2 { font-size: 22px; margin-top: 36px; }

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

/* prevent grid children from forcing horizontal overflow */
.story > *, .ai > *, .contact-grid > * { min-width: 0; }
@media (max-width: 480px) { form { padding: 22px; } .cell { padding: 20px; } .sensor { padding: 12px; } .sensor i { display: block; } .sensor em { margin-left: 4px; } .cell .sensor p { font-size: 14px; white-space: nowrap; } .sensor { padding: 10px !important; } .sensor strong { font-size: 18px; } .cell .sensor p.v { font-size: 14px; } }
@media (max-width: 420px) { header.site img { height: 34px; } nav.main .btn { padding: 0 14px; line-height: 34px; font-size: 14px; } }
@media (max-width: 350px) { header.site img { height: 32px; } nav.main .btn { padding: 0 11px; line-height: 32px; font-size: 13px; } .sensors { grid-template-columns: 1fr; } }
