/* Leavory — landing page styles.
   Dark, quiet surfaces, tight display type, hairline structure. The palette
   stays the brand's four colours and their transparencies. */

/* ---------- Fonts (local) ---------- */
@font-face {
  font-family: "Geist";
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url("../fonts/geist.woff2") format("woff2-variations");
}
@font-face {
  font-family: "IBM Plex Mono";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("../fonts/plex-mono-400.woff2") format("woff2");
}
@font-face {
  font-family: "IBM Plex Mono";
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url("../fonts/plex-mono-500.woff2") format("woff2");
}

/* ---------- Tokens ---------- */
:root {
  --red: #c62a3d;
  --red-type: #d21e38;
  --ink: #1e1c1b;
  --white: #ffffff;
  --red-rgb: 198 42 61;
  --ink-rgb: 30 28 27;
  --white-rgb: 255 255 255;

  --text: var(--white);
  --text-2: rgb(var(--white-rgb) / 0.68);
  --text-3: rgb(var(--white-rgb) / 0.54);
  --line: rgb(var(--white-rgb) / 0.08);
  --line-2: rgb(var(--white-rgb) / 0.14);

  --sans:
    "Geist", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --mono: "IBM Plex Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
  --max: 1440px;
  --gutter: clamp(20px, 4vw, 64px);
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  /* One corner family for the whole page: controls, then panels. */
  --radius: 10px;
  --radius-lg: 14px;
  /* Vertical rhythm: regular sections, and the anchor blocks. */
  --section: clamp(88px, 10vw, 144px);
  --section-lg: clamp(104px, 12vw, 176px);
  /* Comfortable line length for running text. */
  --measure: 38rem;
}

/* ---------- Base ---------- */
*,
*::before,
*::after {
  box-sizing: border-box;
}
html {
  scroll-behavior: smooth;
  scroll-padding-top: 108px;
  -webkit-text-size-adjust: 100%;
}
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
}
body {
  margin: 0;
  background-color: var(--ink);
  color: var(--text);
  font:
    400 16px/1.5 var(--sans),
    sans-serif;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
h1,
h2,
h3,
p,
ul,
ol,
figure {
  margin: 0;
}
ul,
ol {
  padding: 0;
  list-style: none;
}
a {
  color: inherit;
  text-decoration: none;
}
img,
svg,
canvas {
  display: block;
}
button,
input {
  font: inherit;
  color: inherit;
}
:focus-visible {
  outline: 2px solid var(--white);
  outline-offset: 3px;
  border-radius: 4px;
}
.sprite {
  position: absolute;
  width: 0;
  height: 0;
  overflow: hidden;
}
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}
.skip-link {
  position: fixed;
  z-index: 100;
  left: 16px;
  top: 12px;
  padding: 10px 16px;
  border-radius: var(--radius);
  background: var(--white);
  color: var(--ink);
  font-weight: 600;
}
.skip-link:not(:focus) {
  clip-path: inset(50%);
  width: 1px;
  height: 1px;
  padding: 0;
  overflow: hidden;
  white-space: nowrap;
}
.wrap {
  width: min(var(--max), 100% - 2 * var(--gutter));
  margin-inline: auto;
}
.mono {
  font: 500 12px/1.4 var(--mono);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-3);
}

/* ---------- Pills ---------- */
.pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  height: 34px;
  padding: 0 14px;
  border: 1px solid transparent;
  border-radius: var(--radius);
  font-size: 14px;
  font-weight: 500;
  white-space: nowrap;
  cursor: pointer;
  transition:
    background-color 0.2s,
    border-color 0.2s;
}
.pill--light {
  background-color: var(--white);
  color: var(--ink);
}
.pill--light:hover {
  background-color: rgb(var(--white-rgb) / 0.86);
}
.pill--light:active {
  background-color: rgb(var(--white-rgb) / 0.78);
}

/* =========================================================
   HEADER
   ========================================================= */
/* A floating bar as wide as the grid, a little off the top. */
/* A full-width bar fixed to the top; its content follows the grid. */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 50;
  border-bottom: 1px solid var(--line-2);
}
.nav__inner {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
  align-items: center;
  gap: 32px;
  height: 68px;
}
.nav__inner > .logo {
  justify-self: start;
}
.logo {
  display: inline-flex;
  align-items: center;
  gap: 0.4em;
  font-size: 20px;
  font-weight: 540;
  letter-spacing: -0.04em;
}
/* The isotype, in brand red: a shield cut through by three diagonal lines. */
.logo__mark {
  flex: none;
  width: auto;
  height: 1.2em;
  aspect-ratio: 18 / 21.5;
  color: var(--red);
}
.nav__links {
  display: flex;
  justify-content: center;
  gap: 28px;
}
.nav__links a,
.nav__mobile a:not(.pill) {
  font-size: 14px;
  color: var(--text-2);
  transition: color 0.2s;
}
.nav__links a:hover,
.nav__mobile a:not(.pill):hover {
  color: var(--text);
}
.nav__cta {
  justify-self: end;
}
.nav__toggle {
  border: 0;
  display: none;
  place-items: center;
  width: 38px;
  height: 38px;
  margin-left: auto;
  border-radius: var(--radius);
  background: none;
  cursor: pointer;
}
.nav__mobile {
  display: grid;
  gap: 4px;
  padding: 8px var(--gutter) 20px;
  border-top: 1px solid var(--line);
}
.nav__mobile a:not(.pill) {
  padding: 12px 0;
  font-size: 17px;
}
.nav__mobile .pill {
  justify-self: start;
  margin-top: 12px;
  height: 40px;
  padding: 0 18px;
}
.nav__mobile[hidden] {
  display: none;
}

/* =========================================================
   HERO
   ========================================================= */
/* The first screen shows the headline and the whole flow: the copy sits in
   one band, and the flow is sized by the height left below it. */
.hero {
  --hero-top: 388px; /* header, padding and the centred copy */
  padding-top: calc(68px + clamp(32px, 5svh, 64px));
  padding-bottom: clamp(40px, 6svh, 80px);
  overflow: clip;
}
.hero__head {
  display: grid;
  justify-items: center;
  text-align: center;
}
.hero__title {
  max-width: 20ch;
  font-size: clamp(36px, min(4.6vw, 7svh), 68px);
  font-weight: 540;
  line-height: 1.02;
  letter-spacing: -0.04em;
  text-wrap: balance;
}
.hero__lede {
  max-width: 46rem;
  margin-top: clamp(14px, 2.2svh, 22px);
  font-size: clamp(16px, 1.3vw, 18px);
  color: var(--text-2);
  text-wrap: balance;
}
/* Brand names in the lede: white, with their mark. */
.brand {
  display: inline-flex;
  align-items: baseline;
  gap: 0.3em;
  color: var(--text);
  font-weight: 500;
  white-space: nowrap;
}
.brand svg {
  width: 0.95em;
  height: 0.95em;
  align-self: center;
  transform: translateY(-0.04em);
}

/* ---------- Flow visual (design units: 1200 × 560) ---------- */
.flow {
  --grid: min(var(--max), 100vw - 2 * var(--gutter));
  position: relative;
  container-type: size;
  width: min(var(--max), 100% - 2 * var(--gutter));
  height: max(
    430px,
    min(calc(var(--grid) * 560 / 1200), calc(100svh - var(--hero-top)))
  );
  margin: clamp(8px, 2svh, 28px) auto 0;
  overflow: hidden;
}
/* Pieces are placed in design units (--x) from one of three anchors: the
   left edge, the centre or the right edge of the stage. */
