/* ===========================================================================
   Quantbees website styles, v3. Light theme built from the logo. No framework.
   1 Tokens  2 Base  3 Layout  4 Type  5 Controls  6 Header  7 Footer
   8 Page hero  9 Interactive blocks  10 Content components
   11 Product visuals  12 Forms  13 Prose  14 Motion

   Design rules (keep to these when adding anything):
   - One theme: white ground, navy #14274E text and honey #F8C02A fills, both from
     the logo. Honey is never text on white (too little contrast); --gold is. Text is
     only ever --fg, --soft, --muted or --gold. Green and red are status colours.
   - One layout. Every page is: header bar, .page-hero (text 7 columns, visual 5),
     then .section blocks that flow into each other, then one .cta. Every section opens
     with .section-head (title left, lead and action right) followed by .section-body.
   - One spacing scale (the --space-* tokens). Layout gaps and section rhythm come
     from it, so pages cannot drift apart. Content uses the full .wrap width; lists
     flow into columns instead of leaving half the screen empty.
   - No container inside a container, and no divider lines. A block is either a soft
     card (--surface fill, no border) or plain content set apart by space; cards
     never hold cards, nothing boxed sits inside a card, and sections, columns and
     list rows are never ruled off from each other.
   - Type: Poppins 600 headings (the logo's letterforms), Inter text, Geist Mono for
     labels and numbers.
   - Motion is calm: things fade up once, headings rise line by line, state changes
     show (pipeline, stepper). Nothing chases the pointer, bounces, or holds the
     page while it scrolls. All of it stops under prefers-reduced-motion, and every
     page reads fully with JavaScript off.
   - The site is about the company. Our own products appear only as case studies.
   =========================================================================== */

/* 1 Tokens ---------------------------------------------------------------- */
@font-face {
  font-family: "Inter Variable";
  font-style: normal;
  font-display: swap;
  font-weight: 100 900;
  src: url("../assets/fonts/inter-latin-wght-normal.woff2") format("woff2-variations");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Inter Variable";
  font-style: normal;
  font-display: swap;
  font-weight: 100 900;
  src: url("../assets/fonts/inter-latin-ext-wght-normal.woff2") format("woff2-variations");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "Poppins";
  font-style: normal;
  font-display: swap;
  font-weight: 500;
  src: url("../assets/fonts/poppins-latin-500-normal.woff2") format("woff2");
}
@font-face {
  font-family: "Poppins";
  font-style: normal;
  font-display: swap;
  font-weight: 600;
  src: url("../assets/fonts/poppins-latin-600-normal.woff2") format("woff2");
}
@font-face {
  font-family: "Geist Mono Variable";
  font-style: normal;
  font-display: swap;
  font-weight: 100 900;
  src: url("../assets/fonts/geist-mono-latin-wght-normal.woff2") format("woff2-variations");
}

:root {
  /* Logo colours */
  --navy: #14274e;
  --navy-900: #0d1b38;
  --honey: #f8c02a;
  --honey-hi: #ffd04f;
  --honey-100: #fff3c4;
  --honey-50: #fffbeb;
  --gold: #8a6100;

  /* Roles. Contrast on white: --fg 14.6:1, --soft 8.4:1, --muted 4.9:1, --gold 5.6:1 */
  --bg: #ffffff;
  --surface: #f4f6fb;
  /* The hero band: honey tints flowing into navy tints, left to right. */
  --band: linear-gradient(90deg, #fffbeb 0%, #fff4cf 30%, #f3f1ea 55%, #eaf0fa 80%, #e3eaf8 100%);
  --scallop: 13px;
  --line: #e2e7f0;
  --line-strong: #c6cfdf;
  --fg: #14274e;
  --soft: #44526f;
  --muted: #66738e;
  --ok: #06612f;
  --ok-bg: #e3f8ec;
  --danger: #b42318;
  --shadow: 0 28px 60px -32px rgba(20, 39, 78, 0.35);

  --display: "Poppins", "Inter Variable", system-ui, sans-serif;
  --sans: "Inter Variable", system-ui, -apple-system, "Segoe UI", sans-serif;
  --mono: "Geist Mono Variable", ui-monospace, "SFMono-Regular", Menlo, monospace;

  /* Spacing scale. Fluid, so the rhythm has no breakpoint jumps. */
  --gutter: clamp(1.25rem, 4vw, 4rem);
  --space-section: clamp(2.5rem, 1.9rem + 2.2vw, 4rem);
  --space-block: clamp(1.5rem, 1.2rem + 1.1vw, 2.25rem);
  --space-gap: clamp(1.75rem, 1rem + 2.4vw, 3.5rem);
  --space-item: 1rem;

  --wrap: 90rem;
  --radius: 16px;
  --radius-sm: 10px;
  --header-h: 4.5rem;
  --ease: cubic-bezier(0.2, 0.7, 0.2, 1);
  --hex: polygon(50% 0, 100% 25%, 100% 75%, 50% 100%, 0 75%, 0 25%);
  --hex-tile: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='48.5' height='84' viewBox='0 0 48.5 84'%3E%3Cpath d='M24.25 0 48.5 14v28L24.25 56 0 42V14ZM24.25 56v28' fill='none' stroke='%23F8C02A' stroke-opacity='.5' stroke-width='1'/%3E%3C/svg%3E");
  color-scheme: light;
}

/* 2 Base ------------------------------------------------------------------ */
*,
*::before,
*::after {
  box-sizing: border-box;
}
html {
  background: var(--bg);
  color: var(--fg);
  font-family: var(--sans);
  font-feature-settings: "cv05", "cv11";
  font-synthesis: none;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 1.5rem);
}
body {
  margin: 0;
  min-height: 100dvh;
  font-size: 1.0625rem;
  line-height: 1.65;
  overflow-x: clip;
}
h1, h2, h3, h4, p, ul, ol, dl, dd, figure, blockquote {
  margin: 0;
}
ul, ol {
  padding: 0;
  list-style: none;
}
h1, h2, h3, h4 {
  font-family: var(--display);
  font-weight: 600;
  letter-spacing: -0.025em;
  line-height: 1.12;
  text-wrap: balance;
}
p {
  text-wrap: pretty;
}
a {
  color: inherit;
  text-decoration: none;
}
img, svg, canvas {
  display: block;
  max-width: 100%;
}
button, input, select, textarea {
  font: inherit;
  color: inherit;
}
button {
  cursor: pointer;
}
address {
  font-style: normal;
}
::selection {
  background: var(--honey);
  color: var(--navy-900);
}
:focus-visible {
  outline: 2px solid var(--navy);
  outline-offset: 3px;
  border-radius: 4px;
}
[hidden] {
  display: none !important;
}
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}
.skip-link {
  position: fixed;
  left: 1rem;
  top: -5rem;
  z-index: 100;
  padding: 0.6rem 1rem;
  border-radius: var(--radius-sm);
  background: var(--navy);
  color: #fff;
  font-weight: 600;
}
.skip-link:focus {
  top: 1rem;
}
.icon {
  flex: none;
  width: 1.25em;
  height: 1.25em;
}
/* Reading progress, drawn by main.js as the page scrolls */
.progress {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 60;
  height: 2px;
  background: var(--honey);
  transform: scaleX(var(--scroll, 0));
  transform-origin: 0 50%;
  pointer-events: none;
}

