/* public/fonts/inter.css */
/* Inter 4.1, self-hosted (build.mjs: SITE.selfHostInter).
   File: InterVariable-4.1.woff2 from the Inter project's own release,
   https://github.com/rsms/inter (tag v4.1, docs/font-files/InterVariable.woff2),
   SIL Open Font License 1.1: Inter-LICENSE.txt beside it.
   One variable file holds every weight and the optical-size axis, which the
   browser sets from the font size (font-optical-sizing: auto). */
@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url("/fonts/InterVariable-4.1.woff2") format("woff2");
}

/* Until Inter arrives the text is drawn in Arial scaled to Inter's metrics,
   so the swap does not move the lines (values as computed by Next.js'
   font tooling for Inter on Arial). */
@font-face {
  font-family: "Inter Fallback";
  src: local("Arial"), local("ArialMT"), local("Helvetica Neue"), local("Helvetica");
  size-adjust: 107.12%;
  ascent-override: 90.44%;
  descent-override: 22.52%;
  line-gap-override: 0%;
}
/* The family tokens are declared on :root in 00-base.css and again in the
   skins; :root:root outweighs them all without !important. */
:root:root {
  --font-body: "Inter", "Inter Fallback", "Helvetica Neue", Helvetica, Arial, sans-serif;
}

/* src/css/00-base.css */
/* GoKiwi base: tokens, themes, frame, type, shared components, nav.
   Section stylesheets build on this and must not redefine anything here. */

:root {
  /* neutrals lean slightly cool so the blue sits in them on both bands */
  --ink: #0b0d12;
  --paper: #f9fafb;
  --white: #ffffff;
  --tint: #f3f4f6;
  --tint-2: #e5e7eb;
  /* done, automatic */
  --kiwi: #22a06b;
  --kiwi-ink: #17754a;
  --kiwi-bright: #63d6a0;
  /* ask first, waiting */
  --warn: #d99413;
  --warn-ink: #8a5a00;
  --warn-bright: #f0b955;

  /* primary: one blue for both bands. White sits on it at 5.3:1. */
  --blue: #2b5cf6;
  --blue-hover: #2450e0;
  --blue-ink: #1f45cc;
  --blue-bright: #8eaaff;
  --danger: #d43d2f;

  /* one family for everything: Inter. The three tokens stay as roles
     (headlines, running text, labels) so rules keep saying what they set. */
  --font-body: "Inter", "Helvetica Neue", Helvetica, Arial, sans-serif;
  --font-display: var(--font-body);
  --font-mono: var(--font-body);
  /* weight of every headline and title set in the display face */
  --display-w: 500;

  --frame: 1300px;
  --pad: 32px;
  --nav-h: 72px;
  --sec-top: 104px;
  --sec-gap: 64px;

  --r-xs: 4px;
  --r-sm: 6px;
  --r-md: 8px;
  --r-lg: 12px;

  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --dur: 200ms;

  /* fixed shadow and illustration colours, the same on every band */
  --shade-xs: color-mix(in srgb, var(--ink) 6%, transparent);
  --shade-sm: color-mix(in srgb, var(--ink) 8%, transparent);
  --btn-hilite: color-mix(in srgb, var(--white) 18%, transparent);
  --btn-drop: color-mix(in srgb, var(--blue-ink) 35%, transparent);
  --c-neutral: #667085;

  /* module hues: one per module, used only by that module's tag.
     All sit at the same lightness, so no tag is louder than another. */
  --m-inbox: #0891c9;
  --m-customer-agent: #8f6edb;
  --m-phone: #069c82;
  --m-marketing: #ca5794;
  --m-crm: #cf630d;
  --m-work: #848f02;
  --m-meetings: #d55759;
  --m-revenue: #2b9f4a;
  --m-agent: var(--blue);
  --m-workflows: #b261be;
  --m-control: #0d98a4;
  --m-mcp: #ae7c02;
}

/* ── themes: every band sets data-theme and uses only these variables ─── */
:root,
[data-theme="light"],
[data-theme="white"],
[data-theme="tint"],
[data-theme="hue"],
.sec[data-theme="dark"] .kplate,
.sec[data-theme="dark"] .wf-canvas {
  --bg: var(--paper);
  --surface: var(--white);
  --surface-2: var(--tint);
  --fg: var(--ink);
  --fg-2: rgba(11, 13, 18, 0.68);
  --fg-3: rgba(11, 13, 18, 0.42);
  --line: rgba(11, 13, 18, 0.08);
  --line-2: rgba(11, 13, 18, 0.14);
  --ok: var(--kiwi-ink);
  --warn-text: var(--warn-ink);
  --primary: var(--blue);
  --primary-fg: var(--white);
  --primary-text: var(--blue-ink);
  --primary-tint: color-mix(in srgb, var(--blue) 10%, var(--surface));
  --primary-line: color-mix(in srgb, var(--blue) 26%, transparent);
  --plate-dot: rgba(11, 13, 18, 0.1);
  --ui-shadow: 0 1px 2px rgba(11, 13, 18, 0.04), 0 12px 32px -12px rgba(11, 13, 18, 0.14);
}
[data-theme="white"] {
  --bg: var(--white);
}
[data-theme="tint"] {
  --bg: var(--tint);
  --surface-2: #e9ebef;
}
/* a pastel band in the module's own hue: needs data-mod on the same element */
[data-theme="hue"] {
  --bg: color-mix(in srgb, var(--m) 5%, var(--white));
  --surface-2: color-mix(in srgb, var(--m) 4%, var(--white));
  --line: color-mix(in srgb, var(--m) 10%, rgba(11, 13, 18, 0.08));
  --line-2: color-mix(in srgb, var(--m) 14%, rgba(11, 13, 18, 0.14));
  --plate-dot: color-mix(in srgb, var(--m) 16%, rgba(11, 13, 18, 0.1));
}
[data-theme="dark"] {
  --bg: var(--ink);
  --surface: #14161c;
  --surface-2: #1c1f27;
  --fg: var(--white);
  --fg-2: rgba(255, 255, 255, 0.7);
  --fg-3: rgba(255, 255, 255, 0.4);
  --line: rgba(255, 255, 255, 0.12);
  --line-2: rgba(255, 255, 255, 0.18);
  --ok: var(--kiwi-bright);
  --warn-text: var(--warn-bright);
  --primary: var(--blue);
  --primary-fg: var(--white);
  --primary-text: var(--blue-bright);
  --primary-tint: color-mix(in srgb, var(--blue) 22%, var(--surface));
  --primary-line: color-mix(in srgb, var(--blue-bright) 34%, transparent);
  --plate-dot: rgba(255, 255, 255, 0.1);
  --ui-shadow: 0 1px 2px rgba(0, 0, 0, 0.3), 0 16px 40px -12px rgba(0, 0, 0, 0.6);
}

/* ── reset ────────────────────────────────────────────────────────────── */
*,
*::before,
*::after {
  box-sizing: border-box;
}
html {
  overflow-x: clip;
  -webkit-text-size-adjust: 100%;
  scroll-padding-top: calc(var(--nav-h) + 16px);
}
body {
  margin: 0;
  overflow-x: clip;
  background: var(--bg);
  color: var(--fg);
  font: 400 16px/24px var(--font-body);
  letter-spacing: -0.32px;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
h1,
h2,
h3,
h4,
p,
ul,
ol,
figure {
  margin: 0;
}
h1,
h2,
h3,
h4 {
  text-wrap: balance;
}
ul,
ol {
  padding: 0;
  list-style: none;
}
a {
  color: inherit;
  text-decoration: none;
}
button {
  font: inherit;
  color: inherit;
  letter-spacing: inherit;
}
svg {
  display: block;
  flex: none;
}
:focus-visible {
  outline: 2px solid var(--primary);
  outline-offset: 3px;
}
::selection {
  background: color-mix(in srgb, var(--blue) 24%, transparent);
}
html {
  accent-color: var(--blue);
  caret-color: var(--blue);
}

/* ── bands and the frame ──────────────────────────────────────────────── */
.sec {
  position: relative;
  border-top: 1px solid var(--line);
  background: var(--bg);
  color: var(--fg);
}
main > .sec:first-child {
  border-top: 0;
}
.frame {
  position: relative;
  max-width: var(--frame);
  margin-inline: auto;
  border-inline: 1px solid var(--line);
}
.cell {
  padding: var(--pad);
}
/* a horizontal hairline that crosses the whole viewport from inside a frame:
   a 1px strip at the frame's width whose fill is pushed out past both edges
   by border-image-outset; html and body clip the overhang */
.rule {
  width: auto;
  height: 1px;
  margin: 0;
  border: 0;
  border-image: linear-gradient(var(--line), var(--line)) fill 0 / 0 / 0 100vmax;
}
/* columns divided by hairlines, not gaps */
.cols {
  display: grid;
}
.cols--2 {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}
.cols--3 {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}
.cols--4 {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}
.cols > * + * {
  border-left: 1px solid var(--line);
}

/* section head: tag, then headline, flush left */
.sec-head {
  display: grid;
  justify-items: start;
  gap: 20px;
  padding: var(--sec-top) var(--pad) var(--sec-gap);
}
.sec-head--center {
  justify-items: center;
  text-align: center;
}
.sec-head > .h2 {
  max-width: 18em;
}

/* ── type ─────────────────────────────────────────────────────────────── */
.h1,
.h2,
.h3,
.title {
  font-family: var(--font-display);
  font-weight: var(--display-w);
  letter-spacing: -0.03em;
  text-wrap: balance;
}
.h1 {
  font-size: clamp(36px, 2.6vw + 26px, 56px);
  line-height: 1.07;
}
.h2 {
  font-size: clamp(30px, 1.8vw + 22px, 44px);
  line-height: 1.14;
}
.h3 {
  font-size: clamp(24px, 1vw + 20px, 32px);
  line-height: 1.25;
  letter-spacing: -0.01em;
}
.title {
  font-size: 22px;
  line-height: 28px;
  letter-spacing: -0.01em;
}
.lead {
  font-size: 18px;
  font-weight: 500;
  line-height: 26px;
  letter-spacing: -0.5px;
  text-wrap: pretty;
}
.body {
  font-size: 16px;
  line-height: 24px;
  text-wrap: pretty;
}
.small {
  font-size: 14px;
  line-height: 22px;
  letter-spacing: 0;
  text-wrap: pretty;
}
.micro {
  font-size: 12px;
  line-height: 18px;
  letter-spacing: 0;
}
.mono,
.mono-s,
.mono-xs {
  font-family: var(--font-mono);
  font-weight: 500;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.mono {
  font-size: 14px;
  line-height: 20px;
}
.mono-s {
  font-size: 12px;
  font-weight: 500;
  line-height: 16px;
}
.mono-xs {
  font-size: 11px;
  line-height: 16px;
  letter-spacing: 0.04em;
}
.soft {
  color: var(--fg-2);
}
.dim {
  color: var(--fg-3);
}
.ok {
  color: var(--ok);
}
.num {
  font-variant-numeric: tabular-nums;
}
/* visually hidden, still read by assistive tech */
.vh {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

/* ── button ───────────────────────────────────────────────────────────── */
.btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  height: 40px;
  padding: 0 16px;
  border: 0;
  border-radius: var(--r-sm);
  font: 500 14px/20px var(--font-mono);
  letter-spacing: -0.01em;
  white-space: nowrap;
  cursor: pointer;
}
.btn--primary {
  background: var(--primary);
  color: var(--primary-fg);
  box-shadow:
    inset 0 1px 0 var(--btn-hilite),
    0 1px 2px var(--btn-drop);
}
.btn--primary:hover {
  background: var(--blue-hover);
}
.btn--quiet {
  background: var(--surface-2);
  color: var(--fg);
  box-shadow:
    0 0 0 1px var(--line-2),
    0 1px 2px var(--shade-sm);
}
.btn--ghost {
  background: transparent;
  color: var(--fg);
  box-shadow: 0 0 0 1px var(--line-2);
}
.btn--quiet:hover,
.btn--ghost:hover {
  box-shadow:
    0 0 0 1px var(--fg-3),
    0 1px 2px var(--shade-sm);
}
/* press: a 1px drop, instant, outside the motion query */
.btn:active {
  transform: translateY(1px);
}
/* label roll: <span class="btn__roll"><span data-label="Text">Text</span></span> */
.btn__roll {
  display: block;
  height: 20px;
  overflow: hidden;
}
.btn__roll > span {
  display: block;
}
.btn__roll > span::after {
  content: attr(data-label);
  display: block;
}

/* ── tag ──────────────────────────────────────────────────────────────── */
.tag {
  --tag-bg: var(--surface);
  --tag-line: var(--line-2);
  --tag-fg: var(--fg);
  --tag-ico: var(--primary);
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 24px;
  padding: 0 8px 0 5px;
  border-radius: var(--r-xs);
  background: var(--tag-bg);
  box-shadow:
    0 0 0 1px var(--tag-line),
    0 1px 2px var(--shade-xs);
  color: var(--tag-fg);
  font: 600 11px/16px var(--font-mono);
  letter-spacing: 0.05em;
  text-transform: uppercase;
  white-space: nowrap;
}
/* the 14px square with a pale disc: <i class="tag__ico"></i> */
.tag__ico {
  position: relative;
  flex: none;
  width: 14px;
  height: 14px;
  border-radius: var(--r-xs);
  background: var(--tag-ico);
}
.tag__ico::before,
.tag__ico::after {
  content: "";
  position: absolute;
  inset: 3px;
  border-radius: 50%;
  background: var(--tag-bg);
}
.tag__ico::after {
  inset: 5.5px;
  background: var(--tag-ico);
}
/* data-mod sets --m, the module's hue. It goes on the module's section and
   on its tag: <section class="sec" data-mod="inbox" …>, <span class="tag" data-mod="inbox">. */
/* a module's tag carries the module's hue.
   The label mixes the hue into --fg, so it stays readable on a dark band. */
.tag[data-mod] {
  --tag-bg: color-mix(in srgb, var(--m) 10%, var(--surface));
  --tag-line: color-mix(in srgb, var(--m) 30%, transparent);
  --tag-fg: color-mix(in srgb, var(--m) 62%, var(--fg));
  --tag-ico: var(--m);
}
[data-theme="dark"] .tag[data-mod] {
  --tag-bg: color-mix(in srgb, var(--m) 16%, var(--surface));
}
[data-mod="inbox"] { --m: var(--m-inbox); }
[data-mod="customer-agent"] { --m: var(--m-customer-agent); }
[data-mod="phone"] { --m: var(--m-phone); }
[data-mod="marketing"] { --m: var(--m-marketing); }
[data-mod="crm"] { --m: var(--m-crm); }
[data-mod="work"] { --m: var(--m-work); }
[data-mod="meetings"] { --m: var(--m-meetings); }
[data-mod="revenue"] { --m: var(--m-revenue); }
[data-mod="agent"] { --m: var(--m-agent); }
[data-mod="workflows"] { --m: var(--m-workflows); }
[data-mod="control"] { --m: var(--m-control); }
[data-mod="mcp"] { --m: var(--m-mcp); }

/* ── text link with arrow ─────────────────────────────────────────────── */
.link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font: 500 14px/20px var(--font-mono);
  letter-spacing: -0.01em;
  text-decoration: underline;
  text-decoration-color: transparent;
  text-underline-offset: 4px;
}
.link:hover {
  text-decoration-color: currentColor;
}

/* ── product UI primitives ────────────────────────────────────────────── */
.ui {
  border-radius: var(--r-lg);
  background: var(--surface);
  box-shadow:
    0 0 0 1px var(--line),
    var(--ui-shadow);
  color: var(--fg);
  font-size: 12px;
  line-height: 18px;
  letter-spacing: 0;
}
.ui__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 12px;
  border-bottom: 1px solid var(--line);
  font: 500 11px/16px var(--font-mono);
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--fg-2);
}
.plate {
  border-radius: var(--r-md);
  background: var(--surface-2);
  box-shadow: 0 0 0 1px var(--line);
}
.pill {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  height: 18px;
  padding: 0 6px;
  border-radius: var(--r-xs);
  background: var(--surface);
  box-shadow: 0 0 0 1px var(--line-2);
  color: var(--fg);
  font: 600 10px/14px var(--font-mono);
  letter-spacing: 0.05em;
  text-transform: uppercase;
  white-space: nowrap;
}
.dot {
  flex: none;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--kiwi);
}
.dot--warn {
  background: var(--warn);
}
.dot--primary {
  background: var(--primary);
}
.dot--danger {
  background: var(--danger);
}
.dot--idle {
  background: var(--fg-3);
}
/* tick ruler: 1px ticks every 6px */
.ticks {
  height: 12px;
  background: repeating-linear-gradient(90deg, var(--line-2) 0 1px, transparent 1px 6px);
}

/* ── colour for illustrations ─────────────────────────────────────────────
   The palette is deliberately short: blue (the brand and the agent), green (done,
   automatic), amber (ask first, waiting) and a cool neutral. Everything else is
   ink, paper and real brand marks. data-c sets --c, --c-bg and --c-fg.
   The other names are kept only so older markup degrades to neutral. */
[data-c] {
  --c: var(--c-neutral);
  --c-bg: color-mix(in srgb, var(--c) 13%, var(--surface));
  --c-fg: color-mix(in srgb, var(--c) 72%, var(--fg));
}
[data-c="blue"],
[data-c="orange"] {
  --c: var(--blue);
  --c-fg: var(--primary-text);
}
[data-c="green"] {
  --c: var(--kiwi);
  --c-fg: var(--ok);
}
[data-c="amber"] {
  --c: var(--warn);
  --c-fg: var(--warn-text);
}
/* tinted chip: status, score, tag */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  height: 20px;
  padding: 0 7px;
  border-radius: var(--r-xs);
  background: var(--c-bg, var(--surface-2));
  color: var(--c-fg, var(--fg-2));
  font: 500 11px/1 var(--font-body);
  letter-spacing: 0;
  white-space: nowrap;
}
/* module icon tile: always neutral, told apart by its icon. .is-on marks the module in use. */
.mtile {
  display: grid;
  flex: none;
  place-items: center;
  width: 28px;
  height: 28px;
  border-radius: var(--r-sm);
  background: var(--surface-2);
  box-shadow: inset 0 0 0 1px var(--line);
  color: var(--fg-2);
}
.mtile--s {
  width: 20px;
  height: 20px;
  border-radius: var(--r-xs);
}
.mtile.is-on {
  background: var(--primary-tint);
  box-shadow: inset 0 0 0 1px var(--primary-line);
  color: var(--primary-text);
}
/* a white tile that holds a real brand mark in its own colour */
.mtile--brand {
  background: var(--surface);
  box-shadow: inset 0 0 0 1px var(--line-2);
  color: var(--fg);
}
/* person: a soft blue-tinted disc with initials */
.avatar {
  display: grid;
  flex: none;
  place-items: center;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--primary-tint);
  box-shadow: inset 0 0 0 1px var(--primary-line);
  color: var(--primary-text);
  font: 600 10px/1 var(--font-body);
  letter-spacing: 0;
}
/* the agent itself: the solid blue disc with the kiwi mark */
.avatar--agent {
  /* the kiwi mark cuts its seeds out with --bg, so point that at the disc colour */
  --bg: var(--primary);
  background: var(--primary);
  box-shadow: none;
  color: var(--primary-fg);
}
/* a plate with a fine dot grid, the stage for a colour illustration */
.plate--dots {
  background-image: radial-gradient(circle, var(--plate-dot) 1px, transparent 1.2px);
  background-size: 16px 16px;
}

/* ── nav ──────────────────────────────────────────────────────────────── */
.nav {
  position: sticky;
  top: 0;
  z-index: 100;
  border-bottom: 1px solid var(--line);
  background: var(--bg);
  color: var(--fg);
}
.nav__in {
  display: flex;
  align-items: center;
  gap: 32px;
  max-width: var(--frame);
  height: var(--nav-h);
  margin-inline: auto;
  padding: 0 var(--pad);
}
.nav__brand {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font: 500 22px/1 var(--font-display);
  letter-spacing: -0.03em;
}
.nav__brand svg {
  color: var(--primary);
}
.nav__links {
  display: flex;
  gap: 4px;
}
.nav__links a {
  padding: 4px 10px;
  border-radius: var(--r-sm);
  font: 500 14px/20px var(--font-mono);
  letter-spacing: -0.01em;
}
.nav__links a:hover {
  background: var(--surface-2);
}
.nav__cta {
  margin-left: auto;
}

/* ── motion ───────────────────────────────────────────────────────────── */
@media (prefers-reduced-motion: no-preference) {
  html {
    scroll-behavior: smooth;
  }
  .nav,
  .btn,
  .link,
  .nav__links a {
    transition:
      background-color var(--dur) var(--ease),
      color var(--dur) var(--ease),
      box-shadow var(--dur) var(--ease),
      border-color var(--dur) var(--ease),
      text-decoration-color var(--dur) var(--ease);
  }
  .btn__roll > span {
    transition: transform 320ms var(--ease);
  }
  .btn:hover .btn__roll > span {
    transform: translateY(-20px);
  }
  /* fade up once on entering the viewport: add data-reveal, optional data-reveal="1|2|3" for a stagger */
  .js [data-reveal] {
    opacity: 0;
    transform: translateY(10px);
    transition:
      opacity 700ms var(--ease),
      transform 700ms var(--ease);
  }
  .js [data-reveal="1"] {
    transition-delay: 80ms;
  }
  .js [data-reveal="2"] {
    transition-delay: 160ms;
  }
  .js [data-reveal="3"] {
    transition-delay: 240ms;
  }
  .js [data-reveal].is-in {
    opacity: 1;
    transform: none;
  }
}

/* ── responsive ───────────────────────────────────────────────────────── */
@media (max-width: 1000px) {
  .nav__links {
    display: none;
  }
}
@media (max-width: 900px) {
  :root {
    --sec-top: 72px;
    --sec-gap: 40px;
  }
  .cols--3,
  .cols--4 {
    grid-template-columns: minmax(0, 1fr);
  }
  .cols--3 > * + *,
  .cols--4 > * + * {
    border-top: 1px solid var(--line);
    border-left: 0;
  }
}
@media (max-width: 700px) {
  :root {
    --pad: 20px;
    --nav-h: 60px;
  }
  .cols--2 {
    grid-template-columns: minmax(0, 1fr);
  }
  .cols--2 > * + * {
    border-top: 1px solid var(--line);
    border-left: 0;
  }
  .nav__in {
    gap: 16px;
  }
}

/* ═════════════════════════════════════════════════════════════════════════
   Kit: pillar, plate, card row, mockup
   Shared blocks for every section. Reference: tools/kit.md.
   ═════════════════════════════════════════════════════════════════════════ */

/* ── section header: .sec-head > .tag + .h2 + .lead.soft.kit-sub ───────── */
.kit-sub {
  max-width: 40em;
  /* one short sentence: two even lines, never a lone word on the second */
  text-wrap: balance;
}

/* ── pillar: four numbered rows beside a plate ────────────────────────────
   <div class="pillar" data-pillar> <ol class="pillar__list"> li.pillar__item
   > button.pillar__row[data-panel] + .pillar__text + .pillar__bar </ol>
   <div class="pillar__stage"><div class="kplate"> .kplate__panel[data-panel] */
.pillar {
  display: grid;
  grid-template-columns: minmax(0, 4fr) minmax(0, 7fr);
}
.pillar__list {
  display: flex;
  flex-direction: column;
  border-right: 1px solid var(--line);
}
.pillar--flip .pillar__list {
  order: 2;
  border-right: 0;
  border-left: 1px solid var(--line);
}
.pillar__item {
  position: relative;
  display: flex;
  flex: 1 0 auto;
  flex-direction: column;
  justify-content: center;
}
.pillar__item + .pillar__item {
  border-top: 1px solid var(--line);
}
.pillar__row {
  display: grid;
  grid-template-columns: 36px minmax(0, 1fr);
  align-items: baseline;
  width: 100%;
  min-height: 44px;
  padding: 22px var(--pad);
  border: 0;
  background: none;
  text-align: left;
  cursor: pointer;
}
.pillar__row:focus-visible {
  outline-offset: -4px;
}
.pillar__num {
  font: 500 14px/20px var(--font-mono);
  font-variant-numeric: tabular-nums;
  letter-spacing: 0;
  color: var(--fg-3);
}
.pillar__title {
  font: var(--display-w) 20px/26px var(--font-display);
  letter-spacing: -0.01em;
  color: var(--fg-2);
}
.pillar__row:hover .pillar__title,
.pillar__item.is-active .pillar__title {
  color: var(--fg);
}
.pillar__item.is-active .pillar__num {
  color: var(--primary-text);
}
/* the mini line under a row's title: a few words, always shown, so the rows
   keep their height when the active one changes */
.pillar__text {
  margin-top: -14px;
  padding: 0 var(--pad) 24px calc(var(--pad) + 36px);
  font-size: 14px;
  line-height: 20px;
  letter-spacing: 0;
  color: var(--fg-2);
  text-wrap: pretty;
}
.pillar__bar {
  position: absolute;
  right: var(--pad);
  bottom: -1px;
  left: var(--pad);
  z-index: 1;
  height: 2px;
  overflow: hidden;
}
.pillar__bar > i {
  display: block;
  height: 100%;
  background: var(--primary);
  transform: scaleX(0);
  transform-origin: left center;
}
.pillar__item.is-run .pillar__bar > i {
  transform: scaleX(1);
}
.pillar__stage {
  display: grid;
  padding: 16px;
}

/* ── plate: the tinted ground behind a mockup ─────────────────────────── */
.kplate {
  --kplate-dot: color-mix(in srgb, var(--primary) 20%, transparent);
  position: relative;
  display: grid;
  min-height: var(--kplate-h, 480px);
  padding: 48px 32px;
  border-radius: var(--r-lg);
  background-color: var(--primary-tint);
  background-image: radial-gradient(circle, var(--kplate-dot) 1px, transparent 1.2px);
  background-size: 16px 16px;
  box-shadow: inset 0 0 0 1px var(--primary-line);
  place-items: center;
}
.kplate--neutral {
  --kplate-dot: var(--plate-dot);
  background-color: var(--surface-2);
  box-shadow: inset 0 0 0 1px var(--line);
}
/* every panel sits in the same cell, so the plate keeps one height */
.kplate__panel {
  display: grid;
  grid-area: 1 / 1;
  place-self: stretch;
  place-items: center;
}
.kplate__panel:not(.is-active) {
  visibility: hidden;
  opacity: 0;
}

/* ── card row: three cards, each with a mini mockup ───────────────────── */
.kcards {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
  padding: 32px var(--pad);
}
.kcard {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border-radius: var(--r-lg);
  background: var(--surface);
  box-shadow: 0 0 0 1px var(--line-2);
}
.kcard__label {
  padding: 12px 20px;
  border-bottom: 1px solid var(--line);
  font: 600 11px/16px var(--font-mono);
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--fg-2);
}
.kcard__mock {
  display: grid;
  height: var(--kcard-mock-h, 180px);
  padding: 16px;
  overflow: hidden;
  border-bottom: 1px solid var(--line);
  background-color: var(--bg);
  background-image: radial-gradient(circle, var(--plate-dot) 1px, transparent 1.2px);
  background-size: 12px 12px;
  place-items: center;
}
.kcard__body {
  display: grid;
  gap: 8px;
  padding: 20px 20px 24px;
}
.kcard__title {
  font: var(--display-w) 22px/28px var(--font-display);
  letter-spacing: -0.01em;
  text-wrap: balance;
}
.kcard__text {
  font-size: 14px;
  line-height: 20px;
  letter-spacing: 0;
  color: var(--fg-2);
  text-wrap: pretty;
}

/* ── mockup primitives: one product object, drawn at 13 to 14px ───────── */
.mk-card {
  position: relative;
  width: min(100%, var(--mk-w, 400px));
  border-radius: var(--r-lg);
  background: var(--surface);
  box-shadow:
    0 0 0 1px var(--line-2),
    var(--ui-shadow);
  color: var(--fg);
  font: 400 13px/20px var(--font-body);
  letter-spacing: 0;
  text-align: left;
}
.mk-head {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 14px;
  border-bottom: 1px solid var(--line);
}
.mk-head__title {
  flex: 1;
  min-width: 0;
  overflow: hidden;
  font-size: 13px;
  font-weight: 600;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.mk-body {
  display: grid;
  gap: 10px;
  padding: 14px;
}
.mk-meta {
  font-size: 12px;
  line-height: 16px;
  color: var(--fg-3);
}
.mk-key {
  font: 400 12px/16px var(--font-mono);
  color: var(--fg-2);
}
.mk-ico {
  width: 16px;
  height: 16px;
}
/* customer bubble (left, white) and reply bubble (right, quiet grey) */
.mk-bubble {
  justify-self: start;
  max-width: 85%;
  padding: 8px 12px;
  border-radius: 12px;
  background: var(--surface);
  box-shadow:
    0 0 0 1px var(--line-2),
    0 1px 2px var(--shade-xs);
  font-size: 14px;
  line-height: 20px;
}
.mk-bubble--reply {
  justify-self: end;
  background: color-mix(in srgb, var(--surface-2) 70%, var(--surface));
}
.mk-bubble__foot {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
  margin-top: 4px;
}
/* the small "AI reply" marker: a filled sparkle and the words */
.mk-mark {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font: 500 11px/16px var(--font-body);
  color: var(--primary-text);
}
.mk-mark svg {
  width: 12px;
  height: 12px;
}
/* labelled field rows: label left, value right */
.mk-fields {
  display: grid;
  grid-template-columns: minmax(0, 8rem) minmax(0, 1fr);
  gap: 8px 12px;
  margin: 0;
}
.mk-fields dt {
  font-size: 12px;
  line-height: 20px;
  color: var(--fg-2);
}
.mk-fields dd {
  margin: 0;
  font-size: 13px;
  line-height: 20px;
}
/* status pill: neutral, --done, --wait, --blue, --ink */
.mk-pill {
  --pc: var(--fg);
  display: inline-flex;
  flex: none;
  align-items: center;
  gap: 5px;
  height: 20px;
  padding: 0 8px;
  border-radius: 999px;
  background: color-mix(in srgb, var(--pc) 7%, var(--surface));
  color: var(--fg-2);
  font: 500 12px/1 var(--font-body);
  white-space: nowrap;
}
.mk-pill--done {
  --pc: var(--kiwi);
  color: var(--ok);
}
.mk-pill--wait {
  --pc: var(--warn);
  color: var(--warn-text);
}
.mk-pill--blue {
  background: var(--primary-tint);
  color: var(--primary-text);
}
.mk-pill--ink {
  background: color-mix(in srgb, var(--fg) 12%, var(--surface));
  color: var(--fg);
}
/* small button at mockup scale (a drawing, so a span, not a control) */
.mk-btns {
  display: flex;
  gap: 8px;
}
.mk-btn {
  display: inline-flex;
  align-items: center;
  height: 28px;
  padding: 0 12px;
  border-radius: var(--r-md);
  background: var(--surface);
  box-shadow:
    0 0 0 1px var(--line-2),
    0 1px 2px var(--shade-xs);
  color: var(--fg);
  font: 500 12px/1 var(--font-body);
  white-space: nowrap;
}
.mk-btn--primary {
  background: var(--primary);
  box-shadow: 0 1px 2px var(--btn-drop);
  color: var(--primary-fg);
}
/* step line: module icon, what it did, an optional end mark (tick) */
.mk-steps {
  display: grid;
  gap: 8px;
}
.mk-step {
  display: grid;
  grid-template-columns: 16px minmax(0, 1fr) auto;
  align-items: center;
  gap: 8px;
  color: var(--fg-2);
  font-size: 13px;
  line-height: 20px;
}
.mk-step > svg:first-child {
  width: 16px;
  height: 16px;
}
.mk-step__end {
  width: 14px;
  height: 14px;
  color: var(--ok);
}
.mk-step--wait {
  color: var(--warn-text);
}
/* avatar with initials, the agent avatar, and the channel badge */
.mk-avatar {
  position: relative;
  display: grid;
  flex: none;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--primary-tint);
  box-shadow: inset 0 0 0 1px var(--primary-line);
  color: var(--primary-text);
  font: 600 11px/1 var(--font-body);
  place-items: center;
}
.mk-avatar--s {
  width: 20px;
  height: 20px;
  font-size: 11px;
}
/* the kiwi mark paints its disc in currentColor and cuts its seeds with --bg */
.mk-avatar--agent {
  --bg: var(--primary-fg);
  background: none;
  box-shadow: none;
  color: var(--primary);
}
.mk-avatar--agent > svg {
  width: 100%;
  height: 100%;
}
.mk-avatar__badge {
  position: absolute;
  right: -3px;
  bottom: -3px;
  display: grid;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: var(--surface);
  box-shadow: 0 0 0 1px var(--line);
  place-items: center;
}
.mk-avatar__badge svg {
  width: 10px;
  height: 10px;
}
/* list row */
.mk-row {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
}
.mk-row + .mk-row {
  border-top: 1px solid var(--line);
}
/* fact chip: flat, upright, hairline; pin it to a mockup edge */
.mk-chip {
  position: absolute;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 28px;
  padding: 0 10px;
  border-radius: var(--r-sm);
  background: var(--surface);
  box-shadow: 0 0 0 1px var(--line-2);
  color: var(--fg);
  font: 500 12px/1 var(--font-body);
  white-space: nowrap;
}
.mk-chip svg {
  width: 14px;
  height: 14px;
  color: var(--primary-text);
}
.mk-chip--tr {
  top: -14px;
  right: 16px;
}
.mk-chip--tl {
  top: -14px;
  left: 16px;
}
.mk-chip--br {
  right: 16px;
  bottom: -14px;
}
.mk-chip--bl {
  bottom: -14px;
  left: 16px;
}

@media (prefers-reduced-motion: no-preference) {
  .pillar__title,
  .pillar__num {
    transition: color var(--dur) var(--ease);
  }
  .kplate__panel {
    transition:
      opacity 400ms var(--ease),
      visibility 0s linear 0s;
  }
  .kplate__panel:not(.is-active) {
    transition:
      opacity 400ms var(--ease),
      visibility 0s linear 400ms;
  }
  .pillar__item.is-run .pillar__bar > i {
    transition: transform var(--pillar-dur, 5500ms) linear;
  }
}

@media (max-width: 1100px) {
  .kcards {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .kcards > .kcard:last-child:nth-child(odd) {
    grid-column: 1 / -1;
  }
}
@media (max-width: 900px) {
  .pillar {
    grid-template-columns: minmax(0, 1fr);
  }
  .pillar__list,
  .pillar--flip .pillar__list {
    order: 0;
    border-right: 0;
    border-bottom: 1px solid var(--line);
    border-left: 0;
  }
  .pillar__stage {
    padding: 16px var(--pad) 24px;
  }
  .kplate {
    --kplate-h: 420px;
    padding: 40px 16px;
  }
}
@media (max-width: 640px) {
  .kcards {
    grid-template-columns: minmax(0, 1fr);
  }
}

/* ═════════════════════════════════════════════════════════════════════════
   Module sections and chapters
   A module section is: .sec-head.sec-head--mod, hr.rule, .pillar (three or
   four rows), hr.rule, p.sec-close. A chapter marker groups four of them.
   ═════════════════════════════════════════════════════════════════════════ */

/* compact section head for module sections */
.sec-head--mod {
  gap: 16px;
  padding: 80px var(--pad) 48px;
}
.sec-head--mod > .h2 {
  max-width: 21em;
}

/* the closing line under a module's pillar: what changes for the customer */
.sec-close {
  max-width: 46em;
  padding: 28px var(--pad) 80px;
  font-size: 18px;
  line-height: 26px;
  letter-spacing: -0.01em;
  color: var(--fg);
  text-wrap: pretty;
}

/* chapter marker: the chapter name and links to its sections */
.chapter__in {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px 40px;
  padding: 56px var(--pad);
}
.chapter__title {
  color: var(--fg);
}
.chapter__links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 28px;
}
.chapter__links a {
  font: 600 11px/16px var(--font-mono);
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--fg-2);
}
.chapter__links a:hover {
  color: var(--primary-text);
}

@media (max-width: 900px) {
  .sec-head--mod {
    padding: 56px var(--pad) 32px;
  }
  .sec-close {
    padding: 24px var(--pad) 56px;
  }
  .chapter__in {
    padding: 40px var(--pad);
  }
}

/* a flipped pillar keeps the plate in the wide column */
.pillar--flip {
  grid-template-columns: minmax(0, 7fr) minmax(0, 4fr);
}
@media (max-width: 900px) {
  .pillar--flip {
    grid-template-columns: minmax(0, 1fr);
  }
}

/* the stage, the plate and its panels never grow wider than their column,
   whatever the mockup inside would like */
.pillar__stage,
.kplate,
.kplate__panel {
  grid-template-columns: minmax(0, 1fr);
  min-width: 0;
}

/* ── feature caption: a short title and one mini line ───────────────────
   Used wherever a section shows its features as static captions instead of
   pillar rows: <div class="feat"><h3 class="feat__title">…</h3><p class="feat__text">…</p></div>
   The text is a mini line of at most 8 words, never a sentence of spec. */
.feat {
  display: grid;
  align-content: start;
  gap: 4px;
}
.feat__title {
  font: var(--display-w) 20px/26px var(--font-display);
  letter-spacing: -0.01em;
  color: var(--fg);
  text-wrap: balance;
}
.feat__text {
  font-size: 14px;
  line-height: 20px;
  letter-spacing: 0;
  color: var(--fg-2);
  text-wrap: pretty;
}

/* ═════════════════════════════════════════════════════════════════════════
   Bands in a module's hue
   A module section sets data-mod (its hue, --m) and one of three bands:
   data-theme="white"  neutral band, the plate carries the hue
   data-theme="hue"    pastel band in the hue, the plate a shade deeper
   data-theme="dark"   black band, the plate a dark shade of the hue
   Sections read --m-tint, --m-line, --m-dot and --m-text; never --m-<name>.
   ═════════════════════════════════════════════════════════════════════════ */
.sec[data-mod] {
  --m-tint: color-mix(in srgb, var(--m) 7%, var(--surface));
  --m-line: color-mix(in srgb, var(--m) 18%, transparent);
  --m-dot: color-mix(in srgb, var(--m) 20%, transparent);
  --m-text: color-mix(in srgb, var(--m) 62%, var(--fg));
}
.sec[data-mod][data-theme="hue"] {
  --m-tint: color-mix(in srgb, var(--m) 11%, var(--white));
  --m-line: color-mix(in srgb, var(--m) 20%, transparent);
  --m-dot: color-mix(in srgb, var(--m) 24%, transparent);
}
/* small hue accents that sit straight on a black band (icon tiles, lines) */
.sec[data-mod][data-theme="dark"] {
  --m-tint: color-mix(in srgb, var(--m) 20%, var(--surface));
  --m-line: color-mix(in srgb, var(--m) 44%, transparent);
  --m-dot: color-mix(in srgb, var(--m) 30%, transparent);
}
/* On a black band the plate (and the workflows canvas, which is its own kind
   of plate) is a light island: the drawing keeps its light
   look and stands out against the black. Dark cards on a dark tinted plate
   were tried and read as mud. The plate resets the theme variables to light
   (see the themes block) and takes the hue as it would on a white band. */
.sec[data-mod][data-theme="dark"] .kplate,
.sec[data-mod][data-theme="dark"] .wf-canvas {
  --m-tint: color-mix(in srgb, var(--m) 9%, var(--white));
  --m-line: color-mix(in srgb, var(--m) 18%, transparent);
  --m-dot: color-mix(in srgb, var(--m) 22%, transparent);
  --m-text: color-mix(in srgb, var(--m) 62%, var(--ink));
  color: var(--fg);
}
.sec[data-mod] .kplate:not(.kplate--neutral) {
  --kplate-dot: var(--m-dot);
  background-color: var(--m-tint);
  box-shadow: inset 0 0 0 1px var(--m-line);
}

/* a chapter marker opens its chapter with a large title. It carries the same
   band as every section of the chapter: one chapter, one colour. */
.chapter .chapter__in {
  align-items: center;
  padding-block: 72px;
}
.chapter .chapter__title {
  font-size: clamp(36px, 2.6vw + 26px, 56px);
  line-height: 1.07;
}
@media (max-width: 900px) {
  .chapter .chapter__in {
    padding-block: 48px;
  }
}

/* ── skeleton bar: stands for a line of text a drawing does not need to spell out.
   <i class="mk-skel" style="--w: 60%"></i>; add mk-skel--strong for a title-weight bar */
.mk-skel {
  display: block;
  width: var(--w, 100%);
  height: 8px;
  border-radius: 999px;
  background: color-mix(in srgb, var(--fg) 10%, transparent);
}
.mk-skel--strong {
  background: color-mix(in srgb, var(--fg) 22%, transparent);
}

/* src/css/10-hero.css */
/* Hero: a centred head (tag, two-line headline, sub-line, two buttons), then one static picture of the
   GoKiwi Inbox, wide and cut off by the bottom of the band. The app is drawn in HTML at its real layout:
   module rail, Inbox views, conversation list, open thread, contact panel. */

:root {
  --hero-sel: color-mix(in srgb, var(--blue) 7%, var(--white));
  --hero-veil: color-mix(in srgb, var(--ink) 4%, transparent);
  --hero-rail: color-mix(in srgb, var(--ink) 2.5%, var(--white));
  --hero-out: color-mix(in srgb, var(--blue) 8%, var(--white));
  --hero-out-line: color-mix(in srgb, var(--blue) 18%, transparent);
  --hero-ok-bg: color-mix(in srgb, var(--kiwi) 12%, var(--white));
  --hero-shadow:
    0 1px 2px color-mix(in srgb, var(--ink) 4%, transparent),
    0 24px 64px -24px color-mix(in srgb, var(--ink) 22%, transparent);
  --hero-view: 580px;
}

/* ── head ─────────────────────────────────────────────────────────────── */
.hero-head {
  display: grid;
  justify-items: center;
  gap: 22px;
  padding: 64px var(--pad) 56px;
  text-align: center;
}
.hero-title {
  font-size: clamp(40px, 5vw, 76px);
  line-height: 1;
  letter-spacing: -0.035em;
}
.hero-title > span {
  display: block;
}
.hero-title__em {
  color: var(--primary-text);
}
.hero-sub {
  max-width: 40em;
}
.hero-ctas {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  margin-top: 8px;
}
.hero-sr {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

/* ── the picture: a wide card, cut off by the bottom of the band ──────── */
.hero-stage {
  position: relative;
  margin: 0;
  padding: 0 calc(var(--pad) - 24px);
}
/* the clip leaves 24px around the card so its shadow shows; only the bottom cuts */
.hero-clip {
  height: var(--hero-view);
  margin-top: -24px;
  padding: 24px 24px 0;
  overflow: hidden;
  /* the faint fade at the very bottom into the band */
  mask-image: linear-gradient(to bottom, var(--ink) calc(100% - 56px), transparent);
}
.hero-app {
  display: grid;
  grid-template-columns: 72px 208px minmax(0, 300px) minmax(0, 1fr) 248px;
  min-height: calc(var(--hero-view) + 16px);
  border-radius: var(--r-lg);
  background: var(--surface);
  box-shadow:
    inset 0 0 0 1px var(--line-2),
    var(--hero-shadow);
  color: var(--fg);
  font: 400 13px/18px var(--font-body);
  letter-spacing: -0.1px;
  text-align: left;
}
.hero-app > * {
  min-width: 0;
}
.hero-app > * + * {
  border-left: 1px solid var(--line);
}
.hero-app svg {
  flex: none;
}
.hero-app b {
  font-weight: 600;
}

/* module rail */
.hero-rail {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  padding: 12px 6px;
  border-radius: var(--r-lg) 0 0 0;
  background: var(--hero-rail);
}
.hero-ws {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  margin-bottom: 10px;
  border-radius: var(--r-md);
  background: var(--surface);
  box-shadow: inset 0 0 0 1px var(--line-2);
  color: var(--primary);
}
.hero-mod {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  width: 60px;
  padding: 8px 0 6px;
  border-radius: var(--r-md);
  color: var(--fg-3);
  font-size: 11px;
  line-height: 12px;
  letter-spacing: 0;
}
.hero-mod svg {
  color: var(--fg-2);
}
.hero-mod.is-on {
  background: var(--tint-2);
  color: var(--fg);
}
.hero-mod.is-on svg {
  color: var(--fg);
}

/* Inbox module sidebar */
.hero-side {
  padding: 16px 12px;
}
.hero-side__title {
  margin: 0 8px 12px;
  font: var(--display-w) 16px/22px var(--font-display);
  letter-spacing: -0.2px;
}
.hero-search {
  display: flex;
  align-items: center;
  gap: 8px;
  height: 32px;
  padding: 0 10px;
  border-radius: var(--r-sm);
  box-shadow: inset 0 0 0 1px var(--line-2);
  color: var(--fg-3);
}
.hero-side__lbl {
  margin: 20px 8px 6px;
  color: var(--fg-3);
  font-size: 12px;
  font-weight: 500;
}
.hero-nav {
  display: grid;
  gap: 1px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.hero-nav li {
  display: flex;
  align-items: center;
  gap: 10px;
  height: 32px;
  padding: 0 8px;
  border-radius: var(--r-sm);
  color: var(--fg-2);
  white-space: nowrap;
}
.hero-nav li svg {
  color: var(--fg-3);
}
.hero-nav li .num {
  margin-left: auto;
  color: var(--fg-3);
  font-size: 12px;
}
.hero-nav li.is-on {
  background: var(--hero-veil);
  color: var(--fg);
  font-weight: 500;
}
.hero-nav li.is-on svg {
  color: var(--fg);
}

/* conversation list */
.hero-list__head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  min-height: 57px;
  padding: 12px 14px;
  border-bottom: 1px solid var(--line);
}
.hero-list__head > b {
  font-size: 14px;
}
.hero-seg {
  display: flex;
  gap: 2px;
  padding: 2px;
  border-radius: var(--r-sm);
  background: var(--surface-2);
  font-size: 12px;
  line-height: 16px;
  color: var(--fg-3);
}
.hero-seg > span {
  padding: 3px 7px;
  border-radius: var(--r-xs);
}
.hero-seg > .is-on {
  background: var(--surface);
  box-shadow: 0 0 0 1px var(--line), 0 1px 2px var(--shade-xs);
  color: var(--fg);
}
.hero-rows {
  margin: 0;
  padding: 6px;
  list-style: none;
}
.hero-row {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 12px 10px;
  border-radius: var(--r-md);
}
.hero-row.is-sel {
  background: var(--hero-sel);
  box-shadow: inset 0 0 0 1px var(--primary-line);
}
.hero-row__main {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  flex: 1;
  gap: 6px;
  min-width: 0;
  padding-top: 1px;
}
.hero-row__top {
  display: flex;
  align-items: baseline;
  gap: 8px;
}
.hero-row__top b {
  flex: 1;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.hero-row__top time {
  flex: none;
  color: var(--fg-3);
  font-size: 12px;
}
.hero-row__snip {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--fg-2);
}
.hero-row__snip,
.hero-row .mk-skel {
  margin-top: 1px;
}
.hero-row__snip > span:first-child {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.hero-row.is-unread .hero-row__snip {
  color: var(--fg);
  font-weight: 500;
}
.hero-row .mk-skel {
  margin-block: 5px;
}
.hero-dot {
  flex: none;
  width: 8px;
  height: 8px;
  margin-left: auto;
  border-radius: 50%;
  background: var(--primary);
}

/* avatars: people are a soft blue tint, the channel mark sits on the corner */
.hero-av {
  position: relative;
  display: grid;
  flex: none;
  place-items: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--primary-tint);
  color: var(--primary-text);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0;
}
.hero-av--s {
  width: 32px;
  height: 32px;
}
.hero-av--l {
  width: 48px;
  height: 48px;
  font-size: 15px;
}
.hero-av--xs {
  width: 22px;
  height: 22px;
  font-size: 10px;
}
.hero-av--team {
  background: var(--surface-2);
  box-shadow: inset 0 0 0 1px var(--line-2);
  color: var(--fg-2);
}
.hero-av__ch {
  position: absolute;
  right: -3px;
  bottom: -3px;
  display: grid;
  place-items: center;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--surface);
  box-shadow: 0 0 0 1px var(--line);
}
.hero-av__ch--glyph {
  color: var(--fg-2);
}

/* open conversation */
.hero-thread {
  display: flex;
  flex-direction: column;
  background: var(--bg);
}
.hero-thread__head {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 57px;
  padding: 0 16px;
  border-bottom: 1px solid var(--line);
  background: var(--surface);
}
.hero-thread__who {
  display: grid;
  flex: 1;
  min-width: 0;
  line-height: 16px;
}
.hero-ch {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  color: var(--fg-3);
  font-size: 12px;
}
.hero-assignee {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 28px;
  padding: 0 10px 0 4px;
  border-radius: 999px;
  box-shadow: inset 0 0 0 1px var(--line-2);
  color: var(--fg-2);
  font-size: 12px;
  white-space: nowrap;
}
.hero-btn {
  display: inline-flex;
  align-items: center;
  height: 28px;
  padding: 0 10px;
  border-radius: var(--r-sm);
  box-shadow: inset 0 0 0 1px var(--line-2);
  color: var(--fg);
  font-size: 12px;
  font-weight: 500;
}
.hero-msgs {
  display: grid;
  align-content: start;
  gap: 14px;
  flex: 1;
  padding: 24px 20px;
}
.hero-msg {
  display: grid;
  gap: 6px;
  max-width: min(400px, 88%);
  padding: 10px 12px;
  border-radius: var(--r-lg);
}
.hero-msg p {
  margin: 0;
  font-size: 14px;
  line-height: 20px;
}
.hero-msg--in {
  justify-self: start;
  border-bottom-left-radius: var(--r-xs);
  background: var(--surface);
  box-shadow: inset 0 0 0 1px var(--line-2);
}
.hero-msg--out {
  justify-self: end;
  border-bottom-right-radius: var(--r-xs);
  background: var(--hero-out);
  box-shadow: inset 0 0 0 1px var(--hero-out-line);
}
.hero-msg__meta {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
  color: var(--fg-3);
  font-size: 12px;
  line-height: 14px;
}
.hero-msg--in .hero-msg__meta {
  justify-content: flex-start;
}
.hero-ai {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  color: var(--primary-text);
  font-weight: 500;
}
.hero-event {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  margin: 4px 0 0;
  color: var(--fg-2);
  font-size: 12px;
}
.hero-event::before,
.hero-event::after {
  content: "";
  flex: 1;
  height: 1px;
  background: var(--line);
}
.hero-event::before {
  margin-right: 6px;
}
.hero-event::after {
  margin-left: 6px;
}
.hero-event .num {
  color: var(--fg-3);
}
.hero-compose {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 10px 12px;
  margin: 0 16px 16px;
  padding: 10px 10px 10px 12px;
  border-radius: var(--r-lg);
  background: var(--surface);
  box-shadow:
    inset 0 0 0 1px var(--line-2),
    0 1px 2px var(--shade-xs);
}
.hero-compose__tabs {
  display: flex;
  grid-column: 1 / -1;
  gap: 14px;
  color: var(--fg-3);
  font-size: 12px;
  font-weight: 500;
}
.hero-compose__tabs .is-on {
  color: var(--fg);
}
.hero-compose__ph {
  align-self: center;
  color: var(--fg-3);
}
.hero-send {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 30px;
  padding: 0 12px;
  border-radius: var(--r-sm);
  background: var(--primary);
  color: var(--primary-fg);
  font-size: 12px;
  font-weight: 500;
}

/* contact panel */
.hero-info {
  padding: 16px;
}
.hero-info__title {
  margin: 0 0 18px;
  font-size: 14px;
  font-weight: 600;
}
.hero-info__who {
  display: grid;
  justify-items: center;
  gap: 8px;
  padding-bottom: 18px;
  border-bottom: 1px solid var(--line);
}
.hero-info__who b {
  font-size: 14px;
}
.hero-info .hero-side__lbl {
  margin: 16px 0 8px;
}
.hero-props {
  display: grid;
  grid-template-columns: 72px minmax(0, 1fr);
  align-items: center;
  gap: 12px 8px;
  margin: 0;
  font-size: 12px;
}
.hero-props dt {
  color: var(--fg-3);
}
.hero-props dd {
  display: flex;
  align-items: center;
  gap: 6px;
  margin: 0;
  color: var(--fg);
}
.hero-status {
  padding: 1px 8px;
  border-radius: 999px;
  background: var(--hero-ok-bg);
  color: var(--ok);
  font-weight: 500;
}
.hero-linked {
  display: grid;
  gap: 8px;
}
.hero-linked > span {
  display: flex;
  align-items: center;
  gap: 8px;
  height: 34px;
  padding: 0 10px;
  border-radius: var(--r-sm);
  box-shadow: inset 0 0 0 1px var(--line);
  color: var(--fg-3);
}
.hero-linked .mk-skel {
  flex: none;
}

/* ── responsive: the app keeps its shape and drops panels ────────────── */
@media (max-width: 1180px) {
  .hero-app {
    grid-template-columns: 72px minmax(0, 290px) minmax(0, 1fr) 236px;
  }
  .hero-side {
    display: none;
  }
}
@media (max-width: 900px) {
  :root {
    --hero-view: 500px;
  }
  .hero-head {
    padding-top: 48px;
    padding-bottom: 44px;
  }
  .hero-app {
    grid-template-columns: 72px minmax(0, 260px) minmax(0, 1fr);
  }
  .hero-info,
  .hero-seg > :nth-child(4) {
    display: none;
  }
}
@media (max-width: 640px) {
  :root {
    --hero-view: 460px;
  }
  .hero-head {
    gap: 18px;
    padding-top: 40px;
    padding-bottom: 36px;
  }
  .hero-ctas {
    width: 100%;
  }
  .hero-app {
    grid-template-columns: minmax(0, 1fr);
  }
  .hero-app > * + * {
    border-left: 0;
  }
  .hero-rail,
  .hero-list {
    display: none;
  }
  .hero-thread {
    border-radius: var(--r-lg);
  }
  .hero-thread__head {
    border-radius: var(--r-lg) var(--r-lg) 0 0;
  }
  .hero-btn {
    display: none;
  }
  .hero-msgs {
    padding: 20px 14px;
  }
  .hero-compose {
    margin: 0 12px 12px;
  }
}

/* src/css/18-ch-customers.css */
/* 18-ch-customers: the chapter marker is the title and its links alone; the shared
   .chapter rules in 00-base.css lay it out. */

/* src/css/20-inbox.css */
/* 20-inbox: many channels, one inbox, as one picture on a plate in the
   module hue. Five channel tiles on the left, thin wires converging, and one
   inbox card with three conversations on the right. Under 900px the tiles
   wrap above the card. Then the three features as captions in hairline columns. */

/* ── the stage and the plate ──────────────────────────────────────────── */
.ib-stage {
  padding: 0 var(--pad) var(--pad);
}
.ib-plate {
  --kplate-h: 0px;
  padding: 64px 40px;
}
.ib-flow {
  display: grid;
  grid-template-columns: minmax(0, 220px) minmax(64px, 1fr) minmax(0, 440px);
  width: 100%;
  max-width: 960px;
  min-width: 0;
}
.ib-flow > * {
  min-width: 0;
}
.ib-flow svg {
  display: block;
}

/* ── channel tiles: five equal rows, so each tile centres on 10/30/50/70/90% */
.ib-chans {
  display: grid;
  grid-template-rows: repeat(5, minmax(0, 1fr));
  gap: 16px;
  align-items: center;
}
.ib-chan {
  display: flex;
  align-items: center;
  gap: 12px;
  height: 60px;
  padding: 0 16px 0 10px;
  border-radius: var(--r-lg);
  background: var(--surface);
  box-shadow:
    0 0 0 1px var(--line-2),
    var(--ui-shadow);
  font: 500 16px/24px var(--font-body);
  white-space: nowrap;
}
.ib-chan__ico {
  display: grid;
  flex: none;
  width: 40px;
  height: 40px;
  border-radius: var(--r-md);
  background: var(--surface-2);
  place-items: center;
}
.ib-chan__ico svg {
  width: 22px;
  height: 22px;
}
.ib-chan__ico--glyph {
  background: var(--m-tint);
  box-shadow: inset 0 0 0 1px var(--m-line);
  color: var(--m-text);
}

/* ── wires: drawn in a 100 × 100 box stretched over the column ────────── */
.ib-link {
  position: relative;
}
.ib-wires {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  overflow: visible;
}
.ib-wires path {
  fill: none;
  stroke: var(--m-text);
  stroke-opacity: 0.5;
  stroke-width: 1.5;
  vector-effect: non-scaling-stroke;
}

/* ── the inbox card ───────────────────────────────────────────────────── */
.ib-list {
  --mk-w: 440px;
  align-self: center;
  justify-self: start;
}
.ib-list .mk-head {
  padding: 16px 20px;
}
.ib-list .mk-head__title {
  font-size: 16px;
  line-height: 24px;
}
.ib-list .mk-row {
  gap: 16px;
  padding: 20px;
}
.ib-av {
  width: 48px;
  height: 48px;
  font-size: 15px;
}
.ib-av .mk-avatar__badge {
  width: 22px;
  height: 22px;
}
.ib-av .mk-avatar__badge svg {
  width: 14px;
  height: 14px;
}
.ib-badge--glyph {
  color: var(--m-text);
}
.ib-conv__main {
  display: grid;
  flex: 1;
  gap: 10px;
  min-width: 0;
}
.ib-conv__name {
  font-size: 16px;
  font-weight: 600;
  line-height: 22px;
}
.ib-skel-name {
  height: 12px;
  margin-block: 5px;
}

/* ── the three features: the cells run down to the end of the band, so the
   hairlines between them close on the section edge */
.ib-feats > .cell {
  padding-block: 40px 48px;
}

/* ── under 900px the tiles wrap above the card ────────────────────────── */
@media (max-width: 900px) {
  .ib-stage {
    padding: 0 var(--pad) 24px;
  }
  .ib-plate {
    padding: 40px 16px;
  }
  .ib-flow {
    grid-template-columns: minmax(0, 1fr);
    justify-items: center;
  }
  .ib-chans {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
  }
  .ib-chan {
    height: 52px;
    font-size: 15px;
  }
  .ib-chan__ico {
    width: 34px;
    height: 34px;
  }
  .ib-wires {
    display: none;
  }
  .ib-link {
    width: 1.5px;
    height: 40px;
    background: color-mix(in srgb, var(--m-text) 50%, transparent);
  }
  .ib-list {
    justify-self: center;
  }
  .ib-feats.cols--3 {
    grid-template-columns: minmax(0, 1fr);
  }
  .ib-feats.cols--3 > * + * {
    border-top: 1px solid var(--line);
    border-left: 0;
  }
  .ib-feats > .cell {
    padding-block: 24px;
  }
  .ib-feats > .cell:last-child {
    padding-bottom: 56px;
  }
}

/* src/css/22-customer-agent.css */
/* 22-customer-agent: the AI agent that answers customers. Built on the kit (pillar, kplate, mk-*)
   in 00-base.css. Each panel is one card of the same size: the answer, the handover, the email draft. */

/* the kit's flip moves the list to the right; keep the wide column for the plate.
   The pillar ends the section, so it carries the band's bottom margin. */
.ca-pillar {
  grid-template-columns: minmax(0, 7fr) minmax(0, 4fr);
  padding-bottom: 64px;
}
/* the list's hairline runs on through that margin to the band's edge,
   while its rows stay level with the plate */
.ca-pillar > .pillar__list {
  margin-bottom: -64px;
  padding-bottom: 64px;
}

/* ── one card per panel, all the same size ────────────────────────────── */
.ca-card {
  --mk-w: 420px;
  display: flex;
  flex-direction: column;
  min-height: 304px;
  font-size: 15px;
  line-height: 22px;
}
.ca-card .mk-head {
  gap: 12px;
  padding: 16px 20px;
}
.ca-card .mk-head__title {
  font-size: 16px;
  line-height: 24px;
}
.ca-av {
  width: 36px;
  height: 36px;
  font-size: 13px;
}
.ca-av .mk-avatar__badge {
  width: 18px;
  height: 18px;
}
.ca-av .mk-avatar__badge svg {
  width: 12px;
  height: 12px;
}
.ca-body {
  flex: 1;
  align-content: center;
  gap: 12px;
  padding: 20px;
}
.ca-card .mk-bubble {
  padding: 10px 14px;
  font-size: 15px;
  line-height: 22px;
}
.ca-reply {
  min-width: 55%;
}
.ca-card .mk-mark {
  font-size: 14px;
  line-height: 20px;
}
.ca-card .mk-mark svg {
  width: 14px;
  height: 14px;
}

/* the quiet foot line: the knowledge source, or the draft's buttons */
.ca-foot {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 14px 20px;
  border-top: 1px solid var(--line);
  color: var(--fg-2);
  font-size: 14px;
  line-height: 20px;
}
.ca-foot svg {
  flex: none;
  width: 20px;
  height: 20px;
  color: var(--m-text);
}

/* ── 02 the handover: the agent, an arrow, Anna K. ────────────────────── */
.ca-hand {
  display: flex;
  flex: 1;
  align-items: center;
  justify-content: center;
  gap: 28px;
  padding: 28px 20px;
}
.ca-who {
  display: grid;
  justify-items: center;
  gap: 10px;
  font-size: 16px;
  line-height: 22px;
}
.ca-who b {
  font-weight: 600;
}
.ca-big {
  width: 72px;
  height: 72px;
  font-size: 22px;
}
.ca-arrow {
  width: 32px;
  height: 32px;
  margin-bottom: 32px;
  color: var(--m-text);
}
.ca-done {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 8px;
  padding: 16px 20px;
  border-top: 1px solid var(--line);
  color: var(--ok);
  font-size: 15px;
  font-weight: 500;
  line-height: 22px;
}
.ca-done svg {
  width: 16px;
  height: 16px;
}

/* ── 03 the email draft: skeleton lines and two buttons ───────────────── */
.ca-pill {
  height: 26px;
  padding: 0 12px;
  font-size: 14px;
}
.ca-lines {
  gap: 16px;
}
.ca-lines .mk-skel {
  height: 10px;
}
.ca-foot--btns {
  justify-content: flex-end;
  gap: 10px;
}
.ca-btn {
  height: 36px;
  padding: 0 16px;
  font-size: 14px;
}

@media (max-width: 900px) {
  .ca-pillar {
    grid-template-columns: minmax(0, 1fr);
    padding-bottom: 32px;
  }
  .ca-pillar > .pillar__list {
    margin-bottom: 0;
    padding-bottom: 0;
  }
}
@media (max-width: 480px) {
  .ca-hand {
    gap: 16px;
  }
  .ca-big {
    width: 56px;
    height: 56px;
    font-size: 18px;
  }
}

/* src/css/24-phone.css */
/* 24-phone: one call, handled in three steps, on a black band.
   A plate in the module hue holds one large incoming-call card (the focal
   point), and under it a horizontal line of three steps, each an icon tile
   and a few words. Under 900px the steps stack. The three steps are the
   section's features: there is no caption row under the plate, because it
   only repeated them. */

/* ── the stage and its plate ──────────────────────────────────────────── */
.ph-stage {
  padding: 8px var(--pad) 80px;
}
.ph-plate {
  --kplate-h: 0;
  gap: 56px;
  padding: 64px 40px 56px;
  justify-items: center;
}

/* ── the incoming call: the focal object ──────────────────────────────── */
.ph-call {
  display: flex;
  align-items: center;
  gap: 24px;
  width: min(100%, 440px);
  padding: 28px 32px;
  border-radius: var(--r-lg);
  background: var(--surface);
  box-shadow:
    0 0 0 1px var(--line-2),
    var(--ui-shadow);
}
.ph-ring {
  display: grid;
  flex: none;
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: var(--m-tint);
  box-shadow:
    inset 0 0 0 1px var(--m-line),
    0 0 0 10px color-mix(in srgb, var(--m) 10%, transparent);
  color: var(--m-text);
  place-items: center;
}
.ph-ring svg {
  width: 28px;
  height: 28px;
}
.ph-call__text {
  display: grid;
  gap: 6px;
  min-width: 0;
}
.ph-call__label {
  font-size: 15px;
  line-height: 20px;
  color: var(--fg-2);
}
.ph-call__name {
  font: var(--display-w) 28px/32px var(--font-display);
  letter-spacing: -0.01em;
  color: var(--fg);
}
.ph-call__crm {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 4px;
  color: var(--m-text);
}
.ph-call__crm svg {
  flex: none;
  width: 20px;
  height: 20px;
}

/* ── three steps on one line ──────────────────────────────────────────── */
.ph-steps {
  position: relative;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
  width: min(100%, 760px);
  margin: 0;
  padding: 0;
  list-style: none;
}
/* the line that joins the three tiles */
.ph-steps::before {
  content: "";
  position: absolute;
  top: 28px;
  right: calc(100% / 6);
  left: calc(100% / 6);
  height: 1px;
  background: var(--m-line);
}
.ph-step {
  position: relative;
  display: grid;
  justify-items: center;
  gap: 14px;
  min-width: 0;
  color: var(--fg);
  font-size: 16px;
  font-weight: 500;
  line-height: 22px;
  text-align: center;
}
.ph-tile {
  display: grid;
  width: 56px;
  height: 56px;
  border-radius: var(--r-lg);
  background: var(--surface);
  box-shadow: 0 0 0 1px var(--m-line);
  color: var(--m-text);
  place-items: center;
}
.ph-tile svg {
  width: 24px;
  height: 24px;
}

/* ── under 900px the steps stack ──────────────────────────────────────── */
@media (max-width: 900px) {
  .ph-stage {
    padding-bottom: 56px;
  }
  .ph-plate {
    gap: 40px;
    padding: 40px 20px;
  }
  .ph-call {
    gap: 18px;
    padding: 22px 20px;
  }
  .ph-ring {
    width: 52px;
    height: 52px;
    box-shadow:
      inset 0 0 0 1px var(--m-line),
      0 0 0 7px color-mix(in srgb, var(--m) 10%, transparent);
  }
  .ph-ring svg {
    width: 24px;
    height: 24px;
  }
  .ph-call__name {
    font-size: 24px;
    line-height: 28px;
  }
  .ph-steps {
    grid-template-columns: minmax(0, 1fr);
    gap: 20px;
    width: min(100%, 320px);
  }
  .ph-steps::before {
    top: 28px;
    bottom: 28px;
    left: 28px;
    right: auto;
    width: 1px;
    height: auto;
  }
  .ph-step {
    grid-template-columns: 56px minmax(0, 1fr);
    align-items: center;
    justify-items: start;
    gap: 16px;
    text-align: left;
  }
}

/* src/css/26-marketing.css */
/* 26-marketing: social publishing for agencies.
   Under the head: one light strip of the 12 networks. Then two columns:
   on the left a plate in the module hue with one post card and the two
   actions the client can take; on the right the three feature titles
   stacked, divided by hairlines. The two columns end the section, so the
   plate carries the band's bottom margin. Under 900px the columns stack. */

/* ── the networks strip ───────────────────────────────────────────────── */
.mkt-nets {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin: 0;
  padding: 24px var(--pad);
  list-style: none;
}
.mkt-net {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 32px;
  padding: 0 8px; /* tight enough that the twelve chips, each with its mark, hold one line at 1440 */
  border-radius: var(--r-sm);
  background: var(--surface-2);
  color: var(--fg-2);
  font: 500 14px/1 var(--font-body);
  white-space: nowrap;
}
.mkt-net svg {
  width: 16px;
  height: 16px;
}

/* ── two columns: the plate and the three features ────────────────────── */
.mkt-main {
  display: grid;
  grid-template-columns: minmax(0, 58fr) minmax(0, 42fr);
}
.mkt-main > * {
  min-width: 0;
}
.mkt-stage {
  padding: 32px var(--pad) 80px;
  border-right: 1px solid var(--line);
}
.mkt-plate {
  --kplate-h: 560px;
  padding: 56px 32px;
}
.mkt-feats {
  display: grid;
  align-content: center;
  /* the stage's padding, so the titles centre on the plate */
  padding-block: 32px 80px;
}
.mkt-feats > .feat {
  padding: 32px var(--pad);
}
.mkt-feats > .feat + .feat {
  border-top: 1px solid var(--line);
}

/* ── the post card ────────────────────────────────────────────────────── */
.mkt-post {
  --mk-w: 380px;
  display: grid;
  gap: 18px;
  padding: 20px;
}
.mkt-post__top {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 16px;
  line-height: 24px;
}
.mkt-post__top b {
  font-weight: 600;
}
.mkt-mark {
  width: 24px;
  height: 24px;
}
.mkt-photo {
  display: grid;
  aspect-ratio: 4 / 3;
  border-radius: var(--r-md);
  background: var(--m-tint);
  box-shadow: inset 0 0 0 1px var(--m-line);
  color: var(--m-text);
  place-items: center;
}
.mkt-photo svg {
  width: 32px;
  height: 32px;
}
.mkt-caption {
  display: grid;
  gap: 10px;
}
.mkt-decide {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 10px;
  padding-top: 16px;
  border-top: 1px solid var(--line);
}
.mkt-btn {
  display: inline-flex;
  align-items: center;
  height: 38px;
  padding: 0 16px;
  border-radius: var(--r-md);
  background: var(--surface);
  box-shadow:
    0 0 0 1px var(--line-2),
    0 1px 2px var(--shade-xs);
  color: var(--fg);
  font: 500 15px/1 var(--font-body);
  white-space: nowrap;
}
.mkt-btn--primary {
  background: var(--primary);
  box-shadow: 0 1px 2px var(--btn-drop);
  color: var(--primary-fg);
}

/* ── under 900px the columns stack ────────────────────────────────────── */
@media (max-width: 900px) {
  .mkt-main {
    grid-template-columns: minmax(0, 1fr);
  }
  .mkt-stage {
    padding-bottom: 32px;
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }
  .mkt-plate {
    --kplate-h: 0;
    padding: 40px 20px;
  }
  .mkt-feats {
    padding-block: 0;
  }
  .mkt-feats > .feat {
    padding-block: 24px;
  }
  .mkt-feats > .feat:last-child {
    padding-bottom: 56px;
  }
}

/* src/css/28-ch-team.css */
/* 28-ch-team: the chapter marker is the title and its links alone; the shared
   .chapter rules in 00-base.css lay it out. */

/* src/css/30-crm.css */
/* 30-crm: the pipeline as three stage columns straight on the hue plate.
   One deal is lifted on its way to the next column, over an empty slot. */

.crm-stage-wrap {
  padding: 32px var(--pad);
}
.crm-plate {
  --kplate-h: 0;
  padding: 56px 40px 64px;
}

.crm-board {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 40px;
  width: min(100%, 1040px);
}
.crm-col {
  display: grid;
  align-content: start;
  gap: 14px;
  min-width: 0;
}
.crm-col__name {
  padding: 0 4px 6px;
  border-bottom: 1px solid var(--m-line);
  font-size: 15px;
  font-weight: 600;
  line-height: 22px;
  color: var(--m-text);
}

/* a deal: the customer and one bar */
.crm-deal {
  display: grid;
  gap: 12px;
  min-height: 88px;
  align-content: center;
  padding: 18px 20px;
  border-radius: var(--r-lg);
  background: var(--surface);
  box-shadow:
    0 0 0 1px var(--line-2),
    0 1px 2px var(--shade-xs);
}
.crm-deal__name {
  font-size: 16px;
  font-weight: 500;
  line-height: 22px;
}
/* a deal whose name the drawing does not spell out */
.crm-deal__name--skel {
  display: grid;
  height: 22px;
  align-items: center;
}
.crm-deal__row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.crm-owner {
  width: 24px;
  height: 24px;
  font-size: 10px;
}

/* the deal being moved: ring in the hue, lifted and leaning toward Proposal */
.crm-deal.is-moving {
  position: relative;
  z-index: 1;
  box-shadow:
    0 0 0 2px var(--m),
    var(--ui-shadow);
  transform: translate(28px, -6px) rotate(-1.5deg);
}
/* where it lands */
.crm-slot {
  min-height: 88px;
  border-radius: var(--r-lg);
  border: 1.5px dashed var(--m-line);
}

/* captions under the board: a title and its line per column, the columns
   run on to the foot of the band */
.crm-feats > .cell {
  padding-top: 40px;
  padding-bottom: 48px;
}

/* under 900px: one column, Qualified above Proposal, the deal lifted in place */
@media (max-width: 900px) {
  .crm-plate {
    padding: 32px 24px;
  }
  .crm-board {
    grid-template-columns: minmax(0, 1fr);
    gap: 28px;
    width: min(100%, 420px);
  }
  .crm-col--won {
    display: none;
  }
  .crm-deal.is-moving {
    transform: translateY(-4px);
  }
  .crm-feats > .cell {
    padding-top: 24px;
    padding-bottom: 24px;
  }
  .crm-feats > .cell:last-child {
    padding-bottom: 40px;
  }
}
@media (max-width: 560px) {
  .crm-stage-wrap {
    padding: 24px var(--pad);
  }
  .crm-plate {
    padding: 24px 16px;
  }
}

/* src/css/32-work.css */
/* 32-work: Tasks, Calendar and Team chat as three cards (kcards in 00-base.css).
   Each mock area is a ground in the module hue with one small scene on it. */

.wk-cards {
  --kcard-mock-h: 280px;
  padding-top: 40px;
  padding-bottom: 80px;
}
.wk-cards .kcard {
  min-width: 0;
}
/* the title and its line read as one unit, as in the feature captions */
.wk-cards .kcard__body {
  gap: 4px;
}
.wk-cards .kcard__mock {
  padding: 28px;
  background-color: var(--m-tint);
  background-image: radial-gradient(circle, var(--m-dot) 1px, transparent 1.2px);
}

/* the white card each scene sits on */
.wk-scene {
  width: min(100%, 300px);
  border-radius: var(--r-lg);
  background: var(--surface);
  box-shadow:
    0 0 0 1px var(--line-2),
    var(--ui-shadow);
  color: var(--fg);
  font-size: 15px;
  line-height: 22px;
}

/* ── tasks: three rows, the first done ────────────────────────────────── */
.wk-tasks li {
  display: flex;
  align-items: center;
  gap: 14px;
  min-height: 56px;
  padding: 0 20px;
}
.wk-tasks li + li {
  border-top: 1px solid var(--line);
}
.wk-tasks .mk-skel {
  flex: none;
}
.wk-box {
  display: grid;
  flex: none;
  width: 20px;
  height: 20px;
  border-radius: var(--r-xs);
  box-shadow: inset 0 0 0 1.5px var(--line-2);
  place-items: center;
}
.wk-box svg {
  width: 14px;
  height: 14px;
}
.is-done .wk-box {
  background: var(--ok);
  box-shadow: none;
  color: var(--white);
}
.wk-task__name {
  font-weight: 500;
}

/* ── calendar: five day columns, two events in the hue ────────────────── */
.wk-week {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 6px;
  height: 180px;
  padding: 10px;
}
.wk-day {
  position: relative;
  border-radius: var(--r-sm);
  background: var(--surface-2);
}
.wk-event {
  position: absolute;
  left: 3px;
  right: 3px;
  padding: 8px;
  border-radius: var(--r-sm);
  background: color-mix(in srgb, var(--m) 24%, var(--surface));
  box-shadow: inset 0 0 0 1px var(--m-line);
  color: var(--m-text);
  font-size: 14px;
  font-weight: 600;
  line-height: 18px;
}
/* the labelled event runs over the next day so its two words stay on one line each */
.wk-event--a {
  top: 26px;
  right: -60%;
  z-index: 1;
  height: 72px;
}
.wk-event--b {
  top: 92px;
  height: 52px;
}

/* ── team chat: two bubbles ────────────────────────────────────────────── */
.wk-chat {
  display: grid;
  gap: 16px;
  padding: 20px;
}
.wk-msg {
  display: flex;
  align-items: flex-end;
  gap: 10px;
}
.wk-msg--reply {
  justify-content: flex-end;
}
.wk-bubble {
  min-width: 0;
  padding: 10px 14px;
  border-radius: 14px;
  background: var(--surface-2);
}
.wk-msg--reply .wk-bubble {
  padding: 16px;
  background: var(--m-tint);
}
.wk-msg--reply .mk-skel {
  max-width: 100%;
}

@media (max-width: 900px) {
  .wk-cards {
    padding-bottom: 56px;
  }
}
@media (max-width: 640px) {
  .wk-cards {
    --kcard-mock-h: auto;
  }
  .wk-cards .kcard__mock {
    padding: 28px 16px;
  }
}

/* src/css/34-meetings.css */
/* 34-meetings: Smart meeting on a black band. "A call goes in, three things
   come out": on the left one call tile on a plate in the module hue, an arrow
   in the hue, and on the right three captions, each with its icon tile. */

/* ── the stage: call column (42%) and results column (58%) ────────────── */
.mt-stage {
  display: grid;
  grid-template-columns: minmax(0, 42fr) minmax(0, 58fr);
}
.mt-callcol {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 72px;
  align-items: center;
  min-width: 0;
  /* the 80px under the plate is the band's foot, where the closing line was */
  padding: 16px 0 80px 16px;
  border-right: 1px solid var(--line);
}
.mt-plate {
  --kplate-h: 440px;
}

/* ── the call tile, drawn on the band's own surfaces ─────────────────── */
.mt-call {
  display: grid;
  justify-items: center;
  gap: 28px;
  width: min(100%, 320px);
  padding: 36px 24px 28px;
  border-radius: var(--r-lg);
  background: var(--surface);
  box-shadow:
    0 0 0 1px var(--line-2),
    var(--ui-shadow);
  color: var(--fg);
}
.mt-call__people {
  display: flex;
  justify-content: center;
  gap: 28px;
}
.mt-person {
  display: grid;
  justify-items: center;
  gap: 12px;
}
.mt-person__av {
  display: grid;
  width: 80px;
  height: 80px;
  border-radius: 50%;
  background: var(--primary-tint);
  box-shadow: inset 0 0 0 1px var(--primary-line);
  color: var(--primary-text);
  font: 600 22px/1 var(--font-body);
  place-items: center;
}
.mt-person__name {
  font-size: 15px;
  font-weight: 500;
  line-height: 20px;
}
.mt-on {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding-top: 20px;
  border-top: 1px solid var(--line);
  align-self: stretch;
  justify-content: center;
  color: var(--ok);
  font-size: 15px;
  font-weight: 500;
  line-height: 20px;
}
.mt-on > i {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: currentColor;
}

/* the arrow: a line in the hue that ends on the column rule */
.mt-arrow {
  position: relative;
  display: block;
  height: 2px;
  background: var(--m-text);
}
.mt-arrow::after {
  content: "";
  position: absolute;
  top: -4px;
  right: 1px;
  width: 9px;
  height: 9px;
  border-top: 2px solid var(--m-text);
  border-right: 2px solid var(--m-text);
  transform: rotate(45deg);
}

/* ── the results: three captions, each with an icon tile in the hue ──── */
.mt-results {
  display: grid;
  margin: 0;
  padding: 0 0 64px;
  list-style: none;
}
.mt-res {
  display: grid;
  grid-template-columns: 48px minmax(0, 1fr);
  align-items: center;
  gap: 24px;
  padding: 40px var(--pad) 40px 48px;
}
.mt-res + .mt-res {
  border-top: 1px solid var(--line);
}
.mt-tile {
  display: grid;
  width: 48px;
  height: 48px;
  border-radius: var(--r-md);
  background: var(--m-tint);
  box-shadow: inset 0 0 0 1px var(--m-line);
  color: var(--m-text);
  place-items: center;
}
.mt-tile svg {
  width: 24px;
  height: 24px;
}

/* ── under 900px: the call on top, the arrow turns down, captions stack ─ */
@media (max-width: 900px) {
  .mt-stage {
    grid-template-columns: minmax(0, 1fr);
  }
  .mt-callcol {
    grid-template-columns: minmax(0, 1fr);
    grid-template-rows: auto 56px;
    justify-items: center;
    padding: 16px 16px 0;
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }
  .mt-plate {
    --kplate-h: 360px;
    justify-self: stretch;
  }
  .mt-arrow {
    width: 2px;
    height: 100%;
  }
  .mt-arrow::after {
    top: auto;
    right: auto;
    bottom: 1px;
    left: -4px;
    transform: rotate(135deg);
  }
  .mt-results {
    padding-bottom: 24px;
  }
  .mt-res {
    padding: 32px var(--pad);
  }
}
@media (max-width: 520px) {
  .mt-plate {
    padding: 32px 16px;
  }
  .mt-call {
    padding: 28px 16px 24px;
  }
  .mt-call__people {
    gap: 20px;
  }
  .mt-person__av {
    width: 64px;
    height: 64px;
    font-size: 18px;
  }
  .mt-res {
    grid-template-columns: minmax(0, 1fr);
    gap: 16px;
  }
}

/* src/css/36-revenue.css */
/* 36-revenue: quotes and invoices on a pastel band, laid out as "the
   document". Two columns divided by a hairline: on the left one quote drawn
   as a sheet of paper on a plate in the hue, the edge of the invoice behind
   it; on the right the head and the three features. */

/* ── the split ────────────────────────────────────────────────────────── */
.rv-split {
  display: grid;
  grid-template-columns: minmax(0, 46fr) minmax(0, 54fr);
}
.rv-split > * {
  min-width: 0;
}
.rv-text {
  display: flex;
  flex-direction: column;
  border-left: 1px solid var(--line);
}

/* ── the picture column: a plate in the module hue, the quote on it ───── */
.rv-pic {
  display: grid;
  padding: 16px;
}
.rv-plate {
  padding: 96px 40px 64px;
}
.rv-desk {
  position: relative;
  width: min(100% - 32px, 360px);
  margin: 32px 32px 0 0;
}

/* a sheet of paper */
.rv-sheet {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  gap: 28px;
  padding: 36px 32px 32px;
  border-radius: var(--r-xs);
  background: var(--surface);
  box-shadow:
    0 0 0 1px var(--line-2),
    var(--ui-shadow);
  color: var(--fg);
  font: 400 15px/22px var(--font-body);
}
/* the invoice behind: only its edge shows, no text */
.rv-sheet--back {
  position: absolute;
  z-index: 0;
  inset: 0;
  transform: translate(32px, -32px);
  box-shadow: 0 0 0 1px var(--line-2);
}

.rv-kind {
  padding-bottom: 16px;
  border-bottom: 1px solid var(--fg);
  font: var(--display-w) 28px/32px var(--font-display);
  letter-spacing: -0.01em;
}
.rv-to {
  font-size: 16px;
  font-weight: 600;
  line-height: 22px;
}

/* two catalog lines and the total; amounts are skeleton bars */
.rv-lines {
  display: grid;
}
.rv-line {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 14px 0;
}
.rv-line + .rv-line {
  border-top: 1px solid var(--line);
}
.rv-line > span {
  min-width: 0;
}
.rv-line > .mk-skel {
  flex: none;
}
.rv-line--total {
  margin-top: 8px;
  border-top-color: var(--line-2);
  font-weight: 600;
}
.rv-foot {
  display: flex;
  justify-content: flex-end;
  padding-top: 8px;
}
.rv-foot .mk-btn {
  height: 36px;
  padding: 0 16px;
  font-size: 14px;
}

/* ── the text column ──────────────────────────────────────────────────── */
.rv-head {
  display: grid;
  justify-items: start;
  gap: 16px;
  padding: 80px var(--pad) 48px 48px;
}
.rv-head > .h2 {
  max-width: 14em;
}
/* the one sub-line breaks into even lines, never a lone last word */
#revenue .rv-head > .lead {
  text-wrap: balance;
}
/* the three title rows share what the picture leaves under the head, so
   the column ends level with the plate */
.rv-feat {
  flex: 1 0 auto;
  align-content: center;
  padding: 28px var(--pad) 28px 48px;
  border-top: 1px solid var(--line);
}

@media (max-width: 1100px) {
  .rv-plate {
    padding: 80px 24px 48px;
  }
}
@media (max-width: 900px) {
  .rv-split {
    grid-template-columns: minmax(0, 1fr);
  }
  .rv-text {
    order: 2;
    border-top: 1px solid var(--line);
    border-left: 0;
  }
  .rv-pic {
    padding: 16px 16px 0;
  }
  .rv-plate {
    min-height: 0;
  }
  .rv-head {
    padding: 56px var(--pad) 32px;
  }
  .rv-feat {
    padding: 24px var(--pad);
  }
  .rv-feat:last-child {
    padding-bottom: 56px;
  }
}
@media (max-width: 520px) {
  .rv-plate {
    padding: 64px 16px 40px;
  }
  .rv-desk {
    width: calc(100% - 20px);
    margin: 20px 20px 0 0;
  }
  .rv-sheet {
    gap: 22px;
    padding: 28px 20px 24px;
  }
  .rv-sheet--back {
    transform: translate(20px, -20px);
  }
}

/* src/css/38-ch-agents.css */
/* 38-ch-agents: the chapter marker is the title and its links alone; the shared
   .chapter rules in 00-base.css lay it out. */

/* src/css/40-agent.css */
/* 40-agent: the AI agent for your team. Built on the kit (pillar, kplate, mk-*) in 00-base.css.
   Each panel is one object: a chat card, a WhatsApp card, three memory tiles. */

/* ── 01 and 02: one chat card, drawn large ────────────────────────────── */
.ag-card {
  --mk-w: 440px;
  font-size: 15px;
  line-height: 22px;
}
.ag-head {
  gap: 12px;
  padding: 16px 20px;
}
.ag-head .mk-head__title {
  font-size: 16px;
}
.ag-body {
  display: grid;
  gap: 18px;
  padding: 22px 20px 24px;
}
.ag-bubble {
  padding: 10px 14px;
  font-size: 16px;
  line-height: 24px;
}
.ag-me {
  display: flex;
  align-items: flex-end;
  justify-content: flex-end;
  gap: 10px;
}
.ag-me .ag-bubble {
  max-width: none;
}
.ag-it {
  display: grid;
  gap: 10px;
  width: 78%;
}
.ag-done {
  display: inline-flex;
  align-items: center;
  justify-self: start;
  gap: 10px;
  padding-top: 18px;
  border-top: 1px solid var(--line);
  width: 100%;
  font-size: 16px;
  font-weight: 500;
  line-height: 24px;
}
/* amber: the change is prepared and waits for a person */
.ag-wait {
  flex: none;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--warn);
}

/* 02: the WhatsApp mark and the numbered options */
.ag-wa {
  display: grid;
  width: 32px;
  height: 32px;
  border-radius: var(--r-sm);
  background: var(--surface);
  box-shadow: inset 0 0 0 1px var(--line-2);
  place-items: center;
}
.ag-wa svg {
  width: 20px;
  height: 20px;
}
.ag-sk {
  display: grid;
  gap: 10px;
  width: 58%;
  padding-block: 14px;
}
.ag-opts {
  display: flex;
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.ag-opts li {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  height: 40px;
  padding: 0 16px 0 8px;
  border-radius: var(--r-md);
  background: var(--surface);
  box-shadow: 0 0 0 1px var(--line-2);
  font-size: 16px;
  font-weight: 500;
}
.ag-num {
  display: grid;
  width: 24px;
  height: 24px;
  border-radius: var(--r-xs);
  background: var(--m-tint);
  color: var(--m-text);
  font: 500 14px/1 var(--font-mono);
  place-items: center;
}

/* ── 03: three equal memory tiles ─────────────────────────────────────── */
.ag-mem {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
  width: min(100%, 640px);
  margin: 0;
  padding: 0;
  list-style: none;
}
.ag-tile {
  display: grid;
  align-content: start;
  gap: 12px;
  width: auto;
  min-width: 0;
  padding: 22px 20px 26px;
}
.ag-ico {
  display: grid;
  width: 44px;
  height: 44px;
  margin-bottom: 6px;
  border-radius: var(--r-md);
  background: var(--m-tint);
  box-shadow: inset 0 0 0 1px var(--m-line);
  color: var(--m-text);
  place-items: center;
}
.ag-ico svg {
  width: 24px;
  height: 24px;
}
.ag-tile__t {
  margin-bottom: 4px;
  font-size: 16px;
  font-weight: 500;
  line-height: 22px;
  text-wrap: balance;
}

@media (max-width: 560px) {
  .ag-mem {
    grid-template-columns: minmax(0, 1fr);
    gap: 12px;
  }
  .ag-tile {
    grid-template-columns: auto minmax(0, 1fr);
    align-items: center;
    gap: 8px 14px;
    padding: 16px;
  }
  .ag-ico {
    grid-row: span 2;
    margin: 0;
  }
  .ag-tile > .mk-skel:last-child {
    display: none;
  }
}

/* ── the section ends on the pillar ───────────────────────────────────────
   No closing line under it any more, so the pillar keeps the 80px a closing
   line used to leave. The rows stay level with the plate; only the list's
   hairline runs on through that space to the band's edge. */
#agent .pillar {
  --ag-end: 80px;
  padding-bottom: var(--ag-end);
}
#agent .pillar__list {
  margin-bottom: calc(-1 * var(--ag-end));
  padding-bottom: var(--ag-end);
}
@media (max-width: 900px) {
  #agent .pillar {
    --ag-end: 56px;
  }
  /* stacked: the list sits above the plate, so it keeps its own height */
  #agent .pillar__list {
    margin-bottom: 0;
    padding-bottom: 0;
  }
}

/* src/css/42-workflows.css */
/* 42-workflows: workflows the agent builds. "The canvas": one wide dotted
   plate in the module hue holding a single flow of four steps joined by a
   line, the AI Agent step marked in the hue. Under it, three feature
   captions, a title and one short line, in hairline columns that close
   the section. */

.wf-wrap {
  padding: 16px;
}
.wf-canvas {
  display: grid;
  min-height: 400px;
  padding: 56px 48px;
  border-radius: var(--r-lg);
  background-color: var(--m-tint);
  background-image: radial-gradient(circle, var(--m-dot) 1px, transparent 1.2px);
  background-size: 16px 16px;
  box-shadow: inset 0 0 0 1px var(--m-line);
  place-items: center;
}

/* ── the flow: four equal nodes on one line ───────────────────────────── */
.wf-flow {
  position: relative;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 40px;
  width: min(100%, 1040px);
  margin: 0;
  padding: 0;
  list-style: none;
}
.wf-flow::before {
  content: "";
  position: absolute;
  top: 50%;
  right: 12.5%;
  left: 12.5%;
  height: 2px;
  margin-top: -1px;
  background: color-mix(in srgb, var(--m-text) 45%, transparent);
}
.wf-n {
  position: relative;
  display: grid;
  align-content: start;
  justify-items: start;
  gap: 16px;
  min-width: 0;
  padding: 20px;
  border-radius: var(--r-lg);
  background: var(--surface);
  box-shadow:
    0 0 0 1px var(--line-2),
    var(--ui-shadow);
}
.wf-n__t {
  color: var(--fg);
  font-size: 16px;
  font-weight: 500;
  line-height: 22px;
  text-wrap: balance;
}

/* the icon tile */
.wf-tile {
  display: grid;
  width: 40px;
  height: 40px;
  border-radius: var(--r-md);
  background: var(--surface-2);
  box-shadow: inset 0 0 0 1px var(--line);
  color: var(--fg-2);
  place-items: center;
}
.wf-tile svg {
  width: 22px;
  height: 22px;
}
.wf-tile--brand {
  background: var(--surface);
  box-shadow: inset 0 0 0 1px var(--line-2);
}

/* the AI Agent step, marked in the hue */
.wf-n--ai {
  background: color-mix(in srgb, var(--m) 8%, var(--surface));
  box-shadow:
    0 0 0 2px var(--m-text),
    var(--ui-shadow);
}
.wf-n--ai .wf-tile {
  background: var(--m-tint);
  box-shadow: inset 0 0 0 1px var(--m-line);
  color: var(--m-text);
}

/* ── the three captions under the canvas, the last thing in the section ─ */
.wf-caps > .cell {
  padding: 40px var(--pad) 48px;
}

/* ── under 900px: the flow turns vertical ─────────────────────────────── */
@media (max-width: 900px) {
  .wf-canvas {
    min-height: 0;
    padding: 40px 20px;
  }
  .wf-flow {
    grid-template-columns: minmax(0, 1fr);
    gap: 28px;
    width: min(100%, 320px);
  }
  .wf-flow::before {
    top: 12.5%;
    right: auto;
    bottom: 12.5%;
    left: 50%;
    width: 2px;
    height: auto;
    margin: 0 0 0 -1px;
  }
  .wf-n {
    grid-template-columns: auto minmax(0, 1fr);
    align-items: center;
    padding: 16px;
  }
  /* stacked: one caption per row, the last keeps the section's end */
  .wf-caps > .cell {
    padding: 24px var(--pad);
  }
  .wf-caps > .cell:last-child {
    padding-bottom: 56px;
  }
}
@media (max-width: 640px) {
  .wf-wrap {
    padding: 12px;
  }
}

/* src/css/44-control.css */
/* 44-control: the dark band. A centred head, the default split of the 380
   actions as three large figures (the picture of this section), then four
   guarantees, a title and one short line each, in a two-by-two grid divided by hairlines. The
   top two carry one tiny object on a plate in the hue; the bottom two an
   icon tile. */

/* ── the three figures: the default mode of every action ──────────────── */
.ct-head {
  padding-bottom: 48px;
}
.ct-head > .lead {
  max-width: 34em;
}
.ct-figs {
  display: flex;
  justify-content: center;
  margin: 0;
  padding: 0 var(--pad) 80px;
  list-style: none;
}
.ct-fig {
  display: grid;
  justify-items: center;
  gap: 12px;
  min-width: 0;
  padding: 0 64px;
}
.ct-fig + .ct-fig {
  border-left: 1px solid var(--line);
}
.ct-fig__n {
  font: var(--display-w) 120px/1 var(--font-display);
  letter-spacing: -0.04em;
}
.ct-fig__k {
  color: var(--fg-2);
  font: 500 16px/24px var(--font-body);
  white-space: nowrap;
}
.ct-fig--auto .ct-fig__n {
  color: var(--ok);
}
.ct-fig--ask .ct-fig__n {
  color: var(--warn-text);
}
.ct-fig--off .ct-fig__n {
  color: var(--fg-2);
}

/* ── four guarantees: a two-by-two grid divided by hairlines ──────────── */
.ct-quad {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}
.ct-cell {
  display: grid;
  grid-template-rows: auto 1fr;
  align-content: start;
  gap: 32px;
  min-width: 0;
  padding: 48px 48px 56px;
}
.ct-cell:nth-child(even) {
  border-left: 1px solid var(--line);
}
.ct-cell:nth-child(n + 3) {
  border-top: 1px solid var(--line);
}
.ct-cell--plain {
  grid-template-rows: none;
  gap: 24px;
}
.ct-cell > .feat {
  max-width: 30em;
}
/* the bottom row ends the section: a little more room under it */
.ct-cell:nth-child(n + 3) {
  padding-bottom: 64px;
}

/* icon tile in the module hue */
.ct-ico {
  display: grid;
  flex: none;
  width: 36px;
  height: 36px;
  border-radius: var(--r-md);
  background: var(--m-tint);
  box-shadow: inset 0 0 0 1px var(--m-line);
  color: var(--m-text);
  place-items: center;
}
.ct-ico svg {
  width: 20px;
  height: 20px;
}
.ct-ico--lg {
  width: 52px;
  height: 52px;
}
.ct-ico--lg svg {
  width: 26px;
  height: 26px;
}

/* the small plate behind each of the two objects */
.ct-plate {
  --kplate-h: 220px;
  padding: 40px 24px;
}

/* ── 01: one action, one three-way switch ─────────────────────────────── */
.ct-row {
  --mk-w: 380px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 16px 16px 16px 20px;
}
.ct-row__name {
  min-width: 0;
  overflow: hidden;
  font-size: 16px;
  font-weight: 500;
  line-height: 24px;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.ct-seg {
  display: flex;
  flex: none;
  gap: 2px;
  padding: 3px;
  border-radius: var(--r-md);
  background: var(--surface-2);
  box-shadow: inset 0 0 0 1px var(--line);
}
.ct-seg__o {
  display: grid;
  width: 36px;
  height: 30px;
  border-radius: var(--r-sm);
  place-items: center;
}
.ct-seg__o::before {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--dot);
  content: "";
}
.ct-seg__o--auto {
  --dot: var(--ok);
}
.ct-seg__o--ask {
  --dot: var(--warn-text);
}
.ct-seg__o--off {
  --dot: var(--fg-3);
}
.ct-seg__o.is-on {
  background: var(--surface);
  box-shadow: 0 0 0 1.5px var(--primary);
}

/* ── 02: one request waiting for approval ─────────────────────────────── */
.ct-ask {
  --mk-w: 320px;
  display: grid;
  gap: 14px;
  padding: 20px;
}
.ct-ask__top {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 4px;
}
.ct-ask__state {
  color: var(--warn-text);
  font-size: 16px;
  font-weight: 500;
  line-height: 24px;
}
.ct-ask__btn {
  justify-self: start;
  height: 34px;
  margin-top: 6px;
  padding: 0 16px;
  font-size: 14px;
}

@media (max-width: 900px) {
  .ct-quad {
    grid-template-columns: minmax(0, 1fr);
  }
  .ct-cell {
    padding: 40px var(--pad) 48px;
  }
  .ct-cell:nth-child(n + 3) {
    padding-bottom: 48px;
  }
  .ct-cell:last-child {
    padding-bottom: 56px;
  }
  .ct-cell:nth-child(even) {
    border-left: 0;
  }
  .ct-cell + .ct-cell {
    border-top: 1px solid var(--line);
  }
  .ct-plate {
    --kplate-h: 200px;
    padding: 32px 16px;
  }
  .ct-fig {
    padding: 0 40px;
  }
  .ct-fig__n {
    font-size: 88px;
  }
}
@media (max-width: 640px) {
  .ct-figs {
    flex-direction: column;
    align-items: center;
    gap: 32px;
    padding-bottom: 56px;
  }
  .ct-fig {
    padding: 0;
  }
  .ct-fig + .ct-fig {
    border-left: 0;
  }
  .ct-fig__n {
    font-size: 72px;
  }
}
@media (max-width: 400px) {
  .ct-row__name {
    font-size: 15px;
    white-space: normal;
  }
  .ct-seg__o {
    width: 28px;
  }
}

/* src/css/46-mcp.css */
/* 46-mcp: ChatGPT or Claude over MCP. A split: on the left the head, the
   server address as a code line and three numbered steps; on the right one
   picture on a plate in the hue: ChatGPT and Claude joined by one line to GoKiwi. */

/* ── the split: text left (about 44%), picture right, one hairline ────── */
.mcp-split {
  display: grid;
  grid-template-columns: minmax(0, 44fr) minmax(0, 56fr);
}
.mcp-text,
.mcp-pic {
  min-width: 0;
}
.mcp-pic {
  display: grid;
  padding: 40px;
  border-left: 1px solid var(--line);
}
.mcp-head {
  padding-bottom: 32px;
}

/* ── the server address, a real code line ─────────────────────────────── */
.mcp-code {
  display: grid;
  gap: 8px;
  padding: 0 var(--pad) 40px;
}
.mcp-code__k {
  color: var(--fg-2);
  font: 500 14px/20px var(--font-body);
}
.mcp-code__line {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  width: min(100%, 420px);
  height: 48px;
  padding: 0 8px 0 16px;
  border-radius: var(--r-md);
  background: var(--surface-2);
  box-shadow: inset 0 0 0 1px var(--line);
}
.mcp-code__v {
  min-width: 0;
  overflow: hidden;
  font: 400 15px/20px var(--font-mono);
  letter-spacing: 0;
  color: var(--fg);
  text-overflow: ellipsis;
  white-space: nowrap;
}
.mcp-code__copy {
  display: inline-flex;
  flex: none;
  align-items: center;
  gap: 6px;
  height: 32px;
  padding: 0 12px;
  border-radius: var(--r-sm);
  background: var(--surface);
  box-shadow: 0 0 0 1px var(--line-2);
  color: var(--fg-2);
  font: 500 14px/1 var(--font-body);
}
.mcp-code__copy svg {
  width: 16px;
  height: 16px;
}

/* ── three numbered steps: here the numbers mean order ────────────────── */
.mcp-steps {
  display: grid;
  margin: 0;
  padding: 0;
  border-top: 1px solid var(--line);
  list-style: none;
}
.mcp-step {
  display: grid;
  grid-template-columns: 40px minmax(0, 1fr);
  align-items: start;
  gap: 8px;
  padding: 24px var(--pad);
}
.mcp-step + .mcp-step {
  border-top: 1px solid var(--line);
}
.mcp-step__n {
  display: grid;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: var(--m-tint);
  box-shadow: inset 0 0 0 1px var(--m-line);
  color: var(--m-text);
  font: 600 14px/1 var(--font-body);
  place-items: center;
  margin-top: -2px; /* level with the 26px title line */
}
/* the steps end the text column: the 80px a closing line used to leave
   (24px of the last step's padding plus 56px) */
.mcp-text {
  padding-bottom: 56px;
}

/* ── the picture: two assistants, one line, GoKiwi ───────────────────── */
.mcp-plate {
  --kplate-h: 100%;
  padding: 48px 32px;
}
.mcp-map {
  --t: 112px; /* assistant tile */
  --k: 148px; /* GoKiwi tile */
  --lab: 34px; /* gap plus the name under a tile */
  --g: 40px; /* between the two assistants */
  --mid: calc(var(--t) / 2 + (var(--t) + var(--lab) + var(--g)) / 2);
  display: grid;
  grid-template-columns: auto minmax(64px, 200px) auto;
  align-items: start;
}
.mcp-ais {
  display: grid;
  gap: var(--g);
}
.mcp-node {
  display: grid;
  justify-items: center;
  gap: 10px;
}
.mcp-node__k {
  color: var(--fg);
  font: 500 16px/24px var(--font-body);
  white-space: nowrap;
}
.mcp-node--kiwi {
  margin-top: calc(var(--mid) - var(--k) / 2);
}

/* the line: a bracket joining both tiles, then one straight run to GoKiwi */
.mcp-link {
  position: relative;
  height: calc(2 * var(--t) + 2 * var(--lab) + var(--g));
}
.mcp-link::before,
.mcp-link::after {
  position: absolute;
  content: "";
}
.mcp-link::before {
  top: calc(var(--t) / 2);
  left: 0;
  width: 24px;
  height: calc(var(--t) + var(--lab) + var(--g));
  border: 2px solid var(--m-text);
  border-left: 0;
  border-radius: 0 var(--r-lg) var(--r-lg) 0;
}
.mcp-link::after {
  top: calc(var(--mid) - 1px);
  right: 0;
  left: 24px;
  border-top: 2px solid var(--m-text);
}
.mcp-link__k {
  position: absolute;
  top: calc(var(--mid) - 34px);
  right: 0;
  left: 24px;
  color: var(--m-text);
  font: 600 15px/24px var(--font-body);
  text-align: center;
}

/* brand tile: a white square holding a brand mark */
.mcp-tile {
  display: grid;
  width: var(--t);
  height: var(--t);
  border-radius: var(--r-lg);
  background: var(--surface);
  box-shadow:
    0 0 0 1px var(--line-2),
    var(--ui-shadow);
  place-items: center;
}
.mcp-tile svg {
  width: 52px;
  height: 52px;
}
.mcp-tile--openai {
  color: var(--fg);
}
.mcp-tile--kiwi {
  width: var(--k);
  height: var(--k);
  box-shadow:
    0 0 0 1.5px var(--primary-line),
    var(--ui-shadow);
  color: var(--primary);
}
.mcp-tile--kiwi svg {
  width: 72px;
  height: 72px;
}

@media (max-width: 900px) {
  .mcp-split {
    grid-template-columns: minmax(0, 1fr);
  }
  .mcp-pic {
    padding: 0 var(--pad) 48px;
    border-left: 0;
  }
  .mcp-plate {
    --kplate-h: 440px;
  }
  .mcp-text {
    padding-bottom: 32px;
  }
}
@media (max-width: 640px) {
  .mcp-plate {
    --kplate-h: 400px;
    padding: 40px 16px;
  }
  .mcp-map {
    --t: 72px;
    --k: 96px;
    --g: 32px;
    grid-template-columns: auto minmax(56px, 1fr) auto;
  }
  .mcp-tile svg {
    width: 34px;
    height: 34px;
  }
  .mcp-tile--kiwi svg {
    width: 46px;
    height: 46px;
  }
}

/* src/css/80-agencies.css */
/* 80-agencies: tint split. Left, the copy and three facts. Right, over a
   soft blue wash and fine vertical lines, one card: the agency's own workspace under its
   own name, with one workspace per client.
   Sanctioned exception: --brand-own stands for the agency's own colour, the one hue outside
   the palette, because the message is "your colour, not ours". It lives only on the agency's
   logo tile. */

:root {
  --brand-own: #b4533c;
}

.brand-split {
  display: grid;
  grid-template-columns: minmax(0, 44fr) minmax(0, 56fr);
  min-height: 600px;
}

/* ── left: copy ───────────────────────────────────────────────────────── */
.brand-copy {
  display: grid;
  align-content: center;
  justify-items: start;
  padding: 72px var(--pad);
}
.brand-copy__title {
  max-width: 15em;
  margin-top: 20px;
}
.brand-copy__text {
  max-width: 26em;
  margin-top: 16px;
  text-wrap: balance;
}
/* the skins widen every .brand-copy paragraph; keep the sub-line to the width of the facts under it */
#agencies .brand-copy__text {
  max-width: 26em;
}
.brand-facts {
  display: grid;
  width: 100%;
  max-width: 460px;
  margin-top: 36px;
  border-top: 1px solid var(--line);
}
.brand-fact {
  padding: 14px 0;
  border-bottom: 1px solid var(--line);
}
.brand-fact__title {
  color: var(--fg);
  font: 500 15px/22px var(--font-body);
  letter-spacing: -0.2px;
}

/* ── right: the stage ─────────────────────────────────────────────────── */
.brand-stage {
  position: relative;
  display: grid;
  place-items: center;
  overflow: hidden;
  padding: 72px 40px;
  background: var(--bg);
  border-left: 1px solid var(--line);
  isolation: isolate;
}
/* sanctioned backdrop: a soft blue wash rising from the bottom edge, over fine vertical lines */
.brand-stage__glow,
.brand-stage::before,
.brand-stage::after {
  content: "";
  position: absolute;
  pointer-events: none;
}
.brand-stage::before {
  z-index: -2;
  inset: 0;
  background: repeating-linear-gradient(90deg, color-mix(in srgb, var(--blue) 7%, transparent) 0 1px, transparent 1px 8px);
  -webkit-mask-image: linear-gradient(to top, var(--ink) 0%, color-mix(in srgb, var(--ink) 45%, transparent) 30%, transparent 65%);
  mask-image: linear-gradient(to top, var(--ink) 0%, color-mix(in srgb, var(--ink) 45%, transparent) 30%, transparent 65%);
}
.brand-stage__glow {
  z-index: -1;
  left: -10%;
  right: -10%;
  bottom: 0;
  height: 80%;
  background:
    radial-gradient(ellipse 60% 70% at 50% 100%, color-mix(in srgb, var(--blue-bright) 22%, transparent) 0%, color-mix(in srgb, var(--blue) 7%, transparent) 40%, transparent 72%),
    radial-gradient(ellipse 90% 30% at 50% 100%, color-mix(in srgb, var(--blue) 10%, transparent) 0%, transparent 70%);
}
/* the horizon itself: a thin blue line along the bottom edge */
.brand-stage::after {
  z-index: -1;
  left: 0;
  right: 0;
  bottom: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent 5%, color-mix(in srgb, var(--blue) 35%, transparent) 30%, color-mix(in srgb, var(--blue) 70%, transparent) 50%, color-mix(in srgb, var(--blue) 35%, transparent) 70%, transparent 95%);
}

/* ── the agency's workspace ───────────────────────────────────────────── */
.brand-ws {
  --mk-w: 380px;
}
.brand-ws__head {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 18px 20px;
  border-bottom: 1px solid var(--line);
}
.brand-logo {
  display: grid;
  flex: none;
  place-items: center;
  width: 32px;
  height: 32px;
  border-radius: var(--r-md);
  background: var(--brand-own);
  color: var(--white);
  font: var(--display-w) 16px/1 var(--font-display);
}
.brand-ws__name {
  flex: 1;
  min-width: 0;
  font-size: 16px;
  font-weight: 600;
  line-height: 22px;
}
.brand-url {
  overflow: hidden;
  color: var(--fg-3);
  font: 400 13px/18px var(--font-mono);
  text-overflow: ellipsis;
  white-space: nowrap;
}
.brand-clients {
  display: grid;
  gap: 8px;
  padding: 16px;
}
.brand-clients li {
  display: flex;
  align-items: center;
  gap: 14px;
  min-height: 56px;
  padding: 0 12px;
  border-radius: var(--r-md);
}
.brand-clients li.is-on {
  background: var(--primary-tint);
}
.brand-client__logo {
  display: grid;
  flex: none;
  place-items: center;
  width: 32px;
  height: 32px;
  border-radius: var(--r-sm);
  background: var(--surface-2);
  box-shadow: inset 0 0 0 1px var(--line);
  color: var(--fg-2);
  font: 600 14px/1 var(--font-body);
}
.is-on > .brand-client__logo {
  background: var(--surface);
  box-shadow: inset 0 0 0 1px var(--primary-line);
  color: var(--primary-text);
}
.brand-client__name {
  font-size: 15px;
  font-weight: 500;
  line-height: 22px;
}

/* ── responsive ───────────────────────────────────────────────────────── */
@media (max-width: 1100px) {
  .brand-split {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr);
  }
}
@media (max-width: 900px) {
  .brand-split {
    grid-template-columns: minmax(0, 1fr);
    min-height: 0;
  }
  .brand-copy {
    padding: 72px var(--pad) 56px;
  }
  .brand-stage {
    padding: 56px 24px 64px;
    border-left: 0;
    border-top: 1px solid var(--line);
  }
}
@media (max-width: 520px) {
  .brand-stage {
    padding: 48px 16px 56px;
  }
}

/* src/css/85-start.css */
/* 85-start: white band, getting started. Three steps in one row, each with one small
   still picture on a dotted plate: four channels joined to one inbox, one document,
   the three action modes. */

:root {
  --how-shade: color-mix(in srgb, var(--ink) 16%, transparent);
}

.how-head > .h2 {
  max-width: 15em;
}
.how-head > .h2 > .dim {
  display: block;
}

.how-step {
  display: flex;
  flex-direction: column;
  padding: 32px var(--pad) 56px;
}
.how-vis {
  display: grid;
  place-items: center;
  height: 208px;
  margin-bottom: 24px;
  padding: 20px;
  border-radius: var(--r-lg);
  overflow: hidden;
}
/* step marker: a short blue tick and the step number */
.how-num {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 8px;
  color: var(--fg-3);
  font: 400 11px/16px var(--font-mono);
  letter-spacing: 0.04em;
}
.how-num > i {
  width: 14px;
  height: 2px;
  border-radius: var(--r-xs);
  background: var(--primary);
}
.how-title {
  font: 500 16px/24px var(--font-body);
  letter-spacing: -0.32px;
}
/* the mini line under the title: one unit with it */
.how-text {
  max-width: 30em;
  margin-top: 4px;
  color: var(--fg-2);
  font-size: 14px;
  line-height: 20px;
  letter-spacing: 0;
  text-wrap: pretty;
}

/* ── shared: a white card on the plate ─────────────────────────────────── */
.how-inbox,
.how-doc,
.how-rules li {
  border-radius: var(--r-md);
  background: var(--surface);
  box-shadow:
    0 0 0 1px var(--line-2),
    0 6px 14px -8px var(--how-shade);
}

/* ── 1: four channels in a row, joined to one inbox ────────────────────── */
.how-join {
  display: grid;
  justify-items: center;
}
.how-chans {
  display: flex;
  gap: 16px;
}
.how-chans > .mtile {
  width: 40px;
  height: 40px;
  border-radius: var(--r-md);
}
.how-wires {
  display: block;
}
.how-wires path {
  fill: none;
  stroke: var(--primary-line);
  stroke-width: 1.5;
}
.how-inbox {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 10px 18px 10px 14px;
  background: var(--primary-tint);
  box-shadow:
    0 0 0 1px var(--primary-line),
    0 6px 14px -8px var(--how-shade);
  color: var(--fg);
  font-size: 15px;
  font-weight: 500;
  line-height: 22px;
}
.how-inbox > svg {
  color: var(--primary-text);
}

/* ── 2: one document ───────────────────────────────────────────────────── */
.how-doc {
  display: grid;
  gap: 12px;
  width: 100%;
  max-width: 240px;
  padding: 16px 18px 20px;
}
.how-doc__head {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 4px;
  color: var(--fg);
  font-size: 15px;
  font-weight: 500;
  line-height: 22px;
}
.how-doc__ico {
  display: grid;
  flex: none;
  place-items: center;
  width: 32px;
  height: 32px;
  border-radius: var(--r-sm);
  background: var(--primary-tint);
  color: var(--primary-text);
}

/* ── 3: the three action modes ─────────────────────────────────────────── */
.how-rules {
  display: grid;
  gap: 8px;
  width: 100%;
  max-width: 240px;
}
.how-rules li {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 46px;
  padding: 0 16px;
  color: var(--c-fg, var(--fg));
  font-size: 15px;
  font-weight: 500;
  line-height: 22px;
  white-space: nowrap;
}
.how-rules__dot {
  flex: none;
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: var(--c);
  box-shadow: 0 0 0 3px var(--c-bg);
}
.how-rules li.how-rules__off {
  color: var(--fg-2);
}
.how-rules__off .how-rules__dot {
  background: var(--surface);
  box-shadow: inset 0 0 0 1.5px var(--fg-3);
}

/* ── responsive ───────────────────────────────────────────────────────── */
@media (max-width: 900px) {
  .how-step {
    padding: 32px var(--pad) 40px;
  }
  .how-step:last-child {
    padding-bottom: 56px;
  }
}

/* src/css/90-faq.css */
/* 90 FAQ: headline left, quiet accordion right, no boxes */
.faq-in {
  display: grid;
  grid-template-columns: minmax(0, 36fr) minmax(0, 64fr);
  gap: 32px;
  padding: 104px var(--pad);
}
.faq-title {
  font-size: 32px;
  line-height: 40px;
  padding-top: 6px;
}
.faq-list {
  display: grid;
  margin-top: -14px;
}
.faq-q {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 14px 0;
  font-size: 16px;
  font-weight: 500;
  line-height: 24px;
  letter-spacing: -0.32px;
  cursor: pointer;
  list-style: none;
  user-select: none;
  -webkit-tap-highlight-color: transparent;
}
.faq-q::-webkit-details-marker {
  display: none;
}
.faq-q::marker {
  content: "";
}
/* plus at text size in currentColor, no coin: two 1.5px bars; the vertical bar turns flat to make a minus */
.faq-ico {
  position: relative;
  flex: none;
  width: 16px;
  height: 16px;
  color: var(--fg);
}
.faq-ico::before,
.faq-ico::after {
  content: "";
  position: absolute;
  top: 7.25px;
  left: 2px;
  width: 12px;
  height: 1.5px;
  background: currentColor;
}
.faq-ico::after {
  transform: rotate(90deg);
}
.faq-item[open]:not(.is-closing) .faq-ico::after {
  transform: rotate(0deg);
}
.faq-item[open]:not(.is-closing) .faq-ico,
.faq-q:hover .faq-ico {
  color: var(--primary-text);
}
.faq-a {
  overflow: hidden;
}
.faq-a > p {
  max-width: 38em;
  padding: 0 40px 18px 0;
}
.faq-q > span {
  color: var(--fg);
}
.faq-item:not([open]) .faq-q:hover > span {
  color: var(--primary-text);
}

@media (prefers-reduced-motion: no-preference) {
  .faq-ico {
    transition: color var(--dur) var(--ease);
  }
  .faq-ico::after {
    transition: transform 320ms var(--ease);
  }
  .faq-q > span {
    transition: color var(--dur) var(--ease);
  }
}

@media (max-width: 900px) {
  .faq-in {
    grid-template-columns: minmax(0, 1fr);
    gap: 32px;
    padding-block: 72px;
  }
  .faq-title {
    font-size: 28px;
    line-height: 36px;
    padding-top: 0;
  }
  .faq-list {
    margin-top: 0;
  }
}
@media (max-width: 700px) {
  .faq-a > p {
    padding-right: 0;
  }
}

/* src/css/95-cta.css */
/* 95 CTA: a plain dark band. Fine vertical lines and a soft blue wash rise from the
   bottom edge and fade into the dark; no arc (the arc belongs to Control). */
:root {
  --cta-wash: color-mix(in srgb, var(--blue) 18%, transparent);
  --cta-wash-low: color-mix(in srgb, var(--blue-bright) 6%, transparent);
  --cta-lines: color-mix(in srgb, var(--blue-bright) 10%, transparent);
}

.cta-band {
  position: relative;
  display: flex;
  justify-content: center;
  min-height: 520px;
  overflow: hidden;
  isolation: isolate;
}

/* sanctioned backdrop: the wash and the lines sit on the band's bottom edge */
.cta-wash,
.cta-wash::before {
  position: absolute;
  inset: auto 0 0;
  pointer-events: none;
}
.cta-wash {
  z-index: -1;
  height: 70%;
  background: radial-gradient(ellipse 60% 100% at 50% 100%, var(--cta-wash) 0%, var(--cta-wash-low) 55%, transparent 80%);
}
.cta-wash::before {
  content: "";
  height: 100%;
  background: repeating-linear-gradient(90deg, var(--cta-lines) 0 1px, transparent 1px 7px);
  -webkit-mask-image: radial-gradient(ellipse 55% 100% at 50% 100%, var(--ink) 0%, color-mix(in srgb, var(--ink) 40%, transparent) 45%, transparent 75%);
  mask-image: radial-gradient(ellipse 55% 100% at 50% 100%, var(--ink) 0%, color-mix(in srgb, var(--ink) 40%, transparent) 45%, transparent 75%);
}

.cta-in {
  position: relative;
  z-index: 1;
  display: grid;
  justify-items: center;
  align-content: start;
  width: 100%;
  padding: 128px var(--pad) 176px;
  text-align: center;
}
.cta-title {
  max-width: 17em;
  text-wrap: balance;
}
.cta-text {
  max-width: 30em;
  text-wrap: balance;
  margin-top: 20px;
}
.cta-btns {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
  margin-top: 32px;
}

@media (max-width: 900px) {
  .cta-band {
    min-height: 460px;
  }
  .cta-in {
    padding: 96px var(--pad) 144px;
  }
}
@media (max-width: 700px) {
  .cta-band {
    min-height: 0;
  }
  .cta-in {
    padding: 72px var(--pad) 120px;
  }
  .cta-wash {
    height: 60%;
  }
}

/* src/css/99-footer.css */
/* 99 Footer: brand and link columns, giant outlined wordmark, copyright row */
.ft-top {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 48px;
  min-height: 240px;
  padding: var(--pad);
}
.ft-brand svg {
  color: var(--primary);
}
.ft-brand {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font: 500 22px/1 var(--font-display);
  letter-spacing: -0.03em;
}
.ft-blurb {
  max-width: 22em;
  margin-top: 16px;
}
.ft-cols {
  display: grid;
  grid-template-columns: repeat(3, 152px);
}
.ft-head {
  margin-bottom: 14px;
  font-weight: 400;
  color: var(--fg-3);
}
.ft-col ul {
  display: grid;
  gap: 8px;
}
.ft-col a {
  font-size: 14px;
  line-height: 20px;
  letter-spacing: 0;
  color: var(--fg-2);
}
.ft-col a:hover {
  color: var(--primary-text);
}
.ft-mark {
  padding: 48px var(--pad) 24px;
}
.ft-mark svg {
  width: 100%;
  height: auto;
  overflow: visible;
}
.ft-mark text {
  fill: none;
  stroke: url(#ft-stroke);
  stroke-width: 1px;
  vector-effect: non-scaling-stroke;
  font-family: var(--font-display);
  font-weight: 400;
}
/* footer backdrop: the outline fades toward blue at its right end */
.ft-stop {
  stop-color: var(--fg);
  stop-opacity: 0.18;
}
.ft-stop--blue {
  stop-color: var(--primary);
  stop-opacity: 0.55;
}
.ft-bottom {
  display: flex;
  align-items: center;
  padding: var(--pad);
}
.ft-copy {
  color: var(--fg-3);
}

@media (prefers-reduced-motion: no-preference) {
  .ft-col a {
    transition: color var(--dur) var(--ease);
  }
}

@media (max-width: 900px) {
  .ft-top {
    grid-template-columns: minmax(0, 1fr);
    gap: 40px;
    min-height: 0;
    padding-bottom: 40px;
  }
  .ft-cols {
    grid-template-columns: repeat(3, minmax(0, 152px));
    column-gap: 16px;
  }
  .ft-mark {
    padding-top: 32px;
    padding-bottom: 8px;
  }
}

/* src/skins/attio.css */
/* Skin "attio": the accrue skin with the type scale and the page rhythm
   measured on attio.com on 25 November 2026. Same sections, markup and copy.
   Rules: src/skins/attio.md. Section fixes live in attio.<part>.css.

   What is taken from the reference: the sizes, weights, tracking and line
   heights of each text role, the size and radius of the buttons, and three
   habits of the page (one loud headline at the top and one at the end, one
   two-tone statement per section in place of tag + headline + sub-line, few
   grounds that change rarely) and, since the owner asked for
   them too, the colours. No logo, copy or image comes from the reference. */
/* src/skins/accrue.css */
/* Skin "accrue": Accrue's colours and layout with Swervel's type, shapes and
   spacing. Same sections, same markup, same copy as the main page.
   From Accrue: the light greyscale palette (paper #fafafa, white and #f5f5f5
   bands, a warm near-black for the loud ones), the ruled frame with its
   hairlines, the left-aligned hero with a two-tone headline, the dashboard
   on a backdrop of diagonal stripes.
   From the "swervel" skin: the typography (Inter tracked tight at weight
   450, sentence case, no capitals), the shapes (pill buttons, pill tags,
   6 and 12px radii, 1px rings in place of shadows) and the spacing (a
   1448px column with 24px gutters, a 64px header). No colour is taken from it.
   Loaded after every other stylesheet by build.mjs into accrue.html.
   Rules: src/skins/accrue.md. */

/* ── tokens ───────────────────────────────────────────────────────────── */
:root {
  --ink: #0e0b0a;
  --paper: #fafafa;
  --white: #ffffff;
  --tint: #f5f5f5;
  --tint-2: #ebebeb;

  /* greyscale: the "blue" role is the ink (on dark bands, white) */
  --blue: #0e0b0a;
  --blue-hover: #2b2725;
  --blue-ink: #0e0b0a;
  --blue-bright: #ffffff;
  --c-neutral: #737373;

  /* done and waiting keep their colour, small */
  --kiwi: #22a06b;
  --kiwi-ink: #17754a;
  --kiwi-bright: #63d6a0;
  --warn: #d99413;
  --warn-ink: #8a5a00;
  --warn-bright: #f0b955;

  /* module hues are switched off: every module is the same grey */
  --m-inbox: #8a8a8a;
  --m-customer-agent: #8a8a8a;
  --m-phone: #8a8a8a;
  --m-marketing: #8a8a8a;
  --m-crm: #8a8a8a;
  --m-work: #8a8a8a;
  --m-meetings: #8a8a8a;
  --m-revenue: #8a8a8a;
  --m-agent: #8a8a8a;
  --m-workflows: #8a8a8a;
  --m-control: #8a8a8a;
  --m-mcp: #8a8a8a;
  /* the agency's own logo in the agencies drawing: ink like the rest */
  --brand-own: #0e0b0a;

  --font-body: "Inter", "Helvetica Neue", Helvetica, Arial, sans-serif;
  /* Inter only, by the owner's rule for every version of the page */
  --font-display: var(--font-body);
  --font-mono: var(--font-body);
  /* type, shapes and spacing follow the swervel skin */
  --display-w: 450;

  --r-xs: 6px;
  --r-sm: 6px;
  --r-md: 12px;
  --r-lg: 12px;

  --frame: 1448px;
  --pad: 24px;
  --nav-h: 64px;

  --ease: cubic-bezier(0.4, 0, 0.2, 1);
  --dur: 150ms;

  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --dur: 200ms;

  --shade-xs: rgba(0, 0, 0, 0.06);
  --shade-sm: rgba(0, 0, 0, 0.08);
  --btn-hilite: transparent;
  --btn-drop: transparent;

  /* lines: the measured hairline on light, white at 12% on dark */
  --ac-rule: rgba(168, 168, 168, 0.2);
  --ac-rule-dark: rgba(255, 255, 255, 0.12);
  --ac-ring: rgba(14, 11, 10, 0.08);
  --ac-ring-2: rgba(14, 11, 10, 0.12);
  --ac-fg-2: rgba(14, 11, 10, 0.56);
  --ac-fg-3: rgba(14, 11, 10, 0.4);
  --ac-dark-surface: #1a1716;
  --ac-dark-surface-2: #252120;
  --ac-band-tint-2: #ededed;
  /* the tag and the primary button share one soft shadow */
  --ac-soft: 0 2px 4px rgba(0, 0, 0, 0.1), 0 1px 2px -1px rgba(0, 0, 0, 0.08);
  --ac-soft-2: 0 1px 2px rgba(0, 0, 0, 0.08);
  --ac-card: 0 1px 2px rgba(0, 0, 0, 0.04), 0 8px 24px -12px rgba(0, 0, 0, 0.12);

  /* hero backdrop: soft diagonal metallic stripes, the one decorative gradient */
  --ac-steel-1: #d9d9d9;
  --ac-steel-2: #f2f2f2;
  --ac-steel-3: #e3e3e3;
  --ac-steel-4: #fbfbfb;
  --ac-sweep-hi: rgba(255, 255, 255, 0.55);
  --ac-sweep-lo: rgba(14, 11, 10, 0.1);
}

/* ── bands ────────────────────────────────────────────────────────────── */
:root,
[data-theme="light"],
[data-theme="white"],
[data-theme="tint"],
[data-theme="hue"],
.sec[data-theme="dark"] .kplate {
  --bg: var(--paper);
  --surface: var(--white);
  --surface-2: var(--tint);
  --fg: var(--ink);
  --fg-2: var(--ac-fg-2);
  --fg-3: var(--ac-fg-3);
  --line: var(--ac-rule);
  --line-2: var(--ac-ring-2);
  --ok: var(--kiwi-ink);
  --warn-text: var(--warn-ink);
  --primary: var(--ink);
  --primary-fg: var(--white);
  --primary-text: var(--ink);
  --primary-tint: color-mix(in srgb, var(--ink) 6%, var(--white));
  --primary-line: var(--ac-ring-2);
  --plate-dot: transparent;
  --ui-shadow: var(--ac-card);
  --ac-quiet: var(--tint);
  --ac-plate: var(--tint);
}
[data-theme="white"] {
  --bg: var(--white);
}
[data-theme="tint"],
[data-theme="hue"] {
  --bg: var(--tint);
  --surface-2: var(--ac-band-tint-2);
  --ac-quiet: var(--white);
  --ac-plate: var(--white);
}
[data-theme="dark"] {
  --bg: var(--ink);
  --surface: var(--ac-dark-surface);
  --surface-2: var(--ac-dark-surface-2);
  --fg: var(--white);
  --fg-2: rgba(255, 255, 255, 0.58);
  --fg-3: rgba(255, 255, 255, 0.4);
  --line: var(--ac-rule-dark);
  --line-2: rgba(255, 255, 255, 0.18);
  --ok: var(--kiwi-bright);
  --warn-text: var(--warn-bright);
  --primary: var(--white);
  --primary-fg: var(--ink);
  --primary-text: var(--white);
  --primary-tint: color-mix(in srgb, var(--white) 10%, var(--ac-dark-surface));
  --primary-line: rgba(255, 255, 255, 0.24);
  --plate-dot: transparent;
  --ui-shadow: 0 1px 2px rgba(0, 0, 0, 0.3), 0 16px 40px -12px rgba(0, 0, 0, 0.6);
  --ac-quiet: var(--ac-dark-surface-2);
  --ac-plate: var(--ac-dark-surface);
}

/* module accents: one neutral grey, no dots */
.sec[data-mod],
.sec[data-mod][data-theme="hue"],
.sec[data-mod][data-theme="dark"] {
  --m-tint: var(--ac-plate);
  --m-line: var(--line-2);
  --m-dot: transparent;
  --m-text: var(--fg-2);
}
.sec[data-mod][data-theme="dark"] .kplate {
  --m-tint: var(--tint);
  --m-line: var(--ac-ring);
  --m-dot: transparent;
  --m-text: var(--ac-fg-2);
}
::selection {
  background: color-mix(in srgb, var(--ink) 14%, transparent);
}

/* ── frame: keep the ledger, in the measured line colour ──────────────── */
.nav {
  border-bottom-color: var(--ac-rule);
}

/* ── type ─────────────────────────────────────────────────────────────── */
.h1,
.h2,
.h3,
.title {
  font-family: var(--font-display);
  font-weight: var(--display-w);
}
.h1 {
  font-size: clamp(36px, 2.6vw + 24px, 56px);
  line-height: 1.143;
  letter-spacing: -0.02em;
}
.h2 {
  font-size: clamp(32px, 1.6vw + 22px, 44px);
  line-height: 1.16;
  letter-spacing: -0.02em;
}
.h3 {
  font-size: clamp(24px, 0.8vw + 20px, 32px);
  line-height: 1.25;
  letter-spacing: -0.01em;
}
.title,
.pillar__title,
.feat__title,
.kcard__title {
  font-family: var(--font-display);
  font-weight: var(--display-w);
  letter-spacing: -0.01em;
}
.lead {
  font-size: 16px;
  font-weight: 400;
  line-height: 24px;
  letter-spacing: -0.2px;
}
.lead.soft {
  color: var(--fg-2);
}

/* everything a machine would say: Inter in tracked capitals */
.mono,
.mono-s,
.mono-xs,
.pill,
.kcard__label,
.ui__head,
.chapter__links a {
  font-family: var(--font-mono);
  font-weight: 500;
  text-transform: uppercase;
}
.mono {
  font-size: 13px;
  line-height: 20px;
  letter-spacing: 0;
}
.mono-s,
.kcard__label,
.chapter__links a {
  font-size: 12px;
  line-height: 16px;
  letter-spacing: 0.02em;
}
.mono-xs,
.ui__head,
.pill {
  font-size: 11px;
  letter-spacing: 0.04em;
}
.pillar__num {
  font: 500 12px/20px var(--font-mono);
  letter-spacing: 0.05em;
}

/* ── tag: a small white chip with a soft shadow ───────────────────────── */
html .tag,
html [data-theme] .tag[data-mod] {
  --tag-bg: var(--white);
  --tag-fg: var(--ink);
  --tag-ico: var(--ink);
  gap: 7px;
  height: 26px;
  padding: 0 9px 0 7px;
  border-radius: var(--r-sm);
  background: var(--white);
  box-shadow: var(--ac-soft);
  color: var(--ink);
  font: 500 12px/16px var(--font-mono);
  letter-spacing: 0.05em;
  text-transform: uppercase;
}
/* a tiny square, no disc */
.tag__ico {
  width: 8px;
  height: 8px;
  border-radius: 0;
}
.tag__ico::before,
.tag__ico::after {
  display: none;
}

/* ── buttons ──────────────────────────────────────────────────────────── */
.btn,
.link,
.nav__links a {
  font: 500 13px/20px var(--font-mono);
  letter-spacing: 0.05em;
  text-transform: uppercase;
}
.btn {
  height: 40px;
  padding: 0 16px;
  border-radius: var(--r-sm);
}
.btn--primary {
  background: var(--primary);
  color: var(--primary-fg);
  box-shadow: var(--ac-soft);
}
.btn--primary:hover {
  background: color-mix(in srgb, var(--primary) 86%, var(--primary-fg));
}
.btn--quiet {
  background: var(--ac-quiet);
  color: var(--fg);
  box-shadow: var(--ac-soft-2);
}
.btn--ghost {
  box-shadow: inset 0 0 0 1px var(--line-2);
}
.btn--quiet:hover,
.btn--ghost:hover {
  box-shadow: var(--ac-soft);
}

/* ── nav ──────────────────────────────────────────────────────────────── */
.nav__brand {
  font-family: var(--font-display);
  font-weight: 500;
}
.nav__brand svg {
  color: var(--ink);
}
.nav__links a {
  color: var(--fg-2);
}
.nav__links a:hover {
  background: transparent;
  color: var(--fg);
}
.nav .btn {
  height: 36px;
}

/* ── plates and cards: white or #f5f5f5, hairline ring, no dot grid ───── */
.kplate,
.kplate--neutral,
.sec[data-mod] .kplate:not(.kplate--neutral) {
  background-color: var(--ac-plate);
  background-image: none;
  box-shadow: inset 0 0 0 1px var(--line);
  border-radius: var(--r-md);
}
.sec[data-mod] .kplate:not(.kplate--neutral) {
  background-color: var(--m-tint);
  box-shadow: inset 0 0 0 1px var(--m-line);
}
.plate {
  border-radius: var(--r-md);
}
.plate--dots,
.kcard__mock {
  background-image: none;
}
.kcard {
  border-radius: var(--r-lg);
  box-shadow:
    0 0 0 1px var(--line-2),
    var(--ui-shadow);
}
.kcard__mock {
  background-color: var(--surface-2);
}
.mk-card {
  box-shadow:
    0 0 0 1px var(--line-2),
    var(--ui-shadow);
}
.mk-chip {
  box-shadow: var(--ac-soft);
}

/* ── hero: left-aligned head, dashboard on a striped steel backdrop ───── */
.hero-head {
  justify-items: start;
  padding: 88px var(--pad) 64px;
  text-align: left;
}
.hero-title {
  font-size: clamp(36px, 2.6vw + 24px, 56px);
  line-height: 1.143;
  letter-spacing: -0.02em;
}
.hero-title__em {
  color: var(--fg-3);
}
.hero-sub {
  max-width: 34em;
}
.hero-ctas {
  justify-content: flex-start;
}
.hero-stage {
  margin: 0 var(--pad);
  padding: 48px 40px 0;
  border-radius: var(--r-md) var(--r-md) 0 0;
  background:
    linear-gradient(115deg, var(--ac-sweep-hi), transparent 45%, var(--ac-sweep-lo)),
    repeating-linear-gradient(
      115deg,
      var(--ac-steel-1) 0,
      var(--ac-steel-2) 22px,
      var(--ac-steel-3) 38px,
      var(--ac-steel-4) 56px,
      var(--ac-steel-1) 76px
    );
  box-shadow: inset 0 0 0 1px var(--line);
}
.hero-clip {
  -webkit-mask-image: none;
  mask-image: none;
}
.hero-app {
  grid-template-columns: 72px 200px minmax(0, 264px) minmax(0, 1fr) 232px;
  box-shadow:
    inset 0 0 0 1px var(--ac-ring-2),
    0 2px 4px rgba(0, 0, 0, 0.06),
    0 24px 48px -20px rgba(0, 0, 0, 0.22);
}
@media (max-width: 1180px) {
  .hero-app {
    grid-template-columns: 72px minmax(0, 264px) minmax(0, 1fr) 232px;
  }
}
@media (max-width: 900px) {
  .hero-app {
    grid-template-columns: 72px minmax(0, 240px) minmax(0, 1fr);
  }
  .hero-stage {
    padding: 32px 24px 0;
  }
}
@media (max-width: 640px) {
  .hero-stage {
    margin: 0 12px;
    padding: 20px 12px 0;
  }
  .hero-ctas {
    width: auto;
  }
  .hero-app {
    grid-template-columns: minmax(0, 1fr);
  }
}

/* ── sections centred in the base: keep them, but greyscale ───────────── */
/* no washes and glows: the hero stripes are the one decorative gradient */
.brand-stage::before,
.brand-stage::after,
.brand-stage__glow,
.cta-wash,
.cta-wash::before {
  display: none;
}

/* ── control: the three counts in ink, the state colour only in a small dot ── */
.ct-fig .ct-fig__n {
  color: var(--fg);
}
.ct-fig--off .ct-fig__n {
  color: var(--fg-3);
}
.ct-fig--auto .ct-fig__k::before,
.ct-fig--ask .ct-fig__k::before {
  content: "";
  display: inline-block;
  width: 6px;
  height: 6px;
  margin: 0 8px 2px 0;
  border-radius: 50%;
  background: var(--kiwi);
  vertical-align: middle;
}
.ct-fig--ask .ct-fig__k::before {
  background: var(--warn);
}

/* ── chapter markers: dark, capitals links ─────────────────────── */
.chapter[data-theme="dark"] .chapter__title {
  font-family: var(--font-display);
  font-weight: var(--display-w);
  font-size: clamp(36px, 2.6vw + 24px, 56px);
  line-height: 1.143;
  letter-spacing: -0.02em;
}
.chapter__links a:hover {
  color: var(--fg);
}


/* ═════════════════════════════════════════════════════════════════════════
   From the swervel skin: type, shapes, spacing. Colours stay Accrue's.
   These rules come last, so they win over the Accrue shapes above.
   ═════════════════════════════════════════════════════════════════════════ */

/* ── type: Inter, tight, never bold, sentence case ────────────────────── */
body {
  letter-spacing: -0.01em;
}
.h1,
.h2,
.h3,
.title,
.hero-title,
.chapter[data-theme] .chapter__title {
  font-weight: var(--display-w);
  letter-spacing: -0.04em;
}
.h2,
.chapter[data-theme] .chapter__title {
  font-size: clamp(32px, 2.6vw + 16px, 56px);
  line-height: 1.02;
}
.hero-title {
  font-size: clamp(40px, 4vw + 8px, 64px);
  line-height: 1;
}
.h3,
.title,
.feat__title,
.kcard__title,
.pillar__title {
  letter-spacing: -0.025em;
}
.lead {
  letter-spacing: -0.02em;
}
/* no capitals: every small label is sentence case */
.mono,
.mono-s,
.mono-xs,
.label,
.pill,
.ui__head,
.kcard__label,
.chapter__links a {
  font: 500 14px/20px var(--font-body);
  letter-spacing: -0.01em;
  text-transform: none;
}
.pill,
.ui__head {
  font-size: 12px;
}
.pillar__num {
  letter-spacing: 0;
}

/* ── tag: a grey pill, no icon ────────────────────────────────────────── */
html .tag,
html [data-theme] .tag[data-mod] {
  gap: 0;
  height: 24px;
  padding: 0 10px;
  border-radius: 9999px;
  background: color-mix(in srgb, var(--fg) 8%, var(--bg));
  box-shadow: none;
  color: var(--fg);
  font: 500 12px/16px var(--font-body);
  letter-spacing: 0;
  text-transform: none;
}
.tag__ico {
  display: none;
}

/* ── buttons: pills, no shadow, no label roll ─────────────────────────── */
.btn,
.link,
.nav__links a {
  font: 500 16px/20px var(--font-body);
  letter-spacing: -0.01em;
  text-transform: none;
}
.btn {
  height: 40px;
  padding: 0 18px;
  border-radius: 9999px;
}
.btn--primary,
.btn--primary:hover {
  box-shadow: none;
}
.btn--primary:hover {
  background: color-mix(in srgb, var(--primary) 82%, var(--bg));
}
.btn--quiet,
.btn--ghost,
.btn--quiet:hover,
.btn--ghost:hover {
  background: var(--surface);
  box-shadow: 0 0 0 1px var(--line-2);
}
.btn--quiet:hover,
.btn--ghost:hover {
  background: color-mix(in srgb, var(--fg) 8%, var(--bg));
}
.btn:active {
  transform: none;
}
.btn:hover .btn__roll > span {
  transform: none;
}
.link {
  font-size: 14px;
}
/* the header button is the small square-cornered one */
.nav .btn {
  height: 32px;
  padding: 0 12px;
  border-radius: var(--r-sm);
  font-size: 14px;
}
.nav__links a {
  font: 400 14px/20px var(--font-body);
}

/* ── surfaces: 1px rings in place of shadows ──────────────────────────── */
.kcard,
.mk-card {
  box-shadow: 0 0 0 1px var(--line-2);
}
.mk-chip {
  box-shadow: 0 0 0 1px var(--line-2);
}
.hero-app {
  box-shadow: inset 0 0 0 1px var(--line-2);
}
.kplate,
.kplate--neutral,
.sec[data-mod] .kplate:not(.kplate--neutral),
.plate {
  border-radius: var(--r-lg);
}

/* ── motion: nothing moves on scroll ──────────────────────────────────── */
.js [data-reveal] {
  opacity: 1;
  transform: none;
  transition: none;
}

/* ═════════════════════════════════════════════════════════════════════════
   Every section is centred (owner, 25 November 2026: "sezioni tutte
   centrali"). Heads, chapter markers, the hero and the closing lines sit on
   the centre line, in the split sections too. Lists of features and
   numbered steps keep their own alignment inside their column.
   ═════════════════════════════════════════════════════════════════════════ */
.sec-head,
.sec-head--mod,
.hero-head,
.rv-head,
.mcp-head,
.sec-head--mod.mcp-head,
.brand-copy,
.faq-title {
  justify-items: center;
  text-align: center;
}
.rv-head,
.brand-copy {
  display: grid;
}
.sec-head > .h2,
.sec-head--mod > .h2,
.rv-head > .h2 {
  max-width: 19em;
  margin-inline: auto;
}
.sec-head > .lead,
.sec-head > p,
.rv-head > .lead,
.brand-copy > p,
.hero-sub,
.kit-sub {
  max-width: 640px;
  margin-inline: auto;
}
.hero-ctas {
  justify-content: center;
}
.sec-close,
.mcp-close,
.rv-close {
  max-width: 720px;
  margin-inline: auto;
  text-align: center;
}
/* chapter markers: the title over its links, both centred */
.chapter .chapter__in,
.chapter[data-theme] .chapter__in {
  flex-direction: column;
  flex-wrap: nowrap;
  align-items: center;
  justify-content: center;
  gap: 24px;
  text-align: center;
}
.chapter .chapter__head {
  display: grid;
  justify-items: center;
  gap: 16px;
  max-width: 680px;
}
.chapter__links {
  justify-content: center;
}
/* questions: the title on the centre line, the list under it */
.faq-in {
  grid-template-columns: minmax(0, 1fr);
  justify-items: center;
}
.faq-list {
  width: min(100%, 760px);
}

/* in a split section the head shares the row with a picture: a smaller headline */
.mcp-head > .h2,
.rv-head > .h2,
.brand-copy__title {
  font-size: clamp(28px, 1.6vw + 16px, 40px);
  line-height: 1.08;
}

/* ═════════════════════════════════════════════════════════════════════════
   Quieter text (owner, 25 November 2026: "i subtitle o in generale sono
   troppo forti come colori"). Sub-lines, feature sentences and closing lines
   step back to a softer grey that still passes 4.5:1 on its band. Bolder
   titles (weight 600) were tried with it and taken back the same hour
   ("i titoli come prima, troppo"): headlines stay at weight 450.
   ═════════════════════════════════════════════════════════════════════════ */
.lead,
.lead.soft,
.hero-sub,
.feat__text,
.kcard__text,
.pillar__text {
  color: var(--fg-2);
}

/* no wash in this skin: the closing band's content sits in the middle of it */
.cta-in {
  align-content: center;
  padding-bottom: 128px;
}
@media (max-width: 900px) {
  .cta-in {
    padding-bottom: 96px;
  }
}
@media (max-width: 700px) {
  .cta-in {
    padding-bottom: 72px;
  }
}


:root {
  /* ── colours, measured on the reference on 25 November 2026 (the owner:
     "anche i colori va, prendili da attio su questa variante") ────────── */
  --ink: #1c1d1f;
  --paper: #fafafb;
  --white: #ffffff;
  --tint: #f3f4f6;
  --tint-2: #e4e7ec;
  --blue: #1c1d1f;
  --blue-hover: #2e3238;
  --blue-ink: #1c1d1f;
  --c-neutral: #6f7988;
  --brand-own: #1c1d1f;
  --m-inbox: #8f99a8;
  --m-customer-agent: #8f99a8;
  --m-phone: #8f99a8;
  --m-marketing: #8f99a8;
  --m-crm: #8f99a8;
  --m-work: #8f99a8;
  --m-meetings: #8f99a8;
  --m-revenue: #8f99a8;
  --m-agent: #8f99a8;
  --m-workflows: #8f99a8;
  --m-control: #8f99a8;
  --m-mcp: #8f99a8;
  /* hairlines and rings */
  --ac-rule: #e4e7ec;
  --ac-rule-dark: #232529;
  --ac-ring: rgba(0, 0, 0, 0.06);
  --ac-ring-2: #d3d8df;
  /* the two greys of the text: the statement's second tone, and the small
     labels. The reference's own greys (#6f7988, #8f99a8) fail WCAG AA for
     body text (4.41 and 2.88 on white), so each ground has its own pair,
     set in "grounds" below. Ratios measured against the ground, its plate
     (--at-plate) and, on the dark chapter, its cards (#232529):
       white, #fafafb   second #5f6876  5.63 / 5.40 / plate 5.11
                        third  #66707e  5.02 / 4.81 / plate 4.55
       grey #f3f4f6     second #5c6572  5.36 / plate 4.87
                        third  #5f6876  5.12 / plate 4.65
       dark #101010     second #8f99a8  6.61 / cards 5.33
                        third  #848e9d  5.74 / cards 4.63
     The hero's second line is 64px and needs 3:1: #8a94a3 is 3.07. */
  --ac-fg-2: #5f6876;
  --ac-fg-3: #66707e;
  --at-team-fg-2: #5c6572;
  --at-team-fg-3: #5f6876;
  --at-dark-fg-2: #8f99a8;
  --at-dark-fg-3: #848e9d;
  --at-fg-display: #8a94a3;
  --ac-dark-surface: #1c1d1f;
  --ac-dark-surface-2: #232529;
  --ac-band-tint-2: #e4e7ec;
  /* the dark block, the buttons, the one accent (the tag) */
  --at-dark: #101010;
  --at-btn: #202124;
  --at-btn-fg: #f3f4f6;
  --at-btn-line: #505967;
  --at-btn-2-line: #cad0d9;
  --at-nav: #2e3238;
  --at-accent: #245bc2;
  --at-accent-tint: #e8f0ff;
  /* hues for the small coloured accents inside a picture (a status chip, the
     tile of an icon). Never used raw: see "status" under "picture
     foundations" below, which mixes three tones from one hue so the same
     recipe holds on the white, the grey and the dark ground. Grey is for
     a disabled state. */
  --at-h-green: #22a06b;
  --at-h-amber: #d99413;
  --at-h-blue: #266df0;
  --at-h-violet: #7a5af5;
  --at-h-orange: #ef6c2f;
  --at-h-pink: #e0478e;
  --at-h-grey: #7d8796;
  /* on the dark block: text, grey, the stronger line, a button label */
  --at-dark-fg: #fafafb;
  --at-dark-line-2: #2e3238;
  --at-dark-line-3: #3a3f46;
  --at-dark-btn-fg: #edeff3;

  /* Attio sets its running text and its headlines at weight 500 (and its
     hero headline at 600, which the owner did not keep) */
  --display-w: 500;
  --at-text-w: 500;
  --at-track: -0.01em;
  /* the statement column, as measured (560px) */
  --at-measure: 560px;

  /* the largest radius of the design system's scale (--r-xs 6, --r-sm 6,
     --r-md 12, --r-lg 12 in accrue): a window inside a picture. Pictures
     only; see "picture foundations" below. */
  --r-xl: 16px;

  /* the three elevations of a picture, as literal recipes. Never used
     directly: a rule uses --pic-card, --pic-float or --pic-window, which
     each ground (below) points at its own recipe. */
  --at-shadow-card: 0 0 0 1px rgba(28, 40, 64, 0.1), 0 1px 3px rgba(0, 0, 0, 0.04), 0 0 2px rgba(28, 40, 64, 0.1);
  --at-shadow-float: 0 0 0 1px rgba(28, 40, 64, 0.08), 0 4px 12px -1px rgba(0, 22, 62, 0.06), 0 1px 3px -1px rgba(0, 22, 62, 0.18);
  --at-shadow-window:
    0 0 0 1px rgba(11, 13, 24, 0.06), 0 1px 2px rgba(11, 13, 24, 0.024), 0 3px 6px rgba(11, 13, 24, 0.03),
    0 8px 14px rgba(11, 13, 24, 0.035), 0 16px 28px rgba(11, 13, 24, 0.04);
  /* on the dark chapter a lighter ring stands in for the shadow */
  --at-shadow-card-dark: 0 0 0 1px var(--at-dark-line-2), 0 1px 2px rgba(0, 0, 0, 0.3);
  --at-shadow-float-dark: 0 0 0 1px var(--at-dark-line-3), 0 8px 24px -8px rgba(0, 0, 0, 0.6);
  --at-shadow-window-dark: 0 0 0 1px var(--at-dark-line-3), inset 0 1px 0 rgba(255, 255, 255, 0.04), 0 24px 48px -16px rgba(0, 0, 0, 0.7);
}

/* ── grounds: the page in three acts ──────────────────────────────────────
   The owner, on the chapters: "i capitoli farei in modo diverso", then chose
   "A, tre atti". Each chapter has its own ground and the page changes tone
   once, towards the end:
     Your customers   white
     Your team        pale grey
     Your AI agents   dark, with Control and MCP inside it
   The header, the hero, agencies, getting started and the questions are
   white; the opening section is #fafafb, between the hero and the first
   chapter; the closing band and the footer are dark. The marker of a chapter,
   its sections and the block that attio.js wraps around them share one set. */

/* the light set, for every band: white */
.sec[data-theme],
.at-chapter {
  --bg: var(--white);
  --surface: var(--white);
  --surface-2: var(--tint);
  --fg: var(--ink);
  --fg-2: var(--ac-fg-2);
  --fg-3: var(--ac-fg-3);
  --line: var(--ac-rule);
  --line-2: var(--ac-ring-2);
  --ok: var(--kiwi-ink);
  --warn-text: var(--warn-ink);
  --primary: var(--ink);
  --primary-fg: var(--white);
  --primary-text: var(--ink);
  --primary-tint: color-mix(in srgb, var(--ink) 6%, var(--white));
  --primary-line: var(--ac-ring-2);
  --ui-shadow: var(--ac-card);
  --ac-quiet: var(--tint);
  --ac-plate: var(--tint);
  /* picture foundations, light: elevations and the status mix */
  --pic-card: var(--at-shadow-card);
  --pic-float: var(--at-shadow-float);
  --pic-window: var(--at-shadow-window);
  --st-mix-bg: 12%;
  --st-mix-line: 26%;
  --st-mix-fg: 56%;
}
:root {
  --bg: var(--white);
}
#chains.sec[data-theme] {
  --bg: var(--paper);
}

/* Your team: a pale grey ground, with the hairlines a step darker */
:is(#team, #crm, #work, #meetings, #revenue).sec[data-theme],
.at-chapter[data-chapter="team"] {
  --bg: var(--tint);
  --line: var(--ac-ring-2);
  --fg-2: var(--at-team-fg-2);
  --fg-3: var(--at-team-fg-3);
}

/* Your AI agents, the closing band and the footer: #101010. Cards drawn on
   it are two steps lighter, so they stand off their plate. */
:is(#agents, #agent, #workflows, #control, #mcp, #cta).sec[data-theme],
.ft.sec[data-theme],
.at-chapter[data-chapter="agents"] {
  --bg: var(--at-dark);
  --surface: var(--ac-dark-surface-2);
  --surface-2: var(--at-dark-line-2);
  --fg: var(--at-dark-fg);
  --fg-2: var(--at-dark-fg-2);
  --fg-3: var(--at-dark-fg-3);
  --line: var(--ac-rule-dark);
  --line-2: var(--at-dark-line-2);
  --ok: var(--kiwi-bright);
  --warn-text: var(--warn-bright);
  --primary: var(--white);
  --primary-fg: var(--ink);
  --primary-text: var(--white);
  --primary-tint: color-mix(in srgb, var(--white) 10%, var(--ac-dark-surface));
  --primary-line: var(--at-dark-line-2);
  --ui-shadow: 0 1px 2px rgba(0, 0, 0, 0.3), 0 16px 40px -12px rgba(0, 0, 0, 0.6);
  /* picture foundations, dark: a lighter ring stands in for the shadow */
  --pic-card: var(--at-shadow-card-dark);
  --pic-float: var(--at-shadow-float-dark);
  --pic-window: var(--at-shadow-window-dark);
  --st-mix-bg: 18%;
  --st-mix-line: 32%;
  --st-mix-fg: 60%;
}

/* ── the header follows the ground under it ──────────────────────────────
   attio.js finds the band under the header's bottom edge and copies that
   band's theme variables onto the header (inline custom properties), and
   sets data-ground="dark" or "light" from them. So the header always has
   the ground, text and hairline of what it sits on, whatever the band's
   data-theme says. The rules below hold before the script runs and
   without it: the header is white, as the hero under it. */
.nav,
.nav[data-theme] {
  --bg: var(--white);
  --fg: var(--ink);
  --fg-2: var(--ac-fg-2);
  --fg-3: var(--ac-fg-3);
  --line: var(--ac-rule);
  --line-2: var(--ac-ring-2);
  --primary: var(--ink);
  border-bottom-color: var(--line);
}
.nav .nav__links a {
  color: var(--at-nav);
}
.nav[data-ground="dark"] .nav__links a {
  color: var(--fg-2);
}
.nav .nav__links a:hover {
  color: var(--fg);
}
.nav[data-ground="dark"] .nav__brand svg {
  color: var(--fg);
}

/* ── a picture takes its ground ──────────────────────────────────────────
   The owner: "le illustrazioni ovviamente falle in base al background". A
   picture is never a light island on a dark band, nor a white box on grey:
   its plate is the band's own colour, one step towards the text, and what
   is drawn on it uses the band's own set (dark cards and light text on the
   dark chapter). The accrue rule that gives a plate on a dark band the light
   set is undone here: inside a plate every variable is the band's again. */
.sec[data-theme] {
  --at-plate: color-mix(in srgb, var(--bg) 95%, var(--fg));
  --ac-plate: var(--at-plate);
  --ac-quiet: var(--at-plate);
}
.sec[data-theme] .kplate,
.sec[data-theme] .wf-canvas {
  --bg: var(--at-plate);
  --surface: inherit;
  --surface-2: inherit;
  --fg: inherit;
  --fg-2: inherit;
  --fg-3: inherit;
  --line: inherit;
  --line-2: inherit;
  --ok: inherit;
  --warn-text: inherit;
  --primary: inherit;
  --primary-fg: inherit;
  --primary-text: inherit;
  --primary-tint: inherit;
  --primary-line: inherit;
  --plate-dot: inherit;
  --ui-shadow: inherit;
  --ac-quiet: inherit;
  --ac-plate: inherit;
}
.sec[data-mod][data-theme],
.sec[data-mod][data-theme] .kplate {
  --m-tint: var(--at-plate);
  --m-line: var(--line);
  --m-text: var(--fg-2);
}

/* ═════════════════════════════════════════════════════════════════════════
   Picture foundations. Every picture (the drawings of the product inside
   the plates) is built from these, and from nothing else: research/
   attio-pictures.md §A3 to §A5 and E0, and "Picture foundations" in
   attio.md. Each token follows the ground it is used on.

   Elevation, three levels and no more. Two things at the same level never
   have different shadows. A focal element adds --pic-focus in front and
   changes nothing else:  box-shadow: var(--pic-focus), var(--pic-card);
     --pic-card     a card, a node, a chip with a button (white on light,
                    --surface on dark)
     --pic-float    a panel laid over another (a composer over a table)
     --pic-window   a window: the hero screen and its satellites
   On the dark chapter each is a ring a step lighter than the card, with
   a dark drop that only shows at its edge.

   Radius, nested: chip 6, card 12, window 16. A card inside a tray takes
   the tray's radius minus the tray's padding:
     border-radius: calc(var(--pic-r-window) - 6px);

   Type inside a picture: two sizes, both weight 500 with the page's
   tracking. Values (a name, a field value, a message) in ink, labels (a
   field name, a time, a sub-line) in the ground's second grey. A panel or
   column title is the value size at 600, the only 600 on the page. Nothing
   inside a picture is smaller than 12px.

   Status, one recipe: a pale ground, a 1px border a step darker and a deep
   text, all three mixed from one hue. Meanings are fixed:
     green   done, or automatic          data-status="done" | "auto"
     amber   waiting for a person        data-status="wait"
     blue    the AI, or in progress      data-status="ai" | "run"
     violet  a step done by an agent     data-status="agent"
     grey    disabled, off               data-status="off"
   Two or three hues in a picture at most. An element gets the three tones
   (--st-bg, --st-line, --st-fg) by carrying data-status, or the class
   .pic-st with a rule that sets --st to one hue:
     .ca-badge { --st: var(--at-h-amber); }   <span class="ca-badge pic-st">
   .pic-chip is the ready-made chip (20px high) that uses them.
   ═════════════════════════════════════════════════════════════════════════ */
:root {
  --pic-r-chip: var(--r-sm);
  --pic-r-card: var(--r-md);
  --pic-r-window: var(--r-xl);
  --pic-text-value: 500 14px/20px var(--font-body);
  --pic-text-label: 500 12px/16px var(--font-body);
  --pic-text-title: 600 14px/20px var(--font-body);
  --pic-focus: 0 0 0 1.5px var(--at-h-blue);
  /* the one easing for picture motion, and the length of one step */
  --pic-ease: cubic-bezier(0.2, 0, 0, 1);
  --pic-step: 450ms;
}
/* play once when in view (attio.motion.js): an animation that must wait
   sets animation-play-state: var(--pic-run). It is paused until the
   element has played, and while a loop is off screen. */
[data-play] {
  --pic-run: paused;
}
.at-play [data-play="once"].is-played,
.at-play [data-play="loop"].is-live {
  --pic-run: running;
}
:where([data-status="done"], [data-status="auto"]) {
  --st: var(--at-h-green);
}
:where([data-status="wait"]) {
  --st: var(--at-h-amber);
}
:where([data-status="ai"], [data-status="run"]) {
  --st: var(--at-h-blue);
}
:where([data-status="agent"]) {
  --st: var(--at-h-violet);
}
:where([data-status="off"]) {
  --st: var(--at-h-grey);
}
/* the three tones are computed on the element itself, so a rule that sets
   --st on it (or on a [data-status] value above) is all it takes */
:where([data-status], .pic-st, .pic-chip) {
  --st-bg: color-mix(in srgb, var(--st, var(--at-h-grey)) var(--st-mix-bg), var(--surface));
  --st-line: color-mix(in srgb, var(--st, var(--at-h-grey)) var(--st-mix-line), var(--surface));
  --st-fg: color-mix(in srgb, var(--st, var(--at-h-grey)) var(--st-mix-fg), var(--fg));
}
:where(.pic-chip) {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  height: 20px;
  padding: 0 6px;
  border-radius: var(--pic-r-chip);
  background: var(--st-bg);
  box-shadow: inset 0 0 0 1px var(--st-line);
  color: var(--st-fg);
  font: var(--pic-text-label);
  letter-spacing: var(--at-track);
  white-space: nowrap;
}
:where(.pic-value) {
  font: var(--pic-text-value);
  letter-spacing: var(--at-track);
  color: var(--fg);
}
:where(.pic-label) {
  font: var(--pic-text-label);
  letter-spacing: var(--at-track);
  color: var(--fg-2);
}
:where(.pic-title) {
  font: var(--pic-text-title);
  letter-spacing: var(--at-track);
  color: var(--fg);
}

/* ── the one accent: the tag, blue on a pale blue ─────────────────────── */
html .tag,
html [data-theme] .tag[data-mod] {
  height: 26px;
  padding: 0 8px;
  border-radius: var(--r-sm);
  background: var(--at-accent-tint);
  color: var(--at-accent);
  font: 500 14px/20px var(--font-body);
  letter-spacing: var(--at-track);
}

/* ── button colours ───────────────────────────────────────────────────── */
.btn--primary,
.btn--primary:hover {
  background: var(--at-btn);
  color: var(--at-btn-fg);
  box-shadow: inset 0 0 0 1px var(--at-btn-line);
}
.btn--primary:hover {
  background: var(--at-nav);
}
.btn--quiet,
.btn--ghost,
.btn--quiet:hover,
.btn--ghost:hover {
  background: var(--white);
  color: var(--at-nav);
  box-shadow: inset 0 0 0 1px var(--at-btn-2-line);
}
.btn--quiet:hover,
.btn--ghost:hover {
  background: var(--tint);
}
/* on the dark closing band, and in the header over a dark band, the pair is
   inverted: white, and dark with a ring */
#cta .btn--primary,
.nav[data-ground="dark"] .btn--primary {
  background: var(--white);
  color: var(--ink);
  box-shadow: none;
}
#cta .btn--quiet,
#cta .btn--ghost,
.nav[data-ground="dark"] .btn--quiet,
.nav[data-ground="dark"] .btn--ghost {
  background: var(--at-dark);
  color: var(--at-dark-btn-fg);
  box-shadow: inset 0 0 0 1px var(--at-dark-line-2);
}
.nav__links a {
  color: var(--at-nav);
}

/* ── type roles, as measured ──────────────────────────────────────────── */
body {
  letter-spacing: var(--at-track);
}
.h1,
.h2,
.h3,
.title,
.hero-title,
.chapter[data-theme] .chapter__title {
  font-weight: 500;
  letter-spacing: var(--at-track);
}
/* hero headline: 64px / 0.95, -0.02em. The reference sets it at weight 600;
   the owner asked for 500 ("titolo hero a 500"), like every other headline. */
.hero-title {
  font-size: clamp(40px, 4vw + 8px, 64px);
  font-weight: 500;
  line-height: 0.95;
  letter-spacing: -0.02em;
  padding-bottom: 0.15em;
}
/* its second line: lighter than any running text, as large text allows
   (3:1 needed, 3.07 on white) */
.hero-title__em {
  color: var(--at-fg-display);
}
/* hero sub-line: 18px / 1.3, weight 500, a 486px column */
.hero-sub {
  max-width: 486px;
  font-size: 18px;
  font-weight: var(--at-text-w);
  line-height: 1.3;
  letter-spacing: var(--at-track);
}
/* section headline: 40px / 44px, weight 500. Used by the opening section,
   the chapter markers, getting started and the questions. */
.h2,
.chapter[data-theme] .chapter__title {
  font-size: clamp(28px, 1.4vw + 20px, 40px);
  line-height: 1.1;
}
/* closing headline: 56px / 1, -0.015em */
.cta-title {
  font-size: clamp(36px, 2.6vw + 18px, 56px);
  line-height: 1;
  letter-spacing: -0.015em;
}
.lead {
  font-size: 18px;
  font-weight: var(--at-text-w);
  line-height: 1.3;
  letter-spacing: var(--at-track);
}

/* caption under a picture: title 18px / 22px, text 16px / 22px, both 500 */
.feat__title,
.kcard__title,
.pillar__title,
.how-title,
.brand-fact__title {
  font-size: 18px;
  font-weight: 500;
  line-height: 22px;
  letter-spacing: var(--at-track);
}
.feat__text,
.kcard__text,
.pillar__text,
.how-text {
  font-size: 16px;
  font-weight: var(--at-text-w);
  line-height: 22px;
  letter-spacing: var(--at-track);
}

/* ── buttons: 36px high, 14px / 20px weight 500. The reference rounds them
   by 10px; the nearest radius in this design system is 12px (--r-md). ── */
.btn,
.nav .btn {
  height: 36px;
  padding: 0 12px;
  border-radius: var(--r-md);
  font: 500 14px/20px var(--font-body);
  letter-spacing: -0.005em;
}.nav__links a {
  font: 500 15px/22px var(--font-body);
  letter-spacing: var(--at-track);
}
.chapter__links a {
  font: 500 16px/22px var(--font-body);
  letter-spacing: var(--at-track);
}

/* ── the statement: one paragraph in two tones ────────────────────────────
   In a module section the tag is dropped and the headline and its sub-line
   run on as one 24px paragraph: the headline in ink, the rest in grey.
   It sits on the left, in a 560px column, over the picture. */
.sec-head--mod,
.rv-head,
.brand-copy,
.sec-head--mod.mcp-head {
  display: block;
  justify-items: start;
  text-align: left;
  text-wrap: pretty;
}
/* the air above a section's statement, as the reference's (about 160px
   at desktop, 120px on a phone): research/attio-home-audit.md §6 item 13.
   Used by the module statements and the chapter titles. */
:root {
  --at-head-top: 160px;
}
@media (max-width: 900px) {
  :root {
    --at-head-top: 120px;
  }
}
.sec-head--mod {
  padding: var(--at-head-top) max(var(--pad), calc(100% - var(--at-measure) - var(--pad))) 56px var(--pad);
}
@media (max-width: 900px) {
  .sec-head--mod {
    padding-bottom: 40px;
  }
}
.sec-head--mod > .tag,
.rv-head > .tag,
.brand-copy > .tag {
  display: none;
}
.sec-head--mod > .h2,
.sec-head--mod > .kit-sub,
.rv-head > .h2,
.rv-head > .lead,
.mcp-head > .h2,
.brand-copy > .brand-copy__title,
.brand-copy > .brand-copy__text {
  display: inline;
  max-width: none;
  margin: 0;
  font-size: 24px;
  font-weight: 500;
  line-height: 1.15;
  letter-spacing: var(--at-track);
  text-wrap: inherit;
}
.sec-head--mod > .h2,
.rv-head > .h2,
.brand-copy > .brand-copy__title {
  color: var(--fg);
}
.sec-head--mod > .kit-sub,
.rv-head > .lead,
.brand-copy > .brand-copy__text {
  color: var(--fg-2);
}
/* the space between the two sentences */
.sec-head--mod > .h2::after,
.rv-head > .h2::after,
.brand-copy > .brand-copy__title::after {
  content: " ";
}

/* ── the centred 40px blocks: headline and sub-line as one two-tone
   paragraph on the centre line (opening section, getting started) ────── */
.chn-head,
.how-head {
  display: block;
  text-align: center;
  text-wrap: balance;
}
.chn-head > .tag,
.how-head > .tag {
  margin-bottom: 20px;
}
.chn-head > .h2,
.chn-head > .lead,
.how-head > .h2,
.how-head > .lead {
  display: inline;
  max-width: none;
  margin: 0;
  font-size: clamp(28px, 1.4vw + 20px, 40px);
  font-weight: 500;
  line-height: 1.1;
  letter-spacing: var(--at-track);
  text-wrap: inherit;
}
.chn-head > .lead,
.how-head > .lead {
  color: var(--fg-2);
}
.chn-head > .h2::after,
.how-head > .h2::after {
  content: " ";
}

/* ═════════════════════════════════════════════════════════════════════════
   The chapter block (assembled by attio.js): the chapter's title on top,
   a sticky list of its sections on the left, the sections on the right.
   Measured on the reference: a 348px side column beside a 1043px one.
   ═════════════════════════════════════════════════════════════════════════ */
.at-chapter {
  border-top: 1px solid var(--line);
  background: var(--bg);
  color: var(--fg);
}
.at-chapter__frame {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  max-width: var(--frame);
  margin-inline: auto;
  border-inline: 1px solid var(--line);
}
/* inside the block the sections give up their own frame and band */
.at-chapter .sec {
  background: transparent;
}
.at-chapter .frame {
  max-width: none;
  border-inline: 0;
}
.at-chapter .chapter {
  border-top: 0;
}
/* the chapter's title: a 40px headline on the left, over both columns */
.at-chapter :is(#customers, #team, #agents) .chapter__in {
  display: block;
  padding: var(--at-head-top) var(--pad) 56px;
  text-align: left;
}
.at-chapter :is(#customers, #team, #agents) .chapter__head {
  display: block;
  /* block boxes honour justify-items too: reset accrue's centring */
  justify-items: start;
  max-width: none;
}
/* the list of the chapter's sections */
.at-chapter__side {
  padding: 0 var(--pad) 32px;
}
.at-chapter__side .chapter__links {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-start;
  gap: 8px 24px;
}
.at-chapter__side .chapter__links a {
  font: 500 16px/22px var(--font-body);
  letter-spacing: var(--at-track);
  color: var(--fg-3);
  transition: color var(--dur) var(--ease);
}
.at-chapter__side .chapter__links a:hover,
.at-chapter__side .chapter__links a[aria-current] {
  color: var(--fg);
}
.at-chapter__body > .sec:first-child {
  border-top: 1px solid var(--line);
}
/* on a touch screen a button is 44px high (the reference's 36px stays at
   desktop). The side list's 44px row and the header's targets are in
   attio.nav.css. */
@media (max-width: 900px) {
  .btn {
    height: 44px;
  }
}
@media (min-width: 1100px) {
  .at-chapter__frame {
    grid-template-columns: 280px minmax(0, 1fr);
  }
  .at-chapter__frame > .chapter {
    grid-column: 1 / -1;
  }
  .at-chapter__side {
    position: sticky;
    top: calc(var(--nav-h) + 56px);
    align-self: start;
    padding: 56px var(--pad) 56px;
  }
  .at-chapter__side .chapter__links {
    flex-direction: column;
    gap: 6px;
  }
  .at-chapter__side .chapter__links a {
    position: relative;
    padding: 2px 0;
  }
  /* the section being read: ink, with a short rule on the frame's edge */
  .at-chapter__side .chapter__links a[aria-current]::before {
    content: "";
    position: absolute;
    left: calc(var(--pad) * -1 - 1px);
    top: 2px;
    bottom: 2px;
    width: 1px;
    background: var(--fg);
  }
  .at-chapter__body {
    min-width: 0;
    border-left: 1px solid var(--line);
    /* a section's full-width rules stop at this column's edges */
    overflow-x: clip;
  }
}

/* src/skins/attio.agents.css */
/* Skin "attio", part: the AI-agents chapter (40-agent, 42-workflows,
   44-control, 46-mcp). Linked after attio.css. Every rule is scoped to one
   of the four section ids. The first three sit in the chapter block on the
   light ground; #mcp stays outside it, the page's one dark block.

   Patterns of the reference used here:
   #agent     P3, split with a row list: statement at the top of the left
              column, the rows at its bottom, the picture on the right
   #workflows P1, feature article: statement, one wide picture, captions
   #control   statement, the figures as P5 (left rule), the four cells as
              P2 open columns (drawing on top, then title and line)
   #mcp       the dark developer block: text column beside the picture */

/* ── the dotted ground behind every picture: dots in the hairline colour
   on a 12px pitch, framed by a hairline. No colour, no shadow. ───────── */
#agent .kplate,
#workflows .wf-canvas,
#control .ct-plate,
#mcp .mcp-plate {
  background-color: var(--bg);
  background-image: radial-gradient(circle, var(--line) 1px, transparent 1.2px);
  background-size: 12px 12px;
  background-position: 6px 6px;
  box-shadow: inset 0 0 0 1px var(--line);
}

/* ── the statement ────────────────────────────────────────────────────────
   The shared "pretty" wrap breaks the workflows, control and MCP statements
   well (balance leaves "it," or "GoKiwi." alone at a line start). The agent
   statement sits in the narrower left column of its split (see below). */
#agent .sec-head--mod {
  text-wrap: pretty;
}
/* full width on a phone: pretty leaves "with" at a line end, balanced it
   breaks after the headline */
@media (max-width: 900px) {
  #agent .sec-head--mod {
    text-wrap: balance;
  }
}

/* ═════════════════════════════════════════════════════════════════════════
   40-agent, P3. The head and the pillar are siblings in .frame. The frame
   becomes a two-column grid; the pillar spans it and hands its two children
   to the frame's tracks through subgrid: the list goes under the head in
   the left column, the plate takes the right column at full height. The
   pillar keeps its own box, so the row timer (which watches it) still runs.
   ═════════════════════════════════════════════════════════════════════════ */
#agent .pillar__row {
  padding: 20px var(--pad);
}
#agent .pillar__num {
  font: 500 13px/22px var(--font-body);
  letter-spacing: 0;
}
/* the line under the active title, as close as a caption's */
#agent .pillar__text {
  margin-top: -16px;
  padding-bottom: 20px;
}
/* while the rows advance on their own, only the active one shows its line
   (with reduced motion every line stays open, as in the base) */
#agent .pillar.is-auto .pillar__item:not(.is-active) .pillar__text {
  display: none;
}

@media (min-width: 901px) {
  #agent .frame {
    display: grid;
    grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
    grid-template-rows: minmax(auto, 1fr) auto;
  }
  #agent .frame > .rule {
    display: none;
  }
  #agent .sec-head--mod {
    grid-column: 1;
    grid-row: 1;
    /* a 400px measure: the headline fills the first line on its own */
    padding-right: max(var(--pad), calc(100% - 400px - var(--pad)));
  }
  #agent .pillar {
    --ag-end: 0px;
    grid-column: 1 / -1;
    grid-row: 1 / -1;
    display: grid;
    grid-template-columns: subgrid;
    grid-template-rows: subgrid;
    padding-bottom: 0;
    /* the pillar's box lies over the head: let the head stay selectable */
    pointer-events: none;
  }
  #agent .pillar__list,
  #agent .pillar__stage {
    pointer-events: auto;
  }
  #agent .pillar__list {
    grid-column: 1;
    grid-row: 2;
    margin-bottom: 0;
    padding-bottom: 0;
    border-top: 1px solid var(--line);
    border-right: 0;
  }
  #agent .pillar__stage {
    grid-column: 2;
    grid-row: 1 / -1;
    padding: 16px;
    border-left: 1px solid var(--line);
  }
  #agent .kplate {
    --kplate-h: 560px;
    height: 100%;
  }
}
/* in the narrower column the statement gets half the width */
@media (min-width: 901px) and (max-width: 1300px) {
  #agent .frame {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  }
}
@media (max-width: 900px) {
  #agent .pillar__stage {
    padding-top: 16px;
  }
}

/* ═════════════════════════════════════════════════════════════════════════
   42-workflows, P1: one wide picture, three captions under it.
   ═════════════════════════════════════════════════════════════════════════ */
/* the picture: "workflows, control, mcp: production pictures" at the end */

/* ═════════════════════════════════════════════════════════════════════════
   44-control: statement, the figures, the four cells.
   ═════════════════════════════════════════════════════════════════════════ */
#control .ct-head {
  padding-bottom: 40px;
}
/* P5: each figure opens with a 1px rule in the accent, a 30px number and
   its name in grey under it, all on the statement's left edge */
#control .ct-figs {
  flex-wrap: wrap;
  justify-content: flex-start;
  gap: 24px 48px;
  padding: 0 var(--pad) 64px;
}
#control .ct-fig {
  justify-items: start;
  gap: 4px;
  min-width: 160px;
  padding: 2px 0 2px 16px;
}
#control .ct-fig,
#control .ct-fig + .ct-fig {
  border-left: 1px solid var(--at-accent);
}
#control .ct-fig__n {
  font: 500 30px/36px var(--font-display);
  letter-spacing: -0.02em;
}
#control .ct-fig__k {
  font: 500 14px/20px var(--font-body);
  letter-spacing: var(--at-track);
}

/* P2: open columns divided by hairlines, the drawing on top, then the
   title and its line; the cells start on the statement's left edge */
#control .ct-cell {
  grid-template-rows: none;
  gap: 24px;
  padding: 40px var(--pad) 48px;
}
#control .ct-cell:nth-child(n + 3) {
  padding-bottom: 56px;
}
#control .ct-plate {
  /* both drawings on one height, so the two titles under them line up */
  --kplate-h: 264px;
  order: -1;
}
@media (max-width: 900px) {
  #control .ct-cell,
  #control .ct-cell:nth-child(n + 3) {
    padding: 32px var(--pad) 40px;
  }
  #control .ct-cell:last-child {
    padding-bottom: 56px;
  }
}
@media (max-width: 640px) {
  #control .ct-figs {
    flex-direction: row;
    align-items: flex-start;
    gap: 20px 32px;
    padding-bottom: 48px;
  }
  #control .ct-fig {
    min-width: 0;
  }
}

/* ═════════════════════════════════════════════════════════════════════════
   46-mcp: the dark block. Text column (statement, Server URL, three steps
   as rows) beside the picture, which here stays dark too: the same dotted
   ground in the block's own hairline colour, the brand tiles white.
   ═════════════════════════════════════════════════════════════════════════ */
#mcp .mcp-step__n {
  margin-top: -4px; /* level with the title's 22px line */
}
/* ── the dark chapter (#agents): Your AI agents on #101010 ────────────────
   Every picture takes the dark ground (attio.css, "a picture takes its
   ground"), the workflows canvas included. */
/* the figures' rules: one lighter step of the accent, which reads on the
   dark ground (the accent itself is dim on #101010) */
#control .ct-fig,
#control .ct-fig + .ct-fig {
  border-left-color: color-mix(in srgb, var(--at-accent) 55%, var(--fg));
}

/* ═════════════════════════════════════════════════════════════════════════
   The pictures of the chapter. Each is rebuilt from the picture
   foundations in attio.css (status recipe, elevations, radii, two type
   sizes) in its own block below; this token is the one they share.
   ═════════════════════════════════════════════════════════════════════════ */
:is(#agent, #workflows, #control, #mcp) {
  /* a connector: one step lighter than the card ring, so it reads on #101010 */
  --ag-wire: color-mix(in srgb, var(--line-2) 70%, var(--fg-3));
}

/* ═════════════════════════════════════════════════════════════════════════
   agent: production pictures
   The three panels of #agent rebuilt to the rules proposed in research/
   attio-pictures.md (§B, decisions D1 to D5, entries E1-3, E1-19 and
   E1-20), after the revenue example in attio.team.css. Markup:
   attio.sections/40-agent.html (this skin only; the other looks keep the
   shared section). The rules they replace (the chat cards with skeleton
   bars, the amber result chip, the blinking caret) are gone from above.

   What each panel shows, every label the product's own, at level B
   (attio.md, "How much text a picture carries"):
     01  the assistant panel: the end of the previous turn as two bars,
         the request, two activity lines (tool.step.crmSearch.done; the
         catalog title of ws_calendar_event_update with tool.status "Needs
         approval"), and the approval card: a Frame with the two rows that
         tell the change ("Current event", "Starts", workspaceActions.json)
         and Approve / Cancel.
     02  the agent on WhatsApp: your message, an approval as plain
         numbered text in the channel's own words (agent/lib/external-
         channel-utils.ts), and the answer "1".
     03  the request in the assistant and, laid over it, the workflow it
         built, open in the workflow editor (automations.json): "Publish
         and activate" and the three nodes, the trigger with its line.

   Built from the picture foundations in attio.css: --pic-window for the
   windows, --pic-card for the cards inside them, the nested radii, the
   two type sizes, the status recipe (amber for "Needs approval", green and
   violet for the node tiles, as the product tints them), --pic-ease and
   --pic-step. Inter, as the rest of the page.

   Motion, once: the plate is data-play="once"; a panel's story waits
   (--pic-run paused) until it is the active panel, then plays and holds.
   Nothing is keyed on .is-active itself, so a panel shown again does not
   replay. Without .at-play (no script, reduced motion) the plain style,
   the finished frame, is all that shows. Nothing loops.
   ═════════════════════════════════════════════════════════════════════════ */
#agent {
  /* the product's primary blue (paskal theme.css, #1a2ce8) */
  --at-product-blue: #1a2ce8;
  /* on this dark ground the blue button is one step lighter, as the
     product's own dark theme does (#5566ff): white on it 4.87:1, the
     button against its card 3.15:1 (the plain blue is 1.88:1) */
  --ap-blue: color-mix(in srgb, var(--at-product-blue) 75%, var(--white));
  /* the app's own ground inside a window, darker than the cards on it */
  --ap-app: color-mix(in srgb, var(--surface) 45%, var(--at-dark));
  --ap-hair: color-mix(in srgb, var(--fg) 9%, var(--ap-app));
  --ap-ring: color-mix(in srgb, var(--fg) 16%, transparent);
  /* WhatsApp's own outgoing bubble, a dark green */
  --ap-wa-out: color-mix(in srgb, var(--at-h-green) 30%, var(--ap-app));
  /* a panel in a window's 6px tray, and a button: 10px */
  --ap-r-in: calc(var(--pic-r-window) - 6px);
}

/* the plate: one row the panels share, cut at its edge */
#agent .ap-plate {
  grid-template-rows: minmax(0, 1fr);
  overflow: hidden;
  container-type: inline-size;
}
@media (max-width: 900px) {
  #agent .ap-plate {
    --kplate-h: 540px;
  }
}

/* a window: a pale tray, 6px round the app (product: Frame) */
#agent .ap-win {
  display: grid;
  width: min(100%, 460px);
  padding: 6px;
  border-radius: var(--pic-r-window);
  background: color-mix(in srgb, var(--fg) 5%, transparent);
  box-shadow: var(--pic-window);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  color: var(--fg);
  font: var(--pic-text-value);
  letter-spacing: var(--at-track);
  text-align: left;
  pointer-events: none;
  user-select: none;
}
#agent .ap-app {
  display: flex;
  flex-direction: column;
  min-width: 0;
  overflow: hidden;
  border-radius: var(--ap-r-in);
  background: var(--ap-app);
  box-shadow: 0 0 0 1px var(--ap-hair);
}
#agent .ap-win p,
#agent .ap-win ul,
#agent .ap-win ol,
#agent .ap-win dl,
#agent .ap-win dd {
  margin: 0;
}
#agent .ap-win svg {
  flex: none;
  width: 16px;
  height: 16px;
}

/* the WhatsApp chat's header: the agent's avatar, its name, the mark */
#agent .ap-bar {
  display: flex;
  flex: none;
  align-items: center;
  gap: 8px;
  height: 48px;
  padding: 0 8px 0 16px;
  border-bottom: 1px solid var(--ap-hair);
}
#agent .ap-bar__t {
  flex: 1 1 auto;
  min-width: 0;
  overflow: hidden;
  font: var(--pic-text-title);
  letter-spacing: var(--at-track);
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* the thread: the person's message in a muted bubble on the right, the
   agent's activity as quiet lines (product: Bubble, Trace) */
#agent .ap-thread {
  display: grid;
  gap: 16px;
  padding: 16px;
}
/* 01: the end of the previous turn, two bars fading into the plate's top
   edge (the only placeholders in the three pictures) */
#agent .ap-prev {
  display: grid;
  gap: 10px;
  padding: 4px 0 10px;
  -webkit-mask-image: linear-gradient(to top, var(--fg), transparent);
  mask-image: linear-gradient(to top, var(--fg), transparent);
}
#agent .ap-prev i {
  height: 8px;
  border-radius: 9999px;
  background: var(--surface-2);
}
#agent .ap-prev i:first-child {
  width: 88%;
}
#agent .ap-prev i:last-child {
  width: 56%;
}
#agent .ap-me {
  justify-self: end;
  max-width: 86%;
  padding: 8px 12px;
  border-radius: var(--pic-r-card);
  background: var(--surface-2);
}
#agent .ap-trace {
  display: grid;
  gap: 8px;
  padding: 0;
  list-style: none;
}
/* the step line keeps its words: on a narrow plate the state goes to a
   second line rather than the title being cut */
#agent .ap-step {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 4px 8px;
  min-width: 0;
  color: var(--fg-2);
  white-space: nowrap;
}
/* waiting for you: the amber hand and "Needs approval" (text-warning) */
#agent .ap-step__wait {
  display: inline-flex;
  align-items: center;
  gap: 4px;
}
#agent .ap-step .ap-hand {
  color: var(--st-fg);
}
#agent .ap-step__st {
  flex: none;
  font: var(--pic-text-label);
  letter-spacing: var(--at-track);
  color: var(--st-fg);
}

/* 01, the focus: the approval card, a Frame (a 3px tray) holding one card
   with the action's title, its rows and the two buttons */
#agent .ap-frame {
  padding: 3px;
  border-radius: var(--pic-r-card);
  background: color-mix(in srgb, var(--fg) 6%, transparent);
}
#agent .ap-ask {
  display: grid;
  gap: 12px;
  padding: 14px 14px 14px 16px;
  border-radius: calc(var(--pic-r-card) - 3px);
  background: var(--surface);
  box-shadow: var(--pic-card);
}
#agent .ap-dl {
  display: grid;
  gap: 6px;
}
#agent .ap-dl > div {
  display: grid;
  grid-template-columns: minmax(0, 112px) minmax(0, 1fr);
  align-items: baseline;
  gap: 12px;
}
#agent .ap-dl dt {
  font: var(--pic-text-label);
  letter-spacing: var(--at-track);
  color: var(--fg-2);
}
#agent .ap-btns,
#agent .ap-acts {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
#agent .ap-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 32px;
  padding: 0 12px;
  border-radius: var(--ap-r-in);
  box-shadow: inset 0 0 0 1px var(--ap-ring);
  white-space: nowrap;
}
#agent .ap-btn--primary {
  background: var(--ap-blue);
  box-shadow: none;
  color: var(--white);
}

/* 03 is laid on the plate, not in its flow, so it never sets its height:
   it runs off the foot */
#agent .ap-plate .kplate__panel {
  position: relative;
}
#agent .ap-build {
  position: absolute;
  right: 0;
  left: 0;
  margin-inline: auto;
}
/* 01: the window whole, in the middle of the plate, as 02, and a step
   larger now that it holds fewer things */
#agent .ap-win--chat {
  width: min(100%, 540px);
}
#agent .ap-win--chat .ap-thread {
  gap: 22px;
  padding: 24px 28px 28px;
}
#agent .ap-win--chat .ap-ask {
  gap: 16px;
  padding: 18px 18px 18px 20px;
}

/* 02: the WhatsApp chat, whole, in the middle of the plate */
#agent .ap-win--wa {
  width: min(100%, 540px);
}
#agent .ap-bar--wa {
  gap: 10px;
  height: 56px;
  padding: 0 16px 0 12px;
}
#agent .ap-kiwi {
  width: 32px;
  height: 32px;
}
#agent .ap-win .ap-kiwi svg,
#agent .ap-win .ap-wa-mark {
  width: 32px;
  height: 32px;
}
#agent .ap-win .ap-wa-mark {
  width: 20px;
  height: 20px;
}
#agent .ap-chat {
  display: grid;
  gap: 16px;
  padding: 28px 24px 32px;
}
#agent .ap-msg {
  max-width: 84%;
  padding: 8px 12px 9px;
  border-radius: calc(var(--pic-r-card) - 4px);
}
#agent .ap-msg--out {
  justify-self: end;
  border-top-right-radius: 0;
  background: var(--ap-wa-out);
}
#agent .ap-msg--in {
  display: grid;
  justify-self: start;
  gap: 8px;
  border-top-left-radius: 0;
  background: var(--surface);
  box-shadow: var(--pic-card);
}
/* read: the double tick after the text, as WhatsApp sets it */
#agent .ap-win .ap-read {
  display: inline-block;
  margin: 0 -2px 0 8px;
  color: var(--fg-2);
  vertical-align: -3px;
}
#agent .ap-msg--answer {
  margin-top: -2px;
}

/* 03: the assistant behind, the workflow editor laid over it */
#agent .ap-build {
  --ap-dx: 56px;
  top: -8px;
  bottom: -104px;
  display: flex;
  flex-direction: column;
  width: min(100%, 500px);
}
#agent .ap-win--back {
  width: calc(100% - var(--ap-dx));
  margin-top: -64px;
}
#agent .ap-win--back .ap-thread {
  padding: 72px 16px 44px;
}
#agent .ap-win--editor {
  position: relative;
  z-index: 1;
  flex: 1 0 auto;
  width: calc(100% - var(--ap-dx));
  margin: -32px 0 0 var(--ap-dx);
}
/* the editor's toolbar: the primary action on the right (the name field,
   the state and the panel toggles are left out) */
#agent .ap-tools {
  display: flex;
  flex: none;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 6px 12px;
  padding: 6px;
  border-bottom: 1px solid var(--ap-hair);
}
#agent .ap-acts {
  flex-wrap: nowrap;
  margin-left: auto;
}

/* the canvas: dotted, the nodes top to bottom, joined at their handles */
#agent .ap-canvas {
  display: flex;
  flex: 1 0 auto;
  flex-direction: column;
  align-items: center;
  gap: 24px;
  padding: 20px 16px 40px;
  background-image: radial-gradient(circle, var(--ap-hair) 1px, transparent 1.2px);
  background-size: 16px 16px;
  background-position: 8px 8px;
  list-style: none;
}
#agent .ap-node {
  position: relative;
  width: min(100%, 292px);
  padding: 8px 12px;
  border-radius: calc(var(--pic-r-card) - 4px);
  background: var(--surface);
  box-shadow: var(--pic-card);
}
#agent .ap-node__row {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}
/* the trigger's one line, under a hairline: the event that starts it */
#agent .ap-node__sub {
  display: block;
  margin: 8px -12px 0;
  padding: 8px 12px 0;
  border-top: 1px solid var(--line-2);
  font: var(--pic-text-label);
  letter-spacing: var(--at-track);
  color: var(--fg-2);
}
/* the node's icon tile, tinted as the product tints it: green for the
   trigger, violet for the agent, muted for an action */
#agent .ap-tile {
  display: grid;
  flex: none;
  width: 28px;
  height: 28px;
  border-radius: var(--pic-r-chip);
  background: var(--surface-2);
  color: var(--fg-2);
  place-items: center;
}
#agent .ap-tile--trigger {
  --st: var(--at-h-green);
}
#agent .ap-tile--agent {
  --st: var(--at-h-violet);
}
#agent .ap-tile.pic-st {
  background: var(--st-bg);
  box-shadow: inset 0 0 0 1px var(--st-line);
  color: var(--st-fg);
}
/* the edge: a 1.2px line from the handle under one node to the handle on
   top of the next */
#agent .ap-node + .ap-node::before {
  content: "";
  position: absolute;
  bottom: 100%;
  left: calc(50% - 0.6px);
  width: 1.2px;
  height: 24px;
  background: var(--ag-wire);
}
#agent .ap-node::after {
  content: "";
  position: absolute;
  top: -4px;
  bottom: -4px;
  left: calc(50% - 3.5px);
  width: 7px;
  background:
    radial-gradient(circle at 50% 3.5px, var(--ag-wire) 2.5px, transparent 3px),
    radial-gradient(circle at 50% calc(100% - 3.5px), var(--ag-wire) 2.5px, transparent 3px);
  pointer-events: none;
}
#agent .ap-node:first-child::after {
  top: auto;
  height: 7px;
  background: radial-gradient(circle at 50% 3.5px, var(--ag-wire) 2.5px, transparent 3px);
}

/* narrower plates (the stage beside the statement at 901 to 1300px): the
   editor sits less far in, the approval rows keep their labels */
@container (max-width: 440px) {
  #agent .ap-build {
    --ap-dx: 28px;
  }
  #agent .ap-dl > div {
    grid-template-columns: minmax(0, 96px) minmax(0, 1fr);
  }
}

/* the one story of each panel, once, when it is first the active one */
#agent .kplate__panel:not(.is-active) {
  --pic-run: paused;
}
.at-play #agent :is(.ap-step, .ap-msg--in, .ap-msg--answer) {
  animation: ap-rise var(--pic-step) var(--pic-ease) 300ms both;
  animation-play-state: var(--pic-run);
}
.at-play #agent :is(.ap-frame, .ap-win--editor) {
  animation: ap-lift 600ms var(--pic-ease) 1100ms both;
  animation-play-state: var(--pic-run);
}
/* 01: the two lines in turn, then the card */
.at-play #agent .ap-step + .ap-step {
  animation-delay: 700ms;
}
.at-play #agent .ap-frame {
  animation-delay: 1100ms;
}
/* 02: the question, then the answer */
.at-play #agent .ap-msg--answer {
  animation-delay: 1200ms;
}
/* 03: the line, then the workflow comes forward */
.at-play #agent .ap-win--editor {
  animation-delay: 750ms;
}
@keyframes ap-rise {
  from {
    opacity: 0;
    transform: translateY(6px);
  }
}
@keyframes ap-lift {
  from {
    opacity: 0;
    transform: translateY(16px);
  }
}

/* ═════════════════════════════════════════════════════════════════════════
   workflows, control, mcp: production pictures
   The pictures of #workflows, #control and #mcp rebuilt to the rules of
   research/attio-pictures.md (§B, decisions D1 to D5, entries E1-9, E1-12
   and E1-14), after the agent block above. Markup: attio.sections/
   42-workflows.html, 44-control.html and 46-mcp.html (this skin only; the
   other looks keep the shared sections). The rules they replace (the
   four tiles on one line, the three unlabelled dots, the approval card
   with bars, the two tiles wired to GoKiwi, and the three loops: the
   pulse on the wire, the breathing ring, the arriving pulse) are gone
   from above.

   What each shows, every label the product's own (sources in the
   markup's comments):
     workflows  a run: the four nodes of the workflow as the run canvas
                draws them (the trigger with its event), each turning green
                with the tick of its "Completed" badge (written out on the
                last), joined by the line the run takes
     control 1  three actions of the action policy, each with its mode as
                a status chip: Automatic, Approval required, Disabled
     control 2  the assistant's approval card for "Move Deal to stage":
                "Needs approval", its two rows, Approve and Cancel
     mcp        the "Authorized access" list of Settings > MCP connections:
                ChatGPT and Claude with the tick of "Authorized",
                written out on the focal row with "Revoke access"

   How much text: level B (attio.md, "How much text a picture carries"):
   every object named, at most one short line each, nothing that explains
   or repeats.

   Built from the picture foundations in attio.css (--pic-card, --pic-
   window, the nested radii, the two type sizes, the status recipe,
   --pic-ease, --pic-step), in Inter. The product's blue is used for the
   primary button, the selected row and the line of the run, one step
   lighter as the product's own dark theme does (as in #agent).

   Motion, once, on view (attio.motion.js): each picture is data-play=
   "once" and its one story waits on --pic-run. Without .at-play (no
   script, reduced motion) the plain style, the finished frame, is all
   that shows. Nothing loops.
   ═════════════════════════════════════════════════════════════════════════ */
:is(#workflows, #control, #mcp) {
  /* the product's primary blue (paskal theme.css, #1a2ce8), and on this
     dark ground one step lighter, as in #agent: white on it 4.87:1 */
  --at-product-blue: #1a2ce8;
  --pp-blue: color-mix(in srgb, var(--at-product-blue) 75%, var(--white));
  --pp-focus: 0 0 0 1.5px var(--pp-blue);
  /* the product's destructive text in its dark theme (globals.css
     .dark --destructive) */
  --at-product-red: oklch(0.704 0.191 22.216);
  /* the app's own ground inside a window, darker than the cards on it */
  --pp-app: color-mix(in srgb, var(--surface) 45%, var(--at-dark));
  --pp-hair: color-mix(in srgb, var(--fg) 9%, var(--pp-app));
  --pp-ring: color-mix(in srgb, var(--fg) 16%, transparent);
  /* a button, and a panel in a window's 6px tray: 10px */
  --pp-r-in: calc(var(--pic-r-window) - 6px);
}
:is(#workflows, #control, #mcp) :is(.wr-run, .cm-grid, .cq-frame, .ma-win) {
  color: var(--fg);
  font: var(--pic-text-value);
  letter-spacing: var(--at-track);
  text-align: left;
  pointer-events: none;
  user-select: none;
}
:is(#workflows, #control, #mcp) :is(.wr-run, .cm-grid, .cq-frame, .ma-win) :is(p, ul, ol, dl, dd) {
  margin: 0;
}
:is(#workflows, #control, #mcp) :is(.wr-run, .cm-grid, .cq-frame, .ma-win) svg {
  flex: none;
  width: 16px;
  height: 16px;
}
@keyframes pp-in {
  from {
    opacity: 0;
  }
}
@keyframes pp-rise {
  from {
    opacity: 0;
    transform: translateY(6px);
  }
}
@keyframes pp-lift {
  from {
    opacity: 0;
    transform: translateY(16px);
  }
}

/* ── workflows: a run ────────────────────────────────────────────────── */
/* the plate: about 380px, the row on its centre line (the base grid's
   place-items) */
#workflows .wr-canvas {
  min-height: 380px;
  padding: 48px 40px;
}
#workflows .wr-run {
  --gap: 40px;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: var(--gap);
  width: min(100%, 1080px);
  padding: 0;
  list-style: none;
}
/* a node, as the run canvas draws it (product: bg-card, border, rounded-md,
   px-3 py-2): the icon and label, and under a hairline its run badge */
#workflows .wr-node {
  position: relative;
  display: flex;
  flex-direction: column;
  min-width: 0;
  padding: 16px;
  border-radius: calc(var(--pic-r-card) - 2px);
  background: var(--surface);
  box-shadow: var(--pic-card);
}
/* completed: the product's success border (border-success/50), laid over
   the card's ring so the run can light it */
#workflows .wr-node::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  box-shadow: 0 0 0 1px var(--st-line);
  pointer-events: none;
}
/* the first row keeps two lines of title, so every icon sits on the same
   line and the run's line meets each node at its icon's middle */
#workflows .wr-row {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
  min-height: 40px;
  margin-bottom: 14px;
}
#workflows .wr-t {
  min-width: 0;
  text-wrap: balance;
}
/* the node's icon tile, tinted as the product tints it: green for the
   trigger, violet for the agent, muted for an action */
#workflows .wr-tile {
  display: grid;
  flex: none;
  width: 36px;
  height: 36px;
  border-radius: var(--pic-r-chip);
  background: var(--surface-2);
  color: var(--fg-2);
  place-items: center;
}
#workflows .wr-run .wr-tile svg {
  width: 20px;
  height: 20px;
}
/* the Meta and WhatsApp marks, in their own colours on a quiet tile (the
   product draws its generic trigger and inbox glyphs here) */
#workflows .wr-tile--brand {
  box-shadow: inset 0 0 0 1px var(--line-2);
}
#workflows .wr-tile--agent {
  --st: var(--at-h-violet);
}
#workflows .wr-tile.pic-st {
  background: var(--st-bg);
  box-shadow: inset 0 0 0 1px var(--st-line);
  color: var(--st-fg);
}
#workflows .wr-foot {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px 8px;
  margin: auto -16px 0;
  padding: 12px 16px 0;
  border-top: 1px solid var(--line-2);
}
#workflows .wr-sub {
  min-width: 0;
  color: var(--fg-2);
  font: var(--pic-text-label);
  letter-spacing: var(--at-track);
}
#workflows .wr-st {
  margin-left: auto;
}
#workflows .wr-st svg {
  width: 14px;
  height: 14px;
}
/* few words: "Completed" is written out on the last node only; the others
   carry its tick, in the same chip */
.pic-chip.wr-st--icon,
.pic-chip.ma-ok {
  justify-content: center;
  width: 20px;
  padding: 0;
}
/* the line the run takes: from the middle of one node's first row to the
   next node, 1.5px, with the handles as dots at both ends; the run's own
   line, in the product blue, is laid over it */
#workflows .wr-edge {
  position: absolute;
  top: 35.25px; /* 16px padding + half the 40px first row - half the line */
  left: 100%;
  width: var(--gap);
  height: 1.5px;
  background: var(--ag-wire);
}
#workflows .wr-edge::before,
#workflows .wr-edge::after {
  content: "";
  position: absolute;
}
#workflows .wr-edge::before {
  inset: 0;
  background: var(--pp-blue);
  transform-origin: left center;
}
#workflows .wr-edge::after {
  inset: -2.75px -3.5px;
  background:
    radial-gradient(circle at 3.5px 50%, var(--ag-wire) 2.5px, transparent 3px),
    radial-gradient(circle at calc(100% - 3.5px) 50%, var(--ag-wire) 2.5px, transparent 3px);
}
/* in the narrower column of the chapter block the four nodes keep what
   room the plate has */
@media (min-width: 901px) and (max-width: 1300px) {
  #workflows .wr-canvas {
    padding: 48px 20px;
  }
  #workflows .wr-run {
    --gap: 24px;
  }
  #workflows .wr-node {
    padding: 16px 14px;
  }
  /* the icon over the title, so a long name keeps to two lines */
  #workflows .wr-row {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
    min-height: 0;
  }
  #workflows .wr-foot {
    margin-inline: -14px;
    padding-inline: 14px;
  }
  #workflows .wr-edge {
    top: 33.25px; /* the icon's middle */
  }
}
/* stacked (900px and under): the product's own direction, top to bottom,
   the line from the foot of one node to the head of the next */
@media (max-width: 900px) {
  #workflows .wr-canvas {
    min-height: 0;
    padding: 40px 20px;
  }
  #workflows .wr-run {
    --gap: 28px;
    grid-template-columns: minmax(0, 1fr);
    width: min(100%, 320px);
  }
  #workflows .wr-node {
    padding: 14px;
  }
  #workflows .wr-row {
    min-height: 36px;
    margin-bottom: 12px;
  }
  #workflows .wr-foot {
    margin-inline: -14px;
    padding: 10px 14px 0;
  }
  #workflows .wr-edge {
    top: 100%;
    left: calc(50% - 0.75px);
    width: 1.5px;
    height: var(--gap);
  }
  #workflows .wr-edge::before {
    transform-origin: center top;
  }
  #workflows .wr-edge::after {
    inset: -3.5px -2.75px;
    background:
      radial-gradient(circle at 50% 3.5px, var(--ag-wire) 2.5px, transparent 3px),
      radial-gradient(circle at 50% calc(100% - 3.5px), var(--ag-wire) 2.5px, transparent 3px);
  }
}
/* the run, once: each node's border turns green and its badge comes in,
   then the line to the next node fills in blue; 750ms a node */
.at-play #workflows .wr-node::after {
  animation: pp-in var(--pic-step) var(--pic-ease) both;
  animation-play-state: var(--pic-run);
}
.at-play #workflows .wr-st {
  animation: pp-rise 300ms var(--pic-ease) both;
  animation-play-state: var(--pic-run);
}
.at-play #workflows .wr-edge::before {
  animation: wr-wire 300ms var(--pic-ease) both;
  animation-play-state: var(--pic-run);
}
.at-play #workflows .wr-node:nth-child(1) { --wr-t: 200ms; }
.at-play #workflows .wr-node:nth-child(2) { --wr-t: 950ms; }
.at-play #workflows .wr-node:nth-child(3) { --wr-t: 1700ms; }
.at-play #workflows .wr-node:nth-child(4) { --wr-t: 2450ms; }
.at-play #workflows .wr-node::after {
  animation-delay: var(--wr-t);
}
.at-play #workflows .wr-st {
  animation-delay: calc(var(--wr-t) + 150ms);
}
.at-play #workflows .wr-edge::before {
  animation-delay: calc(var(--wr-t) + 450ms);
}
@media (max-width: 900px) {
  .at-play #workflows .wr-edge::before {
    animation-name: wr-wire-down;
  }
}
@keyframes wr-wire {
  from {
    transform: scaleX(0);
  }
}
@keyframes wr-wire-down {
  from {
    transform: scaleY(0);
  }
}

/* ── control 1: the mode of each action ──────────────────────────────── */
/* the rows of the policy, in one card; the row being set is selected */
#control .cm-grid {
  display: grid;
  gap: 2px;
  width: min(100%, 400px);
  padding: 4px;
  border-radius: var(--pic-r-card);
  background: var(--surface);
  box-shadow: var(--pic-card);
  list-style: none;
}
#control .cm-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 4px 12px;
  min-height: 44px;
  padding: 10px 8px 10px 12px;
  border-radius: calc(var(--pic-r-card) - 4px);
}
#control .cm-row--focus {
  background: color-mix(in srgb, var(--fg) 4%, var(--surface));
  box-shadow: var(--pp-focus);
}
#control .cm-t {
  min-width: 0;
}
/* the mode: the chip it had and the chip it has, on one spot */
#control .cm-mode {
  display: grid;
  justify-items: end;
  margin-left: auto;
}
#control .cm-mode > * {
  grid-area: 1 / 1;
}
#control .cm-was {
  opacity: 0;
}
/* once: the selected row's mode goes from Automatic to Approval required */
.at-play #control .cm-was {
  animation: cm-out 300ms var(--pic-ease) 900ms both;
  animation-play-state: var(--pic-run);
}
.at-play #control .cm-now {
  animation: pp-rise 300ms var(--pic-ease) 1000ms both;
  animation-play-state: var(--pic-run);
}
@keyframes cm-out {
  from {
    opacity: 1;
  }
  to {
    opacity: 0;
    transform: translateY(-6px);
  }
}

/* ── control 2: the approval card ────────────────────────────────────── */
/* a Frame (a 3px tray) holding one card, as the product's request card */
#control .cq-frame {
  width: min(100%, 360px);
  padding: 3px;
  border-radius: var(--pic-r-card);
  background: color-mix(in srgb, var(--fg) 6%, transparent);
}
#control .cq-card {
  display: grid;
  gap: 12px;
  padding: 14px 14px 14px 16px;
  border-radius: calc(var(--pic-r-card) - 3px);
  background: var(--surface);
  box-shadow: var(--pic-card);
}
#control .cq-head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 4px 12px;
}
#control .cq-t {
  font: var(--pic-text-title);
  letter-spacing: var(--at-track);
}
/* waiting for you: the amber hand and "Needs approval" (text-warning) */
#control .cq-st {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  color: var(--st-fg);
  font: var(--pic-text-label);
  letter-spacing: var(--at-track);
}
#control .cq-dl {
  display: grid;
  gap: 6px;
}
#control .cq-dl > div {
  display: grid;
  grid-template-columns: minmax(0, 80px) minmax(0, 1fr);
  align-items: baseline;
  gap: 12px;
}
#control .cq-dl dt {
  color: var(--fg-2);
  font: var(--pic-text-label);
  letter-spacing: var(--at-track);
}
#control .cq-btns {
  display: flex;
  gap: 8px;
}
#control .cq-btn {
  display: inline-flex;
  align-items: center;
  height: 32px;
  padding: 0 12px;
  border-radius: var(--pp-r-in);
  box-shadow: inset 0 0 0 1px var(--pp-ring);
  white-space: nowrap;
}
#control .cq-btn--primary {
  background: var(--pp-blue);
  box-shadow: none;
  color: var(--white);
}
/* once: the request comes forward */
.at-play #control .cq-frame {
  animation: pp-lift 600ms var(--pic-ease) 300ms both;
  animation-play-state: var(--pic-run);
}

/* ── mcp: the Server URL line (QA S8) ────────────────────────────────── */
#mcp .mcp-code__head {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0 12px;
  margin: 0;
}
#mcp .mcp-code__status {
  color: var(--fg);
  font: 500 14px/20px var(--font-body);
  letter-spacing: var(--at-track);
}
/* the address takes what is left and wraps if it must; the button keeps
   its size, so nothing runs off a narrow screen */
#mcp .mcp-code__line {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  height: auto;
  min-height: 48px;
  margin: 0;
  padding: 8px 8px 8px 16px;
}
#mcp .mcp-code__v {
  overflow-wrap: anywhere;
  white-space: normal;
}
#mcp .mcp-code__copy {
  border: 0;
  cursor: pointer;
  transition: color 150ms var(--pic-ease), background-color 150ms var(--pic-ease);
}
#mcp .mcp-code__copy[hidden] {
  display: none;
}
#mcp .mcp-code__copy:hover {
  background: var(--surface-2);
  color: var(--fg);
}
#mcp .mcp-code__copy[data-state="copied"] {
  color: var(--fg);
}
/* on a phone the button is its icon; its name stays for screen readers */
@media (max-width: 400px) {
  #mcp .mcp-code__copy {
    justify-content: center;
    width: 32px;
    padding: 0;
  }
  #mcp .mcp-code__copy-k {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip-path: inset(50%);
    white-space: nowrap;
  }
}

/* ── mcp: Authorized access ──────────────────────────────────────────── */
/* a window: a pale tray, 6px round the app, as #agent's */
#mcp .ma-win {
  display: grid;
  width: min(100%, 480px);
  padding: 6px;
  border-radius: var(--pic-r-window);
  background: color-mix(in srgb, var(--fg) 5%, transparent);
  box-shadow: var(--pic-window);
}
#mcp .ma-app {
  overflow: hidden;
  border-radius: var(--pp-r-in);
  background: var(--pp-app);
  box-shadow: 0 0 0 1px var(--pp-hair);
}
/* the Frame's head: its title and its line (product: FrameHeader) */
#mcp .ma-head {
  display: grid;
  gap: 4px;
  padding: 18px 22px;
  border-bottom: 1px solid var(--pp-hair);
}
#mcp .ma-title {
  font: var(--pic-text-title);
  letter-spacing: var(--at-track);
}
#mcp .ma-list {
  padding: 4px 22px;
  list-style: none;
}
#mcp .ma-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 14px;
  padding: 22px 0;
}
#mcp .ma-row + .ma-row {
  border-top: 1px solid var(--pp-hair);
}
/* the assistant's mark on a small card */
#mcp .ma-tile {
  display: grid;
  flex: none;
  width: 40px;
  height: 40px;
  border-radius: calc(var(--pic-r-card) - 2px);
  background: var(--surface);
  box-shadow: var(--pic-card);
  place-items: center;
}
#mcp .ma-tile svg {
  width: 22px;
  height: 22px;
}
#mcp .ma-ok svg {
  width: 14px;
  height: 14px;
}
#mcp .ma-tile--openai {
  color: var(--fg);
}
#mcp .ma-who {
  display: grid;
  flex: 1 1 auto;
  min-width: 0;
}
/* the focus: the red outline button of the product (variant outline,
   text-destructive), on the row it would end */
#mcp .ma-revoke {
  display: inline-flex;
  align-items: center;
  height: 32px;
  padding: 0 12px;
  border-radius: var(--pp-r-in);
  box-shadow: inset 0 0 0 1px var(--pp-ring);
  color: var(--at-product-red);
  white-space: nowrap;
}
/* a narrow window (phones): the name keeps its line, the chip stays on
   it, and the button goes under the name */
#mcp .ma-win {
  container-type: inline-size;
}
@container (max-width: 400px) {
  #mcp .ma-head {
    padding: 14px 14px 12px;
  }
  #mcp .ma-list {
    padding: 2px 14px;
  }
  #mcp .ma-row {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    gap: 10px;
    padding: 14px 0;
  }
  #mcp .ma-tile {
    width: 36px;
    height: 36px;
  }
  #mcp .ma-revoke {
    grid-column: 2 / -1;
    justify-self: start;
  }
}
/* once: the assistants arrive in turn */
.at-play #mcp .ma-row {
  animation: pp-rise var(--pic-step) var(--pic-ease) both;
  animation-play-state: var(--pic-run);
}
.at-play #mcp .ma-row:nth-child(1) {
  animation-delay: 300ms;
}
.at-play #mcp .ma-row:nth-child(2) {
  animation-delay: 650ms;
}
.at-play #mcp .ma-row:nth-child(3) {
  animation-delay: 1000ms;
}

/* src/skins/attio.customers.css */
/* attio skin: the Customers chapter (inbox, customer agent, phone, marketing),
   inside the chapter block of attio.js. The section patterns of the
   reference (see attio.md):
     #inbox           P1 feature article: statement, wide plate, caption cells
     #customer-agent  P3 split: statement on top and rows at the foot of the
                      left column, the plate full height on the right
     #phone           P1 without captions
     #marketing       networks strip, then the plate beside P4 rows
   Rhythm: anything under a hairline starts 24px below it; a picture that
   ends a section has 80px under it (56px under 900px). */

/* ── the statement: even lines, never a lone word at a line end or start ── */
:is(#inbox, #customer-agent, #phone, #marketing) .sec-head--mod {
  text-wrap: balance;
}
/* inbox: balance splits the headline before "channel."; a 480px column
   keeps the headline on one line and moves "It" down to the sub-line */
#inbox .sec-head--mod {
  padding-right: max(var(--pad), calc(100% - 480px - var(--pad)));
  text-wrap: pretty;
}

/* ── the one ornament: a faint dotted grid on the ground behind a picture ── */
:is(#inbox, #customer-agent, #phone, #marketing) .kplate {
  background-image: radial-gradient(circle, var(--line) 1px, transparent 1.3px);
  background-size: 12px 12px;
  background-position: 6px 6px;
}

/* ── 20 inbox (P1): the caption cells under the plate ─────────────────── */
#inbox .ib-feats > .cell {
  padding-block: 32px 40px;
}

/* ── 22 customer agent (P3) ───────────────────────────────────────────── */
/* the mini line sits 4px under its 22px title, as in every caption */
#customer-agent .pillar__text {
  margin-top: -18px;
}
#customer-agent .pillar__stage {
  padding: 24px var(--pad) 0;
}
#customer-agent .ca-pillar {
  padding-bottom: 56px;
}
#customer-agent .ca-pillar > .pillar__list {
  margin-bottom: 0;
  padding-bottom: 0;
}

@media (min-width: 900px) {
  /* the head and the pillar's two parts share one grid on the frame:
     left column the statement on top and the rows at its foot, right
     column the plate over the whole height, a hairline between them */
  #customer-agent .frame {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    grid-template-rows: auto 1fr;
  }
  #customer-agent .frame > .rule {
    display: none;
  }
  #customer-agent .ca-pillar {
    display: contents;
  }
  #customer-agent .sec-head--mod {
    grid-column: 1;
    grid-row: 1;
    padding-right: var(--pad);
  }
  #customer-agent .ca-pillar > .pillar__list {
    grid-column: 1;
    grid-row: 2;
    align-self: end;
    border: 0;
    border-top: 1px solid var(--line);
  }
  #customer-agent .pillar__stage {
    grid-column: 2;
    grid-row: 1 / span 2;
    padding: 24px var(--pad);
    border-left: 1px solid var(--line);
  }
  #customer-agent .pillar__stage > .kplate {
    --kplate-h: 520px;
    padding: 48px 24px;
  }
  /* as on the reference, a row at rest shows only its title; the active one
     adds its line and runs the progress rule under it */
  #customer-agent .pillar__item {
    flex: none;
  }
  #customer-agent .pillar__item:not(.is-active) .pillar__text {
    display: none;
  }
  #customer-agent .pillar__row {
    padding-block: 20px;
  }
  #customer-agent .pillar__text {
    padding-bottom: 22px;
  }
}

/* ── 24 phone (P1 without captions) ───────────────────────────────────── */
#phone .ph-stage {
  padding-top: 0;
}

/* ── 26 marketing: the plate and, beside it, rows from the plate's top ── */
#marketing .mkt-stage {
  padding-top: 24px;
}
#marketing .mkt-feats {
  align-content: start;
  padding-block: 24px 80px;
}
#marketing .mkt-feats > .feat {
  padding: 24px var(--pad);
}
/* the first title stands level with the plate's top edge */
#marketing .mkt-feats > .feat:first-child {
  padding-top: 0;
}
#marketing .mkt-feats > .feat:last-child {
  border-bottom: 1px solid var(--line);
}
/* the twelve network chips: a run of inline chips whose lines are
   balanced, so a narrow column never leaves one chip alone on a line */
#marketing .mkt-nets {
  display: block;
  padding-bottom: 18px;
  font-size: 0;
  line-height: 0;
  text-wrap: balance;
}
#marketing .mkt-net {
  margin: 0 6px 6px 0;
  vertical-align: top;
}
@media (max-width: 900px) {
  #marketing .mkt-stage {
    padding-bottom: 24px;
  }
  #marketing .mkt-feats {
    padding-block: 0;
  }
  #marketing .mkt-feats > .feat:first-child {
    padding-top: 24px;
  }
  #marketing .mkt-feats > .feat:last-child {
    padding-bottom: 56px;
    border-bottom: 0;
  }
}

/* ═════════════════════════════════════════════════════════════════════════
   customer agent: production pictures
   The three panels of the row list, finished to the rules proposed in
   research/attio-pictures.md (§B, decisions D1 to D6, entries E1-7, E1-8
   and the customer-agent half of E1-19), as further examples for the
   owner. Markup: attio.sections/22-customer-agent.html (this skin only).

   What they show: three views of the product's Inbox, as the product lays
   them out, with its own labels (paskal inbox.json); names and messages are
   the page's story (Marta R., her showroom, her kitchen). Each carries
   only what it needs (attio.md, "How much text a picture carries"): the
   composer, timestamps, the email subject and the draft banner's buttons
   are left out.
     01  a WhatsApp thread: Marta's question, the AI's reply with its
         sparkle mark ("AI reply"); laid over the window's corner, the
         channel's "Approved knowledge" (the channel's AI replies setup).
     02  the same thread when the AI cannot answer: the conversation header
         carries "Needs human", and the handoff dock, "Human handoff", gives
         the product's reason ("The approved sources do not provide a
         reliable answer.", the feature itself) and "Accept handoff".
     03  an email reply: the AI draft banner ("Draft prepared by GoKiwi")
         over the drafted text, and "Send" waiting for a person.

   Built from the picture foundations in attio.css: --pic-window for the
   windows, --pic-float for what is laid over them, --pic-card for the
   bubbles, the nested radii, the two text sizes, the status recipe (blue
   the AI, green approved, amber waiting for a person), --pic-ease.

   Motion: each panel tells its one thing once, when the panel becomes the
   active one (the row list in 00-base.js sets .is-active; the plate is
   data-play="once", so nothing runs before the plate is in view):
     01  the AI's reply rises in, then the approved source slides out
     02  the handoff dock rises in, then "Needs human" appears
     03  the draft is written word by word
   The finished frame is the plain style; without JavaScript and under
   reduced motion it is all that shows. Nothing loops.
   ═════════════════════════════════════════════════════════════════════════ */
#inbox,
#customer-agent,
#phone,
#marketing {
  /* the product's primary blue (paskal theme.css, #1a2ce8). Proposed as the
     site-wide accent; it awaits the owner's yes (decision D3). Inside these
     pictures it is the primary button and the unread mark only. */
  --at-product-blue: #1a2ce8;
}
#customer-agent .cx-plate {
  container-type: inline-size;
}
#customer-agent .cx-stage {
  --cx-line: color-mix(in srgb, var(--fg) 8%, var(--surface));
  /* how far a card laid over the window reaches past its edge */
  --cx-over: 24px;
  position: relative;
  width: min(100% - 2 * var(--cx-over), 580px);
  color: var(--fg);
  font: var(--pic-text-value);
  letter-spacing: var(--at-track);
  pointer-events: none;
  user-select: none;
}

/* a window: a pale tray, 6px round the white panel (product: Frame) */
#customer-agent .cx-win {
  padding: 6px;
  border-radius: var(--pic-r-window);
  background: color-mix(in srgb, var(--surface) 50%, transparent);
  box-shadow: var(--pic-window);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
}
#customer-agent .cx-panel {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  min-height: 260px;
  border-radius: calc(var(--pic-r-window) - 6px);
  background: var(--surface);
  box-shadow: 0 0 0 1px var(--cx-line);
}

/* the conversation header: avatar with its channel badge, the name */
#customer-agent .cx-bar {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 60px;
  padding: 12px 14px;
  border-bottom: 1px solid var(--cx-line);
  background: color-mix(in srgb, var(--fg) 2%, var(--surface));
}
#customer-agent .cx-name {
  font: var(--pic-text-title);
  letter-spacing: var(--at-track);
}
#customer-agent .cx-label {
  color: var(--fg-2);
  font: var(--pic-text-label);
  letter-spacing: var(--at-track);
}
#customer-agent .cx-value {
  color: var(--fg);
  font: var(--pic-text-value);
  letter-spacing: var(--at-track);
}
/* Marta R.'s tinted initials: pink, as everywhere on the page */
#customer-agent .cx-av {
  --st: var(--at-h-pink);
  position: relative;
  display: grid;
  flex: none;
  width: 36px;
  height: 36px;
  border-radius: 9999px;
  background: color-mix(in srgb, var(--st) 16%, var(--surface));
  color: color-mix(in srgb, var(--st) 70%, var(--fg));
  font: var(--pic-text-label);
  letter-spacing: var(--at-track);
  place-items: center;
}
/* the round channel badge at its foot (product: 20px on a 36px avatar) */
#customer-agent .cx-badge {
  position: absolute;
  right: -5px;
  bottom: -5px;
  display: grid;
  width: 20px;
  height: 20px;
  border-radius: 9999px;
  background: var(--surface);
  box-shadow: 0 0 0 1px var(--cx-line);
  place-items: center;
}
#customer-agent .cx-badge svg {
  width: 12px;
  height: 12px;
}
#customer-agent .cx-badge--mail {
  color: var(--fg-2);
}

/* the thread: the customer's bubble on the left, white with a ring; the
   reply on the right, grey (product: Bubble outline / ComposerSurface) */
#customer-agent .cx-thread {
  display: flex;
  flex-direction: column;
  flex: 1 1 auto;
  justify-content: flex-start;
  gap: 14px;
  padding: 20px 16px;
}
#customer-agent .cx-msg {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  max-width: 82%;
}
#customer-agent .cx-msg--out {
  align-items: flex-end;
  align-self: flex-end;
}
#customer-agent .cx-bubble {
  margin: 0;
  padding: 10px 14px;
  border-radius: var(--pic-r-window);
  background: var(--surface);
  box-shadow: var(--pic-card);
}
#customer-agent .cx-msg--out .cx-bubble {
  background: color-mix(in srgb, var(--fg) 4%, var(--surface));
}
/* the AI's mark under its message: the filled sparkle, in the AI's blue */
#customer-agent .cx-meta {
  display: flex;
  align-items: center;
  gap: 4px;
  margin: 6px 4px 0;
  font: var(--pic-text-label);
  letter-spacing: var(--at-track);
}
#customer-agent .cx-ai {
  --st: var(--at-h-blue);
  color: color-mix(in srgb, var(--st) var(--st-mix-fg), var(--fg));
}
#customer-agent .cx-meta svg {
  width: 14px;
  height: 14px;
}

/* a tinted icon tile, in the status recipe */
#customer-agent .cx-tile {
  display: grid;
  flex: none;
  width: 32px;
  height: 32px;
  border-radius: calc(var(--pic-r-card) - 4px);
  background: var(--st-bg);
  box-shadow: inset 0 0 0 1px var(--st-line);
  color: var(--st-fg);
  place-items: center;
}
#customer-agent .cx-tile svg {
  width: 16px;
  height: 16px;
}
#customer-agent .cx-tile--src {
  --st: var(--at-h-green);
}
#customer-agent .cx-tile--hand {
  --st: var(--at-h-amber);
}

/* 01: the approved source, laid over the window's left edge, in the
   room the thread leaves at its foot */
#customer-agent .cx-stage--answer .cx-thread {
  padding-bottom: 88px;
}
#customer-agent .cx-src {
  position: absolute;
  bottom: 20px;
  left: calc(-1 * var(--cx-over));
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 16px 10px 10px;
  border-radius: var(--pic-r-card);
  background: var(--surface);
  box-shadow: var(--pic-float);
}
#customer-agent .cx-src__text,
#customer-agent .cx-dock__text {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

/* 02: "Needs human" in the header, and the handoff dock between the thread
   and the composer (product: the warning-light badge and the handoff dock) */
#customer-agent .cx-human {
  margin-left: auto;
}
#customer-agent .cx-human svg {
  width: 12px;
  height: 12px;
}
#customer-agent .cx-dock {
  display: flex;
  margin: 0 16px 16px;
  align-items: center;
  gap: 12px;
  padding: 10px 10px 10px 12px;
  border-radius: var(--pic-r-window);
  background: var(--surface);
  box-shadow: var(--pic-float);
}
#customer-agent .cx-dock__text {
  flex: 1 1 auto;
}

/* buttons, as the product's: ghost, outline, primary in its blue */
#customer-agent .cx-btn {
  display: inline-flex;
  flex: none;
  align-items: center;
  gap: 6px;
  height: 32px;
  padding: 0 10px;
  border-radius: calc(var(--pic-r-window) - 6px);
  font: var(--pic-text-value);
  letter-spacing: var(--at-track);
  white-space: nowrap;
}
#customer-agent .cx-btn--ghost {
  color: var(--fg-2);
}
#customer-agent .cx-btn--pill {
  border-radius: 9999px;
  background: color-mix(in srgb, var(--fg) 5%, var(--surface));
  color: var(--fg);
}
#customer-agent .cx-btn--primary {
  padding: 0 12px;
  background: var(--at-product-blue);
  color: var(--white);
}
#customer-agent .cx-btn svg {
  width: 16px;
  height: 16px;
}

/* 03: the composer, with the AI draft banner over the drafted text */
#customer-agent .cx-compose {
  display: flex;
  flex: 1 1 auto;
  flex-direction: column;
  margin: 12px;
  overflow: hidden;
  border-radius: var(--pic-r-card);
  box-shadow: var(--pic-card);
}
#customer-agent .cx-draft {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 10px 14px;
  border-bottom: 1px dashed var(--line-2);
  background: color-mix(in srgb, var(--fg) 3%, var(--surface));
}
/* the AI's sparkle before the banner's words, in the AI's blue */
#customer-agent .cx-draft__ico {
  --st: var(--at-h-blue);
  flex: none;
  width: 14px;
  height: 14px;
  color: color-mix(in srgb, var(--st) var(--st-mix-fg), var(--fg));
}
#customer-agent .cx-body {
  flex: 1 1 auto;
  margin: 0;
  padding: 16px 16px 20px;
  line-height: 22px;
  text-wrap: pretty;
}
#customer-agent .cx-cfoot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 10px 10px 14px;
}
#customer-agent .cx-attach {
  width: 16px;
  height: 16px;
  color: var(--fg-2);
}

/* the three panels share one cell of the plate, so it is as tall as the
   tallest; each window takes that height, so nothing jumps when the rows
   switch, and the cell is centred on the plate */
#customer-agent .cx-plate {
  align-content: center;
}
#customer-agent .cx-plate > .kplate__panel {
  align-items: stretch;
}
#customer-agent .cx-stage {
  display: flex;
  flex-direction: column;
}
#customer-agent .cx-win {
  display: flex;
  flex: 1 1 auto;
  flex-direction: column;
}
#customer-agent .cx-panel {
  flex: 1 1 auto;
}
/* narrower plates: the corner cards reach less far past the window */
@container (max-width: 470px) {
  #customer-agent .cx-stage {
    --cx-over: 0px;
  }
  #customer-agent .cx-dock {
    margin-inline: 10px;
  }
}
/* the dock keeps its words on a narrower plate and gives up its button */
@container (max-width: 540px) {
  #customer-agent .cx-dock .cx-btn--pill {
    display: none;
  }
}

/* the one story of each panel, once, when it becomes the active one */
.at-play #customer-agent .kplate__panel.is-active .cx-reply {
  animation: cx-rise var(--pic-step) var(--pic-ease) 350ms both;
  animation-play-state: var(--pic-run);
}
.at-play #customer-agent .kplate__panel.is-active .cx-src {
  animation: cx-slide var(--pic-step) var(--pic-ease) 900ms both;
  animation-play-state: var(--pic-run);
}
.at-play #customer-agent .kplate__panel.is-active .cx-dock {
  animation: cx-rise var(--pic-step) var(--pic-ease) 450ms both;
  animation-play-state: var(--pic-run);
}
.at-play #customer-agent .kplate__panel.is-active .cx-human {
  animation: cx-pop 300ms var(--pic-ease) 950ms both;
  animation-play-state: var(--pic-run);
}
.at-play #customer-agent .kplate__panel.is-active .cx-body > span {
  animation: cx-word 240ms var(--pic-ease) both;
  animation-delay: calc(400ms + var(--i, 0) * 80ms);
  animation-play-state: var(--pic-run);
}
@keyframes cx-rise {
  from { opacity: 0; transform: translateY(10px); }
}
@keyframes cx-slide {
  from { opacity: 0; transform: translateX(var(--cx-over)); }
}
@keyframes cx-pop {
  from { opacity: 0; transform: scale(0.92); }
}
@keyframes cx-word {
  from { opacity: 0; }
}

/* ═════════════════════════════════════════════════════════════════════════
   inbox: production picture
   Entry E1-11 of research/attio-pictures.md. Markup:
   attio.sections/20-inbox.html (this skin only).

   What it shows: five channel tiles wired into the GoKiwi Inbox, and the
   Inbox as the product lists it (paskal inbox-workspace.tsx, the
   conversation row): three real rows, each a tinted avatar with initials
   and its channel badge, the name and one short line. Marta R.'s last
   message is the AI's reply, marked with the product's AI sparkle; Giulia
   T.'s carries the one state chip, "Needs human" (paskal inbox.json). A
   fourth row, a bar, fades out at the foot. Left out: the email subject
   construction, labels, unread dots and counts. The WhatsApp wire, the one
   in the middle, is the running path in the AI's blue.

   Built from the picture foundations in attio.css: --pic-card for the
   tiles, --pic-window for the Inbox, the nested radii, the two text sizes
   and the title, .pic-chip with data-status (amber: waits for a person),
   the page's .mk-skel bar.

   Motion, once, when the picture comes into view: a dot runs along the
   WhatsApp wire into the Inbox, and Marta R.'s row, answered by the AI,
   lands at the top of the list. The finished frame is the plain style.
   ═════════════════════════════════════════════════════════════════════════ */
#inbox .ib-flow {
  --ib-line: color-mix(in srgb, var(--fg) 8%, var(--surface));
  grid-template-columns: minmax(0, 196px) minmax(64px, 1fr) minmax(0, 400px);
  max-width: 920px;
  color: var(--fg);
  font: var(--pic-text-value);
  letter-spacing: var(--at-track);
  pointer-events: none;
  user-select: none;
}
#inbox .ib-chans {
  gap: 12px;
}
#inbox .ib-chan {
  position: relative;
  gap: 10px;
  height: 48px;
  padding: 0 14px 0 8px;
  border-radius: var(--pic-r-card);
  background: var(--surface);
  box-shadow: var(--pic-card);
  font: var(--pic-text-value);
  letter-spacing: var(--at-track);
}
#inbox .ib-chan__ico,
#inbox .ib-chan__ico--glyph {
  width: 32px;
  height: 32px;
  border-radius: calc(var(--pic-r-card) - 4px);
  background: color-mix(in srgb, var(--fg) 4%, var(--surface));
  box-shadow: none;
  color: var(--fg-2);
}
#inbox .ib-chan__ico svg {
  width: 18px;
  height: 18px;
}
#inbox .ib-wires path {
  stroke: var(--line-2);
  stroke-opacity: 1;
  stroke-width: 1.2;
  stroke-linecap: round;
}
#inbox .ib-wires .ib-wire--on {
  stroke: var(--at-h-blue);
}
#inbox .ib-pulse {
  display: none;
}

/* the Inbox: a window, a pale tray 6px round the white panel */
#inbox .ib-win {
  position: relative;
  align-self: center;
  min-width: 0;
  padding: 6px;
  border-radius: var(--pic-r-window);
  background: color-mix(in srgb, var(--surface) 50%, transparent);
  box-shadow: var(--pic-window);
}
#inbox .ib-panel {
  overflow: hidden;
  padding-bottom: 6px;
  border-radius: calc(var(--pic-r-window) - 6px);
  background: var(--surface);
  box-shadow: 0 0 0 1px var(--ib-line);
}
#inbox .ib-bar {
  margin: 0 0 4px;
  padding: 12px 16px;
  border-bottom: 1px solid var(--ib-line);
  background: color-mix(in srgb, var(--fg) 2%, var(--surface));
  font: var(--pic-text-title);
  letter-spacing: var(--at-track);
}
/* a conversation row (product: px-3 py-3, avatar, then name, message, chips) */
#inbox .ib-row {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 14px 16px;
}
#inbox .ib-row__main {
  display: flex;
  flex: 1 1 auto;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}
#inbox .ib-row__bars {
  gap: 10px;
  padding-top: 8px;
}
/* the one state chip of the card */
#inbox .ib-chips {
  display: flex;
  padding-top: 6px;
}
#inbox .ib-chips .pic-chip svg {
  width: 12px;
  height: 12px;
}
#inbox .ib-snip {
  display: flex;
  align-items: center;
  gap: 6px;
  min-width: 0;
  color: var(--fg-2);
}
#inbox .ib-snip > span {
  overflow: hidden;
  min-width: 0;
  text-overflow: ellipsis;
  white-space: nowrap;
}
/* the AI's reply: the product's filled sparkle, in the AI's blue */
#inbox .ib-ai {
  --st: var(--at-h-blue);
  flex: none;
  width: 14px;
  height: 14px;
  color: color-mix(in srgb, var(--st) var(--st-mix-fg), var(--fg));
}
/* tinted initials with the round channel badge at their foot */
#inbox .ib-face {
  --st: var(--at-h-grey);
  position: relative;
  display: grid;
  flex: none;
  width: 40px;
  height: 40px;
  border-radius: 9999px;
  background: color-mix(in srgb, var(--st) 14%, var(--surface));
  color: color-mix(in srgb, var(--st) 70%, var(--fg));
  font: var(--pic-text-label);
  letter-spacing: var(--at-track);
  place-items: center;
}
#inbox .ib-face--pink {
  --st: var(--at-h-pink);
}
#inbox .ib-badge {
  position: absolute;
  right: -5px;
  bottom: -5px;
  display: grid;
  width: 20px;
  height: 20px;
  border-radius: 9999px;
  background: var(--surface);
  box-shadow: 0 0 0 1px var(--ib-line);
  place-items: center;
}
#inbox .ib-badge svg {
  width: 12px;
  height: 12px;
}
#inbox .ib-badge--mail {
  color: var(--fg-2);
}
/* the next row of the list, fading out at the window's foot */
#inbox .ib-row--ghost {
  height: 56px;
  overflow: hidden;
  -webkit-mask-image: linear-gradient(to bottom, var(--fg) 10%, transparent);
  mask-image: linear-gradient(to bottom, var(--fg) 10%, transparent);
}
#inbox .ib-row--ghost .ib-face {
  background: color-mix(in srgb, var(--fg) 5%, var(--surface));
}

@media (min-width: 901px) {
  /* a dot where each wire leaves a tile, and one where they meet the Inbox */
  #inbox .ib-chan::after,
  #inbox .ib-win::before {
    content: "";
    position: absolute;
    top: 50%;
    width: 7px;
    height: 7px;
    margin-top: -3.5px;
    border-radius: 50%;
    background: var(--surface);
    box-shadow: 0 0 0 1.2px var(--line-2);
  }
  #inbox .ib-chan::after {
    right: -4px;
  }
  #inbox .ib-chan--on::after,
  #inbox .ib-win::before {
    box-shadow: 0 0 0 1.2px var(--at-h-blue);
  }
  #inbox .ib-win::before {
    left: -4px;
    z-index: 1;
  }
  /* the running dot: plain style hidden, it shows only while it runs */
  #inbox .ib-pulse {
    position: absolute;
    top: 50%;
    left: 0;
    display: block;
    width: 100%;
    height: 6px;
    margin-top: -3px;
    background: radial-gradient(circle at 3px 3px, var(--at-h-blue) 2.5px, transparent 3px) no-repeat;
    opacity: 0;
  }
}
@media (max-width: 900px) {
  /* the tiles wrap above the Inbox, one short wire between them */
  #inbox .ib-flow {
    grid-template-columns: minmax(0, 1fr);
  }
  #inbox .ib-chans {
    gap: 8px;
  }
  #inbox .ib-chan {
    height: 44px;
    font: var(--pic-text-value);
  }
  #inbox .ib-chan__ico,
  #inbox .ib-chan__ico--glyph {
    width: 28px;
    height: 28px;
  }
  #inbox .ib-link {
    width: 1px;
    height: 32px;
    background: var(--at-h-blue);
  }
  #inbox .ib-win {
    justify-self: center;
    width: min(100%, 420px);
  }
}

/* the one story, once: the WhatsApp message runs in, the AI's row lands */
.at-play #inbox .ib-pulse {
  animation: ib-pass 1100ms linear 300ms both;
  animation-play-state: var(--pic-run);
}
.at-play #inbox .ib-row--marta {
  animation: ib-land var(--pic-step) var(--pic-ease) 1300ms both;
  animation-play-state: var(--pic-run);
}
@keyframes ib-pass {
  0% { opacity: 0; transform: translateX(0); }
  12% { opacity: 1; }
  88% { opacity: 1; transform: translateX(calc(100% - 6px)); }
  100% { opacity: 0; transform: translateX(calc(100% - 6px)); }
}
@keyframes ib-land {
  from { opacity: 0; transform: translateY(-8px); }
}

/* ═════════════════════════════════════════════════════════════════════════
   marketing: production picture
   Entry E1-6 of research/attio-pictures.md. Markup:
   attio.sections/26-marketing.html (this skin only).

   What it shows: one post on the client's approval page, as the product
   lays it out (paskal editorial-approval/client): the network and the
   post's state badge on top, the photo, the caption, and the decision bar
   with "Request changes" (outline, pencil) and "Approve" (primary, tick).
   The state badge is the client page's own ("To approve", info blue;
   paskal marketingApp.json, editorial.client.state). The picture is the
   moment before the client decides: after an approval the product keeps
   the decision bar and only disables "Approve" (decision-panel.tsx), so
   the press is not drawn and nothing moves. "Approve", in the product's
   blue, is the focus.
   There is no photo to use, so the photo is a flat drawing of a showroom
   worktop (tiles in two tones, two pendant lamps, a plant, dark cabinets),
   in the skin's hues.

   Built from the picture foundations in attio.css: --pic-float for the
   card, the nested radii, the two text sizes and the title, .pic-chip with
   data-status (blue: in progress), the product's blue for the primary
   button.
   ═════════════════════════════════════════════════════════════════════════ */
#marketing .mkt-pic {
  --mkt-line: color-mix(in srgb, var(--fg) 8%, var(--surface));
  display: grid;
  width: 100%;
  color: var(--fg);
  font: var(--pic-text-value);
  letter-spacing: var(--at-track);
  pointer-events: none;
  user-select: none;
  place-items: center;
}
#marketing .mkt-card {
  width: min(100%, 360px);
  overflow: hidden;
  border-radius: var(--pic-r-card);
  background: var(--surface);
  box-shadow: var(--pic-float);
}
#marketing .mkt-card__top {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0;
  padding: 12px 14px;
}
#marketing .mkt-card__top b {
  font: var(--pic-text-title);
  letter-spacing: var(--at-track);
}
#marketing .mkt-mark {
  flex: none;
  width: 20px;
  height: 20px;
}
/* the post's state, with the product's dot before the words */
#marketing .mkt-state {
  margin-left: auto;
}
#marketing .mkt-state i {
  width: 6px;
  height: 6px;
  border-radius: 9999px;
  background: currentColor;
}
/* the photo: a flat drawing of a showroom worktop */
#marketing .mkt-scene {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 4 / 3;
}
#marketing .mkt-sc-wall {
  fill: color-mix(in srgb, var(--at-h-orange) 6%, var(--surface));
}
#marketing .mkt-sc-tile {
  fill: color-mix(in srgb, var(--at-h-orange) 11%, var(--surface));
}
#marketing .mkt-sc-grout {
  fill: color-mix(in srgb, var(--at-h-orange) 20%, var(--surface));
}
#marketing .mkt-sc-cord,
#marketing .mkt-sc-door {
  fill: none;
  stroke: color-mix(in srgb, var(--fg) 55%, var(--surface));
  stroke-width: 1.5;
}
#marketing .mkt-sc-lamp {
  fill: color-mix(in srgb, var(--fg) 85%, var(--surface));
}
#marketing .mkt-sc-glow {
  fill: color-mix(in srgb, var(--at-h-amber) 45%, var(--surface));
}
#marketing .mkt-sc-leaf {
  fill: color-mix(in srgb, var(--at-h-green) 55%, var(--surface));
}
#marketing .mkt-sc-vase {
  fill: color-mix(in srgb, var(--fg) 12%, var(--surface));
}
#marketing .mkt-sc-bowl {
  fill: color-mix(in srgb, var(--at-h-orange) 45%, var(--surface));
}
#marketing .mkt-sc-top {
  fill: color-mix(in srgb, var(--fg) 3%, var(--surface));
}
#marketing .mkt-sc-vein {
  fill: none;
  stroke: color-mix(in srgb, var(--fg) 12%, var(--surface));
  stroke-width: 1;
}
#marketing .mkt-sc-base {
  fill: color-mix(in srgb, var(--fg) 75%, var(--surface));
}
#marketing .mkt-sc-door {
  stroke: color-mix(in srgb, var(--fg) 90%, var(--surface));
}
#marketing .mkt-sc-handle {
  fill: none;
  stroke: color-mix(in srgb, var(--at-h-amber) 55%, var(--surface));
  stroke-width: 2.5;
  stroke-linecap: round;
}
#marketing .mkt-cap {
  margin: 0;
  padding: 12px 14px 0;
  text-wrap: pretty;
}
/* the decision bar (product: two equal buttons under a hairline) */
#marketing .mkt-decide {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  margin-top: 14px;
  padding: 12px 14px 14px;
  border-top: 1px solid var(--mkt-line);
}
#marketing .mkt-act {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  height: 36px;
  padding: 0 10px;
  border-radius: calc(var(--pic-r-card) - 4px);
  background: var(--surface);
  box-shadow: inset 0 0 0 1px var(--line-2);
  font: var(--pic-text-value);
  letter-spacing: var(--at-track);
  white-space: nowrap;
}
#marketing .mkt-act svg {
  flex: none;
  width: 16px;
  height: 16px;
}
/* Approve, in the product's blue: the focus */
#marketing .mkt-act--primary {
  background: var(--at-product-blue);
  box-shadow: none;
  color: var(--white);
}
@media (max-width: 900px) {
  #marketing .mkt-card {
    width: min(100%, 340px);
  }
}
/* a narrow plate: the two buttons keep their words and drop their icons */
#marketing .mkt-plate {
  container-type: inline-size;
}
@container (max-width: 360px) {
  #marketing .mkt-act {
    padding: 0 6px;
  }
  #marketing .mkt-act svg {
    display: none;
  }
}

/* ═════════════════════════════════════════════════════════════════════════
   phone: production picture
   Entry E1-10 of research/attio-pictures.md, as the simple picture the
   owner kept (an incoming call and the three things the AI does on it),
   finished to the rules. Markup: attio.sections/24-phone.html (this skin
   only).

   What it shows: the incoming call, on the number it came in on (the
   product's "Number name"; "Customer support" is the product's own
   example). The product recognises a caller by matching the number to one
   CRM person, but keeps no caller name on the call, so none is drawn. From
   the call, three steps under the product's own action labels (paskal
   voice.json, callHistory.actionLabels): "Contact searched", "Estimate
   calculated", "Transferred", the last with its destination, "Anna K."
   (callDetail.transferDestination). Each is ticked green when done.
   The call card and the three steps make one tight object, about 780px
   wide, centred on the plate.

   Built from the picture foundations in attio.css: --pic-card with
   --pic-focus on the call (its title one step up, at 16px, as the focus),
   --pic-card on the steps, the nested radii, the two text sizes, the
   status recipe (blue: the AI on the call, green: done). Connectors are
   1.2px with rounded elbows and a dot where they meet a card.

   Motion, once, when the picture comes into view: the three steps
   complete in turn; each branch of the connector appears just before its
   step, the step rises in, then it is ticked. No ringing. The finished
   frame is the plain style.
   ═════════════════════════════════════════════════════════════════════════ */
#phone .ph-plate {
  container-type: inline-size;
  padding: 64px 40px;
}
#phone .ph-pic {
  --ph-gap: 16px;
  display: grid;
  width: min(100%, 780px);
  color: var(--fg);
  font: var(--pic-text-value);
  letter-spacing: var(--at-track);
  pointer-events: none;
  user-select: none;
  justify-items: center;
}
/* the call: the focal card */
#phone .ph-call {
  position: relative;
  gap: 16px;
  width: min(100%, 420px);
  padding: 18px 22px 18px 18px;
  border-radius: var(--pic-r-card);
  background: var(--surface);
  box-shadow: var(--pic-focus), var(--pic-card);
}
#phone .ph-ring {
  --st: var(--at-h-blue);
  width: 44px;
  height: 44px;
  border-radius: 9999px;
  background: var(--st-bg);
  box-shadow: inset 0 0 0 1px var(--st-line);
  color: var(--st-fg);
}
#phone .ph-ring svg {
  width: 22px;
  height: 22px;
}
#phone .ph-call__text {
  display: flex;
  flex-direction: column;
  gap: 2px;
}
#phone .ph-call__title {
  font: var(--pic-text-title);
  font-size: 16px;
  line-height: 24px;
  letter-spacing: var(--at-track);
}
#phone .ph-label {
  color: var(--fg-2);
  font: var(--pic-text-label);
  letter-spacing: var(--at-track);
}
#phone .ph-value {
  font: var(--pic-text-value);
  letter-spacing: var(--at-track);
  white-space: nowrap;
}
/* the connector: a trunk from the call, then one branch to each step */
#phone .ph-tree {
  --ph-c: calc((100% - 2 * var(--ph-gap)) / 6 - 0.6px);
  position: relative;
  display: block;
  width: 100%;
  height: 40px;
}
#phone .ph-br {
  position: absolute;
  display: block;
  border: 0 solid var(--line-2);
}
#phone .ph-br--0,
#phone .ph-br--2 {
  left: calc(50% - 0.6px);
  width: 1.2px;
  background: var(--line-2);
}
#phone .ph-br--0 {
  top: 0;
  height: 20px;
}
#phone .ph-br--2 {
  top: 20px;
  bottom: 0;
}
#phone .ph-br--1 {
  top: 20px;
  right: 50%;
  bottom: 0;
  left: var(--ph-c);
  border-top-width: 1.2px;
  border-left-width: 1.2px;
  border-top-left-radius: var(--pic-r-card);
}
#phone .ph-br--3 {
  top: 20px;
  right: var(--ph-c);
  bottom: 0;
  left: 50%;
  border-top-width: 1.2px;
  border-right-width: 1.2px;
  border-top-right-radius: var(--pic-r-card);
}
/* a dot where a line meets a card */
#phone .ph-call::after,
#phone .ph-step::before {
  content: "";
  position: absolute;
  left: 50%;
  width: 7px;
  height: 7px;
  margin-left: -3.5px;
  border-radius: 50%;
  background: var(--surface);
  box-shadow: 0 0 0 1.2px var(--line-2);
}
#phone .ph-call::after {
  bottom: -4px;
}
#phone .ph-step::before {
  top: -4px;
}
/* the three steps: compact rows of icon, label and tick */
#phone .ph-steps {
  gap: var(--ph-gap);
  width: 100%;
}
#phone .ph-steps::before {
  display: none;
}
#phone .ph-step {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 10px;
  min-height: 56px;
  padding: 10px 12px 10px 10px;
  border-radius: var(--pic-r-card);
  background: var(--surface);
  box-shadow: var(--pic-card);
  font: var(--pic-text-value);
  letter-spacing: var(--at-track);
  text-align: left;
}
#phone .ph-tile {
  flex: none;
  width: 32px;
  height: 32px;
  border-radius: calc(var(--pic-r-card) - 4px);
  background: color-mix(in srgb, var(--fg) 4%, var(--surface));
  box-shadow: none;
  color: var(--fg-2);
}
#phone .ph-tile svg {
  width: 18px;
  height: 18px;
}
#phone .ph-step__text {
  display: flex;
  flex: 1 1 auto;
  flex-direction: column;
  min-width: 0;
}
/* done: a green tick at the row's end */
#phone .ph-done {
  display: grid;
  flex: none;
  width: 20px;
  height: 20px;
  border-radius: 9999px;
  background: var(--st-bg);
  box-shadow: inset 0 0 0 1px var(--st-line);
  color: var(--st-fg);
  place-items: center;
}
#phone .ph-done svg {
  width: 12px;
  height: 12px;
}
@media (max-width: 900px) {
  #phone .ph-plate {
    padding: 40px 16px;
  }
  #phone .ph-call {
    gap: 16px;
    padding: 18px 22px 18px 18px;
  }
  #phone .ph-ring {
    width: 44px;
    height: 44px;
    box-shadow: inset 0 0 0 1px var(--st-line);
  }
}
/* a narrow plate: the steps stack under the call, joined by short lines */
@container (max-width: 760px) {
  #phone .ph-tree {
    height: 12px;
  }
  #phone .ph-br--0 {
    height: 100%;
  }
  #phone .ph-br--1,
  #phone .ph-br--2,
  #phone .ph-br--3 {
    display: none;
  }
  #phone .ph-steps {
    grid-template-columns: minmax(0, 1fr);
    gap: 12px;
    width: min(100%, 420px);
  }
  /* each step brings the line above it */
  #phone .ph-step::before {
    top: -12px;
    width: 1.2px;
    height: 12px;
    margin-left: -0.6px;
    border-radius: 0;
    background: var(--line-2);
    box-shadow: none;
  }
  #phone .ph-step:first-child::before {
    display: none;
  }
}

/* the one story, once: each branch appears, its step rises in, is ticked */
.at-play #phone .ph-br {
  animation: ph-fade 250ms var(--pic-ease) both;
  animation-play-state: var(--pic-run);
}
.at-play #phone .ph-step {
  animation: ph-rise var(--pic-step) var(--pic-ease) both;
  animation-play-state: var(--pic-run);
}
.at-play #phone .ph-done {
  animation: ph-tick 300ms var(--pic-ease) both;
  animation-play-state: var(--pic-run);
}
.at-play #phone .ph-br--0 { animation-delay: 100ms; }
.at-play #phone .ph-br--1 { animation-delay: 200ms; }
.at-play #phone .ph-br--2 { animation-delay: 650ms; }
.at-play #phone .ph-br--3 { animation-delay: 1100ms; }
.at-play #phone .ph-step:nth-child(1) { animation-delay: 300ms; }
.at-play #phone .ph-step:nth-child(2) { animation-delay: 750ms; }
.at-play #phone .ph-step:nth-child(3) { animation-delay: 1200ms; }
.at-play #phone .ph-step:nth-child(1) .ph-done { animation-delay: 600ms; }
.at-play #phone .ph-step:nth-child(2) .ph-done { animation-delay: 1050ms; }
.at-play #phone .ph-step:nth-child(3) .ph-done { animation-delay: 1500ms; }
@keyframes ph-fade {
  from { opacity: 0; }
}
@keyframes ph-rise {
  from { opacity: 0; transform: translateY(8px); }
}
@keyframes ph-tick {
  from { opacity: 0; transform: scale(0.6); }
}

/* src/skins/attio.nav.css */
/* Skin "attio", part "nav": the site's shell on the home page. The header
   with its Product menu and the sheet it becomes under 900px, the sticky
   chapter row under 1100px, the kiwi mark as the marker of the section being
   read, the 404 page, the technical fixes of the footer, and the finish of
   every control (pressed state, focus on every ground, hover on the side
   list and the questions). Markup: the attio block of src/shell.html and
   notFound() in build.mjs. Behaviour: src/skins/attio.nav.js.

   Colours come only from the band's variables (--bg, --surface, --fg, …), so
   everything here follows the header and the chapter onto any ground. */

:root {
  /* The kiwi mark (the sprite's #kiwi: a disc with its seeds cut out) as a
     mask. Only its alpha is used; the colour comes from the element's
     background, so "white" and "black" below are the mask's on and off,
     not colours of the page. */
  --at-kiwi-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cmask id='m'%3E%3Crect width='24' height='24' fill='white'/%3E%3Cg fill='black'%3E%3Ccircle cx='12' cy='12' r='3.1'/%3E%3Cellipse cx='18.6' cy='12' rx='.85' ry='1.7' transform='rotate(90 18.6 12)'/%3E%3Cellipse cx='16.67' cy='16.67' rx='.85' ry='1.7' transform='rotate(135 16.67 16.67)'/%3E%3Cellipse cx='12' cy='18.6' rx='.85' ry='1.7'/%3E%3Cellipse cx='7.33' cy='16.67' rx='.85' ry='1.7' transform='rotate(45 7.33 16.67)'/%3E%3Cellipse cx='5.4' cy='12' rx='.85' ry='1.7' transform='rotate(90 5.4 12)'/%3E%3Cellipse cx='7.33' cy='7.33' rx='.85' ry='1.7' transform='rotate(135 7.33 7.33)'/%3E%3Cellipse cx='12' cy='5.4' rx='.85' ry='1.7'/%3E%3Cellipse cx='16.67' cy='7.33' rx='.85' ry='1.7' transform='rotate(45 16.67 7.33)'/%3E%3C/g%3E%3C/mask%3E%3Ccircle cx='12' cy='12' r='11' mask='url(%23m)'/%3E%3C/svg%3E");
  /* the sticky chapter row under 1100px */
  --at-row-h: 44px;
  /* a quiet fill for a hovered or pressed control, on any ground */
  --at-hover: color-mix(in srgb, var(--fg) 6%, transparent);
  --at-press: color-mix(in srgb, var(--fg) 10%, transparent);
}

/* ═════════════════════════════════════════════════════════════════════════
   The header
   ═════════════════════════════════════════════════════════════════════════ */
.nav--site {
  --nav-link: var(--at-nav);
}
.nav--site[data-theme="dark"] {
  --nav-link: var(--fg-2);
}
.nav--site .nav__in {
  gap: 24px;
}
.nav__sr {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}
.nav__toggle {
  display: none;
}
.nav__drawer {
  display: flex;
  flex: 1;
  align-items: center;
  gap: 24px;
  min-width: 0;
}
.nav__main {
  display: flex;
  align-items: center;
  gap: 2px;
}
/* a link of the header, and the Product trigger */
.nav__link {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  height: 32px;
  padding: 0 10px;
  border-radius: var(--r-sm);
  color: var(--nav-link);
  font: 500 15px/22px var(--font-body);
  letter-spacing: var(--at-track);
  white-space: nowrap;
  cursor: pointer;
  list-style: none;
  user-select: none;
  -webkit-tap-highlight-color: transparent;
}
.nav__link::-webkit-details-marker,
.nav__burger::-webkit-details-marker {
  display: none;
}
.nav__link::marker,
.nav__burger::marker {
  content: "";
}
.nav__link:hover,
.nav__menu[open] > .nav__trigger {
  background: var(--at-hover);
  color: var(--fg);
}
.nav__chev {
  opacity: 0.7;
}
.nav__menu[open] .nav__chev {
  transform: rotate(180deg);
}
.nav__actions {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-left: auto;
}
.nav__actions .nav__cta {
  margin-left: 0;
}

/* ── the Product menu: three chapters, each module with one line ──────── */
.nav__group-title {
  display: block;
  padding: 6px 10px;
  border-radius: var(--r-sm);
  color: var(--fg-2);
  font: 500 13px/18px var(--font-body);
  letter-spacing: 0;
}
.nav__group-title:hover {
  color: var(--fg);
}
.nav__entry {
  display: grid;
  gap: 2px;
  padding: 8px 10px;
  border-radius: var(--r-md);
}
.nav__entry:hover {
  background: var(--at-hover);
}
.nav__entry-name {
  color: var(--fg);
  font: 500 15px/20px var(--font-body);
  letter-spacing: var(--at-track);
}
.nav__entry-line {
  color: var(--fg-2);
  font: 500 14px/20px var(--font-body);
  letter-spacing: var(--at-track);
}

@media (min-width: 900px) {
  /* the panel hangs under the header, centred on the page */
  .nav__panel {
    position: absolute;
    top: calc(100% + 8px);
    left: var(--pad);
    right: var(--pad);
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 4px;
    max-width: 920px;
    margin-inline: auto;
    padding: 12px;
    border-radius: var(--r-lg);
    background: var(--surface);
    box-shadow:
      0 0 0 1px var(--line-2),
      var(--ui-shadow);
  }
  .nav__group + .nav__group {
    padding-left: 4px;
    border-left: 1px solid var(--line);
  }
  .nav__group-title {
    margin-bottom: 4px;
  }
}

/* ── under 900px: a menu button and a full-width sheet ────────────────── */
@media (max-width: 899.98px) {
  .nav--site .nav__in {
    gap: 12px;
  }
  .nav__toggle {
    display: block;
    margin-left: auto;
  }
  .nav__burger {
    display: grid;
    place-items: center;
    width: 44px;
    height: 44px;
    margin-right: -10px;
    border-radius: var(--r-md);
    color: var(--fg);
    cursor: pointer;
    list-style: none;
    -webkit-tap-highlight-color: transparent;
  }
  .nav__burger:hover {
    background: var(--at-hover);
  }
  .nav__burger-ico {
    position: relative;
    width: 18px;
    height: 12px;
  }
  .nav__burger-ico > i {
    position: absolute;
    left: 0;
    right: 0;
    height: 1.5px;
    border-radius: var(--r-xs);
    background: currentColor;
  }
  .nav__burger-ico > i:first-child {
    top: 2px;
  }
  .nav__burger-ico > i:last-child {
    bottom: 2px;
  }
  .nav__toggle[open] .nav__burger-ico > i:first-child {
    top: 5.25px;
    transform: rotate(45deg);
  }
  .nav__toggle[open] .nav__burger-ico > i:last-child {
    bottom: 5.25px;
    transform: rotate(-45deg);
  }

  .nav__drawer {
    display: none;
  }
  /* open: from the header's lower edge to the bottom of the screen. Opens
     without JavaScript through :has(); attio.nav.js also sets .is-open. */
  .nav--site:has(.nav__toggle[open]) .nav__drawer,
  .nav--site.is-open .nav__drawer {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 24px;
    height: calc(100vh - var(--nav-h) - 1px);
    height: calc(100dvh - var(--nav-h) - 1px);
    padding: 0 var(--pad) 32px;
    overflow-y: auto;
    overscroll-behavior: contain;
    background: var(--bg);
  }
  /* the page under the sheet does not scroll */
  html:has(.nav__toggle[open]),
  html.at-nav-locked {
    overflow: hidden;
  }

  .nav__main {
    flex-direction: column;
    align-items: stretch;
    gap: 0;
  }
  .nav__link {
    display: flex;
    justify-content: space-between;
    height: auto;
    min-height: 52px;
    padding: 0;
    border-bottom: 1px solid var(--line);
    border-radius: 0;
    color: var(--fg);
    font-size: 17px;
  }
  .nav__link:hover,
  .nav__menu[open] > .nav__trigger {
    background: transparent;
  }
  .nav__panel {
    display: grid;
    gap: 4px;
    padding: 4px 0 12px;
    border-bottom: 1px solid var(--line);
  }
  .nav__group-title {
    display: flex;
    align-items: center;
    min-height: 44px;
    padding: 0;
  }
  .nav__list {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    column-gap: 16px;
  }
  .nav__entry {
    display: flex;
    align-items: center;
    min-height: 44px;
    padding: 0;
    border-radius: 0;
  }
  .nav__entry:hover {
    background: transparent;
  }
  .nav__entry:hover .nav__entry-name {
    color: var(--fg-2);
  }
  .nav__entry-line {
    display: none;
  }
  .nav__actions {
    flex-direction: column;
    align-items: stretch;
    margin-left: 0;
  }
  .nav__actions .btn {
    width: 100%;
    height: 44px;
  }
}
/* a tablet's sheet has room for each module's line */
@media (min-width: 600px) and (max-width: 899.98px) {
  .nav__entry {
    display: grid;
    align-content: center;
    min-height: 60px;
  }
  .nav__entry-line {
    display: block;
  }
}

/* ═════════════════════════════════════════════════════════════════════════
   The side list of a chapter: the kiwi mark beside the section being read
   (the owner chose it over the rule on the frame's edge), and a faint one
   on hover. On wide screens the list is the sticky side column; under
   1100px it is a sticky row under the header.
   ═════════════════════════════════════════════════════════════════════════ */
.at-chapter__side .chapter__links a {
  position: relative;
}
.at-chapter__side .chapter__links a::before,
.at-chapter__side .chapter__links a[aria-current]::before {
  content: "";
  position: absolute;
  top: calc(50% - 5px);
  bottom: auto;
  width: 10px;
  height: 10px;
  background: var(--fg);
  -webkit-mask: var(--at-kiwi-mask) center / contain no-repeat;
  mask: var(--at-kiwi-mask) center / contain no-repeat;
  opacity: 0;
}
.at-chapter__side .chapter__links a:hover::before {
  opacity: 0.3;
}
.at-chapter__side .chapter__links a[aria-current]::before {
  opacity: 1;
}
@media (min-width: 1100px) {
  .at-chapter__side .chapter__links a::before,
  .at-chapter__side .chapter__links a[aria-current]::before {
    left: -17px;
  }
}

@media (max-width: 1099.98px) {
  /* an anchor lands under the header and the row */
  html {
    scroll-padding-top: calc(var(--nav-h) + 1px + var(--at-row-h) + 16px);
  }
  .at-chapter__side {
    position: sticky;
    top: calc(var(--nav-h) + 1px);
    z-index: 20;
    padding: 0;
    border-bottom: 1px solid var(--line);
    background: var(--bg);
  }
  .at-chapter__body > .sec:first-child {
    border-top: 0;
  }
  .at-chapter__side .chapter__links {
    flex-wrap: nowrap;
    align-items: stretch;
    gap: 0;
    height: var(--at-row-h);
    /* the first link's text lines up with the page's gutter, its marker
       in the space before it */
    padding-inline: max(0px, calc(var(--pad) - 22px)) var(--pad);
    overflow-x: auto;
    overflow-y: hidden;
    scrollbar-width: none;
    /* fade the last pixels, so a cut-off link reads as more to scroll */
    -webkit-mask-image: linear-gradient(to right, currentColor calc(100% - 24px), transparent);
    mask-image: linear-gradient(to right, currentColor calc(100% - 24px), transparent);
  }
  .at-chapter__side .chapter__links::-webkit-scrollbar {
    display: none;
  }
  .at-chapter__side .chapter__links a {
    display: flex;
    flex: none;
    align-items: center;
    padding: 0 10px 0 22px;
    font-size: 15px;
    white-space: nowrap;
  }
  .at-chapter__side .chapter__links a::before,
  .at-chapter__side .chapter__links a[aria-current]::before {
    left: 6px;
  }
}

/* ═════════════════════════════════════════════════════════════════════════
   The 404 page (written by build.mjs into dist/404.html)
   ═════════════════════════════════════════════════════════════════════════ */
.nf-in {
  display: grid;
  justify-items: start;
  gap: 16px;
  padding: 160px var(--pad) 200px;
}
.nf-code {
  color: var(--fg-2);
  font: 500 14px/20px var(--font-body);
  font-variant-numeric: tabular-nums;
}
.nf-text {
  max-width: 32em;
  color: var(--fg-2);
}
.nf-btn {
  margin-top: 16px;
}
@media (max-width: 899.98px) {
  .nf-in {
    padding: 96px var(--pad) 128px;
  }
}

/* ═════════════════════════════════════════════════════════════════════════
   Footer: technical fixes only (structure and legal links wait for the
   owner's content)
   ═════════════════════════════════════════════════════════════════════════ */
/* the outlined wordmark is a few px wider than the screen at 1280-1440px;
   overflow: clip on html hides it, but older Safari would scroll sideways */
.ft-mark {
  overflow: hidden;
}
@media (max-width: 899.98px) {
  /* 44px rows to tap */
  .ft-col ul {
    gap: 0;
  }
  .ft-col a {
    display: inline-flex;
    align-items: center;
    min-height: 44px;
  }
  .ft-head {
    margin-bottom: 4px;
  }
  .ft-brand {
    min-height: 44px;
  }
}
/* three columns do not fit a small phone: two, with Legal under them */
@media (max-width: 419.98px) {
  .ft-cols {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    row-gap: 24px;
  }
}

/* ═════════════════════════════════════════════════════════════════════════
   Finish: pressed, focus, hover
   ═════════════════════════════════════════════════════════════════════════ */
/* pressed: a 1px drop, instant (accrue had switched it off) */
.btn:active {
  transform: translateY(1px);
}
.nav__link:active,
.nav__entry:active,
.nav__burger:active {
  background: var(--at-press);
}
/* focus: the band's own text colour, so the ring shows on white, grey and
   the dark chapter alike (--primary is ink in this skin, which vanished on
   the dark header) */
:focus-visible {
  outline: 2px solid var(--fg);
  outline-offset: 3px;
}
.nav__link:focus-visible,
.nav__entry:focus-visible,
.nav__group-title:focus-visible,
.nav__burger:focus-visible,
.at-chapter__side .chapter__links a:focus-visible {
  outline-offset: -2px;
}
/* a question row: a soft disc behind its plus on hover */
.faq-ico {
  border-radius: 50%;
}
.faq-q:hover .faq-ico {
  background: var(--surface-2);
  box-shadow: 0 0 0 6px var(--surface-2);
}

@media (prefers-reduced-motion: no-preference) {
  .nav__link,
  .nav__entry,
  .nav__group-title,
  .nav__burger,
  .faq-ico {
    transition:
      background-color 120ms var(--ease),
      box-shadow 120ms var(--ease),
      color 120ms var(--ease);
  }
  .nav__chev,
  .nav__burger-ico > i {
    transition: transform var(--dur) var(--ease);
  }
  .at-chapter__side .chapter__links a::before {
    transition: opacity var(--dur) var(--ease);
  }
  .nav__menu[open] .nav__panel {
    animation: at-nav-in 160ms var(--ease);
  }
  @keyframes at-nav-in {
    from {
      opacity: 0;
      transform: translateY(-4px);
    }
  }
}

/* src/skins/attio.open.css */
/* Skin "attio", the opening and the closing of the page: the navigation, the
   hero, the opening section (#chains), getting started (#start), the
   questions (#faq), the closing band (#cta) and the footer. Loaded after
   attio.css. Every rule is scoped to these sections. The chapter markers
   belong to the chapter block in attio.css.

   One loud headline at the top (the hero, 64px) and one at the end (the
   closing band, 56px); everything between them is 40px or smaller. The only
   ornament is the faint dotted grid on the grounds behind pictures, and
   hairlines. */

:root {
  /* the dotted ground: dots in the hairline colour, a 12px pitch */
  --at-open-dots: radial-gradient(circle, var(--line) 1px, transparent 1.2px);
  --at-open-pitch: 12px 12px;
}

/* ── navigation: a white bar on a very light hairline ──────────────────── */
.nav .nav__links a {
  color: var(--fg-2);
}
.nav .nav__links a:hover {
  color: var(--fg);
}

/* ── hero: the one loud headline. The sub-line breaks in two even lines. ─ */
#hero .hero-head {
  padding-top: 96px;
}
#hero .hero-title {
  max-width: 14em;
}
#hero .hero-sub {
  margin-top: 4px;
  text-wrap: balance;
}
#hero .hero-ctas {
  gap: 8px;
}
/* the Inbox window stands on a pale wash that deepens towards the fold, the
   page's one gradient (in place of accrue's striped steel). The only rule
   for the stage: the window itself is "hero: the Inbox window" below. */
#hero .hero-stage {
  margin: 0 var(--pad);
  padding: 48px 40px 0;
  border-radius: var(--pic-r-window) var(--pic-r-window) 0 0;
  background: linear-gradient(to bottom, var(--white), color-mix(in srgb, var(--at-accent-tint) 85%, var(--white)));
  box-shadow: none;
}

/* ── #chains, the opening block: tag, then the 40px two-tone statement on
   the left in a 900px column; the tabbed box across the frame on a dotted
   ground; the four figures in one row under it ───────────────────────── */
#chains .frame {
  background-color: var(--bg);
  background-image: var(--at-open-dots);
  background-size: var(--at-open-pitch);
}
/* the statement and the figures sit on the plain band; only the band around
   the box shows the dots. Their left edge is the box's left edge. */
#chains .chn-head,
#chains .chn-stats {
  --chn-left: max(var(--pad), calc((100% - 1160px) / 2));
  background-color: var(--bg);
}
#chains .chn-head {
  padding: 96px max(var(--pad), calc(100% - var(--chn-left) - 900px)) 56px var(--chn-left);
  border-bottom: 1px solid var(--line);
  font-size: clamp(28px, 1.4vw + 20px, 40px);
  line-height: 1.1;
  text-align: left;
  text-wrap: pretty;
}
#chains .chn-head > .tag {
  display: flex;
  width: fit-content;
  margin: 0 0 24px;
  /* the base head centres its items (justify-items), which a block box obeys */
  justify-self: start;
}
#chains .chn-head > .h2 {
  font-weight: 500;
}
#chains .chn-box {
  margin-block: 48px;
}
#chains .chn-pick,
#chains .chn-step__txt {
  font-weight: 500;
}

/* figures: about 28px, a small grey label under, a 1px blue rule on the left */
#chains .chn-stats {
  gap: 24px;
  max-width: none;
  margin: 0;
  padding: 48px var(--chn-left) 96px;
  border-top: 1px solid var(--line);
}
#chains .chn-stat,
#chains .chn-stat + .chn-stat {
  justify-items: start;
  gap: 4px;
  padding: 2px 0 2px 16px;
  border: 0;
  border-left: 1px solid var(--at-accent);
  text-align: left;
}
#chains .chn-stat__num {
  font: 500 28px/32px var(--font-body);
  letter-spacing: -0.02em;
}
#chains .chn-stat__txt {
  max-width: 16em;
  font-size: 14px;
  font-weight: 500;
  line-height: 20px;
  text-wrap: pretty;
}

/* ── getting started: the centred 40px statement, then the three steps as
   open columns: no card boxes, the drawing on a dotted ground, then the
   number, the title and the line ───────────────────────────────────────── */
#start .how-head {
  max-width: calc(900px + 2 * var(--pad));
  margin-inline: auto;
  padding: 96px var(--pad) 56px;
  font-size: clamp(28px, 1.4vw + 20px, 40px);
  line-height: 1.1;
}
#start .how-head > .tag {
  display: flex;
  width: fit-content;
  margin: 0 auto 24px;
}
#start .how-head > .h2 {
  font-weight: 500;
}
#start .how-step {
  padding: 40px var(--pad) 64px;
}
#start .how-vis {
  margin-bottom: 28px;
  border-radius: 0;
  background-color: transparent;
  background-image: var(--at-open-dots);
  background-size: var(--at-open-pitch);
  box-shadow: none;
}
#start .how-num {
  font: 500 12px/16px var(--font-body);
  letter-spacing: 0;
}
#start .how-num > i {
  background: var(--at-accent);
}
#start .how-text {
  margin-top: 4px;
}

/* ── questions: a 40px title over the list, a hairline between questions ─ */
#faq .faq-in {
  gap: 48px;
  padding-block: 96px;
}
#faq .faq-title {
  padding-top: 0;
  font-size: clamp(28px, 1.4vw + 20px, 40px);
  font-weight: 500;
  line-height: 1.1;
  letter-spacing: var(--at-track);
  text-wrap: balance;
}
#faq .faq-list {
  margin-top: 0;
  border-bottom: 1px solid var(--line);
}
#faq .faq-item {
  border-top: 1px solid var(--line);
}
#faq .faq-q {
  padding: 20px 0;
  font-size: 18px;
  font-weight: 500;
  line-height: 22px;
  letter-spacing: var(--at-track);
}
#faq .faq-a > p {
  max-width: 36em;
  padding-bottom: 20px;
  font-size: 16px;
  font-weight: 500;
  line-height: 22px;
  letter-spacing: var(--at-track);
  color: var(--fg-2);
}

/* ── closing band: the second loud headline, the sub-line as the hero's ─ */
#cta .cta-text {
  margin-top: 20px;
  font-size: 18px;
  font-weight: 500;
  line-height: 1.3;
  letter-spacing: var(--at-track);
  color: var(--fg-2);
}
#cta .cta-btns {
  margin-top: 32px;
}

/* ── footer: dark, running text at weight 500 ──────────────────────────── */
.ft .ft-blurb,
.ft .ft-col a {
  font-weight: 500;
  letter-spacing: var(--at-track);
}
.ft .ft-head {
  font-weight: 500;
}

@media (max-width: 900px) {
  #chains .chn-head,
  #start .how-head {
    padding-top: 72px;
    padding-bottom: 40px;
  }
  #chains .chn-box {
    margin-block: 32px;
  }
  #faq .faq-in {
    gap: 32px;
    padding-block: 72px;
  }
}
@media (max-width: 700px) {
  #hero .hero-head {
    padding-top: 72px;
  }
  /* figures in a 2x2, each with its blue rule */
  #chains .chn-stats {
    gap: 28px 16px;
    padding-top: 32px;
    padding-bottom: 72px;
  }
  #chains .chn-stat,
  #chains .chn-stat + .chn-stat {
    padding: 2px 0 2px 14px;
    border-top: 0;
    border-left: 1px solid var(--at-accent);
  }
  #start .how-step {
    padding: 32px var(--pad) 48px;
  }
}

/* ═════════════════════════════════════════════════════════════════════════
   The finish of the pictures, after the reference's product shots: small
   pastel accents only inside a picture, one element in focus, white cards
   with a hairline ring and a very soft shadow, connectors with a dot where
   they meet a card, depth by cropping, and at most one calm loop each.
   A hue is set on an element as --h and mixed by the recipe in attio.css:
   the chip 14% into the surface, its text or icon 72% into the text colour.
   Meaning stays fixed: green done or automatic, amber waiting for a person,
   blue the AI or the thing in progress, violet an agent step.
   ═════════════════════════════════════════════════════════════════════════ */
:is(#hero, #chains, #start) {
  --op-card-shadow: 0 1px 2px rgba(0, 0, 0, 0.04), 0 6px 16px -8px rgba(0, 0, 0, 0.1);
  --op-focus-shadow: 0 1px 2px rgba(0, 0, 0, 0.05), 0 12px 28px -12px rgba(0, 0, 0, 0.18);
}
:is(#hero, #chains, #start) * {
  --h-bg: color-mix(in srgb, var(--h) 14%, var(--surface));
  --h-fg: color-mix(in srgb, var(--h) 72%, var(--fg));
  --h-ring: color-mix(in srgb, var(--h) 55%, var(--surface));
  --h-line: color-mix(in srgb, var(--h) 26%, var(--surface));
}

/* ═════════════════════════════════════════════════════════════════════════
   hero: the Inbox window. The markup is this skin's own
   (attio.sections/10-hero.html, which lists where every label comes from);
   the classes are hw-* so nothing from the base or accrue hero reaches it.

   One window (research/attio-pictures.md A2, D4): a pale tray 6px wide
   with the window shadow, the app inside it at the nested radius, cut by
   the fold and fading into the wash. Inside, the foundations' type only
   (values 14/20, labels 12/16, titles 14/600), --pic-card for what sits on
   the screen, and the product's blue for what is selected and for the one
   primary button (Send).

   As it narrows the window drops panels, the way the product does, and
   never squeezes one: each layout has a minimum width, and where the stage
   is narrower the window runs past its right edge and is cropped there
   (only the contact panel is ever cropped). By the width of the clip:
     1180 and up  rail, views, list, thread, contact   (whole from 1260)
     940-1179     rail, list, thread, contact          (whole from 1036)
     700-939      rail, list, thread
     500-699      rail, thread
     under 500    the thread alone
   The thread's head is a container of its own: under 380px it drops the
   status control, and the name gives way (ellipsis) before the assignee,
   whose name stays, as in the product. Nothing overlaps (finding S7).

   The story, once, on load: Marta's message arrives,
   the AI's reply is written word by word and marked AI reply, her row in
   the list takes the reply, then the marker "Assigned to Anna K. · by AI
   assistant" rises in and the assignee control turns from Unassigned to
   Anna K. About four seconds, then it holds. The plain style is the
   finished frame (no JavaScript, reduced motion).
   ═════════════════════════════════════════════════════════════════════════ */
#hero {
  --at-product-blue: #1a2ce8;
  --hw-view: 600px;
  --hw-sel: color-mix(in srgb, var(--at-product-blue) 7%, var(--surface));
  --hw-quiet: color-mix(in srgb, var(--fg) 4%, var(--surface));
  --hw-fade: 80px;
}
#hero .hw-clip {
  container: hw / inline-size;
  height: var(--hw-view);
  margin-top: -24px;
  /* room for the window's shadow on three sides; only the fold cuts */
  padding: 24px 24px 0;
  overflow: hidden;
  -webkit-mask-image: linear-gradient(to bottom, var(--fg) calc(100% - var(--hw-fade)), transparent);
  mask-image: linear-gradient(to bottom, var(--fg) calc(100% - var(--hw-fade)), transparent);
}

/* the tray: the window's frame, 6px of pale glass round the screen */
#hero .hw-win {
  --hw-min: 1260px;
  width: max(100%, var(--hw-min));
  /* it ends inside the fade, so the reply box and its button still read
     while the window's foot dissolves into the wash */
  height: calc(100% - 20px);
  padding: 6px;
  border-radius: var(--pic-r-window);
  background: color-mix(in srgb, var(--fg) 4%, transparent);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  box-shadow: var(--pic-window);
}
#hero .hw-app {
  display: grid;
  grid-template-columns: 72px 208px 288px minmax(416px, 1fr) 264px;
  height: 100%;
  overflow: hidden;
  border-radius: calc(var(--pic-r-window) - 6px);
  background: var(--surface);
  box-shadow: 0 0 0 1px var(--line);
  color: var(--fg);
  font: var(--pic-text-value);
  letter-spacing: var(--at-track);
  text-align: left;
  pointer-events: none;
  user-select: none;
}
#hero .hw-app > * {
  min-width: 0;
}
#hero .hw-app > * + * {
  border-left: 1px solid var(--line);
}
#hero .hw-app svg {
  flex: none;
}
#hero :where(.hw-app p, .hw-app ul, .hw-app dl, .hw-app dd) {
  margin: 0;
  padding: 0;
}
#hero :where(.hw-app b) {
  font-weight: inherit;
}
#hero .hw-title {
  font: var(--pic-text-title);
  letter-spacing: var(--at-track);
}
#hero .hw-label,
#hero .hw-lbl,
#hero .hw-app time,
#hero .hw-count {
  color: var(--fg-2);
  font: var(--pic-text-label);
  letter-spacing: var(--at-track);
  font-variant-numeric: tabular-nums;
}
#hero .hw-ell {
  overflow: hidden;
  min-width: 0;
  text-overflow: ellipsis;
  white-space: nowrap;
}
#hero .hw-chev {
  color: var(--fg-2);
}
#hero .hw-chev--side {
  transform: rotate(-90deg);
}
/* a panel's top bar: 48px, as every bar of the product's Inbox */
#hero .hw-bar {
  display: flex;
  flex: none;
  align-items: center;
  gap: 8px;
  height: 48px;
  padding: 0 16px;
  border-bottom: 1px solid var(--line);
}

/* the module rail */
#hero .hw-rail {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  padding: 6px 6px 12px;
  background: var(--hw-quiet);
}
#hero .hw-ws {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  margin: 0 0 8px;
  border-radius: var(--pic-r-chip);
  color: var(--fg);
}
#hero .hw-mod {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  width: 60px;
  padding: 6px 0 5px;
  border-radius: var(--pic-r-chip);
  color: var(--fg-2);
  font: var(--pic-text-label);
  letter-spacing: var(--at-track);
}
#hero .hw-mod.is-on {
  background: color-mix(in srgb, var(--at-product-blue) 10%, var(--surface));
  color: var(--at-product-blue);
}

/* the Inbox's sidebar: views and channels */
#hero .hw-side {
  padding: 0 12px;
}
#hero .hw-side__title {
  display: flex;
  align-items: center;
  height: 48px;
  margin: 0 -12px 12px;
  padding: 0 20px;
  border-bottom: 1px solid var(--line);
}
#hero .hw-search {
  display: flex;
  align-items: center;
  gap: 8px;
  height: 32px;
  padding: 0 10px;
  border-radius: var(--pic-r-chip);
  box-shadow: inset 0 0 0 1px var(--line);
  color: var(--fg-2);
}
#hero .hw-lbl {
  margin: 16px 8px 4px;
}
#hero .hw-nav {
  display: grid;
  gap: 1px;
  list-style: none;
}
#hero .hw-nav li {
  display: flex;
  align-items: center;
  gap: 10px;
  height: 32px;
  padding: 0 8px;
  border-radius: var(--pic-r-chip);
  color: var(--fg-2);
  white-space: nowrap;
}
#hero .hw-nav li.is-on {
  background: var(--hw-sel);
  color: var(--at-product-blue);
}
#hero .hw-count {
  margin-left: auto;
}

/* the conversation list */
#hero .hw-list__head .hw-chev {
  margin-left: -4px;
}
#hero .hw-rows {
  display: grid;
  gap: 2px;
  padding: 6px;
  list-style: none;
}
#hero .hw-row {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 12px 10px;
  border-radius: calc(var(--pic-r-card) - 2px);
}
/* the conversation in focus: the one ring of the picture */
#hero .hw-row.is-sel {
  background: var(--hw-sel);
  box-shadow: inset 0 0 0 1.5px var(--at-product-blue);
}
#hero .hw-row__main {
  display: grid;
  flex: 1;
  grid-template-columns: minmax(0, 1fr);
  gap: 2px;
  min-width: 0;
}
#hero .hw-row__top {
  display: flex;
  align-items: baseline;
  gap: 8px;
}
#hero .hw-name {
  flex: 1;
  overflow: hidden;
  min-width: 0;
  text-overflow: ellipsis;
  white-space: nowrap;
}
#hero .hw-name--unread {
  font: var(--pic-text-title);
  letter-spacing: var(--at-track);
}
#hero .hw-row__snip {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
  color: var(--fg-2);
}
#hero .hw-row__snip.hw-swap {
  display: grid;
}
#hero .hw-swap > span {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
}
#hero .hw-unread {
  color: var(--fg);
}
#hero .hw-row__chips {
  display: flex;
  margin-top: 6px;
}
/* the unread count: the product's round primary badge */
#hero .hw-pill {
  display: grid;
  flex: none;
  place-items: center;
  min-width: 20px;
  height: 20px;
  margin-left: auto;
  padding: 0 6px;
  border-radius: 9999px;
  background: var(--at-product-blue);
  color: var(--white);
  font: var(--pic-text-label);
  font-variant-numeric: tabular-nums;
}
/* the list goes on below the last real row, fading out */
#hero .hw-row--ghost {
  -webkit-mask-image: linear-gradient(to bottom, var(--fg), transparent);
  mask-image: linear-gradient(to bottom, var(--fg), transparent);
}
#hero .hw-row--ghost .hw-av {
  background: var(--hw-quiet);
}
#hero .hw-row--ghost .hw-row__main {
  gap: 12px;
  padding-top: 6px;
}
#hero .hw-bar-skel {
  display: block;
  width: 62%;
  height: 8px;
  border-radius: 9999px;
  background: color-mix(in srgb, var(--fg) 8%, transparent);
}
#hero .hw-bar-skel--short {
  width: 84%;
}

/* people: tinted initials, one hue per person on the whole page (as the
   CRM picture); the channel's mark on the corner */
#hero .hw-av {
  --st: var(--at-h-grey);
  position: relative;
  display: grid;
  flex: none;
  place-items: center;
  width: 36px;
  height: 36px;
  border-radius: 9999px;
  background: color-mix(in srgb, var(--st) 16%, var(--surface));
  color: color-mix(in srgb, var(--st) 70%, var(--fg));
  font: var(--pic-text-label);
  letter-spacing: 0;
}
#hero .hw-av[data-p="marta"] { --st: var(--at-h-pink); }
#hero .hw-av[data-p="luca"] { --st: var(--at-h-blue); }
#hero .hw-av[data-p="giulia"] { --st: var(--at-h-green); }
#hero .hw-av[data-p="paolo"] { --st: var(--at-h-orange); }
#hero .hw-av[data-p="anna"] { --st: var(--at-h-violet); }
#hero .hw-av--s {
  width: 32px;
  height: 32px;
}
#hero .hw-av--l {
  width: 48px;
  height: 48px;
  font: var(--pic-text-value);
}
#hero .hw-av--xs {
  width: 20px;
  height: 20px;
}
#hero .hw-av__ch {
  position: absolute;
  right: -4px;
  bottom: -4px;
  display: grid;
  place-items: center;
  width: 16px;
  height: 16px;
  border-radius: 9999px;
  background: var(--surface);
  box-shadow: 0 0 0 1.5px var(--surface), 0 0 0 2.5px var(--line);
}
#hero .hw-av__ch--glyph {
  color: var(--fg-2);
}

/* the open conversation */
#hero .hw-thread {
  container: hw-thread / inline-size;
  display: flex;
  flex-direction: column;
  min-height: 0;
}
#hero .hw-thread__head {
  gap: 10px;
}
#hero .hw-who {
  display: grid;
  flex: 1 1 0;
  min-width: 48px;
}
#hero .hw-ch {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  color: var(--fg-2);
  font: var(--pic-text-label);
  letter-spacing: var(--at-track);
}
/* a control of the thread's bar: the product's outline select */
#hero .hw-ctl {
  display: inline-flex;
  flex: none;
  align-items: center;
  gap: 6px;
  height: 32px;
  padding: 0 6px 0 10px;
  border-radius: var(--pic-r-chip);
  box-shadow: inset 0 0 0 1px var(--line-2);
  color: var(--fg);
  white-space: nowrap;
}
#hero .hw-assignee {
  flex: 0 1 auto;
  min-width: 0;
  max-width: 168px;
  padding-left: 8px;
}
#hero .hw-swap {
  display: grid;
  min-width: 0;
}
#hero .hw-swap > * {
  grid-area: 1 / 1;
}
/* what was there before the story: kept in the cell, never shown */
#hero .hw-swap__was {
  opacity: 0;
}
#hero .hw-ctl__in {
  gap: 6px;
}
#hero .hw-ctl__in--none {
  color: var(--fg-2);
}
#hero .hw-msgs {
  display: grid;
  flex: 1;
  align-content: start;
  gap: 12px;
  padding: 20px;
}
#hero .hw-msg {
  display: grid;
  gap: 6px;
  max-width: min(400px, 86%);
}
#hero .hw-msg--in {
  justify-self: start;
}
#hero .hw-msg--out {
  justify-self: end;
  justify-items: end;
}
#hero .hw-bubble {
  padding: 10px 14px;
  border-radius: var(--pic-r-card);
  background: var(--surface);
  box-shadow: var(--pic-card);
}
/* the product draws the reply, the AI's or a person's, on a grey ground */
#hero .hw-msg--out .hw-bubble {
  background: var(--hw-quiet);
}
#hero .hw-meta {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 0 2px;
}
/* a system event: the product's small centred marker */
#hero .hw-marker {
  display: flex;
  justify-content: center;
}
#hero .hw-marker > span {
  padding: 4px 12px;
  border-radius: var(--pic-r-card);
  background: var(--hw-quiet);
  color: var(--fg-2);
  font: var(--pic-text-label);
  letter-spacing: var(--at-track);
  text-align: center;
}
#hero .hw-compose {
  display: grid;
  gap: 10px;
  margin: 0 16px 16px;
  padding: 10px 10px 10px 14px;
  border-radius: var(--pic-r-card);
  background: var(--surface);
  box-shadow: var(--pic-card);
}
#hero .hw-compose__tabs {
  display: flex;
  gap: 16px;
  color: var(--fg-2);
  font: var(--pic-text-label);
  letter-spacing: var(--at-track);
}
#hero .hw-compose__tabs .is-on {
  color: var(--fg);
}
#hero .hw-compose__ph {
  color: var(--fg-2);
}
#hero .hw-compose__foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: var(--fg-2);
}
#hero .hw-send {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 32px;
  padding: 0 12px;
  border-radius: var(--pic-r-chip);
  background: var(--at-product-blue);
  color: var(--white);
}

/* the contact panel */
#hero .hw-info {
  display: flex;
  flex-direction: column;
}
#hero .hw-info__who {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 16px 16px 12px;
}
#hero .hw-info__name {
  display: grid;
  min-width: 0;
}
#hero .hw-props {
  display: grid;
  gap: 8px;
  padding: 0 16px 16px;
  border-bottom: 1px solid var(--line);
}
#hero .hw-props > div {
  display: grid;
  grid-template-columns: 64px minmax(0, 1fr);
  align-items: center;
  gap: 8px;
  font: var(--pic-text-label);
  letter-spacing: var(--at-track);
}
#hero .hw-props dt {
  display: flex;
  align-items: center;
  gap: 6px;
  color: var(--fg-2);
}
#hero .hw-props dt svg {
  width: 14px;
  height: 14px;
}
#hero .hw-sect {
  display: flex;
  flex: none;
  align-items: center;
  justify-content: space-between;
  height: 44px;
  padding: 0 12px 0 16px;
  border-bottom: 1px solid var(--line);
}
#hero .hw-sect.is-open {
  border-bottom: 0;
}
#hero .hw-linked {
  display: grid;
  gap: 4px;
  padding: 0 16px 16px;
  border-bottom: 1px solid var(--line);
}
#hero .hw-rec {
  display: flex;
  align-items: center;
  gap: 8px;
  height: 32px;
  padding: 0 8px;
  border-radius: var(--pic-r-chip);
  background: var(--hw-quiet);
}
#hero .hw-rec__ico {
  display: grid;
  flex: none;
  place-items: center;
  width: 20px;
  height: 20px;
  color: var(--fg-2);
}
#hero .hw-task {
  justify-content: flex-start;
  margin-top: 6px;
  padding-left: 8px;
}
#hero .hw-task svg {
  color: var(--fg-2);
}

/* ── narrower: drop a panel, never squeeze one ─────────────────────────── */
/* the contact panel is cropped at the stage's edge: it fades out there */
@container hw (min-width: 1180px) and (max-width: 1259.98px) {
  #hero .hw-app {
    -webkit-mask-image: linear-gradient(to right, var(--fg) calc(100cqw - 72px), transparent calc(100cqw + 18px));
    mask-image: linear-gradient(to right, var(--fg) calc(100cqw - 72px), transparent calc(100cqw + 18px));
  }
}
@container hw (max-width: 1179.98px) {
  #hero .hw-win {
    --hw-min: 1036px;
  }
  #hero .hw-app {
    grid-template-columns: 72px 288px minmax(400px, 1fr) 264px;
  }
  #hero .hw-side {
    display: none;
  }
}
@container hw (min-width: 940px) and (max-width: 1035.98px) {
  #hero .hw-app {
    -webkit-mask-image: linear-gradient(to right, var(--fg) calc(100cqw - 72px), transparent calc(100cqw + 18px));
    mask-image: linear-gradient(to right, var(--fg) calc(100cqw - 72px), transparent calc(100cqw + 18px));
  }
}
@container hw (max-width: 939.98px) {
  #hero .hw-win {
    --hw-min: 0px;
  }
  #hero .hw-app {
    grid-template-columns: 72px 272px minmax(0, 1fr);
  }
  #hero .hw-info {
    display: none;
  }
}
@container hw (max-width: 699.98px) {
  #hero .hw-app {
    grid-template-columns: 72px minmax(0, 1fr);
  }
  #hero .hw-list {
    display: none;
  }
}
@container hw (max-width: 499.98px) {
  #hero .hw-app {
    grid-template-columns: minmax(0, 1fr);
  }
  #hero .hw-rail {
    display: none;
  }
  #hero .hw-app > .hw-thread {
    border-left: 0;
  }
  #hero .hw-msgs {
    padding: 16px 14px;
  }
  #hero .hw-msg {
    max-width: 92%;
  }
  #hero .hw-compose {
    margin: 0 12px 12px;
  }
}
/* the thread's own bar: the status control goes first, then the channel */
@container hw-thread (max-width: 379.98px) {
  #hero .hw-status {
    display: none;
  }
}
@container hw-thread (max-width: 299.98px) {
  #hero .hw-thread__head {
    padding: 0 12px;
  }
  #hero .hw-thread__head > .hw-av {
    display: none;
  }
}
@media (max-width: 900px) {
  #hero {
    --hw-view: 540px;
  }
  #hero .hero-stage {
    padding: 32px 16px 0;
  }
}
@media (max-width: 640px) {
  #hero {
    --hw-view: 520px;
    --hw-fade: 48px;
  }
  #hero .hero-stage {
    margin: 0 12px;
    padding: 20px 0 0;
  }
  #hero .hw-clip {
    padding: 16px 12px 0;
    margin-top: -16px;
  }
}

/* ── the story, once, on load ──────────────────────────────────────────────
   The hero is the top of the page, so its story starts with the page and
   does not wait for the window to scroll into view (data-play): on a short
   screen, where the window's top sits below three quarters of the viewport,
   it would otherwise hold its first frame, an empty thread, until the
   visitor scrolls, and the social image (tools/icons.mjs, rendered in a
   frame of that height) would show it. Each step holds its last frame
   (fill both). attio.motion.js sets .at-play only when motion is allowed;
   without it nothing here applies and the plain style, the finished frame,
   shows at once. */
@keyframes hw-rise {
  from { opacity: 0; transform: translateY(8px); }
}
@keyframes hw-in {
  from { opacity: 0; }
}
@keyframes hw-out {
  from { opacity: 1; }
  to { opacity: 0; }
}
/* 1. Marta's message arrives */
.at-play #hero .hw-msg--in {
  animation: hw-rise var(--pic-step) var(--pic-ease) 500ms both;
}
/* 2. the AI's reply is written, word by word, then marked */
.at-play #hero .hw-msg--out .hw-bubble {
  animation: hw-rise 300ms var(--pic-ease) 1300ms both;
}
.at-play #hero .hw-msg--out .hw-bubble > span {
  animation: hw-in 160ms linear calc(1450ms + var(--i) * 34ms) both;
}
.at-play #hero .hw-msg--out .hw-meta {
  animation: hw-rise 300ms var(--pic-ease) 2500ms both;
}
/* … and Marta's row in the list takes the reply */
.at-play #hero .hw-row .hw-swap__was {
  animation: hw-out 250ms var(--pic-ease) 2450ms both;
}
.at-play #hero .hw-row .hw-swap__now {
  animation: hw-in 250ms var(--pic-ease) 2450ms both;
}
/* 3. the AI assistant assigns the conversation to Anna K. */
.at-play #hero .hw-marker {
  animation: hw-rise var(--pic-step) var(--pic-ease) 3200ms both;
}
.at-play #hero .hw-assignee .hw-swap__was {
  animation: hw-out 250ms var(--pic-ease) 3350ms both;
}
.at-play #hero .hw-assignee .hw-swap__now {
  animation: hw-in 250ms var(--pic-ease) 3350ms both;
}

/* ── #chains: the picture, finished to research/attio-pictures.md E1-17 ──
   Markup: attio.sections/12-chains.html (this skin only). The box is a
   window on the plate (--pic-window, --pic-r-window): its top strip is a
   segmented control of the five areas (real tabs, src/js/12-chains.js),
   the selected one a white card on --pic-card; under it the chain is an
   inner screen (radius 16 - 6) on the dotted ground. Every step is a card
   on --pic-card, its icon tile in the status recipe (violet: a step the
   agent does; amber: a person comes in; green: it runs on its own; grey:
   your own words). The last card is the chain's focus: a ring in its own
   hue and nothing else. Between two cards a connector after E0-6: a 1.2px
   neutral line, a dot where it leaves a card, an arrowhead into the next.

   Motion, on the play contract (attio.motion.js, data-play="once" on the
   box): the cards rise in turn when the box comes into view, and again
   each time the next area comes up by itself (the panel is shown anew, so
   its animations start again). Off screen nothing advances (12-chains.js
   waits) and nothing plays (--pic-run). Once the visitor picks an area
   (.is-stopped) it shows complete at once. Without .at-play (no script,
   reduced motion) the finished frame is all that shows; without JavaScript
   the tabs, which would do nothing, are hidden and the first chain shows. */
#chains .chn-box {
  --chn-col-gap: 40px;
  --chn-wire: color-mix(in srgb, var(--fg) 22%, var(--surface));
  --chn-wire-dot: color-mix(in srgb, var(--fg) 34%, var(--surface));
  /* the statement's left edge: never closer to the screen's edge than it */
  max-width: min(1160px, 100% - 2 * var(--pad));
  margin-inline: auto;
  padding: 6px;
  border-radius: var(--pic-r-window);
  background: var(--surface-2);
  box-shadow: var(--pic-window);
}
/* the segmented control in the window's top strip */
#chains .chn-picks {
  gap: 4px;
  padding-bottom: 6px;
}
#chains .chn-pick,
#chains .chn-pick + .chn-pick {
  gap: 8px;
  min-height: 40px;
  padding: 0 12px;
  border: 0;
  border-radius: calc(var(--pic-r-window) - 6px);
  background: transparent;
  box-shadow: none;
  color: var(--fg-2);
  font: var(--pic-text-value);
  letter-spacing: var(--at-track);
}
#chains .chn-pick:hover,
#chains .chn-pick[aria-selected="true"] {
  color: var(--fg);
}
#chains .chn-pick[aria-selected="true"] {
  background: var(--surface);
  box-shadow: var(--pic-card);
}
#chains .chn-pick__ico {
  width: 16px;
  height: 16px;
}
/* the inner screen: the chain on the dotted ground */
#chains .chn-panel {
  border-radius: calc(var(--pic-r-window) - 6px);
  background-color: var(--surface);
  background-image: var(--at-open-dots);
  background-size: var(--at-open-pitch);
  box-shadow: inset 0 0 0 1px var(--line);
}
#chains .chn-panel:focus-visible {
  outline-offset: -2px;
}
#chains .chn-run {
  column-gap: var(--chn-col-gap);
  padding: 40px 32px 44px;
}
#chains .chn-step {
  --st: var(--at-h-violet);
  gap: 14px;
  padding: 20px 16px 22px;
  border-radius: var(--pic-r-card);
  background: var(--surface);
  box-shadow: var(--pic-card);
  /* the shared reveal (12-chains.css) is replaced by the play contract */
  opacity: 1;
  transform: none;
  transition: none;
}
#chains .chn-step--person,
#chains .chn-step--wait {
  --st: var(--at-h-amber);
}
#chains .chn-step--done {
  --st: var(--at-h-green);
}
/* the person's own words (describing a workflow) */
#chains #chn-run-5 .chn-step:first-child {
  --st: var(--at-h-grey);
}
#chains .chn-step__ico {
  width: 44px;
  height: 44px;
  border-radius: var(--pic-r-chip);
  background: var(--st-bg);
  box-shadow: inset 0 0 0 1px var(--st-line);
  color: var(--st-fg);
}
/* a real channel keeps its own mark on a white tile */
#chains .chn-step__ico--brand {
  background: var(--surface);
  box-shadow: inset 0 0 0 1px var(--line);
}
#chains .chn-step__ico--person {
  border-radius: 9999px;
  font: var(--pic-text-title);
  letter-spacing: 0;
}
#chains .chn-step__txt,
#chains .chn-step--done .chn-step__txt {
  max-width: 13em;
  color: var(--fg);
  font: var(--pic-text-value);
  letter-spacing: var(--at-track);
}
/* the end of the chain is its focus: a ring in its own hue */
#chains .chn-step:last-child {
  box-shadow: 0 0 0 1.5px color-mix(in srgb, var(--st) 60%, var(--surface)), var(--pic-card);
}
/* the connector: the shared line (a pseudo-element) gives way to an SVG */
#chains .chn-step::after {
  content: none;
}
#chains .chn-link {
  position: absolute;
  top: calc(20px + 22px - 6px);
  left: 100%;
  width: var(--chn-col-gap);
  height: 12px;
  overflow: hidden;
  fill: none;
  stroke: var(--chn-wire);
  stroke-width: 1.2;
  stroke-linecap: round;
  stroke-linejoin: round;
  pointer-events: none;
}
#chains .chn-link circle {
  fill: var(--chn-wire-dot);
  stroke: var(--surface);
  stroke-width: 4;
  paint-order: stroke;
}
/* without JavaScript the tabs would do nothing: the first chain stands alone */
html:not(.js) #chains .chn-picks {
  display: none;
}

@keyframes chn-rise {
  from { opacity: 0; transform: translateY(6px); }
}
@keyframes chn-in {
  from { opacity: 0; }
}
.at-play #chains .chn-box.is-motion:not(.is-stopped) .chn-step {
  animation: chn-rise var(--pic-step) var(--pic-ease) both;
  animation-delay: calc(var(--i, 0) * 300ms);
  animation-play-state: var(--pic-run);
}
.at-play #chains .chn-box.is-motion:not(.is-stopped) .chn-link {
  animation: chn-in 300ms var(--pic-ease) both;
  animation-delay: calc(var(--i, 0) * 300ms + 250ms);
  animation-play-state: var(--pic-run);
}

@media (max-width: 1100px) and (min-width: 701px) {
  #chains .chn-box {
    --chn-col-gap: 28px;
  }
  #chains .chn-run {
    padding-inline: 20px;
  }
  #chains .chn-step {
    padding-inline: 12px;
  }
}
/* tablets: the five areas in one row, each as wide as its name */
@media (max-width: 900px) {
  #chains .chn-picks {
    display: flex;
  }
  #chains .chn-pick,
  #chains .chn-pick + .chn-pick {
    flex: 1 1 auto;
    gap: 6px;
    padding-inline: 10px;
  }
}
/* phone: the chain runs down, the connectors with it */
@media (max-width: 700px) {
  #chains .chn-box {
    --chn-col-gap: 20px;
  }
  #chains .chn-run {
    gap: var(--chn-col-gap);
    padding: 24px 16px 28px;
  }
  #chains .chn-step {
    gap: 14px;
    padding: 12px 14px;
  }
  #chains .chn-step__txt {
    max-width: none;
  }
  /* phones: the areas on two rows, three then two, never one alone */
  #chains .chn-picks {
    display: grid;
    grid-template-columns: repeat(6, minmax(0, 1fr));
  }
  #chains .chn-pick {
    grid-column: span 2;
  }
  #chains .chn-pick:nth-child(n + 4) {
    grid-column: span 3;
  }
  /* turned a quarter about its top-left corner, it hangs from the icon's
     centre line (14px padding + half the 44px tile) into the next card */
  #chains .chn-link {
    top: 100%;
    left: calc(14px + 22px + 6px);
    transform: rotate(90deg);
    transform-origin: 0 0;
  }
}

/* ── #start: three small drawings, finished to research/attio-pictures.md
   E1-16 and §C 23a/23c. Markup: attio.sections/85-start.html (this skin
   only). Simple but finished: cards on --pic-card with the nested radii,
   values at 14px and labels at 12px, states in the status recipe.
     01  four channels joined to the Inbox (the focus: --pic-focus), the
         wires after E0-6: 1.2px, rounded elbows, a dot where each leaves a
         tile, an arrowhead into the Inbox
     02  two documents of a knowledge base, each its type tile, its name
         and its Status badge
     03  the three action modes as status chips
   Motion, once, when the row of steps comes into view (data-play="once"):
   the drawings fill in one after the other, 01, 02, 03. The finished frame
   is the plain style; nothing loops. */
#start .how-vis {
  isolation: isolate;
  container-type: inline-size;
}
#start .how-steps {
  --how-wire: color-mix(in srgb, var(--fg) 22%, var(--surface));
  --how-wire-dot: color-mix(in srgb, var(--fg) 34%, var(--surface));
}

/* 1: the channels' wires meet the inbox, which is in focus */
#start .how-chans > .mtile {
  border-radius: var(--pic-r-card);
  background: var(--surface);
  box-shadow: var(--pic-card);
}
#start .how-wires {
  overflow: visible;
}
#start .how-wires path {
  fill: none;
  stroke: var(--how-wire);
  stroke-width: 1.2;
  stroke-linecap: round;
  stroke-linejoin: round;
}
#start .how-wires circle {
  fill: var(--how-wire-dot);
  stroke: var(--bg);
  stroke-width: 4;
  paint-order: stroke;
}
#start .how-inbox {
  gap: 10px;
  padding: 6px 16px 6px 6px;
  border-radius: var(--pic-r-card);
  background: var(--surface);
  box-shadow: var(--pic-focus), var(--pic-card);
  color: var(--fg);
  font: var(--pic-text-value);
  letter-spacing: var(--at-track);
}
#start .how-inbox > svg {
  box-sizing: content-box;
  padding: 6px;
  border-radius: calc(var(--pic-r-card) - 6px);
  background: var(--surface-2);
  box-shadow: inset 0 0 0 1px var(--line);
  color: var(--fg);
}

/* 2: the knowledge base, a card with its rows divided by hairlines */
#start .how-kb {
  width: 100%;
  max-width: 260px;
  border-radius: var(--pic-r-card);
  background: var(--surface);
  box-shadow: var(--pic-card);
  color: var(--fg);
  font: var(--pic-text-value);
  letter-spacing: var(--at-track);
}
#start .how-kb__row {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0;
  padding: 10px 12px;
}
#start .how-kb__row + .how-kb__row {
  border-top: 1px solid var(--line);
}
/* the product's IconTile, outline */
#start .how-kb__tile {
  display: grid;
  flex: none;
  place-items: center;
  width: 24px;
  height: 24px;
  border-radius: var(--pic-r-chip);
  box-shadow: inset 0 0 0 1px var(--line);
  color: var(--fg-2);
}
#start .how-kb__name {
  flex: 1;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
#start .how-kb .pic-chip {
  flex: none;
}

/* 3: the three modes as status chips in one card */
#start .how-rules {
  justify-items: start;
  gap: 8px;
  width: auto;
  min-width: 200px;
  max-width: none;
  padding: 16px;
  border-radius: var(--pic-r-card);
  background: var(--surface);
  box-shadow: var(--pic-card);
}
#start .how-rules li {
  gap: 8px;
  min-height: 28px;
  padding: 0 10px 0 9px;
  border-radius: var(--pic-r-chip);
  background: var(--st-bg);
  box-shadow: inset 0 0 0 1px var(--st-line);
  color: var(--st-fg);
  font: var(--pic-text-value);
  letter-spacing: var(--at-track);
}
#start .how-rules__dot {
  width: 6px;
  height: 6px;
  background: var(--st-fg);
  box-shadow: none;
}
/* disabled: an empty ring */
#start .how-rules li[data-status="off"] .how-rules__dot {
  background: transparent;
  box-shadow: inset 0 0 0 1.5px var(--st-fg);
}

/* the three drawings fill in, once, one step after the other */
@keyframes how-rise {
  from { opacity: 0; transform: translateY(6px); }
}
@keyframes how-in {
  from { opacity: 0; }
}
.at-play #start :is(.how-chans > .mtile, .how-inbox, .how-kb__row, .how-rules li) {
  animation: how-rise var(--pic-step) var(--pic-ease) both;
  animation-play-state: var(--pic-run);
}
.at-play #start .how-wires {
  animation: how-in var(--pic-step) var(--pic-ease) 380ms both;
  animation-play-state: var(--pic-run);
}
.at-play #start .how-chans > .mtile:nth-child(2) { animation-delay: 80ms; }
.at-play #start .how-chans > .mtile:nth-child(3) { animation-delay: 160ms; }
.at-play #start .how-chans > .mtile:nth-child(4) { animation-delay: 240ms; }
.at-play #start .how-inbox { animation-delay: 560ms; }
.at-play #start .how-kb__row { animation-delay: 960ms; }
.at-play #start .how-kb__row + .how-kb__row { animation-delay: 1140ms; }
.at-play #start .how-rules li { animation-delay: 1480ms; }
.at-play #start .how-rules li:nth-child(2) { animation-delay: 1600ms; }
.at-play #start .how-rules li:nth-child(3) { animation-delay: 1720ms; }

/* src/skins/attio.team.css */
/* Skin "attio", part: the team modules (CRM, work, meetings, revenue) and
   the agencies split. Loaded after attio.css; every rule is scoped to one of
   #crm, #work, #meetings, #revenue, #agencies.

   Inside the chapter block (attio.js) the four modules sit in the right-hand
   column; agencies stays a full-width section. Each module takes one of the
   reference's section patterns:
     CRM       P1  statement, one wide plate, caption cells
     work      P2  three open columns with hairlines, no card boxes
     meetings  P4  plate on the left, three rows on the right
     revenue   P3  statement and rows on the left, the picture on the right
     agencies  P3  statement and three ruled facts, the card on the right
   The one ornament is a faint dotted ground behind pictures (dots in
   var(--line), 12px pitch) and hairlines. */

/* ── the dotted ground behind every picture ───────────────────────────── */
#crm .crm-plate,
#work .kcard__mock,
#meetings .mt-plate,
#revenue .rv-plate,
#agencies .brand-stage {
  background-image: radial-gradient(circle, var(--line-2) 1px, transparent 1.2px);
  background-size: 12px 12px;
  background-position: center;
}

/* the plates take the band's plate token (white on the grey team ground)
   rather than the module tint, so nothing depends on the band's own grey */
#crm .crm-plate,
#work .kcard__mock,
#meetings .mt-plate,
#revenue .rv-plate {
  background-color: var(--ac-plate);
}

/* ── statements: even lines, no word left alone at a line end ─────────── */
#crm .sec-head--mod,
#work .sec-head--mod,
#meetings .sec-head--mod {
  text-wrap: balance;
}
/* revenue's text column is narrow: balance would split its headline */
#revenue .rv-head {
  text-wrap: pretty;
}
/* agencies: balance would leave "brand." alone at the start of line two;
   a 490px column holds the whole headline on line one instead */
#agencies .brand-copy {
  --at-team-measure: 490px;
  text-wrap: pretty;
}

/* ═════════════════════════════════════════════════════════════════════════
   CRM (P1): the plate in an even frame between its two rules
   ═════════════════════════════════════════════════════════════════════════ */
#crm .crm-stage-wrap {
  padding: var(--pad);
}
/* its picture: see "crm: production picture" at the end */

/* ═════════════════════════════════════════════════════════════════════════
   work (P2): three open columns divided by hairlines. No card box: the
   label, the drawing on its dotted ground, then the title and its line.
   ═════════════════════════════════════════════════════════════════════════ */
#work .wk-cards {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0;
  padding: 0;
}
#work .wk-cards > .kcard {
  grid-column: auto;
  padding: 32px var(--pad) 48px;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}
#work .wk-cards > .kcard + .kcard {
  border-left: 1px solid var(--line);
}
#work .kcard__label {
  padding: 0 0 16px;
  border-bottom: 0;
  color: var(--fg-2);
}
#work .kcard__mock {
  padding: 24px;
  border-radius: var(--r-lg);
  box-shadow: inset 0 0 0 1px var(--line);
}
#work .kcard__body {
  padding: 24px 0 0;
}
@media (max-width: 900px) {
  #work .wk-cards {
    grid-template-columns: minmax(0, 1fr);
  }
  #work .wk-cards > .kcard {
    padding: 32px var(--pad) 40px;
  }
  #work .wk-cards > .kcard + .kcard {
    border-left: 0;
    border-top: 1px solid var(--line);
  }
  #work .wk-cards {
    --kcard-mock-h: 260px;
  }
}
@media (max-width: 640px) {
  #work .wk-cards {
    --kcard-mock-h: auto;
  }
  #work .kcard__mock {
    padding: 28px 16px;
  }
}

/* ═════════════════════════════════════════════════════════════════════════
   meetings (P4): the plate with the call on the left in an even 16px
   frame; the three results on the right start at the plate's top edge and
   share its height, a hairline between each
   ═════════════════════════════════════════════════════════════════════════ */
@media (min-width: 901px) {
  #meetings .mt-callcol {
    padding: 16px 0 16px 16px;
  }
  #meetings .mt-results {
    grid-template-rows: repeat(3, minmax(0, 1fr));
    padding: 16px 0;
  }
  #meetings .mt-res {
    padding: 24px var(--pad) 24px 40px;
  }
}

/* ═════════════════════════════════════════════════════════════════════════
   revenue (P3): the statement at the top of the left column and the three
   rows at its foot; the quote on its dotted ground fills the right column,
   full height, with a hairline between the two. The text column's wrapper
   gives way so its head and rows can be placed on their own grid rows.
   ═════════════════════════════════════════════════════════════════════════ */
#revenue .rv-split {
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  grid-template-rows: 1fr auto auto auto;
}
#revenue .rv-text {
  display: contents;
}
#revenue .rv-head {
  grid-column: 1;
  grid-row: 1;
  padding: 96px var(--pad) 56px;
}
#revenue .rv-feat {
  grid-column: 1;
  padding: 24px var(--pad);
}
#revenue .rv-feat:nth-of-type(1) {
  grid-row: 2;
}
#revenue .rv-feat:nth-of-type(2) {
  grid-row: 3;
}
#revenue .rv-feat:nth-of-type(3) {
  grid-row: 4;
}
#revenue .rv-pic {
  grid-column: 2;
  grid-row: 1 / -1;
  border-left: 1px solid var(--line);
}
#revenue .rv-plate {
  padding: 96px 32px 64px;
}
@media (max-width: 900px) {
  /* one column: the statement, the picture, then the rows */
  #revenue .rv-split {
    grid-template-columns: minmax(0, 1fr);
    grid-template-rows: none;
  }
  #revenue .rv-head {
    padding: 64px var(--pad) 40px;
  }
  #revenue .rv-pic {
    grid-column: 1;
    grid-row: 2;
    padding: 0 16px 16px;
    border-left: 0;
  }
  #revenue .rv-feat:nth-of-type(1) {
    grid-row: 3;
  }
  #revenue .rv-feat:nth-of-type(2) {
    grid-row: 4;
  }
  #revenue .rv-feat:nth-of-type(3) {
    grid-row: 5;
    padding-bottom: 48px;
  }
}
@media (max-width: 520px) {
  #revenue .rv-plate {
    padding: 64px 16px 40px;
  }
}

/* ═════════════════════════════════════════════════════════════════════════
   agencies (P3 with P5 facts): the statement at the top of the text
   column, the three facts at its foot as columns that each start with a
   1px rule; the workspace card on a dotted ground on the right
   ═════════════════════════════════════════════════════════════════════════ */
/* the split sizes to its content: copy and card are close in height */
#agencies .brand-split {
  container-type: inline-size;
  min-height: 0;
  --at-copy-w: calc(100cqw * 44 / 100);
}
#agencies .brand-stage {
  padding: 96px 40px;
}
#agencies .brand-copy {
  align-self: start;
  max-width: none;
  padding: 96px max(var(--pad), calc(100% - var(--at-team-measure) - var(--pad))) 96px var(--pad);
}
#agencies .brand-copy > :is(.brand-copy__title, .brand-copy__text) {
  max-width: none;
}
/* the facts run the full width of the column, wider than the statement */
#agencies .brand-facts {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
  width: calc(var(--at-copy-w) - 2 * var(--pad));
  max-width: none;
  margin: 56px 0 0;
  border-top: 0;
}
#agencies .brand-fact {
  padding: 2px 0 2px 16px;
  border-bottom: 0;
  border-left: 1px solid var(--line-2);
}
#agencies .brand-fact__title {
  text-wrap: balance;
}
#agencies .brand-stage {
  background-color: var(--surface-2);
}
@media (max-width: 1100px) {
  #agencies .brand-split {
    --at-copy-w: calc(100cqw / 2.1);
  }
}
@media (max-width: 900px) {
  #agencies .brand-split {
    --at-copy-w: 100cqw;
  }
  #agencies .brand-stage {
    padding: 56px 24px 64px;
  }
  #agencies .brand-copy {
    padding-top: 64px;
    padding-bottom: 56px;
  }
}
@media (max-width: 520px) {
  #agencies .brand-facts {
    grid-template-columns: minmax(0, 1fr);
    gap: 16px;
  }
}

/* ── between 901 and 1279px the chapter column and the agencies split are
   narrow: tighter insets in the work columns, a wider text column for
   revenue and agencies so each headline keeps to one line ───────────── */
@media (min-width: 901px) and (max-width: 1279px) {
  #work .wk-cards > .kcard {
    padding-inline: 20px;
  }
  #work .kcard__mock {
    padding: 16px 12px;
  }
  #revenue .rv-split {
    grid-template-columns: minmax(0, 58fr) minmax(0, 42fr);
  }
  #revenue .rv-plate {
    padding-inline: 16px;
  }
  #agencies .brand-split {
    grid-template-columns: minmax(528px, 1fr) minmax(0, 1fr);
    --at-copy-w: max(528px, 50cqw);
  }
  #agencies .brand-stage {
    padding-inline: 24px;
  }
}


/* ═════════════════════════════════════════════════════════════════════════
   revenue: production picture
   The first picture finished to the rules proposed in research/attio-
   pictures.md (§B, decisions D1 to D5, entry E1-4), as the example the owner
   asked to see. Markup: attio.sections/36-revenue.html (this skin only).

   What it shows: the product's own quote (Revenue › Quotes › a quote), as
   the product lays it out: a header strip with the status and the action
   on the right, then the customer, the lines and the total. Text at the
   owner's level B (attio.md): no breadcrumb and no number; both lines
   named with their prices. Texts: Draft, Accepted, Convert to invoice,
   MR, Marta R., two lines and their prices, Total and its amount = 11.
   Every label is the product's (paskal revenue.json); the values are the
   page's story (Marta R., her kitchen). Behind it, the invoice draft it
   becomes, of which only the header shows, with its state alone.

   Built from the picture foundations in attio.css: --pic-window (both
   windows are at the window level), --pic-r-window and the nested radius
   inside it, .pic-chip with data-status for the two states (green done,
   amber waiting for a person), --pic-ease. Inter, as the rest of the page.

   Motion, once, when the picture scrolls into view (data-play="once" and
   the shared attio.motion.js): "Convert to invoice" is pressed, then the
   invoice slides out from behind the quote and stays. The finished frame
   is the default: without JavaScript and under reduced motion it is all
   that shows. Nothing loops.
   ═════════════════════════════════════════════════════════════════════════ */
/* the product's primary blue (paskal theme.css, #1a2ce8), shared by the
   production pictures of this part. Proposed as the site-wide accent; it
   awaits the owner's yes (decision D3). In the quote it is the primary
   button only; in the pipeline, the deal in focus; in work, the task and
   the event in focus; in agencies, the workspace in focus. */
:is(#crm, #work, #meetings, #revenue, #agencies) {
  --at-product-blue: #1a2ce8;
}
#revenue .rv-plate {
  container-type: inline-size;
}
#revenue .rq-stage {
  /* the invoice's offset: how far it shows above and to the right */
  --rq-dx: 32px;
  --rq-dy: 52px;
  --rq-line: color-mix(in srgb, var(--fg) 8%, var(--surface));
  position: relative;
  width: min(100%, 476px);
  padding: var(--rq-dy) var(--rq-dx) 0 0;
  color: var(--fg);
  font: var(--pic-text-value);
  letter-spacing: var(--at-track);
  pointer-events: none;
  user-select: none;
}

/* a window: a pale tray, 6px round the white panel (product: Frame) */
#revenue .rq-win {
  padding: 6px;
  border-radius: var(--pic-r-window);
  background: color-mix(in srgb, var(--surface) 50%, transparent);
  box-shadow: var(--pic-window);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
}
#revenue .rq-win--quote {
  position: relative;
  z-index: 1;
}
/* the invoice: the quote's size, moved up and right from behind it */
#revenue .rq-win--inv {
  position: absolute;
  inset: var(--rq-dy) var(--rq-dx) 0 0;
  transform: translate(var(--rq-dx), calc(-1 * var(--rq-dy)));
}
#revenue .rq-panel {
  height: 100%;
  overflow: hidden;
  border-radius: calc(var(--pic-r-window) - 6px);
  background: var(--surface);
  box-shadow: 0 0 0 1px var(--rq-line);
}

/* the header strip (product: the document's actions header) */
#revenue .rq-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 10px 10px 16px;
  border-bottom: 1px solid var(--rq-line);
  background: color-mix(in srgb, var(--fg) 2%, var(--surface));
}
#revenue .rq-title {
  display: flex;
  flex: 1 1 auto;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px 10px;
  min-width: 0;
}
#revenue .rq-crumb {
  display: flex;
  align-items: center;
  gap: 4px;
  margin: 0;
  color: var(--fg-2);
  white-space: nowrap;
}
#revenue .rq-crumb svg {
  flex: none;
  color: var(--fg-3);
}
#revenue .rq-crumb b {
  color: var(--fg);
  font: var(--pic-text-title);
  letter-spacing: var(--at-track);
}
#revenue .rq-win--inv .rq-bar {
  padding-block: 12px;
}
/* the primary button, in the product's blue */
#revenue .rq-btn {
  display: inline-flex;
  flex: none;
  align-items: center;
  height: 32px;
  padding: 0 12px;
  border-radius: calc(var(--pic-r-window) - 6px);
  background: var(--at-product-blue);
  color: var(--white);
  font-weight: 500;
  white-space: nowrap;
}

/* the customer, the lines and the total */
#revenue .rq-body {
  padding: 16px 16px 6px;
}
#revenue .rq-cust {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 8px;
}
/* Marta R.'s tinted initials: pink, as everywhere on the page (status
   recipe tones, 6.6:1) */
#revenue .rq-av {
  --st: var(--at-h-pink);
  display: grid;
  flex: none;
  width: 28px;
  height: 28px;
  border-radius: 9999px;
  background: color-mix(in srgb, var(--st) var(--st-mix-bg), var(--surface));
  box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--st) var(--st-mix-line), var(--surface));
  color: color-mix(in srgb, var(--st) var(--st-mix-fg), var(--fg));
  font: var(--pic-text-label);
  letter-spacing: var(--at-track);
  place-items: center;
}
#revenue .rq-lines {
  margin: 0;
}
#revenue .rq-line {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
  padding: 10px 0;
  border-top: 1px solid var(--rq-line);
}
#revenue .rq-line dt {
  min-width: 0;
}
#revenue .rq-line dd {
  flex: none;
  margin: 0;
  font-variant-numeric: tabular-nums;
}
#revenue .rq-line--total {
  align-items: center;
  margin-top: 4px;
  padding-block: 14px;
  border-top-color: var(--line-2);
  font-weight: 600;
}
#revenue .rq-line--total dd {
  font-size: 16px;
}

/* narrower plates: the invoice shows less, the status wraps under the
   number; on a phone the action goes under the title, as the product's
   header does under its small breakpoint */
@container (max-width: 470px) {
  #revenue .rq-stage {
    --rq-dx: 20px;
  }
}
@container (max-width: 380px) {
  #revenue .rq-win--quote .rq-bar {
    flex-direction: column;
    align-items: flex-start;
    padding-right: 16px;
  }
}

/* the one story, once: the button is pressed, the invoice slides out.
   attio.motion.js (data-play="once") sets --pic-run to running when the
   picture is in view; until then the animations wait on their first frame.
   Without .at-play (no script, or reduced motion) nothing animates and the
   plain style above, the finished frame, is what shows. */
.at-play #revenue .rq-btn {
  animation: rq-press 360ms var(--pic-ease) 350ms both;
  animation-play-state: var(--pic-run);
}
.at-play #revenue .rq-win--inv {
  animation: rq-out 700ms var(--pic-ease) 700ms both;
  animation-play-state: var(--pic-run);
}
@keyframes rq-press {
  45% { transform: scale(0.95); }
}
@keyframes rq-out {
  from { transform: none; }
}

/* ═════════════════════════════════════════════════════════════════════════
   crm: production picture
   Finished to the rules proposed in research/attio-pictures.md (§B,
   decisions D1 to D5, entry E1-2), then cut to the owner's word budget ("su
   tante illustrazioni sei tornato a scrivere quel troppo in più"): at most 8
   texts on the plate. Markup: attio.sections/30-crm.html (this skin only).

   What it shows: the product's own "Deals pipeline" (CRM › Deals, the
   kanban view, paskal workspace-kanban.tsx): one framed tray per stage with
   its coloured dot and name, the deals as cards inside it. Three stages
   are named (Qualified, Proposal, Won; their dot colours are the
   product's), with no counts. Every deal shows its real name and its
   contact's tinted initials (status recipe, at least 5.7:1); the focal
   one, "Kitchen renovation", also its contact's name. Only the trailing
   card in Won is a bar. No source badges, no amounts (decision D2). The
   board runs on past the plate's right edge and foot. Texts: 3 stages,
   the tab, 3 deals, 3 initials, Marta R. = 11 (level B of the three the
   owner is shown).

   The focal deal carries a ring and a tab in the product's blue; the tab
   names who moved it with the product's word for that actor, "AI agent"
   (CRM overview › Recent activity).

   Built from the picture foundations in attio.css: --pic-card and
   --pic-float, --pic-r-window and the radius nested inside it, the type
   tokens, --pic-ease and --pic-step. Inter, as the rest of the page.

   Motion, once, when the picture scrolls into view (data-play="once" and
   the shared attio.motion.js): the deal lifts out of Qualified, travels to
   Proposal and settles there; the card under it in Proposal makes room
   and the one left in Qualified closes the gap. The finished frame is the
   default: without JavaScript and under reduced motion it is all that
   shows. Nothing loops.
   ═════════════════════════════════════════════════════════════════════════ */
#crm .crm-plate {
  container-type: inline-size;
  display: block;
  height: 336px;
  padding: 0;
  overflow: hidden;
  /* .kplate centres its child, and centring now reaches block layout too */
  place-items: start;
}
#crm .ck-board {
  /* one column's width and the gap between columns; a card's height and
     the gap between cards. The motion moves by exactly these. A column is
     at least a third of the plate, so the third stage is always cut. */
  --ck-col: max(288px, 34cqw);
  --ck-gap: 12px;
  --ck-card-h: 88px;
  --ck-card-gap: 6px;
  /* the air at the plate's left edge; once Qualified and Proposal no
     longer fit, Qualified is cut on the left instead */
  --ck-edge: 40px;
  --ck-line: color-mix(in srgb, var(--fg) 8%, var(--surface));
  display: flex;
  gap: var(--ck-gap);
  width: max-content;
  margin-left: min(var(--ck-edge), 100cqw - var(--ck-edge) - 2 * var(--ck-col) - var(--ck-gap));
  padding-top: 48px;
  color: var(--fg);
  font: var(--pic-text-value);
  letter-spacing: var(--at-track);
  pointer-events: none;
  user-select: none;
}

/* a stage: a pale tray with a hairline (product: Frame), its header on
   top, the cards inside; it runs on past the plate's foot */
#crm .ck-col {
  flex: none;
  width: var(--ck-col);
  min-height: 480px;
  padding: 0 6px 6px;
  border-radius: var(--pic-r-window);
  background: color-mix(in srgb, var(--surface) 55%, transparent);
  box-shadow: inset 0 0 0 1px var(--ck-line);
}
#crm .ck-col[data-stage="qualified"] { --ck-hue: var(--at-h-blue); }
#crm .ck-col[data-stage="proposal"] { --ck-hue: var(--at-h-amber); }
#crm .ck-col[data-stage="won"] { --ck-hue: var(--at-h-green); }
#crm .ck-head {
  display: flex;
  align-items: center;
  gap: 8px;
  height: 44px;
  margin: 0;
  padding: 0 8px;
}
#crm .ck-dot {
  flex: none;
  width: 10px;
  height: 10px;
  border-radius: 9999px;
  background: var(--ck-hue);
}

/* a deal (product: FramePanel): its name, then its contact */
#crm .ck-cards {
  display: grid;
  gap: var(--ck-card-gap);
}
#crm .ck-card {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  height: var(--ck-card-h);
  padding: 16px;
  border-radius: calc(var(--pic-r-window) - 6px);
  background: var(--surface);
  box-shadow: var(--pic-card);
}
/* the trailing deal in Won: a bar for its name, at the name's height */
#crm .ck-card > .mk-skel {
  margin-top: 6px;
}
#crm .ck-title {
  overflow: hidden;
  margin: 0;
  font: var(--pic-text-title);
  letter-spacing: var(--at-track);
  text-overflow: ellipsis;
  white-space: nowrap;
}
#crm .ck-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}
/* the contact: tinted initials from the status recipe, one hue per person
   on the whole page; on the unnamed deals the circle has no letters */
#crm .ck-av {
  --st: var(--at-h-grey);
  display: grid;
  flex: none;
  width: 24px;
  height: 24px;
  border-radius: 9999px;
  background: var(--st-bg);
  box-shadow: inset 0 0 0 1px var(--st-line);
  color: var(--st-fg);
  font: var(--pic-text-label);
  place-items: center;
}
#crm .ck-av[data-p="marta"] { --st: var(--at-h-pink); }
#crm .ck-av[data-p="luca"] { --st: var(--at-h-blue); }
#crm .ck-av[data-p="giulia"] { --st: var(--at-h-green); }
#crm .ck-av[data-p="paolo"] { --st: var(--at-h-orange); }
#crm .ck-person {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

/* a deal further down the board, fading out */
#crm .ck-card--ghost {
  justify-content: flex-start;
  -webkit-mask-image: linear-gradient(to bottom, var(--fg), transparent);
  mask-image: linear-gradient(to bottom, var(--fg), transparent);
}

/* the deal in focus: a ring and a tab in the product's blue. The ring and
   the lift are layers of their own, so the motion can fade them. */
#crm .ck-card--focal {
  z-index: 1;
}
#crm .ck-card--focal::before,
#crm .ck-card--focal::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  pointer-events: none;
}
#crm .ck-card--focal::before {
  box-shadow: 0 0 0 1.5px var(--at-product-blue);
}
#crm .ck-card--focal::after {
  z-index: -1;
  box-shadow: var(--pic-float);
  opacity: 0;
}
#crm .ck-tab {
  position: absolute;
  right: 12px;
  bottom: 100%;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  height: 22px;
  padding: 0 8px 0 7px;
  border-radius: var(--pic-r-chip) var(--pic-r-chip) 0 0;
  background: var(--at-product-blue);
  color: var(--white);
  font: var(--pic-text-label);
  letter-spacing: var(--at-track);
  white-space: nowrap;
}
#crm .ck-tab svg {
  flex: none;
}

/* narrower plates: narrower columns and less air; the board stays one
   piece and the plate cuts it on both sides */
@container (max-width: 640px) {
  #crm .ck-board {
    --ck-col: 232px;
    --ck-edge: 24px;
    padding-top: 40px;
  }
  #crm .crm-plate {
    height: 340px;
  }
}
@container (max-width: 420px) {
  #crm .ck-board {
    --ck-col: 204px;
    --ck-gap: 10px;
    --ck-edge: 16px;
  }
  #crm .ck-card {
    padding: 14px;
  }
}
@media (max-width: 640px) {
  #crm .crm-plate {
    height: 320px;
  }
}

/* the one story, once: the AI agent lifts the deal out of Qualified, moves
   it to Proposal and sets it down. attio.motion.js (data-play="once") sets
   --pic-run to running when the picture is in view; until then every
   animation waits on its first frame. Without .at-play (no script, or
   reduced motion) nothing animates and the plain style above, the
   finished frame, is what shows. */
.at-play #crm .ck-card--focal {
  animation: ck-move 1700ms var(--pic-ease) 200ms both;
  animation-play-state: var(--pic-run);
}
.at-play #crm .ck-card--focal::after {
  animation: ck-lift 1700ms var(--pic-ease) 200ms both;
  animation-play-state: var(--pic-run);
}
.at-play #crm .ck-card--focal::before,
.at-play #crm .ck-tab {
  animation: ck-in var(--pic-step) var(--pic-ease) 250ms both;
  animation-play-state: var(--pic-run);
}
.at-play #crm .ck-card--fall {
  animation: ck-fall var(--pic-step) var(--pic-ease) 700ms both;
  animation-play-state: var(--pic-run);
}
.at-play #crm .ck-card--rise {
  animation: ck-rise var(--pic-step) var(--pic-ease) 950ms both;
  animation-play-state: var(--pic-run);
}
@keyframes ck-move {
  0% { transform: translateX(calc(-1 * (var(--ck-col) + var(--ck-gap)))); }
  25% { transform: translate(calc(-1 * (var(--ck-col) + var(--ck-gap))), -6px) rotate(-2deg); }
  72% { transform: translateY(-6px) rotate(-2deg); }
}
@keyframes ck-lift {
  25%, 72% { opacity: 1; }
}
@keyframes ck-in {
  from { opacity: 0; }
}
@keyframes ck-fall {
  from { transform: translateY(calc(-1 * (var(--ck-card-h) + var(--ck-card-gap)))); }
}
@keyframes ck-rise {
  from { transform: translateY(calc(var(--ck-card-h) + var(--ck-card-gap))); }
}

/* ═════════════════════════════════════════════════════════════════════════
   work: production pictures
   The three drawings of the work section, finished to the rules of
   research/attio-pictures.md (§B, decisions D1 to D5, entry E1-13), after
   the quote and the pipeline above. Markup: attio.sections/32-work.html
   (this skin only).

   What they show: one real fragment of each of three product screens, all
   telling one story, Marta R.'s kitchen visit. Text at the owner's level B
   (attio.md, "How much text a picture carries"): every object named, at
   most one short line beside it, nothing that explains or repeats.
     Tasks      the Tasks list (paskal tasks-surface.tsx, task-phone-list.tsx):
                the round complete toggle, the title, under it the task's
                linked record with the product's link icon, the assignee's
                tinted initials. The done task is struck through in grey,
                its toggle filled in ink. The new task is in focus.
                Texts: Order the worktop, Measure the kitchen, Marta R.,
                AK = 4, and one fading bar row.
     Calendar   a slice of the week view (paskal ReUI event-calendar): day
                names, hour lines, a teammate's busy hour as a grey block
                with no word on it, and the new event, its title and its one
                time range ("{from}–{to}", ui.json). The event blocks are the
                product's: a soft tint of the event's colour with a hairline
                of it, no edge bar. The week runs on past both sides of the
                panel. Texts: 3 days, the title, the time = 5.
     Team chat  two message rows (paskal collaboration-workspace.tsx): the
                avatar, the name, the body; no times. Sara M. asks, and the
                second message is the one the AI posts for Anna K.: the
                product sends it as her (team.message.send) and marks it no
                other way, so the picture does not either. Texts: 6.
   Numbers: one time range, on the event in focus (decision D2); no due
   dates, counts or times of messages.

   Built from the picture foundations in attio.css: --pic-card and
   --pic-float, --pic-r-card and the radii nested inside it, the type
   tokens, the status recipe for the tinted initials, --pic-ease and
   --pic-step. The deal, task and event in focus carry the product's blue.

   Motion, once, when the pictures scroll into view (data-play="once" and
   the shared attio.motion.js), read left to right: the new task rises into
   the list, the event settles into Thursday, the message arrives. The
   finished frame is the plain style: without JavaScript and under reduced
   motion it is all that shows. Nothing loops.
   ═════════════════════════════════════════════════════════════════════════ */
#work .kcard__mock {
  container: wk-mock / inline-size;
  --wk-line: color-mix(in srgb, var(--fg) 8%, var(--surface));
}
/* a panel of the product (FramePanel): white, a hairline ring */
#work :is(.wt-list, .wc-cal, .wh-chat) {
  border-radius: var(--pic-r-card);
  background: var(--surface);
  box-shadow: var(--pic-card);
  color: var(--fg);
  font: var(--pic-text-value);
  letter-spacing: var(--at-track);
  pointer-events: none;
  user-select: none;
}
#work :is(.wt-list, .wh-chat) {
  width: min(100%, 340px);
}
/* a person: tinted initials, one hue per person on the whole page */
#work .wk-av {
  --st: var(--at-h-grey);
  display: grid;
  flex: none;
  width: 28px;
  height: 28px;
  border-radius: 9999px;
  background: var(--st-bg);
  box-shadow: inset 0 0 0 1px var(--st-line);
  color: var(--st-fg);
  font: var(--pic-text-label);
  letter-spacing: var(--at-track);
  place-items: center;
}
#work .wk-av[data-p="anna"] { --st: var(--at-h-violet); }
#work .wk-av[data-p="sara"] { --st: var(--at-h-amber); }

/* ── tasks: the list, the new task in focus ───────────────────────────── */
#work .wt-list {
  margin: 0;
  padding: 0;
  list-style: none;
}
#work .wt-row {
  position: relative;
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 64px;
  padding: 10px 16px;
}
#work .wt-row + .wt-row {
  border-top: 1px solid var(--wk-line);
}
#work .wt-check {
  display: grid;
  flex: none;
  width: 20px;
  height: 20px;
  border-radius: 9999px;
  box-shadow: inset 0 0 0 1px var(--fg-3);
  place-items: center;
}
#work .is-done .wt-check {
  background: var(--fg);
  box-shadow: none;
  color: var(--surface);
}
#work .wt-text {
  display: grid;
  flex: 1 1 auto;
  gap: 2px;
  min-width: 0;
}
#work .wt-title {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
#work .is-done .wt-title {
  color: var(--fg-2);
  text-decoration: line-through;
}
#work .wt-links {
  display: flex;
  align-items: center;
  gap: 4px;
  color: var(--fg-2);
  font: var(--pic-text-label);
  letter-spacing: var(--at-track);
}
/* the new task: a ring in the product's blue, lifted past the list's
   edges; the hairlines on either side give way to it */
#work .wt-row--focal {
  z-index: 1;
  margin-inline: -8px;
  padding-inline: 24px;
  border-radius: var(--pic-r-card);
  background: var(--surface);
  box-shadow: 0 0 0 1.5px var(--at-product-blue), var(--pic-float);
}
#work .wt-row + .wt-row--focal,
#work .wt-row--focal + .wt-row {
  border-top-color: transparent;
}
#work .wt-row--ghost {
  gap: 12px;
  -webkit-mask-image: linear-gradient(to bottom, var(--fg) 10%, transparent);
  mask-image: linear-gradient(to bottom, var(--fg) 10%, transparent);
}

/* ── calendar: three days of the week, cut by the panel at both sides ─── */
#work .wc-cal {
  container-type: inline-size;
  /* one day's width, one hour's height, the header row */
  --wc-col: clamp(104px, 38cqi, 124px);
  --wc-hour: 48px;
  --wc-head: 36px;
  position: relative;
  overflow: hidden;
  width: min(100%, 400px);
  height: 100%;
  min-height: 232px;
  max-height: 248px;
}
#work .wc-days {
  display: flex;
  width: max-content;
  height: 100%;
  /* Thursday, the middle of the five days, sits in the middle of the
     panel; the days either side run off its edges */
  margin-left: calc(50cqi - 2.5 * var(--wc-col));
}
#work .wc-day {
  position: relative;
  flex: none;
  width: var(--wc-col);
  height: 100%;
  /* the hour lines, under the header */
  background: linear-gradient(to bottom, var(--wk-line) 0 1px, transparent 1px) 0 var(--wc-head) / 100% var(--wc-hour) repeat-y;
}
#work .wc-day + .wc-day {
  box-shadow: inset 1px 0 0 var(--wk-line);
}
#work .wc-name {
  height: var(--wc-head);
  margin: 0;
  color: var(--fg-2);
  font: var(--pic-text-label);
  letter-spacing: var(--at-track);
  line-height: var(--wc-head);
  text-align: center;
}
/* the edges of the panel fade, so the cut days read as more of the week */
#work .wc-cal::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: linear-gradient(to right, var(--surface) 2%, transparent 20%, transparent 80%, var(--surface) 98%);
}
/* an event block (product: a tint of its calendar's colour, a hairline of
   it, the title, then the time; the tint is 12% here where the product's
   is 15%, so the grey time keeps 4.5:1) */
#work .wc-ev {
  --wc-hue: var(--at-h-grey);
  position: absolute;
  left: 3px;
  right: 3px;
  display: grid;
  align-content: start;
  height: calc(var(--wc-hour) - 3px);
  padding: 4px 8px;
  border-radius: var(--pic-r-chip);
  background: color-mix(in srgb, var(--wc-hue) 12%, var(--surface));
  box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--wc-hue) 22%, var(--surface));
}
#work .wc-ev > span {
  color: var(--fg-2);
  font: var(--pic-text-label);
  letter-spacing: var(--at-track);
  white-space: nowrap;
}
/* a teammate's hour, 9:00 to 10:00: a grey block, no word on it */
#work .wc-ev--busy {
  top: calc(var(--wc-head) + var(--wc-hour) + 2px);
}
/* the new event, 10:00 to 11:00, right after it, in the product's blue */
#work .wc-ev--focal {
  --wc-hue: var(--at-product-blue);
  z-index: 1;
  top: calc(var(--wc-head) + 2 * var(--wc-hour) + 2px);
  box-shadow: 0 0 0 1.5px var(--at-product-blue), var(--pic-float);
}
#work .wc-ev--focal b {
  overflow: hidden;
  font-weight: 500;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* ── team chat: two message rows ──────────────────────────────────────── */
#work .wh-chat {
  display: grid;
  gap: 16px;
  padding: 16px 16px 18px;
}
#work .wh-msg {
  display: flex;
  align-items: flex-start;
  gap: 10px;
}
#work .wh-msg .wk-av {
  width: 32px;
  height: 32px;
}
#work .wh-main {
  display: grid;
  flex: 1 1 auto;
  gap: 2px;
  min-width: 0;
}

#work .wh-head {
  display: flex;
  align-items: baseline;
  gap: 8px;
  margin: 0;
}
#work .wh-head b {
  font-weight: 500;
}
#work .wh-body {
  margin: 0;
  text-wrap: pretty;
}

/* the narrow columns between 901 and 1279px: tighter rows */
@media (min-width: 901px) and (max-width: 1279px) {
  #work .wt-row {
    padding-inline: 12px;
    gap: 10px;
  }
  #work .wt-row--focal {
    margin-inline: -6px;
    padding-inline: 18px;
  }
  #work .wh-chat {
    padding: 14px 12px 16px;
  }
  #work .wh-msg {
    gap: 8px;
  }
}
@media (max-width: 640px) {
  #work .wc-cal {
    height: 240px;
  }
}
/* a narrow column (901 to 1279px): two whole days, Thursday and Friday,
   rather than three cut ones, and no fade */
@container wk-mock (max-width: 290px) {
  #work .wc-days {
    --wc-col: 50cqi;
    margin-left: calc(-2 * var(--wc-col));
  }
  #work .wc-cal::after {
    display: none;
  }
}

/* the one story, once, read left to right: the task rises into the list,
   the event settles into Thursday, the message arrives. attio.motion.js
   (data-play="once") sets --pic-run to running when each picture is in
   view; until then every animation waits on its first frame. Without
   .at-play (no script, or reduced motion) nothing animates and the plain
   style above, the finished frame, is what shows. */
.at-play #work .wt-row--focal {
  animation: wk-rise var(--pic-step) var(--pic-ease) 150ms both;
  animation-play-state: var(--pic-run);
}
.at-play #work .wc-ev--focal {
  animation: wk-settle var(--pic-step) var(--pic-ease) 500ms both;
  animation-play-state: var(--pic-run);
}
.at-play #work .wh-msg--new {
  animation: wk-rise var(--pic-step) var(--pic-ease) 850ms both;
  animation-play-state: var(--pic-run);
}
@keyframes wk-rise {
  from { opacity: 0; transform: translateY(8px); }
}
@keyframes wk-settle {
  from { opacity: 0; transform: translateY(-6px) scale(0.97); }
}

/* ═════════════════════════════════════════════════════════════════════════
   meetings: production picture
   Finished to the rules of research/attio-pictures.md (§B, decisions D1 to
   D5, entry E1-5). Markup: attio.sections/34-meetings.html (this skin
   only).

   What it shows: one card. Its head is the call: the two people's tinted
   initials (Anna K. violet, Marta R. pink, as everywhere on the page) and
   the product's "Smart meeting" (meetings.json, the feature's own name) as
   an AI chip. Its body is the outcome, as the product shows it once a call
   has ended (paskal meeting-crm.tsx): "To update in the CRM", then the
   AI's updates, each a grey field name, an arrow and the new value in
   ink, then the state: an outline "Apply" and a ghost × (Dismiss) while it
   waits, a green tick and "Applied" once done. Labels: meetings.json
   notes.crm (suggestionsTitle, fields.stage, stages.proposal, apply,
   fields.next_step, applied). Text at the owner's level B (attio.md):
   both updates named, "Applied" written once and a tick on the second; no
   deal badge and no old value. Texts: AK, MR, Smart meeting, the title,
   Stage, Proposal, Applied, Next step, Send the quote = 9.

   Built from the picture foundations in attio.css: --pic-float for the
   card, --pic-r-card and the radii nested inside it, the type tokens, the
   status recipe, --pic-ease. The call's arrow into the captions is gone:
   the plate now shows the outcome itself.

   Motion, once, when the picture scrolls into view (data-play="once" and
   the shared attio.motion.js): the first update's "Apply" is pressed and
   turns into "Applied", as the second already is ticked. The finished frame is
   the plain style: without JavaScript and under reduced motion it is all
   that shows. Nothing loops.
   ═════════════════════════════════════════════════════════════════════════ */
/* the plate fills its column; there is no arrow column any more */
#meetings .mt-callcol {
  grid-template-columns: minmax(0, 1fr);
}
@media (min-width: 901px) {
  #meetings .mt-callcol {
    padding-right: 16px;
  }
}
@media (max-width: 900px) {
  #meetings .mt-callcol {
    grid-template-rows: auto;
    padding-bottom: 16px;
  }
}
/* the captions' icon tiles, one hue each, from the status recipe */
#meetings .mt-res:nth-child(1) .mt-tile { --st: var(--at-h-blue); }
#meetings .mt-res:nth-child(2) .mt-tile { --st: var(--at-h-violet); }
#meetings .mt-res:nth-child(3) .mt-tile { --st: var(--at-h-amber); }
#meetings .mt-tile {
  width: 44px;
  height: 44px;
  border-radius: var(--pic-r-card);
  background: var(--st-bg);
  box-shadow: inset 0 0 0 1px var(--st-line);
  color: var(--st-fg);
}
#meetings .mt-tile svg {
  width: 22px;
  height: 22px;
}

#meetings .mt-plate {
  container-type: inline-size;
}
#meetings .mm-stage {
  --mm-line: color-mix(in srgb, var(--fg) 8%, var(--surface));
  display: grid;
  width: min(100%, 380px);
  color: var(--fg);
  font: var(--pic-text-value);
  letter-spacing: var(--at-track);
  pointer-events: none;
  user-select: none;
}
/* the one card, a panel laid on the plate */
#meetings .mm-card {
  overflow: hidden;
  border-radius: var(--pic-r-card);
  background: var(--surface);
  box-shadow: var(--pic-float);
}
/* its head: the call, two people and Smart meeting, on the plate's tone */
#meetings .mm-call {
  display: grid;
  justify-items: center;
  gap: 14px;
  padding: 28px 16px 22px;
  border-bottom: 1px solid var(--mm-line);
  background: color-mix(in srgb, var(--fg) 3%, var(--surface));
}
#meetings .mm-people {
  display: flex;
  gap: 16px;
}
#meetings .mm-av {
  display: grid;
  width: 52px;
  height: 52px;
  border-radius: 9999px;
  background: var(--st-bg);
  box-shadow: inset 0 0 0 1px var(--st-line), 0 0 0 3px var(--surface);
  color: var(--st-fg);
  font: var(--pic-text-value);
  letter-spacing: var(--at-track);
  place-items: center;
}
#meetings .mm-av[data-p="anna"] { --st: var(--at-h-violet); }
#meetings .mm-av[data-p="marta"] { --st: var(--at-h-pink); }
#meetings .mm-head {
  margin: 0;
  padding: 16px 16px 6px;
  font: var(--pic-text-title);
  letter-spacing: var(--at-track);
}
#meetings .mm-rows {
  margin: 0;
  padding: 0 0 4px;
  list-style: none;
}
#meetings .mm-row {
  display: flex;
  align-items: center;
  gap: 8px 12px;
  min-height: 56px;
  padding: 10px 12px 10px 16px;
}
#meetings .mm-row + .mm-row {
  border-top: 1px solid var(--mm-line);
}
#meetings .mm-change {
  display: flex;
  flex: 1 1 auto;
  align-items: center;
  gap: 8px;
  min-width: 0;
}
#meetings .mm-field {
  color: var(--fg-2);
}
#meetings .mm-change svg {
  flex: none;
  color: var(--fg-3);
}
#meetings .mm-change b {
  font-weight: 500;
}
/* the state: Apply and × while it waits, Applied once done, in one cell */
#meetings .mm-state {
  display: grid;
  flex: none;
  justify-items: end;
}
#meetings .mm-state > * {
  grid-area: 1 / 1;
  display: inline-flex;
  align-items: center;
}
#meetings .mm-act {
  gap: 2px;
  opacity: 0;
}
#meetings .mm-apply {
  display: inline-flex;
  align-items: center;
  height: 28px;
  padding: 0 10px;
  border-radius: calc(var(--pic-r-card) - 4px);
  background: var(--surface);
  box-shadow: inset 0 0 0 1px var(--line-2), 0 1px 2px var(--shade-xs);
  font-weight: 500;
}
#meetings .mm-x {
  display: grid;
  width: 28px;
  height: 28px;
  color: var(--fg-2);
  place-items: center;
}
#meetings .mm-done {
  gap: 4px;
  color: var(--fg-2);
  font: var(--pic-text-label);
  letter-spacing: var(--at-track);
  white-space: nowrap;
}
#meetings .mm-done svg {
  color: var(--at-h-green);
}

/* the one story, once: Apply is pressed and turns into Applied.
   attio.motion.js (data-play="once") sets --pic-run to running when the
   picture is in view; until then the animations wait on their first frame,
   which shows the update still waiting. Without .at-play (no script, or
   reduced motion) nothing animates and the plain style above, the finished
   frame, is what shows. */
.at-play #meetings .mm-row--press .mm-apply {
  animation: mm-press 360ms var(--pic-ease) 450ms both;
  animation-play-state: var(--pic-run);
}
.at-play #meetings .mm-row--press .mm-act {
  animation: mm-out 250ms var(--pic-ease) 800ms both;
  animation-play-state: var(--pic-run);
}
.at-play #meetings .mm-row--press .mm-done {
  animation: mm-in 300ms var(--pic-ease) 950ms both;
  animation-play-state: var(--pic-run);
}
@keyframes mm-press {
  45% { transform: scale(0.94); }
}
@keyframes mm-out {
  from { opacity: 1; }
}
@keyframes mm-in {
  from { opacity: 0; transform: translateX(4px); }
}

/* ═════════════════════════════════════════════════════════════════════════
   agencies: production picture
   Finished to the rules of research/attio-pictures.md (§B, decisions D1 to
   D5, entry E1-15). Markup: attio.sections/80-agencies.html (this skin
   only).

   What it shows: the product's workspace chooser on an agency's own domain
   (paskal app white-label-internal/root/page.tsx): one row per client
   workspace, as the product draws it, a rounded square with the
   workspace's picture or its first letter, then the name. It stands in a
   window whose address bar shows the agency's domain and whose header
   carries the agency's name and logo in its own colour (--brand-own, the
   sanctioned hue of 80-agencies.css, which this skin sets to ink); the
   product shows the brand in its shell, not on this page. Text at the
   owner's level B (attio.md): every client named; the page's title
   "Choose a workspace" and the workspaces' addresses are left out.
   Texts: the domain, Y, Your brand, and three letters and names = 9.

   Each client's letter stands for its logo, in its own hue from the status
   recipe (12% ground, 26% line, 56% text): every letter measures at least
   5.5:1, where the earlier orange "A" measured 4.19:1.

   Built from the picture foundations in attio.css: --pic-window for the
   window and its tray, --pic-float for the row in focus, --pic-r-window and
   the radii nested inside it, the type tokens, --pic-ease and --pic-step.

   Motion, once, when the picture scrolls into view (data-play="once" and
   the shared attio.motion.js): the client's row is picked, its ring and
   lift come in. The finished frame is the plain style: without JavaScript
   and under reduced motion it is all that shows. Nothing loops.
   ═════════════════════════════════════════════════════════════════════════ */
#agencies .ag-win {
  --ag-line: color-mix(in srgb, var(--fg) 8%, var(--surface));
  width: min(100%, 460px);
  padding: 0 6px 6px;
  border-radius: var(--pic-r-window);
  background: color-mix(in srgb, var(--surface) 55%, transparent);
  box-shadow: var(--pic-window);
  color: var(--fg);
  font: var(--pic-text-value);
  letter-spacing: var(--at-track);
  pointer-events: none;
  user-select: none;
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
}
/* the address bar: the agency's domain */
#agencies .ag-url {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  height: 36px;
  margin: 0;
  color: var(--fg-2);
  font: var(--pic-text-label);
  letter-spacing: var(--at-track);
}
#agencies .ag-panel {
  padding-bottom: 12px;
  border-radius: calc(var(--pic-r-window) - 6px);
  background: var(--surface);
  box-shadow: 0 0 0 1px var(--ag-line);
}
/* the agency's name and logo, in its own colour */
#agencies .ag-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0;
  padding: 12px 16px;
  border-bottom: 1px solid var(--ag-line);
  font-weight: 500;
}
#agencies .ag-logo {
  display: grid;
  flex: none;
  width: 28px;
  height: 28px;
  border-radius: calc(var(--pic-r-card) - 4px);
  background: var(--brand-own);
  color: var(--white);
  font: var(--pic-text-title);
  place-items: center;
}
#agencies .ag-list {
  display: grid;
  gap: 8px;
  margin: 0;
  padding: 16px 12px 4px;
  list-style: none;
}
/* a workspace (product: a bordered row, rounded-md) */
#agencies .ag-ws {
  position: relative;
  display: flex;
  align-items: center;
  gap: 14px;
  min-height: 60px;
  padding: 12px 14px;
  border-radius: calc(var(--pic-r-card) - 4px);
  background: var(--surface);
  box-shadow: inset 0 0 0 1px var(--ag-line);
}
#agencies .ag-av {
  --st: var(--at-h-grey);
  display: grid;
  flex: none;
  width: 36px;
  height: 36px;
  border-radius: calc(var(--pic-r-card) - 4px);
  background: var(--st-bg);
  box-shadow: inset 0 0 0 1px var(--st-line);
  color: var(--st-fg);
  font: var(--pic-text-title);
  place-items: center;
}
#agencies .ag-av[data-c="lake"] { --st: var(--at-h-orange); }
#agencies .ag-av[data-c="bottega"] { --st: var(--at-h-pink); }
#agencies .ag-av[data-c="nord"] { --st: var(--at-h-violet); }
#agencies .ag-name {
  flex: 1 1 auto;
  min-width: 0;
  overflow: hidden;
  font-weight: 500;
  text-overflow: ellipsis;
  white-space: nowrap;
}
/* the client being opened: a ring in the product's blue and a lift, each
   a layer of its own so the motion can bring them in */
#agencies .ag-ws--focal {
  z-index: 1;
}
#agencies .ag-ws--focal::before,
#agencies .ag-ws--focal::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
}
#agencies .ag-ws--focal::before {
  z-index: -1;
  box-shadow: var(--pic-float);
}
#agencies .ag-ws--focal::after {
  box-shadow: 0 0 0 1.5px var(--at-product-blue);
}

/* the one story, once: the client's workspace is picked. attio.motion.js
   (data-play="once") sets --pic-run to running when the picture is in
   view; until then the animations wait on their first frame. Without
   .at-play (no script, or reduced motion) nothing animates and the plain
   style above, the finished frame, is what shows. */
.at-play #agencies .ag-ws--focal::before,
.at-play #agencies .ag-ws--focal::after {
  animation: ag-pick var(--pic-step) var(--pic-ease) 400ms both;
  animation-play-state: var(--pic-run);
}
@keyframes ag-pick {
  from { opacity: 0; }
}

/* src/skins/attio.x-connected.css */
/* Skin "attio", the section of its own after the customers chapter:
   "Connected" (src/skins/attio.sections/27-connected.html). Loaded after
   attio.css; every rule is scoped to #connected.

   Not a chapter section: no side list, no plate with captions. A centred
   40px statement over a wall of the 20 tools the product connects to, two
   rows of tiles that drift slowly sideways, on the skin's faint dots
   fading out from the centre. Without motion (no script, or reduced
   motion) the twenty tiles stand still in one centred wall. Finished to
   research/attio-pictures.md E1-18: tiles on --pic-card with the nested
   radii, two rows of ten, each wider than its window. */

#connected {
  --cn-gap: 12px;
  --cn-mark: 32px;
  /* the width the rows drift in: narrower than either row's set of ten
     (1,280 to 1,320px, 1.3 times as wide), so a tile never shows twice (research/attio-
     pictures.md E1-18) */
  --cn-window: 980px;
  overflow: hidden;
}

/* ── the centred 40px block, as #start's ─────────────────────────────── */
#connected .cn-head {
  max-width: calc(900px + 2 * var(--pad));
  margin-inline: auto;
  padding: 120px var(--pad) 64px;
  text-align: center;
  text-wrap: balance;
  font-size: clamp(28px, 1.4vw + 20px, 40px);
  line-height: 1.1;
}
#connected .cn-head > .tag {
  display: flex;
  width: fit-content;
  margin: 0 auto 24px;
}
#connected .cn-head > .h2,
#connected .cn-head > .cn-sub {
  display: inline;
  max-width: none;
  margin: 0;
  font-size: inherit;
  font-weight: 500;
  line-height: inherit;
  letter-spacing: var(--at-track);
  text-wrap: inherit;
}
#connected .cn-head > .h2 {
  color: var(--fg);
}
/* the grey line on a line of its own, so no word of it is left at the
   end of the black one */
#connected .cn-head > .cn-sub {
  display: block;
  color: var(--fg-2);
}
#connected .cn-head > .h2::after {
  content: " ";
}

/* ── the wall: dots that fade radially into the white ─────────────────── */
#connected .cn-wall {
  position: relative;
  padding: 48px 0 136px;
}
#connected .cn-wall::before {
  content: "";
  position: absolute;
  inset: -40px 0 24px;
  background-image: radial-gradient(circle, var(--line-2) 1px, transparent 1.2px);
  background-size: 12px 12px;
  -webkit-mask-image: radial-gradient(ellipse 60% 55% at 50% 45%, var(--fg) 20%, transparent 100%);
  mask-image: radial-gradient(ellipse 60% 55% at 50% 45%, var(--fg) 20%, transparent 100%);
  pointer-events: none;
}

/* the finished frame, which is also the frame without motion: the twenty
   tiles once each, in one centred wall (the rows and their sets give way) */
#connected .cn-rows {
  position: relative;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: var(--cn-gap);
  max-width: calc(var(--cn-window) + 2 * var(--pad));
  margin-inline: auto;
  padding-inline: var(--pad);
}
#connected .cn-row,
#connected .cn-track,
#connected .cn-set {
  display: contents;
}
#connected .cn-set[data-copy] {
  display: none;
}

/* ── a tile (a card): the mark in a small tile, the name at 14px ──────── */
#connected .cn-tile {
  display: inline-flex;
  flex: none;
  align-items: center;
  gap: 10px;
  height: 44px;
  padding: 0 14px 0 6px;
  border-radius: var(--pic-r-card);
  background: var(--surface);
  box-shadow: var(--pic-card);
  color: var(--fg);
  font: var(--pic-text-value);
  letter-spacing: var(--at-track);
  white-space: nowrap;
}
/* the mark's tile, nested: the card's radius less its 6px padding */
#connected .cn-mark {
  display: grid;
  place-items: center;
  width: var(--cn-mark);
  height: var(--cn-mark);
  border-radius: calc(var(--pic-r-card) - 6px);
  background: var(--surface-2);
  color: var(--fg);
}
#connected .cn-mark > svg {
  width: 18px;
  height: 18px;
}
/* the website chat: the product draws its globe in its own blue */
#connected .cn-mark--site {
  color: var(--at-h-blue);
}

/* ── the one sanctioned loop: two rows drift sideways, in opposite
   directions, inside a window narrower than either row's set, so no tile
   is ever on screen twice. transform only; each row holds its set three
   times and moves by one set, so the loop is seamless. The edges fade out
   through a mask. Only under .at-play (script on, motion allowed); it runs
   while the wall is on screen (data-play="loop", set by attio.js) and
   stands still on hover, focus or the button under it (attio.z-polish.css),
   all through --pic-run. */
.at-play #connected .cn-rows {
  display: grid;
  max-width: var(--cn-window);
  padding-inline: 0;
}
.at-play #connected .cn-row {
  display: block;
  min-width: 0;
  overflow: hidden;
  /* room above and below for the tiles' ring and shadow, which the
     clipping would otherwise cut into side brackets */
  margin-block: -6px;
  padding-block: 6px;
  -webkit-mask-image: linear-gradient(to right, transparent, var(--fg) 12%, var(--fg) 88%, transparent);
  mask-image: linear-gradient(to right, transparent, var(--fg) 12%, var(--fg) 88%, transparent);
}
.at-play #connected .cn-track {
  display: flex;
  width: max-content;
  animation: cn-drift 64s linear infinite;
  animation-play-state: var(--pic-run, paused);
}
.at-play #connected .cn-set,
.at-play #connected .cn-set[data-copy] {
  display: flex;
  flex-wrap: nowrap;
  gap: var(--cn-gap);
  margin: 0;
  padding: 0 var(--cn-gap) 0 0;
  list-style: none;
}
/* the second row the other way, started part-way so no two tiles line up */
.at-play #connected .cn-row[data-row="2"] .cn-track {
  animation-duration: 76s;
  animation-direction: reverse;
  animation-delay: -30s;
}
@keyframes cn-drift {
  from {
    transform: translateX(0);
  }
  to {
    transform: translateX(calc(-100% / 3));
  }
}

@media (max-width: 900px) {
  #connected .cn-head {
    padding-top: 80px;
    padding-bottom: 40px;
  }
  /* room for the pause button, which sits 100px up into the wall's foot
     (attio.z-polish.css) */
  #connected .cn-wall {
    padding: 32px 0 128px;
  }
}
@media (max-width: 600px) {
  #connected {
    --cn-gap: 8px;
    --cn-mark: 28px;
  }
  #connected .cn-tile {
    height: 40px;
    gap: 8px;
    padding-right: 12px;
  }
  #connected .cn-mark > svg {
    width: 16px;
    height: 16px;
  }
}

/* src/skins/attio.x-interlude.css */
/* Skin "attio", part: "Where you step in" (src/skins/attio.sections/
   37-interlude.html, the key it keeps from the interlude it replaced), the
   page's mid-point ask between the team chapter (grey) and the AI agents
   chapter (dark). research/attio-home-audit.md §5 direction B, §6 item 9.

   A centred statement over the product's three modes as three large chips,
   in the status recipe's own green, amber and grey, then the hero's two
   buttons. A flat white ground: no wash, no ticks, no arc (the arc and the
   wash it had were the reference's horizon, used twice in a row with the
   dark chapter's opener). One motion: the chips come in one after
   another, once. Theme variables only. */

#interlude {
  background: var(--bg);
}

#interlude .il-body {
  display: grid;
  justify-items: center;
  gap: 40px;
  max-width: calc(820px + 2 * var(--pad));
  margin-inline: auto;
  padding: 96px var(--pad) 104px;
  text-align: center;
}

/* the statement in ink, its line under it in the second tone */
#interlude .il-head {
  display: grid;
  justify-items: center;
  gap: 14px;
}
#interlude .il-head > .h2 {
  max-width: none;
  margin: 0;
  font-size: clamp(28px, 1.4vw + 20px, 40px);
  font-weight: 500;
  line-height: 1.1;
  letter-spacing: var(--at-track);
  text-wrap: balance;
  color: var(--fg);
}
#interlude .il-sub {
  max-width: 30em;
  margin: 0;
  font-size: 18px;
  font-weight: 500;
  line-height: 1.3;
  letter-spacing: var(--at-track);
  text-wrap: balance;
  color: var(--fg-2);
}

/* the three modes: large chips with the ledger's dot */
#interlude .il-modes {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
  margin: 0;
  padding: 0;
  list-style: none;
}
#interlude .il-mode {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  height: 56px;
  padding: 0 24px 0 20px;
  border-radius: var(--r-md);
  background: var(--st-bg);
  box-shadow: inset 0 0 0 1px var(--st-line);
  font-size: 18px;
  font-weight: 500;
  line-height: 24px;
  letter-spacing: var(--at-track);
  color: var(--st-fg);
}
#interlude .il-mode::before {
  content: "";
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--st);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--st) 22%, transparent);
}

#interlude .il-ctas {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
}

/* ── the one motion: the chips come in one after another, once ────────── */
@keyframes il-in {
  from {
    opacity: 0;
    transform: translateY(8px);
  }
}
.at-play #interlude .il-mode {
  animation: il-in var(--pic-step) var(--pic-ease) both;
  animation-play-state: var(--pic-run);
}
.at-play #interlude .il-mode:nth-child(2) {
  animation-delay: 140ms;
}
.at-play #interlude .il-mode:nth-child(3) {
  animation-delay: 280ms;
}

@media (max-width: 900px) {
  #interlude .il-body {
    gap: 32px;
    padding-block: 72px 80px;
  }
}
/* a phone: smaller chips, two to a row */
@media (max-width: 560px) {
  #interlude .il-body {
    gap: 28px;
    padding-block: 64px 72px;
  }
  #interlude .il-modes {
    gap: 8px;
  }
  #interlude .il-mode {
    gap: 10px;
    height: 40px;
    padding: 0 16px 0 14px;
    font-size: 15px;
    line-height: 20px;
  }
  #interlude .il-mode::before {
    width: 8px;
    height: 8px;
  }
}

/* src/skins/attio.y-effects.css */
/* Skin "attio", effects part: three sections that read as their own kind of
   block, so the page is not three chapters built the same way. The owner:
   "mancano sezioni diverse tipo attio, sembra tutto uguale ... background,
   effetti, non so altro, vedi tu". Loaded after attio.open.css and
   attio.team.css and before attio.z-polish.css, so a rule that has to beat
   z-polish carries the chapter's [data-chapter] in its selector.

   - the dark chapter opens on a tall band with its title centred over a
     thin luminous arc, a horizon seen from orbit, as the reference opens its
     dark block: the line runs warm to white to cool, fine ticks rise from it
     and fade, a soft glow lies under it
   - agencies: the workspace card on a diagonal hairline hatch, not on dots
   The arc was retired once with the audit's other borrowed ornaments
   (research/attio-home-audit.md §4 item 6) and restored by the owner's
   choice on 25 November 2026: of the arc against a flat band he said
   "questa è molto meglio". The ruler over getting started stays retired.
   Theme variables only; no literal colour. */

/* ═════════════════════════════════════════════════════════════════════════
   1. The opener of the dark chapter
   The arc is the top of a wide ellipse whose lower part runs off the opener.
   Four layers, back to front:
     #agents::before         the halo: the same ellipse filled with the
                             spectrum and blurred, only its fringe above the
                             line shows
     #agents::after          the ticks, tinted by the spectrum, rising from
                             the line and fading out
     .chapter__in::before    the line: a 1px spectrum border, the inside
                             filled with the ground and a soft glow under it
     .chapter__head          the title
   ═════════════════════════════════════════════════════════════════════════ */
.at-chapter[data-chapter="agents"] {
  /* the ellipse: its width, height and the distance of its top (the apex of
     the arc) from the top of the opener */
  --arc-w: 2600px;
  --arc-h: 1200px;
  --arc-top: 318px;
  --arc-open: 500px;
  /* the line's colour, laid out across the ellipse's width: warm on the
     left, near-white at the apex, cool on the right, gone at both ends */
  --arc-spectrum: linear-gradient(90deg,
      transparent 22%,
      color-mix(in srgb, var(--at-h-orange) 70%, transparent) 29%,
      color-mix(in srgb, var(--at-h-orange) 55%, var(--fg)) 39%,
      var(--fg) 50%,
      color-mix(in srgb, var(--at-h-blue) 55%, var(--fg)) 59%,
      var(--at-h-blue) 66%,
      color-mix(in srgb, var(--at-h-violet) 80%, transparent) 72%,
      transparent 79%);
}

.at-chapter[data-chapter="agents"] #agents {
  position: relative;
  isolation: isolate;
  overflow: clip;
}
.at-chapter[data-chapter="agents"] #agents .chapter__in {
  display: grid;
  place-items: center;
  min-height: var(--arc-open);
  /* the title sits above the apex, in the dark part of the band */
  padding: 64px var(--pad) calc(var(--arc-open) - var(--arc-top) + 72px);
  text-align: center;
}
.at-chapter[data-chapter="agents"] #agents .chapter__head {
  position: relative;
  z-index: 3;
  justify-items: center;
  text-align: center;
}

/* the three ellipse layers share one box */
.at-chapter[data-chapter="agents"] #agents::before,
.at-chapter[data-chapter="agents"] #agents .chapter__in::before {
  content: "";
  position: absolute;
  top: var(--arc-top);
  left: 50%;
  width: var(--arc-w);
  height: var(--arc-h);
  margin-left: calc(var(--arc-w) / -2);
  border-radius: 50%;
  pointer-events: none;
}

/* the halo: light leaking above the horizon */
.at-chapter[data-chapter="agents"] #agents::before {
  z-index: 0;
  background: var(--arc-spectrum);
  filter: blur(28px);
  opacity: 0.42;
}

/* the line, and the dark inside the ellipse with a glow under its edge */
.at-chapter[data-chapter="agents"] #agents .chapter__in::before {
  z-index: 2;
  border: 1px solid transparent;
  background:
    radial-gradient(30% 10% at 50% 0%, color-mix(in srgb, var(--at-h-blue) 13%, transparent), transparent) padding-box,
    linear-gradient(var(--bg), var(--bg)) padding-box,
    var(--arc-spectrum) border-box;
  box-shadow: inset 0 18px 36px -28px color-mix(in srgb, var(--fg) 20%, transparent);
}

/* the ticks: 1px every 8px, in the line's own colours, standing on the arc
   and fading out above it and towards the sides. The inside of the ellipse
   is covered by the line's layer, so only what rises above it shows. */
.at-chapter[data-chapter="agents"] #agents::after {
  content: "";
  position: absolute;
  z-index: 1;
  inset: 0;
  pointer-events: none;
  background: var(--arc-spectrum) center top / var(--arc-w) 100% no-repeat;
  opacity: 0.45;
  -webkit-mask-image:
    repeating-linear-gradient(90deg, #000 0 1px, transparent 1px 8px),
    radial-gradient(calc(var(--arc-w) / 2) calc(var(--arc-h) / 2) at 50% calc(var(--arc-top) + var(--arc-h) / 2),
      #000 99%, color-mix(in srgb, #000 35%, transparent) 104%, transparent 116%);
  mask-image:
    repeating-linear-gradient(90deg, #000 0 1px, transparent 1px 8px),
    radial-gradient(calc(var(--arc-w) / 2) calc(var(--arc-h) / 2) at 50% calc(var(--arc-top) + var(--arc-h) / 2),
      #000 99%, color-mix(in srgb, #000 35%, transparent) 104%, transparent 116%);
  -webkit-mask-composite: source-in;
  mask-composite: intersect;
}
/* (#000 in the masks above is the mask's alpha, not a colour on screen) */

/* one calm motion: the halo breathes. The static frame is the one above. */
@media (prefers-reduced-motion: no-preference) {
  .at-chapter[data-chapter="agents"] #agents::before {
    animation: at-arc-breathe 7s ease-in-out infinite alternate;
  }
}
@keyframes at-arc-breathe {
  from { opacity: 0.32; }
  to { opacity: 0.55; }
}

/* the block below the opener starts on a hairline across the frame */
.at-chapter[data-chapter="agents"] #agents {
  border-bottom: 1px solid var(--line);
}

@media (max-width: 900px) {
  .at-chapter[data-chapter="agents"] {
    --arc-w: 1300px;
    --arc-h: 640px;
    --arc-top: 226px;
    --arc-open: 340px;
    /* a narrow screen shows only the middle of the ellipse: the spectrum
       is drawn closer in, so warm and cool still reach its two sides */
    --arc-spectrum: linear-gradient(90deg,
        transparent 30%,
        color-mix(in srgb, var(--at-h-orange) 80%, transparent) 36%,
        color-mix(in srgb, var(--at-h-orange) 55%, var(--fg)) 43%,
        var(--fg) 50%,
        color-mix(in srgb, var(--at-h-blue) 55%, var(--fg)) 56%,
        var(--at-h-blue) 61%,
        color-mix(in srgb, var(--at-h-violet) 80%, transparent) 66%,
        transparent 71%);
  }
  .at-chapter[data-chapter="agents"] #agents .chapter__in {
    padding-top: 48px;
    padding-bottom: calc(var(--arc-open) - var(--arc-top) + 52px);
  }
  .at-chapter[data-chapter="agents"] #agents::before {
    filter: blur(18px);
  }
}

/* ═════════════════════════════════════════════════════════════════════════
   2. Agencies: the card on a diagonal hairline hatch
   1px lines at 45 degrees, 8px apart, in the band's hairline colour, fading
   out towards the text column. Replaces the dotted ground of attio.team.css
   and the base's vertical ticks on the stage's ::before.
   ═════════════════════════════════════════════════════════════════════════ */
#agencies .brand-stage {
  isolation: isolate;
  background-image: none;
}
#agencies .brand-stage::before {
  display: block;
  z-index: -1;
  inset: 0;
  background: repeating-linear-gradient(45deg, var(--line) 0 1px, transparent 1px 8px);
  -webkit-mask-image: linear-gradient(to left, #000 35%, transparent);
  mask-image: linear-gradient(to left, #000 35%, transparent);
}
/* stacked: the text sits above the picture, so the hatch fades upwards */
@media (max-width: 900px) {
  #agencies .brand-stage::before {
    -webkit-mask-image: linear-gradient(to top, #000 45%, transparent);
    mask-image: linear-gradient(to top, #000 45%, transparent);
  }
}

/* under 1100px the chapter's list is a row under the opener: give it air
   below the opener's hairline */
@media (max-width: 1099px) {
  .at-chapter[data-chapter="agents"] .at-chapter__side {
    padding-top: 24px;
  }
}

/* src/skins/attio.z-polish.css */
/* Skin "attio", last part: details seen on more of the reference's pages
   (/platform/custom-agents, /platform/data, the home page up close) that
   cross several sections. Loaded after every other part, so a rule here wins
   over a section's own rule of the same weight.

   - numbered caption cells: a small index in the corner, the title and its
     line at the foot of a taller cell
   - the dashboard on a pale wash that deepens downwards, in place of a
     flat plate
   - the closing band with the same fine ticks, fading at its edges */

:root {
  --at-tick: 8px;
}

/* ── numbered caption cells ──────────────────────────────────────────────
   On the reference a caption cell is taller than its text: an index in
   brackets at the top, then air, then the title and its line at the foot.
   The index is drawn from a counter, so the markup stays as it is. */
:is(#inbox, #crm, #workflows) .cols--3 {
  counter-reset: at-cap;
}
:is(#inbox, #crm, #workflows) .cols--3 > .cell.feat {
  counter-increment: at-cap;
  grid-template-rows: minmax(56px, 1fr) auto auto;
  align-content: stretch;
  min-height: 168px;
  padding-block: 24px 28px;
}
:is(#inbox, #crm, #workflows) .cols--3 > .cell.feat::before {
  content: "[" counter(at-cap, decimal-leading-zero) "]";
  align-self: start;
  font: 500 12px/16px var(--font-body);
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.02em;
  color: var(--fg-3);
}
/* room for two lines under every title, so the three titles stay level
   when one line wraps and the others do not */
@media (min-width: 901px) {
  :is(#inbox, #crm, #workflows) .cols--3 > .cell.feat {
    padding-bottom: 16px;
  }
  :is(#inbox, #crm, #workflows) .cols--3 > .cell.feat > .feat__text {
    min-height: 44px;
  }
}
@media (max-width: 900px) {
  :is(#inbox, #crm, #workflows) .cols--3 > .cell.feat,
  :is(#inbox, #crm, #workflows) .cols--3 > .cell.feat:last-child {
    grid-template-rows: auto auto auto;
    row-gap: 4px;
    min-height: 0;
    padding-block: 20px 24px;
  }
  :is(#inbox, #crm, #workflows) .cols--3 > .cell.feat::before {
    margin-bottom: 8px;
  }
}

/* ── the tick strip that opened each chapter block: retired ───────────────
   It was the reference's ornament (research/attio-home-audit.md §4 item 7);
   the ticks stay on the closing band only, below. */

/* ── things that move on their own can be stopped (WCAG 2.2.2) ───────────
   The wall of connections drifts only while it is on screen (attio.js marks
   it data-play="loop", attio.motion.js sets --pic-run). It stands still
   while the pointer is over the wall or focus is in the section, and for good
   once the visitor presses the button under it (#connected.is-stopped).
   Without JavaScript it stands still. */
#connected .cn-track {
  animation-play-state: var(--pic-run, paused);
}
#connected .cn-wall:hover,
#connected:focus-within .cn-wall,
#connected.is-stopped .cn-wall {
  --pic-run: paused;
}
/* the button: a quiet round control in the wall's own foot */
#connected .cn-stop {
  position: relative;
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  margin: -100px auto 64px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: var(--surface);
  box-shadow: inset 0 0 0 1px var(--line-2);
  color: var(--fg-2);
  cursor: pointer;
}
#connected .cn-stop:hover {
  color: var(--fg);
}
/* pause: two bars; when stopped, play: a triangle */
#connected .cn-stop > i {
  width: 10px;
  height: 10px;
  background: linear-gradient(to right, currentColor 0 3px, transparent 3px 7px, currentColor 7px 10px);
}
#connected .cn-stop[aria-pressed="true"] > i {
  background: currentColor;
  clip-path: polygon(15% 0, 100% 50%, 15% 100%);
}

/* ── the row lists: every line readable when the rows do not advance ─────
   The customers' row list hides the lines of rows 2 and 3 at 900px and up
   (attio.customers.css). That is right only while the rows advance on their
   own (.is-auto): with reduced motion or without JavaScript every line is
   shown, as the rows' aria-expanded="true" says. */
#customer-agent .pillar:not(.is-auto) .pillar__item:not(.is-active) .pillar__text {
  display: block;
}
/* On a phone the agent's rows show only the active row's line while they
   advance, and the lines are one or two lines long: the page jumped 22px at
   each step. The shown line keeps room for two lines, so the list keeps its
   height. */
@media (max-width: 900px) {
  #agent .pillar.is-auto .pillar__item.is-active .pillar__text {
    min-height: calc(2 * 22px + 20px);
  }
}

/* ── closing band: fine ticks that fade into the dark at top and bottom ── */
#cta {
  background-image:
    linear-gradient(to bottom, var(--at-dark), transparent 35%, transparent 65%, var(--at-dark)),
    repeating-linear-gradient(90deg, var(--ac-rule-dark) 0 1px, transparent 1px var(--at-tick));
}

/* ── a framed pause where two white blocks meet ──────────────────────────
   Agencies, getting started and the questions are three white bands in a
   row. Between them, an empty band of the frame (its two side rules and a
   hairline) gives the eye a rest, as the reference does: research/
   attio-home-audit.md §6 item 13. */
:is(#start, #faq)::before {
  content: "";
  display: block;
  max-width: var(--frame);
  height: 96px;
  margin-inline: auto;
  border-inline: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
@media (max-width: 900px) {
  :is(#start, #faq)::before {
    height: 64px;
  }
}
