/* ==========================================================================
   Velexion — site styles ("signal" theme: blueprint grid, ink and signal orange)
   Fonts: Inter & JetBrains Mono (SIL Open Font License 1.1, see /assets/fonts/)
   ========================================================================== */

@font-face {
  font-family: "Inter";
  src: url("../fonts/InterVariable-latin.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "JetBrains Mono";
  src: url("../fonts/JetBrainsMono-latin.woff2") format("woff2");
  font-weight: 100 800;
  font-style: normal;
  font-display: swap;
}

:root {
  /* light */
  --paper: #f3f4f6;
  --paper-2: #eaecef;
  --card: #ffffff;
  --ink: #0c0e12;
  --ink-2: #262a33;
  --muted: #59606c;
  --line: #d9dce2;
  --line-2: #bfc4cc;

  /* accent */
  --signal: #ff5b1f;
  --signal-dk: #c2410c; /* orange text on light backgrounds (AA) */
  --signal-tint: rgba(255, 91, 31, 0.08);

  /* dark */
  --night: #0c0e12;
  --night-2: #14171d;
  --night-3: #1c2028;
  --night-line: rgba(255, 255, 255, 0.1);
  --night-line-2: rgba(255, 255, 255, 0.18);
  --night-text: #eceef1;
  --night-muted: #9ca2ae;

  /* roles that differ between the light and dark theme */
  --on-signal: #0c0e12; /* text on orange, in both themes */
  --inverse: #0c0e12; /* solid "ink" blocks: buttons, badges */
  --on-inverse: #ffffff;
  --night-edge: #0c0e12; /* outline of dark panels; shows only in the dark theme */
  --header-bg: rgba(243, 244, 246, 0.82);
  --hover-tint: rgba(12, 14, 18, 0.05);
  --node-bg: #f8f9fa;

  color-scheme: light;

  --font: "Inter", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --mono: "JetBrains Mono", ui-monospace, "Cascadia Code", "SFMono-Regular", Menlo, Consolas, monospace;

  --wrap: 1240px;
  --gut: clamp(16px, 4vw, 40px);
  --rail-gap: 28px;
  --header-h: 68px;
  --r: 10px;
  --ease: cubic-bezier(0.2, 0.8, 0.2, 1);
}

/* Dark theme: set on <html> by theme.js from the system setting or the visitor's choice.
   The "night" sections, footer and panels keep their own palette in both themes. */
:root[data-theme="dark"] {
  --paper: #13161b;
  --paper-2: #181b21;
  --card: #1e2128;
  --ink: #eceef1;
  --ink-2: #c6cad2;
  --muted: #9ca2ae;
  --line: #2a2e37;
  --line-2: #3d424d;

  --signal-dk: #ff6b2c; /* orange text on dark backgrounds (AA) */
  --signal-tint: rgba(255, 91, 31, 0.1);

  --inverse: #eceef1;
  --on-inverse: #0c0e12;
  --night-edge: rgba(255, 255, 255, 0.12);
  --header-bg: rgba(19, 22, 27, 0.82);
  --hover-tint: rgba(255, 255, 255, 0.06);
  --node-bg: #181b21;

  color-scheme: dark;
}

/* Colours change at once when the theme is switched (see theme.js). */
.theme-switching *,
.theme-switching *::before,
.theme-switching *::after {
  transition: none !important;
}

/* ---------- Reset & base ---------- */

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

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 8px);
  background: var(--paper);
}

body {
  margin: 0;
  min-height: 100vh;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font);
  font-size: 1.0625rem;
  line-height: 1.6;
  font-feature-settings: "cv11", "ss03";
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  overflow-x: clip;
}

img,
svg {
  display: block;
  max-width: 100%;
}

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

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

h1,
h2,
h3 {
  font-weight: 640;
  letter-spacing: -0.03em;
  line-height: 1.1;
  text-wrap: balance;
}

a {
  color: inherit;
}

button,
input,
select,
textarea {
  font: inherit;
  color: inherit;
}

::selection {
  background: var(--signal);
  color: var(--on-signal);
}

:focus-visible {
  outline: 2px solid var(--signal);
  outline-offset: 3px;
  border-radius: 4px;
}

.sprite {
  position: absolute;
  width: 0;
  height: 0;
  overflow: hidden;
}

.visually-hidden {
  position: absolute !important;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: absolute;
  top: 10px;
  left: 10px;
  z-index: 100;
  padding: 10px 16px;
  background: var(--inverse);
  color: var(--on-inverse);
  border-radius: 8px;
  font-weight: 600;
  text-decoration: none;
  transform: translateY(-160%);
  transition: transform 0.2s var(--ease);
}

.skip-link:focus {
  transform: none;
}

.wrap {
  width: min(100% - 2 * var(--gut), var(--wrap));
  margin-inline: auto;
}

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

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 50px;
  padding: 0 22px;
  border: 1px solid transparent;
  border-radius: 8px;
  font-size: 1rem;
  font-weight: 600;
  letter-spacing: -0.01em;
  line-height: 1.2;
  text-decoration: none;
  white-space: nowrap;
  cursor: pointer;
  transition: background-color 0.2s, color 0.2s, border-color 0.2s, transform 0.2s var(--ease);
}

.btn svg {
  width: 18px;
  height: 18px;
  flex: none;
}

.btn-arrow {
  transition: transform 0.25s var(--ease);
}

.btn:hover .btn-arrow {
  transform: translateX(3px);
}

.btn:active {
  transform: translateY(1px);
}

.btn-sm {
  min-height: 40px;
  padding: 0 16px;
  font-size: 0.9375rem;
}

.btn-ink {
  background: var(--inverse);
  color: var(--on-inverse);
}

.btn-ink:hover {
  background: var(--signal);
  color: var(--on-signal);
}

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

.btn-signal:hover {
  background: var(--inverse);
  color: var(--on-inverse);
}

.section--night .btn-signal:hover {
  background: #fff;
  color: var(--on-signal);
}

