:root {
  --bg: #F3F7EC;
  --surface: #FFFFFF;
  --surface-2: #E6EFD9;
  --ink: #1C2418;
  --muted: #56604F;
  --line: rgba(28,36,24, 0.12);
  --line-2: rgba(28,36,24, 0.22);
  --prompt: #2A3FC9;
  --sans: "Bricolage Grotesque", ui-sans-serif, system-ui, sans-serif;
  --mono: "JetBrains Mono", ui-monospace, "SF Mono", Menlo, monospace;
  --gutter: 16px;
  --max: 1240px;
  --ease-out: cubic-bezier(.16, 1, .3, 1);
  color-scheme: light;
}
@media (min-width: 700px) { :root { --gutter: 32px; } }

*, *::before, *::after { box-sizing: border-box; }
/* The Mac/Windows install copy swaps with the hidden attribute; classes like .install-grid set their
   own display, which would otherwise beat the browser's [hidden] rule and show both. */
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; }
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }
body {
  margin: 0; background: var(--bg); color: var(--ink);
  font-family: var(--sans); font-size: 16px; line-height: 1.55;
  font-optical-sizing: auto; -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}
img, video { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
code, kbd, pre { font-family: var(--mono); }
h1, h2, h3 { margin: 0; font-weight: 600; line-height: 1.05; }
p { margin: 0; }
:focus-visible { outline: 2px solid var(--ink); outline-offset: 3px; border-radius: 4px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: 16px; top: -60px; background: var(--ink); color: var(--bg); padding: 8px 12px; border-radius: 6px; z-index: 60; }
.skip:focus { top: 12px; }
.wrap { max-width: var(--max); margin: 0 auto; padding: 0 var(--gutter); }

/* scroll progress, drawn in the lane colours */
.progress { position: fixed; inset: 0 0 auto 0; height: 2px; z-index: 70; pointer-events: none; }
.progress span {
  display: block; height: 100%; transform-origin: left; transform: scaleX(0);
  background: linear-gradient(90deg, #7C8677 0 10%, #2A3FC9 10% 20%, #4B6F8F 20% 30%, #7B3FB8 30% 40%, #2F8F4E 40% 50%, #0E7C86 50% 60%, #A0287A 60% 70%, #B89400 70% 80%, #3D7A1F 80% 90%, #E0569A 90% 100%);
}

/* buttons */
.btn {
  position: relative; display: inline-flex; align-items: center; gap: 8px;
  background: var(--ink); color: var(--bg);
  font-weight: 600; font-size: 15px; text-decoration: none;
  padding: 14px 22px; border-radius: 12px; border: 1px solid var(--ink);
  transition: background-color .2s, color .2s, border-color .2s;
  will-change: transform;
}
.btn:hover { background: #fff; }
.btn-small { padding: 8px 14px; font-size: 14px; border-radius: 10px; }
.btn-ghost { background: transparent; color: var(--ink); border-color: var(--line-2); }
.btn-ghost:hover { background: rgba(28,36,24, .06); border-color: var(--ink); }
.btn-big { font-size: 18px; padding: 18px 28px; border-radius: 14px; }
kbd {
  font-size: 12px; padding: 1px 6px; border: 1px solid var(--line-2); border-bottom-width: 2px;
  border-radius: 5px; color: var(--ink); background: var(--surface);
}

/* header */
.top { position: fixed; inset: 0 0 auto 0; z-index: 50; transition: background-color .3s, border-color .3s; border-bottom: 1px solid transparent; }
.top.is-solid { background: rgba(255, 255, 255, .92); border-color: var(--line); }
.top-in { display: flex; align-items: center; gap: 24px; height: 64px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; font-weight: 700; font-size: 17px; }
.brand img { border-radius: 7px; }
.top nav { display: flex; gap: 22px; margin-left: auto; font-size: 14px; }
.top nav a { text-decoration: none; color: var(--muted); transition: color .15s; }
.top nav a:hover { color: var(--ink); }
@media (max-width: 860px) { .top nav { display: none; } .top .btn-small { margin-left: auto; } }

/* shared heads */
.split-head { font-size: clamp(36px, 5vw, 64px); font-stretch: 84%; letter-spacing: -0.03em; line-height: 1.0; max-width: 16ch; }
.sub { color: var(--muted); font-size: 17px; max-width: 58ch; margin-top: 18px; }
section { padding: 136px 0; position: relative; }
@media (max-width: 700px) { section { padding: 88px 0; } }
.split-line { overflow: clip; padding-bottom: .06em; margin-bottom: -.06em; }
/* ---------- artefacts (shared) ---------- */
.art {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 20px 22px 22px;
}
.art-head { display: flex; align-items: baseline; flex-wrap: wrap; gap: 6px 10px; margin-bottom: 18px; }
.art-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--lane); align-self: center; }
.art-kind { font-size: 17px; font-weight: 600; line-height: 1.2; }
.art-dest { color: var(--muted); font-size: 13px; }
.score-chip {
  margin-left: auto; font: 500 13px/1 var(--mono); color: var(--muted);
  border: 1px solid var(--line-2); border-radius: 999px; padding: 6px 10px;
  font-variant-numeric: tabular-nums;
}
.score-chip .s-now { color: var(--ink); }

.fields { display: grid; gap: 14px 28px; margin: 0; }
@media (min-width: 620px) { .fields { grid-template-columns: 1fr 1fr; } .fields-3 { grid-template-columns: 1fr 1fr 1fr; } }
.f-wide { grid-column: 1 / -1; }
.f dt { font: 500 12px/1.4 var(--mono); color: var(--muted); margin-bottom: 4px; }
.f dd { margin: 0; font-size: 14px; line-height: 1.5; }
.f ol { margin: 0; padding-left: 18px; }
.f code, .art code, .clean code { font-size: 12.5px; background: rgba(28,36,24, .07); padding: 1px 5px; border-radius: 4px; }

.field { border: 1px solid var(--line-2); border-radius: 10px; background: var(--bg); overflow: hidden; }
.field-bar { display: flex; gap: 12px; padding: 8px 12px; border-bottom: 1px solid var(--line); font: 12px/1.4 var(--mono); color: var(--muted); }
.field-bar span + span::before { content: "/ "; opacity: .6; }
.field-text { padding: 14px; font-size: 15px; line-height: 1.55; min-height: 5.2em; }
.field-sm .field-text { min-height: 0; font-size: 14px; }
.field .caret { background: var(--ink); }
.art-note { margin-top: 14px; font-size: 13px; color: var(--muted); }

.nodes { list-style: none; margin: 0; padding: 0; display: grid; gap: 28px; position: relative; }
@media (min-width: 620px) { .nodes { grid-template-columns: repeat(3, 1fr); gap: 32px; } }
.node {
  position: relative; border: 1px solid var(--line-2); border-radius: 10px; background: var(--bg);
  padding: 12px 14px; display: flex; flex-direction: column; gap: 2px; font-size: 13px; color: var(--muted);
}
.node strong { color: var(--ink); font-size: 14px; font-weight: 600; }
.node-kind { font: 12px/1.4 var(--mono); }
.node + .node::before {
  content: ""; position: absolute; background: var(--lane);
  left: 24px; top: -29px; width: 1.5px; height: 28px;
}
@media (min-width: 620px) {
  .node + .node::before { left: -33px; top: 50%; width: 32px; height: 1.5px; }
}
.nodes-sm { gap: 20px; }
.nodes-sm .node + .node::before { top: -21px; height: 20px; }
@media (min-width: 620px) { .nodes-sm { gap: 24px; } .nodes-sm .node + .node::before { left: -25px; width: 24px; height: 1.5px; top: 50%; } }
.art-file { margin-top: 16px; font-size: 13px; color: var(--muted); display: flex; flex-wrap: wrap; gap: 4px 10px; align-items: baseline; }

.art-quote { margin-top: 18px; font: 14px/1.6 var(--mono); padding-left: 14px; border-left: 1.5px solid var(--lane); }
.cron {
  margin: 0 0 16px; padding: 12px 14px; background: var(--bg); border: 1px solid var(--line);
  border-radius: 8px; font-size: 13px; line-height: 1.5; overflow-x: auto; white-space: pre;
}
.cron-t { color: var(--ink); font-weight: 500; }
.cron-c { color: var(--muted); }
.loop { list-style: none; display: flex; flex-wrap: wrap; gap: 0; padding: 0; margin: 0 0 18px; font: 13px/1 var(--mono); }
.loop li { padding: 8px 12px; border: 1px solid var(--line-2); border-radius: 999px; }
.loop li + li { margin-left: 22px; position: relative; }
.loop li + li::before { content: ""; position: absolute; left: -23px; top: 50%; width: 22px; height: 1.5px; background: var(--lane); }

/* ================= HERO: the showreel ================= */
/* The film is drawn on the page's own paper colour, so it sits on the page without a frame. It is
   sized to leave room for the bar under it, so the download button is visible without scrolling. */
.hero {
  --bar: 176px;
  min-height: 100svh; padding: 72px 0 32px;
  display: flex; flex-direction: column; justify-content: center; gap: 8px; overflow: clip;
}
.reel {
  position: relative; margin: 0 auto; aspect-ratio: 16 / 9;
  width: min(100%, 1920px, max(640px, calc((100svh - 72px - 32px - var(--bar)) * 16 / 9)));
}
.reel video { width: 100%; height: 100%; object-fit: cover; background: var(--bg); }
.reel-toggle {
  position: absolute; right: 12px; bottom: 12px; font: 500 13px/1 var(--sans); color: var(--ink);
  background: color-mix(in srgb, var(--bg) 80%, transparent); border: 1px solid var(--line-2);
  border-radius: 999px; padding: 9px 14px; cursor: pointer; opacity: .55; transition: opacity .2s;
}
.reel-toggle:hover, .reel-toggle:focus-visible, .reel.is-paused .reel-toggle { opacity: 1; }
.hero-bar {
  width: 100%; display: grid; gap: 20px 48px; align-items: end;
  padding-top: 20px; border-top: 1px solid var(--line);
}
@media (min-width: 900px) { .hero-bar { grid-template-columns: minmax(0, 1fr) auto; } }
.hero-title {
  font-size: clamp(34px, 3.6vw, 52px); font-weight: 800; font-stretch: 88%;
  letter-spacing: -0.045em; line-height: 1;
}
.lede { margin-top: 12px; font-size: 16px; color: var(--muted); max-width: 62ch; }
.hero-act { display: flex; flex-direction: column; align-items: flex-start; }
@media (min-width: 900px) { .hero-act { align-items: flex-end; text-align: right; } }
.hero-cta { display: flex; flex-wrap: wrap; gap: 12px; }
.hero .mac-alt { margin-top: 10px; max-width: 52ch; }
@media (max-width: 760px) {
  /* Phones: the film runs edge to edge, the words and the button follow it. */
  .hero { min-height: 0; padding-top: 72px; }
  .reel { width: 100%; }
  .reel-toggle { right: 8px; bottom: 8px; padding: 7px 11px; font-size: 12px; }
}

/* ================= OUTPUTS: the floating field (the site's first hero, now under the film) ================= */
.field-hero {
  position: relative; min-height: 100svh; padding: 120px 0 96px;
  display: grid; align-items: center; overflow: clip; perspective: 1200px;
}
.fh-in { position: relative; z-index: 2; text-align: center; display: flex; flex-direction: column; align-items: center; }
.fh-kicker { font: 500 13px/1.4 var(--mono); color: var(--ink); background: var(--hl); padding: 6px 12px; border-radius: 8px; margin-bottom: 28px; }
.fh-title {
  font-size: clamp(52px, 9.4vw, 148px);
  font-stretch: 78%; font-weight: 700;
  letter-spacing: -0.045em; line-height: 0.9;
  max-width: 14ch;
}
.fh-title .char { display: inline-block; will-change: transform; }
.fh-lede { margin-top: 32px; font-size: clamp(17px, 1.6vw, 20px); color: var(--muted); max-width: 54ch; }
.fh-cta { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; margin-top: 36px; }

.field-layer { position: absolute; inset: 0; z-index: 1; pointer-events: none; }
.chip {
  position: absolute; left: var(--x); top: var(--y);
  display: inline-flex; align-items: center; gap: 8px; max-width: 290px;
  padding: 10px 14px; border-radius: 12px;
  background: var(--surface); border: 1px solid var(--line);
  font: 12.5px/1.35 var(--mono); color: var(--ink);
  box-shadow: 0 18px 40px -18px rgba(28,36,24,.18);
  will-change: transform;
}
.chip i { width: 7px; height: 7px; border-radius: 50%; background: var(--c); flex: none; }
.chip .ck { color: var(--c); margin-right: 2px; white-space: nowrap; }
.chip b { color: var(--c); font-weight: 400; }
.chip code { font-size: 12.5px; }
.chip-num { font-size: 15px; }
.chip.d1 { opacity: .95; }
.chip.d2 { opacity: .7; scale: .92; }
.chip.d3 { opacity: .45; scale: .84; filter: blur(.6px); }
@media (max-width: 1100px) { .chip { max-width: 220px; font-size: 11.5px; } }
@media (max-width: 760px) {
  /* On phones the field sits behind the words as a faint texture */
  .field-hero { min-height: 0; padding: 96px 0; }
  .chip { max-width: 170px; padding: 8px 10px; opacity: .22 !important; filter: none !important; }
  .chip.d3 { display: none; }
}

/* ================= TRY ================= */
.try { border-top: 1px solid var(--line); }
.try-grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: 48px; }
@media (min-width: 1040px) {
  .try-grid { grid-template-columns: minmax(0, .7fr) minmax(0, 1.3fr); gap: 64px; align-items: start; }
  .try-copy { position: sticky; top: 120px; }
}
.try-copy p { margin-top: 20px; color: var(--muted); font-size: 17px; max-width: 42ch; }

