/* Wray — generated from tokens.json */

:root, [data-theme="light"] {
  --white: #ffffff;
  --ink-900: #10151c;
  --ink-950: #0b0e12;
  --ink-975: #050608;
  --ink-700: #333d4b;
  --ink-500: #5b6675;
  --ink-400: #7c8798;
  --ink-300: #a8b1be;
  --ink-200: #dce2ea;
  --ink-100: #eef1f6;
  --ink-050: #f7f9fb;
  --navy-900: #0f1c32;
  --navy-950: #0a111d;
  --navy-925: #0d1626;
  --navy-975: #060c15;
  --navy-800: #16253e;
  --navy-700: #1f3253;
  --navy-600: #273c60;
  --navy-450: #526a92;
  --navy-400: #647aa0;
  --navy-300: #94a6c4;
  --navy-200: #c2cde0;
  --navy-100: #e1e7f1;
  --navy-050: #f1f4fa;
  --oxblood-800: #6e0e18;
  --oxblood-400: #b5636a;
  --oxblood-350: #df8a90;
  --oxblood-300: #e2a9ae;
  --evergreen-900: #083023;
  --evergreen-800: #0e4634;
  --evergreen-700: #1a5b46;
  --evergreen-350: #7dc5ad;
  --evergreen-300: #9bd4c1;
  --teal-700: #0b5e6b;
  --teal-300: #7ed4e0;
  --amber-700: #8a5a00;
  --amber-300: #e8b25c;
  --crimson-600: #b3261e;
  --crimson-300: #f39a93;
  --azure-700: #2e5fa3;
  --azure-300: #a8c6ea;
  --indigo-700: #4a4b99;
  --indigo-300: #b5b6ea;
  --ice-700: #3d6478;
  --ice-900: #0f1c26;
  --ice-500: #6e9cb0;
  --ice-400: #8fb4c6;
  --ice-300: #aecddb;
  --ice-050: #f2f8fa;
  --surface: var(--white);
  --surface-subtle: var(--navy-050);
  --surface-raised: var(--white);
  --surface-sunken: var(--navy-100);
  --surface-inverse: var(--navy-700);
  --surface-black: var(--ink-975);
  --surface-black-subtle: var(--ink-950);
  --surface-black-raised: var(--ink-900);
  --rule-black: var(--ink-700);
  --chrome-text: var(--white);
  --chrome-text-muted: var(--navy-300);
  --chrome-link: var(--navy-100);
  --chrome-link-hover: var(--white);
  --chrome-indicator: var(--white);
  --chrome-selected: var(--white);
  --on-chrome-selected: var(--ink-900);
  --chrome-focus: var(--white);
  --glass-light: #ffffffd1;
  --glass-dark: #050608b8;
  --glass-edge-light: #ffffffa6;
  --glass-edge-dark: #ffffff2e;
  --image-fade: var(--ink-975);
  --scrim: var(--navy-900);
  --text: var(--ink-900);
  --text-muted: var(--ink-500);
  --text-soft: var(--ink-700);
  --text-strong: var(--navy-700);
  --text-on-raised: var(--ink-900);
  --text-on-raised-muted: var(--ink-500);
  --text-on-raised-soft: var(--ink-700);
  --text-on-raised-faint: var(--ink-300);
  --text-on-inverse: var(--white);
  --text-disabled: var(--ink-300);
  --link: var(--evergreen-800);
  --link-hover: var(--evergreen-700);
  --link-visited: var(--evergreen-900);
  --link-on-raised: var(--evergreen-800);
  --accent-on-raised: var(--oxblood-800);
  --act-on-raised: var(--navy-700);
  --act-strong-on-raised: var(--navy-800);
  --act-soft-on-raised: var(--navy-050);
  --on-act-on-raised: var(--white);
  --accent: var(--oxblood-800);
  --accent-muted: var(--oxblood-400);
  --act: var(--navy-700);
  --act-strong: var(--navy-800);
  --act-soft: var(--navy-050);
  --on-act: var(--white);
  --selected: var(--navy-700);
  --on-selected: var(--white);
  --brand: var(--navy-700);
  --brand-strong: var(--navy-800);
  --brand-soft: var(--navy-100);
  --on-brand: var(--white);
  --brand-on-raised: var(--navy-700);
  --brand-strong-on-raised: var(--navy-800);
  --on-brand-on-raised: var(--white);
  --rule: var(--ink-200);
  --rule-strong: var(--ink-400);
  --rule-accent: var(--oxblood-800);
  --rule-on-raised: var(--ink-200);
  --rule-strong-on-raised: var(--ink-400);
  --wash-on-raised: var(--ink-050);
  --fill-on-raised: var(--ink-100);
  --fill-strong-on-raised: var(--ink-200);
  --selected-on-raised: var(--navy-700);
  --on-selected-on-raised: var(--white);
  --focus: var(--evergreen-800);
  --focus-on-raised: var(--evergreen-800);
  --instrument: var(--ice-400);
  --instrument-strong: var(--ice-700);
  --instrument-soft: var(--ice-050);
  --instrument-on-raised: var(--ice-400);
  --instrument-strong-on-raised: var(--ice-700);
  --success: var(--teal-700);
  --warning: var(--amber-700);
  --danger: var(--crimson-600);
  --danger-on-raised: var(--crimson-600);
  --info: var(--azure-700);
  --trend-good: var(--teal-700);
  --trend-bad: var(--crimson-600);
  --trend-flat: var(--ink-500);
  --trend-good-on-raised: var(--teal-700);
  --trend-bad-on-raised: var(--crimson-600);
  --trend-flat-on-raised: var(--ink-500);
  --status-done: var(--teal-700);
  --status-active: var(--azure-700);
  --status-pending: var(--amber-700);
  --status-blocked: var(--crimson-600);
  --status-planned: var(--indigo-700);
  --status-idle: var(--ink-500);
  --status-done-on-raised: var(--teal-700);
  --status-active-on-raised: var(--azure-700);
  --status-pending-on-raised: var(--amber-700);
  --status-blocked-on-raised: var(--crimson-600);
  --status-planned-on-raised: var(--indigo-700);
  --status-idle-on-raised: var(--ink-500);
  --cat-ai-soft: #e8f1f9;
  --cat-ai-ink: #1764b0;
  --cat-robotics-soft: #e7f3ef;
  --cat-robotics-ink: #0c7554;
  --cat-planning-soft: #f2edf9;
  --cat-planning-ink: #7a4bc4;
  --cat-learning-soft: #faeee7;
  --cat-learning-ink: #a0480e;
  --cat-perception-soft: #f6ecf3;
  --cat-perception-ink: #a63d86;
  --cat-navigation-soft: #ecf0ea;
  --cat-navigation-ink: #456a2e;
  --cat-systems-soft: var(--ink-100);
  --cat-systems-ink: var(--ink-700);
  --cat-theory-soft: var(--cat-planning-soft);
  --cat-theory-ink: var(--cat-planning-ink);
  --series-1: #1a6fc4;
  --series-2: #c85a12;
  --series-3: #0e8a63;
  --series-4: #a63d86;
  --series-5: #456a2e;
  --series-6: #7a4bc4;
  --area-academic: var(--series-1);
  --area-entertainment: var(--series-2);
  --area-life: var(--series-3);
  --area-misc: var(--series-5);
  --area-personal: var(--series-4);
  --area-professional: var(--series-6);
  --shadow-none: none;
  --shadow-sm: 0 1px 2px rgba(16, 21, 28, 0.06);
  --shadow-md: 0 2px 8px rgba(16, 21, 28, 0.08);
  --shadow-lg: 0 8px 28px rgba(16, 21, 28, 0.12);
}

[data-theme="dark"] {
  --surface: var(--navy-950);
  --surface-subtle: var(--navy-925);
  --surface-raised: var(--navy-900);
  --surface-sunken: var(--navy-975);
  --surface-inverse: var(--navy-100);
  --surface-black: var(--ink-975);
  --surface-black-subtle: var(--ink-950);
  --surface-black-raised: var(--ink-900);
  --rule-black: var(--ink-700);
  --chrome-text: var(--white);
  --chrome-text-muted: var(--navy-300);
  --chrome-link: var(--navy-100);
  --chrome-link-hover: var(--white);
  --chrome-indicator: var(--white);
  --chrome-selected: var(--white);
  --on-chrome-selected: var(--ink-900);
  --chrome-focus: var(--white);
  --image-fade: var(--ink-975);
  --scrim: var(--navy-975);
  --text: var(--navy-100);
  --text-muted: var(--navy-300);
  --text-soft: var(--navy-200);
  --text-strong: var(--navy-050);
  --text-on-raised: var(--navy-100);
  --text-on-raised-muted: var(--navy-300);
  --text-on-raised-soft: var(--navy-200);
  --text-on-raised-faint: var(--navy-400);
  --text-on-inverse: var(--navy-950);
  --text-disabled: var(--navy-400);
  --link: var(--evergreen-350);
  --link-hover: var(--evergreen-300);
  --link-visited: var(--evergreen-300);
  --link-on-raised: var(--evergreen-350);
  --accent-on-raised: var(--oxblood-350);
  --act-on-raised: var(--navy-100);
  --act-strong-on-raised: var(--white);
  --act-soft-on-raised: var(--navy-800);
  --on-act-on-raised: var(--navy-950);
  --accent: var(--oxblood-350);
  --accent-muted: var(--oxblood-400);
  --act: var(--navy-100);
  --act-strong: var(--white);
  --act-soft: var(--navy-800);
  --on-act: var(--navy-950);
  --selected: var(--navy-100);
  --on-selected: var(--navy-950);
  --brand: var(--navy-050);
  --brand-strong: var(--white);
  --brand-soft: var(--navy-800);
  --on-brand: var(--navy-950);
  --brand-on-raised: var(--navy-100);
  --brand-strong-on-raised: var(--white);
  --on-brand-on-raised: var(--navy-950);
  --rule: var(--navy-700);
  --rule-strong: var(--navy-450);
  --rule-accent: var(--oxblood-350);
  --rule-on-raised: var(--navy-600);
  --rule-strong-on-raised: var(--navy-450);
  --wash-on-raised: var(--navy-800);
  --fill-on-raised: var(--navy-700);
  --fill-strong-on-raised: var(--navy-600);
  --selected-on-raised: var(--navy-100);
  --on-selected-on-raised: var(--navy-950);
  --focus: var(--evergreen-350);
  --focus-on-raised: var(--evergreen-350);
  --instrument: var(--ice-500);
  --instrument-strong: var(--ice-300);
  --instrument-soft: var(--ice-900);
  --instrument-on-raised: var(--ice-500);
  --instrument-strong-on-raised: var(--ice-300);
  --success: var(--teal-300);
  --warning: var(--amber-300);
  --danger: var(--crimson-300);
  --danger-on-raised: var(--crimson-300);
  --info: var(--azure-300);
  --trend-good: var(--teal-300);
  --trend-bad: var(--crimson-300);
  --trend-flat: var(--navy-300);
  --trend-good-on-raised: var(--teal-300);
  --trend-bad-on-raised: var(--crimson-300);
  --trend-flat-on-raised: var(--navy-300);
  --status-done: var(--teal-300);
  --status-active: var(--azure-300);
  --status-pending: var(--amber-300);
  --status-blocked: var(--crimson-300);
  --status-planned: var(--indigo-300);
  --status-idle: var(--navy-300);
  --status-done-on-raised: var(--teal-300);
  --status-active-on-raised: var(--azure-300);
  --status-pending-on-raised: var(--amber-300);
  --status-blocked-on-raised: var(--crimson-300);
  --status-planned-on-raised: var(--indigo-300);
  --status-idle-on-raised: var(--navy-300);
  --cat-ai-soft: #103760;
  --cat-ai-ink: #8cb7e2;
  --cat-robotics-soft: #0c4139;
  --cat-robotics-ink: #86c4b1;
  --cat-planning-soft: #372860;
  --cat-planning-ink: #bca5e2;
  --cat-learning-soft: #562e19;
  --cat-learning-ink: #e4ac88;
  --cat-perception-soft: #482347;
  --cat-perception-ink: #d29ec2;
  --cat-navigation-soft: #223524;
  --cat-navigation-ink: #a2b496;
  --cat-systems-soft: var(--navy-800);
  --cat-systems-ink: var(--navy-200);
  --cat-theory-soft: var(--cat-planning-soft);
  --cat-theory-ink: var(--cat-planning-ink);
  --series-1: #4f95df;
  --series-2: #d67428;
  --series-3: #26a683;
  --series-4: #9d7fe4;
  --series-5: #8fc07a;
  --series-6: #d263ac;
  --area-academic: var(--series-1);
  --area-entertainment: var(--series-2);
  --area-life: var(--series-3);
  --area-misc: var(--series-5);
  --area-personal: var(--series-4);
  --area-professional: var(--series-6);
  --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.45);
  --shadow-md: 0 4px 14px rgba(0, 0, 0, 0.5);
  --shadow-lg: 0 12px 36px rgba(0, 0, 0, 0.6);
}

:root {
  --space-0: 0;
  --space-1: 4px;
  --space-2: 8px;
  --space-3: 12px;
  --space-4: 16px;
  --space-5: 20px;
  --space-6: 24px;
  --space-8: 32px;
  --space-10: 40px;
  --space-12: 48px;
  --space-16: 64px;
  --space-20: 80px;
  --space-24: 96px;
  --space-32: 128px;
  --radius-none: 0;
  --radius-xs: 2px;
  --radius-sm: 3px;
  --radius-md: 5px;
  --radius-lg: 8px;
  --radius-xl: 14px;
  --radius-full: 999px;
  --border-hairline: 1px;
  --border-control: 1.5px;
  --border-focus: 2px;
  --border-accent: 3px;
  --duration-instant: 0ms;
  --duration-fast: 120ms;
  --duration-base: 180ms;
  --duration-slow: 280ms;
  --duration-entrance: 480ms;
  --duration-draw: 420ms;
  --duration-count: 720ms;
  --duration-stagger: 60ms;
  --duration-pulse: 1200ms;
  --ease-standard: cubic-bezier(0.2, 0, 0, 1);
  --ease-entrance: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-in-out: cubic-bezier(0.65, 0, 0.35, 1);
  --ease-mechanical: cubic-bezier(0.35, 0, 0.15, 1);
  --ease-snap: cubic-bezier(0.7, 0, 0.84, 0);
  --ease-settle: cubic-bezier(0.16, 1, 0.3, 1);
  --icon-sm: 16px;
  --icon-md: 20px;
  --icon-lg: 24px;
  --control-sm: 32px;
  --control-md: 40px;
  --control-lg: 48px;
  --tap-min: 44px;
  --checkbox: 15px;
  --track: 4px;
  --thumb: 18px;
  --dot: 10px;
  --avatar-sm: 40px;
  --avatar-md: 72px;
  --avatar-lg: 160px;
  --toggle-pad: 3px;
  --toggle-width: 39px;
  --glass-blur: 18px;
  --container-prose: 720px;
  --container-text: 880px;
  --container-wide: 1120px;
  --container-full: 1440px;
  --measure-prose: 68ch;
  --measure-lead: 52ch;
  --gutter-mobile: 20px;
  --gutter-desktop: 40px;
  --grid-columns: 12;
  --grid-gap: 24px;
  --header-height: 64px;
  --bp-sm: 480px;
  --bp-md: 720px;
  --bp-lg: 1024px;
  --bp-xl: 1280px;
  --aspect-hero: 16 / 9;
  --aspect-figure: 3 / 2;
  --aspect-portrait: 4 / 5;
  --aspect-square: 1 / 1;
  --aspect-slide: 16 / 9;
  --aspect-og: 1200 / 630;
  --media-thumb: 320px;
  --media-inline: 720px;
  --media-wide: 1120px;
  --media-hero: 1440px;
  --figure-radius: 8px;
  --opacity-disabled: 0.4;
  --opacity-muted: 0.72;
  --opacity-scrim: 0.62;
  --opacity-hover: 0.06;
  --z-base: 0;
  --z-raised: 10;
  --z-header: 200;
  --z-overlay: 800;
  --z-modal: 900;
  --z-toast: 1000;
  --tick-pitch: 8px;
  --tick-minor: 4px;
  --tick-major: 8px;
  --rail-inset: 2px;
  --grid-pitch: 32px;
  --node-size: 14px;
  --hairline: 1px;
  --scan-width: 2px;
  --font-display: "Newsreader", "Spectral", Georgia, serif;
  --font-serif: "Newsreader", "Spectral", Georgia, "Times New Roman", serif;
  --font-sans: "Assistant", -apple-system, "Segoe UI", Helvetica, sans-serif;
  --font-mono: "IBM Plex Mono", ui-monospace, "SF Mono", Menlo, Consolas, monospace;
}

.display-xl { font-family: var(--font-display); font-size: 76px; line-height: 0.98; font-weight: 500; letter-spacing: -0.012em; font-variation-settings: 'opsz' 72; }

.display-lg { font-family: var(--font-display); font-size: 56px; line-height: 1.02; font-weight: 500; letter-spacing: -0.01em; font-variation-settings: 'opsz' 72; }

.display-md { font-family: var(--font-display); font-size: 42px; line-height: 1.08; font-weight: 500; letter-spacing: -0.008em; font-variation-settings: 'opsz' 72; }

.display-italic { font-family: var(--font-display); font-size: 42px; line-height: 1.08; font-weight: 500; letter-spacing: -0.008em; font-style: italic; font-variation-settings: 'opsz' 72; }

.h1 { font-family: var(--font-serif); font-size: 33px; line-height: 1.2; font-weight: 600; letter-spacing: -0.006em; font-variation-settings: 'opsz' 20; }