.btn-ghost {
  border-color: var(--line-2);
  color: var(--ink);
  background: transparent;
}

.btn-ghost:hover {
  border-color: var(--ink);
  background: var(--card);
}

.btn-block {
  width: 100%;
}

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  height: var(--header-h);
  background: var(--header-bg);
  -webkit-backdrop-filter: saturate(1.4) blur(14px);
  backdrop-filter: saturate(1.4) blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.25s, background-color 0.25s;
}

.site-header.is-scrolled,
.site-header.menu-open {
  border-bottom-color: var(--line);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  height: 100%;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--ink);
  text-decoration: none;
}

.brand-mark {
  width: 30px;
  height: 30px;
}

.brand-name {
  font-size: 1.1875rem;
  font-weight: 680;
  letter-spacing: -0.035em;
}

.brand--light {
  color: #fff;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 28px;
}

.site-nav ul {
  display: flex;
  gap: 4px;
}

.site-nav ul a {
  position: relative;
  display: block;
  padding: 8px 12px;
  border-radius: 6px;
  color: var(--ink-2);
  font-size: 0.9375rem;
  font-weight: 500;
  text-decoration: none;
  transition: color 0.2s, background-color 0.2s;
}

.site-nav ul a:hover {
  color: var(--ink);
  background: var(--hover-tint);
}

.site-nav ul a[aria-current="true"] {
  color: var(--ink);
}

.site-nav ul a[aria-current="true"]::after {
  content: "";
  position: absolute;
  left: 12px;
  right: 12px;
  bottom: 2px;
  height: 2px;
  background: var(--signal);
}

.nav-toggle {
  display: none;
  position: relative;
  width: 44px;
  height: 44px;
  margin-right: -8px;
  padding: 0;
  border: 0;
  background: none;
  cursor: pointer;
}

.nav-toggle span,
.nav-toggle span::before,
.nav-toggle span::after {
  position: absolute;
  left: 11px;
  width: 22px;
  height: 2px;
  background: var(--ink);
  transition: transform 0.25s var(--ease), opacity 0.2s;
}

.nav-toggle span {
  top: 21px;
}

.nav-toggle span::before,
.nav-toggle span::after {
  content: "";
  left: 0;
}

.nav-toggle span::before {
  top: -7px;
}

.nav-toggle span::after {
  top: 7px;
}

.nav-toggle[aria-expanded="true"] span {
  background: transparent;
}

.nav-toggle[aria-expanded="true"] span::before {
  transform: translateY(7px) rotate(45deg);
}

.nav-toggle[aria-expanded="true"] span::after {
  transform: translateY(-7px) rotate(-45deg);
}

/* Theme toggle: shows the moon in the light theme and the sun in the dark theme */

.header-inner > .brand {
  margin-right: auto;
}

.theme-toggle {
  display: inline-grid;
  place-items: center;
  flex: none;
  width: 40px;
  height: 40px;
  padding: 0;
  border: 1px solid var(--line-2);
  border-radius: 8px;
  background: transparent;
  color: var(--ink);
  cursor: pointer;
  transition: border-color 0.2s, background-color 0.2s;
}

.theme-toggle:hover {
  border-color: var(--ink);
  background: var(--card);
}

.theme-toggle svg {
  width: 20px;
  height: 20px;
}

.theme-toggle .theme-sun,
:root[data-theme="dark"] .theme-toggle .theme-moon,
:root:not([data-theme]) .theme-toggle {
  display: none; /* without theme.js the button would do nothing */
}

:root[data-theme="dark"] .theme-toggle .theme-sun {
  display: block;
}

/* ---------- Shared section frame (blueprint rails) ---------- */

.section {
  position: relative;
  padding-block: clamp(72px, 10vw, 128px);
  border-top: 1px solid var(--line);
}

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

.section--night {
  background: var(--night);
  color: var(--night-text);
  border-top-color: var(--night-edge);
}

@media (min-width: 960px) {
  .section::before,
  .hero::before {
    content: "";
    position: absolute;
    inset: 0;
    width: min(100% - 2 * var(--gut) + 2 * var(--rail-gap), var(--wrap) + 2 * var(--rail-gap));
    margin-inline: auto;
    border-inline: 1px solid var(--line);
    pointer-events: none;
  }

  .section::after {
    content: "";
    position: absolute;
    top: -6px;
    left: 0;
    right: 0;
    width: calc(min(100% - 2 * var(--gut) + 2 * var(--rail-gap), var(--wrap) + 2 * var(--rail-gap)) + 12px);
    height: 11px;
    margin-inline: auto;
    background:
      url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='11' height='11'%3E%3Cpath d='M5.5 0v11M0 5.5h11' stroke='%2359606c' stroke-width='1'/%3E%3C/svg%3E") left center / 11px 11px no-repeat,
      url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='11' height='11'%3E%3Cpath d='M5.5 0v11M0 5.5h11' stroke='%2359606c' stroke-width='1'/%3E%3C/svg%3E") right center / 11px 11px no-repeat;
    pointer-events: none;
    z-index: 2;
  }

  .section--night::before {
    border-color: var(--night-line);
  }

  .section--night::after {
    background:
      url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='11' height='11'%3E%3Cpath d='M5.5 0v11M0 5.5h11' stroke='%23ff5b1f' stroke-width='1.2'/%3E%3C/svg%3E") left center / 11px 11px no-repeat,
      url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='11' height='11'%3E%3Cpath d='M5.5 0v11M0 5.5h11' stroke='%23ff5b1f' stroke-width='1.2'/%3E%3C/svg%3E") right center / 11px 11px no-repeat;
  }
}

/* Section heads */

.sec-head {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  align-items: start;
  gap: 24px;
  margin-bottom: clamp(40px, 6vw, 72px);
}

.sec-head > .sec-num {
  grid-column: span 3;
  padding-top: 0.6em;
}

.sec-head > div {
  grid-column: 4 / -1;
}

.sec-head--stack {
  display: block;
  margin-bottom: 36px;
}

