/* Cloudwright. Every value here is defined in DESIGN.md. */

@font-face {
  font-family: "Bricolage Grotesque";
  src: url("../fonts/bricolage-grotesque-var.woff2") format("woff2");
  font-weight: 200 800;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Mona Sans";
  src: url("../fonts/mona-sans-var.woff2") format("woff2");
  font-weight: 200 900;
  font-style: normal;
  font-display: swap;
}

/* ---------- Tokens ---------- */

:root {
  color-scheme: light;

  /* Night: the stage the illustration stands on */
  --c-night: #091230;
  --c-navy: #0D1B3E;
  --c-navy-2: #152551;
  --c-navy-line: #26376E;
  --c-navy-line-strong: #6577B5;
  --c-white: #FFFFFF;
  --c-mist: #B4BCD2;

  /* Day */
  --c-paper: #FBFBF8;
  --c-paper-2: #F1F2EC;
  --c-card: #FFFFFF;
  --c-ink: #0D1B33;
  --c-slate: #555D76;
  --c-line: #DCDED6;
  --c-line-strong: #868DA3;

  /* Colour */
  --c-indigo: #2D2F86;
  --c-indigo-2: #3A3EA3;
  --c-teal: #1F7E72;
  --c-mint: #9AD9C2;
  --c-mint-2: #C9F5E6;
  --c-coral: #FF6B81;
  --c-coral-ink: #B8213F;
  --c-amber: #F2B84B;

  --shadow-card: 0 1px 2px rgba(9, 18, 48, 0.06), 0 32px 64px -32px rgba(9, 18, 48, 0.35);
  --shadow-lift: 0 1px 2px rgba(9, 18, 48, 0.05), 0 16px 40px -24px rgba(9, 18, 48, 0.18);

  /* Type */
  --font-display: "Bricolage Grotesque", "Arial Narrow", Arial, sans-serif;
  --font-text: "Mona Sans", "Helvetica Neue", Arial, sans-serif;
  --t-meta: 0.75rem;
  --t-sm: 0.875rem;
  --t-body: 1rem;
  --t-lead: 1.2rem;
  --t-h3: 1.44rem;
  --t-h2: clamp(2.074rem, 1.3rem + 2.6vw, 2.986rem);
  --t-display: clamp(2.986rem, 1.6rem + 4.2vw, 4.3rem);

  /* Space */
  --s-1: 0.25rem;
  --s-2: 0.5rem;
  --s-3: 0.75rem;
  --s-4: 1rem;
  --s-6: 1.5rem;
  --s-8: 2rem;
  --s-12: 3rem;
  --s-16: 4rem;
  --s-24: 6rem;
  --s-32: 8rem;
  --gutter: var(--s-4);
  --section: var(--s-16);
  --vp-wide: 80rem;
  --measure: 68ch;

  /* Shape and motion */
  /* The arrow used between steps and stages. */
  --chevron: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%239AD9C2' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M9 5l7 7-7 7'/%3E%3C/svg%3E");

  --r-ctl: 8px;
  --r-card: 16px;
  --fast: 150ms;
  --slow: 300ms;
  --head-h: 4rem;
}

@media (min-width: 768px) {
  :root {
    --gutter: var(--s-8);
    --section: var(--s-32);
    --head-h: 4.5rem;
  }
}

/* Roles. Components read these, so the same button or link works on day and night. */
:root,
.tone-day {
  --fg: var(--c-ink);
  --fg-2: var(--c-slate);
  --rule: var(--c-line);
  --rule-strong: var(--c-line-strong);
  --link: var(--c-indigo);
  --action: var(--c-indigo);
  --action-hover: var(--c-indigo-2);
  --on-action: var(--c-white);
  --field: var(--c-card);
  --note: var(--c-coral-ink);
  --focus: var(--c-indigo);
}

.tone-night {
  --fg: var(--c-white);
  --fg-2: var(--c-mist);
  --rule: var(--c-navy-line);
  --rule-strong: var(--c-navy-line-strong);
  --link: var(--c-mint);
  --action: var(--c-mint);
  --action-hover: var(--c-mint-2);
  --on-action: var(--c-night);
  --field: var(--c-night);
  --note: var(--c-coral);
  --focus: var(--c-mint);
  color: var(--fg);
}

/* ---------- Base ---------- */

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-padding-top: calc(var(--head-h) + var(--s-6));
}