.stage { position: relative; --lane: var(--prompt); }
.wires { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; pointer-events: none; z-index: 0; }
.wires .w-idle { fill: none; stroke: var(--line-2); stroke-width: 1; }
.wires .w-live { fill: none; stroke: var(--lane); stroke-width: 1.5; stroke-linecap: round; }
.wires .w-end { fill: var(--lane); }

.console {
  position: relative; z-index: 1;
  display: flex; align-items: center; gap: 12px;
  background: var(--surface); border: 1px solid var(--line); border-radius: 16px; padding: 8px;
  transition: border-color .3s, box-shadow .3s;
}
.stage.is-live .console { border-color: var(--lane); box-shadow: 0 0 0 4px color-mix(in srgb, var(--lane) 14%, transparent); }
.talk {
  flex: none; display: inline-flex; align-items: center; gap: 10px;
  font: 600 14px/1 var(--sans); color: var(--bg); background: var(--ink);
  border: 0; border-radius: 10px; padding: 13px 16px; cursor: pointer;
  user-select: none; -webkit-user-select: none; touch-action: none; -webkit-touch-callout: none;
}
.talk-dot { width: 9px; height: 9px; border-radius: 50%; background: var(--bg); transition: background-color .2s; }
.stage.is-live .talk-dot { background: var(--lane); }
.line {
  flex: 1; min-width: 0; font: 400 14px/1.4 var(--mono); color: var(--muted);
  white-space: nowrap; overflow: hidden; padding-right: 8px;
}
.stage.is-live .line { color: var(--ink); mask-image: linear-gradient(90deg, transparent 0, #000 24px); }
.line .caret { display: none; }
.stage.is-live .line .caret { display: inline-block; }
.caret {
  display: inline-block; width: 2px; height: 1.1em; margin-left: 2px;
  background: var(--lane, var(--ink)); vertical-align: -0.18em; animation: blink 1s steps(1) infinite;
}
@keyframes blink { 50% { opacity: 0; } }

.switches { position: relative; z-index: 1; display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-top: 48px; }
@media (min-width: 560px) { .switches { grid-template-columns: repeat(6, auto); justify-content: start; } }
.sw-thumb {
  position: absolute; left: 0; top: 0; z-index: 0; border-radius: 9px;
  border: 1px solid var(--lane); background: color-mix(in srgb, var(--lane) 12%, var(--bg));
  pointer-events: none;
}
.sw {
  position: relative; z-index: 1; display: inline-flex; align-items: center; gap: 8px;
  font: 500 14px/1 var(--sans); color: var(--muted);
  background: transparent; border: 1px solid var(--line); border-radius: 9px;
  padding: 10px 12px; cursor: pointer; transition: color .2s, border-color .2s;
}
.sw:hover { color: var(--ink); }
.sw[aria-pressed="true"] { color: var(--ink); border-color: transparent; }
.sw-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--c); flex: none; }

