@font-face {
  font-family: "Geist";
  src: url("/fonts/Geist-Variable.woff2") format("woff2");
  font-weight: 100 900;
  font-display: swap;
}

:root {
  --paper: #f2eee3;
  --plate: #faf8f2;
  --blue: #2350c8;
  --blue-deep: #1b41a8;
  --green: #0f6b4a;
  --slate: #3d4a66; /* the cobalt, desaturated and darkened: blog index panel */
  --amber: #b07a10;
  --amber-ink: #855900;
  --rule: rgba(35, 80, 200, 0.26);
  --rule-inv: rgba(242, 238, 227, 0.34);
  --paper-a50: rgba(242, 238, 227, 0.5);
  --blue-a20: rgba(35, 80, 200, 0.2);
  --blue-a40: rgba(35, 80, 200, 0.4);
  --blue-a50: rgba(35, 80, 200, 0.5);
  --scrim: rgba(35, 80, 200, 0.28); /* behind the early-access dialog */
  --hover-blue: rgba(35, 80, 200, 0.06);
  --hover-blue-soft: rgba(35, 80, 200, 0.04);
  --press-blue: rgba(35, 80, 200, 0.1);
  --hover-paper: rgba(242, 238, 227, 0.08);
  --press-paper: rgba(242, 238, 227, 0.16);
  /* the drawing's two dash patterns: structure (grid, hidden edges, links) and not-real (stopped, private) */
  --dash-structure: 2 3;
  --dash-virtual: 4 3;
  --g: clamp(16px, 6.667vw, 96px);
  --nav: 48px;
  --mono: ui-monospace, "SF Mono", SFMono-Regular, Menlo, Consolas, monospace;
  --out: cubic-bezier(0.22, 1, 0.36, 1);
}

