/* runo site styles. Tokens and components follow DESIGN.md. Shared by every page. */

@font-face { font-family: 'Source Serif 4'; src: url(../assets/fonts/source-serif-4.woff2) format('woff2'); font-weight: 500; font-style: normal; font-display: swap; }
@font-face { font-family: 'Geist'; src: url(../assets/fonts/geist.woff2) format('woff2'); font-weight: 100 900; font-style: normal; font-display: swap; }

:root {
  --paper: #f6fff8;
  --mist: #eaf4f4;
  --foam: #cce3de;
  --leaf: #a4c3b2;
  --sage: #6b9080;
  --ink: #17302a;
  --ink-raised: #24463d;
  --ink-soft: #405f56;
  --muted: #4f7166;
  --logo-grey: #737373;
  --paper-glass: rgb(246 255 248 / 0.86);
  --edge: rgb(23 48 42 / 0.07);

  --serif: 'Source Serif 4', Georgia, serif;
  --sans: 'Geist', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;

  --max: 1180px;
  --pad: clamp(20px, 5vw, 56px);
  --section: clamp(80px, 11vw, 136px);
  --radius: 14px;
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-draw: cubic-bezier(0.65, 0, 0.35, 1);
  --press: 100ms;

}

*, *::before, *::after { box-sizing: border-box; }
html { scrollbar-color: var(--leaf) var(--mist); -webkit-text-size-adjust: 100%; text-size-adjust: 100%; -webkit-tap-highlight-color: transparent; }
/* In-page links glide; site.js turns this on only while a click on a link to a section scrolls (see js/site.js). */
html.smooth { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink-soft);
  font: 400 1.0625rem/1.6 var(--sans);
  -webkit-font-smoothing: antialiased;
  caret-color: var(--sage);
  font-optical-sizing: auto;
}
::selection { background: var(--foam); color: var(--ink); }
:focus-visible { outline: 2px solid var(--ink); outline-offset: 3px; border-radius: 6px; }
.book :focus-visible { outline-color: var(--paper); }
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration-color: var(--leaf); text-underline-offset: 3px; }
h1, h2, h3, p, ul, ol, dl, dd { margin: 0; }
ul, ol { padding: 0; list-style: none; }
p, li, dd { text-wrap: pretty; }
button { font: inherit; color: inherit; }

.wrap { max-width: var(--max); margin: 0 auto; padding: 0 max(var(--pad), env(safe-area-inset-right)) 0 max(var(--pad), env(safe-area-inset-left)); }
section[id] { scroll-margin-top: 24px; }
/* Long German compounds, URLs and emails wrap instead of pushing the page sideways. */
:is(h1, h2, h3, .faq summary) { overflow-wrap: anywhere; hyphens: auto; }
:is(.numbers td, .glance dd, .footer a, .embed a, .contact a, .legal a, a[href^="mailto:"]) { overflow-wrap: anywhere; }
.contact li, .contact a { min-width: 0; max-width: 100%; }
:is(.btn, .menu-btn, .faq summary) { -webkit-user-select: none; user-select: none; }
.section { padding: var(--section) 0; }
.section.alt { background: var(--mist); }

h1, h2 {
  font-family: var(--serif);
  font-weight: 500;
  color: var(--ink);
  letter-spacing: -0.025em;
  text-wrap: balance;
}
h2 { font-size: clamp(2.125rem, 4.4vw, 3.25rem); line-height: 1.08; }
h2 .key, h1 .key { color: var(--muted); }
h3 { font-size: 1.25rem; line-height: 1.3; font-weight: 600; color: var(--ink); letter-spacing: -0.01em; }
.lede { font-size: clamp(1.125rem, 1.6vw, 1.25rem); line-height: 1.55; max-width: 60ch; }
.head { max-width: 760px; margin-bottom: clamp(48px, 6vw, 72px); }
.head .lede { margin-top: 20px; }

/* buttons */
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 15px 26px; border-radius: 999px;
  font: 500 1rem/1 var(--sans); text-decoration: none; white-space: nowrap;
  border: 1px solid transparent; cursor: pointer;
  transition: background-color .2s ease, color .2s ease, border-color .2s ease, transform var(--press) var(--ease);
}
.btn svg { width: 16px; height: 16px; transition: transform .2s var(--ease); }
.btn-primary { background: var(--ink); color: var(--paper); }
.btn-ghost { background: transparent; color: var(--ink); border-color: var(--leaf); }
.btn:active { transform: scale(.97); }

/* nav */
.nav {
  position: sticky; top: 0; z-index: 50;
  background: var(--paper-glass);
  backdrop-filter: saturate(140%) blur(12px);
  -webkit-backdrop-filter: saturate(140%) blur(12px);
  border-bottom: 1px solid transparent;
  transition: border-color .2s ease;
}
.nav::after {
  content: ''; position: absolute; left: 0; right: 0; top: 100%; height: 16px; pointer-events: none;
  background: linear-gradient(var(--edge), transparent); opacity: 0; transition: opacity .3s ease;
}
.nav.scrolled::after { opacity: 1; }
.nav .wrap { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; height: 72px; gap: 24px; }
.nav .logo { justify-self: start; }
.nav .wrap > .btn { justify-self: end; }
.logo { padding: 10px 0; font: 600 1.5rem/1 var(--sans); letter-spacing: -0.03em; color: var(--ink); text-decoration: none; }
.nav-links { display: flex; gap: 32px; }
/* Between tablet and laptop widths the five links centre in the space between the wordmark and the button. */
@media (min-width: 761px) and (max-width: 960px) {
  .nav .wrap { grid-template-columns: auto 1fr auto; }
  .nav-links { justify-self: center; gap: 24px; }
}
.nav-links a {
  padding: 10px 0; font-size: 0.9375rem; font-weight: 500; color: var(--ink-soft);
  text-decoration: underline; text-decoration-color: transparent; text-decoration-thickness: 2px; text-underline-offset: 8px; transition: color .2s ease, text-decoration-color .2s ease;
}
/* The section in view on the homepage, and Work on the case pages. */
.nav-links a[aria-current] { color: var(--ink); text-decoration-color: var(--sage); }
.nav .btn { padding: 11px 20px; font-size: 0.9375rem; }
.nav-links .menu-cta { display: none; }
.menu-btn { display: none; background: none; border: 0; padding: 10px; margin-right: -10px; cursor: pointer; color: var(--ink); }
.menu-btn svg { width: 24px; height: 24px; }
.menu-btn .i-close, .nav.open .menu-btn .i-open { display: none; }
.nav.open .menu-btn .i-close { display: block; }

