@font-face {
  font-family: "HelvKit Sans";
  src: local("Helvetica Neue"), local("Helvetica"), local("Arial");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

:root {
  --paper: #f5f3ee;
  --paper-pure: #fffefb;
  --paper-quiet: #ebe8e1;
  --ink: #121415;
  --ink-soft: #555956;
  --ink-faint: #7a7d78;
  --rule: #d8d4cc;
  --rule-dark: #a7a39b;
  --red: #d3291c;
  --red-dark: #ad1e15;
  --red-soft: #f0d4cf;
  --copper: #a85f38;
  --black: #111313;
  --white: #ffffff;
  --green: #24724c;
  --max: 1424px;
  --header-h: 82px;
  --gutter: clamp(20px, 4vw, 64px);
  --radius-sm: 5px;
  --radius-md: 10px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --font: "HelvKit Sans", "Helvetica Neue", Helvetica, Arial, sans-serif;
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 18px);
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

body.menu-open {
  overflow: hidden;
}

button,
a {
  color: inherit;
}

button {
  font: inherit;
}

a {
  text-decoration-thickness: 1px;
  text-underline-offset: 0.18em;
}

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

h1,
h2,
h3,
p,
dl,
dd {
  margin-top: 0;
}

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

p {
  text-wrap: pretty;
}

:focus-visible {
  outline: 3px solid var(--red);
  outline-offset: 4px;
}

.skip-link {
  position: fixed;
  top: 12px;
  left: 12px;
  z-index: 1000;
  padding: 12px 16px;
  background: var(--ink);
  color: var(--white);
  transform: translateY(-150%);
  transition: transform 180ms ease;
}

.skip-link:focus {
  transform: translateY(0);
}

.site-shell {
  width: min(calc(100% - 2 * var(--gutter)), var(--max));
  margin-inline: auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  height: var(--header-h);
  border-bottom: 1px solid transparent;
  background: rgba(245, 243, 238, 0.94);
  transition:
    border-color 220ms ease,
    box-shadow 220ms ease,
    background-color 220ms ease;
  backdrop-filter: blur(16px);
}

.site-header.is-scrolled {
  border-bottom-color: var(--rule);
  box-shadow: 0 9px 30px rgba(18, 20, 21, 0.04);
}

.site-header__inner {
  height: 100%;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 28px;
}

.brand {
  display: inline-flex;
  width: max-content;
  align-items: center;
}

.brand img {
  width: 142px;
  height: auto;
}

.desktop-nav {
  display: flex;
  align-items: center;
  gap: clamp(20px, 2.5vw, 40px);
}

.desktop-nav a,
.header-cta {
  position: relative;
  text-decoration: none;
  font-size: 0.86rem;
  font-weight: 650;
  letter-spacing: -0.01em;
}

.desktop-nav a::after {
  content: "";
  position: absolute;
  left: 0;
  right: 100%;
  bottom: -7px;
  height: 1px;
  background: var(--red);
  transition: right 220ms var(--ease);
}

.desktop-nav a:hover::after,
.desktop-nav a:focus-visible::after {
  right: 0;
}

.header-cta {
  justify-self: end;
  display: inline-flex;
  align-items: center;
  gap: 16px;
  min-height: 46px;
  padding: 0 18px;
  border: 1px solid var(--ink);
  background: var(--ink);
  color: var(--white);
  transition:
    background-color 180ms ease,
    color 180ms ease,
    transform 180ms var(--ease);
}

.header-cta:hover {
  background: var(--red);
  border-color: var(--red);
  transform: translateY(-2px);
}

.menu-toggle,
.mobile-menu {
  display: none;
}

.hero {
  position: relative;
  overflow: hidden;
  border-bottom: 1px solid var(--rule);
}

.hero-grid,
.system-map__grid {
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: 0.38;
  background-image:
    linear-gradient(var(--rule) 1px, transparent 1px),
    linear-gradient(90deg, var(--rule) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: linear-gradient(to bottom, rgba(0, 0, 0, 0.58), transparent 78%);
}

.hero__inner {
  position: relative;
  min-height: calc(100svh - var(--header-h) - 78px);
  display: grid;
  grid-template-columns: minmax(0, 0.88fr) minmax(560px, 1.12fr);
  align-items: center;
  gap: clamp(48px, 7vw, 110px);
  padding-block: clamp(78px, 9vw, 132px) clamp(62px, 8vw, 108px);
}

.hero__copy {
  position: relative;
  z-index: 2;
}

.eyebrow,
.section-label {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 27px;
  font-size: 0.72rem;
  font-weight: 740;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

.eyebrow__signal {
  width: 7px;
  height: 7px;
  background: var(--red);
  box-shadow: 0 0 0 5px var(--red-soft);
  animation: signal-breathe 2.8s ease-in-out infinite;
}

.hero h1 {
  max-width: 740px;
  margin-bottom: 28px;
  font-size: clamp(3.55rem, 6vw, 6.85rem);
  line-height: 0.92;
  letter-spacing: -0.073em;
  font-weight: 640;
}

.hero__lead {
  max-width: 670px;
  margin-bottom: 36px;
  color: var(--ink-soft);
  font-size: clamp(1.05rem, 1.4vw, 1.28rem);
  line-height: 1.58;
  letter-spacing: -0.018em;
}

.hero__actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 26px;
}

.button {
  display: inline-flex;
  min-height: 54px;
  align-items: center;
  justify-content: center;
  gap: 20px;
  padding: 0 22px;
  border: 1px solid var(--ink);
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 720;
  transition:
    transform 180ms var(--ease),
    background-color 180ms ease,
    color 180ms ease,
    border-color 180ms ease;
}

.button:hover {
  transform: translateY(-3px);
}

.button--primary {
  border-color: var(--red);
  background: var(--red);
  color: var(--white);
}

.button--primary:hover {
  border-color: var(--red-dark);
  background: var(--red-dark);
}

.button--light {
  border-color: rgba(255, 255, 255, 0.44);
  background: transparent;
  color: var(--white);
}

.button--light:hover,
.button--white {
  border-color: var(--white);
  background: var(--white);
  color: var(--ink);
}

.button--white:hover {
  color: var(--white);
  background: transparent;
}

.button__arrow,
.button > span:last-child,
.header-cta span {
  transition: transform 180ms var(--ease);
}

.button:hover .button__arrow,
.button:hover > span:last-child,
.header-cta:hover span {
  transform: translate(3px, -3px);
}

.text-link {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  font-size: 0.88rem;
  font-weight: 680;
}

.text-link span {
  color: var(--red);
  transition: transform 180ms var(--ease);
}

.text-link:hover span {
  transform: translateY(4px);
}

.hero__principles {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin: 74px 0 0;
  border-top: 1px solid var(--rule-dark);
}

.hero__principles div {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 12px;
  padding: 18px 14px 0 0;
}

.hero__principles div + div {
  padding-left: 16px;
  border-left: 1px solid var(--rule);
}

.hero__principles dt {
  color: var(--red);
  font-size: 0.66rem;
  letter-spacing: 0.08em;
}

.hero__principles dd {
  margin: 0;
  font-size: 0.75rem;
  font-weight: 680;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.hero-console {
  position: relative;
  min-height: 650px;
  overflow: hidden;
  border: 1px solid var(--ink);
  background: var(--paper-pure);
  box-shadow: 18px 18px 0 rgba(18, 20, 21, 0.07);
}

.hero-console::before {
  content: "";
  position: absolute;
  width: 260px;
  height: 260px;
  right: -120px;
  top: 190px;
  border: 1px solid var(--red-soft);
  border-radius: 50%;
  box-shadow:
    0 0 0 48px rgba(211, 41, 28, 0.028),
    0 0 0 98px rgba(211, 41, 28, 0.018);
}

.hero-console__topline,
.demo-toolbar,
.control-console__head {
  display: flex;
  min-height: 52px;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 0 18px;
  border-bottom: 1px solid var(--rule);
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 0.65rem;
  letter-spacing: 0.07em;
  text-transform: uppercase;
}

.live-status {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--green);
}

.live-status i,
.demo-toolbar i,
.system-core__state i {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: currentColor;
}

.inbound-message {
  position: relative;
  z-index: 2;
  width: min(78%, 500px);
  margin: 34px 0 0 32px;
  padding: 18px 20px;
  border: 1px solid var(--rule-dark);
  background: var(--white);
  box-shadow: 6px 6px 0 var(--paper-quiet);
}

.inbound-message__meta {
  display: flex;
  justify-content: space-between;
  margin-bottom: 15px;
  color: var(--ink-faint);
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 0.63rem;
}

.message-channel {
  color: var(--red);
  font-weight: 760;
}

.inbound-message p {
  margin-bottom: 16px;
  font-size: 0.96rem;
  line-height: 1.55;
}

.message-language {
  display: block;
  padding-top: 11px;
  border-top: 1px solid var(--rule);
  color: var(--green);
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 0.63rem;
  letter-spacing: 0.05em;
}

.routing-stage {
  position: relative;
  min-height: 360px;
  margin-top: 4px;
}

.routing-stage__paths {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  overflow: visible;
}

.route-base,
.route-signal {
  fill: none;
  stroke-width: 1.25;
}

.route-base {
  stroke: var(--rule-dark);
  stroke-dasharray: 4 8;
}

.route-signal {
  stroke: var(--red);
  stroke-width: 2;
  stroke-dasharray: 64 800;
  stroke-dashoffset: 0;
  animation: route-signal 5s linear infinite;
}

.route-node {
  position: absolute;
  left: var(--x);
  top: var(--y);
  z-index: 2;
  width: 126px;
  padding: 12px;
  border: 1px solid var(--rule-dark);
  background: rgba(255, 254, 251, 0.95);
  transform: translate(-50%, -50%);
}

.route-node > span {
  display: block;
  margin-bottom: 15px;
  color: var(--red);
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 0.6rem;
}

.route-node strong,
.route-node small {
  display: block;
}

.route-node strong {
  font-size: 0.73rem;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

.route-node small {
  margin-top: 4px;
  color: var(--ink-faint);
  font-size: 0.62rem;
}

.route-node--source,
.route-node--complete {
  border-color: var(--red);
}

.human-gate {
  position: absolute;
  left: 48%;
  bottom: 9px;
  z-index: 3;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 11px;
  width: min(360px, 48%);
  padding: 12px;
  border: 1px solid var(--ink);
  background: var(--ink);
  color: var(--white);
}

.human-gate__icon {
  display: grid;
  width: 32px;
  height: 32px;
  place-items: center;
  background: var(--red);
  font-size: 0.75rem;
  font-weight: 760;
}

.human-gate strong,
.human-gate small {
  display: block;
}

.human-gate strong {
  font-size: 0.74rem;
}

.human-gate small {
  margin-top: 2px;
  color: #afb3af;
  font-size: 0.62rem;
}

.human-gate__state {
  color: #ff857a;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 0.59rem;
  letter-spacing: 0.06em;
}

.hero-console__footer {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  min-height: 58px;
  border-top: 1px solid var(--rule);
  background: var(--paper-pure);
}

.hero-console__footer > span {
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 0 13px;
  color: var(--ink-faint);
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 0.58rem;
  text-transform: uppercase;
}

.hero-console__footer > span + span {
  border-left: 1px solid var(--rule);
}

.status-mark {
  width: 6px;
  height: 6px;
  border: 1px solid var(--ink-faint);
  border-radius: 50%;
}

.status-mark--done {
  border-color: var(--green);
  background: var(--green);
}

.status-mark--active {
  border-color: var(--red);
  background: var(--red);
  box-shadow: 0 0 0 3px var(--red-soft);
}

.hero__source-line {
  position: relative;
  display: flex;
  min-height: 78px;
  align-items: center;
  justify-content: space-between;
  gap: 30px;
  border-top: 1px solid var(--rule-dark);
}

.hero__source-line p,
.hero__source-line a {
  margin: 0;
  font-size: 0.76rem;
}

.hero__source-line p {
  color: var(--ink-faint);
}

.hero__source-line a {
  display: inline-flex;
  gap: 12px;
  align-items: center;
  font-weight: 680;
  text-decoration: none;
}

.hero__source-line a span {
  color: var(--red);
}

.market-proof,
.system-section,
.services-section,
.workflow-section,
.method-section,
.fit-section {
  padding-block: clamp(96px, 11vw, 176px);
}

.section-intro {
  margin-bottom: clamp(54px, 7vw, 94px);
}

.section-intro--split {
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) minmax(320px, 0.7fr);
  align-items: end;
  gap: clamp(50px, 9vw, 150px);
}

.section-intro h2,
.governance-copy h2,
.final-cta h2 {
  max-width: 940px;
  margin-bottom: 0;
  font-size: clamp(2.7rem, 5vw, 5.65rem);
  line-height: 0.98;
  letter-spacing: -0.06em;
  font-weight: 620;
}

.section-intro--split > p,
.section-intro--center > p {
  margin-bottom: 0;
  color: var(--ink-soft);
  font-size: 1.03rem;
  line-height: 1.62;
}

.section-label {
  margin-bottom: 24px;
  color: var(--red);
}

.section-label::before {
  content: "";
  width: 28px;
  height: 1px;
  background: currentColor;
}

.section-label--light {
  color: #ff7b70;
}

.section-intro--center {
  max-width: 980px;
  margin-inline: auto;
  text-align: center;
}

.section-intro--center .section-label {
  justify-content: center;
}

.section-intro--center > p {
  max-width: 720px;
  margin: 28px auto 0;
}

.market-proof {
  background: var(--paper-pure);
  border-bottom: 1px solid var(--rule);
}

.metric-rail {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  border-top: 1px solid var(--ink);
  border-bottom: 1px solid var(--ink);
}

.metric {
  min-height: 350px;
  padding: 32px clamp(20px, 2.4vw, 38px) 28px;
}

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

.metric__value {
  margin-bottom: 78px;
  font-size: clamp(3.2rem, 5vw, 5.1rem);
  line-height: 0.86;
  letter-spacing: -0.075em;
  font-weight: 550;
  font-variant-numeric: tabular-nums;
}

.metric__value sup {
  margin-left: 3px;
  color: var(--red);
  font-size: 0.32em;
  letter-spacing: -0.02em;
  vertical-align: top;
}

.metric h3 {
  min-height: 52px;
  margin-bottom: 10px;
  font-size: 1rem;
  line-height: 1.34;
  letter-spacing: -0.025em;
}

.metric > p:not(.metric__value) {
  min-height: 42px;
  margin-bottom: 24px;
  color: var(--ink-faint);
  font-size: 0.78rem;
}

.metric a {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--ink);
  font-size: 0.72rem;
  font-weight: 680;
}

.metric a span {
  color: var(--red);
}

.source-note {
  margin: 16px 0 0;
  color: var(--ink-faint);
  font-size: 0.69rem;
}

.system-section {
  position: relative;
  overflow: hidden;
}

.system-map {
  position: relative;
  min-height: 680px;
  overflow: hidden;
  border: 1px solid var(--ink);
  background: var(--paper-pure);
}

.system-map::after {
  content: "SYSTEM / LIVE BOUNDARIES";
  position: absolute;
  left: 18px;
  bottom: 12px;
  color: var(--ink-faint);
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 0.58rem;
  letter-spacing: 0.07em;
}

.system-map__grid {
  opacity: 0.52;
  background-size: 34px 34px;
  mask-image: none;
}

.system-map__connections {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.system-map__connections path {
  fill: none;
  stroke: var(--rule-dark);
  stroke-width: 1.2;
  stroke-dasharray: 5 8;
  transition:
    stroke 300ms ease,
    stroke-width 300ms ease;
}

.system-core {
  position: absolute;
  left: 50%;
  top: 50%;
  z-index: 4;
  width: 310px;
  min-height: 260px;
  padding: 28px;
  border: 1px solid var(--ink);
  background: var(--ink);
  color: var(--white);
  transform: translate(-50%, -50%);
  box-shadow: 11px 11px 0 var(--red);
}

.system-core__mark {
  display: grid;
  width: 38px;
  height: 38px;
  margin-bottom: 36px;
  place-items: center;
  background: var(--red);
  font-size: 0.82rem;
  font-weight: 780;
}

.system-core p {
  margin-bottom: 7px;
  color: #aeb2ad;
  font-size: 0.68rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.system-core strong {
  display: block;
  margin-bottom: 11px;
  font-size: 1.35rem;
  letter-spacing: -0.035em;
}

.system-core small {
  display: block;
  min-height: 38px;
  color: #c5c8c4;
  font-size: 0.76rem;
  line-height: 1.52;
}

.system-core__state {
  position: absolute;
  left: 28px;
  right: 28px;
  bottom: 24px;
  display: flex;
  align-items: center;
  gap: 9px;
  padding-top: 13px;
  border-top: 1px solid #3e4240;
  color: #ff8c82;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 0.62rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.system-node {
  position: absolute;
  z-index: 3;
  display: grid;
  width: 194px;
  min-height: 116px;
  padding: 16px;
  border: 1px solid var(--rule-dark);
  background: rgba(255, 254, 251, 0.96);
  color: var(--ink);
  text-align: left;
  cursor: pointer;
  transition:
    border-color 220ms ease,
    background-color 220ms ease,
    transform 220ms var(--ease),
    box-shadow 220ms ease;
}

.system-node:hover {
  border-color: var(--ink);
  transform: translateY(-4px);
}

.system-node.is-active {
  border-color: var(--red);
  background: var(--red);
  color: var(--white);
  box-shadow: 6px 6px 0 var(--red-soft);
}

.system-node span {
  align-self: start;
  color: var(--red);
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 0.58rem;
}

.system-node.is-active span,
.system-node.is-active small {
  color: rgba(255, 255, 255, 0.76);
}

.system-node strong {
  align-self: end;
  font-size: 0.93rem;
}

.system-node small {
  color: var(--ink-faint);
  font-size: 0.66rem;
}

.system-node--1 { left: 5.2%; top: 11%; }
.system-node--2 { left: 4%; top: 41.5%; }
.system-node--3 { left: 6%; bottom: 7%; }
.system-node--4 { right: 5.2%; top: 11%; }
.system-node--5 { right: 4%; top: 41.5%; }
.system-node--6 { right: 6%; bottom: 7%; }

.system-principles {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border: 1px solid var(--ink);
  border-top: 0;
}

.system-principles article {
  min-height: 210px;
  padding: 30px;
}

.system-principles article + article {
  border-left: 1px solid var(--rule);
}

.line-icon {
  display: block;
  margin-bottom: 34px;
  color: var(--red);
  font-size: 1.8rem;
  line-height: 1;
}

.system-principles h3 {
  margin-bottom: 8px;
  font-size: 1rem;
}

.system-principles p {
  max-width: 320px;
  margin-bottom: 0;
  color: var(--ink-soft);
  font-size: 0.82rem;
}

.services-section {
  background: var(--paper-pure);
  border-top: 1px solid var(--rule);
  border-bottom: 1px solid var(--rule);
}

.service-explorer {
  display: grid;
  grid-template-columns: 0.34fr 0.66fr;
  border: 1px solid var(--ink);
}

.service-nav {
  border-right: 1px solid var(--ink);
  background: var(--paper);
}

.service-nav button {
  position: relative;
  display: grid;
  grid-template-columns: 36px 1fr;
  width: 100%;
  min-height: 102px;
  padding: 22px 24px;
  border: 0;
  border-bottom: 1px solid var(--rule);
  background: transparent;
  color: var(--ink);
  text-align: left;
  cursor: pointer;
  transition:
    background-color 200ms ease,
    color 200ms ease;
}

.service-nav button:last-child {
  border-bottom: 0;
}

.service-nav button::after {
  content: "";
  position: absolute;
  right: -1px;
  top: 0;
  bottom: 100%;
  width: 3px;
  background: var(--red);
  transition: bottom 250ms var(--ease);
}

.service-nav button:hover {
  background: var(--paper-quiet);
}

.service-nav button[aria-selected="true"] {
  background: var(--ink);
  color: var(--white);
}

.service-nav button[aria-selected="true"]::after {
  bottom: 0;
}

.service-nav button > span {
  grid-row: 1 / 3;
  color: var(--red);
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 0.6rem;
}

.service-nav button strong {
  align-self: end;
  font-size: 0.9rem;
}

.service-nav button small {
  margin-top: 5px;
  color: var(--ink-faint);
  font-size: 0.67rem;
}

.service-nav button[aria-selected="true"] small {
  color: #aeb2ad;
}

.service-panel {
  min-width: 0;
}

.service-panel__copy {
  min-height: 395px;
  padding: clamp(34px, 5vw, 74px);
}

.service-kicker {
  margin-bottom: 24px;
  color: var(--red);
  font-size: 0.68rem;
  font-weight: 750;
  letter-spacing: 0.11em;
  text-transform: uppercase;
}

.service-panel__copy h3 {
  max-width: 780px;
  margin-bottom: 22px;
  font-size: clamp(2rem, 3.6vw, 4.1rem);
  line-height: 1.02;
  letter-spacing: -0.055em;
  font-weight: 610;
}

.service-panel__copy > p:not(.service-kicker):not(.service-limit) {
  max-width: 760px;
  color: var(--ink-soft);
  font-size: 0.98rem;
  line-height: 1.65;
}

.service-panel__copy ul {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
  margin: 32px 0 0;
  padding: 0;
  list-style: none;
  border-top: 1px solid var(--rule);
}

.service-panel__copy li {
  position: relative;
  padding: 18px 20px 0 16px;
  font-size: 0.74rem;
  font-weight: 650;
}

.service-panel__copy li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 24px;
  width: 5px;
  height: 5px;
  background: var(--red);
}

.service-limit {
  display: flex;
  gap: 12px;
  margin: 26px 0 0;
  color: var(--ink-faint);
  font-size: 0.69rem;
}

.service-limit span {
  flex: none;
  color: var(--red);
  font-weight: 760;
  text-transform: uppercase;
}

.service-limit em {
  font-style: normal;
}

.service-detail-link {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  margin-top: 28px;
  color: var(--ink);
  font-size: 0.76rem;
  font-weight: 720;
  text-decoration: none;
}

.service-detail-link span {
  color: var(--red);
  transition: transform 180ms var(--ease);
}

.service-detail-link:hover span {
  transform: translate(3px, -3px);
}

.service-directory {
  display: grid;
  grid-template-columns: 0.72fr repeat(3, 1fr);
  margin-top: 26px;
  border-top: 1px solid var(--ink);
  border-left: 1px solid var(--ink);
}

.service-directory > p,
.service-directory > a {
  min-height: 84px;
  margin: 0;
  padding: 18px;
  border-right: 1px solid var(--ink);
  border-bottom: 1px solid var(--ink);
}

.service-directory > p {
  display: flex;
  align-items: center;
  color: var(--ink-faint);
  font-size: 0.64rem;
  font-weight: 720;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.service-directory > a {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 13px;
  color: var(--ink);
  font-size: 0.72rem;
  font-weight: 670;
  text-decoration: none;
  transition:
    background-color 180ms ease,
    color 180ms ease;
}

.service-directory > a:hover {
  background: var(--ink);
  color: var(--white);
}

.service-directory span,
.service-directory em {
  color: var(--red);
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 0.56rem;
  font-style: normal;
}

@media (max-width: 1024px) {
  .service-directory {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 760px) {
  .service-directory {
    grid-template-columns: 1fr;
  }
}

.service-demo {
  border-top: 1px solid var(--ink);
  background: var(--paper);
}

.demo-toolbar > span:last-child {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: var(--green);
}

.demo-stage {
  position: relative;
  min-height: 380px;
  overflow: hidden;
  padding: 48px clamp(30px, 5vw, 70px) 56px;
  background-image:
    linear-gradient(var(--rule) 1px, transparent 1px),
    linear-gradient(90deg, var(--rule) 1px, transparent 1px);
  background-size: 32px 32px;
}

.demo-intake {
  position: relative;
  z-index: 2;
  width: min(62%, 480px);
  padding: 18px;
  border: 1px solid var(--ink);
  background: var(--paper-pure);
  box-shadow: 7px 7px 0 var(--paper-quiet);
}

.demo-intake__tag {
  display: block;
  margin-bottom: 20px;
  color: var(--red);
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 0.58rem;
}

.demo-intake p {
  margin: 0;
  font-size: 0.83rem;
}

.demo-route {
  position: absolute;
  left: 48%;
  top: 96px;
  width: 28%;
  height: 88px;
}

.demo-route__line {
  position: absolute;
  left: 0;
  right: 0;
  top: 50%;
  height: 1px;
  background: var(--red);
  transform-origin: left center;
  animation: demo-line 3.4s var(--ease) infinite;
}

.demo-route__dot {
  position: absolute;
  z-index: 2;
  left: 0;
  top: calc(50% - 4px);
  width: 8px;
  height: 8px;
  background: var(--red);
  animation: demo-dot 3.4s var(--ease) infinite;
}

.demo-output {
  position: relative;
  z-index: 2;
  width: min(68%, 590px);
  margin: 36px 0 0 auto;
  border: 1px solid var(--ink);
  background: var(--paper-pure);
}

.demo-output div {
  display: grid;
  grid-template-columns: minmax(120px, 0.35fr) 1fr;
  gap: 18px;
  padding: 13px 16px;
}

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

.demo-output small {
  color: var(--ink-faint);
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 0.57rem;
}

.demo-output strong {
  font-size: 0.72rem;
}

.text-red {
  color: var(--red);
}

.demo-event {
  display: flex;
  align-items: center;
  gap: 15px;
  margin-top: 25px;
  padding-top: 14px;
  border-top: 1px solid var(--rule-dark);
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 0.58rem;
}

.demo-event span {
  color: var(--red);
}

.demo-event p {
  margin: 0;
  color: var(--ink-faint);
}

.workflow-section {
  overflow: hidden;
}

.workflow-lab {
  border: 1px solid var(--ink);
  background: var(--paper-pure);
}

.workflow-tabs {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border-bottom: 1px solid var(--ink);
  background: var(--paper);
}

.workflow-tabs button {
  position: relative;
  min-height: 68px;
  padding: 0 20px;
  border: 0;
  background: transparent;
  color: var(--ink-soft);
  font-size: 0.76rem;
  font-weight: 680;
  cursor: pointer;
  transition:
    background-color 180ms ease,
    color 180ms ease;
}

.workflow-tabs button + button {
  border-left: 1px solid var(--rule);
}

.workflow-tabs button::after {
  content: "";
  position: absolute;
  left: 0;
  right: 100%;
  bottom: 0;
  height: 3px;
  background: var(--red);
  transition: right 250ms var(--ease);
}

.workflow-tabs button:hover {
  color: var(--ink);
  background: var(--paper-quiet);
}

.workflow-tabs button[aria-selected="true"] {
  color: var(--white);
  background: var(--ink);
}

.workflow-tabs button[aria-selected="true"]::after {
  right: 0;
}

.workflow-canvas {
  position: relative;
  min-height: 620px;
  overflow: hidden;
  padding: 0 clamp(24px, 4vw, 58px) 38px;
  background-image:
    linear-gradient(var(--rule) 1px, transparent 1px),
    linear-gradient(90deg, var(--rule) 1px, transparent 1px);
  background-size: 32px 32px;
}

.workflow-canvas__topline {
  display: flex;
  min-height: 52px;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin-inline: calc(clamp(24px, 4vw, 58px) * -1);
  padding-inline: clamp(24px, 4vw, 58px);
  border-bottom: 1px solid var(--rule);
  background: rgba(255, 254, 251, 0.92);
  color: var(--ink-faint);
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 0.59rem;
  letter-spacing: 0.06em;
}

.workflow-run-state {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--green);
}

.workflow-run-state i {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: currentColor;
  animation: signal-breathe 2.4s ease-in-out infinite;
}

.workflow-request {
  position: relative;
  z-index: 3;
  width: min(540px, 72%);
  margin-top: 38px;
  padding: 18px 20px;
  border: 1px solid var(--ink);
  background: var(--paper-pure);
  box-shadow: 7px 7px 0 var(--paper-quiet);
}

.workflow-request__time,
.workflow-request small {
  display: inline-block;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 0.58rem;
}

.workflow-request__time {
  margin-right: 15px;
  color: var(--red);
}

.workflow-request small {
  color: var(--ink-faint);
  letter-spacing: 0.06em;
}

.workflow-request strong {
  display: block;
  margin-top: 14px;
  font-size: 0.88rem;
  font-weight: 560;
}

.workflow-route {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: clamp(20px, 4vw, 58px);
  align-items: center;
  margin-top: 72px;
}

.workflow-route__line {
  position: absolute;
  left: 7%;
  right: 7%;
  top: 50%;
  z-index: -1;
  height: 1px;
  background: var(--rule-dark);
}

.workflow-route__line::after {
  content: "";
  position: absolute;
  inset: -1px 100% -1px 0;
  background: var(--red);
  transition: right 900ms var(--ease);
}

.workflow-canvas.is-running .workflow-route__line::after,
.workflow-canvas.is-complete .workflow-route__line::after {
  right: 0;
}

.workflow-token {
  position: absolute;
  left: 7%;
  top: calc(50% - 5px);
  z-index: 6;
  width: 10px;
  height: 10px;
  background: var(--red);
  box-shadow: 0 0 0 5px var(--red-soft);
  opacity: 0;
}

.workflow-canvas.is-running .workflow-token {
  opacity: 1;
  animation: workflow-token 2.8s var(--ease) forwards;
}

.workflow-tool {
  position: relative;
  display: grid;
  min-height: 154px;
  align-content: space-between;
  justify-items: start;
  padding: 18px;
  border: 1px solid var(--rule-dark);
  background: rgba(255, 254, 251, 0.97);
  box-shadow: 5px 5px 0 var(--paper-quiet);
  transition:
    border-color 220ms ease,
    transform 220ms var(--ease),
    box-shadow 220ms ease;
}

.workflow-canvas.is-running .workflow-tool,
.workflow-canvas.is-complete .workflow-tool {
  border-color: var(--ink);
}

.workflow-tool:nth-of-type(2) { transition-delay: 140ms; }
.workflow-tool:nth-of-type(3) { transition-delay: 380ms; }
.workflow-tool:nth-of-type(4) { transition-delay: 640ms; }

.workflow-tool img,
.workflow-tool__mark,
.workflow-tool__check {
  display: grid;
  width: 38px;
  height: 38px;
  place-items: center;
}

.workflow-tool__mark {
  background: var(--red);
  color: var(--white);
  font-size: 0.78rem;
  font-weight: 800;
}

.workflow-tool__check {
  border: 1px solid var(--green);
  color: var(--green);
  font-size: 1.1rem;
}

.workflow-tool strong,
.workflow-tool small {
  display: block;
}

.workflow-tool strong {
  align-self: end;
  margin-top: 24px;
  font-size: 0.8rem;
}

.workflow-tool small {
  margin-top: 5px;
  color: var(--ink-faint);
  font-size: 0.63rem;
}

.workflow-tool--helvkit {
  border-color: var(--ink);
  background: var(--ink);
  color: var(--white);
}

.workflow-tool--helvkit small {
  color: #acb0ac;
}

.workflow-tool--result {
  border-color: var(--green);
}

.workflow-ledger {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  margin-top: 58px;
  border-top: 1px solid var(--ink);
  border-bottom: 1px solid var(--ink);
  background: rgba(255, 254, 251, 0.94);
}

.workflow-ledger > div {
  display: grid;
  grid-template-columns: auto 1fr auto;
  min-height: 64px;
  align-items: center;
  gap: 12px;
  padding: 0 16px;
  color: var(--ink-faint);
  transition:
    color 220ms ease,
    background-color 220ms ease;
}

.workflow-ledger > div + div {
  border-left: 1px solid var(--rule);
}

.workflow-ledger span,
.workflow-ledger em {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 0.55rem;
}

.workflow-ledger span {
  color: var(--red);
}

.workflow-ledger p {
  margin: 0;
  font-size: 0.66rem;
}

.workflow-ledger em {
  font-style: normal;
  opacity: 0;
}

.workflow-ledger > div.is-done {
  color: var(--ink);
  background: var(--paper-pure);
}

.workflow-ledger > div.is-done em {
  color: var(--green);
  opacity: 1;
}

.integration-ribbon {
  display: grid;
  grid-template-columns: auto 1fr;
  min-height: 104px;
  align-items: center;
  gap: 34px;
  padding: 20px clamp(20px, 3vw, 42px);
  border-top: 1px solid var(--ink);
  background: var(--paper);
}

.integration-ribbon > p {
  margin: 0;
  color: var(--ink-faint);
  font-size: 0.67rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.integration-ribbon > div {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  flex-wrap: wrap;
  gap: 12px 24px;
}

.integration-ribbon span {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--ink-soft);
  font-size: 0.68rem;
  font-weight: 650;
  white-space: nowrap;
}

.integration-ribbon img {
  width: 24px;
  height: 24px;
}

@keyframes workflow-token {
  0% { left: 7%; }
  30% { left: 35%; }
  64% { left: 64%; }
  100% { left: calc(93% - 10px); }
}

.method-section {
  overflow: hidden;
}

.method-track {
  position: relative;
  margin-bottom: 90px;
  border-top: 1px solid var(--ink);
}

.method-track__progress {
  position: absolute;
  top: -2px;
  left: 0;
  right: 0;
  height: 3px;
  overflow: hidden;
}

.method-track__progress span {
  display: block;
  width: 0;
  height: 100%;
  background: var(--red);
  transition: width 480ms var(--ease);
}

.method-step {
  display: grid;
  grid-template-columns: 84px minmax(0, 1fr) 180px;
  min-height: 142px;
  align-items: center;
  gap: 32px;
  border-bottom: 1px solid var(--rule);
  transition:
    background-color 220ms ease,
    padding 220ms var(--ease);
}

.method-step.is-current {
  padding-inline: 18px;
  background: var(--paper-pure);
}

.method-step > span {
  color: var(--red);
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 0.67rem;
}

.method-step h3 {
  margin-bottom: 6px;
  font-size: 1.3rem;
  letter-spacing: -0.035em;
}

.method-step p {
  max-width: 720px;
  margin-bottom: 0;
  color: var(--ink-soft);
  font-size: 0.84rem;
}

.method-step small {
  color: var(--ink-faint);
  font-size: 0.68rem;
  text-align: right;
  text-transform: uppercase;
  letter-spacing: 0.07em;
}

.method-receipt {
  display: grid;
  max-width: 1130px;
  margin-left: auto;
  border: 1px solid var(--ink);
  background: var(--paper-pure);
  box-shadow: -22px 22px 0 var(--red-soft);
}

.method-receipt__header {
  display: flex;
  min-height: 54px;
  align-items: center;
  justify-content: space-between;
  padding: 0 20px;
  border-bottom: 1px solid var(--ink);
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 0.62rem;
  letter-spacing: 0.07em;
}

.method-receipt__body {
  display: grid;
  grid-template-columns: 1fr 0.84fr;
}

.method-receipt__body > div {
  padding: 54px;
}

.receipt-label {
  margin-bottom: 34px;
  color: var(--red);
  font-size: 0.67rem;
  font-weight: 730;
  letter-spacing: 0.09em;
  text-transform: uppercase;
}

.method-receipt__body h3 {
  max-width: 560px;
  margin-bottom: 16px;
  font-size: clamp(2rem, 3.3vw, 3.55rem);
  line-height: 1;
  letter-spacing: -0.055em;
  font-weight: 600;
}

.method-receipt__body > div > p:last-child {
  max-width: 570px;
  margin: 0;
  color: var(--ink-soft);
  font-size: 0.86rem;
}

.method-receipt dl {
  margin: 0;
  border-left: 1px solid var(--ink);
}

.method-receipt dl div {
  display: grid;
  grid-template-columns: 0.7fr 1fr;
  min-height: 100px;
  align-items: center;
  gap: 18px;
  padding: 0 28px;
}

.method-receipt dl div + div {
  border-top: 1px solid var(--rule);
}

.method-receipt dt {
  color: var(--ink-faint);
  font-size: 0.69rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.method-receipt dd {
  margin: 0;
  font-size: 0.82rem;
  font-weight: 680;
}

.governance-section {
  position: relative;
  overflow: hidden;
  padding-block: clamp(96px, 11vw, 168px);
  background: var(--ink);
  color: var(--white);
}

.governance-section::before {
  content: "";
  position: absolute;
  inset: 0;
  opacity: 0.16;
  background-image:
    linear-gradient(#555a57 1px, transparent 1px),
    linear-gradient(90deg, #555a57 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: linear-gradient(to right, transparent 4%, #000 35%, #000 65%, transparent 96%);
}

.governance-grid {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(560px, 1.1fr);
  align-items: center;
  gap: clamp(60px, 8vw, 130px);
}

.governance-copy h2 {
  margin-bottom: 30px;
  font-size: clamp(3rem, 5vw, 5.4rem);
}

.governance-copy > p:not(.section-label) {
  max-width: 650px;
  margin-bottom: 36px;
  color: #c2c5c1;
  font-size: 1.02rem;
  line-height: 1.62;
}

.control-console {
  border: 1px solid #4b504d;
  background: #171a19;
  box-shadow: 14px 14px 0 rgba(211, 41, 28, 0.55);
}

.control-console__head {
  border-bottom-color: #4b504d;
  color: #aeb2ad;
}

.control-rule {
  display: grid;
  grid-template-columns: auto 1fr auto;
  width: 100%;
  min-height: 106px;
  align-items: center;
  gap: 18px;
  padding: 18px 22px;
  border: 0;
  border-bottom: 1px solid #3b3f3d;
  background: transparent;
  color: var(--white);
  text-align: left;
  cursor: pointer;
  transition: background-color 180ms ease;
}

.control-rule:hover {
  background: #202422;
}

.control-rule__switch {
  position: relative;
  width: 43px;
  height: 24px;
  border: 1px solid #6c716e;
  background: #252927;
  transition:
    background-color 200ms ease,
    border-color 200ms ease;
}

.control-rule__switch i {
  position: absolute;
  top: 4px;
  left: 4px;
  width: 14px;
  height: 14px;
  background: #858a86;
  transition:
    transform 220ms var(--ease),
    background-color 200ms ease;
}

.control-rule.is-on .control-rule__switch {
  border-color: var(--red);
  background: #45201d;
}

.control-rule.is-on .control-rule__switch i {
  background: #ff796e;
  transform: translateX(19px);
}

.control-rule strong,
.control-rule small {
  display: block;
}

.control-rule strong {
  margin-bottom: 4px;
  font-size: 0.86rem;
}

.control-rule small {
  color: #9ca19d;
  font-size: 0.69rem;
}

.control-rule em {
  color: #ff8277;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 0.58rem;
  font-style: normal;
  letter-spacing: 0.07em;
}

.control-rule:not(.is-on) em {
  color: #858a86;
}

.control-console__foot {
  padding: 18px 22px;
  color: #aeb2ad;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 0.62rem;
}

.fit-section {
  background: var(--paper-pure);
}

.fit-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border: 1px solid var(--ink);
}

.fit-grid article {
  min-height: 330px;
  padding: 34px;
}

.fit-grid article + article {
  border-left: 1px solid var(--ink);
}

.fit-grid span {
  display: block;
  margin-bottom: 92px;
  color: var(--red);
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 0.65rem;
}

.fit-grid h3 {
  max-width: 360px;
  margin-bottom: 15px;
  font-size: 1.22rem;
  line-height: 1.3;
  letter-spacing: -0.035em;
}

.fit-grid p {
  max-width: 350px;
  margin-bottom: 0;
  color: var(--ink-soft);
  font-size: 0.81rem;
}

.final-cta {
  position: relative;
  overflow: hidden;
  padding-block: clamp(102px, 13vw, 200px) 68px;
  background: var(--red);
  color: var(--white);
}

.final-cta__signal {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: flex-end;
  justify-content: space-around;
  opacity: 0.28;
  pointer-events: none;
}

.final-cta__signal span {
  width: 1px;
  height: 58%;
  background: var(--white);
  transform-origin: bottom;
  animation: signal-lines 6s ease-in-out infinite;
}

.final-cta__signal span:nth-child(2) { height: 85%; animation-delay: -1.2s; }
.final-cta__signal span:nth-child(3) { height: 70%; animation-delay: -2.4s; }
.final-cta__signal span:nth-child(4) { height: 95%; animation-delay: -3.6s; }
.final-cta__signal span:nth-child(5) { height: 64%; animation-delay: -4.8s; }

.final-cta__inner {
  position: relative;
  z-index: 2;
  text-align: center;
}

.final-cta .section-label {
  justify-content: center;
  color: var(--white);
}

.final-cta h2 {
  max-width: 1120px;
  margin-inline: auto;
  font-size: clamp(3.25rem, 6.2vw, 7rem);
}

.final-cta__inner > p:not(.section-label) {
  max-width: 720px;
  margin: 32px auto 35px;
  color: rgba(255, 255, 255, 0.82);
  font-size: 1.02rem;
}

.final-cta__meta {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 16px 34px;
  margin-top: 90px;
  padding-top: 24px;
  border-top: 1px solid rgba(255, 255, 255, 0.5);
  color: rgba(255, 255, 255, 0.78);
  font-size: 0.68rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.site-footer {
  padding-block: 52px;
  background: var(--paper);
  border-top: 1px solid var(--ink);
}

.site-footer__inner {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 42px;
}

.site-footer__inner > p:not(.site-footer__legal) {
  margin: 0;
  color: var(--ink-soft);
  font-size: 0.78rem;
}

.site-footer__links {
  display: flex;
  gap: 28px;
}

.site-footer__links a {
  font-size: 0.76rem;
  font-weight: 680;
}

.site-footer__legal {
  grid-column: 1 / -1;
  margin: 28px 0 0;
  padding-top: 18px;
  border-top: 1px solid var(--rule);
  color: var(--ink-faint);
  font-size: 0.64rem;
}

[data-reveal].will-reveal {
  opacity: 0;
  transform: translateY(18px);
  transition:
    opacity 620ms var(--ease),
    transform 620ms var(--ease);
  transition-delay: var(--reveal-delay, 0ms);
}

[data-reveal].is-visible {
  opacity: 1;
  transform: none;
}

@keyframes signal-breathe {
  0%, 100% { box-shadow: 0 0 0 4px var(--red-soft); }
  50% { box-shadow: 0 0 0 8px rgba(211, 41, 28, 0.09); }
}

@keyframes route-signal {
  to { stroke-dashoffset: -864; }
}

@keyframes demo-line {
  0%, 14% { transform: scaleX(0); }
  52%, 100% { transform: scaleX(1); }
}

@keyframes demo-dot {
  0%, 14% { transform: translateX(0); }
  52%, 100% { transform: translateX(calc(28vw - 12px)); }
}

@keyframes signal-lines {
  0%, 100% { transform: scaleY(0.68); opacity: 0.6; }
  50% { transform: scaleY(1); opacity: 1; }
}

@media (max-width: 1240px) {
  .hero__inner {
    grid-template-columns: minmax(0, 0.9fr) minmax(480px, 1.1fr);
    gap: 42px;
  }

  .hero h1 {
    font-size: clamp(3.3rem, 6vw, 5.7rem);
  }

  .hero-console {
    min-height: 620px;
  }

  .system-node {
    width: 170px;
  }

  .service-explorer {
    grid-template-columns: 0.38fr 0.62fr;
  }
}

@media (max-width: 1024px) {
  :root {
    --header-h: 74px;
  }

  .desktop-nav {
    display: none;
  }

  .site-header__inner {
    grid-template-columns: 1fr auto auto;
  }

  .menu-toggle {
    display: grid;
    width: 46px;
    height: 46px;
    place-content: center;
    gap: 7px;
    border: 1px solid var(--ink);
    background: transparent;
    cursor: pointer;
  }

  .menu-toggle span {
    width: 19px;
    height: 1px;
    background: var(--ink);
    transition: transform 200ms var(--ease);
  }

  .menu-toggle[aria-expanded="true"] span:first-child {
    transform: translateY(4px) rotate(45deg);
  }

  .menu-toggle[aria-expanded="true"] span:last-child {
    transform: translateY(-4px) rotate(-45deg);
  }

  .mobile-menu {
    position: fixed;
    inset: var(--header-h) 0 0;
    z-index: 99;
    display: block;
    overflow: auto;
    border-top: 1px solid var(--rule);
    background: var(--paper);
  }

  .mobile-menu[hidden] {
    display: none;
  }

  .mobile-menu nav {
    width: min(calc(100% - 2 * var(--gutter)), var(--max));
    margin: 0 auto;
    padding-block: 34px;
  }

  .mobile-menu a {
    display: flex;
    min-height: 72px;
    align-items: center;
    justify-content: space-between;
    border-bottom: 1px solid var(--rule);
    text-decoration: none;
    font-size: 1.35rem;
    letter-spacing: -0.03em;
  }

  .mobile-menu__cta {
    margin-top: 25px;
    padding-inline: 20px;
    border: 0 !important;
    background: var(--red);
    color: var(--white);
    font-size: 1rem !important;
  }

  .hero__inner {
    grid-template-columns: 1fr;
    padding-top: 78px;
  }

  .hero__copy {
    max-width: 800px;
  }

  .hero h1 {
    font-size: clamp(4rem, 9vw, 6.4rem);
  }

  .hero-console {
    width: min(100%, 760px);
    margin-left: auto;
  }

  .hero__principles {
    margin-top: 56px;
  }

  .section-intro--split {
    grid-template-columns: 1fr;
    align-items: start;
    gap: 30px;
  }

  .section-intro--split > p {
    max-width: 680px;
  }

  .metric-rail {
    grid-template-columns: repeat(2, 1fr);
  }

  .metric:nth-child(3) {
    border-left: 0;
  }

  .metric:nth-child(n + 3) {
    border-top: 1px solid var(--rule);
  }

  .system-map {
    min-height: 760px;
  }

  .system-node {
    width: 178px;
  }

  .system-node--1 { left: 3.5%; top: 8%; }
  .system-node--2 { left: 3.5%; top: 40%; }
  .system-node--3 { left: 3.5%; bottom: 7%; }
  .system-node--4 { right: 3.5%; top: 8%; }
  .system-node--5 { right: 3.5%; top: 40%; }
  .system-node--6 { right: 3.5%; bottom: 7%; }

  .service-explorer {
    grid-template-columns: 1fr;
  }

  .service-nav {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    border-right: 0;
    border-bottom: 1px solid var(--ink);
  }

  .service-nav button {
    min-height: 100px;
    border-right: 1px solid var(--rule);
  }

  .service-nav button:nth-child(3n) {
    border-right: 0;
  }

  .service-nav button:nth-child(n + 4) {
    border-bottom: 0;
  }

  .service-nav button::after {
    left: 0;
    right: 100%;
    top: auto;
    bottom: -1px;
    width: auto;
    height: 3px;
    transition: right 250ms var(--ease);
  }

  .service-nav button[aria-selected="true"]::after {
    right: 0;
    bottom: -1px;
  }

  .governance-grid {
    grid-template-columns: 1fr;
  }

  .control-console {
    width: min(100%, 780px);
    margin-left: auto;
  }
}

@media (max-width: 760px) {
  :root {
    --gutter: 18px;
  }

  .header-cta {
    display: none;
  }

  .site-header__inner {
    grid-template-columns: 1fr auto;
  }

  .brand img {
    width: 126px;
  }

  .hero__inner {
    min-height: auto;
    gap: 54px;
    padding-block: 58px 68px;
  }

  .hero h1 {
    font-size: clamp(3.15rem, 15vw, 5.25rem);
    line-height: 0.94;
  }

  .hero__lead {
    font-size: 1rem;
  }

  .hero__actions {
    align-items: flex-start;
    flex-direction: column;
  }

  .button {
    width: 100%;
  }

  .hero__principles {
    grid-template-columns: 1fr;
  }

  .hero__principles div {
    min-height: 54px;
    align-items: center;
    padding: 12px 0;
  }

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

  .hero-console {
    min-height: 600px;
    box-shadow: 8px 8px 0 rgba(18, 20, 21, 0.07);
  }

  .hero-console__topline {
    padding-inline: 13px;
  }

  .inbound-message {
    width: calc(100% - 36px);
    margin: 22px 18px 0;
  }

  .routing-stage {
    min-height: 375px;
  }

  .routing-stage__paths {
    transform: rotate(90deg) scale(0.78);
  }

  .route-node {
    width: 108px;
    padding: 9px;
  }

  .route-node:nth-of-type(1) { left: 20% !important; top: 34% !important; }
  .route-node:nth-of-type(2) { left: 70% !important; top: 30% !important; }
  .route-node:nth-of-type(3) { left: 26% !important; top: 63% !important; }
  .route-node:nth-of-type(4) { left: 74% !important; top: 68% !important; }

  .human-gate {
    left: 18px;
    right: 18px;
    bottom: -4px;
    width: auto;
  }

  .hero-console__footer {
    grid-template-columns: 1fr;
    position: relative;
  }

  .hero-console__footer > span {
    min-height: 42px;
  }

  .hero-console__footer > span + span {
    border-top: 1px solid var(--rule);
    border-left: 0;
  }

  .hero__source-line {
    align-items: flex-start;
    flex-direction: column;
    padding-block: 18px;
  }

  .section-intro h2,
  .governance-copy h2,
  .final-cta h2 {
    font-size: clamp(2.65rem, 13vw, 4.5rem);
  }

  .metric-rail {
    grid-template-columns: 1fr;
  }

  .metric {
    min-height: 285px;
  }

  .metric + .metric,
  .metric:nth-child(3) {
    border-top: 1px solid var(--rule);
    border-left: 0;
  }

  .metric__value {
    margin-bottom: 50px;
  }

  .system-map {
    min-height: auto;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0;
    padding: 0 0 32px;
  }

  .system-map__connections {
    display: none;
  }

  .system-core {
    position: relative;
    left: auto;
    top: auto;
    grid-column: 1 / -1;
    width: auto;
    min-height: 248px;
    transform: none;
    box-shadow: 0 7px 0 var(--red);
  }

  .system-node {
    position: relative;
    left: auto !important;
    right: auto !important;
    top: auto !important;
    bottom: auto !important;
    width: auto;
    min-height: 116px;
    border-width: 0 1px 1px 0;
    transform: none !important;
    box-shadow: none !important;
  }

  .system-node:nth-of-type(even) {
    border-right: 0;
  }

  .system-map::after {
    display: none;
  }

  .system-principles {
    grid-template-columns: 1fr;
  }

  .system-principles article {
    min-height: 180px;
  }

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

  .service-nav {
    display: flex;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scrollbar-width: none;
  }

  .service-nav::-webkit-scrollbar {
    display: none;
  }

  .service-nav button {
    flex: 0 0 76%;
    min-width: 230px;
    border-right: 1px solid var(--rule) !important;
    border-bottom: 0;
    scroll-snap-align: start;
  }

  .service-panel__copy {
    min-height: auto;
    padding: 36px 22px;
  }

  .service-panel__copy h3 {
    font-size: clamp(2.25rem, 10vw, 3.4rem);
  }

  .service-panel__copy ul {
    grid-template-columns: 1fr;
  }

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

  .service-limit {
    flex-direction: column;
    gap: 5px;
  }

  .demo-stage {
    min-height: 500px;
    padding: 30px 18px;
  }

  .demo-intake,
  .demo-output {
    width: 100%;
  }

  .demo-route {
    position: relative;
    left: auto;
    top: auto;
    width: 1px;
    height: 64px;
    margin-left: 26px;
  }

  .demo-route__line {
    inset: 0;
    width: 1px;
    height: 100%;
    transform-origin: top;
    animation: demo-line-mobile 3.4s var(--ease) infinite;
  }

  .demo-route__dot {
    top: 0;
    left: -4px;
    animation: demo-dot-mobile 3.4s var(--ease) infinite;
  }

  .demo-output {
    margin-top: 0;
  }

  .demo-output div {
    grid-template-columns: 1fr;
    gap: 5px;
  }

  .demo-event {
    align-items: flex-start;
  }

  .method-step {
    grid-template-columns: 44px 1fr;
    gap: 12px;
    padding-block: 24px;
  }

  .method-step small {
    grid-column: 2;
    text-align: left;
  }

  .method-receipt {
    box-shadow: -8px 8px 0 var(--red-soft);
  }

  .method-receipt__body {
    grid-template-columns: 1fr;
  }

  .method-receipt__body > div {
    padding: 32px 24px;
  }

  .method-receipt dl {
    border-top: 1px solid var(--ink);
    border-left: 0;
  }

  .method-receipt dl div {
    min-height: 78px;
    padding-inline: 22px;
  }

  .governance-grid {
    grid-template-columns: 1fr;
  }

  .control-console {
    box-shadow: 7px 7px 0 rgba(211, 41, 28, 0.55);
  }

  .control-rule {
    grid-template-columns: auto 1fr;
    min-height: 118px;
    padding: 16px;
  }

  .control-rule em {
    grid-column: 2;
  }

  .fit-grid {
    grid-template-columns: 1fr;
  }

  .fit-grid article {
    min-height: 280px;
  }

  .fit-grid article + article {
    border-top: 1px solid var(--ink);
    border-left: 0;
  }

  .fit-grid span {
    margin-bottom: 64px;
  }

  .final-cta__meta {
    flex-direction: column;
    gap: 12px;
  }

  .site-footer__inner {
    grid-template-columns: 1fr;
    align-items: start;
    gap: 24px;
  }

  .site-footer__legal {
    grid-column: 1;
    margin-top: 5px;
  }
}

@media (max-width: 360px) {
  :root {
    --gutter: 14px;
  }

  .hero h1 {
    font-size: 3rem;
  }

  .hero-console__topline > span:first-child {
    display: none;
  }

  .hero-console__topline {
    justify-content: flex-end;
  }

  .route-node {
    width: 96px;
  }

  .system-node {
    min-height: 126px;
    padding: 12px;
  }

  .system-node small {
    font-size: 0.6rem;
  }
}

@keyframes demo-line-mobile {
  0%, 14% { transform: scaleY(0); }
  52%, 100% { transform: scaleY(1); }
}

@keyframes demo-dot-mobile {
  0%, 14% { transform: translateY(0); }
  52%, 100% { transform: translateY(58px); }
}

@media (max-width: 1024px) {
  .workflow-route {
    gap: 20px;
  }

  .workflow-tool {
    min-height: 145px;
    padding: 15px;
  }

  .integration-ribbon {
    grid-template-columns: 1fr;
  }

  .integration-ribbon > div {
    justify-content: flex-start;
  }
}

@media (max-width: 760px) {
  .workflow-tabs {
    display: flex;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scrollbar-width: none;
  }

  .workflow-tabs::-webkit-scrollbar {
    display: none;
  }

  .workflow-tabs button {
    flex: 0 0 67%;
    min-width: 210px;
    scroll-snap-align: start;
  }

  .workflow-canvas {
    min-height: 960px;
    padding: 0 18px 28px;
  }

  .workflow-canvas__topline {
    min-height: 60px;
    margin-inline: -18px;
    padding-inline: 18px;
  }

  .workflow-canvas__topline > span:first-child {
    max-width: 160px;
  }

  .workflow-request {
    width: 100%;
  }

  .workflow-route {
    grid-template-columns: 1fr;
    gap: 26px;
    margin-top: 42px;
    padding-left: 32px;
  }

  .workflow-route__line {
    left: 12px;
    right: auto;
    top: 5%;
    bottom: 5%;
    width: 1px;
    height: auto;
  }

  .workflow-route__line::after {
    inset: 0 -1px 100% -1px;
    transition: bottom 900ms var(--ease);
  }

  .workflow-canvas.is-running .workflow-route__line::after,
  .workflow-canvas.is-complete .workflow-route__line::after {
    right: -1px;
    bottom: 0;
  }

  .workflow-token {
    left: 7px;
    top: 5%;
  }

  .workflow-canvas.is-running .workflow-token {
    animation-name: workflow-token-mobile;
  }

  .workflow-tool {
    min-height: 118px;
  }

  .workflow-tool strong {
    margin-top: 16px;
  }

  .workflow-ledger {
    grid-template-columns: 1fr;
    margin-top: 38px;
  }

  .workflow-ledger > div + div {
    border-top: 1px solid var(--rule);
    border-left: 0;
  }

  .integration-ribbon {
    gap: 22px;
  }

  .integration-ribbon > div {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
  }

  .integration-ribbon span {
    white-space: normal;
  }
}

@keyframes workflow-token-mobile {
  0% { left: 7px; top: 5%; }
  30% { left: 7px; top: 35%; }
  64% { left: 7px; top: 64%; }
  100% { left: 7px; top: calc(95% - 10px); }
}

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

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

  [data-reveal] {
    opacity: 1;
    transform: none;
  }
}