.flow__stage {
  --u: calc(100cqh / 560);
  --side: clamp(24px, 4vw, 56px); /* breathing room at both sides */
  /* On a wide, short stage the sides stay near the sphere: at most this
     far from the centre (the design, plus 120 units). */
  --spread: calc(var(--u) * 570);
  --dx-left: calc(max(var(--side), 50% - var(--spread)) - var(--u) * 150);
  --dx-mid: calc(50% - var(--u) * 600);
  --dx-end: calc(
    min(100% - var(--side), 50% + var(--spread)) - var(--u) * 1050
  );
  position: absolute;
  inset: 0;
}
.flow__stage [data-side="left"] {
  --dx: var(--dx-left);
}
.flow__stage [data-side="mid"] {
  --dx: var(--dx-mid);
}
.flow__stage [data-side="end"] {
  --dx: var(--dx-end);
}
.flow__lines,
.flow__canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}
.flow__wire {
  fill: none;
  stroke: rgb(var(--white-rgb) / 0.17);
  stroke-width: 1;
  vector-effect: non-scaling-stroke;
}
.flow__exit circle {
  fill: var(--white);
}
.flow__lead {
  opacity: 0;
  transition: opacity 0.4s;
}
.flow__lead path {
  fill: none;
  stroke: rgb(var(--white-rgb) / 0.3);
  stroke-width: 1;
  vector-effect: non-scaling-stroke;
}
.flow__lead circle {
  fill: var(--white);
}
.flow__lead.is-on {
  opacity: 1;
}
/* Solid pieces are tonal shapes, like the figures: no outlines, a gradient
   lit from above, and a faint highlight along the top edge. Active states
   brighten the fill (an inset shadow, so it can fade). */
.flow__tile {
  position: absolute;
  left: calc(var(--u) * var(--x) + var(--dx, 0px));
  top: calc(var(--u) * var(--y));
  display: grid;
  place-items: center;
  width: calc(var(--u) * 46);
  height: calc(var(--u) * 46);
  border-radius: calc(var(--u) * 10);
  background:
    linear-gradient(rgb(var(--white-rgb) / 0.1), rgb(var(--white-rgb) / 0.03)),
    var(--ink);
  box-shadow: inset 0 1px 0 rgb(var(--white-rgb) / 0.1);
  font: 500 max(9px, calc(var(--u) * 11.5)) / 1 var(--mono);
  color: var(--text-2);
}
.flow__tile svg {
  width: calc(var(--u) * 20);
  height: calc(var(--u) * 20);
  color: var(--text);
}
/* Where each step happens: Connect and Scan light up the customer's
   pipeline; Cross-reference lights up the public sources. */
.flow__box {
  position: absolute;
  left: calc(var(--u) * var(--x) + var(--dx, 0px));
  top: calc(var(--u) * var(--y));
  width: calc(var(--u) * var(--w));
  height: calc(var(--u) * var(--h));
  border-radius: calc(var(--u) * 14);
  background: linear-gradient(
    rgb(var(--white-rgb) / 0.05),
    rgb(var(--white-rgb) / 0.015)
  );
  box-shadow: inset 0 1px 0 rgb(var(--white-rgb) / 0.06);
  transition: box-shadow 0.5s;
}
.flow__label {
  position: absolute;
  left: calc(var(--u) * var(--x) + var(--dx, 0px));
  top: calc(var(--u) * var(--y));
  font: 500 max(9px, calc(var(--u) * 9.5)) / 1 var(--mono);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  white-space: nowrap;
  color: var(--text-3);
}
.flow__port {
  fill: rgb(var(--white-rgb) / 0.35);
  transition: fill 0.5s;
}
.flow[data-stage="0"] .flow__port[data-group="pipe"],
.flow[data-stage="1"] .flow__port[data-group="pipe"],
.flow[data-stage="2"] .flow__port[data-group="adv"] {
  fill: var(--white);
}
.flow__wire,
.flow__tile {
  transition:
    stroke 0.5s,
    box-shadow 0.5s,
    color 0.5s;
}
.flow[data-stage="0"] .flow__wire[data-group="pipe"],
.flow[data-stage="1"] .flow__wire[data-group="pipe"],
.flow[data-stage="2"] .flow__wire[data-group="adv"] {
  stroke: rgb(var(--white-rgb) / 0.38);
}
.flow[data-stage="0"] .flow__tile[data-group="pipe"],
.flow[data-stage="1"] .flow__tile[data-group="pipe"],
.flow[data-stage="2"] .flow__tile[data-group="adv"] {
  box-shadow:
    inset 0 1px 0 rgb(var(--white-rgb) / 0.18),
    inset 0 0 0 calc(var(--u) * 30) rgb(var(--white-rgb) / 0.08);
  color: var(--text);
}
.flow[data-stage="0"] .flow__box,
.flow[data-stage="1"] .flow__box {
  box-shadow:
    inset 0 1px 0 rgb(var(--white-rgb) / 0.1),
    inset 0 0 0 calc(var(--u) * 200) rgb(var(--white-rgb) / 0.03);
}
.flow[data-stage="1"] .flow__tile.is-trivy {
  box-shadow:
    inset 0 1px 0 rgb(var(--white-rgb) / 0.25),
    inset 0 0 0 calc(var(--u) * 30) rgb(var(--red-rgb) / 0.9),
    0 0 calc(var(--u) * 26) rgb(var(--red-rgb) / 0.5);
  color: var(--white);
}
/* Liquid glass: what is behind is blurred and brightened, a light
   gradient sweeps across, and specular rims catch the light on top. */
.flow__steps {
  position: absolute;
  left: calc(var(--u) * 600 + var(--dx-mid));
  top: calc(var(--u) * 280);
  display: flex;
  gap: calc(var(--u) * 2);
  padding: calc(var(--u) * 5);
  border-radius: calc(var(--u) * 12);
  background:
    linear-gradient(
      135deg,
      rgb(var(--white-rgb) / 0.1),
      rgb(var(--white-rgb) / 0.04) 40%,
      rgb(var(--white-rgb) / 0.03) 60%,
      rgb(var(--white-rgb) / 0.07)
    ),
    linear-gradient(rgb(var(--ink-rgb) / 0.22), rgb(var(--ink-rgb) / 0.22));
  backdrop-filter: blur(8px) saturate(1.5) brightness(1.06);
  -webkit-backdrop-filter: blur(8px) saturate(1.5) brightness(1.06);
  box-shadow:
    inset 0 1px 0 rgb(var(--white-rgb) / 0.14),
    inset 0 0 0 1px rgb(var(--white-rgb) / 0.04),
    0 calc(var(--u) * 10) calc(var(--u) * 30) rgb(var(--ink-rgb) / 0.4);
  transform: translate(-50%, -50%);
}
.flow__steps span {
  padding: calc(var(--u) * 9) calc(var(--u) * 14);
  border-radius: calc(var(--u) * 8);
  font-size: max(11px, calc(var(--u) * 13));
  font-weight: 500;
  line-height: 1;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  white-space: nowrap;
  color: rgb(var(--white-rgb) / 0.62);
  transition:
    background-color 0.35s,
    color 0.35s,
    box-shadow 0.35s;
}
.flow__steps span.is-on {
  background-color: var(--white);
  color: var(--ink);
  font-weight: 600;
  box-shadow: 0 1px 10px rgb(var(--white-rgb) / 0.25);
}
.flow__steps span:last-child.is-on {
  background-color: var(--red);
  color: var(--white);
  box-shadow: 0 0 calc(var(--u) * 20) rgb(var(--red-rgb) / 0.5);
}
/* Live status: a translucent toast, set apart from the solid pieces, with
   the step it belongs to, a spinner that turns into a check, and a progress
   bar that fills while the step runs. */