/* hero (homepage) */
.hero { padding: clamp(48px, 5vw, 72px) 0 clamp(64px, 8vw, 104px); text-align: center; }
.hero h1 { font-size: clamp(2.5rem, 1.5rem + 3.6vw, 4.5rem); line-height: 1.04; max-width: 21ch; margin: 0 auto; }
.hero h1 .key { display: block; }
.hero .lede { margin: 28px auto 0; text-wrap: balance; }
.hero-actions { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; margin-top: 40px; }
.worked {
  display: flex; flex-direction: column; align-items: center;
  gap: 22px; margin-top: clamp(56px, 6vw, 72px);
}
.worked > span { font-size: 0.9375rem; color: var(--logo-grey); } /* neutral grey to match the greyscale logos (4.6:1 on paper) */
.worked ul { display: flex; flex-wrap: nowrap; gap: clamp(20px, 3.4vw, 48px); justify-content: center; align-items: center; max-width: 100%; }
/* Logo heights are in em of the row's font size, so on narrower screens the whole row shrinks evenly and stays on one
   line, instead of the browser squeezing each logo out of shape. Full size (16px) from about 1230px wide. */
.worked ul.logos { font-size: clamp(9px, 1.3vw, 16px); }
.worked li { display: flex; flex: none; align-items: center; }
/* Client logos sit in one calm tone on the green page and show their own colour on hover. */
.logos img { width: auto; filter: grayscale(1) contrast(1.1); opacity: .62; transition: filter .2s ease, opacity .2s ease; }
.logos .l-vivira { height: 2.5em; transform: translateY(-11%); } /* its wordmark sits low beside the tall V; this lines the word up with the other names */
.logos .l-onfy { height: 1.625em; }
.logos .l-gigs { height: 1.5em; }
.logos .l-internet-game { height: 1.5625em; } /* letters about the height of Entrepreneurs First's */
.logos .l-ef { height: 0.875em; }
.logos img.l-ef { filter: grayscale(1) brightness(.62) contrast(1.3); }
.logos .l-slowlettuce { height: 1.5em; }

/* page head (every page except the homepage) */
.page-head { padding: clamp(40px, 5vw, 64px) 0 clamp(64px, 8vw, 104px); }
.page-head h1 { font-size: clamp(2.5rem, 5.4vw, 4rem); line-height: 1.06; max-width: 22ch; }
.page-head h1 .key { display: block; }
.page-head .lede { margin-top: 24px; }
.back {
  display: inline-flex; align-items: center; gap: 8px; min-height: 44px; margin-bottom: 20px; padding: 6px 0;
  font-size: 0.9375rem; font-weight: 500; color: var(--ink-soft); text-decoration: none;
  transition: color .2s ease;
}
.back svg { width: 16px; height: 16px; transform: scaleX(-1); transition: transform .2s var(--ease); }

/* problems */
.problems { display: grid; grid-template-columns: 1fr 1fr; border-top: 1px solid var(--leaf); }
.problem { padding: 36px 40px 40px 0; border-bottom: 1px solid var(--foam); }
.problem:nth-child(odd) { border-right: 1px solid var(--foam); }
.problem:nth-child(even) { padding-left: 40px; padding-right: 0; }
.problem h3 { font: 500 clamp(1.5rem, 2.4vw, 1.875rem)/1.2 var(--serif); letter-spacing: -0.015em; margin-bottom: 12px; }
.problem p { max-width: 46ch; }
.trap { margin-top: clamp(36px, 5vw, 56px); font: 500 clamp(1.5rem, 2.6vw, 2.125rem)/1.2 var(--serif); letter-spacing: -0.02em; color: var(--ink); text-wrap: balance; }
.trap .key { color: var(--muted); }

/* services */
.services { border-top: 1px solid var(--leaf); }
.service {
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); gap: clamp(32px, 5vw, 72px); align-items: center;
  padding: clamp(36px, 4.5vw, 56px) 0; border-bottom: 1px solid var(--foam);
}
.service :is(h2, h3) { font: 500 clamp(1.625rem, 2.6vw, 2rem)/1.15 var(--serif); letter-spacing: -0.02em; margin-bottom: 14px; }
.service > div > p { max-width: 48ch; }
/* Service headings are two sentences: the problem, then the key phrase on its own line. Whole words only. */
.services .service :is(h2, h3) { hyphens: manual; }
.service :is(h2, h3) .key { display: block; color: var(--muted); }
/* Each service's name sits above its heading (services page, service pages); on the homepage the tabs carry it. */
.svc-name { margin-bottom: 14px; font-size: 1rem; font-weight: 600; line-height: 1.3; color: var(--ink); }

/* homepage services: one showcase with a tab per service (all three rows show without JavaScript).
   The tab layout keys off the .js class set in <head>, so the page has its final height before the first paint and a
   link or refresh to a section further down lands on it. Until site.js marks the tabs ready, only the first row shows. */
.js .svc-tabs .svc-name { display: none; }
html:not(.js) .svc-tabs .tablist { display: none; }
.js .svc-tabs:not(.ready) .service + .service { display: none; }
.tablist {
  display: inline-flex; max-width: 100%; gap: 4px; padding: 4px; margin-bottom: clamp(28px, 4vw, 40px);
  border-radius: 999px; background: var(--mist); overflow-x: auto; scrollbar-width: none;
}
.tablist [role="tab"] {
  flex: none; min-height: 44px; padding: 12px 20px; border: 0; border-radius: 999px; background: transparent; cursor: pointer;
  font: 500 0.9375rem/1 var(--sans); color: var(--ink-soft);
  transition: background-color .2s ease, color .2s ease, transform var(--press) var(--ease);
}
.tablist [role="tab"]:active { transform: scale(.97); }
.tablist [aria-selected="true"] { background: var(--ink); color: var(--paper); }
@media (hover: hover) and (pointer: fine) { .tablist [aria-selected="false"]:hover { color: var(--ink); } }
.js .svc-tabs .service { border-bottom: 0; padding-bottom: 0; align-items: center; }
.svc-tabs .service[hidden] { display: none; }

.ticks { margin-top: 22px; display: grid; gap: 12px; }
.ticks li { display: grid; grid-template-columns: 20px 1fr; gap: 12px; align-items: start; color: var(--ink); }
.ticks svg { width: 20px; height: 20px; margin-top: 3px; color: var(--sage); }

