/* Tokens: white ground, midnight field, iris as the one colour for action and highlight.
   Layout: one idea per band. Every page opens with the benefit and ends with the same ask. */
@font-face {
  font-family: "Work Sans";
  src: url("../fonts/WorkSans-latin.woff2") format("woff2");
  font-weight: 300 600;
  font-display: swap;
  unicode-range:
    U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC,
    U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212,
    U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Work Sans";
  src: url("../fonts/WorkSans-latin-ext.woff2") format("woff2");
  font-weight: 300 600;
  font-display: swap;
  unicode-range:
    U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304,
    U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB,
    U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

:root {
  --bg: #ffffff;
  --surface: #f1f1f8;
  --surface-2: #e5e5f1;
  --ink: #12122e;
  --muted: #4d4f6b;
  --line: #d9d9ea;
  /* The field: the header and the first screen. */
  --accent: #1b1b4b;
  --accent-deep: #14143a;
  --on-accent: #ffffff;
  /* The action on the field. */
  --cta-bg: #b9a7ff;
  --cta-ink: #14143a;
  --cta-hover: #a892ff;
  /* Dark bands and their one highlight. */
  --dark: #0e0e2a;
  --dark-2: #1f1f47;
  --dark-ink: #ffffff;
  --dark-muted: #b8b8d6;
  --dark-line: #2c2c5c;
  --pop: #b9a7ff;
  --pop-deep: #a892ff;
  --on-pop: #0e0e2a;
  --good: #0f6b45;
  --good-bg: #dff1e8;
  --gutter: clamp(20px, 4vw, 56px);
  --gap-section: clamp(64px, 8vw, 128px);
  --gap-split: clamp(32px, 6vw, 96px);
  --step-small: 0.875rem;
  --step-body: clamp(1.0625rem, 1rem + 0.25vw, 1.1875rem);
  --step-lead: clamp(1.25rem, 1.1rem + 0.7vw, 1.625rem);
  --step-head: clamp(2rem, 1.3rem + 3vw, 3.75rem);
  --step-hero: clamp(2.75rem, 6.2vw, 5.75rem);
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
}

* {
  box-sizing: border-box;
}
[hidden] {
  display: none !important;
}
html {
  scroll-behavior: smooth;
  scrollbar-color: var(--ink) var(--surface);
  -webkit-text-size-adjust: 100%;
}
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font:
    400 var(--step-body) / 1.55 "Work Sans",
    "Helvetica Neue",
    Arial,
    sans-serif;
  caret-color: var(--ink);
  overflow-x: hidden;
}
::selection {
  background: var(--pop);
  color: var(--on-pop);
}
h1,
h2,
h3,
p,
ol,
ul,
dl,
dd,
figure,
blockquote {
  margin: 0;
  padding: 0;
}
ol,
ul {
  list-style: none;
}
h1,
h2 {
  font-weight: 300;
  letter-spacing: -0.035em;
  line-height: 1.04;
  text-wrap: balance;
}
h1 {
  font-size: var(--step-hero);
  line-height: 1;
}
h2 {
  font-size: var(--step-head);
}
a {
  color: inherit;
  text-underline-offset: 3px;
}
:focus-visible {
  outline: 2px solid var(--ink);
  outline-offset: 3px;
}
html {
  scroll-padding-top: 80px;
}
.frame {
  max-width: 1400px;
  margin-left: auto;
  margin-right: auto;
  padding-left: var(--gutter);
  padding-right: var(--gutter);
}
/* House rule: running text is justified at every width, with hyphenation. The short notes
   under scenes, figures and prototypes are running text too. Text that stands for something
   shown in a product (a review, a reply, a line of a call) and label and value rows keep
   their own alignment. */
.prose,
.reason-fact,
.why-note,
.est-note,
.player-note,
.used-state,
.case-note,
.rep-aside,
.fix-source,
.form-note,
.cases-head .proof-text p {
  text-align: justify;
  hyphens: auto;
  -webkit-hyphens: auto;
  hyphenate-limit-chars: 6 3 2;
}
.skip {
  position: absolute;
  left: -999px;
  top: 8px;
  z-index: 20;
  padding: 10px 14px;
  background: var(--cta-bg);
  color: var(--cta-ink);
}
.skip:focus-visible {
  outline-color: var(--on-accent);
}
.skip:focus {
  left: 12px;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 20px;
  border: 0;
  background: var(--ink);
  color: var(--dark-ink);
  font-family: inherit;
  font-size: 1rem;
  font-weight: 500;
  line-height: 1;
  text-decoration: none;
  white-space: nowrap;
  cursor: pointer;
  transition:
    background-color 0.18s ease,
    color 0.18s ease,
    transform 0.12s ease;
}
.btn:hover {
  background: var(--dark-2);
}
.btn:active {
  transform: translateY(1px);
}
.btn-lg {
  min-height: 56px;
  padding: 0 28px;
  font-size: 1.0625rem;
}
.btn-line {
  background: transparent;
  color: var(--ink);
  box-shadow: inset 0 0 0 1px var(--ink);
}
.btn-line:hover {
  background: color-mix(in srgb, currentColor 12%, transparent);
}
.asks-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}
/* On the narrowest phones a long label wraps inside its button instead of running past the
   edge; a label on one line looks the same as before. */
@media (max-width: 360px) {
  .asks-row .btn {
    max-width: 100%;
    padding-block: 10px;
    line-height: 1.25;
    text-align: center;
    white-space: normal;
  }
}

/* Header: stays in reach, keeps the one action visible. */
.top {
  position: sticky;
  top: env(safe-area-inset-top, 0px);
  z-index: 10;
  background: var(--accent);
  color: var(--on-accent);
}
.bar {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 24px;
  padding-top: 10px;
  padding-bottom: 10px;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 44px;
  justify-self: start;
  font-size: 1.25rem;
  font-weight: 500;
  letter-spacing: -0.02em;
  text-decoration: none;
}
.mark {
  width: 24px;
  height: 24px;
  fill: var(--on-accent);
}
.mark-line {
  fill: var(--accent);
}
.nav {
  display: flex;
  gap: clamp(16px, 2.2vw, 32px);
}
.nav a {
  padding: 10px 0;
  text-decoration: none;
  white-space: nowrap;
}
.nav a:hover,
.nav a[aria-current] {
  text-decoration: underline;
  text-decoration-thickness: 2px;
  text-underline-offset: 6px;
}
.bar .btn {
  justify-self: end;
}
.menu {
  display: none;
  min-height: 44px;
  padding: 0 4px;
  border: 0;
  background: transparent;
  color: inherit;
  font: inherit;
  font-weight: 500;
  cursor: pointer;
}
/* Every product and service in one panel that opens under the header, grouped as on the home
   page: a white board on the field, like the board of doors on the first screen. */
.bar {
  position: relative;
}
.nav {
  align-items: center;
}
/* The group reaches down to the edge of the header, so the pointer does not leave it on the
   way to the panel. */
.nav-group {
  display: flex;
  margin-bottom: -10px;
  padding-bottom: 10px;
}
.nav-toggle {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  padding: 0;
  border: 0;
  background: transparent;
  color: inherit;
  font: inherit;
  white-space: nowrap;
  cursor: pointer;
}
.nav-caret {
  width: 12px;
  height: 12px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.5;
  transition: transform 0.2s var(--ease);
}
.nav-toggle[aria-expanded="true"] .nav-caret {
  transform: rotate(180deg);
}
.nav-toggle:hover,
.nav-toggle[aria-expanded="true"],
.nav-group:has(a[aria-current]) .nav-toggle {
  text-decoration: underline;
  text-decoration-thickness: 2px;
  text-underline-offset: 6px;
}
.nav-panel {
  display: none;
  position: absolute;
  top: 100%;
  left: var(--gutter);
  right: var(--gutter);
  grid-template-columns: repeat(3, minmax(0, 1fr));
  background: var(--bg);
  color: var(--ink);
  border: 1px solid var(--ink);
  box-shadow: 0 28px 64px -32px rgb(14 14 42 / 0.55);
}
.nav-group.is-open .nav-panel {
  display: grid;
  animation: panel-drop 0.22s var(--ease) both;
}
/* Without JavaScript the panel opens while the pointer or the keyboard focus is on the group. */
@media (min-width: 761px) {
  html:not(.js) .nav-group:hover .nav-panel,
  html:not(.js) .nav-group:focus-within .nav-panel {
    display: grid;
  }
}
@keyframes panel-drop {
  from {
    opacity: 0;
    transform: translateY(-6px);
  }
}
/* The three headings stand on one row of the panel, so the lines under them meet. */
.nav-col {
  display: grid;
  grid-row: span 2;
  grid-template-rows: subgrid;
}
.nav-col ul {
  align-self: start;
}
.nav-col + .nav-col {
  border-left: 1px solid var(--line);
}
.nav-for {
  padding: 16px 24px;
  border-bottom: 1px solid var(--line);
  font-size: 0.9375rem;
  font-weight: 500;
  line-height: 1.3;
}
.nav .nav-panel li + li {
  border-top: 1px solid var(--line);
}
.nav .nav-panel a {
  display: grid;
  gap: 3px;
  padding: 14px 24px;
  white-space: normal;
  transition: background-color 0.15s ease;
}
.nav .nav-panel a:hover,
.nav .nav-panel a[aria-current] {
  background: var(--surface);
  text-decoration: none;
}
.nav-panel strong {
  font-size: 1.25rem;
  font-weight: 400;
  letter-spacing: -0.015em;
  line-height: 1.2;
}
.nav-panel a[aria-current] strong {
  font-weight: 500;
}
.nav-panel span {
  color: var(--muted);
  font-size: 0.875rem;
  line-height: 1.4;
}
.top .nav-panel :focus-visible {
  outline-color: var(--ink);
  outline-offset: -4px;
}

/* First screen: the promise on the left, the doors on the right. */
.hero {
  background: var(--accent);
  color: var(--on-accent);
  padding-top: clamp(28px, 4vw, 64px);
  padding-bottom: clamp(40px, 5vw, 80px);
}
.hero-in {
  display: grid;
  grid-template-columns: minmax(0, 6fr) minmax(0, 6fr);
  gap: var(--gap-split);
  align-items: center;
}
.hero-text {
  display: grid;
  gap: clamp(20px, 2.4vw, 32px);
  justify-items: start;
}
.lead {
  max-width: 34ch;
  font-size: clamp(1.1875rem, 1.05rem + 0.6vw, 1.5rem);
  line-height: 1.36;
}
.ln {
  display: block;
  overflow: hidden;
  padding-bottom: 0.12em;
  margin-bottom: -0.12em;
}
.ln > span {
  display: block;
}
.js .masked .ln > span {
  animation: rise 0.9s var(--ease) both;
}
.js .masked .ln:nth-child(2) > span {
  animation-delay: 0.11s;
}
@keyframes rise {
  from {
    transform: translateY(105%);
  }
  to {
    transform: none;
  }
}

/* A product page opens the same way, with the benefit as its heading. */
.hero.is-product .hero-in {
  grid-template-columns: minmax(0, 1fr);
  gap: clamp(22px, 2.6vw, 34px);
}
.hero.is-product h1 {
  font-size: clamp(2.5rem, 5.4vw, 5rem);
}
.hero-side {
  display: grid;
  gap: 24px;
  justify-items: start;
}
.hero.is-product .lead {
  max-width: 56ch;
}
.crumbs {
  display: flex;
  gap: 8px;
  align-items: center;
  margin-bottom: clamp(8px, 1.6vw, 24px);
  font-size: 0.9375rem;
}
.crumbs a {
  display: inline-flex;
  align-items: center;
  min-width: 44px;
  min-height: 44px;
}
.stub-note {
  padding: 12px 16px;
  background: var(--dark);
  color: var(--dark-ink);
}

/* Privacy and the 404 page: plain text on the same frame, one heading and its text per row. */
.legal-updated {
  font-size: 0.8125rem;
  color: var(--dark-muted);
}
.legal-part + .legal-part {
  padding-top: clamp(28px, 4vw, 52px);
  border-top: 1px solid var(--line);
}
.legal-part h2 {
  font-size: clamp(1.25rem, 1.1rem + 0.7vw, 1.625rem);
  font-weight: 500;
  line-height: 1.2;
  letter-spacing: -0.01em;
}
.legal-part .prose {
  max-width: 62ch;
}
.legal-facts {
  max-width: 62ch;
  margin: 0;
  border-top: 1px solid var(--line);
}
.legal-facts div {
  display: grid;
  grid-template-columns: minmax(0, 11rem) minmax(0, 1fr);
  gap: 4px 16px;
  padding: 10px 0;
  border-bottom: 1px solid var(--line);
}
.legal-facts div:last-child {
  border-bottom: 0;
}
.legal-facts dt {
  color: var(--muted);
}
.legal-facts dd {
  margin: 0;
}
@media (max-width: 560px) {
  .legal-facts div {
    grid-template-columns: minmax(0, 1fr);
  }
}
.legal-link a {
  color: var(--ink);
  text-underline-offset: 4px;
}

/* Doors: one product per row, its benefit in one line. */
.board {
  background: var(--bg);
  color: var(--ink);
  border: 1px solid var(--ink);
}
.board-title {
  padding: 16px 24px;
  border-bottom: 1px solid var(--line);
  font-size: 1.0625rem;
  font-weight: 500;
  letter-spacing: 0;
  line-height: 1.3;
}
.doors li + li {
  border-top: 1px solid var(--line);
}
.door {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 6px 20px;
  align-items: center;
  padding: 17px 24px;
  text-decoration: none;
  transition: background-color 0.15s ease;
}
.door:hover {
  background: var(--surface);
}
.door:focus-visible {
  outline-offset: -4px;
}
.door-name {
  font-size: clamp(1.5rem, 1.1rem + 1.5vw, 2.25rem);
  font-weight: 300;
  letter-spacing: -0.03em;
  line-height: 1.1;
}
.door-benefit {
  grid-column: 1;
  max-width: 44ch;
}
.door-go {
  grid-column: 2;
  grid-row: 1 / span 2;
  display: flex;
  align-items: center;
  gap: 14px;
}
.door-state {
  font-size: 0.9375rem;
  color: var(--muted);
  white-space: nowrap;
}
.door-state.is-proven {
  color: var(--ink);
  font-weight: 500;
}
.arrow {
  width: 26px;
  height: 26px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.5;
  transition: transform 0.2s var(--ease);
}
.door:hover .arrow {
  transform: translateX(4px);
}

/* Bands and sections */
.band {
  background: var(--dark);
  color: var(--dark-ink);
  padding-top: var(--gap-section);
  padding-bottom: var(--gap-section);
}
.band :focus-visible,
.contact :focus-visible {
  outline-color: var(--pop);
}
.sec {
  padding-top: var(--gap-section);
  padding-bottom: var(--gap-section);
}
.sec.is-grey {
  background: var(--surface);
}
.sec > .frame {
  display: grid;
  gap: clamp(28px, 4vw, 52px);
}
.sec-head {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  gap: 20px var(--gap-split);
  align-items: end;
}
.sec > .frame.split,
.split {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  gap: clamp(28px, 4vw, 52px) var(--gap-split);
  align-items: start;
}
.split-text {
  display: grid;
  gap: 20px;
}
.aside {
  color: var(--muted);
}

/* Proof: what already runs, in plain facts. */
.proof {
  display: grid;
  grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
  gap: clamp(28px, 4vw, 52px) var(--gap-split);
  align-items: center;
}
.proof-text {
  display: grid;
  gap: 20px;
}
.proof-text .prose {
  max-width: 52ch;
  color: var(--dark-muted);
}
.figure dt {
  font-size: clamp(5rem, 3rem + 10vw, 11rem);
  font-weight: 300;
  letter-spacing: -0.05em;
  line-height: 0.9;
  font-variant-numeric: tabular-nums;
  color: var(--pop);
}
.figure dd {
  margin-top: 12px;
  font-size: var(--step-lead);
}
.facts-dl {
  display: grid;
  gap: 0;
}
.facts-dl div {
  display: grid;
  gap: 4px;
  padding: 18px 0;
  border-top: 1px solid var(--dark-line);
}
.facts-dl dt {
  color: var(--pop);
  font-weight: 500;
}
.facts-dl dd {
  font-size: var(--step-lead);
  line-height: 1.3;
}

/* Steps: a real sequence, so the numbers carry information. */
.steps {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(24px, 4vw, 64px);
  counter-reset: step;
}
.steps li {
  display: grid;
  gap: 10px;
  align-content: start;
  padding-top: 18px;
  border-top: 1px solid var(--ink);
  counter-increment: step;
}
.steps li::before {
  content: counter(step);
  font-size: clamp(2.5rem, 1.6rem + 3vw, 4rem);
  font-weight: 300;
  letter-spacing: -0.04em;
  line-height: 1;
  font-variant-numeric: tabular-nums;
}
.steps strong {
  font-size: var(--step-lead);
  font-weight: 500;
  letter-spacing: -0.01em;
}

/* What a product works with: one slim line. */
.works,
.together {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 8px clamp(20px, 3vw, 40px);
}
.works p,
.together p {
  color: var(--muted);
}
@media (max-width: 1120px) and (min-width: 761px) {
  .works p {
    flex-basis: 100%;
  }
}
.works ul,
.together ul {
  display: contents;
}
.works li,
.together li {
  font-size: var(--step-lead);
  font-weight: 500;
  letter-spacing: -0.01em;
}
.together {
  padding-bottom: var(--gap-section);
}
.together a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
}

/* Questions */
.faq details {
  border-top: 1px solid var(--line);
}
.faq details:last-child {
  border-bottom: 1px solid var(--line);
}
.faq summary {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 16px;
  gap: 16px;
  align-items: center;
  min-height: 68px;
  padding: 14px 0;
  font-size: var(--step-lead);
  letter-spacing: -0.01em;
  line-height: 1.25;
  cursor: pointer;
  list-style: none;
}
.faq summary::-webkit-details-marker {
  display: none;
}
.faq summary::after {
  content: "";
  width: 14px;
  height: 14px;
  background:
    linear-gradient(var(--ink), var(--ink)) center / 100% 2px no-repeat,
    linear-gradient(var(--ink), var(--ink)) center / 2px 100% no-repeat;
}
.faq details[open] summary::after {
  background: linear-gradient(var(--ink), var(--ink)) center / 100% 2px
    no-repeat;
}
.faq p {
  max-width: 62ch;
  padding-bottom: 24px;
}