.flow__note {
  position: absolute;
  left: calc(var(--u) * (var(--x) - var(--nudge, 0)) + var(--dx, 0px));
  top: calc(var(--u) * var(--y));
  display: flex;
  align-items: center;
  gap: calc(var(--u) * 12);
  padding: calc(var(--u) * 12) calc(var(--u) * 22) calc(var(--u) * 15)
    calc(var(--u) * 14);
  overflow: hidden;
  border-radius: calc(var(--u) * 12);
  background:
    linear-gradient(
      135deg,
      rgb(var(--white-rgb) / 0.1),
      rgb(var(--white-rgb) / 0.04) 40%,
      rgb(var(--white-rgb) / 0.03) 60%,
      rgb(var(--white-rgb) / 0.07)
    ),
    linear-gradient(rgb(var(--ink-rgb) / 0.22), rgb(var(--ink-rgb) / 0.22));
  backdrop-filter: blur(8px) saturate(1.5) brightness(1.06);
  -webkit-backdrop-filter: blur(8px) saturate(1.5) brightness(1.06);
  box-shadow:
    inset 0 1px 0 rgb(var(--white-rgb) / 0.14),
    inset 0 0 0 1px rgb(var(--white-rgb) / 0.04),
    0 calc(var(--u) * 10) calc(var(--u) * 30) rgb(var(--ink-rgb) / 0.4);
  white-space: nowrap;
  opacity: 0;
  transform: translateY(calc(var(--u) * 8)) scale(0.96);
  transform-origin: left center;
  transition:
    opacity 0.4s,
    transform 0.5s var(--ease);
}
.flow__note.is-on {
  opacity: 1;
  transform: none;
}
.flow__note-body {
  display: grid;
  gap: calc(var(--u) * 6);
}
.flow__note-step {
  font: 500 max(9px, calc(var(--u) * 10.5)) / 1 var(--mono);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-3);
}
.flow__note-text {
  font-size: max(12px, calc(var(--u) * 13.5));
  font-weight: 500;
  line-height: 1.15;
}
.flow__spin {
  position: relative;
  flex: none;
  width: calc(var(--u) * 16);
  height: calc(var(--u) * 16);
  border: 1.5px solid rgb(var(--white-rgb) / 0.18);
  border-top-color: var(--white);
  border-radius: 50%;
  transition:
    background-color 0.3s,
    border-color 0.3s;
}
.flow__spin::after {
  content: "";
  position: absolute;
  left: 34%;
  top: 18%;
  width: 26%;
  height: 48%;
  border: solid var(--ink);
  border-width: 0 1.5px 1.5px 0;
  opacity: 0;
  transform: rotate(45deg) scale(0.6);
  transition:
    opacity 0.3s,
    transform 0.3s var(--ease);
}
.flow__note.is-done .flow__spin {
  border-color: var(--white);
  background-color: var(--white);
}
.flow__note.is-done .flow__spin::after {
  opacity: 1;
  transform: rotate(45deg);
}
.flow__note-bar {
  position: absolute;
  left: calc(var(--u) * 42);
  right: calc(var(--u) * 22);
  bottom: calc(var(--u) * 7);
  height: 1px;
  background-color: rgb(var(--white-rgb) / 0.1);
}
.flow__note-bar::after {
  content: "";
  position: absolute;
  inset: 0;
  background-color: rgb(var(--white-rgb) / 0.7);
  transform: scaleX(0);
  transform-origin: left;
}
.flow__note.is-on .flow__note-bar::after {
  animation: note-progress var(--dur, 2.5s) linear forwards;
}
.flow__note.is-done .flow__note-bar::after {
  animation: none;
  transform: none;
}
@media (prefers-reduced-motion: no-preference) {
  .flow__note:not(.is-done) .flow__spin {
    animation: note-spin 0.8s linear infinite;
  }
}
@keyframes note-spin {
  to {
    transform: rotate(360deg);
  }
}
@keyframes note-progress {
  to {
    transform: none;
  }
}
/* The output: a short ranked list in liquid glass, mirroring the sources
   on the left. Its rows light up one by one at the Fix step. */