.sec-head--stack .sec-num {
  margin-bottom: 22px;
}

.sec-num {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--mono);
  font-size: 0.8125rem;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ink-2);
}

.sec-num span {
  display: inline-grid;
  place-items: center;
  min-width: 30px;
  height: 24px;
  padding: 0 6px;
  border-radius: 4px;
  background: var(--inverse);
  color: var(--on-inverse);
  font-size: 0.75rem;
  letter-spacing: 0;
}

.section--night .sec-num {
  color: var(--night-muted);
}

.section--night .sec-num span {
  background: var(--signal);
  color: var(--on-signal);
}

.sec-head h2,
.contact h2 {
  font-size: clamp(2.1rem, 1.3rem + 2.7vw, 3.6rem);
  letter-spacing: -0.042em;
  line-height: 1.04;
}

.section--night h2 {
  color: #fff;
}

.sec-lead {
  max-width: 40em;
  margin-top: 20px;
  font-size: 1.1875rem;
  line-height: 1.55;
  color: var(--muted);
}

.sec-lead a {
  color: var(--ink);
  text-decoration-color: var(--signal);
  text-underline-offset: 3px;
  text-decoration-thickness: 2px;
}

.section--night .sec-lead {
  color: var(--night-muted);
}

/* Highlight block (the "piece") */

.hl {
  position: relative;
  display: inline-block;
  padding: 0 0.14em;
  margin: 0 -0.04em;
  border-radius: 0.1em;
  background: linear-gradient(var(--signal), var(--signal)) no-repeat 0 0 / 100% 100%;
  color: var(--on-signal);
}

.js .hero .hl {
  animation: hl-in 0.9s 0.35s var(--ease) both;
}

@keyframes hl-in {
  from {
    background-size: 0% 100%;
    color: inherit;
  }
  to {
    background-size: 100% 100%;
  }
}

.hl--night {
  display: inline;
  padding: 0;
  margin: 0;
  background: none;
  color: var(--signal);
}

/* Ticks list (shared) */

.ticks li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 5px 0;
}

.ticks svg {
  flex: none;
  width: 18px;
  height: 18px;
  margin-top: 0.2em;
  color: var(--signal-dk);
}

.ticks--2 {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 4px 24px;
}

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

.hero {
  position: relative;
  padding-top: clamp(40px, 7vw, 96px);
  overflow: hidden;
}

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

.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(var(--line) 1px, transparent 1px),
    linear-gradient(90deg, var(--line) 1px, transparent 1px);
  background-size: 48px 48px;
  background-position: center top;
  -webkit-mask-image: radial-gradient(ellipse 60% 70% at 72% 32%, #000 10%, transparent 72%);
  mask-image: radial-gradient(ellipse 60% 70% at 72% 32%, #000 10%, transparent 72%);
  opacity: 0.7;
  pointer-events: none;
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.04fr) minmax(0, 1fr);
  gap: clamp(32px, 5vw, 72px);
  align-items: center;
}

.hero h1 {
  font-size: clamp(2.7rem, 1.4rem + 4.3vw, 5.1rem);
  font-weight: 660;
  letter-spacing: -0.05em;
  line-height: 0.98;
}

.hero .lead {
  max-width: 34em;
  margin-top: 28px;
  font-size: clamp(1.0625rem, 1rem + 0.3vw, 1.25rem);
  line-height: 1.55;
  color: var(--muted);
}

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 36px;
}

/* Architecture panel */

.arch {
  position: relative;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--card);
  box-shadow:
    0 1px 0 rgba(12, 14, 18, 0.03),
    0 30px 70px -36px rgba(12, 14, 18, 0.35);
  font-size: 0.8125rem;
  user-select: none;
}

.arch::before {
  /* offset "paper" behind the panel */
  content: "";
  position: absolute;
  inset: 14px -14px -14px 14px;
  z-index: -1;
  border: 1px dashed var(--line-2);
  border-radius: 14px;
}

.arch-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 16px;
  border-bottom: 1px solid var(--line);
  font-family: var(--mono);
  font-size: 0.75rem;
}

.arch-file {
  font-weight: 600;
  color: var(--ink);
}

.arch-file span {
  font-weight: 400;
  color: var(--muted);
}

.arch-legend {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--muted);
}

.sw {
  width: 10px;
  height: 10px;
  border-radius: 2px;
}

.sw-you {
  border: 1px solid var(--line-2);
  background: var(--paper);
}

.sw-vlx {
  margin-left: 8px;
  background: var(--signal);
}

.arch-body {
  padding: 18px 18px 16px;
  background-image: radial-gradient(var(--line) 1px, transparent 1px);
  background-size: 16px 16px;
  background-position: 8px 8px;
}

.arch-layer {
  display: grid;
  grid-template-columns: 62px minmax(0, 1fr);
  align-items: center;
  gap: 10px;
}

.arch-label {
  font-family: var(--mono);
  font-size: 0.6875rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
}

.arch-nodes {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
}

.node {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 8px;
  min-width: 0;
  padding: 10px 10px 13px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--node-bg);
  color: var(--ink-2);
  font-weight: 560;
  line-height: 1.2;
  overflow: hidden;
  transition: border-color 0.35s, background-color 0.35s, box-shadow 0.35s;
}

.node svg {
  width: 18px;
  height: 18px;
  color: var(--muted);
  transition: color 0.35s;
}