/* Demo: one working screen per product page. */
[data-ui] {
  font-size: 0.9375rem;
  line-height: 1.45;
}
.d-tools {
  display: flex;
  align-items: center;
  gap: 12px;
}
.d-side-title {
  margin-bottom: 8px;
  font-weight: 500;
}
.c-sample {
  padding: 4px 10px;
  background: var(--ink);
  color: var(--dark-ink);
  font-size: 0.8125rem;
  font-weight: 500;
}
.c-btn {
  min-height: 44px;
  padding: 0 14px;
  border: 1px solid var(--ink);
  background: var(--bg);
  color: var(--ink);
  font-family: inherit;
  font-size: 0.9375rem;
  font-weight: 500;
  line-height: 1;
  cursor: pointer;
  transition: background-color 0.15s ease;
}
.c-btn:hover {
  background: var(--surface);
}
.c-small {
  min-height: 34px;
  padding: 0 10px;
  font-size: 0.8125rem;
}
.p-time {
  color: var(--muted);
  font-variant-numeric: tabular-nums;
}
.wave {
  display: block;
  width: 100%;
  height: 44px;
}
.talk {
  display: grid;
  gap: 10px;
}
.talk li {
  display: grid;
  grid-template-columns: 76px minmax(0, 1fr);
  gap: 8px;
}
.talk b {
  padding-top: 7px;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--muted);
}
.talk span {
  padding: 6px 0;
  font-size: 1.0625rem;
}
.talk .us span {
  padding: 6px 10px;
  background: var(--surface);
}
.result {
  display: grid;
  gap: 1px;
  padding: 10px 12px;
  background: var(--good-bg);
  color: var(--good);
}
.js .line {
  transition:
    opacity 0.3s ease,
    transform 0.4s var(--ease);
}
.js .line.is-waiting {
  opacity: 0;
  transform: translateY(6px);
}
.facts div {
  display: grid;
  padding: 8px 0;
  border-bottom: 1px solid var(--line);
}
.facts div:last-child {
  border-bottom: 0;
}
.facts dt {
  font-size: 0.8125rem;
  color: var(--muted);
}
.facts dd {
  font-weight: 500;
}

/* Team: monograms until there are photographs. */
.people {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 4px;
}
.people li {
  display: grid;
  grid-template-columns: 72px minmax(0, 1fr);
  gap: clamp(16px, 2vw, 24px);
  align-items: start;
  padding: 20px 22px 22px 20px;
  background: var(--bg);
}
.photo {
  display: grid;
  place-items: center;
  aspect-ratio: 4 / 5;
  background: var(--dark);
  color: var(--pop);
  font-size: 1.75rem;
  font-weight: 300;
  letter-spacing: -0.03em;
}
.who {
  display: grid;
  gap: 2px;
}
.who strong {
  font-size: var(--step-lead);
  font-weight: 500;
  letter-spacing: -0.01em;
  line-height: 1.2;
}
.who span {
  color: var(--muted);
}
.who p {
  margin-top: 8px;
}

/* Contact: the same ask closes every page. */
.contact {
  background: var(--dark);
  color: var(--dark-ink);
  padding-top: var(--gap-section);
  padding-bottom: var(--gap-section);
}
.contact-in {
  display: grid;
  grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
  gap: clamp(28px, 4vw, 52px) var(--gap-split);
  align-items: start;
}
.contact-text {
  display: grid;
  gap: 20px;
}
.contact .prose {
  max-width: 46ch;
  color: var(--dark-muted);
}
#demo-form {
  display: grid;
  gap: 8px;
}
#demo-form label {
  margin-top: 10px;
}
#demo-form label:first-child {
  margin-top: 0;
}
#demo-form select,
#demo-form input {
  width: 100%;
  min-height: 56px;
  padding: 0 16px;
  border: 0;
  border-radius: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: inherit;
  font-size: 1.0625rem;
}
#demo-form input::placeholder {
  color: var(--muted);
}
#demo-form input[aria-invalid="true"] {
  box-shadow: inset 0 -5px 0 var(--accent);
}
#demo-form .btn {
  justify-self: start;
  margin-top: 14px;
}
.band .btn,
.contact .btn {
  background: var(--pop);
  color: var(--on-pop);
}
.band .btn:hover,
.contact .btn:hover {
  background: var(--pop-deep);
}
.form-note {
  margin-top: 6px;
  color: var(--dark-muted);
  font-size: var(--step-small);
}
.form-note.is-error {
  color: var(--pop);
  font-weight: 500;
}

/* Footer */
/* The tagline keeps a readable width; the links wrap beside it instead of squeezing it. */
.foot {
  display: grid;
  grid-template-columns: minmax(min(100%, 15rem), 1fr) auto;
  gap: 12px 24px;
  align-items: center;
  padding-top: 28px;
  padding-bottom: 28px;
  font-size: 0.9375rem;
}
.foot nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0 24px;
}
.foot a {
  padding: 12px 0;
}
.legal {
  grid-column: 1 / -1;
  padding-top: 14px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.875rem;
}

/* On the field: the one action, the secondary button and the focus ring take the field's colours. */
.bar .btn,
.hero .btn {
  background: var(--cta-bg);
  color: var(--cta-ink);
}
.bar .btn:hover,
.hero .btn:hover {
  background: var(--cta-hover);
}
.hero .btn-line {
  background: transparent;
  color: var(--on-accent);
  box-shadow: inset 0 0 0 1px var(--on-accent);
}
.hero .btn-line:hover {
  background: color-mix(in srgb, var(--on-accent) 14%, transparent);
}
.top :focus-visible,
.hero :focus-visible {
  outline-color: var(--on-accent);
}
.hero .board :focus-visible {
  outline-color: var(--ink);
}

/* Read by screen readers and search engines, not drawn. */
.sr {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

/* Tabs: one panel at a time. Without JavaScript every panel is shown. */
.js [role="tabpanel"]:not(.is-on) {
  display: none;
}

/* Prototype: the product at work, rising out of the first screen. */
.hero.has-proto {
  padding-bottom: clamp(150px, 17vw, 236px);
}
.proto-wrap {
  position: relative;
  margin-top: calc(-1 * clamp(118px, 13.4vw, 188px));
  padding-bottom: var(--gap-section);
  display: grid;
  gap: clamp(20px, 2.6vw, 32px);
}
.proto-top {
  grid-column: 1 / -1;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 8px 16px;
  min-height: 52px;
  padding: 8px 16px 8px 20px;
  border-bottom: 1px solid var(--line);
}
.proto-pick {
  display: grid;
  align-content: start;
  border-right: 1px solid var(--line);
  background: var(--surface);
}
.pick {
  display: grid;
  align-content: start;
  gap: 2px;
  min-height: 72px;
  padding: 14px 16px 14px 20px;
  border: 0;
  border-bottom: 1px solid var(--line);
  background: transparent;
  color: var(--ink);
  font: inherit;
  text-align: left;
  cursor: pointer;
  transition:
    background-color 0.15s ease,
    color 0.15s ease;
}
.pick:hover {
  background: var(--surface-2);
}
.pick.is-on {
  background: var(--ink);
  color: var(--dark-ink);
}
.pick:focus-visible {
  outline-offset: -4px;
}
.pick.is-on:focus-visible {
  outline-color: var(--pop);
}
.pick-kind {
  font-size: 0.8125rem;
  color: var(--muted);
}
.pick.is-on .pick-kind {
  color: var(--pop);
}
.pick-name {
  font-size: 1.0625rem;
  font-weight: 500;
  line-height: 1.25;
}
.proto-note {
  max-width: 70ch;
  color: var(--muted);
}

/* Player: one button, the voice as a waveform, the time inside the call. */
.player {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: 14px;
  align-items: center;
}
.c-play {
  display: none;
  min-width: 138px;
  background: var(--cta-bg);
  color: var(--cta-ink);
}
.js .c-play {
  display: inline-block;
}
.c-play:hover {
  background: var(--cta-hover);
}
.player-note {
  color: var(--muted);
  font-size: 0.875rem;
}

/* What the agent is doing right now: a real sequence. */
.stages {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 4px;
}
.stages li {
  padding: 7px 10px;
  background: var(--surface);
  color: var(--muted);
  font-size: 0.8125rem;
  font-weight: 500;
  transition:
    background-color 0.25s ease,
    color 0.25s ease;
}
.stages li.is-now {
  background: var(--ink);
  color: var(--dark-ink);
}
.scn {
  display: grid;
  gap: 14px;
}
.result.is-handed {
  background: var(--pop);
  color: var(--on-pop);
}

/* What it used: the booking system, the clinic's information or a person. */
.used {
  display: grid;
  gap: 8px;
}
.js .used:not(.is-on) {
  display: none;
}
.used .d-side-title {
  margin-bottom: 0;
}
.slots {
  display: grid;
  gap: 4px;
  outline: 2px solid transparent;
  outline-offset: 3px;
  transition: outline-color 0.25s ease;
}
.slots.is-reading {
  outline-color: var(--ink);
}
.slots li {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 2px 10px;
  padding: 8px 10px;
  font-size: 0.875rem;
  background: var(--bg);
  font-variant-numeric: tabular-nums;
  transition:
    background-color 0.3s ease,
    color 0.3s ease;
}
/* A long state drops under the time instead of pushing out of a narrow column. */
.slots li span {
  white-space: nowrap;
}
.slots li span:last-child {
  margin-left: auto;
}
.slots li.is-taken {
  color: var(--muted);
}
.slots li.is-booked {
  background: var(--good-bg);
  color: var(--good);
  font-weight: 500;
}
/* How the agent speaks to one caller: the rows take the highlight colour when it adapts. */
.slots.is-adapt li.is-booked {
  background: var(--pop);
  color: var(--on-pop);
}
.used-note {
  font-size: 0.9375rem;
}
.used-state {
  color: var(--muted);
  font-size: 0.8125rem;
}

/* Reviews desk: the review as the customer left it, the reply as the platform drafts it,
   and the two decisions a person can take. */
.rv {
  display: grid;
  gap: 8px;
  padding: 14px 16px 16px;
  border: 1px solid var(--line);
}
.rv-head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 4px 12px;
}
.rv-head strong {
  font-weight: 500;
}
.rv-when {
  margin-left: auto;
  color: var(--muted);
  font-size: 0.8125rem;
}
.stars {
  display: inline-flex;
  gap: 2px;
}
.stars svg {
  width: 16px;
  height: 16px;
  fill: var(--line);
}
.stars svg.on {
  fill: var(--ink);
}
.rv-text,
.draft-text {
  font-size: 1.0625rem;
}
.rv-meaning {
  color: var(--muted);
  font-size: 0.875rem;
}
.draft {
  display: grid;
  gap: 6px;
  padding: 12px 16px 16px;
  background: var(--surface);
  transition:
    background-color 0.35s var(--ease),
    color 0.35s var(--ease),
    opacity 0.3s ease;
}
.js .draft.is-waiting {
  opacity: 0;
}
.draft.is-published {
  background: var(--good-bg);
  color: var(--good);
}
.draft.is-published .rv-meaning {
  color: inherit;
}
.draft-label {
  font-size: 0.8125rem;
  font-weight: 500;
  color: var(--muted);
}
.draft.is-published .draft-label {
  color: inherit;
}
/* The part of the reply not written yet keeps its place, so nothing below it moves. */
.draft-rest {
  visibility: hidden;
}
.draft-edit {
  display: block;
  width: 100%;
  min-height: 9.5em;
  padding: 10px 12px;
  border: 1px solid var(--ink);
  border-radius: 0;
  background: var(--bg);
  color: var(--ink);
  font: inherit;
  font-size: 1.0625rem;
  line-height: 1.45;
  resize: vertical;
}
.draft-edit:focus-visible {
  outline-offset: 0;
}
.desk-actions {
  display: none;
  flex-wrap: wrap;
  gap: 10px;
}
.js .desk-actions {
  display: flex;
}
.c-btn:disabled {
  opacity: 0.45;
  cursor: default;
}
.c-btn:disabled:hover {
  background: var(--bg);
}
.c-play:disabled:hover {
  background: var(--cta-bg);
}
/* Reviews across a network: a drawn map of every location beside the review on the desk. */
.proto.is-network {
  grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
  grid-template-rows: auto 1fr;
  grid-template-areas:
    "top top"
    "map main";
}
.net-map {
  grid-area: map;
  display: grid;
  align-content: start;
  gap: 14px;
  min-width: 0;
  padding: 20px;
  border-right: 1px solid var(--line);
  background: var(--surface);
}
.map {
  position: relative;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  border: 1px solid var(--line);
  background: var(--surface-2);
}
.map-art {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
}
.m-ground {
  fill: var(--surface-2);
}
.m-park {
  fill: var(--good-bg);
}
.m-river {
  fill: none;
  stroke: color-mix(in srgb, var(--pop) 50%, var(--bg));
  stroke-width: 40;
  stroke-linecap: round;
}
.m-street path {
  fill: none;
  stroke: var(--bg);
  stroke-width: 5;
}
.m-rail {
  fill: none;
  stroke: var(--dark-muted);
  stroke-width: 3;
  stroke-dasharray: 10 7;
}
.m-case path {
  fill: none;
  stroke: var(--line);
  stroke-width: 15;
}
.m-road path {
  fill: none;
  stroke: var(--bg);
  stroke-width: 11;
}
.map-pins,
.map-tabs {
  position: absolute;
  inset: 0;
  pointer-events: none;
}
/* A shop on the map: its average rating, where the shop stands. */
.pin {
  position: absolute;
  left: calc(var(--x) * 1%);
  top: calc(var(--y) * 1%);
  transform: translate(-50%, -50%);
  padding: 2px 6px;
  background: var(--ink);
  color: var(--dark-ink);
  box-shadow: 0 0 0 2px var(--bg);
  font-size: 0.75rem;
  font-weight: 500;
  line-height: 1.35;
  font-variant-numeric: tabular-nums;
}
/* A shop with a new review is a control: larger, named, in the highlight colour. */
.pin.is-live {
  display: grid;
  justify-items: center;
  gap: 5px;
  min-width: 44px;
  min-height: 44px;
  padding: 0;
  border: 0;
  background: none;
  box-shadow: none;
  color: var(--ink);
  font-family: inherit;
  cursor: pointer;
  pointer-events: auto;
}
.pin-rate {
  position: relative;
  display: grid;
  place-items: center;
  min-width: 46px;
  height: 32px;
  padding: 0 8px;
  background: var(--pop);
  color: var(--on-pop);
  box-shadow: 0 0 0 2px var(--bg);
  font-size: 0.9375rem;
  font-weight: 600;
  transition:
    background-color 0.35s var(--ease),
    color 0.35s var(--ease);
}
/* A waiting review calls for attention with one slow ring. */
.pin-rate::after {
  content: "";
  position: absolute;
  inset: -2px;
  border: 2px solid var(--pop-deep);
  opacity: 0;
  animation: pin-ring 2.6s var(--ease) infinite;
}
@keyframes pin-ring {
  0% {
    transform: scale(1);
    opacity: 0.9;
  }
  70%,
  100% {
    transform: scale(1.8);
    opacity: 0;
  }
}
.pin.is-done .pin-rate {
  background: var(--ink);
  color: var(--dark-ink);
}
.pin.is-done .pin-rate::after {
  animation: none;
}
.pin-name {
  padding: 1px 6px;
  background: var(--bg);
  font-size: 0.75rem;
  font-weight: 500;
  line-height: 1.35;
  white-space: nowrap;
  transition:
    background-color 0.2s ease,
    color 0.2s ease;
}
.pin.is-live:hover .pin-name,
.pin.is-live[aria-selected="true"] .pin-name {
  background: var(--ink);
  color: var(--dark-ink);
}
.pin.is-live[aria-selected="true"] .pin-rate {
  outline: 2px solid var(--ink);
  outline-offset: 3px;
}
.pin.is-live:focus-visible {
  outline: 0;
}
.pin.is-live:focus-visible .pin-rate {
  outline: 3px solid var(--ink);
  outline-offset: 3px;
}
.map-key {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 18px;
  color: var(--muted);
  font-size: 0.8125rem;
}
.map-key li {
  display: flex;
  align-items: center;
  gap: 6px;
}
.map-key li::before {
  content: "";
  width: 12px;
  height: 12px;
  background: var(--ink);
}
.map-key li.is-wait::before {
  background: var(--pop);
}
.map-key li.is-note::before {
  content: none;
}
/* The network in three figures. They change as the visitor approves. */
.net-counts {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0 16px;
}
.net-counts div {
  display: grid;
  align-content: start;
  gap: 2px;
  padding-top: 10px;
  border-top: 1px solid var(--line);
}
.net-counts dt {
  color: var(--muted);
  font-size: 0.8125rem;
}
.net-counts dd {
  font-size: 1.75rem;
  font-weight: 300;
  letter-spacing: -0.02em;
  line-height: 1.15;
}
.net-counts small {
  color: var(--muted);
  font-size: 0.8125rem;
  font-weight: 400;
  letter-spacing: 0;
  white-space: nowrap;
}
.shop {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 2px 12px;
}
.shop strong {
  font-size: 1.125rem;
  font-weight: 500;
}
.shop span {
  color: var(--muted);
  font-size: 0.875rem;
}
/* What the platform took from the review, as short tags. */
.understood {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px 8px;
  transition: opacity 0.3s ease;
}
.understood > span {
  color: var(--muted);
  font-size: 0.8125rem;
}
.understood ul {
  display: contents;
}
.understood li {
  padding: 2px 8px;
  border: 1px solid var(--line);
  font-size: 0.8125rem;
  font-weight: 500;
}
.report-line {
  color: var(--muted);
  font-size: 0.875rem;
  transition: opacity 0.3s ease;
}
.js .understood.is-waiting,
.js .report-line.is-waiting {
  opacity: 0;
}
@media (max-width: 1000px) {
  .proto.is-network {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  }
  .net-map {
    padding: 16px;
  }
  /* Labels may take two lines in a narrow column; the figures still start on one line. */
  .net-counts dt {
    min-height: 2.9em;
  }
  .net-counts dd {
    font-size: 1.5rem;
  }
  .net-counts small {
    display: block;
  }
}
@media (max-width: 760px) {
  .proto.is-network {
    grid-template-columns: minmax(0, 1fr);
    grid-template-rows: none;
    grid-template-areas:
      "top"
      "map"
      "main";
  }
  .net-map {
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }
  .desk-actions .c-btn {
    flex: 1 1 auto;
  }
}
/* On the narrowest phones the other shops are plain marks, so nothing overlaps. */
@media (max-width: 380px) {
  .map-pins .pin {
    width: 12px;
    height: 12px;
    padding: 0;
    font-size: 0;
  }
}
@media (prefers-reduced-motion: reduce) {
  .pin-rate::after {
    animation: none;
  }
}

/* Results per network: the same three measures for a real case and for labelled simulations.
   The figures are drawn by default; with JavaScript they fill in when they come into view. */