/* case studies: co-branded banner (runo + client) used on the index and on each case page */
.banner {
  position: relative; isolation: isolate; overflow: hidden;
  aspect-ratio: 16 / 10; border-radius: var(--radius); background-color: var(--mist);
  display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: clamp(16px, 2.2vw, 28px);
  padding: 24px; text-align: center;
}
.banner::before, .banner::after { content: ''; position: absolute; z-index: -1; border-radius: 50%; transition: transform .35s var(--ease); }
.banner::before { width: 62%; aspect-ratio: 1; left: -24%; top: -36%; background: var(--foam); }
.banner::after { width: 46%; aspect-ratio: 1; right: -14%; bottom: -30%; background: var(--leaf); opacity: .55; }
.banner.b2::before { left: auto; right: -22%; top: -40%; }
.banner.b2::after { right: auto; left: -12%; bottom: -34%; }
.banner.b3::before { top: auto; bottom: -44%; left: -18%; }
.banner.b3::after { bottom: auto; top: -26%; right: -12%; background: var(--sage); opacity: .28; }
.banner .b-runo { font: 600 clamp(1.75rem, 3.4vw, 2.875rem)/1 var(--sans); letter-spacing: -0.03em; color: var(--ink); }
.banner .b-sep { flex: none; width: 2px; height: clamp(34px, 4.4vw, 56px); border-radius: 2px; background: var(--sage); transform: rotate(20deg); }
.banner .b-logo { height: clamp(24px, 3vw, 38px); width: auto; }
.banner .b-logo[src$="vivira.svg"] { height: clamp(44px, 5.4vw, 68px); }

/* case study index */
.page-head.center { text-align: center; }
.page-head.center h1, .page-head.center .lede { margin-left: auto; margin-right: auto; }

/* On the case index the featured case sits above the grid, so a hairline separates them; on its own it needs none. */

.case-grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(40px, 5vw, 64px) clamp(28px, 4vw, 48px); margin-top: clamp(48px, 6vw, 72px); }
.case-card { display: grid; gap: 22px; align-content: start; text-decoration: none; color: inherit; }
:is(.case-card) :is(h2, h3) {
  font-family: var(--serif); font-weight: 500; color: var(--ink);
  font-size: clamp(1.625rem, 2.6vw, 2.125rem); line-height: 1.12; letter-spacing: -0.02em;
  text-decoration: underline; text-decoration-color: transparent; text-underline-offset: 5px; text-decoration-thickness: 1px;
  transition: text-decoration-color .2s ease;
}

:is(.case-card) .kind { margin-top: 8px; font-size: 0.9375rem; color: var(--muted); }
:is(.case-card) .sum { margin-top: 12px; max-width: 52ch; }

/* case study page: Scalantec-style long read in a narrow column */
.case-head .back { margin-bottom: 20px; }
.case-head h1 { max-width: none; }
.case-head .result { margin-top: 18px; font: 500 clamp(1.375rem, 2.4vw, 1.75rem)/1.3 var(--serif); letter-spacing: -0.015em; color: var(--ink); text-wrap: balance; }
.case-head .kind { margin-top: 16px; font-size: clamp(1.0625rem, 1.5vw, 1.1875rem); color: var(--muted); }
.case-head .byline { margin-top: 20px; font-size: 0.9375rem; color: var(--muted); text-wrap: balance; }
.case-head .byline time { white-space: nowrap; }
@media (max-width: 480px) { .case-head .byline .sep { display: none; } .case-head .byline time { display: block; margin-top: 2px; } }
.case-head .banner { max-width: 820px; margin: clamp(40px, 5vw, 56px) auto 0; }
.case-body { max-width: 720px; margin: 0 auto; }
.case-body > section + section { margin-top: clamp(56px, 7vw, 80px); }
.case-body h2 { font-size: clamp(1.875rem, 3.4vw, 2.5rem); line-height: 1.1; margin-bottom: 24px; }
.case-body p + p, .case-body .ticks + p { margin-top: 16px; }
.case-body h2 + .ticks { margin-top: 0; }
.case-body .note { margin-top: 14px; font-size: 0.9375rem; color: var(--muted); }

.glance, .numbers { width: 100%; border: 1px solid var(--foam); border-radius: 10px; overflow: hidden; border-collapse: separate; border-spacing: 0; background: var(--paper); }
.glance div { display: grid; grid-template-columns: minmax(150px, 0.8fr) 1.6fr; }
.glance div + div, .numbers tr + tr > * { border-top: 1px solid var(--foam); }
.glance dt, .glance dd, .numbers th, .numbers td { padding: 13px 16px; font-size: 1rem; text-align: left; vertical-align: top; }
.glance dt { font-weight: 600; color: var(--ink); border-right: 1px solid var(--foam); }
.glance dd { margin: 0; }
.numbers th { font-size: 0.8125rem; font-weight: 600; letter-spacing: 0.04em; text-transform: uppercase; color: var(--muted); background: var(--mist); }
.numbers td + td, .numbers th + th { border-left: 1px solid var(--foam); }
.numbers td:last-child { font-weight: 600; color: var(--ink); }
.people p b { font-weight: 600; color: var(--ink); }
.pager { display: flex; justify-content: space-between; gap: 24px; margin-top: clamp(56px, 7vw, 80px); padding-top: 28px; border-top: 1px solid var(--foam); }
.pager a { display: inline-flex; align-items: center; gap: 10px; padding: 6px 0; font-weight: 500; color: var(--ink); text-decoration: none; }
.pager a svg { flex: none; width: 16px; height: 16px; transition: transform .2s var(--ease); }
.pager .prev svg { transform: scaleX(-1); }
.pager .next { margin-left: auto; text-align: right; }
.pager small { display: block; font-size: 0.8125rem; font-weight: 400; color: var(--muted); }

/* The service headings share a half-width column with a picture, so they run a size smaller than full-width page heads. */

.home-cases { margin-top: 0; grid-template-columns: repeat(2, minmax(0, 1fr)); }
/* A single case study shows as one wide card, banner beside the text; with two it falls back to two columns. */
.home-cases:has(> .case-card:only-child) { grid-template-columns: minmax(0, 1fr); }
.home-cases > .case-card:only-child { grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); align-items: center; gap: clamp(28px, 5vw, 64px); }
.home-cases .banner { aspect-ratio: 16 / 9; }

/* service visuals: generic pictures of what each service does. The resting state is the finished result, so
   without motion (or JavaScript) each one still tells its story; with motion it plays from "before" to "after". */
.art { margin: 0; display: grid; gap: 14px; padding: clamp(22px, 3vw, 36px); border-radius: var(--radius); background: var(--mist); }
.art-card { display: grid; gap: 16px; padding: 18px 20px; border: 1px solid var(--foam); border-radius: 10px; background: var(--paper); font-size: 0.875rem; line-height: 1.5; }
.art-top { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; font-size: 0.875rem; }
.art-top b { font-weight: 600; color: var(--ink); }
.art-time { margin-left: auto; font-size: 0.78125rem; color: var(--muted); }
.art-caption { font-size: 0.8125rem; color: var(--muted); }
.art-foot { display: flex; align-items: center; gap: 8px; font-size: 0.84375rem; color: var(--ink); }
.art-foot svg { flex: none; width: 18px; height: 18px; color: var(--sage); }
/* Two states stacked in one cell, so swapping them never shifts the layout. */
.art-time { display: inline-grid; }
.art-time > * { grid-area: 1 / 1; transition: opacity .35s var(--ease), filter .35s var(--ease); }
/* The hidden state is slightly blurred, so two overlapping words read as one change rather than a double image. */
.st-before { opacity: 0; filter: blur(2px); }