.dock { position: relative; z-index: 1; margin-top: 44px; }
.dock-wait {
  border: 1px dashed var(--line-2); border-radius: 16px; padding: 28px 24px;
  font: 13px/1.6 var(--mono); color: var(--muted); min-height: 120px; display: flex; align-items: center;
}
.packet {
  position: absolute; top: 0; left: 0; z-index: 3; display: none; align-items: center; gap: 8px;
  max-width: 240px; padding: 6px 12px 6px 10px; font: 500 12px/1.2 var(--mono); color: var(--ink);
  background: var(--bg); border: 1px solid var(--lane); border-radius: 999px;
  white-space: nowrap; pointer-events: none; will-change: transform;
}
.packet span:last-child { overflow: hidden; text-overflow: ellipsis; }
.packet-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--lane); flex: none; }
.packet.is-on { display: inline-flex; }

/* ================= TICKER ================= */
.ticker { padding: 40px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); overflow: clip; }
.tick-row { display: flex; white-space: nowrap; }
.tick-row + .tick-row { margin-top: 4px; }
.tick-track { display: inline-flex; align-items: center; gap: 36px; padding-right: 36px; flex: none; will-change: transform; }
.tick-track span { font-size: clamp(44px, 7.4vw, 112px); font-stretch: 78%; font-weight: 700; letter-spacing: -0.04em; line-height: 1.02; }
.tick-track span.o { color: transparent; -webkit-text-stroke: 1.2px var(--line-2); }
.tick-track i { width: 14px; height: 14px; border-radius: 50%; background: var(--c); flex: none; }