.node-name {
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.node-tag {
  position: absolute;
  top: 8px;
  right: 8px;
  padding: 2px 5px;
  border-radius: 3px;
  background: var(--signal);
  color: var(--on-signal);
  font-family: var(--mono);
  font-size: 0.5625rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  opacity: 0;
  transform: translateY(-4px);
  transition: opacity 0.3s, transform 0.3s var(--ease), background-color 0.3s, color 0.3s;
}

.node-bar {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 3px;
}

.node-bar i {
  display: block;
  width: var(--p, 0%);
  height: 100%;
  background: var(--signal);
}

.node.is-building {
  border-color: var(--signal);
  border-style: dashed;
  background: var(--signal-tint);
  color: var(--ink);
}

.node.is-shipped {
  border-color: var(--signal);
  background: rgba(255, 91, 31, 0.14);
  color: var(--ink);
  box-shadow: 0 0 0 3px rgba(255, 91, 31, 0.14);
}

.node.is-building svg,
.node.is-shipped svg {
  color: var(--signal-dk);
}

.node.is-building .node-tag,
.node.is-shipped .node-tag {
  opacity: 1;
  transform: none;
}

.node.is-shipped .node-tag {
  background: var(--inverse);
  color: var(--on-inverse);
}

.node--target {
  border-style: dashed;
  border-color: var(--line-2);
  background: transparent;
}

.node--target .node-name {
  transition: opacity 0.25s;
}

.node--target .node-name.is-swap {
  opacity: 0;
}

.arch-link {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  height: 22px;
  margin-left: 72px;
}

.arch-link i {
  position: relative;
  justify-self: center;
  width: 1px;
  height: 100%;
  background-image: linear-gradient(var(--line-2) 50%, transparent 50%);
  background-size: 1px 4px;
}

.arch-link i::after {
  content: "";
  position: absolute;
  left: -2px;
  top: 0;
  width: 5px;
  height: 5px;
  border-radius: 1px;
  background: var(--signal);
  animation: travel 1.8s linear infinite;
}

.arch-link i:nth-child(2)::after {
  animation-delay: -0.6s;
  animation-direction: reverse;
}

.arch-link i:nth-child(3)::after {
  animation-delay: -1.2s;
}

@keyframes travel {
  from {
    transform: translateY(-2px);
    opacity: 0;
  }
  20%,
  80% {
    opacity: 1;
  }
  to {
    transform: translateY(19px);
    opacity: 0;
  }
}

.arch-status {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 11px 16px;
  border-top: 1px solid var(--line);
  font-family: var(--mono);
  font-size: 0.75rem;
}

.arch-prompt {
  color: var(--signal-dk);
  font-weight: 600;
}

.arch-msg {
  flex: 1;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  color: var(--ink-2);
}

.arch-pct {
  font-variant-numeric: tabular-nums;
  color: var(--muted);
}

/* Facts strip */

.facts {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin-top: clamp(56px, 8vw, 104px);
  border-top: 1px solid var(--line);
}

.facts li {
  display: grid;
  gap: 4px;
  padding: 22px 20px 26px;
  border-left: 1px solid var(--line);
}

.facts li:first-child {
  border-left: 0;
  padding-left: 0;
}

.facts-k {
  font-family: var(--mono);
  font-size: 0.6875rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}

.facts-v {
  font-weight: 560;
  letter-spacing: -0.01em;
}

/* ---------- Services ---------- */

.svc-group + .svc-group {
  margin-top: clamp(40px, 5vw, 64px);
}

.svc-layer {
  display: flex;
  align-items: center;
  gap: 12px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--ink);
  font-size: 0.9375rem;
  color: var(--muted);
}

.svc-layer span {
  padding: 3px 8px;
  border: 1px solid var(--signal);
  border-radius: 4px;
  background: var(--signal-tint);
  color: var(--signal-dk);
  font-family: var(--mono);
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.svc-list {
  isolation: isolate;
}

.svc-row {
  position: relative;
  display: grid;
  grid-template-columns: 56px minmax(0, 1.05fr) minmax(0, 1.35fr) minmax(0, 0.9fr);
  align-items: baseline;
  gap: 24px;
  padding: 28px 0;
  border-bottom: 1px solid var(--line);
}

.svc-row::before {
  content: "";
  position: absolute;
  inset: 0 -18px;
  z-index: -1;
  border-radius: 10px;
  background: var(--card);
  opacity: 0;
  transform: scaleY(0.92);
  transition: opacity 0.3s, transform 0.3s var(--ease);
}

.svc-row:hover::before {
  opacity: 1;
  transform: none;
}

.svc-n {
  font-family: var(--mono);
  font-size: 0.8125rem;
  color: var(--muted);
  transition: color 0.3s;
}

.svc-row h3 {
  font-size: clamp(1.375rem, 1rem + 1vw, 1.875rem);
  font-weight: 620;
  letter-spacing: -0.035em;
  transition: transform 0.35s var(--ease);
}

.svc-row p {
  color: var(--muted);
}

.svc-row:hover .svc-n {
  color: var(--signal-dk);
}

.svc-row:hover h3 {
  transform: translateX(6px);
}

.tags {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 6px;
}

.tags li {
  padding: 3px 9px;
  border: 1px solid var(--line-2);
  border-radius: 999px;
  font-family: var(--mono);
  font-size: 0.71875rem;
  color: var(--ink-2);
  white-space: nowrap;
}

/* ---------- Engagements ---------- */

.engage {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.card {
  display: flex;
  flex-direction: column;
  padding: clamp(24px, 3vw, 32px);
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--card);
  transition: transform 0.35s var(--ease), box-shadow 0.35s;
}

.card:hover {
  transform: translateY(-4px);
  box-shadow: 0 24px 50px -30px rgba(12, 14, 18, 0.35);
}

.card-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.card-icon {
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  border: 1px solid var(--line);
  border-radius: 10px;
  color: var(--ink);
}

.card-icon svg {
  width: 22px;
  height: 22px;
}

.card-idx {
  font-family: var(--mono);
  font-size: 0.8125rem;
  color: var(--muted);
}

.card h3 {
  margin: 32px 0 12px;
  font-size: 1.75rem;
  letter-spacing: -0.04em;
}

.card > p:not(.card-fit) {
  color: var(--muted);
}

.card-fit {
  margin: 26px 0 8px;
  font-family: var(--mono);
  font-size: 0.6875rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}

.card .ticks li {
  font-size: 0.96875rem;
}

.card-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: auto;
  padding-top: 30px;
  font-weight: 600;
  text-decoration: none;
  color: var(--ink);
}

