/* CastSpell landing.
   Palette: night moss #0f1a16, moss panel #16251f, chalk #e8eee5, lichen #9cc3ab, dim #a6b5aa,
   amber #e7ad45 only for "Needs you". Type: Sora 300 display, Figtree body, IBM Plex Mono labels; the product
   window uses the app's own system font stack.
   States: html.scrolly = pinned, scroll-driven story (script.js). Without it the finished circle is shown.
   html[data-repo-public] = the one switch for GitHub links (see the comment at the top of <body>). */
:root{--bg:#0f1a16;--bg-deep:#0a120f;--panel:#16251f;--chalk:#e8eee5;--lichen:#9cc3ab;--dim:#a6b5aa;--line:#2b3d35;--line-strong:#3d544a;--amber:#e7ad45;--ink:#c9d4cb;
  --head:"Sora","Avenir Next",system-ui,sans-serif;--body:"Figtree",system-ui,-apple-system,"Segoe UI",sans-serif;--mono:"IBM Plex Mono",ui-monospace,Menlo,monospace;
  --sys:-apple-system,BlinkMacSystemFont,"SF Pro Text",Inter,system-ui,sans-serif;
  --ease-out:cubic-bezier(.2,.8,.2,1);--ease-in-out:cubic-bezier(.65,0,.35,1);--ease-spring:cubic-bezier(.34,1.4,.64,1);
  --r:38%;--e:1}
*{box-sizing:border-box}
html{-webkit-text-size-adjust:100%;scrollbar-gutter:stable both-edges}
body{margin:0;background:var(--bg);color:var(--chalk);font:400 18px/1.6 var(--body);overflow-x:hidden}
img{max-width:100%}
a{color:inherit}
:focus-visible{outline:2px solid var(--lichen);outline-offset:3px;border-radius:4px}
.skip{position:absolute;left:-999px;top:8px;background:var(--chalk);color:var(--bg);padding:8px 12px;z-index:9;border-radius:6px}
.skip:focus{left:8px}
.sr-only{position:absolute;width:1px;height:1px;margin:-1px;padding:0;overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap;border:0}
[data-repo-public="false"] .repo-link,[data-repo-public="true"] .repo-private{display:none!important}

/* nav: sticky, transparent over the hero; script.js adds .scrolled after 80 px (no blur, no glass) */
.nav{position:sticky;top:0;z-index:20;height:64px;transition:background-color .2s,box-shadow .2s}
.nav.scrolled{background:rgba(15,26,22,.85);box-shadow:0 1px 0 var(--line)}
.nav{display:flex;align-items:center;justify-content:space-between;padding:0 max(32px,calc(50vw - 628px))}
.brand{display:flex;gap:10px;align-items:center;text-decoration:none;font:400 19px var(--head);white-space:nowrap}
.brand img{width:28px;height:28px;border-radius:7px}
.nav ul{list-style:none;margin:0;padding:0;display:flex;gap:24px;align-items:center;font:500 12px var(--mono);letter-spacing:.08em;text-transform:uppercase}
.nav a{text-decoration:none}
.nav-link{color:var(--dim)}
.nav-link:hover{color:var(--chalk)}
.nav-pill{display:inline-flex;align-items:center;min-height:40px;white-space:nowrap;border:1px solid var(--line-strong);padding:0 16px;border-radius:99px}
.nav-pill:hover{border-color:var(--lichen)}