/* ================= WHAT IT MAKES ================= */
.makes { padding-bottom: 96px; }
.makes-head { margin-bottom: 48px; width: 100%; }
.makes-head p { margin-top: 18px; color: var(--muted); font-size: 17px; max-width: 58ch; }
.rail { display: none; }
.track { list-style: none; margin: 0; padding: 0 var(--gutter); display: grid; gap: 20px; max-width: var(--max); margin-inline: auto; }
.panel { --lane: var(--c); position: relative; }
.lane-head { display: grid; grid-template-columns: auto 1fr; gap: 4px 12px; align-items: baseline; margin-bottom: 18px; }
.lane-dot { width: 10px; height: 10px; border-radius: 50%; background: var(--c); position: relative; top: -1px; }
.lane-head h3 { font-size: 28px; font-stretch: 86%; letter-spacing: -0.015em; }
.lane-head p { grid-column: 2; color: var(--muted); font-size: 15px; }
.lane-art { background: var(--surface); border: 1px solid var(--line); border-top: 2px solid var(--c); border-radius: 16px; padding: 22px; }
.said { font: 13px/1.55 var(--mono); color: var(--muted); margin-bottom: 16px; }
.clean { font-size: 15px; line-height: 1.6; }
.mail p + p { margin-top: 10px; }
.mail { font-size: 15px; }
.mail-k { font: 12px var(--mono); color: var(--muted); margin-right: 8px; }
.flags { margin-top: 12px; font-size: 13px; color: var(--muted); display: flex; gap: 10px; flex-wrap: wrap; align-items: baseline; }
.flags code { color: var(--ink); }
.lane-art .art-quote { margin-top: 0; }
.lane-art .cron { margin-bottom: 12px; }
.panel { padding: 28px 0; border-top: 1px solid var(--line); }