/* 3 Layout ---------------------------------------------------------------- */
.wrap {
  width: 100%;
  max-width: calc(var(--wrap) + 2 * var(--gutter));
  margin-inline: auto;
  padding-inline: var(--gutter);
}
.section {
  padding-block: var(--space-section);
}
.section-body {
  margin-top: var(--space-block);
}
.mt-s {
  margin-top: 1.5rem;
}
.mt-block {
  margin-top: var(--space-block);
}
/* Two columns: the one way two things sit side by side. */
.duo {
  display: grid;
  gap: var(--space-gap);
  align-items: start;
}
.duo > * {
  min-width: 0;
}
@media (min-width: 1024px) {
  .duo {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .duo--wide-left {
    grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
  }
}

/* 4 Type ------------------------------------------------------------------ */
.eyebrow,
.mono-label {
  font-family: var(--mono);
  font-size: 0.74rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  color: var(--gold);
}
.eyebrow::before {
  content: "";
  flex: none;
  width: 0.6rem;
  height: 0.68rem;
  background: var(--honey);
  clip-path: var(--hex);
}
.mono-label {
  color: var(--muted);
}
.h-page {
  font-size: clamp(2.2rem, 1.3rem + 3.1vw, 3.75rem);
  line-height: 1.04;
  letter-spacing: -0.04em;
}
.h-section {
  font-size: clamp(1.75rem, 1.3rem + 1.7vw, 2.6rem);
  line-height: 1.08;
  letter-spacing: -0.035em;
}
/* Emphasis in a heading: a honey marker line under the words. main.js draws it in. */
.h-page em,
.h-section em {
  font-style: normal;
  background: linear-gradient(var(--honey), var(--honey)) 0 92% / 100% 0.13em no-repeat;
}
.js .h-page em,
.js .h-section em {
  background-size: 0% 0.13em;
  transition: background-size 900ms var(--ease) 500ms;
}
.js .is-lit em {
  background-size: 100% 0.13em;
}
.lead {
  font-size: clamp(1.03rem, 0.98rem + 0.3vw, 1.18rem);
  line-height: 1.6;
  color: var(--soft);
}
.section-head {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  align-items: end;
  column-gap: var(--space-gap);
}
.section-head > * {
  min-width: 0;
}
.section-head .h-section {
  margin-top: 0.9rem;
}
/* The aside's parts join the header grid: the intro under the title, the action beside it. */
.section-head__aside {
  display: contents;
}
.section-head__aside .lead {
  max-width: 52rem;
  margin-top: 1rem;
}
.section-head__aside .btn {
  justify-self: start;
  margin-top: 1.25rem;
}
@media (min-width: 1024px) {
  .section-head {
    grid-template-columns: minmax(0, 1fr) auto;
  }
  .section-head .eyebrow,
  .section-head .h-section,
  .section-head__aside .lead {
    grid-column: 1;
  }
  .section-head__aside .btn {
    grid-column: 2;
    grid-row: 2;
    margin-top: 0;
  }
}
.body {
  color: var(--soft);
}
.body > * + * {
  margin-top: 1.1rem;
}
.note,
.aside-line {
  font-size: 0.92rem;
  color: var(--muted);
}
.link {
  text-decoration: underline;
  text-decoration-color: var(--honey);
  text-decoration-thickness: 2px;
  text-underline-offset: 0.22em;
  transition: text-decoration-color 160ms;
}
.link:hover {
  text-decoration-color: var(--navy);
}
.more {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  font-size: 0.95rem;
  font-weight: 600;
}
.more .icon {
  width: 1.05rem;
  height: 1.05rem;
  color: var(--gold);
  transition: transform 220ms var(--ease);
}
.more:hover .icon {
  transform: translate(2px, -2px);
}
.hex-dot {
  flex: none;
  display: inline-block;
  width: 0.5rem;
  height: 0.56rem;
  background: var(--honey);
  clip-path: var(--hex);
}

/* 5 Controls -------------------------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  min-height: 3rem;
  padding: 0.65rem 1.4rem;
  border: 1px solid transparent;
  border-radius: 999px;
  font-size: 0.97rem;
  font-weight: 600;
  white-space: nowrap;
  transition: background-color 180ms, border-color 180ms, color 180ms, box-shadow 220ms var(--ease);
}
.btn .icon {
  width: 1.1rem;
  height: 1.1rem;
  transition: transform 220ms var(--ease);
}
.btn:hover .icon {
  transform: translateX(3px);
}
.btn--primary {
  background: var(--navy);
  color: #fff;
}
.btn--primary:hover {
  background: var(--navy-900);
  box-shadow: 0 12px 26px -12px rgba(20, 39, 78, 0.6);
}
.btn--honey {
  background: var(--honey);
  color: var(--navy-900);
}
.btn--honey:hover {
  background: var(--honey-hi);
  box-shadow: 0 12px 26px -12px rgba(248, 192, 42, 0.9);
}
.btn--ghost,
.btn--on-navy {
  border-color: var(--line-strong);
  background: var(--bg);
  color: var(--fg);
}
.btn--ghost:hover {
  border-color: var(--navy);
}
.btn--sm {
  min-height: 2.6rem;
  padding: 0.45rem 1.15rem;
  font-size: 0.9rem;
}
.btn-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}
.tag {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.26rem 0.7rem;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  font-family: var(--mono);
  font-size: 0.68rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--soft);
  white-space: nowrap;
}
.tag--honey {
  border-color: var(--honey);
  background: var(--honey-100);
  color: var(--navy-900);
}
.tag--navy {
  border-color: var(--navy);
  background: var(--navy);
  color: #fff;
}
.tag--dot::before {
  content: "";
  width: 0.4rem;
  height: 0.4rem;
  border-radius: 50%;
  background: currentColor;
}
.pill {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.1rem 0.5rem;
  border-radius: 999px;
  font-size: 0.7rem;
  font-weight: 600;
  white-space: nowrap;
}
.pill::before {
  content: "";
  width: 0.4rem;
  height: 0.4rem;
  border-radius: 50%;
  background: currentColor;
}
.pill--ok {
  background: var(--ok-bg);
  color: var(--ok);
}
.pill--due {
  background: var(--honey-100);
  color: var(--gold);
}

/* 6 Header ---------------------------------------------------------------- */
/* The same bar on every page: logo, five links, one action. It stays in place. */
.header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(14px) saturate(1.4);
}
.header__bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  height: var(--header-h);
}
.logo {
  flex: none;
  display: block;
}
.logo img {
  width: auto;
  height: 2.5rem;
}
.nav {
  display: none;
}
.nav__list {
  display: flex;
  align-items: center;
}
.nav__link {
  position: relative;
  display: inline-flex;
  align-items: center;
  height: var(--header-h);
  padding: 0 1rem;
  font-size: 0.94rem;
  font-weight: 500;
  color: var(--soft);
  transition: color 160ms;
}
.nav__link::after {
  content: "";
  position: absolute;
  inset: auto 1rem 1.05rem 1rem;
  height: 2px;
  background: var(--honey);
  transform: scaleX(0);
  transform-origin: 0 50%;
  transition: transform 300ms var(--ease);
}
.nav__link:hover,
.nav__link[aria-current="page"] {
  color: var(--fg);
}
.nav__link:hover::after,
.nav__link[aria-current="page"]::after {
  transform: scaleX(1);
}
.header__actions {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
.header__cta {
  display: none;
}
.nav-toggle {
  display: grid;
  place-items: center;
  width: 2.75rem;
  height: 2.75rem;
  padding: 0;
  border: 1px solid var(--line-strong);
  border-radius: 50%;
  background: var(--bg);
}
.nav-toggle .icon {
  width: 1.2rem;
  height: 1.2rem;
}
.mobile-nav {
  background: var(--bg);
}
.mobile-nav ul {
  display: grid;
  padding-block: 0.75rem 1.5rem;
}
.mobile-nav a:not(.btn) {
  display: block;
  padding: 0.7rem 0;
  font-family: var(--display);
  font-size: 1.2rem;
  font-weight: 600;
  letter-spacing: -0.02em;
}
.mobile-nav a[aria-current="page"] {
  color: var(--gold);
}
.mobile-nav .btn {
  width: 100%;
  margin-top: 1.25rem;
}
@media (min-width: 640px) {
  .header__cta {
    display: inline-flex;
  }
}
@media (min-width: 1024px) {
  .nav {
    display: block;
  }
  .nav-toggle,
  .mobile-nav {
    display: none !important;
  }
}

/* 7 Footer ---------------------------------------------------------------- */
.footer {
  position: relative;
  overflow: hidden;
  padding-top: var(--scallop);
  background: var(--band);
  font-size: 0.95rem;
}
.footer::before {
  content: "";
  position: absolute;
  inset: -1px 0 auto 0;
  height: calc(var(--scallop) + 1px);
  background: radial-gradient(circle at 50% 0, var(--bg) calc(var(--scallop) - 1px), transparent var(--scallop)) 0 0 / calc(var(--scallop) * 2.6) 100% repeat-x;
  pointer-events: none;
}
.footer__top {
  display: grid;
  gap: var(--space-gap);
  padding-block: var(--space-section) var(--space-block);
}
.footer .logo img {
  height: 3rem;
}
.footer__about {
  max-width: 26rem;
  margin-top: 1.25rem;
  color: var(--soft);
}
.footer__contact {
  display: grid;
  gap: 0.6rem;
  margin-top: 1.5rem;
  color: var(--soft);
}
.footer__contact strong {
  font-weight: 600;
  color: var(--fg);
}
.footer__contact > span,
.footer__contact > a {
  display: flex;
  align-items: center;
  gap: 0.6rem;
}
.footer__contact .icon {
  width: 1.05rem;
  height: 1.05rem;
  color: var(--gold);
}
.footer__contact a:hover,
.footer__cols a:hover {
  color: var(--gold);
}
.footer__cin {
  font-family: var(--mono);
  font-size: 0.8rem;
  color: var(--muted);
}
.footer__cols {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2rem;
}
.footer__cols ul {
  display: grid;
  gap: 0.65rem;
  margin-top: 1rem;
  color: var(--soft);
}
.footer__cols a {
  transition: color 160ms;
}
/* The wordmark: outlined, then filled left to right as the page ends (--fill). */
.footer__word {
  font-family: var(--display);
  font-size: clamp(3.5rem, 16.5vw, 17rem);
  font-weight: 600;
  line-height: 0.86;
  letter-spacing: -0.06em;
  white-space: nowrap;
  color: transparent;
  -webkit-text-stroke: 1px var(--line-strong);
  background: linear-gradient(90deg, var(--honey) 0 var(--fill, 0%), transparent var(--fill, 0%));
  -webkit-background-clip: text;
  background-clip: text;
  user-select: none;
}
.footer__legal .wrap {
  display: grid;
  gap: 0.75rem 3rem;
  padding-block: 1.5rem;
}
.footer__disclaimer {
  font-size: 0.8rem;
  line-height: 1.6;
  color: var(--muted);
}
.footer__disclaimer strong {
  color: var(--soft);
}
.footer__copy {
  font-family: var(--mono);
  font-size: 0.74rem;
  letter-spacing: 0.06em;
  color: var(--muted);
  white-space: nowrap;
}
@media (min-width: 768px) {
  .footer__cols {
    grid-template-columns: repeat(3, 1fr);
  }
}
@media (min-width: 1024px) {
  .footer__top {
    grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  }
  .footer__legal .wrap {
    grid-template-columns: 1fr auto;
    align-items: end;
  }
}

/* 8 Page hero ------------------------------------------------------------- */
/* Identical on every page: text in 7 columns, one visual in 5. */
.page-hero {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  padding-bottom: var(--scallop);
  background: var(--band);
}
/* Scalloped lower edge: a row of white half-circles rising into the band. */
.page-hero::after {
  content: "";
  position: absolute;
  inset: auto 0 -1px 0;
  height: calc(var(--scallop) + 1px);
  background: radial-gradient(circle at 50% 100%, var(--bg) calc(var(--scallop) - 1px), transparent var(--scallop)) 0 0 / calc(var(--scallop) * 2.6) 100% repeat-x;
  pointer-events: none;
}
.hex-field,
.hexcanvas {
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
}
.hex-field {
  background-image: var(--hex-tile);
  mask-image: radial-gradient(ellipse 60% 100% at 85% 0%, #000 0%, transparent 72%);
}
.hexcanvas {
  width: 100%;
  height: 100%;
  mask-image: radial-gradient(ellipse 60% 100% at 85% 0%, #000 0%, transparent 72%);
}
.page-hero__inner {
  display: grid;
  gap: 2.5rem var(--space-gap);
  align-items: start;
  padding-block: 2rem var(--space-section);
}
.page-hero__visual {
  align-self: center;
}
.page-hero__inner > * {
  min-width: 0;
}
.page-hero__note {
  margin-top: 1.25rem;
  font-family: var(--mono);
  font-size: 0.74rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}
.page-hero .lead {
  max-width: 40rem;
  margin-top: 1.5rem;
}
.page-hero .btn-row {
  margin-top: 2rem;
}
.h-page > span {
  display: block;
}
/* The typed word in the home headline sits on a honey marker. */
.rotator {
  min-height: 1.04em;
  white-space: nowrap;
}
.rotator b {
  font-weight: inherit;
  background: linear-gradient(var(--honey), var(--honey)) 0 60% / 100% 62% no-repeat;
  box-decoration-break: clone;
  padding-inline: 0.08em;
  margin-inline: -0.08em;
}
.rotator::after {
  content: "";
  display: inline-block;
  width: 0.06em;
  height: 0.8em;
  margin-left: 0.12em;
  background: currentColor;
  vertical-align: -0.04em;
  animation: blink 1s steps(1) infinite;
}
.crumbs {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 1.25rem;
  font-family: var(--mono);
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
}
.crumbs li + li::before {
  content: "/";
  margin-right: 0.5rem;
  color: var(--line-strong);
}
.crumbs a:hover {
  color: var(--fg);
}
.crumbs [aria-current] {
  color: var(--gold);
}
.art {
  width: min(100%, 18rem);
  margin-inline: auto;
  shape-rendering: geometricPrecision;
}
.art__cell {
  fill: var(--bg);
  stroke: var(--honey);
  stroke-width: 1.25;
}
.art__cell--outer {
  fill: none;
  stroke: var(--honey-100);
  stroke-width: 1;
}
.art__cell--amber {
  fill: var(--honey-100);
}
.art__cell--cyan {
  fill: var(--surface);
  stroke: var(--line-strong);
}
.art__cell--centre {
  fill: var(--honey);
  stroke: none;
}
.art__glyph {
  fill: none;
  stroke: var(--navy);
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.art__glyph circle {
  fill: var(--navy);
  stroke: none;
}
.art__icon {
  fill: none;
  stroke: var(--navy-900);
  stroke-width: 1.25;
  stroke-linecap: round;
  stroke-linejoin: round;
}
@media (max-width: 1023px) {
  .page-hero__visual:has(> .art) {
    display: none;
  }
}
@media (min-width: 1024px) {
  .page-hero__inner {
    grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
  }
}

/* The release pipeline: the home hero's visual. Without JavaScript every step shows as passed. */
.term {
  overflow: hidden;
  border-radius: var(--radius);
  background: var(--bg);
  box-shadow: 0 0 0 1px rgba(20, 39, 78, 0.07), var(--shadow);
}
.term__bar {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.7rem 1rem;
  background: var(--surface);
  font-family: var(--mono);
  font-size: 0.74rem;
  color: var(--muted);
}
.term__dots {
  display: flex;
  gap: 0.35rem;
}
.term__dots i {
  width: 0.6rem;
  height: 0.6rem;
  border-radius: 50%;
  background: var(--line-strong);
}
.term__dots i:first-child {
  background: var(--honey);
}
.term__title {
  flex: 1;
}
.term__replay {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.25rem 0.65rem;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  background: none;
  font: inherit;
  color: var(--soft);
  transition: border-color 160ms, color 160ms;
}
.term__replay:hover {
  border-color: var(--navy);
  color: var(--fg);
}
.term__replay .icon {
  width: 0.8rem;
  height: 0.8rem;
}
.term__steps li {
  display: grid;
  grid-template-columns: 1.9rem 1fr auto;
  gap: 0.9rem;
  align-items: center;
  padding: 0.8rem 1.1rem;
  transition: opacity 300ms, background-color 300ms;
}
.term__state {
  display: grid;
  place-items: center;
  justify-self: center;
  width: 1.7rem;
  height: 1.9rem;
  background: var(--honey);
  clip-path: var(--hex);
  color: var(--navy-900);
}
.term__state .icon {
  width: 0.85rem;
  height: 0.85rem;
  stroke-width: 3;
}
.term__steps b {
  display: block;
  font-size: 0.92rem;
  font-weight: 600;
  line-height: 1.35;
}
.term__steps small {
  display: block;
  font-size: 0.8rem;
  line-height: 1.45;
  color: var(--muted);
}
.term__out {
  font-family: var(--mono);
  font-size: 0.7rem;
  color: var(--ok);
}
.term.is-live li:not(.is-done) {
  opacity: 0.4;
}
.term.is-live li:not(.is-done) .term__state {
  background: var(--surface);
  color: transparent;
}
.term.is-live li:not(.is-done) .term__out {
  visibility: hidden;
}
.term.is-live li.is-run {
  opacity: 1;
  background: var(--honey-50);
}
.term.is-live li.is-run .term__state {
  width: 1.3rem;
  height: 1.3rem;
  border: 2px solid var(--line-strong);
  border-top-color: var(--navy);
  border-radius: 50%;
  background: none;
  clip-path: none;
  animation: spin 700ms linear infinite;
}
.term__foot {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 0.8rem 1.1rem;
  font-family: var(--mono);
  font-size: 0.74rem;
  color: var(--muted);
}
.term__meter {
  flex: 1;
  height: 4px;
  overflow: hidden;
  border-radius: 2px;
  background: var(--surface);
}
.term__meter i {
  display: block;
  width: calc(var(--p, 1) * 100%);
  height: 100%;
  background: var(--honey);
  transition: width 500ms var(--ease);
}
.term__status.is-ok {
  color: var(--ok);
}
.term-caption {
  margin-top: 0.9rem;
  font-size: 0.8rem;
  color: var(--muted);
}

/* Figures row at the foot of the home hero, as in a stats band */
.stats {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.5rem 0;
  padding-block: 1.75rem 2.25rem;
  text-align: center;
}
.stats > div {
  display: flex;
  flex-direction: column-reverse;
  justify-content: flex-end;
  gap: 0.3rem;
  padding-inline: 1rem;
}
.stats > div + div {
  box-shadow: -1px 0 0 rgba(255, 255, 255, 0.85);
}
.stats > div:nth-child(odd) {
  box-shadow: none;
}
.stats dt {
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--soft);
}
.stats dd {
  font-family: var(--display);
  font-size: clamp(1.6rem, 1.2rem + 1.4vw, 2.4rem);
  font-weight: 600;
  line-height: 1.1;
  letter-spacing: -0.035em;
  font-variant-numeric: tabular-nums;
}
@media (min-width: 900px) {
  .stats {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
  .stats > div:nth-child(odd) {
    box-shadow: -1px 0 0 rgba(255, 255, 255, 0.85);
  }
  .stats > div:first-child {
    box-shadow: none;
  }
}

/* Technology strip under the home hero */
.marquee {
  overflow: hidden;
  mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
}
.marquee__track {
  display: flex;
  width: max-content;
  animation: marquee 48s linear infinite;
}
.marquee:hover .marquee__track {
  animation-play-state: paused;
}
.marquee ul {
  display: flex;
  align-items: center;
  font-family: var(--mono);
  font-size: 0.78rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
  white-space: nowrap;
}
.marquee li {
  display: flex;
  align-items: center;
  gap: 2.5rem;
  padding: 0.95rem 0 0.95rem 2.5rem;
}
.marquee li::after {
  content: "";
  width: 0.5rem;
  height: 0.56rem;
  background: var(--honey);
  clip-path: var(--hex);
}

/* 9 Interactive blocks ---------------------------------------------------- */
/* Soft card: the one kind of box. Used by .bento cells and .cards items. */
.bento__cell,
.cards > li {
  border-radius: var(--radius);
  background: var(--surface);
  transition: background-color 220ms, box-shadow 260ms var(--ease);
}
.bento__cell:hover,
.cards > li:hover {
  background: var(--bg);
  box-shadow: 0 0 0 1px var(--line-strong), var(--shadow);
}

/* Services bento */
.bento {
  display: grid;
  gap: var(--space-item);
}
.bento__link {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  height: 100%;
  padding: 1.5rem;
}
.bento__top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-family: var(--mono);
  font-size: 0.74rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
}
.bento__go {
  display: grid;
  place-items: center;
  width: 2.2rem;
  height: 2.2rem;
  border: 1px solid var(--line-strong);
  border-radius: 50%;
  transition: background-color 220ms, border-color 220ms;
}
.bento__go .icon {
  width: 1rem;
  height: 1rem;
}
.bento__cell:hover .bento__go {
  border-color: var(--honey);
  background: var(--honey);
}
.bento h3 {
  font-size: 1.35rem;
  letter-spacing: -0.03em;
}
.bento p {
  max-width: 34rem;
  margin-top: 0.5rem;
  font-size: 0.97rem;
  line-height: 1.6;
  color: var(--soft);
}
@media (min-width: 720px) {
  .bento {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (min-width: 1100px) {
  .bento {
    grid-template-columns: repeat(12, 1fr);
  }
  .bento__cell {
    grid-column: span 4;
  }
  .bento__cell:nth-child(1),
  .bento__cell:nth-child(6) {
    grid-column: span 5;
  }
  .bento__cell:nth-child(2),
  .bento__cell:nth-child(5) {
    grid-column: span 3;
  }
}

/* Small drawings inside the bento cells. They sit straight on the card: no frame. */
.viz {
  position: relative;
  flex: 1;
  display: block;
  min-height: 6.5rem;
}
.viz--wire {
  display: grid;
  grid-template-columns: 1fr 1.6fr 1fr;
  grid-template-rows: 1fr 1fr;
  gap: 0.5rem;
}
.viz--wire i {
  border: 1px dashed var(--line-strong);
  border-radius: 6px;
  animation: build 7s var(--ease) infinite;
  animation-delay: calc(var(--i) * 0.8s);
}
.viz--wire i:nth-child(2) {
  grid-row: span 2;
}
.viz--rows {
  display: grid;
  align-content: center;
  gap: 0.55rem;
}
.viz--rows i {
  height: 0.75rem;
  border-radius: 4px;
  background: var(--line);
  animation: row 5s linear infinite;
  animation-delay: calc(var(--i) * 1.25s);
}
.viz--rows i:nth-child(2) {
  width: 72%;
}
.viz--rows i:nth-child(3) {
  width: 88%;
}
.viz--rows i:nth-child(4) {
  width: 56%;
}
.viz--phone {
  display: grid;
  place-items: end center;
}
.viz--phone i {
  position: relative;
  display: grid;
  place-items: center;
  width: 4rem;
  height: 5.8rem;
  border: 1.5px solid var(--navy);
  border-bottom: 0;
  border-radius: 0.8rem 0.8rem 0 0;
}
.viz--phone i::before {
  content: "";
  position: absolute;
  width: 2.4rem;
  height: 2.4rem;
  border-radius: 50%;
  background: var(--honey);
  animation: ring 2.6s ease-out infinite;
}
.viz--phone .icon {
  position: relative;
  width: 1.4rem;
  height: 1.4rem;
}
.viz--flow {
  display: grid;
  align-content: center;
  gap: 1.2rem;
  padding-right: 3.6rem;
}
.viz--flow i {
  position: relative;
  height: 1px;
  background: var(--line-strong);
}
.viz--flow i::after {
  content: "";
  position: absolute;
  top: -3px;
  left: 0;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--navy);
  animation: flow 3s linear infinite;
  animation-delay: calc(var(--i) * -1s);
}
.viz--flow b {
  position: absolute;
  top: 50%;
  right: 0.25rem;
  width: 2.4rem;
  height: 2.7rem;
  margin-top: -1.35rem;
  background: var(--honey);
  clip-path: var(--hex);
}
.viz--code {
  display: grid;
  align-content: center;
  gap: 0.45rem;
  font-family: var(--mono);
  font-size: 0.76rem;
  color: var(--soft);
}
.viz--code span {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  white-space: nowrap;
}
.viz--code b {
  font-weight: 500;
  color: var(--ok);
  animation: tick 6s steps(1) infinite;
  animation-delay: calc(var(--i) * 1.1s);
}
.viz--bars {
  display: flex;
  align-items: flex-end;
  gap: 3px;
}
.viz--bars i {
  flex: 1;
  height: 100%;
  border-radius: 2px 2px 0 0;
  background: var(--honey);
  transform-origin: 50% 100%;
  animation: bar 3.4s ease-in-out infinite;
  animation-delay: calc(var(--i) * -0.14s);
}

/* Process stepper: a tab line and the open step under it. No boxes.
   With JavaScript off every step is shown, one under another. */
.stepper__rail {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(8.5rem, 1fr);
  overflow-x: auto;
  scrollbar-width: none;
}
.stepper__tab {
  position: relative;
  display: grid;
  gap: 0.3rem;
  justify-items: start;
  padding: 0 1rem 1.1rem 0;
  border: 0;
  background: none;
  text-align: left;
  color: var(--muted);
  transition: color 200ms;
}
.stepper__tab span {
  font-family: var(--mono);
  font-size: 0.74rem;
  letter-spacing: 0.1em;
}
.stepper__tab b {
  font-family: var(--display);
  font-size: clamp(1.05rem, 0.9rem + 0.6vw, 1.4rem);
  font-weight: 600;
  letter-spacing: -0.02em;
}
.stepper__tab:hover,
.stepper__tab[aria-selected="true"] {
  color: var(--fg);
}
.stepper__tab[aria-selected="true"] span {
  color: var(--gold);
}
.stepper__tab::after {
  content: "";
  position: absolute;
  inset: auto 1rem 0 0;
  height: 3px;
  background: var(--honey);
  transform: scaleX(0);
  transform-origin: 0 50%;
}
.stepper__tab[aria-selected="true"]::after {
  transform: scaleX(1);
}
.stepper.is-auto .stepper__tab[aria-selected="true"]::after {
  animation: fill var(--step-ms, 6000ms) linear both;
}
.stepper__panel {
  display: grid;
  gap: 2rem var(--space-gap);
  padding-top: var(--space-block);
}
.stepper__panel + .stepper__panel {
  margin-top: var(--space-block);
}
.js .stepper__panel {
  animation: panel-in 420ms var(--ease);
}
.stepper__panel > * {
  min-width: 0;
}
.stepper__panel h3 {
  margin-top: 0.75rem;
  font-size: clamp(1.45rem, 1.2rem + 1vw, 2.1rem);
  letter-spacing: -0.035em;
}
.stepper__panel p:not(.mono-label) {
  max-width: 44rem;
  margin-top: 0.9rem;
  color: var(--soft);
}
.stepper__get ul {
  display: grid;
  gap: 0.7rem;
  margin-top: 0.9rem;
}
.stepper__get li {
  display: flex;
  gap: 0.75rem;
  font-size: 0.97rem;
  line-height: 1.5;
  color: var(--soft);
}
.stepper__get .icon {
  width: 1.2rem;
  height: 1.2rem;
  margin-top: 0.12rem;
  padding: 0.18rem;
  border-radius: 50%;
  background: var(--honey);
  color: var(--navy-900);
  stroke-width: 3;
}
@media (min-width: 900px) {
  .stepper__panel {
    grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
  }
}

/* Principles honeycomb: six cells around the current number, text beside it */
.comb {
  display: grid;
  gap: var(--space-gap);
  align-items: center;
}
.comb > * {
  min-width: 0;
}
.comb__cells {
  --w: clamp(6.3rem, 28.5vw, 10.5rem);
  --h: calc(var(--w) * 1.1547);
  position: relative;
  width: calc(var(--w) * 3 + 0.8rem);
  height: calc(var(--h) * 2.5 + 0.7rem);
  margin-inline: auto;
}
.comb__cell {
  position: absolute;
  top: 50%;
  left: 50%;
  display: grid;
  place-content: center;
  justify-items: center;
  gap: 0.3rem;
  width: var(--w);
  height: var(--h);
  margin: calc(var(--h) / -2) 0 0 calc(var(--w) / -2);
  padding: 0 13%;
  border: 0;
  background: var(--line-strong);
  clip-path: var(--hex);
  translate: calc(var(--x) * (var(--w) + 0.4rem)) calc(var(--y) * (var(--h) * 0.75 + 0.35rem));
  text-align: center;
  transition: background-color 200ms;
}
.comb__cell::before {
  content: "";
  position: absolute;
  inset: 1.5px;
  background: var(--bg);
  clip-path: var(--hex);
  transition: background-color 200ms;
}
.comb__cell > * {
  position: relative;
}
.comb__cell span {
  font-family: var(--mono);
  font-size: 0.7rem;
  letter-spacing: 0.1em;
  color: var(--gold);
}
.comb__cell b {
  font-family: var(--display);
  font-size: clamp(0.7rem, 0.5rem + 0.9vw, 0.98rem);
  font-weight: 600;
  line-height: 1.2;
  letter-spacing: -0.01em;
}
button.comb__cell:hover::before {
  background: var(--honey-100);
}
button.comb__cell:hover,
.comb__cell[aria-selected="true"],
.comb__cell[aria-selected="true"]::before {
  background: var(--honey);
}
.comb__cell[aria-selected="true"] span {
  color: var(--navy-900);
}
.comb__cell:focus-visible {
  outline: none;
  background: var(--navy);
}
.comb__core {
  background: var(--navy);
  font-family: var(--display);
  font-size: calc(var(--w) * 0.34);
  font-weight: 600;
  letter-spacing: -0.05em;
  color: #fff;
}
.comb__core::before {
  background: var(--navy);
}
.comb__core b {
  font-size: inherit;
  letter-spacing: inherit;
}
.comb__item + .comb__item {
  margin-top: var(--space-block);
}
.js .comb__item {
  animation: panel-in 380ms var(--ease);
}
.comb__item h3 {
  margin-top: 0.75rem;
  font-size: clamp(1.6rem, 1.2rem + 1.6vw, 2.5rem);
  letter-spacing: -0.04em;
}
.comb__item > p:not(.mono-label) {
  max-width: 38rem;
  margin-top: 0.9rem;
  font-size: 1.06rem;
  color: var(--soft);
}
.comb__item > .comb__practice {
  font-size: 0.98rem;
  color: var(--fg);
}
@media (min-width: 960px) {
  .comb {
    grid-template-columns: auto minmax(0, 1fr);
  }
  .js .comb__panel {
    min-height: 16rem;
  }
}

/* Commitments and questions: rows that open, one at a time, in two columns */
:root {
  interpolate-size: allow-keywords;
}
.pledges,
.faqs {
  display: grid;
  gap: 0.6rem var(--space-item);
  align-items: start;
}
.pledge,
.faq {
  padding-inline: 1.25rem;
  border-radius: var(--radius-sm);
  background: var(--surface);
  transition: background-color 220ms;
}
.pledge[open],
.faq[open] {
  background: var(--honey-50);
}
.pledge::details-content,
.faq::details-content {
  block-size: 0;
  overflow: clip;
  transition: block-size 340ms var(--ease), content-visibility 340ms allow-discrete;
}
.pledge[open]::details-content,
.faq[open]::details-content {
  block-size: auto;
}
.pledge summary,
.faq summary {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 1rem;
  align-items: center;
  padding-block: 1.15rem;
  list-style: none;
  cursor: pointer;
}
.pledge summary {
  grid-template-columns: 2rem 1fr auto;
}
.pledge summary::-webkit-details-marker,
.faq summary::-webkit-details-marker {
  display: none;
}
.pledge__n {
  font-family: var(--mono);
  font-size: 0.78rem;
  color: var(--gold);
}
.pledge__t,
.faq summary {
  font-family: var(--display);
  font-size: clamp(1.08rem, 1rem + 0.45vw, 1.3rem);
  font-weight: 600;
  line-height: 1.25;
  letter-spacing: -0.025em;
}
.pledge__x,
.faq summary::after {
  content: "";
  flex: none;
  width: 2rem;
  height: 2rem;
  border: 1px solid var(--line-strong);
  border-radius: 50%;
  background:
    linear-gradient(var(--navy), var(--navy)) center / 0.7rem 1.5px no-repeat,
    linear-gradient(var(--navy), var(--navy)) center / 1.5px 0.7rem no-repeat;
  transition: rotate 300ms var(--ease), background-color 200ms, border-color 200ms;
}
.pledge summary:hover .pledge__x,
.faq summary:hover::after {
  border-color: var(--navy);
}
.pledge[open] .pledge__x,
.faq[open] summary::after {
  rotate: 135deg;
  border-color: var(--honey);
  background-color: var(--honey);
}
.pledge__a,
.faq__a {
  max-width: 44rem;
  padding: 0 3rem 1.25rem 0;
  line-height: 1.65;
  color: var(--soft);
}
.pledge__a {
  padding-left: 3rem;
}
@media (min-width: 900px) {
  .pledges,
  .faqs {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

/* Brief builder: three choices on the left become one sentence on the right */
.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 0.75rem;
}
.brief fieldset {
  margin: 0;
  padding: 0;
  border: 0;
}
.brief fieldset + fieldset {
  margin-top: 1.5rem;
}
.brief legend {
  padding: 0;
}
.chips label {
  position: relative;
}
.chips input {
  position: absolute;
  inset: 0;
  opacity: 0;
  cursor: pointer;
}
.chips span {
  display: inline-flex;
  align-items: center;
  min-height: 2.6rem;
  padding: 0.4rem 1rem;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  font-size: 0.93rem;
  font-weight: 500;
  color: var(--soft);
  transition: background-color 180ms, border-color 180ms, color 180ms;
}
.chips label:hover span {
  border-color: var(--navy);
  color: var(--fg);
}
.chips input:checked + span {
  border-color: var(--navy);
  background: var(--navy);
  color: #fff;
}
.chips input:focus-visible + span {
  outline: 2px solid var(--navy);
  outline-offset: 3px;
}
.brief__out {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 2rem;
}
.brief__text {
  margin-top: 0.9rem;
  font-family: var(--display);
  font-size: clamp(1.35rem, 1.1rem + 1.1vw, 2rem);
  font-weight: 500;
  line-height: 1.3;
  letter-spacing: -0.03em;
}
.brief__text b {
  font-weight: 600;
  background: linear-gradient(var(--honey), var(--honey)) 0 90% / 100% 0.14em no-repeat;
}

/* Contact channels: the contact page's hero visual */
.channels {
  padding: 0.6rem;
  border-radius: var(--radius);
  background: var(--bg);
  box-shadow: 0 0 0 1px rgba(20, 39, 78, 0.07), var(--shadow);
}
.channels li > * {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: 1rem;
  align-items: center;
  padding: 0.85rem 0.9rem;
  border-radius: var(--radius-sm);
  transition: background-color 200ms;
}
.channels a:hover {
  background: var(--surface);
}
.channels .mono-label {
  display: block;
}
.channels b {
  display: block;
  margin-top: 0.15rem;
  font-family: var(--display);
  font-size: 1.05rem;
  font-weight: 600;
  line-height: 1.3;
  letter-spacing: -0.02em;
  overflow-wrap: anywhere;
}
.channels a > .icon {
  width: 1.1rem;
  height: 1.1rem;
  color: var(--gold);
}
/* Stays in view beside a longer column (the form). */
@media (min-width: 1024px) {
  .sticky {
    position: sticky;
    top: calc(var(--header-h) + 1.5rem);
    align-self: start;
  }
}

/* System diagram: apps, one API, and what sits behind it. Stacks on small screens. */
.system {
  display: grid;
  align-items: center;
}
.system__col {
  display: grid;
  gap: var(--space-item);
}
.node {
  padding: 1.25rem 1.4rem;
  border-radius: var(--radius);
  background: var(--surface);
}
.node b {
  display: block;
  margin-top: 0.35rem;
  font-family: var(--display);
  font-size: 1.2rem;
  font-weight: 600;
  letter-spacing: -0.02em;
}
.node p {
  margin-top: 0.3rem;
  font-size: 0.93rem;
  line-height: 1.5;
  color: var(--soft);
}
.node--core {
  padding: 2rem 1.75rem;
  background: var(--navy);
  color: #fff;
}
.node--core .mono-label {
  color: var(--honey);
}
.node--core b {
  font-size: 1.7rem;
}
.node--core p {
  color: #d5dcea;
}
.system__link {
  justify-self: center;
  width: 2px;
  height: 2.25rem;
  background: repeating-linear-gradient(180deg, var(--navy) 0 6px, transparent 6px 12px);
  animation: dash-y 900ms linear infinite;
}
@media (min-width: 900px) {
  .system {
    grid-template-columns: minmax(0, 1fr) 4.5rem minmax(0, 1.1fr) 4.5rem minmax(0, 1fr);
  }
  .system__link {
    width: 100%;
    height: 2px;
    background: repeating-linear-gradient(90deg, var(--navy) 0 6px, transparent 6px 12px);
    animation-name: dash-x;
  }
}

/* A statement whose words darken as it scrolls past (main.js scrubs the opacity) */
.manifesto {
  font-family: var(--display);
  font-size: clamp(1.45rem, 1.1rem + 1.7vw, 2.4rem);
  font-weight: 600;
  line-height: 1.2;
  letter-spacing: -0.035em;
}

/* 10 Content components ---------------------------------------------------- */
/* Cards: what something is, in a soft tile. Never placed inside another box. */
.cards {
  display: grid;
  gap: var(--space-item);
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 17rem), 1fr));
}
.cards > li {
  padding: 1.5rem;
}
.cards h3 {
  margin-top: 1.25rem;
  font-size: 1.2rem;
}
.cards p {
  margin-top: 0.5rem;
  font-size: 0.97rem;
  line-height: 1.6;
  color: var(--soft);
}
.hex-icon,
.callout__icon {
  display: grid;
  place-items: center;
  width: 2.8rem;
  height: 3.15rem;
  background: var(--honey);
  clip-path: var(--hex);
  color: var(--navy-900);
}
.hex-icon .icon {
  width: 1.25rem;
  height: 1.25rem;
}

/* Spec sheet: numbered group on the left, capabilities across the rest */
.spec__group {
  display: grid;
  gap: 0.75rem var(--space-gap);
  padding-block: 1rem;
}
.spec dt {
  display: flex;
  align-items: baseline;
  gap: 0.9rem;
  font-family: var(--display);
  font-size: 1.25rem;
  font-weight: 600;
  letter-spacing: -0.025em;
}
.spec dt {
  align-items: center;
}
.spec dt span {
  display: grid;
  place-items: center;
  flex: none;
  width: 2.2rem;
  height: 2.5rem;
  background: var(--honey);
  clip-path: var(--hex);
  font-family: var(--display);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0;
  color: var(--navy-900);
}
.spec ul {
  display: grid;
  gap: 0.7rem 2.5rem;
}
.spec li {
  display: flex;
  gap: 0.75rem;
  font-size: 0.97rem;
  line-height: 1.5;
  color: var(--soft);
}
.spec li .hex-dot {
  margin-top: 0.5em;
}
@media (min-width: 640px) {
  .spec ul {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (min-width: 1024px) {
  .spec__group {
    grid-template-columns: minmax(0, 3fr) minmax(0, 9fr);
  }
}
@media (min-width: 1280px) {
  .spec ul {
    grid-template-columns: repeat(4, 1fr);
  }
}

/* Tick and cross lists flow into as many columns as fit */
.ticks,
.crosses {
  display: grid;
  align-content: start;
  gap: 0 var(--space-gap);
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 22rem), 1fr));
}
.ticks--single {
  grid-template-columns: 1fr;
}
.ticks li,
.crosses li {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 0.9rem;
  padding-block: 0.6rem;
  line-height: 1.55;
  color: var(--soft);
}
.ticks strong,
.crosses strong {
  font-weight: 600;
  color: var(--fg);
}
.ticks .icon,
.crosses .icon {
  width: 1.3rem;
  height: 1.3rem;
  margin-top: 0.15rem;
}
.ticks .icon {
  padding: 0.2rem;
  border-radius: 50%;
  background: var(--honey);
  color: var(--navy-900);
  stroke-width: 3;
}
.crosses .icon {
  color: var(--danger);
}

/* Facts: a row of figures divided by honey rules */
.facts {
  display: grid;
  gap: 1.5rem 2rem;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}
.facts > div {
  display: flex;
  flex-direction: column-reverse;
  justify-content: flex-end;
  gap: 0.35rem;
}
.facts dt {
  font-family: var(--mono);
  font-size: 0.7rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
}
.facts dd {
  font-family: var(--display);
  font-size: clamp(1.15rem, 1rem + 0.7vw, 1.5rem);
  font-weight: 600;
  letter-spacing: -0.03em;
}
@media (min-width: 900px) {
  .facts--row {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

/* Founder */
.founder {
  display: grid;
  gap: 2rem var(--space-gap);
  align-items: center;
}
.founder > * {
  min-width: 0;
}
.founder__photo {
  width: 10rem;
  height: 11.55rem;
  object-fit: cover;
  clip-path: var(--hex);
}
.founder__photo--initials {
  display: grid;
  place-items: center;
  background: var(--honey);
  font-family: var(--display);
  font-size: 2.6rem;
  font-weight: 600;
  letter-spacing: -0.04em;
  color: var(--navy-900);
}
.founder .lead {
  max-width: 52rem;
}
.founder .btn-row {
  margin-top: 1.5rem;
}
.stacked-logo {
  width: min(100%, 15rem);
  margin-inline: auto;
}
@media (min-width: 768px) {
  .founder {
    grid-template-columns: auto minmax(0, 1fr);
  }
}

/* Bands: the hero's gradient, used for one or two sections in the middle of a page
   and for the closing call to action. Scalloped edges, never a straight line. */
.section--band {
  position: relative;
  isolation: isolate;
  overflow: clip;
  background: var(--band);
}
.section--band::before,
.section--band::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  height: calc(var(--scallop) + 1px);
  pointer-events: none;
}
.section--band::before {
  top: -1px;
  background: radial-gradient(circle at 50% 0, var(--bg) calc(var(--scallop) - 1px), transparent var(--scallop)) 0 0 / calc(var(--scallop) * 2.6) 100% repeat-x;
}
.section--band::after {
  bottom: -1px;
  background: radial-gradient(circle at 50% 100%, var(--bg) calc(var(--scallop) - 1px), transparent var(--scallop)) 0 0 / calc(var(--scallop) * 2.6) 100% repeat-x;
}
/* Soft tiles read as white on a band, not grey. */
.section--band .cards > li,
.section--band .bento__cell,
.section--band .pledge,
.section--band .faq,
.section--band .node:not(.node--core),
.section--band .callout {
  background: rgba(255, 255, 255, 0.72);
}
.section--band .cards > li:hover,
.section--band .bento__cell:hover {
  background: var(--bg);
}
.section--band .hex-field {
  mask-image: radial-gradient(ellipse 55% 120% at 100% 50%, #000 0%, transparent 70%);
}

/* Closing call to action: the last band on the page. It runs straight into the
   footer, which carries the same gradient, so the page ends in one band. */
.cta-band {
  padding-bottom: 0;
}
.cta-band::after {
  display: none;
}
body:has(.cta-band) .footer {
  padding-top: 0;
}
body:has(.cta-band) .footer::before {
  display: none;
}
.cta {
  display: grid;
  gap: 1.75rem var(--space-gap);
  align-items: end;
  padding-bottom: var(--space-block);
}
.cta .h-section {
  font-size: clamp(2rem, 1.3rem + 2.6vw, 3.4rem);
  letter-spacing: -0.04em;
}
.cta .lead {
  margin-top: 1rem;
  max-width: 44rem;
}
@media (min-width: 1024px) {
  .cta {
    grid-template-columns: minmax(0, 1fr) auto;
  }
}

/* Statement box */
.callout {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 1.25rem;
  align-items: start;
  padding: 1.5rem;
  border-radius: var(--radius);
  background: var(--surface);
}
.callout .icon {
  width: 1.25rem;
  height: 1.25rem;
}
.callout h3 {
  font-size: 1.2rem;
}
.callout p {
  max-width: 64rem;
  margin-top: 0.5rem;
  font-size: 0.98rem;
  line-height: 1.6;
  color: var(--soft);
}

/* Numbered steps: columns under one rule */
.steps {
  display: grid;
  gap: 1.75rem var(--space-gap);
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 14rem), 1fr));
  counter-reset: step;
}
.steps li {
  counter-increment: step;
}
.steps li::before {
  content: counter(step, decimal-leading-zero);
  display: grid;
  place-items: center;
  width: 2.6rem;
  height: 2.95rem;
  background: var(--honey);
  clip-path: var(--hex);
  font-family: var(--display);
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--navy-900);
}
.steps h3 {
  margin-top: 1rem;
  font-size: 1.2rem;
}
.steps p {
  margin-top: 0.45rem;
  font-size: 0.96rem;
  line-height: 1.55;
  color: var(--soft);
}

