:root {
  --brand: #0052cc;
  --paper: #f6f6f5;
  --dark: #101214;
  /* --ink is the foreground of whatever surface you are on, and --reverse is
     the colour of type set on an ink-filled shape; blue surfaces swap both */
  --ink: var(--dark);
  --ink-2: #3d4147;
  --muted: #6b7078;
  --reverse: #fff;
  --accent: #4c9aff;
  --line: rgba(16, 18, 20, 0.16);
  --on-ink: rgba(255, 255, 255, 0.72);
  --on-ink-line: rgba(255, 255, 255, 0.28);
  --display: "Noto Serif Display", "Bodoni 72", Didot, Georgia, serif;
  --sans: "Instrument Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  --gutter: clamp(20px, 4vw, 48px);
  --fold: 16px;
  --ease: cubic-bezier(0.2, 0.7, 0.2, 1);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}
html {
  scroll-behavior: smooth;
  scroll-padding-top: 88px;
  -webkit-text-size-adjust: 100%;
}
/* the page itself is blue so the phone's status bar and browser bar, which
   take their colour from it, match the header; sections paint their own */
html {
  background: var(--brand);
}
body {
  margin: 0;
  background: var(--brand);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
h1,
h2,
h3,
p,
ul,
ol {
  margin: 0;
  padding: 0;
}
ul,
ol {
  list-style: none;
}
a {
  color: inherit;
  text-decoration: none;
}
main {
  background: var(--paper);
}
/* on a blue surface the type and lines are white, and ink-filled shapes
   (buttons) carry blue type */
.site-header,
.hero,
.demo,
.cta,
.tile {
  --ink: #fff;
  --ink-2: rgba(255, 255, 255, 0.88);
  --muted: rgba(255, 255, 255, 0.74);
  --line: rgba(255, 255, 255, 0.3);
  --reverse: var(--brand);
  color: var(--ink);
}
/* light and dark pieces that sit on a blue surface go back to dark ink */
.bubble,
.node {
  --ink: var(--dark);
  --ink-2: #3d4147;
  --muted: #6b7078;
  --reverse: #fff;
  color: var(--ink);
}
img,
svg {
  display: block;
  max-width: 100%;
  height: auto;
}
:focus-visible {
  outline: 2px solid currentColor;
  outline-offset: 4px;
}

.wrap {
  width: min(1240px, 100% - 2 * var(--gutter));
  margin-inline: auto;
}
.skip {
  position: absolute;
  left: -9999px;
  top: 8px;
  z-index: 50;
  padding: 10px 16px;
  background: var(--ink);
  color: var(--reverse);
}
.skip:focus {
  left: 8px;
}

/* Type */
.display {
  font-family: var(--display);
  font-stretch: 62.5%;
  font-weight: 600;
  letter-spacing: -0.012em;
  line-height: 0.92;
  text-wrap: balance;
}
h2.display {
  font-size: clamp(44px, 4.7vw, 76px);
}
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 12.5px;
  font-weight: 500;
  letter-spacing: 0.16em;
  line-height: 1;
  text-transform: uppercase;
}
.eyebrow::before,
.tri {
  content: "";
  flex: none;
  width: 8px;
  height: 10px;
  background: currentColor;
  clip-path: polygon(0 0, 100% 50%, 0 100%);
}
.tri {
  display: inline-block;
  transition: transform 0.25s var(--ease);
}
.lede {
  max-width: 34em;
  font-size: clamp(17px, 1.35vw, 20px);
  line-height: 1.5;
  color: var(--ink-2);
}
.num {
  font-size: 12.5px;
  font-weight: 500;
  letter-spacing: 0.1em;
  color: var(--muted);
  font-variant-numeric: tabular-nums;
}

