/* RFP: the "Case file" build. Brand: the Rose-FP-Solutions/brand repo (README.md, tokens/tokens.css)
   Page classes only. The engine's own selectors live in scrollcraft.css. */

@font-face { font-family: "Charter"; src: url("fonts/charter_regular.woff2") format("woff2"); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: "Charter"; src: url("fonts/charter_italic.woff2") format("woff2"); font-weight: 400; font-style: italic; font-display: swap; }
@font-face { font-family: "Charter"; src: url("fonts/charter_bold.woff2") format("woff2"); font-weight: 700; font-style: normal; font-display: swap; }
@font-face { font-family: "Charter"; src: url("fonts/charter_bold_italic.woff2") format("woff2"); font-weight: 700; font-style: italic; font-display: swap; }
@font-face { font-family: "Poppins"; src: url("fonts/poppins-latin-400-normal.woff2") format("woff2"); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: "Poppins"; src: url("fonts/poppins-latin-400-italic.woff2") format("woff2"); font-weight: 400; font-style: italic; font-display: swap; }
@font-face { font-family: "Poppins"; src: url("fonts/poppins-latin-500-normal.woff2") format("woff2"); font-weight: 500; font-style: normal; font-display: swap; }
@font-face { font-family: "Poppins"; src: url("fonts/poppins-latin-600-normal.woff2") format("woff2"); font-weight: 600; font-style: normal; font-display: swap; }

:root {
  /* Heading sizes (Haydn, 10/11/2026): smaller, so headings can be full sentences
     (copywriting repo, formats/website-page.md). Matches the brand repo's scale. */
  --size-hero:       clamp(2rem, 1.3rem + 1.9vw, 3rem);
  --size-title:      clamp(1.6rem, 1.25rem + 1.1vw, 2.3rem);
  --size-card-title: clamp(1.2rem, 1rem + 0.5vw, 1.5rem);
  --sc-canvas:     #fbf9f2;   /* warm whites and greys from #fffef8 (brand, Haydn, 29/10/2026) */
  --sc-surface:    #fffef8;
  --sc-ink:        #1e2731;
  --sc-ink-soft:   #545e6a;
  --sc-accent:     #d47500;
  --sc-accent-ink: #1e2731;
  /* Headings: Poppins, like the body (Haydn, 24/10/2026; Verdana before).
     Testimonials keep Charter. */
  --sc-font-display: "Poppins", system-ui, sans-serif;
  --font-quote: "Charter", "Bitstream Charter", Georgia, serif;
  --sc-font-text:    "Poppins", system-ui, sans-serif;
  --sc-shadow-color: 212 25% 15%;

  --dark: #1b1e1f;
  --dark-ink: #fbf9f2;
  --dark-soft: #b9bdbf;
  --line: color-mix(in oklab, var(--sc-ink) 10%, transparent);
  --line-strong: color-mix(in oklab, var(--sc-ink) 16%, transparent);
  --rule: color-mix(in oklab, var(--sc-ink) 17%, transparent);
  --dot: color-mix(in oklab, var(--sc-ink) 18%, transparent);
  --tint: color-mix(in oklab, var(--sc-accent) 12%, var(--sc-surface));
  --field: #f4f2eb;
  --card-grey: #ecebe4;   /* light grey cards on the light page (brand --rfp-card-grey) */
  /* Completed cases only (Haydn, 24/10/2026): a pastel green, so "done"
     reads differently from the orange of work in progress. */
  --done-bg: #dff0e0;
  --done-ink: #2e6b38;
  --done-ring: #4f9d5d;
  --bar-h: 64px;
  --frame: 1200px;
  /* Named so light and dark mode can swap them (dark mode trial, Haydn 20/11/2026). */
  --sc-accent-deep: #8a4c00;   /* small orange text */
  --on-accent: #fffef8;        /* text on orange and on dark pictures: warm white in both modes */
  --selected: #373a3b;         /* the current tab or pill */
  --error: #b42318;
  --row-added: #dcd9cd;        /* the calculator's "work added" row */
}

body { background: var(--sc-canvas); }
::selection { background: color-mix(in oklab, var(--sc-accent) 30%, transparent); color: var(--sc-ink); }
:focus-visible { outline: 2px solid var(--sc-accent); outline-offset: 3px; border-radius: 4px; }

/* The content column. Its side borders are kept but invisible, so it holds the
   same width as when it was ruled (the widget grid, 29/10/2026). */
.frame {
  width: min(100% - 2 * var(--sc-gutter), var(--frame));
  margin-inline: auto;
  position: relative;
}
.on-dark {
  --line: color-mix(in oklab, var(--dark-ink) 10%, transparent);
  --rule: color-mix(in oklab, var(--dark-ink) 16%, transparent);
  --stripe: color-mix(in oklab, var(--dark-ink) 6%, transparent);
  color: var(--dark-ink);
}

/* Each section's backdrop. Light grounds have none; dark grounds have fine
   vertical lines along the top and bottom edges that fade towards the middle.
   The only dots on the site are behind the hero's drawing (.mio::before). */