/* Definition list (company details, technology): two columns of rows */
.details {
  display: grid;
  gap: 0 var(--space-gap);
  font-size: 0.98rem;
}
.details > div {
  display: grid;
  gap: 0.2rem 1.5rem;
  padding-block: 0.6rem;
}
.details dt {
  font-family: var(--mono);
  font-size: 0.72rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
}
@media (min-width: 640px) {
  .details > div {
    grid-template-columns: 10rem 1fr;
  }
  .details dt {
    padding-top: 0.3rem;
  }
}
@media (min-width: 1024px) {
  .details {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

/* Case study: text and one visual */
.case {
  display: grid;
  gap: 2rem var(--space-gap);
  align-items: center;
}
.case > * {
  min-width: 0;
}
.case__body h3 {
  margin-top: 1rem;
  font-size: clamp(1.4rem, 1.2rem + 0.9vw, 2rem);
  letter-spacing: -0.035em;
}
.case__body > p {
  max-width: 44rem;
  margin-top: 0.9rem;
  color: var(--soft);
}
.case__body .more {
  margin-top: 1.5rem;
}
.case__facts {
  margin-top: 1.5rem;
}
.case__facts > div {
  display: grid;
  gap: 0.2rem 1.5rem;
  padding-block: 0.55rem;
}
.case__facts dt {
  font-family: var(--mono);
  font-size: 0.7rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--gold);
}
.case__facts dd {
  font-size: 0.97rem;
  line-height: 1.6;
  color: var(--soft);
}
.case__stack {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 1.25rem;
}
.case--row + .case--row {
  margin-top: var(--space-section);
}
@media (min-width: 640px) {
  .case__facts > div {
    grid-template-columns: 8.5rem 1fr;
  }
  .case__facts dt {
    padding-top: 0.3rem;
  }
}
@media (min-width: 1024px) {
  .case--row {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .case--flip > :first-child {
    order: 2;
  }
}

/* 11 Product visuals ------------------------------------------------------- */
.phone {
  width: 100%;
  max-width: 16rem;
  margin-inline: auto;
  padding: 0.45rem;
  border-radius: 2.3rem;
  background: var(--navy-900);
  box-shadow: var(--shadow);
}
.phone img {
  width: 100%;
  height: auto;
  aspect-ratio: 700 / 1517;
  border-radius: 1.9rem;
  background: var(--honey-50);
}
.phones {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  align-items: start;
  gap: 1.25rem;
  max-width: 32rem;
  margin-inline: auto;
}
.phones .phone:last-child {
  margin-top: 3rem;
}
.shot-caption,
figure > figcaption {
  margin-top: 1rem;
  font-size: 0.8rem;
  line-height: 1.55;
  color: var(--muted);
}
.shot-caption {
  text-align: center;
}
.window {
  overflow: hidden;
  border-radius: var(--radius);
  background: var(--bg);
  box-shadow: 0 0 0 1px rgba(20, 39, 78, 0.07), var(--shadow);
}
.window__bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 0.65rem 1rem;
  background: var(--surface);
}
.window__title {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--mono);
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}
.window__title::before {
  content: "";
  width: 0.55rem;
  height: 0.62rem;
  background: var(--honey);
  clip-path: var(--hex);
}
.window__title b {
  color: var(--fg);
}
.kpis {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
}
.kpis > div {
  padding: 0.9rem 1rem;
}
.kpis dt {
  font-family: var(--mono);
  font-size: 0.64rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}
