/* MakeBetter — homepage layout. Tokens mirror the MakeBetter design system (tokens.json). */

:root {
  color-scheme: light;
  --paper: #f6f5f2; --surface: #ffffff; --surface-sunk: #efeee9;
  --ink: #121211; --ink-2: #3d3c38; --muted: #6b6a64;
  --line: #e3e1db; --line-strong: #c9c6bd;
  --carmine: #b4271c; --carmine-soft: #f6e3df; --on-carmine: #ffffff;
  --frost: #e4edf3; --frost-ink: #1f4a66;
  --ok: #1b6e40; --ok-soft: #e1f0e6; --warn: #8a5200; --warn-soft: #f6ead4;
  --photo-shade: #1a1917; --on-photo: #f6f5f2;

  --font-sans: "Geist", "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-mono: "Geist Mono", ui-monospace, "SF Mono", Menlo, monospace;

  --space-1: 4px; --space-2: 8px; --space-3: 12px; --space-4: 16px; --space-6: 24px; --space-8: 32px;
  --space-12: 48px; --space-16: 64px; --space-24: 96px; --space-40: 160px;
  --radius-sm: 6px; --radius-md: 10px; --radius-lg: 16px; --radius-xl: 28px; --radius-pill: 999px;

  --shadow-window: 0 1px 2px rgba(18,18,17,0.06), 0 30px 60px -20px rgba(18,18,17,0.22);
  --shadow-float: 0 2px 4px rgba(18,18,17,0.08), 0 18px 40px -12px rgba(18,18,17,0.35);

  --gutter: var(--space-8);
  --section: var(--space-40);
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    color-scheme: dark;
    --paper: #0e0e0d; --surface: #181817; --surface-sunk: #121211;
    --ink: #f4f3ef; --ink-2: #c9c7c0; --muted: #9a988f;
    --line: #2a2a27; --line-strong: #43423d;
    --carmine: #ef6a5a; --carmine-soft: #2e1512; --on-carmine: #1a0806;
    --frost: #14212a; --frost-ink: #9cc7e3;
    --ok: #5ccb8e; --ok-soft: #11261a; --warn: #f0b14a; --warn-soft: #2a1f0e;
    --shadow-window: 0 1px 2px rgba(0,0,0,0.5), 0 30px 60px -20px rgba(0,0,0,0.7);
    --shadow-float: 0 2px 4px rgba(0,0,0,0.5), 0 18px 40px -12px rgba(0,0,0,0.8);
  }
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0; background: var(--paper); color: var(--ink-2);
  font: 400 16px/1.6 var(--font-sans); -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
  overflow-x: clip;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; }
h1, h2, h3, p { margin: 0; }
.wrap { width: 100%; max-width: 1320px; margin: 0 auto; padding: 0 var(--gutter); }
.skip { position: absolute; left: -999px; top: 8px; background: var(--ink); color: var(--paper); padding: 8px 12px; border-radius: 8px; z-index: 100; }
.skip:focus { left: 8px; }

/* ---------- Type ---------- */
.display-xl { font-size: clamp(52px, 8.6vw, 112px); line-height: .94; font-weight: 600; letter-spacing: -0.045em; color: var(--ink); text-wrap: balance; }
.display-l { font-size: clamp(40px, 5.6vw, 72px); line-height: 1; font-weight: 600; letter-spacing: -0.035em; color: var(--ink); text-wrap: balance; }
.display-m { font-size: clamp(28px, 3.3vw, 42px); line-height: 1.1; font-weight: 600; letter-spacing: -0.025em; color: var(--ink); text-wrap: balance; }
.title { font-size: 22px; line-height: 1.3; font-weight: 600; letter-spacing: -0.01em; color: var(--ink); }
.lead { font-size: clamp(18px, 1.6vw, 21px); line-height: 1.5; letter-spacing: -0.005em; color: var(--ink-2); max-width: 56ch; text-wrap: pretty; }
.red { color: var(--carmine); }
.dim { color: var(--muted); }

/* ---------- Nav ---------- */
.nav { position: sticky; top: 0; z-index: 50; background: var(--paper); border-bottom: 1px solid transparent; transition: border-color .2s ease; }
.nav.is-scrolled { border-bottom-color: var(--line); }
.nav__in { display: flex; align-items: center; gap: var(--space-8); height: 72px; }
.wordmark { font: 600 22px/1 var(--font-sans); letter-spacing: -0.04em; color: var(--ink); text-decoration: none; white-space: nowrap; flex: none; }
.wordmark span { color: var(--carmine); }
.nav__links { display: flex; align-items: center; gap: 2px; margin-left: auto; }
.nav__link, .nav__trigger { height: 38px; display: inline-flex; align-items: center; gap: 5px; padding: 0 12px; border: 0; border-radius: var(--radius-pill); background: none;
  font: 400 15px/1 var(--font-sans); color: var(--ink-2); text-decoration: none; cursor: pointer; transition: background-color .15s ease, color .15s ease; white-space: nowrap; }
.nav__link:hover, .nav__trigger:hover, .nav__item.is-open .nav__trigger { color: var(--ink); background: var(--surface-sunk); }
.nav__link[aria-current="page"] { color: var(--ink); font-weight: 500; }
.nav__chev { width: 12px; height: 12px; color: var(--muted); transition: transform .2s ease; }
.nav__item.is-open .nav__chev { transform: rotate(180deg); }
.nav .nav__cta { margin-left: var(--space-2); }
.nav.is-mega { border-bottom-color: var(--line); }
/* Longer labels (translated pages) still fit one line just above the burger breakpoint */
@media (min-width: 961px) and (max-width: 1100px) {
  .nav__in { gap: var(--space-4); }
  .nav__link, .nav__trigger { padding: 0 8px; }
  .nav .nav__cta { white-space: nowrap; }
}

/* The big dropdowns: full width under the header */
.mega { position: absolute; left: 0; right: 0; top: 100%; background: var(--surface); border-bottom: 1px solid var(--line); box-shadow: 0 30px 60px -30px rgba(18,18,17,.28);
  visibility: hidden; transition: visibility 0s linear .18s; }
.nav__item.is-open .mega { visibility: visible; transition: none; }
/* The panel is solid at once (nothing behind shows through); only what is inside fades in */
.mega__in { opacity: 0; transform: translateY(-6px); transition: opacity .18s ease, transform .22s cubic-bezier(.2,.7,.2,1); }
.nav__item.is-open .mega__in { opacity: 1; transform: none; }
.mega__in { padding-top: var(--space-8); padding-bottom: var(--space-6); display: grid; gap: var(--space-6); }
.mm-foot { display: flex; align-items: center; justify-content: space-between; gap: var(--space-4); padding-top: var(--space-4); border-top: 1px solid var(--line); font-size: 14px; color: var(--muted); }
.mm-foot a { font-weight: 500; color: var(--ink); text-decoration: none; white-space: nowrap; }
.mm-foot a:hover .mb-arrow, .mm-feature:hover .mb-arrow { transform: translateX(3px); }
.mm-foot .mb-arrow, .mm-feature .mb-arrow { display: inline-block; transition: transform .2s ease; }
.nav__scrim { position: fixed; left: 0; right: 0; top: 72px; bottom: 0; background: rgba(18,18,17,.18); opacity: 0; visibility: hidden; transition: opacity .2s ease, visibility 0s linear .2s; z-index: -1; }
.nav.is-mega .nav__scrim { opacity: 1; visibility: visible; transition: opacity .2s ease; }

/* Tools: the three jobs as columns */
.mm-tools { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--space-8); }
.mm-col { display: grid; gap: 2px; align-content: start; }
.mm-col__head { margin: 0 0 8px; display: flex; gap: 10px; align-items: baseline; font-size: 13px; font-weight: 500; color: var(--muted); }
.mm-col__head span { font: 500 11px/1 var(--font-mono); color: var(--carmine); }
.mm-tool { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 12px; align-items: start; padding: 10px; margin: 0 -10px; border-radius: var(--radius-md); text-decoration: none; transition: background-color .15s ease; }
.mm-tool:hover, .mm-role:hover, .mm-story:hover { background: var(--surface-sunk); }
.mm-tool .tl__icon { margin-top: 1px; }
.mm-tool__top { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; }
.mm-tool b { font-size: 15px; font-weight: 600; letter-spacing: -0.01em; color: var(--ink); }
.mm-tool small { display: block; margin-top: 3px; font-size: 13px; line-height: 1.4; color: var(--muted); }

/* Tools: the real products, each with what it is */
.mm-prods { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; }
.mm-prod { display: grid; gap: 10px; align-content: start; padding: 16px; border-radius: var(--radius-md); border: 1px solid transparent; text-decoration: none; transition: background-color .15s ease, border-color .15s ease; }
.mm-prod:hover { background: var(--surface-sunk); }
.mm-prod__top { display: flex; align-items: center; gap: 12px; }
.mm-prod b { display: block; font-size: 16px; font-weight: 600; letter-spacing: -0.015em; color: var(--ink); }
.mm-prod small { display: block; margin-top: 2px; font: 500 10.5px/1.2 var(--font-mono); letter-spacing: .05em; text-transform: uppercase; color: var(--muted); }
.mm-prod p { margin: 0; font-size: 13.5px; line-height: 1.45; color: var(--ink-2); max-width: 34ch; }
.mm-prod--all { background: var(--ink); }
.mm-prod--all:hover { background: var(--ink-2); }
.mm-prod--all b { color: var(--paper); }
.mm-prod--all small, .mm-prod--all p { color: color-mix(in srgb, var(--paper) 70%, transparent); }
.mm-prod--all em { font-style: normal; font-size: 14px; font-weight: 500; color: var(--paper); }
.mm-prod--all .mb-arrow { display: inline-block; transition: transform .2s ease; }
.mm-prod--all:hover .mb-arrow { transform: translateX(3px); }
.mnav__list a small { flex-basis: auto; font: 500 10.5px/1 var(--font-mono); letter-spacing: .05em; text-transform: uppercase; }

/* Who it's for: a row of tall photos, the name on the photo */
.mm-roles { display: grid; grid-template-columns: repeat(9, minmax(0, 1fr)); gap: 10px; }
.mm-role { position: relative; display: block; aspect-ratio: 3 / 4; border-radius: 14px; overflow: hidden; background: var(--surface-sunk); text-decoration: none; isolation: isolate; }
.mm-role img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .7s cubic-bezier(.2,.7,.2,1); }
.mm-role::after { content: ""; position: absolute; inset: 0; background: linear-gradient(to top, rgba(10,10,9,.82) 0%, rgba(10,10,9,.35) 38%, rgba(10,10,9,0) 64%); transition: opacity .3s ease; }
.mm-role > span { position: absolute; left: 12px; right: 10px; bottom: 12px; z-index: 1; }
.mm-role b { display: block; font-size: 14px; line-height: 1.2; font-weight: 600; letter-spacing: -0.01em; color: #fff; text-wrap: balance; }
.mm-role small { display: block; max-height: 0; opacity: 0; overflow: hidden; font-size: 12px; line-height: 1.35; color: rgba(255,255,255,.82); transition: max-height .35s ease, opacity .3s ease, margin-top .35s ease; }
.mm-role:hover img, .mm-role:focus-visible img { transform: scale(1.06); }
.mm-role:hover small, .mm-role:focus-visible small { max-height: 60px; opacity: 1; margin-top: 4px; }
.mm-role:focus-visible { outline: 2px solid var(--ink); outline-offset: 2px; }

/* Stories: one feature, three more */
.mm-stories { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); gap: var(--space-8); align-items: start; }
.mm-feature { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); gap: var(--space-6); align-items: center; text-decoration: none; }
.mm-feature img { width: 100%; aspect-ratio: 4 / 3; border-radius: var(--radius-lg); object-fit: cover; }
.mm-feature small, .mm-story small { display: block; font: 500 11px/1.3 var(--font-mono); letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
.mm-feature b { display: block; margin: 8px 0 14px; font-size: 24px; line-height: 1.15; font-weight: 600; letter-spacing: -0.025em; color: var(--ink); text-wrap: balance; }
.mm-feature em { font-style: normal; font-size: 14px; font-weight: 500; color: var(--ink); }
.mm-list { display: grid; gap: 2px; }
.mm-story { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 14px; align-items: center; padding: 10px; margin: 0 -10px; border-radius: var(--radius-md); text-decoration: none; transition: background-color .15s ease; }
.mm-story img { width: 64px; height: 48px; border-radius: 8px; object-fit: cover; }
.mm-story b { display: block; margin-top: 4px; font-size: 15px; line-height: 1.3; font-weight: 600; letter-spacing: -0.01em; color: var(--ink); }

/* Phone menu */
.nav__burger { display: none; width: 40px; height: 40px; margin-left: 4px; border: 0; border-radius: 50%; background: none; cursor: pointer; position: relative; }
.nav__burger i { position: absolute; left: 11px; right: 11px; height: 1.5px; border-radius: 1px; background: var(--ink); transition: transform .25s ease, top .25s ease; }
.nav__burger i:first-child { top: 16px; }
.nav__burger i:last-child { top: 23px; }
.nav.is-menu .nav__burger i:first-child { top: 19.5px; transform: rotate(45deg); }
.nav.is-menu .nav__burger i:last-child { top: 19.5px; transform: rotate(-45deg); }
.mnav { display: none; }
html.is-locked { overflow: hidden; }
.more { margin: var(--space-4) 0 0; }
.more a { font-size: 16px; font-weight: 500; color: var(--ink); text-decoration: none; }
.more .mb-arrow { display: inline-block; transition: transform .2s ease; }
.more a:hover .mb-arrow { transform: translateX(3px); }
@media (max-width: 1100px) {
  .mm-tool small { display: none; }
  .mm-prods { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .mm-roles { grid-template-columns: repeat(5, minmax(0, 1fr)); }
  .mm-role { aspect-ratio: 4 / 3; }
  .mm-feature { grid-template-columns: minmax(0, 1fr); }
}

/* ---------- Hero ---------- */
.hero { padding: var(--space-16) 0 var(--space-24); }
.hero__top { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: var(--space-12); align-items: end; }
.hero__side { display: grid; gap: var(--space-8); padding-bottom: 10px; }
.hero__cta { display: flex; flex-wrap: wrap; gap: var(--space-3); }
.hero__stage { position: relative; margin-top: var(--space-16); }
.hero__stage .mb-photo { aspect-ratio: 16 / 10; }
.hero__stage .mb-photo > img { object-position: 50% 30%; }
.hero__float { position: absolute; z-index: 2; }
.hero__float--a { left: 40px; bottom: 40px; width: 380px; }
.hero__float--b { right: 40px; top: 40px; width: 320px; }

/* Floating card internals */
.fc-lot { display: grid; gap: 2px; margin-bottom: 12px; }
.fc-lot b { font-weight: 600; color: var(--ink); font-size: 15px; letter-spacing: -0.01em; }
.fc-meta { font: 400 12.5px/1.4 var(--font-mono); color: var(--muted); font-variant-numeric: tabular-nums; }
.fc-ai { display: grid; grid-template-columns: auto 1fr; gap: 10px; padding: 10px 12px; border-radius: 8px; background: var(--carmine-soft); font-size: 13px; color: var(--ink); margin-bottom: 12px; }
.fc-ai .mb-ai__mark { width: 20px; height: 20px; border-radius: 6px; }
.fc-ai .mb-ai__mark svg { width: 12px; height: 12px; }
.fc-actions { display: flex; gap: 8px; }
.fc-actions .mb-btn { height: 32px; padding: 0 14px; font-size: 13px; }
.fc-route { display: flex; align-items: center; gap: 8px; font-weight: 600; color: var(--ink); font-size: 15px; letter-spacing: -0.01em; }
.fc-route svg { width: 14px; height: 14px; color: var(--muted); }
.fc-progress { position: relative; height: 4px; border-radius: 4px; background: var(--surface-sunk); margin: 14px 0 8px; }
.fc-progress i { position: absolute; left: 0; top: 0; bottom: 0; width: 64%; border-radius: 4px; background: var(--ink); }
.fc-progress i::after { content: ""; position: absolute; right: -5px; top: -3px; width: 10px; height: 10px; border-radius: 50%; background: var(--surface); border: 2px solid var(--ink); }
.fc-row { display: flex; justify-content: space-between; font: 400 12px/1.4 var(--font-mono); color: var(--muted); font-variant-numeric: tabular-nums; }
.fc-temps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-top: 12px; padding-top: 12px; border-top: 1px solid var(--line); }
.fc-temps div { display: grid; gap: 2px; }
.fc-temps span { font-size: 11px; color: var(--muted); }
.fc-temps b { font: 500 14px/1.2 var(--font-mono); color: var(--ink); font-variant-numeric: tabular-nums; }
.fc-temps b.cold { color: var(--frost-ink); }

/* ---------- Sections ---------- */
.section { padding: var(--section) 0; }
.section--tight { padding-top: 0; }
.statement { padding: var(--space-24) 0 var(--section); }
.statement__grid > p { font-size: clamp(28px, 3.6vw, 46px); line-height: 1.12; font-weight: 600; letter-spacing: -0.03em; color: var(--ink); max-width: 22ch; text-wrap: balance; }
.statement__grid > p .dim { color: var(--muted); }
.statement__grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.6fr); gap: var(--space-12); align-items: start; }
.statement__grid .mb-eyebrow { margin-top: 14px; }

.offers { display: grid; grid-template-columns: repeat(3, 1fr); border-top: 1px solid var(--line); }
.offer { padding: var(--space-8) var(--space-8) 0 0; display: grid; gap: var(--space-3); align-content: start; }
.offer + .offer { padding-left: var(--space-8); border-left: 1px solid var(--line); }
.offer__n { font: 500 12px/1 var(--font-mono); color: var(--muted); letter-spacing: .06em; margin-bottom: var(--space-6); }
.offer p { max-width: 34ch; font-size: 16px; line-height: 1.55; color: var(--ink-2); }

.feature__head { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: var(--space-12); align-items: end; margin-bottom: var(--space-16); }
.feature__head .mb-eyebrow { margin-bottom: var(--space-6); }
.feature__head .lead { padding-bottom: 8px; }
.points { display: flex; flex-wrap: wrap; gap: var(--space-6); margin-top: var(--space-6); padding: 0; list-style: none; font-size: 15px; color: var(--ink); }
.points li { display: flex; align-items: center; gap: 8px; }
.points svg { width: 16px; height: 16px; color: var(--ok); flex: none; }

/* ---------- Product window internals ---------- */
.win-scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; }
.cs { display: grid; grid-template-columns: 216px minmax(0, 1fr); min-height: 560px; }
.cs__side { background: var(--surface-sunk); border-right: 1px solid var(--line); padding: var(--space-4) var(--space-3); display: flex; flex-direction: column; gap: 2px; font-size: 13px; }
.cs__group { font: 500 10.5px/1 var(--font-mono); letter-spacing: .08em; text-transform: uppercase; color: var(--muted); padding: 10px 10px 8px; }
.cs__item { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 8px 10px; border-radius: var(--radius-sm); color: var(--ink-2); }
.cs__item.is-on { background: var(--surface); color: var(--ink); font-weight: 500; box-shadow: 0 0 0 1px var(--line); }
.cs__item small { font: 400 11.5px/1 var(--font-mono); color: var(--frost-ink); font-variant-numeric: tabular-nums; }
.cs__item small.warm { color: var(--warn); }
.cs__foot { margin-top: auto; padding: 12px 10px 4px; border-top: 1px solid var(--line); display: grid; gap: 4px; }
.cs__foot span { font-size: 11.5px; color: var(--muted); }
.cs__foot b { font: 500 16px/1.2 var(--font-mono); color: var(--ink); }
.cs__main { padding: var(--space-6); display: grid; gap: var(--space-6); align-content: start; min-width: 0; }
.cs__title { display: flex; align-items: center; gap: var(--space-3); flex-wrap: wrap; }
.cs__title h4 { margin: 0; font-size: 20px; font-weight: 600; letter-spacing: -0.02em; color: var(--ink); }
.cs__title .sync { font-size: 12px; color: var(--muted); display: inline-flex; align-items: center; gap: 6px; }
.cs__title .sync::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--ok); }
.cs__title .mb-btn-row { margin-left: auto; display: flex; gap: 8px; }
.ghost { height: 30px; padding: 0 12px; border-radius: var(--radius-sm); border: 1px solid var(--line); background: var(--surface); font: 500 12.5px/1 var(--font-sans); color: var(--ink); display: inline-flex; align-items: center; gap: 6px; }
.ghost.dark { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.kpis { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--radius-md); overflow: hidden; }
.kpis .mb-kpi { background: var(--surface); padding: 14px 16px; }
.kpis .mb-kpi__value { font-size: 24px; }
.cs__grid { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: var(--space-4); align-items: start; }
.panel { border: 1px solid var(--line); border-radius: var(--radius-md); overflow: hidden; background: var(--surface); }
.panel__head { display: flex; align-items: center; justify-content: space-between; padding: 12px 14px; border-bottom: 1px solid var(--line); font-size: 13px; font-weight: 600; color: var(--ink); }
.panel__head span { font-weight: 400; color: var(--muted); font-size: 12px; }
.temp { background: var(--frost); border-color: transparent; }
.temp .panel__head { border-bottom-color: rgba(31,74,102,.12); }
.temp__now { padding: 14px 14px 0; display: flex; align-items: baseline; gap: 8px; }
.temp__now b { font: 500 34px/1 var(--font-mono); letter-spacing: -0.03em; color: var(--frost-ink); }
.temp__now span { font-size: 12px; color: var(--frost-ink); opacity: .8; }
.temp svg { width: 100%; height: auto; }
.temp__log { padding: 0 14px 14px; display: grid; gap: 8px; font-size: 12px; color: var(--frost-ink); }
.temp__log div { display: flex; justify-content: space-between; gap: 8px; }
.temp__log code { font: 400 11.5px/1.3 var(--font-mono); }