.band {
  --mark-off: color-mix(in srgb, var(--pop) 18%, var(--dark));
  --mark-before: color-mix(in srgb, var(--pop) 52%, var(--dark));
}
.cases {
  display: grid;
  gap: clamp(28px, 3.6vw, 48px);
}
.cases-head {
  display: grid;
  gap: 24px;
}
.cases-head .proof-text p {
  color: var(--dark-muted);
}
.case-pick {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  border: 1px solid var(--dark-line);
}
.case-tab {
  display: grid;
  align-content: start;
  gap: 2px;
  min-height: 68px;
  padding: 12px 14px;
  border: 0;
  border-right: 1px solid var(--dark-line);
  background: transparent;
  color: var(--dark-ink);
  font: inherit;
  text-align: left;
  cursor: pointer;
  transition:
    background-color 0.2s ease,
    color 0.2s ease;
}
.case-tab:last-child {
  border-right: 0;
}
.case-tab:hover {
  background: var(--dark-2);
}
.case-tab[aria-selected="true"] {
  background: var(--pop);
  color: var(--on-pop);
}
.case-tab:focus-visible {
  outline-offset: -4px;
}
.case-tab[aria-selected="true"]:focus-visible {
  outline-color: var(--on-pop);
}
.case-name {
  font-weight: 500;
  line-height: 1.25;
}
.case-kind {
  color: var(--dark-muted);
  font-size: 0.8125rem;
  line-height: 1.3;
}
.case-tab[aria-selected="true"] .case-kind {
  color: inherit;
}
.case {
  display: grid;
  gap: 22px;
}
.case-figs {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 32px var(--gap-split);
}
.fig {
  display: grid;
  align-content: start;
  gap: 14px;
  margin: 0;
  padding-top: 18px;
  border-top: 1px solid var(--dark-line);
}
.fig figcaption {
  color: var(--pop);
  font-weight: 500;
}
.fig-value {
  font-size: clamp(3rem, 2rem + 4vw, 5.25rem);
  font-weight: 300;
  letter-spacing: -0.04em;
  line-height: 1;
}
.fig-rows {
  display: grid;
  gap: 10px;
}
.fig-rows p {
  display: grid;
  grid-template-columns: 3.4em minmax(0, 1fr) 2.8em;
  align-items: center;
  gap: 10px;
  color: var(--dark-muted);
  font-size: 0.875rem;
}
.fig-rows b {
  color: var(--dark-ink);
  font-weight: 500;
  font-variant-numeric: tabular-nums;
  text-align: right;
}
/* Twenty marks: each is five reviews in a hundred. */
.units {
  display: grid;
  grid-template-columns: repeat(20, minmax(0, 1fr));
  gap: 2px;
  max-width: 340px;
}
.units i {
  aspect-ratio: 1;
  background: var(--mark-off);
  transition: background-color 0.25s ease calc(var(--i) * 30ms + 120ms);
}
.units i.on {
  background: var(--mark-before);
}
.is-after .units i.on {
  background: var(--pop);
}
/* Five stars, filled to the rating. */
.rate {
  position: relative;
  display: inline-block;
  justify-self: start;
  line-height: 0;
}
.rate-back,
.rate-fill {
  display: inline-flex;
}
.rate svg {
  flex: none;
  width: 24px;
  height: 24px;
}
.rate-back svg {
  fill: var(--mark-off);
}
.rate-fill {
  position: absolute;
  inset: 0 auto 0 0;
  clip-path: inset(0 calc((1 - var(--share)) * 100%) 0 0);
  transition: clip-path 0.9s var(--ease) 0.15s;
}
.rate-fill svg {
  fill: var(--mark-before);
}
.is-after .rate-fill svg {
  fill: var(--pop);
}
/* Two columns on one scale: before and after. */
.cols {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 76px));
  align-items: end;
  gap: 14px;
  height: 132px;
}
.col {
  display: grid;
  grid-template-rows: minmax(0, 1fr) auto;
  gap: 6px;
  height: 100%;
  color: var(--dark-muted);
  font-size: 0.875rem;
}
.col i {
  align-self: end;
  display: block;
  height: calc(var(--h) * 1%);
  background: var(--mark-before);
  transform-origin: bottom;
  transition: transform 0.8s var(--ease) 0.1s;
}
.col.is-after i {
  background: var(--pop);
  transition-delay: 0.28s;
}
.col b {
  font-weight: 400;
}
.case-note {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 6px 12px;
  max-width: 96ch;
  color: var(--dark-muted);
  font-size: var(--step-small);
}
/* Real or simulated: said beside the figures, not only on the tab. */
.case-tag {
  padding: 2px 8px;
  border: 1px solid var(--dark-muted);
  color: var(--dark-ink);
  font-size: 0.8125rem;
  font-weight: 500;
  white-space: nowrap;
}
.case-note.is-sim .case-tag {
  border-color: var(--pop);
  background: var(--pop);
  color: var(--on-pop);
}
.case-note span {
  flex: 1 1 28ch;
}

/* Why it matters: each claim is a small figure with its source. */
.why {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0 var(--gap-split);
  margin-top: clamp(24px, 3.4vw, 44px);
}
.why-fig {
  display: grid;
  align-content: start;
  gap: 14px;
  margin: 0;
  padding: 26px 0 32px;
  border-top: 1px solid var(--line);
}
.why-fig figcaption {
  font-size: var(--step-lead);
  font-weight: 500;
  letter-spacing: -0.01em;
  line-height: 1.25;
}
.why-label,
.why-note {
  color: var(--muted);
  font-size: 0.9375rem;
}
.why-source {
  color: var(--muted);
  font-size: 0.8125rem;
}
.why-source a {
  color: inherit;
  text-underline-offset: 3px;
}
.why-source a:hover {
  color: var(--ink);
}
.mbars {
  display: grid;
  gap: 12px;
}
.mbar {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: baseline;
  gap: 4px 12px;
}
.mbar-name,
.mbar b {
  font-weight: 500;
}
.mbar b {
  font-variant-numeric: tabular-nums;
}
.mbar-track {
  grid-column: 1 / -1;
  display: block;
  height: 12px;
  background: var(--surface-2);
}
.mbar-track i {
  display: block;
  height: 100%;
  background: var(--accent);
  transform: scaleX(var(--share));
  transform-origin: left;
  transition: transform 0.9s var(--ease) calc(var(--i) * 130ms + 100ms);
}
.deltas {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}
.deltas p,
.waffle-text {
  display: grid;
  align-content: start;
  gap: 4px;
}
.deltas b,
.waffle-text b {
  color: var(--accent);
  font-size: clamp(2.5rem, 1.8rem + 2.8vw, 4rem);
  font-weight: 300;
  letter-spacing: -0.04em;
  line-height: 1;
}
.deltas span,
.waffle-text span {
  color: var(--muted);
  font-size: 0.9375rem;
}
.factors {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 6px;
}
.factors > li {
  display: grid;
  align-content: start;
  gap: 6px;
  min-height: 96px;
  padding: 12px;
  background: var(--surface);
  transition:
    background-color 0.6s var(--ease) 0.35s,
    color 0.6s var(--ease) 0.35s;
}
.factors > li.is-key {
  background: var(--accent);
  color: var(--on-accent);
}
.factors strong {
  font-weight: 500;
}
.factors ul {
  display: grid;
  gap: 2px;
  font-size: 0.875rem;
  line-height: 1.35;
}
/* Two things side by side: what each does well, then where it fails. */
.compare {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 6px;
}
.compare dl {
  display: grid;
  align-content: start;
  gap: 8px;
  padding: 12px;
  background: var(--surface);
}
.compare dt {
  font-weight: 500;
}
.compare dd {
  font-size: 0.9375rem;
  line-height: 1.4;
}
.compare .is-weak {
  padding-top: 8px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  transition: opacity 0.5s var(--ease) 0.5s;
}
.js [data-anim]:not(.is-in) .compare .is-weak {
  opacity: 0;
  transition: none;
}
.waffle-row {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: center;
  gap: 22px;
}
/* A hundred squares: each is one consumer in a hundred. */
.waffle {
  display: grid;
  grid-template-columns: repeat(10, 10px);
  gap: 2px;
}
.waffle i {
  width: 10px;
  height: 10px;
  background: var(--surface-2);
  transition: background-color 0.2s ease calc(var(--i) * 9ms + 100ms);
}
.waffle i.on {
  background: var(--accent);
}
.waffle i.on.is-range {
  background: color-mix(in srgb, var(--accent) 42%, var(--bg));
}