.flow__out {
  position: absolute;
  left: calc(var(--u) * 856 + var(--dx-end));
  top: calc(var(--u) * 280);
  width: calc(var(--u) * 214);
  padding: calc(var(--u) * 14) calc(var(--u) * 12) calc(var(--u) * 10);
  border-radius: calc(var(--u) * 12);
  background:
    linear-gradient(
      135deg,
      rgb(var(--white-rgb) / 0.1),
      rgb(var(--white-rgb) / 0.04) 40%,
      rgb(var(--white-rgb) / 0.03) 60%,
      rgb(var(--white-rgb) / 0.07)
    ),
    linear-gradient(rgb(var(--ink-rgb) / 0.22), rgb(var(--ink-rgb) / 0.22));
  backdrop-filter: blur(8px) saturate(1.5) brightness(1.06);
  -webkit-backdrop-filter: blur(8px) saturate(1.5) brightness(1.06);
  box-shadow:
    inset 0 1px 0 rgb(var(--white-rgb) / 0.14),
    inset 0 0 0 1px rgb(var(--white-rgb) / 0.04),
    0 calc(var(--u) * 10) calc(var(--u) * 30) rgb(var(--ink-rgb) / 0.4);
  transform: translateY(-50%);
  transition: box-shadow 0.5s;
}
/* At Fix the panel takes a red rim, without a glow around it. */
.flow__out.is-hot {
  box-shadow:
    inset 0 1px 0 rgb(var(--white-rgb) / 0.18),
    inset 0 0 0 1px rgb(var(--red-rgb) / 0.55),
    0 calc(var(--u) * 10) calc(var(--u) * 30) rgb(var(--ink-rgb) / 0.4);
}
.flow__out-title {
  padding: 0 calc(var(--u) * 4) calc(var(--u) * 10);
  font-size: max(12px, calc(var(--u) * 14));
  font-weight: 600;
  line-height: 1;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.flow__out-list li {
  display: flex;
  white-space: nowrap;
  align-items: center;
  gap: calc(var(--u) * 8);
  padding: calc(var(--u) * 7) calc(var(--u) * 4);
  border-top: 1px solid rgb(var(--white-rgb) / 0.06);
  font: 400 max(10px, calc(var(--u) * 12)) / 1 var(--mono);
  color: var(--text-3);
  transition: color 0.4s;
}
.flow__out.is-hot .flow__out-list li {
  color: var(--text-2);
  transition-delay: calc(var(--i) * 0.18s + 0.3s);
}
.flow__sev {
  flex: none;
  width: max(52px, calc(var(--u) * 56));
  padding: calc(var(--u) * 3) 0;
  border-radius: calc(var(--u) * 4);
  font: 600 max(9px, calc(var(--u) * 10)) / 1 var(--sans);
  letter-spacing: 0.02em;
  text-align: center;
  box-shadow: inset 0 0 0 1px rgb(var(--white-rgb) / 0.2);
  color: var(--text);
  transition:
    background-color 0.4s,
    box-shadow 0.4s,
    color 0.4s;
  transition-delay: calc(var(--i) * 0.18s + 0.3s);
}
/* Before the Fix step the ranking is neutral; it takes its colours at Fix. */
.flow__out:not(.is-hot) .flow__sev {
  background-color: transparent;
  box-shadow: inset 0 0 0 1px rgb(var(--white-rgb) / 0.2);
  color: var(--text-2);
  transition-delay: 0s;
}
.flow__sev--critical {
  background-color: var(--red);
  box-shadow: none;
  color: var(--white);
}
.flow__sev--secret {
  background-color: var(--white);
  box-shadow: none;
  color: var(--ink);
}
.flow__sev--high {
  box-shadow: inset 0 0 0 1px rgb(var(--red-rgb) / 0.9);
}
/* A shadow from the left edge (and the top and bottom) that partly hides
   the source column, so the wires seem to come from further away. */
.flow__shade {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 0;
  width: calc(var(--dx-left) + var(--u) * 290);
  pointer-events: none;
  background:
    linear-gradient(
      180deg,
      var(--ink) 0,
      rgb(var(--ink-rgb) / 0) 24%,
      rgb(var(--ink-rgb) / 0) 76%,
      var(--ink) 100%
    ),
    linear-gradient(
      90deg,
      rgb(var(--ink-rgb) / 0.9) 0,
      rgb(var(--ink-rgb) / 0.45) 38%,
      rgb(var(--ink-rgb) / 0) 100%
    );
}
/* Pause control: a small glass button in the stage's corner. It stops
   every loop on the page; with reduced motion nothing loops, so it hides. */
.motion-toggle {
  position: absolute;
  right: 0;
  bottom: 0;
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  padding: 0;
  border: 0;
  border-radius: var(--radius);
  color: var(--text-2);
  cursor: pointer;
  transition: color 0.2s;
}
.motion-toggle:hover {
  color: var(--text);
}
@media (prefers-reduced-motion: reduce) {
  .motion-toggle {
    display: none;
  }
}
.motion-paused *,
.motion-paused *::before,
.motion-paused *::after {
  animation-play-state: paused !important;
}
/* Without WebGL, a still dotted sphere stands in for the live one. */
.flow:not(.is-live) .flow__stage::before {
  content: "";
  position: absolute;
  left: calc(var(--u) * 352 + var(--dx-mid));
  top: calc(var(--u) * 32);
  width: calc(var(--u) * 496);
  height: calc(var(--u) * 496);
  border-radius: 50%;
  background: radial-gradient(
      circle,
      rgb(var(--white-rgb) / 0.55) 0 calc(var(--u) * 1.4),
      transparent calc(var(--u) * 2)
    )
    0 0 / calc(var(--u) * 9) calc(var(--u) * 9);
  mask-image: radial-gradient(circle, black 50%, transparent 71%);
}

/* =========================================================
   SECTIONS
   ========================================================= */
.sources {
  padding: clamp(40px, 4vw, 56px) 0;
  border-bottom: 1px solid var(--line-2);
}
.sources > .wrap {
  display: flex;
  align-items: center;
  gap: clamp(28px, 3vw, 48px);
}
.sources__grid {
  flex: 1;
  min-width: 0;
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(0, 0.5fr) minmax(0, 2.1fr);
}
.sources__group {
  padding: 4px 32px;
}
.sources__group:first-child {
  padding-left: 0;
}
.sources__group + .sources__group {
  border-left: 1px solid var(--line-2);
}
.sources__group .mono {
  font-size: 11px;
}
.sources__group ul {
  display: flex;
  flex-wrap: wrap;
  gap: 14px 24px;
  margin-top: 18px;
}
.sources__group li {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-size: clamp(15px, 1.3vw, 18px);
  font-weight: 600;
  letter-spacing: -0.02em;
  white-space: nowrap;
  color: rgb(var(--white-rgb) / 0.82);
}

.statement {
  padding: var(--section) 0;
}
.statement__text {
  max-width: 24em;
  font-size: clamp(28px, 3.6vw, 50px);
  font-weight: 540;
  line-height: 1.1;
  letter-spacing: -0.035em;
}
.statement__text span,
.big span,
.hero__title span {
  color: var(--text-3);
}

/* ---------- Figures ---------- */
.figs__head {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  align-items: end;
  gap: 24px 64px;
  padding-bottom: clamp(40px, 5vw, 64px);
}
.figs__head h2 {
  max-width: 18em;
  font-size: clamp(22px, 2vw, 28px);
  font-weight: 540;
  line-height: 1.2;
  letter-spacing: -0.025em;
}
.figs__head p {
  max-width: 32rem;
  justify-self: end;
  font-size: 16px;
  color: var(--text-2);
}
.figs {
  border-bottom: 1px solid var(--line);
}
.figs__grid {
  border-top: 1px solid var(--line);
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}
.fig {
  padding: 48px 32px 56px;
}
.fig:first-child {
  padding-left: 0;
}
.fig + .fig {
  border-left: 1px solid var(--line);
}
.iso {
  width: 100%;
  height: clamp(200px, 21vw, 260px);
  margin: 0 0 36px;
  overflow: visible;
}
/* Tonal shapes, no outlines: each face is opaque ink under a white or red
   gradient (set in the markup), so light and depth draw the form. */
.iso .base {
  fill: var(--ink);
}
/* Subtle motion: the flagged repository bobs, the explained cube floats,
   the newest advisory slides into the stream. */
@media (prefers-reduced-motion: no-preference) {
  .iso .pulse {
    animation: iso-pulse 2.4s ease-in-out infinite;
  }
  .iso .bob {
    animation: iso-bob 3.6s ease-in-out infinite;
  }
  .iso .float {
    animation: iso-float 5s ease-in-out infinite;
  }
  .iso .slide {
    animation: iso-slide 6s var(--ease) infinite;
  }
}
@keyframes iso-pulse {
  50% {
    opacity: 0.35;
  }
}
@keyframes iso-bob {
  50% {
    transform: translateY(-4px);
  }
}
@keyframes iso-float {
  50% {
    transform: translateY(-7px);
  }
}
@keyframes iso-slide {
  0% {
    opacity: 0;
    transform: translate(24px, 14px);
  }
  22%,
  86% {
    opacity: 1;
    transform: none;
  }
  100% {
    opacity: 0;
    transform: none;
  }
}
.fig h3 {
  font-size: 15px;
  font-weight: 600;
}
.fig p {
  max-width: 30ch;
  margin-top: 8px;
  font-size: 15px;
  color: var(--text-2);
}

/* ---------- Feature sections ---------- */
.feature {
  padding: var(--section) 0;
  border-bottom: 1px solid var(--line);
}
.feature__head {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 32px 48px;
  align-items: start;
}
.feature__head h2 {
  font-size: clamp(34px, 4.2vw, 58px);
  font-weight: 540;
  line-height: 1.04;
  letter-spacing: -0.04em;
}
.feature__head p {
  max-width: var(--measure);
  font-size: clamp(17px, 1.4vw, 21px);
  line-height: 1.4;
  letter-spacing: -0.01em;
}
.more {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 24px;
  font-size: 15px;
  color: var(--text-2);
  transition: color 0.2s;
}
.more:hover {
  color: var(--text);
}
.feature__list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
  margin-top: 56px;
}
.feature__list li {
  padding-top: 16px;
  border-top: 1px solid var(--line-2);
  font-size: 16px;
  color: var(--text-2);
}

.cells {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin-top: clamp(48px, 6vw, 80px);
  border-radius: var(--radius-lg);
}
.cells li {
  padding: 28px;
}
.cells li + li {
  border-left: 1px solid var(--line);
}
.cells h3,
.timeline h3,
.roles__grid h3 {
  margin-top: 14px;
  font-size: 16px;
  font-weight: 600;
}
.cells p,
.timeline p,
.roles__grid p {
  margin-top: 8px;
  font-size: 15px;
  color: var(--text-2);
}
.feature__aside {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-top: 28px;
  font-size: 15px;
  color: var(--text-2);
}
.feature__aside strong {
  color: var(--text);
  font-weight: 600;
}
.feature__logos {
  display: flex;
  flex: none;
  gap: 8px;
}