/* Data and signals: a few companies ranked by fit, each with the latest change that makes now a good time. */
.sig-list li { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 12px; padding: 10px 0; border-top: 1px solid var(--foam); }
.who { min-width: 0; font-weight: 600; color: var(--ink); overflow-wrap: anywhere; }
.who small { display: block; font-size: 0.78125rem; font-weight: 400; color: var(--muted); }
/* Priority letters: ink for A, outlined for B, quiet for C. */
.sig-tier { display: grid; place-items: center; width: 24px; height: 24px; border: 1px solid var(--ink); border-radius: 50%; background: var(--ink); color: var(--paper); font-size: 0.75rem; font-weight: 600; }
.sig-tier.b { background: var(--paper); color: var(--ink); }
.sig-tier.c { border-color: var(--leaf); background: var(--paper); color: var(--muted); }
.sig-when { display: grid; justify-items: end; gap: 3px; text-align: right; }
.sig-when small { font-size: 0.75rem; color: var(--muted); }
.sig-tag { padding: 3px 10px; border: 1px solid var(--ink); border-radius: 999px; font-size: 0.75rem; color: var(--ink); white-space: nowrap; }
.sig-list li.quiet .who { color: var(--muted); }
.sig-list li.quiet .sig-tag { border-color: var(--leaf); color: var(--muted); }
.sig-sum { display: grid; gap: 4px; padding: 11px 16px; border-radius: 10px; background: var(--mist); color: var(--ink-soft); }
.sig-sum b { font-weight: 600; color: var(--ink); }
/* On phones the signal sits under the company, so names and sizes keep the full width. */
@media (max-width: 600px) {
  .sig-list li { grid-template-columns: auto minmax(0, 1fr); align-items: start; row-gap: 8px; }
  .sig-tier { margin-top: 1px; }
  .sig-when { grid-column: 2; display: flex; flex-wrap: wrap; align-items: center; gap: 4px 10px; text-align: left; }
}

/* AI reply agent (modelled on a real agent runo built): an email reply arrives, the agent sorts it and drafts an
   answer in the sender's style with blank meeting slots, and a person sends it. It is interactive: the visitor picks
   Reply in HubSpot or Mark as done, and "Ask again" puts the card back. data-state on the figure holds the answer
   ("ask", "sent" or "done"); the markup ships answered ("sent") so the card still tells its story without
   JavaScript. Generic chat styling, made-up people. */
.ag-mark { display: grid; place-items: center; width: 24px; height: 24px; border-radius: 6px; background: var(--ink); color: var(--paper); font-size: 0.75rem; font-weight: 600; letter-spacing: 0.02em; }
.ra-who { display: grid; gap: 4px; }
.ra-title { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; }
.ra-title b { font-weight: 600; color: var(--ink); }
.ra-type { padding: 1px 9px; border: 1px solid var(--ink); border-radius: 999px; background: var(--ink); color: var(--paper); font-size: 0.75rem; font-weight: 500; white-space: nowrap; }
.ra-meta { font-size: 0.78125rem; color: var(--muted); }
.ra-quote { padding: 2px 0 2px 12px; border-left: 1px solid var(--leaf); color: var(--ink-soft); font-size: 0.84375rem; }
.ra-draft { display: grid; gap: 6px; padding: 12px 14px; border: 1px solid var(--foam); border-radius: 10px; font-size: 0.84375rem; color: var(--ink-soft); }
.ra-label { font-size: 0.75rem; color: var(--muted); }
/* Meeting times are gaps for the person to fill in; the agent never invents one. */
.ra-slot { padding: 0 5px; border-radius: 4px; background: var(--mist); color: var(--ink); font-weight: 500; white-space: nowrap; }
.ra-auto { padding-top: 12px; border-top: 1px solid var(--foam); font-size: 0.78125rem; color: var(--muted); }
/* The buttons and the two possible answers share one cell, so switching between them never moves the card. */
.ag-act { display: grid; min-height: 38px; }
.ag-act > * { grid-area: 1 / 1; align-self: center; opacity: 0; visibility: hidden; transition: opacity .15s var(--ease), visibility 0s linear .15s; }
.art-agent[data-state="ask"] .ag-btns,
.art-agent[data-state="sent"] .ag-done[data-for="sent"],
.art-agent[data-state="done"] .ag-done[data-for="done"] { opacity: 1; visibility: visible; transition: opacity .25s var(--ease) .1s, visibility 0s; }
.ag-btns { display: flex; flex-wrap: wrap; gap: 8px; }
.ag-btn {
  position: relative; display: inline-flex; align-items: center; gap: 5px; padding: 9px 14px; border: 1px solid var(--foam); border-radius: 999px;
  background: var(--paper); font: 500 0.8125rem/1.2 var(--sans); color: var(--ink); white-space: nowrap; cursor: pointer;
  transition: transform var(--press) var(--ease), background-color .2s ease, border-color .2s ease;
}
.ag-btn::after { content: ''; position: absolute; inset: -4px -2px; } /* a 44px-tall tap area around the 36px button */
.ag-btn:active { transform: scale(.97); }
.ag-btn.main { border-color: var(--ink); background: var(--ink); color: var(--paper); }
@media (hover: hover) and (pointer: fine) {
  .ag-btn:not(.main):hover { border-color: var(--ink); }
  .ag-btn.main:hover { border-color: var(--ink-raised); background: var(--ink-raised); }
  .ag-reset:hover { text-decoration-color: var(--ink); }
}
.ag-done { display: grid; grid-template-columns: 18px 1fr; align-items: start; gap: 8px; font-weight: 500; color: var(--ink); }
.ag-done svg { width: 18px; height: 18px; margin-top: 2px; color: var(--sage); }
.ag-reset {
  position: relative; margin-left: 4px; padding: 0; border: 0; background: none; cursor: pointer; font: 500 0.8125rem/inherit var(--sans); color: var(--ink-soft);
  text-decoration: underline; text-decoration-color: var(--leaf); text-underline-offset: 3px; transition: text-decoration-color .2s ease;
}
.ag-reset::after { content: ''; position: absolute; inset: -12px -6px; } /* a 44px-tall tap area on an inline link */
.ag-reset:active { opacity: .7; }
.art-agent:not(.live) .ag-reset { display: none; } /* without JavaScript the card is a still picture */
/* Answers chosen from the keyboard apply at once. */
.art-agent.instant .ag-act > * { transition: none; }
@media (prefers-reduced-motion: no-preference) {
  .ag-done { transform: translateY(4px); transition: opacity .15s var(--ease), transform .15s var(--ease), visibility 0s linear .15s; }
  .art-agent[data-state="sent"] .ag-done[data-for="sent"],
  .art-agent[data-state="done"] .ag-done[data-for="done"] { transform: none; transition: opacity .25s var(--ease) .1s, transform .25s var(--ease) .1s, visibility 0s; }
}