/* Before a figure comes into view its marks are empty; the default, without JavaScript, is drawn. */
.js [data-anim]:not(.is-in) .units i.on,
.js [data-anim]:not(.is-in) .waffle i.on {
  transition: none;
}
.js [data-anim]:not(.is-in) .units i.on {
  background: var(--mark-off);
}
.js [data-anim]:not(.is-in) .waffle i.on {
  background: var(--surface-2);
}
.js [data-anim]:not(.is-in) .rate-fill {
  clip-path: inset(0 100% 0 0);
  transition: none;
}
.js [data-anim]:not(.is-in) .col i {
  transform: scaleY(0);
  transition: none;
}
.js [data-anim]:not(.is-in) .mbar-track i {
  transform: scaleX(0);
  transition: none;
}
.js [data-anim]:not(.is-in) .factors > li.is-key {
  background: var(--surface);
  color: var(--ink);
  transition: none;
}
@media (prefers-reduced-motion: reduce) {
  .units i,
  .rate-fill,
  .col i,
  .mbar-track i,
  .factors > li,
  .waffle i {
    transition: none;
  }
}
@media (max-width: 860px) {
  .case-figs,
  .why {
    grid-template-columns: minmax(0, 1fr);
  }
  /* Four networks sit two by two once the row gets narrow. */
  .case-pick {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .case-tab:nth-child(2n) {
    border-right: 0;
  }
  .case-tab:nth-child(-n + 2) {
    border-bottom: 1px solid var(--dark-line);
  }
}
@media (max-width: 640px) {
  .factors {
    grid-template-columns: minmax(0, 1fr);
  }
  .factors > li {
    min-height: 0;
  }
}

/* The voice page's second block: three callers, read on three lanes. */
.state-line {
  font-weight: 500;
}
.adapt {
  background: var(--bg);
  border: 1px solid var(--ink);
}
.adapt-pick {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  border-bottom: 1px solid var(--line);
}
.adapt-pick .pick {
  min-height: 56px;
  padding: 12px 16px;
  border-bottom: 0;
  border-right: 1px solid var(--line);
  background: var(--surface);
}
.adapt-pick .pick:last-child {
  border-right: 0;
}
.adapt-pick .pick:hover {
  background: var(--surface-2);
}
.adapt-pick .pick.is-on {
  background: var(--ink);
}
.adapt-panel {
  display: grid;
  gap: 14px;
  padding: 20px 24px 24px;
}
/* What the agent takes from one sentence: three lanes that fill in while the caller speaks. */
.listen-bar {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 18px 24px 0;
}
.listen-note {
  padding: 6px 24px 0;
}
.lanes {
  display: grid;
  border: 1px solid var(--line);
}
.lane {
  display: grid;
  grid-template-columns: minmax(0, 10.5rem) minmax(0, 1fr);
  align-items: center;
  gap: 8px 16px;
  min-height: 84px;
  padding: 12px 14px;
  border-bottom: 1px solid var(--line);
  transition: background-color 0.3s ease;
}
.lane:last-child {
  border-bottom: 0;
}
/* The lane the agent is working on right now. */
.js .lane.is-now {
  background: var(--surface);
}
.lane-name {
  display: grid;
  justify-items: start;
  gap: 1px;
}
.lane-name strong {
  font-weight: 500;
}
.lane-name span {
  color: var(--muted);
  font-size: 0.8125rem;
}
/* Whether a lane runs today or is being built: said on the lane itself. */
.lane-name .lane-state {
  margin-top: 5px;
  padding: 1px 6px;
  border: 1px solid var(--muted);
  color: var(--ink);
  font-size: 0.75rem;
  font-weight: 500;
}
.lane-name .lane-state.is-live {
  border-color: var(--ink);
  background: var(--ink);
  color: var(--dark-ink);
}
.chips,
.answer ul {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.chips li,
.answer li {
  padding: 3px 9px;
  background: var(--surface-2);
  font-size: 0.875rem;
  font-weight: 500;
}
.chips li {
  transition:
    opacity 0.25s ease,
    transform 0.4s var(--ease);
}
.js .chips li.is-waiting {
  opacity: 0;
  transform: translateY(5px);
}
.vmeters {
  display: grid;
  gap: 6px;
}
.vmeters div {
  display: grid;
  grid-template-columns: 4.4em minmax(0, 1fr);
  align-items: center;
  gap: 10px;
}
.vmeters dt {
  color: var(--muted);
  font-size: 0.8125rem;
}
.vmeters dd {
  display: flex;
  align-items: center;
  gap: 10px;
}
/* Five marks for one measure of the voice. */
.vmeter {
  display: inline-grid;
  grid-template-columns: repeat(5, 18px);
  gap: 2px;
}
.vmeter i {
  height: 10px;
  background: var(--surface-2);
  transition: background-color 0.18s ease;
}
.vmeter i.on {
  background: var(--accent);
}
.js .vmeter i.on:not(.is-lit) {
  background: var(--surface-2);
}
.vmeters b {
  font-size: 0.875rem;
  font-weight: 500;
  transition: opacity 0.25s ease;
}
.lane-text {
  font-weight: 500;
  transition: opacity 0.3s ease;
}
.js .vmeters b.is-waiting,
.js .lane-text.is-waiting,
.js .answer.is-waiting {
  opacity: 0;
}
/* How the reply changes for this caller. */
.answer {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px 10px;
  padding: 10px 12px;
  background: var(--pop);
  color: var(--on-pop);
  transition: opacity 0.3s ease;
}
.answer > span {
  font-size: 0.8125rem;
  font-weight: 500;
}
.answer li {
  background: color-mix(in srgb, var(--bg) 55%, var(--pop));
}
@media (max-width: 760px) {
  .listen-bar {
    padding: 16px 16px 0;
  }
  .listen-note {
    padding: 6px 16px 0;
  }
  .lane {
    grid-template-columns: minmax(0, 1fr);
    min-height: 0;
  }
  /* On a phone the name, its hint and its state share one line, the state at the far end. */
  .lane-name {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    gap: 2px 8px;
  }
  .lane-name .lane-state {
    margin: 0 0 0 auto;
    white-space: nowrap;
  }
}
@media (prefers-reduced-motion: reduce) {
  .chips li,
  .vmeter i {
    transition: none;
  }
}
/* Chatbot prototype: the kinds on the left, the conversation, and what is behind the answer. */
.proto.is-chat {
  grid-template-columns: 224px minmax(0, 1fr);
  grid-template-rows: auto 1fr;
  grid-template-areas:
    "top top"
    "pick body";
}
.chat-kind {
  grid-area: body;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 292px;
  min-width: 0;
}
.chat-kind .proto-main {
  grid-area: auto;
  /* One column that may shrink: the question box must not set the width of the chat. */
  grid-template-columns: minmax(0, 1fr);
  min-height: 420px;
}
.proto-behind {
  display: grid;
  align-content: start;
  gap: 10px;
  min-width: 0;
  padding: 18px 20px 22px;
  border-left: 1px solid var(--line);
  background: var(--surface);
}
.pick-line {
  margin-top: 4px;
  color: var(--muted);
  font-size: 0.8125rem;
  line-height: 1.35;
}
.pick.is-on .pick-line {
  color: var(--dark-muted);
}
/* What the customer can press or ask. */
.chat-options,
.chat-asks {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.chat-prompt {
  color: var(--muted);
  font-size: 0.875rem;
}
.chat-ask {
  min-height: 44px;
  padding: 10px 14px;
  line-height: 1.3;
  text-align: left;
}
/* A new message arrives in the thread. */
.js .line.is-new {
  animation: line-in 0.4s var(--ease) both;
}
@keyframes line-in {
  from {
    opacity: 0;
    transform: translateY(8px);
  }
}
/* The script as an outline: the path taken is lit, the current step is the darkest. */
.outline {
  display: grid;
  gap: 4px;
}
.outline li {
  position: relative;
  padding: 7px 10px;
  background: var(--bg);
  font-size: 0.875rem;
  transition:
    background-color 0.35s var(--ease),
    color 0.35s var(--ease);
}
.outline .depth-1 {
  margin-left: 18px;
}
.outline .depth-2 {
  margin-left: 36px;
}
.outline .depth-1::before,
.outline .depth-2::before {
  content: "";
  position: absolute;
  top: 50%;
  left: -12px;
  width: 10px;
  height: 1px;
  background: var(--muted);
}
.outline li.is-on {
  background: var(--pop);
  color: var(--on-pop);
  font-weight: 500;
}
.outline li.is-now {
  background: var(--ink);
  color: var(--dark-ink);
  font-weight: 500;
}
/* Lanes in a narrow column: the name above, the content below. */
.lanes.is-stacked {
  background: var(--bg);
}
.lanes.is-stacked .lane {
  grid-template-columns: minmax(0, 1fr);
  min-height: 0;
}
@media (max-width: 1120px) {
  .proto.is-chat {
    grid-template-columns: minmax(0, 1fr);
    grid-template-rows: none;
    grid-template-areas:
      "top"
      "pick"
      "body";
  }
  .proto.is-chat .proto-pick {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .chat-kind {
    grid-template-columns: minmax(0, 1fr) 272px;
  }
}
@media (max-width: 760px) {
  .chat-kind {
    grid-template-columns: minmax(0, 1fr);
  }
  .chat-kind .proto-main {
    min-height: 0;
  }
  .proto-behind {
    padding: 14px 16px 18px;
    border-top: 1px solid var(--line);
    border-left: 0;
  }
  .pick-line {
    display: none;
  }
}
@media (prefers-reduced-motion: reduce) {
  .js .line.is-new {
    animation: none;
  }
}

/* Chatbot simulator: the business on top, the kind on the left, the conversation in the middle. */
.proto.is-chat {
  grid-template-rows: auto auto 1fr;
  grid-template-areas:
    "top top"
    "domains domains"
    "pick body";
}
/* Any number of businesses: they wrap, and the last row stretches to the full width.
   The dividers are the gaps, which show the line colour behind the buttons. */
.chat-domains {
  grid-area: domains;
  display: flex;
  flex-wrap: wrap;
  gap: 1px;
  border-bottom: 1px solid var(--line);
  background: var(--line);
}
.domain {
  flex: 1 1 128px;
  min-height: 48px;
  padding: 10px 14px;
  border: 0;
  background: var(--surface);
  color: var(--ink);
  font: inherit;
  font-weight: 500;
  cursor: pointer;
  transition:
    background-color 0.2s ease,
    color 0.2s ease;
}
.domain:hover {
  background: var(--surface-2);
}
.domain[aria-pressed="true"] {
  background: var(--pop);
  color: var(--on-pop);
}
.domain:focus-visible {
  outline-offset: -4px;
}
/* The conversation scrolls inside its own box, so a long chat does not push the page. */
.chat-thread {
  align-content: start;
  height: 264px;
  padding-right: 6px;
  overflow-y: auto;
  overscroll-behavior: contain;
  scrollbar-color: var(--ink) var(--surface);
  scrollbar-width: thin;
}
.chat-thread:focus-visible {
  outline-offset: 4px;
}
.chat-form {
  display: none;
  gap: 8px;
}
.js .chat-form {
  display: flex;
}
.chat-form input {
  flex: 1 1 0;
  width: 0;
  min-width: 0;
  min-height: 44px;
  padding: 0 14px;
  border: 1px solid var(--ink);
  border-radius: 0;
  background: var(--bg);
  color: var(--ink);
  font: inherit;
  font-size: 1.0625rem;
}
.chat-form input::placeholder {
  color: var(--muted);
}
.chat-form input:focus-visible {
  outline-offset: 0;
}
.chat-asks {
  align-items: center;
}
.chat-suggest {
  display: contents;
}
/* While the assistant is working out its answer, three marks keep time. */
.line.is-typing span::after {
  content: "";
  display: inline-block;
  width: 26px;
  height: 6px;
  vertical-align: middle;
  background: radial-gradient(circle, var(--ink) 3px, transparent 3.5px) 0 50% /
    10px 6px repeat-x;
  animation: typing 0.9s steps(4, jump-none) infinite;
}
@keyframes typing {
  from {
    clip-path: inset(0 100% 0 0);
  }
  to {
    clip-path: inset(0 0 0 0);
  }
}
.js .chips li.is-new {
  animation: line-in 0.35s var(--ease) both;
}
.lane-text.is-idle {
  color: var(--muted);
  font-weight: 400;
}
/* How the answer ended: solved, passed to a person, or not in the content. */
.chat-outcome {
  justify-self: start;
  padding: 4px 10px;
  background: var(--good-bg);
  color: var(--good);
  font-size: 0.875rem;
  font-weight: 500;
}
.chat-outcome[data-kind="handed"] {
  background: var(--pop);
  color: var(--on-pop);
}
.chat-outcome[data-kind="unknown"] {
  background: var(--surface-2);
  color: var(--ink);
}
@media (max-width: 1120px) {
  .proto.is-chat {
    grid-template-areas:
      "top"
      "domains"
      "pick"
      "body";
  }
}
@media (max-width: 760px) {
  .chat-thread {
    height: 300px;
  }
  /* On a phone the question box gets the room; the send button takes only what it needs. */
  .chat-form .c-play {
    min-width: 0;
    padding: 0 18px;
  }
}
@media (prefers-reduced-motion: reduce) {
  .line.is-typing span::after,
  .js .chips li.is-new {
    animation: none;
  }
}

/* Why a company buys this: a dark band of small scenes that play when they come into view. */
.reasons-band h2 {
  max-width: 18ch;
}
.reasons {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 36px clamp(20px, 2.6vw, 40px);
  margin-top: clamp(28px, 4vw, 52px);
}
.reason {
  display: grid;
  grid-template-rows: 172px auto;
  align-content: start;
  gap: 14px;
  margin: 0;
}
.scene {
  position: relative;
  display: grid;
  align-content: center;
  padding: 16px;
  border: 1px solid var(--dark-line);
  background: var(--dark-2);
}
.reason figcaption {
  font-size: var(--step-lead);
  font-weight: 500;
  letter-spacing: -0.01em;
  line-height: 1.2;
}
.reason-fact {
  color: var(--dark-muted);
  font-size: 0.9375rem;
  line-height: 1.45;
}
.reason-source {
  color: var(--dark-muted);
  font-size: 0.8125rem;
}
.reason-source a {
  color: inherit;
  text-underline-offset: 3px;
}
.reason-source a:hover {
  color: var(--dark-ink);
}
/* Scene 1: the hours a team covers, and the whole day. */
.day {
  display: grid;
  gap: 10px;
}
.day-row,
.day-scale {
  display: grid;
  grid-template-columns: 5.6em minmax(0, 1fr);
  align-items: center;
  gap: 8px;
  color: var(--dark-muted);
  font-size: 0.8125rem;
}
.day-row.is-bot {
  color: var(--dark-ink);
  font-weight: 500;
}
.hours {
  display: grid;
  grid-template-columns: repeat(24, minmax(0, 1fr));
  gap: 2px;
}
.hours i {
  height: 22px;
  background: var(--mark-off);
}
.hours i.on {
  background: var(--dark-muted);
}
.is-bot .hours i.on {
  background: var(--pop);
  transition: background-color 0.2s ease calc(var(--i) * 55ms + 300ms);
}
.ticks {
  display: flex;
  justify-content: space-between;
  font-size: 0.6875rem;
}
.ticks b {
  font-weight: 400;
}
/* Scene 2: one question, asked again and again, answered once and for all. */
.pile {
  display: grid;
  gap: 8px;
}
.pile-stack {
  position: relative;
  display: block;
  height: 62px;
}
.pile-stack i {
  position: absolute;
  top: calc(var(--i) * 7px);
  left: calc(var(--i) * 7px);
  padding: 5px 9px;
  background: var(--dark-muted);
  color: var(--on-pop);
  box-shadow: 0 0 0 1px var(--dark-2);
  font-size: 0.8125rem;
  font-style: normal;
  font-weight: 500;
  white-space: nowrap;
  transition:
    transform 0.5s var(--ease) calc(var(--i) * 110ms + 150ms),
    opacity 0.3s ease calc(var(--i) * 110ms + 150ms),
    background-color 0.4s ease 1.1s;
}
.pile-stack i:last-child {
  background: var(--pop);
}
/* The count stands in front of the stacked questions, on the scene's own ground, so a long
   question never hides its label. */
.pile-count {
  position: absolute;
  top: 16px;
  right: 16px;
  z-index: 1;
  display: grid;
  justify-items: end;
  padding-left: 8px;
  background: var(--dark-2);
}
.pile-count b {
  font-size: 2rem;
  font-weight: 300;
  letter-spacing: -0.03em;
  line-height: 1;
}
.pile-count em {
  color: var(--dark-muted);
  font-size: 0.75rem;
  font-style: normal;
}
.pile-answer {
  grid-column: 1 / -1;
  padding: 5px 9px;
  background: var(--pop);
  color: var(--on-pop);
  font-size: 0.8125rem;
  font-weight: 500;
  transition: opacity 0.5s var(--ease) 1.2s;
}
/* Scene 3: the conversation passes to a named person. */
.hand {
  display: grid;
  gap: 8px;
}
.hand-line,
.hand-person {
  transition:
    opacity 0.4s ease calc(var(--i) * 550ms + 200ms),
    transform 0.5s var(--ease) calc(var(--i) * 550ms + 200ms);
}
.hand-line {
  justify-self: start;
  max-width: 92%;
  padding: 6px 10px;
  background: var(--mark-off);
  font-size: 0.875rem;
  line-height: 1.35;
}
.hand-line.is-them {
  justify-self: end;
  background: var(--dark-muted);
  color: var(--on-pop);
}
.hand-person {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: center;
  gap: 10px;
  padding: 8px 10px;
  background: var(--pop);
  color: var(--on-pop);
  font-size: 0.875rem;
  font-weight: 500;
  line-height: 1.3;
}
.hand-person b {
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  background: var(--on-pop);
  color: var(--pop);
  font-weight: 500;
}
.hand-person em {
  display: block;
  font-size: 0.75rem;
  font-style: normal;
  font-weight: 400;
}
/* Scene 4: what customers asked, as a short report. */
.report {
  display: grid;
  gap: 7px;
}
.report-label {
  color: var(--dark-muted);
  font-size: 0.75rem;
}
.report-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: baseline;
  gap: 2px 10px;
  font-size: 0.8125rem;
}
.report-row b {
  font-weight: 500;
  font-variant-numeric: tabular-nums;
}
.report-track {
  grid-column: 1 / -1;
  display: block;
  height: 6px;
  background: var(--mark-off);
}
.report-track i {
  display: block;
  height: 100%;
  background: var(--dark-muted);
  transform: scaleX(min(1, var(--share)));
  transform-origin: left;
  transition: transform 0.8s var(--ease) calc(var(--i) * 140ms + 200ms);
}
.report-row.is-flag {
  color: var(--pop);
}
.report-row.is-flag .report-track i {
  background: var(--pop);
}
/* Scene: a question, and the few names an answer gives. One place is still open. */
.ask,
.wrong {
  display: grid;
  gap: 9px;
}
.ask-q {
  justify-self: end;
  max-width: 92%;
  padding: 6px 10px;
  background: var(--dark-muted);
  color: var(--on-pop);
  font-size: 0.875rem;
  line-height: 1.35;
}
.ask-a {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.ask-a i {
  padding: 4px 10px;
  background: var(--mark-off);
  font-size: 0.8125rem;
  font-style: normal;
  font-weight: 500;
  transition:
    opacity 0.4s ease calc(var(--i) * 380ms + 450ms),
    transform 0.5s var(--ease) calc(var(--i) * 380ms + 450ms);
}
.ask-a i.is-open {
  background: transparent;
  box-shadow: inset 0 0 0 1px var(--pop);
  color: var(--pop);
}
/* Scene: what the answer says today, struck out, and what is true. */
.wrong-old,
.wrong-new {
  justify-self: start;
  max-width: 100%;
  padding: 6px 10px;
  font-size: 0.875rem;
  line-height: 1.35;
}
.wrong-old {
  background: var(--mark-off);
  color: var(--dark-muted);
  text-decoration: line-through;
  text-decoration-color: var(--dark-ink);
  text-decoration-thickness: 2px;
  transition:
    opacity 0.4s ease 0.45s,
    transform 0.5s var(--ease) 0.45s,
    text-decoration-color 0.4s ease 1.25s;
}
.wrong-new {
  background: var(--pop);
  color: var(--on-pop);
  font-weight: 500;
  transition:
    opacity 0.4s ease 1.7s,
    transform 0.5s var(--ease) 1.7s;
}
/* Scene: the same question asked ten times, on three days. */
.days {
  display: grid;
  gap: 9px;
}
.days-row {
  display: grid;
  grid-template-columns: 2.4em minmax(0, 1fr) auto;
  align-items: center;
  gap: 8px;
  color: var(--dark-muted);
  font-size: 0.8125rem;
}
.days-marks {
  display: grid;
  grid-template-columns: repeat(10, minmax(0, 1fr));
  gap: 2px;
}
.days-marks i {
  height: 18px;
  background: var(--mark-off);
}
.days-marks i.on {
  background: var(--pop);
  transition: background-color 0.2s ease
    calc(var(--r) * 420ms + var(--i) * 40ms + 250ms);
}
.days-row b {
  color: var(--dark-ink);
  font-weight: 500;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}
/* Scene: a large count, and the small count that is left of it. */
.sift {
  display: grid;
  gap: 8px;
}
.sift p {
  display: grid;
  gap: 2px;
}
.sift b {
  font-size: 1.5rem;
  font-weight: 300;
  letter-spacing: -0.03em;
  line-height: 1.05;
  font-variant-numeric: tabular-nums;
}
.sift span {
  color: var(--dark-muted);
  font-size: 0.8125rem;
  line-height: 1.35;
}
.sift-from {
  transition: opacity 0.5s ease 0.2s;
}
.sift-to {
  padding-top: 8px;
  border-top: 1px solid var(--dark-line);
  transition:
    opacity 0.5s ease 1.1s,
    transform 0.6s var(--ease) 1.1s;
}
.sift-to b {
  color: var(--pop);
  font-weight: 500;
}
.js [data-anim]:not(.is-in) .sift-from,
.js [data-anim]:not(.is-in) .sift-to {
  opacity: 0;
  transition: none;
}
.js [data-anim]:not(.is-in) .sift-to {
  transform: translateY(8px);
}
/* Scene: every request of a week as a mark. The few that did not fit the rules are held
   back for a person: outlined, and drawn last. */
.hold {
  display: grid;
  gap: 10px;
}
.hold-row {
  display: flex;
  align-items: baseline;
  gap: 8px;
}
.hold-row b {
  font-size: 1.5rem;
  font-weight: 300;
  letter-spacing: -0.03em;
  line-height: 1.05;
  font-variant-numeric: tabular-nums;
}
.hold-row span {
  color: var(--dark-muted);
  font-size: 0.8125rem;
  line-height: 1.35;
}
.hold-row.is-held b {
  color: var(--pop);
  font-weight: 500;
}
.hold-marks {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: 4px;
}
.hold-marks i {
  aspect-ratio: 1;
  background: var(--pop);
  transition: opacity 0.3s ease calc(var(--i) * 24ms + 200ms);
}
.hold-marks i.is-held {
  background: transparent;
  box-shadow: inset 0 0 0 2px var(--dark-ink);
  transition-delay: 1300ms;
}
.hold-row.is-held {
  transition: opacity 0.5s ease 1500ms;
}
.js [data-anim]:not(.is-in) .hold-marks i,
.js [data-anim]:not(.is-in) .hold-row.is-held {
  opacity: 0;
  transition: none;
}
/* Before a scene comes into view its marks are at their starting point. */
.js [data-anim]:not(.is-in) .ask-a i,
.js [data-anim]:not(.is-in) .wrong-old,
.js [data-anim]:not(.is-in) .wrong-new {
  opacity: 0;
  transform: translateY(8px);
  transition: none;
}
.js [data-anim]:not(.is-in) .wrong-old {
  text-decoration-color: transparent;
}
.js [data-anim]:not(.is-in) .days-marks i.on {
  background: var(--mark-off);
  transition: none;
}
.js [data-anim]:not(.is-in) .is-bot .hours i.on {
  background: var(--mark-off);
  transition: none;
}
.js [data-anim]:not(.is-in) .pile-stack i {
  opacity: 0;
  transform: translateY(-14px);
  transition: none;
}
.js [data-anim]:not(.is-in) .pile-answer,
.js [data-anim]:not(.is-in) .hand-line,
.js [data-anim]:not(.is-in) .hand-person {
  opacity: 0;
  transition: none;
}
.js [data-anim]:not(.is-in) .hand-line,
.js [data-anim]:not(.is-in) .hand-person {
  transform: translateY(8px);
}
.js [data-anim]:not(.is-in) .report-track i {
  transform: scaleX(0);
  transition: none;
}
@media (max-width: 1120px) {
  .reasons {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
@media (max-width: 620px) {
  .reasons {
    grid-template-columns: minmax(0, 1fr);
  }
}
@media (prefers-reduced-motion: reduce) {
  .is-bot .hours i.on,
  .pile-stack i,
  .pile-answer,
  .hand-line,
  .hand-person,
  .report-track i,
  .ask-a i,
  .wrong-old,
  .wrong-new,
  .days-marks i.on,
  .sift-from,
  .sift-to {
    transition: none;
  }
}

/* Estimate from the visitor's own numbers: three sliders, one figure, one bar. */
.estimate {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  border: 1px solid var(--ink);
  background: var(--bg);
}
.est-inputs {
  display: grid;
  align-content: start;
  gap: 22px;
  padding: 24px;
  border-right: 1px solid var(--line);
}
.est-input {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: baseline;
  gap: 8px 12px;
}
.est-input label {
  font-weight: 500;
}
.est-input output {
  font-size: 1.25rem;
  font-weight: 500;
  font-variant-numeric: tabular-nums;
}
.est-input input {
  grid-column: 1 / -1;
  width: 100%;
  height: 44px;
  margin: 0;
  accent-color: var(--accent);
  cursor: pointer;
}
.est-out {
  display: grid;
  align-content: start;
  gap: 16px;
  padding: 24px;
  background: var(--surface);
}
.est-big {
  display: grid;
  gap: 4px;
}
.est-big b {
  color: var(--accent);
  font-size: clamp(3rem, 2rem + 4vw, 5.25rem);
  font-weight: 300;
  letter-spacing: -0.04em;
  line-height: 1;
}
.est-big span {
  font-weight: 500;
}
/* The routine share of the questions, against the rest. */
.est-bar {
  display: block;
  height: 14px;
  background: var(--surface-2);
}
.est-bar i {
  display: block;
  height: 100%;
  background: var(--accent);
  transform: scaleX(var(--share));
  transform-origin: left;
  transition: transform 0.35s var(--ease);
}
.est-rows {
  display: grid;
  gap: 0;
}
.est-rows div {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: baseline;
  gap: 12px;
  padding: 10px 0;
  border-top: 1px solid var(--line);
}
.est-rows dt {
  color: var(--muted);
  font-size: 0.9375rem;
}
.est-rows dd {
  font-size: 1.25rem;
  font-weight: 500;
  font-variant-numeric: tabular-nums;
}
.est-note {
  color: var(--muted);
  font-size: var(--step-small);
}
@media (max-width: 1000px) {
  .estimate {
    grid-template-columns: minmax(0, 1fr);
  }
  .est-inputs {
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }
}
@media (max-width: 760px) {
  .est-inputs,
  .est-out {
    padding: 16px;
  }
}
@media (prefers-reduced-motion: reduce) {
  .est-bar i {
    transition: none;
  }
}

/* How it works, drawn: an assistant's three stages, each a small scene, and under each what
   we do there. The stages reuse the numbered steps; an arrow joins one scene to the next. */
/* The stages share their rows: the numeral, the scene, the name and what we do stand on one
   level in all of them, whichever scene is the tallest. */
.flow {
  --flow-gap: clamp(24px, 4vw, 64px);
  gap: var(--flow-gap);
}
@media (min-width: 961px) {
  .flow {
    grid-template-rows: repeat(4, auto);
    row-gap: 0;
  }
  .flow > .flow-stage {
    grid-row: span 4;
    grid-template-rows: subgrid;
  }
}
.flow-scene {
  position: relative;
  display: grid;
  align-content: center;
  gap: 10px;
  min-height: 208px;
  padding: 16px;
  border: 1px solid var(--ink);
  background: var(--bg);
}
.flow > li + li .flow-scene::before,
.flow > li + li .flow-scene::after {
  content: "";
  position: absolute;
  top: 50%;
}
.flow > li + li .flow-scene::before {
  left: calc(var(--flow-gap) / -2 - 13px);
  width: 24px;
  height: 2px;
  margin-top: -1px;
  background: var(--ink);
}
.flow > li + li .flow-scene::after {
  left: calc(var(--flow-gap) / -2 + 1px);
  width: 9px;
  height: 9px;
  border-top: 2px solid var(--ink);
  border-right: 2px solid var(--ink);
  transform: translateY(-50%) rotate(45deg);
}
.flow-q {
  justify-self: end;
  max-width: 94%;
  padding: 8px 12px;
  background: var(--ink);
  color: var(--dark-ink);
  font-size: 0.9375rem;
  line-height: 1.35;
}
.flow-bots {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 6px;
}
.flow-bots i {
  padding: 3px 9px;
  background: var(--surface-2);
  font-size: 0.8125rem;
  font-style: normal;
  font-weight: 500;
}
.flow-bots i.is-more {
  background: transparent;
  color: var(--muted);
  font-weight: 400;
}
.flow-src {
  display: grid;
  gap: 6px;
}
.flow-row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 10px;
  padding: 7px 10px;
  background: var(--surface);
  font-size: 0.875rem;
}
.flow-row b {
  color: var(--good);
  font-weight: 500;
  white-space: nowrap;
}
.flow-row.is-own {
  background: var(--pop);
  color: var(--on-pop);
  font-weight: 500;
}
.flow-row.is-own b {
  color: inherit;
}
.flow-ans {
  padding: 10px 12px;
  background: var(--surface);
  font-size: 0.9375rem;
  line-height: 1.45;
}
.flow-ans strong {
  font-size: inherit;
  font-weight: 500;
  letter-spacing: 0;
}
.flow-miss {
  justify-self: start;
  padding: 5px 10px;
  background: var(--pop);
  color: var(--on-pop);
  font-size: 0.875rem;
  font-weight: 500;
}
/* A data file and a few of its lines: set in a fixed-width face, because it is data. */
.flow-file {
  display: grid;
  gap: 5px;
}
.flow-file b {
  font-size: 0.9375rem;
  font-weight: 500;
}
.flow-file code {
  overflow: hidden;
  padding: 4px 8px;
  background: var(--surface);
  color: var(--muted);
  font:
    0.75rem / 1.4 ui-monospace,
    "Cascadia Mono",
    Consolas,
    monospace;
  text-overflow: ellipsis;
  white-space: pre;
  transition:
    opacity 0.4s ease calc(var(--i) * 140ms + 300ms),
    transform 0.5s var(--ease) calc(var(--i) * 140ms + 300ms);
}
.flow-file em {
  color: var(--muted);
  font-size: 0.8125rem;
  font-style: normal;
}
.js [data-anim]:not(.is-in) .flow-file code {
  opacity: 0;
  transform: translateY(6px);
  transition: none;
}
.flow-we {
  display: grid;
  align-content: start;
  gap: 3px;
  padding-top: 4px;
}
.flow-we span {
  color: var(--muted);
  font-size: 0.8125rem;
}
.flow-we b {
  font-size: 1.0625rem;
  font-weight: 500;
}
/* The scenes play in the order of the stages: the question, the sources one by one, the answer. */
.flow-q,
.flow-bots i,
.flow-row,
.flow-ans,
.flow-miss {
  transition:
    opacity 0.4s ease var(--d, 0ms),
    transform 0.5s var(--ease) var(--d, 0ms);
}
.flow-q {
  --d: 150ms;
}
.flow-bots i {
  --d: calc(var(--i) * 90ms + 500ms);
}
.flow-row {
  --d: calc(var(--i) * 260ms + 1200ms);
}
.flow-ans {
  --d: 2500ms;
}
.flow-miss {
  --d: 3100ms;
}
.js [data-anim]:not(.is-in) .flow-q,
.js [data-anim]:not(.is-in) .flow-bots i,
.js [data-anim]:not(.is-in) .flow-row,
.js [data-anim]:not(.is-in) .flow-ans,
.js [data-anim]:not(.is-in) .flow-miss {
  opacity: 0;
  transform: translateY(8px);
  transition: none;
}
@media (max-width: 960px) {
  .flow > li + li .flow-scene::before,
  .flow > li + li .flow-scene::after {
    display: none;
  }
  .flow-scene {
    min-height: 0;
  }
}
@media (prefers-reduced-motion: reduce) {
  .flow-q,
  .flow-bots i,
  .flow-row,
  .flow-ans,
  .flow-miss {
    transition: none;
  }
}

/* AI visibility simulator: the questions on the left, the answer in the middle, the fixes beside it. */
.proto.is-answers {
  grid-template-columns: 224px minmax(0, 1fr);
  grid-template-rows: auto 1fr;
  grid-template-areas:
    "top top"
    "pick body";
}
.ans-panel {
  grid-area: body;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 332px;
  min-width: 0;
}
.ans-panel .proto-main {
  grid-area: auto;
  grid-template-columns: minmax(0, 1fr);
  gap: 16px;
}
/* The answer: a few sentences, with the names it gives. */
.talk .us .ans-text {
  display: block;
  padding: 12px 14px;
}
.talk .us .ans-s {
  padding: 0;
  background: none;
  font-size: inherit;
}
.ans-text strong {
  font-weight: 500;
}
.ans-text mark {
  padding: 1px 5px;
  background: var(--pop);
  color: var(--on-pop);
  font-weight: 500;
}
/* A changed answer arrives one sentence after another. */
.js .line.is-fresh .ans-s {
  animation: ans-in 0.5s ease both;
  animation-delay: calc(var(--i) * 170ms);
}
@keyframes ans-in {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}
/* What the assistant read: the same two columns as the lines of the conversation. */
.ans-read {
  display: grid;
  grid-template-columns: 76px minmax(0, 1fr);
  align-items: start;
  gap: 8px;
}
.ans-read b {
  padding-top: 4px;
  color: var(--muted);
  font-size: 0.875rem;
  font-weight: 500;
}
@media (max-width: 620px) {
  .ans-read {
    grid-template-columns: minmax(0, 1fr);
    gap: 4px;
  }
  .ans-read b {
    padding-top: 0;
  }
}
/* The business's own sources: an outline until a fix makes them read, then filled. */
.chips li.is-own {
  background: transparent;
  box-shadow: inset 0 0 0 1px var(--muted);
  color: var(--muted);
  transition:
    background-color 0.3s var(--ease),
    box-shadow 0.3s var(--ease),
    color 0.3s var(--ease);
}
.chips li.is-own.is-read {
  background: var(--pop);
  box-shadow: inset 0 0 0 1px var(--pop);
  color: var(--on-pop);
}
/* Both answers share one place: the taller one sets the height, so nothing below moves. */
.js .ans-panel .talk [data-answer] {
  grid-row: 1;
  grid-column: 1;
  align-content: start;
}
.js .ans-panel .talk [data-answer] .ans-text {
  align-self: start;
}
.js .ans-panel .talk [data-answer].is-off {
  visibility: hidden;
}
/* In how many answers out of ten: one figure, ten marks. */
.odds {
  display: grid;
  gap: 12px;
  padding: 14px 16px 16px;
  border: 1px solid var(--ink);
}
.odds-value {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 4px 12px;
  font-weight: 500;
}
.odds-value b {
  min-width: 1.1ch;
  color: var(--accent);
  font-size: clamp(2.75rem, 2rem + 2.6vw, 4rem);
  font-weight: 300;
  letter-spacing: -0.04em;
  line-height: 0.9;
  font-variant-numeric: tabular-nums;
}
.odds-marks {
  display: grid;
  grid-template-columns: repeat(10, minmax(0, 1fr));
  gap: 3px;
}
.odds-marks i {
  height: 18px;
  background: var(--surface-2);
  transition: background-color 0.35s var(--ease) calc(var(--i) * 45ms);
}
.odds-marks i.on {
  background: var(--accent);
}
/* The fixes: each one a task with an owner and a time, pressed to see what it changes. */
.fix-list {
  display: grid;
  gap: 12px;
}
.fix-list li {
  display: grid;
  gap: 5px;
}
.fix {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: start;
  gap: 5px 10px;
  width: 100%;
  padding: 12px 14px 13px;
  border: 1px solid var(--ink);
  background: var(--bg);
  color: var(--ink);
  font: inherit;
  text-align: left;
  cursor: pointer;
  transition:
    background-color 0.2s ease,
    border-color 0.2s ease,
    color 0.2s ease;
}
.fix:hover {
  background: var(--surface-2);
}
.fix:focus-visible {
  outline-offset: 2px;
}
.fix-title {
  grid-column: 1;
  grid-row: 1;
  font-weight: 500;
  line-height: 1.3;
}
.fix-state {
  grid-column: 2;
  grid-row: 1;
  padding: 3px 8px;
  background: var(--cta-bg);
  color: var(--cta-ink);
  font-size: 0.8125rem;
  font-weight: 500;
  white-space: nowrap;
  transition:
    background-color 0.2s ease,
    color 0.2s ease;
}
.fix-text,
.fix-meta {
  grid-column: 1 / -1;
  font-size: 0.9375rem;
  line-height: 1.4;
}
.fix-meta {
  color: var(--muted);
  font-size: 0.8125rem;
}
.fix[aria-pressed="true"] {
  border-color: var(--good);
  background: var(--good-bg);
  color: var(--good);
}
.fix[aria-pressed="true"] .fix-meta {
  color: inherit;
}
.fix[aria-pressed="true"] .fix-state {
  background: var(--good);
  color: var(--bg);
}
/* Pressed, but it needs another fix first: neither open nor done. */
.fix.is-waiting[aria-pressed="true"] {
  border-color: var(--ink);
  background: var(--surface-2);
  color: var(--ink);
}
.fix.is-waiting[aria-pressed="true"] .fix-state {
  background: var(--ink);
  color: var(--dark-ink);
}
.fix-wait {
  grid-column: 1 / -1;
  font-size: 0.875rem;
  font-weight: 500;
  line-height: 1.35;
}
/* What the platform itself says about the fix pressed last. Room for three lines is kept,
   so the page below does not move when the words change. */
.why-fix {
  display: grid;
  align-content: start;
  gap: 4px;
  min-height: 5.6em;
}
.why-hint,
.fix-source {
  font-size: 0.875rem;
  line-height: 1.45;
}
.why-hint {
  color: var(--muted);
}
.fix-source strong {
  font-weight: 500;
}
.fix-reset {
  justify-self: start;
}
@media (max-width: 1120px) {
  .proto.is-answers {
    grid-template-columns: minmax(0, 1fr);
    grid-template-rows: none;
    grid-template-areas:
      "top"
      "pick"
      "body";
  }
  .ans-panel {
    grid-template-columns: minmax(0, 1fr) 312px;
  }
}
@media (max-width: 860px) {
  .ans-panel {
    grid-template-columns: minmax(0, 1fr);
  }
  .ans-panel .proto-behind {
    border-top: 1px solid var(--line);
    border-left: 0;
  }
}
/* On a phone the tabs still say which business each question belongs to. */
@media (max-width: 760px) {
  .proto.is-answers .pick-kind {
    display: block;
  }
}
/* Without JavaScript the tabs cannot switch: the first sample is shown alone, across the
   board, and the tabs are left out. */
html:not(.js) .proto.is-answers {
  grid-template-columns: minmax(0, 1fr);
  grid-template-rows: none;
  grid-template-areas:
    "top"
    "body";
}
html:not(.js) .proto.is-answers .proto-pick,
html:not(.js) .proto.is-answers [role="tabpanel"]:not(.is-on) {
  display: none;
}
@media (prefers-reduced-motion: reduce) {
  .js .line.is-fresh .ans-s {
    animation: none;
  }
  .odds-marks i {
    transition: none;
  }
}

/* Report desk: the draft report in the middle, what the software did beside it. The findings
   reuse the task buttons of the answers simulator; here pressing one means it was checked. */
.rep {
  display: grid;
  gap: 12px;
}
.rep-head {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 4px 14px;
}
.rep-head strong {
  font-size: 1.0625rem;
  font-weight: 500;
}
.rep-head > span:not(.rep-state) {
  color: var(--muted);
  font-size: 0.875rem;
}
.rep-state {
  margin-left: auto;
  padding: 3px 9px;
  background: var(--ink);
  color: var(--dark-ink);
  font-size: 0.8125rem;
  font-weight: 500;
  white-space: nowrap;
}
.rep-state[data-kind="signed"] {
  background: var(--good);
}
.rep-state[data-kind="back"] {
  background: var(--pop);
  color: var(--on-pop);
}
.rep-aside {
  color: var(--muted);
  font-size: 0.875rem;
  line-height: 1.45;
}
.fix:disabled {
  cursor: default;
}
.fix:disabled:hover {
  background: var(--bg);
}
.fix[aria-pressed="true"]:disabled:hover {
  background: var(--good-bg);
}
.desk-hint {
  display: none;
  color: var(--muted);
  font-size: 0.875rem;
}
.js .desk-hint {
  display: block;
}
/* What the software did with the file: five counts, each smaller than the one before. */
.pipe {
  display: grid;
  gap: 0;
}
.pipe li {
  display: grid;
  gap: 1px;
  padding: 10px 0;
  border-top: 1px solid var(--line);
  transition:
    opacity 0.4s ease calc(var(--i) * 200ms + 150ms),
    transform 0.5s var(--ease) calc(var(--i) * 200ms + 150ms);
}
.pipe li:first-child {
  border-top: 0;
  padding-top: 0;
}
.pipe b {
  color: var(--accent);
  font-size: 1.75rem;
  font-weight: 300;
  letter-spacing: -0.03em;
  line-height: 1.1;
  font-variant-numeric: tabular-nums;
}
.pipe li:last-child b {
  font-weight: 500;
}
.pipe span {
  font-size: 0.875rem;
  line-height: 1.35;
}
.js [data-anim]:not(.is-in) .pipe li {
  opacity: 0;
  transform: translateY(8px);
  transition: none;
}
@media (prefers-reduced-motion: reduce) {
  .pipe li,
  .flow-file code {
    transition: none;
  }
}

/* When screening starts: two large starting ages, then two bars on one axis of ages. */
.ages-pick {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}
.ages-panel {
  gap: 20px;
}
.age-starts {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}
.age-starts p {
  display: grid;
  align-content: start;
  gap: 4px;
}
.age-starts b {
  color: var(--muted);
  font-size: clamp(3.25rem, 2.2rem + 4vw, 5.5rem);
  font-weight: 300;
  letter-spacing: -0.04em;
  line-height: 0.9;
  font-variant-numeric: tabular-nums;
}
.age-starts .is-genes b {
  color: var(--accent);
}
.age-starts span {
  font-size: 0.9375rem;
  font-weight: 500;
  line-height: 1.3;
}
.age-chart {
  display: grid;
  gap: 8px;
}
.age-row,
.age-axis {
  display: grid;
  grid-template-columns: 8.4em minmax(0, 1fr);
  align-items: center;
  gap: 12px;
}
.age-name {
  font-size: 0.875rem;
  line-height: 1.25;
}
.age-row.is-genes .age-name {
  font-weight: 500;
}
.age-track {
  position: relative;
  display: block;
  height: 26px;
  background: var(--surface);
}
.age-track i {
  position: absolute;
  top: 0;
  bottom: 0;
  left: var(--from);
  width: var(--len);
  background: color-mix(in srgb, var(--accent) 34%, var(--bg));
  transform-origin: left;
  transition: transform 0.9s var(--ease) 0.2s;
}
.age-row.is-genes .age-track i {
  background: var(--accent);
  transition-delay: 0.7s;
}
/* No end age in the source: the bar runs off the end of the axis. */
.age-track i.is-open::after {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  right: 0;
  width: 28px;
  background: linear-gradient(to right, transparent, var(--surface));
}
.age-ticks {
  position: relative;
  display: block;
  height: 1.4em;
  color: var(--muted);
  font-size: 0.8125rem;
}
.age-ticks b {
  position: absolute;
  left: var(--at);
  font-weight: 400;
  font-variant-numeric: tabular-nums;
  transform: translateX(-50%);
}
.age-ticks b:first-child {
  transform: none;
}
.age-ticks b:last-child {
  transform: translateX(-100%);
}
.age-notes {
  display: grid;
  gap: 0;
}
.age-notes div {
  display: grid;
  gap: 2px;
  padding: 10px 0;
  border-top: 1px solid var(--line);
}
.age-notes dt {
  color: var(--muted);
  font-size: 0.8125rem;
}
.age-notes dd {
  font-size: 0.9375rem;
  line-height: 1.4;
}
.age-notes .is-genes dd {
  font-weight: 500;
}
.age-notes a {
  color: var(--muted);
  font-size: 0.8125rem;
  font-weight: 400;
  text-underline-offset: 3px;
  white-space: nowrap;
}
.js [data-anim]:not(.is-in) .age-track i {
  transform: scaleX(0);
  transition: none;
}
@media (max-width: 620px) {
  .age-row,
  .age-axis {
    grid-template-columns: minmax(0, 1fr);
    gap: 4px;
  }
  .age-axis > span:first-child {
    display: none;
  }
  .age-notes a {
    white-space: normal;
  }
}
@media (prefers-reduced-motion: reduce) {
  .age-track i {
    transition: none;
  }
}

/* Training bench: what was dictated, the model drawn as a small network, its draft line by line
   and the count of test cases that pass. The lessons reuse the task buttons of the answers
   simulator; here pressing one means the model was given that lesson. */
.net {
  display: grid;
  gap: 8px;
  padding: 12px 14px 10px;
  background: var(--surface);
}
.net-cap {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 2px 14px;
  font-size: 0.875rem;
}
.net-cap span {
  color: var(--muted);
}
.net-cap b {
  font-weight: 500;
}
.net-draw {
  display: block;
  width: 100%;
  height: auto;
}
.net-edges line {
  stroke: color-mix(in srgb, var(--ink) 18%, transparent);
  stroke-width: 1;
}
.net-nodes circle {
  fill: var(--bg);
  stroke: var(--ink);
  stroke-width: 1.5;
  transition: fill 0.4s ease 0.6s;
}
/* A lesson darkens its own connections, layer after layer, from what goes in to the draft. */
.net.has-past line[data-edge="past"],
.net.has-fixes line[data-edge="fixes"],
.net.has-rules line[data-edge="rules"] {
  stroke: var(--accent);
  stroke-width: 1.75;
  stroke-dasharray: 190;
  animation: net-run 0.55s var(--ease) calc(var(--i) * 200ms) backwards;
}
.net.has-past.has-fixes.has-rules .net-nodes circle {
  fill: var(--pop);
}
@keyframes net-run {
  from {
    stroke: var(--pop);
    stroke-dashoffset: 190;
  }
  to {
    stroke-dashoffset: 0;
  }
}
/* The draft, one line of the document per row. A line the general model got wrong carries a
   note of what is wrong; after its lesson the corrected line stands in the same place. */
.tr-rows {
  display: grid;
  border: 1px solid var(--ink);
}
.tr-row {
  display: grid;
  grid-template-columns: 8.4em minmax(0, 1fr);
  gap: 4px 14px;
  padding: 10px 14px;
  border-top: 1px solid var(--line);
  transition: background-color 0.4s ease 0.45s;
}
.tr-row:first-child {
  border-top: 0;
}
.tr-row dt {
  padding-top: 2px;
  color: var(--muted);
  font-size: 0.875rem;
}
.tr-row dd {
  line-height: 1.45;
}
.tr-row.is-flaw {
  background: color-mix(in srgb, var(--pop) 14%, var(--bg));
}
.tr-row.is-learned {
  background: var(--good-bg);
}
.tr-swap {
  display: grid;
}
.tr-swap > span {
  grid-area: 1 / 1;
  display: grid;
  align-content: start;
  justify-items: start;
  gap: 5px;
}
.tr-swap > .is-off {
  visibility: hidden;
}
.tr-issue,
.tr-ok {
  font-size: 0.8125rem;
  font-style: normal;
  font-weight: 500;
  line-height: 1.3;
}
.tr-issue {
  padding: 2px 8px;
  background: var(--pop);
  color: var(--on-pop);
}
.tr-ok {
  color: var(--good);
}
.js .tr-after.is-fresh {
  animation: tr-in 0.5s var(--ease) 0.45s backwards;
}
@keyframes tr-in {
  from {
    opacity: 0;
    transform: translateY(6px);
  }
}
@media (max-width: 560px) {
  .tr-row {
    grid-template-columns: minmax(0, 1fr);
  }
}
@media (prefers-reduced-motion: reduce) {
  .net.has-past line[data-edge="past"],
  .net.has-fixes line[data-edge="fixes"],
  .net.has-rules line[data-edge="rules"],
  .js .tr-after.is-fresh {
    animation: none;
  }
  .net-nodes circle,
  .tr-row {
    transition: none;
  }
}

/* Three ways to make a model yours: the same three boxes each time (a question, the model, the
   answer) and, in the highlight colour, where the clinic's knowledge sits. */
.ways-pick {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}
.ways-panel {
  gap: 18px;
}
.way-draw {
  --way-gap: clamp(22px, 5vw, 46px);
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  grid-template-rows: minmax(78px, auto) minmax(3.7em, auto);
  gap: 10px var(--way-gap);
  padding: 18px 16px;
  background: var(--surface);
}
.way-box {
  position: relative;
  display: grid;
  align-content: center;
  justify-items: center;
  gap: 8px;
  min-height: 78px;
  padding: 10px 8px;
  border: 1px solid var(--ink);
  background: var(--bg);
  font-size: 0.9375rem;
  font-weight: 500;
  line-height: 1.25;
  text-align: center;
}
.way-box.is-m {
  background: var(--ink);
  color: var(--dark-ink);
}
/* An arrow joins each box to the next. */
.way-box.is-m::before,
.way-box.is-a::before,
.way-box.is-m::after,
.way-box.is-a::after {
  content: "";
  position: absolute;
  top: 50%;
}
.way-box.is-m::before,
.way-box.is-a::before {
  left: calc(var(--way-gap) * -1 + 5px);
  width: calc(var(--way-gap) - 12px);
  height: 2px;
  margin-top: -1px;
  background: var(--ink);
}
.way-box.is-m::after,
.way-box.is-a::after {
  left: -17px;
  width: 9px;
  height: 9px;
  border-top: 2px solid var(--ink);
  border-right: 2px solid var(--ink);
  transform: translateY(-50%) rotate(45deg);
}
.way-know {
  grid-row: 2;
  align-self: start;
  padding: 8px 10px;
  background: var(--pop);
  color: var(--on-pop);
  font-size: 0.8125rem;
  font-style: normal;
  font-weight: 500;
  line-height: 1.3;
  text-align: center;
  transition:
    opacity 0.45s ease 0.35s,
    transform 0.6s var(--ease) 0.35s;
}
.way-draw.is-ask .way-know {
  grid-column: 1;
}
.way-draw.is-library .way-know {
  grid-column: 2;
}
/* Training: the knowledge is inside the model, so the boxes take the whole height. */
.way-draw.is-inside .way-box {
  grid-row: 1 / 3;
}
.way-box .way-know {
  grid-row: auto;
  align-self: auto;
}
.js [data-anim]:not(.is-in) .way-know {
  opacity: 0;
  transform: translateY(10px);
  transition: none;
}
@media (max-width: 560px) {
  .way-draw {
    --way-gap: 22px;
    padding: 14px 10px;
  }
  .way-box {
    padding: 8px 4px;
    font-size: 0.875rem;
  }
  .way-draw.is-ask .way-know {
    grid-column: 1 / 3;
    text-align: left;
  }
  .way-draw.is-library .way-know {
    grid-column: 1 / -1;
  }
}
@media (prefers-reduced-motion: reduce) {
  .way-know {
    transition: none;
  }
}

/* Sample of the monthly report: one view per assistant, three figures each. */
/* Six assistants, three to a row; the dividers are the gaps over the line colour. */
.vis-pick {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px;
  background: var(--line);
}
.vis-pick .pick {
  border: 0;
}
.vis-panel {
  gap: 0;
  padding: 0;
}
.vis-fig {
  display: grid;
  gap: 12px;
  margin: 0;
  padding: 18px 24px 20px;
  border-bottom: 1px solid var(--line);
}
.vis-fig:last-child {
  border-bottom: 0;
}
.vis-fig figcaption {
  font-weight: 500;
}
.vis-value {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 4px 12px;
  color: var(--muted);
  font-size: 0.9375rem;
}
.vis-value b {
  color: var(--accent);
  font-size: clamp(2.75rem, 2rem + 2.6vw, 4rem);
  font-weight: 300;
  letter-spacing: -0.04em;
  line-height: 0.9;
  font-variant-numeric: tabular-nums;
}
/* Eight weeks on one scale of ten answers; the weeks after the fixes are darker. */
.weeks {
  display: grid;
  grid-template-columns: repeat(8, minmax(0, 1fr));
  gap: 6px;
  height: 124px;
}
.week {
  display: grid;
  grid-template-rows: minmax(0, 1fr) auto;
  gap: 5px;
  color: var(--muted);
  font-size: 0.8125rem;
  text-align: center;
}
.week i {
  align-self: end;
  display: block;
  height: calc(var(--h) * 1%);
  min-height: 2px;
  background: color-mix(in srgb, var(--accent) 34%, var(--bg));
  transform-origin: bottom;
  transition: transform 0.7s var(--ease) calc(var(--i) * 70ms + 100ms);
}
.week.is-after i {
  background: var(--accent);
}
.week b {
  font-weight: 400;
  font-variant-numeric: tabular-nums;
}
.week.is-fix b {
  background: var(--pop);
  color: var(--on-pop);
  font-weight: 500;
}
.weeks-key {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 4px 12px;
  color: var(--muted);
  font-size: 0.8125rem;
}
.weeks-fix::before {
  content: "";
  display: inline-block;
  width: 10px;
  height: 10px;
  margin-right: 6px;
  background: var(--pop);
}
.vis-rows {
  display: grid;
  gap: 10px;
}
.vis-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: baseline;
  gap: 4px 12px;
  font-size: 0.9375rem;
}
.vis-row b {
  font-weight: 500;
  font-variant-numeric: tabular-nums;
}
.vis-row.is-own span:first-child {
  font-weight: 500;
}
.vis-track {
  grid-column: 1 / -1;
  display: block;
  height: 8px;
  background: var(--surface-2);
}
.vis-track i {
  display: block;
  height: 100%;
  background: color-mix(in srgb, var(--accent) 46%, var(--bg));
  transform: scaleX(var(--share));
  transform-origin: left;
  transition: transform 0.8s var(--ease) calc(var(--i) * 120ms + 150ms);
}
.vis-row.is-own .vis-track i {
  background: var(--accent);
}
.vis-sources {
  display: grid;
  gap: 6px;
  counter-reset: source;
}
.vis-sources li {
  display: grid;
  grid-template-columns: 1.6em minmax(0, 1fr);
  font-size: 0.9375rem;
  counter-increment: source;
}
.vis-sources li::before {
  content: counter(source);
  color: var(--muted);
  font-variant-numeric: tabular-nums;
}
.vis-sources li.is-own {
  font-weight: 500;
}
.js [data-anim]:not(.is-in) .week i {
  transform: scaleY(0);
  transition: none;
}
.js [data-anim]:not(.is-in) .vis-track i {
  transform: scaleX(0);
  transition: none;
}
@media (max-width: 620px) {
  .vis-pick {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .vis-fig {
    padding: 16px;
  }
}
@media (prefers-reduced-motion: reduce) {
  .week i,
  .vis-track i {
    transition: none;
  }
}

/* Prototype layout: callers, the call, what it understood, what it used.
   On a phone the block it acts on (the booking system) sits above the call, so the change is seen. */
.proto {
  display: grid;
  grid-template-columns: 224px minmax(0, 1fr) 292px;
  grid-template-rows: auto auto 1fr;
  grid-template-areas:
    "top top top"
    "pick main facts"
    "pick main used";
  background: var(--bg);
  border: 1px solid var(--ink);
  box-shadow: 0 28px 64px -32px rgb(14 14 42 / 0.55);
}
.proto-top {
  grid-area: top;
}
.proto-pick {
  grid-area: pick;
}
.proto-main {
  grid-area: main;
  display: grid;
  gap: 14px;
  align-content: start;
  min-width: 0;
  padding: 18px 24px 24px;
}
.proto-facts,
.proto-used {
  border-left: 1px solid var(--line);
  background: var(--surface);
}
.proto-facts {
  grid-area: facts;
  padding: 18px 20px 6px;
}
.proto-used {
  grid-area: used;
  padding: 12px 20px 22px;
}
@media (max-width: 1120px) {
  .proto {
    grid-template-columns: minmax(0, 1fr) 272px;
    grid-template-rows: auto auto auto 1fr;
    grid-template-areas:
      "top top"
      "pick pick"
      "main facts"
      "main used";
  }
  .proto-pick {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }
  .proto-pick .pick {
    min-height: 64px;
    border-bottom: 0;
    border-right: 1px solid var(--line);
  }
  .proto-pick .pick:last-child {
    border-right: 0;
  }
  .proto-pick.picks-4 {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
  .proto-pick.picks-5 {
    grid-template-columns: repeat(5, minmax(0, 1fr));
  }
}
/* Beside the facts column the call is narrow: four stages in a row no longer fit. */
@media (max-width: 860px) {
  .stages {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
@media (max-width: 760px) {
  .proto {
    grid-template-columns: minmax(0, 1fr);
    grid-template-rows: none;
    grid-template-areas:
      "top"
      "pick"
      "used"
      "main"
      "facts";
  }
  .proto-top {
    padding-left: 16px;
  }
  .proto-main {
    padding: 16px;
  }
  .proto-facts,
  .proto-used {
    border-left: 0;
    padding: 14px 16px;
  }
  .proto-used {
    border-bottom: 1px solid var(--line);
  }
  .proto-facts {
    border-top: 1px solid var(--line);
  }
  .proto-facts .facts {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0 16px;
  }
  .pick {
    padding: 12px;
  }
  /* Four callers sit two by two on a phone. */
  .proto-pick.picks-4 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .proto-pick.picks-4 .pick {
    min-height: 52px;
  }
  .proto-pick.picks-4 .pick:nth-child(2n) {
    border-right: 0;
  }
  .proto-pick.picks-4 .pick:nth-child(-n + 2) {
    border-bottom: 1px solid var(--line);
  }
  /* Five callers: two rows of two, and the returning caller across the last row. */
  .proto-pick.picks-5 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .proto-pick.picks-5 .pick {
    min-height: 52px;
  }
  .proto-pick.picks-5 .pick:nth-child(2n) {
    border-right: 0;
  }
  .proto-pick.picks-5 .pick:nth-child(-n + 4) {
    border-bottom: 1px solid var(--line);
  }
  .proto-pick.picks-5 .pick:last-child {
    grid-column: 1 / -1;
    border-right: 0;
  }
  .pick-kind {
    display: none;
  }
  /* The returning caller is told apart by its kind, so that one stays visible. */
  .proto-pick.picks-5 .pick:last-child .pick-kind {
    display: block;
  }
  .pick-name {
    font-size: 0.9375rem;
  }
  .player {
    grid-template-columns: auto minmax(0, 1fr);
  }
  .player .wave {
    grid-column: 1 / -1;
    grid-row: 2;
  }
  .player .p-time {
    justify-self: end;
  }
  .adapt-panel {
    padding: 16px;
  }
}

/* Automation prototype: one week of routines in a back office. Each routine is a row: what
   it is and where it arrives, how often it comes and how long one takes, a switch, and its
   steps as a line of boxes. A box is outlined while a person does the step, filled in the
   highlight colour when the automation does it, and heavily outlined when it stays with a
   person after the automation is on. The key above the rows says the same in words. */
.proto.is-week {
  grid-template-columns: minmax(0, 1fr) 288px;
  grid-template-rows: auto 1fr;
  grid-template-areas:
    "top top"
    "main side";
}
.wk-main {
  grid-area: main;
  min-width: 0;
}
.wk-side {
  grid-area: side;
}
/* The count stays in view while the rows scroll past. */
.wk-sum {
  position: sticky;
  top: 84px;
  display: grid;
  gap: 12px;
}
.wk-side .est-big b {
  font-size: clamp(3rem, 2rem + 3.4vw, 4.75rem);
  font-variant-numeric: tabular-nums;
}
.wk-side .est-rows dd {
  white-space: nowrap;
}
.wk-key {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 22px;
  padding: 14px 24px;
  border-bottom: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.8125rem;
}
.wk-key li {
  display: flex;
  align-items: center;
  gap: 8px;
}
.wk-key li::before {
  content: "";
  flex: none;
  width: 14px;
  height: 14px;
  box-shadow: inset 0 0 0 1px var(--ink);
}
.wk-key .is-auto::before {
  background: var(--pop);
}
.wk-key .is-person::before {
  box-shadow: inset 0 0 0 3px var(--ink);
}
.wk-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto auto;
  grid-template-areas:
    "head nums switch"
    "steps steps steps";
  align-items: center;
  gap: 14px 22px;
  padding: 18px 24px 22px;
  border-bottom: 1px solid var(--line);
}
.wk-head {
  grid-area: head;
  display: grid;
  gap: 2px;
  min-width: 0;
}
.wk-name {
  font-size: 1.1875rem;
  font-weight: 500;
  letter-spacing: -0.01em;
  line-height: 1.2;
}
.wk-from {
  color: var(--muted);
  font-size: 0.875rem;
}
.wk-nums {
  grid-area: nums;
  display: flex;
  align-items: center;
  gap: 8px 16px;
}
.wk-num {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
/* The browser's own stepper is not drawn: the arrow keys still change the number, and the
   value stands in the middle of its box. */
.wk-num input {
  width: 62px;
  height: 44px;
  padding: 0 6px;
  border: 1px solid var(--ink);
  border-radius: 0;
  background: var(--bg);
  color: var(--ink);
  font: inherit;
  font-weight: 500;
  font-variant-numeric: tabular-nums;
  text-align: center;
  appearance: textfield;
  -moz-appearance: textfield;
}
.wk-num input::-webkit-outer-spin-button,
.wk-num input::-webkit-inner-spin-button {
  margin: 0;
  appearance: none;
  -webkit-appearance: none;
}
.wk-num label {
  color: var(--muted);
  font-size: 0.875rem;
  white-space: nowrap;
}
/* What the routine takes in a week; with the automation on, what it took by hand is struck
   out beside it. The cell keeps one width, wide enough for both figures, so the fields
   before it stay where they are when a routine is switched. */
.wk-hours {
  display: flex;
  flex: none;
  align-items: baseline;
  justify-content: flex-end;
  gap: 6px;
  width: 152px;
  font-variant-numeric: tabular-nums;
}
.wk-hours b {
  font-size: 1.375rem;
  font-weight: 500;
  letter-spacing: -0.01em;
}
.wk-hours s {
  color: var(--muted);
}
.wk-hours span {
  color: var(--muted);
  font-size: 0.875rem;
  white-space: nowrap;
}
/* The switch is a checkbox under a drawn track; the checkbox keeps the keyboard and the name. */
.wk-switch {
  grid-area: switch;
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 44px;
  cursor: pointer;
}
.wk-switch input {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  margin: 0;
  opacity: 0;
  cursor: pointer;
}
.wk-track {
  position: relative;
  flex: none;
  width: 46px;
  height: 26px;
  background: var(--bg);
  box-shadow: inset 0 0 0 1px var(--ink);
  transition: background-color 0.2s ease;
}
.wk-track::after {
  content: "";
  position: absolute;
  top: 4px;
  left: 4px;
  width: 18px;
  height: 18px;
  background: var(--ink);
  transition: transform 0.25s var(--ease);
}
.wk-switch input:checked + .wk-track {
  background: var(--pop);
}
.wk-switch input:checked + .wk-track::after {
  transform: translateX(20px);
}
.wk-switch input:focus-visible + .wk-track {
  outline: 2px solid var(--ink);
  outline-offset: 3px;
}
.wk-switch-text {
  font-weight: 500;
}
.wk-steps {
  grid-area: steps;
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(0, 1fr);
  gap: 14px;
}
.wk-step {
  position: relative;
  display: flex;
  align-items: center;
  min-height: 52px;
  padding: 8px 12px;
  /* The highlight colour waits at the left edge of the box and is drawn across it. */
  background: var(--bg) linear-gradient(var(--pop), var(--pop)) no-repeat left /
    0% 100%;
  box-shadow: inset 0 0 0 1px var(--ink);
  font-size: 0.8125rem;
  line-height: 1.25;
  transition:
    background-size 0.36s var(--ease) calc(var(--i) * 90ms),
    box-shadow 0.3s ease calc(var(--i) * 90ms);
}
/* A short line joins each step to the next. */
.wk-step + .wk-step::before {
  content: "";
  position: absolute;
  top: 50%;
  left: -14px;
  width: 14px;
  height: 1px;
  background: var(--ink);
}
.wk-step + .wk-step::before {
  transition: transform 0.3s var(--ease) calc(var(--i) * 90ms);
}
/* Switched on: the steps fill one after another, and the line between two steps the
   automation does grows heavier; the line that hands over to a person stays thin. */
.wk-row.is-on .wk-step:not(.is-person) {
  background-size: 100% 100%;
  color: var(--on-pop);
}
.wk-row.is-on .wk-step:not(.is-person) + .wk-step:not(.is-person)::before {
  transform: scaleY(3);
}
.wk-row.is-on .wk-step.is-person {
  box-shadow: inset 0 0 0 3px var(--ink);
  font-weight: 500;
}
.wk-foot {
  display: grid;
  gap: 12px;
  padding: 18px 24px 22px;
}
/* Shown only where the count of the week stands under the rows, out of sight while a
   routine is switched: the hours given back then follow at the bottom of the screen. */
.wk-live {
  display: none;
}
@media (max-width: 1120px) {
  .proto.is-week {
    grid-template-columns: minmax(0, 1fr);
    grid-template-rows: none;
    grid-template-areas:
      "top"
      "main"
      "side";
  }
  .wk-side {
    border-left: 0;
    border-top: 1px solid var(--line);
  }
  .wk-sum {
    position: static;
  }
  .wk-live {
    position: sticky;
    bottom: 0;
    z-index: 1;
    display: flex;
    align-items: baseline;
    gap: 10px;
    padding: 10px 24px;
    background: var(--ink);
    color: var(--dark-ink);
  }
  .wk-live b {
    font-size: 1.5rem;
    font-weight: 500;
    font-variant-numeric: tabular-nums;
  }
}
/* Narrower than a laptop: the name and the switch on one line, the numbers under them. */
@media (max-width: 960px) {
  .wk-row {
    grid-template-columns: minmax(0, 1fr) auto;
    grid-template-areas:
      "head switch"
      "nums nums"
      "steps steps";
  }
  .wk-hours {
    width: auto;
    margin-left: auto;
  }
}
/* Where six boxes in a row would be too narrow for their words: one step under another,
   each on its own line. */
@media (max-width: 860px) {
  .wk-steps {
    grid-auto-flow: row;
    grid-auto-columns: auto;
    gap: 6px;
  }
  .wk-step {
    min-height: 40px;
  }
  .wk-step + .wk-step::before {
    top: -6px;
    left: 18px;
    width: 1px;
    height: 6px;
  }
  .wk-row.is-on .wk-step:not(.is-person) + .wk-step:not(.is-person)::before {
    transform: scaleX(3);
  }
}
@media (max-width: 760px) {
  .wk-key {
    padding: 12px 16px;
  }
  .wk-row {
    gap: 12px 16px;
    padding: 16px 16px 18px;
  }
  .wk-nums {
    flex-wrap: wrap;
  }
  .wk-foot {
    padding: 16px;
  }
  .wk-live {
    padding: 10px 16px;
  }
}
@media (prefers-reduced-motion: reduce) {
  .wk-step,
  .wk-step + .wk-step::before,
  .wk-track,
  .wk-track::after {
    transition: none;
  }
}

/* Contract tracking prototype: a supplier contract on its approval route. The route is a line
   of stations: outlined in ink once a department has acted, in the highlight colour where the
   contract is now, dashed where it must pass again after the supplier's reply, faint where it
   has not been yet. A bracket under the route joins the supplier to the station its reply goes
   back to. Under the route, who has the contract, what was done last and the action for that
   department; then every change since the supplier's first version, which Legal checks before
   it approves (the check buttons of the report desk); beside it, the counts and the history. */
/* On a desktop the side column gives the route a little more room than the other desks. */
@media (min-width: 1121px) {
  .proto.is-route .ans-panel {
    grid-template-columns: minmax(0, 1fr) 300px;
  }
}
/* The route is laid out by the room its own column has, not by the width of the screen. */
.proto.is-route .proto-main {
  container: ct-main / inline-size;
}
.ct-route {
  --ct-gap: 8px;
  display: grid;
  grid-template-columns: repeat(var(--n, 6), minmax(0, 1fr));
  gap: var(--ct-gap);
}
.ct-station {
  position: relative;
  display: grid;
  align-content: start;
  gap: 3px;
  min-height: 68px;
  padding: 9px 8px;
  box-shadow: inset 0 0 0 1px var(--line);
  color: var(--muted);
  font-size: 0.8125rem;
  line-height: 1.3;
  overflow-wrap: anywhere;
  transition:
    background-color 0.35s ease,
    box-shadow 0.35s ease,
    color 0.35s ease;
}
.ct-station b {
  color: var(--ink);
  font-weight: 500;
  overflow-wrap: normal;
}
/* A short line joins each station to the next; it is drawn in ink up to where the contract is. */
.ct-station + .ct-station::before {
  content: "";
  position: absolute;
  top: 50%;
  left: calc(-1 * var(--ct-gap));
  width: var(--ct-gap);
  height: 1px;
  background: var(--line);
}
.ct-station.is-done + .ct-station::before,
.ct-station.is-again + .ct-station::before {
  background: var(--ink);
}
.ct-station.is-done {
  box-shadow: inset 0 0 0 1px var(--ink);
  color: var(--ink);
}
.ct-station.is-again {
  box-shadow: none;
  outline: 1px dashed var(--ink);
  outline-offset: -1px;
  color: var(--ink);
}
.ct-station.is-now {
  background: var(--pop);
  box-shadow: inset 0 0 0 3px var(--ink);
  color: var(--on-pop);
}
.ct-station.is-now b {
  color: var(--on-pop);
}
/* The way back: from the middle of the supplier's station down, along, and up into the middle
   of the station the reply goes back to, with an arrowhead there. */
.ct-back {
  position: relative;
  grid-row: 2;
  grid-column: var(--from) / var(--to);
  padding: 14px 8px 0;
  color: var(--ink);
  font-size: 0.8125rem;
  font-weight: 500;
  line-height: 1.3;
  text-align: center;
}
.ct-back::before {
  content: "";
  position: absolute;
  top: calc(-1 * var(--ct-gap));
  left: calc(50% / var(--span));
  right: calc(50% / var(--span));
  height: calc(var(--ct-gap) + 8px);
  border: 1px solid var(--ink);
  border-top: 0;
}
.ct-back::after {
  content: "";
  position: absolute;
  top: calc(-1 * var(--ct-gap) - 1px);
  left: calc(50% / var(--span) - 4px);
  width: 7px;
  height: 7px;
  border-top: 1px solid var(--ink);
  border-left: 1px solid var(--ink);
  transform: rotate(45deg);
}
.ct-now {
  display: grid;
  gap: 8px;
  padding: 14px 16px 16px;
  background: var(--surface);
}
.ct-now-text {
  font-size: 1.0625rem;
  font-weight: 500;
  line-height: 1.35;
}
/* What was done last, and why it went where it went. */
.ct-last {
  color: var(--muted);
  font-size: 0.9375rem;
  line-height: 1.45;
}
.ct-now .desk-actions {
  margin-top: 4px;
}
.ct-changes {
  display: grid;
  gap: 4px;
}
.ct-changes .fix-text {
  display: grid;
  gap: 2px;
}
.ct-was,
.ct-is {
  display: grid;
  grid-template-columns: 40px minmax(0, 1fr);
  gap: 8px;
}
.ct-was i,
.ct-is i {
  color: var(--muted);
  font-size: 0.8125rem;
  font-style: normal;
  line-height: 1.6;
}
.ct-was s {
  color: var(--muted);
  text-decoration-thickness: 1.5px;
}
.ct-is {
  font-weight: 500;
}
.fix[aria-pressed="true"] .ct-was i,
.fix[aria-pressed="true"] .ct-is i,
.fix[aria-pressed="true"] .ct-was s {
  color: inherit;
}
.ct-empty {
  color: var(--muted);
  font-size: 0.9375rem;
}
/* The side: the counts, then every step on one line with its day, newest last; the person
   notified follows on the same line when it fits. */
.ct-side .est-rows dd {
  font-variant-numeric: tabular-nums;
}
.ct-log-title {
  margin-top: 8px;
}
.ct-log {
  display: grid;
}
.ct-log li {
  display: grid;
  grid-template-columns: 46px minmax(0, 1fr);
  gap: 0 8px;
  padding: 7px 0;
  border-top: 1px solid var(--line);
  font-size: 0.875rem;
  line-height: 1.35;
}
.ct-log b {
  font-weight: 500;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}
.ct-log span {
  grid-column: 2;
}
.ct-log em {
  grid-column: 2;
  color: var(--muted);
  font-size: 0.8125rem;
  font-style: normal;
}
.ct-log li.is-fresh {
  animation: ct-arrive 0.45s var(--ease) both;
}
@keyframes ct-arrive {
  from {
    opacity: 0;
    transform: translateY(6px);
  }
}
/* Where six stations in a row would not hold their names: the route stands one station under
   another, and the way back is a bracket at its right, from the supplier up to the station the
   reply goes back to. */
@container ct-main (max-width: 600px) {
  .ct-route {
    --ct-gap: 6px;
    grid-template-columns: minmax(0, 1fr);
    column-gap: 6px;
  }
  /* The narrow column for the bracket is kept only while there is a way back to draw. */
  .ct-route.has-back {
    grid-template-columns: minmax(0, 1fr) 14px;
  }
  .ct-station {
    grid-column: 1;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: baseline;
    min-height: 0;
    padding: 9px 12px;
  }
  .ct-station span {
    text-align: right;
  }
  .ct-station + .ct-station::before {
    top: calc(-1 * var(--ct-gap));
    left: 18px;
    width: 1px;
    height: var(--ct-gap);
  }
  .ct-back {
    grid-column: 2;
    grid-row: var(--from) / var(--to);
    padding: 0;
  }
  .ct-back span {
    position: absolute;
    width: 1px;
    height: 1px;
    margin: -1px;
    overflow: hidden;
    clip-path: inset(50%);
    white-space: nowrap;
  }
  .ct-back::before {
    top: calc(50% / var(--span));
    bottom: calc(50% / var(--span));
    left: -6px;
    right: auto;
    width: 12px;
    height: auto;
    border: 1px solid var(--ink);
    border-left: 0;
  }
  .ct-back::after {
    top: calc(50% / var(--span) - 4px);
    left: -7px;
    transform: rotate(-45deg);
  }
}
@media (prefers-reduced-motion: reduce) {
  .ct-station {
    transition: none;
  }
  .ct-log li.is-fresh {
    animation: none;
  }
}

/* How automation works, drawn: one routine as its steps, top to bottom, three times. A step
   is outlined while a person does it, struck out when it is cut, filled when the automation
   does it and heavily outlined when it stays with a person. */
.flow-scene.is-line {
  align-content: start;
  gap: 8px;
  min-height: 268px;
}
.flow-line-name {
  font-size: 0.875rem;
  font-weight: 500;
}
.flow-line {
  display: grid;
  gap: 5px;
}
.flow-line i {
  padding: 6px 10px;
  box-shadow: inset 0 0 0 1px var(--ink);
  font-size: 0.8125rem;
  font-style: normal;
  line-height: 1.3;
  transition:
    opacity 0.4s ease calc(var(--i) * 150ms + 200ms),
    transform 0.5s var(--ease) calc(var(--i) * 150ms + 200ms);
}
.flow-line i.is-cut {
  box-shadow: inset 0 0 0 1px var(--line);
  color: var(--muted);
  text-decoration: line-through;
  text-decoration-thickness: 1.5px;
}
.flow-line i.is-auto {
  background: var(--pop);
  color: var(--on-pop);
}
.flow-line i.is-person {
  box-shadow: inset 0 0 0 3px var(--ink);
  font-weight: 500;
}
.flow-line-foot {
  justify-self: start;
  margin-top: 2px;
  padding: 5px 10px;
  background: var(--ink);
  color: var(--dark-ink);
  font-size: 0.8125rem;
  font-weight: 500;
  transition: opacity 0.4s ease 1100ms;
}
.js [data-anim]:not(.is-in) .flow-line i {
  opacity: 0;
  transform: translateY(6px);
  transition: none;
}
.js [data-anim]:not(.is-in) .flow-line-foot {
  opacity: 0;
  transition: none;
}
@media (max-width: 960px) {
  .flow-scene.is-line {
    min-height: 0;
  }
}
@media (prefers-reduced-motion: reduce) {
  .flow-line i,
  .flow-line-foot {
    transition: none;
  }
}

/* On the home page a second group of the same form follows the first with one gap, not two. */
.sec.is-next {
  padding-top: 0;
}

/* About: the team is the working piece of the page. Each portrait is half photograph, half
   network, and the visitor moves the line between the two. Without JavaScript the
   photographs are shown whole. */
.hero.is-about .hero-side {
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 20px clamp(28px, 4vw, 64px);
  align-items: end;
  justify-items: stretch;
}
.hero.is-about .lead {
  max-width: 60ch;
}
.faces {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  background: var(--bg);
  border: 1px solid var(--ink);
  box-shadow: 0 28px 64px -32px rgb(14 14 42 / 0.55);
}
/* Between two portraits the divider is dark, so the only light lines on the panel are the
   three the visitor can move. */
.face + .face .portrait {
  border-left: 1px solid var(--dark-line);
}
.face + .face .face-who {
  border-left: 1px solid var(--line);
}
.face figure {
  display: grid;
  grid-template-rows: auto 1fr;
  height: 100%;
}
.portrait {
  --split: 100%;
  position: relative;
  aspect-ratio: 4 / 5;
  overflow: hidden;
  background: var(--dark);
}
.portrait img,
.portrait canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}
.portrait img {
  object-fit: cover;
  object-position: 50% 0;
}
.portrait canvas,
.portrait-line,
.portrait-range {
  display: none;
}
.js .portrait.is-ready img {
  clip-path: inset(0 calc(100% - var(--split)) 0 0);
}
.js .portrait.is-ready canvas {
  display: block;
  clip-path: inset(0 0 0 var(--split));
}
/* The clothes sink into the panel, so three different shirts do not compete with three faces. */
.portrait::after {
  content: "";
  position: absolute;
  inset: auto 0 0;
  z-index: 1;
  height: 36%;
  background: linear-gradient(to top, var(--dark) 30%, transparent);
  pointer-events: none;
}
.js .portrait.is-ready .portrait-line {
  display: block;
  position: absolute;
  top: 0;
  bottom: 0;
  left: var(--split);
  z-index: 2;
  width: 1px;
  background: var(--pop);
  pointer-events: none;
}
.portrait-grip {
  position: absolute;
  left: 50%;
  bottom: 20px;
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  margin-left: -22px;
  background: var(--pop);
  color: var(--on-pop);
}
.portrait-grip svg {
  width: 22px;
  height: 22px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.75;
}
/* The control is an ordinary slider laid over the whole portrait and not drawn: it gives the
   pointer, the keyboard and screen readers one familiar thing to move. Its thumb is one
   pixel wide, so the line stands exactly where the pointer is. */
.js .portrait.is-ready .portrait-range {
  display: block;
  position: absolute;
  inset: 0;
  z-index: 3;
  width: 100%;
  height: 100%;
  margin: 0;
  opacity: 0;
  cursor: ew-resize;
  touch-action: pan-y;
  -webkit-appearance: none;
  appearance: none;
  background: transparent;
}
.portrait-range::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 1px;
  height: 100px;
}
.portrait-range::-moz-range-thumb {
  width: 1px;
  height: 100px;
  border: 0;
}
.portrait-range:focus-visible ~ .portrait-line .portrait-grip {
  outline: 2px solid var(--dark-ink);
  outline-offset: 3px;
}
.face-who {
  display: grid;
  gap: 2px;
  align-content: start;
  padding: 20px 22px 26px;
}
.face-who strong {
  font-size: var(--step-lead);
  font-weight: 500;
  letter-spacing: -0.01em;
  line-height: 1.2;
}
.face-who span {
  color: var(--muted);
}
.face-who p {
  margin-top: 10px;
  font-size: 1rem;
}

/* How we work: four scenes on one path, in two parts. The first two happen before the client
   decides, the last two after; a dashed line between them marks the decision. The small
   squares in the corner of a scene say who acts there: outlined for the client, solid for
   the team, in the highlight colour for the assistants. The key above names them. */
.path-key {
  display: flex;
  flex-wrap: wrap;
  gap: 8px clamp(18px, 2.4vw, 34px);
  font-weight: 500;
}
.path-key li {
  display: flex;
  align-items: center;
  gap: 10px;
}
.path-key li::before {
  content: "";
  flex: none;
  width: 14px;
  height: 14px;
}
.path-key .is-you::before,
.path-acts .is-you.is-on {
  background: var(--bg);
  box-shadow: inset 0 0 0 2px var(--ink);
}
.path-key .is-us::before,
.path-acts .is-us.is-on {
  background: var(--ink);
  box-shadow: none;
}
.path-key .is-ai::before,
.path-acts .is-ai.is-on {
  background: var(--pop);
  box-shadow: inset 0 0 0 2px var(--ink);
}
/* The two parts and their four steps stand on the rows of one grid: the name of the part, the
   scene, the numeral, the name of the step, its text and what the client gets. Each of those
   then stands on one level in all four steps, however long a line runs. */
.path {
  --path-gap: clamp(14px, 1.8vw, 24px);
  --path-row: 8px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 30px minmax(0, 1fr);
  gap: var(--path-row) var(--path-gap);
  counter-reset: step;
}
.path-group {
  display: grid;
  grid-row: span 6;
  grid-template-rows: subgrid;
  row-gap: var(--path-row);
}
.path-group h3 {
  margin-bottom: 8px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--ink);
  font-size: 1.0625rem;
  font-weight: 500;
}
.path-group ol {
  display: grid;
  grid-row: span 5;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  grid-template-rows: subgrid;
  gap: var(--path-row) var(--path-gap);
}
.path-step {
  display: grid;
  grid-row: span 5;
  grid-template-rows: subgrid;
  row-gap: var(--path-row);
  counter-increment: step;
}
/* The decision between the two parts: a dashed line down the middle, with its name on it. */
.path-gate {
  position: relative;
  grid-row: span 6;
}
.path-gate::before {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  left: 50%;
  border-left: 2px dashed var(--ink);
}
.path-gate span {
  position: absolute;
  top: 128px;
  left: 50%;
  padding: 10px 5px;
  background: var(--pop);
  color: var(--on-pop);
  font-size: 0.8125rem;
  font-weight: 500;
  line-height: 1;
  white-space: nowrap;
  writing-mode: vertical-rl;
  transform: translateX(-50%);
  transition: opacity 0.4s ease 1500ms;
}
.path-scene {
  display: grid;
  align-content: space-between;
  gap: 10px;
  min-height: 236px;
  margin-bottom: 6px;
  padding: 14px;
  border: 1px solid var(--ink);
  background: var(--bg);
  font-size: 0.875rem;
  line-height: 1.3;
}
.path-scene > * {
  transition:
    opacity 0.4s ease calc(var(--s) * 650ms + var(--k, 0) * 170ms + 150ms),
    transform 0.5s var(--ease)
      calc(var(--s) * 650ms + var(--k, 0) * 170ms + 150ms);
}
.path-scene > :nth-child(2) {
  --k: 1;
}
.path-scene > :nth-child(3) {
  --k: 2;
}
.path-scene > :nth-child(4) {
  --k: 3;
}
.path-acts {
  display: flex;
  gap: 5px;
}
.path-acts i {
  width: 11px;
  height: 11px;
  box-shadow: inset 0 0 0 1.5px color-mix(in srgb, var(--ink) 26%, transparent);
}
/* Scene 1: what the client may choose, with one case chosen, and what is looked at. */
.path-options {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
}
.path-options i {
  padding: 4px 8px;
  background: var(--surface);
  font-style: normal;
}
.path-options i.is-on {
  background: var(--pop);
  color: var(--on-pop);
  font-weight: 500;
}
.path-notes,
.path-checks {
  display: grid;
  gap: 4px;
}
.path-notes b,
.path-checks b {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 5px 8px;
  background: var(--surface);
  font-weight: 400;
}
.path-notes b::before {
  content: "";
  flex: none;
  width: 6px;
  height: 6px;
  background: var(--ink);
}
/* Scene 2: the first version and the three things done to it before the client sees it. */
.path-head {
  font-weight: 500;
}
.path-checks b {
  justify-content: space-between;
}
.path-checks b::after {
  content: "";
  flex: none;
  width: 10px;
  height: 6px;
  border-left: 2px solid var(--good);
  border-bottom: 2px solid var(--good);
  transform: rotate(-45deg) translate(1px, -2px);
}
.path-tag {
  justify-self: start;
  padding: 5px 9px;
  background: var(--ink);
  color: var(--dark-ink);
  font-weight: 500;
}
/* Scenes 3 and 4: the same twelve places, one of them live, then all of them, every day.
   The tiles keep one height, so a wider scene does not grow taller than its neighbours. */
.path-sites {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 5px;
}
.path-sites i {
  height: 36px;
  box-shadow: inset 0 0 0 1.5px color-mix(in srgb, var(--ink) 30%, transparent);
  transition:
    background-color 0.35s ease
      calc(var(--s) * 650ms + var(--i, 0) * 55ms + 500ms),
    box-shadow 0.35s ease calc(var(--s) * 650ms + var(--i, 0) * 55ms + 500ms);
}
.path-sites i.is-on {
  background: var(--pop);
  box-shadow: inset 0 0 0 2px var(--ink);
}
.path-week {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 3px;
}
.path-week i {
  padding: 4px 0;
  background: var(--ink);
  color: var(--dark-ink);
  font-size: 0.75rem;
  font-style: normal;
  line-height: 1;
  text-align: center;
}
.js [data-anim]:not(.is-in) .path-scene > * {
  opacity: 0;
  transform: translateY(8px);
  transition: none;
}
.js [data-anim]:not(.is-in) .path-sites i.is-on {
  background: transparent;
  box-shadow: inset 0 0 0 1.5px color-mix(in srgb, var(--ink) 30%, transparent);
  transition: none;
}
.js [data-anim]:not(.is-in) .path-gate span {
  opacity: 0;
  transition: none;
}
.path-num::before {
  content: counter(step);
  font-size: clamp(2.25rem, 1.5rem + 2.6vw, 3.5rem);
  font-weight: 300;
  letter-spacing: -0.04em;
  line-height: 1;
  font-variant-numeric: tabular-nums;
}
.path-step strong {
  font-size: var(--step-lead);
  font-weight: 500;
  letter-spacing: -0.01em;
  line-height: 1.2;
}
/* Four columns are narrow for justified text, so these lines are short and a size smaller. */
.path-step .prose {
  font-size: 1rem;
}
/* What the client holds at the end of a step. */
.path-gain {
  display: grid;
  align-content: start;
  gap: 2px;
  margin-top: 4px;
  padding-top: 10px;
  border-top: 1px solid var(--line);
  font-size: 1rem;
  font-weight: 500;
  line-height: 1.35;
}
.path-gain span {
  color: var(--muted);
  font-size: 0.8125rem;
  font-weight: 400;
}
.path-next {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px clamp(18px, 2.4vw, 32px);
}
.path-next p {
  font-size: var(--step-lead);
  letter-spacing: -0.01em;
  line-height: 1.3;
}
/* What runs today: six products in two rows of three, each under its true state. The mark
   before a state is full when the product runs, half in pilot, empty when it is built to order. */
.today {
  display: grid;
  gap: clamp(28px, 4vw, 52px);
}
.today-head {
  display: grid;
  grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
  gap: 20px var(--gap-split);
  align-items: end;
}
.today-head p {
  color: var(--dark-muted);
}
.status {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(24px, 3vw, 40px) 4px;
  align-items: start;
}
.status-col {
  grid-column: span var(--n);
  display: grid;
  gap: 4px;
}
.status-col h3 {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 0 0 12px;
  border-bottom: 1px solid var(--dark-line);
  margin-bottom: 8px;
  font-size: 1.0625rem;
  font-weight: 500;
}
.status-col h3::before {
  content: "";
  flex: none;
  width: 12px;
  height: 12px;
  box-shadow: inset 0 0 0 2px var(--pop);
}
.status-col.is-live h3::before {
  background: var(--pop);
}
.status-col.is-pilot h3::before {
  background: linear-gradient(to right, var(--pop) 50%, transparent 50%);
}
.status-items {
  display: grid;
  grid-template-columns: repeat(var(--n), minmax(0, 1fr));
  gap: 4px;
}
.status-item {
  display: grid;
  gap: 8px;
  align-content: start;
  min-height: 126px;
  padding: 16px 18px 18px;
  background: var(--dark-2);
  color: inherit;
  text-decoration: none;
  transition:
    background-color 0.15s ease,
    opacity 0.4s ease calc(var(--i) * 110ms + 150ms),
    transform 0.5s var(--ease) calc(var(--i) * 110ms + 150ms);
}
.status-item:hover {
  background: color-mix(in srgb, var(--pop) 16%, var(--dark-2));
}
.status-item:focus-visible {
  outline-offset: -4px;
}
.status-item strong {
  font-size: var(--step-lead);
  font-weight: 500;
  letter-spacing: -0.01em;
  line-height: 1.2;
}
.status-item span {
  color: var(--dark-muted);
  font-size: 1rem;
  line-height: 1.45;
}
.js [data-anim]:not(.is-in) .status-item {
  opacity: 0;
  transform: translateY(10px);
  transition: none;
}
.js .status.is-in .status-col.is-live h3::before {
  animation: status-beat 1.3s ease 0.9s 3;
}
@keyframes status-beat {
  50% {
    opacity: 0.25;
  }
}

/* Two more services. Each is named first, then shown in a small scene of its own; the rows
   of the two are shared, so names, scenes, texts and buttons line up across the columns. */
.extras {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  grid-template-rows: repeat(4, auto);
  gap: 16px clamp(32px, 5vw, 80px);
}
.extra {
  display: grid;
  grid-row: span 4;
  grid-template-rows: subgrid;
  justify-items: start;
}
.extra h3 {
  align-self: end;
  font-size: clamp(1.5rem, 1.1rem + 1.5vw, 2.25rem);
  font-weight: 300;
  letter-spacing: -0.03em;
  line-height: 1.1;
  text-wrap: balance;
}
.extra-scene {
  justify-self: stretch;
  display: grid;
  align-content: space-between;
  gap: 14px;
  min-height: 268px;
  padding: 16px;
  border: 1px solid var(--ink);
  background: var(--bg);
  overflow: hidden;
}
.extra-label {
  color: var(--muted);
  font-size: 0.875rem;
}
/* Scene: the same eight requests, scattered as they arrive and then in one queue. */
.tidy {
  --reach: 1;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
}
.tidy i {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 6px;
  min-height: 44px;
  padding: 8px 10px;
  background: var(--surface);
  font-size: 0.875rem;
  font-style: normal;
  font-weight: 500;
  line-height: 1.2;
  transition:
    transform 0.85s var(--ease) calc(var(--i) * 55ms),
    background-color 0.4s ease calc(var(--i) * 55ms);
}
.tidy i::after {
  content: "";
  flex: none;
  width: 10px;
  height: 6px;
  border-left: 2px solid var(--good);
  border-bottom: 2px solid var(--good);
  transform: rotate(-45deg) translate(1px, -2px);
  transition: opacity 0.3s ease calc(var(--i) * 55ms + 600ms);
}
.is-messy .tidy i {
  background: var(--surface-2);
  transform: translate(
      calc(var(--x) * var(--reach) * 1px),
      calc(var(--y) * var(--reach) * 1px)
    )
    rotate(calc(var(--r) * var(--reach) * 1deg));
}
.is-messy .tidy i::after {
  opacity: 0;
  transition-delay: 0s;
}
.tidy-foot {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px 16px;
}
.tidy-state {
  flex: 1 1 14rem;
  color: var(--muted);
  font-size: 0.9375rem;
  line-height: 1.4;
}
.tidy-button {
  display: none;
}
.js .tidy-button {
  display: inline-flex;
}
/* Scene: a first assistant, set up in three lines, and its first answer. */
.setup {
  display: grid;
  gap: 6px;
}
.setup-row {
  --d: calc(var(--i) * 420ms + 200ms);
  display: grid;
  grid-template-columns: 5.5rem minmax(0, 1fr);
  gap: 10px;
  padding: 9px 10px;
  background: var(--surface);
  font-size: 0.9375rem;
  line-height: 1.35;
}
.setup-row span {
  color: var(--muted);
}
.setup-row b {
  font-weight: 500;
}
.setup-reply {
  --d: 1700ms;
  justify-self: start;
  margin-top: 6px;
  padding: 9px 12px;
  background: var(--ink);
  color: var(--dark-ink);
  font-size: 0.9375rem;
  line-height: 1.35;
}
.setup-row,
.setup-reply {
  transition:
    opacity 0.4s ease var(--d),
    transform 0.5s var(--ease) var(--d);
}
.js [data-anim]:not(.is-in) .setup-row,
.js [data-anim]:not(.is-in) .setup-reply {
  opacity: 0;
  transform: translateY(8px);
  transition: none;
}

/* What drives the team. Two figures from the portfolio stand under the heading; beside them
   the mission, the objective and two more lines, each a label and its text; below, the four
   rules the team holds to, two to a row. */
.tally {
  display: flex;
  flex-wrap: wrap;
  gap: 20px clamp(28px, 4vw, 56px);
  margin-top: clamp(8px, 1.4vw, 20px);
}
.tally div {
  display: grid;
  gap: 8px;
  align-content: start;
}
.tally dt {
  font-size: clamp(3.5rem, 2rem + 5.4vw, 6.5rem);
  font-weight: 300;
  letter-spacing: -0.04em;
  line-height: 0.92;
  font-variant-numeric: tabular-nums;
}
.tally dd {
  max-width: 14ch;
  color: var(--muted);
  line-height: 1.3;
}
.pairs {
  display: grid;
}
.pairs div {
  display: grid;
  grid-template-columns: minmax(0, 9rem) minmax(0, 1fr);
  gap: 4px 24px;
  align-items: baseline;
  padding: 18px 0;
  border-top: 1px solid var(--line);
}
.pairs div:last-child {
  border-bottom: 1px solid var(--line);
}
.pairs dt {
  color: var(--muted);
}
/* The mission and the objective are the two lines set large. */
.pairs div:nth-child(-n + 2) dd {
  font-size: var(--step-lead);
  line-height: 1.3;
}
.creed {
  display: grid;
  gap: 14px;
}
.creed h3 {
  font-size: 1.0625rem;
  font-weight: 500;
  color: var(--muted);
}
.creed ul {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0 clamp(32px, 5vw, 80px);
}
.creed li {
  display: grid;
  gap: 4px;
  align-content: start;
  padding: 16px 0 18px;
  border-top: 1px solid var(--ink);
}
.creed strong {
  font-size: var(--step-lead);
  font-weight: 500;
  letter-spacing: -0.01em;
  line-height: 1.2;
}
/* On the home page the same photographs stand small beside each name. */
.photo img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 0;
}

@media (max-width: 1100px) {
  .status {
    grid-template-columns: minmax(0, 1fr);
    gap: 28px;
  }
  .status-col {
    grid-column: auto;
  }
  .status-items {
    grid-template-columns: minmax(0, 1fr);
  }
  .status-item {
    min-height: 0;
  }
}
@media (max-width: 960px) {
  .hero.is-about .hero-side,
  .today-head {
    grid-template-columns: minmax(0, 1fr);
  }
  .hero.is-about .hero-side {
    justify-items: start;
  }
  .extras {
    grid-template-columns: minmax(0, 1fr);
    grid-template-rows: none;
  }
  .extra {
    grid-row: auto;
    grid-template-rows: none;
    gap: 14px;
  }
  .extra + .extra {
    margin-top: 28px;
  }
}
@media (max-width: 1120px) {
  /* Where four columns would be too narrow to read: the two parts stand one under the other,
     the decision between them. */
  .path {
    grid-template-columns: minmax(0, 1fr);
  }
  .path-gate {
    grid-row: auto;
    height: 60px;
  }
  .path-gate::before {
    top: 50%;
    bottom: auto;
    left: 0;
    right: 0;
    border-left: 0;
    border-top: 2px dashed var(--ink);
  }
  .path-gate span {
    top: 50%;
    padding: 6px 10px;
    writing-mode: horizontal-tb;
    transform: translate(-50%, -50%);
  }
}
@media (max-width: 620px) {
  .path-key {
    font-size: 0.9375rem;
  }
  /* One step per row: each part and each step is laid out on its own. */
  .path-group,
  .path-group ol,
  .path-step {
    grid-row: auto;
    grid-template-rows: none;
  }
  .path-group ol {
    grid-template-columns: minmax(0, 1fr);
    row-gap: 28px;
  }
  .path-scene {
    min-height: 0;
  }
  .path-step .prose {
    font-size: inherit;
  }
}
@media (max-width: 760px) {
  .faces {
    grid-template-columns: minmax(0, 1fr);
  }
  .face + .face .portrait,
  .face + .face .face-who {
    border-left: 0;
  }
  .face + .face {
    border-top: 1px solid var(--line);
  }
  .portrait {
    aspect-ratio: 1 / 1;
  }
  .face-who p {
    font-size: inherit;
  }
}
@media (max-width: 620px) {
  .tidy {
    --reach: 0.45;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .pairs div {
    grid-template-columns: minmax(0, 1fr);
  }
  .creed ul {
    grid-template-columns: minmax(0, 1fr);
  }
}
/* Header on a phone: the links move into a menu.
   Without JavaScript they stay visible, on a second row. */
@media (max-width: 760px) {
  .bar {
    grid-template-columns: 1fr auto auto;
    gap: 12px;
  }
  .nav {
    grid-column: 1 / -1;
    grid-row: 2;
    flex-wrap: wrap;
    gap: 0 20px;
  }
  .js .menu {
    display: block;
  }
  .js .nav {
    display: none;
  }
  .js .nav.is-open {
    display: grid;
    gap: 0;
    position: absolute;
    left: 0;
    right: 0;
    top: 100%;
    max-height: calc(100dvh - 64px);
    padding: 4px var(--gutter) 14px;
    overflow-y: auto;
    background: var(--accent);
    border-bottom: 1px solid var(--on-accent);
  }
  /* In the menu the panel is part of the list: no button, the groups one under another,
     each under the line that says who it is for, and only the names. */
  .nav-toggle {
    display: none;
  }
  .nav-group {
    display: block;
    margin-bottom: 0;
    padding-bottom: 0;
  }
  .nav-panel,
  .nav-group.is-open .nav-panel {
    display: block;
    position: static;
    border: 0;
    background: transparent;
    color: inherit;
    box-shadow: none;
    animation: none;
  }
  .nav-col {
    display: block;
  }
  .nav-col + .nav-col {
    border-left: 0;
  }
  .nav-for {
    padding: 14px 0 2px;
    border-bottom: 0;
    color: var(--dark-muted);
    font-size: 0.8125rem;
    font-weight: 400;
  }
  .nav .nav-panel li + li {
    border-top: 0;
  }
  .nav .nav-panel a {
    display: flex;
    align-items: center;
    min-height: 44px;
    padding: 0;
  }
  .nav .nav-panel a:hover,
  .nav .nav-panel a[aria-current] {
    background: transparent;
    text-decoration: underline;
    text-decoration-thickness: 2px;
    text-underline-offset: 6px;
  }
  .nav-panel strong,
  .nav-panel a[aria-current] strong {
    font-size: inherit;
    font-weight: 400;
    letter-spacing: 0;
  }
  .nav-panel span {
    display: none;
  }
  .nav-link {
    margin-top: 10px;
    border-top: 1px solid var(--dark-line);
  }
  .top .nav-panel :focus-visible {
    outline-color: var(--on-accent);
    outline-offset: 3px;
  }
  /* Without JavaScript the names stand in one wrapping row, as plain links. */
  html:not(.js) .nav-group,
  html:not(.js) .nav-panel,
  html:not(.js) .nav-col,
  html:not(.js) .nav-col ul,
  html:not(.js) .nav-col li {
    display: contents;
  }
  html:not(.js) .nav-for {
    display: none;
  }
  html:not(.js) .nav-link {
    margin-top: 0;
    border-top: 0;
  }
}

@media (max-width: 960px) {
  .hero-in,
  .hero.is-product .hero-in,
  .sec-head,
  .sec > .frame.split,
  .split,
  .proof,
  .contact-in {
    grid-template-columns: minmax(0, 1fr);
  }
  .lead {
    max-width: none;
  }
  .people {
    grid-template-columns: minmax(0, 1fr);
  }
  .steps {
    grid-template-columns: minmax(0, 1fr);
    gap: 28px;
  }
  .foot {
    grid-template-columns: minmax(0, 1fr);
  }
}

@media (max-width: 620px) {
  .door {
    grid-template-columns: minmax(0, 1fr) 26px;
    padding: 18px 16px;
  }
  .board-title {
    padding: 14px 16px;
  }
  .door-go {
    display: contents;
  }
  .door-state {
    grid-column: 1;
    grid-row: 3;
  }
  .arrow {
    grid-column: 2;
    grid-row: 1 / span 3;
  }
  .talk li {
    grid-template-columns: minmax(0, 1fr);
    gap: 0;
  }
  .talk b {
    padding-top: 0;
  }
  .c-small {
    min-height: 44px;
  }
  .people li {
    grid-template-columns: 64px minmax(0, 1fr);
    gap: 2px 14px;
  }
  .people .photo {
    grid-row: span 2;
  }
  .who {
    display: contents;
  }
  .who strong {
    align-self: end;
  }
  .who p {
    grid-column: 1 / -1;
    margin-top: 10px;
  }
}

/* Very narrow phones: the header keeps its one action on the screen. */
@media (max-width: 380px) {
  .proto-pick {
    grid-template-columns: minmax(0, 1fr);
  }
  .proto-pick .pick {
    min-height: 48px;
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }
  /* Four callers stay two by two, so the dividers follow that grid. */
  .proto-pick.picks-4 .pick:nth-child(2n + 1) {
    border-right: 1px solid var(--line);
  }
  .proto-pick.picks-4 .pick:nth-child(n + 3) {
    border-bottom: 0;
  }
  .proto-pick.picks-5 .pick:nth-child(2n + 1) {
    border-right: 1px solid var(--line);
  }
  .proto-pick.picks-5 .pick:last-child {
    border-right: 0;
    border-bottom: 0;
  }
  .bar {
    gap: 6px;
  }
  .bar .btn {
    padding: 0 12px;
    font-size: 0.9375rem;
  }
  .brand {
    font-size: 1.125rem;
    gap: 8px;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-delay: 0ms !important;
    transition-duration: 0.01ms !important;
    /* Staggered marks wait for their turn with a transition delay: without this they would
       still appear one after another, only without movement. */
    transition-delay: 0ms !important;
  }
}