.card-link svg {
  width: 18px;
  height: 18px;
  transition: transform 0.25s var(--ease);
}

.card-link:hover svg {
  transform: translateX(4px);
}

.card-link:hover {
  color: var(--signal-dk);
}

.card--ink {
  border-color: var(--night-edge);
  background: var(--night);
  color: var(--night-text);
}

.card--ink h3 {
  color: #fff;
}

.card--ink > p:not(.card-fit),
.card--ink .card-fit,
.card--ink .card-idx {
  color: var(--night-muted);
}

.card--ink .card-icon {
  border-color: var(--signal);
  background: var(--signal);
  color: var(--on-signal);
}

.card--ink .ticks svg,
.card--ink .card-link:hover {
  color: var(--signal);
}

.card--ink .card-link {
  color: #fff;
}

/* ---------- Real-time ---------- */

.rt-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.1fr);
  gap: clamp(40px, 6vw, 80px);
  align-items: center;
}

.rt-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  column-gap: 24px;
}

.rt-list li {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 0;
  border-top: 1px solid var(--night-line);
  font-size: 0.96875rem;
}

.rt-list li::before {
  content: "";
  flex: none;
  width: 6px;
  height: 6px;
  border-radius: 1px;
  background: var(--signal);
}

.rt-fig {
  padding: 14px;
  border: 1px solid var(--night-line);
  border-radius: 16px;
  background: var(--night-2);
}

.rt-svg {
  width: 100%;
  height: auto;
  overflow: visible;
}

#rt-dots circle {
  fill: rgba(255, 255, 255, 0.07);
}

.rt-sig,
.rt-relay,
.rt-media,
.rt-media-base {
  fill: none;
}

.rt-sig {
  stroke: #8a909c;
  stroke-width: 1.4;
  stroke-dasharray: 5 5;
  animation: flow 1.6s linear infinite;
}

.rt-relay {
  stroke: rgba(255, 255, 255, 0.28);
  stroke-width: 2;
  stroke-linecap: round;
  stroke-dasharray: 0.5 7;
}

.rt-media-base {
  stroke: rgba(255, 91, 31, 0.13);
  stroke-width: 34;
}

.rt-media {
  stroke: var(--signal);
  stroke-width: 2.4;
  stroke-linecap: round;
  stroke-dasharray: 12 10;
  animation: flow 0.9s linear infinite;
}

.rt-media--rev {
  stroke: #ffb08f;
  animation-duration: 1.1s;
}

@keyframes flow {
  to {
    stroke-dashoffset: -22;
  }
}

.rt-node rect {
  fill: var(--night-3);
  stroke: var(--night-line-2);
}

.rt-node text {
  fill: var(--night-text);
  font-family: var(--font);
  font-size: 15px;
  font-weight: 600;
  letter-spacing: -0.01em;
}

.rt-node--peer rect {
  stroke: var(--signal);
  stroke-width: 1.5;
}

.rt-node text.rt-sub {
  fill: var(--night-muted);
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 400;
}

.rt-lbl {
  fill: var(--night-muted);
  font-family: var(--mono);
  font-size: 10.5px;
}

.rt-lbl--hot {
  fill: var(--signal);
}

.rt-live {
  fill: var(--signal);
  animation: blink 1.6s ease-in-out infinite;
}

@keyframes blink {
  50% {
    opacity: 0.25;
  }
}

.rt-cap {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 20px;
  padding: 12px 6px 2px;
  font-family: var(--mono);
  font-size: 0.75rem;
  color: var(--night-muted);
}

.rt-cap span {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.k {
  width: 18px;
  height: 0;
  border-top: 2px solid;
}

.k--hot {
  border-color: var(--signal);
}

.k--sig {
  border-top-style: dashed;
  border-color: #8a909c;
}

.k--relay {
  border-top-style: dotted;
  border-color: rgba(255, 255, 255, 0.4);
}

/* ---------- Cloud ---------- */

.cloud-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr);
  gap: clamp(40px, 6vw, 80px);
  align-items: center;
}

.deploy {
  overflow: hidden;
  border-radius: 16px;
  background: var(--night);
  color: var(--night-text);
  box-shadow:
    0 0 0 1px var(--night-edge),
    0 30px 70px -40px rgba(12, 14, 18, 0.6);
}

.deploy-tabs {
  display: flex;
  gap: 4px;
  padding: 8px;
  border-bottom: 1px solid var(--night-line);
  overflow-x: auto;
}

.deploy-tab {
  flex: 1;
  padding: 10px 14px;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: var(--night-muted);
  font-family: var(--mono);
  font-size: 0.8125rem;
  font-weight: 500;
  white-space: nowrap;
  cursor: pointer;
  transition: background-color 0.2s, color 0.2s;
}

.deploy-tab:hover {
  color: #fff;
  background: rgba(255, 255, 255, 0.06);
}

.deploy-tab[aria-selected="true"] {
  background: var(--signal);
  color: var(--on-signal);
  font-weight: 700;
}

.deploy-panel {
  padding: 22px 24px 26px;
}

.deploy-panel[hidden] {
  display: none;
}

.deploy-panel + .deploy-panel {
  border-top: 1px solid var(--night-line);
}

.js .deploy-panel + .deploy-panel {
  border-top: 0;
}

.deploy-cmd {
  font-family: var(--mono);
  font-size: 0.875rem;
  color: var(--night-muted);
}

.deploy-cmd span {
  margin-right: 4px;
  color: var(--signal);
}

.deploy-cmd b {
  font-weight: 600;
  color: #fff;
}

.deploy-cmd::after {
  content: "";
  display: inline-block;
  width: 8px;
  height: 1.05em;
  margin-left: 4px;
  vertical-align: -0.15em;
  background: var(--signal);
  animation: caret 1.1s steps(1) infinite;
}

@keyframes caret {
  50% {
    opacity: 0;
  }
}

.deploy-list {
  margin-top: 16px;
}