.kpis dd {
  margin-top: 0.3rem;
  font-family: var(--display);
  font-size: 1.3rem;
  font-weight: 600;
  letter-spacing: -0.02em;
  font-variant-numeric: tabular-nums;
}
.kpis small {
  display: block;
  margin-top: 0.15rem;
  font-family: var(--sans);
  font-size: 0.74rem;
  font-weight: 400;
  letter-spacing: 0;
  color: var(--muted);
}
.window__body > * {
  min-width: 0;
  padding: 1rem;
}
.data-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.8rem;
  font-variant-numeric: tabular-nums;
  text-align: left;
}
.data-table th {
  padding-bottom: 0.5rem;
  font-family: var(--mono);
  font-size: 0.62rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}
.data-table td {
  padding-block: 0.5rem;
  color: var(--soft);
}
.data-table td:first-child {
  font-weight: 600;
  color: var(--fg);
}
.data-table .num {
  text-align: right;
}
.queue {
  display: grid;
  gap: 0.75rem;
}
.queue li {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 0.6rem;
  font-size: 0.8rem;
  line-height: 1.4;
  color: var(--soft);
}
.queue .icon {
  width: 1rem;
  height: 1rem;
  margin-top: 0.1rem;
  color: var(--gold);
}
.queue b {
  display: block;
  font-weight: 600;
  color: var(--fg);
}
@media (min-width: 640px) {
  .kpis {
    grid-template-columns: repeat(4, 1fr);
  }
}