.platform {
  padding-top: var(--section-lg);
}
.platform__head {
  text-align: center;
}
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font: 500 12px/1 var(--mono);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-2);
}
.eyebrow::before {
  content: "";
  width: 6px;
  height: 6px;
  background-color: var(--red);
}
.platform__head h2 {
  max-width: 14ch;
  margin: 24px auto 0;
  font-size: clamp(38px, 5.4vw, 76px);
  font-weight: 540;
  line-height: 1.02;
  letter-spacing: -0.04em;
  text-wrap: balance;
}
.platform__lede {
  max-width: 36rem;
  margin: 24px auto 0;
  font-size: clamp(16px, 1.3vw, 18px);
  color: var(--text-2);
}
.caps {
  margin-top: clamp(56px, 7vw, 96px);
  border-block: 1px solid var(--line);
}
.caps__grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  max-width: 1600px;
  margin: 0 auto;
}
.caps__grid li {
  padding: clamp(48px, 5vw, 72px) clamp(20px, 2vw, 32px) 56px;
}
.caps__grid li + li {
  border-left: 1px solid var(--line);
}
.caps__grid h3 {
  font-size: 20px;
  font-weight: 540;
  line-height: 1.2;
  letter-spacing: -0.025em;
}
.caps__grid p {
  margin-top: 12px;
  font-size: 15px;
  color: var(--text-2);
}

/* Line icons: hairlines, one red accent each, gentle loops. */
.cap-icon {
  display: block;
  width: 96px;
  height: 72px;
  margin-bottom: 32px;
  overflow: visible;
}
.cap-icon .ln {
  fill: none;
  stroke: rgb(var(--white-rgb) / 0.5);
  stroke-width: 1;
  vector-effect: non-scaling-stroke;
}
.cap-icon .soft {
  stroke: rgb(var(--white-rgb) / 0.2);
}
.cap-icon .ink {
  fill: var(--ink);
}
.cap-icon .bar {
  fill: rgb(var(--white-rgb) / 0.42);
  transform-box: fill-box;
  transform-origin: bottom;
}
.cap-icon .red {
  fill: var(--red);
}
.cap-icon .pulse-line {
  fill: none;
  stroke: rgb(var(--white-rgb) / 0.8);
  stroke-width: 1.25;
  stroke-linejoin: round;
  vector-effect: non-scaling-stroke;
}
.cap-icon .sweep {
  fill: rgb(var(--white-rgb) / 0.55);
}
@media (prefers-reduced-motion: no-preference) {
  .cap-icon .bar {
    animation: cap-bar 2.8s ease-in-out infinite;
  }
  .cap-icon .bar:nth-child(2) {
    animation-delay: -0.6s;
  }
  .cap-icon .bar:nth-child(3) {
    animation-delay: -1.2s;
  }
  .cap-icon .bar:nth-child(4) {
    animation-delay: -1.8s;
  }
  .cap-icon .bar:nth-child(5) {
    animation-delay: -2.4s;
  }
  .cap-icon .pulse {
    animation: cap-pulse 1.8s ease-in-out infinite;
  }
  .cap-icon .pulse-line {
    stroke-dasharray: 100;
    animation: cap-draw 3s ease-in-out infinite;
  }
  .cap-icon .beat {
    transform-box: fill-box;
    transform-origin: center;
    animation: cap-beat 3s ease-in-out infinite;
  }
  .cap-icon .travel {
    animation: cap-travel 4.8s var(--ease) infinite;
  }
  .cap-icon .sweep {
    animation: cap-sweep 3.6s ease-in-out infinite;
  }
}
@keyframes cap-bar {
  50% {
    transform: scaleY(0.55);
  }
}
@keyframes cap-pulse {
  50% {
    opacity: 0.25;
  }
}
@keyframes cap-draw {
  0% {
    stroke-dashoffset: 100;
  }
  55%,
  80% {
    stroke-dashoffset: 0;
    opacity: 1;
  }
  100% {
    stroke-dashoffset: 0;
    opacity: 0;
  }
}
@keyframes cap-beat {
  0%,
  35% {
    transform: scale(0);
  }
  45% {
    transform: scale(1.5);
  }
  55%,
  85% {
    transform: scale(1);
  }
  100% {
    transform: scale(0);
  }
}
@keyframes cap-travel {
  0%,
  12% {
    transform: none;
  }
  25%,
  37% {
    transform: translateX(28px);
  }
  50%,
  62% {
    transform: translateX(56px);
  }
  75%,
  92% {
    transform: translateX(84px);
  }
  100% {
    transform: translateX(84px);
    opacity: 0;
  }
}
@keyframes cap-sweep {
  0%,
  100% {
    transform: none;
  }
  50% {
    transform: translateX(66px);
  }
}