body {
  margin: 0;
  background: var(--c-paper);
  color: var(--fg);
  font-family: var(--font-text);
  font-size: var(--t-body);
  font-weight: 400;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

h1,
h2,
h3,
p,
ul,
ol,
dl,
dd,
figure,
table {
  margin: 0;
}

ul,
ol {
  padding: 0;
  list-style: none;
}

h1,
h2,
h3 {
  font-weight: 600;
  text-wrap: balance;
}

h2 {
  font-family: var(--font-display);
  font-size: var(--t-h2);
  line-height: 1.1;
  letter-spacing: -0.02em;
}

h3 {
  font-size: var(--t-h3);
  line-height: 1.25;
}

p {
  text-wrap: pretty;
}

strong {
  font-weight: 600;
}

a {
  color: var(--link);
  text-decoration-line: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.18em;
}

a:hover {
  text-decoration-thickness: 2px;
}

:focus-visible {
  outline: 2px solid var(--focus);
  outline-offset: 2px;
  border-radius: var(--r-ctl);
}

.display {
  font-family: var(--font-display);
  font-size: var(--t-display);
  line-height: 1.1;
  letter-spacing: -0.02em;
}

.lead {
  max-width: 34rem;
  color: var(--fg-2);
  font-size: var(--t-lead);
  line-height: 1.5;
}

[hidden] {
  display: none !important;
}

.vh {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

.skip {
  position: absolute;
  left: var(--s-4);
  top: var(--s-4);
  z-index: 20;
  padding: var(--s-3) var(--s-4);
  border-radius: var(--r-ctl);
  background: var(--c-card);
  color: var(--c-ink);
  transform: translateY(-200%);
}

.skip:focus {
  transform: none;
}

/* A value still missing from site.config.json. Meant to be impossible to overlook. */
mark.todo {
  background: none;
  color: var(--note);
  border-bottom: 1px dashed var(--note);
}

/* ---------- Layout ---------- */

.wrap {
  width: 100%;
  max-width: var(--vp-wide);
  margin-inline: auto;
  padding-left: max(var(--gutter), env(safe-area-inset-left, 0px));
  padding-right: max(var(--gutter), env(safe-area-inset-right, 0px));
}

.section {
  padding-block: var(--section);
}

.section--flush {
  padding-top: 0;
}

.section--tint {
  background: var(--c-paper-2);
}

.section__head {
  display: grid;
  gap: var(--s-4);
  max-width: 44rem;
  margin-bottom: var(--s-12);
}

.section__head .lead {
  max-width: 40rem;
}

/* Heading on one side, content on the other. Falls to one column when the pair no longer fits. */
.split {
  display: flex;
  flex-wrap: wrap;
  gap: var(--s-8) var(--s-16);
  align-items: flex-start;
}

.split__head {
  flex: 1 1 17rem;
  display: grid;
  gap: var(--s-4);
  max-width: 34rem;
}

.split__head p {
  color: var(--fg-2);
}

.split__body {
  flex: 2 1 30rem;
  min-width: 0;
}

.prose {
  display: grid;
  gap: var(--s-4);
  max-width: var(--measure);
}

/* ---------- Buttons ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 3rem;
  padding: var(--s-3) var(--s-6);
  border: 1px solid transparent;
  border-radius: var(--r-ctl);
  font: inherit;
  font-weight: 600;
  line-height: 1.25;
  text-align: center;
  text-decoration: none;
  cursor: pointer;
}

.btn--primary {
  background: var(--action);
  color: var(--on-action);
}

.btn--primary:hover {
  background: var(--action-hover);
}

.btn--ghost {
  border-color: var(--rule-strong);
  color: var(--fg);
}

.btn--ghost:hover {
  border-color: var(--fg);
}

.btn--compact {
  min-height: 2.75rem;
  padding-inline: clamp(0.625rem, 1.5vw, 1rem);
  white-space: nowrap;
}

.btn[aria-busy="true"] {
  cursor: progress;
}

.link-btn {
  padding: 0;
  border: 0;
  background: none;
  color: var(--link);
  font: inherit;
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.18em;
  cursor: pointer;
}

.link-btn:hover {
  text-decoration-thickness: 2px;
}

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--s-3);
}

/* ---------- Header ---------- */

body::before {
  content: "";
  position: fixed;
  inset: 0 0 auto;
  z-index: 10;
  height: env(safe-area-inset-top, 0px);
  background: var(--c-night);
}

.site-head {
  position: sticky;
  top: env(safe-area-inset-top, 0px);
  z-index: 10;
  width: 100%;
  background: var(--c-night);
  border-bottom: 1px solid var(--rule);
}

.site-head__in {
  display: flex;
  align-items: center;
  gap: clamp(0.5rem, 2vw, 2rem);
  min-height: var(--head-h);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: var(--s-3);
  min-height: 2.75rem;
  color: var(--fg);
  text-decoration: none;
}

.brand__name {
  font-family: var(--font-display);
  font-size: var(--t-h3);
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1.1;
}

.mark {
  flex: none;
  width: 1.75rem;
  height: 2rem;
}

.nav {
  margin-left: auto;
}

.nav ul {
  display: flex;
}

.nav a {
  display: inline-flex;
  align-items: center;
  min-height: 2.75rem;
  padding-inline: clamp(0.25rem, 0.9vw, 1rem);
  color: var(--fg-2);
  font-size: var(--t-sm);
  font-weight: 500;
  text-decoration: none;
  white-space: nowrap;
}

.nav a:hover {
  color: var(--fg);
}

.menu {
  margin-left: auto;
}

.menu summary {
  display: inline-flex;
  align-items: center;
  gap: var(--s-2);
  min-height: 2.75rem;
  padding-inline: var(--s-3);
  border: 1px solid var(--rule-strong);
  border-radius: var(--r-ctl);
  font-weight: 500;
  list-style: none;
  cursor: pointer;
}

.menu summary::-webkit-details-marker {
  display: none;
}

/* Two bars that close to one when the menu is open. */
.menu summary::before {
  content: "";
  width: 1rem;
  height: 0.5rem;
  border-block: 1.5px solid currentColor;
}

.menu[open] summary::before {
  height: 0;
  border-bottom: 0;
}

.menu__panel {
  position: absolute;
  inset-inline: 0;
  top: 100%;
  display: grid;
  gap: var(--s-4);
  padding: var(--s-2) max(var(--gutter), env(safe-area-inset-right, 0px)) var(--s-6) max(var(--gutter), env(safe-area-inset-left, 0px));
  background: var(--c-night);
  border-bottom: 1px solid var(--rule);
  animation: fade-in var(--fast) ease-out;
}

.menu__panel li + li {
  border-top: 1px solid var(--rule);
}

.menu__panel li a {
  display: flex;
  align-items: center;
  min-height: 3rem;
  color: var(--fg);
  font-weight: 500;
  text-decoration: none;
}

@media (max-width: 767.98px) {
  .nav,
  .head-cta {
    display: none;
  }
}

@media (min-width: 768px) {
  .menu {
    display: none;
  }
}

/* ---------- Hero ---------- */

.hero {
  position: relative;
  overflow: hidden;
  padding-block: var(--s-12) var(--s-16);
  background:
    radial-gradient(60rem 44rem at 78% 44%, rgba(58, 62, 163, 0.6), transparent 62%),
    radial-gradient(34rem 26rem at 92% 88%, rgba(47, 158, 143, 0.24), transparent 66%),
    var(--c-night);
}

/* Fine grain, so the dark areas read as a surface and not as flat fill. */
.hero::after,
.grow::after,
.contact::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image: 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='.9' 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 .55 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  opacity: 0.07;
  pointer-events: none;
}

.hero__in {
  position: relative;
  z-index: 1;
  display: flex;
  flex-wrap: wrap;
  gap: var(--s-8) var(--s-12);
  align-items: center;
}

.hero__text {
  container-type: inline-size;
  flex: 1.3 1 30rem;
  display: grid;
  gap: var(--s-6);
  min-width: 0;
}

/* Each sentence on its own line. The size tracks the column, so the longer
   sentence fits on one line where there is room and breaks evenly where not. */
.display--hero {
  font-size: clamp(2.986rem, 8.6cqi, 3.583rem);
}

.display--hero span {
  display: block;
  text-wrap: balance;
}

.hero__text .actions {
  margin-top: var(--s-2);
}

.facts {
  display: grid;
  gap: var(--s-4) var(--s-6);
  margin-top: var(--s-4);
  padding-top: var(--s-6);
  border-top: 1px solid var(--rule);
  font-size: var(--t-sm);
  line-height: 1.5;
}

@container (min-width: 30rem) {
  .facts {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

.facts dt {
  font-weight: 600;
}

.facts dd {
  color: var(--fg-2);
}

.hero__art {
  position: relative;
  flex: 1 1 22rem;
  max-width: 36rem;
  margin-inline: auto;
}

@media (min-width: 768px) {
  .hero {
    padding-block: var(--s-16) var(--s-24);
  }
}

/* ---------- The stack illustration ---------- */

.stack {
  display: block;
  width: 100%;
  height: auto;
}

/* The hero's one sequence: the layers lower into place around the app, then traffic starts. */
.stack--hero .drop {
  animation: lower var(--slow) ease-out both;
}

.stack--hero .drop--1 { animation-delay: 100ms; }
.stack--hero .drop--2 { animation-delay: 200ms; }
.stack--hero .drop--3 { animation-delay: 300ms; }
.stack--hero .drop--4 { animation-delay: 400ms; }

.pkt,
.ripple {
  opacity: 0;
}

.ripple {
  transform-box: fill-box;
  transform-origin: center;
}

.pkt--ok { animation: pass 2700ms linear infinite; }
.pkt--a0 { animation-delay: 900ms; }
.pkt--a1 { animation-delay: 1800ms; }
.pkt--a2 { animation-delay: 2700ms; }
.pkt--b0 { animation-delay: 1350ms; }
.pkt--b1 { animation-delay: 2250ms; }
.pkt--b2 { animation-delay: 3150ms; }

.pkt--bad { animation: stopped 3400ms linear infinite; }
.ripple { animation: ripple 3400ms ease-out infinite; }
.pkt--h0, .ripple--h0 { animation-delay: 1000ms; }
.pkt--h1, .ripple--h1 { animation-delay: 1900ms; animation-duration: 4300ms; }
.pkt--h2, .ripple--h2 { animation-delay: 2600ms; animation-duration: 3900ms; }
.pkt--h3, .ripple--h3 { animation-delay: 3500ms; animation-duration: 4700ms; }

.stack__pulse-glow {
  animation: breathe 2400ms ease-in-out infinite alternate;
}

.is-paused .stack * {
  animation-play-state: paused;
}

/* Pause control for the moving traffic. */
.art-toggle {
  position: absolute;
  right: 0;
  bottom: 0;
  display: grid;
  place-items: center;
  width: 2.75rem;
  height: 2.75rem;
  border: 1px solid var(--rule);
  border-radius: 50%;
  background: var(--c-navy);
  color: var(--fg-2);
  cursor: pointer;
}

.art-toggle:hover {
  border-color: var(--rule-strong);
  color: var(--fg);
}

.art-toggle::before {
  content: "";
  width: 0.625rem;
  height: 0.75rem;
  border-inline: 3px solid currentColor;
}

.is-paused .art-toggle::before {
  width: 0;
  height: 0;
  border-block: 0.4375rem solid transparent;
  border-left: 0.75rem solid currentColor;
  border-right: 0;
  margin-left: var(--s-1);
}

/* ---------- Deal: the same sale with and without proof ---------- */

.deal {
  container-type: inline-size;
  border-radius: var(--r-card);
  background: var(--c-card);
  box-shadow: var(--shadow-lift);
}

.deal__title {
  padding: var(--s-4) var(--s-6);
  border-bottom: 1px solid var(--rule);
  font-family: var(--font-display);
  font-size: var(--t-lead);
  font-weight: 600;
  line-height: 1.25;
}

.deal__track {
  --step: var(--c-indigo);
  display: grid;
  gap: var(--s-4);
  padding: var(--s-6);
}

.deal__track--through {
  --step: var(--c-teal);
  border-top: 1px solid var(--rule);
}

.deal__who {
  font-weight: 600;
}

.deal__track--through .deal__who {
  color: var(--c-teal);
}

.deal__steps {
  display: grid;
}

/* Each step is a dot on a line. Down the page on phones, across it when there is room. */
.deal__steps li {
  position: relative;
  display: grid;
  gap: var(--s-1);
  align-content: start;
  min-height: 3.5rem;
  padding: 0 0 var(--s-4) var(--s-12);
  font-size: var(--t-sm);
  line-height: 1.5;
}

.deal__steps li:last-child {
  min-height: 0;
  padding-bottom: 0;
}

.deal__steps li::after {
  content: "";
  position: absolute;
  left: calc(0.75rem - 1px);
  top: 1.5rem;
  bottom: 0;
  border-left: 2px solid var(--step);
}

.deal__steps li:last-child::after {
  display: none;
}

.deal__node {
  position: absolute;
  left: 0;
  top: 0;
  display: grid;
  place-items: center;
  width: 1.5rem;
  height: 1.5rem;
  border-radius: 50%;
  background: var(--step);
}

.deal__label {
  padding-top: 0.125rem;
  font-weight: 500;
}

.deal__note {
  color: var(--step);
  font-weight: 500;
}

/* Done: a tick. */
.is-done .deal__node::before {
  content: "";
  width: 0.625rem;
  height: 0.375rem;
  margin-top: -0.125rem;
  border-left: 2px solid var(--c-white);
  border-bottom: 2px solid var(--c-white);
  transform: rotate(-45deg);
}

/* Stuck: a cross, and the line beyond it never gets drawn in. */
.is-stuck {
  --step: var(--c-coral-ink);
}

.is-stuck .deal__node::before,
.is-stuck .deal__node::after {
  content: "";
  grid-area: 1 / 1;
  width: 0.75rem;
  border-top: 2px solid var(--c-white);
  transform: rotate(45deg);
}

.is-stuck .deal__node::after {
  transform: rotate(-45deg);
}

.is-never {
  --step: var(--rule-strong);
  color: var(--fg-2);
}

.is-never .deal__node {
  border: 2px dashed var(--step);
  background: none;
}

.deal__steps .is-stuck::after,
.deal__steps .is-never::after {
  border-left-style: dashed;
  border-left-color: var(--c-line-strong);
}

.deal figcaption {
  padding: var(--s-4) var(--s-6);
  border-top: 1px solid var(--rule);
  color: var(--fg-2);
  font-size: var(--t-meta);
  line-height: 1.4;
}

@container (min-width: 46rem) {
  .deal__track {
    grid-template-columns: 9rem minmax(0, 1fr);
    gap: var(--s-6);
    align-items: start;
  }

  .deal__steps {
    grid-template-columns: repeat(5, minmax(0, 1fr));
  }

  .deal__steps li,
  .deal__steps li:last-child {
    min-height: 0;
    padding: var(--s-8) var(--s-4) 0 0;
  }

  .deal__steps li::after {
    left: 1.5rem;
    right: 0;
    top: calc(0.75rem - 1px);
    bottom: auto;
    border-left: 0;
    border-top: 2px solid var(--step);
  }

  .deal__steps .is-stuck::after,
  .deal__steps .is-never::after {
    border-top-style: dashed;
    border-top-color: var(--c-line-strong);
  }
}

/* ---------- Points: how we shorten the road to a certificate ---------- */

.speed {
  margin-top: var(--s-16);
}

.speed__h {
  font-family: var(--font-display);
  font-size: clamp(1.728rem, 1.3rem + 1.4vw, 2.074rem);
  line-height: 1.15;
  letter-spacing: -0.02em;
}

.points {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 17rem), 1fr));
  gap: var(--s-8);
}