/* 12 Forms ---------------------------------------------------------------- */
.contact-list {
  display: grid;
  gap: 0.9rem;
  margin-top: 1.5rem;
  font-size: 0.97rem;
  color: var(--soft);
}
.contact-list li {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 0.75rem;
}
.contact-list .icon {
  width: 1.1rem;
  height: 1.1rem;
  margin-top: 0.25rem;
  color: var(--gold);
}
.form {
  display: grid;
  gap: 1.25rem;
}
.form__row {
  display: grid;
  gap: 1.25rem;
}
.field {
  display: grid;
  gap: 0.45rem;
  min-width: 0;
  margin: 0;
  padding: 0;
  border: 0;
}
.field label,
.field legend {
  padding: 0;
  font-size: 0.875rem;
  font-weight: 600;
}
.field legend {
  margin-bottom: 0.5rem;
}
.field .optional {
  font-weight: 400;
  color: var(--muted);
}
.hint {
  font-size: 0.8125rem;
  line-height: 1.5;
  color: var(--muted);
}
.input {
  width: 100%;
  min-height: 3rem;
  padding: 0.7rem 0.95rem;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-sm);
  background: var(--bg);
  font-size: 1rem;
  transition: border-color 160ms, box-shadow 160ms;
}
.input:hover {
  border-color: var(--muted);
}
.input:focus {
  outline: none;
  border-color: var(--navy);
  box-shadow: 0 0 0 4px var(--honey-100);
}
select.input {
  appearance: none;
  padding-right: 2.5rem;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12' fill='none' stroke='%2314274E' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m2.5 4.5 3.5 3.5 3.5-3.5'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 0.95rem center;
  background-size: 0.8rem;
}
textarea.input {
  min-height: 8rem;
  resize: vertical;
}
.choices {
  display: grid;
  gap: 0.6rem;
}
.check {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 0.7rem;
  align-items: start;
  font-size: 0.95rem;
  line-height: 1.5;
  color: var(--soft);
  cursor: pointer;
}
.check input {
  width: 1.15rem;
  height: 1.15rem;
  margin: 0.2rem 0 0;
  accent-color: var(--navy);
}
.form__trap {
  position: absolute;
  left: -100vw;
  width: 1px;
  height: 1px;
  overflow: hidden;
}
.form__actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1rem 1.5rem;
}
.form__status {
  font-size: 0.92rem;
  color: var(--muted);
}
.form__status.is-error {
  color: var(--danger);
}
.form__done {
  padding: 1.75rem;
  border-radius: var(--radius);
  background: var(--ok-bg);
}
.form__done strong {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-family: var(--display);
  font-size: 1.3rem;
  color: var(--ok);
}
.form__done p {
  margin-top: 0.5rem;
  color: var(--soft);
}
@media (min-width: 640px) {
  .form__row,
  .choices--2 {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (min-width: 1280px) {
  .choices--2 {
    grid-template-columns: repeat(3, 1fr);
  }
}

/* 13 Prose (legal pages) --------------------------------------------------- */
.prose {
  max-width: 50rem;
  color: var(--soft);
}
.prose > * + * {
  margin-top: 1.1rem;
}
.prose h2 {
  margin-top: 2.5rem;
  font-size: 1.5rem;
  color: var(--fg);
}
.prose h2:first-child {
  margin-top: 0;
}
.prose h3 {
  margin-top: 1.75rem;
  font-size: 1.15rem;
  color: var(--fg);
}
.prose strong {
  font-weight: 600;
  color: var(--fg);
}
.prose a {
  color: var(--fg);
  text-decoration: underline;
  text-decoration-color: var(--honey);
  text-decoration-thickness: 2px;
  text-underline-offset: 0.2em;
}
.prose a:hover {
  text-decoration-color: var(--navy);
}
.prose ul,
.prose ol {
  display: grid;
  gap: 0.6rem;
}
.prose ul > li {
  position: relative;
  padding-left: 1.4rem;
}
.prose ul > li::before {
  content: "";
  position: absolute;
  top: 0.62em;
  left: 0.1rem;
  width: 0.5rem;
  height: 0.56rem;
  background: var(--honey);
  clip-path: var(--hex);
}
.prose ol {
  padding-left: 1.4rem;
  list-style: decimal;
}
.prose ol > li::marker {
  font-family: var(--mono);
  font-size: 0.85em;
  color: var(--gold);
}
.prose blockquote {
  padding-left: 1.25rem;
  border-left: 2px solid var(--honey);
}
.prose table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.92rem;
  text-align: left;
}
.prose th,
.prose td {
  padding: 0.8rem 1rem 0.8rem 0;
  border-bottom: 1px solid var(--line);
  vertical-align: top;
}
.prose th {
  font-family: var(--mono);
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
}
.prose .table-scroll {
  overflow-x: auto;
}
.prose .table-scroll table {
  min-width: 34rem;
}

/* 14 Motion --------------------------------------------------------------- */
/* Smooth scrolling is Lenis (vendor/lenis). These are the rules it asks for. */
html.lenis,
html.lenis body {
  height: auto;
}
html.lenis {
  scroll-behavior: auto;
}
.lenis.lenis-stopped {
  overflow: clip;
}
/* Page to page: a short cross-fade where the browser supports it. */
@view-transition {
  navigation: auto;
}
::view-transition-old(root) {
  animation: 200ms ease-in both vt-out;
}
::view-transition-new(root) {
  animation: 380ms var(--ease) both vt-in;
}
/* Headings are hidden until main.js has split their lines, so they never flash unsplit. */
.split-pending .h-section,
.split-pending .h-page {
  opacity: 0;
}
.split-line {
  padding-bottom: 0.1em;
  margin-bottom: -0.1em;
}
.h-page > span[data-chars] {
  overflow: hidden;
  padding-bottom: 0.14em;
  margin-bottom: -0.14em;
}

@keyframes blink {
  50% { opacity: 0; }
}
@keyframes spin {
  to { rotate: 360deg; }
}
@keyframes marquee {
  to { transform: translateX(-50%); }
}
@keyframes fill {
  from { transform: scaleX(0); }
  to { transform: scaleX(1); }
}
@keyframes panel-in {
  from { opacity: 0; translate: 0 10px; }
}
@keyframes build {
  0%, 12% { border-style: dashed; border-color: var(--line-strong); background: transparent; }
  22%, 82% { border-style: solid; border-color: var(--honey); background: var(--honey-100); }
  94%, 100% { border-style: dashed; border-color: var(--line-strong); background: transparent; }
}
@keyframes row {
  0%, 20% { background: var(--honey); }
  25%, 100% { background: var(--line); }
}
@keyframes ring {
  from { scale: 0.5; opacity: 0.9; }
  to { scale: 1.5; opacity: 0; }
}
@keyframes flow {
  from { left: 0; opacity: 0; }
  12%, 88% { opacity: 1; }
  to { left: 100%; opacity: 0; }
}
@keyframes tick {
  0%, 18% { opacity: 0; }
  20%, 100% { opacity: 1; }
}
@keyframes bar {
  0%, 100% { scale: 1 0.35; }
  50% { scale: 1 1; }
}
@keyframes dash-x {
  to { background-position: 12px 0; }
}
@keyframes dash-y {
  to { background-position: 0 12px; }
}
@keyframes vt-out {
  to { opacity: 0; }
}
@keyframes vt-in {
  from { opacity: 0; translate: 0 10px; }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  .marquee__track {
    animation: none;
  }
  .rotator::after {
    display: none;
  }
}
@media print {
  .header,
  .progress,
  .hexcanvas {
    display: none;
  }
}

/* Emphasis in headings: a honey underline that skips letter tails. */
.h-page em,
.h-section em,
.js .h-page em,
.js .h-section em {
  background: none;
  text-decoration-line: underline;
  text-decoration-color: var(--honey);
  text-decoration-thickness: 0.1em;
  text-underline-offset: 0.14em;
  text-decoration-skip-ink: none;
}
.js .h-page em,
.js .h-section em {
  text-decoration-color: transparent;
  transition: text-decoration-color 700ms var(--ease) 400ms;
}
.js .is-lit em {
  text-decoration-color: var(--honey);
}
.brief__text b {
  background: none;
  text-decoration: underline var(--honey) 0.1em;
  text-underline-offset: 0.16em;
  text-decoration-skip-ink: none;
}
/* A hero that ends in a figures row keeps less space under its text. */
.page-hero__inner:has(+ .stats) {
  padding-bottom: 1.5rem;
}
/* The stacked logo keeps its proportions when scaled. */
.stacked-logo {
  height: auto;
}
/* The honeycomb's centre number takes the cell size, not the label size. */
.comb__core b {
  font-size: inherit;
  line-height: 1;
}
/* Figures never break across lines. */
.stats dd {
  white-space: nowrap;
}

/* Documents: contents list beside the text (left on wide screens, above it on phones).
   main.js marks the section being read. */
.doc {
  display: grid;
  gap: var(--space-block) var(--space-gap);
}
.doc > * {
  min-width: 0;
}
.toc {
  padding: 1.25rem;
  border-radius: var(--radius);
  background: var(--surface);
}
.toc ol {
  display: grid;
  gap: 0.1rem;
  margin-top: 0.75rem;
  counter-reset: toc;
}
.toc a {
  display: grid;
  grid-template-columns: 1.6rem 1fr;
  gap: 0.25rem;
  padding: 0.45rem 0.75rem;
  border-radius: var(--radius-sm);
  font-size: 0.92rem;
  line-height: 1.4;
  color: var(--soft);
  transition: background-color 180ms, color 180ms;
}
.toc a::before {
  counter-increment: toc;
  content: counter(toc, decimal-leading-zero);
  padding-top: 0.12rem;
  font-family: var(--mono);
  font-size: 0.72rem;
  color: var(--muted);
}
.toc a:hover {
  background: var(--bg);
  color: var(--fg);
}
.toc a[aria-current="location"] {
  background: var(--bg);
  font-weight: 600;
  color: var(--fg);
  box-shadow: inset 3px 0 0 var(--honey);
}
.toc a[aria-current="location"]::before {
  color: var(--gold);
}
@media (min-width: 1024px) {
  .doc {
    grid-template-columns: 17rem minmax(0, 54rem);
    align-items: start;
  }
  .toc {
    position: sticky;
    top: calc(var(--header-h) + 1.5rem);
  }
  .doc .prose {
    max-width: none;
  }
}

/* Type scale ------------------------------------------------------------------
   One set of sizes for the whole site. Every heading, card title and card text
   takes its size from here, so no two sections drift apart.
     --t-1  page titles          --t-2  section titles
     --t-3  panel titles         --t-4  card titles and list headings
     --t-lead  intros            --t-small  card and list text */
:root {
  --t-1: clamp(2.3rem, 1.45rem + 2.9vw, 3.9rem);
  --t-2: clamp(1.8rem, 1.35rem + 1.6vw, 2.75rem);
  --t-3: clamp(1.4rem, 1.2rem + 0.75vw, 1.9rem);
  --t-4: clamp(1.1rem, 1.04rem + 0.25vw, 1.28rem);
  --t-lead: clamp(1.06rem, 1rem + 0.3vw, 1.22rem);
  --t-small: 0.97rem;
}
.h-page {
  font-size: var(--t-1);
  line-height: 1.06;
  letter-spacing: -0.035em;
}
.h-section {
  font-size: var(--t-2);
  line-height: 1.12;
  letter-spacing: -0.03em;
}
.cta .h-section {
  font-size: clamp(2rem, 1.35rem + 2.4vw, 3.3rem);
  line-height: 1.08;
}
.stepper__panel h3,
.comb__item h3,
.case__body h3 {
  font-size: var(--t-3);
  line-height: 1.2;
  letter-spacing: -0.03em;
}
.bento h3,
.cards h3,
.steps h3,
.callout h3,
.node b,
.spec dt,
.pledge__t,
.faq summary,
.prose h3 {
  font-size: var(--t-4);
  line-height: 1.3;
  letter-spacing: -0.02em;
}
.prose h2 {
  font-size: var(--t-3);
  line-height: 1.2;
}
.lead,
.page-hero .lead {
  font-size: var(--t-lead);
  line-height: 1.6;
}
.bento p,
.cards p,
.steps p,
.callout p,
.node p,
.spec li,
.case__facts dd,
.stepper__get li,
.ticks li,
.crosses li,
.faq__a,
.pledge__a {
  font-size: var(--t-small);
  line-height: 1.6;
}

/* Feature sections: a text column beside the content (home sections 2 and 3). */
.feature {
  display: grid;
  gap: var(--space-block) var(--space-gap);
  align-items: center;
}
.feature > * {
  min-width: 0;
}
.feature__aside .h-section {
  margin-top: 0.9rem;
}
.feature__aside .lead,
.feature__aside .manifesto {
  margin-top: 1.25rem;
  max-width: 34rem;
}
.feature__aside .btn-row {
  margin-top: 1.75rem;
}
@media (min-width: 1024px) {
  .feature {
    grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  }
  .feature--sticky {
    align-items: start;
  }
  .feature--sticky .feature__aside {
    position: sticky;
    top: calc(var(--header-h) + 2rem);
  }
}

/* The statement beside the comparison: large, but a step below the title. */
.manifesto {
  font-family: var(--display);
  font-size: clamp(1.15rem, 1.04rem + 0.5vw, 1.45rem);
  font-weight: 500;
  line-height: 1.5;
  letter-spacing: -0.015em;
}

/* Comparison: finished when it ships, against right for years after. */
.versus-wrap {
  overflow-x: auto;
  border-radius: var(--radius);
  background: var(--surface);
}
.versus {
  width: 100%;
  min-width: 34rem;
  border-collapse: collapse;
  text-align: left;
}
.versus th,
.versus td {
  padding: 1rem 1.25rem;
  vertical-align: top;
}
.versus thead th {
  padding-block: 1.25rem 0.75rem;
  font-family: var(--mono);
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
}
.versus thead th:last-child {
  color: var(--gold);
}
.versus tbody th {
  width: 9.5rem;
  font-family: var(--display);
  font-size: var(--t-small);
  font-weight: 600;
  letter-spacing: -0.01em;
}
.versus td {
  font-size: var(--t-small);
  line-height: 1.5;
  color: var(--muted);
}
.versus td {
  position: relative;
  padding-left: 3.1rem;
}
.versus td .icon {
  position: absolute;
  top: 1.12rem;
  left: 1.25rem;
  width: 1.15rem;
  height: 1.15rem;
}
.versus td:nth-child(2) .icon {
  color: var(--line-strong);
}
.versus td:last-child {
  background: var(--bg);
  font-weight: 600;
  color: var(--fg);
}
.versus td:last-child .icon {
  padding: 0.17rem;
  border-radius: 50%;
  background: var(--honey);
  color: var(--navy-900);
  stroke-width: 3;
}
.versus thead th:last-child,
.versus td:last-child {
  box-shadow: inset 3px 0 0 var(--honey);
}
.versus tbody tr:last-child td:last-child {
  border-bottom-right-radius: var(--radius);
}
.versus thead th:last-child {
  background: var(--bg);
  border-top-right-radius: var(--radius);
}

/* Services as an even grid of six beside the sticky text column. */
.bento--grid {
  grid-template-columns: minmax(0, 1fr);
}
.bento--grid .viz {
  flex: none;
  height: 5.5rem;
  min-height: 0;
}
@media (min-width: 640px) {
  .bento--grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
@media (min-width: 1100px) {
  .bento--grid .bento__cell,
  .bento--grid .bento__cell:nth-child(n) {
    grid-column: auto;
  }
}
/* On phones the comparison stacks: stage, then the usual way, then ours. */
@media (max-width: 639px) {
  .versus {
    min-width: 0;
  }
  .versus thead {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip-path: inset(50%);
  }
  .versus tbody,
  .versus tr,
  .versus th,
  .versus td {
    display: block;
  }
  .versus tr {
    padding: 1.1rem 1.25rem 0.9rem;
  }
  .versus tbody th {
    width: auto;
    padding: 0 0 0.4rem;
  }
  .versus td,
  .versus td:last-child {
    padding: 0.3rem 0 0.3rem 1.9rem;
    background: none;
    box-shadow: none;
  }
  .versus td .icon {
    top: 0.42rem;
    left: 0;
  }
}

/* Feature sections: what sits in each column ---------------------------------- */
.feature__body {
  min-width: 0;
}
.feature__aside .founder__photo {
  width: 6rem;
  height: 6.93rem;
  margin-bottom: 1.5rem;
  font-size: 1.6rem;
}
/* Principles: the honeycomb with the selected rule under it. */
.feature__body .comb {
  grid-template-columns: minmax(0, 1fr);
  gap: var(--space-block);
}
.feature__body .comb__cells {
  margin-inline: auto;
}
/* Commitments and questions: one column of rows beside the text. */
.feature__body .pledges,
.feature__body .faqs {
  grid-template-columns: minmax(0, 1fr);
}
.feature__body .pledges > :nth-child(-n + 2),
.feature__body .faqs > :nth-child(-n + 2) {
  border-top: 0;
}
/* Case studies stacked, each with its text above its picture. */
.cases {
  display: grid;
  gap: var(--space-section);
}
/* Brief: the sentence and the send button sit in the text column, on a white card. */
.feature__aside .brief__out {
  display: block;
  margin-top: 2rem;
  padding: 1.5rem;
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.78);
}
.feature__aside .brief__out .btn-row {
  margin-top: 1.5rem;
}
.feature__body .brief fieldset + fieldset {
  margin-top: 2rem;
}
/* Founder facts: four soft tiles. */
.facts--big {
  gap: var(--space-item);
}
.facts--big > div {
  padding: 1.5rem;
  border-radius: var(--radius);
  background: var(--surface);
}
.facts--big dd {
  font-size: var(--t-2);
  line-height: 1.1;
}
.facts--big dt {
  font-family: var(--sans);
  font-size: var(--t-small);
  letter-spacing: 0;
  text-transform: none;
  line-height: 1.5;
}

/* Header and footer, final ------------------------------------------------------
   Header: logo left, links truly centred, actions right. The full link row shows
   only where it fits on one line (1180px and up); below that, the menu button. */
.header {
  transition: box-shadow 260ms var(--ease), background-color 260ms;
}
.header.is-scrolled {
  background: rgba(255, 255, 255, 0.97);
  box-shadow: 0 12px 30px -22px rgba(20, 39, 78, 0.45);
}
.header__bar {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
  grid-template-areas: "logo nav actions";
  gap: 1.5rem;
}
.header .logo {
  grid-area: logo;
  justify-self: start;
}
.nav {
  grid-area: nav;
}
.header__actions {
  grid-area: actions;
  justify-self: end;
}
.nav__link {
  padding: 0 0.85rem;
  white-space: nowrap;
}
.nav__link::after {
  inset: auto 0.85rem 1.05rem 0.85rem;
}
@media (min-width: 1024px) {
  .nav {
    display: none;
  }
  .nav-toggle {
    display: grid !important;
  }
}
@media (min-width: 1180px) {
  .nav {
    display: block;
  }
  .nav-toggle,
  .mobile-nav {
    display: none !important;
  }
}

/* Phone and tablet menu: a sheet that fills the screen under the header. */
.mobile-nav {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  height: calc(100dvh - var(--header-h));
  overflow-y: auto;
  overscroll-behavior: contain;
  background: var(--bg);
}
.mobile-nav__inner {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 2rem;
  min-height: 100%;
  padding-block: 1rem 2rem;
}
.mobile-nav__list {
  display: grid;
}
.mobile-nav a.mobile-nav__link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.85rem 0;
  font-family: var(--display);
  font-size: clamp(1.35rem, 1.1rem + 1.2vw, 1.75rem);
  font-weight: 600;
  letter-spacing: -0.025em;
  color: var(--fg);
}
.mobile-nav__link .icon {
  width: 1.2rem;
  height: 1.2rem;
  color: var(--muted);
  transition: transform 220ms var(--ease), color 220ms;
}
.mobile-nav__link:hover .icon,
.mobile-nav__link[aria-current="page"] .icon {
  color: var(--gold);
  transform: translate(2px, -2px);
}
.mobile-nav__link[aria-current="page"] span {
  text-decoration: underline var(--honey) 0.12em;
  text-underline-offset: 0.2em;
}
.mobile-nav__foot .btn {
  width: 100%;
  margin-top: 0;
}
.mobile-nav__contact {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1.5rem;
  margin-top: 1.25rem;
  font-size: 0.95rem;
  color: var(--soft);
}
.mobile-nav__contact > * {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}
.mobile-nav__contact .icon {
  width: 1rem;
  height: 1rem;
  color: var(--gold);
}
html.menu-open {
  overflow: hidden;
}