/* Buttons and links: the top-right corner is folded, like the mark */
.button {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  height: 54px;
  padding: 0 30px 0 26px;
  background: var(--ink);
  color: var(--reverse);
  font-size: 16px;
  font-weight: 600;
  white-space: nowrap;
  clip-path: polygon(
    0 0,
    calc(100% - var(--fold)) 0,
    100% var(--fold),
    100% 100%,
    0 100%
  );
  transition: background 0.2s ease;
}
.button:hover {
  background: color-mix(in srgb, var(--ink) 86%, var(--reverse));
}
.button:hover .tri,
.product:hover .tri {
  transform: translateX(4px);
}
.button:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: -5px;
}
.button-sm {
  --fold: 12px;
  height: 42px;
  padding: 0 22px 0 18px;
  font-size: 14.5px;
}
.link {
  font-weight: 600;
  border-bottom: 1.5px solid currentColor;
  padding-bottom: 2px;
  transition: opacity 0.2s ease;
}
.link:hover {
  opacity: 0.62;
}
.actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 16px 28px;
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: var(--brand);
  border-bottom: 1px solid transparent;
  transition: border-color 0.25s ease;
}
.site-header.is-scrolled {
  border-bottom-color: var(--line);
}
.header-inner {
  display: flex;
  align-items: center;
  gap: 32px;
  height: 76px;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
}
.wordmark {
  font-family: var(--display);
  font-stretch: 62.5%;
  font-weight: 600;
  font-size: 34px;
  line-height: 1;
  letter-spacing: -0.01em;
  word-spacing: -0.06em;
  white-space: nowrap;
}
.nav {
  display: flex;
  gap: 34px;
  margin-left: auto;
  font-size: 15px;
  font-weight: 500;
}
.nav a,
.footer-nav a {
  transition: opacity 0.2s ease;
}
.nav a:hover,
.footer-nav a:hover {
  opacity: 0.6;
}

/* Hero */
.hero {
  background: var(--brand);
  padding-top: clamp(28px, 5vh, 64px);
  overflow: hidden;
}
.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
  gap: clamp(24px, 4vw, 72px);
  align-items: end;
}
.hero-copy {
  padding-bottom: clamp(40px, 6.5vh, 80px);
}
.hero h1 {
  margin: 20px 0 26px;
  font-size: clamp(56px, min(6.2vw, 11.5vh), 104px);
}
.hero .lede {
  margin-bottom: 30px;
}
.hero-mark {
  width: 100%;
  max-width: min(620px, 72vh);
  justify-self: end;
  fill: var(--ink);
  overflow: visible;
}
.hero-mark .acid {
  fill: var(--accent);
  stroke: var(--accent);
  stroke-width: 1;
  stroke-linejoin: round;
}
.facet {
  transform-box: fill-box;
  transform-origin: center;
  animation: unfold 0.9s var(--ease) both;
  animation-delay: calc(var(--i) * 70ms + 200ms);
}
.eye {
  animation:
    unfold 0.9s var(--ease) both,
    blink 6.5s ease-in-out 3s infinite;
  animation-delay: calc(var(--i) * 70ms + 200ms), 3s;
}
/* The hero loop: the dog rides into the wind with a pack of paper planes */
.rider {
  transform-origin: 242px 381px;
  animation: ride 3.2s ease-in-out infinite alternate;
}
.ear {
  animation: 1.4s ease-in-out 1.9s infinite;
}
.ear-l {
  transform-origin: 120px 93px;
  animation-name: flap-l;
}
.ear-r {
  transform-origin: 271px 5px;
  animation-name: flap-r;
  animation-duration: 1.15s;
}
.wind path,
.trail {
  fill: none;
  stroke: var(--ink);
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-dasharray: 26 126;
  stroke-dashoffset: 26;
  animation: gust var(--t) linear var(--d) infinite;
}
.plane {
  transform-box: fill-box;
  transform-origin: center;
  animation: glide 2.6s ease-in-out var(--d) infinite alternate;
}
.plane .fold {
  fill: var(--accent);
  stroke: var(--ink);
  stroke-width: 1.2;
  stroke-linejoin: round;
}
@keyframes ride {
  from {
    transform: rotate(-1deg);
  }
  to {
    transform: rotate(1.2deg);
  }
}
@keyframes flap-l {
  0%,
  100% {
    transform: rotate(0);
  }
  18% {
    transform: rotate(7deg);
  }
  36% {
    transform: rotate(2deg);
  }
  56% {
    transform: rotate(9deg);
  }
  78% {
    transform: rotate(3deg);
  }
}
@keyframes flap-r {
  0%,
  100% {
    transform: rotate(0);
  }
  20% {
    transform: rotate(-6deg);
  }
  40% {
    transform: rotate(-1.5deg);
  }
  60% {
    transform: rotate(-7.5deg);
  }
  80% {
    transform: rotate(-2.5deg);
  }
}
@keyframes gust {
  to {
    stroke-dashoffset: -100;
  }
}
@keyframes glide {
  from {
    transform: translate(-4px, 5px) rotate(3deg);
  }
  to {
    transform: translate(5px, -5px) rotate(-3deg);
  }
}
@keyframes unfold {
  from {
    opacity: 0;
    transform: translateY(18px) rotate(-8deg) scale(0.82);
  }
}
@keyframes blink {
  0%,
  94%,
  100% {
    transform: scaleY(1);
  }
  97% {
    transform: scaleY(0.08);
  }
}