.points li {
  display: grid;
  gap: var(--s-2);
  align-content: start;
  padding-top: var(--s-4);
  border-top: 2px solid var(--c-indigo);
}

.points :is(h3, h4) {
  margin: 0;
  font-size: var(--t-lead);
  font-weight: 600;
  line-height: 1.3;
}

.points p {
  color: var(--fg-2);
}

.points--after {
  margin-top: var(--s-12);
}

/* ---------- Grow: the same stack at three sizes ---------- */

.grow {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(64rem 40rem at 50% 58%, rgba(58, 62, 163, 0.5), transparent 64%),
    var(--c-night);
}

.grow > .wrap {
  position: relative;
  z-index: 1;
}

.stages-box {
  container-type: inline-size;
}

.stages {
  display: grid;
  gap: var(--s-16);
}

.stage {
  position: relative;
  display: grid;
  gap: var(--s-2);
  align-content: start;
}

.stage__art {
  width: 100%;
  max-width: 20rem;
  margin: 0 auto var(--s-4);
}

.stage h3 {
  font-family: var(--font-display);
  font-size: 1.728rem;
  line-height: 1.2;
  letter-spacing: -0.02em;
}

.stage__cost {
  color: var(--c-mint);
  font-weight: 500;
}

.stage p:last-child {
  color: var(--fg-2);
}