/* Footer. The wordmark is sized from the column width, so it always spans it exactly
   (Poppins 600 "Quantbees" at -0.06em tracking is 5.12em wide). */
.footer__word {
  --col: min(100vw - 2 * var(--gutter), var(--wrap));
  font-size: calc(var(--col) / 5.2);
  line-height: 0.9;
  padding-bottom: 0.08em;
  margin-top: var(--space-block);
}
.footer__cols {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}
.footer__cols nav:first-child {
  grid-row: span 2;
}
.footer__cols h2 {
  font-size: 0.72rem;
}
.footer__end {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem 2rem;
}
.footer__up {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--fg);
  white-space: nowrap;
}
.footer__up .icon {
  width: 1rem;
  height: 1rem;
  color: var(--gold);
  transform: rotate(-90deg);
  transition: transform 220ms var(--ease);
}
.footer__up:hover .icon {
  transform: rotate(-90deg) translateX(3px);
}
@media (min-width: 768px) {
  .footer__cols {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
  .footer__cols nav:first-child {
    grid-row: auto;
  }
}
@media (min-width: 1024px) {
  .footer__legal .wrap {
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: end;
    gap: 3rem;
  }
  .footer__end {
    flex-direction: column;
    align-items: flex-end;
  }
}
/* Below the link row's breakpoint the header has two parts: logo and actions. */
@media (max-width: 1179px) {
  .header__bar {
    grid-template-columns: auto minmax(0, 1fr);
    grid-template-areas: "logo actions";
  }
}
.header .logo img {
  max-width: none;
}
@media (max-width: 380px) {
  .header .logo img {
    height: 2.15rem;
  }
}
/* Contact line in the phone menu: plain text size, not menu-link size. */
.mobile-nav .mobile-nav__contact a:not(.btn) {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0;
  font-family: var(--sans);
  font-size: 0.95rem;
  font-weight: 500;
  letter-spacing: 0;
  color: var(--soft);
}

/* Heading typeface: Saira Semi Condensed ---------------------------------------------
   Open licence (SIL OFL 1.1, see assets/fonts/saira-semi-condensed-OFL.txt). Squared and
   narrower than Poppins, so headings take larger sizes once it has loaded (main.js adds
   .has-heading-font to <html>). Only headings (h1-h4) use it. */
@font-face {
  font-family: "Saira Semi Condensed";
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("../assets/fonts/saira-semi-condensed-latin-600-normal.woff2") format("woff2");
}
@font-face {
  font-family: "Saira Semi Condensed";
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url("../assets/fonts/saira-semi-condensed-latin-700-normal.woff2") format("woff2");
}
:root {
  --heading: "Saira Semi Condensed", "Poppins", "Inter Variable", system-ui, sans-serif;
}
h1,
h2,
h3,
h4 {
  font-family: var(--heading);
}
html.has-heading-font {
  --t-1: clamp(2.5rem, 1.5rem + 3.3vw, 4.4rem);
  --t-2: clamp(1.95rem, 1.42rem + 1.8vw, 3rem);
  --t-3: clamp(1.5rem, 1.26rem + 0.8vw, 2.05rem);
}
html.has-heading-font :is(h1, h2) {
  font-weight: 700;
  letter-spacing: -0.01em;
  line-height: 1.04;
}
html.has-heading-font :is(h3, h4) {
  font-weight: 600;
  letter-spacing: 0;
  line-height: 1.15;
}
html.has-heading-font :is(.bento, .cards, .steps, .callout, .prose) h3 {
  font-size: clamp(1.22rem, 1.13rem + 0.3vw, 1.4rem);
}
html.has-heading-font .cta .h-section {
  font-size: clamp(2.2rem, 1.45rem + 2.8vw, 3.8rem);
}

/* Headings are set in title case by build.py (apply_title_case). Only the word the
   home page types into its headline is capitalised here, since script writes it. */
.rotator {
  text-transform: capitalize;
}

/* Tabs ---------------------------------------------------------------------------
   One tab style for the header links and the process steps: a rounded group on a
   soft ground, the current item raised (header) or filled navy (steps). */
.nav__list {
  gap: 0.15rem;
  padding: 0.3rem;
  border-radius: 999px;
  background: var(--surface);
}
.nav__link {
  height: 2.5rem;
  padding: 0 1rem;
  border-radius: 999px;
  font-size: 0.92rem;
  font-weight: 500;
  color: var(--soft);
  transition: background-color 180ms, color 180ms, box-shadow 180ms;
}
.nav__link::after {
  display: none;
}
.nav__link:hover {
  background: rgba(255, 255, 255, 0.7);
  color: var(--fg);
}
.nav__link[aria-current="page"] {
  background: var(--bg);
  font-weight: 600;
  color: var(--fg);
  box-shadow: 0 1px 2px rgba(20, 39, 78, 0.08), 0 0 0 1px var(--line);
}

/* Process steps: rounded tabs that wrap, never squeezed into equal columns. */
.stepper__rail {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  overflow: visible;
  margin: 0;
  padding: 0;
}
.stepper__tab {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  overflow: hidden;
  padding: 0.6rem 1.15rem 0.6rem 0.75rem;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  background: var(--bg);
  color: var(--soft);
  transition: background-color 200ms, border-color 200ms, color 200ms;
}
.stepper__tab span {
  display: grid;
  place-items: center;
  width: 1.75rem;
  height: 1.75rem;
  border-radius: 50%;
  background: var(--surface);
  font-family: var(--mono);
  font-size: 0.7rem;
  letter-spacing: 0;
  color: var(--muted);
}
.stepper__tab b {
  font-family: var(--sans);
  font-size: 0.97rem;
  font-weight: 600;
  letter-spacing: -0.01em;
}
.stepper__tab:hover {
  border-color: var(--navy);
  color: var(--fg);
}
.stepper__tab[aria-selected="true"] {
  border-color: var(--navy);
  background: var(--navy);
  color: #fff;
}
.stepper__tab[aria-selected="true"] span {
  background: var(--honey);
  color: var(--navy-900);
}
/* The auto-advance timer runs along the bottom edge of the selected tab. */
.stepper__tab::after {
  inset: auto 1rem 0 1rem;
  height: 2px;
  border-radius: 2px;
}
.stepper__panel {
  padding-top: 2rem;
}

/* About page --------------------------------------------------------------------- */
/* We are / we are not: two soft columns side by side. */
.isnot {
  display: grid;
  gap: var(--space-item);
}
.isnot__col {
  padding: 1.5rem;
  border-radius: var(--radius);
  background: var(--surface);
}
.isnot__col .mono-label {
  margin-bottom: 0.5rem;
}
.isnot__col--not {
  background: var(--bg);
  box-shadow: 0 0 0 1px var(--line);
}
.isnot .ticks,
.isnot .crosses {
  grid-template-columns: minmax(0, 1fr);
}
@media (min-width: 720px) {
  .isnot {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
/* Lean ideas: a label naming the factory idea, then what it means in our work. */
.cards--lean {
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 15rem), 1fr));
}
.cards--lean .mono-label {
  color: var(--gold);
}
.cards--lean h3 {
  margin-top: 0.75rem;
}
/* Cards as a list: icon on the left, text on the right. */
.cards--list {
  grid-template-columns: minmax(0, 1fr);
}
.cards--list > li {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 1.25rem;
  align-items: start;
}
.cards--list h3 {
  margin-top: 0.35rem;
}
.mark-logo {
  width: min(100%, 13rem);
  margin: var(--space-block) 0 0;
}
/* Founder's career: the companies as large names, Sidel marked. */
.career__list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin: 0.9rem 0 var(--space-block);
}
.career__list li {
  padding: 0.6rem 1.1rem;
  border-radius: 999px;
  background: var(--surface);
  font-family: var(--heading);
  font-size: clamp(1rem, 0.95rem + 0.3vw, 1.2rem);
  font-weight: 600;
  color: var(--fg);
}
.career__list li.is-key {
  background: var(--honey);
  color: var(--navy-900);
}
.career .facts--big {
  margin-bottom: 1.25rem;
}
/* Company details on a soft card, one column. */
.details--card {
  grid-template-columns: minmax(0, 1fr);
  padding: 0.75rem 1.5rem;
  border-radius: var(--radius);
  background: var(--surface);
}

