/* S2olutions — site.css
   One file. Tokens first, then base, layout, components, the scroll stage, worlds, screens, pages.
   Spacing scale: 4 8 12 16 24 32 48 64 96 128 (--s-1 … --s-10). Radii: 8 14 24 pill. */

@font-face {
  font-family: "Bricolage";
  src: url("/assets/fonts/bricolage-grotesque.woff2") format("woff2");
  font-weight: 200 800;
  font-display: swap;
}
@font-face {
  font-family: "Instrument";
  src: url("/assets/fonts/instrument-sans.woff2") format("woff2");
  font-weight: 400 700;
  font-display: swap;
}

/* ---------- Tokens ---------- */
:root {
  color-scheme: light;
  --paper: #faf7f2;
  --paper-2: #f2ede4;
  --surface: #ffffff;
  --ink: #101114;
  --ink-2: #3a3d45;
  --ink-3: #61656f;
  --line: rgb(16 17 20 / 0.12);
  --line-strong: rgb(16 17 20 / 0.22);
  --blue: #2b5cff;
  --blue-ink: #1e46d8;
  --on-blue: #ffffff;
  --focus: #2b5cff;
  --ok: #157a46;
  --err: #b42318;

  --font-display: "Bricolage", "Avenir Next", "Segoe UI", system-ui, sans-serif;
  --font-text: "Instrument", "Helvetica Neue", "Segoe UI", system-ui, sans-serif;

  --fs-hero: clamp(3rem, 2rem + 4.6vw, 6.25rem);
  --fs-h2: clamp(2.25rem, 1.6rem + 2.9vw, 4.25rem);
  --fs-h3: clamp(1.25rem, 1.1rem + 0.5vw, 1.5rem);
  --fs-lead: clamp(1.0625rem, 1rem + 0.35vw, 1.3125rem);
  --fs-body: 1rem;
  --fs-small: 0.875rem;
  --fs-micro: 0.75rem;

  --s-1: 4px; --s-2: 8px; --s-3: 12px; --s-4: 16px; --s-5: 24px;
  --s-6: 32px; --s-7: 48px; --s-8: 64px; --s-9: 96px; --s-10: 128px;

  --r-sm: 8px; --r-md: 14px; --r-lg: 24px; --r-pill: 999px;
  --shadow-1: 0 1px 2px rgb(16 17 20 / 0.06), 0 8px 24px rgb(16 17 20 / 0.08);
  --shadow-2: 0 2px 6px rgb(16 17 20 / 0.08), 0 24px 60px rgb(16 17 20 / 0.16);

  --dur-1: 160ms; --dur-2: 280ms; --dur-3: 560ms;
  --ease-out: cubic-bezier(0.2, 0.8, 0.2, 1);
  --ease-spring: cubic-bezier(0.34, 1.4, 0.64, 1);

  --header-h: 68px;
  --gutter: clamp(16px, 4vw, 40px);
  --maxw: 1240px;

  /* screen (device) palette */
  --scr-bg: #ffffff;
  --scr-2: #f4f2ee;
  --scr-line: rgb(16 17 20 / 0.09);
  --scr-ink: #15171c;
  --scr-ink-2: #5d616b;
  --frame: #15171c;
  --pb-aurora: radial-gradient(circle at 34% 28%, #36c2c0 0%, #1f7c93 30%, #16305e 62%, #3a1f6e 100%);
  --device-ring: 0 0 0 0 transparent;
}

:root[data-theme="dark"] {
  color-scheme: dark;
  --paper: #0e0f12;
  --paper-2: #17191e;
  --surface: #1a1c21;
  --ink: #f4f1ea;
  --ink-2: #cfccc5;
  --ink-3: #a19e97;
  --line: rgb(244 241 234 / 0.13);
  --line-strong: rgb(244 241 234 / 0.26);
  --blue: #6d8bff;
  --blue-ink: #9cb0ff;
  --on-blue: #0b0d18;
  --focus: #8da4ff;
  --ok: #4ccb86;
  --err: #ff8a7a;
  --shadow-1: 0 1px 2px rgb(0 0 0 / 0.4), 0 8px 24px rgb(0 0 0 / 0.35);
  --shadow-2: 0 2px 6px rgb(0 0 0 / 0.5), 0 24px 60px rgb(0 0 0 / 0.55);
  --scr-bg: #16181d;
  --scr-2: #1f2228;
  --scr-line: rgb(244 241 234 / 0.1);
  --scr-ink: #f1eee7;
  --scr-ink-2: #a8a59e;
  --frame: #050608;
  --device-ring: 0 0 0 1px rgb(255 255 255 / 0.09);
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    color-scheme: dark;
    --paper: #0e0f12;
    --paper-2: #17191e;
    --surface: #1a1c21;
    --ink: #f4f1ea;
    --ink-2: #cfccc5;
    --ink-3: #a19e97;
    --line: rgb(244 241 234 / 0.13);
    --line-strong: rgb(244 241 234 / 0.26);
    --blue: #6d8bff;
    --blue-ink: #9cb0ff;
    --on-blue: #0b0d18;
    --focus: #8da4ff;
    --ok: #4ccb86;
    --err: #ff8a7a;
    --shadow-1: 0 1px 2px rgb(0 0 0 / 0.4), 0 8px 24px rgb(0 0 0 / 0.35);
    --shadow-2: 0 2px 6px rgb(0 0 0 / 0.5), 0 24px 60px rgb(0 0 0 / 0.55);
    --scr-bg: #16181d;
    --scr-2: #1f2228;
    --scr-line: rgb(244 241 234 / 0.1);
    --scr-ink: #f1eee7;
    --scr-ink-2: #a8a59e;
    --frame: #050608;
    --device-ring: 0 0 0 1px rgb(255 255 255 / 0.09);
  }
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-padding-top: calc(var(--header-h) + 8px); }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 400 var(--fs-body)/1.6 var(--font-text);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: clip;
}
img, svg, video { display: block; max-width: 100%; }
a { color: inherit; text-decoration-thickness: 1px; text-underline-offset: 0.18em; }
p { margin: 0 0 var(--s-4); }
h1, h2, h3 { margin: 0; font-family: var(--font-display); font-weight: 800; color: inherit; text-wrap: balance; }
button, input, select, textarea { font: inherit; color: inherit; }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; border-radius: 6px; }
::selection { background: color-mix(in srgb, var(--blue) 28%, transparent); }
[hidden] { display: none !important; }
.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;
}
.skip-link {
  position: absolute; left: var(--s-4); top: -60px; z-index: 100;
  background: var(--ink); color: var(--paper); padding: var(--s-2) var(--s-4);
  border-radius: var(--r-pill); font-weight: 600; text-decoration: none;
  transition: top var(--dur-1) var(--ease-out);
}
.skip-link:focus { top: var(--s-3); }
.wrap { width: 100%; max-width: var(--maxw); margin-inline: auto; padding-inline: var(--gutter); }

/* ---------- Type helpers ---------- */
.eyebrow {
  display: inline-flex; align-items: center; gap: var(--s-2);
  font: 600 var(--fs-micro)/1 var(--font-text); letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--ink-3);
}
.eyebrow .sq-dot { width: 8px; height: 8px; border-radius: 2px; background: var(--blue); }
.h-hero { font-size: var(--fs-hero); line-height: 0.94; letter-spacing: -0.035em; }
.h-2 { font-size: var(--fs-h2); line-height: 0.98; letter-spacing: -0.03em; }
.h-3 { font-size: var(--fs-h3); line-height: 1.15; letter-spacing: -0.01em; font-weight: 700; }
.lead { font-size: var(--fs-lead); line-height: 1.5; color: var(--ink-2); max-width: 34em; }
.muted { color: var(--ink-3); }
.small { font-size: var(--fs-small); }

/* Hand-drawn underline under one word of a headline */
.mark-word { position: relative; white-space: nowrap; }
.mark-word svg {
  position: absolute; left: -2%; width: 104%; height: 0.32em; bottom: -0.12em;
  overflow: visible; pointer-events: none;
}
@media (max-width: 400px) {
  .mark-word { white-space: normal; }
  .mark-word svg { display: none; }
}
.mark-word path {
  fill: none; stroke: var(--w-accent, var(--blue)); stroke-width: 7; stroke-linecap: round;
  stroke-dasharray: 320; stroke-dashoffset: 0;
}

/* ---------- Buttons ---------- */
.btn {
  --btn-bg: var(--ink); --btn-fg: var(--paper);
  display: inline-flex; align-items: center; justify-content: center; gap: var(--s-2); white-space: nowrap;
  min-height: 48px; padding: 0 var(--s-5);
  border-radius: var(--r-pill); border: 1px solid transparent;
  background: var(--btn-bg); color: var(--btn-fg);
  font: 600 1rem/1 var(--font-text); text-decoration: none; cursor: pointer;
  transition: transform var(--dur-1) var(--ease-out), background-color var(--dur-1) var(--ease-out), box-shadow var(--dur-1) var(--ease-out);
}
.btn:hover { transform: translateY(-1px); box-shadow: var(--shadow-1); }
.btn:active { transform: translateY(0); box-shadow: none; }
.btn[disabled], .btn[aria-disabled="true"] { opacity: 0.55; cursor: not-allowed; transform: none; box-shadow: none; }
.btn--ghost { --btn-bg: transparent; --btn-fg: currentColor; border-color: var(--line-strong); }
.btn--ghost:hover { background: color-mix(in srgb, currentColor 6%, transparent); }
.btn--blue { --btn-bg: var(--blue); --btn-fg: var(--on-blue); }
.btn--sm { min-height: 40px; padding: 0 var(--s-4); font-size: var(--fs-small); }
.btn .arrow { transition: transform var(--dur-1) var(--ease-out); }
.btn:hover .arrow { transform: translateX(3px); }

.link-arrow {
  display: inline-flex; align-items: center; gap: 6px; font-weight: 600; text-decoration: none;
  color: var(--blue-ink); min-height: 44px;
}
.link-arrow:hover { text-decoration: underline; }