.rails { position: absolute; inset: 0; pointer-events: none; }
.rails::before { content: ""; position: absolute; inset: 0; }
.rails.on-dark::before {
  background-image:
    repeating-linear-gradient(90deg, var(--stripe) 0 1px, transparent 1px 6px),
    repeating-linear-gradient(90deg, var(--stripe) 0 1px, transparent 1px 17px);
  background-size: auto;
  mask-image: linear-gradient(to bottom, #000, transparent 24%, transparent 76%, #000);
}
.rails > .frame { height: 100%; border-inline: 1px solid transparent; }

/* ------------------------------------------------------------- the bar -- */
.bar {
  position: fixed; inset: 0 0 auto 0; height: var(--bar-h);
  z-index: var(--sc-z-chrome);
  background: var(--sc-canvas);
  transition: background-color 260ms var(--sc-ease-out);
}
.bar .frame { border-inline: 1px solid transparent; }
.mark { display: inline-flex; align-items: center; }
.mark img { height: 38px; width: auto; }
.mark__dark { display: none; }
.bar--dark .mark__light { display: none; }
.bar--dark .mark__dark { display: block; }
main [id] { scroll-margin-top: var(--bar-h); }

/* Spacers: equal gaps between the closing sections. */
.spacer { position: relative; height: clamp(4rem, 8vw, 7rem); }
.bar--dark {
  background: var(--dark);
  --rule: color-mix(in oklab, var(--dark-ink) 16%, transparent);
}
.bar--dark .mark { color: var(--dark-ink); }
.bar .frame { height: 100%; display: flex; align-items: center; justify-content: space-between; padding-inline: var(--sc-5); }
.mark {
  font-family: var(--sc-font-display); font-weight: 700; font-size: 1.5rem;
  letter-spacing: 0.02em; color: var(--sc-ink); text-decoration: none;
}
.btn {
  display: inline-flex; align-items: center; gap: 0.5em;
  font-weight: 600; font-size: 0.95rem; line-height: 1;
  padding: 0.85em 1.4em; border-radius: 999px;
  background: var(--sc-accent); color: var(--on-accent);
  text-decoration: none; white-space: nowrap;
  box-shadow: var(--sc-e1);
  transition: background-color 160ms var(--sc-ease-out), transform 160ms var(--sc-ease-out);
}
.btn:hover { background: color-mix(in oklab, var(--sc-accent) 88%, #000); }
.btn:active { transform: translateY(1px); }
.btn--sm { padding: 0.7em 1.15em; font-size: 0.9rem; }

/* -------------------------------------------------------- 1 · the hero -- */
/* Not pinned (Haydn, 24/10/2026). Since 29/10/2026: copy on the left, the
   "many jobs, one service" drawing on the right (.mio, at the end of this
   file); stacked on phones. */
.hero__stage {
  position: relative; overflow: clip; background: var(--sc-canvas);
  padding: calc(var(--bar-h) + clamp(3rem, 9vh, 7rem)) 0 clamp(5rem, 12vh, 9rem);
}
.hero__grid {
  position: relative; display: grid; align-items: center;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr); gap: clamp(2rem, 4vw, 4rem);
  padding-inline: clamp(1.25rem, 3vw, 3rem);   /* the same inset as the sections below */
}
.hero__copy { position: relative; z-index: 3; }
.hero h1 {
  font-family: var(--sc-font-display); font-weight: 500;
  font-size: var(--size-hero);
  line-height: 1.08; letter-spacing: -0.035em;
  margin: 0; text-wrap: balance;
}
.accent { font-style: normal; color: var(--sc-accent); }
.hero__sub { margin: var(--sc-4) 0 0; max-width: 34rem; color: var(--sc-ink-soft); }
/* The announcement banner above the title (Haydn, 30/10/2026; built by tools/build-banner.py): a white tag (the
   version or the post type) and a short teaser in the bar's grey capsule, linking to the post or changelog entry.
   It carries the shiny button's orange light round its edge (moved here from "Onboard your firm", 30/10/2026):
   the same rotating conic layer (.btn-shiny::before), behind a grey face that covers all but a 2px rim. It sits
   6px higher than its place in the column (Haydn, 30/10/2026). */
.announce {
  position: relative; top: -6px; isolation: isolate; overflow: hidden;
  display: inline-flex; align-items: center; gap: 0.6rem; max-width: 100%;
  margin-bottom: var(--sc-4); padding: 5px 15px 5px 5px; border-radius: 999px;
  background: color-mix(in oklab, var(--sc-ink) 10%, transparent);   /* the rim where the light isn't */
  color: var(--sc-ink-soft); font-size: 0.875rem; text-decoration: none;
  transition: color 200ms var(--sc-ease-out);
}
.announce::before {   /* the travelling light */
  content: ""; position: absolute; z-index: -2; left: 50%; top: 50%;
  width: max(300%, 22rem); aspect-ratio: 1; translate: -50% -50%;
  background: conic-gradient(from 0deg, transparent 0 50%, color-mix(in oklab, var(--sc-accent) 35%, transparent) 64%, var(--sc-accent) 80%, #ffd29b 87%, var(--sc-accent) 92%, transparent 99%);
  animation: shiny-turn 3.6s linear infinite;
}
.announce::after {    /* the face, with the shiny button's sheen on hover */
  content: ""; position: absolute; z-index: -1; inset: 2px; border-radius: inherit;
  background:
    linear-gradient(115deg, transparent 30%, rgb(255 255 255 / 0.9) 48%, transparent 66%) -150% 0 / 250% 100% no-repeat,
    var(--field);
  transition: background-position 700ms var(--sc-ease-out);
}
.announce:hover { color: var(--sc-ink); }
.announce:hover::after { background-position: 150% 0, 0 0; }
.announce:focus-visible { outline: 2px solid var(--sc-accent); outline-offset: 2px; }
.announce__tag {
  flex: none; padding: 3px 10px; border-radius: 999px; background: var(--sc-surface);
  color: var(--sc-ink); font-weight: 500; font-size: 0.8125rem;
}
.announce__text { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.announce__arrow { flex: none; color: var(--sc-accent-deep); transition: translate 200ms var(--sc-ease-out); }
.announce:hover .announce__arrow { translate: 3px 0; }
@media (prefers-reduced-motion: reduce) {
  .announce::before { animation: none; rotate: 40deg; }
  .announce::after { transition: none; }
  .announce:hover .announce__arrow { translate: none; }
}
@media (max-width: 560px) {   /* phones: a little smaller, so a short teaser fits on one line */
  .announce { gap: 0.45rem; padding-right: 13px; font-size: 0.8125rem; }
  .announce__tag { padding-inline: 8px; font-size: 0.75rem; }
}
.hero__cta { margin-top: var(--sc-5); }
.btn.hero__cta {   /* a plain white button with a fine line, the shiny one's size (Haydn, 30/10/2026) */
  padding: 1em 1.7em; font-size: 1rem;
  background: var(--sc-surface); color: var(--sc-ink); box-shadow: inset 0 0 0 1px var(--line-strong);
}
.btn.hero__cta:hover { background: var(--field); }

/* ------------------------------------------------- the portal surface -- */
.ui {
  font-family: var(--sc-font-text); color: var(--sc-ink);
  font-size: 13px; line-height: 1.45; letter-spacing: 0;
}
.ui-window {
  background: var(--sc-surface);
  border: 1px solid var(--line-strong);
  border-radius: 16px;
  box-shadow: var(--sc-e3), var(--sc-edge);
  overflow: hidden;
}
.ui-window__chrome {
  display: flex; align-items: center; gap: 10px;
  padding: 10px 16px; border-bottom: 1px solid var(--line);
  background: color-mix(in oklab, var(--field) 60%, var(--sc-surface));
}
.ui-dots { display: flex; gap: 6px; }
.ui-dots i { width: 9px; height: 9px; border-radius: 50%; background: color-mix(in oklab, var(--sc-ink) 14%, transparent); }
.ui-address { font-size: 11px; color: var(--sc-ink-soft); margin-left: 8px; }
.ui-sample { margin-left: auto; font-size: 10.5px; color: var(--sc-ink-soft); letter-spacing: 0.06em; text-transform: uppercase; }
.ui-body { padding: 22px 26px 26px; }
.ui-date { color: var(--sc-ink-soft); font-size: 12px; margin: 0; }
.ui-greet { font-size: 22px; font-weight: 500; margin: 0 0 16px; letter-spacing: -0.01em; }
.ui-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.ui-card {
  background: var(--sc-surface); border: 1px solid var(--line-strong);
  border-radius: 12px; padding: 14px 16px;
}
.ui-card--soft { background: var(--field); border-color: transparent; }
.ui-card h4 { margin: 0; font-size: 13.5px; font-weight: 500; }
.ui-muted { color: var(--sc-ink-soft); }
.ui-small { font-size: 11.5px; }
.ui-invoice { display: flex; justify-content: space-between; gap: 12px; }
.ui-big { font-size: 26px; font-weight: 500; letter-spacing: -0.01em; margin: 2px 0 0; }
.ui-meter { height: 6px; border-radius: 6px; background: color-mix(in oklab, var(--sc-ink) 8%, transparent); margin-top: 12px; overflow: hidden; }
.ui-meter i { display: block; height: 100%; width: 100%; background: var(--sc-accent); border-radius: inherit; transform-origin: left center; transition: transform 420ms var(--sc-ease-out); }
/* Hero invoice (site.js): full width is £1,060, so the £300 monthly minimum
   is marked just under a third of the way along. Past it, the bar turns
   green, darker for the part under £300 (--min-at). */
.ui-card .ui-meter { position: relative; }
.ui-card .ui-meter::after { content: ""; position: absolute; top: 0; bottom: 0; left: calc(300 / 1060 * 100%); width: 2px; margin-left: -1px; background: color-mix(in oklab, var(--sc-ink) 30%, transparent); }
.ui-meter i.is-over { background: linear-gradient(90deg, var(--done-ink) 0 var(--min-at, 30%), var(--done-ring) var(--min-at, 30%) 100%); }
.ui-stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; margin-top: 10px; }
.ui-stat { border: 1px solid var(--line-strong); border-radius: 10px; padding: 10px 12px; }
.ui-stat b { display: block; font-size: 19px; font-weight: 500; }
.ui-stat span { font-size: 11px; color: var(--sc-ink-soft); line-height: 1.3; display: block; }
.ui-list { list-style: none; margin: 10px 0 0; padding: 0; }
.ui-list li { display: grid; grid-template-columns: 38px 1fr auto; gap: 12px; align-items: center; padding: 8px 0; border-top: 1px solid var(--line); }
.ui-list li:first-child { border-top: 0; }
.ui-day { background: var(--tint); border-radius: 8px; text-align: center; padding: 4px 0; line-height: 1.1; }
.ui-day small { display: block; font-size: 9px; letter-spacing: 0.06em; color: var(--sc-accent-deep); }
.ui-day b { font-size: 15px; font-weight: 500; }
.ui-name { font-weight: 500; }
.ui-pill {
  font-size: 10.5px; border: 1px solid var(--line-strong); border-radius: 999px;
  padding: 2px 8px; color: var(--sc-ink-soft); white-space: nowrap;
}
.ui-msg { display: grid; grid-template-columns: 8px 1fr auto; gap: 10px; margin-top: 12px; }
.ui-msg i { width: 7px; height: 7px; border-radius: 50%; background: var(--sc-accent); margin-top: 6px; }

/* Case card: used by the services stack. */
.case { border-radius: 14px; overflow: hidden; background: var(--sc-surface); border: 1px solid var(--line-strong); box-shadow: var(--sc-e2), var(--sc-edge); }
.case__status {
  display: flex; justify-content: space-between; align-items: center;
  padding: 10px 18px; font-size: 12px; font-weight: 500;
  background: var(--field); color: var(--sc-ink-soft);
  transition: background-color 300ms var(--sc-ease-out), color 300ms var(--sc-ease-out);
}
.case[data-status="progress"] .case__status { background: color-mix(in oklab, var(--sc-accent) 9%, var(--sc-surface)); color: var(--sc-accent-deep); }
.case[data-status="complete"] .case__status { background: var(--done-bg); color: var(--done-ink); }
.case[data-status="complete"] .ring__fill { stroke: var(--done-ring); }
.case__head { display: flex; justify-content: space-between; gap: 16px; padding: 16px 18px 6px; }
.case__name { font-size: 17px; font-weight: 500; margin: 0; letter-spacing: -0.01em; }
.case__meta { margin: 2px 0 0; color: var(--sc-ink-soft); font-size: 12px; }
.ring { width: 54px; height: 54px; flex: none; position: relative; }
.ring svg { width: 100%; height: 100%; rotate: -90deg; }
.ring circle { fill: none; stroke-width: 5; }
.ring .ring__track { stroke: color-mix(in oklab, var(--sc-ink) 9%, transparent); }
.ring .ring__fill { stroke: var(--sc-accent); stroke-linecap: round; stroke-dasharray: 138.2; stroke-dashoffset: calc(138.2 * (1 - var(--done, 0))); transition: stroke-dashoffset 380ms var(--sc-ease-out), stroke 300ms var(--sc-ease-out); }
.ring b { position: absolute; inset: 0; display: grid; place-items: center; font-size: 12px; font-weight: 500; }
.case__body { display: grid; grid-template-columns: 1fr 1.15fr; gap: 14px; padding: 10px 18px 18px; }
.note { background: var(--field); border-radius: 10px; padding: 12px 14px; min-height: 100%; }
.note__label { display: flex; justify-content: space-between; font-size: 11px; color: var(--sc-ink-soft); }
.note__text { margin: 6px 0 0; font-size: 12.5px; transition: opacity 300ms var(--sc-ease-out); }
.tasks { list-style: none; margin: 0; padding: 0; }
.tasks li { display: grid; grid-template-columns: 18px 1fr 3.8em; gap: 10px; align-items: center; padding: 5px 0; font-size: 12.5px; }
.tick {
  width: 16px; height: 16px; border-radius: 4px; border: 1.5px solid color-mix(in oklab, var(--sc-ink) 35%, transparent);
  display: grid; place-items: center; transition: background-color 200ms var(--sc-ease-out), border-color 200ms var(--sc-ease-out);
}
.tick svg { width: 10px; height: 10px; opacity: 0; scale: 0.7; transition: opacity 200ms var(--sc-ease-out), scale 200ms var(--sc-ease-out); }
.tasks li.is-done .tick { background: var(--sc-accent); border-color: var(--sc-accent); }
.tasks li.is-done .tick svg { opacity: 1; scale: 1; }
.tasks li.is-done .task__text { color: var(--sc-ink-soft); text-decoration: line-through; text-decoration-color: color-mix(in oklab, var(--sc-ink) 40%, transparent); }
.tasks li.is-next .task__text { font-weight: 500; }
.task__when { font-size: 11px; color: var(--sc-ink-soft); white-space: nowrap; text-align: right; }   /* its column is always there (3.8em), so a date appearing never squeezes the task (Haydn, 10/11/2026) */

.billing { width: 100%; border-collapse: collapse; font-size: 11.5px; }
.billing th { text-align: left; font-weight: 400; color: var(--sc-ink-soft); padding: 6px 4px; border-bottom: 1px solid var(--line); }
.billing td { padding: 8px 4px; }
.status-tag { background: var(--tint); color: var(--sc-accent-deep); border-radius: 999px; padding: 2px 8px; font-size: 10.5px; white-space: nowrap; }
.form-kicker { color: var(--sc-accent-deep); font-size: 11px; margin: 0; }
.form-title { font-size: 15px; font-weight: 500; margin: 0 0 8px; }
.chips { display: flex; gap: 6px; margin: 6px 0 10px; }
.chip { border-radius: 999px; padding: 4px 10px; background: var(--field); font-size: 11px; }
.chip--on { background: var(--tint); box-shadow: inset 0 0 0 1px color-mix(in oklab, var(--sc-accent) 50%, transparent); }
.field-label { font-size: 11px; margin: 0 0 4px; }
.field { border: 1px solid var(--line-strong); border-radius: 8px; padding: 6px 10px; font-size: 11.5px; margin-bottom: 8px; min-height: 2.15em; }
.field.is-typing { border-color: color-mix(in oklab, var(--sc-accent) 60%, transparent); }
.field.is-typing::after { content: ""; display: inline-block; width: 1px; height: 1em; margin-left: 1px; vertical-align: -0.15em; background: var(--sc-ink); }
.chip { transition: background-color 200ms var(--sc-ease-out), box-shadow 200ms var(--sc-ease-out); }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }

/* ------------------------------------------------------ client logos -- */
.clients { position: relative; }
.clients .frame { z-index: 1; background: var(--sc-canvas); }
.marquee {
  overflow: hidden;
  mask-image: linear-gradient(to right, transparent, #000 8%, #000 92%, transparent);
}
.marquee__track { display: flex; width: max-content; animation: marquee 48s linear infinite; }
/* The strip keeps moving under the pointer (Haydn, 29/10/2026). */
.client { flex: none; width: 220px; height: 104px; display: grid; place-items: center; }
.client img { width: 150px; height: auto; opacity: 0.72; filter: grayscale(1); transition: opacity 160ms var(--sc-ease-out); }
.client:hover img { opacity: 1; }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ---------------------------------------------------- 2 · what we do -- */
/* ------------------------------------------------------ testimonial -- */
/* Its own full-screen pin: dark ground, the quote held mid-screen, words
   lighting up in reading order (site.js, from the act's --sc-p). */
.testimonial .sc-stage { background: var(--dark); color: var(--dark-ink); }
.testimonial__ground { position: absolute; inset: 0; }
.testimonial__ground .rails { inset: 0; }
.quote {
  position: absolute; inset: 0; z-index: 1;
  display: grid; align-content: center; justify-items: center; text-align: center;
  padding-inline: var(--sc-gutter); margin: 0;
}
.quote blockquote { margin: 0; max-width: 21em; font-family: var(--font-quote); font-weight: 400; font-size: clamp(1.8rem, 1.05rem + 2.6vw, 3.4rem); line-height: 1.18; letter-spacing: -0.012em; }
.quote .w { color: color-mix(in oklab, var(--dark-ink) 24%, var(--dark)); transition: color 160ms linear; }
.quote .w.is-lit { color: var(--dark-ink); }
.quote .w.is-key.is-lit { color: var(--sc-accent); }
.quote figcaption { margin-top: var(--sc-6); color: var(--dark-soft); font-size: 0.95rem; }
.quote figcaption b { color: var(--dark-ink); font-weight: 500; display: block; }

/* ----------------------------------------------------- how it works -- */
/* Haydn, 25/10/2026: pinned, panning sideways; back on the light ground from 29/10/2026 (it was on the
   testimonial's dark ground from 25/10/2026). The stage
   sticks for the section's height; the workflow pans sideways as a CSS
   scroll-driven animation (run by the graphics card), using --pan-from and
   --pan-to that flow.js works out from the screen width. Each step's text
   fades in below as its node is reached. The pan finishes at 85% of the
   pinned stretch, so the finished workflow holds for a moment before the
   page moves on (Haydn: a little pause after the invoice). */
.how { position: relative; height: 460vh; background: var(--sc-canvas); color: var(--sc-ink); view-timeline: --how block; }
.how__stage { position: sticky; top: 0; height: 100vh; height: 100svh; overflow: clip; }
.how__stage > .rails { inset: 0; }
.how__frame {
  height: 100%; z-index: 1; display: grid; grid-template-rows: auto auto auto; grid-template-columns: minmax(0, 1fr);
  align-content: center; row-gap: clamp(2rem, 5vh, 3.5rem);
  padding: calc(var(--bar-h) + 1rem) var(--cell-pad) 2rem;
}
/* Heading above the workflow, in orange like the testimonial's key phrase
   (Haydn). */
.how__head { max-width: 40rem; }
.how__head h2 { font-family: var(--sc-font-display); font-weight: 500; font-size: var(--size-title); line-height: 1.05; letter-spacing: -0.02em; margin: 0; color: var(--sc-accent); }
.how__head p { color: var(--sc-ink-soft); margin: var(--sc-3) 0 0; }

/* The canvas: a window the workflow slides through, fading at both edges. */
.how__view {
  position: relative; overflow: clip; margin-inline: calc(-1 * var(--cell-pad));
  -webkit-mask-image: linear-gradient(to right, transparent, #000 7%, #000 93%, transparent);
  mask-image: linear-gradient(to right, transparent, #000 7%, #000 93%, transparent);
}
.how__frame { --box: 84px; --if-box: 64px; --lane-gap: 36px; }
.flow {
  --col: 260px;
  position: relative; height: calc(var(--box) + var(--lane-gap) + var(--box) + 34px);
  width: calc(5 * var(--col) + var(--box));
  translate: var(--pan-from, 0px) 0;
  will-change: transform;
}
@supports (animation-timeline: view()) {
  .flow { animation: how-pan linear both; animation-timeline: --how; animation-range: contain 0% contain 85%; }
}
@keyframes how-pan { from { translate: var(--pan-from, 0px) 0; } to { translate: var(--pan-to, 0px) 0; } }

.node {
  position: absolute; left: calc(var(--c) * var(--col)); top: calc(var(--l) * (var(--box) + var(--lane-gap)));
  width: var(--box); display: flex; flex-direction: column; align-items: center; gap: 10px;
}
.node--if { padding-top: calc((var(--box) - var(--if-box)) / 2); }
.node__box {
  width: var(--box); height: var(--box); border-radius: 18px; display: grid; place-items: center;
  background: var(--sc-surface);
  border: 1px solid var(--line-strong);
  opacity: 0.55; transition: opacity 320ms var(--sc-ease-out), border-color 320ms var(--sc-ease-out), background-color 320ms var(--sc-ease-out);
}
.node__box svg { width: 30px; height: 30px; fill: none; stroke: var(--sc-ink-soft); stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; transition: stroke 320ms var(--sc-ease-out); }
.node__label { font-size: 0.85rem; color: var(--sc-ink-soft); white-space: nowrap; opacity: 0.6; transition: opacity 320ms var(--sc-ease-out), color 320ms var(--sc-ease-out); }
.node--if .node__box { width: var(--if-box); height: var(--if-box); border-radius: 14px; }
.node--if .node__box svg { width: 24px; height: 24px; }
.node.is-on .node__box { opacity: 1; border-color: color-mix(in oklab, var(--sc-accent) 70%, transparent); background: color-mix(in oklab, var(--sc-accent) 8%, var(--sc-surface)); box-shadow: var(--sc-e1); }
.node.is-on .node__box svg { stroke: var(--sc-accent); }
.node.is-on .node__label { opacity: 1; color: var(--sc-ink); }

.flow__wires { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; pointer-events: none; }
.flow__wires .wire-base { fill: none; stroke: var(--line-strong); stroke-width: 1.5; }
.flow__wires .wire-live { fill: none; stroke: var(--sc-accent); stroke-width: 2; stroke-linecap: round; transition: stroke-dashoffset 600ms var(--sc-ease-out); }
.flow__wires .wire-live.no-anim { transition: none; }
.flow__wires .port { fill: color-mix(in oklab, var(--sc-ink) 28%, var(--sc-canvas)); transition: fill 240ms var(--sc-ease-out); }
.flow__wires .port.is-on { fill: var(--sc-accent); }
.wire-label {
  position: absolute; transform: translate(-50%, -50%); white-space: nowrap;
  font-size: 0.75rem; color: var(--sc-ink-soft); background: var(--sc-canvas);
  border: 1px solid var(--line-strong); border-radius: 999px; padding: 2px 10px;
  opacity: 0; transition: opacity 300ms var(--sc-ease-out);
}
.wire-label.is-on { opacity: 1; }

/* The steps: wide cards, stacked in one place, one shown at a time. Like
   the case study cards, the grounds vary (a raised white, a light grey) and
   some carry a picture, so no one step stands out (Haydn, 25/10/2026). */
.how__steps { list-style: none; margin: 0; padding: 0; display: grid; }
.step-card {
  grid-area: 1 / 1; display: grid; grid-template-columns: minmax(0, 1fr);
  height: clamp(190px, 25vh, 240px); border-radius: 20px; overflow: hidden;
  opacity: 0; translate: 0 10px; transition: opacity 450ms var(--sc-ease-out), translate 450ms var(--sc-ease-out);
}
.step-card.is-active { opacity: 1; translate: 0 0; }
.step-card--media { grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr); }
.step-card--raised { background: var(--sc-surface); border: 1px solid var(--line); box-shadow: var(--sc-e1); --step-ink: var(--sc-ink); --step-soft: var(--sc-ink-soft); }
.step-card--grey { background: var(--card-grey); border: 1px solid var(--line); --step-ink: var(--sc-ink); --step-soft: var(--sc-ink-soft); }
.step-card__body { display: flex; flex-direction: column; justify-content: center; padding: clamp(1.4rem, 2.4vw, 2.2rem); }
.step-card__media { position: relative; margin: 10px; border-radius: 12px; overflow: hidden; }
.step-card__media img { width: 100%; height: 100%; object-fit: cover; object-position: 70% 30%; display: block; }
.step-card__media figcaption { position: absolute; left: 10px; bottom: 8px; font-size: 0.65rem; color: var(--on-accent); background: color-mix(in oklab, var(--dark) 70%, transparent); padding: 2px 8px; border-radius: 999px; }
/* Step 1: a copy of the hero's portal dashboard, cropped to its top left. */
.step-card__media--portal { background: var(--sc-canvas); border: 1px solid var(--line); }
.step-card__media--portal .ui-window { position: absolute; left: 18px; top: 18px; width: 1040px; transform-origin: 0 0; scale: var(--portal-scale, 0.5); box-shadow: var(--sc-e2); }
.step__num { margin: 0; font-size: 0.75rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--sc-accent); }
.step-card__body h3 { margin: 6px 0 0; font-family: var(--sc-font-display); font-weight: 500; font-size: var(--size-card-title); line-height: 1.2; letter-spacing: -0.015em; color: var(--step-ink); }
.step-card__body p:not(.step__num) { margin: var(--sc-2) 0 0; color: var(--step-soft); max-width: 40rem; } /* the title runs full width; the paragraph keeps a readable line length */

.numbers { position: relative; padding-block: clamp(5rem, 12vw, 10rem) clamp(3rem, 6vw, 5rem); overflow: clip; }
.numbers > .frame { z-index: 1; }
.numbers .frame { padding-inline: clamp(1.25rem, 3vw, 3rem); }
.numbers h2, .stories h2 {
  font-family: var(--sc-font-display); font-weight: 500;
  font-size: var(--size-title); line-height: 1.05; letter-spacing: -0.02em; margin: 0; text-wrap: balance;
}
.numbers__lede { color: var(--sc-ink-soft); max-width: 30rem; margin: var(--sc-3) 0 0; }
/* Haydn, 25/10/2026: rounded cards in the case studies' light grey. Four
   figures in a square, the graph beside them at the same height. The
   figures count up in a few steps and the graph is uncovered by one sliding
   panel (the graphics card moves it), once, when the cards come into view. */
.numbers__head { margin-bottom: clamp(2rem, 4vw, 3rem); }
.nums { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr); gap: 16px; }
.nums__grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.metric {
  border-radius: 20px; padding: clamp(1.4rem, 2vw, 1.9rem);
  --card-bg: var(--card-grey);   /* as .card--light */
  background: var(--card-bg);
  border: 1px solid var(--line-strong);   /* the one container line (Haydn, 30/10/2026) */
  color: var(--sc-ink); display: flex; flex-direction: column; gap: 10px; min-height: 196px;
}
.metric p { margin: 0; }
.metric__label { font-size: 0.72rem; font-weight: 500; letter-spacing: 0.18em; text-transform: uppercase; color: var(--sc-ink-soft); }
.metric__num { margin-top: clamp(1rem, 2vw, 1.75rem) !important; font-family: var(--sc-font-display); font-weight: 500; font-size: clamp(2.4rem, 1.6rem + 2vw, 3.4rem); line-height: 1; letter-spacing: -0.03em; font-variant-numeric: tabular-nums; }
.metric__sub { color: var(--sc-ink-soft); font-size: 0.92rem; }
.metric--graph { padding: 0; overflow: hidden; gap: 0; }
.metric__top { display: flex; justify-content: space-between; align-items: flex-start; gap: 1rem; padding: clamp(1.4rem, 2vw, 1.9rem) clamp(1.4rem, 2vw, 1.9rem) 0; }
.metric__top > div { display: grid; gap: 14px; }
.metric--graph .metric__num { font-size: clamp(3rem, 2rem + 2.6vw, 4.6rem); }
/* The chart fills the rest of the card, on a faint dot grid. */
.chart { position: relative; flex: 1 1 auto; min-height: 180px; margin-top: 1rem; overflow: hidden; }
.chart::before {
  content: ""; position: absolute; inset: 0;
  background-image: radial-gradient(circle, color-mix(in oklab, var(--sc-ink) 16%, transparent) 1px, transparent 1.4px);
  background-size: 16px 16px;
  -webkit-mask-image: linear-gradient(to right, transparent, #000 40%);
  mask-image: linear-gradient(to right, transparent, #000 40%);
}
.chart svg { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.chart__line { fill: none; stroke: var(--sc-accent); stroke-width: 2.5; vector-effect: non-scaling-stroke; stroke-linejoin: round; }
.chart__area { fill: url(#chartFill); }
.chart__dot {
  position: absolute; width: 10px; height: 10px; margin: -5px 0 0 -5px; border-radius: 50%;
  background: var(--sc-accent); box-shadow: 0 0 0 5px color-mix(in oklab, var(--sc-accent) 25%, transparent);
  opacity: 0; transition: opacity 300ms var(--sc-ease-out);
}
.chart__cover {
  position: absolute; inset: 0; background: var(--card-bg);
  transform-origin: right; will-change: transform;
}
.nums.is-played .chart__cover { transform: translateX(100%); transition: transform 1100ms cubic-bezier(0.25, 0.7, 0.3, 1); }
.nums.is-played .chart__dot { opacity: 1; transition-delay: 1000ms; }
.placeholder-tag {
  display: inline-block; margin-top: var(--sc-5);
  font-size: 0.75rem; letter-spacing: 0.06em; text-transform: uppercase;
  color: var(--sc-ink-soft); border: 1px dashed var(--line-strong); border-radius: 999px; padding: 3px 10px;
}

/* --------------------------------------------------- 4 · case studies -- */
/* Haydn, 25/10/2026: cards in a row, like n8n's testimonials, on a mix of
   grounds (dark, light, photo header, full photo). The section pins and the
   row pans sideways as you scroll (a CSS scroll-driven animation run by the
   graphics card, to --cards-to, which site.js works out), so every card is
   seen before the page moves on. A short hold at each end. */
.stories { position: relative; height: 320vh; view-timeline: --stories block; }
.stories__stage { position: sticky; top: 0; height: 100vh; height: 100svh; overflow: clip; }
.stories__stage > .rails { inset: 0; }
.stories__frame {
  height: 100%; z-index: 1; display: grid; grid-template-columns: minmax(0, 1fr);
  align-content: center; row-gap: clamp(1.75rem, 4vh, 3rem);
  padding: calc(var(--bar-h) + 1rem) var(--cell-pad) 2rem;
}
.stories h2 { font-family: var(--sc-font-display); font-weight: 500; font-size: var(--size-title); line-height: 1.08; letter-spacing: -0.02em; margin: 0; }
.stories h2 span { display: block; color: var(--sc-ink-soft); }
.stories__tag { margin-top: var(--sc-4); }

/* The row runs out to both edges of the screen, so cards slide in and out
   of view; it starts in line with the heading (--cards-inset, site.js). */
.stories__view { margin-inline: calc(50% - 50vw); overflow: clip; }
.cards {
  --card-w: clamp(280px, 25vw, 400px); --card-h: clamp(380px, 56vh, 540px);
  list-style: none; margin: 0; padding: 0 var(--cell-pad) 0 var(--cards-inset, var(--cell-pad)); position: relative;
  display: flex; gap: 16px; width: max-content;
  translate: 0 0; will-change: transform;
}
@supports (animation-timeline: view()) {
  .cards { animation: cards-pan linear both; animation-timeline: --stories; animation-range: contain 8% contain 92%; }
}
@keyframes cards-pan { from { translate: 0 0; } to { translate: var(--cards-to, 0px) 0; } }

.card {
  position: relative; flex: none; width: var(--card-w); height: var(--card-h);
  border-radius: 20px; overflow: hidden; display: flex; flex-direction: column;
  padding: clamp(1.5rem, 2.2vw, 2rem);
}
.card--dark { background: var(--dark); color: var(--dark-ink); }
.card--light { background: var(--card-grey); color: var(--sc-ink); border: 1px solid var(--line-strong); }
.card__quote { margin: 0; font-family: var(--font-quote); font-size: clamp(1.35rem, 1rem + 0.9vw, 1.75rem); line-height: 1.28; letter-spacing: -0.01em; }
.card__who { margin: auto 0 0; display: grid; gap: 4px; font-size: 0.82rem; color: inherit; opacity: 0.75; }
.card__who b { font-weight: 500; font-size: 0.78rem; letter-spacing: 0.08em; text-transform: uppercase; opacity: 1; display: flex; align-items: center; gap: 8px; }
.card__who b::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--sc-accent); flex: none; }
.card__photo { margin: 0; position: relative; overflow: hidden; }
.card__photo img { width: 100%; height: 100%; object-fit: cover; display: block; }
.card__photo figcaption { position: absolute; left: 10px; bottom: 8px; font-size: 0.65rem; color: var(--on-accent); background: color-mix(in oklab, var(--dark) 70%, transparent); padding: 2px 8px; border-radius: 999px; }
.card__body { margin-top: auto; display: grid; gap: 10px; }
.card__body .card__who { margin-top: 4px; }
.card__sector { margin: 0; font-size: 0.75rem; letter-spacing: 0.08em; text-transform: uppercase; opacity: 0.7; }
.card__result { margin: 0; font-family: var(--sc-font-display); font-weight: 500; font-size: clamp(1.4rem, 1.05rem + 0.9vw, 1.8rem); line-height: 1.15; letter-spacing: -0.015em; }
/* Photo across the top, inset like a print. */
.card--header .card__photo { flex: 1 1 auto; min-height: 0; margin: calc(-1 * clamp(0.75rem, 1.2vw, 1.1rem)); margin-bottom: 1.25rem; border-radius: 12px; }
/* Photo filling the card, the words over a dark fade at the foot. */
.card--full { color: var(--on-accent); padding: clamp(1.5rem, 2.2vw, 2rem); }
.card--full .card__photo { position: absolute; inset: 0; }
.card--full .card__photo figcaption { top: 12px; bottom: auto; left: 12px; }
.card--full::after { content: ""; position: absolute; inset: 30% 0 0; background: linear-gradient(to bottom, transparent, color-mix(in oklab, var(--dark) 70%, transparent) 45%, color-mix(in oklab, var(--dark) 94%, transparent)); pointer-events: none; }
.card--full .card__body { position: relative; z-index: 1; }

/* --------------------------------------------------------- 5 · close -- */
/* A compact dark band, then the footer. No pin: it is the end of the page. */
.close { position: relative; background: var(--dark); color: var(--dark-ink); }
.close > .frame { z-index: 1; border-inline: 1px solid transparent; }
.close__inner {
  display: grid; justify-items: center; text-align: center; gap: var(--sc-5);
  padding: clamp(4.5rem, 9vw, 7.5rem) var(--sc-gutter);
}
.close h2 { font-family: var(--sc-font-display); font-weight: 500; font-size: var(--size-title); line-height: 1.08; letter-spacing: -0.02em; margin: 0; max-width: 32ch; text-wrap: balance; }
.close__sub { margin: 0; max-width: 40rem; color: var(--dark-soft); }
.foot { color: var(--dark-soft); font-size: 0.82rem; }
.foot__row { display: flex; justify-content: space-between; gap: var(--sc-5); flex-wrap: wrap; padding: var(--sc-6) var(--sc-5); }
.foot__logo { height: 34px; width: auto; }
.foot__row { align-items: center; }

/* ------------------------------------------------------- grid system -- */
/* Haydn, 24/10/2026: every section after the hero has the same heading
   cell and the same padding. */
:root {
  --cell-pad: clamp(1.5rem, 3vw, 3rem);
  --head-pad-y: clamp(2.5rem, 5vw, 4rem);
}
.sec-head { padding: var(--head-pad-y) var(--cell-pad); }
.sec-head h2 { font-family: var(--sc-font-display); font-weight: 500; font-size: var(--size-title); line-height: 1.08; letter-spacing: -0.02em; margin: 0; color: var(--sc-accent); }
.sec-head p { color: var(--sc-ink-soft); margin: var(--sc-3) 0 0; max-width: 40rem; }
.sec-head .placeholder-tag { margin-top: var(--sc-4); }



/* -------------------------------------------------------- our style -- */
/* Haydn, 24/10/2026: the site should look like RFP, not like Attio.
   - No lines (since 29/10/2026, not even the column's sides).
   - Things that sit side by side line up along their tops.
   - Section headings in the main text colour; orange stays for the hero,
     the testimonial and the closing band. */

.sec-head h2, .wwd__head h2, .numbers h2, .stories h2 { color: var(--sc-ink); }


/* ------------------------------------------------------- white space -- */
/* Haydn, 24/10/2026: pinned sections fill one screen, so on tall screens
   fixed-size content left large gaps. */
:root {
  /* The content column can grow a little on big monitors (laptops keep
     1200px). */
  --frame: clamp(1200px, 66vw, 1560px);
}

/* ------------------------------------------------------------ phones -- */
@media (max-width: 860px) {
  :root { --bar-h: 56px; }
  .hero h1 { font-size: clamp(1.9rem, 1.2rem + 3.5vw, 2.4rem); }
  .hero__sub { font-size: 0.95rem; }
  .hero__stage { padding: calc(var(--bar-h) + 2.5rem) 0 3rem; }

  .quote blockquote { font-size: clamp(1.55rem, 1rem + 3.4vw, 2.1rem); }

  /* Workflow: smaller nodes; the labels stay (the text below is separate). */
  .how { height: 420vh; }
  .how__frame { --box: 52px; --if-box: 40px; --lane-gap: 30px; }
  .node__box { border-radius: 14px; }
  .node__box svg { width: 22px; height: 22px; }
  .node--if .node__box svg { width: 18px; height: 18px; }
  .node__label { font-size: 0.72rem; }
  /* Step cards: the picture becomes a strip across the top. */
  .step-card { height: auto; }
  .step-card--media { grid-template-columns: minmax(0, 1fr); grid-template-rows: 92px auto; }
  .step-card__media { margin: 8px 8px 0; }
  .step-card__body { padding: 1rem 1.15rem 1.15rem; justify-content: flex-start; }
  .step-card__body h3 { font-size: 1.15rem; }
  .step-card__body p:not(.step__num) { font-size: 0.86rem; }
  .wire-label { font-size: 0.68rem; padding: 1px 8px; }
  .stories { height: 300vh; }
  .nums { grid-template-columns: minmax(0, 1fr); }
  .nums__grid { gap: 12px; }
  .metric { min-height: 150px; }
  .metric__label { letter-spacing: 0.12em; }
  .metric__num { font-size: 2.2rem; }
  .chart { min-height: 200px; }
  .metric__top > .metric__sub { display: none; }
  .nums__grid .metric__label { min-height: 3em; line-height: 1.5; } /* labels may wrap on a phone; keep the numbers level */
  .cards { --card-w: 78vw; --card-h: min(470px, 62svh); gap: 12px; }
  .client { width: 160px; height: 84px; }
  .client img { width: 118px; }
}

@media (max-width: 860px) {
}

/* --------------------------------------------------- reduced motion -- */
@media (prefers-reduced-motion: reduce) {
  .tick, .tick svg, .ring .ring__fill, .quote .w, .ui-meter i { transition: none !important; }
  .node__box, .node__box svg, .node__label, .step-card, .wire-label, .flow__wires .port, .chart__cover, .chart__dot { transition: none !important; }
  /* Workflow: not pinned; the whole flow is shown (scroll it sideways on
     small screens) with every step's text listed below. */
  .how { height: auto; }
  .how__stage { position: relative; height: auto; }
  .how__frame { padding-block: clamp(4rem, 8vw, 6rem); }
  .how__view { overflow-x: auto; -webkit-mask-image: none; mask-image: none; margin-inline: 0; }
  .flow { animation: none !important; translate: 0 0; }
  .how__steps { gap: 12px; }
  .step-card { grid-area: auto; opacity: 1; translate: 0 0; }
  .chart__cover { display: none; }
  .chart__dot { opacity: 1; }
  /* Case studies: not pinned; the row scrolls sideways by hand. */
  .stories { height: auto; }
  .stories__stage { position: relative; height: auto; }
  .stories__frame { padding-block: clamp(4rem, 8vw, 6rem); }
  .stories__view { overflow-x: auto; }
  .cards { animation: none !important; translate: 0 0; }

  .marquee { mask-image: none; }
  .marquee__track { animation: none; flex-wrap: wrap; width: auto; justify-content: center; }
  .marquee__track [aria-hidden="true"] { display: none; }
}


/* --------------------------------------------------- scroll progress -- */
/* Haydn, 25/10/2026: Emma didn't realise she could keep scrolling. A thin
   orange line along the top of the bar fills as you go down the page, led
   by a soft glow that fades evenly to nothing. It slides (translate) as a
   scroll-driven animation, so the graphics card runs it; site.js moves it
   instead in browsers without them. The strip is tall enough for the glow
   to fade out inside it, and clips at the screen's edges. */
.progress { position: absolute; left: 0; right: 0; top: 0; height: 22px; overflow: clip; pointer-events: none; z-index: 1; }
.progress i {
  position: absolute; left: 0; top: 0; width: 100%; height: 2px; translate: -100% 0; will-change: transform;
  background: linear-gradient(to right, transparent, color-mix(in oklab, var(--sc-accent) 55%, transparent) 65%, var(--sc-accent));
}
.progress i::after {
  content: ""; position: absolute; right: 0; top: 1px; width: 72px; height: 40px; translate: 50% -50%;
  background: radial-gradient(closest-side,
    color-mix(in oklab, var(--sc-accent) 80%, #fffef8) 0%,
    color-mix(in oklab, var(--sc-accent) 70%, transparent) 18%,
    color-mix(in oklab, var(--sc-accent) 32%, transparent) 42%,
    color-mix(in oklab, var(--sc-accent) 10%, transparent) 70%,
    transparent 100%);
}
@supports (animation-timeline: scroll()) {
  .progress i { animation: progress-fill linear both; animation-timeline: scroll(root); }
}
@keyframes progress-fill { from { translate: -100% 0; } to { translate: 0 0; } }

/* ----------------------------------------------------------- pricing -- */
/* Haydn, 25/10/2026: the price list and the monthly calculator in one,
   built from the "RFP Price Builder" prototype (pricing.js). Every rule is
   scoped to .pricing; the prototype's colour names map onto the site's.
   Prices and task lists: Supabase, 2027 catalogue (copied in pricing.js). */
.pricing {
  --bg: var(--sc-canvas); --surface: var(--sc-surface); --raised: var(--field);
  --ink: var(--sc-ink); --soft: var(--sc-ink-soft); --accent: var(--sc-accent);
  --accent-ink: #fffef8; --accent-deep: var(--sc-accent-deep); --good: var(--done-ring);
  --shadow: var(--sc-e1), 0 10px 30px -14px hsl(var(--sc-shadow-color) / 0.25);
  --r-card: 20px; --r-ctl: 999px;
  position: relative; padding-block: clamp(4rem, 8vw, 7rem);
}
.pricing > .frame { z-index: 1; padding-inline: var(--cell-pad); display: grid; gap: 28px; }
.pricing__head { max-width: 46rem; }
.pricing__head h2, .pricing__head h1 { font-family: var(--sc-font-display); font-weight: 500; font-size: var(--size-title); line-height: 1.08; letter-spacing: -0.02em; margin: 0; }
.pricing__head p { color: var(--sc-ink-soft); margin: var(--sc-3) 0 0; max-width: 40rem; }
.pricing .pricing__list { display: grid; gap: 16px; min-width: 0; }
.pricing .money { font-variant-numeric: tabular-nums; }


/* Two columns: list + month panel */
.pricing .layout { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 28px; align-items: start; }

/* Controls above the list */
.pricing .tools { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; justify-content: space-between; }
.pricing .legend { display: flex; gap: 18px; flex-wrap: wrap; color: var(--soft); font-size: 0.85rem; }
.pricing .legend b { color: var(--ink); font-weight: 500; }
.pricing .pchips { display: flex; gap: 8px; }
.pricing .pchip {
  font: inherit; font-size: 0.85rem; padding: 7px 14px; border-radius: var(--r-ctl); cursor: pointer;
  border: 1px solid var(--line); background: var(--surface); color: var(--ink);
}
.pricing .pchip:hover { border-color: color-mix(in oklab, var(--ink) 30%, transparent); }
.pricing .pchip:focus-visible, .pricing .step button:focus-visible, .pricing .qty:focus-visible, .pricing .cta:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }

/* Groups and rows */
.pricing .groups { display: grid; gap: 22px; }
.pricing .group h3 { margin: 0 0 10px; font-size: 0.78rem; font-weight: 500; letter-spacing: 0.14em; text-transform: uppercase; color: var(--soft); }
.pricing .rows { background: var(--surface); border-radius: var(--r-card); box-shadow: var(--shadow); overflow: hidden; }
/* One line per service: name, then each package's price with a small
   counter beside it, so work can be added without opening anything. The
   arrow opens the row to show what each package includes (Haydn). */
.pricing .row { border-top: 1px solid var(--line); transition: background-color 160ms ease; }
.pricing .row:first-child { border-top: 0; }
.pricing .row.is-on { background: var(--row-added); }   /* work added: a warm grey, clearly darker than the grey window the list sits in (Haydn, 29/10/2026; it was nearly the same) */
.pricing .line, .pricing .colheads {
  display: grid; align-items: center; column-gap: 18px;
  grid-template-columns: minmax(0, 1fr) 9.5rem 9.5rem 28px; padding: 10px 14px 10px 18px;
}
.pricing .svc__name {
  margin: 0; font-size: 0.98rem; font-weight: 500; letter-spacing: -0.01em; min-width: 0;
  background: none; border: 0; padding: 0; color: inherit; font-family: inherit; text-align: left; cursor: pointer;
}
.pricing .cell { display: flex; align-items: center; justify-content: flex-end; gap: 10px; }
.pricing .cell__price { font-weight: 500; font-size: 0.95rem; min-width: 2.8em; text-align: right; }
.pricing .cell__label { display: none; font-size: 0.7rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--soft); margin-right: auto; }
.pricing .cell--none { color: color-mix(in oklab, var(--soft) 60%, transparent); }
.pricing .cell--none span { margin-right: 32px; }
.pricing .more {
  width: 28px; height: 28px; border-radius: 50%; border: 0; background: transparent; color: var(--soft);
  display: grid; place-items: center; cursor: pointer;
}
.pricing .more:hover { background: var(--raised); color: var(--ink); }
.pricing .more svg { width: 18px; height: 18px; transition: transform 200ms ease; }
.pricing .row.is-open .more svg { transform: rotate(180deg); }
.pricing .svc__name:focus-visible, .pricing .more:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; border-radius: 6px; }
/* The column headings, once, above the list; they stay in view while the
   list scrolls. */
.pricing .colheads {
  position: sticky; top: var(--bar-h); z-index: 2; padding-block: 10px;
  background: color-mix(in oklab, var(--bg) 92%, transparent); backdrop-filter: blur(6px);
  border-bottom: 1px solid var(--line);
}
.pricing .colheads span { font-size: 0.72rem; font-weight: 500; letter-spacing: 0.1em; text-transform: uppercase; color: var(--soft); text-align: center; padding-left: 1.2rem; }
.pricing .colheads span:first-child { text-align: left; }
/* Opened: what each package includes, as two cards side by side (like the
   work request forms): the one-line summary, then the task list. Full
   Process repeats Base's tasks and boxes the extra ones underneath. */
.pricing .about { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 12px; padding: 4px 14px 16px 18px; align-items: start; }
.pricing .about[hidden] { display: none; }
.pricing .about--single { grid-template-columns: minmax(0, 1fr); }
.pricing .pkg { background: var(--bg); border-radius: 16px; padding: 16px 18px; display: grid; gap: 10px; }
.pricing .row.is-on .pkg { background: var(--surface); }
.pricing .pkg__head { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; }
.pricing .pkg__name { margin: 0; font-size: 0.98rem; font-weight: 500; }
.pricing .pkg__price { font-size: 1.1rem; font-weight: 500; }
.pricing .pkg__desc { margin: 0; font-size: 0.85rem; color: var(--soft); padding-bottom: 10px; border-bottom: 1px solid var(--line); }
.pricing .ticks { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.pricing .ticks li { display: grid; grid-template-columns: 16px minmax(0, 1fr); gap: 10px; font-size: 0.86rem; line-height: 1.4; }
.pricing .ticks svg { width: 14px; height: 14px; margin-top: 3px; color: var(--accent); }
.pricing .ticks--extra { border: 1px solid color-mix(in oklab, var(--accent) 35%, transparent); background: var(--surface); border-radius: 12px; padding: 10px 12px; }

/* Counter: small, so it sits on the row. */
.pricing .step { display: inline-flex; align-items: center; flex: none; border: 1px solid var(--line); border-radius: var(--r-ctl); padding: 1px; background: var(--surface); }
.pricing .step button {
  width: 22px; height: 22px; border-radius: 50%; border: 0; background: transparent; color: var(--ink);
  font: inherit; font-size: 0.95rem; line-height: 1; cursor: pointer; display: grid; place-items: center;
}
.pricing .step button:hover { background: var(--raised); }
.pricing .step button:disabled { color: color-mix(in oklab, var(--ink) 30%, transparent); cursor: default; background: transparent; }
.pricing .step button:focus-visible, .pricing .qty:focus-visible { outline: 2px solid var(--accent); outline-offset: 1px; }
.pricing .qty { width: 1.9em; text-align: center; border: 0; background: transparent; color: var(--soft); font: inherit; font-size: 0.85rem; font-variant-numeric: tabular-nums; -moz-appearance: textfield; }
.pricing .qty::-webkit-outer-spin-button, .pricing .qty::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.pricing .cell.is-on .qty { color: var(--ink); font-weight: 600; }
.pricing .cell.is-on .step { border-color: color-mix(in oklab, var(--accent) 55%, transparent); }

/* Month panel */
.pricing .month {
  position: sticky; top: calc(var(--bar-h) + 70px);   /* room for the buttons above it */
  background: var(--surface); border-radius: var(--r-card); box-shadow: var(--shadow);
  padding: 22px; display: grid; gap: 16px;
}
.pricing .month__label { margin: 0; font-size: 0.75rem; font-weight: 500; letter-spacing: 0.14em; text-transform: uppercase; color: var(--soft); }
.pricing .total { display: flex; align-items: baseline; gap: 8px; }
.pricing .total b { font-size: 2.6rem; font-weight: 500; letter-spacing: -0.03em; line-height: 1; }
.pricing .total span { color: var(--soft); }
.pricing .year { margin: -8px 0 0; color: var(--soft); font-size: 0.85rem; }
.pricing .minbox { display: grid; gap: 8px; }
.pricing .minbar { height: 8px; border-radius: 99px; background: var(--raised); overflow: hidden; }
.pricing .minbar i { display: block; height: 100%; width: 0; background: var(--accent); border-radius: inherit; transition: width 240ms ease; }
.pricing .minbar.is-met i { background: var(--good); }
.pricing .minnote { margin: 0; font-size: 0.85rem; color: var(--soft); }
.pricing .minnote b { color: var(--ink); font-weight: 500; }
.pricing .lines { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; border-top: 1px solid var(--line); padding-top: 14px; max-height: 40vh; overflow: auto; }
.pricing .lines li { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 10px; font-size: 0.86rem; }
.pricing .lines li span:first-child { min-width: 0; }
.pricing .lines small { display: block; color: var(--soft); font-size: 0.75rem; }
.pricing .empty { color: var(--soft); font-size: 0.86rem; margin: 0; }
.pricing .cta {
  display: block; text-align: center; text-decoration: none; font-weight: 500; font-size: 0.95rem;
  background: var(--accent); color: var(--accent-ink); border-radius: var(--r-ctl); padding: 12px 18px;
}
.pricing .cta:hover { background: color-mix(in oklab, var(--accent) 88%, #000); }
.pricing .fine { margin: 0; font-size: 0.75rem; color: var(--soft); }
.pricing .example-tag { display: inline-block; font-size: 0.7rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--accent-deep); border: 1px dashed color-mix(in oklab, var(--accent) 50%, transparent); border-radius: 99px; padding: 2px 9px; }


/* Phones: one column; the month panel becomes a bar along the bottom that
   opens to show the breakdown. */
@media (max-width: 900px) {
  .pricing .layout { grid-template-columns: minmax(0, 1fr); }
  /* Phones: the name and arrow on top, the two packages side by side
     underneath, each labelled (the column headings are hidden). */
  .pricing .colheads { display: none; }
  .pricing .line { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) 28px; grid-template-areas: "name name more" "base full ."; row-gap: 8px; column-gap: 14px; padding: 12px 10px 12px 14px; }
  .pricing .svc__name { grid-area: name; }
  .pricing .more { grid-area: more; }
  .pricing .cell--base { grid-area: base; }
  .pricing .cell--full { grid-area: full; }
  .pricing .cell { justify-content: flex-start; flex-wrap: wrap; row-gap: 2px; gap: 8px; min-width: 0; }
  .pricing .cell__label { display: block; flex-basis: 100%; margin-right: 0; }
  .pricing .cell__price { min-width: 0; text-align: left; }
  .pricing .cell--none span { margin-right: 0; }
  .pricing .about { grid-template-columns: minmax(0, 1fr); padding-inline: 10px; }
  .pricing .month {
    position: sticky; bottom: 0; top: auto; z-index: 5; border-radius: 20px 20px 0 0;
    padding: 14px 16px calc(14px + env(safe-area-inset-bottom, 0px));
    gap: 10px; box-shadow: none;   /* no shadow (Haydn: never); its top line separates it */
  }
  .pricing .month__head { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
  .pricing .total b { font-size: 1.8rem; }
  .pricing .month:not(.is-open) .lines, .pricing .month:not(.is-open) .year, .pricing .month:not(.is-open) .fine, .pricing .month:not(.is-open) .cta, .pricing .month:not(.is-open) .minnote { display: none; }
  .pricing .lines { max-height: 38vh; }
}
@media (min-width: 901px) { .pricing .toggle { display: none; } .pricing .month__head { display: grid; gap: 10px; } }
.pricing .toggle { font: inherit; font-size: 0.8rem; border: 1px solid var(--line); background: var(--bg); color: var(--ink); border-radius: 99px; padding: 6px 12px; cursor: pointer; }
@media (prefers-reduced-motion: reduce) { .pricing .minbar i, .pricing .row, .pricing .more svg { transition: none; } }
@media (max-width: 900px) {
  /* Phones: tighter, so a three-digit price keeps its counter on one line. */
  .pricing .line { column-gap: 8px; padding: 12px 6px 12px 12px; }
  .pricing .cell { gap: 6px; }
  .pricing .qty { width: 1.6em; }
  .pricing > .frame { padding-inline: 0; }
}
.pricing [hidden] { display: none !important; }   /* the site has no global [hidden] rule; the Example tag needs it */

/* Example / Clear sit just above Your month on laptops and move with it;
   the set above the table is for phones (Haydn). */
.pricing .month__chips { position: absolute; right: 0; bottom: calc(100% + 12px); }
@media (min-width: 901px) { .pricing .tools .pchips { display: none; } }
@media (max-width: 900px) { .pricing .month__chips { display: none; } }

/* Case study cards: the firms' own images (Haydn, 25/10/2026). Logos sit
   whole in their panel instead of filling it: David Malin's (made for dark
   grounds) on the dark card, Uniec's on white. */
.card__photo--logo { display: grid; place-items: center; background: color-mix(in oklab, var(--dark-ink) 6%, var(--dark)); }
.card__photo--logo img { width: 62%; height: auto; max-height: 70%; object-fit: contain; }
.card__photo--light { background: #fffef8; }

/* ------------------------------------------- smooth clicky mouse wheels -- */
/* Lenis's own rules (vendor/lenis.min.js; used for notched mouse wheels
   only, site.js). While it glides, the engine's CSS smooth scrolling is
   switched off so the two don't fight. */
html.lenis, html.lenis body { height: auto; }
html.lenis.lenis-smooth { scroll-behavior: auto !important; }
.lenis:not(.lenis-autoToggle).lenis-stopped { overflow: clip; }
.lenis.lenis-smooth iframe { pointer-events: none; }

/* ---------------------------------------------------------- log in -- */
/* "Log in" in the bar opens a small window that links to the portal's
   sign-in page (login.js; Haydn, 26/10/2026). Brand: chip button, white
   16px window, e3 shadow, ink dim at 16%, no heavy blur. */
.bar__actions { display: flex; align-items: center; gap: 10px; }
.chip-btn {
  font: 500 0.9rem/1 var(--sc-font-text); color: var(--sc-ink);
  padding: 0.7em 1.15em; border-radius: 999px; cursor: pointer;
  background: var(--sc-surface); border: 1px solid var(--line-strong);
  transition: background-color 160ms var(--sc-ease-out), border-color 160ms var(--sc-ease-out);
}
.chip-btn:hover { background: var(--field); }
.bar--dark .chip-btn { background: transparent; color: var(--dark-ink); border-color: color-mix(in oklab, var(--dark-ink) 30%, transparent); }
.bar--dark .chip-btn:hover { background: color-mix(in oklab, var(--dark-ink) 8%, transparent); }

/* The scroll bar's space is always kept, so the page doesn't shift sideways when a window stops it scrolling
   (Haydn, 12/11/2026: the bar and menu jumped right as the window opened). */
html { scrollbar-gutter: stable; }
.login { position: fixed; inset: 0; z-index: calc(var(--sc-z-chrome) + 10); display: grid; place-items: center; padding: 16px; }
.login[hidden] { display: none; }
/* The background fades to a soft dim with a slight blur, so the eye goes to the window (Haydn, 12/11/2026). */
.login__dim {
  position: absolute; inset: 0; background: color-mix(in oklab, var(--sc-ink) 18%, transparent);
  -webkit-backdrop-filter: blur(5px); backdrop-filter: blur(5px);
  opacity: 0; transition: opacity 320ms var(--sc-ease-out);
}
.login__win {
  position: relative; width: min(420px, 100%); box-sizing: border-box;
  background: var(--sc-surface); color: var(--sc-ink); border-radius: 16px; border: 1px solid var(--line-strong); box-shadow: var(--sc-e3);
  padding: 2rem 2rem 1.75rem; text-align: left;
  opacity: 0; transform: translateY(12px) scale(0.98);
  transition: opacity 300ms var(--sc-ease-out) 40ms, transform 320ms var(--sc-ease-out) 40ms;
}
.login.is-open .login__dim, .login.is-open .login__win { opacity: 1; transform: none; }
.login__logo { display: block; width: 40px; height: auto; margin-bottom: 1.25rem; }
.login h2 { font: 500 1.5rem/1.15 var(--sc-font-display); letter-spacing: -0.02em; margin: 0 0 0.5rem; }
.login p { color: var(--sc-ink-soft); font-size: 0.95rem; line-height: 1.55; margin: 0 0 1.5rem; }
.login .btn { width: 100%; justify-content: center; box-sizing: border-box; }
.login__alt { display: block; text-align: center; margin-top: 1rem; font-size: 0.88rem; color: var(--sc-ink-soft); text-decoration: underline; text-underline-offset: 3px; text-decoration-color: var(--line-strong); }
.login__alt:hover { color: var(--sc-ink); }
/* Signing in inside the window (Haydn, 17/11/2026): the sign-up form's fields, with a full-width button. */
.login__form { margin-top: 1.25rem; }
.login__form .btn { width: 100%; justify-content: center; }
.login__form .btn[disabled] { opacity: 0.6; cursor: progress; }
.login__alt--tight { margin-top: 0.5rem; }
.login__x {
  position: absolute; top: 14px; right: 14px; width: 36px; height: 36px; border-radius: 999px;
  display: grid; place-items: center; border: 0; background: transparent; color: var(--sc-ink-soft); cursor: pointer;
}
.login__x:hover { background: var(--field); color: var(--sc-ink); }
@media (max-width: 860px) {
  .chip-btn, .bar .btn--sm { font-size: 0.85rem; padding: 0.65em 1em; }
  .login__win { padding: 1.75rem 1.5rem 1.5rem; }
}
@media (prefers-reduced-motion: reduce) { .login__dim, .login__win { transition: none; } }

/* The value calculator's results (Haydn, 22/11/2026): the sign-in pop-up's window, wider, with the value statement
   first, three small figures, the gain, then the £300 of prepaid work and the assumptions to change. */
/* The whole layer scrolls (not the window inside it), as the sign-up window does, so the page's smooth scrolling
   never takes the wheel from it. */
.vcalc { align-items: start; overflow-y: auto; overscroll-behavior: contain; padding-block: 32px; }
.vcalc .login__dim { position: fixed; }
.vcalc__win { width: min(600px, 100%); margin: auto; }
.vcalc__eyebrow { margin: 0 0 0.75rem !important; font-size: 0.72rem !important; letter-spacing: 0.24em; text-transform: uppercase; color: var(--sc-accent-deep) !important; }
.vcalc .vcalc__statement { color: var(--sc-ink); font: 400 clamp(1.1rem, 0.95rem + 0.8vw, 1.4rem)/1.45 var(--sc-font-display); letter-spacing: -0.01em; margin: 0 2rem 1.25rem 0; }
.vcalc__statement b { font-weight: 600; color: var(--sc-accent-deep); }
.vcalc__chips { display: flex; flex-wrap: wrap; gap: 6px; margin: 0 0 1rem; }
.vcalc__chip { font-size: 0.78rem; background: var(--field); color: var(--sc-ink); border-radius: 999px; padding: 4px 10px; }
.vcalc__chip i { font-style: normal; color: var(--sc-ink-soft); }
.vcalc__metrics { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.vcalc__metric { background: var(--field); border-radius: 12px; padding: 12px; display: grid; gap: 4px; }
.vcalc__metric span { font-size: 0.75rem; color: var(--sc-ink-soft); line-height: 1.3; }
.vcalc__metric b { font-size: 1.35rem; font-weight: 500; letter-spacing: -0.02em; }
.vcalc .vcalc__gain { margin: 10px 0 0; padding: 10px 14px; border-radius: 12px; background: var(--done-bg); color: var(--done-ink); font-size: 0.9rem; }
.vcalc .vcalc__prepaid { margin: 10px 0 0; padding: 10px 14px; border-radius: 12px; background: var(--tint); color: var(--sc-ink); font-size: 0.9rem; }
.vcalc__prepaid b { font-weight: 600; }
.vcalc__rate { display: grid; grid-template-columns: minmax(0, 1fr) 110px; gap: 10px; align-items: center; font-size: 0.85rem; color: var(--sc-ink-soft); margin-top: 1rem; border-top: 1px solid var(--line); padding-top: 0.85rem; }
.vcalc__assume { margin-top: 0.75rem; }
.vcalc__assume summary { cursor: pointer; font-size: 0.85rem; color: var(--sc-ink-soft); }
.vcalc__row { display: grid; grid-template-columns: minmax(0, 1fr) 110px; gap: 10px; align-items: center; font-size: 0.85rem; margin-top: 10px; }
.vcalc__in { display: flex; align-items: center; gap: 4px; background: var(--field); border-radius: 10px; padding: 0 10px; }
.vcalc__in input { width: 100%; border: 0; background: transparent; font: inherit; color: var(--sc-ink); padding: 8px 0; }
.vcalc__actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 1.25rem; }
.vcalc .vcalc__actions .btn { width: auto; flex: 1 1 180px; }
.btn--ghost { background: var(--sc-surface); color: var(--sc-ink); border: 1px solid var(--line-strong); box-shadow: none; cursor: pointer; }
.btn--ghost:hover { background: var(--field); }
.vcalc .vcalc__form { margin-top: 1rem; }
.vcalc .vcalc__form[hidden], .vcalc .vcalc__done[hidden] { display: none; }   /* .su sets display: grid, which beat [hidden] */
.vcalc .vcalc__form .su__small { margin: 0; }
.vcalc .vcalc__form .btn { width: 100%; justify-content: center; }
.vcalc .vcalc__done { margin: 0.9rem 0 0; padding: 10px 14px; border-radius: 12px; background: var(--done-bg); color: var(--done-ink); font-size: 0.9rem; }
.vcalc .vcalc__fine { margin: 0.9rem 0 0; font-size: 0.75rem; }
@media (max-width: 560px) {   /* phones: the three figures stay side by side, smaller */
  .vcalc__metric { padding: 10px; }
  .vcalc__metric span { font-size: 0.68rem; }
  .vcalc__metric b { font-size: 1.05rem; }
}
.pricing .total b { white-space: nowrap; }
/* Phones: Your month is a bar at the bottom; the calculate button stays in it even when it's closed. */
.pricing .month:not(.is-open) #pr-calc { display: block; }
.pricing .cta[disabled] { opacity: 0.5; cursor: default; }
button.cta { border: 0; cursor: pointer; font-family: inherit; width: 100%; }

/* Sign up in a window (signup.js; Haydn, 12/11/2026): the portal's sign-up form, in the website's look. */
.login--signup { align-items: start; overflow-y: auto; overscroll-behavior: contain; padding-block: 32px; }
.login--signup .login__win { width: min(560px, 100%); margin: auto; }
/* The dim stays put while the form scrolls over it (it scrolled away with the form, 12/11/2026). The wheel scrolls
   the form: data-lenis-prevent on the window stops the page's smooth scrolling catching it. */
.login--signup .login__dim { position: fixed; }
.su__tick[hidden], .su__err[hidden] { display: none; }
.su__tick a { color: var(--sc-accent-deep); text-underline-offset: 2px; }
.su { display: grid; gap: 1rem; text-align: left; }
.su__two { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.su__f { display: grid; gap: 0.35rem; font-size: 0.92rem; color: var(--sc-ink); }
.su__f small, .su__small { color: var(--sc-ink-soft); font-size: 0.8rem; line-height: 1.45; }
.su i { font-style: normal; color: var(--sc-accent-deep); }
.su input:not([type="radio"]):not([type="checkbox"]) {
  width: 100%; box-sizing: border-box; font: inherit; font-size: 1rem; color: var(--sc-ink);
  padding: 0.7rem 0.9rem; border-radius: 12px; border: 1px solid transparent; background: var(--field);
  transition: border-color 160ms var(--sc-ease-out), background-color 160ms var(--sc-ease-out);
}
.su input:not([type="radio"]):not([type="checkbox"]):focus { outline: none; background: var(--sc-surface); border-color: var(--sc-accent); box-shadow: 0 0 0 3px color-mix(in oklab, var(--sc-accent) 18%, transparent); }
.su input[aria-invalid="true"] { border-color: var(--error) !important; }
.su__choice { border: 0; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 0.5rem; }
.su__choice legend { font-size: 0.92rem; margin-bottom: 0.45rem; padding: 0; }
.su__choice label { position: relative; }
.su__choice input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.su__choice span { display: inline-block; padding: 0.5rem 1.1rem; border-radius: 999px; font-size: 0.88rem; background: var(--field); border: 1px solid transparent; transition: background-color 160ms var(--sc-ease-out), border-color 160ms var(--sc-ease-out); }
.su__choice input:checked + span { border-color: var(--sc-accent); background: color-mix(in oklab, var(--sc-accent) 12%, var(--sc-surface)); }
.su__choice input:focus-visible + span { outline: 2px solid var(--sc-accent); outline-offset: 2px; }
.su__choice input[aria-invalid="true"] ~ span, .su__choice:has(input[aria-invalid="true"]) span { border-color: var(--error); }
.su__tick { display: flex; gap: 0.7rem; align-items: flex-start; font-size: 0.92rem; line-height: 1.45; }
.su__tick input { margin-top: 0.2rem; width: 16px; height: 16px; flex: none; accent-color: var(--sc-accent-deep); }
.su__err { margin: 0; color: var(--error); font-size: 0.9rem; }
.su__btns { display: flex; flex-wrap: wrap; gap: 0.6rem; }
.login--signup p { margin-bottom: 1rem; }
.login--signup .su__small { margin: 0; }
@media (max-width: 560px) { .su__two { grid-template-columns: 1fr; } }

/* ------------------------------------------------------- main menu -- */
/* Pills in a rounded track, like the site's toggles; Platform, Resources
   and Company open a panel under the bar (nav.js; Haydn, 26/10/2026). */
.nav { margin-left: auto; margin-right: clamp(0.75rem, 1.6vw, 1.5rem); }
.nav__pills { display: flex; gap: 2px; list-style: none; margin: 0; padding: 4px; border-radius: 999px; background: var(--field); box-shadow: inset 0 0 0 1px var(--line-strong); }
.pill {
  display: inline-flex; align-items: center; gap: 0.35em;
  font: 500 0.9rem/1 var(--sc-font-text); color: var(--sc-ink-soft);
  padding: 0.6em 0.95em; border-radius: 999px; border: 0; background: transparent;
  text-decoration: none; cursor: pointer; white-space: nowrap;
  transition: background-color 160ms var(--sc-ease-out), color 160ms var(--sc-ease-out), box-shadow 160ms var(--sc-ease-out);
}
.pill:hover { color: var(--sc-ink); background: color-mix(in oklab, var(--sc-surface) 60%, transparent); }
.pill[aria-expanded="true"] { color: var(--sc-ink); background: var(--sc-surface); box-shadow: var(--sc-e1); }
.pill__chev { transition: transform 200ms var(--sc-ease-out); }
.pill[aria-expanded="true"] .pill__chev { transform: rotate(180deg); }
.bar--dark .nav__pills { background: color-mix(in oklab, var(--dark-ink) 8%, transparent); box-shadow: inset 0 0 0 1px var(--rule); }
.bar--dark .pill { color: var(--dark-soft); }
.bar--dark .pill:hover { color: var(--dark-ink); background: color-mix(in oklab, var(--dark-ink) 8%, transparent); }
.bar--dark .pill[aria-expanded="true"] { color: var(--dark-ink); background: var(--selected); box-shadow: none; }
.menu-btn { display: none; }

/* The panel: white, under the bar, the width of the content column. */
.mega { position: fixed; left: 0; right: 0; top: calc(var(--bar-h) + 8px); z-index: calc(var(--sc-z-chrome) + 1); }
.mega[hidden] { display: none; }
.mega { pointer-events: none; }   /* the strip around a panel lets clicks through to the page */
.mega__panel { pointer-events: auto; }
.bar .mega .frame { display: block; height: auto; border-inline: 0; }   /* not the bar's own ruled frame */
.mega__panel {
  display: grid; grid-template-columns: repeat(var(--cols), minmax(0, 1fr)) minmax(0, 0.8fr); gap: 1rem;
  width: min(100%, var(--panel-w, 100%)); margin-left: auto; box-sizing: border-box;
  padding: 1.25rem; border-radius: 20px; background: var(--sc-surface); color: var(--sc-ink); border: 1px solid var(--line-strong); box-shadow: var(--sc-e3);
  opacity: 0; transform: translateY(-6px);
  transition: opacity 200ms var(--sc-ease-out), transform 200ms var(--sc-ease-out);
}
.mega.is-open .mega__panel { opacity: 1; transform: none; }
/* Column names in the accent (Haydn, 17/11/2026: grey, they weren't noticed). The deep accent on light, because the
   accent itself is too faint for small text there (brand rule); the accent itself on the dark bar. */
.mega__label { margin: 0.4rem 0.75rem 0.5rem; font-size: 0.78rem; font-weight: 500; color: var(--sc-accent-deep); }
.mega__item { display: block; padding: 0.6rem 0.75rem; border-radius: 12px; text-decoration: none; color: inherit; transition: background-color 160ms var(--sc-ease-out); }
.mega__item b { display: flex; align-items: center; gap: 0.5em; font-weight: 500; font-size: 0.95rem; }
.mega__item span { display: block; margin-top: 0.2rem; font-size: 0.85rem; color: var(--sc-ink-soft); }
/* Pages not built yet: clearly lighter than the live ones (Haydn, 26/10/2026). */
.mega__item.is-soon { cursor: default; }
.mega__item.is-soon b { color: color-mix(in oklab, var(--sc-ink) 38%, transparent); }
.mega__item.is-soon span { color: color-mix(in oklab, var(--sc-ink) 32%, transparent); }
.mega__item.is-soon em { color: color-mix(in oklab, var(--sc-ink) 45%, transparent); }
.mega__item em { font-style: normal; font-size: 0.68rem; font-weight: 500; color: var(--sc-ink-soft); padding: 0.2em 0.6em; border-radius: 999px; border: 1px dashed var(--line-strong); }
/* Cards (Haydn, 19/11/2026, from the portal's Submit Work menu): every item is a soft box, so its name and line read as
   one; on hover it turns a darker grey. The grey right column stays one area, a step darker
   than the cards, with no box round each link. */
.mega__item { background: var(--field); border: 1px solid transparent; margin-bottom: 0.5rem; }
/* Hover (Haydn, 19/11/2026, softened the same day): one grey for every hover in a menu, cards and right-column links
   alike, a step darker than the right column (--mega-side), which is itself a step darker than the cards. */
.mega__panel { --mega-side: color-mix(in oklab, var(--field), var(--sc-ink) 4%); --mega-hover: color-mix(in oklab, var(--field), var(--sc-ink) 9%); }
a.mega__item:hover { background: var(--mega-hover); border-color: var(--mega-hover); }
.mega__side { background: var(--mega-side); border-radius: 14px; padding: 0.5rem 0.5rem 0.75rem; }
.mega__side a, .mega__side button {
  display: block; width: 100%; text-align: left; font: 500 0.95rem/1.3 var(--sc-font-text); color: var(--sc-ink);
  padding: 0.6rem 0.75rem; border: 0; border-radius: 10px; background: transparent; text-decoration: none; cursor: pointer;
}
.mega__side a:hover, .mega__side button:hover { background: var(--mega-hover); }

@media (max-width: 1023px) {
  /* Phones and tablets (from 1023px since 29/10/2026: the pills didn't fit
     beside Log in and Sign up below that): a Menu pill opens the whole menu
     as a sheet under the bar; the panels open in place, one under another. */
  .menu-btn { display: inline-flex; margin-left: auto; margin-right: 8px; background: var(--field); color: var(--sc-ink); box-shadow: inset 0 0 0 1px var(--line-strong); }
  .bar--dark .menu-btn { background: color-mix(in oklab, var(--dark-ink) 10%, transparent); color: var(--dark-ink); box-shadow: inset 0 0 0 1px var(--rule); }
  .nav { display: none; }
  .nav.is-open {
    display: block; position: fixed; inset: var(--bar-h) 0 0 0; margin: 0; overflow-y: auto;
    background: var(--sc-canvas); color: var(--sc-ink); padding: 12px 16px 32px; border-top: 1px solid var(--rule);
  }
  .nav__pills { flex-direction: column; gap: 4px; background: none; padding: 0; box-shadow: none; }
  .nav__pills > li > .pill, .bar--dark .nav__pills > li > .pill { width: 100%; justify-content: space-between; font-size: 1rem; padding: 0.9em 1em; color: var(--sc-ink); background: var(--sc-surface); box-shadow: none; }
  .mega { position: static; }
  .bar .mega .frame { width: 100%; padding-inline: 0; }
  .mega__panel { display: block; box-shadow: none; padding: 0.5rem 0 0.75rem; background: transparent; transform: none; opacity: 1; transition: none; }
  .mega__side { margin-top: 0.5rem; }
}
/* Over a dark section the bar is dark, and so is the menu (Haydn, 28/10/2026). */
.bar--dark .mega__panel { background: #282b2c; color: var(--dark-ink); box-shadow: 0 0 0 1px color-mix(in oklab, var(--dark-ink) 10%, transparent), var(--sc-e3); }
.bar--dark .mega__item span { color: var(--dark-soft); }
.bar--dark .mega__label { color: var(--sc-accent); }
.bar--dark .mega__item { background: #373a3b; }
.bar--dark .mega__panel { --mega-side: #3f4243; --mega-hover: #4a4d4e; }
.bar--dark .mega__item.is-soon b { color: color-mix(in oklab, var(--dark-ink) 38%, transparent); }
.bar--dark .mega__item.is-soon span { color: color-mix(in oklab, var(--dark-ink) 30%, transparent); }
.bar--dark .mega__item em { color: color-mix(in oklab, var(--dark-ink) 50%, transparent); border-color: color-mix(in oklab, var(--dark-ink) 25%, transparent); }
.bar--dark .mega__side { background: var(--mega-side); }
.bar--dark .mega__side a, .bar--dark .mega__side button { color: var(--dark-ink); }
.bar--dark .mega__side a:hover, .bar--dark .mega__side button:hover { background: var(--mega-hover); }
@media (max-width: 1023px) {
  .bar--dark .nav.is-open { background: var(--dark); color: var(--dark-ink); }
  .bar--dark .nav__pills { background: none; box-shadow: none; }
  .bar--dark .nav__pills > li > .pill { color: var(--dark-ink); background: #282b2c; }
  .bar--dark .mega__panel { background: transparent; box-shadow: none; }
}
@media (prefers-reduced-motion: reduce) { .mega__panel, .pill, .pill__chev { transition: none; } }

/* ---------------------------------------------------------- compare -- */
/* RFP against a network, in-house and outsourcing (Haydn, 26/10/2026).
   The RFP column is tinted with a Recommended tag; ticks are the accent,
   crosses a quiet grey (red is kept for real problems, brand guide). */
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.compare { position: relative; padding-block: clamp(4rem, 8vw, 7rem); }   /* anchors the column lines (.rails) */
.compare > .frame { z-index: 1; padding-inline: var(--cell-pad); }
.compare__head { max-width: 46rem; margin-bottom: clamp(1.5rem, 3vw, 2.5rem); }
.compare__head h2, .compare__head h1 { font-family: var(--sc-font-display); font-weight: 500; font-size: var(--size-title); line-height: 1.08; letter-spacing: -0.02em; margin: 0; }
.compare__head p { color: var(--sc-ink-soft); margin: var(--sc-3) 0 0; max-width: 40rem; }
.cmp__wrap { background: var(--sc-surface); border-radius: 20px; box-shadow: var(--sc-e2); padding: 0.75rem 1.25rem 1rem; overflow-x: auto; }
.compare > .frame, .cmp__wrap { min-width: 0; max-width: 100%; }
.cmp__wrap:focus-visible { outline-offset: 4px; }
.cmp { width: 100%; min-width: 760px; border-collapse: collapse; table-layout: fixed; }
.cmp th, .cmp td { text-align: left; vertical-align: top; padding: 1.25rem 1rem; border-bottom: 1px solid var(--line); }
.cmp tbody tr:last-child > * { border-bottom: 0; }
.cmp thead th { vertical-align: bottom; font: 500 1.35rem/1.15 var(--sc-font-display); letter-spacing: -0.015em; padding-top: 1.5rem; }
.cmp thead th:first-child, .cmp tbody th { width: 17%; }
.cmp__feature { font-size: 0.85rem; font-weight: 500; color: var(--sc-ink-soft); letter-spacing: 0; }
.cmp tbody th { font-weight: 500; font-size: 1rem; }
.cmp td { color: var(--sc-ink-soft); font-size: 0.92rem; line-height: 1.5; }
.cmp__cell { display: grid; grid-template-columns: 18px 1fr; gap: 0.6rem; }
.cmp__mark { width: 18px; height: 18px; margin-top: 0.1rem; }
.cmp__mark--yes { color: var(--sc-accent); }
.cmp__mark--no { color: color-mix(in oklab, var(--sc-ink) 35%, transparent); }
.cmp .cmp__rfp { background: var(--tint); color: var(--sc-ink); }
.cmp thead .cmp__rfp { border-radius: 14px 14px 0 0; }
.cmp tbody tr:last-child .cmp__rfp { border-radius: 0 0 14px 14px; }
.cmp thead th .cmp__badge { display: block; width: fit-content; box-sizing: border-box; margin-bottom: 0.6rem; font: 500 0.75rem/1 var(--sc-font-text); letter-spacing: 0; color: var(--on-accent); background: var(--sc-accent); padding: 0.45em 0.9em; border-radius: 999px; }

/* ------------------------------------------------------- page heads -- */
/* The top of customers/ and pricing/ (built by tools/build-pages.py). */
.page-head > .frame { padding: calc(var(--bar-h) + clamp(3rem, 8vh, 6rem)) 0 clamp(2rem, 5vh, 3.5rem); }
.page-head__kicker { margin: 0 0 0.75rem; font-size: 0.85rem; font-weight: 500; color: var(--sc-ink-soft); }
.page-head h1 { font-family: var(--sc-font-display); font-weight: 500; font-size: var(--size-hero); line-height: 1.05; letter-spacing: -0.035em; margin: 0; max-width: 26ch; text-wrap: balance; }
.page-head p { color: var(--sc-ink-soft); font-size: 1.1rem; line-height: 1.6; margin: 1rem 0 0; max-width: 38rem; }
.pill[aria-current="page"] { color: var(--sc-ink); background: var(--sc-surface); box-shadow: var(--sc-e1); }
.bar--dark .pill[aria-current="page"] { color: var(--dark-ink); background: var(--selected); box-shadow: none; }
@media (max-width: 860px) {
  /* Phones: each row becomes a card, and each answer is labelled with its
     option (data-col), so nothing scrolls sideways. */
  .cmp__wrap { padding: 0; background: none; box-shadow: none; overflow: visible; }
  .cmp, .cmp tbody, .cmp tr, .cmp th, .cmp td { display: block; min-width: 0; width: auto; }
  .cmp thead { display: none; }
  .cmp tbody tr { background: var(--sc-surface); border-radius: 16px; box-shadow: var(--sc-e2); padding: 0.5rem 0.25rem; margin-bottom: 12px; }
  .cmp tbody th { width: auto; font-size: 1.1rem; padding: 1rem 1rem 0.5rem; border: 0; }
  .cmp td { padding: 0.75rem 1rem; border-bottom: 1px solid var(--line); }
  .cmp td::before { content: attr(data-col); display: block; margin-bottom: 0.35rem; font-size: 0.78rem; font-weight: 500; color: var(--sc-ink); }
  .cmp td.cmp__rfp { border-radius: 12px; margin: 0.25rem 0.5rem 0.5rem; border-bottom: 0; }
  .cmp tbody tr:last-child .cmp__rfp { border-radius: 12px; }
  .cmp td.cmp__rfp::before { content: "RFP · Recommended"; color: var(--sc-accent-deep); }
}

/* Links between Pricing and Comparison (Haydn, 26/10/2026). */
.xlink { margin: 1rem 0 0; }
.xlink a { display: inline-flex; align-items: center; gap: 0.4em; font-weight: 500; color: var(--sc-ink); text-decoration: underline; text-decoration-color: color-mix(in oklab, var(--sc-accent) 60%, transparent); text-underline-offset: 4px; text-decoration-thickness: 1.5px; }
.xlink a:hover { color: var(--sc-accent-deep); }

/* ---------------------------------------------------- shiny button -- */
/* The homepage's two main calls to action (Haydn, 26/10/2026; after
   21st.dev "Shiny Button"): a glassy white-to-grey pill with a faint dot
   texture and an orange light that runs round its edge. The light is a
   conic gradient on a layer that rotates (transform only, so the graphics
   card does it); the face covers all but a 2px rim. Hover adds a sheen
   across the face. Reduced motion: the light stays still. */
.btn-shiny {
  position: relative; isolation: isolate; overflow: hidden;
  display: inline-flex; align-items: center; justify-content: center;
  padding: 1em 1.7em; border-radius: 999px;
  font: 600 1rem/1 var(--sc-font-text); color: var(--sc-ink); text-decoration: none; white-space: nowrap;
  background: color-mix(in oklab, var(--sc-ink) 14%, transparent);   /* the rim where the light isn't */
  box-shadow: var(--sc-e2), 0 0 24px -6px color-mix(in oklab, var(--sc-accent) 45%, transparent);
  transition: transform 200ms var(--sc-ease-out), box-shadow 200ms var(--sc-ease-out);
}
.btn-shiny::before {   /* the travelling light */
  content: ""; position: absolute; z-index: -2; left: 50%; top: 50%;
  width: max(300%, 22rem); aspect-ratio: 1; translate: -50% -50%;
  background: conic-gradient(from 0deg, transparent 0 50%, color-mix(in oklab, var(--sc-accent) 35%, transparent) 64%, var(--sc-accent) 80%, #ffd29b 87%, var(--sc-accent) 92%, transparent 99%);
  animation: shiny-turn 3.6s linear infinite;
}
.btn-shiny::after {    /* the glass face */
  content: ""; position: absolute; z-index: -1; inset: 2px; border-radius: inherit;
  background:
    linear-gradient(115deg, transparent 30%, rgb(255 255 255 / 0.95) 48%, transparent 66%) -150% 0 / 250% 100% no-repeat,
    radial-gradient(color-mix(in oklab, var(--sc-ink) 9%, transparent) 0.6px, transparent 1.2px) 0 0 / 5px 5px,
    linear-gradient(180deg, #fffef8 0%, #f6f4ed 55%, #e9e7e0 100%);
  box-shadow: inset 0 1px 0 #fffef8, inset 0 -1px 2px color-mix(in oklab, var(--sc-ink) 8%, transparent);
  transition: background-position 700ms var(--sc-ease-out);
}
.btn-shiny__label { position: relative; }
.btn-shiny:hover { transform: translateY(-1px); box-shadow: var(--sc-e3), 0 0 32px -6px color-mix(in oklab, var(--sc-accent) 60%, transparent); }
.btn-shiny:hover::after { background-position: 150% 0, 0 0, 0 0; }
.btn-shiny:active { transform: translateY(1px); }
.btn-shiny:focus-visible { outline: 2px solid var(--sc-accent); outline-offset: 3px; }
/* On a dark band (the closing call to action; Haydn, 26/10/2026): the same
   light, round a dark glass face with white text. */
.btn-shiny--dark { color: var(--dark-ink); background: color-mix(in oklab, var(--dark-ink) 16%, transparent); }
.btn-shiny--dark::after {
  background:
    linear-gradient(115deg, transparent 30%, rgb(255 255 255 / 0.14) 48%, transparent 66%) -150% 0 / 250% 100% no-repeat,
    radial-gradient(color-mix(in oklab, var(--dark-ink) 10%, transparent) 0.6px, transparent 1.2px) 0 0 / 5px 5px,
    linear-gradient(180deg, #34383a 0%, #26292a 55%, #1d2021 100%);
  box-shadow: inset 0 1px 0 rgb(255 255 255 / 0.12), inset 0 -1px 2px rgb(0 0 0 / 0.35);
}
@keyframes shiny-turn { to { rotate: 1turn; } }
@media (prefers-reduced-motion: reduce) {
  .btn-shiny::before { animation: none; rotate: 40deg; }
  .btn-shiny, .btn-shiny::after { transition: none; }
}

/* --------------------------------------------------------- our story -- */
/* about/ (Haydn, 26/10/2026): Emma's story in her own words beside the
   team showcase. Smaller type than other pages' headings, so the story
   isn't pushed down the page. */
.story { position: relative; padding-block: calc(var(--bar-h) + clamp(3rem, 8vh, 6rem)) clamp(4rem, 8vw, 7rem); }
.story__frame { z-index: 1; padding-inline: var(--cell-pad); display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: clamp(2.5rem, 6vw, 6rem); align-items: start; }
.story__kicker { margin: 0 0 0.75rem; font-size: 0.85rem; font-weight: 500; color: var(--sc-ink-soft); }
.story h1 { font-family: var(--sc-font-display); font-weight: 500; font-size: clamp(1.8rem, 1.1rem + 1.8vw, 2.6rem); line-height: 1.1; letter-spacing: -0.03em; margin: 0 0 1.5rem; text-wrap: balance; }
.story__text p:not(.story__kicker) { color: var(--sc-ink-soft); font-size: 0.95rem; line-height: 1.7; margin: 0 0 1rem; max-width: 34rem; }
.story__text .story__sign { margin-top: 2rem; color: var(--sc-ink); font-family: var(--font-quote); font-style: italic; font-size: 1.2rem; letter-spacing: -0.012em; }
.story__text .story__name { margin: 0; color: var(--sc-ink); font-weight: 500; }
.story__name span { display: block; color: var(--sc-ink-soft); font-weight: 400; font-size: 0.9rem; }

.team__photos { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; align-items: start; }
.team__photo { margin: 0; aspect-ratio: 4 / 5; border-radius: 20px; overflow: hidden; background: var(--field); }
.team__photo:nth-child(2) { margin-top: clamp(2rem, 6vw, 4.5rem); }   /* staggered */
.team__photo img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 30%; display: block;
  filter: grayscale(1) contrast(1.05); scale: 1.02;
  transition: filter 500ms var(--sc-ease-out), scale 700ms var(--sc-ease-out); }
.team__photo.is-on img { filter: none; scale: 1.05; }

.team__list { list-style: none; margin: 1.5rem 0 0; padding: 0; border-top: 1px solid var(--line); }
.team__row { display: grid; grid-template-columns: 1fr auto 24px; align-items: center; gap: 1rem; padding: 1rem 0.75rem; border-bottom: 1px solid var(--line); border-radius: 12px; transition: background-color 250ms var(--sc-ease-out); }
.team__row.is-on { background: var(--field); }
.team__name { font-weight: 500; font-size: 1.05rem; transition: color 250ms var(--sc-ease-out); }
.team__row.is-on .team__name { color: var(--sc-accent-deep); }
.team__role { color: var(--sc-ink-soft); font-size: 0.9rem; }
.team__link { display: grid; place-items: center; width: 24px; height: 24px; color: var(--sc-ink); border-radius: 6px;
  opacity: 0; translate: -6px 0; transition: opacity 250ms var(--sc-ease-out), translate 250ms var(--sc-ease-out), color 160ms; }
.team__row.is-on .team__link, .team__link:focus-visible { opacity: 1; translate: 0 0; }
.team__link:hover { color: var(--sc-accent); }
@media (hover: none) { .team__link { opacity: 1; translate: 0 0; } .team__photo img { filter: none; } }   /* touch: no hover, so show everything */
@media (max-width: 860px) {
  .story__frame { grid-template-columns: minmax(0, 1fr); }
  .team__row { grid-template-columns: 1fr 24px; }
  .team__role { grid-column: 1; grid-row: 2; margin-top: -0.6rem; }
  .team__link { grid-row: 1 / span 2; grid-column: 2; }
}
@media (prefers-reduced-motion: reduce) { .team__photo img, .team__row, .team__link, .team__name { transition: none; } }

/* ------------------------------------------------------- help centre -- */
/* help/ and help/<topic>/ (Haydn, 27/10/2026; laid out like n8n's docs):
   the groups as tabs along the top; the current group's topics down the
   left (group name in bold orange, the page you're on in dark grey, topics
   with sections toggle open); one page per topic. Built from Notion by
   tools/build-help.py. */
.help { position: relative; padding-block: calc(var(--bar-h) + clamp(2rem, 5vh, 3.5rem)) clamp(4rem, 8vw, 7rem); }
.help__frame { z-index: 1; padding-inline: var(--cell-pad); }

/* Tabs: the groups. */
.help__tabs { display: flex; gap: 0.25rem; overflow-x: auto; scrollbar-width: none; border-bottom: 1px solid var(--line); margin-bottom: 2rem; }
.help__tabs::-webkit-scrollbar { display: none; }
.help__tab { flex: none; padding: 0.8rem 0.9rem; font-size: 0.92rem; font-weight: 500; color: var(--sc-ink-soft); text-decoration: none; border-bottom: 2px solid transparent; margin-bottom: -1px; white-space: nowrap; transition: color 160ms var(--sc-ease-out), border-color 160ms var(--sc-ease-out); }
.help__tab:hover { color: var(--sc-ink); }
.help__tab[aria-current] { color: var(--sc-accent); border-bottom-color: var(--sc-accent); }
/* Tabs as rounded pills, the open one dark, like the portal's menu (Haydn, 11/11/2026). */
.help .help__tab { padding: 0.55rem 1rem; border: 0; margin: 0; border-radius: 999px; transition: background-color 160ms var(--sc-ease-out), color 160ms var(--sc-ease-out); }
.help .help__tab:hover { background: var(--field); }
.help .help__tab[aria-current] { background: var(--selected); color: var(--on-accent); }

/* Layout: the topic list beside the topic. */
.help__layout { display: grid; grid-template-columns: 240px minmax(0, 1fr); column-gap: clamp(2rem, 4vw, 4rem); align-items: start; }
.help__nav { position: sticky; top: calc(var(--bar-h) + 1.5rem); max-height: calc(100vh - var(--bar-h) - 3rem); overflow-y: auto; scrollbar-width: thin; }
.help__toggle { display: none; }
.help__search input { width: 100%; box-sizing: border-box; font: inherit; font-size: 0.88rem; padding: 0.6rem 0.95rem; border-radius: 999px; border: 1px solid var(--line-strong); background: var(--sc-surface); color: var(--sc-ink); }
.help__list, .help__subs { list-style: none; margin: 0; padding: 0; }
/* A category label in the left list (a Notion Heading 2 starting "Category:"), over the topics that follow it. */
.help__cat { margin: 1.25rem 0 0.5rem; font-size: 0.92rem; font-weight: 600; color: var(--sc-accent); }   /* a category: the look the tab name had here before (Haydn, 11/11/2026) */
.help__list > .help__item:first-child { margin-top: 0.75rem; }   /* a tab with no categories: a little space under the search box */
.help__row { display: flex; align-items: center; border-radius: 12px;   /* not a full pill: topics can wrap onto two lines (Haydn, 11/11/2026) */
  transition: background-color 160ms var(--sc-ease-out); }
.help__row > a { flex: 1; display: flex; align-items: center; gap: 0.45em; padding: 0.42rem 0.7rem; font-size: 0.9rem; color: var(--sc-ink); text-decoration: none; }
.help__row:hover { background: var(--field); }
.help__item.is-current > .help__row { background: var(--selected); }
.help__item.is-current > .help__row > a, .help__item.is-current > .help__row .help__caret { color: var(--on-accent); }
.help__item.is-soon > .help__row > a { color: color-mix(in oklab, var(--sc-ink) 40%, transparent); }
.help__caret { flex: none; width: 30px; height: 30px; border: 0; background: transparent; color: var(--sc-ink-soft); cursor: pointer; border-radius: 999px; display: grid; place-items: center; }
.help__caret::before { content: ""; width: 7px; height: 7px; border-right: 1.5px solid currentColor; border-bottom: 1.5px solid currentColor; rotate: -45deg; transition: rotate 200ms var(--sc-ease-out); }
.help__caret[aria-expanded="true"]::before { rotate: 45deg; }
.help__subs { margin: 0.2rem 0 0.4rem 0.7rem; border-left: 1px solid var(--line-strong); }
.help__subs[hidden] { display: none; }
.help__subs a { display: block; padding: 0.3rem 0.8rem; font-size: 0.85rem; color: var(--sc-ink-soft); text-decoration: none; }
.help__subs a:hover { color: var(--sc-ink); }
.help__toc em, .help__tag { font-style: normal; font-size: 0.68rem; font-weight: 500; color: var(--sc-ink-soft); padding: 0.15em 0.55em; border-radius: 999px; border: 1px dashed var(--line-strong); }
.help__results { margin-top: 0.75rem; }
.help__results[hidden] { display: none; }
.help__results ul { list-style: none; margin: 0; padding: 0; }
.help__results a { display: block; padding: 0.5rem 0.7rem; border-radius: 8px; color: var(--sc-ink); text-decoration: none; font-size: 0.9rem; }
.help__results a:hover { background: var(--field); }
.help__results a span { display: block; font-size: 0.75rem; font-weight: 600; color: var(--sc-accent); }
.help__results p { font-size: 0.88rem; color: var(--sc-ink-soft); margin: 0.5rem 0.7rem; }

/* The topic. */
.help__body { max-width: 44rem; }
/* Pictures copied from Notion carry their width and height (tools/notion_html.py), so the page keeps their space while
   they load; height: auto keeps their shape when the column is narrower than the picture. */
.help__body img, .post__body img, .cl__notes img { max-width: 100%; height: auto; }
.help__in { margin: 0 0 0.6rem; font-size: 0.85rem; font-weight: 600; color: var(--sc-accent); }
.help__in a { color: var(--sc-ink-soft); font-weight: 500; text-decoration: none; }
.help__in a:hover { color: var(--sc-ink); }
.help__body h1 { font-family: var(--sc-font-display); font-weight: 500; font-size: clamp(1.7rem, 1.2rem + 1.2vw, 2.2rem); line-height: 1.15; letter-spacing: -0.025em; margin: 0 0 1.25rem; display: flex; align-items: center; gap: 0.6rem; flex-wrap: wrap; }
.help__body h3 { font-size: 1.05rem; font-weight: 500; margin: 1.75rem 0 0.5rem; scroll-margin-top: calc(var(--bar-h) + 1.5rem); }
.help__cols h3 { margin-top: 0; font-size: 0.95rem; }
.help__body p, .help__body li, .help__body dd { color: var(--sc-ink-soft); font-size: 0.95rem; line-height: 1.7; }
.help__body p { margin: 0 0 0.9rem; }
.help__body b { color: var(--sc-ink); font-weight: 500; }
.help__body ul, .help__body ol { margin: 0 0 0.9rem; padding-left: 1.2rem; }
.help__body li { margin-bottom: 0.35rem; }
.help__body a { color: var(--sc-ink); text-decoration-color: color-mix(in oklab, var(--sc-accent) 60%, transparent); text-underline-offset: 3px; }
.help__tip { background: var(--field); border-radius: 12px; padding: 0.85rem 1rem; }
.help__cols { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem 2rem; margin-top: 1rem; }
.help__cols ul { padding-left: 1.1rem; }
.help__table { width: 100%; border-collapse: collapse; margin: 0 0 1rem; font-size: 0.95rem; }
.help__table th { text-align: left; font-weight: 500; font-size: 0.82rem; color: var(--sc-ink-soft); padding: 0 1rem 0.5rem 0; }
.help__table td { padding: 0.7rem 1rem 0.7rem 0; border-top: 1px solid var(--line); color: var(--sc-ink-soft); line-height: 1.6; vertical-align: top; }
.help__table td:first-child { color: var(--sc-ink); font-weight: 500; white-space: nowrap; width: 11rem; }
.help__soon > p { color: color-mix(in oklab, var(--sc-ink) 45%, transparent); }
.help__pager { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-top: 2.5rem; padding-top: 1.5rem; border-top: 1px solid var(--line); }
.help__pager a { display: block; padding: 0.9rem 1.1rem; border: 1px solid var(--line-strong); border-radius: 14px; color: var(--sc-ink); text-decoration: none; font-weight: 500; font-size: 0.95rem; transition: border-color 200ms var(--sc-ease-out); }
.help__pager a:hover { border-color: var(--sc-accent); }
.help__pager a span { display: block; font-size: 0.78rem; font-weight: 500; color: var(--sc-ink-soft); margin-bottom: 0.2rem; }
.help__next { text-align: right; grid-column: 2; }
.help__version { margin: 3rem 0 0; font-size: 0.8rem; color: var(--sc-ink-soft); }

@media (max-width: 860px) {
  .help__layout { grid-template-columns: minmax(0, 1fr); }
  .help__nav { position: static; max-height: none; overflow: visible; margin-bottom: 1.5rem; }
  .help__toggle { display: inline-flex; align-items: center; gap: 0.4em; font: 500 0.9rem/1 var(--sc-font-text); color: var(--sc-ink); padding: 0.65em 1em; border-radius: 999px; border: 0; background: var(--field); cursor: pointer; }
  .help__toc { display: none; padding-top: 0.75rem; }
  .help__nav.is-open .help__toc { display: block; }
  .help__cols { grid-template-columns: minmax(0, 1fr); }
  .help__table td:first-child { white-space: normal; width: 40%; }
  .help__pager { grid-template-columns: minmax(0, 1fr); }
  .help__next { grid-column: 1; }
}
@media (prefers-reduced-motion: reduce) { .help__caret::before, .help__tab, .help__row, .help__pager a { transition: none; } }

/* ----------------------------------------------------------- updates -- */
/* updates/ (Haydn, 26/10/2026; after n8n's blog): the newest post as a large
   card, the rest as a grid of cards with a picture across the top. Built
   from Notion by tools/build-updates.py. */
.upd { position: relative; padding-block: calc(var(--bar-h) + clamp(3rem, 8vh, 5rem)) clamp(4rem, 8vw, 7rem); }
.upd__frame { z-index: 1; padding-inline: var(--cell-pad); }
.upd__head { margin-bottom: 1.5rem; }
.upd__kicker { margin: 0 0 0.75rem; font-size: 0.85rem; font-weight: 500; color: var(--sc-ink-soft); }
.upd__head h1 { font-family: var(--sc-font-display); font-weight: 500; font-size: clamp(1.8rem, 1.1rem + 1.8vw, 2.6rem); line-height: 1.1; letter-spacing: -0.03em; margin: 0; text-wrap: balance; }
.upd__filters { display: flex; flex-wrap: wrap; gap: 6px; margin: 0 0 1.5rem; }
.upd__chip { font: 500 0.85rem/1 var(--sc-font-text); color: var(--sc-ink-soft); padding: 0.6em 1em; border-radius: 999px; border: 0; background: var(--field); cursor: pointer; transition: background-color 160ms var(--sc-ease-out), color 160ms var(--sc-ease-out); }
.upd__chip:hover { color: var(--sc-ink); }
.upd__chip[aria-pressed="true"] { background: var(--sc-ink); color: var(--on-accent); }
.upd__grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; margin-top: 16px; }
/* No drop shadows (Haydn, 26/10/2026): a light grey border that turns orange, with a faint glow, on hover. */
.upd__card { display: flex; flex-direction: column; border-radius: 20px; overflow: hidden; background: var(--card-grey); color: var(--sc-ink); text-decoration: none; border: 1px solid var(--line-strong); transition: border-color 250ms var(--sc-ease-out), box-shadow 250ms var(--sc-ease-out); }
.upd__card[hidden] { display: none; }
.upd__card:hover, .upd__card:focus-visible { border-color: var(--sc-accent); box-shadow: 0 0 0 3px color-mix(in oklab, var(--sc-accent) 14%, transparent), 0 0 18px -4px color-mix(in oklab, var(--sc-accent) 45%, transparent); }
.upd__card:focus-visible { outline: none; }
.upd__img { display: block; aspect-ratio: 16 / 9; overflow: hidden; background: var(--field); }
.upd__img img { width: 100%; height: 100%; object-fit: cover; display: block; transition: scale 500ms var(--sc-ease-out); }
.upd__card:hover .upd__img img { scale: 1.03; }
.upd__text { display: flex; flex-direction: column; align-items: flex-start; gap: 0.7rem; padding: 1.4rem 1.5rem 1.6rem; flex: 1; }
.upd__tag { font-size: 0.75rem; font-weight: 500; padding: 0.4em 0.85em; border-radius: 999px; background: var(--sc-surface); color: var(--sc-ink); }
.upd__title { font-family: var(--sc-font-display); font-weight: 500; font-size: 1.25rem; line-height: 1.2; letter-spacing: -0.015em; text-wrap: balance; }
.upd__excerpt { margin: 0; color: var(--sc-ink-soft); line-height: 1.6; }
.upd__date { font-size: 0.85rem; color: var(--sc-ink-soft); margin-top: auto; }
.upd__card--big { display: grid; grid-template-columns: minmax(0, 3fr) minmax(0, 2fr); }
.upd__card--big .upd__img { aspect-ratio: 16 / 10; }
.upd__card--big .upd__text { justify-content: center; padding: clamp(1.5rem, 3vw, 2.5rem); }
.upd__card--big .upd__title { font-size: clamp(1.5rem, 1.1rem + 1vw, 2rem); }
.upd__card--big .upd__date { margin-top: 0.5rem; }
.upd__none, .upd__empty { color: var(--sc-ink-soft); }

/* One update's own page: the title and details in one rounded box, the
   post (cover then text) in another (Haydn, 28/10/2026). */
.post { max-width: 44rem; margin-inline: auto; }
.post__back { display: inline-flex; gap: 0.4em; font-size: 0.9rem; font-weight: 500; color: var(--sc-ink-soft); text-decoration: none; margin-bottom: 1.5rem; }
.post__back:hover { color: var(--sc-ink); }
.post__head, .post__card { background: var(--sc-surface); border: 1px solid var(--line-strong); border-radius: 20px; }
.post__head { padding: clamp(1.4rem, 3vw, 2rem) clamp(1.4rem, 3vw, 2.25rem); margin-bottom: 12px; }
.post__card { overflow: hidden; }
.post__body { padding: clamp(1.4rem, 3vw, 2.25rem); }
.post__body > :last-child { margin-bottom: 0; }
.post__meta { display: flex; align-items: center; gap: 0.75rem; margin: 0 0 1rem; }
.post__meta .upd__tag { background: var(--field); }
.post h1 { font-family: var(--sc-font-display); font-weight: 500; font-size: clamp(1.8rem, 1.1rem + 1.8vw, 2.6rem); line-height: 1.1; letter-spacing: -0.03em; margin: 0; text-wrap: balance; }
.post__cover { display: block; width: 100%; aspect-ratio: 16 / 9; object-fit: cover; }
.post__body img { max-width: 100%; border-radius: 12px; }
.post__body figure { margin: 1.5rem 0; }
.post__body figcaption { font-size: 0.85rem; color: var(--sc-ink-soft); margin-top: 0.5rem; }
.post__body h1, .post__body h2, .post__body h3 { font-family: var(--sc-font-display); font-weight: 500; letter-spacing: -0.015em; margin: 1.75rem 0 0.75rem; }

@media (max-width: 1000px) { .upd__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 760px) {
  .upd__grid { grid-template-columns: minmax(0, 1fr); }
  .upd__card--big { display: flex; }
  .upd__card--big .upd__img { aspect-ratio: 16 / 9; min-height: 0; }
}
@media (prefers-reduced-motion: reduce) { .upd__card, .upd__img img { transition: none; } }

/* --------------------------------------------------------- changelog -- */
/* changelog/ (Haydn, 28/10/2026; laid out like Supabase's changelog): a
   timeline, newest first. Each entry's title, date, type and area stay
   beside its notes as you scroll past them. Built from Notion by
   tools/build-changelog.py. */
.cl__list { position: relative; margin-top: 1rem; }
.cl__entry { display: grid; grid-template-columns: 260px minmax(0, 1fr); column-gap: clamp(2rem, 4vw, 4rem); padding: 2.5rem 0; border-top: 1px solid var(--line); position: relative; }
.cl__entry[hidden] { display: none; }
.cl__entry::before { content: ""; position: absolute; left: 0; top: -5px; width: 9px; height: 9px; border-radius: 50%; background: var(--sc-accent); }
.cl__side { position: sticky; top: calc(var(--bar-h) + 1.5rem); align-self: start; }
.cl__side h2 { margin: 0 0 0.5rem; font-family: var(--sc-font-display); font-weight: 500; font-size: 1.15rem; line-height: 1.3; letter-spacing: -0.01em; }
.cl__side h2 a { color: var(--sc-ink); text-decoration: none; }
.cl__side h2 a:hover { color: var(--sc-accent-deep); }
.cl__date { margin: 0 0 0.75rem; font-size: 0.85rem; color: var(--sc-ink-soft); }
.cl__tags { display: flex; flex-wrap: wrap; gap: 6px; margin: 0; }
.cl__type, .cl__area { font-size: 0.72rem; font-weight: 500; padding: 0.35em 0.75em; border-radius: 999px; }
.cl__type--new { background: var(--done-bg); color: var(--done-ink); }
.cl__type--better { background: var(--tint); color: var(--sc-accent-deep); }
.cl__type--fix { background: var(--field); color: var(--sc-ink); }
.cl__area { border: 1px solid var(--line-strong); color: var(--sc-ink-soft); }
.cl__notes { max-width: 44rem; }
.cl__notes > :first-child { margin-top: 0; }
.cl__notes img { max-width: 100%; border-radius: 12px; border: 1px solid var(--line); }
.cl__notes figure { margin: 1.25rem 0; }
.cl__notes figcaption { font-size: 0.85rem; color: var(--sc-ink-soft); margin-top: 0.5rem; }
.cl__notes h2, .cl__notes h3 { font-family: var(--sc-font-display); font-weight: 500; letter-spacing: -0.01em; margin: 1.5rem 0 0.5rem; font-size: 1.05rem; }
@media (max-width: 860px) {
  .cl__entry { grid-template-columns: minmax(0, 1fr); padding: 2rem 0; }
  .cl__side { position: static; margin-bottom: 1rem; }
}

/* Short pages (every page but the homepage): the page fills at least the window, and the section above the
   dark band stretches, so the band and footer sit at the bottom rather than halfway up (Haydn, 29/10/2026). */
main:not(:has(.hero)) { display: flex; flex-direction: column; min-height: 100svh; }
main:not(:has(.hero)) > section:not(.close):nth-last-of-type(2) { flex-grow: 1; }

/* Comparison tables in the help centre (a Notion table whose last column is RFP; tools/build-help.py): the
   homepage's comparison design, a size smaller to fit the help column. When the column is too narrow for five
   columns (it's measured, not the window), each row becomes a card, as on phones. */
.cmp__wrap--help { container: cmp / inline-size; margin: 1.5rem 0; padding: 0.5rem 0.75rem 0.75rem; border: 1px solid var(--line-strong); box-shadow: none; }
.cmp--help { min-width: 0; }
.cmp--help th, .cmp--help td { padding: 0.85rem 0.6rem; }
.cmp--help thead th { font-size: 1rem; padding-top: 1rem; }
.cmp--help thead th:first-child, .cmp--help tbody th { width: 16%; }
.cmp--help tbody th { font-size: 0.86rem; color: var(--sc-ink); }
.cmp--help td { font-size: 0.8rem; line-height: 1.45; }
.cmp--help .cmp__cell { grid-template-columns: 14px 1fr; gap: 0.4rem; }
.cmp--help .cmp__mark { width: 14px; height: 14px; margin-top: 0.15rem; }
.cmp--help thead th .cmp__badge { font-size: 0.66rem; margin-bottom: 0.45rem; }
@container cmp (max-width: 540px) {
  .cmp--help, .cmp--help tbody, .cmp--help tr, .cmp--help th, .cmp--help td { display: block; width: auto; }
  .cmp--help thead { display: none; }
  .cmp--help tbody tr { border: 1px solid var(--line-strong); border-radius: 14px; padding: 0.4rem 0.25rem; margin-bottom: 10px; }
  .cmp--help tbody tr:last-child { margin-bottom: 0; }
  .cmp--help tbody th { width: auto; font-size: 1rem; padding: 0.8rem 0.8rem 0.4rem; border: 0; }
  .cmp--help td { padding: 0.6rem 0.8rem; font-size: 0.86rem; }
  .cmp--help td::before { content: attr(data-col); display: block; margin-bottom: 0.3rem; font-size: 0.75rem; font-weight: 500; color: var(--sc-ink); }
  .cmp--help td.cmp__rfp { border-radius: 10px; margin: 0.25rem 0.4rem 0.4rem; border-bottom: 0; }
  .cmp--help tbody tr:last-child .cmp__rfp { border-radius: 10px; }
  .cmp--help td.cmp__rfp::before { content: "RFP · Recommended"; color: var(--sc-accent-deep); }
}
@media (max-width: 860px) { .cmp__wrap--help { padding: 0; border: 0; } }

/* ------------------------------------------------------------ entire team */
/* A short pin after the client logos: two lines that write themselves in, word by word out of a blur (like a
   "text generate" effect), each followed by little sign-style figures: a person, then the same person with a row of
   AI helpers (site.js switches each [data-at] on from the act's progress; the motion is these transitions). */
.gen .sc-stage { background: var(--sc-canvas); }
.gen .rails { inset: 0; }
.gen__copy {
  position: absolute; inset: 0; z-index: 1;
  display: grid; align-content: center; justify-items: center; gap: 0.35em; text-align: center;
  padding-inline: var(--sc-gutter);
  font-family: var(--sc-font-display); font-weight: 500; font-size: var(--size-hero); line-height: 1.15; letter-spacing: -0.03em;
}
.gen__line { margin: 0; font: inherit; color: var(--sc-ink); max-width: 22em; text-wrap: balance; }
.gen__line--team { color: var(--sc-accent); }
.gen .w { display: inline-block; opacity: 0; filter: blur(10px); translate: 0 0.12em; transition: opacity 600ms ease, filter 600ms ease, translate 600ms ease; }
.gen .w.is-on { opacity: 1; filter: none; translate: 0 0; }
.gen__icons { display: inline-flex; align-items: flex-end; gap: 0.08em; margin-left: 0.15em; height: 0.9em; vertical-align: -0.08em; }
.gen__icon { width: 0.66em; height: 0.88em; fill: currentColor; opacity: 0; scale: 0; transform-origin: 50% 100%; transition: scale 520ms cubic-bezier(.34, 1.7, .64, 1), opacity 200ms ease; }
.gen__icon.is-on { opacity: 1; scale: 1; }
.gen__icon--person { color: var(--sc-ink); }
.gen__icon--bot { color: var(--sc-accent); width: 0.6em; height: 0.8em; }
.gen__icon--bot + .gen__icon--bot { margin-left: -0.04em; }
.gen__eye { fill: var(--sc-canvas); }
@media (prefers-reduced-motion: reduce) {
  .gen .w, .gen__icon { transition: none; }
}

/* ------------------------------------- hero: many jobs, one service -- */
/* Haydn, 29/10/2026. A 600 x 520 drawing: each job's line runs along to
   the trunk and down into the card. The jobs are placed with --x/--y (% of
   the box); left-hand jobs end at their point, right-hand ones start there.
   site.js adds .is-on to draw it in (staggered by --i), .is-lit to send a
   light along one job's line, and places the lead line from the headline's
   full stop to the trunk.
   Timing (Haydn, 17/11/2026: "the services rattle through quickly, then the
   monthly review"): the jobs 90ms apart from 0.4s, so all six are in by about
   1.2s and their lines by 1.55s; then the card fades in (a gentle, even fade,
   not the sharp ease the jobs use, which made it look as if it just appeared). */
.mio { position: relative; aspect-ratio: 600 / 520; font-family: var(--sc-font-text); }
.mio__lines { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.mio__trunk, .mio__line { fill: none; stroke: var(--line-strong); stroke-width: 1.2; stroke-dasharray: 100; stroke-dashoffset: 100; }
.mio__trunk { transition: stroke-dashoffset 600ms var(--sc-ease-out) 300ms; }
.mio__line { transition: stroke-dashoffset 600ms var(--sc-ease-out) calc(500ms + var(--i) * 90ms); }
.mio.is-on .mio__trunk, .mio.is-on .mio__line { stroke-dashoffset: 0; }
/* The light: a short bright stroke with a soft wider one under it, run
   along the job's whole path (pathLength 100). */
.mio__glow, .mio__light { fill: none; stroke: var(--sc-accent); stroke-linecap: round; opacity: 0; stroke-dashoffset: 16; }
.mio__glow { stroke-width: 7; stroke-dasharray: 16 100; filter: blur(3px); }
.mio__light { stroke-width: 1.8; stroke-dasharray: 10 106; }
.is-lit > .mio__glow, .is-lit > .mio__light { animation: mio-light 1500ms cubic-bezier(.45, 0, .55, 1) both; }
.is-lit > .mio__glow { animation-name: mio-glow; }
@keyframes mio-light { 0% { opacity: 0; stroke-dashoffset: 12; } 8% { opacity: 1; } 88% { opacity: 1; } 100% { opacity: 0; stroke-dashoffset: -100; } }
@keyframes mio-glow  { 0% { opacity: 0; stroke-dashoffset: 16; } 8% { opacity: 0.35; } 88% { opacity: 0.35; } 100% { opacity: 0; stroke-dashoffset: -100; } }

.mio__job {
  position: absolute; left: var(--x); top: var(--y); translate: 0 -50%;
  display: inline-flex; align-items: center; gap: 7px; white-space: nowrap;
  padding: 6px 13px; border-radius: 999px; font-size: 13px;
  background: var(--sc-canvas); color: color-mix(in oklab, var(--sc-ink) 45%, transparent);
  border: 1px dashed color-mix(in oklab, var(--sc-ink) 22%, transparent);
  opacity: 0; cursor: default;
  transition: opacity 300ms var(--sc-ease-out) calc(400ms + var(--i) * 90ms), color 300ms var(--sc-ease-out) calc(650ms + var(--i) * 90ms),
              background-color 300ms var(--sc-ease-out) calc(650ms + var(--i) * 90ms), border-color 300ms var(--sc-ease-out);
}
.mio__job--l { translate: -100% -50%; }
.mio__job::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; transition: background-color 300ms var(--sc-ease-out); }
.mio.is-on .mio__job { opacity: 1; color: var(--sc-ink); background: var(--sc-surface); border-style: solid; border-color: var(--line-strong); }
.mio.is-on .mio__job::before { background: var(--sc-accent); }
.mio.is-on .mio__job.is-lit { border-color: var(--sc-accent); transition-delay: 0s; }
/* Hover: the job in focus, the rest quiet. */
.mio.is-on.is-focus .mio__job { opacity: 0.4; transition-delay: 0s; }
.mio.is-on.is-focus .mio__job.is-focus { opacity: 1; border-color: var(--sc-accent); }
.mio__tip {
  position: absolute; z-index: 4; width: 15rem; padding: 10px 12px;
  background: var(--sc-surface); border: 1px solid var(--line-strong); border-radius: 12px; box-shadow: var(--sc-e2);
  font-size: 12px; line-height: 1.5; color: var(--sc-ink-soft);
  opacity: 0; translate: 0 4px; pointer-events: none; transition: opacity 180ms var(--sc-ease-out), translate 180ms var(--sc-ease-out);
}
.mio__tip b { display: block; color: var(--sc-ink); font-weight: 500; margin-bottom: 2px; }
.mio__tip.is-on { opacity: 1; translate: 0 0; }

.mio__card {
  position: absolute; left: 14%; right: 14%; top: calc(350 / 520 * 100%);
  padding: 14px 16px; border-radius: 16px; background: var(--sc-surface);
  border: 1px solid var(--line-strong); /* no drop shadow (Haydn: never) */
  opacity: 0; translate: 0 14px;
  transition: opacity 800ms cubic-bezier(0.4, 0, 0.2, 1) 1300ms, translate 800ms cubic-bezier(0.4, 0, 0.2, 1) 1300ms;
}
.mio.is-on .mio__card { opacity: 1; translate: 0 0; }
.mio__card-head { display: flex; justify-content: space-between; align-items: center; gap: 10px; font-size: 14px; }
.mio__card-head b { font-weight: 500; }
.mio__stamp { display: inline-flex; align-items: center; gap: 5px; font-size: 11.5px; font-weight: 500; padding: 3px 10px; border-radius: 999px; background: var(--done-bg); color: var(--done-ink); white-space: nowrap; }
.mio__stamp svg { width: 10px; height: 10px; }
/* The card is one sample invoice (13/11/2026): a line per service with how many, the package and unit price, then the
   total, which counts up as the card arrives (site.js data-mio-count). */
.mio__sub { margin: 3px 0 0; font-size: 11.5px; color: var(--sc-ink-soft); }
.mio__inv { list-style: none; margin: 8px 0 0; padding: 8px 0 0; border-top: 1px solid var(--line); display: grid; gap: 3px; font-size: 13px; line-height: 1.4; }
.mio__inv li { display: grid; grid-template-columns: 2.1em minmax(0, 1fr) auto; gap: 8px; align-items: baseline; }
.mio__qty { color: var(--sc-ink-soft); font-variant-numeric: tabular-nums; }
.mio__inv i { font-style: normal; font-size: 11px; color: var(--sc-ink-soft); margin-left: 4px; white-space: nowrap; }
.mio__inv b { font-weight: 400; font-variant-numeric: tabular-nums; }
.mio__total { display: flex; justify-content: space-between; align-items: baseline; margin-top: 8px; padding-top: 6px; border-top: 1px solid var(--line); font-size: 13px; }
.mio__total b { font-size: 20px; line-height: 1.2; font-weight: 500; letter-spacing: -0.01em; font-variant-numeric: tabular-nums; }
.mio__card .mio__note { margin-top: 4px; }
.mio__note { margin: 8px 0 0; font-size: 11px; color: var(--sc-ink-soft); }

/* The lead line: from the headline's full stop to the trunk (placed by
   site.js), drawn first. */
.mio__lead {
  position: absolute; height: 1.2px; background: var(--line-strong); pointer-events: none;
  transform-origin: left center; scale: 0 1; transition: scale 600ms var(--sc-ease-out) 150ms;
}
.mio.is-on .mio__lead { scale: 1 1; }
.hero__stop { position: relative; }

/* Phones: no lines. The jobs wrap as a row of chips above the card. */
@media (max-width: 860px) {
  .hero__grid { grid-template-columns: minmax(0, 1fr); gap: 2rem; }
  .mio { aspect-ratio: auto; display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; }
  .mio__lines, .mio__lead, .mio__tip { display: none; }
  .mio__job, .mio__job--l { position: static; translate: none; font-size: 12px; padding: 5px 11px; }
  .mio__card { position: relative; left: auto; right: auto; top: auto; width: 100%; margin-top: 10px; }
}
@media (prefers-reduced-motion: reduce) {
  .mio *, .mio__lead { transition: none !important; animation: none !important; }
}

/* ------------------------------------------- numbers: six containers -- */
/* Haydn, 29/10/2026, after biite.nl's card grid: four columns, two rows.
   Top: two figures, then the heading in a wide container. Bottom: the
   graph in a wide container, then two figures. Everything sits inside a
   container. The heading's container is dark, so the two wide ones read
   as the pair that frames the figures. */
.nums {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  grid-auto-rows: minmax(clamp(15rem, 21vw, 19rem), auto);
  gap: 16px;
}
.metric { border-radius: 24px; padding: clamp(1.5rem, 2.2vw, 2.25rem); min-height: 0; gap: 0; }
.metric__foot { margin-top: auto; display: grid; gap: 8px; }
.metric__foot .metric__num { margin-top: 0 !important; }
/* Room for two lines under every figure, so the figures sit level. */
.metric__foot .metric__sub { min-height: calc(2 * 1.5em); line-height: 1.5; }
.metric--title, .metric--graph { grid-column: span 2; }
.metric--title { border-color: transparent; background: var(--dark); color: var(--dark-ink); justify-content: flex-end; }
.metric--title h2 { color: var(--dark-ink) !important; }
.metric--title .numbers__lede { color: var(--dark-soft); margin-top: var(--sc-3); }
.metric--title .placeholder-tag { color: var(--dark-soft); border-color: color-mix(in oklab, var(--dark-ink) 30%, transparent); align-self: flex-start; }
.metric--graph { padding: 0; }
.metric--graph .metric__top { padding: clamp(1.5rem, 2.2vw, 2.25rem) clamp(1.5rem, 2.2vw, 2.25rem) 0; }
.numbers { padding-block: clamp(4rem, 9vw, 7rem); }

/* Tablets: the heading, then the figures two by two, then the graph. */
@media (max-width: 1000px) {
  .nums { grid-template-columns: repeat(2, minmax(0, 1fr)); grid-auto-rows: minmax(12rem, auto); }
  .metric--title { grid-row: 1; }
  .metric--graph { grid-row: 4; min-height: 20rem; }
}
@media (max-width: 860px) {
  .nums { gap: 12px; grid-auto-rows: minmax(10rem, auto); }
  .metric { border-radius: 20px; padding: 1.25rem; }
  .metric--graph { padding: 0; }
  .metric--graph .metric__top { padding: 1.25rem 1.25rem 0; }
  .metric__foot .metric__sub { min-height: calc(3 * 1.5em); }   /* phones: descriptions wrap to three lines */
}

/* ------------------------------------------------ dark accents -- */
/* Haydn, 29/10/2026: the dark container in the numbers section, leaned
   into for the Log in button. (Dark hero job pills and a dark menu track
   were tried the same day and dropped: too much.) Over dark sections the
   bar keeps its own dark-ground styles (.bar--dark). */
.bar:not(.bar--dark) .chip-btn { background: var(--dark); color: var(--dark-ink); border-color: var(--dark); }
.bar:not(.bar--dark) .chip-btn:hover { background: #373a3b; border-color: #373a3b; }

/* --------------------------------------- testimonial in a container -- */
/* Haydn, 29/10/2026: no longer a full-screen dark pin. The stage is one
   light, rounded container straight under the numbers: the same width and
   the same height as their six containers together, 16px below them (their
   gap). It holds mid-screen while the words light up (the engine still
   pins it: it is sticky, just not full height), and the quote is in the
   site's own font. */
.testimonial {
  --t-h: min(calc(2 * clamp(15rem, 21vw, 19rem) + 16px), calc(100svh - var(--bar-h) - 32px));
  padding-top: 16px;
}
.numbers { padding-bottom: 0; }
.testimonial { position: relative; }
.testimonial__box {
  position: relative; overflow: clip; z-index: 1;
  height: var(--box-h, var(--t-h));
  width: calc(min(100% - 2 * var(--sc-gutter), var(--frame)) - 2 * clamp(1.25rem, 3vw, 3rem));
  margin-inline: auto; border-radius: 24px;
  background: var(--card-grey); border: 1px solid var(--line-strong);
  color: var(--sc-ink);
}
.testimonial > .rails { z-index: 0; }
.quote { padding-inline: clamp(1.5rem, 5vw, 5rem); }
/* Back to dark and to the serif (Haydn, 29/10/2026): the quote's own
   styles above apply again; only the size fits the container. */
.testimonial__box { background: var(--dark); color: var(--dark-ink); border-color: transparent; }
.quote blockquote { max-width: 22em; font-size: clamp(1.7rem, 1rem + 2.3vw, 3.1rem); }
@media (max-width: 860px) {
  .testimonial { --t-h: min(30rem, calc(100svh - var(--bar-h) - 32px)); padding-top: 12px; }   /* phones: the numbers' 12px gap */
  .testimonial__box { border-radius: 20px; }
}

/* ------------------------------------------- logo strip: a container -- */
/* Haydn, 29/10/2026, the widget grid: the logo strip is one full-width
   container, white so it stands apart from the grey numbers, the same
   width as the containers below it and 16px above them (the grid's gap;
   12px on phones). Same height as before. */
.clients > .frame { border: 0; background: none; padding-inline: clamp(1.25rem, 3vw, 3rem); }
.clients__box { overflow: hidden; }
/* Each logo in its own white container, moving with it (Haydn, 29/10/2026),
   16px apart like the rest of the grid. The space sits after each tile (not
   as a flex gap) so the two copies of the row are exactly half the track
   each, and the loop has no jump. */
.clients .client { margin-right: 16px; background: var(--sc-surface); border: 1px solid var(--line-strong); border-radius: 20px; box-sizing: border-box; }
.numbers { padding-top: 16px; }
@media (max-width: 860px) {
  .clients .client { margin-right: 12px; border-radius: 16px; }   /* phones: the grid's 12px */
  .numbers { padding-top: 12px; }
}

/* --------------------------------------- a cleaner page, for the grid -- */
/* Haydn, 29/10/2026: with the widget grid, the page lost its side lines
   and its dot field (both now removed above). The dots stay in one place
   only: behind the hero's drawing, fading out smoothly towards its edges. */

.mio { isolation: isolate; }
.mio::before {
  content: ""; position: absolute; z-index: -1; pointer-events: none;
  inset: -14% -12% -6%;
  background-image: radial-gradient(circle, var(--dot) 1px, transparent 1.4px);
  background-size: 22px 22px; background-position: center;
  -webkit-mask-image: radial-gradient(closest-side, #000 45%, transparent);
  mask-image: radial-gradient(closest-side, #000 45%, transparent);
}
@media (max-width: 860px) { .mio::before { display: none; } }   /* phones: no drawing, so no dots */

/* ------------------------------------------------------ no shadows -- */
/* Haydn, 29/10/2026: never drop shadows. The three elevation shadows are
   emptied here (left as a harmless transparent value, so every rule that
   lists them still reads correctly), and the few written-out ones go too.
   Where a white surface would now melt into a light background, a faint
   1px line does the separating instead. The inset highlights inside
   buttons and the focus and selection rings stay: they aren't shadows. */
:root { --sc-e1: 0 0 #0000; --sc-e2: 0 0 #0000; --sc-e3: 0 0 #0000; }
.pricing { --shadow: 0 0 #0000; }
.btn-shiny, .btn-shiny:hover { box-shadow: none; }
.mega__panel { border: 1px solid var(--line-strong); }
.bar--dark .mega__panel { border-color: color-mix(in oklab, var(--dark-ink) 10%, transparent); }
.login__win { border: 1px solid var(--line-strong); }
.pricing .rows, .pricing .month { border: 1px solid var(--line-strong); }
.cmp__wrap { border: 1px solid var(--line-strong); }
@media (max-width: 860px) {
  .pricing .month { box-shadow: none; border-width: 1px 0 0; }
  .cmp tbody tr { border: 1px solid var(--line-strong); }
  .mega__panel, .bar--dark .mega__panel { border: 0; }   /* phones: the panels open inside the menu sheet */
}

/* ----------------------------------------- what we do: one container -- */
/* Haydn, 29/10/2026, the widget grid: What we do is one white container,
   16px under the testimonial and as tall as the grid's tall containers
   (--box-h, site.js). Left half: the heading and the list of services
   (the one showing is picked out). Right half: a grey panel where each
   service slides up over the one before while the page holds (site.js
   sets .is-in and .is-covered); the covered one shrinks back a little.
   .is-static (phones, reduced motion): the services are simply listed. */
.work { position: relative; padding-top: 16px; }
.work > .frame { z-index: 1; padding-inline: clamp(1.25rem, 3vw, 3rem); }
.wwd {
  display: grid; grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr);
  height: var(--box-h, 42rem); border-radius: 24px; overflow: hidden;
  background: var(--sc-surface); border: 1px solid var(--line-strong);
}
.wwd__head { display: flex; flex-direction: column; padding: clamp(1.75rem, 3.5vw, 3rem); }
.wwd__head h2 { font-family: var(--sc-font-display); font-weight: 500; font-size: var(--size-title); line-height: 1.08; letter-spacing: -0.02em; margin: 0; text-wrap: balance; }
.wwd__head > p { color: var(--sc-ink-soft); margin: var(--sc-3) 0 0; max-width: 26rem; }
.wwd__list { list-style: none; margin: auto 0 0; padding: 0; display: grid; gap: 4px; }
.wwd__list li {
  display: flex; align-items: baseline; gap: 14px; padding: 10px 0; border-top: 1px solid var(--line);
  font-size: 1rem; color: color-mix(in oklab, var(--sc-ink) 45%, var(--sc-surface)); transition: color 300ms var(--sc-ease-out);
}
.wwd__list li:first-child { border-top: 0; }
.wwd__list li.is-on { color: var(--sc-ink); }
.wwd__num { font-size: 0.8rem; font-variant-numeric: tabular-nums; color: inherit; }
.wwd__list li.is-on .wwd__num { color: var(--sc-accent-deep); }

.stack { position: relative; margin: 10px; border-radius: 18px; overflow: hidden; list-style: none; padding: 0; background: var(--card-grey); }
.stack__card {
  position: absolute; inset: 0; display: flex; flex-direction: column; gap: 6px;
  padding: clamp(1.5rem, 2.6vw, 2.25rem); border-radius: 18px; background: var(--card-grey);
  translate: 0 102%; transform-origin: 50% 0;
  transition: translate 700ms var(--sc-ease-out), scale 700ms var(--sc-ease-out), opacity 700ms var(--sc-ease-out);
}
.stack__card.is-in { translate: 0 0; }
.stack__card.is-covered { scale: 0.94; opacity: 0.55; }
.stack__text { display: grid; gap: 8px; }
.stack__num { margin: 0; font-size: 0.85rem; color: var(--sc-ink-soft); font-variant-numeric: tabular-nums; }
.stack__text h3 { margin: 0; font-family: var(--sc-font-display); font-weight: 500; font-size: var(--size-card-title); line-height: 1.15; letter-spacing: -0.02em; }
.stack__lede { margin: 0; color: var(--sc-ink-soft); max-width: 34rem; }
.stack__foot { margin: 2px 0 0; display: flex; gap: 8px; align-items: center; font-size: 0.92rem; }
.stack__foot::before { content: "+"; color: var(--sc-ink-soft); font-size: 1.1rem; line-height: 1; }
.stack__case { margin-top: auto; padding-top: 1rem; }
.stack .case { font-size: 14px; }
.stack .case__name { font-size: 19px; }
.stack .case__meta { font-size: 13px; }
.stack .tasks li, .stack .note__text { font-size: 14px; }
.stack .ring { width: 60px; height: 60px; }
.stack .case__body { grid-template-columns: 1fr; }   /* the note above the checklist, so the tasks have the full width (Haydn, 10/11/2026) */
.stack .note { min-height: 0; }
.stack .note__text { min-height: 2.9em; }   /* two lines held, so a longer note doesn't move the list */

/* Listed: phones, reduced motion, or no hold. */
.wwd.is-static { height: auto; }
.wwd.is-static .stack { overflow: visible; background: none; display: grid; gap: 10px; }
.wwd.is-static .stack__card { position: relative; inset: auto; translate: none; scale: 1; opacity: 1; transition: none; }
.wwd.is-static .wwd__list { display: none; }
@media (max-width: 860px) {
  .work { padding-top: 12px; }
  .wwd { grid-template-columns: minmax(0, 1fr); border-radius: 20px; }
  .wwd__head { padding: 1.5rem 1.25rem 0.5rem; }
  .wwd__head h2 { font-size: 1.6rem; }
  .stack__card { padding: 1.25rem; border-radius: 16px; }
  .stack__text h3 { font-size: 1.25rem; }
  .stack .case__body { grid-template-columns: 1fr; }
  .stack .note { display: none; }
}

/* ------------------------------------------ clearer what we do, dark quote -- */
/* Haydn, 29/10/2026:
   - What we do is light (its left half was dark for a while, the same day);
   - What we do shows that it scrolls: a thin line down the right edge of
     its container fills as you go through the services;
   - the service names are buttons that take you straight to a service,
     and the one showing has a grey background with its number in deep
     orange. */

.wwd { position: relative; }
.wwd__track {
  position: absolute; right: 22px; top: 34px; bottom: 34px; width: 2px; border-radius: 2px; z-index: 2;
  background: color-mix(in oklab, var(--sc-ink) 10%, transparent); overflow: hidden; pointer-events: none;
}
.wwd__track i { position: absolute; inset: 0; background: var(--sc-accent); transform-origin: 50% 0; transform: scaleY(0); }
.wwd.is-static .wwd__track { display: none; }

.wwd__list { gap: 4px; }
.wwd__list li { display: block; padding: 0; border-top: 0; }
.wwd__btn {
  display: flex; align-items: baseline; gap: 14px; width: 100%; text-align: left; cursor: pointer;
  padding: 11px 14px; border: 0; border-radius: 12px; background: transparent;
  font: inherit; font-size: 1rem; color: inherit;
  transition: background-color 250ms var(--sc-ease-out), color 250ms var(--sc-ease-out);
}
.wwd__btn:hover { background: color-mix(in oklab, var(--card-grey) 55%, var(--sc-surface)); color: var(--sc-ink); }
.wwd__list li.is-on .wwd__btn { background: var(--card-grey); color: var(--sc-ink); }
.wwd__list li.is-on .wwd__num { color: var(--sc-accent-deep); }
.wwd__btn:focus-visible { outline: 2px solid var(--sc-accent); outline-offset: 2px; }

/* --------------------------------------- how it works: one container -- */
/* Haydn, 29/10/2026: What we do, mirrored. One white container, 16px under
   What we do and as tall as the grid's tall containers (--box-h). Left: a
   grey window with the workflow, panning as the page holds (site.js gives
   flow.js the progress), and the reached step's text below it. Right
   (light, since the same day): the heading and the five steps, the reached one picked
   out (flow.js); each is a button that goes straight to its step. No
   pictures here. Replaces the full-screen pin. */
.how { height: auto; background: none; view-timeline: none; padding-top: 16px; }
.how > .frame { z-index: 1; padding-inline: clamp(1.25rem, 3vw, 3rem); }
.how .flow { animation: none !important; }
.hw {
  display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);   /* 1.2 / 0.8 until 10/11/2026: wider for sentence headings */
  height: var(--box-h, 42rem); border-radius: 24px; overflow: hidden;
  background: var(--sc-surface); border: 1px solid var(--line-strong);
  --box: 72px; --if-box: 56px; --lane-gap: 34px;
}
.how__window {
  margin: 10px; border-radius: 18px; background: var(--card-grey); overflow: hidden;
  display: grid; grid-template-rows: minmax(0, 1fr) auto; grid-template-columns: minmax(0, 1fr); align-items: center;   /* the window's width, not the workflow's */
  padding: clamp(1.25rem, 2.5vw, 2rem) 0 clamp(1.25rem, 2.5vw, 2rem);
}
.how__window .how__view {
  margin: 0; overflow: clip;
  -webkit-mask-image: linear-gradient(to right, transparent, #000 8%, #000 92%, transparent);
  mask-image: linear-gradient(to right, transparent, #000 8%, #000 92%, transparent);
}
.how__window .how__steps { padding-inline: clamp(1.25rem, 2.5vw, 2rem); }
.how__window .step-card { height: auto; min-height: 7rem; }
/* The card shows the step's description only; its name is in the list beside
   it (Haydn, 29/10/2026). */
.how__window .step-card__body p:not(.step__num) { margin: 0; color: var(--sc-ink); font-size: clamp(1.05rem, 0.9rem + 0.4vw, 1.25rem); line-height: 1.5; max-width: none; }
.how__window .step-card--grey { background: var(--sc-surface); }   /* white cards on the grey window */

.hw .how__head { max-width: none; display: flex; flex-direction: column; padding: clamp(1.75rem, 3.5vw, 3rem); }
.hw .how__head h2 { color: var(--sc-ink); }   /* not orange here (Haydn, 29/10/2026) */
.hw .how__head > p { color: var(--sc-ink-soft); margin: var(--sc-3) 0 0; }
.hw__list { list-style: none; margin: auto 0 0; padding: 0; display: grid; gap: 4px; }
.hw__list li { color: color-mix(in oklab, var(--sc-ink) 45%, var(--sc-surface)); }
.hw__list li.is-on .wwd__btn { background: var(--card-grey); color: var(--sc-ink); }
.hw__list li.is-on .wwd__num { color: var(--sc-accent-deep); }

@media (max-width: 860px) {
  .how { padding-top: 12px; }
  .hw { grid-template-columns: minmax(0, 1fr); height: auto; border-radius: 20px; --box: 52px; --if-box: 40px; --lane-gap: 30px; }
  .how__window { order: 2; height: min(30rem, calc(100svh - var(--bar-h) - 32px)); }
  .hw .how__head { order: 1; padding: 1.5rem 1.25rem 1.25rem; }
  .hw .how__head h2 { font-size: 1.6rem; }
  .hw__list { display: none; }
  /* Phones hide the list, so the card names its step. */
  .how__window .step-card__body::before { content: attr(data-name); display: block; margin-bottom: 6px; font-size: 0.8rem; font-weight: 500; color: var(--sc-ink-soft); white-space: pre-wrap; }
  .how__window .step-card__body p:not(.step__num) { font-size: 0.98rem; }
}
@media (prefers-reduced-motion: reduce) {
  .how__window .how__view { overflow-x: auto; -webkit-mask-image: none; mask-image: none; }
}

/* -------------------------------------------- pricing: one container -- */
/* Haydn, 29/10/2026, the widget grid: one white container, 16px under How
   it works, on the light theme. Left: the heading, then a grey window
   holding the price list (white service cards on grey). Right, on its
   own: "Your month", straight on the container (no card of its own),
   staying in view while you work down the list. Phones: the heading, the
   list, then the month as a bar along the bottom of the screen.
   Haydn, 29/10/2026 (later): the calculator gets its own container after
   all: two white containers 16px apart, the month one staying in view. */
.pricing { padding-block: 16px 0; }
main:not(:has(.hero)) > .pricing { padding-block: calc(var(--bar-h) + 1.5rem) 16px; }   /* the Pricing page */
.pricing > .frame { display: block; padding-inline: clamp(1.25rem, 3vw, 3rem); }
.pc { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 360px); gap: 16px; }
.pc__main {
  min-width: 0; display: grid; align-content: start;
  border-radius: 24px; overflow: clip; background: var(--sc-surface); border: 1px solid var(--line-strong);
}
.pc__main .pricing__head { padding: clamp(1.75rem, 3.5vw, 3rem) clamp(1.75rem, 3.5vw, 3rem) clamp(1rem, 2vw, 1.5rem); max-width: 52rem; }
.pc__window { margin: 0 0 10px 10px; border-radius: 18px; background: var(--card-grey); padding: clamp(1.25rem, 2.5vw, 2rem); min-width: 0; }
.pc__window .rows { border: 0; }
.pc__side { min-width: 0; }
.pc__side .month {
  position: sticky; top: calc(var(--bar-h) + 16px);
  background: var(--sc-surface); border: 1px solid var(--line-strong); border-radius: 24px; padding: clamp(1.75rem, 3vw, 2.5rem);
}
.pc__side .month__chips { display: none; }   /* the buttons above the list are enough... */
@media (min-width: 901px) { .pc__window .tools .pchips { display: flex; } }   /* ...so they show on laptops too */

@media (max-width: 900px) {
  .pc { grid-template-columns: minmax(0, 1fr); gap: 12px; }
  .pc__main { border-radius: 20px; }
  .pc__main .pricing__head { padding: 1.5rem 1.25rem 1rem; }
  .pc__window { margin: 0 8px 8px; padding: 1rem 0.75rem; }
  .pc__side { display: contents; }
  .pc__side .month {
    position: sticky; top: auto; bottom: 0; border-radius: 20px 20px 0 0;
    background: var(--sc-surface); border-top: 1px solid var(--line-strong); padding: 14px 16px calc(14px + env(safe-area-inset-bottom, 0px));
  }
}

/* How it works was dark with a light workflow window for a day; it is white again
   (Haydn, 30/10/2026). */

/* The numbers on the dark theme (Haydn, 30/10/2026; orange was tried the same day and was
   too much): every figure tile is dark like the title tile, with light text and the
   graph's orange line on a faint light dot grid. */
.metric:not(.metric--title) { --card-bg: var(--dark); background: var(--dark); color: var(--dark-ink); }
.metric:not(.metric--title) .metric__label,
.metric:not(.metric--title) .metric__sub { color: var(--dark-soft); }
.metric--graph .chart::before { background-image: radial-gradient(circle, color-mix(in oklab, var(--dark-ink) 18%, transparent) 1px, transparent 1.4px); }
#chartFill stop[offset="0"] { stop-opacity: 0.35; }

/* ------------------------------------------------------- the people -- */
/* Emma and Haydn, under How it works (Haydn, 30/10/2026; after the old site's "Real
   industry experience" section). One white container, like What we do: the title (the
   size of "The work, in numbers", with "behind every task" in orange) and line on the left, then a light grey
   panel each. The photos are the Our story page's shape (4:5, 20px corners) at
   288 x 360, filling their panel's width. As on Our story they start black and white;
   pointing at a panel (or focusing in it) colours its photo, zooms it slightly and turns
   the name deep orange. Touch screens have no pointing, so there the photos are in
   colour. Laptops below 1280px and tablets: the title across the top. Phones: one
   column, each photo small beside the name. */
.founders { position: relative; padding-top: 16px; }
.founders__box {
  display: grid; grid-template-columns: minmax(0, 1fr) repeat(2, minmax(0, 336px)); gap: 10px;
  margin-inline: clamp(1.25rem, 3vw, 3rem); padding: 10px;
  background: var(--sc-surface); border: 1px solid var(--line-strong); border-radius: 24px;
}
.founders__head { padding: clamp(1.25rem, 2.5vw, 2rem) clamp(0.75rem, 2vw, 1.5rem); }
.founders__head h2 { font-family: var(--sc-font-display); font-weight: 500; font-size: var(--size-title); line-height: 1.05; letter-spacing: -0.02em; margin: 0; color: var(--sc-ink); text-wrap: balance; }   /* "behind every task" in orange */
.founders__head > p { color: var(--sc-ink-soft); margin: var(--sc-3) 0 0; max-width: 26rem; }
/* "Read RFP's story" (Haydn, 30/10/2026): a quiet pill in the panels' light grey, to Our story. */
.founders__link {
  display: inline-flex; align-items: center; gap: 0.5em; margin-top: var(--sc-5);
  padding: 0.8em 1.3em; border-radius: 999px; background: var(--card-grey);
  color: var(--sc-ink); font-weight: 500; font-size: 0.95rem; line-height: 1; text-decoration: none;
  transition: background-color 200ms var(--sc-ease-out);
}
.founders__link span { transition: translate 200ms var(--sc-ease-out); }
.founders__link:hover { background: color-mix(in oklab, var(--sc-ink) 8%, var(--card-grey)); }
.founders__link:hover span { translate: 3px 0; }
.founders__link:focus-visible { outline: 2px solid var(--sc-accent); outline-offset: 2px; }
@media (prefers-reduced-motion: reduce) { .founders__link span { transition: none; } }
.founder {
  display: flex; flex-direction: column; gap: 14px; padding: 24px; border-radius: 18px; min-width: 0;
  background: var(--card-grey);
  transition: background-color 300ms var(--sc-ease-out);
}
.founder__photo { margin: 0; width: min(100%, 288px); align-self: center; aspect-ratio: 4 / 5; border-radius: 20px; overflow: hidden; background: var(--field); }
.founder__photo img {
  display: block; width: 100%; height: 100%; object-fit: cover; object-position: 50% 30%;
  filter: grayscale(1) contrast(1.05); scale: 1.02;
  transition: filter 500ms var(--sc-ease-out), scale 700ms var(--sc-ease-out);
}
.founder__who h3 { font-family: var(--sc-font-display); font-weight: 500; font-size: 1.5rem; letter-spacing: -0.02em; line-height: 1.1; margin: 0; color: var(--sc-ink); transition: color 250ms var(--sc-ease-out); }
.founder__role { margin: 4px 0 0; font-size: 0.875rem; font-weight: 500; color: var(--sc-ink-soft); transition: color 250ms var(--sc-ease-out); }
.founder__words { margin: 0; color: var(--sc-ink-soft); font-size: 0.95rem; line-height: 1.6; }
.founder:hover, .founder:focus-within { background: color-mix(in oklab, var(--sc-ink) 5%, var(--card-grey)); }
.founder:hover .founder__photo img, .founder:focus-within .founder__photo img { filter: none; scale: 1.05; }
.founder:hover .founder__who h3, .founder:focus-within .founder__who h3 { color: var(--sc-accent-deep); }
.founder:hover .founder__role, .founder:focus-within .founder__role { color: var(--sc-ink); }
@media (hover: none) { .founder__photo img { filter: none; } }   /* touch: no hover, so show the colour */
@media (prefers-reduced-motion: reduce) { .founder, .founder__photo img, .founder__who h3, .founder__role { transition: none; } }
@media (max-width: 1279px) {   /* the title across the top, the two panels below */
  .founders__box { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .founders__head { grid-column: 1 / -1; }
}
@media (max-width: 860px) {   /* phones: one column, the grid's 12px; the photo small beside the name */
  .founders { padding-top: 12px; }
  .founders__box { grid-template-columns: minmax(0, 1fr); padding: 8px; gap: 8px; border-radius: 20px; }
  .founders__head { padding: 1rem 0.75rem 0.5rem; }
  .founder { display: grid; grid-template-columns: 96px minmax(0, 1fr); align-items: center; gap: 12px 14px; padding: 16px; border-radius: 14px; }
  .founder__photo { width: 96px; border-radius: 14px; }
  .founder__words { grid-column: 1 / -1; }
}

/* ------------------------------------ case studies and close, in the grid -- */
/* Haydn, 29/10/2026. Case studies: no heading; the row of cards sits in the
   page's column, 16px under Pricing, starting and ending exactly on the
   containers' edges with no fade, and pans while the page holds (site.js). .is-static (Customers,
   reduced motion): the row scrolls sideways by hand. The closing call to
   action is one dark container, with the footer's line along its foot. */
.stories { height: auto; view-timeline: none; padding-top: 16px; }
.stories > .frame { z-index: 1; padding-inline: clamp(1.25rem, 3vw, 3rem); }
.stories__view { margin: 0; overflow: clip; -webkit-mask-image: none; mask-image: none; border-radius: 20px; }
.cards { animation: none !important; padding: 0; translate: 0 0; }
.stories.is-static .stories__view { overflow-x: auto; scrollbar-width: thin; }

.close { background: none; color: inherit; padding-block: 16px; }
.close > .frame { padding-inline: clamp(1.25rem, 3vw, 3rem); }
.close__box { background: var(--dark); color: var(--dark-ink); border-radius: 24px; overflow: hidden; }
.close__inner { padding: clamp(3.5rem, 7vw, 6rem) var(--sc-gutter) clamp(2.5rem, 5vw, 4rem); }
.close .foot { background: none; border-top: 1px solid color-mix(in oklab, var(--dark-ink) 12%, transparent); margin: 0; }
@media (max-width: 860px) {
  .stories, .close { padding-top: 12px; }
  .close__box { border-radius: 20px; }
}

/* The footer (Haydn, 30/10/2026; the feel of attio.com's): inside the closing dark
   container, under its line. The logo on the left; the menu's pages in four columns
   (grey headings, light links, "Soon" for pages still to come); then a quiet row with the
   disclaimer and the copyright. Tablets: the columns go under the logo. Phones: two
   columns. */
.close .foot__top {
  display: grid; grid-template-columns: minmax(0, 0.6fr) minmax(0, 2.4fr); gap: 2.5rem;
  padding: clamp(2.5rem, 5vw, 4rem) var(--sc-gutter) clamp(2rem, 4vw, 3rem);
}
.close .foot__logo { height: 44px; width: auto; display: block; }
.foot__brand { align-self: start; justify-self: start; border-radius: 8px; }
.foot__brand:focus-visible { outline: 2px solid var(--sc-accent); outline-offset: 4px; }
.foot__cols { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 2rem 1.5rem; }
.foot__label { margin: 0 0 0.9rem; color: var(--dark-soft); font-size: 0.9rem; }
.foot__col ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.65rem; }
.foot__col a, .foot__col button {
  padding: 0; border: 0; background: none; font: inherit; font-size: 0.95rem; text-align: left;
  color: var(--dark-ink); text-decoration: none; cursor: pointer; transition: color 160ms var(--sc-ease-out);
}
.foot__col a:hover, .foot__col button:hover { color: var(--sc-accent); }
.foot__col a:focus-visible, .foot__col button:focus-visible { outline: 2px solid var(--sc-accent); outline-offset: 3px; border-radius: 4px; }
.foot__soon { display: inline-flex; align-items: center; flex-wrap: wrap; gap: 4px 0; font-size: 0.95rem; color: color-mix(in oklab, var(--dark-ink) 45%, transparent); }
.foot__soon em {
  margin-left: 0.35em; padding: 2px 7px; border-radius: 999px; font-style: normal; font-size: 0.7rem; font-weight: 500;
  color: var(--dark-soft); background: color-mix(in oklab, var(--dark-ink) 10%, transparent);
}
.close .foot__row {
  padding: 1.25rem var(--sc-gutter) 1.5rem; gap: 0.75rem 2rem; font-size: 0.82rem; color: var(--dark-soft);
  border-top: 1px solid color-mix(in oklab, var(--dark-ink) 10%, transparent);
}
@media (max-width: 1023px) {
  .close .foot__top { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 600px) {
  .foot__cols { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

/* The top bar lines up with the containers' edges (Haydn, 29/10/2026): the
   same inset from the column as every container, so the logo and the Sign
   up button sit over their outer edges instead of overhanging them. */
.bar > .frame { padding-inline: clamp(1.25rem, 3vw, 3rem); }

/* ------------------------------- how it works: dots in the window -- */
/* Haydn, 29/10/2026: the workflow window gets the dot field (the same dots
   the page used to have), only inside that window. Its boxes stay light.
   (A dark window, then dark boxes, were tried the same day and dropped.) */
.how__window {
  background-color: var(--card-grey);
  background-image: radial-gradient(circle, color-mix(in oklab, var(--sc-ink) 20%, transparent) 1px, transparent 1.4px);
  background-size: 22px 22px; background-position: center;
}

/* ------------------------------------------ how it works: dark box -- */
/* Haydn, 01/11/2026: the How it works box takes the dark theme (the closing
   box's dark), with the heading, line and step list in its light ink and the
   step on show picked out in the menu's dark grey. The workflow window inside
   stays light: its grey, dots, boxes and cards set their own colours. */
.hw { background: var(--dark); border-color: var(--dark); color: var(--dark-ink); }
.hw .how__head h2 { color: var(--dark-ink); }
.hw .how__head > p { color: var(--dark-soft); }
.hw__list li { color: color-mix(in oklab, var(--dark-ink) 45%, var(--dark)); }
.hw__list .wwd__btn:hover { background: color-mix(in oklab, var(--dark-ink) 8%, transparent); color: var(--dark-ink); }
.hw__list li.is-on .wwd__btn { background: var(--selected); color: var(--dark-ink); }
.hw__list li.is-on .wwd__num { color: var(--sc-accent); }

/* ------------------------------------------ friends and partners -- */
/* Haydn, 01/11/2026: under the title (as on Customers), one light container
   per partner, its parts split by fine lines: the quote and the logo side
   by side, our statement about them across the foot. Each partner after
   the first has its logo on the left. Stacked on phones. */
.partners { position: relative; padding-top: 16px; }
.partners > .frame { padding-inline: clamp(1.25rem, 3vw, 3rem); }
.partner + .partner { margin-top: 16px; }
.partner {
  display: grid; grid-template-columns: minmax(0, 1fr) clamp(280px, 25vw, 400px);
  background: var(--sc-surface); color: var(--sc-ink); border: 1px solid var(--line-strong); border-radius: 24px; overflow: hidden;
}
.partner > * { padding: clamp(2rem, 4vw, 3.5rem); }
.partner__quote { display: flex; flex-direction: column; gap: 2.5rem; min-height: clamp(320px, 40vh, 440px); }
.partner__quote .card__quote { font-size: clamp(1.6rem, 1.05rem + 1.5vw, 2.6rem); line-height: 1.22; max-width: 32ch; }
.partner__logo { display: flex; flex-direction: column; gap: 2rem; border-left: 1px solid var(--line-strong); }
.partner__logo img { width: min(70%, 220px); height: auto; margin: auto; }
.partner__logo .card__body { margin-top: 0; }
.partner__about { grid-column: 1 / -1; border-top: 1px solid var(--line-strong); }
.partner:nth-of-type(even) .partner__logo { order: -1; border-left: 0; border-right: 1px solid var(--line-strong); }
.partner:nth-of-type(even) { grid-template-columns: clamp(280px, 25vw, 400px) minmax(0, 1fr); }
.partner__about h2 { font-family: var(--sc-font-display); font-weight: 500; font-size: clamp(1.4rem, 1.05rem + 0.9vw, 1.8rem); line-height: 1.15; letter-spacing: -0.015em; margin: 0; color: var(--sc-ink); }
.partner__about p { color: var(--sc-ink-soft); font-size: 1.1rem; line-height: 1.6; margin: 0.75rem 0 0; max-width: 46rem; }
@media (max-width: 860px) {
  .partners { padding-top: 12px; }
  .partner + .partner { margin-top: 12px; }
  .partner, .partner:nth-of-type(even) { grid-template-columns: minmax(0, 1fr); border-radius: 20px; }
  .partner > * { padding: 1.75rem 1.5rem; }
  .partner__quote { min-height: 0; }
  .partner__logo, .partner:nth-of-type(even) .partner__logo { order: 0; border: 0; border-top: 1px solid var(--line-strong); }
  .partner__logo img { margin: 0.5rem auto; }
}

/* ---------------------------------------- our story: one container -- */
/* Haydn, 29/10/2026, the widget grid on the other pages: Our story is one
   white container, 16px under the top bar's space and 16px above the
   closing block. Left: Emma's story. Right: the team photos and the list
   (unchanged inside), centred beside the story, on the same white (Haydn:
   no second colour here). */
.story { padding-block: calc(var(--bar-h) + 16px) 0; }
.story__frame { display: block; padding-inline: clamp(1.25rem, 3vw, 3rem); }
.story__box {
  display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); align-items: stretch;
  background: var(--sc-surface); border: 1px solid var(--line-strong); border-radius: 24px; overflow: hidden;
}
.story__box .story__text { padding: clamp(2rem, 4vw, 3.5rem); }
.story__window { padding: clamp(2rem, 4vw, 3.5rem); display: grid; align-content: center; }   /* the team sits in the middle, beside the story */
@media (max-width: 860px) {
  .story { padding-top: calc(var(--bar-h) + 12px); }
  .story__box { grid-template-columns: minmax(0, 1fr); border-radius: 20px; }
  .story__box .story__text { padding: 1.5rem 1.25rem 0.5rem; }
  .story__window { padding: 0.5rem 1.25rem 1.5rem; }
}

/* ------------------------------------------ help centre: containers -- */
/* Haydn, 29/10/2026, the widget grid on the other pages: every help page
   is three white containers, 16px apart and in line with the top bar's
   edges: the section tabs across the top, the topics menu on the left
   (still sticky while you read), and the article. Only the look changes;
   the pages are still built from Notion by tools/build-help.py. Scoped to
   .help: Updates posts and Changelog entries reuse .help__body for their
   text styles only. */
.help { padding-block: calc(var(--bar-h) + 16px) 0; }
.help__frame { padding-inline: clamp(1.25rem, 3vw, 3rem); }
.help__tabs {
  margin-bottom: 16px; padding: 6px; align-items: center;
  background: var(--sc-surface); border: 1px solid var(--line-strong); border-radius: 20px;
}
@media (min-width: 861px) { .help__layout { grid-template-columns: 280px minmax(0, 1fr); column-gap: 16px; } }   /* phones keep their one column */
.help__body .help__version { margin: 1.5rem 0 0; font-size: 0.8rem; color: var(--sc-ink-soft); }   /* now the last line of the article */
.help__nav {
  top: calc(var(--bar-h) + 16px); max-height: calc(100vh - var(--bar-h) - 32px);
  background: var(--sc-surface); border: 1px solid var(--line-strong); border-radius: 24px;
  padding: 1.25rem 1rem;
}
.help .help__body {
  max-width: none; min-width: 0;
  background: var(--sc-surface); border: 1px solid var(--line-strong); border-radius: 24px;
  padding: clamp(1.75rem, 4vw, 3.5rem);
}
.help .help__body > * { max-width: 44rem; }   /* the article keeps a readable line length inside its container */
.help .help__body > .cmp__wrap--help, .help .help__body > .help__table, .help .help__body > .help__cols { max-width: none; }
/* Pictures: 39rem wide at most, centred (set here, not left to the browser's default figure margins, so the portal's
   copy matches exactly; on phones they now use the full width; Haydn, 11/11/2026). */
.help .help__body > figure { margin: 1em auto; max-width: 39rem; }
/* More tabs than fit (help.js tabs(); Haydn, 12/11/2026): a soft fade and a round arrow at whichever end has more. */
.help__tabsbox { position: relative; margin-bottom: 16px; }
.help__tabsbox > .help__tabs { margin-bottom: 0; }
.help__tabsbox::before, .help__tabsbox::after {
  content: ""; position: absolute; top: 1px; bottom: 1px; width: 76px; pointer-events: none; z-index: 1;
  opacity: 0; transition: opacity 160ms var(--sc-ease-out);
}
.help__tabsbox::before { left: 1px; border-radius: 19px 0 0 19px; background: linear-gradient(to left, transparent, var(--sc-surface) 55%); }
.help__tabsbox::after { right: 1px; border-radius: 0 19px 19px 0; background: linear-gradient(to right, transparent, var(--sc-surface) 55%); }
.help__tabsbox.is-more-left::before, .help__tabsbox.is-more-right::after { opacity: 1; }
.help__more {
  position: absolute; top: 50%; translate: 0 -50%; z-index: 2; width: 32px; height: 32px; border-radius: 999px;
  display: grid; place-items: center; cursor: pointer; padding: 0;
  background: var(--sc-surface); color: var(--sc-ink); border: 1px solid var(--line-strong);
  transition: background-color 160ms var(--sc-ease-out);
}
.help__more:hover { background: var(--field); }
.help__more[hidden] { display: none; }
.help__more--left { left: 8px; }
.help__more--right { right: 8px; }
/* The topic's title takes focus after moving between topics, so screen readers announce it; no ring for that
   (Safari and Chrome drew an orange one; Haydn, 12/11/2026). */
.help h1[tabindex="-1"]:focus { outline: none; }
@media (max-width: 860px) {   /* where the help layout stacks */
  .help { padding-top: calc(var(--bar-h) + 12px); }
  .help__tabs { margin-bottom: 12px; border-radius: 16px; }
  .help__tabsbox { margin-bottom: 12px; }
  .help__tabsbox::before { border-radius: 15px 0 0 15px; }
  .help__tabsbox::after { border-radius: 0 15px 15px 0; }
  .help__nav { margin-bottom: 12px; border-radius: 20px; padding: 0.75rem; }
  .help .help__body { border-radius: 20px; padding: 1.5rem 1.25rem; }
}

/* ------------------------------------------ titles blur into view -- */
/* Haydn, 29/10/2026: the Workflows page's word effect (each word fades up
   out of a blur) on the hero title, "The work, in numbers" and the
   testimonial. The two titles play on their own, word after word
   (site.js: .bw, --bw-i, .is-on); the testimonial's words follow your
   scroll while the page holds, as its old lighting-up did (.w.is-lit),
   with "in a league of their own" still finishing in orange. */
.blur-words .bw {
  display: inline-block; opacity: 0; filter: blur(10px); translate: 0 0.12em;
  transition: opacity 600ms ease, filter 600ms ease, translate 600ms ease;
  transition-delay: calc(var(--bw-i, 0) * 90ms);
}
.blur-words.is-on .bw { opacity: 1; filter: none; translate: 0 0; }
.quote .w {
  display: inline-block; color: var(--dark-ink);
  opacity: 0; filter: blur(10px); translate: 0 0.12em;
  transition: opacity 600ms ease, filter 600ms ease, translate 600ms ease, color 300ms ease;
}
.quote .w.is-lit { opacity: 1; filter: none; translate: 0 0; }
/* The name and firm fade in the same way once the quote is fully lit, a touch quicker
   than the words (Haydn, 30/10/2026; .is-said from site.js). */
.quote figcaption {
  opacity: 0; filter: blur(8px); translate: 0 0.3em;
  transition: opacity 400ms ease 150ms, filter 400ms ease 150ms, translate 400ms ease 150ms;
}
.quote.is-said figcaption { opacity: 1; filter: none; translate: 0 0; }
@media (prefers-reduced-motion: reduce) {
  .blur-words .bw, .quote .w, .quote figcaption { transition: none; }
}

/* ------------------------------- updates and changelog: containers -- */
/* Haydn, 29/10/2026, the widget grid on the other pages.
   An update: two white containers at the site's full width, 16px apart: the
   head (back link, tag and date, title) and the post, whose cover picture
   runs the full width while its text keeps the narrow reading column.
   The changelog: the title (with the filters) is one container and each
   entry is its own, 16px apart; an entry keeps its name, date and tags
   beside the notes. Both are built from Notion; only the look changes. */
.upd--post, .cl { padding-block: calc(var(--bar-h) + 16px) 0; }
.upd__frame { padding-inline: clamp(1.25rem, 3vw, 3rem); }
.post { max-width: none; }
.post__head, .post__card { border: 1px solid var(--line-strong); border-radius: 24px; }
.post__head { margin-bottom: 16px; padding: clamp(1.75rem, 4vw, 3rem); }
/* The narrow reading column, centred in the full-width containers. These
   need the extra .post to beat the text styles' own margins. */
.post .post__head > *, .post .post__body > * { max-width: 44rem; margin-left: auto; margin-right: auto; }
.post .post__back { display: flex; width: 100%; }
.post__cover { aspect-ratio: 2 / 1; }
.post .post__body { max-width: none; padding: clamp(1.75rem, 4vw, 3.5rem) clamp(1.25rem, 4vw, 3rem); }   /* the full card width (the help text styles cap it at 44rem) */

.cl .upd__head {
  margin: 0 0 16px; padding: clamp(1.75rem, 4vw, 3rem);
  background: var(--sc-surface); border: 1px solid var(--line-strong); border-radius: 24px;
}
.cl .upd__head h1 { margin-bottom: 0; }
.cl .upd__filters { margin: 1.25rem 0 0; }
.cl .upd__empty { margin: 0; padding: clamp(1.75rem, 4vw, 3rem); background: var(--sc-surface); border: 1px solid var(--line-strong); border-radius: 24px; }
.cl__list { margin: 0; display: grid; gap: 16px; }
.cl__entry {
  padding: clamp(1.75rem, 4vw, 3rem); border-top: 0;
  background: var(--sc-surface); border: 1px solid var(--line-strong); border-radius: 24px;
}
.cl__entry::before { display: none; }
.cl__side { top: calc(var(--bar-h) + 16px); }
@media (max-width: 860px) {
  .upd--post, .cl { padding-top: calc(var(--bar-h) + 12px); }
  .post__head { margin-bottom: 12px; }
  .cl .upd__head { margin-bottom: 12px; }
  .cl__list { gap: 12px; }
  .post__head, .post__card, .cl .upd__head, .cl__entry, .cl .upd__empty { border-radius: 20px; }
  .cl__entry { padding: 1.5rem 1.25rem; }
}

/* ------------------------------------------------------------ roadmap -- */
/* Haydn, 01/11/2026 (the idea from a public roadmap board, drawn our own way):
   the changelog's title container (with the sort buttons), then three white
   containers side by side, Now, Next and Later, each with its features as
   grey cards; Shipped sits in its own container underneath. Each card has an
   "I'm interested" button with the count; pressed, it turns the accent tint.
   Phones show one column at a time, picked by tabs (roadmap.js). */
.rm__lede { margin: 0.9rem 0 0; max-width: 40rem; color: var(--sc-ink-soft); line-height: 1.6; }
.rm .upd__filters[hidden], .rm__tabs[hidden] { display: none; }
.rm__tabs { display: none; }
.rm__cols { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; align-items: start; }
.rm__col, .rm__shipped { background: var(--sc-surface); border: 1px solid var(--line-strong); border-radius: 24px; padding: clamp(1.25rem, 2.5vw, 1.75rem); }
.rm__head { margin-bottom: 1rem; }
.rm__head h2 { display: flex; align-items: center; gap: 0.5rem; margin: 0; font-family: var(--sc-font-display); font-weight: 500; font-size: 1.2rem; letter-spacing: -0.01em; }
.rm__head p { margin: 0.25rem 0 0; font-size: 0.85rem; color: var(--sc-ink-soft); }
.rm__dot { width: 9px; height: 9px; border-radius: 50%; background: var(--sc-ink-soft); }
.rm__col[data-stage="Now"] .rm__dot { background: var(--sc-accent); }
.rm__col[data-stage="Next"] .rm__dot { background: var(--sc-ink); }
.rm__n { font-family: var(--sc-font-text); font-size: 0.75rem; font-weight: 500; color: var(--sc-ink-soft); padding: 0.2em 0.6em; border-radius: 999px; background: var(--field); }
.rm__list { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.rm__card { background: var(--card-grey); border: 1px solid var(--line); border-radius: 16px; padding: 1rem 1.1rem; }
.rm__card h3 { margin: 0; font-family: var(--sc-font-display); font-weight: 500; font-size: 1.02rem; line-height: 1.3; letter-spacing: -0.01em; }
.rm__card > p { margin: 0.4rem 0 0; font-size: 0.9rem; line-height: 1.55; color: var(--sc-ink-soft); }
.rm__foot { display: flex; align-items: center; justify-content: space-between; gap: 0.75rem; margin-top: 0.9rem; }
.rm__vote {
  flex: none; display: inline-flex; align-items: center; gap: 0.4rem; padding: 0.45em 0.8em; border-radius: 999px;
  font: 500 0.8rem/1 var(--sc-font-text); color: var(--sc-ink); background: var(--sc-surface); border: 1px solid var(--line-strong);
  cursor: pointer; transition: background-color 160ms var(--sc-ease-out), border-color 160ms var(--sc-ease-out), color 160ms var(--sc-ease-out);
}
.rm__vote:hover { border-color: var(--sc-ink-soft); }
.rm__vote[aria-pressed="true"] { background: var(--tint); border-color: var(--sc-accent); color: var(--sc-accent-deep); }
.rm__count { font-variant-numeric: tabular-nums; }
.rm__word { color: var(--sc-ink-soft); }
.rm__vote[aria-pressed="true"] .rm__word { color: inherit; }
.rm__none { margin: 0; font-size: 0.9rem; color: var(--sc-ink-soft); }
.rm__shipped { margin-top: 16px; }
.rm__shipped h2 { margin: 0 0 0.75rem; font-family: var(--sc-font-display); font-weight: 500; font-size: 1.2rem; letter-spacing: -0.01em; }
.rm__shipped ul { list-style: none; margin: 0; padding: 0; }
.rm__shipped li { display: flex; flex-wrap: wrap; align-items: center; gap: 0.5rem 0.75rem; padding: 0.8rem 0; border-top: 1px solid var(--line); }
.rm__shipped li b { font-weight: 500; }
.rm__shipped a { margin-left: auto; font-size: 0.9rem; color: var(--sc-accent-deep); }
.rm__tick { color: var(--done-ink); }
.rm .upd__empty { margin: 0; padding: clamp(1.75rem, 4vw, 3rem); background: var(--sc-surface); border: 1px solid var(--line-strong); border-radius: 24px; }
@media (max-width: 860px) {
  .rm__tabs:not([hidden]) { display: flex; gap: 6px; margin: 0 0 12px; }
  .rm__tabs .upd__chip[aria-selected="true"] { background: var(--sc-ink); color: var(--on-accent); }
  .rm__cols { grid-template-columns: minmax(0, 1fr); gap: 12px; }
  .rm__board[data-tab="Now"] .rm__col:not([data-stage="Now"]),
  .rm__board[data-tab="Next"] .rm__col:not([data-stage="Next"]),
  .rm__board[data-tab="Later"] .rm__col:not([data-stage="Later"]) { display: none; }
  .rm__col, .rm__shipped, .rm .upd__empty { border-radius: 20px; }
  .rm__shipped { margin-top: 12px; }
  .rm__shipped a { margin-left: 0; }
}
@media (prefers-reduced-motion: reduce) { .rm__vote { transition: none; } }

/* On a short help page the section already fills the screen (main is a
   flex column); the article's container now stretches with it, down to
   16px above the closing block, so the grid stays tidy. The topics menu
   keeps its own height (Haydn, 29/10/2026). */
.help { display: flex; flex-direction: column; }
.help__frame { flex: 1 0 auto; display: flex; flex-direction: column; width: min(100% - 2 * var(--sc-gutter), var(--frame)); }
.help__layout { flex: 1 0 auto; }
.help .help__body { align-self: stretch; }

/* ------------------------------ what we do: an accordion of services -- */
/* Haydn, 29/10/2026, after 21st.dev's "Interactive image accordion": no
   scroll effect. Left: the heading. Right: one narrow panel per service,
   its number and name standing up; the open panel grows wide to show the
   description and the sample case (site.js: .is-open on hover, focus or
   tap). Phones keep the list (.is-static). */
@media (min-width: 861px) { .wwd { grid-template-columns: minmax(0, 380px) minmax(0, 1fr); } }   /* phones keep one column; 300px until 10/11/2026, wider for the sentence heading (460px squeezed the open panel) */
.wwd:not(.is-static) .stack {
  display: flex; gap: 10px; margin: 10px; padding: 0; background: none; overflow: visible; border-radius: 0;
}
.wwd:not(.is-static) .stack__card {
  position: relative; inset: auto; translate: none; scale: 1; opacity: 1;
  flex: 0 0 64px; min-width: 0; overflow: hidden; cursor: pointer;
  background: var(--card-grey); border-radius: 18px; padding: clamp(1.25rem, 2vw, 1.75rem);
  transition: flex-grow 600ms var(--sc-ease-out), background-color 300ms var(--sc-ease-out);
}
.wwd:not(.is-static) .stack__card:hover:not(.is-open) { background: color-mix(in oklab, var(--sc-ink) 9%, var(--card-grey)); }
.wwd:not(.is-static) .stack__card.is-open { flex-grow: 1; cursor: default; }
.wwd:not(.is-static) .stack__card:focus-visible { outline: 2px solid var(--sc-accent); outline-offset: 2px; }
/* Closed: only the standing label. */
.stack__label {
  position: absolute; left: 50%; bottom: 1.5rem; translate: -50% 0;
  writing-mode: vertical-rl; rotate: 180deg; white-space: nowrap;
  font-size: 0.95rem; font-weight: 500; color: var(--sc-ink);
  display: flex; align-items: center; gap: 0.75rem;
  transition: opacity 250ms var(--sc-ease-out);
}
.stack__label b { font-weight: 500; font-size: 0.8rem; color: var(--sc-accent-deep); }
.wwd:not(.is-static) .stack__text,
.wwd:not(.is-static) .stack__case { min-width: 30rem; opacity: 0; transition: opacity 180ms var(--sc-ease-out); }
/* Open: the label goes and the content fades in while the panel opens
   (Haydn: not only once it's fully open), the text first, then the case. */
.wwd:not(.is-static) .stack__card.is-open .stack__label { opacity: 0; }
.wwd:not(.is-static) .stack__card.is-open .stack__text,
.wwd:not(.is-static) .stack__card.is-open .stack__case { opacity: 1; transition: opacity 500ms var(--sc-ease-out) 60ms; }   /* a plain fade, nothing moves (Haydn) */
.wwd:not(.is-static) .stack__card.is-open .stack__case { transition-delay: 160ms; }
/* Nothing reflows while a panel opens (Haydn, 30/10/2026): the text and the case are laid
   out at the open panel's full width from the start (the row's width less the three
   closed 64px panels, the three 10px gaps and the panel's own padding), and the panel
   simply reveals them as it widens. */
.wwd:not(.is-static):not(.is-cycle) .stack { container-type: inline-size; }
.wwd:not(.is-static):not(.is-cycle) .stack__text,
.wwd:not(.is-static):not(.is-cycle) .stack__case { min-width: 0; width: calc(100cqw - 3 * 64px - 3 * 10px - 2 * clamp(1.25rem, 2vw, 1.75rem)); flex: none; }
.wwd.is-static .stack__label { display: none; }
@media (prefers-reduced-motion: reduce) {
  .wwd .stack__card, .wwd .stack__text, .wwd .stack__case, .stack__label { transition: none !important; }
}

/* --------------------------------- how it works: plays itself -- */
/* A thin line split into five along the top of the workflow window: the
   step on show fills its segment over --dwell, then the next step comes
   (site.js). Paused while pointed at or off screen. */
.how__window { grid-template-rows: auto minmax(0, 1fr) auto; }
.how__segs { display: flex; gap: 6px; margin: 0 clamp(1.25rem, 2.5vw, 2rem); }
.how__segs i { flex: 1; height: 3px; border-radius: 3px; overflow: hidden; position: relative; background: color-mix(in oklab, var(--sc-ink) 12%, transparent); }
.how__segs b { position: absolute; inset: 0; background: #373a3b; transform-origin: left center; transform: scaleX(0); }
.how__segs i.is-done b { transform: scaleX(1); }
.how__segs i.is-now b { animation: how-seg var(--dwell, 4200ms) linear forwards; }
.how__segs.is-paused i.is-now b, .how__segs.is-off i.is-now b { animation-play-state: paused; }
@keyframes how-seg { to { transform: scaleX(1); } }
@media (prefers-reduced-motion: reduce) { .how__segs { display: none; } }

/* What we do is light again (Haydn, 30/10/2026; dark from 29/10/2026): the
   white container with the light grey service panels, like How it works. */

/* What we do's thin line (Haydn, 29/10/2026): How it works' segments, one
   per service, at the foot of the heading column, in How it works' colours.
   .is-held: paused while pointed at. Hidden on phones. */
.wwd__segs { margin: auto 0 0; }
.how__segs.is-held i.is-now b { animation-play-state: paused; }
.wwd.is-static .wwd__segs { display: none; }

/* ------------------------------------------- customers: client rows -- */
/* Haydn, 29/10/2026, the widget grid on Customers: the title is its own
   white container, then the logo strip, then one row per client. The
   image card keeps its width (--card-w) and the quote card takes the rest
   of the row, in a bigger serif. Each row swaps sides from the one above.
   The builder marks this page's title .page-head--box; the homepage's
   case studies are untouched (they pan in a row there). */
.page-head--box { padding-top: calc(var(--bar-h) + 16px); }
.page-head--box > .frame { padding: 0 clamp(1.25rem, 3vw, 3rem); }
.page-head__box {
  padding: clamp(2.5rem, 6vw, 5rem) clamp(1.5rem, 4vw, 3.5rem);
  background: var(--sc-surface); border: 1px solid var(--line-strong); border-radius: 24px;
}
.page-head--box ~ .clients { padding-top: 16px; }

main:has(.page-head--box) .stories__view { overflow: visible; border-radius: 0; }
main:has(.page-head--box) .cards {
  display: grid; width: auto; gap: 16px; grid-auto-flow: row dense;
  grid-template-columns: var(--card-w) minmax(0, 1fr) var(--card-w);
}
main:has(.page-head--box) .card { width: auto; }
/* Rows 1, 3…: quote left, image right. Rows 2, 4…: image left, quote right. */
main:has(.page-head--box) .card:nth-child(4n+1) { grid-column: 1 / 3; }
main:has(.page-head--box) .card:nth-child(4n+2) { grid-column: 3 / 4; }
main:has(.page-head--box) .card:nth-child(4n+3) { grid-column: 2 / 4; }
main:has(.page-head--box) .card:nth-child(4n+4) { grid-column: 1 / 2; }
main:has(.page-head--box) .card--quote { padding: clamp(2rem, 4vw, 3.5rem); }
main:has(.page-head--box) .card--quote .card__quote { font-size: clamp(1.6rem, 1.05rem + 1.5vw, 2.6rem); line-height: 1.22; max-width: 32ch; }
@media (max-width: 860px) {
  .page-head--box { padding-top: calc(var(--bar-h) + 12px); }
  .page-head__box { border-radius: 20px; padding: 2rem 1.25rem; }
  .page-head--box ~ .clients { padding-top: 12px; }
  main:has(.page-head--box) .cards { grid-template-columns: minmax(0, 1fr); gap: 12px; }
  main:has(.page-head--box) .card { grid-column: 1 / -1 !important; }
  main:has(.page-head--box) .card--quote { height: auto; min-height: 0; padding: 1.75rem 1.5rem; }
  main:has(.page-head--box) .card--quote .card__quote { margin-bottom: 2rem; }
}

/* --------------------------- what we do: one at a time when narrow -- */
/* Haydn, 29/10/2026: below 1280px the accordion has no room (the open
   panel was crushed), and stacking every service on phones made a long
   list. So there (.is-cycle, site.js) one service shows at a time and
   they take turns, like How it works: the segments fill, the next fades
   in. All four sit in the same spot, so the box is as tall as the tallest
   and nothing jumps when they change. */
.wwd.is-cycle { height: auto; min-height: var(--box-h, 0); }
.wwd.is-cycle .stack { display: grid; margin: 10px; padding: 0; background: none; overflow: visible; border-radius: 0; }
.wwd.is-cycle .stack__card {
  grid-area: 1 / 1; position: relative; inset: auto; translate: none; scale: 1;
  cursor: default; opacity: 0; visibility: hidden;
  background: var(--card-grey); border-radius: 18px; padding: clamp(1.25rem, 2.6vw, 2.25rem);
  transition: opacity 500ms var(--sc-ease-out), visibility 0s linear 500ms;
}
.wwd.is-cycle .stack__card.is-open { opacity: 1; visibility: visible; transition: opacity 500ms var(--sc-ease-out); }
.wwd.is-cycle .stack__text, .wwd.is-cycle .stack__case { min-width: 0; opacity: 1; transition: none; }
.wwd.is-cycle .stack__label { display: none; }
@media (max-width: 860px) {
  .wwd.is-cycle .wwd__segs { margin-top: 1.25rem; }
  .wwd.is-cycle .stack__card { padding: 1.25rem; border-radius: 16px; }
}
/* Small tablets: the heading over the card, as on phones, so the card gets
   the full width instead of a squeezed column beside the heading. */
@media (min-width: 861px) and (max-width: 1023px) {
  .wwd.is-cycle { grid-template-columns: minmax(0, 1fr); min-height: 0; }
  .wwd.is-cycle .wwd__head { padding-bottom: 0.5rem; }
  .wwd.is-cycle .wwd__segs { margin-top: 1.5rem; }
}

/* How it works had its heading on the left for a day; the workflow is back on the left
   (Haydn, 30/10/2026). */

/* How it works on small tablets (Haydn, 29/10/2026): beside the heading the
   workflow window was squeezed, so up to 1023px it stacks as on phones,
   the heading over the window, and each card names its step. */
@media (min-width: 861px) and (max-width: 1023px) {
  .hw { grid-template-columns: minmax(0, 1fr); height: auto; }
  .how__window { order: 2; height: min(32rem, calc(100svh - var(--bar-h) - 32px)); }
  .hw .how__head { order: 1; padding-bottom: 1.25rem; }
  .hw__list { display: none; }
  .how__window .step-card__body::before { content: attr(data-name); display: block; margin-bottom: 6px; font-size: 0.8rem; font-weight: 500; color: var(--sc-ink-soft); white-space: pre-wrap; }
}

/* Loader (Haydn, 03/11/2026): the portal's loading animation (work-request-forms, components/ui.tsx Loader), used
   wherever something on the site is still loading: a square that turns and morphs into a circle and back, in the
   accent orange. With reduced motion it just breathes. Markup:
   <div class="loader" role="status"><span class="loader__shape" aria-hidden="true"></span><span>Loading…</span></div>
   (add loader--sm for a small one). help.js and roadmap.js build it with the same markup. */
.loader { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 12px; padding: 56px 0; color: var(--sc-ink-soft); font-size: 14px; text-align: center; }
.loader__shape { display: block; width: 32px; height: 32px; background: var(--sc-accent); animation: rfp-morph 1.6s cubic-bezier(0.65, 0, 0.35, 1) infinite; }
.loader--sm { padding: 16px 0; font-size: 12px; }
.loader--sm .loader__shape { width: 16px; height: 16px; }
@keyframes rfp-morph {
  0% { border-radius: 22%; transform: rotate(0deg) scale(1); }
  25% { border-radius: 50%; transform: rotate(90deg) scale(0.72); }
  50% { border-radius: 22%; transform: rotate(180deg) scale(1); }
  75% { border-radius: 50%; transform: rotate(270deg) scale(0.72); }
  100% { border-radius: 22%; transform: rotate(360deg) scale(1); }
}
@keyframes rfp-breathe { 50% { opacity: 0.45; } }
@media (prefers-reduced-motion: reduce) {
  .loader__shape { border-radius: 22%; animation: rfp-breathe 1.6s ease-in-out infinite; }
}

/* ------------------------------------------------------- testimonials -- */
/* The homepage's testimonial grid (Haydn, 14/11/2026), copied from the landing page (landing/demo-b/landing.css,
   .quotes): four columns of mixed sizes whose rows line up (wide quotes span two; the rows are planned by the script in
   index.html), all dark cards, nine at first and "Load more" for the rest. Named "voice" because .quote is the pinned
   testimonial's. Added here: a firm's logo beside a card's label, or a photo across a card's top. */
.voices { position: relative; padding-top: 16px; }
.voices > .frame { position: relative; z-index: 1; padding-inline: clamp(1.25rem, 3vw, 3rem); }
.voices__grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); grid-auto-flow: row; gap: 16px; overflow: hidden; }
.voice { margin: 0; border-radius: 24px; padding: clamp(1.5rem, 2.5vw, 2.25rem); display: flex; flex-direction: column; gap: 1rem; background: var(--dark); color: var(--dark-ink); overflow: hidden; }
.voice--wide { grid-column: span 2; }
.voice__label { margin: 0; font-size: 0.75rem; font-weight: 500; letter-spacing: 0.18em; text-transform: uppercase; color: var(--dark-soft); }
.voice blockquote { margin: 0; flex: 1; }
.voice blockquote p { margin: 0; font-size: 1.05rem; line-height: 1.5; }
.voice--big blockquote p { font-size: clamp(1.4rem, 1.1rem + 0.9vw, 1.85rem); line-height: 1.2; letter-spacing: -0.015em; font-weight: 500; }
.voice .accent { color: var(--sc-accent); }
.voice figcaption { font-size: 0.8125rem; line-height: 1.4; color: var(--dark-soft); }
.voice figcaption b { display: block; color: var(--dark-ink); font-weight: 500; }
.voice { transition: opacity 500ms ease calc(var(--n, 0) * 70ms), translate 600ms cubic-bezier(0.22, 1, 0.36, 1) calc(var(--n, 0) * 70ms); }
.voice.is-arriving { opacity: 0; translate: 0 16px; transition: none; }
.voice:focus { outline: none; }
.voice[hidden] { display: none; }
.voices__more { display: flex; justify-content: center; margin-top: 16px; }
.voices__more[hidden] { display: none; }
.btn--dark { background: var(--dark); color: var(--dark-ink); border: 0; cursor: pointer; box-shadow: none; }
.btn--dark:hover { background: color-mix(in oklab, var(--dark) 85%, #fff); }
@media (max-width: 1100px) { .voices__grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 640px) { .voices__grid { grid-template-columns: minmax(0, 1fr); } .voice--wide { grid-column: auto; } .voice { border-radius: 20px; padding: 1.25rem; } }
@media (prefers-reduced-motion: reduce) { .voice { transition: none; } }
/* Photo cards (Haydn, 14/11/2026): a quote card whose background is a photo of the people who said it, darkened
   towards the foot so the words sit on it. The quote, name and label move to the foot. Never a wide card: the row
   script keeps pictures to one column, and logos alone (without a quote) were tried and dropped. */
.voice--image { position: relative; isolation: isolate; justify-content: flex-end; min-height: 22rem; }
.voice--image blockquote { flex: none; }
.voice--image.voice--big blockquote p { font-size: clamp(1.15rem, 1rem + 0.4vw, 1.35rem); line-height: 1.3; }   /* smaller, so the people stay in view */
.voice__img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -1; }
.voice--image::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(to top, rgb(0 0 0 / 0.82), rgb(0 0 0 / 0.5) 45%, rgb(0 0 0 / 0.05) 75%); }
.voice--image .voice__label, .voice--image figcaption { color: rgb(255 255 255 / 0.8); }
.voice--image blockquote p, .voice--image figcaption b { color: #fff; }

/* ---------------------------------------------------------- dark mode -- */
/* Dark mode (trial, Haydn 20/11/2026): the brand guide's section 9, as in the portal. It follows the device's light or
   dark setting; the footer's Appearance icons pick Device, Light or Dark (remembered in the browser; site.js). Set on
   <html data-theme> before the page draws (the script in index.html's head).
   Layers (Haydn, 20-21/11/2026): the page, cards a step up, panels inside them another step, and the brightest grey kept
   for the figures, the testimonials (the quote near the top and the cards near the bottom) and the close. Nothing goes
   brighter than that, and no white. The values are the --dm-* names below. */
/* The dark shades, as names (Haydn, 21/11/2026; brand README section 9, tokens --rfp-dm-*): the neutral range built
   up from the LinkedIn banners' grey, chosen after comparing six ranges. */
html[data-theme="dark"] {
  --dm-page: #1c1e1f; --dm-card: #232526; --dm-panel: #2a2c2d; --dm-inner: #2d2f30; --dm-top: #303233; --dm-selected: #414344;
  --dm-lit-light: #222425; --dm-lit-dark: #121415;   /* the lit page's corners (below) */
}
html[data-theme="dark"] {
  color-scheme: dark;
  --sc-canvas: var(--dm-page);   /* just off black, with the faintest warmth (Haydn, 20/11/2026: pure black was slightly too dark) */
  --sc-surface: var(--dm-card);
  --sc-ink: #fbf9f2;
  --sc-ink-soft: #b9bdbf;
  --sc-accent-ink: #fbf9f2;
  --sc-shadow-color: 0 0% 0%;
  --sc-accent-deep: color-mix(in oklab, #d47500, white 25%);
  --tint: color-mix(in oklab, var(--sc-accent) 22%, var(--dm-panel));
  --field: var(--dm-panel);
  --card-grey: var(--dm-panel);
  --dark: var(--dm-top);   /* the light-mode dark elements (the close, how it works, dark buttons): the brightest grey */
  --done-bg: color-mix(in oklab, #4f9d5d 28%, var(--dm-card));
  --done-ink: #a6d8ae;
  --selected: var(--dm-selected);   /* the current tab or pill: just above the brightest grey, for small pills only */
  --error: #f0a59e;
  --row-added: color-mix(in oklab, var(--dm-inner), var(--dm-top));
}
/* Lit page (Haydn, 21/11/2026; brand README section 9): a flat dark page looks like a void, so the page shades very slightly from the top
   left (a touch lighter, as if lit) to the bottom right (darker), about 16 steps in all (made stronger, 21/11/2026), with a trace of grain so
   the shading never shows as stripes. It is fixed to the window, so the lit corner stays put while the page scrolls, and
   the full-width sections that paint the page colour use the same fixed shading, so no seams. The lightest corner stays
   below the card grey, so cards still sit above the page. Screens with a mouse only: phones and tablets ignore fixed
   backgrounds, which would leave seams between sections, so they keep the flat page. */
@media (hover: hover) and (pointer: fine) {
  html[data-theme="dark"] {
    --dm-grain: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 1 0 0 0 0 1 0 0 0 0 1 0 0 0 0.045 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
    --dm-lit: var(--dm-grain) fixed, linear-gradient(115deg, var(--dm-lit-light) 0%, var(--dm-page) 40%, var(--dm-lit-dark) 100%) fixed;
  }
  html[data-theme="dark"] :is(body, .bar:not(.bar--dark), .hero__stage, .clients .frame, .how, .gen .sc-stage) { background: var(--dm-lit); }
}
/* The figures and the testimonials: featured (Haydn, 21-22/11/2026, after trying an orange edge and jet black; brand README section 9). In
   light mode they stand out as dark blocks on the cream page; here they're a lighter grey (--dm-feature), a step above
   the top grey, so they stand out from the cards without being bright slabs or white. Things inside them are never
   darker than the feature grey. */
html[data-theme="dark"] { --dm-feature: #3a3c3d; }
html[data-theme="dark"] .testimonial__box,
html[data-theme="dark"] .testimonial .sc-stage,
html[data-theme="dark"] .metric,
html[data-theme="dark"] .voice:not(.voice--image) { --dark: var(--dm-feature); }
/* Containers within containers (Haydn, 20/11/2026): in dark mode, as in light mode, whatever sits inside something is
   never darker than it, background to foreground, dark to light, up to the CTA grey (#1b1e1f). */
html[data-theme="dark"] .hw { --dark: var(--dm-card); }                        /* We automate: frame, then window, then steps */
html[data-theme="dark"] .how__window { --sc-surface: var(--dm-top); }        /* cards inside a grey window */
html[data-theme="dark"] .stack__card { --sc-surface: var(--dm-inner); }         /* We take the admin: window, case card, */
html[data-theme="dark"] .stack__card .case { --field: var(--dm-top); --card-grey: var(--dm-top); }   /* then its status and note */
html[data-theme="dark"] .pricing .pc__window { --surface: var(--dm-inner); --bg: var(--dm-panel); }   /* calculator: window, list, chips */
html[data-theme="dark"] .pricing .pkg,
html[data-theme="dark"] .pricing .row.is-on .pkg { --pkg-bg: color-mix(in oklab, var(--dm-top), var(--dm-feature)); background: var(--pkg-bg); --surface: var(--pkg-bg); }   /* Base and Full cards: halfway to the feature grey, so they stand off the list (Haydn, 22/11/2026: #303233 on #2d2f30 barely showed) */
/* Photos of people (Haydn, 20/11/2026): dimmed in dark mode so they don't glare. Only Haydn's and Emma's photos (team
   and founder) come back to full brightness when the pointer rests on them, keeping their black-and-white until then;
   testimonial and customer-story photos stay dimmed, so the words over them stay readable (Haydn, 21/11/2026). Only
   photos of people: news covers and pictures in posts, help and the changelog are never dimmed. */
html[data-theme="dark"] { --photo-dim: brightness(0.72); }
html[data-theme="dark"] :is(.voice__img, .card__photo:not(.card__photo--logo) img) {
  filter: var(--photo-dim); transition: filter 300ms var(--sc-ease-out), scale 500ms var(--sc-ease-out);
}
html[data-theme="dark"] :is(.team__photo, .founder__photo) img { filter: grayscale(1) contrast(1.05) var(--photo-dim); }
html[data-theme="dark"] :is(.team__photo.is-on, .founder:hover .founder__photo, .founder:focus-within .founder__photo) img { filter: none; }
@media (hover: none) {   /* touch screens: no hover, so a gentler dim, in colour */
  html[data-theme="dark"] { --photo-dim: brightness(0.85); }
  html[data-theme="dark"] :is(.team__photo, .founder__photo) img { filter: var(--photo-dim); }
}
html[data-theme="dark"] .mark__light { display: none; }
html[data-theme="dark"] .mark__dark { display: block; }
html[data-theme="dark"] .login__logo { content: url("assets/brand/rfp-logo-dark-bg.png"); }
/* Client logos (dark artwork on transparent backgrounds): even light-grey silhouettes on the dark tiles. */
html[data-theme="dark"] .client img { filter: grayscale(1) brightness(0) invert(0.88); }
/* Pills that are navy when chosen in light mode: the selected grey in dark mode (not a white pill). */
html[data-theme="dark"] .upd__chip[aria-pressed="true"],
html[data-theme="dark"] .rm__tabs .upd__chip[aria-selected="true"] { background: var(--selected); color: var(--on-accent); }

/* Appearance, in the footer: three icons (device, light, dark). */
.theme-pick { display: inline-flex; gap: 2px; padding: 2px; border-radius: 999px; background: color-mix(in oklab, var(--dark-ink) 10%, transparent); }
.theme-pick button { display: grid; place-items: center; width: 30px; height: 26px; border: 0; border-radius: 999px; background: none; color: var(--dark-soft); cursor: pointer; }
.theme-pick button:hover { color: var(--dark-ink); }
.theme-pick button[aria-checked="true"] { background: color-mix(in oklab, var(--dark-ink) 18%, transparent); color: var(--dark-ink); }
.theme-pick svg { width: 16px; height: 16px; }

/* ---------------------------------------------------- landing page -- */
/* The landing page (welcome/; Haydn, 22/11/2026): a stand-in for the current website until the new one launches. The
   website's hero with its own copy, the value calculator, then the online event (cal.com inline, also in a pop-up). */
/* No menu bar: the light/dark picker sits at the top in the middle, and the logo leads the hero's copy. */
.page-landing { --bar-h: 0px; }
.landing__top { position: absolute; top: 16px; left: 0; right: 0; z-index: 5; display: flex; justify-content: center; }
.landing__top .theme-pick { --dark-ink: var(--sc-ink); --dark-soft: var(--sc-ink-soft); }   /* on the page, not a dark footer */
.landing__logo { display: block; width: 44px; height: auto; margin-bottom: 1.5rem; }
html[data-theme="dark"] .landing__logo { content: url("assets/brand/rfp-logo-dark-bg.png"); }
.landing__event .login__win { width: min(1100px, 100%); padding: 3.25rem 1.5rem 1.5rem; }
.landing__eyebrow { margin: 0 0 1rem; font-size: 0.75rem; letter-spacing: 0.24em; text-transform: uppercase; color: var(--sc-accent-deep); }
.landing__ctas { display: flex; flex-wrap: wrap; gap: 10px; margin-top: var(--sc-5); }
.landing__book { padding-block: clamp(3rem, 7vw, 6rem); }
.landing__book-head { max-width: 40rem; margin: 0 auto 1.75rem; text-align: center; }
.landing__book-head h2 { font: 500 var(--size-title, 2.2rem)/1.1 var(--sc-font-display); letter-spacing: -0.02em; margin: 0; }
.landing__book-head p { color: var(--sc-ink-soft); margin: 0.75rem 0 0; }
/* The event (Haydn, 22/11/2026): its details in the site's look on the left, cal.com's registration form alone on the
   right, in a card that follows light and dark (the form is told the mode too). */
.landing__cal { background: var(--sc-surface); border: 1px solid var(--line-strong); border-radius: 24px; padding: 12px; min-height: 420px; overflow: hidden; }
.ev { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 480px); gap: clamp(1.5rem, 3vw, 3rem); align-items: start; }   /* wide enough for cal.com's form to fit its text, as on the walkthrough page (Haydn, 23/11/2026) */
.ev__info { font-size: 0.95rem; line-height: 1.6; color: var(--sc-ink); }
.ev__info p { margin: 0 0 1rem; }
.ev__when { font-size: 0.8rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--sc-accent-deep); }
.ev__title { font: 500 clamp(1.4rem, 1.1rem + 1vw, 1.9rem)/1.15 var(--sc-font-display); letter-spacing: -0.02em; margin: 0 0 1rem; }
.ev__label { font-weight: 600; margin: 1.25rem 0 0.5rem !important; }
.ev__list, .ev__sched { margin: 0; padding: 0; list-style: none; display: grid; gap: 6px; }
.ev__list li { padding-left: 1.1rem; position: relative; }
.ev__list li::before { content: ""; position: absolute; left: 0; top: 0.62em; width: 6px; height: 6px; border-radius: 50%; background: var(--sc-accent); }
.ev__sched li { display: grid; grid-template-columns: 3.5rem minmax(0, 1fr); gap: 10px; background: var(--field); border-radius: 10px; padding: 8px 12px; }
.ev__sched span { color: var(--sc-ink-soft); font-variant-numeric: tabular-nums; }
.ev__small { font-size: 0.82rem; color: var(--sc-ink-soft); margin-top: 1.25rem !important; }
@media (max-width: 900px) { .ev { grid-template-columns: minmax(0, 1fr); } }
.ev--popup { text-align: left; }
.landing__cal .loader { display: block; margin: 160px auto; }
.landing__cal .loader:has(~ cal-inline) { display: none; }   /* gone once cal.com puts its form in */
.landing__fallback { text-align: center; font-size: 0.85rem; color: var(--sc-ink-soft); margin: 0.5rem 0 0.25rem; }
.landing__fallback a { color: inherit; }
.landing__foot { padding-block: 1rem 2.5rem; }
.landing__foot .foot { border-top: 1px solid var(--line); padding-top: 1.25rem; }
/* Emma's contact icons at the end of the footer (23/11/2026). */
.landing__foot .foot { display: flex; justify-content: space-between; align-items: center; gap: 1rem 2rem; flex-wrap: wrap; }
.foot__end { display: flex; align-items: center; gap: 1.5rem; }
.foot__social { display: flex; gap: 0.5rem; }
.foot__social a { display: grid; place-items: center; width: 36px; height: 36px; border-radius: 50%; color: var(--sc-ink); transition: color 0.2s, background-color 0.2s; }
.foot__social a:hover, .foot__social a:focus-visible { color: var(--sc-accent); background: var(--field); }
@media (max-width: 640px) { .landing__foot .foot { justify-content: center; text-align: center; } }

/* The drawing without its sample month (Haydn, 22/11/2026), and its light running outwards: from the end of "firms"
   along the lead line, along the trunk and out to each job in turn (welcome/index.html). site.js's own inward lights
   are off here. */
.page-landing .mio__card { display: none; }
.page-landing .mio__lines { overflow: visible; }
.page-landing .mio__glow, .page-landing .mio__light { display: none; }
.mio__out path { fill: none; stroke: var(--sc-accent); stroke-linecap: round; opacity: 0; }
.mio__out-light { stroke-width: 1.8; stroke-dasharray: 5 200; }
.mio__out-glow { stroke-width: 7; stroke-dasharray: 8 200; filter: blur(3px); }
.mio__out .is-lit .mio__out-light { animation: out-light 1300ms cubic-bezier(.45, 0, .55, 1) both; }
.mio__out .is-lit .mio__out-glow { animation: out-glow 1300ms cubic-bezier(.45, 0, .55, 1) both; }
@keyframes out-light { 0% { opacity: 0; stroke-dashoffset: 5; } 8% { opacity: 1; } 90% { opacity: 1; } 100% { opacity: 0; stroke-dashoffset: -100; } }
@keyframes out-glow { 0% { opacity: 0; stroke-dashoffset: 8; } 8% { opacity: 0.35; } 90% { opacity: 0.35; } 100% { opacity: 0; stroke-dashoffset: -100; } }

/* The landing page's reminder (Haydn, 23/11/2026): the go-live day, to add to your calendar. */
.landing__remind { padding-block: 0 clamp(3rem, 6vw, 5rem); }
.landing__remind-box { text-align: center; background: var(--sc-surface); border: 1px solid var(--line-strong); border-radius: 24px; padding: clamp(1.75rem, 4vw, 3rem) 1.5rem; }
.landing__remind-box h2 { font: 500 var(--size-title, 2.2rem)/1.1 var(--sc-font-display); letter-spacing: -0.02em; margin: 0; }
.landing__remind-box > p:not(.landing__eyebrow) { color: var(--sc-ink-soft); margin: 0.75rem 0 0; }
.landing__remind-box .landing__ctas { justify-content: center; }

/* Who's hosting, beside what we'll cover (Haydn, 23/11/2026, from the walkthrough page). */
.ev__cover { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); gap: clamp(1rem, 2.5vw, 2rem); align-items: start; }
.ev__hosts ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.ev__hosts li { display: flex; align-items: center; gap: 12px; }
.ev__hosts img { width: 56px; height: 56px; object-fit: cover; object-position: center 25%; border-radius: 14px; filter: grayscale(1); }
.ev__hosts span { display: grid; font-size: 0.85rem; color: var(--sc-ink-soft); line-height: 1.35; }
.ev__hosts b { color: var(--sc-ink); font-weight: 500; font-size: 0.95rem; }
@media (max-width: 640px) { .ev__cover { grid-template-columns: minmax(0, 1fr); } }

/* The bot check in the email form (Cloudflare Turnstile, Haydn 23/11/2026). */
.vcalc__ts { min-height: 65px; }
.vcalc__ts:empty { min-height: 0; }