@media (min-width: 1024px) and (min-height: 680px) {
  .motion .makes { padding-top: 0; padding-bottom: 96px; }
  .motion .makes-pin { height: 100vh; display: flex; flex-direction: column; justify-content: center; overflow: clip; }
  .motion .makes-head { margin-bottom: 32px; }
  .motion .makes-head .split-head { font-size: clamp(36px, 4vw, 54px); }
  .motion .rail { display: flex; gap: 4px; margin-top: 28px; max-width: 520px; }
  .motion .rail span { flex: 1; height: 3px; border-radius: 2px; background: var(--line); position: relative; overflow: hidden; }
  .motion .rail span::after { content: ""; position: absolute; inset: 0; background: var(--c); transform: scaleX(var(--p, 0)); transform-origin: left; }
  .motion .track { display: flex; gap: 28px; max-width: none; margin: 0; padding: 0 0 0 max(var(--gutter), calc((100vw - var(--max)) / 2 + var(--gutter))); width: max-content; will-change: transform; }
  .motion .panel { width: min(560px, 42vw); flex: none; border-top: 0; padding: 0; }
  .motion .panel .lane-art { min-height: 0; }
  .motion .track { align-items: flex-start; }
}

.extras {
  list-style: none; padding: 32px 0 0; margin: 64px 0 0; border-top: 1px solid var(--line);
  display: grid; gap: 20px 40px; color: var(--muted); font-size: 15px;
}
@media (min-width: 800px) { .extras { grid-template-columns: 1fr 1fr; } }
.extras strong { color: var(--ink); font-weight: 600; }

/* ================= FILM ================= */
.film { border-top: 1px solid var(--line); padding-bottom: 96px; }
.makes + .film { margin-top: 0; }
.film-head { margin-bottom: 56px; }
.film-head p { margin-top: 18px; color: var(--muted); font-size: 17px; max-width: 52ch; }
.film-frame {
  position: relative; width: min(1240px, calc(100vw - 2 * var(--gutter))); margin: 0 auto;
  border-radius: 20px; overflow: hidden; border: 1px solid var(--line-2); background: var(--surface);
  aspect-ratio: 16 / 9; transform-origin: 50% 20%; will-change: transform;
}
.film-frame video { width: 100%; height: 100%; object-fit: cover; }
.film-toggle {
  position: absolute; right: 16px; bottom: 16px; font: 500 13px/1 var(--sans); color: var(--ink);
  background: rgba(255, 255, 255, .8); border: 1px solid var(--line-2); border-radius: 999px; padding: 9px 14px; cursor: pointer;
}