/* ---------- Header ---------- */
.site-header {
  position: fixed; inset: 0 0 auto 0; z-index: 50; height: var(--header-h);
  color: var(--hdr-fg, var(--ink));
  transition: color var(--dur-2) var(--ease-out), background-color var(--dur-2) var(--ease-out), box-shadow var(--dur-2) var(--ease-out);
}
.site-header.is-solid {
  background: color-mix(in srgb, var(--paper) 88%, transparent);
  -webkit-backdrop-filter: saturate(1.4) blur(14px); backdrop-filter: saturate(1.4) blur(14px);
  box-shadow: 0 1px 0 var(--line);
}
html[data-tone="dark"] .site-header:not(.is-solid) { --hdr-fg: #f4f1ea; }
html[data-tone="dark"] .site-header:not(.is-solid) .brand .b-sq { fill: #ffd24a; }
html[data-tone="dark"] { --focus: #ffd24a; }
.site-header .wrap { height: 100%; display: flex; align-items: center; gap: var(--s-5); }
.brand { display: inline-flex; align-items: center; text-decoration: none; min-height: 44px; }
.brand svg { height: 26px; width: auto; }
.brand .b-ink { fill: currentColor; }
.brand .b-sq { fill: var(--blue); }
.nav { margin-left: auto; display: flex; align-items: center; gap: var(--s-1); }
.nav a {
  display: inline-flex; align-items: center; min-height: 44px; padding: 0 var(--s-3);
  border-radius: var(--r-pill); font-weight: 500; font-size: 0.9375rem; text-decoration: none; white-space: nowrap;
  transition: background-color var(--dur-1) var(--ease-out);
}
.nav a:hover { background: color-mix(in srgb, currentColor 8%, transparent); }
.nav a[aria-current="page"] { text-decoration: underline; text-decoration-thickness: 2px; }
.header-actions { display: flex; align-items: center; gap: var(--s-2); }
.icon-btn {
  display: inline-grid; place-items: center; width: 44px; height: 44px; border-radius: var(--r-pill);
  background: transparent; border: 1px solid transparent; cursor: pointer;
}
.icon-btn:hover { background: color-mix(in srgb, currentColor 8%, transparent); }
.icon-btn svg { width: 20px; height: 20px; }
.theme-toggle .i-moon { display: none; }
:root[data-theme="dark"] .theme-toggle .i-sun { display: none; }
:root[data-theme="dark"] .theme-toggle .i-moon { display: block; }
.menu-btn { display: none; }
.site-header .btn { --btn-bg: var(--hdr-fg, var(--ink)); --btn-fg: var(--hdr-bg, var(--paper)); }
html[data-tone="dark"] .site-header:not(.is-solid) .btn { --btn-fg: #101114; }

@media (max-width: 1023px) {
  .nav {
    position: fixed; inset: var(--header-h) 0 auto 0; flex-direction: column; align-items: stretch;
    gap: 0; padding: var(--s-3) var(--gutter) var(--s-5); background: var(--paper); color: var(--ink);
    box-shadow: 0 12px 30px rgb(0 0 0 / 0.12); border-top: 1px solid var(--line);
    transform: translateY(-8px); opacity: 0; visibility: hidden;
    transition: opacity var(--dur-2) var(--ease-out), transform var(--dur-2) var(--ease-out), visibility 0s linear var(--dur-2);
  }
  .nav a { min-height: 52px; font-size: 1.0625rem; border-radius: var(--r-sm); }
  .nav.is-open { opacity: 1; transform: none; visibility: visible; transition-delay: 0s; }
  .menu-btn { display: inline-grid; }
  .header-actions .signin { display: none; }
  .brand svg { height: 22px; }
}
@media (max-width: 480px) {
  .header-actions .theme-toggle { display: none; }
  .header-actions .btn { padding: 0 var(--s-3); }
  .props .prop { transform: scale(0.8); }
}

/* ---------- Generic sections ---------- */
.section { padding-block: clamp(var(--s-8), 9vw, var(--s-10)); position: relative; }
.section-head { display: grid; gap: var(--s-4); margin-bottom: clamp(var(--s-6), 5vw, var(--s-8)); max-width: 52rem; }

/* ---------- Worlds (palettes) ----------
   Each world sets --w-bg, --w-fg, --w-fg-2, --w-accent, --w-blob, --w-floor. Shared by the stacked
   sections and by the sticky stage (via .stage[data-active]). */
[data-world="home"], .stage[data-active="home"] {
  --w-bg: var(--paper); --w-fg: var(--ink); --w-fg-2: var(--ink-2); --w-accent: #f08a24;
  --w-blob: #ffe2c2; --w-floor: #efe5d6; --w-tone: light;
}
[data-world="brokers"], .stage[data-active="brokers"] {
  --w-bg: #fff0df; --w-fg: #1f1409; --w-fg-2: #5a4632; --w-accent: #e06a00;
  --w-blob: #ffd5a3; --w-floor: #f2d8b8; --w-tone: light;
}
[data-world="leads"], .stage[data-active="leads"] {
  --w-bg: #2a55f0; --w-fg: #ffffff; --w-fg-2: #e3e9ff; --w-accent: #ffd24a;
  --w-blob: #4b72ff; --w-floor: #1f45d6; --w-tone: dark;
}
[data-world="owners"], .stage[data-active="owners"] {
  --w-bg: #e2f3e8; --w-fg: #0b2416; --w-fg-2: #2f5240; --w-accent: #17844c;
  --w-blob: #bde6cd; --w-floor: #cbe7d6; --w-tone: light;
}
[data-world="meet"], .stage[data-active="meet"] {
  /* deep space in both themes; the computer keeps its own accent (see "Meet in Spaces: the room in orbit") */
  --w-bg: #050814; --w-fg: #eef2fb; --w-fg-2: #aab5d3; --w-accent: #a58cff;
  --w-blob: transparent; --w-floor: #050814; --w-tone: dark;
}
[data-world="ink"], .stage[data-active="ink"] {
  --w-bg: #f6efdf; --w-fg: #1b1709; --w-fg-2: #4f4733; --w-accent: #1f3c94;
  --w-blob: #ead9b6; --w-floor: #e7dbc0; --w-tone: light;
}
[data-world="pembys"], .stage[data-active="pembys"] {
  --w-bg: #071a24; --w-fg: #eafcfd; --w-fg-2: #a9cdd3; --w-accent: #5adbe3;
  --w-blob: #0f3a4c; --w-floor: #0b2430; --w-tone: dark;
}
[data-world="mobile"], .stage[data-active="mobile"] {
  --w-bg: #ffe4e6; --w-fg: #2a0b12; --w-fg-2: #6a3540; --w-accent: #dc2f55;
  --w-blob: #ffc0c8; --w-floor: #f8cbd2; --w-tone: light;
}
[data-world="developers"], .stage[data-active="developers"] {
  --w-bg: #e6ebe2; --w-fg: #101a10; --w-fg-2: #3c4c3c; --w-accent: #2f7a35;
  --w-blob: #cbd6c4; --w-floor: #d5ddcd; --w-tone: light;
}
:root[data-theme="dark"] [data-world="home"], :root[data-theme="dark"] .stage[data-active="home"] { --w-blob: #2a2016; --w-floor: #17181c; }
:root[data-theme="dark"] [data-world="brokers"], :root[data-theme="dark"] .stage[data-active="brokers"] { --w-bg: #22170d; --w-fg: #fbefe1; --w-fg-2: #e0c9ad; --w-accent: #ff9a3d; --w-blob: #3b2612; --w-floor: #2c1e12; --w-tone: dark; }
:root[data-theme="dark"] [data-world="leads"], :root[data-theme="dark"] .stage[data-active="leads"] { --w-bg: #132a86; --w-blob: #1d3aa6; --w-floor: #0f2270; }
:root[data-theme="dark"] [data-world="owners"], :root[data-theme="dark"] .stage[data-active="owners"] { --w-bg: #0e2118; --w-fg: #e3f4ea; --w-fg-2: #a9cdb8; --w-accent: #48c983; --w-blob: #173527; --w-floor: #12291e; --w-tone: dark; }
:root[data-theme="dark"] [data-world="ink"], :root[data-theme="dark"] .stage[data-active="ink"] { --w-bg: #1d1910; --w-fg: #f6efdf; --w-fg-2: #d3c8ad; --w-accent: #8da4ff; --w-blob: #2e2716; --w-floor: #26211a; --w-tone: dark; }
:root[data-theme="dark"] [data-world="pembys"], :root[data-theme="dark"] .stage[data-active="pembys"] { --w-bg: #050b10; --w-blob: #0c2a38; --w-floor: #08151d; }
:root[data-theme="dark"] [data-world="mobile"], :root[data-theme="dark"] .stage[data-active="mobile"] { --w-bg: #2a1116; --w-fg: #ffe4e6; --w-fg-2: #e6b1ba; --w-accent: #ff6d8a; --w-blob: #43191f; --w-floor: #351619; --w-tone: dark; }
:root[data-theme="dark"] [data-world="developers"], :root[data-theme="dark"] .stage[data-active="developers"] { --w-bg: #111511; --w-fg: #e6ebe2; --w-fg-2: #aab8a8; --w-accent: #6fd07a; --w-blob: #1d241d; --w-floor: #181d18; --w-tone: dark; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) [data-world="home"], :root:not([data-theme="light"]) .stage[data-active="home"] { --w-blob: #2a2016; --w-floor: #17181c; }
  :root:not([data-theme="light"]) [data-world="brokers"], :root:not([data-theme="light"]) .stage[data-active="brokers"] { --w-bg: #22170d; --w-fg: #fbefe1; --w-fg-2: #e0c9ad; --w-accent: #ff9a3d; --w-blob: #3b2612; --w-floor: #2c1e12; --w-tone: dark; }
  :root:not([data-theme="light"]) [data-world="leads"], :root:not([data-theme="light"]) .stage[data-active="leads"] { --w-bg: #132a86; --w-blob: #1d3aa6; --w-floor: #0f2270; }
  :root:not([data-theme="light"]) [data-world="owners"], :root:not([data-theme="light"]) .stage[data-active="owners"] { --w-bg: #0e2118; --w-fg: #e3f4ea; --w-fg-2: #a9cdb8; --w-accent: #48c983; --w-blob: #173527; --w-floor: #12291e; --w-tone: dark; }
  :root:not([data-theme="light"]) [data-world="ink"], :root:not([data-theme="light"]) .stage[data-active="ink"] { --w-bg: #1d1910; --w-fg: #f6efdf; --w-fg-2: #d3c8ad; --w-accent: #8da4ff; --w-blob: #2e2716; --w-floor: #26211a; --w-tone: dark; }
  :root:not([data-theme="light"]) [data-world="pembys"], :root:not([data-theme="light"]) .stage[data-active="pembys"] { --w-bg: #050b10; --w-blob: #0c2a38; --w-floor: #08151d; }
  :root:not([data-theme="light"]) [data-world="mobile"], :root:not([data-theme="light"]) .stage[data-active="mobile"] { --w-bg: #2a1116; --w-fg: #ffe4e6; --w-fg-2: #e6b1ba; --w-accent: #ff6d8a; --w-blob: #43191f; --w-floor: #351619; --w-tone: dark; }
  :root:not([data-theme="light"]) [data-world="developers"], :root:not([data-theme="light"]) .stage[data-active="developers"] { --w-bg: #111511; --w-fg: #e6ebe2; --w-fg-2: #aab8a8; --w-accent: #6fd07a; --w-blob: #1d241d; --w-floor: #181d18; --w-tone: dark; }
}

/* ---------- Worlds: stacked layout (default; phones, no JS) ---------- */
.worlds { position: relative; }
.stage-bg, .stage-device, .stage-sq, .pager, .stage-floor { display: none; }
.world {
  position: relative; overflow: hidden;
  background: var(--w-bg); color: var(--w-fg);
  padding: calc(var(--header-h) + var(--s-7)) var(--gutter) var(--s-8);
  display: grid; gap: var(--s-7);
}
.world + .world { padding-top: var(--s-8); }
.world-copy { position: relative; z-index: 2; display: grid; gap: var(--s-4); align-content: center; max-width: 36rem; }
.world-copy .lead { color: var(--w-fg-2); }
.world-copy .tag {
  justify-self: start; display: inline-flex; align-items: center; gap: var(--s-2);
  padding: 6px 12px 6px 8px; border-radius: var(--r-pill);
  background: color-mix(in srgb, var(--w-fg) 8%, transparent); color: var(--w-fg);
  font: 600 var(--fs-small)/1.2 var(--font-text);
}
.world-copy .tag i { width: 10px; height: 10px; border-radius: 3px; background: var(--w-accent); display: block; }
.world-copy .cta-row { display: flex; flex-wrap: wrap; gap: var(--s-3); margin-top: var(--s-2); }
.world[data-world="home"] .cta-row .btn--ghost { color: var(--w-fg); }
.world-copy .fineprint { font-size: var(--fs-small); color: var(--w-fg-2); margin: 0; }
.world-visual { position: relative; z-index: 1; min-height: 260px; display: grid; place-items: center; }
.world-visual::before {
  content: ""; position: absolute; width: min(88vw, 520px); aspect-ratio: 1; border-radius: 50%;
  background: var(--w-blob); left: 50%; top: 50%; transform: translate(-50%, -50%); z-index: -1;
}

/* Device (the persistent hero object) */
.device {
  position: relative; width: min(100%, 620px); aspect-ratio: 16 / 10.4;
  border-radius: 22px; background: var(--frame); padding: 10px;
  box-shadow: var(--shadow-2), var(--device-ring);
}
.device::after { /* stand */
  content: ""; position: absolute; left: 50%; bottom: -26px; transform: translateX(-50%);
  width: 26%; height: 18px; border-radius: 0 0 10px 10px;
  background: linear-gradient(var(--frame), color-mix(in srgb, var(--frame) 80%, #fff));
}
.screen {
  position: relative; width: 100%; height: 100%; overflow: hidden; border-radius: 13px;
  background: var(--scr-bg); color: var(--scr-ink);
  font: 500 11px/1.35 var(--font-text);
  display: grid; grid-template-columns: 38px 1fr; grid-template-rows: 30px 1fr;
}
.scr-side { grid-row: 1 / 3; background: var(--scr-2); display: grid; align-content: start; justify-items: center; gap: 10px; padding-top: 10px; border-right: 1px solid var(--scr-line); }
.scr-side .logo { width: 16px; height: 15px; }
.scr-side .logo .b-ink { fill: var(--scr-ink); }
.scr-side .logo .b-sq { fill: var(--blue); }
.scr-side i { width: 14px; height: 14px; border-radius: 4px; background: color-mix(in srgb, var(--scr-ink) 14%, transparent); display: block; }
.scr-side i.on { background: var(--w-accent, var(--blue)); }
.scr-top { display: flex; align-items: center; gap: 8px; padding: 0 12px; border-bottom: 1px solid var(--scr-line); font-weight: 600; font-size: 10.5px; }
.scr-top .pill { margin-left: auto; height: 16px; width: 34%; border-radius: 99px; background: var(--scr-2); }
.scr-top .av { width: 16px; height: 16px; border-radius: 50%; background: var(--w-accent, var(--blue)); opacity: 0.85; }
.scr-main { padding: 12px; display: grid; gap: 8px; align-content: start; min-height: 0; overflow: hidden; }
.scr-h { font: 700 13px/1.2 var(--font-display); letter-spacing: -0.01em; margin: 0; }
.scr-sub { color: var(--scr-ink-2); font-size: 10px; margin: 0; }
.chip { display: inline-flex; align-items: center; gap: 5px; height: 18px; padding: 0 7px; border-radius: 99px; font-size: 9.5px; font-weight: 600; background: var(--scr-2); color: var(--scr-ink); white-space: nowrap; }
.chip.accent { background: color-mix(in srgb, var(--w-accent, var(--blue)) 18%, var(--scr-bg)); color: var(--scr-ink); }
.chip b { font-weight: 700; }
.row { display: flex; align-items: center; gap: 8px; padding: 7px 8px; border-radius: 8px; background: var(--scr-bg); border: 1px solid var(--scr-line); }
.row .av { width: 18px; height: 18px; border-radius: 50%; display: grid; place-items: center; font-size: 8.5px; font-weight: 700; color: #fff; flex: none; }
.row .nm { font-weight: 600; }
.row .meta { color: var(--scr-ink-2); font-size: 9.5px; }
.row .chip { margin-left: auto; }
.grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.grid3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; }
.stat { padding: 8px; border-radius: 8px; background: var(--scr-2); }
.stat b { display: block; font: 700 15px/1 var(--font-display); }
.stat span { color: var(--scr-ink-2); font-size: 9.5px; }

/* home screen: centered mark */
.scr-home { grid-column: 1 / -1; grid-row: 1 / -1; display: grid; place-items: center; background: var(--scr-bg); }
.scr-home svg { width: 26%; height: auto; }
.scr-home .b-ink { fill: var(--scr-ink); }
.scr-home .b-sq { fill: var(--blue); }
.scr-home .glow { position: absolute; inset: 0; background: radial-gradient(circle at 50% 50%, color-mix(in srgb, var(--blue) 10%, transparent), transparent 55%); }

/* leads */
.lead-card { border-radius: 10px; padding: 9px 10px; background: var(--scr-bg); border: 1px solid var(--scr-line); display: grid; gap: 5px; box-shadow: 0 6px 16px rgb(16 17 20 / 0.08); }
.lead-card .top { display: flex; align-items: center; gap: 6px; }
.lead-card .src { font-size: 9px; color: var(--scr-ink-2); }
.lead-card .score { margin-left: auto; }
.lead-card.dim { opacity: 0.6; transform: scale(0.97); }
.route { display: flex; align-items: center; gap: 6px; font-size: 9.5px; color: var(--scr-ink-2); }
.route .line { flex: 1; height: 2px; background: repeating-linear-gradient(90deg, var(--w-accent) 0 6px, transparent 6px 10px); }
/* owners */
.bars { display: flex; align-items: flex-end; gap: 7px; height: 70px; padding: 6px 8px 0; border-radius: 8px; background: var(--scr-2); }
.bars span { flex: 1; border-radius: 4px 4px 0 0; background: var(--w-accent); opacity: 0.85; }
.bars span:nth-child(even) { opacity: 0.45; }
/* meet */
.tiles { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; }
.tile { aspect-ratio: 4 / 3; border-radius: 8px; display: grid; place-items: center; position: relative; color: #fff; font: 700 12px/1 var(--font-display); }
.tile small { position: absolute; left: 5px; bottom: 4px; font: 600 8px/1 var(--font-text); opacity: 0.9; }
.tile.talk { outline: 2px solid var(--w-accent); outline-offset: 1px; }
.controls { display: flex; justify-content: center; gap: 6px; }
.controls span { width: 22px; height: 22px; border-radius: 50%; background: var(--scr-2); display: block; }
.controls span.end { background: #e5484d; width: 34px; border-radius: 99px; }
/* ink */
.paper { border-radius: 8px; background: var(--scr-2); padding: 10px 12px; display: grid; gap: 6px; }
.paper .ln { height: 5px; border-radius: 3px; background: color-mix(in srgb, var(--scr-ink) 14%, transparent); }
.paper .ln.s { width: 62%; }
.sigline { display: flex; align-items: flex-end; gap: 8px; margin-top: 4px; }
.sigline svg { width: 46%; height: 28px; overflow: visible; }
.sigline path { fill: none; stroke: var(--w-accent); stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 400; stroke-dashoffset: 0; }
.sigline .base { flex: 1; height: 1px; background: var(--scr-ink-2); align-self: flex-end; margin-bottom: 4px; }
.toast { display: inline-flex; align-items: center; gap: 6px; justify-self: start; padding: 5px 9px; border-radius: 99px; background: var(--scr-ink); color: var(--scr-bg); font-size: 9.5px; font-weight: 600; }
.toast i { width: 8px; height: 8px; border-radius: 50%; background: #3ccf7f; display: block; }
/* chat (Pembys screen) */
.chat { display: grid; gap: 7px; }
.bub { max-width: 82%; padding: 7px 9px; border-radius: 10px; font-size: 10px; line-height: 1.35; }
.bub.me { justify-self: end; background: var(--scr-ink); color: var(--scr-bg); border-bottom-right-radius: 3px; }
.bub.pb { background: var(--scr-2); border-bottom-left-radius: 3px; }
.bub.pb b { display: block; font-size: 9px; color: var(--scr-ink-2); margin-bottom: 2px; }
.tasks { display: grid; gap: 4px; font-size: 9.5px; }
.tasks span { display: flex; gap: 6px; align-items: center; }
.tasks span::before { content: ""; width: 9px; height: 9px; border-radius: 3px; border: 1.5px solid var(--scr-ink-2); }
.tasks span.done::before { background: var(--ok); border-color: var(--ok); }
/* developers */
.code { border-radius: 8px; background: #0f1310; color: #d7e4d3; padding: 10px; font: 500 9.5px/1.55 ui-monospace, "SFMono-Regular", Menlo, monospace; white-space: pre; overflow: hidden; }
.code .k { color: #8fd694; } .code .s { color: #f2cc7a; } .code .c { color: #7b8a78; }

/* ---------- Pembys in Spaces ---------- */
/* In-app screen palette (Pembys spec, section 5.1) for the device in this world */
[data-world="pembys"] .screen, .stage[data-active="pembys"] .screen-base {
  --scr-bg: #07090d; --scr-2: #0d1117; --scr-line: #1c232d; --scr-ink: #e8ecf2; --scr-ink-2: #a3aebd;
}
[data-world="pembys"] .world-visual::before { background: var(--pb-aurora); }
.pbw { container-type: inline-size; }
.pbw .scr-top .teach {
  margin-left: auto; display: inline-flex; align-items: center; height: 18px; padding: 0 8px; border-radius: 99px;
  font-size: 9px; font-weight: 600; color: #86e6ec; background: #0f1c22; border: 1px solid #2c6f78;
}
.pbw .scr-top .av { background: #5adbe3; }
.pbw-grid { display: grid; grid-template-columns: minmax(0, 0.43fr) minmax(0, 0.57fr); gap: 10px; min-height: 0; }
.pbw-team { display: grid; gap: 4px; align-content: start; min-width: 0; }
.pbw-h { margin: 0 0 2px 4px; font-size: 8px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--scr-ink-2); }
.pbw-row { display: flex; align-items: center; gap: 7px; padding: 5px 6px; border-radius: 9px; border: 1px solid transparent; min-width: 0; }
.pbw-row.is-sel { background: #0f1c22; border-color: #2c6f78; }
.pbw-row svg.pb { width: 24px; height: 24px; flex: none; }
.pbw-row > div { display: grid; min-width: 0; }
.pbw-row b { font-size: 9.5px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pbw-row span { display: flex; align-items: center; gap: 4px; font-size: 8.5px; color: var(--scr-ink-2); white-space: nowrap; overflow: hidden; }
.st { width: 6px; height: 6px; border-radius: 50%; flex: none; }
.st-idle { background: #9aa5b4; } .st-working { background: #5adbe3; } .st-needs { background: #f2b33d; } .st-done { background: #6ee0a8; }
.pbw-chat { display: grid; gap: 7px; align-content: start; min-width: 0; }
.pbw .bub.pb { max-width: 100%; background: #121821; color: var(--scr-ink); }
.pbw .bub.pb b { color: #86e6ec; }
.pbw-card { display: grid; gap: 5px; padding: 8px 9px; border-radius: 10px; background: var(--scr-2); border: 1px solid #263040; }
.pbw-card-top { display: flex; align-items: center; gap: 6px; }
.pbw-card-top b { font-size: 10px; font-weight: 700; }
.pbw-card .chip.needs { margin-left: auto; background: rgb(242 179 61 / 0.16); color: #f2c66d; }
.pbw-purpose { margin: 0; font-size: 8.5px; color: var(--scr-ink-2); }
.pbw-draft { margin: 0; padding: 6px 7px; border-radius: 7px; background: #12313a; border: 1px solid #1e4b55; color: #e8f7f9; font-size: 9px; line-height: 1.4; }
.pbw-checks { margin: 0; display: flex; flex-wrap: wrap; gap: 3px 10px; font-size: 8.5px; color: #6ee0a8; }
.pbw-checks span::before { content: "✓"; margin-right: 3px; font-weight: 700; }
.pbw-btns { display: flex; gap: 5px; }
.pbw-btns span { display: inline-flex; align-items: center; height: 18px; padding: 0 8px; border-radius: 6px; font-size: 8.5px; font-weight: 600; border: 1px solid #263040; white-space: nowrap; }
.pbw-btns .b1 { background: #5adbe3; border-color: #5adbe3; color: #04161b; }
.pbw-sys { margin: 0; font-size: 8.5px; color: var(--scr-ink-2); }
.pbw-sys b { color: var(--scr-ink); font-weight: 600; }
@media (max-width: 599px) {
  .props .pbp-3, .props .pbp-4 { display: none; }
  .pbp-1 { left: -3% !important; top: -6% !important; width: 15% !important; }
  .pbp-2 { right: -3% !important; top: -6% !important; width: 12% !important; }
}
@container (max-width: 440px) {
  .pbw-grid { grid-template-columns: minmax(0, 1fr); }
  .pbw-team, .pbw-sys, .pbw-btns .b3 { display: none; }
}

/* World copy: three points and the motion control */
@media (min-width: 900px) and (max-height: 820px) {
  html.has-stage [data-world="pembys"] .pbw-points { display: none; }
}
@media (min-width: 900px) and (max-height: 700px) {
  html.has-stage [data-world="pembys"] .pbw-fine > span { display: none; }
}

.pbw-points { list-style: none; margin: 0; padding: 0; display: grid; gap: var(--s-2); color: var(--w-fg-2); }
.pbw-points li { display: grid; grid-template-columns: 14px 1fr; gap: var(--s-3); align-items: baseline; }
.pbw-points b { color: var(--w-fg); font-weight: 600; }
.pbw-points .pt { width: 12px; height: 12px; border-radius: 45% 55% 50% 40%; background: var(--pt); transform: translateY(1px); }
.pbw-fine { display: flex; flex-wrap: wrap; align-items: center; gap: var(--s-2) var(--s-4); }
.motion-toggle {
  display: inline-flex; align-items: center; gap: 6px; min-height: 44px; padding: 0 14px 0 11px; border-radius: var(--r-pill);
  border: 1px solid color-mix(in srgb, var(--w-fg) 28%, transparent); background: transparent; color: var(--w-fg);
  font: 600 var(--fs-small)/1 var(--font-text); cursor: pointer;
  transition: background-color var(--dur-1) var(--ease-out);
}
.motion-toggle:hover { background: color-mix(in srgb, var(--w-fg) 9%, transparent); }
.motion-toggle svg { width: 16px; height: 16px; }
.motion-toggle .i-play { display: none; }
html.motion-off .motion-toggle .i-play { display: inline; }
html.motion-off .motion-toggle .i-pause { display: none; }

/* ---------- Meet in Spaces: the room in orbit ----------
   The computer and its screen stay exactly as in every other world. Around it: a starfield, Earth where the
   blob sits, Pembys orbiting Earth (passing behind it and in front of the computer), the sun and moon, two
   small planets, a shooting star, and an astronaut Pemby. Markup comes from docs/brand/space/space_scene.py.
   Everything moves only while the world is on screen (.pb-live) and holds still for Pause motion and
   reduced motion. */
[data-world="meet"] .device { --w-accent: #6a48e8; z-index: 2; }
:root[data-theme="dark"] [data-world="meet"] .device { --w-accent: #a58cff; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) [data-world="meet"] .device { --w-accent: #a58cff; } }
.world[data-world="meet"] {
  /* space:tiles */
  --sp-tile-a: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='300' height='300'%3E%3Ccircle cx='135.9' cy='167.7' r='1.0' fill='%23CFE4FF' fill-opacity='0.68'/%3E%3Ccircle cx='255.1' cy='58.2' r='0.93' fill='%23CFE4FF' fill-opacity='0.69'/%3E%3Ccircle cx='236.7' cy='29.9' r='0.63' fill='%23FFFFFF' fill-opacity='0.5'/%3E%3Ccircle cx='178.2' cy='119.3' r='0.72' fill='%23FFFFFF' fill-opacity='0.82'/%3E%3Ccircle cx='186.4' cy='248.2' r='0.49' fill='%23FFFFFF' fill-opacity='0.47'/%3E%3Ccircle cx='179.5' cy='232.3' r='0.65' fill='%23FFFFFF' fill-opacity='0.75'/%3E%3Ccircle cx='155.7' cy='191.5' r='0.75' fill='%23FFEFD2' fill-opacity='0.78'/%3E%3Ccircle cx='195.8' cy='122.4' r='0.78' fill='%23FFFFFF' fill-opacity='0.92'/%3E%3Ccircle cx='211.5' cy='95.3' r='0.59' fill='%23FFFFFF' fill-opacity='0.59'/%3E%3Ccircle cx='168.7' cy='33.9' r='0.51' fill='%23FFFFFF' fill-opacity='0.6'/%3E%3Ccircle cx='285.6' cy='252.8' r='0.45' fill='%23FFFFFF' fill-opacity='0.55'/%3E%3Ccircle cx='141.1' cy='292.2' r='0.69' fill='%23FFFFFF' fill-opacity='0.49'/%3E%3Ccircle cx='232.4' cy='81.9' r='0.5' fill='%23FFEFD2' fill-opacity='0.62'/%3E%3Ccircle cx='226.4' cy='36.9' r='0.6' fill='%23FFFFFF' fill-opacity='0.5'/%3E%3Ccircle cx='139.6' cy='146.1' r='0.86' fill='%23CFE4FF' fill-opacity='0.54'/%3E%3Ccircle cx='58.4' cy='218.6' r='0.53' fill='%23FFFFFF' fill-opacity='0.77'/%3E%3Ccircle cx='118.9' cy='295.1' r='0.45' fill='%23CFE4FF' fill-opacity='0.88'/%3E%3Ccircle cx='92.0' cy='263.9' r='0.58' fill='%23CFE4FF' fill-opacity='0.65'/%3E%3Ccircle cx='192.0' cy='31.7' r='1.04' fill='%23DCE8FF' fill-opacity='0.56'/%3E%3Ccircle cx='4.8' cy='182.7' r='0.95' fill='%23FFFFFF' fill-opacity='0.64'/%3E%3Ccircle cx='28.7' cy='174.5' r='0.6' fill='%23DCE8FF' fill-opacity='0.75'/%3E%3Ccircle cx='186.2' cy='39.7' r='0.8' fill='%23FFFFFF' fill-opacity='0.87'/%3E%3Ccircle cx='258.5' cy='56.1' r='0.54' fill='%23CFE4FF' fill-opacity='0.9'/%3E%3Ccircle cx='75.9' cy='58.2' r='0.89' fill='%23FFFFFF' fill-opacity='0.92'/%3E%3Ccircle cx='205.3' cy='116.9' r='0.74' fill='%23FFFFFF' fill-opacity='0.49'/%3E%3Ccircle cx='32.7' cy='13.5' r='1.03' fill='%23FFEFD2' fill-opacity='0.57'/%3E%3Ccircle cx='78.1' cy='245.8' r='0.81' fill='%23FFFFFF' fill-opacity='0.6'/%3E%3Ccircle cx='277.1' cy='291.2' r='0.53' fill='%23CFE4FF' fill-opacity='0.69'/%3E%3Ccircle cx='183.8' cy='84.9' r='1.0' fill='%23FFFFFF' fill-opacity='0.55'/%3E%3Ccircle cx='22.5' cy='123.8' r='0.6' fill='%23DCE8FF' fill-opacity='0.47'/%3E%3Ccircle cx='111.2' cy='171.4' r='0.53' fill='%23FFEFD2' fill-opacity='0.63'/%3E%3Ccircle cx='292.2' cy='196.5' r='0.86' fill='%23FFFFFF' fill-opacity='0.74'/%3E%3Ccircle cx='176.6' cy='275.4' r='0.73' fill='%23DCE8FF' fill-opacity='0.63'/%3E%3Ccircle cx='287.0' cy='8.3' r='0.83' fill='%23DCE8FF' fill-opacity='0.69'/%3E%3Ccircle cx='96.4' cy='297.8' r='0.5' fill='%23FFFFFF' fill-opacity='0.72'/%3E%3Ccircle cx='268.5' cy='220.2' r='0.87' fill='%23DCE8FF' fill-opacity='0.85'/%3E%3Ccircle cx='106.1' cy='204.8' r='0.99' fill='%23FFEFD2' fill-opacity='0.89'/%3E%3Ccircle cx='281.5' cy='11.0' r='0.75' fill='%23FFEFD2' fill-opacity='0.46'/%3E%3Ccircle cx='114.2' cy='5.7' r='0.49' fill='%23FFFFFF' fill-opacity='0.5'/%3E%3Ccircle cx='296.0' cy='262.4' r='0.89' fill='%23CFE4FF' fill-opacity='0.64'/%3E%3C/svg%3E");
  --sp-tile-b: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='470' height='470'%3E%3Ccircle cx='433.0' cy='444.1' r='3.34' fill='%23CFE4FF' fill-opacity='0.07'/%3E%3Ccircle cx='433.0' cy='444.1' r='1.52' fill='%23CFE4FF' fill-opacity='0.49'/%3E%3Ccircle cx='144.9' cy='178.7' r='2.53' fill='%23DCE8FF' fill-opacity='0.07'/%3E%3Ccircle cx='144.9' cy='178.7' r='1.15' fill='%23DCE8FF' fill-opacity='0.81'/%3E%3Ccircle cx='209.2' cy='105.0' r='2.68' fill='%23FFFFFF' fill-opacity='0.07'/%3E%3Ccircle cx='209.2' cy='105.0' r='1.22' fill='%23FFFFFF' fill-opacity='0.46'/%3E%3Ccircle cx='459.3' cy='234.2' r='2.00' fill='%23FFEFD2' fill-opacity='0.07'/%3E%3Ccircle cx='459.3' cy='234.2' r='0.91' fill='%23FFEFD2' fill-opacity='0.76'/%3E%3Ccircle cx='169.3' cy='28.8' r='3.19' fill='%23FFFFFF' fill-opacity='0.07'/%3E%3Ccircle cx='169.3' cy='28.8' r='1.45' fill='%23FFFFFF' fill-opacity='0.74'/%3E%3Ccircle cx='291.4' cy='454.4' r='2.53' fill='%23DCE8FF' fill-opacity='0.07'/%3E%3Ccircle cx='291.4' cy='454.4' r='1.15' fill='%23DCE8FF' fill-opacity='0.83'/%3E%3Ccircle cx='453.3' cy='133.1' r='3.48' fill='%23FFEFD2' fill-opacity='0.07'/%3E%3Ccircle cx='453.3' cy='133.1' r='1.58' fill='%23FFEFD2' fill-opacity='0.74'/%3E%3Ccircle cx='84.8' cy='227.1' r='3.19' fill='%23FFFFFF' fill-opacity='0.07'/%3E%3Ccircle cx='84.8' cy='227.1' r='1.45' fill='%23FFFFFF' fill-opacity='0.79'/%3E%3Ccircle cx='86.8' cy='85.2' r='2.49' fill='%23FFFFFF' fill-opacity='0.07'/%3E%3Ccircle cx='86.8' cy='85.2' r='1.13' fill='%23FFFFFF' fill-opacity='0.86'/%3E%3Ccircle cx='273.4' cy='40.4' r='2.64' fill='%23CFE4FF' fill-opacity='0.07'/%3E%3Ccircle cx='273.4' cy='40.4' r='1.2' fill='%23CFE4FF' fill-opacity='0.73'/%3E%3Ccircle cx='132.8' cy='276.9' r='2.16' fill='%23CFE4FF' fill-opacity='0.07'/%3E%3Ccircle cx='132.8' cy='276.9' r='0.98' fill='%23CFE4FF' fill-opacity='0.9'/%3E%3Ccircle cx='144.0' cy='364.4' r='2.82' fill='%23FFFFFF' fill-opacity='0.07'/%3E%3Ccircle cx='144.0' cy='364.4' r='1.28' fill='%23FFFFFF' fill-opacity='0.58'/%3E%3Ccircle cx='290.8' cy='57.6' r='3.21' fill='%23DCE8FF' fill-opacity='0.07'/%3E%3Ccircle cx='290.8' cy='57.6' r='1.46' fill='%23DCE8FF' fill-opacity='0.7'/%3E%3Ccircle cx='256.2' cy='430.1' r='2.88' fill='%23FFFFFF' fill-opacity='0.07'/%3E%3Ccircle cx='256.2' cy='430.1' r='1.31' fill='%23FFFFFF' fill-opacity='0.92'/%3E%3Ccircle cx='211.4' cy='17.7' r='2.95' fill='%23FFFFFF' fill-opacity='0.07'/%3E%3Ccircle cx='211.4' cy='17.7' r='1.34' fill='%23FFFFFF' fill-opacity='0.65'/%3E%3Ccircle cx='379.3' cy='322.2' r='3.48' fill='%23FFFFFF' fill-opacity='0.07'/%3E%3Ccircle cx='379.3' cy='322.2' r='1.58' fill='%23FFFFFF' fill-opacity='0.85'/%3E%3C/svg%3E");
  --sp-tile-c: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='380' height='380'%3E%3Ccircle cx='258.4' cy='36.4' r='3.50' fill='%23CFE4FF' fill-opacity='0.07'/%3E%3Ccircle cx='258.4' cy='36.4' r='1.59' fill='%23CFE4FF' fill-opacity='0.87'/%3E%3Ccircle cx='15.3' cy='371.9' r='3.19' fill='%23FFEFD2' fill-opacity='0.07'/%3E%3Ccircle cx='15.3' cy='371.9' r='1.45' fill='%23FFEFD2' fill-opacity='0.84'/%3E%3Ccircle cx='227.9' cy='108.0' r='3.08' fill='%23FFEFD2' fill-opacity='0.07'/%3E%3Ccircle cx='227.9' cy='108.0' r='1.4' fill='%23FFEFD2' fill-opacity='0.82'/%3E%3Ccircle cx='56.3' cy='302.9' r='4.00' fill='%23FFEFD2' fill-opacity='0.07'/%3E%3Ccircle cx='56.3' cy='302.9' r='1.82' fill='%23FFEFD2' fill-opacity='0.47'/%3E%3Ccircle cx='30.3' cy='110.5' r='3.06' fill='%23CFE4FF' fill-opacity='0.07'/%3E%3Ccircle cx='30.3' cy='110.5' r='1.39' fill='%23CFE4FF' fill-opacity='0.8'/%3E%3Ccircle cx='213.5' cy='242.3' r='3.43' fill='%23CFE4FF' fill-opacity='0.07'/%3E%3Ccircle cx='213.5' cy='242.3' r='1.56' fill='%23CFE4FF' fill-opacity='0.47'/%3E%3Ccircle cx='234.9' cy='192.0' r='2.53' fill='%23CFE4FF' fill-opacity='0.07'/%3E%3Ccircle cx='234.9' cy='192.0' r='1.15' fill='%23CFE4FF' fill-opacity='0.45'/%3E%3Ccircle cx='344.2' cy='27.8' r='3.43' fill='%23DCE8FF' fill-opacity='0.07'/%3E%3Ccircle cx='344.2' cy='27.8' r='1.56' fill='%23DCE8FF' fill-opacity='0.46'/%3E%3Ccircle cx='200.3' cy='310.7' r='2.46' fill='%23FFFFFF' fill-opacity='0.07'/%3E%3Ccircle cx='200.3' cy='310.7' r='1.12' fill='%23FFFFFF' fill-opacity='0.46'/%3E%3Ccircle cx='278.7' cy='119.1' r='2.82' fill='%23DCE8FF' fill-opacity='0.07'/%3E%3Ccircle cx='278.7' cy='119.1' r='1.28' fill='%23DCE8FF' fill-opacity='0.77'/%3E%3Ccircle cx='237.0' cy='108.3' r='3.67' fill='%23FFFFFF' fill-opacity='0.07'/%3E%3Ccircle cx='237.0' cy='108.3' r='1.67' fill='%23FFFFFF' fill-opacity='0.69'/%3E%3Ccircle cx='102.2' cy='240.6' r='3.19' fill='%23FFFFFF' fill-opacity='0.07'/%3E%3Ccircle cx='102.2' cy='240.6' r='1.45' fill='%23FFFFFF' fill-opacity='0.5'/%3E%3Cpath d='M106.0 91.7L106.8 95.3L110.4 96.1L106.8 96.9L106.0 100.5L105.2 96.9L101.6 96.1L105.2 95.3Z' fill='%23FFFFFF' fill-opacity='0.9'/%3E%3Cpath d='M56.9 132.5L57.5 135.6L60.6 136.2L57.5 136.9L56.9 139.9L56.2 136.9L53.2 136.2L56.2 135.6Z' fill='%23FFFFFF' fill-opacity='0.9'/%3E%3Cpath d='M63.8 213.2L64.6 217.1L68.5 218.0L64.6 218.8L63.8 222.7L62.9 218.8L59.0 218.0L62.9 217.1Z' fill='%23FFFFFF' fill-opacity='0.9'/%3E%3C/svg%3E");
  --sp-tile-d: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='340' height='340'%3E%3Ccircle cx='83.8' cy='170.7' r='1.0' fill='%23FFFFFF' fill-opacity='0.86'/%3E%3Ccircle cx='281.8' cy='88.0' r='1.42' fill='%23FFEFD2' fill-opacity='0.72'/%3E%3Ccircle cx='247.8' cy='186.2' r='1.28' fill='%23DCE8FF' fill-opacity='0.74'/%3E%3Ccircle cx='132.0' cy='95.3' r='1.32' fill='%23FFFFFF' fill-opacity='0.45'/%3E%3Ccircle cx='11.5' cy='88.8' r='1.19' fill='%23FFFFFF' fill-opacity='0.86'/%3E%3Ccircle cx='118.7' cy='102.7' r='1.17' fill='%23FFFFFF' fill-opacity='0.85'/%3E%3Ccircle cx='258.8' cy='11.9' r='1.47' fill='%23FFFFFF' fill-opacity='0.53'/%3E%3Ccircle cx='306.6' cy='333.4' r='1.39' fill='%23CFE4FF' fill-opacity='0.86'/%3E%3Ccircle cx='38.2' cy='186.5' r='1.47' fill='%23FFEFD2' fill-opacity='0.92'/%3E%3Ccircle cx='315.2' cy='308.3' r='1.49' fill='%23FFEFD2' fill-opacity='0.63'/%3E%3Cpath d='M299.3 182.1L300.0 185.2L303.2 185.9L300.0 186.6L299.3 189.8L298.6 186.6L295.5 185.9L298.6 185.2Z' fill='%23FFFFFF' fill-opacity='0.9'/%3E%3Cpath d='M124.6 150.4L125.3 153.4L128.4 154.1L125.3 154.8L124.6 157.8L124.0 154.8L120.9 154.1L124.0 153.4Z' fill='%23FFFFFF' fill-opacity='0.9'/%3E%3C/svg%3E");
  /* /space:tiles */
}
.world[data-world="meet"]::before, .world[data-world="meet"]::after {
  content: ""; position: absolute; inset: -8%; z-index: 0; pointer-events: none;
}
.world[data-world="meet"]::before {
  background:
    radial-gradient(52% 42% at 82% 26%, rgb(46 104 196 / 0.24), transparent 70%),
    radial-gradient(40% 36% at 10% 84%, rgb(24 128 150 / 0.16), transparent 70%),
    var(--sp-tile-a) 0 0 / 300px 300px,
    var(--sp-tile-b) 37px 91px / 470px 470px;
  animation: sp-drift 150s ease-in-out infinite alternate paused;
}
.world[data-world="meet"]::after {
  background: var(--sp-tile-c) 120px 40px / 380px 380px;
  animation: sp-twinkle 5.5s ease-in-out infinite alternate paused;
}
.world[data-world="meet"].pb-live::before, .world[data-world="meet"].pb-live::after { animation-play-state: running; }
[data-world="meet"] .world-visual { padding-block: 14%; }
[data-world="meet"] .world-visual::before { display: none; } /* the blob becomes Earth */
[data-world="meet"] .props { z-index: auto; }

.space { position: absolute; inset: 0; pointer-events: none; --dev-w: min(100%, 620px); --orbit: 1.1; --sat: 8.6%; }
.space::before { /* a second twinkle, out of step with the first */
  content: ""; position: absolute; inset: -20% -10%; z-index: 0;
  background: var(--sp-tile-d) 60px 20px / 340px 340px;
  animation: sp-twinkle 3.7s ease-in-out 1.2s infinite alternate-reverse;
}
.earth {
  position: absolute; left: 50%; top: 50%; z-index: 1; width: calc(var(--dev-w) * 0.92); aspect-ratio: 1;
  transform: translate(-50%, -50%) rotate(-8deg);
}
.earth::before { /* a still glow, so the turning map never re-renders a filter */
  content: ""; position: absolute; inset: 5%; border-radius: 50%; box-shadow: 0 0 56px 8px rgb(92 170 255 / 0.3);
}
.earth svg { display: block; width: 100%; height: 100%; overflow: visible; }
.earth-land { animation: sp-spin-map 90s linear infinite; }
.earth-clouds { animation: sp-spin-map 140s linear infinite; }
.orbit {
  position: absolute; left: 50%; top: 50%; width: calc(var(--dev-w) * var(--orbit)); aspect-ratio: 1;
  transform: translate(-50%, -50%) rotate(-8deg) scaleY(0.68);
}
.orbit::before { content: ""; position: absolute; inset: 0; border-radius: 50%; border: 1.5px dashed rgb(170 205 255 / 0.22); }
/* One orbit drawn twice: the far half sits behind Earth, the near half in front of the computer. */
.orbit--back { z-index: 0; clip-path: inset(-30% -30% 50% -30%); }
.orbit--front { z-index: 3; clip-path: inset(50% -30% -30% -30%); }
.orbit .arm { position: absolute; inset: 0; animation: sp-spin 32s linear calc(var(--i) * -8s) infinite; }
.orbit .sat {
  position: absolute; left: 100%; top: 50%; width: var(--sat); aspect-ratio: 1;
  margin: calc(var(--sat) / -2) 0 0 calc(var(--sat) / -2);
  animation: sp-spin 32s linear calc(var(--i) * -8s) infinite reverse;
}
.orbit .sat > svg { transform: scaleY(1.4706) rotate(8deg); } /* undo the orbit's tilt and squash */

.cel { z-index: 0; }
.cel-moon { z-index: 4; }
.cel-astro { z-index: 5; }
.cel-in { display: block; }
.cel-in svg, .cel svg { display: block; width: 100%; height: auto; overflow: visible; }
.cel-sun .sun-rays, .cel-sun .sun-glow { transform-box: fill-box; transform-origin: 50% 50%; }
.cel-sun .sun-rays { animation: sp-spin 80s linear infinite; }
.cel-sun .sun-glow { animation: sp-pulse 6s ease-in-out infinite alternate; }
.cel-moon .cel-in { animation: sp-bob 11s ease-in-out infinite alternate; }
.cel-ringed .cel-in { animation: sp-rock 14s ease-in-out infinite alternate; }
.cel-red .cel-in { animation: sp-bob 9s ease-in-out -4s infinite alternate-reverse; }
.cel-astro .cel-in { animation: sp-float 13s ease-in-out infinite; }
.cel-astro .astro-light { animation: sp-blink 2.4s steps(1, end) infinite; }
.cel-comet { height: 40%; }
.comet {
  position: absolute; left: 0; top: 0; width: 34%; height: 2px; border-radius: 2px; opacity: 0;
  background: linear-gradient(90deg, rgb(255 255 255 / 0), rgb(255 255 255 / 0.9));
  animation: sp-comet 12s ease-in 3s infinite;
}
/* Motion is held until the world is on screen; Pause motion and reduced motion keep it held. */
.sp-anim, .space::before { animation-play-state: paused !important; }
.pb-live .sp-anim, .pb-live .space::before { animation-play-state: running !important; }
@keyframes sp-spin { to { transform: rotate(360deg); } }
@keyframes sp-spin-map { to { transform: translateX(-200px); } }
@keyframes sp-drift { to { transform: translate3d(-4%, 3%, 0); } }
@keyframes sp-twinkle { from { opacity: 0.25; } to { opacity: 1; } }
@keyframes sp-pulse { from { transform: scale(0.94); opacity: 0.8; } to { transform: scale(1.06); opacity: 1; } }
@keyframes sp-bob { from { transform: translateY(-4%) rotate(-3deg); } to { transform: translateY(5%) rotate(3deg); } }
@keyframes sp-rock { from { transform: translate(-3%, 2%) rotate(-5deg); } to { transform: translate(4%, -3%) rotate(4deg); } }
@keyframes sp-float {
  0%, 100% { transform: translate(0, 0) rotate(-7deg); }
  50% { transform: translate(-9%, 7%) rotate(6deg); }
}
@keyframes sp-blink { 0%, 55% { opacity: 1; } 56%, 100% { opacity: 0.25; } }
@keyframes sp-comet {
  0% { transform: translate(0, 0) rotate(22deg); opacity: 0; }
  1% { opacity: 1; }
  7% { transform: translate(260%, 420%) rotate(22deg); opacity: 0; }
  100% { transform: translate(260%, 420%) rotate(22deg); opacity: 0; }
}
@media (min-width: 900px) {
  .space { --dev-w: min(100%, 46vw, 640px); --orbit: 1.16; --sat: 9.5%; }
  [data-world="meet"] .world-visual { padding-block: 0; }
  /* On the stage the shared device sits under every world; here the world draws its own (same frame, same
     place) so Earth can sit behind it. */
  html.has-stage .world[data-world="meet"] .device { background: var(--frame); box-shadow: var(--shadow-2), var(--device-ring); }
  html.has-stage .world[data-world="meet"] .device::after { display: block; }
  html.has-stage .world[data-world="meet"] .screen { background: var(--scr-bg); }
}
@media (max-width: 899px) {
  [data-world="meet"] .cel-sun { left: -3% !important; top: -4% !important; width: 17% !important; }
  [data-world="meet"] .cel-astro { right: -3% !important; top: -7% !important; width: 15% !important; }
  [data-world="meet"] .cel-moon { right: -3% !important; bottom: -4% !important; width: 13% !important; }
  [data-world="meet"] .cel-red { left: 30% !important; top: 0 !important; }
}
@media (prefers-reduced-motion: reduce) {
  .sp-anim, .space::before, .world[data-world="meet"]::before, .world[data-world="meet"]::after { animation-play-state: paused !important; }
  /* a still picture: the Pembys spread around the orbit instead of all at the start */
  .orbit .arm, .orbit .sat { animation: none !important; }
  .orbit .arm { transform: rotate(calc(var(--i) * 90deg + 25deg)); }
  .orbit .sat { transform: rotate(calc(var(--i) * -90deg - 25deg)); }
}

/* Pemby avatars (Pembys spec, section 8; geometry in docs/brand/pembys/) */
.svg-defs { position: absolute; width: 0; height: 0; overflow: hidden; }
svg.pb { display: block; width: 100%; height: auto; overflow: visible; }
svg.pb .pb-move, svg.pb .pb-shadow { transform-box: fill-box; transform-origin: 50% 100%; }
svg.pb .pb-eye, svg.pb .pb-glance, svg.pb .pb-ring, svg.pb .pb-spark { transform-box: fill-box; transform-origin: 50% 50%; }
svg.pb .v { display: none; }
svg.pb--idle .v-idle, svg.pb--working .v-working, svg.pb--needs .v-needs,
svg.pb--blocked .v-blocked, svg.pb--done .v-done, svg.pb--paused .v-paused { display: inline; }
svg.pb--blocked .pb-move { transform: scale(1.03, 0.95); }
svg.pb--paused { filter: saturate(0.35) brightness(0.85); }
@keyframes pb-breathe { 0%, 100% { transform: scale(1, 1); } 50% { transform: scale(0.986, 1.022); } }
@keyframes pb-blink { 0%, 96%, 100% { transform: scaleY(1); } 98% { transform: scaleY(0.12); } }
@keyframes pb-glance { 0%, 40%, 100% { transform: translateX(0); } 42.5%, 64% { transform: translateX(2.4px); } 66.5% { transform: translateX(0); } }
@keyframes pb-work { 0%, 100% { transform: translateY(0) rotate(0deg); } 30% { transform: translateY(-1.4px) rotate(-1.6deg); } 70% { transform: translateY(-0.6px) rotate(1.1deg); } }
@keyframes pb-spin { to { transform: rotate(360deg); } }
@keyframes pb-lift { 0%, 72%, 100% { transform: translateY(0); } 80% { transform: translateY(-4px); } 88% { transform: translateY(0); } }
@keyframes pb-liftshadow { 0%, 72%, 100% { transform: scale(1); opacity: 1; } 80% { transform: scale(0.82); opacity: 0.6; } }
@keyframes pb-once { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-5px); } }
@keyframes pb-twinkle { 0% { opacity: 0; transform: scale(0.4); } 35% { opacity: 1; transform: scale(1); } 100% { opacity: 0; transform: scale(1); } }
/* Loops run only while their world is on screen (.pb-live, set by site.js) */
.pb-live svg.pb--idle .pb-move { animation: pb-breathe 4.2s ease-in-out infinite; }
.pb-live svg.pb--idle .pb-eye { animation: pb-blink 6.4s ease-in-out infinite; }
.pb-live svg.pb--idle .pb-glance { animation: pb-glance 11s ease-in-out infinite; }
.pb-live svg.pb--working .pb-move { animation: pb-work 1.9s ease-in-out infinite; }
.pb-live svg.pb--working .pb-ring { animation: pb-spin 2.6s linear infinite; }
.pb-live svg.pb--working .pb-eye { animation: pb-blink 7s ease-in-out infinite; }
.pb-live svg.pb--needs .pb-move { animation: pb-lift 3.6s ease-in-out infinite; }
.pb-live svg.pb--needs .pb-shadow { animation: pb-liftshadow 3.6s ease-in-out infinite; }
.pb-live svg.pb--done .pb-move { animation: pb-once 600ms cubic-bezier(0.2, 0.8, 0.2, 1) 1; }
.pb-live svg.pb--done .pb-spark { animation: pb-twinkle 900ms ease-out 1 both; }
.pb-live svg.pb--done .pb-spark.s2 { animation-delay: 150ms; }
.pb-live svg.pb--done .pb-spark.s3 { animation-delay: 300ms; }
svg.pb--static, svg.pb--static *, html.motion-off svg.pb, html.motion-off svg.pb * { animation: none !important; }
html.motion-off .journey-rider { animation: none !important; }
@media (prefers-reduced-motion: reduce) { svg.pb, svg.pb * { animation: none !important; } }

/* ---------- Founders ---------- */
.founders { background: var(--paper-2); }
.founders-wrap { display: grid; gap: var(--s-6); }
.device.founders-frame { width: min(100%, 980px); margin-inline: auto; aspect-ratio: 16 / 10; }
.founders-frame::after { width: 20%; }
.founders-screen {
  display: grid; grid-template-columns: 1fr; grid-template-rows: auto 1fr auto; gap: 0;
  background: #0d1117; color: #e8ecf2;
}
.fs-top { display: flex; align-items: center; gap: 10px; padding: 10px 14px; border-bottom: 1px solid #1c232d; font: 600 0.8125rem/1 var(--font-text); }
.fs-top .logo { width: 18px; height: 17px; flex: none; }
.fs-top .logo .b-ink { fill: #e8ecf2; } .fs-top .logo .b-sq { fill: #6d8bff; }
.fs-top .room { color: #a3aebd; font-weight: 500; }
.fs-top .live { margin-left: auto; display: inline-flex; align-items: center; gap: 6px; color: #a3aebd; font-weight: 500; }
.fs-top .live i { width: 8px; height: 8px; border-radius: 50%; background: #6ee0a8; }
.fs-tiles { display: grid; grid-template-columns: 1fr 1fr; grid-template-rows: minmax(0, 1fr); gap: 10px; padding: 10px; min-height: 0; }
.ftile { position: relative; margin: 0; overflow: hidden; border-radius: 14px; display: grid; place-items: center; background: var(--tile); min-height: 0; }
.ftile[data-founder="charles"] { --tile: radial-gradient(circle at 30% 25%, #3b6bff, #16305e 70%); }
.ftile[data-founder="ty"] { --tile: radial-gradient(circle at 70% 25%, #36c2c0, #16305e 72%); }
.ftile .mono { font: 800 clamp(2.5rem, 1.6rem + 4vw, 5.5rem)/1 var(--font-display); letter-spacing: -0.04em; color: rgb(255 255 255 / 0.92); }
.ftile .photo { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 22%; }
.ftile figcaption {
  position: absolute; left: 10px; bottom: 10px; display: flex; align-items: baseline; gap: 8px; max-width: calc(100% - 20px);
  padding: 7px 11px; border-radius: 10px; background: rgb(7 9 13 / 0.72); color: #e8ecf2; font-size: 0.8125rem;
}
.ftile figcaption b { font-weight: 700; white-space: nowrap; }
.ftile figcaption span { color: #a3aebd; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.fs-bar { display: flex; justify-content: center; gap: 10px; padding: 0 0 12px; }
.fs-bar span { width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; background: #1a212c; color: #dce3eb; }
.fs-bar span.end { background: #c2413a; color: #fff; }
.fs-bar svg { width: 16px; height: 16px; }
.founders-bios { display: grid; grid-template-columns: 1fr 1fr; gap: var(--s-6); width: min(100%, 980px); margin-inline: auto; }
.bio { display: grid; gap: var(--s-2); align-content: start; }
.bio .h-3 { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 10px; margin: 0; }
.bio .role { font: 600 var(--fs-small)/1.2 var(--font-text); color: var(--ink-3); }
.bio p { margin: 0; color: var(--ink-2); max-width: 34rem; }
@media (max-width: 699px) {
  .device.founders-frame { aspect-ratio: 4 / 3.7; }
  .fs-top .room { display: none; }
  .ftile figcaption { flex-direction: column; gap: 2px; left: 6px; bottom: 6px; padding: 6px 8px; font-size: 0.75rem; }
  .founders-bios { grid-template-columns: 1fr; gap: var(--s-5); }
}

/* Props around the device (decorative, per world) */
.props { position: absolute; inset: 0; pointer-events: none; z-index: 3; }
.prop { position: absolute; display: block; }
.prop svg { width: 100%; height: auto; overflow: visible; }

/* ---------- Worlds: sticky stage (≥900px with JS) ---------- */
@media (min-width: 900px) {
  .world { grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr); align-items: center; min-height: 100svh; padding-block: calc(var(--header-h) + var(--s-6)) var(--s-7); }
  .world-copy { padding-left: max(0px, calc((100vw - var(--maxw)) / 2)); }
  .world-visual { height: 100%; min-height: 0; }
  .device { width: min(100%, 46vw, 640px); }
}
@media (min-width: 900px) {
  html.has-stage .worlds { height: calc(var(--n, 9) * 100svh); }
  html.has-stage .stage {
    position: sticky; top: 0; height: 100svh; overflow: hidden;
    background: var(--w-bg); color: var(--w-fg);
    transition: background-color var(--dur-3) var(--ease-out), color var(--dur-3) var(--ease-out);
  }
  html.has-stage .stage-bg, html.has-stage .stage-sq, html.has-stage .pager, html.has-stage .stage-floor { display: block; }
  html.has-stage .stage-device { display: grid; }
  html.has-stage .world {
    position: absolute; inset: 0; background: transparent; color: inherit; overflow: visible;
    opacity: 0; pointer-events: none;
    transition: opacity var(--dur-3) var(--ease-out);
  }
  html.has-stage .world + .world { padding-top: calc(var(--header-h) + var(--s-6)); }
  html.has-stage .world.is-active { opacity: 1; pointer-events: auto; }
  html.has-stage .world-visual::before { display: none; }
  html.has-stage .world .device { background: transparent; box-shadow: none; }
  html.has-stage .world .device::after { display: none; }
  html.has-stage .world .screen { background: transparent; }
  html.has-stage .world-copy > * { transform: translateY(14px); transition: transform var(--dur-3) var(--ease-out); }
  html.has-stage .world.is-active .world-copy > * { transform: none; }
  html.has-stage .world .prop { opacity: 0; transform: translateY(18px) scale(0.92); transition: opacity var(--dur-3) var(--ease-out), transform var(--dur-3) var(--ease-spring); }
  html.has-stage .world.is-active .prop { opacity: 1; transform: none; }
  html.has-stage .world.is-active .prop:nth-child(2) { transition-delay: 60ms; }
  html.has-stage .world.is-active .prop:nth-child(3) { transition-delay: 120ms; }
  html.has-stage .world.is-active .prop:nth-child(4) { transition-delay: 180ms; }
  html.has-stage .world .mark-word path { stroke-dashoffset: 320; transition: stroke-dashoffset 700ms var(--ease-out) 200ms; }
  html.has-stage .world.is-active .mark-word path { stroke-dashoffset: 0; }
  html.has-stage .world .sigline path { stroke-dashoffset: 400; transition: stroke-dashoffset 1200ms var(--ease-out) 300ms; }
  html.has-stage .world.is-active .sigline path { stroke-dashoffset: 0; }

  /* shared layers, laid out on the same grid as each world so the device lines up exactly */
  .stage-bg, .stage-device, .stage-floor { position: absolute; inset: 0; }
  .stage-device {
    grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr); column-gap: var(--s-7); align-items: center;
    padding: calc(var(--header-h) + var(--s-6)) var(--gutter) var(--s-7); pointer-events: none; z-index: 1;
  }
  .stage-device .slot { grid-column: 2; display: grid; place-items: center; height: 100%; position: relative; }
  .stage-device .blob {
    position: absolute; width: min(40vw, 560px); aspect-ratio: 1; border-radius: 50%;
    background: var(--w-blob); transition: background-color var(--dur-3) var(--ease-out), transform var(--dur-3) var(--ease-spring);
  }
  .stage[data-active="leads"] .stage-device .blob { transform: scale(1.06) translate(4%, -3%); }
  .stage[data-active="meet"] .stage-device .blob { transform: scale(0.94) translate(-5%, 2%); }
  .stage[data-active="pembys"] .stage-device .blob { transform: scale(1.12); }
  .stage-device .blob::after { content: ""; position: absolute; inset: 0; border-radius: inherit; background: var(--pb-aurora); opacity: 0; transition: opacity var(--dur-3) var(--ease-out); }
  .stage[data-active="pembys"] .stage-device .blob::after { opacity: 1; }
  .stage-device .device .screen-base { width: 100%; height: 100%; border-radius: 13px; background: var(--scr-bg); transition: background-color var(--dur-3) var(--ease-out); }
  .stage-floor {
    top: auto; height: 15svh; background: var(--w-floor); z-index: 0;
    transition: background-color var(--dur-3) var(--ease-out);
  }
  .stage-floor::before { content: ""; position: absolute; inset: 0 0 auto 0; height: 1px; background: color-mix(in srgb, var(--w-fg) 10%, transparent); }
  html.has-stage .world { z-index: 2; }

  /* The brand square: one element that reshapes in every world */
  .stage-sq {
    position: absolute; z-index: 4; left: 0; top: 0; width: 22px; height: 22px; border-radius: 5px;
    background: var(--blue); pointer-events: none;
    transform: translate(var(--sq-x, 70vw), var(--sq-y, 30svh)) rotate(var(--sq-r, 0deg));
    transition: transform 700ms var(--ease-spring), width 500ms var(--ease-out), height 500ms var(--ease-out), border-radius 500ms var(--ease-out), background-color 500ms var(--ease-out);
    box-shadow: 0 8px 20px rgb(43 92 255 / 0.25);
  }
    .stage[data-active="brokers"] .stage-sq { --sq-r: 12deg; background: #e06a00; width: 30px; height: 30px; border-radius: 8px; }
  .stage[data-active="leads"] .stage-sq { width: 46px; height: 32px; border-radius: 8px; background: #ffd24a; }
  .stage[data-active="owners"] .stage-sq { width: 16px; height: 46px; border-radius: 5px; background: #17844c; }
  .stage[data-active="meet"] .stage-sq { width: 10px; height: 10px; border-radius: 50%; background: #fff3c4; box-shadow: 0 0 16px 5px rgb(255 214 120 / 0.55); }
  .stage[data-active="meet"] .stage-floor::before { opacity: 0; }
  .stage[data-active="ink"] .stage-sq { width: 14px; height: 14px; border-radius: 50%; background: #1f3c94; }
  .stage[data-active="pembys"] .stage-sq { --sq-r: 45deg; width: 26px; height: 26px; border-radius: 4px; background: #f2c14e; box-shadow: 0 0 34px rgb(242 193 78 / 0.6); }
  .stage[data-active="mobile"] .stage-sq { width: 30px; height: 52px; border-radius: 8px; background: #dc2f55; }
  .stage[data-active="developers"] .stage-sq { width: 22px; height: 22px; border-radius: 5px; background: #2f7a35; }

  /* pager */
  .pager {
    position: absolute; z-index: 6; left: 50%; bottom: var(--s-5); transform: translateX(-50%);
    padding: 6px; border-radius: var(--r-pill);
    background: color-mix(in srgb, var(--paper) 86%, transparent);
    -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
    box-shadow: var(--shadow-1); color: var(--ink);
  }
  .pager ol { list-style: none; margin: 0; padding: 0; display: flex; align-items: center; gap: 2px; }
  .pager button {
    display: inline-flex; align-items: center; gap: 8px; height: 36px; min-width: 36px; padding: 0 11px;
    border: 0; border-radius: var(--r-pill); background: transparent; cursor: pointer; color: inherit;
    font: 600 var(--fs-small)/1 var(--font-text);
    transition: background-color var(--dur-2) var(--ease-out), color var(--dur-2) var(--ease-out);
  }
  .pager button:hover { background: color-mix(in srgb, var(--ink) 7%, transparent); }
  .pager .dot { width: 12px; height: 12px; border-radius: 4px; background: var(--dot); box-shadow: inset 0 0 0 1px color-mix(in srgb, currentColor 28%, transparent); flex: none; }
  .pager .lbl { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
  .pager button[aria-current="true"] { background: var(--ink); color: var(--paper); }
  .pager button[aria-current="true"] .lbl { position: static; width: auto; height: auto; overflow: visible; clip: auto; }
}

/* ---------- Journey ("the voyage") ---------- */
.journey { background: var(--paper-2); }
.journey-track { list-style: none; margin: 0; padding: 0; display: grid; gap: var(--s-5); position: relative; }
.journey-track::before { content: ""; position: absolute; left: 21px; top: 8px; bottom: 8px; width: 3px; border-radius: 3px; background: repeating-linear-gradient(var(--line-strong) 0 10px, transparent 10px 18px); }
.stop { position: relative; display: grid; grid-template-columns: 46px 1fr; gap: var(--s-4); align-items: start; }
.stop .badge {
  width: 46px; height: 46px; border-radius: 12px; display: grid; place-items: center;
  background: var(--stop, var(--blue)); color: #fff; font: 800 1rem/1 var(--font-display); position: relative; z-index: 1;
  box-shadow: var(--shadow-1);
}
.stop h3 { margin-bottom: 4px; }
.stop p { margin: 0; color: var(--ink-2); max-width: 30rem; }
.stop .who { font-size: var(--fs-small); color: var(--ink-3); margin-top: var(--s-2); display: block; }
.journey-rider { display: none; }

@media (min-width: 900px) and (prefers-reduced-motion: no-preference) {
  html.has-stage .journey { padding: 0; height: 340svh; }
  html.has-stage .journey .sticky { position: sticky; top: 0; height: 100svh; overflow: hidden; display: grid; grid-template-columns: minmax(0, 1fr); grid-template-rows: auto 1fr; padding-top: calc(var(--header-h) + var(--s-7)); }
  html.has-stage .journey .section-head { margin-bottom: 0; }
  html.has-stage .journey-viewport { position: relative; min-width: 0; padding-top: var(--s-8); }
  html.has-stage .journey-track {
    display: flex; gap: 0; width: max-content; padding-left: calc(var(--gutter) + max(0px, (100vw - var(--maxw)) / 2)); padding-right: 40vw;
    transform: translate3d(calc(var(--jp, 0) * -1px), 0, 0); will-change: transform;
  }
  html.has-stage .journey-track::before { left: 0; right: 0; top: 23px; bottom: auto; width: auto; height: 3px; background: repeating-linear-gradient(90deg, var(--line-strong) 0 14px, transparent 14px 26px); }
  html.has-stage .stop { flex: none; width: clamp(260px, 26vw, 360px); grid-template-columns: 1fr; gap: var(--s-4); padding-right: var(--s-7); }
  html.has-stage .stop .badge { transition: transform var(--dur-2) var(--ease-spring), box-shadow var(--dur-2) var(--ease-out); }
  html.has-stage .stop.is-here .badge { transform: scale(1.16) rotate(-4deg); box-shadow: 0 10px 24px rgb(16 17 20 / 0.22); }
  html.has-stage .stop:not(.is-here) p { color: var(--ink-3); transition: color var(--dur-2) var(--ease-out); }
  html.has-stage .journey-rider {
    display: block; position: absolute; z-index: 2; left: calc(var(--gutter) + max(0px, (100vw - var(--maxw)) / 2) + 12px); top: calc(var(--s-8) - 34px);
    width: 22px; height: 22px; border-radius: 5px; background: var(--blue);
    box-shadow: 0 8px 18px rgb(43 92 255 / 0.3);
    animation: ride 900ms var(--ease-out) infinite alternate;
  }
}
@keyframes ride { from { transform: translateY(0); } to { transform: translateY(-6px); } }

/* ---------- Trust ---------- */
.trust-grid { display: grid; gap: var(--s-4); grid-template-columns: repeat(auto-fit, minmax(min(100%, 250px), 1fr)); }
.tcard { padding: var(--s-5); border-radius: var(--r-lg); background: var(--surface); box-shadow: var(--shadow-1); display: grid; gap: var(--s-3); align-content: start; }
.tcard .ic { width: 40px; height: 40px; border-radius: 11px; display: grid; place-items: center; background: color-mix(in srgb, var(--ic, var(--blue)) 16%, var(--surface)); color: var(--ic, var(--blue)); }
.tcard .ic svg { width: 20px; height: 20px; }
.tcard p { margin: 0; color: var(--ink-2); }
.trust-wrap { display: grid; gap: var(--s-8); align-items: center; }
.big-mark { width: min(70%, 340px); justify-self: center; }
.big-mark .b-ink { fill: var(--ink); }
.big-mark .b-sq { fill: var(--blue); }
@media (min-width: 1000px) { .trust-wrap { grid-template-columns: 1.5fr 1fr; } }

/* ---------- House ---------- */
.house { background: var(--paper); }
.house-grid { display: grid; gap: var(--s-5); grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr)); }
.hcard {
  position: relative; display: flex; flex-direction: column; gap: var(--s-3);
  padding: var(--s-6) var(--s-5) var(--s-5); border-radius: var(--r-lg);
  background: var(--surface); box-shadow: var(--shadow-1);
  transition: transform var(--dur-2) var(--ease-out), box-shadow var(--dur-2) var(--ease-out);
}
.hcard:hover { transform: translateY(-3px); box-shadow: var(--shadow-2); }
.hcard .chipline { display: flex; align-items: center; gap: var(--s-2); font: 600 var(--fs-micro)/1 var(--font-text); letter-spacing: 0.08em; text-transform: uppercase; color: color-mix(in srgb, var(--hc, var(--blue)) 72%, var(--ink)); }
.hcard .chipline i { width: 12px; height: 12px; border-radius: 3px; background: var(--hc, var(--blue)); display: block; }
.hcard p { margin: 0; color: var(--ink-2); }
.hcard .links { display: flex; flex-wrap: wrap; gap: 0 var(--s-4); margin-top: auto; padding-top: var(--s-2); }
.hcard--feature { grid-column: 1 / -1; background: var(--ink); color: var(--paper); }
.hcard--feature p { color: color-mix(in srgb, var(--paper) 78%, transparent); }
.hcard--feature .link-arrow { color: var(--paper); }
@media (min-width: 900px) { .hcard--feature { grid-template-columns: 1.2fr 1fr; align-items: center; column-gap: var(--s-8); } .hcard--feature .links { grid-column: 2; grid-row: 1 / span 3; justify-content: flex-end; } }

/* ---------- Bands ---------- */
.band-dev { background: #101512; color: #e6ebe2; }
.band-dev .lead { color: #b8c4b5; }
.band-dev .btn { --btn-bg: #e6ebe2; --btn-fg: #101512; }
.band-dev .wrap { display: grid; gap: var(--s-6); align-items: center; }
.band-dev .code { font-size: 12.5px; padding: var(--s-5); border-radius: var(--r-md); line-height: 1.7; }
@media (min-width: 900px) { .band-dev .wrap { grid-template-columns: 1fr 1fr; } }
.band-cta { text-align: center; }
.band-cta .h-2 { max-width: 14em; margin-inline: auto; }
.band-cta .cta-row { display: flex; justify-content: center; flex-wrap: wrap; gap: var(--s-3); margin-top: var(--s-6); }

/* ---------- Footer ---------- */
.site-footer { border-top: 1px solid var(--line); padding-block: var(--s-8) var(--s-6); font-size: var(--fs-small); color: var(--ink-2); }
.site-footer .cols { display: grid; gap: var(--s-6); grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); }
.site-footer h2 { font: 600 var(--fs-micro)/1 var(--font-text); letter-spacing: 0.08em; text-transform: uppercase; color: var(--ink-3); margin-bottom: var(--s-3); }
.site-footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 2px; }
.site-footer li a { display: inline-flex; align-items: center; min-height: 36px; text-decoration: none; }
.site-footer li a:hover { text-decoration: underline; color: var(--ink); }
.site-footer .legal { margin-top: var(--s-7); padding-top: var(--s-5); border-top: 1px solid var(--line); display: grid; gap: var(--s-2); color: var(--ink-3); }
.site-footer .brand svg { height: 24px; }
.site-footer .brand { color: var(--ink); margin-bottom: var(--s-3); }

/* ---------- Inner pages ---------- */
.page-hero { padding: calc(var(--header-h) + var(--s-8)) 0 var(--s-7); background: var(--w-bg, var(--paper)); color: var(--w-fg, var(--ink)); }
.page-hero .lead { color: var(--w-fg-2, var(--ink-2)); }
.page-hero .wrap { display: grid; gap: var(--s-4); }
.split { display: grid; gap: var(--s-7); grid-template-columns: minmax(0, 1fr); }
@media (min-width: 960px) { .split { grid-template-columns: 1fr 1.15fr; align-items: start; } .split > .sticky-col { position: sticky; top: calc(var(--header-h) + var(--s-5)); } }
.checklist { list-style: none; padding: 0; margin: 0; display: grid; gap: var(--s-4); }
.checklist li { display: grid; grid-template-columns: 28px 1fr; gap: var(--s-3); }
.checklist li::before { content: ""; width: 22px; height: 22px; margin-top: 2px; border-radius: 6px; background: var(--blue) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12.5l4.5 4.5L19 7.5'/%3E%3C/svg%3E") center / 14px no-repeat; }
.checklist b { display: block; color: var(--ink); }
.checklist span { color: var(--ink-2); }
.steps { counter-reset: step; list-style: none; padding: 0; margin: 0; display: grid; gap: var(--s-4); }
.steps li { counter-increment: step; display: grid; grid-template-columns: 40px 1fr; gap: var(--s-3); align-items: start; }
.steps li::before { content: counter(step); width: 34px; height: 34px; border-radius: 10px; display: grid; place-items: center; background: var(--ink); color: var(--paper); font: 800 0.95rem/1 var(--font-display); }
.steps b { display: block; }
.steps span { color: var(--ink-2); }

/* ---------- Forms ---------- */
.form-card { background: var(--surface); border-radius: var(--r-lg); box-shadow: var(--shadow-2); padding: clamp(var(--s-5), 4vw, var(--s-7)); }
.form { display: grid; gap: var(--s-5); }
.field { display: grid; gap: 6px; }
.field label, .field legend { font-weight: 600; font-size: 0.9375rem; color: var(--ink); padding: 0; }
.field .hint { font-size: var(--fs-small); color: var(--ink-3); margin: 0; }
.field .req { color: var(--ink-3); font-weight: 500; font-size: var(--fs-small); }
.input, .select, .textarea {
  width: 100%; min-height: 48px; padding: 12px 14px; border-radius: 12px;
  border: 1px solid var(--line-strong); background: var(--paper); color: var(--ink);
  font-size: 1rem; line-height: 1.4;
  transition: border-color var(--dur-1) var(--ease-out), box-shadow var(--dur-1) var(--ease-out);
}
.textarea { min-height: 120px; resize: vertical; }
.select { appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2361656f' stroke-width='2' stroke-linecap='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 12px center; background-size: 18px; padding-right: 40px; }
.input:hover, .select:hover, .textarea:hover { border-color: var(--ink-3); }
.input:focus-visible, .select:focus-visible, .textarea:focus-visible { outline: none; border-color: var(--focus); box-shadow: 0 0 0 3px color-mix(in srgb, var(--focus) 30%, transparent); }
.field.has-error .input, .field.has-error .select, .field.has-error .textarea { border-color: var(--err); }
.field .err { display: none; color: var(--err); font-size: var(--fs-small); font-weight: 600; margin: 0; }
.field.has-error .err { display: block; }
.row-2 { display: grid; gap: var(--s-5); }
@media (min-width: 640px) { .row-2 { grid-template-columns: 1fr 1fr; } }
fieldset.field { border: 0; margin: 0; padding: 0; }
.check { display: grid; grid-template-columns: 24px 1fr; gap: var(--s-3); align-items: start; padding: 6px 0; color: var(--ink-2); cursor: pointer; }
.check input { width: 20px; height: 20px; margin: 2px 0 0; accent-color: var(--blue); }
.hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.form-status { margin: 0; font-weight: 600; min-height: 1.5em; }
.form-status.is-error { color: var(--err); }
.form-foot { display: flex; flex-wrap: wrap; align-items: center; gap: var(--s-4); }
.form-foot .small { margin: 0; color: var(--ink-3); }
.btn .spin { width: 16px; height: 16px; border-radius: 50%; border: 2px solid currentColor; border-right-color: transparent; animation: spin 0.8s linear infinite; display: none; }
.btn.is-busy .spin { display: inline-block; }
@keyframes spin { to { transform: rotate(360deg); } }
.cf-turnstile { min-height: 65px; max-width: 100%; }
.success { display: none; text-align: left; gap: var(--s-4); }
.success.is-shown { display: grid; }
.success .mark-ok { width: 56px; height: 56px; border-radius: 16px; display: grid; place-items: center; background: var(--blue); color: var(--on-blue); }
.success .mark-ok svg { width: 28px; height: 28px; }

/* ---------- Trademarks table ---------- */
.table-wrap { overflow-x: auto; border-radius: var(--r-md); border: 1px solid var(--line); background: var(--surface); }
table { width: 100%; border-collapse: collapse; font-size: 0.9375rem; }
th, td { text-align: left; padding: 14px 16px; border-bottom: 1px solid var(--line); vertical-align: top; }
th { font: 600 var(--fs-micro)/1.2 var(--font-text); letter-spacing: 0.08em; text-transform: uppercase; color: var(--ink-3); background: var(--paper-2); }
tr:last-child td { border-bottom: 0; }
.prose { max-width: 44rem; }
.prose p { color: var(--ink-2); }

/* ---------- 404 ---------- */
.notfound { min-height: 100svh; display: grid; place-items: center; text-align: center; padding: var(--s-9) var(--gutter); }
.notfound .wrap { display: grid; gap: var(--s-4); justify-items: center; }

/* ---------- Reveal on scroll (progressive) ---------- */
html.js .reveal { opacity: 0; transform: translateY(18px); transition: opacity var(--dur-3) var(--ease-out), transform var(--dur-3) var(--ease-out); }
html.js .reveal.is-in { opacity: 1; transform: none; }

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.001ms !important; animation-iteration-count: 1 !important; transition-duration: 0.001ms !important; transition-delay: 0s !important; scroll-behavior: auto !important; }
  html.js .reveal { opacity: 1; transform: none; }
}

/* ---------- Print ---------- */
@media print {
  .site-header, .pager, .stage-sq, .theme-toggle, .menu-btn { display: none !important; }
  html.has-stage .worlds { height: auto; }
  html.has-stage .stage { position: static; height: auto; }
  html.has-stage .world { position: static; opacity: 1; visibility: visible; }
}