/* buttons */
.cta{display:inline-flex;align-items:center;justify-content:center;min-height:48px;background:var(--chalk);color:var(--bg);text-decoration:none;font:500 17px/1.2 var(--body);padding:13px 28px;border-radius:99px;transition:background .16s,transform .09s}
.cta:hover{background:#fff}
.cta:active{transform:scale(.98)}
.ghost{display:inline-flex;align-items:center;justify-content:center;min-height:48px;color:var(--chalk);text-decoration:none;font:500 17px/1.2 var(--body);padding:12px 26px;border:1px solid var(--line-strong);border-radius:99px;transition:border-color .16s}
.ghost:hover{border-color:var(--lichen)}
.actions{display:flex;flex-wrap:wrap;gap:12px;align-items:center;justify-content:center}

/* hero: a centred text column, then the triptych running past the fold. No entrance animation on text (H1 = LCP).
   The hero spans the full width (no max-width) so the side windows can reach into the page margins, and clips
   horizontally so they can never cause a sideways scroll. Every hero element sits on one centre axis. */
.hero{margin:0 auto;padding:clamp(12px,2.6vh,28px) 32px 0;display:flex;flex-direction:column;align-items:center;text-align:center;overflow-x:clip}
.hero-copy{--rh:clamp(10px,1.7vh,16px);width:100%;display:flex;flex-direction:column;align-items:center;gap:var(--rh)}
.hero-copy>*{margin:0}
/* H1: two centred lines; capped so "Your ideas. Your agents." is roughly 55-62% of the container on desktop */
.hero h1{font:300 clamp(36px,min(4.6vw,7.4vh),66px)/1.06 var(--head);letter-spacing:-.03em;color:var(--chalk)}
.hero h1 span{display:block;text-wrap:balance}
.lede{font:300 clamp(20px,2.7vh,26px)/1.25 var(--head);letter-spacing:-.01em;color:var(--chalk)}
.sub{max-width:36em;color:var(--ink);font-size:clamp(16px,2.2vh,18px);line-height:1.5;text-wrap:balance}
.sub2{max-width:30em;color:var(--chalk);font-size:clamp(16px,2.2vh,18px);line-height:1.5;font-weight:500;text-wrap:balance}
.hero-copy .actions{margin:calc(var(--rh) * .5) 0}
.quiet span{white-space:nowrap}
.quiet{font:500 12px/1.5 var(--mono);letter-spacing:.04em;color:var(--dim);text-wrap:balance}
/* the one hero button: large, dark, rim-lit (the page lamp catches its 1.5px edge via .cta::after below) */
.hero .cta{min-height:56px;padding:0 38px;font:500 18px/1.2 var(--body);color:var(--chalk);background:var(--panel);border:1px solid #2f463c;
  box-shadow:inset 0 1px 0 rgba(232,238,229,.07),0 16px 36px -18px rgba(0,0,0,.75);transition:background-color .16s,border-color .16s,transform .09s}
.hero .cta:hover{background:#1b2d26;border-color:#4a6658}

/* ---------- hero window ----------
   One fixed design canvas (1200 x 700; 992 wide without the sidebar under 1000 px; 360 x 500 portrait crop under
   760 px), scaled to fit with --ws. CSS works out --ws from the viewport (atan2 ratio trick) so it is right without
   JS; script.js then sets it from the real width. Everything inside is in design px. */
.hero-win{position:relative;width:100%;display:flex;flex-direction:column;align-items:center;margin-top:clamp(28px,4.4vh,44px)}
/* --dw (design width) and --fw (on-screen width) live on .tri (see "triptych" below) and are inherited here */
.win-frame{--ws:1;position:relative;z-index:2;flex:none;width:var(--fw);aspect-ratio:1200/700;
  border-radius:calc(20px * var(--ws));box-shadow:0 60px 140px -50px rgba(0,0,0,.7)}
@supports (width:calc(tan(atan2(1px,1px)) * 1px)){.win-frame{--ws:tan(atan2(var(--fw),1200px))}}
.win-frame:focus{outline:none}
.win{position:absolute;left:0;top:0;width:1200px;height:700px;transform-origin:0 0;scale:var(--ws);border-radius:20px;overflow:hidden;
  background:#131917;border:1px solid #29332e;box-shadow:inset 0 1px 0 rgba(232,238,229,.06);color:#e8eee5;font:400 13px/1.35 var(--sys);text-align:left;
  -webkit-user-select:none;user-select:none;-webkit-font-smoothing:antialiased}
.win svg{display:block}
.w-defs{position:absolute}
.win-art{position:absolute;inset:0;display:flex}
.win p{margin:0}
.w-dots{display:flex;gap:8px;padding:2px 0 0}
.w-dots i{width:12px;height:12px;border-radius:50%;background:#2d3833}
.w-dots.m{display:none}
.w-side{width:208px;flex:none;background:#161d1a;border-right:1px solid #29332e;padding:16px 14px;display:flex;flex-direction:column}
.w-lab{margin-top:26px!important;font-size:11px;font-weight:600;letter-spacing:.06em;text-transform:uppercase;color:#76837c}
.w-proj{margin-top:10px!important;padding:6px 8px;font-weight:600;color:#d8e0d9}
.w-spaces{list-style:none;margin:4px 0 0;padding:0}
.w-spaces li{padding:6px 8px 6px 22px;border-radius:7px;color:#9aa79f;position:relative}
.w-spaces li.on{background:#222c27;color:#e8eee5}
.w-spaces li::before{content:"";position:absolute;left:9px;top:50%;width:5px;height:5px;margin-top:-2.5px;border-radius:50%;background:#3d4943}
.w-spaces li.on::before{background:#9cc3ab}
.w-set{margin-top:auto!important;padding:6px 8px;color:#9aa79f}
.w-main{position:relative;flex:1;min-width:0}
.w-bar{height:44px;display:flex;align-items:center;gap:12px;padding:0 14px;border-bottom:1px solid #222b27}
.w-seg{display:flex;padding:2px;border-radius:8px;background:#1b2420;font-size:12px}
.w-seg>*{padding:3px 10px;border-radius:6px;color:#8d9a92;font-weight:500}
.w-seg b{background:#2a3530;color:#e8eee5}
.w-title{flex:1;display:flex;justify-content:center;gap:6px;font-size:12.5px;color:#8d9a92;white-space:nowrap}
.w-title i{font-style:normal;color:#56625c}
.w-title b{color:#e8eee5;font-weight:600}
.w-r{display:flex;align-items:center;gap:10px}
.w-sf{display:flex;align-items:center;gap:8px;padding:4px 6px 4px 10px;border-radius:8px;background:#1b2420;color:#76837c;font-size:12px}
.w-sf b{font:500 11px/1 var(--sys);color:#9aa79f;padding:3px 5px;border-radius:5px;background:#26302b}
.w-np{font-size:12.5px;font-weight:550;padding:4px 9px;border-radius:7px;color:#e7ad45;background:rgba(231,173,69,.16);transition:opacity .38s var(--ease-out)}
.w-np[data-on="0"]{opacity:0}
.cv{position:absolute;left:0;right:0;top:44px;bottom:0;overflow:hidden;
  background:radial-gradient(circle,rgba(232,238,229,.06) 1px,transparent 1.3px) 12px 12px/24px 24px}
.lks{position:absolute;left:0;top:0;width:992px;height:656px;overflow:visible}
.lks.m{display:none}
.w-ring{fill:none;stroke:#9cc3ab;stroke-width:1;stroke-dasharray:3 9;opacity:.12;transition:opacity .9s}
.w-ring[data-on="0"]{opacity:0}
.lk-p{fill:none;stroke:rgba(156,195,171,.55);stroke-width:1.5;stroke-dasharray:1;stroke-dashoffset:0;transition:stroke-dashoffset .52s var(--ease-in-out),stroke .2s}
.lk circle{fill:#9cc3ab;opacity:.8;transition:opacity .3s .25s}
.lk[data-on="0"] .lk-p{stroke-dashoffset:1}
.lk[data-on="0"] circle{opacity:0;transition-delay:0s}
.lk-d{fill:none;stroke:#e8eee5;stroke-width:2;stroke-linecap:round;stroke-dasharray:6 94;stroke-dashoffset:6;opacity:0}

/* cards: the app's card head (tile, name, pill; subtitle with the branch), task line, activity line */
.cd{--w:232px;--h:108px;position:absolute;left:var(--x);top:var(--y);width:var(--w);height:var(--h);padding:12px 14px;border-radius:12px;
  background:#1b2420;border:1px solid #29332e;box-shadow:inset 0 1px 0 rgba(232,238,229,.04);display:flex;flex-direction:column;gap:6px;
  transition:opacity .42s var(--ease-out),transform .42s var(--ease-spring),border-color .3s,translate .14s}
.c-lead{--w:252px;--x:370px;--y:120px}
.cd.h{--w:248px}
.c-cc{--x:32px;--y:24px;--tx:340px;--ty:96px}
.c-oc{--x:32px;--y:196px;--tx:340px;--ty:-76px}
.c-oc[data-st="needs"]{--h:142px}
.c-cx{--x:712px;--y:24px;--tx:-340px;--ty:96px}
.c-desk{--w:210px;--h:150px;--x:640px;--y:200px}
.c-phone{--w:112px;--h:190px;--x:864px;--y:190px}
.cd[data-st="off"]{opacity:0;transform:scale(.9)}
.cd.gone{opacity:0;transform:translate(var(--tx,0),var(--ty,0)) scale(.6);transition:opacity .5s var(--ease-in-out),transform .5s var(--ease-in-out)}
.cd:hover{border-color:#36433d;translate:0 -1px}
.cd.sel{border-color:#9cc3ab}
.hd{display:grid;grid-template-columns:28px minmax(0,1fr);gap:10px;align-items:center}
.nr{display:flex;align-items:center;gap:8px;min-width:0}
.tl{width:28px;height:28px;border-radius:7px;background:#232d28;display:grid;place-items:center;color:#d5ddd6}
.tl svg{width:16px;height:16px}
.tl.av{background:#0f1512;overflow:hidden}
.tl.av img{width:28px;height:28px;display:block}
.nm{min-width:0}
.nm b{display:block;min-width:0;font-weight:600;font-size:13px;line-height:1.25;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.nm small{display:flex;align-items:center;gap:5px;margin-top:3px;font-size:11.5px;line-height:1.3;color:#7d8a83;white-space:nowrap;overflow:hidden}
.nm small .br{font:400 10.5px/1.3 var(--mono);color:#8d9a92;overflow:hidden;text-overflow:ellipsis}
.nm small i{font-style:normal;color:#56625c}
.nm small svg{width:11px;height:11px;flex:none}
.pl{display:inline-flex;align-items:center;gap:6px;padding:4px 8px;border-radius:6px;font-size:12.5px;font-weight:550;line-height:1;white-space:nowrap;color:#9aa79f;background:rgba(232,238,229,.07);
  transition:color .3s,background-color .3s}
.pl::before{content:"";width:6px;height:6px;border-radius:50%;background:currentColor;flex:none}
.tk,.ac{white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
/* the app's inline question on a waiting card: question, then numbered answers (decorative here; the real
   buttons are on the decision card above the composer) */
.cdq{display:none;align-items:center;gap:6px;margin-top:1px!important;padding:5px 6px 5px 8px;border-radius:7px;background:rgba(231,173,69,.10);font-size:12px;color:#e8eee5}
.cdq i{width:6px;height:6px;border-radius:50%;background:#e7ad45;flex:none}
.cdq span{flex:1;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.cdq b{display:grid;place-items:center;width:20px;height:20px;border-radius:5px;background:#2b3530;font-size:11px;font-weight:600;color:#c9d4cb}
[data-st="needs"] .cdq{display:flex}
.tk{font-size:12px;color:#c9d4cb}
.ac{font:400 11px/1.4 var(--mono);color:#7d8a83;transition:opacity .18s}
.ac.fade{opacity:0}
[data-st="work"] .pl,.dv .pl{color:#9cc3ab;background:rgba(156,195,171,.14)}
[data-st="start"] .pl{color:#7d8a83;background:transparent}
[data-st="needs"]{border-color:rgba(231,173,69,.75)}
[data-st="needs"] .pl{color:#e7ad45;background:rgba(231,173,69,.16)}
[data-st="done"] .pl{color:#e8eee5;background:rgba(232,238,229,.10)}
[data-st="done"] .pl::before{width:7px;height:3.5px;border-radius:0;background:none;border:solid currentColor;border-width:0 0 1.5px 1.5px;transform:translateY(-1px) rotate(-45deg)}
[data-st="idle"] .pl{color:#7d8a83;background:transparent}
[data-st="paused"]{border-style:dashed;opacity:.7}
[data-st="paused"] .pl{color:#7d8a83;background:transparent}
/* devices */
.dv{padding:10px 12px;gap:8px}
.dv-h{display:flex;align-items:center;justify-content:space-between;gap:8px}
.dv-h b{font-weight:600;font-size:12.5px;white-space:nowrap}
.ds{position:relative;flex:1;border-radius:6px;overflow:hidden;background:#101714;border:1px solid #26302b}
.ds-bar{position:absolute;left:0;right:0;top:0;height:9px;background:#18211d}
.ds-br{position:absolute;left:22px;right:22px;top:16px;bottom:8px;border-radius:4px;background:#1a2420;border:1px solid #2a352f;overflow:hidden}
.ds-tab{position:absolute;left:6px;top:4px;width:44px;height:6px;border-radius:2px;background:#2b3631}
.ds-url{position:absolute;left:6px;right:6px;top:13px;height:7px;border-radius:4px;background:#232d28}
.ds-pg{position:absolute;left:50%;top:27px;width:64px;margin-left:-32px;display:flex;flex-direction:column;align-items:center;gap:5px}
.ds-o{width:12px;height:12px;border-radius:50%;background:#2f3a35}
.ds-f{width:100%;height:9px;border-radius:3px;background:#222c27;border:1px solid #303b36}
.ds-b{width:100%;height:10px;border-radius:3px;background:#9cc3ab;opacity:.85}
.ds-ptr{position:absolute;left:0;top:0;width:9px;height:12px;fill:#e8eee5;stroke:#101714;stroke-width:1;transform:translate(118px,78px)}
.ph{align-items:stretch}
.ph .dv-h b{font-size:10.5px;font-weight:600;color:#c9d4cb}
.ph-b{position:relative;flex:1;border-radius:14px;background:#0c110f;border:1px solid #2c3631;padding:7px 6px}
.ph-s{height:100%;border-radius:9px;background:#151d19;display:flex;flex-direction:column;align-items:center;gap:6px;padding:28px 9px 0}
.ps-o{width:14px;height:14px;border-radius:4px;background:#2f3a35;margin-bottom:4px}
.ps-f{width:100%;height:10px;border-radius:3px;background:#222c27;border:1px solid #303b36}
.ps-b{width:100%;height:11px;border-radius:3px;background:#9cc3ab;opacity:.85}
.ph-b .pl{position:absolute;left:50%;bottom:10px;translate:-50% 0;font-size:11px;padding:3px 7px}
/* composer: the app's placeholder, a lead picker chip, send */
.w-comp{position:absolute;left:216px;bottom:16px;width:560px;height:52px;display:flex;align-items:center;gap:10px;padding:0 8px 0 10px;border-radius:14px;
  background:#1b2420;border:1px solid #2f3a35;box-shadow:inset 0 1px 0 rgba(232,238,229,.05)}
.w-chip{display:flex;align-items:center;gap:6px;padding:5px 9px;border-radius:8px;background:#26302b;font-size:12px;color:#c9d4cb;white-space:nowrap}
.w-chip svg{width:13px;height:13px}
.w-in{flex:1;min-width:0;display:flex;align-items:center;white-space:nowrap;overflow:hidden;font-size:13px}
.w-ph{color:#76837c}
.w-ty{color:#e8eee5}
.w-ph:empty{display:none}
.w-caret{display:none;width:7px;height:2px;margin:9px 0 0 1px;background:#9cc3ab}
.typing .w-caret{display:block;animation:caret 1.125s steps(1,end) infinite}
.w-send{width:32px;height:32px;flex:none;border-radius:50%;background:#e8eee5;display:grid;place-items:center;transition:transform .16s var(--ease-out)}
.w-send svg{width:15px;height:15px;fill:none;stroke:#131917;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}
.w-send.press{transform:scale(.92)}
@keyframes caret{0%{opacity:1}50%{opacity:0}}
/* decision card (real buttons) above the composer, amber left edge */
.w-dec{position:absolute;left:424px;bottom:78px;width:560px;padding:12px 14px 12px 16px;border-radius:12px;background:#1d2622;border:1px solid #33403a;
  box-shadow:inset 3px 0 0 #e7ad45,0 18px 40px -18px rgba(0,0,0,.6);transition:opacity .38s var(--ease-out),transform .38s var(--ease-out),visibility 0s}
.w-dec[data-on="0"]{opacity:0;transform:translateY(16px);visibility:hidden;pointer-events:none;transition:opacity .2s,transform .2s,visibility 0s .2s}
.dc-h{display:flex;align-items:center;gap:10px}
.dc-pill{font-size:12px;font-weight:600;padding:3px 8px;border-radius:6px;color:#e7ad45;background:rgba(231,173,69,.16)}
.dc-who{display:flex;align-items:center;gap:6px;font-weight:600;font-size:13px}
.dc-who svg{width:14px;height:14px;color:#c9d4cb}
.dc-q{margin-top:8px!important;font-size:14px;font-weight:600}
.dc-d{margin-top:3px!important;font-size:12.5px;color:#9aa79f;display:flex;gap:10px;align-items:baseline}
.dc-d code{font:400 11.5px var(--mono);color:#c9d4cb;background:#26302b;padding:2px 6px;border-radius:5px}
.dc-o{display:flex;gap:8px;margin-top:10px}
.dc-b{display:flex;align-items:center;gap:8px;min-height:32px;padding:4px 14px 4px 6px;border-radius:8px;border:1px solid #36433d;background:#232d28;color:#e8eee5;
  font:500 13px/1 var(--sys);cursor:pointer;transition:border-color .14s,background-color .14s}
.dc-b span{display:grid;place-items:center;width:20px;height:20px;border-radius:5px;background:#2f3a35;font-size:11.5px;color:#c9d4cb}
.dc-b:hover{border-color:#9cc3ab;background:#26312c}
.dc-b:focus-visible,.cg-a button:focus-visible{outline:2px solid #9cc3ab;outline-offset:3px;border-radius:8px}
/* Changes view */
.w-chg{position:absolute;right:12px;top:56px;bottom:12px;width:380px;padding:14px;border-radius:14px;background:#171f1b;border:1px solid #2f3a35;
  box-shadow:0 30px 60px -30px rgba(0,0,0,.7);display:flex;flex-direction:column;gap:12px;transition:opacity .48s var(--ease-out),transform .48s var(--ease-out),visibility 0s}
.w-chg[data-on="0"]{opacity:0;transform:translateX(40px);visibility:hidden;pointer-events:none;transition:opacity .3s,transform .3s,visibility 0s .3s}
.cg-h{display:flex;align-items:center;gap:6px;font:400 12px var(--mono);color:#9aa79f;white-space:nowrap}
.cg-h i{font-style:normal;color:#56625c}
.cg-br{color:#e8eee5}
.cg-n{color:#76837c}
.cg-f{list-style:none;margin:0;padding:0;font:400 12px/1 var(--mono);color:#9aa79f}
.cg-f li{padding:7px 8px;border-radius:6px}
.cg-f li.on{background:#222c27;color:#e8eee5}
.cg-d{list-style:none;margin:0;padding:8px 0;border-radius:8px;background:#121915;border:1px solid #26302b;font:400 11.5px/1.75 var(--mono);color:#a9b5ad;overflow:hidden}
.cg-d li{padding:0 10px;white-space:pre}
.cg-d .x{color:#76837c}
.cg-d .add{background:rgba(156,195,171,.09);color:#cfe2d6}
.cg-d .add::before{content:"+ ";color:#9cc3ab}
.cg-d .del{background:rgba(232,238,229,.05);color:#8d9a92;text-decoration:line-through;text-decoration-color:rgba(232,238,229,.25)}
.cg-d .del::before{content:"- "}
.cg-d .sel{box-shadow:inset 2px 0 0 #9cc3ab}
.cg-ask{align-self:flex-start;margin-top:-4px;font-size:11.5px;padding:4px 9px;border-radius:7px;background:#26302b;color:#c9d4cb}
.cg-a{display:flex;gap:8px;margin-top:auto}
.cg-a button{min-height:34px;padding:0 14px;border-radius:9px;font:600 13px/1 var(--sys);cursor:pointer}
.cg-m{border:1px solid #e8eee5;background:#e8eee5;color:#131917}
.cg-m:hover{background:#fff}
.cg-x{border:1px solid #3a4741;background:transparent;color:#e8eee5}
.cg-x:hover{border-color:#9cc3ab}
.w-chg .cg-d li{transition:opacity .2s}
.win-cap{display:flex;align-items:center;justify-content:center;gap:16px;min-height:44px;margin:14px 0 0}
.win-cap p{margin:0;font:400 12px/1.5 var(--mono);color:var(--dim)}
.w-replay{min-height:44px;padding:0 12px;background:none;border:0;border-radius:8px;color:var(--lichen);font:500 12px var(--mono);letter-spacing:.06em;text-transform:uppercase;cursor:pointer;
  text-decoration:underline;text-decoration-color:rgba(156,195,171,.4);text-underline-offset:4px}
.w-replay:hover{color:var(--chalk)}
.w-emb{position:absolute;left:-52px;top:-108px;width:160px;height:140px;pointer-events:none}
/* summon sweep: a conic edge ring that turns once (700 ms) when the window appears or a card lands */
@property --sa{syntax:"<angle>";inherits:false;initial-value:0deg}
.win-frame::before,.cd.sw::before{content:"";position:absolute;inset:-1px;border-radius:inherit;padding:1px;pointer-events:none;z-index:2;opacity:0;
  background:conic-gradient(from var(--sa),rgba(156,195,171,0) 0 62%,rgba(156,195,171,.85) 88%,#e8eee5 94%,rgba(156,195,171,0) 100%);
  -webkit-mask:linear-gradient(#000 0 0) content-box,linear-gradient(#000 0 0);-webkit-mask-composite:xor;mask-composite:exclude}
.win-frame::before{padding:1.5px}
@media (prefers-reduced-motion:no-preference){
  .js .win-frame{animation:rise .8s var(--ease-out) .3s backwards}
  .js .win-frame::before{animation:sweep .7s linear .3s}
  .cd.sw::before{animation:sweep .7s linear}
  .lk.busy .lk-d{opacity:1;animation:travel 4s linear infinite}
  .lk.busy:nth-of-type(odd) .lk-d{animation-delay:-1.6s}
  [data-st="work"] .pl::before,.dv .pl::before{animation:breathe 2.4s ease-in-out infinite}
  [data-st="start"] .pl::before{animation:caret 1.125s steps(1,end) infinite}
  .w-np.pulse{animation:pulse .5s var(--ease-out) 2}
  .w-dec[data-on="1"]{animation:edge 3s ease-in-out infinite}
  .ds-ptr{animation:pointer 9s ease-in-out infinite}
  .win-frame.off *{animation-play-state:paused!important}
}
.paused *{animation-play-state:paused!important}
@media (prefers-reduced-motion:reduce){.win *,.win *::before{transition:none!important;animation:none!important}}
@keyframes rise{from{opacity:0;translate:0 24px}}
@keyframes sweep{0%{--sa:0deg;opacity:1}85%{opacity:1}100%{--sa:360deg;opacity:0}}
@keyframes travel{0%{stroke-dashoffset:6}40%,100%{stroke-dashoffset:-100}}
@keyframes breathe{0%,100%{opacity:1}50%{opacity:.55}}
@keyframes pulse{50%{transform:scale(1.06)}}
@keyframes edge{0%,100%{box-shadow:inset 3px 0 0 #e7ad45,0 18px 40px -18px rgba(0,0,0,.6)}50%{box-shadow:inset 3px 0 0 rgba(231,173,69,.5),0 18px 40px -18px rgba(0,0,0,.6)}}
@keyframes pointer{0%,100%{transform:translate(118px,78px)}22%{transform:translate(92px,60px)}40%{transform:translate(96px,98px)}58%{transform:translate(100px,98px)}78%{transform:translate(140px,46px)}}

/* ---------- triptych ----------
   .tri is the stage: exactly the centre window's width (--fw) and height. The two side windows hang off its edges,
   mirror images of each other. Every knob lives on .tri and drives both sides at once:
     --gut   room kept on each side of the centre window for a side window (sets --fw)
     --sw    side window width, as a % of the centre window's width
     --tuck  how far a side window reaches in behind the centre window, as a % of the centre window's width
     --tilt  inward turn: left = rotateY(+tilt), right = rotateY(-tilt)
     --ss    side scale; --sz how far back (translateZ); --fade width of the outer-edge mask fade
   Perspective (1800px) sits on .tri-wings, not on .tri, so the centre window is never under a 3D context and its
   viewport-fixed rim light keeps working. Stacking inside .tri: pool (-1) < side windows (0) < links (1) < window (2).
   Side windows are decorative (aria-hidden), built in container units (cqw = 1% of the side window's width). */
.tri{--dw:1200;--gut:clamp(150px,16vw,230px);--fw:min(100vw - 2 * var(--gut),1000px);
  --sw:38%;--tuck:10%;--tilt:14deg;--ss:.82;--sz:-40px;--fade:26%;
  position:relative;isolation:isolate;flex:none;width:var(--fw)}
/* the one dim pool of lichen light behind the centre window */
.tri::before{content:"";position:absolute;left:-8%;right:-8%;top:-10%;bottom:-6%;z-index:-1;pointer-events:none;
  background:radial-gradient(closest-side,rgba(156,195,171,.085),rgba(156,195,171,0))}
.tri-wings{position:absolute;inset:0;z-index:0;perspective:1800px;perspective-origin:50% 40%;pointer-events:none}
.tri-side{position:absolute;top:9%;height:52%;width:var(--sw);container-type:inline-size;pointer-events:auto;
  transform:translateZ(var(--sz)) rotateY(var(--ry)) scale(var(--ss))}
.tri-l{--ry:var(--tilt);--jc:flex-start;left:calc(var(--tuck) - var(--sw));transform-origin:100% 50%;
  -webkit-mask-image:linear-gradient(to right,transparent,rgba(0,0,0,.4) calc(var(--fade) * .4),#000 var(--fade));
  mask-image:linear-gradient(to right,transparent,rgba(0,0,0,.4) calc(var(--fade) * .4),#000 var(--fade))}
.tri-r{--ry:calc(var(--tilt) * -1);--jc:flex-end;right:calc(var(--tuck) - var(--sw));transform-origin:0 50%;
  -webkit-mask-image:linear-gradient(to left,transparent,rgba(0,0,0,.4) calc(var(--fade) * .4),#000 var(--fade));
  mask-image:linear-gradient(to left,transparent,rgba(0,0,0,.4) calc(var(--fade) * .4),#000 var(--fade))}
/* the window: dimmed to about 70% with a darker moss tint on top; a faint lichen rim */
.tri-win{position:relative;height:100%;display:flex;flex-direction:column;overflow:hidden;border-radius:3.6cqw;background:#121815;
  border:1px solid rgba(156,195,171,.16);box-shadow:0 40px 80px -40px rgba(0,0,0,.75);
  font-family:var(--sys);text-align:left;color:#e8eee5;-webkit-font-smoothing:antialiased;-webkit-user-select:none;user-select:none;
  filter:brightness(.74) saturate(.85);transition:filter .3s var(--ease-out),border-color .3s}
.tri-win::after{content:"";position:absolute;inset:0;border-radius:inherit;pointer-events:none;background:rgba(9,17,14,.24);transition:opacity .3s}
.tri-bar{flex:none;height:8cqw;display:flex;align-items:center;justify-content:var(--jc);padding:0 22cqw;border-bottom:1px solid #222b27}
.tri-dots{display:flex;gap:1.6cqw}
.tri-dots i{width:2.4cqw;height:2.4cqw;border-radius:50%;background:#2d3833}
.tri-body{flex:1;min-height:0;display:flex;flex-direction:column;gap:3cqw;padding:4cqw 6cqw 6cqw;
  background:radial-gradient(circle,rgba(232,238,229,.05) 1px,transparent 1.3px) 0 0/5cqw 5cqw}
/* the card header sits in the part of the window that shows (outer side, past the fade) */
.tri-h{flex:none;display:flex;align-items:center;justify-content:var(--jc);gap:2.4cqw;padding:0 16cqw;min-width:0}
.tri-h b{min-width:0;font-weight:600;font-size:3.3cqw;line-height:1.25;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.tri-pl{flex:none;display:inline-flex;align-items:center;gap:1.3cqw;padding:1cqw 2cqw;border-radius:1.5cqw;font-size:3cqw;font-weight:550;line-height:1;
  white-space:nowrap;color:#9cc3ab;background:rgba(156,195,171,.14)}
.tri-pl::before{content:"";width:1.4cqw;height:1.4cqw;border-radius:50%;background:currentColor;flex:none}
/* the device screen: 60cqw wide, on the outer side; its content is centred where the window is not tucked */
.tri-scr{position:relative;flex:1;min-height:0;border-radius:2cqw;overflow:hidden;background:#101714;border:1px solid #26302b}
.tri-l .tri-scr{margin-right:28cqw}
.tri-r .tri-scr{margin-left:28cqw}
.tri-sbar{position:absolute;left:0;right:0;top:0;height:2.6cqw;background:#18211d}
.tri-br{position:absolute;left:4cqw;right:4cqw;top:5.5cqw;bottom:4cqw;border-radius:1.4cqw;background:#1a2420;border:1px solid #2a352f;overflow:hidden}
.tri-tab{position:absolute;left:2cqw;top:1.4cqw;width:12cqw;height:1.8cqw;border-radius:.6cqw;background:#2b3631}
.tri-url{position:absolute;left:2cqw;right:2cqw;top:4.4cqw;height:2.2cqw;border-radius:1.1cqw;background:#232d28}
.tri-pg{position:absolute;left:69%;top:50%;width:20cqw;translate:-50% -40%;display:flex;flex-direction:column;align-items:center;gap:1.6cqw}
.tri-o{width:4cqw;height:4cqw;border-radius:50%;background:#2f3a35}
.tri-f{width:100%;height:3cqw;border-radius:1cqw;background:#222c27;border:1px solid #303b36}
.tri-b{width:100%;height:3.2cqw;border-radius:1cqw;background:#9cc3ab;opacity:.85}
.tri-ptr{position:absolute;left:42cqw;top:calc(50% + 7.75cqw);width:2.6cqw;height:3.5cqw;fill:#e8eee5;stroke:#101714;stroke-width:1}
.tri-ph{position:absolute;left:33.3%;top:50%;width:22cqw;height:44cqw;translate:-50% -50%;border-radius:3cqw;background:#0c110f;border:1px solid #2c3631;padding:1.6cqw 1.4cqw}
.tri-phs{height:100%;border-radius:2cqw;background:#151d19;display:flex;flex-direction:column;align-items:center;gap:1.4cqw;padding:6cqw 2cqw 0}
.tri-phs .tri-o{width:3.4cqw;height:3.4cqw;border-radius:1cqw;margin-bottom:1cqw}
.tri-phs .tri-f{height:2.4cqw}
.tri-phs .tri-b{height:2.6cqw}
/* link lines (non-scaling strokes, so the stretched viewBox keeps 1.5px lines and round 5px end dots) */
.tri-links{position:absolute;left:-30%;top:0;width:160%;height:100%;z-index:1;overflow:visible;pointer-events:none}
.tl-p{fill:none;stroke:rgba(156,195,171,.5);stroke-width:1.5;vector-effect:non-scaling-stroke}
.tl-d{fill:none;stroke:#9cc3ab;stroke-width:5;stroke-linecap:round;vector-effect:non-scaling-stroke;opacity:.85}
/* hover (fine pointers): the side window comes forward a few px, brighter, with a brighter rim */
@media (hover:hover) and (pointer:fine){
  .tri-side{transition:translate .35s var(--ease-out)}
  .tri-side:hover{translate:0 0 18px}
  .tri-side:hover .tri-win{filter:brightness(.92) saturate(.95);border-color:rgba(156,195,171,.5)}
  .tri-side:hover .tri-win::after{opacity:.35}
}
/* entrance, once: the side windows slide out from behind the centre window (transform + opacity), then rest.
   No JS or reduced motion: the composed final state, since these rules need .js and motion. */
@media (prefers-reduced-motion:no-preference){
  .js .tri-l{animation:tri-l .8s var(--ease-out) .45s backwards}
  .js .tri-r{animation:tri-r .8s var(--ease-out) .45s backwards}
  .js .tri-links{animation:tri-fade .5s ease 1.15s backwards}
}
@keyframes tri-l{from{opacity:0;translate:32% 0}}
@keyframes tri-r{from{opacity:0;translate:-32% 0}}
@keyframes tri-fade{from{opacity:0}}
/* <=900: the side windows shrink and tuck further in, so only their outer slivers show; no link lines */
@media (max-width:900px){
  .tri{--gut:clamp(28px,7vw,64px);--fw:min(100vw - 2 * var(--gut),992px);--sw:32%;--tuck:18%;--ss:.76;--fade:10%}
  .tri-links{display:none}
}
/* portrait window (under 760): side windows keep a landscape shape instead of stretching to the tall window */
@media (max-width:759px){
  .tri{--fw:min(100vw - 2 * var(--gut),420px)}
  .tri-side{top:6%;height:auto;aspect-ratio:100/80}
}
/* <=600: the centre window alone */
@media (max-width:600px){
  .tri{--gut:16px}
  .tri-wings,.tri-links{display:none}
  .tri::before{left:-4%;right:-4%}
  .hero h1{font-size:clamp(32px,9.4vw,44px)}
}

/* compact window (760 to 999 px): no sidebar, the canvas alone at 992 x 750 */
@media (max-width:999px){
  .tri{--dw:992}
  .win-frame{aspect-ratio:992/700}
  @supports (width:calc(tan(atan2(1px,1px)) * 1px)){.win-frame{--ws:tan(atan2(var(--fw),992px))}}
  .win{width:992px}
  .w-side{display:none}
  .w-dots.m{display:flex}
  .w-dec{left:216px}
}
/* portrait crop (under 760 px): top bar with the pill, the lead and two helpers, the decision, the composer */
@media (max-width:759px){
  .tri{--dw:360}
  .win-frame{aspect-ratio:360/500}
  @supports (width:calc(tan(atan2(1px,1px)) * 1px)){.win-frame{--ws:tan(atan2(var(--fw),360px))}}
  .win{width:360px;height:500px;border-radius:18px}
  .w-bar{height:40px;padding:0 12px;gap:8px}
  .w-dots i{width:9px;height:9px}.w-dots{gap:6px}
  .w-seg,.w-sf{display:none}
  .w-title{justify-content:flex-start;font-size:12px}
  .w-title span,.w-title i{display:none}
  .cv{top:40px}
  .lks.d,.c-cx,.c-desk,.c-phone{display:none}
  .lks.m{display:block;width:360px;height:460px}
  .c-lead{--x:54px;--y:12px;--h:100px;padding:10px 12px;gap:5px}
  .cd.h{--w:160px;--h:96px;padding:10px;gap:6px}
  .c-oc[data-st="needs"]{--h:96px}
  .cdq{display:none!important}
  .cd.h .nr{flex-wrap:wrap;row-gap:6px}
  .c-cc{--x:12px;--y:154px;--tx:88px;--ty:-142px}
  .c-oc{--x:188px;--y:154px;--tx:-88px;--ty:-142px}
  .cd.h .hd{grid-template-columns:24px minmax(0,1fr);gap:8px;align-items:start}
  .cd.h .tl{width:24px;height:24px}
  .cd.h .nm small,.cd.h .tk{display:none}
  .w-comp{left:12px;right:12px;width:auto;bottom:12px;height:44px;border-radius:12px}
  .w-chip{display:none}
  .w-dec{left:12px;width:336px;bottom:64px;padding:10px 12px 10px 14px}
  .dc-d{gap:8px;font-size:12px}
  .dc-o{margin-top:8px}
  .w-chg{left:8px;right:8px;width:auto;top:48px;bottom:8px;padding:12px;gap:10px}
  .cg-f li:nth-child(n+2){display:none}
  .cg-d{font-size:10.5px}
  .w-emb{left:-54px}
  .win-cap{flex-direction:column;gap:0}
  .win-cap p{max-width:30em;text-wrap:balance}
}

/* story: finished circle by default, scroll-driven under .scrolly */
.story{max-width:1320px;margin:0 auto;padding:0 32px;display:grid;grid-template-columns:minmax(0,1.1fr) minmax(0,1fr);gap:56px;align-items:start}
.stage{position:relative;display:flex;align-items:center;justify-content:center;padding:40px 0}
.scrolly .stage{position:sticky;top:0;height:100vh;padding:0}
.js:not(.scrolly) .stage{position:sticky;top:0}
.ring-box{position:relative;width:min(100%,78vh);aspect-ratio:1;transform-origin:50% 50%}
.scrolly .ring-box{transform:scale(calc(.18 + .82 * var(--e)));will-change:transform}
.ring-box svg{position:absolute;inset:0;width:100%;height:100%;overflow:visible}
.guide{fill:none;stroke:#3d544a;stroke-width:.25;stroke-dasharray:.6 1.2}
.ring{fill:none;stroke:var(--lichen);stroke-width:.45;stroke-linecap:round;stroke-dasharray:1;stroke-dashoffset:0;transform:rotate(-90deg);transform-origin:50px 50px}
.ring2{fill:none;stroke:var(--line);stroke-width:.25}
.spoke{stroke:var(--lichen);stroke-width:.22;opacity:.55;stroke-dasharray:.8 .8}
.tick{stroke:var(--lichen);stroke-width:.35}
.figure{position:absolute;left:50%;top:50%;width:26%;height:auto;transform:translate(-50%,-56%)}
.lead-tag{position:absolute;left:50%;top:70%;transform:translate(-50%,-50%);background:var(--bg)}
.node{position:absolute;left:calc(50% + var(--r) * var(--x));top:calc(50% + var(--r) * var(--y));transform:translate(-50%,-50%);
  background:var(--panel);border:1px solid var(--line);border-radius:10px;padding:9px 12px;min-width:132px;text-align:left}
.node b{display:block;font:500 14px/1.25 var(--body);margin-bottom:6px;white-space:nowrap}
.node b small{font:400 11px var(--mono);color:var(--dim);margin-left:5px}
.chip{display:inline-flex;align-items:center;gap:6px;font:500 11px/1 var(--mono);padding:4px 8px;border-radius:99px;border:1px solid var(--line);white-space:nowrap}
.chip::before{content:"";width:6px;height:6px;border-radius:50%;background:currentColor}
.chip.working{color:var(--lichen)}
.chip.done{color:var(--chalk)}
.chip.parked{color:var(--dim);border-style:dashed}
.chip.needs{background:var(--amber);border-color:var(--amber);color:#21170a}
.chip.needs::before{background:#21170a}
.mini{display:block;width:100%;height:36px;margin-bottom:7px;border:1px solid var(--line);border-radius:4px;background:#0c1512 linear-gradient(#22332b,#22332b) 6px 7px/50% 3px no-repeat}
.mini.phone{width:24px;height:40px;border-radius:5px;margin:0 auto 7px;background:#0c1512 linear-gradient(#22332b,#22332b) 4px 8px/14px 3px no-repeat}
.btns{display:flex;gap:6px}
.btns span{font:500 11px/1 var(--mono);padding:5px 8px;border-radius:6px;border:1px solid var(--line);color:var(--chalk)}
.btns span:first-child{background:var(--lichen);border-color:var(--lichen);color:var(--bg)}
.n-c1{--x:-.819;--y:-.574}.n-c2{--x:0;--y:-1}.n-c3{--x:.819;--y:-.574}
.n-m1{--x:-.766;--y:.643}.n-m2{--x:.766;--y:.643}.n-h{--x:-1;--y:0}.n-x{--x:1;--y:0}
.n-x{border-style:dashed}
.c3-needs{display:none}
.legend{display:none}

/* stepped reveal, only when scroll-driven; box classes s1..s5 are cumulative */
.scrolly [data-at]{opacity:0;transition:opacity .6s ease,transform .6s cubic-bezier(.2,.8,.2,1)}
.scrolly .node[data-at]{transform:translate(-50%,-50%) scale(.85)}
.scrolly .s1 [data-at="1"],.scrolly .s2 [data-at="2"],.scrolly .s3 [data-at="3"],.scrolly .s5 [data-at="5"]{opacity:1}
.scrolly .s2 .node[data-at="2"],.scrolly .s3 .node[data-at="3"],.scrolly .s5 .node[data-at="5"]{transform:translate(-50%,-50%)}
.scrolly .spoke[data-at]{opacity:0}
.scrolly .s2 .spoke[data-at="2"],.scrolly .s3 .spoke[data-at="3"],.scrolly .s5 .spoke[data-at="5"]{opacity:.55}
.scrolly .s4 .c3-work{display:none}
.scrolly .s4 .c3-needs{display:inline-flex}
.scrolly .s4 .n-c3{border-color:var(--amber)}
html:not(.scrolly) .c3-work{display:none}
html:not(.scrolly) .c3-needs{display:inline-flex}
html:not(.scrolly) .n-c3{border-color:var(--amber)}
.preview *{transition:none!important}

/* chapters */
.chapters{padding:0 0 12vh}
.scrolly .chapters{padding-top:22vh}
.ch{max-width:520px;padding:48px 0}
.scrolly .ch{min-height:92vh;display:flex;flex-direction:column;justify-content:center;padding:40px 0}
.ch h3{font:300 clamp(30px,3vw,42px)/1.12 var(--head);letter-spacing:-.015em;margin:0 0 18px;text-wrap:balance}
.ch p{margin:0 0 14px;color:var(--ink);max-width:34em}
.ch .pull{font:300 clamp(26px,2.5vw,34px)/1.25 var(--head);color:var(--chalk);letter-spacing:-.01em;padding-left:22px;border-left:1px solid var(--lichen);text-wrap:balance}
.pill-inline{display:inline-block;background:var(--amber);color:#21170a;font:500 13px/1 var(--mono);padding:4px 8px;border-radius:99px;vertical-align:2px}
.story-sec{border-top:1px solid var(--line);max-width:1320px;margin:0 auto}
.story-title{text-align:center;padding:120px 32px 0;margin:0 auto}


/* the prose sections: calm, centered or split, hairline between each */
.sec{max-width:1320px;margin:0 auto;padding:128px 32px;border-top:1px solid var(--line)}
.hero+.sec{margin-top:96px}
.h2{font:300 clamp(34px,4vw,54px)/1.1 var(--head);letter-spacing:-.02em;margin:0 0 28px;text-wrap:balance}
.prose{max-width:36em}
.prose p{margin:0 0 18px;color:var(--ink)}
.prose p:last-child{margin-bottom:0}
.strong{color:var(--chalk);font-weight:600}
.intro{text-align:center}
.intro .h2,.intro .prose{margin-left:auto;margin-right:auto}
.intro .h2{max-width:16em;margin-bottom:40px}
.intro .prose p,.final .prose p,.fine{text-wrap:balance}
.ch .pull span{display:inline-block}
.intro .prose p.strong{font:400 clamp(24px,2.4vw,30px)/1.3 var(--head);margin:44px 0 12px;letter-spacing:-.01em}

.sec-head{max-width:38em;margin:0 0 56px}
.sec-head .h2{margin-bottom:16px}
.sec-head p{margin:0;color:var(--ink)}
.mode-grid{display:grid;grid-template-columns:minmax(0,1.5fr) minmax(0,1fr);gap:28px;align-items:start}
.mode{border-radius:18px;padding:40px 40px 36px;position:relative}
.mode h3{font:300 clamp(28px,2.6vw,36px)/1.15 var(--head);margin:0 0 14px;letter-spacing:-.01em}
.mode p{margin:0 0 12px;color:var(--ink)}
.mode .strong{color:var(--chalk);font-size:19px}
.mode ul{list-style:none;margin:24px 0 28px;padding:0}
.mode li{padding:11px 0 11px 22px;border-top:1px solid var(--line);color:var(--ink);position:relative}
.mode li:last-child{border-bottom:1px solid var(--line)}
.mode li::before{content:"";position:absolute;left:2px;top:22px;width:7px;height:7px;border-radius:50%;background:var(--lichen)}
.more{display:inline-block;text-decoration:none;font-weight:500;color:var(--chalk);border-bottom:1px solid var(--lichen);padding-bottom:2px}
.more:hover{color:#fff;border-color:var(--chalk)}
.mode-dev{background:var(--panel);border:1px solid #2f463c;box-shadow:inset 0 1px 0 #24382f}
.mode-creative{border:1px dashed var(--line-strong);background:transparent;padding:32px 32px 30px}
.mode-creative h3,.mode-creative .strong{color:var(--ink)}
.mode-creative p{color:var(--dim)}
.mode-agents{margin-top:20px!important;padding-top:16px;border-top:1px solid var(--line);color:var(--lichen)!important;font:300 20px/1.35 var(--head)}
/* Everything connected: a numbered hairline list in two columns, not boxes */
.feat-list{list-style:none;margin:48px 0 0;padding:0;display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:0 64px;counter-reset:f}
.feat-list li{position:relative;padding:28px 0 32px 56px;border-top:1px solid var(--line);counter-increment:f}
.feat-list li::before{content:"0" counter(f);position:absolute;left:0;top:32px;font:500 12px/1 var(--mono);letter-spacing:.1em;color:var(--lichen)}
.feat-list h3{font:500 20px/1.25 var(--head);letter-spacing:-.01em;margin:0 0 10px;color:var(--chalk)}
.feat-list p{margin:0;color:var(--ink);max-width:34em}
.feats .h2{max-width:14em}
.notai .big{font:300 clamp(26px,2.6vw,36px)/1.2 var(--head);letter-spacing:-.01em;color:var(--chalk);margin-top:32px}
.made{margin:40px 0 0;font:300 22px/1.3 var(--head);color:var(--chalk)}
.tag{display:inline-block;margin:0 0 18px!important;font:500 12px/1 var(--mono);letter-spacing:.02em;color:var(--ink)!important;border:1px dashed var(--dim);border-radius:99px;padding:6px 10px}

.split{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1.1fr);gap:24px 64px;align-items:start}
.split .h2{max-width:11em}


/* final + footer */
.final{text-align:center;display:flex;flex-direction:column;align-items:center;padding-top:136px;padding-bottom:96px}
.dl-mark{width:72px;height:72px;border-radius:17px;margin-bottom:28px}
.final h2{font:300 clamp(48px,7vw,96px)/1.04 var(--head);margin:0 0 26px;letter-spacing:-.03em}
.final .prose{margin:0 auto 38px;max-width:34em}
.fine{margin:12px 0 0;font:500 12px/1.5 var(--mono);letter-spacing:.04em;color:var(--dim);max-width:36em}
.foot{max-width:1320px;margin:0 auto;padding:26px 32px 44px;display:flex;justify-content:space-between;gap:10px 24px;flex-wrap:wrap;font:400 13px var(--mono);color:var(--dim);border-top:1px solid var(--line)}
.foot a{color:var(--ink)}
.foot a:hover{color:var(--chalk)}

/* page rim light: one lamp (--lx/--ly, viewport px; script.js glides it after the pointer or drifts it) catches
   only the edges of surfaces. Each lit edge is a 1px ring (pseudo-element, border-only mask) painted with the same
   viewport-fixed gradient, so panels light up as they pass under the lamp. Defaults = the still, no-JS lamp. */
:root{--lx:30vw;--ly:20vh;--lamp:radial-gradient(circle 280px at var(--lx) var(--ly),#9cc3ab,rgba(156,195,171,.55) 35%,rgba(156,195,171,.14) 70%,rgba(156,195,171,0))}
body::before{content:"";position:fixed;left:0;top:0;width:1200px;height:1200px;margin:-600px 0 0 -600px;z-index:-1;pointer-events:none;
  transform:translate(var(--lx),var(--ly));background:radial-gradient(closest-side,rgba(156,195,171,.055),rgba(156,195,171,.02) 55%,rgba(156,195,171,0))}
.cta,.ghost,.nav-pill,.sec,.story-sec,.foot{position:relative}
.cta::after,.ghost::after,.nav-pill::after,.mode::after,.node::after,.ring-box::after,.win-frame::after{content:"";position:absolute;inset:-1px;border-radius:inherit;padding:1px;pointer-events:none;
  background:var(--lamp) fixed;-webkit-mask:linear-gradient(#000 0 0) content-box,linear-gradient(#000 0 0);-webkit-mask-composite:xor;mask-composite:exclude}
.cta::after{inset:-2px;padding:1.5px;opacity:.8}
.ghost::after,.nav-pill::after{opacity:.8}
.n-x::after,.mode-creative::after{opacity:.45}
/* the window edge: full strength, a wider lamp (360 px) */
.win-frame::after{z-index:1;background:radial-gradient(circle 360px at var(--lx) var(--ly),#9cc3ab,rgba(156,195,171,.55) 35%,rgba(156,195,171,.14) 70%,rgba(156,195,171,0)) fixed}
/* cards inside the window sit under the window's scale, where a fixed background turns local, so script.js hands
   the window the lamp in its own design px (--wx/--wy on .cv); each card knows its own --x/--y. Half strength,
   160 px reach, and never on an amber "Needs you" card. */
.cv{--wx:-999px;--wy:-999px}
.cd::after{content:"";position:absolute;inset:-1px;border-radius:inherit;padding:1px;pointer-events:none;opacity:.5;
  background:radial-gradient(circle 160px at calc(var(--wx) - var(--x)) calc(var(--wy) - var(--y)),#9cc3ab,rgba(156,195,171,.4) 45%,rgba(156,195,171,0));
  -webkit-mask:linear-gradient(#000 0 0) content-box,linear-gradient(#000 0 0);-webkit-mask-composite:xor;mask-composite:exclude}
.cd[data-st="needs"]::after{display:none}
.scrolly .s4 .n-c3::after,html:not(.scrolly) .n-c3::after{display:none} /* amber "needs you" card stays amber */
/* every box in the story circle sits under a transform, which turns a fixed background into a local one, so there
   the lamp is mapped into the circle's own space: --cx/--cy = circle centre on screen and --S = its unscaled size
   (script.js, from cached geometry), --k = its current scale */
.ring-box{--cx:25vw;--cy:50vh;--S:600px;--k:calc(.18 + .82 * var(--e))}
.node::after,.ring-box::after{background:radial-gradient(circle calc(280px / var(--k)) at calc(50% + (var(--lx) - var(--cx)) / var(--k) - var(--S) * .38 * var(--x,0)) calc(50% + (var(--ly) - var(--cy)) / var(--k) - var(--S) * .38 * var(--y,0)),#9cc3ab,rgba(156,195,171,.55) 35%,rgba(156,195,171,.14) 70%,rgba(156,195,171,0))}
.ring-box::after{inset:6%;border-radius:50%;opacity:0;transition:opacity .6s}
html:not(.scrolly) .ring-box::after,.scrolly .s5::after{opacity:.75}
.sec::before,.story-sec::before,.foot::before{content:"";position:absolute;left:0;right:0;top:-1px;height:1px;pointer-events:none;background:var(--lamp) fixed;opacity:.6}
:focus-visible::after{opacity:0!important}

/* phones and narrow tablets */
@media (max-width:900px){
  body{font-size:17px}
  .nav{padding:0 16px}
  .nav ul{gap:16px}
  .hero{padding:20px 16px 0}
  .sub{font-size:17px}
  .story{grid-template-columns:1fr;gap:0;padding:0 16px}
  /* the circle becomes a compact band: ring left, what was just added right */
  .stage,.scrolly .stage{display:flex;gap:16px;justify-content:flex-start;align-items:center;padding:14px 0;background:var(--bg);border-bottom:1px solid var(--line);z-index:3}
  .scrolly .stage{height:auto;max-height:28vh;margin:0 -16px;padding:12px 16px}
  html:not(.scrolly) .stage{position:relative;flex-direction:column;align-items:center;padding:28px 0}
  .ring-box{flex:none;width:min(72vw,340px)}
  .scrolly .ring-box{width:min(calc(28vh - 24px),46vw)}
  .node{min-width:0;width:14px;height:14px;padding:0;border-radius:50%;background:var(--lichen);border:2px solid var(--bg)}
  .node>*{display:none!important}
  .n-c2{background:var(--chalk)}
  .n-h{background:var(--dim)}
  .n-x{background:transparent;border:2px dashed var(--lichen)}
  .scrolly .s4 .n-c3,html:not(.scrolly) .n-c3{background:var(--amber);border-color:var(--bg)}
  .lead-tag{display:none}
  .node::after,.ring-box::after{display:none}
  .figure{width:34%}
  .legend{display:flex;flex-direction:column;gap:8px;list-style:none;margin:0;padding:0;flex:1;min-width:0}
  html:not(.scrolly) .legend{width:100%;max-width:420px;margin-top:22px}
  .legend li{display:flex;flex-wrap:wrap;align-items:baseline;justify-content:space-between;gap:2px 10px;font:500 14px/1.3 var(--body);border-bottom:1px solid var(--line);padding-bottom:6px}
  .legend .st{font:500 11px/1.3 var(--mono);font-style:normal;color:var(--lichen);white-space:nowrap}
  .legend .st.done{color:var(--chalk)}.legend .st.parked{color:var(--dim)}.legend .st.needs{color:var(--amber)}
  .scrolly .legend li{display:none}
  .scrolly [data-cur="0"]~.legend [data-only="0"],.scrolly [data-cur="1"]~.legend [data-only="1"],.scrolly [data-cur="2"]~.legend [data-only="2"],
  .scrolly [data-cur="3"]~.legend [data-only="3"],.scrolly [data-cur="4"]~.legend [data-only="4"],.scrolly [data-cur="5"]~.legend [data-only="5"]{display:flex}
  html:not(.scrolly) .legend [data-only="0"],html:not(.scrolly) .legend [data-only="1"]{display:none}
  .chapters{padding-bottom:10vh}
  .scrolly .chapters{padding:14vh 0 0}
  .ch{max-width:none;padding:36px 0}
  .scrolly .ch{min-height:64vh}
  .scrolly .ch:last-child{min-height:48vh}
  .sec{padding:84px 16px}
  .hero+.sec{margin-top:64px}
  .story-title{padding:84px 16px 8px}
  .split,.mode-grid,.feat-list{grid-template-columns:1fr}
  .feat-list li{padding-left:44px}
  .mode{padding:28px 22px 26px}
  .sec-head{margin-bottom:36px}
  .final{padding:96px 16px 64px}
  .final .actions{flex-direction:column;align-self:stretch;align-items:center}
  .final .cta{width:100%;max-width:420px}
  .foot{padding:22px 16px 40px}
}
/* phone nav: the mark, the name and the pill only; the links live in the footer */
@media (max-width:759px){
  .nav .nl{display:none}
  .nav-pill{min-height:44px}
  .hero .actions{flex-direction:column;align-self:stretch;align-items:center}
  .hero .cta,.hero .ghost{width:100%;max-width:420px}
}

/* Download buttons are disabled until the app is available */
.cta.is-disabled,.nav-pill.is-disabled{cursor:not-allowed;opacity:.5;pointer-events:none;font-family:inherit}
.cta.is-disabled{background:#16251f;color:var(--ink);border:1px solid #2b3d35}
button.cta,button.nav-pill{appearance:none;-webkit-appearance:none}