/* Sections */
.section {
  padding: clamp(80px, 12vh, 150px) 0;
}
.paper {
  background: var(--paper);
}
.ink {
  background: var(--ink);
  color: var(--reverse);
}
.ink .lede {
  color: var(--on-ink);
}
.section-head {
  display: grid;
  gap: 22px;
  max-width: 880px;
  margin-bottom: clamp(48px, 7vh, 84px);
}

/* Platform */
/* The worked example: one message walks through the four jobs */
.demo {
  --fold: 40px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 0.92fr);
  grid-template-areas:
    "label stage"
    "in    stage"
    "steps stage"
    "out   stage";
  gap: 22px clamp(28px, 4.5vw, 72px);
  align-content: center;
  padding: clamp(24px, 3.4vw, 52px);
  background: var(--brand);
  clip-path: polygon(
    0 0,
    calc(100% - var(--fold)) 0,
    100% var(--fold),
    100% 100%,
    0 100%
  );
}
.demo-label {
  grid-area: label;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 6px 20px;
  padding-right: 28px;
  font-size: 13.5px;
  color: var(--ink-2);
}
.demo-label .tag {
  color: var(--ink);
}
.bubble {
  --fold: 16px;
  display: grid;
  gap: 8px;
  max-width: 30em;
  padding: 18px 22px 20px;
  background: var(--paper);
  font-size: 17.5px;
  line-height: 1.45;
  clip-path: polygon(
    0 0,
    calc(100% - var(--fold)) 0,
    100% var(--fold),
    100% 100%,
    0 100%
  );
}
.bubble .tag {
  font-size: 11.5px;
  color: var(--muted);
}
.bubble-out {
  grid-area: out;
  justify-self: end;
  background: var(--ink);
  color: var(--reverse);
}
.bubble-out .tag {
  color: var(--on-ink);
}
.demo-steps {
  grid-area: steps;
  display: grid;
  margin-left: 6px;
  border-left: 1.5px solid var(--ink);
}
.demo-step {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 200px) minmax(0, 1fr);
  gap: 6px 24px;
  align-items: baseline;
  padding: 14px 0 16px 28px;
}
.demo-step h3 {
  font-size: clamp(30px, 2.6vw, 38px);
  line-height: 1;
}
.demo-step p {
  color: var(--ink-2);
}
.marker {
  position: absolute;
  left: -7.5px;
  top: 24px;
  width: 13px;
  height: 13px;
  background: var(--ink);
  transition: background 0.3s ease;
}
.bubble-in {
  grid-area: in;
}