.h2 { font-family: var(--font-serif); font-size: 26px; line-height: 1.26; font-weight: 600; letter-spacing: -0.004em; font-variation-settings: 'opsz' 20; }

.h3 { font-family: var(--font-serif); font-size: 21px; line-height: 1.34; font-weight: 600; font-variation-settings: 'opsz' 20; }

.h4 { font-family: var(--font-serif); font-size: 18px; line-height: 1.4; font-weight: 600; font-variation-settings: 'opsz' 20; }

.h-quote { font-family: var(--font-serif); font-size: 21px; line-height: 1.45; font-weight: 400; font-style: italic; font-variation-settings: 'opsz' 20; }

.lead { font-family: var(--font-sans); font-size: 20px; line-height: 1.6; font-weight: 400; }

.body { font-family: var(--font-sans); font-size: 17px; line-height: 1.68; font-weight: 400; }

.body-sm { font-family: var(--font-sans); font-size: 15px; line-height: 1.62; font-weight: 400; }

.caption { font-family: var(--font-sans); font-size: 13px; line-height: 1.5; font-weight: 400; }

.ui { font-family: var(--font-sans); font-size: 15px; line-height: 1.2; font-weight: 600; letter-spacing: 0.01em; }

.ui-sm { font-family: var(--font-sans); font-size: 13px; line-height: 1.2; font-weight: 600; letter-spacing: 0.012em; }

.eyebrow { font-family: var(--font-mono); font-size: 12px; line-height: 1.4; font-weight: 400; letter-spacing: 0.16em; }

.eyebrow-sm { font-family: var(--font-mono); font-size: 10.5px; line-height: 1.4; font-weight: 400; letter-spacing: 0.2em; }

.section-number { font-family: var(--font-mono); font-size: 11px; line-height: 1; font-weight: 500; letter-spacing: 0.24em; }

.readout { font-family: var(--font-mono); font-size: 15px; line-height: 1.25; font-weight: 400; letter-spacing: 0.02em; }

.readout-lg { font-family: var(--font-mono); font-size: 38px; line-height: 1; font-weight: 300; letter-spacing: -0.01em; }

.code { font-family: var(--font-mono); font-size: 14px; line-height: 1.6; font-weight: 400; }

.code-inline { font-family: var(--font-mono); font-size: 14px; line-height: 1.4; font-weight: 400; }

/* bundle.css from the Wray Design System, trimmed to what these pages use */
/* Wray design system — component stylesheet. Load after tokens.css.
   Instrument register: hairlines, tick rails, the node and the grid wash. Corners are square.
   Colour: white and ink; navy for structure and every selected state; oxblood for marks only;
   evergreen for links and the focus ring only; ice for hairlines. Black bars are neutral.
   Every value is a token. Classes are block__element--modifier. */

:root {
  --icon-external: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='none' stroke='%23000' stroke-width='1.6' stroke-linecap='square'%3E%3Cpath d='M12.5 9.5v3.5h-10v-10h3.5'/%3E%3Cpath d='M9.5 2.5h4v4'/%3E%3Cpath d='M13 3L7.6 8.4'/%3E%3C/svg%3E");
  --icon-sort: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='none' stroke='%23000' stroke-width='1.6' stroke-linecap='square'%3E%3Cpath d='M5 6.5L8 3.5l3 3'/%3E%3Cpath d='M5 9.5l3 3 3-3'/%3E%3C/svg%3E");
  --icon-sort-up: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='none' stroke='%23000' stroke-width='1.8' stroke-linecap='square'%3E%3Cpath d='M4 10L8 6l4 4'/%3E%3C/svg%3E");
  --icon-sort-down: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='none' stroke='%23000' stroke-width='1.8' stroke-linecap='square'%3E%3Cpath d='M4 6l4 4 4-4'/%3E%3C/svg%3E");
}

/* ---------- base ---------- */

.ds-root {
  background: var(--surface);
  color: var(--text);
  font-family: var(--font-sans);
  font-size: 17px;
  line-height: 1.68;
  -webkit-font-smoothing: antialiased;
}
.ds-row { display: flex; align-items: center; gap: var(--space-3); flex-wrap: wrap; }
/* Layout grids with a responsive collapse (see 35-responsive.md). Identical to
   a ds-grid with n equal columns on a desktop. */
.ds-note {
  font-family: var(--font-mono); font-size: 10.5px; font-weight: 400;
  letter-spacing: 0.2em; text-transform: uppercase; color: var(--text-muted);
}

.skip-link {
  position: absolute; inset-inline-start: -9999px;
  background: var(--surface-raised); color: var(--text-on-raised);
  padding: var(--space-3) var(--space-4);
}
.skip-link:focus { inset-inline-start: var(--space-4); }

/* ---------- instrument primitives ---------- */

.underline-rule { height: var(--hairline); background: var(--instrument-strong); transform-origin: left center; }
.on-raised .underline-rule { background: var(--instrument-strong-on-raised); }

.node { width: var(--node-size); height: var(--node-size); position: relative; flex: none; }
.node::before {
  content: ""; position: absolute; inset: 1px;
  border: var(--hairline) solid var(--instrument-strong);
  transform: rotate(45deg);
}
.node::after {
  content: ""; position: absolute; inset: 36%;
  background: var(--accent); transform: rotate(45deg);
}
.on-raised .node::before { border-color: var(--instrument-strong-on-raised); }
.on-raised .node::after { background: var(--accent-on-raised); }
/* The index is a label, not furniture: it names the section it heads, so it
   has to stay readable. instrument-strong is tuned for the theme ground, and a
   raised card is not that ground in either theme. */

/* ---------- motion ---------- */

@keyframes draw-x    { from { transform: scaleX(0); } to { transform: scaleX(1); } }
@keyframes settle-up { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: none; } }
@keyframes settle-x  { from { opacity: 0; transform: translateX(10px); } to { opacity: 1; transform: none; } }
@keyframes settle-in { from { opacity: 0; } to { opacity: 1; } }

/* EVERY accent rule, panel line and nav underline draws left to right. */
.draw-rule { animation: draw-x var(--duration-draw) var(--ease-snap) both; transform-origin: left center; }

.reveal      { animation: settle-up var(--duration-slow) var(--ease-settle) both; }
.reveal--x   { animation: settle-x  var(--duration-slow) var(--ease-settle) both; }
.reveal--fade{ animation: settle-in var(--duration-slow) var(--ease-settle) both; }

/* Delay is beat + step x stagger. The rule is always the first beat, so it
   never waits; content inside .after-rule waits for the rule to land before
   it settles. d1-d4 add stagger steps on top of whichever beat applies. */
.draw-rule, .reveal, .reveal--x, .reveal--fade {
  animation-delay: calc(var(--sweep, 0ms) + var(--beat, 0ms) + var(--step, 0) * var(--duration-stagger));
}
.draw-rule { --beat: 0ms; }
.after-rule { --beat: var(--duration-draw); }

.d1 { --step: 1; }
.d2 { --step: 2; }

@media (prefers-reduced-motion: reduce) {
  /* The paused frames inside a Motion card's filmstrip are exempt: they never
     move, and collapsing their durations would make all six frames identical. */
  :not(:is(.mo-strip) *),
  :not(:is(.mo-strip) *)::before,
  :not(:is(.mo-strip) *)::after {
    animation-duration: 0.01ms !important;
    animation-delay: 0ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

/* ---------- preview helpers ---------- */

.demo { display: grid; gap: var(--space-8); }

/* ---------- surfaces ---------- */

 .on-raised { background: var(--surface-raised); color: var(--text-on-raised); }
.on-raised a { color: var(--link-on-raised); }
.on-raised .ds-note { color: var(--text-on-raised-muted); }

/* ---------- links ---------- */

.link {
  color: var(--link); text-decoration: underline;
  text-underline-offset: 0.2em; text-decoration-thickness: var(--hairline);
  transition: color var(--duration-fast) var(--ease-mechanical),
              text-decoration-thickness var(--duration-fast) var(--ease-mechanical);
}
.link:hover { color: var(--link-hover); text-decoration-thickness: 2px; }
.link:visited { color: var(--link-visited); }
.on-raised .link { color: var(--link-on-raised); }
.link--external::after {
  content: ""; display: inline-block;
  width: 0.74em; height: 0.74em;
  margin-inline-start: 0.3em; vertical-align: -0.04em;
  background: currentColor;
  -webkit-mask: var(--icon-external) no-repeat center / contain;
  mask: var(--icon-external) no-repeat center / contain;
}

/* ---------- section opener ---------- */

.section-opener { margin-block-end: var(--space-6); }
.section-opener__head { display: flex; align-items: center; gap: var(--space-3); margin-block-end: var(--space-3); }
.section-opener .section-number {
  font-family: var(--font-mono); font-size: 11px; font-weight: 500;
  letter-spacing: 0.24em; text-transform: uppercase; color: var(--accent);
}
.rule-accent {
  border: 0; height: var(--border-accent); background: var(--rule-accent);
  width: var(--space-16); margin: 0 0 var(--space-6) 0;
  transform-origin: left center;
}

/* ---------- buttons ---------- */

.btn {
  position: relative;
  display: inline-flex; align-items: center; justify-content: center;
  gap: var(--space-2);
  font-family: var(--font-sans); font-size: 15px; font-weight: 600;
  letter-spacing: 0.01em; line-height: 1.2;
  box-sizing: border-box; min-height: var(--control-md);
  padding: 10px 18px;
  border: var(--border-control) solid transparent;
  border-radius: 0; cursor: pointer; text-decoration: none;
  transition: background-color var(--duration-fast) var(--ease-mechanical),
              border-color var(--duration-fast) var(--ease-mechanical),
              color var(--duration-fast) var(--ease-mechanical),
              transform var(--duration-fast) var(--ease-mechanical);
}
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: translateY(1px); }
.btn--primary { background: var(--brand); color: var(--on-brand); }
.btn--primary:hover { background: var(--brand-strong); }
.btn--quiet { background: none; border-color: transparent; color: var(--link); padding-inline: var(--space-3); }
.btn--quiet:hover { color: var(--link-hover); background: var(--surface-subtle); }
.btn--sm { min-height: var(--control-sm); padding: 6px 12px; font-size: 13px; }
.btn--lg { min-height: var(--control-lg); padding: 12px 22px; font-size: 16px; }
.on-raised .btn--quiet { color: var(--link-on-raised); }
.on-raised .btn--quiet:hover { background: var(--wash-on-raised); }
.on-raised .btn--primary { background: var(--brand-on-raised); color: var(--on-brand-on-raised); }
.on-raised .btn--primary:hover { background: var(--brand-strong-on-raised); }

/* ---------- tags ---------- */

.tag {
  display: inline-flex; align-items: center; gap: var(--space-1);
  font-family: var(--font-mono); font-size: 10.5px; font-weight: 400;
  letter-spacing: 0.2em; text-transform: uppercase;
  padding: var(--space-1) var(--space-2);
  border: var(--hairline) solid transparent; border-radius: 0;
  background: var(--brand-soft); color: var(--text-strong);
}
.tag--venue { background: var(--surface-subtle); color: var(--text-strong); border-color: var(--rule); letter-spacing: 0.14em; }
.on-raised .tag { background: var(--fill-on-raised); color: var(--text-on-raised); }
.on-raised .tag--venue { background: var(--wash-on-raised); color: var(--text-on-raised); border-color: var(--rule-on-raised); }

.tag--button {
  /* a filter chip is a control: sans, sentence case, as every control is. Mono stays for its count. */
  font-family: var(--font-sans); font-size: 13.5px; font-weight: 600; letter-spacing: 0.01em; text-transform: none;
  padding: 5px var(--space-3); line-height: 1.3;
  cursor: pointer; border-color: var(--rule-strong); background: var(--surface);
  transition: border-color var(--duration-fast) var(--ease-mechanical),
              background-color var(--duration-fast) var(--ease-mechanical),
              color var(--duration-fast) var(--ease-mechanical),
              transform var(--duration-fast) var(--ease-mechanical);
}
.tag--button:hover { transform: translateY(-1px); border-color: var(--selected, var(--brand)); color: var(--selected, var(--brand)); }
.tag--button[aria-pressed="true"] { background: var(--selected, var(--brand)); color: var(--on-selected, var(--on-brand)); border-color: var(--selected, var(--brand)); }
.tag__count { font-family: var(--font-mono); font-size: 0.82em; font-weight: 400; letter-spacing: 0.04em; font-variant-numeric: tabular-nums; color: var(--text-muted); }
.tag--button[aria-pressed="true"] .tag__count { color: inherit; opacity: 0.78; }

/* Subject tags are neutral by default: on wray.ai, the Lab and Belief Space every topic is the
   same quiet box, and the colour on a page stays white, ink, navy and the red mark. The tints
   are for the apps, where a person filters by them: put .tags--tinted on the list or the app. */
.tag--ai, .tag--robotics, .tag--planning, .tag--learning, .tag--perception, .tag--navigation, .tag--systems, .tag--theory {
  background: var(--surface-subtle); color: var(--text-soft); border-color: var(--rule);
}
.on-raised :is(.tag--ai, .tag--robotics, .tag--planning, .tag--learning, .tag--perception, .tag--navigation, .tag--systems, .tag--theory) {
  background: var(--wash-on-raised); color: var(--text-on-raised-soft); border-color: var(--rule-on-raised);
}
/* Six tints by position, for tag vocabularies that are not research subjects (tasks, clients),
   always tinted. hue-7 repeats the planning violet (theory shares it now) and hue-8 is the
   neutral. Wray.tagTint(name) picks one of the first seven, so it never lands on the neutral. */

/* ---------- status ---------- */

.status { display: inline-flex; align-items: center; gap: var(--space-2); font-size: 13px; font-weight: 600; letter-spacing: 0.01em; }

/* ---------- card ---------- */

.card {
  position: relative;
  background: var(--surface-raised); color: var(--text-on-raised);
  border: var(--hairline) solid var(--rule-on-raised);
  border-radius: 0; padding: var(--space-6);
  box-shadow: var(--shadow-none);
  transition: box-shadow var(--duration-base) var(--ease-mechanical),
              transform var(--duration-base) var(--ease-mechanical),
              border-color var(--duration-fast) var(--ease-mechanical);
}
.card--float { box-shadow: var(--shadow-md); border-color: transparent; }
.card--panel { padding: var(--space-8); }

/* ---------- callout ---------- */

/* ---------- fields ----------
   An <input> cannot carry pseudo-elements, so the brackets live on a wrapper. */

.field { display: block; }
.field__label { display: block; font-size: 15px; font-weight: 600; letter-spacing: 0.01em; margin-block-end: var(--space-2); }
.field__box { display: block; }
.field__control {
  display: block; width: 100%; box-sizing: border-box;
  min-height: var(--control-md);
  padding: var(--space-3);
  font-family: var(--font-sans); font-size: 15px; line-height: 1.4;
  color: var(--text); background: var(--surface);
  border: var(--border-control) solid var(--rule-strong);
  border-radius: 0;
  transition: border-color var(--duration-fast) var(--ease-mechanical);
}
.field__control::placeholder { color: var(--text-disabled); }
.field__box:hover .field__control { border-color: var(--text-muted); }
.field__control:focus { border-color: var(--act); }
.on-raised .field__control:focus { border-color: var(--act-on-raised); }
.field__help { display: block; font-size: 13px; line-height: 1.5; color: var(--text-muted); margin-block-start: var(--space-2); }
.on-raised .field__control { background: var(--surface-raised); border-color: var(--rule-strong-on-raised); color: var(--text-on-raised); }
.on-raised .field__help { color: var(--text-on-raised-muted); }

/* ---------- checkbox, radio, checklist ---------- */

 .radio {
  appearance: none; -webkit-appearance: none;
  width: var(--checkbox); height: var(--checkbox);
  flex: none; box-sizing: border-box;
  /* optically centred on the first line of its label: (line-box - box) / 2 */
  margin: calc((22.5px - var(--checkbox)) / 2) 0 0 0;
  border: var(--border-control) solid var(--rule-strong);
  background: var(--surface); cursor: pointer;
  display: grid; place-items: center;
  transition: border-color var(--duration-base) var(--ease-mechanical);
}
.radio { border-radius: var(--radius-full); }
 .on-raised .radio { background: var(--surface-raised); border-color: var(--rule-strong-on-raised); }

.radio::before {
  content: ""; display: block;
  width: 7px; height: 7px; border-radius: var(--radius-full); background: var(--act);
  transform: scale(0); opacity: 0;
  transition: transform var(--duration-base) var(--ease-mechanical), opacity var(--duration-base) var(--ease-mechanical);
}
.radio:checked { border-color: var(--act); }
.radio:checked::before { transform: scale(1); opacity: 1; }
.on-raised .radio:checked { border-color: var(--act-on-raised); }
.on-raised .radio:checked::before { background: var(--act-on-raised); }

/* Parent of a sub-list: the inner square IS the meter for its children.
   Centred by place-items, and filling bottom-up. */

/* ---------- toggle ----------
   Track inner width = two knob squares plus two gaps, so the knob is centred
   in both seats and travels exactly one knob-width. */

.toggle { display: inline-flex; align-items: center; gap: var(--space-3); min-height: var(--tap-min); cursor: pointer; }

/* ---------- slider ---------- */

/* ---------- progress ---------- */
/* The scan layer spans the whole track, so translateX(--scan-travel) is a share
   of the track, not of the 2px mark: the mark it carries lands on the fill's end.
   (When the layer was the mark itself, 58% of 2px moved it about one pixel.) */
/* The mark is a 2px cut of the ground travelling through the fill — the same
   2px surface gap that separates stacked segments. A brightened fill colour was
   tried and was close to invisible on the dark accent. */

/* ---------- timeline ----------
   The spine starts at the centre of the first dot, never above it. */

.timeline { --dot-centre: calc((16.8px - var(--dot)) / 2 + var(--dot) / 2 + var(--hairline)); list-style: none; margin: 0; padding: 0; position: relative; }
.timeline::before {
  content: ""; position: absolute;
  inset-block-start: var(--dot-centre);
  inset-block-end: var(--space-2);
  /* centred on the dot's outer box: dot + two hairline borders */
  inset-inline-start: calc(var(--dot) / 2 + var(--hairline) / 2);
  width: var(--hairline); background: var(--instrument);
}
.on-raised .timeline::before { background: var(--instrument-on-raised); }
.timeline__item { position: relative; padding-inline-start: var(--space-8); padding-block-end: var(--space-6); }
.timeline__item:last-child { padding-block-end: 0; }
.timeline__dot {
  position: absolute; inset-inline-start: 0;
  inset-block-start: calc((16.8px - var(--dot)) / 2);
  width: var(--dot); height: var(--dot);
  border: var(--hairline) solid var(--status-idle);
  background: var(--surface);
}
.on-raised .timeline__dot { background: var(--surface-raised); }
.timeline__item--done    .timeline__dot { background: var(--status-done);    border-color: var(--status-done); }
.timeline__item--active  .timeline__dot { background: var(--status-active);  border-color: var(--status-active); }
.on-raised .timeline__item--done    .timeline__dot { background: var(--status-done-on-raised);  border-color: var(--status-done-on-raised); }
.on-raised .timeline__item--active  .timeline__dot { background: var(--status-active-on-raised); border-color: var(--status-active-on-raised); }
.timeline__date { display: block; margin-block-end: var(--space-2); }
.timeline__title { font-family: var(--font-serif); font-size: 18px; font-weight: 600; line-height: 1.4; margin: 0 0 var(--space-1) 0; color: inherit; }
.timeline__body { font-size: 15px; line-height: 1.62; margin: 0; color: var(--text-soft); }
.on-raised .timeline__body { color: var(--text-on-raised-soft); }

/* BEGIN TASKS CSS (generated by gen/build_tasks.py from src/) */
/* ---------- the task family: shared pieces ----------
   One drawer frame, one date field, one priority mark, used by TaskTracker,
   TaskCalendar, TaskAnalytics and TaskGoals. */

/* the side sheet: slides from the end edge over a scrim, on ease-in-out, and back the same way */

/* priority: an icon, never a colour alone. High is the strongest ink; low the quietest. */

/* ---------- date field ----------
   A typed ISO field with a button that opens the Monday-first month grid
   beneath it. The grid is the DatePicker, floated. */
.datefield__pop[hidden] { display: none; }

/* ---------- task tracker ----------
   Built from rules, like the publication list: one tight line per task, a
   hairline between them, so a month of work reads at a glance. The whole row
   opens the task's drawer; only the checkbox and the expander sit above that. */
.tasks { list-style: none; margin: 0; padding: 0; border-block-end: var(--hairline) solid var(--rule); }
.task__expand[aria-expanded="true"] .icon { transform: rotate(90deg); }
/* the title's hit area stretches over the whole row */
/* small counts beside the title: subtasks done, a habit's run */
/* the project, in its area's colour square, the ProjectTimeline's mark */
/* a task that has just changed group says where it went */
/* subtasks open beneath their task, indented to its title, a quieter line each */
/* on a narrow screen, or in a narrow column, category, status and date drop to a second line */

/* ---------- the task drawer ---------- */
/* the name edits in place: display type, a rule that darkens on hover and focus */
.tt__prio .segmented__item[aria-pressed="true"] .prio { color: var(--on-selected-on-raised); }
.on-raised .segmented__item[aria-pressed="true"] { background: var(--selected-on-raised); color: var(--on-selected-on-raised); }

/* status as clickable process steps: the steps before the chosen one read as passed */
/* Done is the end of the line: its mark fills like the rest */

/* a repeating task: the next occurrence, and the recent run as a strip of squares */

/* repetition controls */
.tt__wday[aria-pressed="true"] { background: var(--selected-on-raised); border-color: var(--selected-on-raised); color: var(--on-selected-on-raised); }

/* subtasks: a checklist whose lines edit in place */

/* projects: each in its area's square, like the timeline's drawer eyebrow */

/* time blocks: day, start and end, each a typed field */

/* tags: tinted chips with a remove control, an input, and suggestions */
/* a drawer in a narrow host stacks its two-up fields */
@media (max-width: 719px) {
  /* the drawer takes the whole width, and its two-up fields stack */
}

/* ---------- task calendar ----------
   Days as columns from midnight to midnight on an hour rule. The connected
   calendars run down each day's start edge as vertical text; tasks are blocks
   in their area's colour, the ProjectTimeline's bar at the scale of an hour. */
.tcal__cals .tag--button[aria-pressed="true"] { background: var(--surface); color: var(--text-strong); border-color: var(--rule-strong); }
.tcal__cals .tag--button[aria-pressed="false"] { color: var(--text-muted); }
.tcal__cals .tag--button[aria-pressed="false"] .tcal__sw { background: none !important; }
/* the connected calendars: a strip down the day's start edge, events as vertical text */
/* the tasks: a lane beside the strip, blocks laid in lanes where they overlap */
/* now: an accent rule across today with a square at its start */
/* entrance: blocks settle in by column on first draw; paging slides the days in from the side it came */

/* the tray: open tasks with no time blocked yet */

/* a connected calendar's event, read-only in the drawer */

/* ---------- plots drawn from data ----------
   A goal range is one mark everywhere: a dashed band in a wash of
   status-done. A value in it, short of it or past it takes status-done,
   status-pending or status-blocked, and is named in words beside it. */
/* the bucket still filling — this week, today — is hatched: it is a reading so far, not a result */

/* ---------- dial ----------
   GaugeSemi's dial with a goal range and a set point. The arc sweeps to its
   value on ease-snap and the figure counts to it over duration-count; the
   colour is a state change, so it moves on ease-mechanical over duration-fast. */
/* The arc and its labels scale with the svg; the readout is HTML, so it scales with the dial's own width
   (cqw of the 248-unit frame) and keeps GaugeSemi's sizes at full size. */

/* ---------- task analytics ----------
   A page of measures, each a plot card: what it counts, over what, and its
   goal range. The page is for asking questions quickly, so adding a measure,
   changing one and taking one away are all one step, and all undoable. */
/* a card arrives by settling in, and leaves by folding away */
/* the undo notice sits at the page's end edge until it times out */
.tan__toast[hidden] { display: none; }

/* the editor */
.on-raised .tan__chips .tag--button[aria-pressed="true"] { background: var(--selected-on-raised); border-color: var(--selected-on-raised); color: var(--on-selected-on-raised); }
/* on a page, the editor and the review sheet hold to the viewport, not the page's length */

/* ---------- task goals ----------
   A week's review page, read top to bottom on a Sunday night: the week's
   standing, each goal as a range bar, the habits day by day, twelve weeks
   as a grid of squares, and how well the ranges have been set. */

/* goals: status, name, the range bar, the number, the week's days, edit */

/* habits: seven squares a row, Monday first */

/* the longer view: goals by week, as squares carrying their glyph */

/* how well the goals were set */

/* the review drawer */

/* ---------- notes: the PARA vault ----------
   The categories down the start edge, the note filling the rest. A note is
   read in live preview: every line rendered, the line being edited in its
   Markdown, in mono on a faint wash, so it is always clear which is which. */
.nts [aria-expanded="true"] > .icon:first-child { transform: rotate(90deg); }

/* ---------- the editor ---------- */

/* properties */
.np__head[aria-expanded="true"] .icon { transform: rotate(90deg); }

/* the text, a line at a time */
/* a project's three sections read as the page's own sections: a rule above, the name in display type */
/* the line being edited shows its Markdown, in mono on a faint wash */
.nta__toast[hidden] { display: none; }

/* the template chooser */

/* In a narrow column — a pane, a split view, a phone — the note tightens by its own width, not the window's. */
/* narrower still, each property's name sits over its value */
/* END TASKS CSS */

/* ---------- publications ---------- */

.pubs { list-style: none; margin: 0; padding: 0; }
/* Compact: hundreds of entries must scan on one page. Meta on the start side,
   the work beside it, tags and links on one quiet line under the authors. */
.pub { display: grid; grid-template-columns: 120px minmax(0, 1fr); gap: var(--space-5); padding-block: var(--space-3); border-block-start: var(--hairline) solid var(--rule); }
.pub:first-child { border-block-start: 0; padding-block-start: 0; }
.pub__meta { display: flex; flex-direction: column; gap: 4px; align-items: flex-start; padding-block-start: 3px; }
.pub__year { font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.08em; font-variant-numeric: tabular-nums; color: var(--text-strong); line-height: 1.2; }
.pub__title { font-family: var(--font-serif); font-size: 16.5px; font-weight: 600; line-height: 1.35; margin: 0 0 2px 0; }
.pub__authors { font-size: 14px; line-height: 1.5; color: var(--text-muted); margin: 0 0 6px 0; }
.pub__authors b { color: var(--text-strong); font-weight: 700; }
.pub__line { display: flex; flex-wrap: wrap; align-items: center; gap: 4px var(--space-4); }
.pub__tags { display: flex; gap: 4px; flex-wrap: wrap; }
.pub__links { display: flex; gap: var(--space-3); }
.pub__links .link { font-size: 12.5px; }
.pub .tag { font-size: 9px; letter-spacing: 0.14em; padding: 1px 5px; line-height: 1.5; }
.pub .status { font-size: 11.5px; gap: 4px; }
@media (max-width: 479px) { .pub { grid-template-columns: 1fr; gap: var(--space-2); } }

/* ---------- person ---------- */

.person { text-align: start; display: block; }

/* ---------- stats ---------- */

/* four to a row at most: a fifth figure wraps, and a second row is a sign the row needs cutting */
.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(max(150px, calc((100% - 3 * var(--space-6)) / 4)), 1fr)); gap: var(--space-6); }
.stat { position: relative; padding-block-start: var(--space-4); }
.stat__value { font-family: var(--font-mono); font-size: 38px; font-weight: 300; letter-spacing: -0.01em; font-variant-numeric: tabular-nums; line-height: 1; color: var(--text-strong); display: block; }
.stat__line { margin-block-start: var(--space-3); }
/* A raised card is not the page ground, so a stat inside one takes the
   on-raised ink, which follows the card in both themes. */