/* Context and CRM: one contact's history from every source, then the summary the CRM receives. */
.ctx { display: grid; }
.ctx li { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: baseline; gap: 2px 12px; padding: 9px 0; border-top: 1px solid var(--foam); }
.ctx span { color: var(--ink); }
.ctx small { font-size: 0.78125rem; color: var(--muted); white-space: nowrap; }
.ctx-sum { display: grid; gap: 4px; padding: 12px 16px; border-radius: 10px; background: var(--mist); }
.ctx-sum b { font-size: 0.78125rem; font-weight: 600; color: var(--ink); }
.ctx-sum p { color: var(--ink-soft); }

/* tools we build with: plain wordmarks in one row under the agents */
.tools { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 28px; margin-top: clamp(40px, 5vw, 56px); padding-top: 28px; border-top: 1px solid var(--foam); }
.tools > span { font-size: 0.9375rem; color: var(--muted); }
.tools ul { display: flex; flex-wrap: wrap; gap: 10px; }
.tools li { padding: 8px 16px; border: 1px solid var(--leaf); border-radius: 999px; background: var(--paper); font-size: 0.9375rem; font-weight: 500; color: var(--ink); }

/* faq */
.faq-grid { display: grid; grid-template-columns: 0.8fr 1.2fr; gap: clamp(32px, 6vw, 96px); align-items: start; }
.faq-grid .head { position: sticky; top: 120px; margin-bottom: 0; }
.faq { border-top: 1px solid var(--leaf); }
.faq details { border-bottom: 1px solid var(--foam); }
.faq summary {
  list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 24px;
  padding: 24px 0; font-size: 1.125rem; font-weight: 500; color: var(--ink);
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary svg { flex: none; width: 20px; height: 20px; color: var(--sage); transition: transform .2s var(--ease); }
.faq details[open] summary svg { transform: rotate(45deg); }
.faq details p { padding: 0 48px 26px 0; max-width: 62ch; }

/* process timeline */
.timeline { display: grid; grid-template-columns: 1fr 1fr 1.5fr 1fr 1.1fr; gap: 0 4px; }
.timeline li { display: grid; align-content: start; }
.timeline .when { font-size: 0.875rem; font-weight: 500; color: var(--muted); }
.timeline .track { display: block; height: 8px; margin: 12px 0 24px; border-radius: 999px; background: var(--sage); }
.timeline :is(h2, h3) { margin-bottom: 10px; padding-right: clamp(12px, 2vw, 28px); font: 500 clamp(1.375rem, 2vw, 1.625rem)/1.2 var(--serif); letter-spacing: -0.015em; }
.timeline p { padding-right: clamp(12px, 2vw, 28px); font-size: 0.9375rem; }
.timeline .t-scope .track { background: var(--leaf); }
.timeline .t-build .track { background: var(--ink); }
.timeline .t-decide .track { background: linear-gradient(90deg, var(--leaf), transparent); }

/* team */
.team { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 6vw, 96px); }
/* Each founder: a square photo on top, then name, role and a short description. */
.person {
  display: grid; grid-template-columns: minmax(0, 1fr); justify-items: start; align-content: start; gap: 20px;
  padding-top: 28px; border-top: 1px solid var(--leaf);
}
.person img.photo { width: 120px; aspect-ratio: 1; }
.photo {
  aspect-ratio: 4 / 5; border-radius: var(--radius); background: var(--foam);
  display: grid; place-items: center; text-align: center; padding: 12px;
  border: 1px dashed var(--sage); color: var(--ink-soft); font-size: 0.8125rem;
}
img.photo { width: 100%; height: auto; padding: 0; border: 0; object-fit: cover; object-position: center 30%; background: var(--foam); }
.person h3 { font: 500 clamp(1.5rem, 2.4vw, 1.75rem)/1.2 var(--serif); letter-spacing: -0.015em; }
.person .where { display: block; margin: 4px 0 14px; font-size: 0.9375rem; color: var(--muted); }
.person p { max-width: 46ch; }