/* The diagram: the message flies between the parts as each step plays */
.stage {
  grid-area: stage;
  align-self: center;
  width: 100%;
  max-width: 560px;
  justify-self: center;
  overflow: visible;
}
.stage text {
  font-family: var(--sans);
  font-size: 18px;
  font-weight: 600;
  text-anchor: middle;
  fill: var(--ink);
}
.node polygon {
  fill: var(--paper);
}
.hub polygon {
  fill: var(--ink);
}
.hub path,
.hub ellipse {
  fill: var(--reverse);
}
.hub .acid {
  fill: var(--accent);
}
/* each part sits a little off the page, on a soft shadow of its own shape */
.node .shade {
  fill: #001a4d;
  filter: url(#stage-shade);
  opacity: 0.3;
  translate: 0 12px;
}
.hub .shade {
  opacity: 0.42;
}
.node,
.face {
  transform-box: fill-box;
  transform-origin: center;
}
.stage .link,
.track {
  fill: none;
  stroke: var(--ink);
  stroke-width: 1.8;
  stroke-linecap: round;
}
.track {
  opacity: 0.18;
}
.stage .link.dashed {
  stroke-dasharray: 5 6;
}
.flyer {
  fill: var(--ink);
  opacity: 0;
}
.flyer .fold {
  fill: var(--accent);
  stroke: var(--ink);
  stroke-width: 1.2;
  stroke-linejoin: round;
}
.flyer.dot {
  fill: var(--accent);
  stroke: var(--ink);
  stroke-width: 1.5;
}
.js .node,
.js .stage .link {
  opacity: 0.22;
  transition: opacity 0.5s ease;
}
.js .node.on,
.js .stage .link.on {
  opacity: 1;
}
.js .face {
  transition: translate 0.6s var(--ease);
}
.js .node:not(.on) .face {
  translate: 0 5px;
}

/* while the example plays: lines are drawn in behind the plane that flies
   them, each part pops as the message lands, and memory keeps feeding the
   agents */
.live .stage .link:not(.dashed) {
  opacity: 1;
  stroke-dasharray: var(--len);
  stroke-dashoffset: var(--len);
  transition: stroke-dashoffset 0.55s var(--ease);
}
.live .stage .link:not(.dashed).on {
  stroke-dashoffset: 0;
}
.live .stage .link.dashed.on {
  animation: march 0.9s linear infinite;
}
.live .hub {
  animation: bob 2.8s ease-in-out infinite alternate;
}
.node.ping .face {
  animation: pop 0.75s var(--ease);
}
.node.ping:not(.hub) .face polygon {
  animation: flare 1s ease-out;
}
.hub.ping .face {
  animation:
    pop 0.75s var(--ease),
    tilt 0.9s ease-out;
}
@keyframes pop {
  0% {
    scale: 0.9;
  }
  45% {
    scale: 1.07;
  }
  72% {
    scale: 0.985;
  }
}
@keyframes flare {
  0%,
  30% {
    fill: var(--accent);
  }
}
@keyframes tilt {
  22% {
    rotate: -9deg;
  }
  52% {
    rotate: 5deg;
  }
  78% {
    rotate: -2deg;
  }
}
@keyframes bob {
  from {
    translate: 0 -2px;
  }
  to {
    translate: 0 2.5px;
  }
}
@keyframes march {
  to {
    stroke-dashoffset: 11;
  }
}

/* with scripting on, the steps light up one at a time and then repeat */
.js .demo-step,
.js .bubble-out {
  opacity: 0.22;
  transition:
    opacity 0.45s ease,
    transform 0.45s var(--ease);
}
.js .bubble-out {
  opacity: 0;
  transform: translateY(10px);
}
.js .demo[data-step="1"] .demo-step:nth-child(-n + 1),
.js .demo[data-step="2"] .demo-step:nth-child(-n + 2),
.js .demo[data-step="3"] .demo-step:nth-child(-n + 3),
.js .demo[data-step="4"] .demo-step,
.js .demo[data-step="5"] .demo-step {
  opacity: 1;
}
.js .demo[data-step="1"] .demo-step:nth-child(1) .marker,
.js .demo[data-step="2"] .demo-step:nth-child(2) .marker,
.js .demo[data-step="3"] .demo-step:nth-child(3) .marker,
.js .demo[data-step="4"] .demo-step:nth-child(4) .marker {
  background: var(--accent);
  outline: 1.5px solid var(--ink);
}
.js .demo[data-step="5"] .bubble-out {
  opacity: 1;
  transform: none;
}

/* Proof strip under the hero */
.proof {
  background: var(--ink);
  color: var(--reverse);
  padding: 30px 0 28px;
}
.proof-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: end;
  gap: 16px clamp(28px, 5vw, 80px);
}
.proof-lead {
  width: 100%;
  font-size: 12.5px;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--on-ink);
}
.proof-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 18px clamp(32px, 5vw, 72px);
}
.proof-stats li {
  display: grid;
  gap: 6px;
  font-size: 15.5px;
  color: var(--on-ink);
}
.proof-stats strong {
  font-size: clamp(40px, 3.9vw, 58px);
  line-height: 0.95;
  color: var(--reverse);
}
.proof-link {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-left: auto;
  padding-bottom: 6px;
  font-size: 15px;
  font-weight: 600;
  white-space: nowrap;
}
.proof-link:hover .tri {
  transform: translateX(4px);
}
/* Client names scroll past under the figures, as on envyro.io */
.clients {
  margin-top: 24px;
  padding-top: 22px;
  border-top: 1px solid var(--on-ink-line);
  overflow: hidden;
  mask-image: linear-gradient(
    to right,
    transparent,
    #000 8%,
    #000 92%,
    transparent
  );
}
.clients-track {
  display: flex;
  width: max-content;
  animation: clients 48s linear infinite;
}
.clients:hover .clients-track {
  animation-play-state: paused;
}
.clients-group {
  display: flex;
  flex: none;
}
.clients-group li {
  display: flex;
  align-items: baseline;
  gap: 10px;
  padding-right: clamp(36px, 4vw, 60px);
  white-space: nowrap;
}
/* every logo is drawn in white, straight on the black:
   the file is used as a stencil, so its original colours do not matter */