.on-raised .stat__value { color: var(--text-on-raised); }
.stat__label { display: block; margin-block-start: var(--space-3); }

/* ---------- table ---------- */

/* ---------- header / footer ---------- */

.site-header {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 0 var(--space-6);
  container: masthead / inline-size;
  min-height: var(--header-height);
  border-block-end: var(--hairline) solid var(--rule);
  background: var(--surface);
}
.site-header__mark { font-family: var(--font-display); font-size: 26px; color: var(--text-strong); text-decoration: none; letter-spacing: -0.008em; white-space: nowrap; flex: none; }

.site-nav { display: flex; flex: none; max-width: 100%; gap: var(--space-6); align-items: center; flex-wrap: nowrap; }
/* The nav is one piece and never wraps inside itself. The masthead lays out the
   name and the nav with space-between: while both fit on one line the name is at
   the start and the links at the end; only when they no longer fit does the nav
   drop, whole, to the next line — where, alone on its line, space-between puts it
   at the start, beneath the name. The decision follows the content, not a
   breakpoint. If the nav alone is wider than the masthead, it scrolls sideways,
   its trailing edge fading until it is scrolled to the end. */
.bs-header .site-nav { margin-inline-start: auto; }
/* before the links give up their place beside the name, the masthead tightens */
@container masthead (max-width: 720px) {
  .site-nav { gap: var(--space-4); }
  .site-header__mark { font-size: 22px; }
}
@container masthead (max-width: 460px) {
  .site-nav {
    flex: 1 1 100%; gap: var(--space-5);
    overflow-x: auto; scrollbar-width: none; scroll-snap-type: x proximity;
    -webkit-mask-image: linear-gradient(to right, #000 calc(100% - var(--nav-fade)), transparent);
    mask-image: linear-gradient(to right, #000 calc(100% - var(--nav-fade)), transparent);
    animation: nav-edge linear both; animation-timeline: scroll(self inline);
  }
  .site-nav::-webkit-scrollbar { display: none; }
  .site-nav .site-nav__link { flex: none; scroll-snap-align: start; }
}

/* phone nav edge fade (used only inside the phone rules): 0 unless the row overflows */
@property --nav-fade { syntax: '<length>'; inherits: false; initial-value: 0px; }
@keyframes nav-edge { from { --nav-fade: 32px; } 92% { --nav-fade: 32px; } to { --nav-fade: 0px; } }
.site-nav__link {
  font-size: 15px; font-weight: 600; letter-spacing: 0.01em;
  color: var(--text); text-decoration: none; padding-block: var(--space-2);
  position: relative; white-space: nowrap;
  transition: color var(--duration-fast) var(--ease-mechanical);
}
.site-nav__link::after {
  content: ""; position: absolute; inset-inline: 0; inset-block-end: 0;
  height: var(--border-accent); background: var(--rule-accent);
  transform: scaleX(0); transform-origin: left center;
  transition: transform var(--duration-base) var(--ease-snap);
}
.site-nav__link:hover { color: var(--link); }
.site-nav__link:hover::after { transform: scaleX(1); }
.site-nav__link--active { color: var(--text-strong); }
.site-nav__link--active::after { transform: scaleX(1); animation: draw-x var(--duration-draw) var(--ease-snap) both; }

.site-footer { border-block-start: var(--hairline) solid var(--rule); padding-block-start: var(--space-6); }
.site-footer__routes { display: flex; flex-direction: column; gap: var(--space-2); }

/* ---------- hero ---------- */

.hero { display: grid; gap: var(--space-8); }
.hero__name { font-family: var(--font-display); font-weight: 400; font-size: 76px; line-height: 0.98; letter-spacing: -0.012em; margin: 0 0 var(--space-3) 0; max-width: 20ch; }
.hero__eyebrow { color: var(--text-muted); display: block; margin: 0 0 var(--space-6) 0; }
/* an affiliation that links is a link like any other: evergreen, underlined */
.hero__eyebrow a { color: var(--link); text-decoration-line: underline; text-decoration-thickness: var(--hairline); text-underline-offset: 0.35em; transition: color var(--duration-fast) var(--ease-mechanical); }
.hero__eyebrow a:hover { color: var(--link-hover); text-decoration-thickness: 2px; }
.hero__lead { font-size: 20px; line-height: 1.6; max-width: 52ch; margin: 0 0 var(--space-6) 0; }
.hero__portrait { width: var(--avatar-lg); aspect-ratio: var(--aspect-square); object-fit: cover; display: block; background: var(--brand-soft); }

/* ---------- cta ---------- */

.cta { display: grid; gap: var(--space-4); }
.cta__title { font-family: var(--font-display); font-size: 42px; font-weight: 400; line-height: 1.08; letter-spacing: -0.008em; margin: 0; max-width: 24ch; }

/* ---------- pricing ---------- */

/* ---------- telemetry ----------
   Live readings from a robot. Every moving part here is driven by a custom
   property that Wray.telemetry(el).set({...}) writes, and follows it over one
   sample interval, linearly: easing a live signal would draw a curve the
   sensor never reported. Colour changes on a threshold take duration-fast on
   ease-mechanical like any other state change. Nothing here moves on its own
   except the two loops the system already allows: the charging scan and the
   searching bar, each of which means work is still running. */

/* joystick: two sticks, two triggers, shoulder and face buttons */   /* dead zone */

/* joint dial: range of travel, value arc from zero, a hand with a dot */
.joint { --joint-color: var(--tel-color); display: flex; align-items: center; gap: var(--space-3); }

/* temperature rows: a scale from --t-min to --t-max, warm and hot zones marked */

/* battery: a horizontal cell, segmented, with a terminal */
/* quarter marks: the same 2px ground cut that separates stacked segments */

/* GNSS: fix badge, sky plot, signal bars */

/* attitude: a horizon that rolls and pitches behind a fixed robot mark */

/* foot contact: gait strip and support polygon */
.support { width: 176px; height: 176px; overflow: visible; }

/* link quality */

/* safety state */
.safety { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: var(--space-3); }

/* ---------- showcase ----------
   A full-width strip of images, side by side, each with one title. Opening one
   collapses the others to slim strips and plays it as a clip, with a panel on
   the side facing the middle. The strip resizes along its own path, so it
   moves on ease-in-out; then the panel's rule draws and its content settles. */
.showcase { --sc-h: 460px; --sc-collapsed: 56px; position: relative; }
/* a scrim under the title only: the image stays untouched above it */
/* the title's rule draws on hover, left to right, like every rule */
/* collapsed: the title turns to run up the strip, in mono */
/* the open clip carries an index and a playback rule, in the instrument register */
/* the panel faces the middle of the strip */
.showcase__info[hidden] { display: none; }

/* ---------- the figure photograph ----------
   A page's photograph beside its words: 3:2 by default, square, and a labelled slot until it exists. */
.figure-photo { margin: 0; display: grid; gap: var(--space-2); }
.figure-photo__img { display: block; width: 100%; aspect-ratio: var(--aspect-figure); object-fit: cover; background: var(--brand-soft); }

/* ---------- semantic map ----------
   A top-down map a person reads and edits: the raw occupancy grid underneath,
   tinted into the palette; zones, objects and landmarks over it; the route, the
   robot and its predicted path on top. World geometry is drawn in metres and
   scales with the zoom; markers and labels are drawn at screen size and do not. */
/* layer chips are quiet switches: a square that fills when the layer is shown */
.smap__layers .tag--button[aria-pressed="true"] { background: var(--surface); color: var(--text-strong); border-color: var(--rule-strong); }
.smap__layers .tag--button[aria-pressed="true"]::before { background: currentColor; }
.smap__layers .tag--button[aria-pressed="false"] { color: var(--text-muted); }

/* map layers — every stroke is a hairline at any zoom */

/* ---------- control panel ----------
   The operator's controls for one robot: mode, actions, switches, the emergency
   stop, and the parameters, edited as a draft and applied together. */
/* the emergency stop: hold to engage, so a brush of the pointer cannot stop a robot mid-task */
.param[hidden] { display: none; }

/* ---------- project timeline ----------
   Projects as bars on a calendar, grouped and coloured by life area. A bar is
   moved by dragging it and resized by dragging either end; it snaps to whole
   days. Clicking one slides out its details. */
.ptl__areas .tag--button[aria-pressed="true"] { background: var(--surface); color: var(--text-strong); border-color: var(--rule-strong); }
.ptl__areas .tag--button[aria-pressed="false"] { color: var(--text-muted); }
.ptl__areas .tag--button[aria-pressed="false"]::before { background: none; }
.ptl__item[aria-expanded="true"] { background: color-mix(in srgb, var(--area) 26%, var(--surface)); box-shadow: inset 0 0 0 1.5px var(--area); }
/* the drawer: slides from the end edge over a scrim, on ease-in-out, and back the same way */

/* ---------- icons ---------- */
.icon { display: inline-block; flex: none; vertical-align: -0.2em; }

/* ---------- documents ----------
   Letterhead: lockup start, a compact identity block end, one red rule.
   Nothing here is large — the mark carries the identity, not the type. */

/* The letter is drawn to US Letter at true proportions. .letter is a size container;
   inside it one inch is 100cqw / 8.5 and one point is 100cqw / 612, so every
   dimension below is the print dimension, at whatever size the page is shown.
   At 816px wide the page is actual size on a 96-dpi screen. */
/* Contact lives at the foot, on one horizontal line, at the bottom of the text block. */

/* =========================================================================
   UI ELEMENTS — the inventory gaps, in the instrument register.
   Dense control rows (tabs, pagination, menu items, calendar days) use
   `bk bk--quiet`: brackets are hidden at rest and appear on hover or focus,
   because a row of twelve permanently bracketed boxes is greeble.
   ========================================================================= */

/* ---------- breadcrumbs ---------- */

/* ---------- tabs ---------- */

/* ---------- segmented control ---------- */
.segmented__item[aria-pressed="true"] { background: var(--selected, var(--brand)); color: var(--on-selected, var(--on-brand)); }

/* ---------- accordion ---------- */
.accordion__trigger[aria-expanded="true"] .accordion__mark::after { transform: translateX(-50%) scaleY(0); opacity: 0; }
.accordion__panel[hidden] { display: none; }

/* ---------- dialog ---------- */
/* static demo stand-in for a real <dialog> */

/* ---------- drawer / side sheet ---------- */

/* ---------- menu / dropdown ---------- */
.split { display: inline-flex; }
.split .btn:first-child { border-inline-end: 0; }
.split .btn:last-child { padding-inline: var(--space-3); }

/* ---------- tooltip / popover ---------- */

/* ---------- toast + banner ---------- */
/* A status inside a toast or banner is a label at the head of a line of prose,
   so it must not wrap: the glyph and its word belong on one baseline. */

/* ---------- pagination ---------- */

/* ---------- process stepper ---------- */
.step { flex: 1; display: flex; flex-direction: column; gap: var(--space-2); position: relative; padding-inline-end: var(--space-4); }

/* ---------- number input ---------- */

/* ---------- search + combobox ---------- */
.search { position: relative; display: block; }
.search__input { padding-inline-start: var(--space-8); }
.search__glyph { position: absolute; inset-inline-start: var(--space-3); inset-block-start: 50%; transform: translateY(-50%); color: var(--instrument-strong); font-family: var(--font-mono); font-size: 13px; pointer-events: none; }
.search__clear { position: absolute; inset-inline-end: var(--space-2); inset-block-start: 50%; transform: translateY(-50%); background: none; border: 0; cursor: pointer; color: var(--text-muted); font-family: var(--font-mono); font-size: 13px; padding: var(--space-1) var(--space-2); }
.search__clear:hover { color: var(--act); }

/* ---------- listbox ---------- */

/* ---------- calendar ---------- */

/* ---------- file upload ---------- */

/* ---------- avatar + badge ---------- */

/* ---------- skeleton + activity ---------- */
/* Pulses between two ink steps. An opacity pulse (0.72 to 1) on ink-100 moved the
   colour by about two RGB units on white and could not be seen. */

/* ---------- empty state ---------- */
.empty { display: grid; place-items: center; gap: var(--space-3); text-align: center; padding: var(--space-16) var(--space-6); border: var(--hairline) dashed var(--instrument); }

/* ---------- table of contents / anchor nav ---------- */

/* ---------- description list ---------- */
.dl { display: grid; grid-template-columns: 1fr 1fr; gap: var(--space-3) var(--space-6); margin: 0; }
.dl dt { font-family: var(--font-mono); font-size: 10.5px; letter-spacing: 0.18em; text-transform: uppercase; color: var(--text-muted); padding-block-start: 3px; }
.dl dd { margin: 0; font-size: 15px; line-height: 1.6; }
@media (max-width: 719px) { .dl { grid-template-columns: 1fr; gap: var(--space-1) 0; } }

/* ---------- scrollbar + back to top ---------- */

/* =========================================================================
   PLOTTING AND DASHBOARD
   Every plot sits on the same grid canvas, uses the same status colours, and
   animates on `ease-snap`. Arcs use pathLength="100" so a value is a percentage
   and `stroke-dasharray` can transition directly.
   ========================================================================= */

/* axes and marks shared by every SVG plot */

/* a plot with axes (Wray.plot): the grid is drawn in the SVG on the axis ticks, not painted behind it */
/* a goal range as a band, and a reference rule — a mean or a set point */

/* ---------- arcs ---------- */

/* ---------- info readout — reused inside gauges, boxes and tiles ---------- */
/* The glyph keeps the 13:22 proportion to the figure at every size. */

/* ---------- status box ---------- */

/* ---------- histogram ---------- */
/* stacked columns: segments sum upward inside one column */
/* a column histogram on axes: y title, numbered y ticks, gridlines on those ticks, the
   columns, the x scale and the x title. The columns fill the area, so a bar at --h: 45%
   stands at 45% of the y axis's top value. */
/* an invisible copy of the widest label sizes the column */
/* the bars take the tick labels' colour on raised grounds too */

/* 100% stacked */
.stack { display: flex; height: 16px; width: 100%; }

/* ---------- instrument gauge centre readout ---------- */
/* Absolutely centred readout for any circular plot — matches the arc's own centre. */

/* ---------- radar ---------- */
/* ---------- ring progress plate ----------
   A solid plate cutting the ring. Everything here is in fixed pixels and the
   SVG is drawn at its viewBox size, so one CSS pixel is one SVG unit and the
   arc's endpoints land exactly on the plate's top and bottom edges. Scale the
   component with --ring-scale, never by stretching the SVG: a percentage-width
   SVG breaks the correspondence and the plate drifts off the arc ends. */
/* the ring and the plate share one grid cell; the plate's left edge is fixed
   against the ring, and the cell grows to the right to hold the readout */
/* the readout starts at the ring's right edge: icon, figure and unit on one baseline, the label beneath */
/* The value arc begins inside the plate: --lead hides its first units, and at
   100% it runs a lead's length past the top edge so that end is flush too. */

/* The step stack: the newest step on top, three rows visible, the third fading
   from full strength at its top edge to nothing at its bottom, so a row leaves
   by fading out before it reaches the plate's edge. */
/* a new step joins the sequence from the right, like a row joining a table;
   the rows below make room by exactly one pitch */
/* a step pushed after the entrance plays at once, whatever the entrance delay was */

/* ---------- plot entrance ----------
   Opt in with .plot-in on a .plot. Every mark is driven to its value on
   ease-snap — the same gesture as a progress fill — while axes, grid, ticks and
   labels are already in place and never move. Delay is beat + step x stagger,
   the same model as the page reveals, and never more than four steps. Not on
   wray.ai, which has no reveal motion. Fill is backwards, not both: once a mark
   has arrived the animation lets go of it, so the settled plot renders exactly as
   a plot that never moved. */
/* A line is drawn, so it takes the rule's duration and wipes from the start edge;
   a wipe keeps a dashed series dashed, where a dash-offset draw would not. */
/* after the shorthands above, which would otherwise reset it */
/* the ring's step stack settles in once the arc has run, top row first */

/* ---------- node graph ---------- */

/* ---------- map ---------- */

/* ---------- world map with live boundaries ----------
   Boundaries are drawn inside a zoomed group; hairlines stay hairlines at any
   zoom, and site markers live outside the group so they keep their size. */
.wmap__msg[hidden] { display: none; }

/* ---------- chart series ----------
   A validated categorical palette, separate from the reserved status colours.
   Fixed order, never cycled. See `Plotting` for the validator results. */

/* 2px surface gap between adjacent fills — the secondary encoding that lets
   two similar hues stay legible where they touch. */

/* Texture fill for the colour-vision, print and forced-colours case.
   Applied as a second layer over a series fill, at 45deg. */

/* ---------- motion reference: the Motion cards ----------
   A filmstrip freezes one real animation at evenly spaced moments. Each frame
   holds the production element with its production class; .mo-at pauses its
   animation and seeks it to --t (0..1) of --mo-dur, so the browser computes
   every frame from the real keyframes, duration and easing tokens. Nothing in a
   frame is hand-positioned. Preview-only: no production page uses these. */

.mo-strip {
  display: grid; grid-template-columns: repeat(var(--frames, 6), minmax(0, 1fr));
  gap: var(--space-2); pointer-events: none;
}

/* The seek. --t and --mo-dur come from the frame and the row. */
/* A state strip shows states rather than moments: live hover is disabled so
   the viewer's own pointer cannot disturb a frame. */

/* Timing chart: bars on a shared millisecond axis. */

@media (max-width: 719px) {
  .mo-strip { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

/* ---------- Belief Space: its header, and its one-page site ----------
   Dark by default: set data-theme="dark" on the page, and let the theme toggle
   move it to light like any other page. The first section carries the header and
   the belief field (Wray.beliefField) behind The Promise; the second steps onto
   surface-subtle for The Evidence; the third holds the raised CTA panel. */
.bs-header {
  display: flex; align-items: center; gap: var(--space-6);
  min-height: var(--header-height);
  background: var(--surface); color: var(--text);
  border-block-end: var(--hairline) solid var(--rule);
}
.bs-header__mark {
  font-family: var(--font-display); font-size: 26px; color: var(--text);
  text-decoration: none; letter-spacing: -0.008em; white-space: nowrap; flex: none;
}
.bs-wrap { width: 100%; max-width: var(--container-wide); margin-inline: auto; padding-inline: var(--gutter-desktop); box-sizing: border-box; }

.bs-hero {
  position: relative; isolation: isolate; overflow: hidden;
  display: flex; flex-direction: column; min-height: 680px;
  background: var(--surface); color: var(--text);
}
.bs-field { position: absolute; inset: 0; z-index: -2; display: block; width: 100%; height: 100%; }
/* A navy scrim under the words: the field never sits at full strength behind text. */
.bs-hero::before {
  content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background:
    linear-gradient(90deg, var(--surface) 0%, color-mix(in srgb, var(--surface) 86%, transparent) 34%, color-mix(in srgb, var(--surface) 20%, transparent) 62%, transparent 80%),
    linear-gradient(0deg, var(--surface) 0%, transparent 18%),
    linear-gradient(180deg, var(--surface) 0%, transparent 20%);
}
.bs-promise { flex: 1; display: flex; flex-direction: column; justify-content: center; padding-block: var(--space-16) var(--space-24); }
.bs-promise .hero__name { color: var(--text); }
.bs-promise .hero__lead { color: var(--text); }
.bs-promise__risk { margin: var(--space-4) 0 0 0; color: var(--text-muted); }

.bs-evidence { background: var(--surface-subtle); color: var(--text); padding-block: var(--space-20) var(--space-24); border-block: var(--hairline) solid var(--rule); }
.bs-evidence__lead { font-size: 20px; line-height: 1.6; max-width: 52ch; margin: 0 0 var(--space-12) 0; color: var(--text); }
.bs-proof { display: grid; grid-template-columns: 1fr 1fr; gap: var(--space-8) var(--space-12); margin-block: var(--space-16) var(--space-16); }
.bs-proof__title { font-family: var(--font-serif); font-size: 21px; font-weight: 600; line-height: 1.3; margin: 0 0 var(--space-4) 0; padding-block-end: var(--space-3); border-block-end: var(--hairline) solid var(--rule); color: var(--text-strong); }
.bs-list { list-style: none; margin: 0; padding: 0; display: grid; gap: var(--space-3); }
.bs-list li { position: relative; padding-inline-start: var(--space-6); font-size: 16px; line-height: 1.55; color: var(--text); }
.bs-list li::before { content: "—"; position: absolute; inset-inline-start: 0; font-family: var(--font-mono); color: var(--instrument-strong); }

.bs-next { background: var(--surface); color: var(--text); padding-block: var(--space-20) var(--space-16); }

/* ==== responsive (generated by gen/responsive.py) ==== */
/* Phone: a touch screen below bp-md (720px). A narrow desktop window, or a
   preview frame on a desktop, keeps the desktop layout. */
@media (max-width: 719px) {
  /* preview chrome gives the content room */
  .demo > * { min-width: 0; }

  /* grids collapse: two and three to one, four to two */

  /* type steps down so a headline word never outruns the screen */
   .hero__name { font-size: 44px; line-height: 1.02; }
  .display-md, .cta__title { font-size: 32px; }
  .h1 { font-size: 28px; }
  .lead, .hero__lead, .bs-evidence__lead { font-size: 18px; }

  /* the masthead keeps its rule from the base stylesheet — links beside the name
     while they fit, beneath it as one scrolling row when they do not; on a phone
     the name steps down so they fit beside it for longer */
  .site-header { column-gap: var(--space-4); }
  .site-header__mark { font-size: 22px; }

  /* rows that must not be squeezed scroll instead */
  .card:not(.card--panel) { padding: var(--space-5); }
  .card--panel { padding: var(--space-6); }
  .cta .ds-row > .btn, .bs-promise .ds-row > .btn { flex: 1 1 100%; }

  /* Motion cards */

  /* Belief Space: the field sits below the words, and the scrim runs top to bottom */
  .bs-wrap { padding-inline: var(--gutter-mobile); }
  .bs-hero { min-height: 0; }
  .bs-promise { padding-block: var(--space-12) var(--space-24); }
  .bs-hero::before {
    background: linear-gradient(180deg, var(--surface) 0%, color-mix(in srgb, var(--surface) 90%, transparent) 50%,
                color-mix(in srgb, var(--surface) 35%, transparent) 78%, transparent 100%);
  }
  .bs-evidence { padding-block: var(--space-12) var(--space-16); }
  .bs-evidence__lead { margin-block-end: var(--space-8); }
  .bs-proof { grid-template-columns: minmax(0, 1fr); margin-block: var(--space-10); }
  .bs-next { padding-block: var(--space-12) var(--space-10); }


  /* SemanticMap: the inspector moves beneath the map; ControlPanel: one column, each
     parameter stacks its description over its control; ProjectTimeline: a narrower name column */

  /* Showcase: the strip stacks; the open item's clip keeps 16:9 and its panel sits beneath it */
}
/* Small phone: a touch screen below bp-sm (480px). */
@media (max-width: 479px) {
   .hero__name { font-size: 38px; }
  .stats { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--space-5); }
}
/* Touch: any width. A mouse never matches, so a desktop never changes. */
@media (pointer: coarse) {
  /* every control a finger can hit is at least tap-min (44px) in both directions that matter */
  .btn:not(.btn--lg) { min-height: var(--tap-min); }
  .site-nav__link { display: inline-flex; align-items: center; min-height: var(--tap-min); padding-block: 0; }
   .search__clear { min-width: var(--tap-min); min-height: var(--tap-min); }
  .tag--button { min-height: 36px; padding-inline: var(--space-3); }
  /* 16px stops a phone zooming the page when a field takes focus */
  .field__control { font-size: 16px; min-height: var(--tap-min); }
}
/* Tablet: a touch screen between bp-md and bp-lg. A narrow desktop window keeps
   the desktop layout, which already holds down to 720px. */
@media (min-width: 720px) and (max-width: 1023px) {
   .hero__name { font-size: 60px; }
  .demo > * { min-width: 0; }
  .bs-wrap { padding-inline: var(--space-8); }
  .bs-hero { min-height: 560px; }

}
/* Demo scopes for the Responsive cards: the same rules, applied by a class. */
/* ==== end responsive ==== */




















/* ---------- themed select ----------
   Wray.select replaces the operating system's menu with this: the field's own
   box as the button, and a floating list in the system's type and inks. The
   native select stays underneath, visually hidden, holding the value. */
.select__list[hidden] { display: none; }

/* BEGIN KIT CSS (generated by gen/build_kit.py from src/kit/) */
/* ---------- page stagger ----------
   One sweep for the whole page: whatever reveals together starts a little later the further it
   sits down and to the right, so a screen of cards settles from the top left to the bottom right.
   Wray.stagger() sets --sweep on each revealing element when it comes into view, and adds
   is-in; until then a reveal waits at its first frame. Every reveal delay in the system already
   adds var(--sweep). The sweep is small: 280ms across a screen, never more than 420ms. */
[data-stagger] :is(.reveal, .reveal--x, .reveal--fade, .draw-rule):not(.is-in),
[data-stagger] :is( [data-reveal]):not(.is-in),
[data-stagger] :is( [data-reveal]):not(.is-in) * {
  animation-play-state: paused;
}
/* An element that only waits for its turn, with no reveal of its own: it fades in. */
[data-reveal]:not(.reveal, .reveal--x, .reveal--fade, .draw-rule, .plot-in) {
  animation: settle-in var(--duration-slow) var(--ease-settle) both;
  animation-delay: var(--sweep, 0ms);
}
/* A replay control for previews and demos. */
@media (prefers-reduced-motion: reduce) {
  [data-stagger] * { animation-play-state: running !important; }
}

/* ---------- sparklines ----------
   A word-sized chart: no axes, no labels, the shape of a series at a glance. Line, area, bars,
   or win/loss; the latest value as a dot; optional min and max dots, a goal band and a limit. */

/* ---------- stat (KPI) ----------
   One figure with its context: a small label above, the number, its change over a stated
   window, and a sparkline of the same window. The change is an arrow, a signed number and a
   colour, in that order of importance: green when it is going the right way, red when it is
   not, grey when it has not moved. Which way is right is the stat's own (fewer faults is good). */
/* side by side: the figure on the start, the sparkline filling the end */

/* ---------- callout kinds ----------
   Note, tip, important, warning, error: a tinted ground in the kind's colour, its symbol at
   the start, a title, the text, and actions if any. Square, and never a start-edge rule: that
   belongs to toasts and banners, which carry a live state. */
/* inline form: the title runs into the text on one line */

/* ---------- badges ----------
   A badge is a count or a small state on something else: unread messages on an app, faults on
   a robot, "new" on a feature. Square, mono, tabular. Navy by default; "new" is navy too, set apart by its UPPERCASE word;
   an alert is outlined in the error colour, never filled red. */
/* a badge beside a label, in the flow (a nav item, a tab, a menu row) */
/* the anchor takes an icon button as well as an avatar */

/* ---------- avatars ----------
   Square portraits, initials or a robot's icon; a presence mark at the foot of the end edge. */
/* presence: a square in a status colour with a surface outline, at the bottom end corner */
/* groups: sizes follow the faces; the outline matches the ground they sit on */
/* a group that names its people: faces in a row with a count, then the names */
/* a person row: face, name, role */

/* ---------- icon button ----------
   A square button that is only an icon: menus, toolbars, the app bar. It always carries an
   aria-label, and a title where a pointer can hover. Quiet at rest; a wash on hover. */
.icon-btn[aria-pressed="true"], .icon-btn[aria-expanded="true"] { background: var(--act-soft); color: var(--act); }
.on-raised .icon-btn[aria-pressed="true"], .on-raised .icon-btn[aria-expanded="true"] { background: var(--act-soft-on-raised); color: var(--act-on-raised); }

/* ---------- keyboard keys and shortcuts ---------- */
/* a hint beside a control: the key in a faint cap */

/* ---------- multi-state toggle ----------
   A switch with more than two positions: Off · Auto · On, Manual · Assisted · Autonomous.
   One track, a square thumb that travels to the chosen position on ease-snap, the labels in
   the track. It is a radio group: arrows move along it. */
.mstoggle {
  --n: 3; --i: 0;
  position: relative; display: inline-grid; grid-auto-flow: column; grid-auto-columns: minmax(0, 1fr);
  border: var(--border-control) solid var(--rule-strong); background: var(--surface-sunken);
  padding: 3px; gap: 0; isolation: isolate; min-width: calc(var(--n) * 76px);
}
.mstoggle::before {
  content: ""; position: absolute; z-index: -1; inset-block: 3px; inset-inline-start: 3px;
  width: calc((100% - 6px) / var(--n));
  background: var(--mst-color, var(--act));
  transform: translateX(calc(var(--i) * 100%));
  transition: transform var(--duration-base) var(--ease-snap), background-color var(--duration-fast) var(--ease-mechanical);
}
.mstoggle__opt { position: relative; display: grid; cursor: pointer; }
.mstoggle__opt input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.mstoggle__label {
  display: flex; align-items: center; justify-content: center; gap: var(--space-2); min-height: 30px; padding: 0 var(--space-3);
  font-size: 13px; font-weight: 600; letter-spacing: 0.01em; color: var(--text-muted); white-space: nowrap;
  transition: color var(--duration-fast) var(--ease-mechanical);
}
.mstoggle__opt:hover .mstoggle__label { color: var(--text-strong); }
.mstoggle__opt input:checked + .mstoggle__label { color: var(--mst-on, var(--on-act)); }
.mstoggle__opt input:focus-visible + .mstoggle__label { outline: var(--border-focus) solid var(--focus); outline-offset: 1px; }
.mstoggle__label .icon { width: 16px; height: 16px; }
/* the chosen position may carry the state's colour */
.mstoggle--sm .mstoggle__label { min-height: 24px; font-size: 12px; padding: 0 var(--space-2); }
.mstoggle--sm { min-width: calc(var(--n) * 56px); }
.on-raised .mstoggle { border-color: var(--rule-strong-on-raised); background: var(--fill-on-raised); }
.on-raised .mstoggle::before { background: var(--mst-color, var(--act-on-raised)); }
.on-raised .mstoggle__label { color: var(--text-on-raised-muted); }
.on-raised .mstoggle__opt:hover .mstoggle__label { color: var(--text-on-raised); }
.on-raised .mstoggle__opt input:checked + .mstoggle__label { color: var(--mst-on, var(--on-act-on-raised)); }
@media (pointer: coarse) { .mstoggle__label { min-height: 38px; } }

/* ---------- theme toggle ----------
   Light · Dark · Auto, as a multi-state toggle with the three icons. A one-button form cycles. */
.theme-toggle .mstoggle__label { padding: 0 var(--space-3); }

/* text for screen readers only */
.visually-hidden { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }

/* ---------- loader ----------
   Two loaders, both inside the motion rules: nothing rotates. A scan runs along a hairline
   (the progress scan, reused), or a row of five nodes lights one after another. Each means work
   with no known end; under reduced motion both stop, and the word carries it. */

/* ---------- meter ----------
   A reading against its scale: temperature, weight, pressure, load, fill. A track with the
   scale's zones beneath it (normal, caution, limit), the value as a bar or as a pointer, ticks
   and their numbers, and the value in words. role="meter" with aria-valuenow. */
/* vertical: a column, value rising, ticks on the end side */

/* ---------- bullet points ----------
   Lists that read as the system: a small square for a plain point, mono numerals for steps,
   a check for what is included, an en dash for a quiet aside, an icon where the point has one. */

/* ---------- status symbols ----------
   One mark per machine state, drawn from the icon set and coloured by its status. A symbol is
   never alone: it sits beside its word, or carries the word as its accessible name. */
/* a state: symbol and word, the word in the state's colour */
/* the state board: the fleet's states grouped by what they ask of a person */

/* ---------- toasts: the region, titles, actions and the timer ---------- */
/* the time left: a hairline along the foot that runs out, and stops while the toast is held */

/* ---------- brand lockups ----------
   The name in plain type, with what it is beside it or beneath it. No logo: the lockup is the
   name, a hairline and a descriptor. The monogram is for the one place a name cannot fit — a
   favicon, an app tile — and nowhere else. */
/* the monogram: initials in a square with a 1.5px edge, sized to its box */

/* ---------- menus for apps: hamburger, bento, apps, actions ----------
   These belong to AppShell, dashboards and tools. The three sites' navigation never folds
   into a menu. Each trigger is an icon button; each menu is the one floating list, anchored
   under its trigger, closed by Esc or a click outside. */
.menu-pop[hidden] { display: none; }

/* the launcher: a bento of apps, three across */

/* an app's icon: its glyph in a square, on the app's own tint */

/* ---------- app grid ----------
   Every app or tool in one place: its icon, its name, a line on what it is for, and a count
   of what is waiting in it. Each tile is the link. */

/* ---------- app shell ----------
   The frame for an app or a dashboard: a black bar across the top (the name at the start, the
   page title in the centre, actions at the end), the pages down the start edge grouped into
   categories, and the content in the centre. Narrow, the nav becomes a drawer behind the
   hamburger; it can also collapse to a rail of icons. */

/* narrow: the nav is a drawer from the start edge, behind the hamburger */

/* ---------- tables: expandable rows with tabs inside ----------
   A row opens beneath itself into a detail: tabs across the top, and in each tab a smaller
   table or a plot. One button per row, at the start; the row's own data never moves. */
 .row-toggle[aria-expanded="true"] .icon:first-child:not(:last-child) { display: none; }
.row-toggle[aria-expanded="true"] .icon:last-child { display: block; }
.row-toggle[aria-expanded="true"] { color: var(--act); }
.table--expandable tr.table__detail[hidden] { display: none; }
.tdetail .tabpanel[hidden] { display: none; }
.on-raised .row-toggle[aria-expanded="true"] { color: var(--act-on-raised); }

/* ---------- process steps: interactive, warning and blocked ---------- */
/* the mark as a button: click a diamond to move to that step */
/* vertical: the steps run down the start edge, the rule as a spine */

/* ---------- event log ----------
   A robot's state changes and log lines, newest at the foot: the time, a symbol for the kind,
   the system or node that said it, and what it said. Filters across the top; it follows the
   tail unless the reader scrolls up, and then says how many lines have arrived. */

/* ---------- emergency stop ----------
   The one control that is always red-filled: a safety convention older than any brand. One press
   stops; releasing takes a deliberate hold. It is never behind a menu, a confirmation, or a
   scroll, and it never moves. */
/* engaged: the button becomes the stopped state and the release */

/* ---------- file upload: refused files, thumbnails, the compact button ---------- */

/* ---------- semantic metric map ---------- */
.smm__drawer[hidden] { display: none; }
/* playback */

/* ---------- robot card ----------
   One robot at a glance: who it is, what state it is in, where, doing what, how much charge and
   how good its link, and the stop. A card for a fleet grid; a row for a fleet list. */
/* a small charge gauge and link bars, for cards and rows */
/* the row form, for a fleet list */

/* ---------- camera feed ----------
   A live picture from the robot with what it knows laid over it: which camera, live or not,
   frame rate and latency, the time, and the detections as boxes with their class and
   confidence. Overlays sit on dark glass; the feed is always on black. */

/* ---------- telemetry overview ---------- */

/* ---------- behaviour tree ---------- */
/* conditions have angled ends, so they read as a question rather than a deed */

/* ---------- roadmap ---------- */
/* an epic: its span, with the part done filled */

/* ---------- charts (Wray.chart) ---------- */
.chart-tip[hidden] { display: none; }
/* entrance, opt in with plot-in */

/* ---------- maps as plots ---------- */
.geo__msg[hidden] { display: none; }

/* ---------- learning systems: plots ---------- */

/* evaluation */

/* a policy at inference */

/* entrance: bands, intervals, ridges and fields settle in once their lines have started */

/* ---------- learning systems: controls shared by the widgets ---------- */

/* training curves */

/* one episode */

/* tokens */

/* saliency */
.mlsal__thumb[aria-pressed="true"] { border-color: var(--text-strong); box-shadow: inset 0 0 0 1px var(--text-strong); }

/* projector */

/* episode gallery */

/* ---------- learning systems: page layouts ---------- */

/* ---------- the Dashboard: a band per tracker, then five lanes ---------- */

/* the lanes: a row per tracker, a column per day (or week), and the five read together at the foot */

/* Customize */

/* a Life app given a height keeps its menu in place and scrolls its page inside, so every tracker and window shows in full */

/* ---------- Money: the accounts, the plan, the jobs, and writing balances ----------
   Liquid is series-1 and illiquid series-2; base, bonus and equity are series-1, 2 and 3.
   The money page shares no plot with the food or the sits, so the series keep one meaning on each page. */
.segmented__item[aria-pressed="true"] .lf-fin__fltv { color: inherit; opacity: 0.8; }

/* the plan */

/* writing balances */

/* import */

/* three dials stay three across until the column is narrow */

/* expenses and the recurring bills */
.lf-ex__chips .tag--button[aria-pressed="true"] { background: var(--selected, var(--brand)); color: var(--on-selected, var(--on-brand)); border-color: var(--selected, var(--brand)); }

/* ---------- lifestyle tracking: CalorieTracker, ExerciseTracker, MindfulnessTracker, HealthTracker ----------
   One frame for all four: the window (day, week, month, year), the streak in the
   top corner, the diamond timeline, then the body. Hairlines, not cards; mono
   for figures; status colour for where a value stands against its range, the
   series colours for carbohydrate, fat, protein, lean mass and fat mass. */
.lf[hidden] { display: none; }

/* ---------- the diamond timeline ---------- */

/* ---------- the body ---------- */

/* standing: glyph and word, in the status colour */

/* ---------- the range track ---------- */

/* ---------- calories: the dial and the sum ---------- */

/* ---------- meals and foods ---------- */

/* ---------- indicators beneath the food ---------- */

/* ---------- stat tiles ---------- */

/* ---------- the plot ---------- */

/* ---------- the spread ---------- */

/* ---------- horizontal bars, tables ---------- */

/* ---------- drawers ---------- */

/* add food */
/* workouts in a drawer */


/* ---------- exercise: the week's tally, the plots, the log ---------- */
/* sleep stages: a ramp from deep to awake, never the series colours */
/* ECG */
/* forms in the drawers */


/* ---------- mindfulness: day boxes, the sessions table, the timer, the month and year ---------- */
.lf-chip[aria-pressed="true"] { background: var(--brand); border-color: var(--brand); color: var(--on-brand); }
.lf-drawer .lf-chip[aria-pressed="true"] { background: var(--brand-on-raised); border-color: var(--brand-on-raised); color: var(--on-brand-on-raised); }


/* ---------- health: the dials, the tiles, what moved, what stood out ---------- */


/* ---------- the day's dials, the span's statistics ---------- */

/* ---------- heatmaps: the month day by day, the year week by week ---------- */
.lf-heat__tip[hidden] { display: none; }

/* ---------- expandable tables ---------- */

/* ---------- narrow ---------- */
/* BEGIN COLLECTION CSS (spliced by work/splice.py from work/src/collection.css) */
/* ---------- CollectionView: the collection, one row per title, and its statistics ----------
   The frame of the life trackers without the window: the category toggles and
   the page switch on the bar, the value in the top corner. Covers are the
   official art when linked, otherwise drawn in the system's tint, square-cornered
   like every box here. Stars are a data mark, filled like the timeline's diamonds. */
.cv { --cv-row: 44px; }

/* the filters */
.cv-sysbtn[aria-pressed="true"] .cv-sw { box-shadow: 0 0 0 1px var(--on-act); }

/* the tints, shared with the tags */

/* a cover: the art, or drawn */

/* the rating: stars as a data mark */

/* the table */

/* the covers */

/* the statistics */

/* the value over time: two lines and a dashed third */

/* the item drawer */
.cv-thumb[aria-pressed="true"] { border-color: var(--text-on-raised); }

/* the life trackers' pieces, on the raised drawer */

/* narrower: columns fold away, then the table becomes a list */
/* END COLLECTION CSS */
/* BEGIN WORK CSS (spliced by work/splice.py from work/src/work.css) */
/* ---------- ProjectTracker and TaskTracker: the frame, dials and tiles of the life trackers; projects and tasks in their category colours ---------- */
/* progress: tasks done as a bar, the time gone as a tick */
/* the measures in Edit targets */
/* END WORK CSS */
/* END KIT CSS */

/* BEGIN BLACK (generated by gen/black.py from tokens.json) */
/* Black bars and breaks. Inside any of these scopes every colour token takes its dark-theme
   value, and the grounds become black: surface is surface-black, a card on it is
   surface-black-raised. So whatever sits on black (a nav, a link, a button, a status, a chart)
   reads as it does at night, in every theme. The red stays a mark (the active link's
   underline), links and the focus ring are light evergreen, the selected state is pale navy,
   and the primary button turns white. */
.on-black,
.site-header--black,
.bs-header--black,
.site-footer--black,
.band--black,
.image-stage--fade {
  color-scheme: dark;
  --surface: var(--navy-950);
  --surface-subtle: var(--navy-925);
  --surface-raised: var(--navy-900);
  --surface-sunken: var(--navy-975);
  --surface-inverse: var(--navy-100);
  --glass-light: #ffffffd1;
  --glass-dark: #050608b8;
  --glass-edge-light: #ffffffa6;
  --glass-edge-dark: #ffffff2e;
  --image-fade: var(--ink-975);
  --scrim: var(--navy-975);
  --text: var(--navy-100);
  --text-muted: var(--navy-300);
  --text-soft: var(--navy-200);
  --text-strong: var(--navy-050);
  --text-on-raised: var(--navy-100);
  --text-on-raised-muted: var(--navy-300);
  --text-on-raised-soft: var(--navy-200);
  --text-on-raised-faint: var(--navy-400);
  --text-on-inverse: var(--navy-950);
  --text-disabled: var(--navy-400);
  --link: var(--evergreen-350);
  --link-hover: var(--evergreen-300);
  --link-visited: var(--evergreen-300);
  --link-on-raised: var(--evergreen-350);
  --accent-on-raised: var(--oxblood-350);
  --act-on-raised: var(--navy-100);
  --act-strong-on-raised: var(--white);
  --act-soft-on-raised: var(--navy-800);
  --on-act-on-raised: var(--navy-950);
  --accent: var(--oxblood-350);
  --accent-muted: var(--oxblood-400);
  --act: var(--navy-100);
  --act-strong: var(--white);
  --act-soft: var(--navy-800);
  --on-act: var(--navy-950);
  --selected: var(--navy-100);
  --on-selected: var(--navy-950);
  --brand: var(--navy-050);
  --brand-strong: var(--white);
  --brand-soft: var(--navy-800);
  --on-brand: var(--navy-950);
  --brand-on-raised: var(--navy-100);
  --brand-strong-on-raised: var(--white);
  --on-brand-on-raised: var(--navy-950);
  --rule: var(--navy-700);
  --rule-strong: var(--navy-450);
  --rule-accent: var(--oxblood-350);
  --rule-on-raised: var(--navy-600);
  --rule-strong-on-raised: var(--navy-450);
  --wash-on-raised: var(--navy-800);
  --fill-on-raised: var(--navy-700);
  --fill-strong-on-raised: var(--navy-600);
  --selected-on-raised: var(--navy-100);
  --on-selected-on-raised: var(--navy-950);
  --focus: var(--evergreen-350);
  --focus-on-raised: var(--evergreen-350);
  --instrument: var(--ice-500);
  --instrument-strong: var(--ice-300);
  --instrument-soft: var(--ice-900);
  --instrument-on-raised: var(--ice-500);
  --instrument-strong-on-raised: var(--ice-300);
  --success: var(--teal-300);
  --warning: var(--amber-300);
  --danger: var(--crimson-300);
  --danger-on-raised: var(--crimson-300);
  --info: var(--azure-300);
  --trend-good: var(--teal-300);
  --trend-bad: var(--crimson-300);
  --trend-flat: var(--navy-300);
  --trend-good-on-raised: var(--teal-300);
  --trend-bad-on-raised: var(--crimson-300);
  --trend-flat-on-raised: var(--navy-300);
  --status-done: var(--teal-300);
  --status-active: var(--azure-300);
  --status-pending: var(--amber-300);
  --status-blocked: var(--crimson-300);
  --status-planned: var(--indigo-300);
  --status-idle: var(--navy-300);
  --status-done-on-raised: var(--teal-300);
  --status-active-on-raised: var(--azure-300);
  --status-pending-on-raised: var(--amber-300);
  --status-blocked-on-raised: var(--crimson-300);
  --status-planned-on-raised: var(--indigo-300);
  --status-idle-on-raised: var(--navy-300);
  --cat-ai-soft: #103760;
  --cat-ai-ink: #8cb7e2;
  --cat-robotics-soft: #0c4139;
  --cat-robotics-ink: #86c4b1;
  --cat-planning-soft: #372860;
  --cat-planning-ink: #bca5e2;
  --cat-learning-soft: #562e19;
  --cat-learning-ink: #e4ac88;
  --cat-perception-soft: #482347;
  --cat-perception-ink: #d29ec2;
  --cat-navigation-soft: #223524;
  --cat-navigation-ink: #a2b496;
  --cat-systems-soft: var(--navy-800);
  --cat-systems-ink: var(--navy-200);
  --cat-theory-soft: var(--cat-planning-soft);
  --cat-theory-ink: var(--cat-planning-ink);
  --series-1: #4f95df;
  --series-2: #d67428;
  --series-3: #26a683;
  --series-4: #9d7fe4;
  --series-5: #8fc07a;
  --series-6: #d263ac;
  --area-academic: var(--series-1);
  --area-entertainment: var(--series-2);
  --area-life: var(--series-3);
  --area-misc: var(--series-5);
  --area-personal: var(--series-4);
  --area-professional: var(--series-6);
  --shadow-none: none;
  --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.45);
  --shadow-md: 0 4px 14px rgba(0, 0, 0, 0.5);
  --shadow-lg: 0 12px 36px rgba(0, 0, 0, 0.6);
  --surface: var(--surface-black);
  --surface-subtle: var(--surface-black-subtle);
  --surface-sunken: var(--ink-975);
  --surface-raised: var(--surface-black-raised);
  --rule: var(--rule-black);
  --bar-gutter: var(--gutter-desktop);
  background-color: var(--surface);
  color: var(--text);
}

/* The bars run edge to edge; their contents line up with the wide container. */
.site-header--black, .site-footer--black {
  padding-inline: max(var(--bar-gutter), calc((100% - var(--container-wide)) / 2 + var(--bar-gutter)));
  box-sizing: border-box;
}
/* a black bar meets the page on a hairline only where the page is dark too */
:is(.site-header--black, .bs-header--black) { border-block-end: 0; box-shadow: inset 0 calc(-1 * var(--hairline)) 0 var(--rule-black); }
:is(.site-header--black, .bs-header--black) .site-nav__link { color: var(--text-muted); }

.site-footer--black { border-block-start: 0; padding-block: var(--space-12) var(--space-10); }
.site-footer--black .ds-note { color: var(--text-muted); }
/* the footer's last line: a thin black strip of its own under the routes */
.site-footer__base {
  display: flex; flex-wrap: wrap; gap: var(--space-2) var(--space-6); justify-content: space-between; align-items: baseline;
  margin-block-start: var(--space-8); padding-block-start: var(--space-5);
  border-block-start: var(--hairline) solid var(--rule);
  font-family: var(--font-mono); font-size: 10.5px; letter-spacing: 0.2em; text-transform: uppercase; color: var(--text-muted);
}
.site-footer__base a { color: inherit; text-decoration: none; }
.site-footer__base a:hover { color: var(--link); text-decoration: underline; }

/* The black break: a full-width band between two sections. Its contents line up with the
   wide container, as the bars' do. */
.band {
  padding-block: var(--space-16);
  padding-inline: max(var(--bar-gutter, var(--gutter-desktop)), calc((100% - var(--container-wide)) / 2 + var(--bar-gutter, var(--gutter-desktop))));
  box-sizing: border-box;
}
/* where the page is dark too, a hairline marks the band's edges */
.band--black { box-shadow: inset 0 var(--hairline) 0 var(--rule-black), inset 0 calc(-1 * var(--hairline)) 0 var(--rule-black); }

/* A black band inside a card: it runs to the card's edges. At the top of a card it is the
   card's head; between two parts it is a break; at the foot it holds the card's actions. */
.card { --card-pad: var(--space-6); }
.card--panel { --card-pad: var(--space-8); }

@media (max-width: 719px) {
  .on-black, .site-header--black, .bs-header--black, .site-footer--black, .band--black, .image-stage--fade, .band { --bar-gutter: var(--gutter-mobile); }
}
/* END BLACK */

/* ---------- chrome: neutral inside black ----------
   Inside any black scope, links, selection and focus are neutral (chrome-*): no evergreen on
   black. In the header and footer bars the red goes too: every site name is white and the
   active nav underline is white. A black band in a page keeps its red section marks. */
.on-black,
.site-header--black,
.bs-header--black,
.site-footer--black,
.band--black,
.image-stage--fade {
  --link: var(--chrome-link, var(--navy-100));
  --link-hover: var(--chrome-link-hover, #ffffff);
  --link-visited: var(--chrome-link, var(--navy-100));
  --link-on-raised: var(--chrome-link, var(--navy-100));
  --act: var(--chrome-selected, #ffffff);
  --act-strong: var(--chrome-text, #ffffff);
  --act-soft: var(--surface-black-raised);
  --on-act: var(--on-chrome-selected, var(--ink-900));
  --act-on-raised: var(--chrome-selected, #ffffff);
  --act-strong-on-raised: var(--chrome-text, #ffffff);
  --act-soft-on-raised: var(--surface-black-raised);
  --on-act-on-raised: var(--on-chrome-selected, var(--ink-900));
  --selected: var(--chrome-selected, #ffffff);
  --on-selected: var(--on-chrome-selected, var(--ink-900));
  --selected-on-raised: var(--chrome-selected, #ffffff);
  --on-selected-on-raised: var(--on-chrome-selected, var(--ink-900));
  --focus: var(--chrome-focus, #ffffff);
  --focus-on-raised: var(--chrome-focus, #ffffff);
}
:is(.site-header--black, .bs-header--black, .site-footer--black) {
  --accent: var(--chrome-text, #ffffff);
  --accent-on-raised: var(--chrome-text, #ffffff);
  --rule-accent: var(--chrome-indicator, #ffffff);
}
:is(.site-header--black, .bs-header--black) .site-nav__link { color: var(--chrome-text-muted, var(--navy-300)); }
.site-footer--black .site-footer__base { color: var(--chrome-text-muted, var(--navy-300)); }
.site-footer--black .site-footer__base a:hover { color: var(--chrome-link-hover, #ffffff); }


/* BEGIN GLASS (generated by gen/glass.py from tokens.json) */
/* Light glass and the .on-white scope: every colour token at its light value, whatever the theme. */
.on-white {
  color-scheme: light;
  --surface: var(--white);
  --surface-subtle: var(--navy-050);
  --surface-raised: var(--white);
  --surface-sunken: var(--navy-100);
  --surface-inverse: var(--navy-700);
  --scrim: var(--navy-900);
  --text: var(--ink-900);
  --text-muted: var(--ink-500);
  --text-soft: var(--ink-700);
  --text-strong: var(--navy-700);
  --text-on-raised: var(--ink-900);
  --text-on-raised-muted: var(--ink-500);
  --text-on-raised-soft: var(--ink-700);
  --text-on-raised-faint: var(--ink-300);
  --text-on-inverse: var(--white);
  --text-disabled: var(--ink-300);
  --link: var(--evergreen-800);
  --link-hover: var(--evergreen-700);
  --link-visited: var(--evergreen-900);
  --link-on-raised: var(--evergreen-800);
  --accent-on-raised: var(--oxblood-800);
  --act-on-raised: var(--navy-700);
  --act-strong-on-raised: var(--navy-800);
  --act-soft-on-raised: var(--navy-050);
  --on-act-on-raised: var(--white);
  --accent: var(--oxblood-800);
  --act: var(--navy-700);
  --act-strong: var(--navy-800);
  --act-soft: var(--navy-050);
  --on-act: var(--white);
  --selected: var(--navy-700);
  --on-selected: var(--white);
  --brand: var(--navy-700);
  --brand-strong: var(--navy-800);
  --brand-soft: var(--navy-100);
  --on-brand: var(--white);
  --brand-on-raised: var(--navy-700);
  --brand-strong-on-raised: var(--navy-800);
  --on-brand-on-raised: var(--white);
  --rule: var(--ink-200);
  --rule-strong: var(--ink-400);
  --rule-accent: var(--oxblood-800);
  --rule-on-raised: var(--ink-200);
  --rule-strong-on-raised: var(--ink-400);
  --wash-on-raised: var(--ink-050);
  --fill-on-raised: var(--ink-100);
  --fill-strong-on-raised: var(--ink-200);
  --selected-on-raised: var(--navy-700);
  --on-selected-on-raised: var(--white);
  --focus: var(--evergreen-800);
  --focus-on-raised: var(--evergreen-800);
  --instrument: var(--ice-400);
  --instrument-strong: var(--ice-700);
  --instrument-soft: var(--ice-050);
  --instrument-on-raised: var(--ice-400);
  --instrument-strong-on-raised: var(--ice-700);
  --success: var(--teal-700);
  --warning: var(--amber-700);
  --danger: var(--crimson-600);
  --danger-on-raised: var(--crimson-600);
  --info: var(--azure-700);
  --trend-good: var(--teal-700);
  --trend-bad: var(--crimson-600);
  --trend-flat: var(--ink-500);
  --trend-good-on-raised: var(--teal-700);
  --trend-bad-on-raised: var(--crimson-600);
  --trend-flat-on-raised: var(--ink-500);
  --status-done: var(--teal-700);
  --status-active: var(--azure-700);
  --status-pending: var(--amber-700);
  --status-blocked: var(--crimson-600);
  --status-planned: var(--indigo-700);
  --status-idle: var(--ink-500);
  --status-done-on-raised: var(--teal-700);
  --status-active-on-raised: var(--azure-700);
  --status-pending-on-raised: var(--amber-700);
  --status-blocked-on-raised: var(--crimson-600);
  --status-planned-on-raised: var(--indigo-700);
  --status-idle-on-raised: var(--ink-500);
  --cat-ai-soft: #e8f1f9;
  --cat-ai-ink: #1764b0;
  --cat-robotics-soft: #e7f3ef;
  --cat-robotics-ink: #0c7554;
  --cat-planning-soft: #f2edf9;
  --cat-planning-ink: #7a4bc4;
  --cat-learning-soft: #faeee7;
  --cat-learning-ink: #a0480e;
  --cat-perception-soft: #f6ecf3;
  --cat-perception-ink: #a63d86;
  --cat-navigation-soft: #ecf0ea;
  --cat-navigation-ink: #456a2e;
  --cat-systems-soft: var(--ink-100);
  --cat-systems-ink: var(--ink-700);
  --cat-theory-soft: var(--cat-planning-soft);
  --cat-theory-ink: var(--cat-planning-ink);
  --series-1: #1a6fc4;
  --series-2: #c85a12;
  --series-3: #0e8a63;
  --series-4: #a63d86;
  --series-5: #456a2e;
  --series-6: #7a4bc4;
  --shadow-sm: 0 1px 2px rgba(16, 21, 28, 0.06);
  --shadow-md: 0 2px 8px rgba(16, 21, 28, 0.08);
  --shadow-lg: 0 8px 28px rgba(16, 21, 28, 0.12);
  --text-muted: var(--ink-700);
  --text-on-raised-muted: var(--ink-700);
}
.on-white { background-color: var(--white); color: var(--text); }
/* Dark glass: every colour token at its dark value. */

/* The glass card: frosted over whatever image is behind it. Square, a hairline edge, no shadow
   of its own — the blur is the lift. */

/* The image stage: an image (or video, or canvas) filling a box, with content laid over it. */
.image-stage { position: relative; isolation: isolate; overflow: hidden; background: var(--image-fade); color: var(--white); }
.image-stage__media { position: absolute; inset: 0; z-index: -2; width: 100%; height: 100%; object-fit: cover; display: block; }

/* Fade from black: the image rises out of black at its start edge, so a title can stand on the
   black and the picture opens to the right. --fade-to sets where the image is fully clear. */
.image-stage--fade::before {
  content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background: linear-gradient(to right,
    var(--image-fade) 0%,
    color-mix(in srgb, var(--image-fade) 92%, transparent) calc(var(--fade-to, 62%) * 0.32),
    color-mix(in srgb, var(--image-fade) 62%, transparent) calc(var(--fade-to, 62%) * 0.6),
    color-mix(in srgb, var(--image-fade) 22%, transparent) calc(var(--fade-to, 62%) * 0.84),
    transparent var(--fade-to, 62%));
}
.image-stage--fade { color-scheme: dark; }
.image-stage .section-number { color: var(--oxblood-350); }
@media (max-width: 719px) {
  .image-stage--fade::before { background: linear-gradient(to top, var(--image-fade) 0%, color-mix(in srgb, var(--image-fade) 70%, transparent) 45%, transparent 85%); }
}
/* END GLASS */

/* BEGIN THEME (generated by gen/theme_auto.py from tokens.json) */
/* The ground is the theme's: the root carries surface and text, so a page, a frame or a
   scrolled-past edge is never the browser's white under a dark theme. */
html { background-color: var(--surface); color: var(--text); }
:root, [data-theme="light"] { color-scheme: light; }
[data-theme="dark"] { color-scheme: dark; }
/* Two themes. Light is the default, and Belief Space starts in dark. A page opts into following
   the reader's setting with data-theme="auto"; data-theme="dark" sets the dark theme outright;
   the theme toggle moves any page between the three. */
@media (prefers-color-scheme: dark) {
  [data-theme="auto"] {
    color-scheme: dark;
    --surface: var(--navy-950);
    --surface-subtle: var(--navy-925);
    --surface-raised: var(--navy-900);
    --surface-sunken: var(--navy-975);
    --surface-inverse: var(--navy-100);
    --surface-black: var(--ink-975);
    --surface-black-subtle: var(--ink-950);
    --surface-black-raised: var(--ink-900);
    --rule-black: var(--ink-700);
    --glass-light: #ffffffd1;
    --glass-dark: #050608b8;
    --glass-edge-light: #ffffffa6;
    --glass-edge-dark: #ffffff2e;
    --image-fade: var(--ink-975);
    --scrim: var(--navy-975);
    --text: var(--navy-100);
    --text-muted: var(--navy-300);
    --text-soft: var(--navy-200);
    --text-strong: var(--navy-050);
    --text-on-raised: var(--navy-100);
    --text-on-raised-muted: var(--navy-300);
    --text-on-raised-soft: var(--navy-200);
    --text-on-raised-faint: var(--navy-400);
    --text-on-inverse: var(--navy-950);
    --text-disabled: var(--navy-400);
    --link: var(--evergreen-350);
    --link-hover: var(--evergreen-300);
    --link-visited: var(--evergreen-300);
    --link-on-raised: var(--evergreen-350);
    --accent-on-raised: var(--oxblood-350);
    --act-on-raised: var(--navy-100);
    --act-strong-on-raised: var(--white);
    --act-soft-on-raised: var(--navy-800);
    --on-act-on-raised: var(--navy-950);
    --accent: var(--oxblood-350);
    --accent-muted: var(--oxblood-400);
    --act: var(--navy-100);
    --act-strong: var(--white);
    --act-soft: var(--navy-800);
    --on-act: var(--navy-950);
    --selected: var(--navy-100);
    --on-selected: var(--navy-950);
    --brand: var(--navy-050);
    --brand-strong: var(--white);
    --brand-soft: var(--navy-800);
    --on-brand: var(--navy-950);
    --brand-on-raised: var(--navy-100);
    --brand-strong-on-raised: var(--white);
    --on-brand-on-raised: var(--navy-950);
    --rule: var(--navy-700);
    --rule-strong: var(--navy-450);
    --rule-accent: var(--oxblood-350);
    --rule-on-raised: var(--navy-600);
    --rule-strong-on-raised: var(--navy-450);
    --wash-on-raised: var(--navy-800);
    --fill-on-raised: var(--navy-700);
    --fill-strong-on-raised: var(--navy-600);
    --selected-on-raised: var(--navy-100);
    --on-selected-on-raised: var(--navy-950);
    --focus: var(--evergreen-350);
    --focus-on-raised: var(--evergreen-350);
    --instrument: var(--ice-500);
    --instrument-strong: var(--ice-300);
    --instrument-soft: var(--ice-900);
    --instrument-on-raised: var(--ice-500);
    --instrument-strong-on-raised: var(--ice-300);
    --success: var(--teal-300);
    --warning: var(--amber-300);
    --danger: var(--crimson-300);
    --danger-on-raised: var(--crimson-300);
    --info: var(--azure-300);
    --trend-good: var(--teal-300);
    --trend-bad: var(--crimson-300);
    --trend-flat: var(--navy-300);
    --trend-good-on-raised: var(--teal-300);
    --trend-bad-on-raised: var(--crimson-300);
    --trend-flat-on-raised: var(--navy-300);
    --status-done: var(--teal-300);
    --status-active: var(--azure-300);
    --status-pending: var(--amber-300);
    --status-blocked: var(--crimson-300);
    --status-planned: var(--indigo-300);
    --status-idle: var(--navy-300);
    --status-done-on-raised: var(--teal-300);
    --status-active-on-raised: var(--azure-300);
    --status-pending-on-raised: var(--amber-300);
    --status-blocked-on-raised: var(--crimson-300);
    --status-planned-on-raised: var(--indigo-300);
    --status-idle-on-raised: var(--navy-300);
    --cat-ai-soft: #103760;
    --cat-ai-ink: #8cb7e2;
    --cat-robotics-soft: #0c4139;
    --cat-robotics-ink: #86c4b1;
    --cat-planning-soft: #372860;
    --cat-planning-ink: #bca5e2;
    --cat-learning-soft: #562e19;
    --cat-learning-ink: #e4ac88;
    --cat-perception-soft: #482347;
    --cat-perception-ink: #d29ec2;
    --cat-navigation-soft: #223524;
    --cat-navigation-ink: #a2b496;
    --cat-systems-soft: var(--navy-800);
    --cat-systems-ink: var(--navy-200);
    --cat-theory-soft: var(--cat-planning-soft);
    --cat-theory-ink: var(--cat-planning-ink);
    --series-1: #4f95df;
    --series-2: #d67428;
    --series-3: #26a683;
    --series-4: #9d7fe4;
    --series-5: #8fc07a;
    --series-6: #d263ac;
    --area-academic: var(--series-1);
    --area-entertainment: var(--series-2);
    --area-life: var(--series-3);
    --area-misc: var(--series-5);
    --area-personal: var(--series-4);
    --area-professional: var(--series-6);
    --shadow-none: none;
    --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.45);
    --shadow-md: 0 4px 14px rgba(0, 0, 0, 0.5);
    --shadow-lg: 0 12px 36px rgba(0, 0, 0, 0.6);
  }
}
/* END THEME */

/* ---------- the figures band ----------
   A page's StatRow, full width under its hero. It keeps the black scope's dark tokens but sits on
   the ground and rules of Belief Space's Evidence section, navy-925 between navy-700 hairlines,
   so the figures read the same in every theme. */
.band--navy {
  --surface: var(--navy-925); background-color: var(--navy-925);
  box-shadow: inset 0 var(--hairline) 0 var(--navy-700), inset 0 calc(-1 * var(--hairline)) 0 var(--navy-700);
}
.record-band { padding-block: var(--space-12); }
.record-band .stat__value { color: var(--text-strong); }
/* up to eight figures: four to a row, or three to a row for six */
.stats--record { grid-template-columns: repeat(4, minmax(0, 1fr)); row-gap: var(--space-10); }
.stats--six { grid-template-columns: repeat(3, minmax(0, 1fr)); }
/* a unit or currency sign beside a figure: smaller and raised, so the digits stay the figure */
.stat__unit { font-size: 0.6em; letter-spacing: 0; margin-inline: 0.04em; vertical-align: 0.32em; }
@media (max-width: 719px) {
  .stats--record, .stats--six { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: var(--space-8); }
}
@media (max-width: 1023px) {
  .stats--record { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

/* ---------- the wray.ai portrait ----------
   Twice avatar-lg beside the name, at the photograph's own proportions; avatar-lg above it on a phone. */
.hero__portrait--lg { width: calc(var(--avatar-lg) * 2); height: auto; aspect-ratio: auto; }
@media (max-width: 719px) {
  .hero__portrait--lg { order: -1; width: var(--avatar-lg); }
}

/* ---------- news timeline ----------
   One spine across the years. Items are grouped into quarters; each quarter is a column at its
   place on the spine (--x), its dots stacked upward one per item (--level). Each dot opens a card.
   On touch and without script the list, grouped by year, shows instead (Wray.newsTimeline). */
.ntl__years { display: flex; flex-wrap: wrap; gap: var(--space-2); margin-block-end: var(--space-8); }
.ntl__track { --ntl-step: var(--space-4); position: relative; padding-block: var(--space-4) var(--space-8); }
.ntl__line {
  list-style: none; margin: 0; padding: 0; position: relative;
  height: calc(var(--tallest) * var(--ntl-step) + var(--space-2));
  border-block-end: var(--hairline) solid var(--instrument-strong);
}
.ntl__col { position: absolute; inset-inline-start: var(--x); inset-block-end: var(--space-1); transform: translateX(-50%); }
.ntl__stack { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column-reverse; }
.ntl__item { position: relative; }
.ntl__dot { display: grid; place-items: center; width: var(--ntl-step); height: var(--ntl-step); padding: 0; margin: 0; border: 0; background: none; cursor: pointer; }
.ntl__mark {
  display: block; width: var(--dot); height: var(--dot); box-sizing: border-box;
  border: var(--hairline) solid var(--status-done); background: var(--surface);
  transition: transform var(--duration-fast) var(--ease-mechanical), background-color var(--duration-fast) var(--ease-mechanical);
}
.ntl__item--key .ntl__mark { background: var(--status-done); }
.ntl__dot:hover .ntl__mark, .ntl__item.is-open .ntl__mark { background: var(--act); border-color: var(--act); transform: scale(1.3); }
.ntl__dot:focus-visible { outline: var(--border-focus) solid var(--focus); outline-offset: 0; }
.ntl__item.is-dim { opacity: var(--opacity-disabled); }
.ntl__card {
  position: absolute; inset-block-end: calc(100% + var(--space-2)); inset-inline-start: 50%; transform: translateX(-50%);
  width: 20rem; z-index: var(--z-overlay); padding: var(--space-4) var(--space-5);
  border: var(--hairline) solid var(--rule-on-raised); box-shadow: var(--shadow-md);
}
.ntl__item[data-anchor="start"] .ntl__card { transform: translateX(calc(-1 * var(--space-4))); }
.ntl__item[data-anchor="end"] .ntl__card { transform: translateX(calc(-100% + var(--space-4))); }
.ntl__date { display: block; color: var(--text-on-raised-muted); margin-block-end: var(--space-2); }
.ntl__text { font-size: 15px; line-height: 1.55; color: var(--text-on-raised); }
.ntl__axis { position: relative; height: var(--space-6); }
.ntl__year { position: absolute; inset-inline-start: var(--x); inset-block-start: var(--space-2); transform: translateX(-50%); font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.08em; color: var(--text-muted); font-variant-numeric: tabular-nums; }
.ntl__axis::before {
  content: ""; position: absolute; inset-inline: 0; inset-block-start: 0; height: var(--space-1);
  background: repeating-linear-gradient(to right, var(--instrument-strong) 0 var(--hairline), transparent var(--hairline) calc(100% / var(--quarters) * 4));
}
/* the list: touch screens and readers without script */
.ntl__group { border-block-start: var(--hairline) solid var(--rule); }
.ntl__group summary { display: flex; align-items: center; gap: var(--space-4); min-height: var(--tap-min); cursor: pointer; list-style: none; }
.ntl__group summary::-webkit-details-marker { display: none; }
.ntl__group summary::before {
  content: ""; width: var(--space-2); height: var(--space-2); flex: none;
  border-inline-end: var(--border-control) solid var(--text-muted); border-block-end: var(--border-control) solid var(--text-muted);
  transform: rotate(-45deg); transition: transform var(--duration-fast) var(--ease-mechanical);
}
.ntl__group[open] summary::before { transform: rotate(45deg); }
.ntl__gy { margin: 0; }
.ntl__gn { color: var(--text-muted); }
.ntl__rows { list-style: none; margin: 0 0 var(--space-4); padding: 0; }
.ntl__row { display: grid; grid-template-columns: var(--space-12) minmax(0, 1fr); gap: var(--space-4); padding-block: var(--space-2); border-block-start: var(--hairline) solid var(--rule); }
.ntl__rowm { color: var(--text-muted); padding-block-start: var(--space-1); }
.ntl__rowt { color: var(--text); }
.ntl__row--key .ntl__rowt { color: var(--text-strong); font-weight: 600; }
@media (prefers-reduced-motion: reduce) { .ntl__mark, .ntl__group summary::before { transition: none; } }

/* wray.ai — page layout. Loaded after tokens.css and bundle.css.
   Components own their insides; this file owns only the page: containers, rhythm, and the
   few page-level arrangements the system leaves to the consumer. Every value is a token. */

/* ---------- base ---------- */

html { scroll-padding-block-start: calc(var(--header-height) + var(--space-4)); }
body { margin: 0; min-height: 100vh; display: flex; flex-direction: column; }
main { flex: 1; }
h1, h2, h3, h4, h5, p, figure { margin: 0; }
img, video { max-width: 100%; height: auto; }
/* hidden always wins: component rules such as .pub { display: grid } would otherwise override it */
[hidden] { display: none !important; }
:where(h1, h2, h3, h4, h5) { color: var(--text-strong); text-wrap: balance; }
.prose a:not([class]), .body a:not([class]) { color: var(--link); }

/* ---------- containers ---------- */
/* .wrap is the wide container: centred, with the gutters inside, like bs-wrap. */

.wrap {
  width: 100%; max-width: var(--container-wide); margin-inline: auto;
  padding-inline: var(--gutter-desktop); box-sizing: border-box;
}
.container--prose > *, .container--text > * { max-width: var(--container-text); }
.container--prose > * { max-width: var(--container-prose); }
/* Reading pages keep their measure but share the wide container's start edge, so every
   section lines up under the masthead's name. */
.container--prose, .container--text { max-width: var(--container-wide); }
.container--wide { max-width: var(--container-wide); }
.measure { max-width: var(--measure-prose); }
.measure-lead { max-width: var(--measure-lead); }

/* ---------- vertical rhythm ---------- */

.section { padding-block: var(--space-16); }
.section--first { padding-block-end: 0; }
.section--ruled { border-block-start: var(--hairline) solid var(--rule); }
.section-title { margin: 0; }
.page-title { color: var(--text-strong); margin-block-end: var(--space-6); max-width: var(--measure-lead); }
.section--first .lead { color: var(--text); margin-block-end: var(--space-10); }
.prose { max-width: var(--measure-prose); }
.prose > p { margin: 0; }
.prose > p + p { margin-block-start: var(--space-4); }
.bio-toggle { margin-block-end: var(--space-6); }
.bio-speaker { margin-block-start: var(--space-8); }
.bio-speaker__label { color: var(--text-muted); text-transform: uppercase; }
[data-bio-toggle]:not([hidden]) ~ .bio-speaker { margin-block-start: 0; }
[data-bio-toggle]:not([hidden]) ~ .bio-speaker .bio-speaker__label { display: none; }
[data-bio-toggle]:not([hidden]) ~ .bio-speaker .bio-speaker__label + p { margin-block-start: 0; }
.section-opener + .body, .section-opener + .prose { margin-block-start: 0; }
.body + .body { margin-block-start: var(--space-4); }
h3.h3 { margin-block: var(--space-8) var(--space-4); }
.section-opener + h3.h3 { margin-block-start: 0; }

/* ---------- masthead and footer, aligned to the wide container ---------- */

.site-header {
  padding-inline: max(var(--gutter-desktop), calc((100% - var(--container-wide)) / 2 + var(--gutter-desktop)));
  box-sizing: border-box; z-index: var(--z-header);
}
.site-header.is-stuck { position: sticky; inset-block-start: 0; box-shadow: var(--shadow-lg); z-index: var(--z-header); }
.bs-header__bar { display: flex; align-items: center; gap: var(--space-6); }

.site-foot { margin-block-start: var(--space-16); }
.site-foot__grid { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: var(--space-6); }
.site-foot__grid .body-sm { color: var(--text); }
.site-foot__mail { color: inherit; }

/* ---------- wray.ai hero ---------- */

.hero-band { padding-block: var(--space-24) var(--space-16); }
.hero--wray { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: var(--space-12); align-items: center; }
.hero--wray .hero__lead { color: var(--text); margin-block-end: 0; }

/* ---------- figures and paper lists ---------- */

.figure figcaption { margin-block-start: var(--space-2); color: var(--text-muted); max-width: var(--measure-prose); }
.paper-list { list-style: none; margin: var(--space-4) 0 0; padding: 0; display: grid; gap: var(--space-2); }
.paper-list li { display: flex; flex-direction: column; gap: 0; }
.paper-list .eyebrow-sm { color: var(--text-muted); text-transform: uppercase; }

/* ---------- publications ---------- */

.pub-year + .pub-year { margin-block-start: var(--space-8); }
.pub-year .pub-year__title { margin-block: 0 var(--space-4); padding-block-end: var(--space-2); border-block-end: var(--hairline) solid var(--rule); }
.pub-year__count, .patents-office .eyebrow-sm { color: var(--text-muted); text-transform: uppercase; margin-inline-start: var(--space-3); font-family: var(--font-mono); }
.pub__venue { color: var(--text-muted); }
.pub__number { color: var(--text-muted); text-transform: uppercase; overflow-wrap: anywhere; }
.patents-office { margin-block: var(--space-12) var(--space-6); }
/* ---------- inline figures (CV funding amounts) ---------- */
.figure-inline { font-family: var(--font-mono); font-weight: 400; font-variant-numeric: tabular-nums; color: var(--text-muted); white-space: nowrap; }
.cv-download { margin-block-end: var(--space-10); }
.timeline { margin-block-end: var(--space-4); }
/* The square sits on the middle of the date's capitals, not the top of its line box. */
.timeline { --date-mid: var(--space-2); --dot-centre: var(--date-mid); }
.timeline__dot { inset-block-start: calc(var(--date-mid) - var(--dot) / 2 - var(--hairline)); }

/* ---------- Research ---------- */

.thrust__hard .eyebrow { display: block; color: var(--accent); text-transform: uppercase; margin-block-end: var(--space-1); }

/* ---------- Belief Space ---------- */

.bs-offer { background: var(--surface); color: var(--text); padding-block: var(--space-20) var(--space-16); }
/* Each section's opening paragraph spans the content width, over the two columns below it. */
.bs-evidence__lead { max-width: none; }
/* The proof lists end their section, so the section's own padding is the only space below them. */
.bs-offer .bs-proof, .bs-evidence .bs-proof { margin-block-end: 0; }
.bs-offer__text { margin: 0 0 var(--space-5); color: var(--text-muted); }
.bs-next .cta__title { max-width: none; }
.bs-next__risk { margin-block-start: var(--space-2); color: var(--text-on-raised-muted); }
.bs-next__risk .link { color: var(--link-on-raised); }
.page--bs main { display: block; }

/* ---------- the figures band: the system's band--navy and StatRow (bundle.css) ---------- */

.band > .wrap { padding-inline: 0; max-width: none; }
.stat__value--text { font-size: clamp(16px, 1.9vw, 24px); line-height: 38px; letter-spacing: 0; white-space: nowrap; }
/* The affiliation links are links like any other: evergreen and underlined (Hero, TextLink). */
.hero__eyebrow-link {
  color: var(--link); text-decoration: underline; text-underline-offset: 0.3em; text-decoration-thickness: var(--hairline);
  transition: color var(--duration-fast) var(--ease-mechanical), text-decoration-thickness var(--duration-fast) var(--ease-mechanical);
}
.hero__eyebrow-link:hover { color: var(--link-hover); text-decoration-thickness: var(--border-focus); }

/* ---------- news: the system's NewsTimeline (bundle.css) ---------- */

/* ---------- feature bands: full width, alternating ground and side ---------- */

.section--flush { padding-block-end: 0; }
.feature { padding-block: var(--space-16); background: var(--surface); }
.feature--alt { background: var(--surface-subtle); }
.feature__grid { display: grid; grid-template-columns: minmax(0, 6fr) minmax(0, 5fr); gap: var(--space-12); align-items: center; }
.feature--alt .feature__media { order: 2; }
.feature__figure video { aspect-ratio: var(--aspect-figure); object-fit: cover; }
.feature__figure img, .feature__figure video { display: block; width: 100%; height: auto; border-radius: var(--figure-radius); background: var(--white); }
.feature__eyebrow { color: var(--accent); text-transform: uppercase; margin-block-end: var(--space-3); }
.feature__title { margin-block-end: var(--space-4); max-width: var(--measure-lead); }
.feature__role { color: var(--text-muted); margin-block: calc(-1 * var(--space-2)) var(--space-4); }
.feature__body > .body + .body-sm, .feature__body > .body-sm + .paper-list { margin-block-start: var(--space-4); }
.feature__body .paper-list { margin-block-end: var(--space-4); }

/* The stage band: the clip is locked to one side of the window and starts near its centre, in
   the system's ImageFade on navy. The text sits on solid navy; the clip's inner edge rises out of
   it through a short blur, so little of the frame is hidden. --stage-in is where (in percent of the
   window) the clip starts; it fills the band top to bottom from its centre. Sides swap on
   alternate bands. */
.feature--stage, .feature--stage.feature--alt { padding-block: 0; background: var(--navy-925); }
.feature__stage {
  --image-fade: var(--navy-925); --stage-in: 42;
  min-height: calc((100 - var(--stage-in)) * 1vw * 0.5625);
  display: grid; align-items: center; background: var(--navy-925);
}
/* cropped to fill, it keeps its outer edge (and the overlay there) and gives up the inner one under the fade */
.feature__clip.image-stage__media { inset: 0 0 0 auto; width: calc((100 - var(--stage-in)) * 1%); height: 100%; object-fit: cover; object-position: 100% 50%; }
.feature--alt .feature__clip.image-stage__media { inset: 0 auto 0 0; object-position: 0% 50%; }
.feature__stage::before {
  background: linear-gradient(to right,
    var(--navy-925) 0%, var(--navy-925) calc(var(--stage-in) * 1%),
    color-mix(in srgb, var(--navy-925) 70%, transparent) calc((var(--stage-in) + 3) * 1%),
    color-mix(in srgb, var(--navy-925) 25%, transparent) calc((var(--stage-in) + 6.5) * 1%),
    transparent calc((var(--stage-in) + 10) * 1%));
}
.feature--alt .feature__stage::before { transform: scaleX(-1); }
.feature__blur {
  position: absolute; inset: 0; z-index: -1; pointer-events: none;
  -webkit-backdrop-filter: blur(18px); backdrop-filter: blur(18px);
  --blur-mask: linear-gradient(to right, #000 0%, #000 calc((var(--stage-in) + 2) * 1%), transparent calc((var(--stage-in) + 8) * 1%));
  -webkit-mask-image: var(--blur-mask); mask-image: var(--blur-mask);
}
.feature--alt .feature__blur {
  --blur-mask: linear-gradient(to left, #000 0%, #000 calc((var(--stage-in) + 2) * 1%), transparent calc((var(--stage-in) + 8) * 1%));
}
.feature__over { width: 100%; padding-block: var(--space-16); }
/* the words run a fifth past the room before the clip's edge, onto its fade, measured from the window */
.feature--stage .feature__body { max-width: min(41rem, calc((var(--stage-in) * 1vw - max(var(--gutter-desktop), (100vw - var(--container-wide)) / 2 + var(--gutter-desktop)) - var(--space-6)) * 1.2)); }
.feature--stage.feature--alt .feature__body { margin-inline-start: auto; }
.feature__caption { margin: var(--space-3) 0 0; color: var(--text-muted); text-align: end; }
.feature--alt .feature__caption { text-align: start; }
.feature--stage > .wrap:last-child { padding-block-end: var(--space-16); }
.feature--stage > .wrap:has(+ .feature__morebar) { padding-block-end: 0; }
/* Below the clip: the press and papers on the words' side; the team photograph locked to the
   clip's side of the window, the strip's full height, cropped to cover from its centre. It is the
   clip's width and carries the clip's own fade and blur, so the two read as one picture. */
.feature__morebar { position: relative; isolation: isolate; overflow: hidden; min-height: 22rem; }
.feature__more { padding-block: var(--space-10) var(--space-16); }
.feature__more .evidence:first-child { margin-block-start: 0; }
.feature__evidence { max-width: 50%; }
/* the lists take the words' column exactly (the same max-width as .feature--full .feature__body), so the
   rules and edges line up with the metrics above; with the words on the right they sit on the right */
.feature--alt .feature__evidence { margin-inline-start: auto; }
.feature--full .feature__evidence { max-width: min(46rem, 59%); }
.feature__team { position: absolute; z-index: -2; inset-block: 0; inset-inline-end: 0; width: 46%; overflow: hidden; }
.feature--alt .feature__team { inset-inline: 0 auto; }
.feature--full .feature__team { width: calc((100 - var(--stage-in)) * 1%); }
.feature__team .figure-photo { position: absolute; inset: 0; display: block; }
.feature__team .figure-photo__slot { height: 100%; }
/* Centred both ways and always covering its strip: the frame runs --team-ex / --team-ey (px) past
   each edge (the trim plus the move, from industry.mjs) and is shifted by --team-x / --team-y, so a
   move never opens a gap. */
.feature__team .photo-slot img.figure-photo__img {
  position: absolute; aspect-ratio: auto; object-fit: cover; object-position: 50% 50%; max-width: none; max-height: none;
  inset: auto; top: calc(var(--team-y, 0px) - var(--team-ey, 0px)); left: calc(var(--team-x, 0px) - var(--team-ex, 0px));
  width: calc(100% + 2 * var(--team-ex, 0px)); height: calc(100% + 2 * var(--team-ey, 0px));
}
/* The clip's blur is a backdrop filter, which does not reach the photograph in its own layer, so the
   photograph carries a blurred copy of itself, masked to the clip's blur in the photograph's own
   coordinates (it spans 22%-100% of the window, or 0-78% with the words on the right). */
.feature--full .feature__team[style]::after {
  content: ""; position: absolute; pointer-events: none;
  top: calc(var(--team-y, 0px) - var(--team-ey, 0px) - 24px); left: calc(var(--team-x, 0px) - var(--team-ex, 0px) - 24px);
  width: calc(100% + 2 * var(--team-ex, 0px) + 48px); height: calc(100% + 2 * var(--team-ey, 0px) + 48px);
  background: var(--team-src) 50% 50% / cover no-repeat;
  filter: blur(18px);
  --team-mask: linear-gradient(to right, #000 0%, #000 18%, transparent 54%);
  -webkit-mask-image: var(--team-mask); mask-image: var(--team-mask);
}
.feature--full.feature--alt .feature__team[style]::after { --team-mask: linear-gradient(to left, #000 0%, #000 31%, transparent 67%); }
.feature__morebar::before { content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none; }
.feature--alt .feature__morebar::before { transform: scaleX(-1); }
/* Full height (Industry): the clip fills the band top to bottom from 22% across, cropped to
   cover; the fade runs two thirds across, under words 35% wider than the centred bands'. The
   team strip below shares every value. */
.feature--full .feature__stage, .feature--full .feature__morebar { --stage-in: 22; }
.feature--full .feature__stage { min-height: min(calc((100 - var(--stage-in)) * 1vw * 0.5625), 92svh); }
.feature--full .feature__clip.image-stage__media { inset: 0 0 0 auto; transform: none; height: 100%; aspect-ratio: auto; object-position: 50% 50%; }
.feature--full.feature--alt .feature__clip.image-stage__media { inset: 0 auto 0 0; object-position: 50% 50%; }
.feature--full .feature__stage::before, .feature--full .feature__morebar::before {
  background: linear-gradient(to right,
    var(--navy-925) 0%, var(--navy-925) calc(var(--stage-in) * 1%),
    color-mix(in srgb, var(--navy-925) 86%, transparent) 40%,
    color-mix(in srgb, var(--navy-925) 55%, transparent) 54%,
    color-mix(in srgb, var(--navy-925) 18%, transparent) 64%,
    transparent 72%);
}
.feature--full .feature__blur { --blur-mask: linear-gradient(to right, #000 0%, #000 36%, transparent 64%); }
.feature--full.feature--alt .feature__blur { --blur-mask: linear-gradient(to left, #000 0%, #000 46%, transparent 74%); }
/* With the words on the right, their left-aligned lines start near the middle, so the fade moves
   under them: solid navy from 85% across the clip (66% of the window), clear by 24%. The stops
   count from the right edge, since alternate bands mirror the gradient. */
.feature--full.feature--alt .feature__stage::before, .feature--full.feature--alt .feature__morebar::before {
  background: linear-gradient(to right,
    var(--navy-925) 0%, var(--navy-925) 34%,
    color-mix(in srgb, var(--navy-925) 90%, transparent) 46%,
    color-mix(in srgb, var(--navy-925) 65%, transparent) 57%,
    color-mix(in srgb, var(--navy-925) 30%, transparent) 67%,
    transparent 76%);
}
.feature--stage.feature--full .feature__body { max-width: min(46rem, 59%); }
@media (prefers-reduced-transparency: reduce) { .feature__blur, .feature__team::after { display: none; } }
.thrust__hard { margin-block-start: var(--space-4); }

/* The ledger: each company's metrics, a name beside its figure and a line of context. */
.ledger { margin: var(--space-6) 0 0; border-block-start: var(--hairline) solid var(--rule); }
.ledger__row {
  display: grid; grid-template-columns: 8rem minmax(0, 1fr); gap: var(--space-1) var(--space-5); align-items: start;
  padding-block: var(--space-3); border-block-end: var(--hairline) solid var(--rule);
}
/* The name's cap top sits level with the figure's: IBM Plex Mono's caps start 0.327em below its
   ascender, so at 10.5px against 17px (both at line-height 1.35) the name drops 0.22em. */
.ledger__key { margin: 0; text-transform: uppercase; line-height: 1.35; padding-block-start: 0.22em; }
.ledger__value { margin: 0; font-family: var(--font-mono); font-weight: 400; font-size: 17px; line-height: 1.35; color: var(--text-strong); font-variant-numeric: tabular-nums; }
.ledger__note { grid-column: 2; margin: 0; color: var(--text-muted); }
/* The standing that has no number, under the Industry page's opening sentence. */
.ledger--hero { max-width: var(--measure-lead); margin-block-start: var(--space-8); }
.page--wray .feature__grid { align-items: start; }
.evidence { margin-block-start: var(--space-6); padding-block-start: var(--space-4); border-block-start: var(--hairline) solid var(--rule); }
.evidence__title { margin: 0; text-transform: uppercase; }
.evidence .paper-list { margin-block-end: 0; }
.evidence__note { color: var(--text-muted); margin-block-start: var(--space-1); }
.feature__media .photo-slot + .photo-slot { margin-block-start: var(--space-4); }
.photo-slot .figure-photo__slot { gap: var(--space-1); }
/* A still photograph shows whole, at its own proportions; only moving clips fill the 3:2 frame. */
.photo-slot img.figure-photo__img { aspect-ratio: auto; height: auto; }

/* Patents by category: hairline bars that filter the list */
.catbars { list-style: none; margin: var(--space-8) 0 var(--space-10); padding: 0; display: grid; gap: var(--space-1); }
.catbar {
  display: grid; grid-template-columns: minmax(0, 18rem) minmax(0, 1fr) var(--space-10); align-items: center; gap: var(--space-4);
  width: 100%; padding: var(--space-2) var(--space-2); background: none; border: 0; cursor: pointer; text-align: start;
  font: inherit; color: var(--text); transition: background-color var(--duration-fast) var(--ease-mechanical);
}
.catbar:hover { background: var(--surface-subtle); }
.catbar[aria-pressed="true"] { background: var(--act-soft); }
.catbar__label { font-size: 15px; font-weight: 600; color: var(--text-strong); }
.catbar__track { height: var(--space-2); background: var(--surface-sunken); position: relative; }
.catbar__fill { position: absolute; inset-block: 0; inset-inline-start: 0; width: var(--w); background: var(--instrument-strong); }
.catbar[aria-pressed="true"] .catbar__fill { background: var(--act); }
.catbar__n { font-family: var(--font-mono); font-size: 15px; font-variant-numeric: tabular-nums; text-align: end; color: var(--text-strong); }

/* ---------- filters: search and facet chips ---------- */

.filter { display: grid; gap: var(--space-4); margin-block-end: var(--space-8); padding-block: var(--space-5); border-block: var(--hairline) solid var(--rule); }
.filter__search { max-width: var(--container-prose); }
.filter__search .search__glyph { display: grid; }
.filter__facet { display: flex; flex-wrap: wrap; align-items: center; gap: var(--space-2); }
.filter__label { color: var(--text-muted); text-transform: uppercase; min-width: var(--space-20); }
.filter__status { color: var(--text-muted); display: flex; align-items: center; flex-wrap: wrap; gap: var(--space-3); }
.filter__empty { color: var(--text-muted); }
/* A subject tag in an entry filters the list, so it is a button, but it reads as the entry's
   subject tag: mono caps at the entry's 9px, neutral, navy when it is the active filter. The chips
   above the list are the sentence-case controls. */
.pub .tag--topic { font-family: var(--font-mono); font-weight: 400; text-transform: uppercase; letter-spacing: 0.14em; }

/* ---------- CV: academic and industry positions side by side ---------- */

/* Industry and academic positions side by side, in two equal columns across the full width. */
.container--text > .cv-columns { max-width: none; }
.cv-columns { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--space-6) var(--space-16); }
.cv-columns .h3 { margin-block: 0 var(--space-6); }

/* ---------- what I do: three titles, a picture under each, words under that ---------- */

.whatido { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--space-10) var(--grid-gap); }
.whatido__item { display: flex; flex-direction: column; }
.whatido__title { margin: 0 0 var(--space-1); }
.whatido__org { color: var(--text-muted); margin-block-end: var(--space-4); }
.whatido__media { margin: 0 0 var(--space-5); aspect-ratio: var(--aspect-figure); overflow: hidden; }
.whatido__media img, .whatido__media video { display: block; width: 100%; height: 100%; object-fit: cover; }
.whatido__item .photo-slot { margin-block-end: var(--space-5); }
.whatido__field { position: relative; isolation: isolate; background: var(--surface); display: grid; place-items: end start; padding: var(--space-5); box-sizing: border-box; }
.whatido__mark { font-family: var(--font-display); font-size: 26px; color: var(--text); }
.whatido__text { color: var(--text); margin-block-end: var(--space-3); }

/* Industry: the intro beside a photograph */
/* Industry and Research open with the title and lead on the left and the standing (scope,
   management, budget; research focus) on the right, its top rule level with the top of the title. */
.industry-hero { padding-block-end: var(--space-12); display: grid; grid-template-columns: minmax(0, 6fr) minmax(0, 5fr); gap: var(--space-12); align-items: start; }
/* Its rules run to the same right edge as the figures band below it. */
.industry-hero .ledger--hero { margin-block-start: 0; max-width: none; }

/* ---------- phones and tablets: by width alone, so a narrow window gets the phone layout ---------- */

@media (max-width: 719px) {
  .wrap, .site-header { padding-inline: var(--gutter-mobile); }
  .section { padding-block: var(--space-12); }
  .bs-offer { padding-block: var(--space-12) var(--space-10); }
  .section--first { padding-block-end: 0; }
  .hero-band { padding-block: var(--space-16) var(--space-12); }
  .hero--wray { grid-template-columns: minmax(0, 1fr); gap: var(--space-6); }
  .whatido, .industry-hero { grid-template-columns: minmax(0, 1fr); }
  .ledger__row { grid-template-columns: minmax(0, 1fr); }
  .ledger__key { padding-block-start: 0; }
  .ledger__note { grid-column: 1; }
  .site-foot { margin-block-start: var(--space-12); }
  .paper-list .link { display: inline-block; padding-block: var(--space-2); }
  .pub__meta { flex-direction: row; flex-wrap: wrap; align-items: center; gap: var(--space-2); }
  .feature { padding-block: var(--space-12); }
  .feature__grid { grid-template-columns: minmax(0, 1fr); gap: var(--space-6); }
  .feature--alt .feature__media { order: 0; }
  .feature__stage { display: block; min-height: 0; }
  .feature--stage .feature__clip.image-stage__media, .feature--stage.feature--alt .feature__clip.image-stage__media { position: relative; inset: auto; transform: none; z-index: auto; width: 100%; height: auto; aspect-ratio: 16 / 9; }
  .feature__stage::before, .feature__blur, .feature__morebar::before, .feature__team::after { display: none; }
  .feature__over { padding-block: var(--space-8) 0; }
  .feature--stage .feature__body, .feature--stage.feature--full .feature__body { max-width: none; }
  .feature__caption, .feature--alt .feature__caption { text-align: start; }
  .feature__morebar { min-height: 0; }
  .feature__more { padding-block: var(--space-8) var(--space-12); }
  .feature__evidence, .feature--full .feature__evidence { max-width: none; }
  .feature__team, .feature--alt .feature__team, .feature--full .feature__team { position: static; z-index: auto; width: auto; padding-inline: var(--gutter-mobile); padding-block-start: var(--space-8); }
  .feature__team .figure-photo, .feature__team .photo-slot img.figure-photo__img { position: static; width: 100%; height: auto; }
  .feature--stage > .wrap:last-child { padding-block-end: var(--space-12); }
  .page--wray .feature__media { order: 2; }
  .catbar { grid-template-columns: minmax(0, 1fr) var(--space-10); min-height: var(--tap-min); }
  .catbar__track { grid-column: 1 / -1; grid-row: 2; }
  .cv-columns { grid-template-columns: minmax(0, 1fr); }
  .filter__label { min-width: 100%; }
  .filter .tag--button, .tag--button.tag--topic { min-height: var(--space-10); }
}
@media (min-width: 720px) and (max-width: 1023px) {
  .wrap, .site-header { padding-inline: var(--space-8); }
  .band { --bar-gutter: var(--space-8); }
  .feature__stage { --stage-in: 48; }
}