/* ---------- Product window ---------- */
.screen {
  position: relative;
  margin-top: clamp(48px, 6vw, 80px);
}
.screen::before {
  content: "";
  position: absolute;
  z-index: -1;
  inset: 4% 0 -4%;
  background: radial-gradient(
    ellipse 50% 40% at 50% 22%,
    rgb(var(--white-rgb) / 0.07),
    transparent 70%
  );
  pointer-events: none;
}
.screen__caption {
  margin-top: 14px;
  font-size: 11px;
}
.app {
  overflow: hidden;
  border: 1px solid var(--line-2);
  border-radius: var(--radius-lg);
  background:
    linear-gradient(
      rgb(var(--white-rgb) / 0.045),
      rgb(var(--white-rgb) / 0.015)
    ),
    var(--ink);
  box-shadow:
    inset 0 1px 0 rgb(var(--white-rgb) / 0.08),
    0 40px 100px -40px rgb(var(--red-rgb) / 0.22);
  font-size: 14px;
  line-height: 1.45;
}
.app__top {
  display: flex;
  align-items: center;
  gap: 12px;
  height: 52px;
  padding: 0 18px;
  border-bottom: 1px solid var(--line);
}
/* The isotype, in brand red, as in the header. */
.app__mark {
  flex: none;
  width: auto;
  height: 20px;
  aspect-ratio: 18 / 21.5;
  color: var(--red);
}
.app__crumb {
  font-size: 13.5px;
  color: var(--text-2);
}
.app__crumb span {
  margin: 0 4px;
}
.app__crumb strong {
  color: var(--text);
  font-weight: 600;
}
.app__search {
  display: flex;
  align-items: center;
  gap: 8px;
  width: 240px;
  height: 32px;
  margin-left: auto;
  padding: 0 12px;
  border: 1px solid var(--line-2);
  border-radius: 8px;
  font-size: 13px;
  color: var(--text-3);
}
.app__body {
  display: grid;
  grid-template-columns: 208px minmax(0, 1fr) 340px;
  min-height: 480px;
}
.app__nav {
  padding: 8px 12px 20px;
  border-right: 1px solid var(--line);
}
.app__nav p {
  margin: 16px 10px 6px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-3);
}
.app__nav li {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 7px 10px;
  border-radius: 6px;
  font-size: 13.5px;
  color: var(--text-2);
}
.app__nav li.is-on {
  background-color: rgb(var(--white-rgb) / 0.07);
  color: var(--text);
  font-weight: 600;
}
.app__nav li.is-on svg {
  color: var(--red);
}
.app__list {
  min-width: 0;
  padding: 22px 24px;
}
.app__head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 14px;
}
.app__title {
  font-size: 22px;
  font-weight: 600;
  line-height: 1.1;
  letter-spacing: -0.02em;
}
.app__sub {
  margin-top: 6px;
  font-size: 13px;
  color: var(--text-2);
}
.app__tabs {
  display: flex;
  gap: 4px;
  padding: 3px;
  border-radius: 8px;
  background-color: rgb(var(--white-rgb) / 0.05);
}
.app__tabs span {
  padding: 6px 10px;
  border-radius: 6px;
  font-size: 12.5px;
  font-weight: 500;
  color: var(--text-2);
}
.app__tabs b {
  margin-left: 4px;
  font-weight: 600;
}
.app__tabs .is-on {
  background-color: rgb(var(--white-rgb) / 0.1);
  color: var(--text);
}
.ftable {
  width: 100%;
  margin-top: 18px;
  border-collapse: collapse;
}
.ftable th {
  padding: 8px 12px;
  border-bottom: 1px solid var(--line-2);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-align: left;
  text-transform: uppercase;
  color: var(--text-3);
}
.ftable td {
  padding: 11px 12px;
  border-bottom: 1px solid var(--line);
  vertical-align: middle;
}
.ftable tr.is-selected {
  background-color: rgb(var(--red-rgb) / 0.12);
}
.ftable tr.is-selected td:first-child {
  box-shadow: inset 2px 0 0 var(--red);
}
.ftable__name {
  display: block;
  font-weight: 600;
}
.ftable__repo {
  display: block;
  margin-top: 2px;
  font: 400 12px/1.4 var(--mono);
  color: var(--text-2);
}
.sev {
  display: inline-flex;
  align-items: center;
  height: 22px;
  padding: 0 8px;
  border: 1px solid transparent;
  border-radius: 5px;
  font-size: 11.5px;
  font-weight: 600;
  line-height: 1;
  white-space: nowrap;
}
.sev--critical {
  background-color: var(--red);
  color: var(--white);
}
.sev--high {
  border-color: var(--red);
}
.sev--medium {
  border-color: rgb(var(--white-rgb) / 0.3);
}
.sev--secret {
  background-color: var(--white);
  color: var(--ink);
}
.status {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: 12.5px;
  color: var(--text-2);
  white-space: nowrap;
}
.status::before {
  content: "";
  width: 7px;
  height: 7px;
  border: 1.5px solid currentColor;
  border-radius: 50%;
}
.status--ai::before {
  border: 0;
  border-radius: 1px;
  background-color: var(--red);
  transform: rotate(45deg);
}
.app__detail {
  display: flex;
  flex-direction: column;
  padding: 22px 22px 24px;
  border-left: 1px solid var(--line);
}
.app__detail-head {
  display: flex;
  align-items: center;
  gap: 12px;
}
.app__detail-title {
  margin-top: 14px;
  font-size: 18px;
  font-weight: 600;
  line-height: 1.25;
  letter-spacing: -0.02em;
}
.app__detail-meta {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-top: 6px;
  font: 400 12px/1.4 var(--mono);
  color: var(--text-2);
}
.app__detail-tabs {
  display: flex;
  gap: 18px;
  margin-top: 18px;
  border-bottom: 1px solid var(--line);
}
.app__detail-tabs span {
  padding-bottom: 9px;
  font-size: 13px;
  font-weight: 500;
  color: var(--text-2);
}
.app__detail-tabs .is-on {
  color: var(--text);
  box-shadow: inset 0 -2px 0 var(--red);
}
.app__label {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-top: 18px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-3);
}
.app__label svg {
  color: var(--red);
}
.app__text,
.app__steps {
  margin-top: 8px;
  color: rgb(var(--white-rgb) / 0.86);
}
.app__steps {
  padding-left: 18px;
  list-style: decimal;
}
.app__steps li + li {
  margin-top: 4px;
}
.app__steps code {
  padding: 1px 5px;
  border-radius: 4px;
  background-color: rgb(var(--white-rgb) / 0.08);
  font: 500 12.5px var(--mono);
}
.app__open {
  display: inline-flex;
  align-self: flex-start;
  align-items: center;
  gap: 6px;
  margin-top: auto;
  padding: 8px 13px;
  border-radius: var(--radius);
  font-size: 13px;
  font-weight: 500;
}

/* ---------- Roles ---------- */
.roles {
  padding: var(--section) 0;
  border-bottom: 1px solid var(--line);
}
.big {
  max-width: 22em;
  font-size: clamp(32px, 4.2vw, 58px);
  font-weight: 540;
  line-height: 1.06;
  letter-spacing: -0.04em;
}
.roles__grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 32px;
  margin-top: clamp(48px, 6vw, 80px);
}
.roles__grid li {
  padding-top: 24px;
  border-top: 1px solid var(--line-2);
}
.roles__grid svg {
  color: var(--red);
}

/* ---------- Timeline ---------- */
.timeline {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 32px;
  margin-top: clamp(48px, 6vw, 80px);
}
.timeline li {
  position: relative;
}
/* Each step opens with a small figure; the rail and its dot sit under it. */
.iso.iso--step {
  display: block;
  height: clamp(84px, 8vw, 112px);
  margin: 0 0 28px;
}
.timeline li > .mono {
  position: relative;
  display: block;
  padding-top: 24px;
  border-top: 1px solid var(--line-2);
}
.timeline li > .mono::before {
  content: "";
  position: absolute;
  top: -4px;
  left: 0;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background-color: var(--white);
}
.timeline li.is-fix > .mono {
  border-top-color: var(--red);
}
.timeline li.is-fix > .mono::before {
  background-color: var(--red);
  box-shadow: 0 0 12px rgb(var(--red-rgb) / 0.8);
}
@media (prefers-reduced-motion: no-preference) {
  .iso--step .pulse {
    animation: iso-glow 2.8s ease-in-out infinite;
  }
  .iso--step .sweep {
    animation: iso-sweep 3.2s ease-in-out infinite;
  }
}
@keyframes iso-glow {
  50% {
    opacity: 0.55;
  }
}
@keyframes iso-sweep {
  0%,
  100% {
    transform: translateY(12px);
  }
  50% {
    transform: translateY(-12px);
  }
}

/* ---------- Security ---------- */
.security {
  padding: var(--section) 0;
  border-bottom: 1px solid var(--line);
}
.security__inner {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr);
  gap: 48px 80px;
  align-items: center;
}
.security__inner > div > p {
  max-width: 34rem;
  margin-top: 24px;
  font-size: 17px;
  color: var(--text-2);
}
.boundary {
  display: grid;
  gap: 0;
}
.boundary__org {
  display: grid;
  gap: 10px;
  padding: 16px;
  border: 1px dashed rgb(var(--white-rgb) / 0.24);
  border-radius: var(--radius-lg);
}
.boundary__org > .mono {
  font-size: 11px;
}
.boundary__box {
  padding: 14px 16px;
  border-radius: var(--radius);
}
.boundary__box span {
  display: block;
  font-size: 12px;
  color: var(--text-3);
}
.boundary__box strong {
  display: block;
  margin-top: 4px;
  font-size: 15px;
  font-weight: 600;
}
.boundary__box.is-muted strong {
  color: var(--text-2);
}
.boundary__arrow {
  position: relative;
  justify-self: center;
  width: 1px;
  height: 44px;
  background: linear-gradient(rgb(var(--white-rgb) / 0.4), var(--red));
}
.boundary__arrow::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: -4px;
  border: 4.5px solid transparent;
  border-top-color: var(--red);
  border-bottom: 0;
}

/* ---------- Stamp ----------
   A circular line of text around the isotype; the ring turns as the page
   scrolls (js/main.js). */
.stamp {
  position: relative;
  width: 132px;
  height: 132px;
  border-radius: 50%;
  pointer-events: none; /* filled with liquid glass, below */
}
/* The ring text turns through its SVG transform attribute (js/main.js).
   A CSS transform needed transform-box: view-box, which Safari resolves to
   another origin, and turning the whole box widened the page. */