.deploy-list div {
  display: grid;
  grid-template-columns: 128px minmax(0, 1fr);
  gap: 16px;
  align-items: baseline;
  padding: 12px 0;
  border-top: 1px dashed var(--night-line-2);
}

.deploy-list dt {
  font-family: var(--mono);
  font-size: 0.71875rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--night-muted);
}

.deploy-list dd {
  font-size: 0.96875rem;
  color: #fff;
}

.deploy-panel.is-entering .deploy-list div {
  animation: row-in 0.45s var(--ease) both;
}

.deploy-panel.is-entering .deploy-list div:nth-child(2) { animation-delay: 0.04s; }
.deploy-panel.is-entering .deploy-list div:nth-child(3) { animation-delay: 0.08s; }
.deploy-panel.is-entering .deploy-list div:nth-child(4) { animation-delay: 0.12s; }
.deploy-panel.is-entering .deploy-list div:nth-child(5) { animation-delay: 0.16s; }
.deploy-panel.is-entering .deploy-list div:nth-child(6) { animation-delay: 0.2s; }

@keyframes row-in {
  from {
    opacity: 0;
    transform: translateX(-8px);
  }
}

/* ---------- Process ---------- */

.steps {
  position: relative;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 32px;
}

.steps::before {
  content: "";
  position: absolute;
  top: 20px;
  left: 0;
  right: 0;
  height: 1px;
  background: var(--line-2);
}

.step {
  position: relative;
}

.step-n {
  position: relative;
  display: inline-grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border: 1px solid var(--ink);
  border-radius: 8px;
  background: var(--paper-2);
  font-family: var(--mono);
  font-size: 0.8125rem;
  font-weight: 600;
  transition: background-color 0.3s, border-color 0.3s;
}

.step:hover .step-n {
  background: var(--signal);
  border-color: var(--signal);
  color: var(--on-signal);
}

.step h3 {
  margin: 26px 0 10px;
  font-size: 1.5rem;
  letter-spacing: -0.035em;
}

.step p {
  color: var(--muted);
}

.step .step-out {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 18px;
  font-family: var(--mono);
  font-size: 0.75rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--ink);
}

.step-out::before {
  content: "→";
  color: var(--signal-dk);
}

/* ---------- Why ---------- */

.why {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--line);
}

.why li {
  padding: clamp(24px, 3vw, 36px);
  background: var(--paper);
  transition: background-color 0.3s;
}

.why li:hover {
  background: var(--card);
}

.why svg {
  width: 28px;
  height: 28px;
  color: var(--signal-dk);
}

.why h3 {
  margin: 22px 0 8px;
  font-size: 1.25rem;
  letter-spacing: -0.025em;
}

.why p {
  color: var(--muted);
}

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

.faq-grid {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  gap: clamp(32px, 6vw, 96px);
  align-items: start;
}

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

.faq details:first-child {
  border-top: 1px solid var(--line-2);
}

.faq summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 22px 0;
  font-size: 1.1875rem;
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1.35;
  list-style: none;
  cursor: pointer;
}

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

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

.faq-x {
  position: relative;
  flex: none;
  width: 30px;
  height: 30px;
  border: 1px solid var(--line-2);
  border-radius: 7px;
  transition: background-color 0.3s, border-color 0.3s;
}

.faq-x::before,
.faq-x::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 12px;
  height: 1.6px;
  background: var(--ink);
  transform: translate(-50%, -50%);
}

.faq-x::after {
  transform: translate(-50%, -50%) rotate(90deg);
}

.faq-x::before,
.faq-x::after {
  transition: transform 0.3s var(--ease);
}

.faq details[open] .faq-x {
  border-color: var(--signal);
  background: var(--signal);
}

.faq details[open] .faq-x::before,
.faq details[open] .faq-x::after {
  background: var(--on-signal);
}

.faq details[open] .faq-x::before {
  transform: translate(-50%, -50%) rotate(45deg);
}

.faq details[open] .faq-x::after {
  transform: translate(-50%, -50%) rotate(135deg);
}

.faq details p {
  max-width: 60ch;
  padding: 0 48px 24px 0;
  color: var(--muted);
}

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

.contact {
  padding-bottom: clamp(80px, 10vw, 128px);
}

.contact-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(40px, 6vw, 88px);
  align-items: start;
}

.contact .sec-num {
  margin-bottom: 22px;
}

.contact h2 {
  font-size: clamp(2.5rem, 1.4rem + 3.6vw, 4.4rem);
  letter-spacing: -0.05em;
  line-height: 0.98;
}

.mailbox {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 16px;
  margin-top: 40px;
  padding: 16px 18px;
  border: 1px solid var(--night-line-2);
  border-radius: 12px;
}

.mailbox-k {
  font-family: var(--mono);
  font-size: 0.6875rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--night-muted);
}

.mailbox-v {
  font-size: clamp(1.0625rem, 0.9rem + 0.6vw, 1.375rem);
  font-weight: 600;
  letter-spacing: -0.02em;
  color: #fff;
  text-decoration: none;
  background: linear-gradient(var(--signal), var(--signal)) no-repeat 0 100% / 0% 2px;
  transition: background-size 0.3s var(--ease);
}

.mailbox-v:hover {
  background-size: 100% 2px;
}

.copy {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-left: auto;
  padding: 8px 12px;
  border: 1px solid var(--night-line-2);
  border-radius: 8px;
  background: transparent;
  font-family: var(--mono);
  font-size: 0.75rem;
  color: var(--night-text);
  cursor: pointer;
  transition: border-color 0.2s, background-color 0.2s;
}

.copy[hidden] {
  display: none;
}

.copy:hover {
  border-color: var(--signal);
}

.copy.is-done {
  border-color: var(--signal);
  background: var(--signal);
  color: var(--on-signal);
}

.copy svg {
  width: 14px;
  height: 14px;
}

/* Brief builder */