.client-logo {
  --h: 28px;
  align-self: center;
  flex: none;
  width: calc(var(--h) * var(--ratio));
  height: var(--h);
  background: var(--reverse);
  -webkit-mask: var(--logo) center / contain no-repeat;
  mask: var(--logo) center / contain no-repeat;
}
.clients-group li:has(.client-logo) {
  align-items: center;
  gap: 14px;
}
.clients-group .display {
  font-size: clamp(24px, 2.1vw, 30px);
  line-height: 1.1;
}
.clients-group .kind {
  font-size: 11.5px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--on-ink);
}
@keyframes clients {
  to {
    transform: translateX(-50%);
  }
}

/* Flow */
.flow {
  --row: 76px;
  --gap: clamp(28px, 4.5vw, 68px);
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
  align-items: center;
}
.flow-in,
.flow-out {
  position: relative;
}
.flow-in li,
.flow-out li {
  display: flex;
  align-items: center;
  gap: 18px;
  height: var(--row);
}
.flow-in li {
  font-family: var(--display);
  font-stretch: 62.5%;
  font-weight: 600;
  font-size: clamp(30px, 3vw, 42px);
  line-height: 1;
}
/* each row runs a hairline to a vertical bus, and the bus meets the node */
.flow-in li::after,
.flow-out li::before {
  content: "";
  height: 1px;
  background: var(--on-ink-line);
}
.flow-in li::after {
  flex: 1;
}
.flow-out li::before {
  flex: 0 0 clamp(28px, 5vw, 76px);
}
.flow-in::after,
.flow-out::before {
  content: "";
  position: absolute;
  top: calc(var(--row) / 2);
  bottom: calc(var(--row) / 2);
  width: 1px;
  background: var(--on-ink-line);
}
.flow-in::after {
  right: 0;
}
.flow-out::before {
  left: 0;
}
.flow-out {
  --row: 101px;
}
.flow-out div {
  display: grid;
  gap: 4px;
  font-size: 15.5px;
  color: var(--on-ink);
}
.flow-out strong,
.flow-node strong {
  display: block;
  font-family: var(--display);
  font-stretch: 62.5%;
  font-weight: 600;
  font-size: clamp(28px, 2.6vw, 36px);
  line-height: 1;
  color: var(--reverse);
}
.flow-node {
  position: relative;
  display: grid;
  justify-items: center;
  gap: 18px;
  margin: 0 var(--gap);
  text-align: center;
  font-size: 15.5px;
  color: var(--on-ink);
}
.flow-node p {
  position: absolute;
  top: calc(100% + 18px);
  width: max-content;
}
.flow-node strong {
  margin-bottom: 6px;
}
.tile {
  --fold: 34px;
  display: grid;
  place-items: center;
  width: clamp(150px, 15vw, 196px);
  aspect-ratio: 1;
  background: var(--brand);
  clip-path: polygon(
    0 0,
    calc(100% - var(--fold)) 0,
    100% var(--fold),
    100% 100%,
    0 100%
  );
}
.tile img {
  width: 66%;
}
/* connectors from the buses to the tile, level with the tile's centre */
.flow-node::before,
.flow-node::after {
  content: "";
  position: absolute;
  top: calc(clamp(150px, 15vw, 196px) / 2);
  width: var(--gap);
  height: 1px;
  background: var(--on-ink-line);
}
.flow-node::before {
  right: 100%;
}
.flow-node::after {
  left: 100%;
}