/* An arrow from each stage to the next: down the page on phones, across it on wider screens. */
.stage + .stage::before {
  content: "";
  position: absolute;
  left: 50%;
  top: calc(var(--s-16) / -2 - 0.75rem);
  width: 1.5rem;
  height: 1.5rem;
  border: 1px solid var(--rule-strong);
  border-radius: 50%;
  background: var(--c-navy-2) var(--chevron) center / 0.75rem no-repeat;
  transform: translateX(-50%) rotate(90deg);
}

@container (min-width: 52rem) {
  .stages {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: var(--s-12);
  }

  .stage + .stage::before {
    left: calc(var(--s-12) / -2 - 0.75rem);
    top: 9rem;
    transform: none;
  }
}

.grow__note {
  max-width: var(--measure);
  margin-top: var(--s-12);
  padding-top: var(--s-6);
  border-top: 1px solid var(--rule);
  color: var(--fg-2);
}

/* ---------- Loop: from a customer's error to a safe fix, and round again ---------- */

.loop {
  container-type: inline-size;
  overflow: hidden;
  border-radius: var(--r-card);
  background: var(--c-navy);
  box-shadow: var(--shadow-card);
}

.loop__bar {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: var(--s-1) var(--s-4);
  padding: var(--s-4) var(--s-6);
  border-bottom: 1px solid var(--rule);
}