.stamp__ring {
  width: 100%;
  height: 100%;
  overflow: visible;
}
.stamp__ring text {
  fill: rgb(var(--white-rgb) / 0.78);
  font: 500 14px var(--mono);
  letter-spacing: 0.12em;
  text-transform: uppercase;
}
.stamp__mark {
  position: absolute;
  top: 50%;
  left: 50%;
  height: 36%;
  aspect-ratio: 18 / 21.5;
  color: var(--red);
  transform: translate(-50%, -50%);
}
/* Security: a seal pressed on the corner of the diagram. */
.boundary {
  position: relative;
}
.stamp--seal {
  position: absolute;
  z-index: 2;
  top: -60px;
  right: -44px;
}
/* Sources: the signature beside the integrations, tying them to the
   promise in the hero. */
.stamp--sources {
  flex: none;
}
/* Here it is only the mark and its ring: no glass fill. */
.stamp.stamp--sources {
  background: none;
  -webkit-backdrop-filter: none;
  backdrop-filter: none;
  box-shadow: none;
}
@media (max-width: 1100px) {
  .stamp--seal {
    right: -12px;
  }
}
@media (max-width: 760px) {
  .stamp--seal {
    width: 104px;
    height: 104px;
    top: -52px;
    right: -6px;
  }
}

/* ---------- Call to action ---------- */
.cta {
  padding: var(--section-lg) 0;
  text-align: center;
}
.cta h2 {
  font-size: clamp(40px, 6.4vw, 88px);
  font-weight: 540;
  line-height: 1;
  letter-spacing: -0.045em;
}
.cta__inner > p {
  max-width: 34rem;
  margin: 22px auto 0;
  font-size: 18px;
  color: var(--text-2);
}
.cta__form {
  max-width: 520px;
  margin: 40px auto 0;
}
.cta__form fieldset {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
  margin: 0;
  padding: 0;
  border: 0;
}
.chip {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: 36px;
  padding: 0 14px;
  border-radius: var(--radius);
  font-size: 14px;
  color: var(--text-2);
  cursor: pointer;
  transition:
    background-color 0.2s,
    border-color 0.2s,
    color 0.2s;
}
.chip input {
  position: absolute;
  inset: 0;
  margin: 0;
  opacity: 0;
  cursor: pointer;
}
.chip:has(input:checked) {
  color: var(--text);
}
.chip:has(input:focus-visible) {
  outline: 2px solid var(--white);
  outline-offset: 2px;
}
.cta__row {
  display: flex;
  gap: 8px;
  margin-top: 16px;
}
.cta__row input {
  border: 0;
  flex: 1;
  min-width: 0;
  height: 44px;
  padding: 0 18px;
  border-radius: var(--radius);
  font-size: 15px;
}
.cta__row input::placeholder {
  color: var(--text-3);
}
.cta__row input:focus-visible {
  outline-offset: 2px;
  border-radius: var(--radius);
}
.cta__row .pill {
  height: 44px;
  padding: 0 20px;
  font-size: 15px;
}
.cta__error {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 14px;
  font-size: 14px;
}
.cta__error::before {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background-color: var(--red);
}
.cta__error[hidden] {
  display: none;
}
.cta__note {
  margin-top: 14px;
  font-size: 14px;
  color: var(--text-3);
}

/* ---------- Line fields ----------
   Vertical hairlines every 12px (js/lines.js snaps its bars to the
   same step), faded by a mask so they never sit under the copy. Bars drift
   down the lines; one per field is red. */
.lines {
  position: absolute;
  z-index: -1;
  pointer-events: none;
  overflow: hidden;
  background: repeating-linear-gradient(
    90deg,
    rgb(var(--white-rgb) / 0.055) 0 1px,
    transparent 1px 12px
  );
  -webkit-mask-image: var(--lines-mask);
  mask-image: var(--lines-mask);
}
.lines__bar {
  position: absolute;
  top: 0;
  width: 2px;
  height: var(--h);
  margin-left: -0.5px;
  border-radius: 1px;
  background-color: rgb(var(--white-rgb) / 0.32);
  transform: translateY(calc(var(--rest) / 100 * var(--travel, 400px)));
}
.lines__bar.is-red {
  background-color: var(--red);
}
@media (prefers-reduced-motion: no-preference) {
  .lines__bar {
    animation: lines-drift var(--dur) linear var(--delay) infinite;
  }
  .lines.is-paused .lines__bar {
    animation-play-state: paused;
  }
}
@keyframes lines-drift {
  from {
    transform: translateY(var(--travel, 400px));
  }
  to {
    transform: translateY(calc(-1 * var(--h)));
  }
}
/* Hero: hard-edged panels of lines in the margins beside the grid, the full
   height of the section, closed by a rule. */
.hero {
  position: relative;
  isolation: isolate;
  border-bottom: 1px solid var(--line-2);
}
.lines--hero {
  top: 0;
  bottom: 0;
  width: max(0px, (100% - var(--max)) / 2, var(--gutter) - 8px);
}
.lines--left {
  left: 0;
  border-right: 1px solid var(--line-2);
}
.lines--right {
  right: 0;
  border-left: 1px solid var(--line-2);
}
/* Call to action: the whole block is a field, edge to edge. */
.cta {
  position: relative;
  isolation: isolate;
  overflow: clip;
  border-block: 1px solid var(--line-2);
}
.lines--cta {
  inset: 0;
}

/* ---------- Footer ----------
   Editorial: brand, big numbered links, small links; then the wordmark
   drawn in stripes, cut at its baseline. */
.footer {
  padding-top: clamp(56px, 7vw, 96px);
  border-top: 1px solid var(--line);
  overflow: hidden;
}
.footer__grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.3fr) minmax(0, 0.7fr);
  align-items: start;
  gap: 48px;
}
.footer__brand p {
  max-width: 22rem;
  margin-top: 20px;
  font-size: 15px;
  color: var(--text-2);
}
.footer__brand small {
  display: block;
  margin-top: 28px;
  font-size: 13px;
  color: var(--text-3);
}
.footer__big {
  padding-left: 32px;
  border-left: 1px solid var(--line);
}
.footer__big a {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
  padding: 10px 0 12px;
  font-size: clamp(26px, 2.8vw, 40px);
  font-weight: 540;
  line-height: 1.05;
  letter-spacing: -0.035em;
  transition: color 0.2s;
}
.footer__big a + a {
  border-top: 1px solid var(--line);
}
.footer__big a:first-child {
  padding-top: 0;
}
.footer__big a:hover {
  color: var(--text-2);
}
.footer__big .mono {
  font-size: 11px;
  letter-spacing: 0.06em;
}
.footer__small {
  display: grid;
  gap: 12px;
  padding-left: 32px;
  border-left: 1px solid var(--line);
}
.footer__small a {
  font: 500 12px/1.4 var(--mono);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-2);
  transition: color 0.2s;
}
.footer__small a:hover {
  color: var(--text);
}
.footer__mark {
  margin-top: clamp(48px, 6vw, 88px);
}
.footer__mark svg {
  display: block;
  width: 100%;
  height: auto;
}
.footer__mark-bar {
  fill: var(--red);
}
@media (prefers-reduced-motion: no-preference) {
  .footer__mark-bar {
    animation: mark-drift 6s linear infinite;
  }
}
@keyframes mark-drift {
  from {
    transform: translateY(-90px);
  }
  to {
    transform: translateY(340px);
  }
}

/* ---------- Liquid glass ----------
   Frosted surfaces: what is behind is lightly blurred and brightened, a
   soft light gradient crosses the fill, and only a faint rim catches the
   light on top. */