/* Transport */
.tr-layout { display: grid; grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.25fr); gap: var(--space-6); align-items: stretch; }
.tr-photo { position: relative; }
.tr-photo .mb-photo { aspect-ratio: auto; height: 100%; min-height: 560px; }
.tr-photo .mb-float { position: absolute; right: -40px; bottom: 40px; width: 300px; z-index: 2; }
.quotes { display: grid; gap: 0; }
.quotes div { display: grid; grid-template-columns: 1fr auto auto; gap: 10px; align-items: center; padding: 8px 0; border-top: 1px solid var(--line); font-size: 13px; color: var(--ink); }
.quotes div:first-child { border-top: 0; }
.quotes code { font: 500 13px/1 var(--font-mono); font-variant-numeric: tabular-nums; }
.quotes small { font-size: 11.5px; color: var(--muted); }
.tr { display: grid; grid-template-rows: auto 1fr; }
.tr__map { position: relative; background: var(--surface-sunk); border-bottom: 1px solid var(--line); height: 290px; overflow: hidden; }
.tr__map svg { position: absolute; inset: 0; width: 100%; height: 100%; }
.map-grid { stroke: var(--line); stroke-width: 1; }
.map-land { fill: var(--surface); stroke: var(--line-strong); stroke-width: 1; }
.map-route-done { fill: none; stroke: var(--ink); stroke-width: 2.5; stroke-linecap: round; stroke-linejoin: round; }
.map-route-next { fill: none; stroke: var(--ink); stroke-width: 2.5; stroke-dasharray: 2 6; stroke-linecap: round; opacity: .45; }
.map-city { fill: var(--surface); stroke: var(--ink); stroke-width: 2; }
.map-label { font: 500 11px var(--font-sans); fill: var(--ink-2); }
.map-label.end { font-weight: 600; fill: var(--ink); }
.map-truck { fill: var(--carmine); }
.map-pulse { fill: var(--carmine); opacity: .18; transform-origin: center; transform-box: fill-box; animation: pulse 2.4s ease-out infinite; }
@keyframes pulse { 0% { transform: scale(.6); opacity: .35; } 100% { transform: scale(2.2); opacity: 0; } }
.map-chip { position: absolute; left: 16px; top: 16px; display: flex; gap: 8px; }
.map-chip span { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-pill); padding: 5px 10px; font-size: 12px; color: var(--ink); box-shadow: 0 1px 2px rgba(0,0,0,.04); }
.tr__body { padding: var(--space-6); display: grid; gap: var(--space-4); align-content: start; }
.tr__head { display: flex; gap: var(--space-3); justify-content: space-between; align-items: flex-start; flex-wrap: wrap; }
.tr__head h4 { margin: 0 0 4px; font-size: 18px; font-weight: 600; letter-spacing: -0.02em; color: var(--ink); }
.tr__head p { font: 400 12.5px/1.4 var(--font-mono); color: var(--muted); }
.facts { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--radius-md); overflow: hidden; }
.facts div { background: var(--surface); padding: 10px 12px; display: grid; gap: 3px; }
.facts span { font-size: 11.5px; color: var(--muted); }
.facts b { font: 500 14px/1.25 var(--font-mono); color: var(--ink); font-variant-numeric: tabular-nums; }
.facts b.cold { color: var(--frost-ink); }
.docs { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.doc { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border: 1px solid var(--line); border-radius: var(--radius-md); font-size: 13px; color: var(--ink); min-width: 0; }
.doc svg { width: 16px; height: 16px; flex: none; color: var(--ok); }
.doc small { display: block; font: 400 11.5px/1.3 var(--font-mono); color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.doc > span { min-width: 0; }

/* Specs */
.sp__docs { display: grid; grid-template-columns: 1fr auto 1fr; gap: var(--space-3); align-items: center; }
.sp__doc { display: flex; align-items: center; gap: 12px; padding: 12px 14px; border: 1px solid var(--line); border-radius: var(--radius-md); background: var(--surface); min-width: 0; }
.sp__file { width: 34px; height: 42px; border-radius: 4px; background: var(--surface-sunk); border: 1px solid var(--line); position: relative; flex: none; font: 600 8.5px/1 var(--font-mono); color: var(--muted); display: grid; place-items: end center; padding-bottom: 6px; }
.sp__file::before { content: ""; position: absolute; left: 6px; right: 6px; top: 8px; height: 14px; background: repeating-linear-gradient(var(--line-strong) 0 1px, transparent 1px 4px); opacity: .7; }
.sp__doc b { display: block; font-size: 14px; color: var(--ink); font-weight: 600; letter-spacing: -0.01em; }
.sp__doc small { display: block; font-size: 12px; color: var(--muted); }
.sp__vs { font: 500 11px/1 var(--font-mono); color: var(--muted); letter-spacing: .08em; }
.sp-table td { white-space: normal; }
.sp-table td:first-child { color: var(--muted); font-size: 12.5px; width: 16%; }
.sp-table td:nth-child(2), .sp-table td:nth-child(3) { width: 34%; }
.sp-table .orig { display: block; font-size: 11.5px; color: var(--muted); font-style: italic; margin-top: 2px; }
.sp-table tr.is-flagged td:first-child { color: var(--warn); font-weight: 500; }

/* Tools grid */
.tools { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--radius-lg); overflow: hidden; }
.tool { background: var(--paper); padding: var(--space-8); display: grid; gap: var(--space-3); align-content: start; min-height: 230px; }
.tool__icon { width: 40px; height: 40px; border-radius: 12px; background: var(--surface); border: 1px solid var(--line); display: grid; place-items: center; color: var(--ink); margin-bottom: var(--space-4); }
.tool__icon svg { width: 20px; height: 20px; }
.tool p { font-size: 15px; max-width: 34ch; }
.tool__eg { margin-top: auto; padding-top: var(--space-4); font: 400 12px/1.4 var(--font-mono); color: var(--muted); }

/* Who we work with: a rail of tall photo cards, aligned to the content on the left, bleeding off on the right */
.roles__head { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: var(--space-12); align-items: end; margin-bottom: var(--space-12); }
.roles__head .mb-eyebrow { margin-bottom: var(--space-6); }
.roles__side { display: grid; gap: var(--space-6); padding-bottom: 8px; }
.roles__nav { display: flex; gap: 8px; }
.roles__btn { width: 44px; height: 44px; display: grid; place-items: center; border-radius: 50%; border: 1px solid var(--line-strong); background: transparent; color: var(--ink); cursor: pointer; transition: border-color .2s ease, opacity .2s ease; }
.roles__btn svg { width: 16px; height: 16px; }
.roles__btn:hover:not(:disabled) { border-color: var(--ink); }
.roles__btn:disabled { opacity: .3; cursor: default; }
.roles__btn:focus-visible, .roles__rail:focus-visible { outline: 2px solid var(--carmine); outline-offset: 3px; }
.roles__rail {
  --rail-pad: max(var(--gutter), calc((100vw - 1320px) / 2 + var(--gutter)));
  display: flex; gap: 24px; overflow-x: auto; overscroll-behavior-x: contain; scroll-snap-type: x mandatory; scroll-behavior: smooth;
  padding: 0 0 8px var(--rail-pad); scroll-padding-left: var(--rail-pad); scrollbar-width: none;
}
.roles__rail::-webkit-scrollbar { display: none; }
.roles__rail::after { content: ""; flex: 0 0 calc(var(--rail-pad) - 24px); }
.role { flex: 0 0 clamp(270px, 25vw, 350px); scroll-snap-align: start; display: grid; gap: 8px; align-content: start; }
.role__photo { aspect-ratio: 4 / 5; border-radius: var(--radius-lg); margin-bottom: 10px; }
.role__photo > img { transition: transform .9s cubic-bezier(.2,.7,.2,1); }
.role:hover .role__photo > img { transform: scale(1.04); }
.role__n { position: absolute; z-index: 2; left: 16px; top: 14px; font: 500 12px/1 var(--font-mono); letter-spacing: .06em; color: var(--on-photo); opacity: .85; text-shadow: 0 1px 8px rgba(0,0,0,.45); }
.role__name { font: 500 11.5px/1.2 var(--font-mono); letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.role p { font-size: 15px; line-height: 1.55; color: var(--ink-2); max-width: 34ch; }
.role__tools { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 6px; }
.role__tools span { height: 24px; display: inline-flex; align-items: center; padding: 0 10px; border-radius: var(--radius-pill); border: 1px solid var(--line); background: var(--surface); font-size: 12px; color: var(--ink-2); }

/* Hover a persona (or, on touch screens, snap to it): their morning arrives as notifications,
   rising from the bottom of the photo one at a time, the older ones nudged up by the new.
   The timestamps carry the order; the photo stays the hero. */
.role { position: relative; outline: none; }
.role:focus-visible .role__photo { outline: 2px solid var(--carmine); outline-offset: 3px; }
.role__photo::after {
  content: ""; position: absolute; inset: 0; z-index: 2; pointer-events: none;
  background: linear-gradient(to top, rgba(18,18,17,.66) 0%, rgba(18,18,17,.3) 38%, rgba(18,18,17,0) 62%);
  opacity: 0; transition: opacity .4s ease;
}
.role__feed { position: absolute; left: 12px; right: 12px; bottom: 12px; z-index: 3; display: flex; flex-direction: column; justify-content: flex-end; pointer-events: none; }
/* Each notification opens its own row (0fr → 1fr), so the ones above move up as it arrives */
.note { display: grid; grid-template-rows: 0fr; transition: grid-template-rows .45s cubic-bezier(.2,.7,.2,1); }
.note__in {
  min-height: 0; overflow: hidden; display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 10px; align-items: center;
  margin-top: 0; padding: 0 12px 0 10px; border-radius: 14px;
  background: rgba(255,255,255,.94); color: var(--ink); box-shadow: 0 8px 24px -10px rgba(0,0,0,.55);
  -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
  opacity: 0; transform: translateY(12px) scale(.98);
  transition: opacity .35s ease, transform .45s cubic-bezier(.2,.7,.2,1), padding .45s cubic-bezier(.2,.7,.2,1), margin .45s cubic-bezier(.2,.7,.2,1);
}
.note__icon { width: 26px; height: 26px; display: grid; place-items: center; border-radius: 8px; background: var(--surface-sunk); color: var(--ink); }
.note__icon svg { width: 14px; height: 14px; }
.note__icon.is-ai { background: var(--carmine); color: var(--on-carmine); }
.note__icon.is-ai svg { width: 11px; height: 11px; }
.note__text { min-width: 0; }
.note__text b { display: block; font-size: 13px; line-height: 1.25; font-weight: 600; letter-spacing: -0.01em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.note__text small { display: block; font-size: 12px; line-height: 1.3; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.note time { align-self: start; padding-top: 1px; font: 500 11px/1.3 var(--font-mono); color: var(--muted); font-variant-numeric: tabular-nums; }
.role:hover .role__photo::after, .role:focus-within .role__photo::after, .role.is-playing .role__photo::after { opacity: 1; }
.role:hover .note, .role:focus-within .note, .role.is-playing .note { grid-template-rows: 1fr; transition-delay: calc(.12s + var(--k) * .5s); }
.role:hover .note__in, .role:focus-within .note__in, .role.is-playing .note__in {
  opacity: 1; transform: none; padding: 9px 12px 9px 10px; margin-top: 6px; transition-delay: calc(.12s + var(--k) * .5s);
}
@media (prefers-reduced-motion: reduce) {
  .note, .note__in, .role__photo::after { transition-duration: .01s !important; transition-delay: 0s !important; }
}

/* The tools: three groups by job, each tool a row with its product as a small label */
.tgroups { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--space-8); margin-bottom: var(--space-12); }
.tgroup { display: grid; gap: var(--space-2); align-content: start; }
.tgroup__head { display: grid; gap: 4px; padding-bottom: var(--space-3); border-bottom: 1px solid var(--line); }
.tgroup__n { font: 500 12px/1 var(--font-mono); letter-spacing: .06em; color: var(--muted); margin-bottom: 4px; }
.tgroup__head p { font-size: 15px; color: var(--muted); }
.tgroup__list { display: grid; }
.tl { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 12px; align-items: center; padding: 9px 10px; margin: 0 -10px; border-radius: var(--radius-md); color: var(--ink); text-decoration: none; transition: background-color .2s ease; }
.tl + .tl { border-top: 1px solid var(--line); }
.tl:hover { background: var(--surface); }
.tl:hover + .tl { border-top-color: transparent; }
.tl__icon { width: 30px; height: 30px; display: grid; place-items: center; border-radius: 10px; background: var(--surface); border: 1px solid var(--line); color: var(--ink); }
.tl__icon svg { width: 16px; height: 16px; }
.tl__top { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 6px; }
.tl__text b { font-size: 15px; font-weight: 600; letter-spacing: -0.01em; margin-right: 2px; }
.tl__text small { display: block; margin-top: 1px; font-size: 13.5px; line-height: 1.35; color: var(--muted); }
.tl__label { font: 500 10px/1 var(--font-mono); letter-spacing: .04em; color: var(--muted); padding: 3px 6px; border-radius: var(--radius-pill); border: 1px solid var(--line); white-space: nowrap; }
.tl:hover .tl__label { color: var(--ink-2); border-color: var(--line-strong); }
.tl__labels { align-self: start; display: grid; gap: 4px; justify-items: end; }
.tl__labels .tl__label { margin-top: 0; }
.tl__labels .tl__label:first-child { margin-top: 2px; }
.tw__label em { font-style: normal; color: var(--ink-2); }
.ident { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 4px 10px; align-items: start; padding: 12px 14px; border-radius: var(--radius-md); background: var(--surface); border: 1px dashed var(--line-strong); font-size: 12.5px; line-height: 1.45; color: var(--ink-2); }
.ident svg { width: 14px; height: 14px; margin-top: 2px; color: var(--ok); }
.ident b { color: var(--ink); font-weight: 600; }
.ident em { grid-column: 2; font: 500 10.5px/1 var(--font-mono); font-style: normal; letter-spacing: .04em; color: var(--muted); }

/* Showcase mocks for 'Trade and get paid' and 'Know the market' */
.tw { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
.tw__col { padding: var(--space-6); display: grid; gap: var(--space-4); align-content: start; min-width: 0; }
.tw__col--sunk { background: var(--surface-sunk); border-left: 1px solid var(--line); }
.tw__label { font: 500 10.5px/1.2 var(--font-mono); letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.vn { display: grid; grid-template-columns: auto 1fr auto; gap: 12px; align-items: center; max-width: 340px; padding: 10px 14px 10px 10px; border-radius: 16px 16px 16px 4px; background: #e2f6d6; color: #1f3d17; }
.vn__play { width: 30px; height: 30px; display: grid; place-items: center; border-radius: 50%; background: #2f7d32; color: #fff; }
.vn__play svg { width: 13px; height: 13px; }
.vn__wave { height: 22px; background: repeating-linear-gradient(90deg, currentColor 0 2px, transparent 2px 5px); opacity: .55;
  clip-path: polygon(0 40%,4% 20%,8% 55%,12% 10%,16% 45%,20% 25%,24% 60%,28% 15%,32% 40%,36% 5%,40% 50%,44% 30%,48% 65%,52% 20%,56% 45%,60% 10%,64% 55%,68% 30%,72% 50%,76% 20%,80% 60%,84% 35%,88% 45%,92% 25%,96% 50%,100% 40%,100% 60%,96% 50%,92% 75%,88% 55%,84% 65%,80% 40%,76% 80%,72% 50%,68% 70%,64% 45%,60% 90%,56% 55%,52% 80%,48% 35%,44% 70%,40% 50%,36% 95%,32% 60%,28% 85%,24% 40%,20% 75%,16% 55%,12% 90%,8% 45%,4% 80%,0 60%); }
.vn__t { font: 500 12px/1 var(--font-mono); }
.vn__said { font-size: 14px; font-style: italic; color: var(--ink-2); max-width: 44ch; }
.deal { border: 1px solid var(--line); border-radius: var(--radius-md); background: var(--surface); padding: 14px; display: grid; gap: 12px; }
.deal__head { display: flex; align-items: center; justify-content: space-between; }
.deal__undo { font-size: 12.5px; color: var(--muted); text-decoration: underline; text-underline-offset: 3px; }
.deal__grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px 16px; margin: 0; }
.deal__grid dt { font-size: 11.5px; color: var(--muted); }
.deal__grid dd { margin: 2px 0 0; font-size: 13.5px; font-weight: 500; color: var(--ink); }
.deal__grid dd.code, .deal__margin .code, .inv .code, .price .code { font-family: var(--font-mono); font-variant-numeric: tabular-nums; }
.deal__margin { display: flex; justify-content: space-between; align-items: baseline; padding-top: 10px; border-top: 1px solid var(--line); font-size: 12.5px; color: var(--muted); }
.deal__margin b { font-size: 14px; color: var(--ok); }
.kpis--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.inv { display: grid; border: 1px solid var(--line); border-radius: var(--radius-md); background: var(--surface); overflow: hidden; }
.inv__row { display: grid; grid-template-columns: minmax(0, 1fr) auto auto; gap: 12px; align-items: center; padding: 11px 14px; font-size: 13px; }
.inv__row + .inv__row { border-top: 1px solid var(--line); }
.inv__row small { display: block; font-size: 12px; color: var(--muted); }
.inv__quote { font-size: 13px; font-style: italic; color: var(--muted); padding-left: 12px; border-left: 2px solid var(--line-strong); }
.names { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.names li { display: flex; align-items: center; gap: 10px; font-size: 14px; color: var(--ink-2); }
.names__lang { width: 30px; text-align: center; font: 500 10.5px/20px var(--font-mono); color: var(--muted); border: 1px solid var(--line); border-radius: 6px; background: var(--surface-sunk); }
.names__to { display: flex; align-items: center; gap: 10px; padding: 12px 14px; border-radius: var(--radius-md); background: var(--surface-sunk); border: 1px solid var(--line); }
.names__to svg { width: 16px; height: 16px; color: var(--carmine); }
.names__to b { font-size: 15px; color: var(--ink); margin-right: auto; }
.spec { padding-top: 4px; }
.sup { display: grid; border: 1px solid var(--line); border-radius: var(--radius-md); background: var(--surface); overflow: hidden; }
.sup__row { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 12px; align-items: center; padding: 12px 14px; font-size: 13px; }
.sup__row + .sup__row { border-top: 1px solid var(--line); }
.sup__row b { display: block; font-weight: 600; color: var(--ink); }
.sup__row small { display: block; font-size: 12px; color: var(--muted); }
.sup__icon { width: 30px; height: 30px; display: grid; place-items: center; border-radius: 8px; background: var(--surface-sunk); color: var(--ink-2); }
.sup__icon svg { width: 16px; height: 16px; }
.price { display: grid; grid-template-columns: auto 1fr; gap: 16px; align-items: end; padding: 14px; border: 1px solid var(--line); border-radius: var(--radius-md); background: var(--surface); }
.price > div { display: grid; gap: 4px; }
.price b { font-size: 26px; font-weight: 500; letter-spacing: -0.02em; color: var(--ink); }
.price b small { font-size: 13px; color: var(--muted); }
.price__d { font-size: 12px; color: var(--ok); }
.price svg { width: 100%; height: 44px; }

/* ---------- Tab 1 · Run the desk: BOSS with a sidebar, the order list and one order's timeline ---------- */
.m1 { display: grid; grid-template-columns: 216px minmax(0, 1fr) minmax(0, 340px); height: 600px; }
.m1__side { display: flex; flex-direction: column; gap: 8px; padding: 14px 12px; background: var(--surface-sunk); border-right: 1px solid var(--line); min-height: 0; }
.m1__ws { display: grid; grid-template-columns: auto 1fr auto; gap: 10px; align-items: center; padding: 4px 6px 8px; }
.m1__logo { width: 28px; height: 28px; display: grid; place-items: center; border-radius: 8px; background: var(--ink); color: var(--paper); font: 700 10px/1 var(--font-sans); letter-spacing: .02em; position: relative; }
.m1__logo::after { content: ""; position: absolute; right: 4px; bottom: 4px; width: 4px; height: 4px; border-radius: 50%; background: var(--carmine); }
.m1__ws b { display: block; font-size: 13px; font-weight: 600; color: var(--ink); letter-spacing: -0.01em; }
.m1__ws small { display: block; font: 500 10px/1.2 var(--font-mono); color: var(--muted); letter-spacing: .06em; }
.m1__ws svg { width: 14px; height: 14px; color: var(--muted); }
.m1__search { display: flex; align-items: center; gap: 8px; height: 32px; padding: 0 10px; border-radius: 8px; background: var(--surface); border: 1px solid var(--line); font-size: 12.5px; color: var(--muted); }
.m1__search svg { width: 13px; height: 13px; }
.m1__search kbd { margin-left: auto; font: 500 10px/1 var(--font-mono); color: var(--muted); }
.m1__nav { display: grid; gap: 1px; overflow: hidden; }
.m1__group { padding: 8px 8px 3px; font: 500 10px/1 var(--font-mono); letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.m1__nav a { display: flex; align-items: center; gap: 9px; height: 26px; padding: 0 8px; border-radius: 7px; font-size: 13px; color: var(--ink-2); }
.m1__nav a svg { width: 15px; height: 15px; color: var(--muted); flex: none; }
.m1__nav a em { margin-left: auto; font: 500 11px/1 var(--font-mono); font-style: normal; color: var(--muted); }
.m1__nav a em.is-warn { color: var(--warn); }
.m1__nav a.is-on { background: var(--surface); color: var(--ink); font-weight: 600; box-shadow: 0 0 0 1px var(--line), 0 1px 2px rgba(18,18,17,.05); }
.m1__nav a.is-on svg { color: var(--ink); }
.m1__ask { margin-top: auto; display: flex; align-items: center; gap: 8px; height: 36px; padding: 0 8px; border-radius: 10px; background: var(--surface); border: 1px solid var(--line); font-size: 13px; font-weight: 500; color: var(--ink); }
.m1__ask .mb-ai__mark { width: 22px; height: 22px; border-radius: 7px; }
.m1__ask .mb-ai__mark svg { width: 12px; height: 12px; }
.m1__list { display: flex; flex-direction: column; min-width: 0; border-right: 1px solid var(--line); }
.m1__head { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 18px 20px 14px; border-bottom: 1px solid var(--line); flex-wrap: wrap; }
.m1__head h4 { margin: 0; font-size: 18px; font-weight: 600; letter-spacing: -0.02em; color: var(--ink); }
.m1__seg { display: flex; gap: 2px; padding: 3px; border-radius: 9px; background: var(--surface-sunk); font-size: 12px; color: var(--ink-2); }
.m1__seg span { padding: 5px 10px; border-radius: 7px; white-space: nowrap; }
.m1__seg span.is-on { background: var(--surface); color: var(--ink); font-weight: 600; box-shadow: 0 1px 2px rgba(18,18,17,.08); }
.m1__seg em { font-style: normal; color: var(--muted); margin-left: 3px; font-family: var(--font-mono); font-size: 11px; }
.m1__rows { display: grid; }
.m1__row { display: grid; grid-template-columns: 84px auto minmax(0, 1fr) auto; gap: 12px; align-items: center; padding: 10px 20px; border-bottom: 1px solid var(--line); }
.m1__thumb { width: 38px; height: 38px; border-radius: 9px; object-fit: cover; box-shadow: 0 0 0 1px rgba(18,18,17,.08); }
.m1__title { display: flex; align-items: center; gap: 12px; margin-top: 6px; }
.m1__title img { width: 46px; height: 46px; border-radius: 11px; object-fit: cover; box-shadow: 0 0 0 1px rgba(18,18,17,.08); flex: none; }
.m1__title h4 { margin: 0 !important; }
.m1__row.is-on { background: var(--paper); box-shadow: inset 3px 0 0 var(--ink); }
.m1__id { font: 500 11.5px/1 var(--font-mono); color: var(--muted); }
.m1__what b { display: block; font-size: 13.5px; font-weight: 600; color: var(--ink); letter-spacing: -0.01em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.m1__what small { display: block; font-size: 12px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.m1__prog { display: flex; gap: 3px; }
.m1__prog i { width: 12px; height: 4px; border-radius: 2px; background: var(--line); }
.m1__prog i.on { background: var(--ok); }
.m1__detail { padding: 16px 20px; display: flex; flex-direction: column; gap: 2px; min-width: 0; overflow: hidden; }
.m1__detail h4 { margin: 6px 0 0; font-size: 19px; font-weight: 600; letter-spacing: -0.02em; color: var(--ink); }
.m1__sub { font-size: 13px; color: var(--muted); }
.m1__nums { display: grid; grid-template-columns: 1fr 1fr; gap: 1px; margin: 6px 0 0; background: var(--line); border: 1px solid var(--line); border-radius: var(--radius-md); overflow: hidden; }
.m1__nums div { background: var(--surface); padding: 8px 12px; display: grid; gap: 2px; }
.m1__nums span { font-size: 11.5px; color: var(--muted); }
.m1__nums b { font: 500 17px/1.2 var(--font-mono); color: var(--ink); font-variant-numeric: tabular-nums; }
.m1__nums b.is-ok { color: var(--ok); }
.m1__steps { list-style: none; margin: 0; padding: 0; display: grid; }
.m1__steps li { position: relative; display: grid; padding: 0 0 13px 28px; font-size: 13px; }
.m1__steps li::before { content: ""; position: absolute; left: 0; top: 1px; width: 16px; height: 16px; border-radius: 50%; border: 1.5px solid var(--line-strong); background: var(--surface); box-sizing: border-box; }
.m1__steps li::after { content: ""; position: absolute; left: 7.5px; top: 19px; bottom: 1px; width: 1px; background: var(--line); }
.m1__steps li:last-child::after { display: none; }
.m1__steps li.is-done::before { border-color: var(--ok); background: var(--ok) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M4.5 8.5l2.3 2.3 4.7-5.3' fill='none' stroke='white' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/12px no-repeat; }
.m1__steps li.is-now::before { border-color: var(--carmine); background: var(--carmine-soft); box-shadow: 0 0 0 3px var(--carmine-soft); }
.m1__steps b { font-weight: 600; color: var(--ink); }
.m1__steps li:not(.is-done):not(.is-work) b { color: var(--muted); font-weight: 500; }
.m1__steps small { font-size: 12px; color: var(--muted); }
.m1__fix { justify-self: start; display: inline-flex; gap: 6px; align-items: center; padding: 4px 8px; border-radius: 6px; background: var(--carmine-soft); font-size: 12px; color: var(--ink); }
.m1__fix s { color: var(--muted); }

/* Tab 1 in motion: an order arrives, its email is read, each step works then completes */
.m1__steps li { padding-bottom: 8px; }
.m1__steps small { line-height: 1.3; }
.m1__steps li.is-work::before { border-color: var(--carmine); border-top-color: transparent; animation: m1-spin .7s linear infinite; }
.m1__steps li.is-done::before { animation: m1-pop .35s cubic-bezier(.34,1.56,.64,1); }
@keyframes m1-spin { to { transform: rotate(360deg); } }
@keyframes m1-pop { 0% { transform: scale(.5); } 100% { transform: none; } }
.m1__fix { opacity: 0; max-height: 0; margin-top: 0; overflow: hidden; transition: opacity .3s ease, max-height .35s ease, margin-top .35s ease; }
.m1__fix.is-in { opacity: 1; max-height: 30px; margin-top: 6px; }
.m1__fix s { text-decoration: none; background: linear-gradient(currentColor, currentColor) no-repeat 0 55% / 0% 1px; transition: background-size .45s ease .2s; }
.m1__fix.is-in s { background-size: 100% 1px; }
.m1__mail { margin: 8px 0 10px; padding: 9px 11px; border-radius: 10px; background: var(--paper); border: 1px solid var(--line); opacity: 0; transform: translateY(6px); transition: opacity .4s ease, transform .4s ease; }
.m1__detail.is-mail .m1__mail { opacity: 1; transform: none; }
.m1__mail-top { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-bottom: 4px; font-size: 11.5px; color: var(--muted); }
.m1__mail-top span { display: inline-flex; align-items: center; gap: 6px; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.m1__mail-top svg { width: 12px; height: 12px; flex: none; }
.m1__mail-top time { font: 500 11px/1 var(--font-mono); }
.m1__mail p { font-size: 12.5px; line-height: 1.55; color: var(--ink-2); }
.m1__mail mark { background: transparent; color: inherit; border-radius: 3px; padding: 0 2px; margin: 0 -2px; transition: background-color .3s ease, box-shadow .3s ease, color .3s ease; }
.m1__mail mark.is-lit { background: var(--carmine-soft); color: var(--ink); box-shadow: inset 0 -1.5px 0 var(--carmine); }
.m1__nums { opacity: 0; transform: translateY(4px); transition: opacity .45s ease, transform .45s ease; }
.m1__detail.is-total .m1__nums { opacity: 1; transform: none; }
.m1__now { display: none; color: var(--carmine); font-weight: 500; }
.m1__row.is-new .m1__was { display: none; }
.m1__row.is-new .m1__now { display: inline; }
.m1__row.is-new { background: linear-gradient(90deg, var(--paper) 0%, var(--carmine-soft) 50%, var(--paper) 100%); background-size: 200% 100%; animation: m1-shimmer 1.8s linear infinite; }
@keyframes m1-shimmer { to { background-position: -200% 0; } }
.m1__prog i { transition: background-color .3s ease; }
.m1 .m1__detail, .m1 #m1-new { transition: opacity .35s ease; }
.m1.is-fading .m1__detail, .m1.is-fading #m1-new { opacity: .25; }
.m1__detail h4 { margin-top: 4px; }

/* ---------- Tab 2 · Trade and get paid: Margin on a phone, on the trader's photo ---------- */
.m2 { position: relative; height: 600px; border-radius: var(--radius-lg); overflow: hidden; background: var(--photo-shade); box-shadow: var(--shadow-window); isolation: isolate; }
.m2__photo { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 30% 35%; }
.m2::after { content: ""; position: absolute; inset: 0; z-index: 1; background: linear-gradient(90deg, rgba(18,18,17,0) 35%, rgba(18,18,17,.45) 100%); pointer-events: none; }
.m2__phone { position: absolute; z-index: 2; right: 8%; top: 50%; transform: translateY(-50%); }
.ph { width: 290px; height: 560px; border-radius: 44px; background: #f2f1ed; border: 10px solid #121211; box-shadow: 0 30px 70px -20px rgba(0,0,0,.7), 0 0 0 1px rgba(255,255,255,.08); display: flex; flex-direction: column; overflow: hidden; }
.ph__status { display: flex; align-items: center; justify-content: space-between; padding: 12px 22px 6px; font-size: 12px; color: var(--ink); }
.ph__status b { font-weight: 600; }
.ph__isl { width: 80px; height: 22px; border-radius: 12px; background: #121211; }
.ph__icons { display: flex; gap: 3px; }
.ph__icons i { width: 4px; height: 8px; border-radius: 1px; background: var(--ink); }
.ph__head { display: flex; align-items: center; gap: 10px; padding: 8px 14px 10px; border-bottom: 1px solid rgba(18,18,17,.08); }
.ph__avatar { width: 32px; height: 32px; display: grid; place-items: center; border-radius: 50%; background: var(--ink); color: var(--paper); }
.ph__avatar svg { width: 14px; height: 14px; color: #ef6a5a; }
.ph__head b { display: block; font-size: 14px; font-weight: 600; color: var(--ink); }
.ph__head small { display: block; font-size: 11px; color: var(--muted); }
.ph__chat { flex: 1; display: flex; flex-direction: column; gap: 8px; padding: 12px; overflow: hidden; background: #ebe8e1; }
.bub { max-width: 86%; padding: 9px 11px; border-radius: 14px; font-size: 12.5px; line-height: 1.4; color: var(--ink); box-shadow: 0 1px 1px rgba(0,0,0,.06); }
.bub--ai { align-self: flex-start; background: #fff; border-bottom-left-radius: 4px; }
.bub__ok { display: inline-flex; align-items: center; gap: 5px; font-size: 11.5px; font-weight: 600; color: var(--ok); margin-bottom: 6px; }
.bub__ok svg { width: 12px; height: 12px; }
.bub__deal { display: grid; gap: 3px; margin: 0; min-width: 190px; }
.bub__deal div { display: flex; justify-content: space-between; gap: 10px; }
.bub__deal dt { color: var(--ink-2); }
.bub__deal dd { margin: 0; font-family: var(--font-mono); font-size: 12px; color: var(--ink); }
.bub__deal .is-sum { margin-top: 3px; padding-top: 5px; border-top: 1px solid var(--line); }
.bub__deal .is-sum dt { font-weight: 600; color: var(--ink); }
.bub__deal .is-sum dd { color: var(--ok); font-weight: 500; }
.bub__acts { display: flex; gap: 6px; margin-top: 8px; }
.bub__acts em { font-style: normal; font-size: 11.5px; font-weight: 500; padding: 5px 10px; border-radius: 999px; background: var(--surface-sunk); color: var(--ink); }
.bub__acts em.is-main { background: var(--ink); color: var(--paper); }
.ph__bar { display: flex; align-items: center; gap: 8px; padding: 8px 10px 14px; background: #f2f1ed; }
.ph__bar span { flex: 1; height: 34px; display: flex; align-items: center; padding: 0 14px; border-radius: 17px; background: #fff; font-size: 12.5px; color: var(--muted); }
.ph__bar i { width: 34px; height: 34px; display: grid; place-items: center; border-radius: 50%; background: #2f7d32; color: #fff; }
.ph__bar svg { width: 16px; height: 16px; }
.m2__card { position: absolute; z-index: 2; left: 6%; bottom: 8%; width: 270px; display: grid; gap: 4px; padding: 14px 16px; border-radius: var(--radius-md); background: var(--surface); color: var(--ink); box-shadow: var(--shadow-float); }
.m2__card-top { display: flex; align-items: center; justify-content: space-between; }
.m2__card-top b { font: 600 13px/1.2 var(--font-mono); }
.m2__card-sub { font-size: 12.5px; color: var(--muted); }
.m2__trail { list-style: none; margin: 8px 0 0; padding: 0; display: grid; gap: 6px; }
.m2__trail li { position: relative; padding-left: 18px; font-size: 12.5px; color: var(--ink-2); }
.m2__trail li::before { content: ""; position: absolute; left: 2px; top: 5px; width: 7px; height: 7px; border-radius: 50%; background: var(--line-strong); }
.m2__trail li.is-ok { color: var(--ok); font-weight: 600; }
.m2__trail li.is-ok::before { background: var(--ok); box-shadow: 0 0 0 3px var(--ok-soft); }

/* Tab 2 phone: a proper voice message, the thinking sphere, and the conversation in motion */
.ph__thinking { display: none; color: var(--carmine); }
.ph.is-thinking .ph__online { display: none; }
.ph.is-thinking .ph__thinking { display: inline; }
.ph__day { align-self: center; margin-bottom: 2px; padding: 3px 10px; border-radius: 8px; background: rgba(255,255,255,.75); font-size: 10.5px; font-weight: 500; color: var(--muted); }
.vm { align-self: flex-end; display: grid; grid-template-columns: auto 1fr; gap: 10px; align-items: center; width: 222px; padding: 8px 10px 6px 8px; border-radius: 14px 14px 4px 14px; background: #d9fdd3; box-shadow: 0 1px 1px rgba(0,0,0,.06); }
.vm__play { width: 34px; height: 34px; display: grid; place-items: center; border-radius: 50%; background: #1f7a4d; color: #fff; }
.vm__play svg { width: 14px; height: 14px; margin-left: 2px; }
.vm__body { display: grid; gap: 3px; min-width: 0; }
.vm__wave { height: 26px; display: flex; align-items: center; gap: 2px; }
.vm__wave i { flex: 1; min-width: 2px; height: var(--h); border-radius: 2px; background: rgba(31,90,55,.32); transition: background-color .15s ease; }
.vm__wave i.is-played { background: #1f5a37; }
.vm__meta { display: flex; justify-content: space-between; font-size: 10.5px; color: rgba(31,61,23,.65); font-variant-numeric: tabular-nums; }
.vm__time { display: inline-flex; align-items: center; gap: 3px; }
.vm__time svg { width: 15px; height: 10px; color: #3c9ad6; }
.vm__said { align-self: flex-end; max-width: 86%; margin: -2px 2px 2px; font-size: 11.5px; font-style: italic; color: var(--muted); text-align: right; }
.bub--think { display: flex; align-items: center; gap: 8px; padding: 6px 12px 6px 6px; font-size: 12px; color: var(--muted); }
.bub--think { padding: 9px 12px; }
.dots { display: inline-flex; gap: 3px; }
.dots i { width: 6px; height: 6px; border-radius: 50%; background: var(--muted); animation: dot 1.1s ease-in-out infinite; }
.dots i:nth-child(2) { animation-delay: .15s; }
.dots i:nth-child(3) { animation-delay: .3s; }
@keyframes dot { 0%, 60%, 100% { opacity: .3; transform: none; } 30% { opacity: 1; transform: translateY(-2px); } }
/* In motion: each piece arrives; without the script everything but 'thinking' simply shows */
.m2 .pc[data-k="think"] { display: none; }
.m2.is-live .pc { opacity: 0; transform: translateY(10px) scale(.98); max-height: 0; margin-top: -8px; overflow: hidden;
  transition: opacity .35s ease, transform .4s cubic-bezier(.2,.7,.2,1), max-height .4s ease, margin-top .4s ease; }
.m2.is-live .pc.is-in { opacity: 1; transform: none; max-height: 220px; margin-top: 0; overflow: visible; }
.m2.is-live .pc[data-k="think"] { display: flex; }
.m2.is-live .pc[data-k="think"]:not(.is-in) { display: none; }
.m2.is-live .m2__card { opacity: 0; transform: translateY(12px); transition: opacity .4s ease, transform .45s cubic-bezier(.2,.7,.2,1); }
.m2.is-live .m2__card.is-in { opacity: 1; transform: none; }
.m2.is-live .m2__trail li { opacity: .25; transition: opacity .35s ease; }
.m2.is-live .m2__trail li.is-in { opacity: 1; }
.m2.is-live .m2__trail li.is-ok.is-in::before { animation: m2-ping 1.2s ease-out 1; }
@keyframes m2-ping { 0% { box-shadow: 0 0 0 0 rgba(27,110,64,.5); } 100% { box-shadow: 0 0 0 10px rgba(27,110,64,0); } }
.m2 .ph__chat > * { transition-property: opacity, transform, max-height, margin-top; }
.m2.is-fading .ph__chat, .m2.is-fading .m2__card { opacity: .2; transition: opacity .35s ease; }

/* ---------- Tab 3 · Know the market: ask, and get a structured answer ---------- */
.m3 { height: 600px; display: flex; flex-direction: column; }
.m3__grid { flex: 1; display: grid; grid-template-columns: 220px minmax(0, 1fr) 300px; min-height: 0; }
.m3__body { display: flex; flex-direction: column; gap: 14px; padding: 22px 24px 20px; min-width: 0; min-height: 0; }
.m3__q { align-self: flex-end; max-width: 80%; padding: 11px 15px; border-radius: 16px 16px 4px 16px; background: var(--ink); color: var(--paper); font-size: 14.5px; line-height: 1.4; }
.m3__a { display: grid; border: 1px solid var(--line); border-radius: var(--radius-lg); background: var(--surface); overflow: hidden; }
.m3__row { display: grid; grid-template-columns: 120px minmax(0, 1fr); gap: 6px 16px; align-items: start; padding: 16px 18px; }
.m3__row + .m3__row { border-top: 1px solid var(--line); }
.m3__k { font: 500 10.5px/1.6 var(--font-mono); letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.m3__chips { display: flex; flex-wrap: wrap; gap: 6px; }
.m3__chips em { font-style: normal; font-size: 12.5px; padding: 4px 10px; border-radius: 999px; border: 1px solid var(--line); background: var(--paper); color: var(--ink-2); }
.m3__chips em.is-main { background: var(--ink); border-color: var(--ink); color: var(--paper); font-weight: 600; }
.m3__from { grid-column: 2; font-size: 12px; color: var(--muted); font-style: italic; }
.m3__plants { display: grid; }
.m3__plant { display: grid; grid-template-columns: auto minmax(0, 1fr) auto auto; gap: 12px; align-items: center; padding: 9px 0; font-size: 13px; }
.m3__plant + .m3__plant { border-top: 1px solid var(--line); }
.m3__plant b { display: block; font-weight: 600; color: var(--ink); }
.m3__plant small { display: block; font-size: 12px; color: var(--muted); }
.m3__plant code { font: 500 13px/1 var(--font-mono); color: var(--ink); }
.m3__cc { width: 30px; height: 22px; display: grid; place-items: center; border-radius: 6px; background: var(--surface-sunk); border: 1px solid var(--line); font: 600 10.5px/1 var(--font-mono); color: var(--ink-2); }
.m3__row--price { grid-template-columns: 120px auto minmax(0, 1fr); align-items: center; }
.m3__price b { font: 500 22px/1 var(--font-mono); letter-spacing: -0.02em; color: var(--ink); }
.m3__price b small { font-size: 12px; color: var(--muted); }
.m3__price .price__d { display: block; margin-top: 4px; }
.m3__row--price svg { width: 100%; max-width: 220px; height: 36px; justify-self: end; }
.m3__ask { margin-top: auto; display: flex; align-items: center; gap: 10px; height: 46px; padding: 0 16px; border-radius: 23px; border: 1px solid var(--line-strong); background: var(--paper); font-size: 13.5px; color: var(--muted); }
.m3__ask svg { width: 14px; height: 14px; color: var(--carmine); }
.m3__ask kbd { margin-left: auto; font: 500 11px/1 var(--font-mono); color: var(--muted); border: 1px solid var(--line); border-radius: 5px; padding: 4px 6px; }

/* Tab 3 side columns: recent questions, and the selected plant's profile */
.m3__hist { display: flex; flex-direction: column; gap: 2px; padding: 14px 12px; background: var(--surface-sunk); border-right: 1px solid var(--line); min-width: 0; overflow: hidden; }
.m3__new { display: flex; align-items: center; gap: 8px; height: 34px; padding: 0 10px; margin-bottom: 6px; border-radius: 9px; background: var(--surface); border: 1px solid var(--line); font-size: 13px; font-weight: 500; color: var(--ink); }
.m3__new svg { width: 13px; height: 13px; color: var(--carmine); }
.m3__hist a { padding: 7px 8px; border-radius: 7px; font-size: 12.5px; line-height: 1.35; color: var(--ink-2); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.m3__hist a.is-on { background: var(--surface); color: var(--ink); font-weight: 500; box-shadow: 0 0 0 1px var(--line); }
.m3__plant.is-on { margin: 0 -10px; padding-left: 10px; padding-right: 10px; border-radius: 8px; background: var(--paper); box-shadow: inset 2px 0 0 var(--ink); }
.m3__prof { display: flex; flex-direction: column; gap: 14px; padding: 18px; border-left: 1px solid var(--line); background: var(--surface); min-width: 0; overflow: hidden; }
.m3__ptitle { display: flex; align-items: center; gap: 10px; }
.m3__ptitle b { display: block; font-size: 14px; font-weight: 600; color: var(--ink); letter-spacing: -0.01em; }
.m3__ptitle small { display: block; font-size: 12px; color: var(--muted); }
.m3__sec { display: grid; gap: 7px; padding-top: 12px; border-top: 1px solid var(--line); }
.m3__sk { font: 500 10px/1 var(--font-mono); letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.m3__tree { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.m3__tree li { position: relative; padding-left: 16px; font-size: 12.5px; }
.m3__tree li::before { content: ""; position: absolute; left: 3px; top: 6px; width: 6px; height: 6px; border-radius: 2px; background: var(--line-strong); }
.m3__tree li + li { margin-left: 12px; }
.m3__tree li.is-me::before { background: var(--carmine); }
.m3__tree b { font-weight: 600; color: var(--ink); }
.m3__tree small { display: block; font-size: 11.5px; color: var(--muted); }
.m3__credit { display: flex; align-items: center; gap: 8px; font-size: 12px; color: var(--muted); flex-wrap: wrap; }
.m3__limit { display: flex; justify-content: space-between; font-size: 12px; color: var(--muted); }
.m3__limit b { font: 500 13px/1 var(--font-mono); color: var(--ink); }
.m3__prof svg { width: 100%; height: 40px; }
@media (max-width: 1180px) { .m3__grid { grid-template-columns: minmax(0, 1fr) 280px; } .m3__hist { display: none; } }
@media (max-width: 960px) { .m3__grid { grid-template-columns: minmax(0, 1fr); } .m3__prof { display: none; } }

@media (max-width: 1180px) {
  .m1 { grid-template-columns: 196px minmax(0, 1fr); }
  .m1__detail { display: none; }
}
@media (max-width: 960px) {
  .m1 { grid-template-columns: minmax(0, 1fr); height: auto; }
  .m1__side { display: none; }
  .m1__list { border-right: 0; }
  .m1__row { grid-template-columns: auto minmax(0, 1fr) auto; padding: 10px 14px; }
  .m1__id { display: none; }
  .m1__head { padding: 14px; }
  .m2 { height: 640px; }
  .m2::after { background: linear-gradient(to top, rgba(18,18,17,.6), rgba(18,18,17,.1) 60%); }
  .m2__phone { right: 50%; top: 24px; transform: translateX(50%); }
  .ph { transform: scale(.92); transform-origin: top center; }
  .m2__card { left: 16px; right: 16px; bottom: 16px; width: auto; }
  .m3 { height: auto; }
  .m3__body { padding: 16px; }
  .m3__row, .m3__row--price { grid-template-columns: minmax(0, 1fr); }
  .m3__from { grid-column: 1; }
  .m3__plant { grid-template-columns: auto minmax(0, 1fr) auto; }
  .m3__plant code { display: none; }
  .m3__row--price svg { justify-self: start; }
}

/* Works inside */
.works-with { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 16px; margin-top: var(--space-12); padding-top: var(--space-6); border-top: 1px solid var(--line); }
.works-with > span { font: 500 11.5px/1 var(--font-mono); letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.works-with ul { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; margin: 0; padding: 0; }
.works-with li { height: 30px; display: inline-flex; align-items: center; padding: 0 13px; border-radius: var(--radius-pill); border: 1px solid var(--line); background: var(--surface); font-size: 13.5px; color: var(--ink-2); }

/* The tools: one tabbed showcase, then links to each tool's page */
.tool-tabs__bar { display: inline-flex; gap: 4px; padding: 4px; margin-bottom: var(--space-6); border-radius: var(--radius-pill); background: var(--surface-sunk); border: 1px solid var(--line); }
.tool-tab { position: relative; overflow: hidden; height: 38px; padding: 0 20px; border: 0; border-radius: var(--radius-pill); background: transparent; color: var(--ink-2); font: 500 14.5px/1 var(--font-sans); cursor: pointer; transition: background-color .2s ease, color .2s ease; }
.tool-tab:hover { color: var(--ink); }
.tool-tab:focus-visible { outline: 2px solid var(--carmine); outline-offset: 2px; }
.tool-tab.is-on { background: var(--surface); color: var(--ink); box-shadow: 0 1px 2px rgba(18,18,17,.08), 0 0 0 1px var(--line); }
/* While the tabs move on by themselves, the open one fills a hairline as its time runs */
.tool-tab::after { content: ""; position: absolute; left: 14px; right: 14px; bottom: 5px; height: 2px; border-radius: 2px; background: var(--line-strong); transform: scaleX(0); transform-origin: left; opacity: 0; }
.tool-tabs.is-auto .tool-tab.is-on::after { opacity: 1; animation: tab-run 12s linear forwards; }
@keyframes tab-run { to { transform: scaleX(1); } }
.tool-panel.is-on { animation: tp-in .45s cubic-bezier(.2,.7,.2,1); }
@keyframes tp-in { from { opacity: 0; transform: translateY(10px); } }
.tool-panel__claim { margin-bottom: var(--space-6); max-width: 72ch; font-size: 17px; line-height: 1.5; color: var(--ink-2); }
.tool-panel__claim b { color: var(--ink); font-weight: 600; }
.tool-links { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1px; margin-top: var(--space-16); background: var(--line); border: 1px solid var(--line); border-radius: var(--radius-lg); overflow: hidden; }
.tool-link { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 14px; align-items: center; padding: 20px 22px; background: var(--paper); color: var(--ink); text-decoration: none; transition: background-color .2s ease; }
.tool-link .tool__icon { margin: 0; }
.tool-link b { display: block; font-size: 16px; font-weight: 600; letter-spacing: -0.01em; }
.tool-link small { display: block; margin-top: 2px; font-size: 13.5px; line-height: 1.4; color: var(--muted); }
.tool-link__go { color: var(--muted); transition: transform .2s ease, color .2s ease; }
.tool-link:hover { background: var(--surface); }
.tool-link:hover .tool-link__go { color: var(--ink); transform: translateX(3px); }

/* Process mapping: a Portal window with the map, notes from the team and the roadmap */
/* Process mapping: extract, measure, improve */
.xm__day { font: 500 11px/1 var(--font-mono); color: var(--muted); padding: 6px 9px; border: 1px solid var(--line); border-radius: 999px; }
.xm__grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); }
.xm__col { padding: var(--space-6); display: grid; gap: 14px; align-content: start; min-width: 0; transition: opacity .45s ease; }
.xm__col + .xm__col { border-left: 1px solid var(--line); }
.xm__head { display: grid; grid-template-columns: auto 1fr; column-gap: 10px; row-gap: 2px; align-items: baseline; }
.xm__n { font: 500 11px/1 var(--font-mono); color: var(--carmine); }
.xm__head b { font-size: 17px; font-weight: 600; letter-spacing: -0.015em; color: var(--ink); }
.xm__head small { grid-column: 2; font-size: 13px; color: var(--muted); }
.xm__src, .xm__bars, .xm__road { list-style: none; margin: 0; padding: 0; display: grid; }
.xm__src li { position: relative; display: grid; grid-template-columns: auto 1fr auto; gap: 10px; align-items: center; padding: 10px 0 12px; font-size: 13.5px; color: var(--ink); }
.xm__src li + li { border-top: 1px solid var(--line); }
.xm__ico { width: 26px; height: 26px; display: grid; place-items: center; border-radius: 7px; background: var(--surface-sunk); color: var(--ink-2); }
.xm__ico svg { width: 14px; height: 14px; }
.xm__src em { font: 500 13px/1 var(--font-mono); font-style: normal; color: var(--ink); font-variant-numeric: tabular-nums; }
.xm__src i { position: absolute; left: 36px; right: 0; bottom: 3px; height: 2px; border-radius: 2px; background: var(--line); overflow: hidden; opacity: 0; transition: opacity .5s ease; }
.xm.is-live .xm__src li.is-reading i { opacity: 1; }
.xm__src i::after { content: ""; position: absolute; inset: 0; background: var(--ink-2); transform-origin: left; transform: scaleX(var(--p, 1)); }
.xm__out { margin: 0; display: flex; align-items: center; gap: 8px; padding-top: 12px; border-top: 1px solid var(--line); font-size: 13px; color: var(--muted); }
.xm__out b { font-size: 14px; font-weight: 600; color: var(--ink); font-variant-numeric: tabular-nums; }
.xm__out svg { width: 13px; height: 13px; color: var(--carmine); flex: none; }
.xm__proc { margin: 0; display: flex; justify-content: space-between; align-items: baseline; font-size: 13.5px; }
.xm__proc b { font-weight: 600; color: var(--ink); }
.xm__proc span { font: 500 10.5px/1 var(--font-mono); letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
.xm__bars { gap: 9px; }
.xm__bars li { display: grid; grid-template-columns: minmax(0, 1fr) auto; column-gap: 10px; row-gap: 5px; font-size: 13px; color: var(--ink-2); }
.xm__bars i { grid-column: 1 / -1; grid-row: 2; height: 6px; border-radius: 3px; background: var(--surface-sunk); position: relative; overflow: hidden; }
.xm__bars i::after { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: var(--w); border-radius: 3px; background: var(--ink-2); transform-origin: left; transition: transform .6s cubic-bezier(.2,.7,.2,1); }
.xm__bars em { font: 500 12px/1.3 var(--font-mono); font-style: normal; color: var(--ink); }
.xm__road li { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 10px; align-items: center; padding: 11px 0; font-size: 13.5px; transition: opacity .4s ease, transform .4s cubic-bezier(.2,.7,.2,1); }
.xm__road li + li { border-top: 1px solid var(--line); }
.xm__road li > b { font-weight: 600; color: var(--ink); }
.xm__rn { width: 22px; height: 22px; display: grid; place-items: center; border-radius: 50%; background: var(--surface-sunk); font: 600 11px/1 var(--font-mono); color: var(--ink); }
.xm__road li:first-child .xm__rn { background: var(--ink); color: var(--paper); }
.xm__road em { font-style: normal; font-size: 12px; color: var(--muted); white-space: nowrap; }
.xm__road em b { font: 500 14px/1 var(--font-mono); color: var(--ok); }
.xm__after { display: grid !important; grid-template-columns: auto auto 1fr; align-items: baseline; column-gap: 12px; row-gap: 4px; padding-top: 16px !important; }
.xm__after > span { grid-column: 1 / -1; font-size: 13px; }
.xm__after s { font-size: 22px; font-weight: 500; letter-spacing: -0.02em; color: var(--muted); text-decoration-thickness: 1.5px; font-variant-numeric: tabular-nums; }
.xm__after svg { width: 16px !important; height: 16px !important; color: var(--muted) !important; align-self: center; }
.xm__after > b { font-size: 34px !important; font-weight: 600 !important; letter-spacing: -0.03em; line-height: 1 !important; color: var(--ok) !important; }
.xm__out, .xm__src em { transition: opacity .4s ease; }
/* Scene 2: the process schema, with the roadmap's changes on it */
.xm__stage { display: grid; }
.xm__stage > * { grid-area: 1 / 1; min-width: 0; }
.xm__map { display: grid; visibility: hidden; padding: var(--space-6); gap: 16px; align-content: start; }
.xm__maphead { display: flex; align-items: baseline; gap: 12px; font-size: 13px; color: var(--muted); }
.xm__maphead b { font-size: 17px; font-weight: 600; letter-spacing: -0.015em; color: var(--ink); }
.xm__legend { margin-left: auto; display: inline-flex; align-items: center; gap: 6px; }
.xm__legend i { width: 10px; height: 10px; border-radius: 3px; border: 1.5px solid var(--ok); background: var(--ok-soft); }
.xm__scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; }
.xm__lanes { position: relative; height: 270px; min-width: 960px; border: 1px solid var(--line); border-radius: var(--radius-md); overflow: hidden; display: grid; grid-template-rows: repeat(3, 1fr); }
.xm__lane { position: relative; border-top: 1px solid var(--line); }
.xm__lane:first-child { border-top: 0; }
.xm__lane span { position: absolute; left: 14px; top: 50%; transform: translateY(-50%); font: 500 10px/1 var(--font-mono); letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.xm__canvas { position: absolute; top: 0; bottom: 0; left: 104px; right: 20px; }
.xm__wires { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.xm__wires path { fill: none; stroke: var(--line-strong); stroke-width: 1.5; vector-effect: non-scaling-stroke; stroke-linejoin: round; stroke-dasharray: 1; stroke-dashoffset: 0; }
.xn { position: absolute; width: 16%; height: 19.3%; display: grid; align-content: center; gap: 3px; padding: 0 10px; border-radius: 8px; background: var(--surface); border: 1px solid var(--line); box-shadow: 0 1px 2px rgba(18,18,17,.06); transition: border-color .4s ease, box-shadow .4s ease, opacity .35s ease, transform .4s cubic-bezier(.2,.7,.2,1); }
.xn > b { font-size: 12px; line-height: 1.15; font-weight: 600; letter-spacing: -0.01em; color: var(--ink); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.xn small { display: flex; gap: 6px; align-items: baseline; font: 400 10.5px/1.2 var(--font-mono); color: var(--muted); white-space: nowrap; }
.xn small span::after { content: "·"; margin-left: 6px; }
.xn__old { text-decoration: none; }
.xn__new { display: none; font-weight: 600; color: var(--ok); }
.xn__badge { position: absolute; right: -8px; top: -9px; height: 18px; min-width: 18px; padding: 0 5px; border-radius: 9px; background: var(--ok); color: var(--paper); font: 600 10px/18px var(--font-mono); text-align: center; transform: scale(0); transition: transform .35s cubic-bezier(.3,1.6,.5,1); }
.xm__map.is-better .xn[data-better] { border-color: var(--ok); box-shadow: 0 0 0 3px var(--ok-soft); }
.xm__map.is-better .xn[data-better] .xn__old { text-decoration: line-through; }
.xm__map.is-better .xn[data-better] .xn__new { display: inline; }
.xm__map.is-better .xn__badge { transform: scale(1); }
.xm__figs { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1px; margin: 0; background: var(--line); border: 1px solid var(--line); border-radius: var(--radius-md); overflow: hidden; }
.xm__figs div { background: var(--surface); padding: 12px 14px; display: grid; gap: 4px; }
.xm__figs dt { font-size: 12px; color: var(--muted); }
.xm__figs dd { margin: 0; display: flex; align-items: baseline; gap: 8px; font-size: 13px; color: var(--muted); }
.xm__figs dd s { font-size: 15px; font-variant-numeric: tabular-nums; }
.xm__figs dd b { font-size: 20px; font-weight: 600; letter-spacing: -0.02em; color: var(--ok); font-variant-numeric: tabular-nums; }
.xm__figs dd s, .xm__figs dd b { transition: opacity .4s ease; }
/* Who does each step, and what the team wrote on the map */
.xm { --pen: #2c55b0; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .xm { --pen: #93b2f2; } }
:root[data-theme="dark"] .xm { --pen: #93b2f2; }
.xn { padding-left: 16px; }
.xn__who { position: absolute; left: -9px; top: -9px; width: 22px; height: 22px; border-radius: 50%; object-fit: cover; border: 2px solid var(--surface); box-shadow: 0 1px 2px rgba(18,18,17,.18); }
.xh { position: absolute; display: flex; align-items: center; gap: 6px; white-space: nowrap; transform: rotate(var(--r, 0deg)); transform-origin: left center;
  font: 600 19px/1 "Caveat", "Bradley Hand", "Segoe Print", cursive; color: var(--pen); clip-path: inset(-6px -6px -6px -6px); transition: clip-path .7s cubic-bezier(.4,0,.2,1), opacity .4s ease; }
.xh img { width: 18px; height: 18px; border-radius: 50%; object-fit: cover; flex: none; }
.xh__arrow { position: absolute; overflow: visible; }
.xh__arrow path { fill: none; stroke: var(--pen); stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 1; stroke-dashoffset: 0; transition: stroke-dashoffset .45s ease, opacity .4s ease; }
.xm__legend em { font: 600 17px/1 "Caveat", cursive; font-style: normal; color: var(--pen); margin-right: 12px; }
.xm.is-live .xm__map .xh:not(.is-in) { clip-path: inset(-6px 100% -6px -6px); }
.xm.is-live .xm__map .xh__arrow:not(.is-in) path { stroke-dashoffset: 1; }
.xm__map.is-better .xh, .xm__map.is-better .xh__arrow path { opacity: .55; }

/* The map only exists while the script plays it */
.xm.is-live .xm__map { visibility: visible; opacity: 0; pointer-events: none; transform: translateY(10px); transition: opacity .5s ease, transform .6s cubic-bezier(.2,.7,.2,1); }
.xm.is-live .xm__grid { transition: opacity .45s ease, transform .6s cubic-bezier(.2,.7,.2,1); }
.xm.is-map .xm__grid { opacity: 0; transform: translateY(-10px); pointer-events: none; }
.xm.is-map .xm__map { opacity: 1; transform: none; pointer-events: auto; }
.xm.is-live .xm__map .xn:not(.is-in) { opacity: 0; transform: translateY(6px); }
.xm.is-live .xm__map .xm__wires path:not(.is-in) { stroke-dashoffset: 1; }
.xm.is-live .xm__map .xm__wires path { transition: stroke-dashoffset .35s ease; }
.xm.is-live .xm__map:not(.is-better) .xm__figs dd s { opacity: 1; }
.xm.is-live .xm__map:not(.is-better) .xm__figs dd b { opacity: 0; }
@media (max-width: 960px) {
  .xm__map { padding: var(--space-4); visibility: visible; }
  .xm__maphead { flex-wrap: wrap; }
  .xm__legend { margin-left: 0; width: 100%; }
  .xm__figs { grid-template-columns: minmax(0, 1fr); }
  .xm__stage > * { grid-area: auto; }
  .xm__map { border-top: 1px solid var(--line); }
  .xm.is-map .xm__grid { opacity: 1; transform: none; pointer-events: auto; }
}

/* In motion */
.xm.is-live .xm__col:not(.is-on) { opacity: .32; }
.xm.is-live .xm__out:not(.is-in) { opacity: 0; }
.xm.is-live .xm__bars:not(.is-in) i::after { transform: scaleX(0); }
.xm.is-live .xm__bars li { transition: opacity .3s ease; }
.xm.is-live .xm__bars:not(.is-in) em { opacity: 0; }
.xm.is-live .xm__road li:not(.is-in) { opacity: 0; transform: translateY(8px); }
.xm.is-fading .xm__grid { opacity: .25; transition: opacity .35s ease; }
@media (max-width: 960px) {
  .xm__grid { grid-template-columns: minmax(0, 1fr); }
  .xm__col { padding: var(--space-4); }
  .xm__col + .xm__col { border-left: 0; border-top: 1px solid var(--line); }
  .xm.is-live .xm__col:not(.is-on) { opacity: 1; }
}

.pm2 { display: grid; grid-template-columns: minmax(0, 1.45fr) minmax(0, 1fr); }
.pm2__map { padding: var(--space-6); display: grid; gap: var(--space-4); align-content: start; min-width: 0; }
.pm2__scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; }
.pmap { position: relative; aspect-ratio: 640 / 300; min-width: 660px; border: 1px solid var(--line); border-radius: var(--radius-md); overflow: hidden;
  background-color: var(--paper); background-image: radial-gradient(var(--line) 1px, transparent 1px); background-size: 16px 16px; }
.pmap__lane { position: absolute; left: 0; right: 0; height: 33.333%; border-top: 1px solid var(--line); }
.pmap__lane:first-child { border-top: 0; }
.pmap__lane span { position: absolute; left: 10px; top: 50%; transform: translateY(-50%); font: 500 10px/1 var(--font-mono); letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.pmap__wires { position: absolute; inset: 0; width: 100%; height: 100%; }
.pmap__wires path { fill: none; stroke: var(--line-strong); stroke-width: 1.5; vector-effect: non-scaling-stroke; }
.pmap__wires marker path { stroke: var(--ink-2); }
.pmap__node { position: absolute; display: grid; align-content: center; gap: 2px; padding: 4px 10px; border-radius: 8px; background: var(--surface); border: 1px solid var(--line); box-shadow: 0 1px 2px rgba(18,18,17,.06); }
.pmap__node b { font-size: 11.5px; line-height: 1.15; font-weight: 600; letter-spacing: -0.01em; color: var(--ink); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.pmap__node small { font: 400 10px/1.2 var(--font-mono); color: var(--muted); white-space: nowrap; }
.pmap__node.is-noted { border-color: var(--warn); box-shadow: 0 0 0 3px var(--warn-soft); }
.pmap__node.is-idea { border-color: var(--carmine); box-shadow: 0 0 0 3px var(--carmine-soft); }
.pmap__badge { position: absolute; right: -8px; top: -9px; height: 18px; padding: 0 6px; border-radius: 9px; background: var(--carmine); color: var(--on-carmine); font: 600 10px/18px var(--font-mono); }
.pm2__figs { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1px; margin: 0; background: var(--line); border: 1px solid var(--line); border-radius: var(--radius-md); overflow: hidden; }
.pm2__figs div { background: var(--surface); padding: 10px 12px; display: grid; gap: 3px; }
.pm2__figs dt { font-size: 11.5px; color: var(--muted); }
.pm2__figs dd { margin: 0; font: 500 16px/1.2 var(--font-mono); color: var(--ink); font-variant-numeric: tabular-nums; }
.pm2__side { background: var(--surface-sunk); border-left: 1px solid var(--line); padding: var(--space-6); display: grid; gap: var(--space-6); align-content: start; min-width: 0; }
.pm2__block { display: grid; gap: 10px; }
.pnote { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 10px; padding: 12px; border-radius: var(--radius-md); background: var(--surface); border: 1px solid var(--line); font-size: 13px; color: var(--ink-2); }
.pnote img { width: 28px; height: 28px; border-radius: 50%; object-fit: cover; }
.pnote p { margin: 0; }
.pnote p:first-child { font-size: 12px; color: var(--muted); }
.pnote p:first-child b { color: var(--ink); font-weight: 600; }
.pnote__said { margin-top: 2px !important; color: var(--ink); }
.pnote__did { margin-top: 8px !important; display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px; font-size: 12px; color: var(--muted); }
.pnote__did svg { width: 10px; height: 10px; color: var(--carmine); align-self: center; }
.pnote__did b { color: var(--ink-2); font-weight: 600; }
.pnote__did span { text-decoration: underline; text-underline-offset: 2px; margin-left: 2px; }
.road { list-style: none; margin: 0; padding: 0; display: grid; border: 1px solid var(--line); border-radius: var(--radius-md); background: var(--surface); overflow: hidden; }
.road li { position: relative; display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 10px; align-items: center; padding: 11px 12px 14px; font-size: 13px; }
.road li + li { border-top: 1px solid var(--line); }
.road__n { width: 22px; height: 22px; display: grid; place-items: center; border-radius: 50%; background: var(--surface-sunk); font: 600 11px/1 var(--font-mono); color: var(--ink); }
.road li:first-child .road__n { background: var(--carmine); color: var(--on-carmine); }
.road b { font-weight: 600; color: var(--ink); }
.road small { display: block; font-size: 11.5px; color: var(--muted); }
.road__save { font-size: 12px; color: var(--muted); white-space: nowrap; }
.road__save b { font: 500 14px/1 var(--font-mono); color: var(--ok); }
.road i { position: absolute; left: 12px; right: 12px; bottom: 6px; height: 3px; border-radius: 3px; background: var(--surface-sunk); }
.road i::after { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: var(--w); border-radius: 3px; background: var(--ok); opacity: .55; }

/* Photo band */
.band { position: relative; }
.band .mb-photo { aspect-ratio: auto; width: 100%; height: clamp(520px, 42.86vw, 860px); }
.band .mb-photo > img { object-position: 52% 38%; }
.band__quote { position: absolute; inset: auto 0 0 0; z-index: 2; padding: var(--space-16) 0 var(--space-12); background: linear-gradient(to top, rgba(26,25,23,.82), rgba(26,25,23,0)); color: var(--on-photo); }
.band__quote blockquote { margin: 0; max-width: 24ch; font-size: clamp(28px, 3.6vw, 48px); line-height: 1.08; font-weight: 600; letter-spacing: -0.03em; text-wrap: balance; }
.band__quote cite { display: block; margin-top: var(--space-4); font: 500 12px/1.3 var(--font-mono); letter-spacing: .08em; text-transform: uppercase; font-style: normal; opacity: .75; }

/* How we work */
.steps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--space-8); margin-top: var(--space-16); }
.step { display: grid; gap: var(--space-4); align-content: start; }
.step .mb-photo { aspect-ratio: 4 / 5; margin-bottom: var(--space-4); border-radius: var(--radius-lg); }
.step__n { font: 500 12px/1 var(--font-mono); color: var(--carmine); letter-spacing: .06em; }
.step p { max-width: 34ch; }

/* CTA */
.cta { padding: var(--section) 0; border-top: 1px solid var(--line); }
.cta__in { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr); gap: var(--space-12); align-items: end; }
.cta .display-xl { font-size: clamp(52px, 8vw, 120px); }
.cta__side { display: grid; gap: var(--space-8); padding-bottom: 14px; }
.cta__contact { display: grid; gap: 6px; font-size: 15px; }
.cta__swarm { width: 220px; height: 220px; margin: -40px 0 -8px -26px; display: block; }
@media (max-width: 960px) { .cta__swarm { width: 160px; height: 160px; margin: 0 0 -8px -18px; } }
.cta__contact a { color: var(--ink); text-decoration: none; border-bottom: 1px solid var(--line-strong); justify-self: start; }

/* Footer */
.foot { border-top: 1px solid var(--line); padding: var(--space-8) 0 var(--space-12); font-size: 14px; color: var(--muted); }
.foot__in { display: flex; flex-wrap: wrap; gap: var(--space-6); align-items: center; }
.foot__in .wordmark { font-size: 18px; margin-right: var(--space-4); }
.foot__links { display: flex; gap: var(--space-6); margin-left: auto; }
.foot a { text-decoration: none; }
.foot a:hover { color: var(--ink); }

/* ---------- Responsive ---------- */
@media (max-width: 1100px) {
  .cs { grid-template-columns: minmax(0, 1fr); }
  .cs__side { display: none; }
  .tr-layout { grid-template-columns: minmax(0, 1fr); }
  .tr-photo .mb-photo { min-height: 0; aspect-ratio: 16 / 10; height: auto; }
  .tr-photo .mb-float { right: 24px; bottom: 24px; }
}
@media (max-width: 960px) {
  :root { --gutter: var(--space-4); --section: var(--space-24); }
  .nav__links { display: none; }
  .nav .nav__cta { margin-left: auto; height: 40px; padding: 0 16px; }
  .nav__burger { display: block; }
  .nav__scrim { display: none; }
  .mnav { display: block; position: fixed; left: 0; right: 0; top: 72px; bottom: 0; overflow-y: auto; -webkit-overflow-scrolling: touch; background: var(--paper);
    visibility: hidden; opacity: 0; transform: translateY(-8px); transition: opacity .2s ease, transform .25s cubic-bezier(.2,.7,.2,1), visibility 0s linear .25s; }
  .nav.is-menu .mnav { visibility: visible; opacity: 1; transform: none; transition: opacity .2s ease, transform .25s cubic-bezier(.2,.7,.2,1); }
  .nav.is-menu { border-bottom-color: var(--line); }
  .mnav__in { padding-top: var(--space-4); padding-bottom: var(--space-12); display: grid; }
  .mnav details, .mnav__link { border-bottom: 1px solid var(--line); }
  .mnav summary, .mnav__link { display: flex; align-items: center; justify-content: space-between; padding: 18px 0; font-size: 22px; font-weight: 500; letter-spacing: -0.02em; color: var(--ink); text-decoration: none; cursor: pointer; list-style: none; }
  .mnav summary::-webkit-details-marker { display: none; }
  .mnav summary .nav__chev { width: 16px; height: 16px; }
  .mnav details[open] summary .nav__chev { transform: rotate(180deg); }
  .mnav__list { display: grid; padding: 0 0 16px; }
  .mnav__list a { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 8px; padding: 10px 0; font-size: 16px; color: var(--ink); text-decoration: none; }
  .mnav__list a small { flex-basis: 100%; font-size: 13.5px; color: var(--muted); }
  .mnav__group { margin: 12px 0 2px; font: 500 11px/1 var(--font-mono); letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
  .mnav__all { font-weight: 500; }
  .mnav__cta { margin-top: var(--space-8); justify-self: start; }
  .hero { padding-top: var(--space-8); }
  .hero__top, .feature__head, .statement__grid, .cta__in { grid-template-columns: minmax(0, 1fr); gap: var(--space-6); }
  .hero__stage { margin-top: var(--space-12); }
  .hero__stage .mb-photo { aspect-ratio: 4 / 5; }
  .hero__stage .mb-photo > img { object-position: 40% 50%; }
  .hero__float--a { position: relative; left: auto; right: auto; bottom: auto; width: auto; margin: -72px 16px 0; }
  .hero__float--b { right: 16px; top: 16px; width: 260px; }
  .hero__float--b .fc-temps { display: none; }
  .offers { grid-template-columns: minmax(0, 1fr); }
  .offer, .offer + .offer { padding: var(--space-6) 0; border-left: 0; }
  .offer + .offer { border-top: 1px solid var(--line); }
  .offer__n { margin-bottom: var(--space-2); }
  .feature__head { margin-bottom: var(--space-12); }
  .cs__grid { grid-template-columns: minmax(0, 1fr); }
  .kpis, .facts { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .docs { grid-template-columns: minmax(0, 1fr); }
  .tools { grid-template-columns: minmax(0, 1fr); }
  .tool-links { grid-template-columns: minmax(0, 1fr); margin-top: var(--space-12); }
  .tgroups { grid-template-columns: minmax(0, 1fr); gap: var(--space-12); margin-bottom: var(--space-12); }

  .tw { grid-template-columns: minmax(0, 1fr); }
  .tw__col { padding: var(--space-4); }
  .tw__col--sunk { border-left: 0; border-top: 1px solid var(--line); }
  .pm2 { grid-template-columns: minmax(0, 1fr); }
  .pm2__map, .pm2__side { padding: var(--space-4); }
  .pm2__side { border-left: 0; border-top: 1px solid var(--line); }
  .pm2__figs { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .roles__head { grid-template-columns: minmax(0, 1fr); gap: var(--space-6); margin-bottom: var(--space-8); }
  .role { flex-basis: 78vw; }
  .roles__rail { gap: 16px; }
  .roles__rail::after { flex-basis: calc(var(--rail-pad) - 16px); }
  .tool-tabs__bar { display: flex; }
  .tool-tab { flex: 1; padding: 0 10px; }
  .tool { min-height: 0; padding: var(--space-6); }
  .band .mb-photo { aspect-ratio: 4 / 5; height: auto; }
  .band .mb-photo > img { object-position: 54% 40%; }
  .steps { grid-template-columns: minmax(0, 1fr); gap: var(--space-12); }
  .sp__docs { grid-template-columns: minmax(0, 1fr); }
  .sp__vs { display: none; }
  .tr-photo .mb-float { position: relative; right: auto; bottom: auto; width: auto; margin: -64px 16px 0; }
  .tr__map { height: 210px; }
  .foot__links { margin-left: 0; width: 100%; flex-wrap: wrap; gap: 10px var(--space-5, 20px); }
  .foot__links a { white-space: nowrap; }
}
@media (max-width: 560px) {
  .hero__float--b { display: none; }
  .mb-window__crumb { display: none; }
  .mb-search { display: none !important; }
  .cs__main, .tr__body { padding: var(--space-4); }
  .cs__title .mb-btn-row { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .roles__rail { scroll-behavior: auto; }
  .role__photo > img { transition: none; }
  .tool-panel.is-on { animation: none; }
  .map-pulse { animation: none; }
}

/* ==========================================================================
   Hero variants. B (default): photo + a process moving through MakeBetter. A (?hero=a): photo + two floating cards.
   ========================================================================== */
html:not([data-hero="a"]) .hero--a, html[data-hero="a"] .hero--b { display: none; }

.pm-stage { --step-w: 168px; --lane-h: 92px; --head-w: 112px; }
.pm-photo::after {
  content: ""; position: absolute; inset: 0; z-index: 2; pointer-events: none;
  background: linear-gradient(to top, rgba(18,18,17,.86) 0%, rgba(18,18,17,.74) 36%, rgba(18,18,17,.5) 56%, rgba(18,18,17,0) 80%);
}

/* Summary: no card, white on the photo, opposite the topic title */
.pm-summary {
  --pm-ink: var(--on-photo); --pm-dim: rgba(246,245,242,.82); --pm-red: #ef6a5a; --pm-track: rgba(246,245,242,.22); --pm-mid: rgba(246,245,242,.75);
  position: absolute; z-index: 4; right: 40px; bottom: calc(36px + var(--lane-h) * 3 + 108px); width: 300px;
  display: grid; gap: 2px; color: var(--pm-ink); text-shadow: 0 1px 2px rgba(0,0,0,.35), 0 1px 18px rgba(0,0,0,.45);
}
.pm-figs { display: grid; grid-template-columns: 1.3fr 1fr; gap: 12px; margin: 0 0 12px; }
.pm-figs div { display: grid; gap: 3px; }
.pm-figs dt { font-size: 11.5px; color: var(--pm-dim); }
.pm-figs dd { margin: 0; font: 500 21px/1.1 var(--font-mono); letter-spacing: -0.02em; font-variant-numeric: tabular-nums; color: var(--pm-ink); white-space: nowrap; }
.pm-figs dd.is-changed { animation: pm-fig .7s ease; }
@keyframes pm-fig { 0% { color: var(--pm-red); transform: translateY(3px); } 100% { color: var(--pm-ink); transform: none; } }
.pm-progress { display: grid; gap: 8px; }
.pm-progress__head { display: flex; justify-content: space-between; align-items: baseline; font-size: 11.5px; color: var(--pm-dim); }
.pm-progress__head b { font: 500 13px/1 var(--font-mono); color: var(--pm-ink); font-variant-numeric: tabular-nums; }
.pm-bar { height: 6px; border-radius: 6px; overflow: hidden; background: var(--pm-track); }
.pm-bar span { display: block; height: 100%; border-radius: 6px; background: var(--pm-ink); transition: width .9s cubic-bezier(.2,.7,.2,1); }

/* The topic of the batch on screen: big white letters above the lanes */
.pm-topic {
  position: absolute; z-index: 3; left: 40px; bottom: calc(36px + var(--lane-h) * 3 + 108px);
  display: grid; gap: 6px; color: var(--on-photo); pointer-events: none;
  transition: opacity .28s ease, transform .28s ease;
}
.pm-topic__n { font: 500 12px/1 var(--font-mono); letter-spacing: .08em; opacity: .7; }
.pm-topic__t { font-size: clamp(34px, 3.6vw, 52px); line-height: 1; font-weight: 600; letter-spacing: -0.035em; text-shadow: 0 2px 24px rgba(0,0,0,.35); }
.pm-topic.is-out { opacity: 0; transform: translateY(-10px); }

/* The score: three lanes across the bottom of the photo */
.pm-map { position: absolute; z-index: 3; left: 40px; right: 40px; bottom: 36px; height: calc(var(--lane-h) * 3); }
.pm-summary { z-index: 4; }
.pm-lane { position: absolute; left: 0; right: 0; top: calc((var(--r) - 1) * var(--lane-h)); height: var(--lane-h); border-top: 1px solid rgba(246,245,242,.16); }
.pm-lane:nth-of-type(3) { border-bottom: 1px solid rgba(246,245,242,.16); }
.pm-lane__head { position: absolute; left: 0; top: 50%; transform: translateY(-50%); display: grid; gap: 8px; }
.pm-lane__head > span:first-child { font: 500 11px/1 var(--font-mono); letter-spacing: .08em; text-transform: uppercase; color: rgba(246,245,242,.78); }
.pm-faces { display: flex; min-height: 22px; transition: opacity .25s ease, transform .25s ease; }
.pm-faces.is-out { opacity: 0; transform: translateX(-6px); }
.pm-faces img { width: 22px; height: 22px; border-radius: 50%; object-fit: cover; border: 2px solid rgba(26,25,23,.9); margin-left: -6px; }
.pm-faces img:first-child { margin-left: 0; }
.pm-faces img { animation: pm-face-in .4s cubic-bezier(.2,.7,.2,1) both; animation-delay: calc(var(--i, 0) * 70ms); transition: opacity .3s ease; }
.pm-faces img.is-idle { opacity: .35; filter: grayscale(1); }
@keyframes pm-face-in { from { opacity: 0; transform: translateY(6px) scale(.7); } }

/* The moving window: fades in at the right, out at the left */
.pm-window {
  position: absolute; left: var(--head-w); right: 0; top: -64px; bottom: -30px; overflow: hidden;
  -webkit-mask-image: linear-gradient(to right, transparent 0, #000 20px, #000 calc(100% - 20px), transparent 100%);
          mask-image: linear-gradient(to right, transparent 0, #000 20px, #000 calc(100% - 20px), transparent 100%);
}
.pm-track { position: absolute; z-index: 4; left: 0; top: 64px; bottom: 0; width: 16000px; will-change: transform; }
.pm-wires { position: absolute; left: 0; top: 0; width: 16000px; height: 100%; overflow: visible; pointer-events: none; }
.pm-wires path { fill: none; stroke: rgba(246,245,242,.38); stroke-width: 1.5; transition: stroke .5s ease; }
.pm-wires path.is-done { stroke: rgba(246,245,242,.92); }
.pm-wires marker path { stroke: rgba(246,245,242,.8); }
.pm-wires path.is-loop { stroke-dasharray: 4 4; }
.pm-wlabel {
  position: absolute; left: 0; top: 0; z-index: 1; white-space: nowrap; pointer-events: none;
  padding: 2px 7px; border-radius: var(--radius-pill); border: 1px solid rgba(246,245,242,.22);
  background: rgba(18,18,17,.72); color: var(--on-photo); font: 500 10.5px/1.3 var(--font-mono); letter-spacing: .02em;
}
/* A decision: a small diamond before its question */
.pm-step.is-decision .pm-step__title::before {
  content: ""; display: inline-block; width: 7px; height: 7px; margin: 0 7px 1px 1px; vertical-align: middle;
  border: 1.5px solid var(--ink); transform: rotate(45deg); border-radius: 1px;
}
.pm-step.is-decision.is-better .pm-step__title::before { border-color: var(--carmine); background: var(--carmine); }

/* A step (a note on the score) */
.pm-step {
  position: absolute; left: 0; top: 0; width: var(--step-w); z-index: 2;
  background: var(--surface); color: var(--ink); border: 1px solid var(--line); border-radius: var(--radius-md);
  padding: 10px 11px 9px; box-shadow: 0 8px 24px -10px rgba(0,0,0,.5);
}
.pm-step::after { content: ""; position: absolute; inset: -1px; border-radius: inherit; box-shadow: 0 0 0 2px var(--carmine); opacity: 0; transition: opacity .3s ease; pointer-events: none; }
.pm-step.is-flash::after { opacity: 1; }
.pm-step__head { display: flex; align-items: flex-start; justify-content: space-between; gap: 8px; min-height: 33px; }
.pm-step__title { font-size: 13px; line-height: 1.25; font-weight: 600; letter-spacing: -0.01em; }
.pm-who { position: relative; width: 22px; height: 22px; flex: none; }
.pm-who > * { position: absolute; inset: 0; width: 22px; height: 22px; border-radius: 50%; transition: opacity .4s ease, transform .4s ease; }
.pm-who img { object-fit: cover; }
.pm-who i { display: grid; place-items: center; background: var(--carmine); color: var(--on-carmine); opacity: 0; transform: scale(.5) rotate(-30deg); }
.pm-step.is-assisted .pm-who i { background: var(--carmine-soft); color: var(--carmine); }
.pm-who svg { width: 12px; height: 12px; }
.pm-step__foot { position: relative; margin-top: 6px; height: 15px; font: 400 11px/15px var(--font-mono); font-variant-numeric: tabular-nums; white-space: nowrap; }
.pm-step__foot > span { position: absolute; left: 0; top: 0; transition: opacity .4s ease, transform .4s ease; }
.pm-step__foot .b { color: var(--muted); }
.pm-step__foot .a { color: var(--ink); opacity: 0; transform: translateY(6px); }
.pm-step.is-better .pm-who img { opacity: 0; transform: scale(.5); }
.pm-step.is-better .pm-who i { opacity: 1; transform: none; }
.pm-step.is-better .pm-step__foot .b { opacity: 0; transform: translateY(-6px); }
.pm-step.is-better .pm-step__foot .a { opacity: 1; transform: none; }

/* What MakeBetter did at this step: white text popping out above the card, drifting up, fading */
.pm-pops { position: absolute; left: 0; bottom: calc(100% + 8px); width: 0; height: 0; pointer-events: none; }
.pm-pop {
  position: absolute; left: 0; bottom: calc(var(--row) * 20px); display: flex; align-items: center; gap: 7px; white-space: nowrap;
  color: var(--on-photo); font: 500 12.5px/1.3 var(--font-sans); letter-spacing: -0.005em;
  text-shadow: 0 1px 2px rgba(0,0,0,.45), 0 2px 14px rgba(0,0,0,.4);
  opacity: 0; animation: pm-pop 2.3s cubic-bezier(.2,.7,.3,1) both; animation-delay: calc(var(--k) * 190ms);
}
.pm-pop svg { width: 11px; height: 11px; flex: none; color: #ef6a5a; filter: drop-shadow(0 1px 2px rgba(0,0,0,.4)); }
@keyframes pm-pop {
  0%   { opacity: 0; transform: translateY(10px) scale(.96); }
  14%  { opacity: 1; transform: translateY(0) scale(1); }
  70%  { opacity: 1; transform: translateY(-12px); }
  100% { opacity: 0; transform: translateY(-26px); }
}
.pm-step.is-end .pm-pops { left: auto; right: 0; }
.pm-step.is-end .pm-pop { left: auto; right: 0; }
.pm-step.is-noting { z-index: 5; }


/* A quiet line under the hero */
.pm-aside { margin-top: var(--space-6); max-width: 64ch; font-size: 14.5px; line-height: 1.55; color: var(--muted); text-wrap: pretty; }
.pm-aside a { color: var(--ink-2); text-decoration: none; border-bottom: 1px solid var(--line-strong); margin-left: 4px; white-space: nowrap; }
.pm-aside a:hover { color: var(--ink); border-color: var(--ink); }

/* Narrower: the score stays on the photo, smaller; the summary card moves under the photo */
@media (max-width: 1180px) {
  .pm-map { left: 24px; right: 24px; bottom: 28px; }
  .pm-topic { left: 24px; bottom: calc(28px + var(--lane-h) * 3 + 104px); }
  .pm-summary { right: 24px; bottom: calc(28px + var(--lane-h) * 3 + 104px); width: 280px; }
}
@media (max-width: 960px) {
  .pm-stage { --step-w: 148px; --lane-h: 96px; --head-w: 0px; --card-dy: 9px; }
  .hero__stage.pm-stage .mb-photo { aspect-ratio: 4 / 5; }
  .pm-photo::after { background: linear-gradient(to bottom, rgba(18,18,17,.55) 0%, rgba(18,18,17,0) 26%), linear-gradient(to top, rgba(18,18,17,.88) 0%, rgba(18,18,17,.72) 48%, rgba(18,18,17,.3) 68%, rgba(18,18,17,0) 84%); }
  .pm-map { left: 0; right: 0; }
  .pm-topic { left: 16px; top: 20px; bottom: auto; }
  .pm-topic__t { font-size: 30px; }
  /* Under the photo on phones: no room beside the title, so ink on paper */
  .pm-summary { position: relative; right: auto; bottom: auto; width: auto; max-width: 440px; margin: 20px 0 0; text-shadow: none;
    --pm-ink: var(--ink); --pm-dim: var(--muted); --pm-red: var(--carmine); --pm-track: var(--line-strong); --pm-mid: var(--ink-2); }
  .pm-lane__head { top: 5px; left: 12px; transform: none; display: flex; align-items: center; gap: 8px; }
  .pm-lane__head > span:first-child { font-size: 10px; }
  .pm-faces img { width: 16px; height: 16px; border-width: 1.5px; margin-left: -5px; }
  .pm-step { padding: 8px 9px 8px; }
  .pm-step__title { font-size: 12px; }
  .pm-step__head { min-height: 30px; }
  .pm-pop { font-size: 11.5px; }
}
@media (prefers-reduced-motion: reduce) {
  .pm-summary__eyebrow::before { animation: none; }
  .pm-pops { display: none; }
}
.xm.is-live .xm__map:not(.is-better) .xm__figs div:last-child dd { opacity: 0; }
.xm__figs div:last-child dd { transition: opacity .4s ease; }

/* ---------- How we work page ---------- */
.phero { padding: var(--space-16) 0 var(--space-12); }
.phero__grid { margin-top: var(--space-4); display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: var(--space-12); align-items: end; }
.phero__grid .lead { padding-bottom: 10px; }
.tline { list-style: none; margin: var(--space-16) 0 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); border-top: 1px solid var(--line); }
.tline li { position: relative; padding: var(--space-6) var(--space-6) 0 0; display: grid; gap: 6px; align-content: start; }
.tline li::before { content: ""; position: absolute; left: 0; top: -5px; width: 9px; height: 9px; border-radius: 50%; background: var(--ink); }
.tline li:first-child::before { background: var(--carmine); }
.tline__when { font: 500 11px/1 var(--font-mono); letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
.tline b { font-size: 24px; font-weight: 600; letter-spacing: -0.025em; color: var(--ink); }
.tline p { margin: 0; max-width: 34ch; font-size: 15px; line-height: 1.5; color: var(--ink-2); }
.band--page { padding: 0; }
.band--page .mb-photo { aspect-ratio: 21 / 9; }
.band--page img { width: 100%; height: 100%; object-fit: cover; }
.hrows { display: grid; gap: var(--space-24); }
.hrow { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); gap: var(--space-16); align-items: center; }
.hrow--flip .hrow__photo { order: 2; }
.hrow__photo { aspect-ratio: 4 / 5; max-height: 640px; }
.hrow__photo img { width: 100%; height: 100%; object-fit: cover; }
.hrow__text { display: grid; gap: var(--space-4); align-content: center; }
.hrow__text .display-l { margin: 0; }
.hrow__text .points { margin-top: var(--space-2); }
.hrow__get { margin: var(--space-2) 0 0; padding-top: var(--space-4); border-top: 1px solid var(--line); display: grid; gap: 4px; font-size: 16px; line-height: 1.5; color: var(--ink); max-width: 46ch; }
.hrow__get span { font: 500 11px/1 var(--font-mono); letter-spacing: .06em; text-transform: uppercase; color: var(--carmine); }
.rules { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--radius-lg); overflow: hidden; }
.rules li { background: var(--surface); padding: var(--space-6); display: grid; gap: 8px; align-content: start; }
.rules b { font-size: 18px; font-weight: 600; letter-spacing: -0.02em; color: var(--ink); }
.rules p { margin: 0; font-size: 15px; line-height: 1.5; color: var(--ink-2); }
.faq { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.4fr); gap: var(--space-12); align-items: start; }
.faq__list { border-top: 1px solid var(--line); }
.faq__item { border-bottom: 1px solid var(--line); }
.faq__item summary { display: flex; justify-content: space-between; align-items: center; gap: var(--space-4); padding: 20px 0; font-size: 18px; font-weight: 500; letter-spacing: -0.015em; color: var(--ink); cursor: pointer; list-style: none; }
.faq__item summary::-webkit-details-marker { display: none; }
.faq__item summary .nav__chev { width: 16px; height: 16px; flex: none; }
.faq__item[open] summary .nav__chev { transform: rotate(180deg); }
.faq__item p { margin: 0 0 20px; max-width: 60ch; font-size: 16px; line-height: 1.55; color: var(--ink-2); }
@media (max-width: 960px) {
  .phero { padding-top: var(--space-8); }
  .phero__grid, .hrow, .faq { grid-template-columns: minmax(0, 1fr); gap: var(--space-6); }
  .tline { grid-template-columns: minmax(0, 1fr); margin-top: var(--space-10, 40px); border-top: 0; border-left: 1px solid var(--line); padding-left: var(--space-6); gap: var(--space-6); }
  .tline li { padding: 0; }
  .tline li::before { left: calc(-1 * var(--space-6) - 5px); top: 2px; }
  .band--page .mb-photo { aspect-ratio: 4 / 3; }
  .hrows { gap: var(--space-16); }
  .hrow--flip .hrow__photo { order: 0; }
  .hrow__photo { aspect-ratio: 4 / 3; }
  .rules { grid-template-columns: minmax(0, 1fr); }
}
.nav__trigger .nav__chev { display: none; }
.band--page .mb-photo { height: auto; }
.hrow .points { flex-direction: column; gap: 10px; }
.hrow .points li { align-items: flex-start; line-height: 1.45; }
.hrow .points svg { margin-top: 2px; }
.phero__grid { grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr); }
@media (max-width: 960px) { .phero__grid { grid-template-columns: minmax(0, 1fr); } }

/* ---------- Stories page ---------- */
.stories { padding-top: 0; }
.story { display: grid; gap: 10px; align-content: start; text-decoration: none; color: var(--ink); }
.story .mb-photo { aspect-ratio: 4 / 3; margin-bottom: 6px; }
.story img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s cubic-bezier(.2,.7,.2,1); }
.story:hover img { transform: scale(1.03); }
.story small { font: 500 11px/1.3 var(--font-mono); letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
.story h3 { margin: 0; font-size: 22px; line-height: 1.2; font-weight: 600; letter-spacing: -0.02em; text-wrap: balance; }
.story__tags { display: flex; flex-wrap: wrap; gap: 6px; }
.story__tags span { height: 24px; display: inline-flex; align-items: center; padding: 0 10px; border-radius: var(--radius-pill); border: 1px solid var(--line); background: var(--surface); font-size: 12px; color: var(--ink-2); }
.story--feature { grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: var(--space-12); align-items: center; padding-bottom: var(--space-16); border-bottom: 1px solid var(--line); }
.story--feature .mb-photo { aspect-ratio: 4 / 3; margin: 0; }
.story__text { display: grid; gap: var(--space-4); }
.story__text .display-l { margin: 0; }
.story__text em { font-style: normal; font-weight: 500; font-size: 16px; }
.story__text .mb-arrow { display: inline-block; transition: transform .2s ease; }
.story:hover .mb-arrow { transform: translateX(3px); }
.stories__grid { margin-top: var(--space-16); display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--space-8); }
@media (max-width: 960px) {
  .story--feature, .stories__grid { grid-template-columns: minmax(0, 1fr); gap: var(--space-6); }
  .stories__grid { gap: var(--space-12); margin-top: var(--space-12); }
}

/* Who it's for, two rows: five across, the line always shown */
.mm-roles { grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 10px; }
.mm-role { aspect-ratio: 16 / 10; }
.mm-role img { object-position: 50% 35%; }
.mm-role > span { left: 14px; right: 14px; bottom: 12px; }
.mm-role b { font-size: 15px; }
.mm-role small { max-height: none; opacity: 1; margin-top: 3px; }
.mm-role:hover small, .mm-role:focus-visible small { margin-top: 3px; }
.mm-role--ask { background: var(--ink); }
.mm-role--ask::after { display: none; }
.mm-role--ask > span { top: 14px; display: grid; align-content: space-between; }
.mm-role--ask b { color: var(--paper); }
.mm-role--ask small { color: color-mix(in srgb, var(--paper) 72%, transparent); }
.mm-role--ask em { font-style: normal; font-size: 13.5px; font-weight: 500; color: var(--paper); }
@media (max-width: 1100px) { .mm-roles { grid-template-columns: repeat(5, minmax(0, 1fr)); } .mm-role small { display: none; } .mm-role--ask small { display: none; } }

/* Who it's for: a quiet two-column list; the photo shows beside the row you point at */
.mm-who { display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 1fr); gap: var(--space-12); align-items: stretch; }
.mm-who__list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); grid-template-rows: repeat(5, auto); grid-auto-flow: column; column-gap: var(--space-12); align-content: start; }
.mm-who__item { display: grid; gap: 3px; padding: 13px 0; border-bottom: 1px solid var(--line); text-decoration: none; transition: opacity .2s ease; }
.mm-who__item b { font-size: 17px; font-weight: 500; letter-spacing: -0.015em; color: var(--ink); transition: transform .25s cubic-bezier(.2,.7,.2,1); }
.mm-who__item small { font-size: 13.5px; color: var(--muted); transition: transform .25s cubic-bezier(.2,.7,.2,1); }
.mm-who__list:hover .mm-who__item:not(:hover), .mm-who__list:focus-within .mm-who__item:not(:focus-visible):not(:hover) { opacity: .45; }
.mm-who__item:hover b, .mm-who__item:hover small, .mm-who__item:focus-visible b, .mm-who__item:focus-visible small { transform: translateX(4px); }
.mm-who__item:focus-visible { outline: none; }
.mm-who__item:focus-visible b { text-decoration: underline; text-underline-offset: 3px; }
.mm-who__photo { position: relative; margin: 0; min-height: 260px; border-radius: var(--radius-lg); overflow: hidden; background: var(--surface-sunk); }
.mm-who__photo img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transform: scale(1.04); transition: opacity .35s ease, transform .6s cubic-bezier(.2,.7,.2,1); }
.mm-who__photo img.is-on { opacity: 1; transform: none; }
@media (max-width: 1100px) { .mm-who { grid-template-columns: minmax(0, 1fr) 240px; gap: var(--space-8); } .mm-who__list { column-gap: var(--space-8); } }
.mm-who__item { gap: 1px; padding: 10px 0; border-bottom: 0; }
.mm-who__item small { line-height: 1.3; }

/* Tools in one row: seven products side by side */
.mm-prods { grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 6px; }
.mm-prod { gap: 10px; padding: 14px 12px; margin: 0; }
.mm-prod .tl__icon { margin-bottom: 4px; }
.mm-prod p { font-size: 13px; }
@media (max-width: 1100px) { .mm-prods { grid-template-columns: repeat(4, minmax(0, 1fr)); } }

/* Product app icons: a flat pastel tile per tool, the glyph in a deeper tint of it */
.app-ico { --bg: #ecebe6; --fg: #3d3c38; width: 44px; height: 44px; display: grid; place-items: center; border-radius: 12px; background: var(--bg); color: var(--fg);
  box-shadow: inset 0 0 0 1px rgba(18,18,17,.05); margin-bottom: 6px; transition: transform .25s cubic-bezier(.2,.7,.2,1); }
.app-ico svg { width: 21px; height: 21px; }
.mm-prod:hover .app-ico { transform: translateY(-2px); }
.app-ico--boss      { --bg: #f2e6cf; --fg: #7a5418; }
.app-ico--margin    { --bg: #f7dcd6; --fg: #a1332a; }
.app-ico--meatborsa { --bg: #dde9d6; --fg: #3d6b39; }
.app-ico--ledgvero  { --bg: #e2e0f6; --fg: #4a4698; }
.app-ico--portal    { --bg: #d8e8f3; --fg: #2b5e86; }
.app-ico--carcass   { --bg: #f9e1cb; --fg: #9e501b; }
.app-ico--registry  { --bg: #d5ede7; --fg: #2a6d61; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .app-ico { box-shadow: inset 0 0 0 1px rgba(255,255,255,.06); }
  :root:not([data-theme="light"]) .app-ico--boss      { --bg: #3a3020; --fg: #f0d29a; }
  :root:not([data-theme="light"]) .app-ico--margin    { --bg: #3d2421; --fg: #f3aa9f; }
  :root:not([data-theme="light"]) .app-ico--meatborsa { --bg: #243323; --fg: #a9d39f; }
  :root:not([data-theme="light"]) .app-ico--ledgvero  { --bg: #2a2943; --fg: #b9b5f2; }
  :root:not([data-theme="light"]) .app-ico--portal    { --bg: #1f3040; --fg: #9fc8ea; }
  :root:not([data-theme="light"]) .app-ico--carcass   { --bg: #3d2b1d; --fg: #f3bb8c; }
  :root:not([data-theme="light"]) .app-ico--registry  { --bg: #1e3631; --fg: #96d7c8; }
}

/* ---------- Who it's for pages ---------- */
.persona-hero { padding: var(--space-16) 0 var(--space-12); }
.persona-hero__side { display: grid; gap: var(--space-8); padding-bottom: 10px; }
.persona-stage { position: relative; margin-top: var(--space-16); }
.persona-stage__photo { aspect-ratio: 16 / 8; }
.persona-stage__photo img { width: 100%; height: 100%; object-fit: cover; }
.pcards { position: absolute; right: 32px; bottom: 32px; width: 340px; display: grid; gap: 10px; }
.pcard { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 12px; align-items: start; padding: 14px; border-radius: 16px; background: var(--surface); color: var(--ink); box-shadow: var(--shadow-float); font-size: 14px; line-height: 1.4;
  transition: opacity .45s ease, transform .55s cubic-bezier(.2,.7,.2,1); }
.pcard .app-ico { width: 34px; height: 34px; border-radius: 10px; margin: 0; }
.pcard .app-ico svg { width: 17px; height: 17px; }
.pcard small { display: block; margin-bottom: 3px; font: 500 10.5px/1.2 var(--font-mono); letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
.pcard p { margin: 0; }
.pcard__row { display: flex; justify-content: space-between; gap: 8px; margin-top: 4px; font-size: 13px; color: var(--muted); }
.pcard .ok, .ok { color: var(--ok); }
.pcard__ok, .pcard__ai { width: 34px; height: 34px; display: grid; place-items: center; border-radius: 10px; background: var(--ok-soft); color: var(--ok); }
.pcard__ai { background: var(--carmine-soft); color: var(--carmine); }
.pcard__ok svg, .pcard__ai svg { width: 17px; height: 17px; }
.pcard__acts { display: flex; gap: 6px; margin-top: 10px; }
.pcard__acts em { font-style: normal; font-size: 12.5px; font-weight: 500; padding: 6px 12px; border-radius: 999px; border: 1px solid var(--line); }
.pcard__acts em.is-main { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.pcards.is-live .pcard:not(.is-in) { opacity: 0; transform: translateY(14px) scale(.98); }
.pcards.is-fading .pcard { opacity: .25; }

/* The day, before and after */
.day { border: 1px solid var(--line); border-radius: var(--radius-lg); background: var(--surface); padding: var(--space-6); display: grid; gap: var(--space-4); }
.day__head { display: flex; justify-content: space-between; align-items: center; gap: var(--space-4); flex-wrap: wrap; }
.seg { display: inline-flex; padding: 4px; border-radius: 999px; background: var(--surface-sunk); }
.seg button { height: 36px; padding: 0 16px; border: 0; border-radius: 999px; background: none; font: 500 14px/1 var(--font-sans); color: var(--muted); cursor: pointer; transition: background-color .2s ease, color .2s ease, box-shadow .2s ease; }
.seg button[aria-selected="true"] { background: var(--surface); color: var(--ink); box-shadow: 0 1px 2px rgba(18,18,17,.1); }
.day__sum { margin: 0; display: flex; align-items: baseline; gap: 10px; font-size: 14px; color: var(--muted); }
.day__sum b { font-size: 28px; font-weight: 600; letter-spacing: -0.025em; color: var(--ink); font-variant-numeric: tabular-nums; }
.day__sum b.ok { color: var(--ok); }
.day__list { list-style: none; margin: 0; padding: 0; display: grid; }
.day__row { display: grid; grid-template-columns: 64px minmax(0, 1fr) minmax(120px, 28%) 72px; gap: var(--space-4); align-items: center; padding: 14px 0; border-top: 1px solid var(--line); }
.day__t { font: 500 13px/1 var(--font-mono); color: var(--muted); }
.day__what { display: grid; font-size: 16px; color: var(--ink); }
.day__what > span { grid-area: 1 / 1; transition: opacity .35s ease, transform .4s cubic-bezier(.2,.7,.2,1); }
.day__a { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 10px; }
.day__tag { display: inline-flex; align-items: center; gap: 4px; height: 22px; padding: 0 8px; border-radius: 999px; border: 1px solid var(--line); font: 500 10.5px/1 var(--font-mono); letter-spacing: .04em; text-transform: uppercase; color: var(--muted); }
.day__tag--ai { border-color: transparent; background: var(--carmine-soft); color: var(--carmine); }
.day__tag svg { width: 10px; height: 10px; }
.day__bar i { display: block; height: 8px; border-radius: 4px; background: var(--surface-sunk); position: relative; overflow: hidden; }
.day__bar i::after { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 100%; border-radius: 4px; background: var(--ink-2); transform-origin: left; transform: scaleX(var(--b)); transition: transform .7s cubic-bezier(.2,.7,.2,1), background-color .4s ease; }
.day__m { display: grid; justify-items: end; font: 500 14px/1 var(--font-mono); color: var(--ink); font-variant-numeric: tabular-nums; }
.day__m > span, .day__sum > b { grid-area: 1 / 1; transition: opacity .3s ease; }
.day__sum { display: grid; grid-template-columns: auto auto; }
.day__sum > span { grid-column: 1; }
.day__sum > b { grid-column: 2; grid-row: 1; }
.day[data-mode="before"] .day__a, .day[data-mode="after"] .day__b { opacity: 0; pointer-events: none; }
.day[data-mode="before"] .day__what .day__a { transform: translateY(6px); }
.day[data-mode="after"] .day__what .day__b { transform: translateY(-6px); }
.day[data-mode="after"] .day__bar i::after { transform: scaleX(var(--a)); background: var(--ok); }
.day[data-mode="after"] .day__m .day__a { color: var(--ok); }
.todo { margin: 0; display: grid; gap: 4px; padding: 12px 14px; border: 1px dashed var(--line-strong); border-radius: var(--radius-md); background: repeating-linear-gradient(-45deg, transparent 0 8px, rgba(18,18,17,.02) 8px 16px); font-size: 13.5px; line-height: 1.45; color: var(--muted); }
.todo b { font: 500 10.5px/1 var(--font-mono); letter-spacing: .06em; text-transform: uppercase; color: var(--warn); }

/* How much AI */
.aiw { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--radius-lg); overflow: hidden; }
.aiw__col { background: var(--surface); padding: var(--space-8) var(--space-6); display: grid; gap: var(--space-3); align-content: start; }
.aiw__mark { width: 56px; height: 56px; margin-bottom: var(--space-2); display: grid; place-items: center; }
.aiw__mark canvas { width: 56px; height: 56px; display: block; }
.aiw__mark img { width: 48px; height: 48px; border-radius: 50%; object-fit: cover; }
.aiw__half { width: 40px; height: 40px; border-radius: 50%; border: 1.5px solid var(--ink); background: linear-gradient(90deg, var(--ink) 50%, transparent 50%); }
.aiw__col .title { margin: 0; }
.aiw__col ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; font-size: 15.5px; line-height: 1.45; color: var(--ink-2); }
.aiw__col li { padding-left: 16px; position: relative; }
.aiw__col li::before { content: ""; position: absolute; left: 0; top: .62em; width: 6px; height: 1.5px; background: var(--muted); }
.aiw__rule { margin: var(--space-6) 0 0; display: flex; align-items: center; gap: 10px; font-size: 16px; color: var(--ink); }
.aiw__rule svg { width: 20px; height: 20px; color: var(--ok); }

/* Tools for this persona */
.ptools { display: grid; grid-template-columns: minmax(0, 1.25fr) repeat(3, minmax(0, 1fr)); gap: var(--space-4); }
.ptool { display: grid; gap: 12px; align-content: start; padding: var(--space-6); border-radius: var(--radius-lg); border: 1px solid var(--line); background: var(--surface); text-decoration: none; color: var(--ink); transition: border-color .2s ease, transform .3s cubic-bezier(.2,.7,.2,1); }
.ptool:hover { border-color: var(--line-strong); transform: translateY(-2px); }
.ptool b { display: block; font-size: 18px; font-weight: 600; letter-spacing: -0.02em; }
.ptool small { display: block; margin-top: 2px; font: 500 10.5px/1.2 var(--font-mono); letter-spacing: .05em; text-transform: uppercase; color: var(--muted); }
.ptool p { margin: 0; font-size: 15px; line-height: 1.5; color: var(--ink-2); }
.ptool em { margin-top: auto; padding-top: var(--space-2); font-style: normal; font-size: 14px; font-weight: 500; }
.ptool .mb-arrow { display: inline-block; transition: transform .2s ease; }
.ptool:hover .mb-arrow { transform: translateX(3px); }
.ptool--main { background: var(--paper); }
.ptool--main p { font-size: 16px; }
.ptool--main .points { flex-direction: column; gap: 8px; margin-top: 0; }

/* Proof */
.proof { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.25fr); gap: var(--space-16); align-items: center; }
.proof__photo { aspect-ratio: 4 / 5; }
.proof__text { display: grid; gap: var(--space-4); }
.proof__quote { margin: 0; font-size: clamp(26px, 2.6vw, 36px); line-height: 1.2; font-weight: 500; letter-spacing: -0.025em; color: var(--ink); text-wrap: balance; }
.proof__who { margin: 0; font-size: 15px; color: var(--muted); }
.proof__who b { color: var(--ink); font-weight: 600; }
.proof__nums { margin: var(--space-4) 0 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--radius-md); overflow: hidden; }
.proof__nums div { background: var(--surface); padding: 14px 16px; display: grid; gap: 6px; }
.proof__nums dt { font-size: 13px; color: var(--muted); }
.proof__nums dd { margin: 0; display: flex; align-items: baseline; gap: 8px; font-size: 26px; font-weight: 600; letter-spacing: -0.025em; color: var(--ink); font-variant-numeric: tabular-nums; }
.proof__nums dd s { font-size: 15px; font-weight: 400; color: var(--muted); }
.persona-band .mb-photo { aspect-ratio: 21 / 9; }
.also { display: grid; gap: var(--space-4); }
.also__list { display: flex; flex-wrap: wrap; gap: 10px; }
.also__list a { height: 40px; display: inline-flex; align-items: center; padding: 0 16px; border-radius: 999px; border: 1px solid var(--line); background: var(--surface); font-size: 15px; color: var(--ink); text-decoration: none; transition: border-color .2s ease; }
.also__list a:hover { border-color: var(--ink); }
@media (max-width: 960px) {
  .persona-hero { padding-top: var(--space-8); }
  .persona-stage { margin-top: var(--space-8); }
  .persona-stage__photo { aspect-ratio: 4 / 5; }
  .pcards { position: static; width: auto; margin-top: -120px; padding: 0 12px; }
  .day { padding: var(--space-4); }
  .day__row { grid-template-columns: 52px minmax(0, 1fr) 64px; row-gap: 8px; }
  .day__bar { grid-column: 2 / -1; grid-row: 2; }
  .day__what { font-size: 15px; }
  .aiw, .ptools, .proof { grid-template-columns: minmax(0, 1fr); }
  .proof { gap: var(--space-8); }
  .proof__photo { aspect-ratio: 4 / 3; }
  .proof__nums { grid-template-columns: minmax(0, 1fr); }
  .persona-band .mb-photo { aspect-ratio: 4 / 3; }
}
.also-sec { padding: var(--space-16) 0 var(--space-8); }
@media (max-width: 960px) { .pcards { position: relative; z-index: 1; } }
@media (max-width: 960px) { .pcards { right: auto; bottom: auto; } }
.pcards--center { right: auto; left: 50%; margin-left: -170px; }
.pcards--left { right: auto; left: 32px; }
@media (max-width: 960px) { .pcards--center, .pcards--left { left: auto; margin-left: 0; } }
.role__link { color: inherit; text-decoration: none; }
.role__link::after { content: ""; position: absolute; inset: 0; z-index: 6; }
.role__link:focus-visible { outline: none; }
.role:has(.role__link:focus-visible) .role__photo { outline: 2px solid var(--carmine); outline-offset: 3px; }
.role:hover .role__link { text-decoration: underline; text-underline-offset: 3px; text-decoration-thickness: 1px; }

/* Tools menu: a quiet two-column list; a small live preview of the tool beside the row you point at */
.mm-tl { display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 1fr); gap: var(--space-12); align-items: stretch; }
.mm-tl__list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: var(--space-12); align-content: start; }
.mm-tl__item { display: grid; gap: 1px; padding: 10px 0; text-decoration: none; transition: opacity .2s ease; }
.mm-tl__item b { font-size: 17px; font-weight: 500; letter-spacing: -0.015em; color: var(--ink); transition: transform .25s cubic-bezier(.2,.7,.2,1); }
.mm-tl__item small { font-size: 13.5px; line-height: 1.3; color: var(--muted); transition: transform .25s cubic-bezier(.2,.7,.2,1); }
.mm-tl__list:hover > a:not(:hover) { opacity: .45; }
.mm-tl__item:hover b, .mm-tl__item:hover small, .mm-tl__item:focus-visible b, .mm-tl__item:focus-visible small { transform: translateX(4px); }
.mm-tl__item:focus-visible { outline: none; }
.mm-tl__item:focus-visible b { text-decoration: underline; text-underline-offset: 3px; }
.mm-tl__connect { grid-column: 1 / -1; margin-top: 10px; display: grid; grid-template-columns: minmax(0, 1fr) auto; column-gap: 24px; row-gap: 3px; padding: 16px 0 6px; border-top: 1px solid var(--line); color: var(--ink); text-decoration: none; transition: opacity .2s ease; }
.mm-tl__connect > * { transition: transform .25s cubic-bezier(.2,.7,.2,1); }
.mm-tl__connect:hover > *, .mm-tl__connect:focus-visible > * { transform: translateX(4px); }
.mm-tl__connect:focus-visible { outline: none; }
.mm-tl__connect:focus-visible b { text-decoration: underline; text-underline-offset: 3px; }
.mm-tl__kick { grid-column: 1 / -1; display: flex; align-items: center; gap: 8px; margin-bottom: 3px; font: 500 10.5px/1 var(--font-mono); letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.mm-tl__kick::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--ok); }
.mm-tl__connect b { font-size: 17px; font-weight: 500; letter-spacing: -0.015em; }
.mm-tl__connect small { grid-column: 1; font-size: 13.5px; line-height: 1.4; color: var(--muted); max-width: 62ch; }
.mm-tl__go { grid-column: 2; grid-row: 2 / span 2; align-self: end; font-size: 14px; font-weight: 500; white-space: nowrap; color: var(--ink); }
.mm-tl__go .mb-arrow { display: inline-block; transition: transform .2s ease; }
.mm-tl__connect:hover .mb-arrow { transform: translateX(3px); }
.mm-tl__stage { position: relative; min-height: 290px; border-radius: var(--radius-lg); background: var(--surface-sunk); overflow: hidden; }
@media (max-width: 1100px) { .mm-tl { grid-template-columns: minmax(0, 1fr) 250px; gap: var(--space-8); } .mm-tl__list { column-gap: var(--space-8); } }

/* The previews: one per tool, drawn in the site's quiet ink with one accent each */
.vg { --acc: var(--ink-2); --acc-bg: var(--surface-sunk); position: absolute; inset: 0; display: none; align-items: center; justify-content: center; padding: 20px; }
.vg.is-on { display: flex; animation: vg-in .35s ease both; }
/* Each preview sits on its own tool's soft colour */
.vg { background: var(--acc-bg); }
.vg--boss { --acc: #7a5418; --acc-bg: #f2e6cf; }
.vg--margin { --acc: #a1332a; --acc-bg: #f7dcd6; }
.vg--meatborsa { --acc: #3d6b39; --acc-bg: #dde9d6; }
.vg--ledgvero { --acc: #4a4698; --acc-bg: #e2e0f6; }
.vg--portal { --acc: #2b5e86; --acc-bg: #d8e8f3; }
.vg--carcass { --acc: #9e501b; --acc-bg: #f9e1cb; }
.vg--registry { --acc: #2a6d61; --acc-bg: #d5ede7; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .vg--boss { --acc: #f0d29a; --acc-bg: #3a3020; }
  :root:not([data-theme="light"]) .vg--margin { --acc: #f3aa9f; --acc-bg: #3d2421; }
  :root:not([data-theme="light"]) .vg--meatborsa { --acc: #a9d39f; --acc-bg: #243323; }
  :root:not([data-theme="light"]) .vg--ledgvero { --acc: #b9b5f2; --acc-bg: #2a2943; }
  :root:not([data-theme="light"]) .vg--portal { --acc: #9fc8ea; --acc-bg: #1f3040; }
  :root:not([data-theme="light"]) .vg--carcass { --acc: #f3bb8c; --acc-bg: #3d2b1d; }
  :root:not([data-theme="light"]) .vg--registry { --acc: #96d7c8; --acc-bg: #1e3631; }
}
.vg__win { position: relative; width: 100%; max-width: 300px; display: grid; gap: 10px; padding: 14px; border-radius: 12px; background: var(--surface); border: 1px solid var(--line); box-shadow: 0 12px 30px -16px rgba(18,18,17,.28); font-size: 12px; color: var(--ink); }
.vg__bar { display: flex; justify-content: space-between; align-items: baseline; font-size: 11px; color: var(--muted); }
.vg__bar b { font-size: 12px; font-weight: 600; color: var(--ink); }
.vg em { font-style: normal; }
/* BOSS · analytics */
.vg__kpi { display: flex; align-items: baseline; gap: 8px; }
.vg__kpi b { font-size: 22px; font-weight: 600; letter-spacing: -0.02em; font-variant-numeric: tabular-nums; }
.vg__up { font: 500 11px/1 var(--font-mono); color: var(--ok); }
.vg__bars { height: 92px; display: flex; align-items: flex-end; gap: 6px; }
.vg__bars i { flex: 1; height: var(--h); border-radius: 3px 3px 0 0; background: var(--line-strong); transform-origin: bottom; animation: vg-grow 5.5s var(--d) cubic-bezier(.2,.7,.2,1) infinite both; }
.vg__bars i:last-child { background: var(--acc); }
.vg__axis { display: flex; justify-content: space-between; font: 400 10px/1 var(--font-mono); color: var(--muted); }
/* Margin · chat */
.vg__me { justify-self: end; max-width: 86%; margin: 0; padding: 8px 10px; border-radius: 12px 12px 4px 12px; background: var(--surface-sunk); font-size: 12.5px; line-height: 1.4; animation: vg-pop 6s infinite both; }
.vg__rec { display: grid; gap: 3px; padding: 10px; border: 1px solid var(--line); border-radius: 10px; animation: vg-pop2 6s infinite both; }
.vg__rec small { font: 500 9.5px/1.2 var(--font-mono); letter-spacing: .05em; text-transform: uppercase; color: var(--muted); }
.vg__rec b { font-size: 13px; font-weight: 600; }
.vg__rec span { display: flex; justify-content: space-between; font: 400 11.5px/1.3 var(--font-mono); }
.vg__undo { color: var(--muted); text-decoration: underline; text-underline-offset: 2px; font-family: var(--font-sans); }
.vg__ask { margin: 0; padding: 8px 12px; border: 1px solid var(--line); border-radius: 999px; color: var(--muted); }
/* MeatBorsa · live listings */
.vg__feed { height: 134px; overflow: hidden; -webkit-mask-image: linear-gradient(transparent, #000 16%, #000 84%, transparent); mask-image: linear-gradient(transparent, #000 16%, #000 84%, transparent); }
.vg__rows { animation: vg-scroll 10s linear infinite; }
.vg__rows p { display: grid; grid-template-columns: minmax(0, 1fr) auto auto; gap: 10px; margin: 0; padding: 7px 0; border-bottom: 1px solid var(--line); font-size: 12px; }
.vg__rows span { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.vg__rows em { font: 500 10.5px/1.5 var(--font-mono); color: var(--muted); }
.vg__rows b { font: 500 12px/1.4 var(--font-mono); }
.vg__rows .is-new b { color: var(--acc); }
.vg__rows .is-new span::after { content: "New"; margin-left: 6px; padding: 1px 5px; border-radius: 999px; background: var(--acc-bg); color: var(--acc); font: 500 9px/1.4 var(--font-mono); vertical-align: 1px; }
/* Ledgvero · risk with reasons */
.vg__tiers { display: flex; gap: 2px; height: 10px; border-radius: 5px; overflow: hidden; transform-origin: left; animation: vg-sweep 6s infinite both; }
.vg__tiers i { width: var(--w); }
.vg__tiers i:nth-child(1) { background: var(--carmine); }
.vg__tiers i:nth-child(2) { background: var(--warn); }
.vg__tiers i:nth-child(3) { background: var(--acc); opacity: .55; }
.vg__tiers i:nth-child(4) { background: var(--line-strong); }
.vg__tiers i:nth-child(5) { background: var(--ok); opacity: .7; }
.vg__buyer { display: flex; justify-content: space-between; align-items: center; gap: 8px; padding: 10px; border: 1px solid var(--line); border-radius: 10px; }
.vg__buyer b { display: block; font-size: 12.5px; font-weight: 600; }
.vg__buyer small { color: var(--muted); font-size: 11px; }
.vg__tier { display: grid; font: 500 11px/1 var(--font-mono); }
.vg__tier span { grid-area: 1 / 1; padding: 4px 8px; border-radius: 999px; text-align: center; }
.vg__tier span:first-child { background: var(--surface-sunk); color: var(--ink-2); animation: vg-swap-a 6s infinite both; }
.vg__tier span:last-child { background: var(--warn-soft); color: var(--warn); animation: vg-swap-b 6s infinite both; }
.vg__why { margin: 0; padding-left: 10px; border-left: 2px solid var(--acc); font-size: 12px; line-height: 1.4; color: var(--ink-2); animation: vg-pop3 6s infinite both; }
/* Portal · the map */
.vg__map { display: block; width: 100%; height: 120px; }
.vg__map line { stroke: var(--line); stroke-dasharray: 3 4; }
.vg__wire { fill: none; stroke: var(--acc); stroke-width: 1.6; vector-effect: non-scaling-stroke; stroke-linejoin: round; stroke-dasharray: 1; animation: vg-draw 6s .3s infinite both; }
.vg__wire--2 { animation-delay: .9s; }
.vg__nodes { position: absolute; left: 14px; right: 14px; top: 46px; height: 120px; }
.vg__nodes span { position: absolute; left: var(--x); top: var(--y); width: 23.5%; padding: 5px 7px; border-radius: 7px; background: var(--surface); border: 1px solid var(--line-strong); font-size: 10.5px; font-weight: 600; line-height: 1.2; animation: vg-node 6s var(--d) infinite both; }
.vg__nodes small { display: block; font: 400 9.5px/1.3 var(--font-mono); color: var(--muted); }
/* Carcass · many names, one meaning */
.vg__names { position: relative; height: 30px; }
.vg__names span { position: absolute; inset: 0; display: grid; place-items: center; font-size: 16px; font-weight: 500; letter-spacing: -0.01em; animation: vg-cycle 8s infinite both; }
.vg__names span:nth-child(2) { animation-delay: 2s; }
.vg__names span:nth-child(3) { animation-delay: 4s; }
.vg__names span:nth-child(4) { animation-delay: 6s; }
.vg__arrow { position: relative; justify-self: center; width: 1px; height: 22px; background: var(--line-strong); }
.vg__arrow::after { content: ""; position: absolute; left: -3px; bottom: 0; width: 7px; height: 7px; border-right: 1px solid var(--line-strong); border-bottom: 1px solid var(--line-strong); transform: rotate(45deg); }
.vg__spec { display: grid; gap: 6px; justify-items: center; padding: 10px; border-radius: 10px; background: var(--acc-bg); border: 1px solid color-mix(in srgb, var(--acc) 35%, transparent); }
.vg__spec b { font-size: 14px; font-weight: 600; color: var(--ink); }
.vg__spec span { display: flex; gap: 5px; }
.vg__spec em { padding: 2px 7px; border-radius: 999px; background: var(--surface); font: 500 10px/1.5 var(--font-mono); color: var(--acc); }
/* Registry · search, then facts with sources */
.vg__search { padding: 9px 12px; border: 1px solid var(--line-strong); border-radius: 999px; font: 400 12px/1.2 var(--font-mono); }
.vg__search span { display: inline-block; width: 24ch; overflow: hidden; white-space: nowrap; vertical-align: bottom; border-right: 1.5px solid var(--ink); animation: vg-type 6s steps(24) infinite both, vg-caret .8s step-end infinite; }
.vg__card { display: grid; gap: 7px; padding: 10px; border: 1px solid var(--line); border-radius: 10px; }
.vg__card b { font-size: 12.5px; font-weight: 600; }
.vg__card p { display: flex; justify-content: space-between; align-items: center; gap: 8px; margin: 0; font-size: 11.5px; color: var(--ink-2); animation: vg-fact 6s var(--d) infinite both; }
.vg__card em { padding: 2px 6px; border-radius: 999px; background: var(--acc-bg); color: var(--acc); font: 500 9.5px/1.4 var(--font-mono); white-space: nowrap; }
/* Connect · one question, many tools */
.vg__term { width: 100%; max-width: 320px; display: grid; gap: 6px; padding: 14px; border-radius: 12px; background: #121211; color: #e9e8e3; box-shadow: 0 14px 34px -16px rgba(0,0,0,.5); font: 400 11px/1.5 var(--font-mono); }
.vg__term p { margin: 0; animation: vg-line 7s var(--d, 0ms) infinite both; }
.vg__term em { margin-right: 6px; color: #9fc8ea; }
.vg__term i { float: right; font-style: normal; color: #8f8e88; }
.vg__q { color: #fff; font: 500 12.5px/1.4 var(--font-sans); }
.vg__a { color: #a9d39f; }
.vg__safe { padding-top: 6px; border-top: 1px solid #2a2a27; color: #8f8e88; }
/* motion, only while the menu is open */
.nav__item:not(.is-open) .vg * { animation-play-state: paused; }
@keyframes vg-in { from { opacity: 0; transform: translateY(6px); } }
@keyframes vg-grow { 0% { transform: scaleY(.03); } 22%, 86% { transform: scaleY(1); } 100% { transform: scaleY(.03); } }
@keyframes vg-pop { 0%, 4% { opacity: 0; transform: translateY(8px); } 12%, 92% { opacity: 1; transform: none; } 100% { opacity: 0; } }
@keyframes vg-pop2 { 0%, 28% { opacity: 0; transform: translateY(8px); } 38%, 92% { opacity: 1; transform: none; } 100% { opacity: 0; } }
@keyframes vg-pop3 { 0%, 52% { opacity: 0; transform: translateY(6px); } 60%, 94% { opacity: 1; transform: none; } 100% { opacity: 0; } }
@keyframes vg-scroll { to { transform: translateY(-50%); } }
@keyframes vg-sweep { 0% { transform: scaleX(0); } 20%, 94% { transform: scaleX(1); } 100% { transform: scaleX(1); opacity: .4; } }
@keyframes vg-swap-a { 0%, 42% { opacity: 1; } 50%, 94% { opacity: 0; } 100% { opacity: 1; } }
@keyframes vg-swap-b { 0%, 42% { opacity: 0; } 50%, 94% { opacity: 1; } 100% { opacity: 0; } }
@keyframes vg-draw { 0% { stroke-dashoffset: 1; } 20%, 92% { stroke-dashoffset: 0; } 100% { stroke-dashoffset: 1; } }
@keyframes vg-node { 0% { opacity: 0; transform: translateY(5px); } 8%, 92% { opacity: 1; transform: none; } 100% { opacity: 0; } }
@keyframes vg-cycle { 0% { opacity: 0; transform: translateY(6px); } 5%, 22% { opacity: 1; transform: none; } 27%, 100% { opacity: 0; transform: translateY(-6px); } }
@keyframes vg-type { 0% { width: 0; } 32%, 100% { width: 24ch; } }
@keyframes vg-caret { 50% { border-color: transparent; } }
@keyframes vg-fact { 0%, 36% { opacity: 0; transform: translateY(4px); } 46%, 94% { opacity: 1; transform: none; } 100% { opacity: 0; } }
@keyframes vg-line { 0% { opacity: 0; transform: translateX(-4px); } 6%, 94% { opacity: 1; transform: none; } 100% { opacity: 0; } }
@media (prefers-reduced-motion: reduce) {
  .vg, .vg * { animation: none !important; }
  .vg__names span:not(:first-child) { opacity: 0; }
}

/* Language selector: English today, the rest marked as coming */
.lang { position: relative; margin-left: 4px; }
.lang__btn { height: 38px; display: inline-flex; align-items: center; gap: 6px; padding: 0 10px; border: 0; border-radius: var(--radius-pill); background: none; font: 500 13px/1 var(--font-mono); letter-spacing: .04em; color: var(--ink-2); cursor: pointer; transition: background-color .15s ease, color .15s ease; }
.lang__btn:hover, .lang.is-open .lang__btn { background: var(--surface-sunk); color: var(--ink); }
.lang__btn:focus-visible { outline: 2px solid var(--carmine); outline-offset: 2px; }
.lang__globe { width: 15px; height: 15px; }
.lang__menu { position: absolute; right: 0; top: calc(100% + 10px); width: 240px; padding: 8px; border-radius: var(--radius-md); background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow-float); z-index: 3;
  visibility: hidden; opacity: 0; transform: translateY(-4px); transition: opacity .16s ease, transform .2s cubic-bezier(.2,.7,.2,1), visibility 0s linear .2s; }
.lang.is-open .lang__menu { visibility: visible; opacity: 1; transform: none; transition: opacity .16s ease, transform .2s cubic-bezier(.2,.7,.2,1); }
.lang__head { margin: 4px 8px 6px; font: 500 10.5px/1 var(--font-mono); letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.lang__menu ul { list-style: none; margin: 0; padding: 0; display: grid; }
.lang__opt { display: grid; grid-template-columns: minmax(0, 1fr) auto auto; align-items: center; gap: 8px; padding: 8px; border-radius: var(--radius-sm); font-size: 14px; }
.lang__opt b { font-weight: 500; color: var(--ink); }
.lang__code { font: 500 10.5px/1 var(--font-mono); color: var(--muted); }
.lang__opt svg { width: 14px; height: 14px; color: var(--ink); }
.lang__opt.is-on { background: var(--surface-sunk); }
.lang__opt.is-soon b { color: var(--muted); font-weight: 400; }
.lang__opt.is-soon em { font-style: normal; font: 500 10px/1 var(--font-mono); padding: 3px 6px; border-radius: 999px; border: 1px solid var(--line); color: var(--muted); }
.lang__note { margin: 6px 8px 4px; font-size: 12px; line-height: 1.4; color: var(--muted); }
.mnav__lang { display: none; }
@media (max-width: 960px) {
  .lang { display: none; }
  .mnav__lang { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; padding: 18px 0; border-bottom: 1px solid var(--line); color: var(--ink-2); }
  .mnav__lang .lang__globe { width: 18px; height: 18px; }
  .mnav__langlist { display: flex; flex-wrap: wrap; gap: 6px; }
  .mnav__langopt { min-width: 38px; height: 32px; display: inline-grid; place-items: center; padding: 0 8px; border-radius: 999px; border: 1px solid var(--line); font: 500 12px/1 var(--font-mono); color: var(--muted); }
  .mnav__langopt.is-on { background: var(--ink); border-color: var(--ink); color: var(--paper); }
  .mnav__lang small { flex-basis: 100%; font-size: 12.5px; color: var(--muted); }
}
@media (max-width: 960px) {
  .mnav__lang { display: grid; grid-template-columns: auto minmax(0, 1fr); column-gap: 10px; row-gap: 8px; }
  .mnav__langlist { gap: 5px; }
  .mnav__langopt { min-width: 34px; height: 30px; padding: 0 6px; font-size: 11.5px; }
  .mnav__lang small { grid-column: 2; }
}

/* The wordmark at play: its own letters hop and stack on hover (js/wordmark.js) */
.nav .wordmark { position: relative; display: inline-block; }
.wm-l { display: inline-block; will-change: transform; }
.nav .wordmark .wm-l { color: var(--ink); }
.nav .wordmark .wm-dot { color: var(--carmine); }

/* ---------- Book a call: the panel every "Book a call" button opens ---------- */
.bk { width: min(960px, calc(100% - 32px)); max-width: none; max-height: calc(100dvh - 32px); margin: auto; padding: 0; border: 0; border-radius: var(--radius-xl);
  background: var(--surface); color: var(--ink-2); box-shadow: var(--shadow-float); overflow: auto; overscroll-behavior: contain;
  opacity: 0; transform: translateY(10px) scale(.985); transition: opacity .2s ease, transform .3s cubic-bezier(.2,.7,.2,1); }
.bk.is-open { opacity: 1; transform: none; }
.bk::backdrop { background: rgba(18,18,17,.34); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); }
.bk__in { position: relative; display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); min-height: 560px; }
.bk__x { position: absolute; top: 16px; right: 16px; z-index: 1; width: 36px; height: 36px; display: grid; place-items: center; border: 0; border-radius: 50%; background: transparent; color: var(--muted); cursor: pointer; transition: background-color .15s ease, color .15s ease; }
.bk__x:hover { background: var(--surface-sunk); color: var(--ink); }
.bk__x svg { width: 16px; height: 16px; }

.bk__side { display: flex; flex-direction: column; gap: var(--space-8); padding: 44px 44px 40px; background: var(--paper); border-right: 1px solid var(--line); }
.bk__title { margin: 0; font-size: clamp(32px, 3.4vw, 44px); line-height: 1.02; font-weight: 600; letter-spacing: -0.035em; color: var(--ink); }
.bk__steps { margin: 0; padding: 0; list-style: none; counter-reset: bk; display: grid; gap: 18px; }
.bk__steps li { counter-increment: bk; display: grid; grid-template-columns: 26px minmax(0, 1fr); row-gap: 2px; }
.bk__steps li::before { content: counter(bk, decimal-leading-zero); grid-row: span 2; padding-top: 4px; font: 500 11px/1 var(--font-mono); color: var(--carmine); }
.bk__steps b { font-size: 15px; font-weight: 500; color: var(--ink); }
.bk__steps span { font-size: 14px; line-height: 1.45; color: var(--muted); }
.bk__who { margin-top: auto; padding-top: var(--space-6); border-top: 1px solid var(--line); font-size: 14px; color: var(--muted); }

.bk__form, .bk__done { padding: 44px 44px 36px; }
.bk__form { display: grid; gap: 26px; align-content: start; }
.bk__f { display: grid; gap: 10px; margin: 0; padding: 0; border: 0; min-width: 0; }
.bk__f > span, .bk__f > legend { padding: 0; font: 500 11px/1.3 var(--font-mono); letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.bk__f > legend { margin-bottom: 10px; }
.bk__f input, .bk__f textarea { width: 100%; padding: 8px 0 10px; border: 0; border-bottom: 1px solid var(--line-strong); border-radius: 0; background: transparent;
  font: 400 17px/1.45 var(--font-sans); color: var(--ink); resize: none; transition: border-color .15s ease; }
.bk__f input:focus, .bk__f textarea:focus { outline: none; border-bottom-color: var(--ink); }
.bk__f textarea::placeholder { color: var(--muted); opacity: .7; }
.bk__row { display: grid; grid-template-columns: 1fr 1fr; gap: var(--space-6); }
.bk__chips { display: flex; flex-wrap: wrap; gap: 8px; }
.bk-chip { position: relative; cursor: pointer; }
.bk-chip input { position: absolute; opacity: 0; pointer-events: none; }
.bk-chip span { height: 34px; display: inline-flex; align-items: center; padding: 0 14px; border-radius: var(--radius-pill); border: 1px solid var(--line-strong); font-size: 14px; color: var(--ink-2); transition: background-color .15s ease, border-color .15s ease, color .15s ease; }
.bk-chip:hover span { border-color: var(--ink); color: var(--ink); }
.bk-chip input:checked + span { background: var(--ink); border-color: var(--ink); color: var(--paper); }
.bk-chip input:focus-visible + span { outline: 2px solid var(--carmine); outline-offset: 2px; }
.bk__tz { font-size: 12.5px; color: var(--muted); }
.bk__go { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 18px; padding-top: 4px; }
.bk__go p { flex: 1 1 200px; font-size: 13px; line-height: 1.45; color: var(--muted); }

.bk__done { display: grid; gap: 14px; align-content: center; justify-items: start; }
.bk__done[hidden], .bk__form[hidden] { display: none; }
.bk__tick { width: 44px; height: 44px; display: grid; place-items: center; border-radius: 50%; background: var(--ok-soft); color: var(--ok); margin-bottom: 6px; }
.bk__tick svg { width: 20px; height: 20px; }
.bk__done h3 { margin: 0; font-size: 28px; line-height: 1.1; font-weight: 600; letter-spacing: -0.025em; color: var(--ink); }
.bk__done p { max-width: 40ch; font-size: 15.5px; line-height: 1.5; }
.bk__alt { font-size: 13.5px !important; color: var(--muted); }
.bk__alt a, .bk__copy { color: var(--ink); }
.bk__copy { padding: 0; border: 0; background: none; font: inherit; text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }
.bk__close { margin-top: 10px; }

@media (max-width: 760px) {
  .bk { width: 100%; max-height: 100dvh; height: 100dvh; border-radius: 0; }
  .bk__in { grid-template-columns: minmax(0, 1fr); grid-template-rows: auto 1fr; min-height: 100%; }
  .bk__side { gap: var(--space-4); padding: 28px 20px 22px; border-right: 0; border-bottom: 1px solid var(--line); }
  .bk__steps, .bk__who { display: none; }
  .bk__title { font-size: 30px; padding-right: 40px; }
  .bk__form, .bk__done { padding: 26px 20px 32px; }
  .bk__row { grid-template-columns: minmax(0, 1fr); gap: 26px; }
}
@media (prefers-reduced-motion: reduce) { .bk { transition: none; } }

/* Draft notes (Check / Placeholder) stay in the source for the team, hidden from visitors */
.todo { display: none !important; }

/* The film: a quiet button in the hero, and the modal player (js/film.js) */
.film-btn { gap: 10px; padding: 0 14px 0 6px; border-color: transparent; background: transparent; color: var(--ink); cursor: pointer; }
.film-btn__play { width: 32px; height: 32px; display: grid; place-items: center; border-radius: 50%; background: var(--ink); color: var(--paper); transition: transform .25s cubic-bezier(.2,.7,.2,1); }
.film-btn__play svg { width: 13px; height: 13px; margin-left: 2px; }
.film-btn:hover { border-color: transparent; }
.film-btn:hover .film-btn__play { transform: scale(1.08); }
.film-btn:focus-visible { outline: 2px solid var(--carmine); outline-offset: 2px; }
.film { width: min(1100px, calc(100vw - 32px)); max-width: none; max-height: none; margin: auto; padding: 0; border: 0; background: transparent; color: #f6f5f2; overflow: visible; }
.film::backdrop { background: rgba(10,10,9,.84); }
.film[open] { animation: film-in .28s cubic-bezier(.2,.7,.2,1); }
.film[open]::backdrop { animation: film-fade .28s ease; }
@keyframes film-in { from { opacity: 0; transform: translateY(12px) scale(.985); } }
@keyframes film-fade { from { opacity: 0; } }
.film__in { position: relative; }
.film__video { display: block; width: 100%; aspect-ratio: 16 / 9; border-radius: var(--radius-lg); background: #000; box-shadow: 0 30px 80px -20px rgba(0,0,0,.6); }
.film__close { position: absolute; right: 0; top: -48px; width: 38px; height: 38px; display: grid; place-items: center; border: 0; border-radius: 50%; background: rgba(246,245,242,.12); color: #f6f5f2; cursor: pointer; transition: background-color .15s ease; }
.film__close:hover { background: rgba(246,245,242,.24); }
.film__close:focus-visible { outline: 2px solid #f6f5f2; outline-offset: 2px; }
.film__close svg { width: 16px; height: 16px; }
.film__cap { margin: 12px 2px 0; font-size: 14px; color: rgba(246,245,242,.75); }
.film__cap span { font-family: var(--font-mono); font-size: 12px; }
@media (max-width: 960px) {
  .film__video { border-radius: var(--radius-md); }
  .film__close { top: -46px; }
}
@media (prefers-reduced-motion: reduce) { .film[open], .film[open]::backdrop { animation: none; } }
.bk__hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.bk__err { margin: -8px 0 0; padding: 10px 14px; border-radius: var(--radius-sm); background: var(--carmine-soft); color: var(--carmine); font-size: 14px; line-height: 1.4; }
.bk__err[hidden] { display: none; }
.bk__f input[aria-invalid="true"] { border-bottom-color: var(--carmine); }