.loop__title {
  font-family: var(--font-display);
  font-size: var(--t-lead);
  font-weight: 600;
  line-height: 1.25;
}

.loop__half + .loop__half {
  border-top: 1px solid var(--rule);
}

.loop__who {
  padding: var(--s-6) var(--s-6) 0;
  color: var(--c-mint);
  font-weight: 600;
}

.loop__step {
  position: relative;
  display: grid;
  gap: var(--s-2);
  align-content: start;
  padding: var(--s-6);
}

.loop__step + .loop__step {
  border-top: 1px solid var(--rule);
}

.loop__no {
  color: var(--c-mint);
  font-family: var(--font-display);
  font-size: var(--t-h3);
  font-weight: 600;
  line-height: 1.25;
}

.loop__step h3 {
  font-size: var(--t-lead);
}

.loop__step p:last-child {
  color: var(--fg-2);
}

/* An arrow on the line between one step and the next. It points down the
   page on phones and round the loop when the steps sit in two rows. */
.loop__step::after {
  content: "";
  position: absolute;
  z-index: 1;
  left: 50%;
  bottom: -0.75rem;
  width: 1.5rem;
  height: 1.5rem;
  border: 1px solid var(--rule-strong);
  border-radius: 50%;
  background: var(--c-navy-2) var(--chevron) center / 0.75rem no-repeat;
  transform: translateX(-50%) rotate(90deg);
}

.loop__half--back .loop__step:last-child::after {
  display: none;
}

.loop figcaption {
  padding: var(--s-4) var(--s-6);
  border-top: 1px solid var(--rule);
  color: var(--fg-2);
  font-size: var(--t-sm);
  line-height: 1.5;
}