/* Products */
.products {
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) minmax(0, 0.7fr);
  gap: 24px;
}
.product {
  --fold: 44px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 56px;
  min-height: 400px;
  padding: clamp(28px, 3.2vw, 46px);
}
.product-live {
  background: var(--ink);
  color: var(--reverse);
  clip-path: polygon(
    0 0,
    calc(100% - var(--fold)) 0,
    100% var(--fold),
    100% 100%,
    0 100%
  );
}
.product-next {
  border: 1.5px dashed color-mix(in srgb, var(--ink) 42%, transparent);
  transition: border-color 0.2s ease;
}
.product-next:hover {
  border-color: var(--ink);
}
.tag {
  font-size: 12.5px;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}
.product-body {
  display: grid;
  gap: 18px;
}
.product-name {
  font-size: clamp(56px, 5.6vw, 92px);
}
.product-next .product-name {
  font-size: clamp(44px, 4vw, 60px);
}
.product-text {
  max-width: 30em;
  font-size: 17.5px;
  line-height: 1.5;
  color: var(--ink-2);
}
.product-live .product-text {
  color: var(--on-ink);
}
.product-link {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 600;
}
.product-live .product-link span {
  transition: transform 0.25s var(--ease);
}
.product-live:hover .product-link span {
  transform: translate(3px, -3px);
}
.product-live:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: -8px;
}

/* Case studies */
.cases {
  border-top: 1.5px solid var(--reverse);
}
.case {
  display: grid;
  grid-template-columns:
    minmax(0, 1.2fr) minmax(0, 1fr) minmax(0, 1fr)
    auto;
  gap: clamp(20px, 3vw, 48px);
  align-items: end;
  padding: 30px 0 32px;
  border-bottom: 1px solid var(--on-ink-line);
}
.case-name {
  display: grid;
  gap: 14px;
}
.case-name .tag {
  color: var(--on-ink);
}
.case-name .display {
  font-size: clamp(32px, 2.9vw, 42px);
  line-height: 1;
}
.stat {
  display: grid;
  gap: 6px;
  font-size: 15.5px;
  line-height: 1.4;
  color: var(--on-ink);
}
.stat strong {
  font-size: clamp(40px, 4vw, 58px);
  line-height: 0.95;
  color: var(--reverse);
}
.case-link {
  display: inline-flex;
  gap: 8px;
  padding-bottom: 4px;
  font-size: 15px;
  font-weight: 600;
  white-space: nowrap;
}
.case-link span {
  transition: transform 0.25s var(--ease);
}
.case:hover .case-link span {
  transform: translate(3px, -3px);
}
.case:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 4px;
}

/* Contact */
.cta {
  background: var(--brand);
}
.cta-inner {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(0, 0.75fr);
  gap: clamp(32px, 5vw, 80px);
  align-items: end;
}
.cta h2.display {
  font-size: clamp(56px, 6.2vw, 104px);
}
.cta-side {
  display: grid;
  gap: 30px;
  padding-bottom: 10px;
}

/* Footer */
.site-footer {
  background: var(--ink);
  color: var(--reverse);
  padding: 40px 0;
}
.footer-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 20px 40px;
}
.footer-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 30px;
  margin-left: auto;
  font-size: 15px;
  font-weight: 500;
}
.copyright {
  font-size: 14px;
  color: var(--on-ink);
}

/* Sections ease in once as they scroll into view */
.js .reveal {
  opacity: 0;
  transform: translateY(22px);
  transition:
    opacity 0.8s var(--ease),
    transform 0.8s var(--ease);
}
.js .reveal.is-in {
  opacity: 1;
  transform: none;
}