.brief {
  padding: clamp(22px, 3vw, 32px);
  border: 1px solid var(--night-line);
  border-radius: 16px;
  background: var(--night-2);
}

.brief-title {
  font-family: var(--mono);
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--signal);
}

.brief fieldset {
  min-width: 0;
  margin: 22px 0 0;
  padding: 0;
  border: 0;
}

.brief legend,
.field > span {
  display: block;
  margin-bottom: 12px;
  padding: 0;
  font-size: 0.9375rem;
  font-weight: 600;
  color: #fff;
}

.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.chips label {
  position: relative;
}

.chips input {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  margin: 0;
  opacity: 0;
  cursor: pointer;
}

.chips span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 14px;
  border: 1px solid var(--night-line-2);
  border-radius: 999px;
  font-size: 0.875rem;
  line-height: 1.2;
  color: var(--night-text);
  transition: background-color 0.2s, border-color 0.2s, color 0.2s;
}

.chips:not(.chips--radio) span::before {
  content: "+";
  font-family: var(--mono);
  color: var(--night-muted);
}

.chips label:hover span {
  border-color: rgba(255, 255, 255, 0.4);
}

.chips input:checked + span {
  border-color: var(--signal);
  background: var(--signal);
  color: var(--on-signal);
  font-weight: 600;
}

.chips input:checked + span::before {
  content: "✓";
  color: var(--on-signal);
}

.chips input:focus-visible + span {
  outline: 2px solid var(--signal);
  outline-offset: 3px;
}

.field {
  display: block;
  margin-top: 22px;
}

.field select,
.field textarea {
  display: block;
  width: 100%;
  padding: 12px 14px;
  border: 1px solid var(--night-line-2);
  border-radius: 10px;
  background-color: var(--night-3);
  color: var(--night-text);
  font-size: 0.9375rem;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.field select {
  appearance: none;
  padding-right: 40px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' fill='none'%3E%3Cpath d='m1 1.5 5 5 5-5' stroke='%23ff5b1f' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 16px center;
  cursor: pointer;
}

.field select option {
  background: var(--night-3);
  color: var(--night-text);
}

.field textarea {
  min-height: 100px;
  resize: vertical;
  line-height: 1.5;
}

.field textarea::placeholder {
  color: #737a87;
}

.field select:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--signal);
  box-shadow: 0 0 0 3px rgba(255, 91, 31, 0.25);
}

.brief .btn-block {
  margin-top: 26px;
}

.brief-note {
  margin-top: 12px;
  font-size: 0.8125rem;
  text-align: center;
  color: var(--night-muted);
}

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

.site-footer {
  position: relative;
  overflow: hidden;
  background: var(--night);
  color: var(--night-text);
  border-top: 1px solid var(--night-line);
}

.footer-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) repeat(3, minmax(0, 1fr));
  gap: 32px;
  padding: 64px 0 48px;
}

.footer-brand p {
  margin-top: 16px;
  color: var(--night-muted);
}

.footer-k {
  margin-bottom: 14px;
  font-family: var(--mono);
  font-size: 0.6875rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--night-muted);
}

.footer-col li {
  margin: 8px 0;
  font-size: 0.9375rem;
}

.footer-col a {
  text-decoration: none;
  transition: color 0.2s;
}

.footer-col a:hover {
  color: var(--signal);
}

.site-footer > .footer-bottom:first-child {
  padding-top: 28px;
  border-top: 0;
}

.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 8px 24px;
  padding: 20px 0 24px;
  border-top: 1px solid var(--night-line);
  font-family: var(--mono);
  font-size: 0.75rem;
  color: var(--night-muted);
}

.footer-bottom a {
  color: var(--night-text);
  text-decoration-color: var(--signal);
  text-underline-offset: 3px;
}

.footer-bottom a:hover {
  color: var(--signal);
}

/* ---------- Document pages (privacy notice) ---------- */

.doc {
  padding-block: clamp(48px, 8vw, 96px) clamp(72px, 10vw, 128px);
}

.doc-inner {
  max-width: 760px;
}

.doc .sec-num {
  margin-bottom: 22px;
}

.doc h1 {
  font-size: clamp(2.4rem, 1.5rem + 3vw, 3.75rem);
  letter-spacing: -0.045em;
  line-height: 1.02;
}

.doc-meta {
  margin-top: 14px;
  font-family: var(--mono);
  font-size: 0.8125rem;
  color: var(--muted);
}

.doc-lead {
  margin-top: 28px;
  font-size: 1.1875rem;
  color: var(--ink-2);
}

.doc h2 {
  margin: 48px 0 12px;
  font-size: 1.5rem;
  letter-spacing: -0.03em;
}

.doc p,
.doc li {
  color: var(--ink-2);
}

.doc p + p {
  margin-top: 14px;
}

.doc ul {
  margin-top: 12px;
  padding-left: 1.25em;
  list-style: disc;
}

.doc li + li {
  margin-top: 6px;
}

.doc li::marker {
  color: var(--signal-dk);
}

.doc a {
  color: var(--ink);
  text-decoration-color: var(--signal);
  text-decoration-thickness: 2px;
  text-underline-offset: 3px;
}

.doc-card {
  margin-top: 16px;
  padding: 20px 22px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--card);
}

.doc-card p + p {
  margin-top: 4px;
}

.doc-dl {
  margin-top: 36px;
  border-bottom: 1px solid var(--line);
}

.doc-dl div {
  display: grid;
  grid-template-columns: 220px minmax(0, 1fr);
  gap: 24px;
  padding: 16px 0;
  border-top: 1px solid var(--line);
}

.doc-dl dt {
  padding-top: 0.2em;
  font-family: var(--mono);
  font-size: 0.75rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
}

.doc-dl dd {
  font-weight: 500;
  color: var(--ink);
}

.footer-word {
  margin-bottom: -0.2em;
  font-size: clamp(4.5rem, 20vw, 18rem);
  font-weight: 720;
  letter-spacing: -0.065em;
  line-height: 1;
  text-align: center;
  color: var(--night-2);
  user-select: none;
  pointer-events: none;
}