.contact { display: flex; flex-wrap: wrap; gap: 0 22px; margin-top: 14px; }
.contact a {
  display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 8px 0; font-size: 0.9375rem; font-weight: 500; color: var(--ink);
  text-decoration: underline; text-decoration-color: var(--leaf); text-underline-offset: 5px; transition: text-decoration-color .2s ease;
}
.contact svg { flex: none; width: 18px; height: 18px; color: var(--sage); }
@media (hover: hover) and (pointer: fine) { .contact a:hover { text-decoration-color: var(--ink); } }
.sr-only { position: absolute; top: 0; left: 0; width: 1px; height: 1px; margin: -1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
/* Keeps a hyphenated word on one line (it would otherwise break as "follow- / up" on phones). */
.nowrap { white-space: nowrap; }
.skip {
  position: fixed; top: max(12px, env(safe-area-inset-top)); left: max(12px, env(safe-area-inset-left)); z-index: 100; padding: 12px 20px; border-radius: 999px;
  background: var(--ink); color: var(--paper); font-weight: 500; text-decoration: none; transform: translateY(-200%);
}
.skip:focus { transform: none; outline-offset: 3px; }
main:focus { outline: none; }

/* booking embed: light by default, inverted on the ink band */
.embed {
  border-radius: var(--radius); border: 1px solid var(--foam); background: var(--mist);
  min-height: 520px; display: grid; place-items: center; text-align: center; padding: 32px;
}
.embed { gap: 14px; }
.embed p { max-width: 34ch; font-size: 0.9375rem; }
.embed a { color: var(--ink); }
.embed.loaded { align-content: start; padding: 12px; }
.embed .embed-direct { font-size: 0.8125rem; }
.embed { position: relative; }
.embed .embed-status { position: absolute; inset: 0; display: grid; place-items: center; margin: 0; max-width: none; font-size: 0.9375rem; color: var(--muted); pointer-events: none; }
.book .embed .embed-status { color: var(--foam); }
/* The loading line leaves a beat faster (.15s) than the calendar arrives (.2s), so the two never sit on top of each other. */
.embed .embed-status { transition: opacity .15s var(--ease); }
.embed .embed-status.gone { opacity: 0; }
/* The card holds the calendar's own height before Cal.com has drawn it, so nothing below jumps when it arrives.
   Cal.com's month view is about 488px plus 0.76 x its width; from 768px wide it switches to a 534px side-by-side
   layout (measured 2026-10-20 at 318 to 862px). Reserved a few pixels short, so any leftover shift is small. */
.embed { container-type: inline-size; }
.embed .embed-cal { width: 100%; min-height: 640px; min-height: calc(480px + 76cqw); overflow: auto; border-radius: var(--radius); background: var(--paper); }
@container (min-width: 768px) { .embed .embed-cal { min-height: 530px; } }.embed iframe { width: 100%; border: 0; border-radius: var(--radius); transition: opacity .2s var(--ease); }
/* Cal.com draws its own skeleton first; it stays hidden behind the status line until the calendar is ready. */
.embed .embed-cal.pending iframe { opacity: 0; }

/* audit page: the title, the person you'll meet, then the calendar across the full width */

.book .host-line { margin-top: 32px; font-size: 0.9375rem; color: var(--foam); }
.book .host-line a { color: var(--paper); text-underline-offset: 4px; }

/* closing ink band */
.book { background: var(--ink); color: var(--foam); padding: var(--section) 0; }
.book-grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(40px, 6vw, 96px); align-items: start; }
.book .closing > * { max-width: 760px; }
.book h2 { color: var(--paper); font-size: clamp(2.375rem, 5vw, 3.75rem); }
.book h2 .key { color: var(--leaf); }
.book .lede { margin-top: 22px; color: var(--foam); }
.book .ticks li { color: var(--paper); }
.book .ticks svg { color: var(--leaf); }
.book .btn-primary { background: var(--paper); color: var(--ink); margin-top: 36px; }
.book .embed { border-color: color-mix(in srgb, var(--foam) 28%, transparent); background: color-mix(in srgb, var(--paper) 4%, transparent); }
.book .embed p { color: var(--foam); }
.book .embed a { color: var(--paper); }
/* Once the calendar is loading, its paper card is the only frame: no outline or padding around it. */
.book .embed.loaded { padding: 0; border-color: transparent; background: none; }
.book .embed.loaded .embed-status { color: var(--muted); }

/* legal pages */
.legal-section, .section.flush { padding-top: 0; }
.legal > * { max-width: 68ch; }
.legal h2 { margin: 48px 0 12px; font: 600 1.25rem/1.3 var(--sans); letter-spacing: -0.01em; }
.legal h2:first-child, .legal .updated + h2 { margin-top: 0; }
.legal p + p, .legal p + ul { margin-top: 12px; }
.legal ul { list-style: disc; padding-left: 20px; }
.legal li + li { margin-top: 8px; }
.legal li::marker { color: var(--sage); }
.legal a { color: var(--ink); }
.legal .updated { margin-bottom: 40px; font-size: 0.9375rem; color: var(--muted); }
.placeholder {
  padding: 1px 6px; border: 1px dashed var(--sage); border-radius: 6px;
  background: var(--mist); color: var(--ink); font-size: 0.92em;
  -webkit-box-decoration-break: clone; box-decoration-break: clone;
}

/* footer */
.footer { padding: 64px 0 40px; background: var(--mist); border-top: 1px solid var(--foam); }
.footer-grid { display: grid; grid-template-columns: 1.6fr repeat(3, minmax(0, 1fr)); gap: 32px; }
.footer h2 { margin: 0 0 10px; font: 600 0.875rem/1.4 var(--sans); letter-spacing: 0; color: var(--ink); }
.footer li + li { margin-top: 2px; }
.footer li a { display: inline-block; padding: 4px 0; }
.footer a { font-size: 0.9375rem; text-decoration: none; color: var(--ink-soft); transition: color .2s ease; }
.footer .logo { font-size: 1.5rem; color: var(--ink); }
.footer .tag { margin-top: 12px; max-width: 30ch; font-size: 0.9375rem; }
.footer-bottom {
  margin-top: 56px; padding-top: 24px; border-top: 1px solid var(--foam);
  display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px; font-size: 0.875rem; color: var(--muted);
}

/* Type: tracking is size-specific (Apple's rule). Headlines run tight, body sits at zero,
   and the smallest labels open up slightly so they stay legible. */
:is(.art-time, .art-caption, .sig-tag, .footer-bottom) { letter-spacing: 0.01em; }

/* Press feedback lands the instant a finger or click goes down, not on release. */
:is(.btn, .case-card, .menu-btn, .faq summary, .pager a, .back, .logo) { -webkit-tap-highlight-color: transparent; }
:is(.case-card) .banner { transition-property: background-color, border-color, color, transform; transition-duration: .2s, .2s, .2s, var(--press); transition-timing-function: ease, ease, ease, var(--ease); }

:is(.case-card):active .banner { transform: scale(.985); }
:is(.menu-btn, .faq summary, .back, .pager a, .nav-links a:not(.menu-cta), .footer a, .contact a, .logo, .skip):active { opacity: .7; }
.nav-links .menu-cta:active { transform: scale(.97); }

/* Touch screens wider than the phone layout (tablets) keep the desktop nav and footer, so their links and the
   header button grow to the 44px a fingertip needs. Mouse users see no change. */
@media (pointer: coarse) {
  .nav-links a:not(.menu-cta), .footer li a { display: inline-flex; align-items: center; min-height: 44px; }
  .nav .btn { min-height: 44px; }
  .case-head .byline a, .case-body .note a { display: inline-flex; align-items: center; min-height: 44px; }
  .footer li + li { margin-top: 0; }
}