* { box-sizing: border-box; }
html { background: var(--paper); color: var(--blue); -webkit-text-size-adjust: 100%; scroll-behavior: smooth; overflow-x: clip; }
body {
  margin: 0;
  overflow-x: clip;
  background: var(--paper);
  color: var(--blue);
  font: 400 15px/24px "Geist", system-ui, sans-serif;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
p { margin: 0; }
code { font: 0.92em var(--mono); letter-spacing: -0.01em; }
a { color: inherit; }
:focus-visible { outline: 2px solid currentColor; outline-offset: 3px; }

.skip { position: absolute; left: 12px; top: -60px; z-index: 20; padding: 8px 12px; background: var(--blue); color: var(--paper); font-size: 13px; text-decoration: none; }
.skip:focus { top: 12px; }

/* nav: a row of hairline cells */
.nav, .foot { display: flex; height: var(--nav); font-size: 13px; line-height: 18px; background: var(--paper); }
.nav { position: sticky; top: 0; z-index: 10; border-bottom: 1px solid var(--rule); }
.foot { border-top: 1px solid var(--rule); }
.nav__cell {
  display: flex; align-items: center; gap: 8px; padding: 0 20px;
  border-right: 1px solid var(--rule); text-decoration: none;
  transition: background-color 0.2s;
}
.nav__cell:hover { background: var(--hover-blue); }
.nav__cell:active { background: var(--press-blue); }
.nav__cell:focus-visible { outline-offset: -4px; }
.nav__brand svg { width: 19px; height: 19px; }
.nav__brand span { font-size: 16px; font-weight: 500; letter-spacing: -0.02em; }
.nav__fill { flex: 1; }
.nav__cta { border-right: 0; border-left: 1px solid var(--rule); background: var(--blue); color: var(--paper); }
.nav__cta:hover, .nav__cta:active { background: var(--blue-deep); }

/* buttons */
.btn {
  display: inline-flex; align-items: center; min-height: 44px; padding: 0 16px;
  border: 1px solid currentColor; font-size: 13px; text-decoration: none;
}
/* --mx/--my: the magnetic pull (JS, fine pointers only); without the hover class the button springs back */
.btn { transform: translate(var(--mx, 0px), var(--my, 0px)); transition: background-color 0.2s, color 0.2s, transform 480ms cubic-bezier(0.34, 1.56, 0.64, 1); }
.btn.is-magnet { transition: background-color 0.2s, color 0.2s, transform 160ms var(--out); }
.btn:active { transform: translate(var(--mx, 0px), var(--my, 0px)) scale(0.97); }
.btn--fill { background: var(--blue); border-color: var(--blue); color: var(--paper); }
.btn--fill:hover { background: var(--blue-deep); }
.btn--cream { background: var(--paper); border-color: var(--paper); color: var(--blue); }
.btn--cream:hover { background: transparent; color: var(--paper); }

/* stage: a short film drawn as one isometric technical drawing (2:1, the logo's own slopes).
   Objects are plate and paper with cobalt linework; right faces are hatched, light pools are dotted.
   Labels and leaders sit on the background ink. */
:root { --i-ink: var(--blue); --i-bg: var(--paper); --i-ghost: var(--blue-a50); }
.close { --i-ink: var(--paper); --i-bg: var(--blue); --i-ghost: var(--paper-a50); }
.stage { container-type: inline-size; width: 100%; color: var(--i-ink); }
.scene-defs { position: absolute; width: 0; height: 0; overflow: hidden; }
.scene-defs .hatch-bg { fill: var(--paper); }
.scene-defs .hatch-ln { stroke: var(--blue); stroke-width: 0.45; }
.scene-defs .dot { fill: var(--blue); }

/* --k grows labels when the drawing renders small; JS sets it from the real scale, these are the no-JS fallbacks */
.scene { --k: 1; display: block; width: 100%; max-width: 620px; height: auto; margin: 0 auto; overflow: visible; }
.scene path, .scene rect, .scene circle, .scene ellipse { vector-effect: non-scaling-stroke; stroke-linejoin: round; stroke-linecap: round; }
.scene .tether, .scene .link, .scene .branch, .scene .edge path { vector-effect: none; stroke-linecap: butt; } /* their dash offsets are measured in drawing units */
.scene .o { transform-box: fill-box; transform-origin: center; }
.scene .t-top, .scene .t-left, .scene .t-right, .scene .sheet, .scene .void, .scene .scr { stroke: var(--blue); stroke-width: 1px; }
.scene .t-top, .scene .sheet { fill: var(--plate); }
.scene .t-left { fill: var(--paper); }
.scene .t-right { fill: url(#aw-hatch); }
.scene .sil { stroke-width: 1.25px; }
.scene .void { fill: var(--i-bg); }
.scene .scr { fill: var(--blue); }
.scene .hair { fill: none; stroke: var(--blue); stroke-width: 1px; }
.scene .scr + .hair { stroke: var(--paper); }
.scene .grid { fill: none; stroke: var(--blue-a20); stroke-width: 1px; stroke-dasharray: var(--dash-structure); }
.scene .hidden { fill: none; stroke: var(--blue-a40); stroke-width: 1px; stroke-dasharray: var(--dash-structure); }
.scene .ghost path { fill: none; stroke: var(--i-ghost); stroke-width: 1px; stroke-dasharray: var(--dash-virtual); }
.scene .edge path { fill: none; stroke: var(--blue); stroke-width: 0.7px; stroke-dasharray: 1 1; }
.scene .light { fill: url(#aw-dots); }
.scene .room path { fill: none; stroke: var(--blue); stroke-width: 1px; stroke-dasharray: var(--dash-virtual); }
.scene .tether { fill: none; stroke: var(--i-ink); stroke-width: 0.7px; }
.scene .branch { fill: none; stroke: var(--blue); stroke-width: 1.4px; }
.scene .link { fill: none; stroke: var(--blue); stroke-width: 0.6px; stroke-dasharray: var(--dash-structure); }
.scene .file--copy .sheet { fill: var(--plate); stroke-dasharray: var(--dash-virtual); }
.scene .tick circle { fill: var(--green); stroke: var(--plate); stroke-width: 1px; }
.scene .tick path { fill: none; stroke: var(--paper); stroke-width: 1.2px; }
/* the residents: Cubby and Pebble. Walk while travelling on the floor, type while working, blink now and then */
.scene .agent[data-fig="cubby"] .fig-pebble, .scene .agent[data-fig="pebble"] .fig-cubby { display: none; }
.scene .m-leg, .scene .m-arm, .scene .m-body { transform-box: fill-box; }
.scene .m-leg, .scene .m-arm { transform-origin: 50% 0; }
.scene .m-body { transform-origin: 50% 100%; }
.scene .m2-left, .scene .m2-limb { fill: var(--plate); stroke: var(--blue); stroke-width: 1px; }
.scene .m2-top { fill: var(--plate); stroke: var(--blue); stroke-width: 0.6px; }
.scene .m2-right { fill: url(#aw-hatch); stroke: var(--blue); stroke-width: 0.6px; }
.scene .m2-sil { fill: none; stroke: var(--blue); stroke-width: 1.25px; }
.scene .m2-mark { fill: none; stroke: var(--blue); stroke-width: 0.75px; }
.scene .scr-dim { fill: var(--plate); stroke: var(--blue); stroke-width: 1px; }
.scene .scr-prompt { fill: none; stroke: var(--plate); stroke-width: 1px; }
.scene .scr-lit { opacity: 0; transition: opacity 260ms cubic-bezier(0.23, 1, 0.32, 1); }
.scene .console.is-on .scr-lit { opacity: 1; }
/* end states without JS: the working agents' consoles are lit */
html:not(.js) [data-card="0"] [data-o="dB"] .scr-lit, html:not(.js) [data-card="1"] .console .scr-lit, html:not(.js) [data-card="2"] [data-o="dA"] .scr-lit, html:not(.js) [data-card="3"] [data-o="dA"] .scr-lit { opacity: 1; }
.scene .m-eye { fill: var(--blue); stroke: var(--blue); stroke-width: 2.6px; stroke-linejoin: round; } /* the stroke rounds the pill ends */
.scene .m-look, .scene .m-eyes { transform-box: fill-box; transform-origin: center; }
.scene .m-look { transition: transform 220ms cubic-bezier(0.23, 1, 0.32, 1), opacity 160ms cubic-bezier(0.23, 1, 0.32, 1); }
.scene .mascot.is-walking .m-look { opacity: 0; } /* walking into the room it faces away; the eyes return when it turns at the desk */
.scene .mascot.is-working .m-look { transform: scaleY(0.7); } /* a slight squint while typing */
.scene .mascot.is-looking .m-look { transform: translate(1.6px, -1.2px); } /* toward the shelf */
.scene .mascot.is-refused .m-look { transform: translate(-1.4px, -1px) scaleY(0.45); } /* a squint back at the access pass */
.js .scene .mascot .m-eyes { animation: m-blink 4.2s cubic-bezier(0.37, 0, 0.63, 1) infinite; }
.scene .mascot:is(.is-walking, .is-pottering) .m-leg { animation: m-step 0.32s cubic-bezier(0.37, 0, 0.63, 1) infinite alternate; }
.scene .mascot:is(.is-walking, .is-pottering) .m-leg + .m-leg { animation-direction: alternate-reverse; }
.scene .mascot:is(.is-walking, .is-pottering) .m-body { animation: m-bob 0.16s cubic-bezier(0.37, 0, 0.63, 1) infinite alternate; }
.scene .mascot.is-working:not(.is-walking) .m-arm { animation: m-type 0.26s cubic-bezier(0.37, 0, 0.63, 1) infinite alternate; }
.scene .mascot.is-working:not(.is-walking) .m-arm ~ .m-arm { animation-delay: -0.13s; }
@keyframes m-blink { 0%, 95%, 100% { transform: scaleY(1); } 97.5% { transform: scaleY(0.1); } }
@keyframes m-step { from { transform: rotate(-16deg); } to { transform: rotate(16deg); } }
@keyframes m-bob { from { transform: translateY(0); } to { transform: translateY(-1.5px); } }
@keyframes m-type { from { transform: rotate(0deg); } to { transform: rotate(-14deg); } }
/* agent B's console is on its left, so it types the other way */
.scene [data-o="aB"].mascot.is-working:not(.is-walking) .m-arm { animation-name: m-type-l; }
@keyframes m-type-l { from { transform: rotate(0deg); } to { transform: rotate(14deg); } }
/* !important: the animation shorthands above reset play-state and some are more specific */
.is-paused .scene *, .hp.is-still .scene * { animation-play-state: paused !important; }

/* leaders: a hairline in label ink, cased in the opposite tone so it reads over objects and background */
.scene .lead { fill: none; stroke: var(--i-ink); stroke-width: 1px; }
.scene .case { fill: none; stroke: var(--i-bg); stroke-width: 3px; }
.scene .pin { fill: var(--i-ink); stroke: var(--i-bg); stroke-width: 1px; }
.scene .on .lead { stroke: var(--blue); }
.scene .on .case { stroke: var(--plate); }
.scene .on .pin { fill: var(--blue); stroke: var(--plate); }

.scene text {
  font: 400 calc(7px * var(--k)) var(--mono); letter-spacing: 0; fill: var(--i-ink);
  paint-order: stroke; stroke: var(--i-bg); stroke-width: 2.5px; stroke-linejoin: round;
}
.scene text.on, .scene .on text { fill: var(--blue); stroke: var(--plate); }
.scene text.title { font-weight: 600; }
.scene tspan.sub { font-weight: 400; }
.scene .chip { transform: scale(var(--k)); }
.scene .chip rect { fill: var(--plate); stroke-width: 1px; }
.scene .chip text { font-size: 7px; stroke: none; }
.scene .chip[data-tone="ok"] rect { stroke: var(--green); }
.scene .chip[data-tone="ok"] text { fill: var(--green); }
.scene .chip[data-tone="ok"] .cg { fill: var(--green); }
.scene .chip .cgk { fill: none; stroke: var(--paper); stroke-width: 1px; }
.scene .chip[data-tone="warn"] rect { stroke: var(--amber); }
.scene .chip[data-tone="warn"] text { fill: var(--amber-ink); }
.scene .chip[data-tone="warn"] .cg { fill: var(--amber); }
.scene .chip[data-tone="off"] rect { stroke: var(--blue); }
.scene .chip[data-tone="off"] text { fill: var(--blue); }
.scene .lab-dir text { font-weight: 600; }
/* the run's access pass (act 3): drawn at 7px, scaled from its top-left corner like the chips */
.scene .card { transform: scale(var(--k)); transform-box: fill-box; transform-origin: left top; }
.scene .card rect { fill: var(--plate); stroke: var(--blue); stroke-width: 1px; }
.scene .card path { fill: none; stroke: var(--blue); stroke-width: 1px; }
.scene .card text { font-size: 7px; fill: var(--blue); stroke: none; }
.scene .card .hd { font-weight: 600; }
.scene .chip .cg-off { fill: none; stroke: var(--blue); stroke-width: 1px; stroke-dasharray: 1.5 1.5; }
@container (max-width: 504px) { .scene { --k: 1.8; } }


/* shared controls */
.sr-only { position: absolute; width: 1px; height: 1px; margin: -1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.play {
  display: inline-flex; align-items: center; gap: 8px; min-width: 44px; min-height: 44px; padding: 0 12px;
  border: 1px solid var(--rule); background: var(--paper); color: var(--blue); font: 13px/1 "Geist", system-ui, sans-serif; cursor: pointer;
  transition: background-color 0.2s, transform 160ms var(--out);
}
.play[hidden] { display: none; }
.play:hover { background: var(--hover-blue); }
.play:active { background: var(--press-blue); transform: scale(0.97); }
.play svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 1.5; }
.play .i-play { fill: currentColor; stroke: none; display: none; }
.play[data-state="stopped"] .i-play { display: inline; }
.play[data-state="stopped"] .i-pause { display: none; }
.sec-title { margin: 0 0 40px; font-weight: 300; font-size: clamp(32px, 3.1vw, 46px); line-height: 1.05; letter-spacing: -0.035em; text-wrap: balance; }
.arrow { flex: none; width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; transition: transform 200ms var(--out); }

/* 1. hero: copy on the left, holds still; the house playground on the right */
.hero {
  display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); column-gap: 48px; align-items: center;
  min-height: calc(100svh - var(--nav)); padding: 24px var(--g) 24px; border-bottom: 1px solid var(--rule);
}
.hero__title {
  margin: 0; font-weight: 300; font-size: clamp(40px, 4.6vw, 72px);
  line-height: 1.02; letter-spacing: -0.04em; text-wrap: balance;
}
/* word reveal: JS wraps each word; without JS or with reduced motion the headline is plain text */
.hero__title .w { display: inline-block; animation: word-in 500ms var(--out) both; animation-delay: calc(var(--i) * 40ms); }
@keyframes word-in { from { opacity: 0; transform: translateY(0.3em); } }
.hero__sub { max-width: 340px; margin: 24px 0 32px; font-size: 18px; line-height: 27px; text-wrap: balance; }

.hp { display: flex; flex-direction: column; align-items: center; min-width: 0; }
.hp .scene { max-width: min(600px, calc((100svh - 190px) * 0.97)); }
.hp__bar { display: flex; align-items: center; justify-content: space-between; gap: 16px; width: 100%; max-width: 600px; min-height: 44px; margin-top: 32px; }
.hp__hint { font-size: 13px; line-height: 20px; }
.hp__acts { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 8px; }
.hint-hover { display: none; }
@media (hover: hover) { .hint-hover { display: inline; } .hint-tap { display: none; } }
html:not(.js) .hp__hint { visibility: hidden; }

/* playground parts: files and agents are buttons with a 44px-plus hit area; the ring shows on keyboard focus */
.hp-btn { cursor: pointer; outline: none; -webkit-tap-highlight-color: transparent; }
.scene .hp-btn .hit { fill: transparent; stroke: none; pointer-events: all; }
.scene .hp-btn:focus-visible .hit { stroke: var(--blue); stroke-width: 2px; }
.hp-file .chip { pointer-events: none; opacity: 0; transition: opacity 160ms var(--out); }
.hp-file.is-alt .chip:not([data-alt]), .hp-file:not(.is-alt) .chip[data-alt] { display: none; }
@media (hover: hover) { .hp-file:hover .chip { opacity: 1; } }
.hp-file:focus-visible .chip, .hp-file.is-shown .chip { opacity: 1; }
.scene .chip[data-tone="file"] rect { stroke: var(--blue); }
.scene .chip[data-tone="file"] text { fill: var(--blue); }
.scene .chip .cg-file { fill: var(--plate); stroke: var(--blue); stroke-width: 0.8px; }
/* scoped access, shown: only the hovered, focused or tapped agent's room lights */
.hp-scene [data-room] { transition: opacity 220ms var(--out); }
.hp:not(.has-c) .hp-scene [data-room="C"] { visibility: hidden; }
.hp-scene[data-glow="A"] [data-room="A"], .hp-scene[data-glow="B"] [data-room="B"], .hp-scene[data-glow="C"] [data-room="C"] { opacity: 1; }
.hp-scene .console .scr-lit { opacity: 1; }
.hp-perk { transform-box: fill-box; transform-origin: 50% 100%; transition: transform 260ms var(--out); }
.hp-agent.is-perk .hp-perk { transform: translateY(-3px) rotate(var(--lean, 0deg)); }
.hp-agent[data-agent="C"]:not(.is-in) { visibility: hidden; }
.hp-agent.is-in { opacity: 1; }
.hp-agent .chip { opacity: 0; transition: opacity 260ms var(--out); }
.hp-agent.is-home .chip { opacity: 1; }
.scene .m-cur { fill: var(--paper); stroke: none; animation: cur-blink 1.1s steps(1, end) infinite; }
.scene [data-o="mB"] .m-cur { animation-delay: -0.55s; }
@keyframes cur-blink { 50% { opacity: 0; } }

/* 2. core ideas: one card per idea, text beside its own small film */
.ideas { padding: 96px var(--g); }
.ideas__list { list-style: none; display: grid; gap: 24px; margin: 0; padding: 0; }
.idea { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); border: 1px solid var(--rule); background: var(--plate); }
.idea:nth-child(even) { grid-template-columns: minmax(0, 6fr) minmax(0, 5fr); }
.idea__text { padding: 40px; }
.idea h3 { display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px 14px; margin: 0; font-weight: 400; font-size: 28px; line-height: 1.15; letter-spacing: -0.025em; }
.idea__n { font: 12px/1 var(--mono); letter-spacing: 0.02em; transform: translateY(-4px); }
.pill { align-self: center; padding: 3px 8px; border: 1px solid var(--amber); border-radius: 2px; color: var(--amber-ink); font: 11px/14px var(--mono); letter-spacing: 0.02em; }
.idea__claim { margin: 16px 0 12px; font-weight: 600; font-size: 17px; line-height: 26px; text-wrap: balance; }
.idea__text > p:not(.idea__claim) { max-width: 56ch; }
.idea h4 { margin: 24px 0 10px; font: 600 13px/18px "Geist", system-ui, sans-serif; letter-spacing: 0.01em; }
.idea ul { display: grid; gap: 8px; margin: 0; padding: 0; list-style: none; max-width: 56ch; }
.idea li { position: relative; padding-left: 18px; }
.idea li::before { content: ""; position: absolute; left: 0; top: 9px; width: 6px; height: 6px; background: var(--blue); }
.idea__fig { position: relative; display: grid; place-items: center; padding: 56px 24px 24px; border-left: 1px solid var(--rule); background: var(--paper); }
.idea:nth-child(even) .idea__fig { order: -1; border-left: 0; border-right: 1px solid var(--rule); }
.idea__fig .scene { max-width: 520px; }
.idea__fig .play { position: absolute; top: 12px; right: 12px; }

/* 3. blog */
.blog { padding: 96px var(--g); border-top: 1px solid var(--rule); }
.sec-head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 8px 24px; margin-bottom: 40px; }
.sec-head .sec-title { margin: 0; }
.more { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; font-size: 14px; text-decoration: none; text-underline-offset: 4px; }
.more:hover { text-decoration: underline; }
/* the grid: hairlines are the 1px gaps showing the rule colour; the lead article spans both rows on the left */
.blog__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1px; border: 1px solid var(--rule); background: var(--rule); }
.post { display: flex; flex-direction: column; background: var(--plate); text-decoration: none; }
.post--lead { grid-row: span 2; }
.post:focus-visible { position: relative; z-index: 1; outline: 2px solid var(--blue); outline-offset: 2px; }
.post__art { --panel: var(--blue); position: relative; display: grid; place-items: center; height: 240px; padding: 16px; overflow: hidden; background: var(--panel); }
.post--lead .post__art { flex: 1; min-height: 420px; }
.post--green .post__art { --panel: var(--green); }
.post--slate .post__art { --panel: var(--slate); }
.post__bg { position: absolute; inset: 0; width: 100%; height: 100%; }
.scene-defs .dia { fill: var(--paper); fill-opacity: 0.07; }
.bart { position: relative; width: 100%; height: 100%; max-width: 520px; }
.bart path, .bart rect { vector-effect: non-scaling-stroke; stroke-linejoin: round; stroke-linecap: round; }
.bart .t-top, .bart .t-left, .bart .t-right { fill: var(--plate); stroke: var(--panel); stroke-width: 1px; }
.bart .t-left { fill: var(--paper); }
.bart .bi path { fill: none; stroke: var(--panel); stroke-width: 1.4px; }
.bart .bi .fill { fill: var(--panel); }
.bart .bl { fill: none; stroke: var(--paper-a50); stroke-width: 1px; stroke-dasharray: 4 4; }
.bart .bc { transition: transform 0.35s var(--out); }
.post:hover .bc { transform: translateY(-4px); }
.post__text { padding: 24px 32px 28px; }
.post :is(h2, h3) { max-width: 26ch; margin: 0; font-weight: 300; font-size: 24px; line-height: 1.2; letter-spacing: -0.02em; text-wrap: balance; text-underline-offset: 5px; text-decoration-thickness: 1px; }
.post--lead :is(h2, h3) { font-size: 30px; line-height: 1.15; }
.post__text p { max-width: 56ch; margin-top: 12px; }
.post:hover :is(h2, h3) { text-decoration-line: underline; }
.post:hover .arrow, .more:hover .arrow { transform: translateX(3px); }

/* blog pages: the index reuses the landing's card grid; an article sets text beside its animations, with a sticky contents list */
.blog--page { border-top: 0; }
.blog--page .sec-head { flex-direction: column; align-items: flex-start; gap: 16px; }
.blog__sub { max-width: 46ch; font-size: 18px; line-height: 27px; text-wrap: balance; }
.art { --toc: 160px; --gap: 48px; box-sizing: content-box; max-width: 1216px; margin: 0 auto; padding: 40px var(--g) 96px; font-size: 17px; line-height: 1.85; }
.art article p, .art article li { color: var(--slate); }
.art__back { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; font-size: 14px; text-decoration: none; text-underline-offset: 4px; }
.art__back:hover { text-decoration: underline; }
.art__head { margin-top: 24px; padding-bottom: 32px; border-bottom: 1px solid var(--rule); }
.art__meta { display: flex; flex-wrap: wrap; font-size: 14px; line-height: 20px; }
.art__meta { color: var(--slate); }
.art__meta span + span::before { content: "·"; margin: 0 12px; }
.art h1 { max-width: 900px; margin: 16px 0 16px; font-weight: 300; font-size: clamp(36px, 4.4vw, 60px); line-height: 1.04; letter-spacing: -0.04em; text-wrap: balance; }
.art__by { font-size: 15px; line-height: 24px; color: var(--slate); }
.art h2 { margin: 56px 0 20px; font-weight: 400; font-size: 28px; line-height: 1.15; letter-spacing: -0.025em; text-wrap: balance; }
.art article p, .art article ul { margin: 0 0 1.1em; }
.art article p, .art article li { text-wrap: pretty; }
.art article ul { display: grid; gap: 8px; padding: 0; list-style: none; }
.art article li { position: relative; padding-left: 24px; }
.art article li::before { content: ""; position: absolute; left: 2px; top: 0.75em; width: 6px; height: 6px; background: var(--blue); }
.art__body a:not(.btn), .art__context a { color: var(--blue); text-underline-offset: 3px; text-decoration-thickness: 1px; }
.art__body a:not(.btn):hover { text-decoration-thickness: 2px; }
.art [id] { scroll-margin-top: calc(var(--nav) + 24px); }
.art figure { margin: 0; min-width: 0; }
.art figure img, .art figure video { display: block; width: 100%; height: auto; border: 1px solid var(--rule); background: var(--plate); }
.art figcaption { margin-top: 12px; font-size: 13px; line-height: 20px; color: var(--slate); }
/* text beside its animation: the opening and each section are two columns, as on the live article */
.art__open { display: grid; grid-template-columns: minmax(0, 1.06fr) minmax(0, 0.94fr); gap: clamp(32px, 5vw, 68px); align-items: start; padding: 52px 0 28px; }
.art__open .art__body > p:first-child { font-size: 20px; line-height: 1.7; color: var(--blue); }
.art .art__context { max-width: 40em; margin: 0 0 48px; padding: 16px 0 16px 20px; border-left: 2px solid var(--blue-a40); font-size: 15px; line-height: 1.75; }
.art__head + .art__read { margin-top: 52px; }
.art__read { display: grid; grid-template-columns: var(--toc) minmax(0, 1fr); column-gap: var(--gap); align-items: start; }
.art__read > .art__body > :not(section):not(figure):not(.art__cta), .art__read > .art__body > section:not(:has(figure)) { max-width: 34em; }
.art__read > .art__body > :first-child, .art__read > .art__body > section:first-child h2 { margin-top: 0; }
.art__body section:has(figure) { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 0.92fr); gap: clamp(24px, 3.2vw, 44px); align-items: center; padding: 52px 0; border-top: 1px solid var(--rule); }
.art__body section:has(figure):first-child { border-top: 0; padding-top: 0; }
.art__body section:has(figure) h2 { margin-top: 0; }
.art__body section:has(figure) p:last-child { margin-bottom: 0; }
.art__body > figure { max-width: 720px; margin: 0 0 64px; padding: 24px; border: 1px solid var(--rule); background: var(--plate); }
.art__body > div:not(.art__cta) { margin: 0 0 48px; padding: 28px 0; border-block: 1px solid var(--rule); }
.art__toc { position: sticky; top: calc(var(--nav) + 32px); }
.art__toc nav { display: grid; gap: 0; font-size: 14px; line-height: 20px; }
.art__toc span { margin-bottom: 8px; font-weight: 500; }
.art__toc a { display: flex; align-items: center; min-height: 44px; padding: 0 0 0 16px; border-left: 1px solid var(--rule); color: var(--slate); text-decoration: none; transition: border-color 0.2s, color 0.2s; }
.art__toc a:hover { border-left-color: var(--blue); color: var(--blue); }
.art__cta { max-width: 34em; margin-top: 56px; padding-top: 32px; border-top: 1px solid var(--rule); }
.art .art__act { margin: 24px 0 0; }
@media (max-width: 899px) {
  .art { padding: 24px 16px 64px; font-size: 17px; }
  .art__open, .art__body section:has(figure) { grid-template-columns: minmax(0, 1fr); gap: 24px; }
  .art__open { padding-top: 32px; }
  .art__open .art__body > p:first-child { font-size: 19px; }
  .art__body section:has(figure) { padding-block: 40px; }
  .art h2 { font-size: 24px; }
  .art__read { grid-template-columns: minmax(0, 1fr); }
  .art__toc { position: static; margin-bottom: 32px; }
  .art__body > figure { padding: 12px; }
}

/* 4. close: full-bleed cobalt that runs straight into the footer. One lattice (--s): hairlines on the gutter (--g) and on the
   split (--g + 16 units) run through the close and the footer. Squares and the social cells sit on the lattice at the
   bottom left; the code panel fills the right, from the split to the viewport edge and down to the footer. */
.close, .foot {
  --s: 40px;
  --split: calc(var(--g) + 16 * var(--s));
  background:
    linear-gradient(var(--rule-inv), var(--rule-inv)) var(--g) 0 / 1px 100% no-repeat,
    linear-gradient(var(--rule-inv), var(--rule-inv)) var(--split) 0 / 1px 100% no-repeat,
    var(--blue);
}
.close { display: grid; grid-template-columns: var(--split) minmax(0, 1fr); grid-template-rows: auto 1fr; overflow: clip; color: var(--paper); }
.close__text { padding: 96px 24px 0 calc(var(--g) + var(--s)); }
.close__text h2 { margin: 0 0 32px; font-weight: 300; font-size: clamp(36px, 4.4vw, 64px); line-height: 1.02; letter-spacing: -0.04em; text-wrap: balance; }
.close__btns { display: flex; flex-wrap: wrap; gap: 12px; }
.btn--cream { background: var(--paper); border-color: var(--paper); color: var(--blue); }
.btn--cream:hover { background: transparent; color: var(--paper); }
.btn--line { border-color: var(--rule-inv); color: var(--paper); }
.btn--line:hover { background: var(--hover-paper); border-color: var(--paper); }
.btn--line:active { background: var(--press-paper); }
.close :focus-visible, .foot :focus-visible { outline-color: var(--paper); }

/* the field starts two lattice rows below the buttons, so nothing moves beside them */
.close__art { position: relative; height: calc(11 * var(--s)); margin-top: calc(2 * var(--s)); }
.sqs { position: absolute; left: calc(var(--g) - 3 * var(--s)); bottom: 0; width: calc(19 * var(--s)); height: calc(11 * var(--s)); }
.sq-field { display: block; width: 100%; height: 100%; }
.sq { fill: var(--paper); transform-box: fill-box; transform-origin: center; }
.sq.off { opacity: 0; }

/* social cells: hairline cells on the lattice, the whole cell is the link; one big emblem slab each */
.cells {
  position: absolute; left: var(--g); bottom: 0; z-index: 1; display: grid;
  grid-template-columns: calc(8 * var(--s)) calc(4 * var(--s)) calc(4 * var(--s)); grid-template-rows: repeat(2, calc(4 * var(--s)));
}
.cell {
  position: relative; display: grid; place-items: center; color: var(--paper); text-decoration: none;
  box-shadow: inset 1px 1px 0 var(--rule-inv); transition: background-color 0.2s; -webkit-tap-highlight-color: transparent;
}
.cell:nth-child(1) { grid-area: 1 / 1 / 3 / 2; }
.cell:nth-child(2) { grid-area: 1 / 2; box-shadow: inset 1px 1px 0 var(--rule-inv), inset -1px 0 0 var(--rule-inv); }
.cell:nth-child(3) { grid-area: 2 / 2; }
.cell:nth-child(4) { grid-area: 2 / 3; }
.cell:hover { background: var(--hover-paper); }
.cell:active { background: var(--press-paper); }
.cell:focus-visible { outline-offset: -6px; }
.cell__name { position: absolute; top: 12px; left: 14px; font-size: 13px; line-height: 18px; }
.cell .em { width: 86%; max-width: none; margin: 10px 0 0; }
.cell:nth-child(1) .em { width: 80%; }
.em__lift { transition: transform 240ms var(--out); }
.cell .t-top { fill: var(--paper); }
.cell .t-hi { fill: var(--plate); stroke: none; opacity: 0; transition: opacity 240ms var(--out); }
.cell:hover .em__lift, .cell:focus-visible .em__lift { transform: translateY(-4px); }
.cell:hover .t-hi, .cell:focus-visible .t-hi { opacity: 1; }
.cell:active .em__lift { transform: translateY(-1.5px); }
.cell .gl-o > * { stroke: var(--blue); stroke-width: 1.6px; }
.cell .gl-f > * { stroke: none; }
.cell .gl-top > * > * { fill: var(--plate); }
.cell .gl-side > * > * { fill: url(#aw-hatch); }

/* the code: a cream editor panel. JS types it in once on view, on an aria-hidden copy laid over the real text */
.code { grid-column: 2; grid-row: 1 / span 2; display: flex; flex-direction: column; min-width: 0; margin: 96px 0 0; background: var(--paper); color: var(--blue); }
.code__bar { border-bottom: 1px solid var(--rule); }
.code__tab { display: inline-block; padding: 13px 20px; border-right: 1px solid var(--rule); background: var(--plate); font: 13px/20px var(--mono); }
.code__body { display: flex; font: clamp(13px, 1.04vw, 15px)/1.9 var(--mono); }
.code__nums { flex: none; padding: 32px 0 32px 24px; color: var(--blue-a40); text-align: right; white-space: pre; user-select: none; }
.code__txt { position: relative; flex: 1; min-width: 0; }
.code pre { margin: 0; padding: 32px 32px 32px 22px; font: inherit; tab-size: 4; white-space: pre-wrap; overflow-wrap: anywhere; }
.code code { font: inherit; }
.code .c { color: var(--amber-ink); }
.code .k { color: var(--blue-deep); font-weight: 600; }
.code .s { color: var(--green); }
.code .code__type { position: absolute; inset: 0; pointer-events: none; }
.code.is-typing .code__txt > pre:first-child { opacity: 0; }
.caret { display: inline-block; width: 0.55em; height: 1.2em; margin-left: 1px; vertical-align: -0.25em; background: currentColor; animation: caret 1.1s steps(1, end) infinite; }
.code.is-typing .caret { animation: none; }
@keyframes caret { 50% { opacity: 0; } }

/* the footer: the same cobalt and hairlines, so the close runs into it */
.foot { padding-left: var(--g); border-top: 1px solid var(--rule-inv); color: var(--paper); }
.foot .nav__cell { border-right-color: var(--rule-inv); }
.foot .nav__cell:hover { background: var(--hover-paper); }
.foot .nav__cell:active { background: var(--press-paper); }

/* below this the code panel needs the full width: headline, buttons, code, then the field and cells */
@media (max-width: 1199px) {
  .close { grid-template-columns: minmax(0, 1fr); grid-template-rows: none; }
  .code { grid-column: 1; grid-row: 2; margin: 64px 0 0 var(--g); }
  .code__body { font-size: 15px; }
  .close__art { grid-row: 3; }
}
/* phones: cells in a 2 x 2 grid, then a strip of the field on the footer */
@media (max-width: 719px) {
  .close, .foot { --g: 16px; --s: 32px; background: var(--blue); }
  .foot { padding-left: 0; }
  .close__text { padding: 56px 16px 0; }
  .code { margin: 48px 0 0; }
  .code__body { font-size: 13px; line-height: 1.75; }
  .code__nums { display: none; }
  .code pre { padding: 20px 16px; }
  .close__art { height: auto; margin-top: 48px; }
  .cells { position: static; margin: 0 16px; grid-template-columns: 1fr 1fr; grid-template-rows: none; box-shadow: inset -1px -1px 0 var(--rule-inv); }
  .cell:nth-child(n) { grid-area: auto; aspect-ratio: 1; }
  .cell:nth-child(2) { box-shadow: inset 1px 1px 0 var(--rule-inv); }
  .cell .em, .cell:nth-child(1) .em { width: 84%; }
  .sqs { position: relative; left: 0; width: auto; height: calc(3 * var(--s)); margin-top: 48px; overflow: hidden; }
  .sq-field { width: calc(19 * var(--s)); height: calc(11 * var(--s)); }
}

@media (max-width: 899px) {
  .nav__cell { padding: 0 16px; }
  .nav__brand span { font-size: 15px; }
  .hero { grid-template-columns: 1fr; min-height: 0; padding: 40px 16px 24px; }
  .hero__title { font-size: 42px; }
  .hero__sub { margin: 20px 0 28px; }
  .hp { width: calc(100% + 32px); margin: 32px -16px 0; }
  .hp .scene { max-width: 100%; }
  .hp__bar { padding: 0 16px; }
  .ideas, .blog { padding: 64px 16px; }
  .idea, .idea:nth-child(even) { grid-template-columns: 1fr; }
  .idea__fig, .idea:nth-child(even) .idea__fig { order: -1; padding: 56px 8px 16px; border: 0; border-bottom: 1px solid var(--rule); }
  .idea__text { padding: 24px 20px 28px; }
  .idea h3 { font-size: 24px; }
  .blog__grid { grid-template-columns: 1fr; }
  .post--lead { grid-row: auto; }
  .post__art, .post--lead .post__art { flex: none; height: auto; min-height: 0; aspect-ratio: 16 / 10; }
  .post--lead .post__art { aspect-ratio: 4 / 3; }
  .post__text { padding: 20px 20px 24px; }
  .post :is(h2, h3), .post--lead :is(h2, h3) { font-size: 22px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .scene * { animation: none !important; }
  .hero__title .w { animation: none; }
  .btn { transform: none; }
  .hp-perk, .arrow { transition: none; }
  .em__lift, .cell .t-hi { transition: none; }
  .bart .bc { transition: none; }
  .post:hover .bc { transform: none; }
  .caret { animation: none; }
}

/* cursor: a cream dart whose edges follow the drawing's 2:1 slopes, outlined in cobalt so it reads on cream and on cobalt.
   Links and controls get the same dart with a cobalt tip. Fine pointers only; text fields keep the text cursor. */
@media (pointer: fine) {
  html { cursor: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='26' height='26' viewBox='0 0 26 26'%3E%3Cpath d='M3 3L22 12.5L15.67 15.67L12.5 22Z' fill='%23f2eee3' stroke='%232350c8' stroke-width='1.5' stroke-linejoin='miter'/%3E%3C/svg%3E") 3 3, auto; }
  a, button, summary, label, [role="button"], .hp-btn, .play, a *, button * {
    cursor: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='26' height='26' viewBox='0 0 26 26'%3E%3Cpath d='M3 3L22 12.5L15.67 15.67L12.5 22Z' fill='%23f2eee3' stroke='%232350c8' stroke-width='1.5' stroke-linejoin='miter'/%3E%3Cpath d='M6.5 6.5L14 10.25L10.25 14Z' fill='%232350c8'/%3E%3C/svg%3E") 3 3, pointer;
  }
  input, textarea, select, [contenteditable], .code pre { cursor: text; }
}

/* early access: one native dialog opened by every "Get early access" link */
.ea {
  width: min(480px, calc(100% - 32px)); padding: 32px; border: 1px solid var(--rule);
  background: var(--plate); color: var(--blue);
}
.ea::backdrop { background: var(--scrim); }
.ea[open] { animation: ea-in 240ms var(--out); }
@keyframes ea-in { from { opacity: 0; transform: translateY(8px); } }
.ea__form { display: grid; gap: 12px; }
.ea__title { margin: 0; font-size: 28px; font-weight: 500; letter-spacing: -0.02em; }
.ea__lede { margin: 0 0 8px; font-size: 15px; line-height: 1.5; }
.ea__label { font-size: 13px; }
.ea__row { display: flex; gap: 8px; flex-wrap: wrap; }
.ea__input {
  flex: 1 1 200px; min-width: 0; min-height: 44px; padding: 0 12px;
  border: 1px solid var(--blue-a40); background: var(--paper); color: var(--blue); font: inherit; font-size: 15px;
}
.ea__input::placeholder { color: var(--blue-a50); }
.ea__input:focus-visible { outline: 2px solid var(--blue); outline-offset: 0; }
.ea__input[aria-invalid="true"] { border-color: var(--amber-ink); }
.ea__msg { margin: 0; min-height: 1.4em; font-size: 14px; }
.ea__msg.is-error { color: var(--amber-ink); }
.ea__x {
  position: absolute; top: 8px; right: 8px; width: 44px; height: 44px;
  border: 0; background: none; color: var(--blue); font-size: 24px; cursor: pointer;
}
.ea__x:hover { background: var(--hover-blue); }
@media (prefers-reduced-motion: reduce) { .ea[open] { animation: none; } }
.ea__note { margin: 0; font-size: 13px; color: var(--blue); opacity: 0.8; }
.ea__trap { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.ea .btn:disabled { background: var(--plate); border-color: var(--blue-a40); color: var(--blue-a50); cursor: progress; }
