/* ---- tools/page/pieces/fonts.css ---- */
/* The two faces, bundled (latin and latin-ext subsets, woff2), so apps work offline. Both are SIL Open Font
   License 1.1; the licences are in fonts/. Spectral 300, 400, 500, 300 italic, 400 italic; IBM Plex Mono 400, 500, 600.
   On the web you can use the Google Fonts link instead:
   https://fonts.googleapis.com/css2?family=IBM+Plex+Mono:wght@400;500;600&family=Spectral:ital,wght@0,300;0,400;0,500;1,300;1,400&display=swap */
/* latin-ext */
@font-face {
  font-family: "IBM Plex Mono";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("fonts/ibm-plex-mono-400-normal-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
/* latin */
@font-face {
  font-family: "IBM Plex Mono";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("fonts/ibm-plex-mono-400-normal-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
/* latin-ext */
@font-face {
  font-family: "IBM Plex Mono";
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url("fonts/ibm-plex-mono-500-normal-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
/* latin */
@font-face {
  font-family: "IBM Plex Mono";
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url("fonts/ibm-plex-mono-500-normal-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
/* latin-ext */
@font-face {
  font-family: "IBM Plex Mono";
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("fonts/ibm-plex-mono-600-normal-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
/* latin */
@font-face {
  font-family: "IBM Plex Mono";
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("fonts/ibm-plex-mono-600-normal-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
/* latin-ext */
@font-face {
  font-family: "Spectral";
  font-style: italic;
  font-weight: 300;
  font-display: swap;
  src: url("fonts/spectral-300-italic-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
/* latin */
@font-face {
  font-family: "Spectral";
  font-style: italic;
  font-weight: 300;
  font-display: swap;
  src: url("fonts/spectral-300-italic-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
/* latin-ext */
@font-face {
  font-family: "Spectral";
  font-style: normal;
  font-weight: 300;
  font-display: swap;
  src: url("fonts/spectral-300-normal-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
/* latin */
@font-face {
  font-family: "Spectral";
  font-style: normal;
  font-weight: 300;
  font-display: swap;
  src: url("fonts/spectral-300-normal-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
/* latin-ext */
@font-face {
  font-family: "Spectral";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("fonts/spectral-400-normal-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
/* latin */
@font-face {
  font-family: "Spectral";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("fonts/spectral-400-normal-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
/* latin-ext */
@font-face {
  font-family: "Spectral";
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url("fonts/spectral-500-normal-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
/* latin */
@font-face {
  font-family: "Spectral";
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url("fonts/spectral-500-normal-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
/* ---- tools/page/pieces/tokens.css ---- */
/* Generated by design-system/build.mjs from tokens.json. Do not edit; edit tokens.json and rebuild. */

/* Night is the default. Put data-theme="day" on <html> (or any container) for warm sand and ink. */
:root {
  --ground: #0b0d12;
  --surface: #0e1017;
  --surface-raised: #12151d;
  --line: #222632;
  --text: #ebe6da;
  --text-muted: #a7abb9;
  --text-faint: #8a8f9e;
  --ground-glow: #0b0d12;
  --fill: #ebe6da;
  --card: rgba(14, 16, 23, 0.82);
  --card-active: rgba(18, 21, 29, 0.95);
  --veil: transparent;
  --bar: rgba(11, 13, 18, 0.82);
  --gold: #d9b45a;
  --gold-line: rgba(217, 180, 90, 0.45);
  --focus: #5aa8ff;
  --moon: #cfd6e6;
  --status-done: #33d6a8;
  --status-road: #9a85ff;
  --status-open: #8a8f9e;
  --ivory: #ebe6da;
  --ink: #11141c;
  --spectrum-coral: #ff6f61;
  --spectrum-ember: #ff8a5c;
  --spectrum-rose: #ff6fb0;
  --spectrum-pink: #ff5fa2;
  --spectrum-orchid: #d07cff;
  --spectrum-lilac: #b98bff;
  --spectrum-violet: #9a85ff;
  --spectrum-blue: #5aa8ff;
  --spectrum-sky: #4fb8ff;
  --spectrum-cyan: #38cbe8;
  --spectrum-sea: #33d6a8;
  --spectrum-green: #62e07a;
  --font-display: Spectral, "Iowan Old Style", Georgia, serif;
  --font-mono: "IBM Plex Mono", ui-monospace, Menlo, monospace;
  --text-wordmark: 24px;
  --text-hero: clamp(54px, 9vw, 128px);
  --text-display: clamp(40px, 6vw, 84px);
  --text-heading: clamp(32px, 4.4vw, 56px);
  --text-title: 23px;
  --text-lead: clamp(19px, 2vw, 23px);
  --text-body: 18px;
  --text-small: 15px;
  --text-tag: 13px;
  --text-eyebrow: 12px;
  --text-button: 12px;
  --text-label: 11px;
  --text-data: 12px;
  --space-3: 3px;
  --space-5: 5px;
  --space-8: 8px;
  --space-13: 13px;
  --space-21: 21px;
  --space-34: 34px;
  --space-55: 55px;
  --space-89: 89px;
  --radius-none: 0px;
  --radius-hair: 2px;
  --radius-pill: 9999px;
  --radius-circle: 50%;
  --duration-fast: 200ms;
  --duration-base: 300ms;
  --duration-move: 450ms;
  --duration-slow: 600ms;
  --duration-page: 650ms;
  --ease: ease;
  --ease-move: cubic-bezier(0.65, 0, 0.35, 1);
  --max-width: 1280px;
  --column: 560px;
  --prose: 680px;
  --topbar-height: 73px;
  --tap-target: 44px;
  --arc-1: #ff6f61;
  --arc-2: #ff8a5c;
  --arc-3: #d9b45a;
  --arc-4: #62e07a;
  --arc-5: #4fb8ff;
  --arc-6: #9a85ff;
  --arc-7: #d07cff;
  --capacity-1: #d9b45a;
  --capacity-2: #5aa8ff;
  --capacity-3: #33d6a8;
  --capacity-4: #9a85ff;
  --capacity-5: #f08a5d;
  --capacity-6: #e05aa0;
  --spectrum-1: #ff6f61;
  --spectrum-2: #ff8a5c;
  --spectrum-3: #ff6fb0;
  --spectrum-4: #ff5fa2;
  --spectrum-5: #d07cff;
  --spectrum-6: #b98bff;
  --spectrum-7: #9a85ff;
  --spectrum-8: #5aa8ff;
  --spectrum-9: #4fb8ff;
  --spectrum-10: #38cbe8;
  --spectrum-11: #33d6a8;
  --spectrum-12: #62e07a;
  --tactu-1: #D97757;
  --tactu-2: #B0543A;
  --tactu-3: #F0B48E;
  --tactu-4: #2A1A15;
  color-scheme: dark;
}
[data-theme="day"] {
  --ground: #e6d3b3;
  --surface: #ecdcbf;
  --surface-raised: #f0e2c8;
  --line: #cdb38c;
  --text: #2a1d12;
  --text-muted: #5c4532;
  --text-faint: #6e5742;
  --ground-glow: #efe2c9;
  --fill: #2a1d12;
  --card: rgba(240, 226, 200, 0.78);
  --card-active: rgba(240, 226, 200, 0.95);
  --veil: rgba(230, 211, 179, 0.6);
  --bar: rgba(230, 211, 179, 0.82);
  color-scheme: light;
}

/* Reading surfaces keep their own light: night (default), dawn, day (paper). */
.reader {
  --r-bg: #0b0d12;
  --r-text: #ebe6da;
  --r-muted: #a7abb9;
  --r-faint: #8a8f9e;
  --r-line: #222632;
  --r-panel: #12151d;
  --r-size: 20px;
  color-scheme: dark;
}
.reader[data-theme="dawn"] {
  --r-bg: #241e26;
  --r-text: #f3e9de;
  --r-muted: #c9b9b0;
  --r-faint: #a8978f;
  --r-line: #3d3340;
  --r-panel: #2e2630;
}
.reader[data-theme="day"] {
  --r-bg: #f5efe4;
  --r-text: #1d1b19;
  --r-muted: #57514a;
  --r-faint: #7a7268;
  --r-line: #ddd3c4;
  --r-panel: #ece4d6;
  color-scheme: light;
}

@media (prefers-reduced-motion: reduce) {
  :root { --duration-fast: 0ms; --duration-base: 0ms; --duration-move: 0ms; --duration-slow: 0ms; --duration-page: 0ms; }
}
/* ---- tools/page/pieces/components.css ---- */
/* unfold components: the landing's pieces that are pure CSS, without its scroll scenes or the particle field.
   Load tokens.css first. Class names match site/index.html and site/assets/sub.css, so pieces port both ways. */

/* base */
*, *::before, *::after { box-sizing: border-box; }
body { margin: 0; background: var(--ground); color: var(--text); font-family: var(--font-display); font-size: var(--text-body); line-height: 1.6; -webkit-font-smoothing: antialiased; }
h1, h2, h3 { font-family: var(--font-display); font-weight: 300; letter-spacing: -0.025em; margin: 0; text-wrap: balance; }
h1 { font-size: var(--text-display); line-height: 0.98; }
h2 { font-size: var(--text-heading); line-height: 1; }
h3 { font-size: var(--text-title); line-height: 1.2; font-weight: 400; letter-spacing: -0.01em; }
h1 i, h2 i, h3 i { font-style: italic; }
.hero { font-size: var(--text-hero); line-height: 0.92; }
p { margin: 0; color: var(--text-muted); }
a { color: inherit; text-underline-offset: 0.2em; }
.lead { font-size: var(--text-lead); line-height: 1.45; color: var(--text); margin: 0; }
.small { font-size: var(--text-small); line-height: 1.5; color: var(--text-faint); }
a:focus-visible, button:focus-visible, select:focus-visible, input:focus-visible, textarea:focus-visible, [tabindex]:focus-visible { outline: 2px solid var(--focus); outline-offset: 3px; }

/* layout */
.wrap { position: relative; max-width: var(--max-width); margin: 0 auto; padding-inline: max(var(--space-21), env(safe-area-inset-left, 0px)) max(var(--space-21), env(safe-area-inset-right, 0px)); }
.col { max-width: var(--column); display: flex; flex-direction: column; gap: var(--space-21); }
.prose { max-width: var(--prose); display: flex; flex-direction: column; gap: 16px; }
.row { display: flex; flex-wrap: wrap; gap: var(--space-13); align-items: center; }
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 320px), 1fr)); gap: var(--space-13); }

/* mono labels */
.eyebrow { font-family: var(--font-mono); font-size: var(--text-eyebrow); letter-spacing: 0.24em; text-transform: uppercase; color: var(--text-faint); }
.tag { font-family: var(--font-mono); font-size: var(--text-tag); letter-spacing: 0.32em; text-transform: uppercase; color: var(--text-muted); }
.label { font-family: var(--font-mono); font-size: var(--text-label); letter-spacing: 0.18em; text-transform: uppercase; color: var(--text-faint); }
.data { font-family: var(--font-mono); font-size: var(--text-data); letter-spacing: 0.08em; color: var(--text-muted); }

/* wordmark: "we" upright, "unfold" italic, always lowercase */
.brand { display: inline-flex; align-items: center; gap: 12px; color: var(--text); text-decoration: none; }
.brand-mark { width: 36px; height: 36px; display: block; flex: none; }
.wm { font-family: var(--font-display); font-size: var(--text-wordmark); letter-spacing: -0.02em; line-height: 1; color: var(--text); white-space: nowrap; }
.wm i { font-style: italic; }

/* buttons: the primary pill is a solid fill, the ghost a hairline; both mono, uppercase, round */
.pill { display: inline-flex; align-items: center; justify-content: center; gap: var(--space-8); font-family: var(--font-mono); font-size: var(--text-button); letter-spacing: 0.16em; text-transform: uppercase; color: var(--ground); background: var(--fill); border: 0; border-radius: var(--radius-pill); padding: 12px var(--space-21); min-height: var(--tap-target); text-decoration: none; cursor: pointer; }
.pill.ghost { background: transparent; color: var(--text); border: 1px solid var(--line); transition: border-color var(--duration-fast) var(--ease); }
.pill.ghost:hover { border-color: var(--text-faint); }
.pill.small { padding: 10px 18px; min-height: 40px; }
.pill:disabled, .pill[aria-disabled="true"] { opacity: 0.45; cursor: default; }

/* a pressable toggle (join, follow, thumbs): hairline at rest, filled when pressed */
.toggle { display: inline-flex; align-items: center; gap: var(--space-8); flex: none; white-space: nowrap; font-family: var(--font-mono); font-size: var(--text-label); letter-spacing: 0.14em; text-transform: uppercase; color: var(--text-muted); background: none; border: 1px solid var(--line); border-radius: var(--radius-pill); padding: var(--space-8) 12px; min-height: 36px; cursor: pointer; }
.toggle svg { display: block; }
.toggle[aria-pressed="true"] { color: var(--ground); background: var(--fill); border-color: var(--fill); }

/* segmented control (theme, size, alignment): square, hairline dividers, the pressed segment filled */
.seg { display: inline-flex; border: 1px solid var(--line); }
.seg button { min-height: 40px; min-width: 52px; padding: 0 10px; background: none; border: 0; color: var(--text-muted); font-family: var(--font-mono); font-size: var(--text-data); letter-spacing: 0.08em; cursor: pointer; }
.seg button + button { border-left: 1px solid var(--line); }
.seg button[aria-pressed="true"] { background: var(--fill); color: var(--ground); }

/* state chips: every figure says what it is (Proposal, Example, Not measured yet, Sample data) */
.state { display: inline-block; font-family: var(--font-mono); font-size: var(--text-label); letter-spacing: 0.1em; text-transform: uppercase; color: var(--text-muted); border: 1px solid var(--line); border-radius: var(--radius-pill); padding: 3px 10px; white-space: nowrap; }
.state.proposal { color: var(--gold); border-color: var(--gold-line); }
.soon { display: inline-block; font-family: var(--font-mono); font-size: var(--text-label); letter-spacing: 0.16em; text-transform: uppercase; color: var(--text-faint); border: 1px dashed var(--line); padding: 7px 10px; }

/* status dots and their legend */
.dot { width: 10px; height: 10px; border-radius: var(--radius-circle); flex: none; display: inline-block; }
.dot.done { background: var(--status-done); }
.dot.road { background: var(--status-road); }
.dot.open { border: 1.5px solid var(--status-open); }
.legend { display: flex; flex-wrap: wrap; gap: var(--space-8) var(--space-21); font-family: var(--font-mono); font-size: var(--text-data); letter-spacing: 0.08em; color: var(--text-muted); }
.legend span { display: inline-flex; align-items: center; gap: var(--space-8); }
.legend b { color: var(--text); font-weight: 500; }

/* cards: square, see-through over the field, hairline border; no shadows */
.card { background: var(--card); border: 1px solid var(--line); padding: var(--space-21); display: flex; flex-direction: column; gap: 10px; min-width: 0; transition: border-color var(--duration-base) var(--ease), background var(--duration-base) var(--ease); }
.card p { font-size: 16px; line-height: 1.5; }
.card.is-active { border-color: var(--text-faint); background: var(--card-active); }
a.card { color: var(--text); text-decoration: none; }
a.card.featured:hover { border-color: var(--gold); }
.panel { background: var(--surface-raised); border: 1px solid var(--line); padding: var(--space-21); }

/* lists: numbered with hairlines above, or a quiet rule at the left */
.pledge { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: var(--space-13); counter-reset: p; }
.pledge li { display: grid; grid-template-columns: var(--space-34) 1fr; gap: var(--space-13); border-top: 1px solid var(--line); padding-top: var(--space-13); counter-increment: p; }
.pledge li::before { content: counter(p); font-family: var(--font-mono); font-size: 12px; color: var(--text-faint); padding-top: var(--space-5); }
.pledge b, .creases b { font-weight: 400; color: var(--text); }
.pledge span, .creases span { color: var(--text-muted); }
.creases { display: flex; flex-direction: column; gap: var(--space-13); }
.creases > div, .detail { border-left: 1px solid var(--line); padding-left: var(--space-21); }

/* a fold: something to find (dashed) or found (solid) */
.fold { display: inline-flex; align-items: center; gap: var(--space-13); align-self: flex-start; font-family: var(--font-mono); font-size: var(--text-button); letter-spacing: 0.18em; text-transform: uppercase; color: var(--text-faint); border: 1px dashed var(--line); padding: 10px 14px; }
.fold.got { color: var(--text); border-style: solid; border-color: var(--text-faint); }

/* breadcrumbs */
.crumbs { display: flex; flex-wrap: wrap; gap: var(--space-8); margin: 0; padding: 0; list-style: none; font-family: var(--font-mono); font-size: var(--text-button); letter-spacing: 0.12em; text-transform: uppercase; color: var(--text-faint); }
.crumbs li + li::before { content: "/"; margin-right: var(--space-8); }
.crumbs a { color: var(--text-muted); text-decoration: none; }
.crumbs a:hover { color: var(--text); }

/* top bar: transparent at rest, a blurred ground once content scrolls under it; one gold line marks where you are */
.topbar { position: sticky; top: 0; z-index: 20; border-bottom: 1px solid transparent; transition: transform 350ms var(--ease), background-color var(--duration-base) var(--ease), border-color var(--duration-base) var(--ease); }
.topbar.is-scrolled { background: var(--bar); -webkit-backdrop-filter: blur(14px) saturate(120%); backdrop-filter: blur(14px) saturate(120%); border-bottom-color: var(--line); }
.topbar.is-hidden { transform: translateY(-100%); }
.topbar-in { max-width: var(--max-width); margin: 0 auto; min-height: calc(var(--topbar-height) - 1px); padding: var(--space-13) var(--space-21); display: flex; align-items: center; justify-content: space-between; gap: var(--space-21); }
.nav-links { position: relative; display: flex; align-items: center; gap: 26px; font-family: var(--font-mono); font-size: var(--text-button); letter-spacing: 0.16em; text-transform: uppercase; }
.nav-links > a:not(.pill) { color: var(--text-muted); text-decoration: none; min-height: var(--tap-target); display: inline-flex; align-items: center; transition: color var(--duration-fast) var(--ease); }
.nav-links > a:not(.pill):hover, .nav-links > a[aria-current="page"] { color: var(--text); }
.nav-ind { position: absolute; left: 0; bottom: 4px; height: 2px; width: 0; border-radius: var(--radius-hair); background: var(--gold); pointer-events: none; transition: transform var(--duration-move) var(--ease-move), width var(--duration-move) var(--ease-move); }

/* a menu (dropdown, sidebar): the current item gets a 2px gold rule at its left */
.menu { display: flex; flex-direction: column; background: var(--surface-raised); border: 1px solid var(--line); padding: var(--space-8) 0; min-width: 220px; }
.menu a, .menu button { position: relative; display: flex; align-items: center; min-height: var(--tap-target); padding: 0 var(--space-21); color: var(--text-muted); background: none; border: 0; text-align: left; text-decoration: none; font-family: var(--font-mono); font-size: var(--text-button); letter-spacing: 0.14em; text-transform: uppercase; cursor: pointer; }
.menu a:hover, .menu button:hover, .menu [aria-current="page"] { color: var(--text); }
.menu [aria-current="page"]::before { content: ""; position: absolute; left: 0; top: 12px; bottom: 12px; width: 2px; background: var(--gold); }

/* the night/day switch: a small warm sun */
.theme-sw { display: inline-flex; align-items: center; gap: var(--space-8); min-height: 40px; padding: 0 var(--space-13); background: none; border: 1px solid var(--line); border-radius: var(--radius-pill); color: var(--text-muted); font-family: var(--font-mono); font-size: var(--text-button); letter-spacing: 0.16em; text-transform: uppercase; cursor: pointer; }
.theme-sw { transition: color var(--duration-fast) var(--ease), border-color var(--duration-fast) var(--ease); }
.theme-sw:hover { color: var(--text); border-color: var(--text-faint); }
.ts-ico { width: 12px; height: 12px; border-radius: var(--radius-circle); background: radial-gradient(circle at 35% 35%, #ffe2a8, #d9a35a 70%); box-shadow: 0 0 8px rgba(255, 190, 110, 0.6); }
/* in day the icon is a cool crescent: set data-mode-now="day" on the switch (the landing does, and its label then reads "Night") */
.theme-sw[data-mode-now="day"] .ts-ico { background: radial-gradient(circle at 70% 30%, transparent 40%, var(--moon) 42%); box-shadow: none; }
/* optional fade-in, as on the landing (shown once the sun is up): add data-reveal, then toggle .is-shown */
.theme-sw[data-reveal] { opacity: 0; transform: translateY(-4px); transition: opacity 500ms var(--ease), transform 500ms var(--ease), color var(--duration-fast) var(--ease), border-color var(--duration-fast) var(--ease); }
.theme-sw[data-reveal].is-shown { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .theme-sw { transition: none; } }

/* inputs: square hairline fields on the card ground */
.field { display: flex; flex-direction: column; gap: var(--space-8); }
.field > span { font-family: var(--font-mono); font-size: var(--text-label); letter-spacing: 0.16em; text-transform: uppercase; color: var(--text-faint); }
.input { width: 100%; min-height: var(--tap-target); padding: 10px var(--space-13); background: var(--card); color: var(--text); border: 1px solid var(--line); border-radius: var(--radius-none); font: inherit; font-size: 16px; }
.input:hover { border-color: var(--text-faint); }
.input::placeholder { color: var(--text-faint); }

@media (prefers-reduced-motion: reduce) {
  .card, .pill.ghost, .topbar, .nav-links > a, .nav-ind { transition: none; }
}
/* ---- tools/page/pieces/arca.css ---- */
/* Arca's own parts, on top of the we unfold design system. Draft 2, 2026-11-11.
   Load order: fonts.css, tokens.css, components.css (all three are we unfold's, unchanged), then this file, then arca-proposals.css if the owner has said yes to it.
   Only tokens are used here: no colour, size or timing of its own. Night is the default; put data-theme="day" on <html> for sand and ink. */

/* the logo: an inline <svg> of logo/arca-wordmark.svg takes the text colour; set its height, never its width and height apart */
.arca-wm { display: block; height: 26px; width: auto; color: var(--text); flex: none; }
.arca-motion { display: block; color: var(--text); }          /* a <canvas> for arca-motion.js: it draws in this colour */

/* page rhythm: sections sit 89 apart, each opens with an eyebrow and a title */
.section { padding-block: var(--space-89) 0; display: flex; flex-direction: column; gap: var(--space-34); }
.section-head { max-width: var(--prose); display: flex; flex-direction: column; gap: var(--space-13); }

/* hero: one small line, the headline, a lead, then the ways in */
.hero-block { padding-block: var(--space-55) 0; display: flex; flex-direction: column; gap: var(--space-34); }
.hero-block h1 { max-width: 14ch; }
/* the hero's top: words on the left, the arch on the right (a canvas for arca-motion.js); the arch goes away when narrow */
.hero-top { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 400px); gap: var(--space-34); align-items: end; }
.hero-words { display: flex; flex-direction: column; gap: var(--space-34); min-width: 0; }
.hero-art { width: 100%; aspect-ratio: 1; }
@media (max-width: 900px) { .hero-top { grid-template-columns: minmax(0, 1fr); } .hero-art { display: none; } }

/* ways in: equal cards side by side, one column when narrow. A way that is not there yet is dashed. */
.ways { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr)); gap: var(--space-13); align-items: stretch; }
.way { background: var(--card); border: 1px solid var(--line); padding: var(--space-21); display: flex; flex-direction: column; gap: var(--space-13); min-width: 0; }
.way.is-main { border-color: var(--text-faint); background: var(--card-active); }
.way.is-soon { border-style: dashed; }
.way p { font-size: 16px; line-height: 1.5; }
.way .way-act { margin-top: auto; display: flex; flex-wrap: wrap; align-items: center; gap: var(--space-13); padding-top: var(--space-8); }
.way-head { display: flex; align-items: center; justify-content: space-between; gap: var(--space-8); min-height: 28px; }
.way-head > span:first-child { display: inline-flex; align-items: center; gap: var(--space-8); }
.quiet-link { font-family: var(--font-mono); font-size: var(--text-label); letter-spacing: 0.14em; text-transform: uppercase; color: var(--text-muted); text-decoration: underline; text-underline-offset: 0.3em; }
.quiet-link:hover { color: var(--text); }

/* a block to copy: commands, or words to hand to an agent. The button sits in its head, never over the text. */
.codeblock { border: 1px solid var(--line); background: var(--surface); display: flex; flex-direction: column; min-width: 0; }
.codeblock-head { display: flex; align-items: center; justify-content: space-between; gap: var(--space-13); padding: var(--space-5) var(--space-5) var(--space-5) var(--space-13); border-bottom: 1px solid var(--line); }
.codeblock pre { margin: 0; padding: var(--space-13); font-family: var(--font-mono); font-size: 13px; line-height: 1.6; color: var(--text); white-space: pre-wrap; overflow-wrap: anywhere; max-height: 9.6em; overflow: auto; }
.copy-btn { font-family: var(--font-mono); font-size: var(--text-label); letter-spacing: 0.14em; text-transform: uppercase; color: var(--text-muted); background: none; border: 1px solid var(--line); border-radius: var(--radius-pill); padding: 0 var(--space-13); min-height: 34px; cursor: pointer; transition: color var(--duration-fast) var(--ease), border-color var(--duration-fast) var(--ease); }
.copy-btn:hover { color: var(--text); border-color: var(--text-faint); }

/* a frame: the film, or a picture of the product. Square, hairline. The picture fills it; the caption sits under it. */
.frame { margin: 0; display: flex; flex-direction: column; border: 1px solid var(--line); background: var(--surface); min-width: 0; }
.frame-view { position: relative; aspect-ratio: 16 / 10; overflow: hidden; background: var(--surface-raised); display: grid; place-items: center; }
.frame-view > img, .frame-view > video { width: 100%; height: 100%; object-fit: cover; object-position: top left; display: block; }
.frame figcaption { padding: var(--space-13); border-top: 1px solid var(--line); display: flex; flex-direction: column; gap: var(--space-5); }
.frame figcaption p { font-size: 16px; line-height: 1.5; }
.frame.is-wide .frame-view { aspect-ratio: 16 / 9; }
.frame.is-soon { border-style: dashed; }
.frame.is-soon .frame-view { background: none; }
/* the play control: one round button, bottom left, with the film's label beside it */
.frame-play { position: absolute; left: var(--space-13); bottom: var(--space-13); right: var(--space-13); display: flex; align-items: center; gap: var(--space-13); }
.play-btn { width: 55px; height: 55px; border-radius: var(--radius-circle); border: 0; background: var(--fill); color: var(--ground); cursor: pointer; display: grid; place-items: center; flex: none; }
.play-btn::before { content: ""; border-left: 14px solid currentColor; border-top: 9px solid transparent; border-bottom: 9px solid transparent; margin-left: 4px; }
.frame-note { background: var(--bar); color: var(--text); border: 1px solid var(--line); padding: var(--space-8) var(--space-13); font-family: var(--font-mono); font-size: var(--text-label); letter-spacing: 0.08em; line-height: 1.5; -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px); }
.shots { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr)); gap: var(--space-13); }

/* cards for what runs on it and for machines: the system's card, with a status line on top */
.card-top { display: flex; align-items: center; justify-content: space-between; gap: var(--space-8); }
.card-top > span:first-child { display: inline-flex; align-items: center; gap: var(--space-8); }
.card.is-soon { border-style: dashed; background: none; }
.cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 240px), 1fr)); gap: var(--space-13); }

/* the waitlist: one field and one button on a line, stacked when narrow */
.waitlist { display: flex; flex-wrap: wrap; align-items: flex-end; gap: var(--space-13); max-width: var(--column); }
.waitlist .field { flex: 1 1 240px; }

/* a plain list of limits or facts, with hairlines */
.facts { list-style: none; margin: 0; padding: 0; max-width: var(--prose); }
.facts li { border-top: 1px solid var(--line); padding-block: var(--space-13); color: var(--text-muted); }

/* while the page sets its first theme, nothing fades */
.is-booting, .is-booting * { transition: none !important; }

/* the footer: who is behind it, the links, and the Open Intelligence tag at 170 px */
.site-footer { margin-top: var(--space-89); border-top: 1px solid var(--line); padding-block: var(--space-34); display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: var(--space-21); }
.site-footer nav { display: flex; flex-wrap: wrap; gap: var(--space-21); }
.oi-tag { display: block; width: 170px; height: auto; color: var(--text); flex: none; }

@media (max-width: 720px) { .nav-links > a.nav-extra { display: none; } }
@media (prefers-reduced-motion: reduce) { .copy-btn { transition: none; } }

/* ---------- draft 3 (2026-11-11): the page as bands, led by the film ---------- */
/* a band is a full-width ground. data-theme="day" on a band turns it to sand and ink; the page itself stays night. */
.band { background: var(--ground); color: var(--text); padding-block: var(--space-89); }
.band > .wrap { display: flex; flex-direction: column; gap: var(--space-55); }
.band.is-first { padding-top: var(--space-34); padding-bottom: 0; }
.band-head { max-width: var(--prose); display: flex; flex-direction: column; gap: var(--space-13); }

/* the big hero: one small line, a headline that fills the width, the two ways in on one row, then the film */
.hero-xl { display: flex; flex-direction: column; gap: var(--space-34); padding-top: var(--space-34); }
.hero-xl h1 { font-size: clamp(44px, 6.6vw, 92px); line-height: 0.98; max-width: none; }
.cta-row { display: flex; flex-wrap: wrap; align-items: stretch; gap: var(--space-13); }
.cta-row .pill { flex: none; }
.cta-note { display: flex; flex-wrap: wrap; align-items: center; gap: var(--space-8) var(--space-21); }

/* a command bar: one line to copy and hand over. The text never wraps; it fades out before the button. */
.cmd { flex: 1 1 320px; min-width: 0; display: flex; align-items: center; gap: var(--space-13); border: 1px solid var(--line); background: var(--surface); padding-left: var(--space-21); min-height: 52px; }
.cmd-k { font-family: var(--font-mono); font-size: var(--text-label); letter-spacing: 0.16em; text-transform: uppercase; color: var(--text-faint); white-space: nowrap; }
.cmd-t { flex: 1; min-width: 0; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; font-family: var(--font-mono); font-size: 13px; color: var(--text); }
.cmd .copy-btn { margin: var(--space-8); flex: none; background: var(--fill); color: var(--ground); border-color: var(--fill); }
@media (max-width: 640px) { .cmd-k { display: none; } }

/* the film: the product, moving, as wide as the page. It sits half on its own band and half on the next. */
.film { margin: 0; border: 1px solid var(--line); background: var(--surface-raised); position: relative; z-index: 1; margin-bottom: calc(-1 * clamp(55px, 14vw, 200px)); }
.film video, .film img { display: block; width: 100%; height: auto; aspect-ratio: 1280 / 726; object-fit: cover; }
.band.is-under-film { padding-top: calc(clamp(55px, 14vw, 200px) + var(--space-55)); }
.film-cap { display: flex; flex-wrap: wrap; justify-content: space-between; gap: var(--space-8) var(--space-21); }

/* show rows: a big picture and a few words, alternating sides */
.show { display: grid; grid-template-columns: minmax(0, 1.55fr) minmax(0, 1fr); gap: var(--space-34) var(--space-55); align-items: center; }
.show.is-flip > :first-child { order: 2; }
.show-words { display: flex; flex-direction: column; gap: var(--space-13); }
.show img { display: block; width: 100%; height: auto; border: 1px solid var(--line); }
.show.is-tall img { max-height: 520px; width: auto; max-width: 100%; margin-inline: auto; }
@media (max-width: 800px) { .show { grid-template-columns: minmax(0, 1fr); } .show.is-flip > :first-child { order: 0; } }

/* tiles: small, many, one line each (what it runs) */
.tiles { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr)); gap: var(--space-13); }
.tile { border: 1px solid var(--line); background: var(--card); padding: var(--space-13) var(--space-21); display: flex; flex-direction: column; gap: var(--space-5); min-width: 0; }
.tile.is-soon { border-style: dashed; background: none; }
.tile > span { display: inline-flex; align-items: center; gap: var(--space-8); }
.tile b { font-family: var(--font-display); font-weight: 400; font-size: var(--text-title); line-height: 1.2; }
.tile p { font-size: 16px; line-height: 1.45; }

/* the closing: the name, built by falling stones, as wide as the page */
.closing { display: block; width: 100%; height: clamp(240px, 40vw, 520px); }

/* ---------- launch mode (2026-11-11): every way in is a full button; a way that is not out yet opens early access ---------- */
.get-row { display: flex; flex-wrap: wrap; align-items: center; gap: var(--space-13); }
.get-row > .label { margin-right: var(--space-8); }
/* early access: opens under the buttons when a door that is not out yet is chosen. Never a dialog over the page. */
.early { border: 1px solid var(--text-faint); background: var(--card-active); padding: var(--space-21); display: flex; flex-direction: column; gap: var(--space-13); max-width: var(--prose); }
.early h3 i { font-style: italic; font-weight: 300; }      /* the light italic the first screen already carries: Spectral 400 italic is then used nowhere and need not be fetched */
/* the small tag on the film */
.film-tag { position: absolute; left: var(--space-13); top: var(--space-13); z-index: 2; background: var(--bar); color: var(--text); border: 1px solid var(--line); padding: var(--space-5) var(--space-13); font-family: var(--font-mono); font-size: var(--text-label); letter-spacing: 0.16em; text-transform: uppercase; -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px); }
.duo { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr)); gap: var(--space-55); }
.early[hidden] { display: none; }
.get-row .pill { min-height: 52px; padding-inline: var(--space-34); font-size: 13px; }
.show.is-flip { grid-template-columns: minmax(0, 1fr) minmax(0, 1.55fr); }
/* a pair: one tall picture beside a column of words and a second picture */
.show.is-pair { grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr); align-items: start; }
.pair-col { display: flex; flex-direction: column; gap: var(--space-34); min-width: 0; }
@media (max-width: 800px) { .show.is-flip, .show.is-pair { grid-template-columns: minmax(0, 1fr); } }

/* ---------- draft 4 (2026-11-11): a hero with life. The owner: "REALLY DULL, there's no life ... it doesnt sell", "too much text",
   "use the os's own icons", "arca os is a separate thing". ---------- */
/* the living hero: the particle field behind, three words of headline, the product film beside it and running off the page's edge */
.band.hero-live { position: relative; overflow: hidden; padding-bottom: var(--space-89); }
.hero-live > .field { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; }
.hero-live > .wrap { position: relative; }
.hero-split { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: var(--space-55); align-items: center; padding-top: var(--space-55); }
.hero-split h1 { font-size: clamp(56px, 8.4vw, 132px); line-height: 0.92; letter-spacing: -0.03em; }
.hero-split .lead { font-size: clamp(20px, 1.9vw, 26px); }
.hero-film { margin: 0; border: 1px solid var(--line); background: var(--surface-raised); width: 128%; }          /* wider than its column: it runs off the right edge */
.hero-film video, .hero-film img { display: block; width: 100%; height: auto; aspect-ratio: 1280 / 726; object-fit: cover; }
@media (max-width: 900px) { .hero-split { grid-template-columns: minmax(0, 1fr); gap: var(--space-34); } .hero-film { width: 100%; } }

/* the ways in, as buttons with the system's own mark and one word */
.os-row { display: flex; flex-wrap: wrap; gap: var(--space-13); }
.os-btn { display: inline-flex; align-items: center; gap: var(--space-13); min-height: 55px; padding: 0 var(--space-34) 0 var(--space-21); border: 0; border-radius: var(--radius-pill);
  background: var(--fill); color: var(--ground); font-family: var(--font-mono); font-size: 14px; letter-spacing: 0.14em; text-transform: uppercase; text-decoration: none; cursor: pointer; }
.os-btn svg { width: 22px; height: 22px; flex: none; display: block; }
.os-btn .ring { width: 16px; height: 16px; border-radius: 50%; border: 2.5px solid currentColor; flex: none; margin: 0 3px; }      /* the ring is your agent, as in the diagram */
.os-btn:hover { opacity: 0.9; }

/* things arrive once, quietly, and settle (the system's 450 ms move); nothing loops, nothing bounces */
@keyframes arca-rise { from { opacity: 0; transform: translateY(21px); } to { opacity: 1; transform: none; } }
.rise { animation: arca-rise 700ms var(--ease-move) both; }
.rise.d1 { animation-delay: 120ms; } .rise.d2 { animation-delay: 240ms; } .rise.d3 { animation-delay: 360ms; } .rise.d4 { animation-delay: 520ms; }
@media (prefers-reduced-motion: reduce) { .rise { animation: none; } }

/* the header logo as a canvas, so its keystone can fall into place once when the page opens */
.brand-live { display: block; width: 112px; height: 60px; margin: -14px 0 -6px; color: var(--text); }

/* ---------- draft 5 (2026-11-11): the owner on draft 4: "align isnt good ... emulate a desktop app floating in the right pane properly" ---------- */
/* the hero fits the first screen even when the screen is short: the headline is sized by the smaller of width and height */
.hero-split { align-items: center; padding-top: var(--space-34); }
.hero-split h1 { font-size: clamp(48px, min(8.4vw, 16.5vh), 132px); }
.hero-words { gap: clamp(var(--space-21), 4vh, var(--space-34)); }
.band.hero-live { padding-bottom: clamp(var(--space-34), 7vh, var(--space-89)); }
/* the app window: the product as a desktop app, whole, inside the right pane. Its right edge is the page's right edge; it never runs off.
   A slim title bar with three rings, two hairline sheets behind it for depth (no shadow), and a slow rise and fall so it floats. */
.appwin { position: relative; margin: 0; isolation: isolate; }
.appwin-body { position: relative; border: 1px solid var(--text-faint); background: var(--surface); }
.appwin-bar { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; height: 34px; padding: 0 var(--space-13); border-bottom: 1px solid var(--line); background: var(--surface-raised); }
.appwin-bar i { display: inline-block; width: 10px; height: 10px; border-radius: 50%; border: 1.5px solid var(--text-faint); margin-right: 7px; }
.appwin-bar b { font-family: var(--font-mono); font-weight: 400; font-size: var(--text-label); letter-spacing: 0.18em; text-transform: uppercase; color: var(--text-muted); }
.appwin video, .appwin img { display: block; width: 100%; height: auto; aspect-ratio: 1280 / 726; object-fit: cover; }
.appwin::before, .appwin::after { content: ""; position: absolute; inset: 0; border: 1px solid var(--line); z-index: -1; }
.appwin::before { transform: translate(13px, 13px); } .appwin::after { transform: translate(26px, 26px); opacity: 0.6; }
@keyframes arca-float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-8px); } }
.appwin.is-floating { animation: arca-float 7s ease-in-out infinite; }
@media (prefers-reduced-motion: reduce) { .appwin.is-floating { animation: none; } }
@media (max-width: 900px) { .appwin::before, .appwin::after { display: none; } }

/* ---------- the live story (arca-story.js) inside the app window, and the card pinned on it ---------- */
.story { display: block; width: 100%; aspect-ratio: 1500 / 851; background: var(--surface) center / cover no-repeat; }      /* its still picture shows until the story draws, and with script off */
.pin { position: absolute; left: calc(-1 * var(--space-21)); bottom: var(--space-34); z-index: 2; display: flex; align-items: center; gap: var(--space-13);
  background: var(--ground); color: var(--text); border: 1px solid var(--text-faint); padding: var(--space-13) var(--space-21);
  font-family: var(--font-mono); font-size: 13px; letter-spacing: 0.08em; }
.pin .dot { flex: none; }
@media (max-width: 900px) { .pin { left: var(--space-13); bottom: var(--space-13); } }

/* ---------- day and night by the visitor's system (2026-11-11) ---------- */
/* a band pinned to night inside a day page (the hero's app window, the close) */
[data-theme="night"] { --ground: #0b0d12; --surface: #0e1017; --surface-raised: #12151d; --line: #222632; --text: #ebe6da; --text-muted: #a7abb9; --text-faint: #8a8f9e;
  --ground-glow: #0b0d12; --fill: #ebe6da; --card: rgba(14, 16, 23, 0.82); --card-active: rgba(18, 21, 29, 0.95); --veil: transparent; --bar: rgba(11, 13, 18, 0.82); color-scheme: dark; }
/* on a day page every band is sand; the ones that were sand on the night page take the lighter sand, so the rhythm of grounds stays */
.is-day-page .band[data-theme="day"] { background: var(--surface); }
/* the story's words: there for readers and checks, not shown while the picture plays */
.story-lines { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); margin: 0; }
.story-tag { display: block; margin-top: var(--space-13); font-family: var(--font-mono); font-size: var(--text-label); letter-spacing: 0.18em; text-transform: uppercase; color: var(--text-faint); }

/* The hero's story is the centrepiece (the GTM Captain, 2026-11-11): on a wide screen its window takes more than half the width, and a press opens it large. */
@media (min-width: 901px) {
  .hero-split { grid-template-columns: minmax(0, 9fr) minmax(0, 15fr); gap: var(--space-34); }
  .hero-split > :last-child { margin-right: calc(-1 * min(var(--space-55), 3.5vw)); }
  .hero-split h1 { font-size: clamp(48px, min(7.4vw, 16.5vh), 124px); }
  .appwin-body { cursor: zoom-in; }
}
.appwin-act { justify-self: end; }
.appwin-open { min-height: 32px; padding: 0 var(--space-8); background: none; border: 0; cursor: pointer; color: var(--text-muted); font-family: var(--font-mono); font-size: var(--text-label); letter-spacing: 0.16em; text-transform: uppercase; }
.appwin-open:hover { color: var(--text); }
@media (max-width: 900px) { .appwin-open { display: none; } }
/* opened large: the window itself is moved into this layer over the page, as wide as the screen allows */
.story-large { position: fixed; inset: 0; z-index: 1100; display: grid; place-items: center; padding: var(--space-21); background: color-mix(in srgb, var(--ground) 92%, transparent); }
.story-large .appwin-body { width: min(100%, calc((100vh - 2 * var(--space-21) - 36px) * 1500 / 851)); cursor: zoom-out; }
.story-large .pin { display: none; }

/* The footer's wordmark is as wide as the Open Intelligence tag beside it (170 px), so the tag is never bigger than the word:
   we unfold's rule, and the owner's ("below the word, never wider than the word"). Before, the word was 77 px and the tag 170. */
.site-footer .arca-wm { height: auto; width: 170px; }
a.oi-link { display: block; flex: none; color: var(--text); }
/* ---- tools/page/pieces/arca-proposals.css ---- */
/* PROPOSALS: not yet approved by the owner (2026-11-11). Leave this file out to get the system exactly as we unfold gives it.
   Each line fills a gap the system has on the day (sand) ground. Contrast is against the day ground #e6d3b3. */
/* First the value every ground starts from; the day block below must come after it, or day set on <html> (which is :root) loses its gold. */
:root { --gold-text: var(--gold); }
[data-theme="day"] {
  --status-done: #197b5f;   /* the same green, darker: 3.5 to 1 (the night value is 1.3 to 1 on sand) */
  --status-road: #694aff;   /* the same violet, darker: 3.6 to 1 (2.0 to 1) */
  --status-open: #6e5742;   /* the system's own day text-faint, as open equals text-faint on night: 4.6 to 1 */
  --focus: #1f6fd0;         /* the same blue, darker, so the focus ring can be seen: 3.4 to 1 (the night value is 1.7 to 1) */
  --gold-text: #6b4f0a;     /* gold as text on sand (the Proposal chip): 5.2 to 1 (the night gold is 1.35 to 1) */
  --gold-line: rgba(107, 79, 10, 0.55);
}
.state.proposal { color: var(--gold-text); }
/* and back to the night values inside a band pinned to night on a day page */
[data-theme="night"] { --status-done: #33d6a8; --status-road: #9a85ff; --status-open: #8a8f9e; --focus: #5aa8ff; --gold-text: #d9b45a; --gold-line: rgba(217, 180, 90, 0.45); }
/* ---- tools/page/pieces/devices/family/family.css ---- */
/* The family drawer and the round menu button that opens it. Tokens only, in the host product's world (Arca: night and ivory, sand and ink).
   Motion is the system's: things slide and settle on its timings and never bounce. Stone physics stays with the logo. */

/* --- the button, in the page's one header ---
   THREE LINES, THREE COLOURS, AT THE LEFT EDGE OF THE WINDOW (the owner, 2026-11-12, of the triangle beside the logo: "i dont like the
   positoin, ta torto looks like a home icon"; his picks: "Left edge of the window" and "Three lines, three colours").
   A classic menu icon: three short rounded lines, one in each of the family's colours. Drawn here, no picture: nothing in it can lean and
   it cannot read as home. The triangle is no longer the button's picture; the family's lockup stays inside the drawer, in colour.
   WHERE: pinned to the window, not to the page column. The lines start 21 px from the window's left edge (the system's gutter) and the
   round hit area reaches 7 px from it. The product's logo stays in the page column; only where the column would run under the button
   (a window narrower than about 1375 px) the logo steps right, just enough to clear it. On a phone the window's edge and the column's edge
   are the same place: the lines stand ON the column's edge, where the page's own text starts, and the logo follows them.
   When the drawer pushes the page the button moves with it and stays on screen beside the drawer.
   The lines never move. Under the pointer, on focus and while the drawer is open, a hairline ring and a quiet ground come up; nothing else.
   The focus ring is the design system's own (2 px, its blue). It shows for the keyboard only: after a press with a pointer the script
   marks the button, and the ring stays away until the keyboard is used.
   THE COLOURS are Automagik's own, not design system tokens. On night: the three colours of their wordmarks' sparkles (their final set,
   2026-11-12: violet #b586e7, pink #ee5496, cyan #15bde0), so each line is the colour of that product's sparkle. On sand those are too
   light to hold (pink 2.3 to 1, cyan 1.5 to 1), so there the lines take the trio Automagik's designer gave for sand (2026-11-12): the same
   step down each colour's own ramp of the mark, each 3.06 to 1 against sand, so the three lines weigh the same. */
.fam-btn { --fam-violet: #b586e7; --fam-pink: #ee5496; --fam-cyan: #15bde0; }
[data-theme="day"] .fam-btn { --fam-violet: #9062be; --fam-pink: #d03f7c; --fam-cyan: #0781a4; }
/* WHICH PRODUCT WEARS WHICH COLOUR: this one line, and nothing else. FINAL (the owner, on the pet sheet, 2026-11-12):
   Automagik violet, Genie pink, Omni cyan. */
.fam-btn { --fam-automagik: var(--fam-violet); --fam-genie: var(--fam-pink); --fam-omni: var(--fam-cyan); }
.topbar { --fam-clear: 68px; }      /* the room the button takes at the window's edge: 7 + 48 + 13 */
.fam-btn { position: absolute; z-index: 1; left: calc(var(--space-21) - 14px); top: var(--space-13); display: grid; justify-items: center; align-content: center;
  width: 48px; height: 48px; border-radius: 50%; border: 1px solid transparent;
  background: none; color: var(--text); cursor: pointer; text-decoration: none; -webkit-tap-highlight-color: transparent;
  transition: border-color var(--duration-base) var(--ease), background-color var(--duration-base) var(--ease); }
/* 20 by 17: three lines 3 px thick, 4 px apart. The box is 18 high so the lines land on whole pixels in the 48 px button. */
.fam-lines { display: grid; align-content: start; gap: 4px; width: 20px; height: 18px; pointer-events: none; }
.fam-lines > span { display: block; height: 3px; border-radius: 2px; }
.fam-lines > span:nth-child(1) { background: var(--fam-automagik); }      /* top to bottom: Automagik, Genie, Omni (the order the owner says them in) */
.fam-lines > span:nth-child(2) { background: var(--fam-genie); }
.fam-lines > span:nth-child(3) { background: var(--fam-omni); }
.fam-btn:hover, .fam-btn:focus-visible, .fam-btn[aria-expanded="true"] { border-color: var(--line); background: var(--card-active); }
.fam-btn.is-pointer:focus-visible { outline: none; }
/* the logo keeps the page column, and steps right only where the column would run under the button */
.topbar-in { padding-left: max(var(--space-21), calc(var(--fam-clear) - max(0px, (100% - var(--max-width)) / 2))); }
.topbar .pill { white-space: nowrap; }
@media (max-width: 720px) { .topbar .pill { min-height: var(--tap-target, 44px); } }      /* on a phone the one button is a full thumb target, like the mark */
@media (max-width: 480px) { .topbar-in { gap: var(--space-13); } .topbar { --fam-clear: 62px; } }
/* the narrowest phones (360 px and under, down to 320): the logo stands right after the button's hit area, the gap closes to 8 px and
   the one button is set a little tighter, so the header's three things fit with the page's 21 px gutter kept at the right */
@media (max-width: 360px) { .topbar { --fam-clear: 56px; } .topbar-in { gap: var(--space-8); } .topbar .pill { padding-inline: 12px; letter-spacing: 0.08em; } }

/* --- the drawer --- */
/* The drawer PUSHES the page aside (the owner, 2026-11-12: "i really like the pushes the page"); it never lies over it.
   The layer over the page (the scrim) catches a press outside the drawer, and it is what sets the page back: a veil of the ground
   colour at half strength, with a round hole where the menu button stands, so the button keeps its full strength while the drawer is
   open (it is a working control then: a press on it closes the drawer). The script says where the hole is. The page itself is not
   made see-through any more. A browser without color-mix() shows no veil; everything else works. */
.fam-scrim { position: fixed; inset: 0; z-index: 1190; opacity: 0; transition: opacity var(--duration-move) var(--ease);
  background: radial-gradient(circle at var(--fam-bx, -99px) var(--fam-by, -99px), transparent 25px, color-mix(in srgb, var(--ground) 50%, transparent) 26px); }
.is-family-open .fam-scrim { opacity: 1; }
[data-family-page] { transition: transform var(--duration-move) var(--ease-move); }
.is-family-open [data-family-page] { transform: translateX(min(420px, calc(100vw - 34px))); }
.is-family-snap [data-family-page], .is-family-snap .fam, .is-family-snap .fam-scrim { transition: none !important; }      /* going to a section of this page: no slide back */
/* the page that moved aside must not make the window wider: a phone would zoom out to fit it */
.is-family-open body { overflow-x: clip; }
.fam { position: fixed; inset: 0 auto 0 0; z-index: 1200; width: min(420px, calc(100vw - 34px)); display: flex; flex-direction: column; gap: var(--space-21);
  padding: var(--space-21) max(var(--space-21), env(safe-area-inset-right, 0px)) max(var(--space-21), env(safe-area-inset-bottom, 0px)) max(var(--space-21), env(safe-area-inset-left, 0px));
  background: var(--ground); color: var(--text); border-right: 1px solid var(--line); overflow-y: auto; overscroll-behavior: contain;
  transform: translateX(-100%); transition: transform var(--duration-move) var(--ease-move); }
.fam[hidden], .fam-scrim[hidden], .fam-world[hidden] { display: none; }
.is-family-open .fam { transform: none; }
.fam:focus { outline: none; }
/* Automagik itself, and the two places its app runs: one row, not three */
.fam { --lock: 30px; }
.fam-top { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: var(--space-13); min-height: var(--tap-target, 44px); }
.fam-apps { flex: none; display: inline-flex; gap: var(--space-8); }
.fam-chip { display: inline-flex; align-items: center; min-height: 34px; padding: 0 var(--space-13); border: 1px solid var(--line); border-radius: var(--radius-pill);
  font-family: var(--font-mono); font-size: var(--text-label); letter-spacing: 0.14em; text-transform: uppercase; color: var(--text-muted); text-decoration: none; white-space: nowrap; cursor: pointer;
  transition: color var(--duration-fast) var(--ease), border-color var(--duration-fast) var(--ease), background-color var(--duration-fast) var(--ease); }
.fam-chip:hover, .fam-chip:focus-visible { color: var(--text); border-color: var(--text-faint); background: var(--card-active); }
@media (max-width: 720px), (pointer: coarse) { .fam-chip { min-height: var(--tap-target, 44px); } }
/* The lockup gives way before the row breaks: it asks for 104px and grows to its full size where there is room, so on a narrow phone it
   is drawn a little smaller and Desktop and Mobile stay beside it. No sum of fractions decides the row. Under about 340px of screen the
   two buttons go below it, on purpose. */
.fam-home { display: block; flex: 1 1 104px; min-width: 0; max-width: calc(var(--lock) * 396 / 64); color: var(--text); text-decoration: none; }
/* The family's lockup: Automagik's own file, whole. Its frame is 264 units high: the triskle fills the top 222 and the g of the word hangs
   42 below, so the picture is pulled up by that much and the triskle is what the row centres. Cream letters on night, ink letters on sand. */
.fam-lockup { display: block; }
.fam-lockup picture { display: block; }
.fam-lockup img { display: block; width: auto; max-width: none; height: var(--lock, 30px); margin-bottom: calc(var(--lock, 30px) * -42 / 264); }
.fam-home .fam-lockup img { width: 100%; height: auto; margin-bottom: -2.571%; }      /* 42/264 of its height, said as a share of its width (396 by 64) */
.fam-lockup .fam-lock-ink { display: none; }
[data-theme="day"] .fam-lockup .fam-lock-ink { display: block; } [data-theme="day"] .fam-lockup .fam-lock-cream { display: none; }
.fam-lockup.is-large { --lock: 52px; margin-bottom: calc(52px * 42 / 264); }
.fam-list { list-style: none; margin: 0 calc(-1 * var(--space-13)); padding: 0; display: flex; flex-direction: column; }
.fam-list > li + li { border-top: 1px solid var(--line); }
.fam-item { position: relative; display: flex; align-items: center; gap: var(--space-13); padding: var(--space-13); color: var(--text); text-decoration: none;
  transition: background-color var(--duration-fast) var(--ease); }
.fam-item::after { content: "\2192"; margin-left: auto; font-family: var(--font-mono); color: var(--text-faint); opacity: 0; transform: translateX(-8px); transition: opacity var(--duration-fast) var(--ease), transform var(--duration-fast) var(--ease); }
.fam-item:hover, .fam-item:focus-visible { background: var(--card-active); }
.fam-item:hover::after, .fam-item:focus-visible::after { opacity: 1; transform: none; }
.fam-words { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.fam-words b { font-family: var(--font-display); font-weight: 400; font-size: var(--text-title); line-height: 1.15; }
.fam-words span { color: var(--text-muted); font-size: 16px; line-height: 1.4; }
/* a product is shown by its own name, drawn: Automagik's wordmark file for it, as high as the lockup above, so the letters are one size, and set
   in from the edge so the names stand in one column under the lockup's letters (the wordmark's frame starts 299.34 units into the lockup's) */
.fam-item.is-word { padding-left: calc(var(--space-13) + var(--lock) * 299.34 / 264); }
.fam-word { display: block; } .fam-word img { max-width: 100%; margin-bottom: 0; }      /* the frame's own room under the letters clears the g and the y */
.fam > .eyebrow { padding-left: calc(var(--lock) * 321.34 / 264); }      /* the label stands in the names' column */
.fam-word.is-mykes img { height: calc(var(--lock) * 257 / 264); margin-top: calc(var(--lock) * 7 / 264); }      /* its file's frame is 257 high where the others are 264, on the same line */
.fam-item.is-word .fam-words { gap: 0; } .fam-item.is-word .fam-words > span:last-child { padding-left: calc(var(--lock) * 22 / 264); }
/* where you are: the host product's own logo, whole, and its line */
.fam-words .fam-logo { display: block; margin-bottom: var(--space-8); color: var(--text); } .fam-logo svg { display: block; height: calc(var(--lock) * 0.7); width: auto; fill: currentColor; }
/* where you are: a bar at the edge, and the words */
.fam-item.is-here { background: var(--card-active); }
.fam-item.is-here::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 2px; background: var(--text); }
.fam-item.is-here::after { content: none; }
.fam-here { position: absolute; top: var(--space-13); right: var(--space-13); font-family: var(--font-mono); font-size: var(--text-label); letter-spacing: 0.16em; text-transform: uppercase; color: var(--text-faint); white-space: nowrap; }
/* where you are, at the top: the product whose page this is, set (filled stone, a bar at the edge, the words), then its own sections.
   The sections show only where the page's header has no room for them (the same width at which the header hides them). */
.fam-here-block { margin: 0 calc(-1 * var(--space-13)); display: flex; flex-direction: column; }
.fam-links { display: none; list-style: none; margin: 0; padding: var(--space-8) var(--space-13) 0; grid-template-columns: 1fr 1fr; column-gap: var(--space-13); }
.fam-links a { display: flex; align-items: center; min-height: var(--tap-target, 44px); font-family: var(--font-mono); font-size: var(--text-label); letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--text-muted); text-decoration: none; border-bottom: 1px solid var(--line); transition: color var(--duration-fast) var(--ease); }
.fam-links a:hover, .fam-links a:focus-visible { color: var(--text); }
@media (max-width: 720px) { .fam-links { display: grid; } }
.fam-foot { margin-top: auto; padding-top: var(--space-21); border-top: 1px solid var(--line); display: flex; align-items: center; justify-content: space-between; gap: var(--space-21); }
/* a short window: the drawer closes its gaps before it has to scroll */
@media (max-height: 760px) { .fam { gap: var(--space-13); } .fam-item { padding-block: var(--space-8); } }
/* a phone: the lockup a little smaller and the two app buttons a little tighter, so they stay one row */
@media (max-width: 480px) { .fam { --lock: 24px; } .fam-top { gap: var(--space-8); } .fam-chip { padding: 0 10px; letter-spacing: 0.1em; } }
/* the rows arrive one after another and settle, once the drawer is in */
.fam-here-block, .fam-top, .fam-list > li, .fam > .eyebrow, .fam-foot { opacity: 0; transform: translateY(13px); transition: opacity var(--duration-base) var(--ease), transform var(--duration-move) var(--ease-move); }
.is-family-open .fam-here-block, .is-family-open .fam-top, .is-family-open .fam-list > li, .is-family-open .fam > .eyebrow, .is-family-open .fam-foot { opacity: 1; transform: none; }
.is-family-open .fam-here-block { transition-delay: 80ms; } .is-family-open .fam-top { transition-delay: 125ms; } .is-family-open .fam > .eyebrow { transition-delay: 170ms; }
.is-family-open .fam-list > li:nth-child(1) { transition-delay: 215ms; } .is-family-open .fam-list > li:nth-child(2) { transition-delay: 260ms; }
.is-family-open .fam-list > li:nth-child(3) { transition-delay: 305ms; } .is-family-open .fam-list > li:nth-child(4) { transition-delay: 350ms; }
.is-family-open .fam-foot { transition-delay: 395ms; }

/* --- stepping into another product's world: its ground opens from the pressed tile and covers the window --- */
.fam-world { position: fixed; inset: 0; z-index: 1300; display: grid; place-items: center; padding: var(--space-21); background: #1e1923; color: #f3e9dd;
  clip-path: circle(0 at var(--fam-x, 60px) var(--fam-y, 50%)); transition: clip-path var(--duration-page) var(--ease-move); }
[data-theme="day"].fam-world, [data-theme="day"] .fam-world { background: #f6eee2; color: #3c3049; }
.fam-world.is-in { clip-path: circle(150vmax at var(--fam-x, 60px) var(--fam-y, 50%)); }
.fam-world-in { display: flex; flex-direction: column; align-items: center; gap: var(--space-13); text-align: center; opacity: 0; transform: translateY(13px);
  transition: opacity var(--duration-base) var(--ease) 300ms, transform var(--duration-move) var(--ease-move) 300ms; }
.fam-world.is-in .fam-world-in { opacity: 1; transform: none; }
.fam-world-in b { font-family: var(--font-display); font-weight: 300; font-size: clamp(54px, 9vw, 128px); line-height: 1; letter-spacing: -0.03em; }
.fam-world-in > span:not(.label) { font-size: var(--text-lead); opacity: 0.8; }
.fam-world-in .label { opacity: 0.6; color: inherit; } .fam-world .pill.ghost { color: inherit; border-color: currentColor; }

@media (prefers-reduced-motion: reduce) {
  .fam, .fam-world, .fam-world-in, .fam-here-block, .fam-top, .fam-list > li, .fam > .eyebrow, .fam-foot, .fam-btn, .fam-chip, .fam-links a, .fam-scrim, [data-family-page] { transition: none !important; }
}
/* ---- tools/page/pieces/devices/marks/marks.css ---- */
/* The marks sprite takes no room on the page. */
.marks-sprite { position: absolute; }
/* ---- tools/page/pieces/devices/strip/strip.css ---- */
/* The strip. Tokens only. A hairline above and below; each project's mark, then its name in the system's small capitals. */
.strip { border-block: 1px solid var(--line); overflow: hidden; padding-block: var(--space-21); display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: var(--space-13); }
.strip-line { display: flex; flex-wrap: wrap; justify-content: center; gap: var(--space-8) 0; margin: 0; padding: 0; list-style: none;
  font-family: var(--font-mono); font-size: var(--text-tag); letter-spacing: 0.24em; text-transform: uppercase; color: var(--text-muted); white-space: nowrap; }
.strip-line li { display: inline-flex; align-items: center; gap: var(--space-13); margin-right: var(--space-55); color: var(--text); }
.strip-line li svg { width: 26px; height: 26px; fill: currentColor; flex: none; }
.strip-label { flex: none; align-self: center; padding-inline: var(--space-21); font-family: var(--font-mono); font-size: var(--text-label); letter-spacing: 0.18em; text-transform: uppercase; color: var(--text-faint); white-space: nowrap; }
/* standing still (script off): closer together and spaced evenly on both sides, so the eight sit on one line on a wide screen */
.strip:not(.is-live) .strip-line li { margin-inline: var(--space-13); }
[data-theme="day"] .strip-line li svg { filter: brightness(0); }
/* a project shown by its name, drawn: the wordmark picture stands where a mark and capitals stand; its letters are about as high as the capitals' row is tall */
/* a family mark that is flat and one colour (Omni's vortex): the colour is Automagik's own cream on a dark ground and its own ink on a light one
   (their rule: ink or cream, by ground), not the page's text colour; it follows the page's ground with or without script */
.strip-line li svg.strip-fam { fill: #f3e9dd; }
[data-theme="day"] .strip-line li svg.strip-fam { fill: #3c3049; filter: none; }
/* a mark carried as a picture in its own colours (Automagik's, if the owner picks colour): never dimmed or turned to one colour */
.strip-line li img.strip-mark { width: 26px; height: 26px; flex: none; }
/* moving: the script sets the line twice side by side and slides it by exactly one line's width, so the loop has no seam */
.strip.is-live { flex-wrap: nowrap; justify-content: flex-start; }
.strip-track { min-width: 0; }
.strip.is-live .strip-track { flex: 1; display: flex; overflow: hidden; }
.strip.is-live .strip-line { flex-wrap: nowrap; justify-content: flex-start; flex: none; animation: strip-slide var(--strip-time, 40s) linear infinite; }
.strip.is-live:hover .strip-line { animation-play-state: paused; }
@keyframes strip-slide { to { transform: translateX(-100%); } }
@media (prefers-reduced-motion: reduce) { .strip.is-live .strip-track { display: block; } .strip.is-live .strip-line { animation: none; flex-wrap: wrap; justify-content: center; } .strip.is-live .strip-line li { margin-inline: var(--space-13); } .strip.is-live .strip-line[aria-hidden] { display: none; } }
/* ---- tools/page/pieces/devices/manifesto/manifesto.css ---- */
/* The manifesto bar. Tokens only. A hairline bar with one large line; a plus that turns to a minus; three numbered principles under it. */
.manifesto { border-block: 1px solid var(--line); }
.manifesto summary { list-style: none; cursor: pointer; display: flex; align-items: center; justify-content: space-between; gap: var(--space-34); padding-block: var(--space-34); }
.manifesto summary::-webkit-details-marker { display: none; }
.manifesto-line { font-family: var(--font-display); font-weight: 300; font-size: clamp(24px, 3.2vw, 44px); line-height: 1.12; letter-spacing: -0.02em; color: var(--text); max-width: 30ch; text-wrap: balance; }
.manifesto-line i { font-style: italic; }
.manifesto-more { flex: none; width: 44px; height: 44px; border: 1px solid var(--line); border-radius: var(--radius-circle); position: relative; }
.manifesto-more::before, .manifesto-more::after { content: ""; position: absolute; left: 50%; top: 50%; width: 14px; height: 1.5px; background: var(--text); transform: translate(-50%, -50%); transition: transform var(--duration-move) var(--ease-move); }
.manifesto-more::after { transform: translate(-50%, -50%) rotate(90deg); }
.manifesto[open] .manifesto-more::after { transform: translate(-50%, -50%) rotate(0deg); }
.manifesto-list { list-style: none; margin: 0; padding: 0 0 var(--space-34); display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr)); gap: var(--space-21) var(--space-34); counter-reset: m; }
.manifesto-list li { counter-increment: m; border-top: 1px solid var(--line); padding-top: var(--space-13); display: flex; flex-direction: column; gap: var(--space-5); }
.manifesto-list li::before { content: "0" counter(m); font-family: var(--font-mono); font-size: var(--text-label); letter-spacing: 0.16em; color: var(--text-faint); }
.manifesto-list b { font-family: var(--font-display); font-weight: 400; font-size: var(--text-title); }
.manifesto-list span { color: var(--text-muted); }
@media (prefers-reduced-motion: reduce) { .manifesto-more::before, .manifesto-more::after { transition: none; } }
/* ---- tools/page/pieces/devices/ways/ways.css ---- */
/* Four ways in. Tokens only. One hairline grid of four cells; a small number, one large light token, one line. */
.ways4 { display: flex; flex-direction: column; gap: var(--space-34); }
.ways4-head { display: flex; flex-direction: column; gap: var(--space-13); max-width: var(--prose); }
.ways4-grid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 230px), 1fr)); border: 1px solid var(--line); counter-reset: w; }
.ways4-grid li { counter-increment: w; padding: var(--space-21); display: flex; flex-direction: column; gap: var(--space-13); min-height: 180px; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); margin: 0 -1px -1px 0; }
.ways4-grid li::before { content: "0" counter(w); font-family: var(--font-mono); font-size: var(--text-label); letter-spacing: 0.16em; color: var(--text-faint); }
.ways4-grid b { font-family: var(--font-display); font-weight: 300; font-size: clamp(30px, 3.4vw, 46px); line-height: 1; letter-spacing: -0.02em; margin-top: auto; }
.ways4-grid span { color: var(--text-muted); font-size: 16px; line-height: 1.5; }
/* ---- tools/page/pieces/devices/picker/picker.css ---- */
/* The machine picker. Tokens only. Needs the system's tokens.css and components.css (.toggle, .pill, .lead, .small, .row). */
.picker { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: var(--space-34) var(--space-55); align-items: center; }
.picker-words { display: flex; flex-direction: column; gap: var(--space-21); min-width: 0; }
.picker-kinds { display: flex; flex-wrap: wrap; gap: var(--space-8); }
/* script off: a label and a number field per kind. script on (.is-live): one pill per kind; a tap adds one, the small minus takes one away */
.picker-kind { display: inline-flex; align-items: center; gap: var(--space-8); }
.picker-kind label { font-family: var(--font-mono); font-size: var(--text-button); letter-spacing: 0.14em; text-transform: uppercase; color: var(--text-muted); }
.picker-kind .input { width: 5.5em; min-height: 40px; }
.picker.is-live .picker-kind label, .picker.is-live .picker-kind .input { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.picker-kind .toggle { min-height: var(--tap-target); padding-inline: var(--space-21); font-size: var(--text-button); }
.picker-kind .toggle b { font-weight: 600; margin-left: var(--space-8); font-variant-numeric: tabular-nums; }
.picker-kind.is-on .toggle { color: var(--ground); background: var(--fill); border-color: var(--fill); }
.picker-minus { width: 34px; height: 34px; border-radius: var(--radius-circle); border: 1px solid var(--line); background: none; color: var(--text-muted); font-family: var(--font-mono); font-size: 16px; line-height: 1; cursor: pointer; }
.picker-minus:hover { color: var(--text); border-color: var(--text-faint); }
.picker-kind:not(.is-on) .picker-minus { display: none; }
/* the three figures: large light numerals over small capitals, on one hairline grid */
.picker-figs { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); border: 1px solid var(--line); }
.picker-figs > div { padding: var(--space-13) var(--space-21); display: flex; flex-direction: column; gap: var(--space-3); min-width: 0; }
.picker-figs > div + div { border-left: 1px solid var(--line); }
.picker-figs b { font-family: var(--font-display); font-weight: 300; font-size: clamp(34px, 4.6vw, 55px); line-height: 1; letter-spacing: -0.02em; font-variant-numeric: tabular-nums; }
.picker-figs span { font-family: var(--font-mono); font-size: var(--text-label); letter-spacing: 0.16em; text-transform: uppercase; color: var(--text-faint); }
.picker-arch { display: block; width: 100%; aspect-ratio: 5 / 4; color: var(--text); --picker-gold: var(--gold-text, var(--gold)); }
@media (max-width: 800px) { .picker { grid-template-columns: minmax(0, 1fr); } .picker-arch { order: -1; aspect-ratio: 3 / 2; } }
/* ---- tools/page/pieces/devices/usecases/usecases.css ---- */
/* The use cases. Tokens only. A tab row, then one sentence large on the left and the stones on the right. */
.uc { display: flex; flex-direction: column; gap: var(--space-34); }
.uc-case { display: flex; flex-direction: column; gap: var(--space-13); padding-block: var(--space-21); border-top: 1px solid var(--line); }
.uc-case > h3 { font-family: var(--font-mono); font-size: var(--text-label); font-weight: 400; letter-spacing: 0.18em; text-transform: uppercase; color: var(--text-faint); }
.uc-case > p { font-family: var(--font-display); font-weight: 300; font-size: clamp(26px, 3.4vw, 46px); line-height: 1.1; letter-spacing: -0.02em; color: var(--text); max-width: 18ch; text-wrap: balance; }
.uc-case > ul { display: flex; flex-wrap: wrap; gap: var(--space-8) var(--space-21); margin: 0; padding: 0; list-style: none; font-family: var(--font-mono); font-size: var(--text-label); letter-spacing: 0.14em; text-transform: uppercase; color: var(--text-muted); }
.uc-case > ul > li { display: inline-flex; align-items: center; gap: var(--space-8); }
.uc-case > ul > li svg { width: 16px; height: 16px; fill: currentColor; flex: none; }
/* with the script: a tab row, one case at a time, and the stage beside the sentence */
.uc-row { display: flex; border: 1px solid var(--line); overflow-x: auto; }
.uc-row button { flex: 1 0 auto; min-height: var(--tap-target); padding: 0 var(--space-21); background: none; border: 0; border-right: 1px solid var(--line); color: var(--text-muted);
  font-family: var(--font-mono); font-size: var(--text-label); letter-spacing: 0.14em; text-transform: uppercase; cursor: pointer; white-space: nowrap; }
.uc-row button:last-child { border-right: 0; }
.uc-row button[aria-selected="true"] { background: var(--fill); color: var(--ground); }
.uc.is-live .uc-cases { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: var(--space-34) var(--space-55); align-items: center; }
.uc.is-live .uc-case { border-top: 0; padding-block: 0; grid-column: 1; grid-row: 1; }
.uc.is-live .uc-case.is-off { visibility: hidden; }      /* every case keeps its place in the one cell, so the block never changes height as cases change */
.uc.is-live .uc-case > h3 { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
@keyframes uc-in { from { opacity: 0; transform: translateY(13px); } to { opacity: 1; transform: none; } }
.uc.is-live .uc-case:not(.is-off) { animation: uc-in var(--duration-move) var(--ease-move) both; }
.uc-stage { grid-column: 2; grid-row: 1; display: block; width: 100%; aspect-ratio: 16 / 10; color: var(--text); }
.uc-stage { touch-action: pan-y; cursor: pointer; }
.uc-row { scrollbar-width: none; } .uc-row::-webkit-scrollbar { display: none; }
@media (max-width: 800px) { .uc.is-live .uc-cases { grid-template-columns: minmax(0, 1fr); gap: var(--space-21); touch-action: pan-y; } .uc-stage { grid-column: 1; grid-row: 2; aspect-ratio: 4 / 3; }
  .uc.is-live .uc-case { align-self: start; } }
@media (prefers-reduced-motion: reduce) { .uc.is-live .uc-case:not(.is-off) { animation: none; } }
/* marks shown in the lists: the picture marks are white, so on the sand ground every mark is set to ink */
[data-theme="day"] .uc-case > ul > li svg { filter: brightness(0); }
/* ---- tools/page/pieces/devices/builders/builders.css ---- */
/* Builders. Tokens only. Five tall panels side by side; one is open and wide, the rest are narrow with their title turned on its side. */
.bld { display: flex; flex-direction: column; gap: var(--space-34); }
.bld-head { display: flex; flex-direction: column; gap: var(--space-13); max-width: var(--prose); }
.bld-row { display: flex; flex-direction: column; border: 1px solid var(--line); }
.bld-panel { border-top: 1px solid var(--line); padding: var(--space-21); display: flex; flex-direction: column; gap: var(--space-13); min-width: 0; }
.bld-panel:first-child { border-top: 0; }
.bld-panel h3 { font-family: var(--font-display); font-weight: 400; font-size: var(--text-title); }
.bld-body { display: flex; flex-direction: column; gap: var(--space-21); }
.bld-body p { max-width: 46ch; }
.bld-body img { display: block; width: 100%; height: auto; border: 1px solid var(--line); }
@media (min-width: 900px) {
  .bld.is-live .bld-row { flex-direction: row; height: clamp(440px, 44vw, 660px);      /* the open panel then holds its whole picture */ }
  .bld.is-live .bld-panel { flex: 1 1 0; border-top: 0; border-left: 1px solid var(--line); cursor: pointer; overflow: hidden; transition: flex-grow var(--duration-move) var(--ease-move), background var(--duration-base) var(--ease); }
  .bld.is-live .bld-panel:first-child { border-left: 0; }
  .bld.is-live .bld-panel.is-open { flex-grow: 9; cursor: default; background: var(--card-active); }
  .bld.is-live .bld-panel:not(.is-open) h3 { writing-mode: vertical-rl; transform: rotate(180deg); white-space: nowrap; align-self: flex-start; color: var(--text-muted); }
  .bld.is-live .bld-panel:not(.is-open):hover h3 { color: var(--text); }
  .bld.is-live .bld-panel:not(.is-open) .bld-body { display: none; }
  .bld.is-live .bld-panel.is-open .bld-body { flex: 1; min-height: 0; animation: bld-in var(--duration-slow) var(--ease) both; }
  .bld.is-live .bld-panel.is-open img { flex: 1; min-height: 0; object-fit: contain; object-position: top left; border: 0; }      /* the whole picture, never cut */
}
@keyframes bld-in { from { opacity: 0; } to { opacity: 1; } }
@media (prefers-reduced-motion: reduce) { .bld.is-live .bld-panel { transition: none; } .bld.is-live .bld-panel.is-open .bld-body { animation: none; } }
/* ---- tools/page/pieces/devices/diagram/diagram.css ---- */
/* The diagram, alive. Tokens only. A wide canvas, and under it four labels on the same four columns. */
.dgm { display: flex; flex-direction: column; gap: var(--space-34); }
.dgm-head { display: flex; flex-direction: column; gap: var(--space-13); max-width: var(--prose); }
.dgm-still { display: block; width: 100%; height: auto; color: var(--text); } .dgm-still .g { stroke: var(--gold-text, var(--gold)); }
.dgm.is-live .dgm-still { display: none; }
.dgm-stage canvas { display: none; } .dgm.is-live .dgm-stage canvas { display: block; }
.dgm-stage canvas { width: 100%; aspect-ratio: 1640 / 420; color: var(--text); --dgm-gold: var(--gold-text, var(--gold)); }
.dgm-beats { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--space-8);
  font-family: var(--font-mono); font-size: var(--text-label); letter-spacing: 0.16em; text-transform: uppercase; color: var(--text-muted); text-align: center; }
.dgm-beats li { display: flex; flex-direction: column; align-items: center; justify-content: flex-start; gap: var(--space-8); min-height: 40px; }
@media (max-width: 700px) { .dgm-stage canvas { aspect-ratio: 1640 / 620; } .dgm-beats { font-size: 9px; letter-spacing: 0.08em; } }
/* ---- tools/page/pieces/devices/steps/steps.css ---- */
/* From nothing to running. Tokens only. Three numbered cells on one hairline grid, a small drawing on top of each. */
.stp { display: flex; flex-direction: column; gap: var(--space-34); }
.stp-head { display: flex; flex-direction: column; gap: var(--space-13); max-width: var(--prose); }
.stp-row { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; border: 1px solid var(--line); counter-reset: s; }
.stp-row > li + li { border-top: 1px solid var(--line); }
.stp-card, .stp-line { padding: var(--space-21); display: flex; flex-direction: column; gap: var(--space-8); }
.stp-card { counter-increment: s; }      /* on the card, not the li: on a wide screen the li is display: contents, and Chrome then skips its counter */
.stp-card::before { content: "0" counter(s); font-family: var(--font-mono); font-size: var(--text-label); letter-spacing: 0.16em; color: var(--text-faint); }
.stp-line { padding-top: 0; gap: var(--space-13); }
/* wide: the three cards in one row, the same height; the install line under them, across the row */
@media (min-width: 800px) {
  .stp-row { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .stp-row > li { display: contents; }
  .stp-card { grid-row: 1; } .stp-row > li + li > .stp-card { border-left: 1px solid var(--line); }
  .stp-line { grid-row: 2; grid-column: 1 / -1; padding-top: var(--space-21); border-top: 1px solid var(--line); display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: var(--space-34); align-items: center; }
}
.stp-row svg { width: 100%; max-width: 240px; height: auto; margin-block: var(--space-8) var(--space-13); }
.stp-row .s { fill: var(--text); } .stp-row .h { fill: none; stroke: var(--text-faint); stroke-width: 1.5; } .stp-row .r { fill: none; stroke: var(--text); stroke-width: 3; }
.stp-row .p { fill: none; stroke: var(--gold-text, var(--gold)); stroke-width: 1.8; stroke-dasharray: 6 4; } .stp-row .ok { fill: var(--status-done); }
.stp-card b { font-family: var(--font-display); font-weight: 400; font-size: var(--text-title); }
.stp-card > span, .stp-line > span { color: var(--text-muted); font-size: 16px; line-height: 1.5; }
/* ---- tools/page/pieces/devices/tabs/tabs.css ---- */
/* The tabs. Tokens only. A square panel with two hairline sheets behind it; the tab row on top, one list at a time. */
.tabs { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 7fr); gap: var(--space-34) var(--space-55); align-items: start; }
.tabs-head { display: flex; flex-direction: column; gap: var(--space-13); }
.tabs-box { position: relative; isolation: isolate; border: 1px solid var(--text-faint); background: var(--surface); display: flex; flex-direction: column; }
.tabs-box::before, .tabs-box::after { content: ""; position: absolute; inset: 0; border: 1px solid var(--line); z-index: -1; }
.tabs-box::before { transform: translate(13px, 13px); } .tabs-box::after { transform: translate(26px, 26px); opacity: 0.6; }
.tabs-row { display: flex; border-bottom: 1px solid var(--line); overflow-x: auto; }
.tabs-row button { flex: 1 0 auto; min-height: var(--tap-target); padding: 0 var(--space-21); background: none; border: 0; border-right: 1px solid var(--line); color: var(--text-muted);
  font-family: var(--font-mono); font-size: var(--text-button); letter-spacing: 0.16em; text-transform: uppercase; cursor: pointer; }
.tabs-row button:last-child { border-right: 0; }
.tabs-row button[aria-selected="true"] { background: var(--fill); color: var(--ground); }
.tabs-panel { padding: var(--space-21); }
.tabs-panel + .tabs-panel { border-top: 1px solid var(--line); }
.tabs-panel h3 { font-family: var(--font-mono); font-size: var(--text-label); font-weight: 400; letter-spacing: 0.18em; text-transform: uppercase; color: var(--text-faint); margin-bottom: var(--space-8); }
.tabs-panel ul { list-style: none; margin: 0; padding: 0; }
.tabs-panel li { display: grid; grid-template-columns: minmax(0, 11em) minmax(0, 1fr); gap: var(--space-13); align-items: baseline; padding-block: var(--space-13); border-top: 1px solid var(--line); }
.tabs-panel li:first-child { border-top: 0; }
.tabs-panel b { font-family: var(--font-display); font-weight: 400; font-size: var(--text-title); line-height: 1.2; }
.tabs-panel span { font-family: var(--font-mono); font-size: var(--text-label); letter-spacing: 0.14em; text-transform: uppercase; color: var(--text-muted); line-height: 1.6; }
/* with the script: the headings give way to the tab row, one panel shows, and it keeps the tallest panel's height so nothing jumps */
.tabs.is-live .tabs-panel h3 { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
.tabs.is-live .tabs-panel { border-top: 0; min-height: var(--tabs-h, 0); }
.tabs.is-live .tabs-panel[hidden] { display: none; }
@keyframes tabs-in { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
.tabs.is-live .tabs-panel:not([hidden]) ul { animation: tabs-in var(--duration-base) var(--ease-move) both; }
@media (prefers-reduced-motion: reduce) { .tabs.is-live .tabs-panel:not([hidden]) ul { animation: none; } }
@media (max-width: 800px) { .tabs { grid-template-columns: minmax(0, 1fr); } .tabs-box::before, .tabs-box::after { display: none; } .tabs-panel li { grid-template-columns: minmax(0, 1fr); gap: var(--space-3); } }
/* ---- tools/page/pieces/devices/layers/layers.css ---- */
/* One Arca, three ways. Tokens only. Three layers stacked like sheets on the left; the tabbed box (tabs.css) on the right. */
.lay { display: flex; flex-direction: column; gap: var(--space-34); }
.lay-head { display: flex; flex-direction: column; gap: var(--space-13); max-width: var(--prose); }
.lay-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: var(--space-34) var(--space-55); align-items: start; }
.lay-stack { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; counter-reset: l; }
.lay-stack li { counter-increment: l; border: 1px solid var(--line); background: var(--card); padding: var(--space-21); display: flex; flex-direction: column; align-items: flex-start; gap: var(--space-8); }
.lay-stack li + li { margin-top: -1px; margin-left: var(--space-21); } .lay-stack li + li + li { margin-left: var(--space-34); }
.lay-stack li::before { content: "0" counter(l); font-family: var(--font-mono); font-size: var(--text-label); letter-spacing: 0.16em; color: var(--text-faint); }
.lay-stack li > b { font-family: var(--font-display); font-weight: 400; font-size: var(--text-title); }
.lay-stack li > span { color: var(--text-muted); font-size: 16px; line-height: 1.5; }
.lay .tabs-panel li { grid-template-columns: minmax(0, 1fr); padding-block: var(--space-8); }
@media (max-width: 800px) { .lay-grid { grid-template-columns: minmax(0, 1fr); } .lay-stack li + li, .lay-stack li + li + li { margin-left: 0; } }
.lay .tabs { display: block; }
/* ---- tools/page/pieces/devices/yours/yours.css ---- */
/* Yours. Tokens only. Two columns of short lines under small-capital headings, on hairlines. */
.yrs { display: flex; flex-direction: column; gap: var(--space-34); }
.yrs-head { display: flex; flex-direction: column; gap: var(--space-13); max-width: var(--prose); }
.yrs-cols { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr)); gap: var(--space-34) var(--space-55); }
.yrs-cols h3 { font-family: var(--font-mono); font-size: var(--text-label); font-weight: 400; letter-spacing: 0.18em; text-transform: uppercase; color: var(--text-faint); margin-bottom: var(--space-8); }
.yrs-cols ul { list-style: none; margin: 0; padding: 0; }
.yrs-cols li { border-top: 1px solid var(--line); padding-block: var(--space-13); font-family: var(--font-display); font-size: var(--text-title); line-height: 1.25; }
/* ---- tools/page/pieces/devices/close/close.css ---- */
/* The close. Tokens only. It sits on the night ground whatever the page's theme: put data-theme="night" on its band if the page is in day. */
.close { display: flex; flex-direction: column; align-items: center; gap: var(--space-34); text-align: center; }
.close-fall { display: block; width: 100%; height: clamp(260px, 44vw, 560px); color: var(--text); }
.close-words { display: flex; flex-direction: column; align-items: center; gap: var(--space-21); width: 100%; }
.close-words h2 { font-size: var(--text-display); }
.close .waitlist { width: 100%; justify-content: center; text-align: left; }
/* ---- tools/page/page.css ---- */
/* The page's own stylesheet. It is loaded after the design system (ds/) and holds only what the page needs to set
   the Designer's pieces together and to keep the Worker's contracts. It uses the system's tokens and draws nothing
   of its own: no colour and no timing that is not a token. */

/* ---- from the Designer's page (arca-wt/brand/arca-logo/pagelook.py, its page styles, without the mock's own note bar) ---- */
/* The header stays where it is in the page: it does not follow the scroll. It is a positioned element all the same,
   because the menu button is placed against it (pieces/devices/family/family.css: the header's first child, pinned to
   the window's left edge). */
.topbar { position: relative; }
.way-panel{ display:flex; flex-direction:column; gap:var(--space-8); max-width:var(--prose); }
.way-panel .cmd{ flex:none; }
.way-panel .cmd-t{ text-overflow:clip; overflow-x:auto; scrollbar-width:thin; }
.cmd.is-words{ flex-wrap:wrap; align-items:flex-start; padding:var(--space-13) var(--space-21); gap:var(--space-8) var(--space-13); }
.cmd.is-words .cmd-k{ flex:1 1 auto; align-self:center; }
.cmd.is-words .copy-btn{ margin:0 0 0 auto; order:2; }
.cmd.is-words .cmd-t{ order:3; flex:1 1 100%; white-space:normal; overflow:visible; overflow-wrap:anywhere; line-height:1.6; }
[data-rise]{ opacity:0; transform:translateY(21px); transition:opacity var(--duration-slow) var(--ease), transform var(--duration-slow) var(--ease-move); }
[data-rise].is-in{ opacity:1; transform:none; }
/* What the Designer's page writes as a style on the element: here it is a class, so the page carries no inline style. */
.band.is-flush { padding-block: 0; }
.band.is-open-below { padding-bottom: 0; }
/* The still of the story: it shows until the story draws, and to a reader without script. */
.story { background-image: url("../media/ana-day-arca-poster.webp"); }

/* ---- the footer: the close and the footer are one night ground, and the footer is the page's own landmark ---- */
/* The Designer's page sets the footer inside the last band. Here it is outside <main>, with the same room around it. */
.band.is-last { padding-bottom: 0; }
.band.page-foot { padding-top: 0; }
.page-foot .site-footer { margin-top: calc(var(--space-55) + var(--space-89)); }

/* ---- a part that waits for a press stays out of sight until then ---- */
/* The hidden attribute alone loses to any rule that sets display (.way-panel, .pill, .brand-live, .arca-wm all do),
   so it is said once here, for everything: the hero's two panels, the header's still wordmark and its canvas, the
   diagram's button before script puts it in and once it is pressed. */
[hidden] { display: none !important; }

/* ---- without script ---- */
/* theme.js marks <html> has-script. Without it nothing can be pressed open, so what waits for a press is shown:
   the two panels of the hero and the early-access form. */
html:not(.has-script) .way-panel[hidden], html:not(.has-script) .early[hidden] { display: flex !important; }
/* A picture that waits for script to give it its address has its twin in <noscript>: without script only the twin shows. */
html:not(.has-script) img[data-src] { display: none; }
/* The story opens large by script only: without it its button is not shown. */
html:not(.has-script) .appwin-open { display: none; }

/* ---- where two pieces meet, on a phone and in the stack of layers ---- */
/* The agent block keeps its label on a phone: it says what the words are for (the system hides .cmd-k when narrow). */
@media (max-width: 640px) { .cmd.is-words .cmd-k { display: block; white-space: normal; } }
/* On a phone the card pinned on the story would cover a third of its small window: there it is the window's own
   foot, under the story, on the same hairline. */
@media (max-width: 640px) { .appwin .pin { position: static; border-width: 1px 0 0; border-color: var(--line); padding: var(--space-8) var(--space-13); font-size: var(--text-data); } }
/* The diagram's button fits its quarter of a phone's width, beside the three labels. */
@media (max-width: 700px) { .dgm-beats .pill.small { padding-inline: var(--space-8); letter-spacing: 0.08em; font-size: 10px; min-height: 36px; } }
/* The early-access form opens under the layer whose button was pressed, inside the stack, on the cards' own hairline. */
.lay-stack .early { margin-top: -1px; }
/* The Arca OS band cuts what runs past its own right edge, which is the window's. The tabs' box stands flush with the
   column's right edge, and its second outline is drawn 26 px to the right of it (pieces/devices/tabs/tabs.css): 25 px
   past the box, where the page's gutter is 21. From 801 to 1287 px wide that left 4 px for the window to scroll
   sideways. Nothing that shows is lost: the cut is where the window already ends. It is clip and not hidden, so the
   band is no scroll box, and nothing above or below it is cut. */
#os { overflow-x: clip; }

/* ---- off screen, nothing moves ---- */
/* The marks row slides by a CSS animation that would run for as long as the page is open. page.js marks the row
   is-away while it is off screen, and the slide waits there. */
.strip.is-away .strip-line { animation-play-state: paused; }

/* ---- a block that waits for its piece is held at the size the piece will give it ----
   A block marked data-mount starts its piece only when it is near (page.js), and carries the mark until the piece
   has run. A piece changes its block's shape: five open panels become one, a list of cases becomes one case and a
   stage. So while a block waits, and only where script runs, it is laid out the way its piece will lay it out, and
   nothing under it moves when the piece starts. Each rule below repeats the layout of the piece's own .is-live
   rule, named beside it. Without script none of this applies: every panel, case and field is open, as before.
   If a piece's script cannot be fetched, page.js takes the mark away, and the block is open in the same way. */

/* the marks row (strip.css, .strip.is-live): its label and its line side by side; the line is one line, cut at
   the edge, which the piece then slides. For a visitor who asked for less motion the piece leaves the line
   wrapped and still, beside the label, and so does this. */
html.has-script [data-mount] .strip { flex-wrap: nowrap; justify-content: flex-start; }
html.has-script [data-mount] .strip-track { flex: 1; overflow: hidden; }
@media (prefers-reduced-motion: no-preference) {
  html.has-script [data-mount] .strip-track { display: flex; }
  html.has-script [data-mount] .strip-line { flex-wrap: nowrap; justify-content: flex-start; flex: none; }
  html.has-script [data-mount] .strip-line li { margin-inline: 0 var(--space-55); }
}

/* the use cases (usecases.css, .uc.is-live): room for the tab row, then one case in the left cell and the stage's
   place in the right one; under 800 px the stage's place is below. Every case keeps its place in the one cell. */
html.has-script [data-mount] .uc-cases { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: var(--space-34) var(--space-55); align-items: center; margin-top: calc(var(--tap-target) + 2px + var(--space-34)); }
html.has-script [data-mount] .uc-case { border-top: 0; padding-block: 0; grid-column: 1; grid-row: 1; }
html.has-script [data-mount] .uc-case + .uc-case { visibility: hidden; }
html.has-script [data-mount] .uc-case > h3 { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
html.has-script [data-mount] .uc-cases::after { content: ""; grid-column: 2; grid-row: 1; width: 100%; aspect-ratio: 16 / 10; }
html.has-script [data-mount] .uc.is-live .uc-cases { margin-top: 0; }
html.has-script [data-mount] .uc.is-live .uc-cases::after { content: none; }
@media (max-width: 800px) {
  html.has-script [data-mount] .uc-cases { grid-template-columns: minmax(0, 1fr); gap: var(--space-21); }
  html.has-script [data-mount] .uc-case { align-self: start; }
  html.has-script [data-mount] .uc-cases::after { grid-column: 1; grid-row: 2; aspect-ratio: 4 / 3; }
}

/* the picker (picker.css, .picker.is-live): each kind takes the box of the pill it will be: its name where the
   pill's name will be, and its number field put away as the piece puts it away */
html.has-script [data-mount] .picker-kind .input { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
html.has-script [data-mount] .picker-kind label { display: inline-flex; align-items: center; white-space: nowrap; min-height: var(--tap-target); border: 1px solid transparent; padding-inline: var(--space-21) calc(var(--space-21) + var(--space-8) + var(--space-8)); }
html.has-script [data-mount] .picker.is-live .picker-kind label { position: absolute; min-height: 0; border: 0; padding: 0; }

/* the builders (builders.css, .bld.is-live, from 900 px): five panels side by side at the row's height, the first
   open and wide, the rest narrow with their title on its side */
@media (min-width: 900px) {
  html.has-script [data-mount] .bld-row { flex-direction: row; height: clamp(440px, 44vw, 660px); }
  html.has-script [data-mount] .bld-panel { flex: 1 1 0; border-top: 0; border-left: 1px solid var(--line); overflow: hidden; }
  html.has-script [data-mount] .bld:not(.is-live) .bld-panel:first-child { border-left: 0; flex-grow: 9; background: var(--card-active); }
  html.has-script [data-mount] .bld:not(.is-live) .bld-panel + .bld-panel h3 { writing-mode: vertical-rl; transform: rotate(180deg); white-space: nowrap; align-self: flex-start; color: var(--text-muted); }
  html.has-script [data-mount] .bld:not(.is-live) .bld-panel + .bld-panel .bld-body { display: none; }
  html.has-script [data-mount] .bld:not(.is-live) .bld-panel:first-child .bld-body { flex: 1; min-height: 0; }
  html.has-script [data-mount] .bld:not(.is-live) .bld-panel:first-child img { flex: 1; min-height: 0; object-fit: contain; object-position: top left; border: 0; }
}

/* the diagram (diagram.css): under 700 px its canvas is taller than the still drawing, which takes that shape */
@media (max-width: 700px) {
  html.has-script [data-mount] .dgm-still { aspect-ratio: 1640 / 620; }
}

/* the tabs (tabs.css, .tabs.is-live): room for the tab row, then the first list, in a cell as tall as the
   tallest of the three: the height the piece gives its one open panel */
html.has-script [data-mount] .tabs:not(.is-live) .tabs-box { display: grid; grid-template-columns: minmax(0, 1fr); padding-top: calc(var(--tap-target) + 1px); }
html.has-script [data-mount] .tabs:not(.is-live) .tabs-panel { grid-column: 1; grid-row: 1; }
html.has-script [data-mount] .tabs:not(.is-live) .tabs-panel + .tabs-panel { visibility: hidden; }

/* ---- the Worker's contracts ---- */
/* A join form's answer (form.js writes it and moves focus to it): out of the way while empty. */
[data-answer]:empty { display: none; }
[data-answer] { color: var(--text); }
[data-answer]:focus-visible { outline-offset: 5px; }
form.is-done .waitlist { display: none; }
/* A copy button: its own word, or the block's "Copied" / "Select and copy" while form.js has written one. */
.copy-btn [data-copy-status]:empty { display: none; }
.copy-btn:has([data-copy-status]:not(:empty)) [data-copy-label] { display: none; }

/* ---- the skip link: first in the page, seen when it has the focus ---- */
.skip { position: absolute; left: var(--space-13); top: var(--space-13); z-index: 30; transform: translateY(-200%); }
.skip:focus { transform: none; }

/* ---- the Open Intelligence tag: we unfold's own cut, in the footer, in the footer's ink and ground ---- */
.open-intelligence { display: block; flex: none; line-height: 0; }
.open-intelligence svg { display: block; }
.open-intelligence rect { fill: var(--ground); stroke: var(--text); }
.open-intelligence path { stroke: var(--text); }
.open-intelligence text { fill: var(--text); }

/* ---- the move between two pages of the family ---- */
/* The Designer's three rules, word for word (the menu's README, "The three rules for the move between pages").
   Where a browser can carry one page into the next, the menu button holds still while the rest changes: it has the
   same name on both pages, at the same place, the left edge of the window. The first rule is inside the guard, so a
   visitor who asked for less motion gets a plain change of page. They are the page's own, not the piece's: each
   side of the family adds them to its own styles. */
@media (prefers-reduced-motion: no-preference) { @view-transition { navigation: auto; } }
.fam-btn { view-transition-name: fb-bar; }
::view-transition-group(fb-bar) { animation: none; }