@container (min-width: 52rem) {
  .loop__half {
    display: grid;
    grid-template-columns: 10rem minmax(0, 1fr);
  }

  .loop__who {
    padding: var(--s-6);
  }

  .loop__steps {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .loop__step,
  .loop__step + .loop__step {
    grid-row: 1;
    border-top: 0;
    border-left: 1px solid var(--rule);
  }

  /* Top row runs left to right. */
  .loop__step:not(:last-child)::after {
    left: auto;
    right: -0.75rem;
    top: 50%;
    bottom: auto;
    transform: translateY(-50%);
  }

  /* Bottom row runs right to left, so step 4 sits under step 3. */
  .loop__half--back .loop__step:nth-child(1) { grid-column: 3; }
  .loop__half--back .loop__step:nth-child(2) { grid-column: 2; }
  .loop__half--back .loop__step:nth-child(3) { grid-column: 1; }

  .loop__half--back .loop__step:not(:last-child)::after {
    left: -0.75rem;
    right: auto;
    transform: translateY(-50%) rotate(180deg);
  }

  /* Step 6 points back up to step 1. */
  .loop__half--back .loop__step:last-child::after {
    display: block;
    left: 50%;
    top: -0.75rem;
    bottom: auto;
    transform: translateX(-50%) rotate(-90deg);
  }
}

/* ---------- Levels: what AI tools leave out, in three steps ---------- */

.levels {
  container-type: inline-size;
  overflow: hidden;
  border-radius: var(--r-card);
  background: var(--c-navy);
  box-shadow: var(--shadow-card);
}

.levels__cols {
  display: grid;
}

.level {
  display: grid;
  align-content: start;
}

.level + .level {
  border-top: 1px solid var(--rule);
}

/* Side by side when there is room. Each column borrows the same two rows,
   so the three headings line up whatever their length. */
@container (min-width: 52rem) {
  .levels__cols {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    grid-template-rows: auto 1fr;
  }

  .level {
    grid-row: span 2;
    grid-template-rows: subgrid;
  }

  .level + .level {
    border-top: 0;
    border-left: 1px solid var(--rule);
  }
}

.level__head {
  display: grid;
  gap: var(--s-2);
  align-content: start;
  padding: var(--s-6);
  border-bottom: 1px solid var(--rule);
}

/* One, two or three bars: how much work the level takes. */
.meter {
  display: flex;
  gap: var(--s-1);
  margin-bottom: var(--s-2);
}

.meter i {
  width: 1.5rem;
  height: 0.25rem;
  border-radius: 2px;
  background: var(--c-navy-line);
}

.meter--1 i:first-child,
.meter--2 i:nth-child(-n + 2),
.meter--3 i {
  background: var(--c-mint);
}

.level__name {
  font-family: var(--font-display);
  font-size: 1.728rem;
  line-height: 1.2;
  letter-spacing: -0.02em;
}

.level__what {
  color: var(--fg-2);
}

.level__who {
  color: var(--c-mint);
  font-weight: 500;
}

.level__list li {
  padding: var(--s-4) var(--s-6);
}

.level__list li + li {
  border-top: 1px solid var(--rule);
}

.level__title {
  font-weight: 500;
  line-height: 1.4;
}

.level__why {
  margin-top: var(--s-1);
  color: var(--fg-2);
  font-size: var(--t-sm);
  line-height: 1.5;
}

.levels__foot {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: var(--s-4) var(--s-8);
  padding: var(--s-6);
  border-top: 1px solid var(--rule);
  background: var(--c-navy-2);
}

.levels__foot p {
  flex: 1 1 20rem;
  max-width: 44rem;
  color: var(--fg-2);
}

.levels__foot strong {
  color: var(--fg);
}

/* ---------- Services: the stack, explained layer by layer ---------- */

.build {
  background: var(--c-navy);
}

.legend {
  display: flex;
  flex-wrap: wrap;
  gap: var(--s-2) var(--s-6);
  color: var(--fg-2);
  font-size: var(--t-sm);
}

.legend li {
  display: inline-flex;
  align-items: center;
  gap: var(--s-2);
}

.swatch {
  width: 1rem;
  height: 1rem;
  border-radius: 4px;
}

.swatch--yours {
  background: var(--c-white);
}

.swatch--ours {
  background: linear-gradient(135deg, #6266E0 50%, #4CC7B3 50%);
}

.build__art {
  max-width: 34rem;
  margin: 0 auto var(--s-12);
}

.build .hl {
  transition: opacity var(--slow) ease-out;
}

.build[data-active] .hl {
  opacity: 0.16;
}

.build[data-active="security"] :is(.hl--edge, .hl--vault, .hl--beams, .hl--watch),
.build[data-active="availability"] :is(.hl--app, .hl--db, .hl--standby),
.build[data-active="monitoring"] .hl--watch,
.build[data-active="network"] :is(.hl--net, .hl--dataplate, .hl--wires, .hl--beams),
.build[data-active="application"] .hl--app {
  opacity: 1;
}

.svc {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: var(--s-3);
  align-content: center;
  padding-block: var(--s-8);
  border-top: 1px solid var(--rule);
}

.svc__name {
  color: var(--c-mint);
  font-size: var(--t-body);
  font-weight: 600;
  line-height: 1.5;
}

.svc__tag {
  color: var(--fg-2);
  font-weight: 400;
}

.svc__q {
  font-family: var(--font-display);
  font-size: clamp(1.728rem, 1.2rem + 1.6vw, 2.488rem);
  font-weight: 600;
  line-height: 1.1;
  letter-spacing: -0.02em;
}

.svc__text {
  max-width: 34rem;
  color: var(--fg-2);
}

.svc__list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 14rem), 1fr));
  gap: var(--s-2) var(--s-6);
  max-width: 36rem;
  margin-top: var(--s-3);
  font-size: var(--t-sm);
  line-height: 1.5;
}

.svc__list li {
  position: relative;
  padding-left: var(--s-6);
}

.svc__list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.5em;
  width: 0.5rem;
  height: 0.5rem;
  border-radius: 50%;
  background: var(--c-mint);
}

@media (min-width: 768px) {
  .build__in {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: var(--s-16);
    align-items: start;
  }

  /* The picture stays put while the five answers scroll past it. */
  .build__art {
    position: sticky;
    top: calc(var(--head-h) + (100vh - var(--head-h) - min(34rem, 44vw) * 1.13) / 2);
    width: 100%;
    margin: 0;
    justify-self: center;
  }

  .svc {
    min-height: 68vh;
    padding-block: var(--s-12);
    border-top: 0;
  }
}

/* ---------- Sectors: where the experience comes from ---------- */

.sectors {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--s-6) var(--s-8);
  max-width: 34rem;
  margin-top: var(--s-8);
}

.sectors li {
  padding-top: var(--s-4);
  border-top: 2px solid var(--c-indigo);
  font-family: var(--font-display);
  font-size: var(--t-h3);
  font-weight: 600;
  line-height: 1.25;
}

/* ---------- Steps ---------- */

.steps-box {
  container-type: inline-size;
}

.steps {
  display: grid;
  gap: var(--s-8);
}