/* ================= PROOF ================= */
.proof { border-top: 1px solid var(--line); }
.proof-grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: 56px; }
@media (min-width: 1040px) { .proof-grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 64px; align-items: center; } }
.total {
  margin: 40px 0 28px; display: flex; align-items: center; gap: 20px;
  font: 500 clamp(64px, 9vw, 124px)/1 var(--mono); font-variant-numeric: tabular-nums; letter-spacing: -0.05em;
}
.total-was { color: var(--muted); }
.total-arrow { flex: 0 0 88px; height: 2px; position: relative; }
.total-arrow span { position: absolute; inset: 0; background: var(--prompt); transform-origin: left; }
.total-arrow::after { content: ""; position: absolute; right: -3px; top: 50%; width: 9px; height: 9px; border-radius: 50%; background: var(--prompt); translate: 0 -50%; }
.dumbbells { display: grid; gap: 2px; }
.db { display: grid; grid-template-columns: 112px minmax(0, 1fr) 88px; align-items: center; gap: 16px; height: 44px; }
@media (max-width: 480px) { .db { grid-template-columns: 96px minmax(0, 1fr) 72px; gap: 12px; } }
.db-name { font-size: 15px; }
.db-track { position: relative; height: 1px; background: var(--line-2); }
.db-seg { position: absolute; top: -0.5px; height: 2px; background: var(--prompt); left: calc(var(--a) * 1%); width: calc((var(--b) - var(--a)) * 1%); transform-origin: left; }
.db-a, .db-b { position: absolute; top: 50%; width: 12px; height: 12px; border-radius: 50%; translate: -50% -50%; }
.db-a { left: calc(var(--a) * 1%); background: var(--muted); }
.db-b { left: calc(var(--b) * 1%); background: var(--prompt); box-shadow: 0 0 0 4px color-mix(in srgb, #2A3FC9 18%, transparent); }
.db-num { font: 500 14px/1 var(--mono); font-variant-numeric: tabular-nums; text-align: right; white-space: nowrap; }
.db-num > span:first-child { color: var(--muted); }
.db-key { margin-top: 16px; display: flex; align-items: center; gap: 8px; font-size: 13px; color: var(--muted); }
.k { width: 10px; height: 10px; border-radius: 50%; display: inline-block; }
.k-was { background: var(--muted); }
.k-now { background: var(--prompt); margin-left: 12px; }
.missing { margin-top: 32px; padding: 16px 18px; border: 1px solid var(--line-2); border-left: 2px solid #B89400; border-radius: 10px; font-size: 15px; }
.missing span { display: block; font: 500 12px/1.4 var(--mono); color: var(--muted); margin-bottom: 4px; }
.shot { margin: 0; }
.shot img { border-radius: 14px; border: 1px solid var(--line-2); box-shadow: 0 40px 80px -30px rgba(28,36,24,.22); }
.shot figcaption { margin-top: 12px; font-size: 13px; color: var(--muted); }

/* ================= PRIVACY ================= */
.privacy { border-top: 1px solid var(--line); }
.privacy h3 { font-size: 19px; margin-top: 36px; }
.privacy-grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: 48px; }
@media (min-width: 1040px) { .privacy-grid { grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr); gap: 64px; align-items: center; } }
.flow { background: var(--surface); border: 1px solid var(--line); border-radius: 18px; padding: 20px; }
.flow-svg { width: 100%; height: auto; display: block; font-family: var(--mono); }
.flow-svg .mac { fill: rgba(28,36,24, .025); stroke: var(--line-2); stroke-dasharray: 4 5; }
.flow-svg .lbl { fill: var(--ink); font-size: 14px; font-family: var(--sans); font-weight: 600; }
.flow-svg .wire { fill: none; stroke: var(--line-2); stroke-width: 1.5; }
.flow-svg .wire-out { stroke: #2A3FC9; }
.flow-svg .node circle, .flow-svg .node rect { fill: var(--bg); stroke: var(--line-2); stroke-width: 1.2; }
.flow-svg .node text { fill: var(--muted); font-size: 12px; }
.flow-svg .node .dot-text { fill: #2A3FC9; stroke: none; }
.flow-svg .claude rect { stroke: #2A3FC9; }
.flow-svg .claude text { fill: var(--ink); font-size: 14px; }
.flow-svg .none rect { stroke-dasharray: 4 4; }
.flow-svg .none text { fill: var(--muted); }
.flow-svg text.small { font-size: 11.5px; fill: var(--muted); }
.flow-svg .a-dot { fill: #7C8677; }
.flow-svg .t-dot { fill: #2A3FC9; }
.readout { margin: 16px 0 0; display: grid; font: 13px/1.45 var(--mono); }
.readout div { display: grid; grid-template-columns: 1fr auto; gap: 12px; padding: 11px 4px; border-top: 1px solid var(--line); }
.readout dt { color: var(--muted); }
.readout dd { margin: 0; text-align: right; }
.readout .z { color: var(--ink); font-weight: 500; }

/* ================= SETUP ================= */
.setup { border-top: 1px solid var(--line); }
.steps-wrap { position: relative; margin-top: 56px; }
.steps-line { display: none; }
.steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 40px; counter-reset: s; }
.steps li { counter-increment: s; position: relative; padding-left: 48px; }
.steps li::before {
  content: counter(s); position: absolute; left: 0; top: 0; width: 32px; height: 32px; border-radius: 50%;
  border: 1px solid var(--line-2); background: var(--bg); display: grid; place-items: center; font: 500 13px/1 var(--mono); z-index: 1;
}
.steps h3 { font-size: 21px; font-stretch: 90%; margin: 4px 0 8px; line-height: 1.2; }
.steps p { color: var(--muted); max-width: 42ch; }
@media (min-width: 900px) {
  .steps-line { display: block; position: absolute; left: 16px; right: 0; top: 16px; width: calc(100% - 16px); height: 2px; overflow: visible; }
  .steps-line path { fill: none; stroke: var(--ink); stroke-width: 1.5; vector-effect: non-scaling-stroke; }
  .steps { grid-template-columns: repeat(3, 1fr); gap: 40px; }
  .steps li { padding-left: 0; padding-top: 60px; }
}

/* ================= INSTALL ================= */
.install { border-top: 1px solid var(--line); }
.install-grid { display: grid; gap: 20px; margin-top: 48px; }
@media (min-width: 900px) { .install-grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 28px; } }
.install-card { background: var(--surface); border: 1px solid var(--line); border-radius: 16px; padding: 28px; display: flex; flex-direction: column; gap: 16px; min-width: 0; }
.install-card h3 { font-size: 22px; font-stretch: 88%; letter-spacing: -0.01em; }
.install-card > p { color: var(--muted); max-width: 52ch; }
.install-card .btn { align-self: flex-start; margin-top: auto; }
.cmd { display: flex; align-items: stretch; border: 1px solid var(--line-2); border-radius: 10px; background: var(--bg); overflow: hidden; }
.cmd code { flex: 1; min-width: 0; padding: 14px 16px; font-size: 13.5px; line-height: 1.5; overflow-x: auto; white-space: nowrap; }
.cmd-copy { flex-shrink: 0; border: 0; border-left: 1px solid var(--line-2); background: var(--surface); color: var(--ink); font: 600 14px/1 var(--sans); padding: 0 18px; cursor: pointer; }
.cmd-copy:hover { background: var(--surface-2); }
.install-note { color: var(--muted); font-size: 14.5px; }
/* The Intel download under each Mac button, and how to tell which Mac you have. */
.mac-alt { color: var(--muted); font-size: 14px; line-height: 1.5; margin-top: 14px; max-width: 46ch; }
.mac-alt-hint { display: block; margin-top: 2px; font-size: 13px; }
.foot-dl { display: flex; flex-direction: column; align-items: flex-start; }
.install-steps { margin: 0; padding-left: 20px; display: grid; gap: 8px; color: var(--muted); }
.install-steps strong { color: var(--ink); font-weight: 600; }

/* ================= HOW IT'S MADE ================= */
.made-with { border-top: 1px solid var(--line); }
.made-head .sub a, .text-link { color: var(--primary); text-underline-offset: 3px; }
.pipe-wrap { position: relative; margin-top: 64px; }
.pipe-line { display: none; }
.pipe { list-style: none; margin: 0; padding: 0; display: grid; gap: 28px; }
.pipe li { --c: var(--primary); position: relative; padding-left: 36px; }
.pipe li::before { content: ""; position: absolute; left: 8px; top: 22px; bottom: -30px; width: 2px; background: var(--line); }
.pipe li:last-child::before { display: none; }
.pipe-dot { position: absolute; left: 0; top: 2px; width: 18px; height: 18px; border-radius: 50%; background: var(--surface); border: 2px solid var(--c); }
.pipe-dot::after { content: ""; position: absolute; inset: 3px; border-radius: 50%; background: var(--c); }
.pipe code { font: 500 12.5px/1.4 var(--mono); color: var(--c); }
.pipe h3 { font-size: 22px; font-stretch: 88%; letter-spacing: -0.01em; margin: 4px 0 6px; }
.pipe p { color: var(--muted); font-size: 15px; max-width: 34ch; }
@media (min-width: 960px) {
  .pipe-line { display: block; position: absolute; left: 9px; right: 0; top: 10px; width: calc(100% - 9px); height: 2px; overflow: visible; }
  .pipe-line path { fill: none; stroke: var(--ink); stroke-width: 2; vector-effect: non-scaling-stroke; }
  .pipe { grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 24px; }
  .pipe li { padding-left: 0; padding-top: 40px; }
  .pipe li::before { display: none; }
}
.made-stats { margin: 72px 0 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); border-top: 1px solid var(--line); }
.made-stats div { padding: 22px 16px 22px 0; border-bottom: 1px solid var(--line); display: flex; flex-direction: column; }
.made-stats dt { color: var(--muted); font-size: 13.5px; line-height: 1.35; max-width: 18ch; min-height: 2.7em; }
.made-stats dd { margin: 10px 0 0; font: 500 clamp(36px, 4vw, 52px)/1 var(--mono); letter-spacing: -0.04em; font-variant-numeric: tabular-nums; color: var(--ink); }
.made-links { margin-top: 40px; display: flex; flex-wrap: wrap; align-items: center; gap: 16px 28px; font-size: 15px; }

/* ================= FAQ ================= */
.faq { border-top: 1px solid var(--line); }
.faq-grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: 40px; }
@media (min-width: 1040px) { .faq-grid { grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: 64px; } }
.qa details { border-bottom: 1px solid var(--line); }
.qa details:first-child { border-top: 1px solid var(--line); }
.qa summary { list-style: none; cursor: pointer; padding: 22px 36px 22px 0; position: relative; font-size: 18px; font-weight: 500; }
.qa summary::-webkit-details-marker { display: none; }
.qa summary::after { content: ""; position: absolute; right: 4px; top: 50%; width: 12px; height: 1.5px; background: var(--ink); }
.qa summary::before { content: ""; position: absolute; right: 9.25px; top: calc(50% - 5.25px); width: 1.5px; height: 12px; background: var(--ink); transition: transform .3s var(--ease-out); }
.qa details[open] summary::before { transform: scaleY(0); }
.qa details p { padding: 0 0 24px; color: var(--muted); max-width: 60ch; }

/* ================= FOOTER ================= */
.foot { border-top: 1px solid var(--line); padding: 120px 0 40px; overflow: clip; }
.foot-in { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 24px; }
.foot-line { color: var(--muted); font-size: 17px; max-width: 44ch; }
.wordmark {
  font-size: clamp(88px, 23vw, 360px); font-stretch: 75%; font-weight: 800;
  letter-spacing: -0.03em; line-height: .82; text-align: center; margin: 72px 0 24px;
  color: var(--surface-2); user-select: none; white-space: nowrap;
}
.wordmark .char { display: inline-block; }
.made { padding-top: 24px; border-top: 1px solid var(--line); color: var(--muted); font-size: 14px; }
.made a { color: var(--ink); }

/* ================= reduced motion ================= */
@media (prefers-reduced-motion: reduce) {
  .caret { animation: none; }
}

/* long code lines scroll inside their card instead of widening the page */
.track { grid-template-columns: minmax(0, 1fr); }
.panel, .lane-art, .lane-head { min-width: 0; }
.cron { max-width: 100%; }


/* ================= Pistachio & Cobalt: light palette ================= */
:root { --primary: #2A3FC9; --primary-dark: #1F2FA0; --secondary: #2F6B3F; --hl: #E3DE4F; --prompt: #2A3FC9; }
.btn { background: var(--primary); border-color: var(--primary); color: #fff; }
.btn:hover { background: var(--primary-dark); border-color: var(--primary-dark); }
.btn-ghost { background: transparent; color: var(--ink); border-color: var(--line-2); }
.btn-ghost:hover { background: var(--surface); border-color: var(--ink); }
.talk { background: var(--ink); color: var(--surface); }
.talk-dot { background: var(--surface); }
.top.is-solid { background: rgba(255,255,255,.88); }
.top nav a:hover, .made a, .foot a:not(.btn) { color: var(--secondary); }
.missing { border-left-color: var(--secondary); background: color-mix(in srgb, var(--hl) 40%, var(--surface)); }
.extras strong { box-shadow: inset 0 -0.45em 0 color-mix(in srgb, var(--hl) 70%, transparent); }
.flow { background: var(--surface); }
.flow-svg .mac { fill: color-mix(in srgb, var(--hl) 22%, var(--surface)); }
.flow-svg .node circle, .flow-svg .node rect { fill: var(--surface); }
.film-toggle { color: #fff; background: rgba(0,0,0,.55); border-color: rgba(255,255,255,.3); }
.tick-track span { color: var(--ink); }
.tick-track span.o { -webkit-text-stroke-color: color-mix(in srgb, var(--secondary) 55%, transparent); }
.steps li::before { background: var(--surface); }
.steps-line path { stroke: var(--secondary); }
.lane-art, .art, .console { box-shadow: 0 1px 0 rgba(28,36,24,.04), 0 12px 30px -20px rgba(28,36,24,.25); }
::selection { background: var(--hl); color: var(--ink); }
.wordmark { color: var(--surface-2); }

/* ---------- one prompt, any AI ---------- */
.anyai { border-top: 1px solid var(--line); }
.anyai-grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: 48px; align-items: center; }
@media (min-width: 1040px) { .anyai-grid { grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr); gap: 64px; } }
.anyai .sub + .sub { margin-top: 12px; }
.anyai-tabs { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 36px; }
.anyai-tabs:not([hidden]) { display: flex; }
.anyai-tabs .sw[aria-selected="true"] { color: var(--bg); background: var(--ink); border-color: var(--ink); }
.anyai-card { position: relative; overflow: hidden; }
.anyai-text {
  margin: 0; font: 13px/1.65 var(--mono); color: var(--ink); white-space: pre-wrap; overflow-wrap: anywhere;
  min-height: 26em; transition: filter .25s, opacity .25s;
}
.anyai-busy {
  position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 12px;
  font-weight: 600; font-size: 17px; letter-spacing: -0.01em; color: var(--ink);
  opacity: 0; pointer-events: none; transition: opacity .2s;
}
.anyai-card.is-busy .anyai-text { filter: blur(5px); opacity: .28; }
.anyai-card.is-busy .anyai-busy { opacity: 1; }
.anyai-hop { display: inline-flex; gap: 5px; }
.anyai-hop i { width: 6px; height: 6px; border-radius: 50%; background: var(--ink); animation: anyai-hop 1s cubic-bezier(.32, .72, 0, 1) infinite; }
.anyai-hop i:nth-child(2) { animation-delay: .14s; }
.anyai-hop i:nth-child(3) { animation-delay: .28s; }
@keyframes anyai-hop { 0%, 60%, 100% { opacity: .35; transform: none; } 30% { opacity: 1; transform: translateY(-4px); } }
.anyai-card.is-busy::before {
  content: ""; position: absolute; top: 0; height: 2px; width: 30%; left: -30%;
  background: linear-gradient(90deg, transparent, var(--prompt), transparent); animation: anyai-sweep 1.2s linear infinite;
}
@keyframes anyai-sweep { to { left: 100%; } }
@media (max-width: 700px) { .anyai-text { min-height: 0; font-size: 12px; } }
@media (prefers-reduced-motion: reduce) { .anyai-hop i, .anyai-card.is-busy::before { animation: none; } }