.nav,
.nav__toggle,
.motion-toggle,
.cells,
.boundary__box,
.chip,
.cta__row input,
.app__open,
.stamp {
  background:
    linear-gradient(
      135deg,
      rgb(var(--white-rgb) / 0.08),
      rgb(var(--white-rgb) / 0.03) 40%,
      rgb(var(--white-rgb) / 0.02) 60%,
      rgb(var(--white-rgb) / 0.05)
    ),
    linear-gradient(rgb(var(--ink-rgb) / 0.3), rgb(var(--ink-rgb) / 0.3));
  backdrop-filter: blur(8px) saturate(1.5) brightness(1.06);
  -webkit-backdrop-filter: blur(8px) saturate(1.5) brightness(1.06);
  box-shadow:
    inset 0 1px 0 rgb(var(--white-rgb) / 0.12),
    inset 0 0 0 1px rgb(var(--white-rgb) / 0.04);
}
/* The header stays a bar: denser fill, the rim only along the bottom. */
.nav {
  background:
    linear-gradient(
      90deg,
      rgb(var(--white-rgb) / 0.04),
      rgb(var(--white-rgb) / 0.015) 50%,
      rgb(var(--white-rgb) / 0.04)
    ),
    linear-gradient(rgb(var(--ink-rgb) / 0.72), rgb(var(--ink-rgb) / 0.72));
  backdrop-filter: blur(14px) saturate(1.6);
  -webkit-backdrop-filter: blur(14px) saturate(1.6);
  box-shadow: 0 12px 32px rgb(var(--ink-rgb) / 0.35);
}
/* The organization boundary on the security diagram keeps its dashed edge. */
.boundary__box.is-out {
  box-shadow:
    inset 0 1px 0 rgb(var(--white-rgb) / 0.12),
    inset 0 0 0 1px rgb(var(--red-rgb) / 0.7),
    0 0 40px -10px rgb(var(--red-rgb) / 0.5);
}
/* An email that failed validation: the glass rim turns red. */
.cta__row input[aria-invalid="true"] {
  box-shadow:
    inset 0 1px 0 rgb(var(--white-rgb) / 0.12),
    inset 0 0 0 1px rgb(var(--red-rgb) / 0.9);
}
.chip:has(input:checked) {
  background:
    linear-gradient(rgb(var(--white-rgb) / 0.16), rgb(var(--white-rgb) / 0.08)),
    rgb(var(--ink-rgb) / 0.3);
  box-shadow:
    inset 0 1px 0 rgb(var(--white-rgb) / 0.22),
    inset 0 0 0 1px rgb(var(--white-rgb) / 0.12);
}

/* =========================================================
   Motion
   ========================================================= */
@media (prefers-reduced-motion: no-preference) {
  .js [data-reveal] {
    opacity: 0;
    transform: translateY(18px);
    transition:
      opacity 0.9s ease,
      transform 1s var(--ease);
  }
  .js [data-reveal].is-visible {
    opacity: 1;
    transform: none;
  }
}

/* =========================================================
   Breakpoints
   ========================================================= */
@media (max-width: 1100px) {
  .app__body {
    grid-template-columns: minmax(0, 1fr) 320px;
  }
  .app__nav {
    display: none;
  }
  .caps__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .caps__grid li + li {
    border-left: 0;
  }
  .caps__grid li:nth-child(even) {
    border-left: 1px solid var(--line);
  }
  .caps__grid li:nth-child(n + 3) {
    border-top: 1px solid var(--line);
  }
  .roles__grid,
  .timeline {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 40px 32px;
  }
}

@media (max-width: 960px) {
  .nav__links {
    display: none;
  }
  /* The demo stays one tap away: a compact button beside the menu. */
  .nav__inner {
    grid-template-columns: minmax(0, 1fr) auto auto;
    gap: 8px;
  }
  .nav__toggle {
    display: grid;
  }
  .figs__grid {
    grid-template-columns: minmax(0, 1fr);
  }
  .figs__head {
    grid-template-columns: minmax(0, 1fr);
  }
  .figs__head p {
    justify-self: start;
  }
  .fig,
  .fig:first-child {
    padding: 40px 0 48px;
  }
  .fig + .fig {
    border-left: 0;
    border-top: 1px solid var(--line);
  }
  .feature__head,
  .security__inner {
    grid-template-columns: minmax(0, 1fr);
  }
  .cells {
    grid-template-columns: minmax(0, 1fr);
  }
  .cells li + li {
    border-left: 0;
    border-top: 1px solid var(--line);
  }
  .app__body {
    grid-template-columns: minmax(0, 1fr);
  }
  .app__detail {
    border-left: 0;
    border-top: 1px solid var(--line);
  }
  .app__open {
    margin-top: 18px;
  }
  .footer__grid {
    grid-template-columns: minmax(0, 1fr);
    gap: 40px;
  }
  .footer__big,
  .footer__small {
    padding-left: 0;
    border-left: 0;
  }
  /* Touch-sized rows for the small links. */
  .footer__small {
    gap: 0;
  }
  .footer__small a {
    padding-block: 8px;
  }
}

@media (min-width: 961px) {
  .nav__mobile {
    display: none !important;
  }
}

/* Small screens crop the flow to the sphere and its labels. */
@media (max-width: 760px) {
  .flow {
    width: 100%;
    height: auto;
    aspect-ratio: 600 / 560;
    container-type: inline-size;
  }
  .lines--hero {
    display: none;
  }
  /* The stage runs edge to edge here; the button keeps to the grid. */
  .motion-toggle {
    right: var(--gutter);
  }
  /* The output panel would sit half off-screen; the sphere carries it. */
  .flow__out,
  .flow__label--out {
    display: none;
  }
  /* Notes on the right would run off a narrow screen; they shift left,
     still over the end of their leads. */
  .flow__note[data-slot="a"] {
    --nudge: 104;
  }
  .flow__note[data-slot="c"] {
    --nudge: 96;
  }
  .flow__stage {
    --u: calc(100cqw / 600);
    inset: 0 auto auto calc(var(--u) * -300);
    width: calc(var(--u) * 1200);
    height: calc(var(--u) * 560);
  }
  .feature__list {
    grid-template-columns: minmax(0, 1fr);
    gap: 0;
  }
  .feature__list li {
    padding-block: 14px;
  }

  .app__search {
    display: none;
  }
  .app__list {
    padding: 18px 14px;
  }
  .ftable td,
  .ftable th {
    padding-inline: 8px;
  }
  .feature__aside {
    align-items: flex-start;
  }
}

@media (max-width: 560px) {
  .roles__grid,
  .timeline {
    grid-template-columns: minmax(0, 1fr);
  }
  .cta__row {
    flex-direction: column;
  }
  /* Stacked, the input keeps its own height instead of growing from 0. */
  .cta__row input {
    flex: none;
  }
  .sources > .wrap {
    flex-direction: column;
    align-items: flex-start;
  }
  .sources__grid {
    grid-template-columns: minmax(0, 1fr);
    gap: 28px;
  }
  .sources__group,
  .sources__group:first-child {
    padding: 0;
  }
  .sources__group + .sources__group {
    border-left: 0;
    padding-top: 28px;
    border-top: 1px solid var(--line-2);
  }
}

@media (max-width: 480px) {
  /* Logo, demo button and menu still fit side by side at 320px. */
  .nav__cta {
    padding: 0 11px;
    font-size: 13px;
  }
  .ftable th:last-child,
  .ftable td:last-child {
    display: none;
  }
  .app__crumb {
    display: none;
  }
  .caps__grid {
    grid-template-columns: minmax(0, 1fr);
  }
  .caps__grid li:nth-child(even) {
    border-left: 0;
  }
  .caps__grid li + li {
    border-top: 1px solid var(--line);
  }
}