/* Hero cards on inner pages -------------------------------------------------------
   Each page's hero shows a card in the style of the home page's release checklist,
   with that page's own content. Info cards show page icons instead of ticks. On
   phones they are hidden: the figures row under the hero already sums the page up. */
.term--info .term__state {
  background: var(--honey-100);
}
.term--info li:first-child .term__state {
  background: var(--honey);
}
.term__out {
  text-transform: lowercase;
}
@media (max-width: 1023px) {
  .page-hero__visual--desk {
    display: none;
  }
}

/* Contact: map of the office (Google map, loaded on request) */
.map-card__frame {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius);
  box-shadow: 0 0 0 1px rgba(20, 39, 78, 0.07), var(--shadow);
}
.map-card__frame img {
  width: 100%;
  height: auto;
  filter: saturate(0.8) contrast(0.96);
}
.map-card__pin {
  position: absolute;
  top: 50%;
  left: 50%;
  display: grid;
  place-items: center;
  width: 3rem;
  height: 3.4rem;
  margin: -3.4rem 0 0 -1.5rem;
  background: var(--honey);
  clip-path: var(--hex);
  color: var(--navy-900);
  filter: drop-shadow(0 6px 10px rgba(20, 39, 78, 0.35));
}
.map-card__pin .icon {
  width: 1.4rem;
  height: 1.4rem;
}
@keyframes pin-drop {
  from { transform: translateY(-24px); opacity: 0; }
}
.map-card__load {
  position: absolute;
  right: 1rem;
  bottom: 1rem;
  box-shadow: 0 12px 26px -12px rgba(20, 39, 78, 0.6);
}
.map-card__frame.is-live {
  aspect-ratio: 1200 / 760;
}
.map-card__frame iframe {
  display: block;
  width: 100%;
  height: 100%;
  border: 0;
}