@container (min-width: 36rem) {
  .steps {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@container (min-width: 58rem) {
  .steps {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

.step {
  display: grid;
  gap: var(--s-2);
  align-content: start;
  padding-top: var(--s-6);
  border-top: 2px solid var(--c-ink);
}

.step__no {
  color: var(--c-indigo);
  font-family: var(--font-display);
  font-size: 3.583rem;
  font-weight: 600;
  line-height: 1.1;
  letter-spacing: -0.02em;
}

.step h3 {
  font-size: var(--t-h3);
}

.step p:last-child {
  color: var(--fg-2);
}

/* ---------- Standards table ---------- */

.table-card {
  overflow: hidden;
  border-radius: var(--r-card);
  background: var(--c-card);
  box-shadow: var(--shadow-lift);
}

.grid-table {
  width: 100%;
  border-collapse: collapse;
  font-size: var(--t-sm);
  line-height: 1.5;
  text-align: left;
}

.grid-table th,
.grid-table td {
  padding: var(--s-4) var(--s-6);
  vertical-align: top;
}

.grid-table thead th {
  border-bottom: 1px solid var(--rule);
  color: var(--fg-2);
  font-weight: 500;
}

.grid-table tbody tr + tr {
  border-top: 1px solid var(--rule);
}

.grid-table tbody th {
  width: 26%;
  font-size: var(--t-body);
  font-weight: 600;
}

.grid-table td {
  color: var(--fg-2);
}

@media (max-width: 767.98px) {
  .grid-table thead {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip-path: inset(50%);
  }

  .grid-table tr,
  .grid-table th,
  .grid-table td {
    display: block;
    width: auto;
  }

  .grid-table tbody th {
    width: auto;
    padding-bottom: 0;
  }

  .grid-table td {
    padding-block: var(--s-2);
  }

  .grid-table td:last-child {
    padding-bottom: var(--s-4);
  }

  .grid-table td::before {
    content: attr(data-label);
    display: block;
    font-size: var(--t-meta);
    line-height: 1.4;
  }
}

.plain-note {
  max-width: var(--measure);
  margin-top: var(--s-8);
  padding-left: var(--s-6);
  border-left: 3px solid var(--c-indigo);
}

/* ---------- FAQ ---------- */

.faq {
  border-top: 1px solid var(--c-ink);
}

.faq details {
  border-bottom: 1px solid var(--rule);
}

.faq summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--s-6);
  min-height: 4rem;
  padding-block: var(--s-4);
  font-size: var(--t-lead);
  font-weight: 500;
  line-height: 1.35;
  list-style: none;
  cursor: pointer;
}

.faq summary::-webkit-details-marker {
  display: none;
}

/* Plus that becomes a minus. */
.faq summary::after {
  content: "";
  flex: none;
  width: 0.875rem;
  height: 0.875rem;
  background:
    linear-gradient(currentColor, currentColor) center / 100% 2px no-repeat,
    linear-gradient(currentColor, currentColor) center / 2px 100% no-repeat;
}

.faq details[open] summary::after {
  background: linear-gradient(currentColor, currentColor) center / 100% 2px no-repeat;
}

.faq summary:hover {
  color: var(--link);
}

.faq__a {
  display: grid;
  gap: var(--s-3);
  max-width: var(--measure);
  padding-bottom: var(--s-6);
  color: var(--fg-2);
}

/* ---------- Contact ---------- */

.contact {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(52rem 40rem at 12% 100%, rgba(58, 62, 163, 0.55), transparent 62%),
    radial-gradient(30rem 24rem at 0% 20%, rgba(47, 158, 143, 0.18), transparent 66%),
    var(--c-night);
}

.contact > .wrap {
  position: relative;
  z-index: 1;
}

.form {
  container-type: inline-size;
  display: grid;
  gap: var(--s-4);
  padding: var(--s-6);
  border: 1px solid var(--rule);
  border-radius: var(--r-card);
  background: var(--c-navy);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06);
}

@media (min-width: 768px) {
  .form {
    padding: var(--s-8);
  }
}

.form__pair {
  display: grid;
  gap: var(--s-4);
}

@container (min-width: 34rem) {
  .form__pair {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

.field {
  display: grid;
  gap: var(--s-1);
}

.field label {
  font-weight: 500;
}

.field__opt {
  color: var(--fg-2);
  font-weight: 400;
}

.field input,
.field textarea {
  width: 100%;
  min-height: 3rem;
  padding: var(--s-3);
  border: 1px solid var(--rule-strong);
  border-radius: var(--r-ctl);
  background: var(--field);
  color: var(--fg);
  font: inherit;
}

.field textarea {
  min-height: 8rem;
  resize: vertical;
}

.field input::placeholder,
.field textarea::placeholder {
  color: var(--fg-2);
  opacity: 0.8;
}

.field input:hover,
.field textarea:hover {
  border-color: var(--fg);
}

.field input:focus-visible,
.field textarea:focus-visible {
  outline-offset: 0;
  border-color: var(--focus);
}

.field__help {
  min-height: 1.3125rem;
  color: var(--fg-2);
  font-size: var(--t-sm);
  line-height: 1.5;
}

.field [aria-invalid="true"] {
  border-color: var(--note);
  box-shadow: inset 0 0 0 1px var(--note);
}

.field__help.is-error {
  color: var(--note);
  font-weight: 500;
}

.hp {
  position: absolute;
  left: -200vw;
}

.form__draft,
.form__notice {
  color: var(--fg-2);
  font-size: var(--t-sm);
}

.form__draft {
  padding: var(--s-3) var(--s-4);
  border-radius: var(--r-ctl);
  background: var(--c-navy-2);
}

.form .btn {
  justify-self: start;
}

.form__status:empty {
  display: none;
}

.form__status {
  display: grid;
  gap: var(--s-3);
  padding: var(--s-4);
  border-left: 3px solid var(--c-mint);
  border-radius: var(--r-ctl);
  background: var(--c-navy-2);
  font-size: var(--t-sm);
}

.form__status.is-error {
  border-left-color: var(--note);
}

.form__status strong {
  font-size: var(--t-body);
}

.form__done {
  display: grid;
  gap: var(--s-3);
  padding-block: var(--s-8);
}

.form__done h3 {
  font-family: var(--font-display);
}

/* ---------- Footer ---------- */

.site-foot {
  padding-block: var(--s-16) var(--s-8);
  border-top: 1px solid var(--rule);
  background: var(--c-night);
  font-size: var(--t-sm);
}

.site-foot__in {
  display: flex;
  flex-wrap: wrap;
  gap: var(--s-8) var(--s-16);
}

.site-foot__in > * {
  flex: 1 1 10rem;
}

.site-foot__brand {
  flex: 2 1 16rem;
  display: grid;
  gap: var(--s-2);
  align-content: start;
  color: var(--fg-2);
}

.site-foot__h {
  margin-bottom: var(--s-2);
  color: var(--fg-2);
  font-family: var(--font-text);
  font-size: var(--t-sm);
  font-weight: 500;
  letter-spacing: 0;
  line-height: 1.5;
}

.site-foot li {
  display: flex;
  align-items: center;
  min-height: 2.75rem;
}

.site-foot li a {
  display: inline-flex;
  align-items: center;
  min-height: 2.75rem;
  color: var(--fg);
  text-decoration: none;
  overflow-wrap: anywhere;
}

.site-foot li a:hover {
  text-decoration: underline;
}

.site-foot__small {
  display: grid;
  gap: var(--s-2);
  margin-top: var(--s-12);
  padding-top: var(--s-6);
  border-top: 1px solid var(--rule);
  color: var(--fg-2);
  font-size: var(--t-meta);
  line-height: 1.4;
}

.site-foot__small p {
  max-width: var(--measure);
}

/* ---------- Legal and other text pages ---------- */

.doc {
  padding-block: var(--s-12) var(--section);
}

.doc__head {
  display: grid;
  gap: var(--s-4);
  margin-bottom: var(--s-12);
  padding-bottom: var(--s-8);
  border-bottom: 1px solid var(--c-ink);
}

.doc__head h1 {
  font-family: var(--font-display);
  font-size: var(--t-h2);
  line-height: 1.1;
  letter-spacing: -0.02em;
}

.doc__date {
  color: var(--fg-2);
  font-size: var(--t-sm);
}

.doc__body {
  display: flex;
  flex-wrap: wrap;
  gap: var(--s-8) var(--s-16);
  align-items: flex-start;
}

.toc {
  flex: 1 1 14rem;
  max-width: 20rem;
  font-size: var(--t-sm);
}

.toc__h {
  margin-bottom: var(--s-2);
  color: var(--fg-2);
  font-family: var(--font-text);
  font-size: var(--t-sm);
  font-weight: 500;
  letter-spacing: 0;
  line-height: 1.5;
}

.toc__list a {
  display: flex;
  align-items: center;
  min-height: 2.75rem;
  border-top: 1px solid var(--rule);
  color: var(--fg);
  text-decoration: none;
}

.toc__list a:hover {
  color: var(--link);
}

@media (min-width: 768px) {
  .toc {
    position: sticky;
    top: calc(var(--head-h) + var(--s-8));
  }
}

@media (max-width: 767.98px) {
  .toc {
    display: none;
  }
}

.legal {
  flex: 2.6 1 30rem;
  min-width: 0;
  max-width: var(--measure);
}

.legal > * + * {
  margin-top: var(--s-4);
}

.legal h2 {
  margin-top: var(--s-12);
  font-family: var(--font-text);
  font-size: var(--t-h3);
  line-height: 1.25;
  letter-spacing: 0;
}

.legal > h2:first-child,
.legal > .summary + h2 {
  margin-top: 0;
}

.legal > .summary {
  margin-bottom: var(--s-12);
}

.legal h3 {
  margin-top: var(--s-6);
  font-size: var(--t-body);
  line-height: 1.5;
}

.legal ul,
.legal ol {
  display: grid;
  gap: var(--s-2);
  padding-left: var(--s-6);
}

.legal ul {
  list-style: disc;
}

.legal ol {
  list-style: decimal;
}

.legal li::marker {
  color: var(--c-indigo);
}

.legal address {
  font-style: normal;
}

.summary {
  display: grid;
  gap: var(--s-3);
  padding: var(--s-6);
  border-radius: var(--r-card);
  background: var(--c-paper-2);
}

.summary h2 {
  margin-top: 0;
  font-size: var(--t-lead);
}

.summary ul {
  margin-top: 0;
}

.lost {
  display: grid;
  gap: var(--s-6);
  justify-items: start;
  padding-block: var(--s-24) var(--section);
}

/* ---------- Motion ---------- */

@keyframes lower {
  from {
    opacity: 0;
    transform: translateY(-40px);
  }
}

@keyframes pass {
  0% { opacity: 0; transform: translateY(0); }
  10%, 82% { opacity: 1; }
  100% { opacity: 0; transform: translateY(164px); }
}

@keyframes stopped {
  0% { opacity: 0; transform: translateY(0); }
  8% { opacity: 1; }
  40% { opacity: 1; transform: translateY(96px); }
  46%, 100% { opacity: 0; transform: translateY(96px); }
}

@keyframes ripple {
  0%, 39% { opacity: 0; transform: scale(0.15); }
  42% { opacity: 1; }
  78%, 100% { opacity: 0; transform: scale(1.2); }
}

@keyframes breathe {
  from { opacity: 0.35; }
  to { opacity: 1; }
}

@keyframes fade-in {
  from {
    opacity: 0;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
  }

  /* A still frame instead: two packets on their way in, two stopped at the glass. */
  .pkt--a1 { opacity: 1; transform: translateY(60px); }
  .pkt--b0 { opacity: 1; transform: translateY(124px); }
  .pkt--h0, .pkt--h2 { opacity: 1; transform: translateY(96px); }
  .ripple--h0, .ripple--h2 { opacity: 0.8; }

  .art-toggle {
    display: none;
  }

  html {
    scroll-behavior: auto;
  }
}

@media print {
  .site-head,
  .menu,
  .skip,
  .contact,
  .art-toggle {
    display: none;
  }
}