/* ---------- Scroll reveal ---------- */

.js .reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
  transition-delay: var(--d, 0s);
}

.js .reveal.is-in {
  opacity: 1;
  transform: none;
}

/* ---------- 404 ---------- */

.not-found {
  position: relative;
  display: grid;
  place-items: center;
  min-height: calc(100vh - var(--header-h));
  padding: 48px var(--gut);
  text-align: center;
  overflow: hidden;
}

.not-found::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background-image:
    linear-gradient(var(--line) 1px, transparent 1px),
    linear-gradient(90deg, var(--line) 1px, transparent 1px);
  background-size: 48px 48px;
  background-position: center;
  -webkit-mask-image: radial-gradient(ellipse 50% 50% at 50% 45%, #000 10%, transparent 75%);
  mask-image: radial-gradient(ellipse 50% 50% at 50% 45%, #000 10%, transparent 75%);
}

.nf-mark {
  width: 132px;
  height: 132px;
  margin: 0 auto 32px;
  color: var(--ink);
}

.nf-mark .nf-missing {
  fill: none;
  stroke: var(--signal);
  stroke-width: 0.6;
  stroke-dasharray: 1.4 1.1;
  animation: nf-pulse 2s ease-in-out infinite;
}

@keyframes nf-pulse {
  50% {
    opacity: 0.35;
  }
}

.nf-code {
  font-family: var(--mono);
  font-size: 0.8125rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--signal-dk);
}

.not-found h1 {
  margin-top: 14px;
  font-size: clamp(2.2rem, 1.4rem + 3vw, 3.6rem);
  letter-spacing: -0.045em;
}

.not-found p:not(.nf-code) {
  max-width: 30em;
  margin: 16px auto 32px;
  color: var(--muted);
}

/* ---------- Responsive ---------- */

@media (max-width: 1100px) {
  .svc-row {
    grid-template-columns: 48px minmax(0, 1fr) minmax(0, 1.3fr);
    gap: 10px 24px;
  }

  .svc-row .tags {
    grid-column: 3;
    justify-content: flex-start;
  }
}

@media (max-width: 1020px) {
  .hero-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .hero-copy {
    max-width: 44rem;
  }

  .arch {
    max-width: 640px;
  }

  .engage {
    grid-template-columns: minmax(0, 1fr);
    max-width: 640px;
  }

  .rt-grid,
  .cloud-grid,
  .contact-grid,
  .faq-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .rt-fig,
  .deploy,
  .brief {
    max-width: 640px;
  }

  .steps {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    row-gap: 48px;
  }

  .steps::before {
    display: none;
  }

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

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

  .footer-brand {
    grid-column: 1 / -1;
  }
}

@media (max-width: 880px) {
  .nav-toggle {
    display: block;
  }

  .site-nav {
    position: absolute;
    top: var(--header-h);
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 16px;
    padding: 12px var(--gut) 24px;
    border-bottom: 1px solid var(--line);
    background: var(--paper);
    box-shadow: 0 24px 40px -24px rgba(12, 14, 18, 0.25);
    visibility: hidden;
    opacity: 0;
    transform: translateY(-8px);
    transition: opacity 0.2s, transform 0.25s var(--ease), visibility 0s 0.25s;
  }

  .site-nav.is-open {
    visibility: visible;
    opacity: 1;
    transform: none;
    transition: opacity 0.2s, transform 0.25s var(--ease);
  }

  .site-nav ul {
    flex-direction: column;
    gap: 0;
  }

  .site-nav ul a {
    padding: 14px 4px;
    border-bottom: 1px solid var(--line);
    border-radius: 0;
    font-size: 1.0625rem;
  }

  .site-nav ul a[aria-current="true"]::after {
    left: auto;
    right: 4px;
    top: 50%;
    bottom: auto;
    width: 8px;
    height: 8px;
    border-radius: 2px;
    transform: translateY(-50%);
  }

  .site-nav .btn {
    min-height: 50px;
  }

  .sec-head {
    display: block;
  }

  .sec-head > .sec-num {
    margin-bottom: 20px;
    padding-top: 0;
  }

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

  .facts li:nth-child(3) {
    border-left: 0;
    padding-left: 0;
  }

  .facts li:nth-child(n + 3) {
    border-top: 1px solid var(--line);
  }
}

@media (max-width: 640px) {
  .svc-row {
    grid-template-columns: 36px minmax(0, 1fr);
    padding: 24px 0;
  }

  .svc-row p,
  .svc-row .tags {
    grid-column: 2;
  }

  .svc-row::before {
    inset: 0 -10px;
  }

  .arch-layer {
    grid-template-columns: minmax(0, 1fr);
    gap: 8px;
  }

  .arch-nodes {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .arch-link {
    margin-left: 0;
  }

  .arch-legend {
    display: none;
  }

  .arch::before {
    inset: 10px -8px -10px 8px;
  }

  .steps,
  .why {
    grid-template-columns: minmax(0, 1fr);
  }

  .rt-list,
  .ticks--2 {
    grid-template-columns: minmax(0, 1fr);
  }

  .deploy-list div {
    grid-template-columns: minmax(0, 1fr);
    gap: 2px;
  }

  .faq details p {
    padding-right: 0;
  }

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

  .footer-col:last-child {
    grid-column: 1 / -1;
  }

  .doc-dl div {
    grid-template-columns: minmax(0, 1fr);
    gap: 4px;
  }

  .actions .btn {
    flex: 1 1 auto;
  }
}

@media (max-width: 420px) {
  .facts {
    grid-template-columns: minmax(0, 1fr);
  }

  .facts li,
  .facts li:nth-child(3) {
    border-left: 0;
    padding-left: 0;
  }

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

  .facts li {
    padding-block: 16px;
  }
}

/* ---------- Reduced motion ---------- */

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    transition-delay: 0s !important;
  }

  .js .reveal {
    opacity: 1;
    transform: none;
  }
}