/* Map placeholder: honeycomb ground, pin and place name; Google's map replaces it on request. */
.map-card__frame {
  aspect-ratio: 1200 / 760;
  background: var(--band);
}
.map-card__placeholder {
  position: relative;
  isolation: isolate;
  display: grid;
  place-content: center;
  justify-items: center;
  gap: 1rem;
  height: 100%;
  text-align: center;
}
.map-card__placeholder::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background-image: var(--hex-tile);
  mask-image: radial-gradient(ellipse 65% 75% at 50% 50%, #000 0%, transparent 80%);
}
.map-card__placeholder .map-card__pin {
  position: static;
  margin: 0;
}
.map-card__place {
  font-family: var(--heading);
  font-size: var(--t-4);
  font-weight: 600;
  color: var(--fg);
}

/* Footer spacing, final ----------------------------------------------------------------
   As tall as its content. Spacing comes from the same steps as every section: a section
   step above the links (none when the closing call to action runs into it), a block step
   between the links and the wordmark, and around the legal line. */
.footer__top {
  padding-block: var(--space-section) 0;
}
body:has(.cta-band) .footer__top {
  padding-top: 0;
}
.footer__word {
  margin-top: var(--space-block);
  font-size: calc(var(--col) / 5.2);
}
.footer__legal .wrap {
  padding-block: var(--space-block);
}