/* System settings: a solid nav for people who turn transparency off, firmer lines and text for people who ask for more contrast. */
@media (prefers-reduced-transparency: reduce) {
  .nav { background: var(--paper); -webkit-backdrop-filter: none; backdrop-filter: none; }
  .nav::after { display: none; }
  .nav.scrolled { border-bottom-color: var(--foam); }
}
@media (prefers-contrast: more) {
  :root { --muted: #3b5a50; --ink-soft: #2c4a41; --foam: #a4c3b2; --leaf: #6b9080; }
  .logos img { opacity: 1; }
  .nav::after { display: none; }
  .nav.scrolled { border-bottom-color: var(--leaf); }
  .book { --foam: #cce3de; --leaf: #a4c3b2; }
}

/* Hover only where a real pointer can hover, so taps on touch screens don't leave states stuck on. */
@media (hover: hover) and (pointer: fine) {
  .btn:hover svg { transform: translateX(3px); }
  .btn-primary:hover { background: var(--ink-raised); }
  .btn-ghost:hover { border-color: var(--ink); }
  .book .btn-primary:hover { background: var(--foam); }
  .nav-links a:hover, .back:hover, .footer a:hover { color: var(--ink); }
  .nav-links a.menu-cta:hover { color: var(--paper); background: var(--ink-raised); }
  .back:hover svg { transform: scaleX(-1) translateX(3px); }
  :is(.case-card):hover :is(h2, h3) { text-decoration-color: var(--leaf); }
  :is(.case-card):hover .banner::before { transform: translate(3%, 3%); }
  :is(.case-card):hover .banner::after { transform: translate(-3%, -3%); }
  .pager .next:hover svg { transform: translateX(3px); }
  
  .pager .prev:hover svg { transform: scaleX(-1) translateX(3px); }
  .pager a:hover { text-decoration: underline; text-decoration-color: var(--leaf); }
  .footer a:hover { text-decoration: underline; }
  
  
  
  .logos img:hover { filter: none; opacity: 1; }
}

/* FAQ answers: the height opens at once and the answer settles in, so nothing animates layout. Closing is instant,
   so the answer always starts hidden and a keyframe never has a half-faded state to jump from. (@starting-style
   is unreliable here: Chrome skips it once it has already computed the hidden answer's style.) Opened from the
   keyboard, the answer simply appears. */
@media (prefers-reduced-motion: no-preference) {
  .faq details[open] > p { animation: answer .2s var(--ease); }
  .faq details.instant[open] > p { animation: none; }
}

/* responsive */
@media (max-width: 960px) {
  .service { grid-template-columns: 1fr; }
  
  
  .faq-grid, .book-grid, .team { grid-template-columns: minmax(0, 1fr); }
  .faq-grid .head { position: static; }
  .timeline { grid-template-columns: minmax(0, 1fr); gap: 4px; }
  .timeline li { grid-template-columns: 8px minmax(0, 1fr); column-gap: 22px; }
  .timeline li > :not(.track) { grid-column: 2; padding-right: 0; }
  .timeline .track { grid-column: 1; grid-row: 1 / span 3; width: 8px; height: auto; margin: 0; }
  .timeline .when { margin-top: 2px; }
  .timeline :is(h2, h3) { margin-top: 8px; }
  .timeline p { padding-bottom: 32px; }
  .timeline .t-decide .track { background: linear-gradient(180deg, var(--leaf), transparent); }
  .footer-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 760px) {
  .ctx li { grid-template-columns: minmax(0, 1fr); }
  .worked ul { flex-wrap: wrap; gap: 16px 28px; }
  body { font-size: 1rem; }
  .nav .wrap { display: flex; justify-content: space-between; }
  .nav-links {
    display: none; position: absolute; top: 72px; left: 0; right: 0;
    flex-direction: column; gap: 0; background: var(--paper); border-bottom: 1px solid var(--foam);
    padding: 8px var(--pad) 16px;
    opacity: 0; transform: translateY(-6px);
    transition: opacity .14s var(--ease), transform .14s var(--ease), display .14s allow-discrete;
  }
  .nav-links a { padding: 14px 0; font-size: 1.0625rem; border-bottom: 1px solid var(--mist); }
  .nav-links .menu-cta { display: block; margin-top: 14px; padding: 14px; border: 0; border-radius: 999px; background: var(--ink); color: var(--paper); text-align: center; font-weight: 500; transition: background-color .2s ease, transform var(--press) var(--ease); }
  .nav.open .nav-links { display: flex; opacity: 1; transform: none; transition-duration: .2s; }
  .nav.instant .nav-links { transition: none; }
  @starting-style {
    .nav.open .nav-links { opacity: 0; transform: translateY(-6px); }
  }
  .menu-btn { display: block; }
  .nav .btn { display: none; }
  .worked { gap: 12px 28px; }
  .worked ul.logos { font-size: 16px; } /* phones wrap the row instead, at full size */
  .logos .l-vivira { height: 2.125em; }
  .problems { grid-template-columns: 1fr; }
  .problem, .problem:nth-child(even), .problem:nth-child(odd) { padding: 28px 0; border-right: 0; }
  
  
  
  .case-grid, .problems { grid-template-columns: minmax(0, 1fr); }
  .home-cases > .case-card:only-child { grid-template-columns: minmax(0, 1fr); }
  .footer li + li { margin-top: 0; }
  .footer li a { padding: 10px 0; }
  
  .glance div { grid-template-columns: 1fr; }
  .glance dt { border-right: 0; padding-bottom: 0; }
  .glance dd { padding-top: 4px; }
  .pager { flex-direction: column; }
  .person { gap: 16px; }
  .person img.photo { width: 96px; }
  /* On phones the three service names stack, each on one line, rather than squeezing into two-line pills. */
  .tablist { display: grid; width: 100%; border-radius: 26px; }
  .tablist [role="tab"] { padding: 12px 18px; text-align: left; }
  .faq details p { padding-right: 0; }
  .embed { min-height: 320px; }
  .hero-actions .btn { width: 100%; justify-content: center; }
}

/* Motion. One idea, carried through: hairlines and connectors draw themselves, and content settles in once as it
   enters. Everything here hangs off the .motion class set in each page's head, so without JavaScript the page is
   simply static and fully visible. site.js adds .in to each element as it scrolls into view. */
@keyframes rise { from { opacity: 0; transform: translateY(14px); filter: blur(4px); } }
@keyframes rise-plain { from { opacity: 0; transform: translateY(14px); } }
@keyframes sharpen { from { transform: translateY(10px); filter: blur(6px); } }
@keyframes sharpen-still { from { filter: blur(6px); } }
@keyframes fade { from { opacity: 0; } }
@keyframes answer { from { opacity: 0; transform: translateY(-4px); } }
@keyframes settle { from { opacity: 0; transform: scale(.96); } }
@keyframes drift-a { from { transform: translate(-14%, -12%); } }
@keyframes drift-b { from { transform: translate(14%, 12%); } }

.motion :is(.problems, .services, .faq, .person) { position: relative; border-top-color: transparent; }
.motion :is(.problems, .services, .faq, .person)::before {
  content: ''; position: absolute; left: 0; right: 0; top: -1px; height: 1px; background: var(--leaf);
  transform: scaleX(0); transform-origin: left;
}
.motion :is(.problems, .services, .faq, .person).in::before { transform: none; }

@media (prefers-reduced-motion: no-preference) {
  /* Page entrance: a short staggered rise, under a second end to end. */
  .motion :where(.hero h1, .hero .lede, .hero-actions, .worked, .page-head .wrap:not(.service-hero) > *) {
    animation: rise .9s var(--ease) backwards;
  }
  .motion .hero .lede, .motion .page-head .wrap > :nth-child(2) { animation-delay: .07s; }
  
  
  
  .motion .hero-actions, .motion .page-head .wrap > :nth-child(3) { animation-delay: .14s; }
  .motion .page-head .wrap > :nth-child(4) { animation-delay: .21s; }
  .motion .page-head .wrap > :nth-child(5) { animation-delay: .28s; }
  /* Case banners: the panel settles in and its shapes drift into place. */
  .motion .case-head .wrap > .banner.banner { animation: settle 1s var(--ease) .3s backwards; }
  .motion :is(.case-head .banner, .case-card.in .banner)::before { animation: drift-a 1.4s var(--ease) .35s backwards; }
  .motion :is(.case-head .banner, .case-card.in .banner)::after { animation: drift-b 1.4s var(--ease) .45s backwards; }
  .motion .worked { animation-delay: .21s; }
  /* Blur only where it earns its cost: headlines and ledes. Everything else rises without it. */
  .motion :is(.hero-actions, .worked, .page-head .back, .page-head .byline) { animation-name: rise-plain; }
  .motion :is(.hero h1, .hero .lede, .page-head h1, .page-head .lede) { animation-name: sharpen; }

  /* Hairlines draw left to right as their list arrives. */
  .motion :is(.problems, .services, .faq, .person)::before { transition: transform .9s var(--ease-draw); }

  /* Rows settle in; rows entering together stagger by --d, set in site.js. */
  .motion :is(.problem, .service > div:first-child, .faq details, .person, .book .embed, .glance, .numbers, .case-card) {
    opacity: 0; transform: translateY(16px);
    transition: opacity .7s var(--ease) var(--d, 0ms), transform .7s var(--ease) var(--d, 0ms);
  }
  .motion :is(.problem, .service > div:first-child, .faq details, .person, .book .embed, .glance, .numbers, .case-card).in {
    opacity: 1; transform: none;
  }

  
  
  
  
  
  
  

  /* Process timeline: on desktop the tracks draw one after another, left to right; on phones, where the steps
     stack, each step draws as it scrolls into view (site.js sets its delay to 0). */
  .motion .timeline .track { transform: scaleX(0); transform-origin: left; transition: transform .5s var(--ease-draw) calc(var(--i) * .3s); }
  .motion .timeline :is(.when, h2, h3, p) { opacity: 0; transform: translateY(8px); transition: opacity .6s var(--ease) calc(var(--i) * .3s + .15s), transform .6s var(--ease) calc(var(--i) * .3s + .15s); }
  .motion .timeline li.in .track, .motion .timeline li.in :is(.when, h2, h3, p) { opacity: 1; transform: none; }
  @media (max-width: 960px) { .motion .timeline .track { transform: scaleY(0); transform-origin: top; } }
  /* Service tabs: a switched-to panel's text settles in quickly; from the keyboard it appears at once. */
  .motion .svc-tabs.switched .service > div:first-child { transition-duration: .28s; transition-delay: 0ms; }
  .motion .svc-tabs.instant .service > div:first-child { transition: none; }

  /* Service visuals arrive, then play once from "before" to "after" (site.js adds .done shortly after .in). */
  .motion .art { opacity: 0; transform: scale(.97); transition: opacity .8s var(--ease), transform .8s var(--ease); }
  .motion .art.in { opacity: 1; transform: none; }
  .motion .art .art-caption { opacity: 0; transition: opacity .6s var(--ease) .6s; }
  .motion .art.in .art-caption { opacity: 1; }
  /* Context and CRM: the touchpoints arrive one by one, then the summary lands. */
  .motion .art-ctx .ctx li { opacity: 0; transform: translateY(6px); transition: opacity .5s var(--ease), transform .5s var(--ease); }
  .motion .art-ctx.in .ctx li { opacity: 1; transform: none; }
  .motion .art-ctx.in .ctx li:nth-child(2) { transition-delay: .15s; }
  .motion .art-ctx.in .ctx li:nth-child(3) { transition-delay: .3s; }
  .motion .art-ctx.in .ctx li:nth-child(4) { transition-delay: .45s; }
  .motion .art-ctx .ctx-sum { opacity: 0; transform: translateY(6px); transition: opacity .5s var(--ease), transform .5s var(--ease); }
  .motion .art-ctx.done .ctx-sum { opacity: 1; transform: none; }
  /* Data and signals: the companies first, then each one's priority and latest signal, then where to start. */
  .motion .art-sig:not(.done) .st-before { opacity: 1; filter: none; }
  .motion .art-sig:not(.done) .st-after { opacity: 0; filter: blur(2px); }
  .motion .art-sig :is(.sig-tier, .sig-when, .sig-sum) { transition: opacity .4s var(--ease), filter .4s var(--ease); }
  .motion .art-sig:not(.done) :is(.sig-tier, .sig-when, .sig-sum) { opacity: 0; filter: blur(2px); }
  .motion .art-sig.done li:nth-child(2) :is(.sig-tier, .sig-when) { transition-delay: .08s; }
  .motion .art-sig.done li:nth-child(3) :is(.sig-tier, .sig-when) { transition-delay: .16s; }
  .motion .art-sig.done li:nth-child(4) :is(.sig-tier, .sig-when) { transition-delay: .24s; }
  .motion .art-sig.done .sig-sum { transition-delay: .5s; }
}
@media print {
  .motion *, .motion *::before { opacity: 1 !important; transform: none !important; animation: none !important; }
}

/* Reduced motion keeps colour and opacity feedback and drops movement: lines and connectors are drawn from the start. */
@media (prefers-reduced-motion: reduce) {
  html.smooth { scroll-behavior: auto; }
  .nav-links, .nav.open .nav-links { transform: none; }
  .nav-links { transition: opacity .2s ease, display .2s allow-discrete; }
  .banner::before, .banner::after { transition: none; }
  :is(.case-card):hover .banner::before, :is(.case-card):hover .banner::after { transform: none; }
  .motion :is(.problems, .services, .faq, .person)::before { transform: none; }
  .motion :is(.hero h1, .hero .lede, .hero-actions, .worked, .page-head .wrap:not(.service-hero) > *, .case-head .banner) { animation: fade .6s ease both; }
  .motion :is(.hero h1, .hero .lede, .page-head h1, .page-head .lede) { animation: sharpen-still .6s ease both; }
  .motion :is(.problem, .service > div:first-child, .faq details, .person, .book .embed, .glance, .numbers, .case-card, .art) {
    opacity: 0; transition: opacity .5s ease var(--d, 0ms);
  }
  .motion :is(.problem, .service > div:first-child, .faq details, .person, .book .embed, .glance, .numbers, .case-card, .art).in { opacity: 1; }
}