@media (max-width: 960px) {
  .demo {
    grid-template-columns: minmax(0, 1fr);
    grid-template-areas:
      "label"
      "in"
      "stage"
      "steps"
      "out";
  }
  .nav {
    display: none;
  }
  .header-inner {
    justify-content: space-between;
    height: 68px;
  }
  .hero-grid,
  .products,
  .cta-inner {
    grid-template-columns: minmax(0, 1fr);
  }
  .hero-copy {
    padding-bottom: 12px;
  }
  .hero-mark {
    max-width: min(420px, 78%);
    justify-self: center;
  }
  .case {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    align-items: start;
  }
  .case-name,
  .case-link {
    grid-column: 1 / -1;
  }
  .product {
    min-height: 0;
  }

  /* the flow turns into one centred column: channels drop into Sharko,
     and Sharko drops into where the work goes */
  .flow {
    grid-template-columns: minmax(0, 1fr);
    justify-items: center;
    gap: 0;
  }
  .flow-in,
  .flow-out {
    width: 100%;
    max-width: 520px;
  }
  .flow-in {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
  }
  .flow-in li {
    display: grid;
    justify-items: center;
    gap: 14px;
    height: auto;
    font-size: clamp(22px, 6.6vw, 32px);
  }
  .flow-in li::after {
    width: 1px;
    height: 22px;
  }
  .flow-in::after {
    top: auto;
    bottom: 0;
    left: 12.5%;
    right: 12.5%;
    width: auto;
    height: 1px;
  }
  .flow-node {
    margin: 0;
    padding: 40px 0;
    gap: 16px;
  }
  .flow-node::before,
  .flow-node::after {
    left: 50%;
    right: auto;
    width: 1px;
    height: 40px;
  }
  .flow-node::before {
    top: 0;
  }
  .flow-node::after {
    top: auto;
    bottom: 0;
  }
  .flow-node p {
    position: static;
    width: auto;
  }
  .tile {
    width: 132px;
  }
  .flow-out {
    border-top: 1px solid var(--on-ink-line);
  }
  .flow-out::before,
  .flow-out li::before {
    display: none;
  }
  .flow-out li {
    justify-content: center;
    height: auto;
    padding: 20px 0 22px;
    border-bottom: 1px solid var(--on-ink-line);
    text-align: center;
  }
}

@media (max-width: 560px) {
  body {
    font-size: 16px;
  }
  .wordmark {
    font-size: 28px;
  }
  .header-inner {
    gap: 12px;
  }
  .button-sm {
    padding: 0 16px 0 14px;
  }
  .hero h1 {
    font-size: clamp(50px, 15vw, 68px);
  }
  .hero h1 br {
    display: none;
  }
  h2.display,
  .cta h2.display {
    font-size: clamp(40px, 11.4vw, 52px);
  }
  .demo-step {
    grid-template-columns: minmax(0, 1fr);
    padding-left: 22px;
  }
  .demo {
    padding: 22px 18px 26px;
  }
  .bubble {
    font-size: 16.5px;
  }
  .proof-link {
    margin-left: 0;
  }
  .proof-stats {
    display: grid;
    width: 100%;
  }
  .footer-nav {
    margin-left: 0;
    width: 100%;
  }
}

@media (max-width: 360px) {
  .site-header .brand {
    gap: 8px;
  }
  .site-header .brand img {
    width: 30px;
  }
  .site-header .wordmark {
    font-size: 24px;
  }
  .button-sm {
    gap: 8px;
    padding: 0 14px 0 12px;
    font-size: 13.5px;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  .facet,
  .eye,
  .rider,
  .ear,
  .plane,
  .wind path,
  .trail {
    animation: none;
  }
  .js .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }
  .tri,
  .product-link span,
  .case-link span {
    transition: none;
  }
  .js .demo-step,
  .js .bubble-out,
  .js .node,
  .js .stage .link,
  .marker {
    transition: none;
  }
  .js .face {
    transition: none;
  }
  .clients {
    mask-image: none;
  }
  .clients-track {
    width: auto;
    animation: none;
  }
  .clients-group {
    flex-wrap: wrap;
    gap: 10px 0;
  }
  .clients-group[aria-hidden] {
    display: none;
  }
}
