/* DEVX site styles (from prototype _stripe/, PR #52). Tokens follow stripe-spec (DEV-3419). */
:root {
  --ink: #231f20;
  --blue: #008ef0;
  --green: #3fe88b;
  --link: #005a91;
  --line: #c6d5da;
  --paper: #f4f8fa;
  --mint: #e6fbf1;
  --muted: #455b65;
  --shadow: 0 18px 52px #1536471c;
  --ease: cubic-bezier(0.2, 0.7, 0.2, 1);
  --mono: ui-monospace, "SF Mono", Menlo, Consolas, monospace;
}
*,
*::before,
*::after {
  box-sizing: border-box;
}
html {
  -webkit-text-size-adjust: 100%;
}
body {
  margin: 0;
  color: var(--ink);
  background: #fff;
  font: 17px/1.55 -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
}
img {
  max-width: 100%;
  height: auto;
}
h1,
h2,
h3,
p,
ul,
ol,
dl,
dd,
figure {
  margin: 0;
}
ul,
ol {
  padding: 0;
  list-style: none;
}
a {
  color: var(--link);
  text-underline-offset: 4px;
}
button,
summary,
input,
textarea {
  font: inherit;
  color: inherit;
}
button,
summary {
  cursor: pointer;
}
[hidden] {
  display: none !important;
}
.wrap {
  width: min(1200px, calc(100% - 64px));
  margin-inline: auto;
}
:focus-visible {
  outline: 3px solid #0070ac;
  outline-offset: 3px;
}
.dark :focus-visible {
  outline-color: var(--green);
}
.skip {
  position: absolute;
  left: 8px;
  top: -100px;
  z-index: 20;
  padding: 12px 16px;
  background: #fff;
}
.skip:focus {
  top: 8px;
}

/* ---------- type */
h1,
h2 {
  font-weight: 550;
  letter-spacing: -0.055em;
  text-wrap: balance;
}
h1 {
  font-size: 80px;
  line-height: 1.02;
  max-width: 790px;
  margin-bottom: 28px;
}
h2 {
  font-size: 58px;
  line-height: 1.07;
  margin-bottom: 20px;
}
h3 {
  font-size: 22px;
  line-height: 1.2;
  font-weight: 600;
  letter-spacing: -0.02em;
}
p {
  max-width: 62ch;
}
p + p {
  margin-top: 16px;
}
.kicker {
  font: 600 12px/1.5 var(--mono);
  letter-spacing: 0.09em;
  text-transform: uppercase;
  margin-bottom: 20px;
}
.kicker::before {
  content: "";
  display: inline-block;
  width: 16px;
  height: 4px;
  margin-right: 8px;
  vertical-align: middle;
  background: var(--green);
  border-radius: 2px;
}
.note {
  font-size: 15px;
  color: var(--muted);
}
.dark .note {
  color: #c9d6dc;
}

/* ---------- buttons */
.btn,
.more {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 15px;
  font-weight: 600;
  text-decoration: none;
  border-radius: 24px;
}
.btn {
  padding: 10px 20px;
  background: var(--ink);
  color: #fff;
  border: 0;
  transition: background-color 0.15s;
}
.btn:hover {
  background: #004d73;
}
.btn:active {
  transform: translateY(1px);
}
.btn span,
.more span {
  transition: transform 0.15s var(--ease);
}
.btn:hover span,
.more:hover span {
  transform: translateX(3px);
}
.btn:disabled {
  opacity: 0.65;
  cursor: default;
}
.btn-sm {
  min-height: 44px;
  padding: 8px 16px;
}
.more {
  padding: 10px 8px;
  color: inherit;
}
.more:hover {
  text-decoration: underline;
}
.dark .btn {
  background: var(--green);
  color: var(--ink);
}
.dark .btn:hover {
  background: #8af3b8;
}
.dark a:not(.btn) {
  color: #fff;
}
.actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 16px;
}

/* ---------- header */
.hdr {
  position: relative;
  z-index: 10;
  min-height: 73px; /* header is loaded after the page: keep its place */
  background: #fff;
  border-bottom: 1px solid var(--line);
}
.bar {
  min-height: 72px;
  display: flex;
  align-items: center;
  gap: 12px;
}
.brand {
  display: flex;
  min-height: 44px;
  align-items: center;
  margin-right: 16px;
}
.brand img {
  width: 86px;
  height: auto;
  display: block;
}
#topics {
  display: flex;
  align-items: center;
  gap: 4px;
  margin-right: auto;
}
#topics details {
  position: relative;
}
#topics summary {
  list-style: none;
  min-height: 44px;
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 0 10px;
  font-size: 15px;
  font-weight: 600;
  border-radius: 8px;
}
#topics summary::-webkit-details-marker {
  display: none;
}
#topics summary::after {
  content: "";
  width: 6px;
  height: 6px;
  border: solid currentColor;
  border-width: 0 1.5px 1.5px 0;
  transform: translateY(-2px) rotate(45deg);
  transition: transform 0.2s var(--ease);
}
#topics details[open] summary::after {
  transform: translateY(1px) rotate(-135deg);
}
#topics summary:hover,
#topics details[open] summary {
  color: var(--link);
}
/* direct menu item without a dropdown (Hardware) */
#topics .topic {
  min-height: 44px;
  display: flex;
  align-items: center;
  padding: 0 10px;
  font-size: 15px;
  font-weight: 600;
  color: var(--ink);
  text-decoration: none;
  border-radius: 8px;
}
#topics .topic:hover {
  background: #e6f4ff;
  color: var(--link);
}
#topics .topic[aria-current="page"] {
  text-decoration: underline;
  text-decoration-thickness: 2px;
  text-underline-offset: 6px;
}
.drop {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  width: 220px;
  padding: 8px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow);
  animation: drop 0.2s var(--ease);
}
@keyframes drop {
  from {
    opacity: 0;
    transform: translateY(-4px);
  }
}
.drop a {
  display: flex;
  align-items: center;
  min-height: 44px;
  padding: 8px 10px;
  border-radius: 6px;
  font-size: 15px;
  line-height: 1.3;
  color: var(--ink);
  text-decoration: none;
}
.drop a:hover {
  background: #e6f4ff;
  color: var(--link);
  text-decoration: underline;
}
.lang {
  min-width: 44px;
  min-height: 44px;
  display: grid;
  place-items: center;
  font-size: 15px;
  font-weight: 600;
}
.mobile {
  display: none;
  min-height: 44px;
  padding: 8px 14px;
  border: 1px solid var(--line);
  border-radius: 24px;
  background: #fff;
  font-size: 15px;
  font-weight: 600;
}

/* ---------- hero */
.hero {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  background: #f2faff;
}
.wave {
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(ellipse at 95% 45%, var(--green) 0, transparent 35%),
    linear-gradient(145deg, #f7fcff 40%, #bfeaff 65%, var(--blue) 86%, var(--ink));
}
.wave::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, #f6fbfff5 0%, #f6fbffeb 35%, transparent 80%);
}
.wave canvas {
  display: block;
  width: 100%;
  height: 100%;
}
.wave.still,
.no-motion .wave {
  background: #eaf7ff url(../img/wave.svg) center / 100% 100% no-repeat;
}
.no-motion .wave canvas {
  display: none;
}
.hero-in {
  position: relative;
  padding: 88px 0 104px;
}
.lead {
  font-size: 24px;
  line-height: 1.45;
  max-width: 52ch;
  margin-bottom: 32px;
}
.slogan {
  margin: -12px 0 28px;
  font-weight: 600;
  color: var(--muted);
}
/* below 1280px: the line sits on the wave, muted grey falls below 4.5:1 */
@media (max-width: 1279px) {
  .slogan {
    color: var(--ink);
  }
}
.hero .actions {
  margin-bottom: 32px;
}
/* in the actions row, left: stays clear of the cookie banner (bottom) */
.wave-switch {
  min-height: 44px;
  padding: 8px 16px;
  border: 1px solid #a6babc;
  border-radius: 24px;
  background: #fff;
  font-size: 13px;
}

/* ---------- sections */
.band {
  padding: 88px 0;
}
.dark {
  background: var(--ink);
  color: #fff;
}
.mint {
  background: var(--mint);
}
.ice,
.facts {
  background: var(--paper);
}
.pair,
.article {
  display: grid;
  grid-template-columns: 5fr 6fr;
  gap: 8%;
  align-items: center;
}
.article,
.pair.top {
  align-items: start;
}
.copy > p {
  margin-bottom: 28px;
}

/* clients & partners */
.clientband {
  padding: 40px 0 48px;
  border-bottom: 1px solid var(--line);
}
.logos {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  align-items: center;
  gap: 28px 40px;
}
.logos + .logos {
  margin-top: 32px;
  padding-top: 32px;
  border-top: 1px solid var(--line);
}
.logos li {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
}
/* one monochrome rule: every mark rendered in ink at 72% */
.logos img {
  display: block;
  filter: brightness(0);
  opacity: 0.72;
  transition: opacity 0.2s;
}
.logos img:hover {
  opacity: 1;
}
/* marks with white lettering inside a solid shape keep the lettering readable */
.logos img.keep {
  filter: grayscale(1) brightness(0.62);
  opacity: 1;
}
.logos .word {
  font-size: 17px;
  font-weight: 650;
  letter-spacing: -0.01em;
  line-height: 1.2;
  text-align: center;
  color: #4f4b4c;
}
.logos .sector {
  display: block;
  margin-top: 6px;
  font: 600 11px var(--mono);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
  text-align: center;
}
.logos li:has(.sector) {
  flex-direction: column;
}
.clientband .note {
  margin-top: 28px;
  font-size: 13px;
}

/* stats */
.facts {
  padding: 48px 0;
  border-bottom: 1px solid var(--line);
}
.stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}
.stats div {
  border-left: 2px solid var(--blue);
  padding-left: 16px;
}
.stats strong {
  display: block;
  font-size: 64px;
  line-height: 1.1;
  font-weight: 550;
  letter-spacing: -0.06em;
}
.stats span,
.stats a {
  font-size: 15px;
}

/* index lists */
.indexlist a {
  min-height: 52px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 10px 0;
  border-bottom: 1px solid var(--line);
  color: inherit;
  text-decoration: none;
  font-weight: 550;
}
.indexlist li:first-child a {
  border-top: 1px solid var(--line);
}
.indexlist a span {
  color: var(--link);
  transition: transform 0.15s var(--ease);
}
.indexlist a:hover {
  color: var(--link);
  text-decoration: underline;
}
.indexlist a:hover span {
  transform: translateX(4px);
}

/* about docs */
.docs {
  display: grid;
  gap: 12px;
}
.doc {
  display: grid;
  gap: 4px;
  padding: 20px 24px;
  background: #fff;
  border: 1px solid #c4e8d6;
  border-radius: 16px;
  color: var(--ink);
  text-decoration: none;
}
.doc b {
  font-size: 18px;
}
.doc p {
  font-size: 15px;
  color: var(--muted);
}
.doc a {
  min-height: 44px;
  display: flex;
  align-items: center;
}
a.doc:hover b {
  color: var(--link);
  text-decoration: underline;
}

/* ---------- live product demo */
.demo {
  min-width: 0;
  color: var(--ink);
}
.demo figcaption {
  font: 600 12px/1.5 var(--mono);
  letter-spacing: 0.09em;
  text-transform: uppercase;
  margin-bottom: 12px;
  opacity: 0.8;
}
.screen h2,
.screen h3 {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
}
.win {
  position: relative;
  overflow: hidden;
  background: #fff;
  border: 1px solid #bacad2;
  border-radius: 16px;
  box-shadow: var(--shadow);
  aspect-ratio: 1160 / 760;
}
.dark .win {
  border-color: #3b3536;
  box-shadow: 0 24px 60px #0008;
}
.win-bar {
  height: 34px;
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 0 14px;
  background: #eef3f6;
  border-bottom: 1px solid #d6e1e6;
}
.win-bar i {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: #c6d1d6;
}
.win > img {
  display: block;
  width: 100%;
}
.chip {
  position: absolute;
  left: 16px;
  bottom: 16px;
  max-width: calc(100% - 32px);
  padding: 10px 14px;
  background: #fffffff2;
  border: 1px solid var(--line);
  border-left: 4px solid var(--blue);
  border-radius: 8px;
  box-shadow: var(--shadow);
  font: 600 14px/1.45 var(--mono);
}
.chip p + p {
  margin-top: 2px;
  color: var(--link);
}
/* drawn artwork for frames without a screenshot */
.art {
  position: absolute;
  inset: 34px 0 0;
  display: grid;
  place-items: center;
  background:
    repeating-linear-gradient(0deg, transparent 0 23px, #ccdae666 24px),
    repeating-linear-gradient(90deg, transparent 0 23px, #ccdae666 24px),
    #f4f9fb;
}
.art.over {
  background: #23201f40;
  backdrop-filter: blur(1px);
}
.sheet {
  width: 58%;
  padding: 18px;
  background: #fff;
  border: 1px solid #94adc0;
  border-radius: 8px;
  box-shadow: 6px 6px 0 #d2eae4;
  display: grid;
  gap: 8px;
  grid-template-columns: 1fr auto;
  margin-bottom: 15%;
}
.sheet b {
  grid-column: 1 / -1;
  height: 8px;
  width: 40%;
  background: var(--blue);
  border-radius: 4px;
}
.sheet i {
  grid-column: 1 / -1;
  height: 6px;
  background: #c9d8df;
  border-radius: 3px;
}
.sheet i:nth-of-type(2) {
  width: 80%;
}
.sheet i:nth-of-type(3) {
  width: 64%;
}
.sheet u {
  grid-column: 1 / -1;
  text-decoration: none;
  font: 13px var(--mono);
  color: #157a4a;
  border-top: 1px solid #e1eaee;
  padding-top: 4px;
}
.sheet u:last-child {
  color: #6b7f88;
}
.sheet.code {
  background: #1d1a1b;
  border-color: #3b3536;
}
.sheet.code i {
  background: #3fe88b99;
}
.sheet.code i:nth-of-type(odd) {
  background: #66b9f6aa;
  margin-left: 18px;
}
.sheet.contract em {
  grid-column: 1 / -1;
  justify-self: start;
  width: 46%;
  height: 22px;
  border: 2px dashed var(--blue);
  border-radius: 6px;
}
.route {
  display: flex;
  align-items: center;
  margin-bottom: 15%;
}
.route span {
  width: 46px;
  height: 46px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: #fff;
  border: 2px solid #0075a8;
  color: #00536c;
  font-weight: 700;
}
.route span + span {
  position: relative;
  margin-left: 32px;
}
.route span + span::before {
  content: "";
  position: absolute;
  right: 100%;
  width: 32px;
  border-top: 2px solid #0075a8;
}
.route .wait {
  border-style: dashed;
  color: #6b7f88;
}
.controls {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 4px;
  margin-top: 14px;
}
.controls button {
  min-height: 44px;
  padding: 8px 14px;
  border: 1px solid transparent;
  border-radius: 8px;
  background: transparent;
  color: inherit;
  font-size: 14px;
  font-weight: 600;
}
.dark .controls,
.dark .demo figcaption {
  color: #fff;
}
.controls button[aria-pressed="true"] {
  background: #e6f4ff;
  color: #163647;
  border-color: #b7dcf7;
}
.controls .pause {
  margin-left: auto;
  text-decoration: underline;
  font-weight: 400;
}
/* static layout (no JS / reduced motion): every frame in reading order */
.screen + .screen {
  margin-top: 16px;
}
.controls {
  display: none;
}
.live .controls {
  display: flex;
}
.live .screen {
  display: none;
}
.live .screen + .screen {
  margin-top: 0;
}
.live .screen.current {
  display: block;
}
.live .current .win {
  animation: enter 0.24s var(--ease);
}
.live .current .chip {
  animation: chip 0.48s var(--ease) 0.5s both;
}
.live .current .art.over {
  animation: fade 0.4s var(--ease) 0.3s both;
}
@keyframes enter {
  from {
    opacity: 0.8;
    transform: translateY(4px);
  }
}
@keyframes chip {
  from {
    opacity: 0;
    transform: translateY(8px);
  }
}
@keyframes fade {
  from {
    opacity: 0;
  }
}
.showcase .demo {
  max-width: 920px;
  margin-inline: auto;
}

/* product pages */
.bodycopy > p {
  font-size: 19px;
}
.points {
  margin-top: 24px;
  border-top: 1px solid var(--line);
}
.points li {
  padding: 16px 0;
  border-bottom: 1px solid var(--line);
}
.points h3 {
  margin-bottom: 6px;
}
.points p {
  font-size: 15px;
  color: var(--muted);
}
.bodycopy details {
  border-bottom: 1px solid var(--line);
}
.bodycopy details:first-child {
  border-top: 1px solid var(--line);
}
.bodycopy summary {
  list-style: none;
  min-height: 56px;
  display: flex;
  align-items: center;
  gap: 14px;
  font-size: 18px;
  font-weight: 600;
}
.bodycopy summary::-webkit-details-marker {
  display: none;
}
.bodycopy summary::after {
  content: "+";
  margin-left: auto;
  font-size: 22px;
  font-weight: 400;
  color: var(--link);
}
.bodycopy details[open] summary::after {
  content: "–";
}
.bodycopy summary:hover {
  color: var(--link);
}
.bodycopy details > p {
  padding: 0 0 16px 42px;
}
.n {
  width: 28px;
  height: 28px;
  flex: none;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: #e6f4ff;
  color: var(--link);
  font: 600 13px var(--mono);
}
.flow {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 8px;
}
.flow li {
  padding: 6px 2px;
  border-bottom: 3px solid var(--green);
  font-size: 15px;
  font-weight: 600;
}
.flow li:not(:last-child)::after {
  content: " →";
  color: var(--link);
}
.cards {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin-top: 16px;
}
.cards.two {
  grid-template-columns: 1fr 1fr;
}
.cards li {
  padding: 24px;
  background: #fff;
  border: 1px solid var(--line);
  border-top: 3px solid var(--blue);
  border-radius: 16px;
  transition: transform 0.2s var(--ease), box-shadow 0.2s;
}
.cards li:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow);
}
.cards h3 {
  margin-bottom: 12px;
}
.cards p,
.grid8 li {
  font-size: 15px;
}
#soon .note {
  margin-top: 20px;
}
.grid8 {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  margin-top: 16px;
  background: var(--line);
  border: 1px solid var(--line);
  border-radius: 16px;
  overflow: hidden;
}
.grid8 li {
  padding: 24px;
  background: #fff;
}
.grid8 li::before {
  content: "";
  display: block;
  width: 24px;
  height: 4px;
  margin-bottom: 14px;
  border-radius: 2px;
  background: var(--green);
}
.contacts {
  display: grid;
  gap: 8px;
  margin-top: 28px;
}
.contacts div {
  display: grid;
  grid-template-columns: 96px 1fr;
  align-items: center;
  border-top: 1px solid var(--line);
  padding-top: 8px;
}
.dark .contacts div {
  border-color: #3b3536;
}
.contacts dt {
  font: 600 12px var(--mono);
  letter-spacing: 0.09em;
  text-transform: uppercase;
}
.contacts a {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
}

/* inner pages: Services (with Projects), AI Dark Factory */
section[id],
details[id],
h2[id],
#directions,
.roles li {
  scroll-margin-top: 88px;
}
.article > *,
.pair > *,
.prj > * {
  min-width: 0;
}
.article,
.pair,
.prj {
  overflow-wrap: break-word;
}
.links {
  display: grid;
  justify-items: start;
  gap: 8px;
}
.links a:not(.more) {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
}
.svc details > p {
  padding-left: 0;
}
.intro {
  margin-bottom: 40px;
}
.tag {
  margin-bottom: 8px;
  font: 600 12px/1.5 var(--mono);
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: var(--muted);
}
.prj {
  display: grid;
  grid-template-columns: 5fr 6fr;
  gap: 8px 8%;
  padding-block: 24px;
  border-top: 1px solid var(--line);
}
.prj .note {
  margin-top: 8px;
}
.prj-all {
  max-width: none;
  padding-top: 16px;
  border-top: 1px solid var(--line);
}
.prj-all .more {
  color: var(--link);
  text-decoration: underline;
}
.band.clientband {
  padding: 88px 0;
}
.vgroup + .vgroup {
  margin-top: 40px;
}
.vgroup h3 {
  margin-bottom: 12px;
}
.vlink {
  margin-top: 32px;
}
.vendors li {
  display: grid;
  grid-template-columns: 8.5em 1fr;
  gap: 2px 16px;
  padding: 12px 0;
  border-top: 1px solid var(--line);
}
.vendors .tag {
  margin: 0;
  align-self: center;
}
.vendors span:last-child {
  grid-column: 2;
  font-size: 15px;
  color: var(--muted);
}
.model {
  display: grid;
  gap: 8px;
}
.model > li {
  display: grid;
  gap: 4px;
  padding: 16px 20px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 16px;
}
.model b {
  font: 600 12px/1.5 var(--mono);
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: var(--muted);
}
.model span {
  font-size: 18px;
  font-weight: 600;
}
.model .team {
  background: var(--ink);
  border-color: var(--ink);
  color: #fff;
}
.model .team b {
  color: #c9d6dc;
}
.model .flow li:not(:last-child)::after {
  color: var(--green);
}
.roles-nav {
  margin: 0 0 16px;
}
.roles-nav.on {
  display: flex;
}
.roles-nav button {
  min-width: 44px;
}
.roles {
  display: grid;
  gap: 8px;
}
.roles li {
  padding: 12px 12px 14px;
  border-bottom: 3px solid var(--green);
  border-radius: 8px 8px 0 0;
}
.roles li.current {
  background: #3b3536;
}
.roles strong {
  font-size: 18px;
}
.roles li.human {
  display: grid;
  gap: 4px;
  border-bottom-color: #c9d6dc;
}
.roles li.human b {
  font: 600 12px/1.5 var(--mono);
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: #c9d6dc;
}
.roles li.human span {
  font-size: 18px;
  font-weight: 600;
}
.checks {
  margin-top: 8px;
  border-top: 1px solid var(--line);
}
.checks li {
  padding: 16px 0;
  border-bottom: 1px solid var(--line);
}

/* inner pages: 2024 archive, About */
.prj h2 {
  margin: 0;
  font-size: 22px;
  line-height: 1.2;
  font-weight: 600;
  letter-spacing: -0.02em;
}
.ways {
  padding-top: 0;
}
.docs.certs,
.docs.two {
  gap: 16px;
}
.docs.certs {
  grid-template-columns: repeat(3, 1fr);
}
.docs.two {
  grid-template-columns: 1fr 1fr;
}
.docs .doc {
  border-color: var(--line);
}
.doc.cert {
  align-content: start;
  gap: 16px;
  padding: 16px;
}
.cert a {
  display: grid;
  gap: 16px;
  color: var(--ink);
  text-decoration: none;
}
.cert a:hover h3 {
  color: var(--link);
  text-decoration: underline;
}
.cert img {
  display: block;
  width: 100%;
  height: 288px;
  object-fit: contain;
  background: #fff;
}
@media (max-width: 700px) {
  .prj {
    grid-template-columns: 1fr;
  }
  .docs.certs,
  .docs.two {
    grid-template-columns: 1fr;
  }
  .cert img {
    height: 240px;
  }
  .band.clientband {
    padding: 56px 0;
  }
  .vendors li {
    grid-template-columns: 1fr;
  }
  .vendors span:last-child {
    grid-column: auto;
  }
}

/* hardware.html: intro figure, catalog, manufacturers, flow, cases, quote */
.hw-intro {
  background: var(--paper);
}
.hw-intro .wrap,
.hw-catalog,
.hw-flow,
.hw-cases {
  display: grid;
  gap: 16px;
}
.hw-intro .wrap {
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  align-items: center;
  gap: 40px;
}
.hw-intro h1 {
  margin: 0;
  font-size: clamp(40px, 5vw, 72px);
  line-height: 1.02;
  letter-spacing: -0.05em;
}
.hw-intro .lead {
  margin: 24px 0;
  font-size: clamp(18px, 2vw, 24px);
}
.hw-figure {
  display: block;
  width: 100%;
  height: auto;
}
.hw-signal {
  opacity: 0;
  animation: hw-transmit 1.6s ease-out 2;
}
@keyframes hw-transmit {
  0% {
    transform: translateX(0);
    opacity: 0;
  }
  20%,
  85% {
    opacity: 1;
  }
  100% {
    transform: translateX(64px);
    opacity: 0;
  }
}
.hw-catalog {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}
.hw-catalog li {
  min-width: 0;
  padding: 24px;
  border-top: 2px solid var(--ink);
  background: var(--paper);
}
.hw-catalog li:last-child {
  grid-column: span 2;
}
.hw-catalog svg {
  display: block;
  margin-bottom: 24px;
  color: var(--link);
}
.hw-catalog h3,
.hw-cases h3 {
  margin: 0;
  font-size: 22px;
  line-height: 1.2;
}
.hw-catalog p,
.hw-cases p {
  margin: 8px 0 0;
  font-size: 16px;
  line-height: 1.5;
}
.logos.hw-logos {
  grid-template-columns: repeat(4, 1fr);
}
.hw-logos img {
  max-width: min(100%, 146px);
  max-height: 40px;
  width: auto;
  height: auto;
  object-fit: contain;
}
.hw-flow {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0;
  counter-reset: hw-step;
}
.hw-flow li {
  position: relative;
  isolation: isolate;
  padding-right: 16px;
  font-weight: 600;
  counter-increment: hw-step;
}
.hw-flow li::before {
  content: counter(hw-step, decimal-leading-zero);
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  margin-bottom: 16px;
  border-radius: 50%;
  background: var(--ink);
  color: #fff;
  font: 16px var(--mono);
}
.hw-flow li:not(:last-child)::after {
  content: "";
  position: absolute;
  z-index: -1;
  top: 19px;
  left: 38px;
  right: 0;
  height: 2px;
  background: var(--link);
}
.hw-cases {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}
.hw-cases .prj {
  display: flex;
  flex-direction: column;
  align-items: start;
  gap: 16px;
  padding: 32px;
  border: 1px solid var(--line);
  border-top: 4px solid var(--blue);
}
.hw-cases .more {
  margin-top: auto;
  text-decoration: underline;
}
.hw-quote {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.hw-quote h2,
.hw-quote .btn {
  margin: 0;
}
.hw-intro .btn,
.hw-quote .btn,
.hw-cases .more {
  min-height: 44px;
}
@media (max-width: 900px) {
  .hw-catalog {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
@media (max-width: 700px) {
  .band.hw-intro {
    padding: 32px 0;
  }
  .hw-intro .wrap,
  .hw-catalog,
  .hw-flow,
  .hw-cases {
    grid-template-columns: minmax(0, 1fr);
  }
  .hw-intro .wrap {
    gap: 24px;
  }
  .hw-intro .lead {
    margin: 16px 0;
  }
  .hw-catalog {
    gap: 8px;
  }
  .hw-catalog li {
    display: grid;
    grid-template-columns: 32px minmax(0, 1fr);
    column-gap: 16px;
    align-items: center;
    padding: 16px;
  }
  .hw-catalog li:last-child {
    grid-column: auto;
  }
  .hw-catalog svg {
    margin: 0;
  }
  .hw-catalog h3 {
    font-size: 18px;
  }
  .hw-catalog p {
    grid-column: 2;
  }
  .logos.hw-logos {
    grid-template-columns: repeat(2, 1fr);
    gap: 20px 16px;
  }
  .hw-logos img {
    max-height: 30px;
  }
  .hw-flow li {
    display: flex;
    align-items: flex-start;
    gap: 16px;
    min-height: 64px;
    padding: 8px 0;
    line-height: 40px;
  }
  .hw-flow li::before {
    flex: none;
    margin: 0;
  }
  .hw-flow li:not(:last-child)::after {
    top: 46px;
    left: 19px;
    bottom: -8px;
    width: 2px;
    height: auto;
  }
  .hw-cases .prj {
    padding: 24px;
  }
  .hw-quote {
    flex-direction: column;
    align-items: flex-start;
  }
}
@media (prefers-reduced-motion: reduce) {
  .hw-signal {
    animation: none;
  }
}

/* home: Hardware & Infrastructure band, decorative rack drawing with one cable pass */
.hw-rack {
  pointer-events: none;
}
.hw-rack svg {
  display: block;
  width: 100%;
  height: auto;
  overflow: visible;
}
.hw-box {
  fill: #fff;
  stroke: var(--ink);
  stroke-width: 2;
}
path.hw-box {
  fill: none;
}
.hw-wire,
.hw-trace {
  fill: none;
  stroke: var(--blue);
  stroke-width: 2;
}
.hw-led {
  fill: var(--green);
  stroke: var(--ink);
  stroke-width: 1.5;
}
.hw-trace {
  stroke-width: 5;
  stroke-dasharray: 14 200;
  stroke-dashoffset: 14;
  opacity: 0; /* without JS / reduced motion: only the static drawing */
}
.hw-rack.go .hw-trace {
  animation: hw-pass 1.6s ease-in-out;
}
.hw-rack.go .hw-trace-2 {
  animation-delay: 1.8s;
}
@keyframes hw-pass {
  from {
    opacity: 1;
    stroke-dashoffset: 14;
  }
  to {
    opacity: 1;
    stroke-dashoffset: -100;
  }
}
.no-motion .hw-trace {
  display: none;
}

/* form (Netlify Forms) */
.form {
  display: grid;
  gap: 4px;
  padding: 32px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 16px;
  box-shadow: var(--shadow);
}
.form .row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}
@media (min-width: 701px) {
  .form .row > p + p {
    margin-top: 0;
  }
}
.form label {
  display: block;
  font-size: 14px;
  font-weight: 600;
}
.form input,
.form textarea {
  width: 100%;
  margin: 4px 0 12px;
  padding: 12px;
  border: 1px solid #829399;
  border-radius: 8px;
  background: #fff;
}
.form input:enabled:hover,
.form textarea:enabled:hover {
  border-color: var(--ink);
}
.form [aria-invalid="true"] {
  padding: 11px;
  border: 2px solid var(--ink);
  margin-bottom: 4px;
}
.form .err {
  display: block;
  margin-bottom: 12px;
  font-size: 14px;
  color: #a12b32;
}
.form .btn {
  justify-self: start;
}
.form .note {
  font-size: 14px;
  margin-top: 12px;
}
.form .note a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
}
.form .hp {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}
.sr {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

/* cookie consent (markup from assets/js/analytics.js) */
.devx-consent {
  position: fixed;
  z-index: 70;
  left: calc(16px + env(safe-area-inset-left, 0px));
  right: calc(16px + env(safe-area-inset-right, 0px));
  bottom: calc(16px + env(safe-area-inset-bottom, 0px));
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 16px;
  padding: 16px;
  color: var(--ink);
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 16px;
  box-shadow: var(--shadow);
  font-size: 14px;
  line-height: 1.45;
  opacity: 0;
  transition: opacity 0.2s;
}
.devx-consent--show {
  opacity: 1;
}
.devx-consent--hide {
  opacity: 0;
}
.devx-consent[hidden] {
  display: none;
}
.devx-consent__text {
  flex: 1 1 100%;
  margin: 0;
}
.devx-consent__link {
  display: inline-block;
  min-width: 44px;
  padding-block: 13px;
  margin-block: -13px;
  font-weight: 700;
}
.devx-consent__actions {
  display: flex;
  flex: 1 1 100%;
  gap: 8px;
}
/* Decline and Accept: the same weight (white, ink border) on both surfaces */
.devx-consent__btn {
  flex: 1 1 0;
  min-height: 44px;
  padding: 8px 16px;
  border: 1px solid var(--ink);
  border-radius: 24px;
  color: var(--ink);
  background: #fff;
  font-weight: 600;
}
.devx-consent__btn:hover {
  background: var(--paper);
}
.devx-consent__btn:active {
  background: var(--mint);
}
@media (min-width: 768px) {
  .devx-consent {
    left: auto;
    right: calc(24px + env(safe-area-inset-right, 0px));
    bottom: calc(24px + env(safe-area-inset-bottom, 0px));
    width: 560px;
    padding: 24px;
  }
  .devx-consent__btn {
    flex: 0 0 auto;
  }
}

/* cookie settings window (assets/js/analytics.js) */
.devx-settings {
  width: min(560px, calc(100% - 32px));
  max-width: none;
  max-height: calc(100vh - 32px);
  max-height: calc(100dvh - 32px);
  overflow-y: auto;
  padding: 24px;
  color: var(--ink);
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 16px;
  box-shadow: var(--shadow);
  font-size: 15px;
  line-height: 1.5;
}
.devx-settings::backdrop {
  background: #231f2066;
}
.devx-settings h2 {
  margin: 0 48px 16px 0;
  font-size: 28px;
  line-height: 1.15;
  letter-spacing: -0.03em;
}
.devx-settings__close {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 1px solid var(--ink);
  border-radius: 50%;
  color: var(--ink);
  background: #fff;
  font-size: 24px;
  line-height: 1;
}
.devx-settings__close:hover {
  background: var(--paper);
}
.devx-settings__close:active {
  background: var(--mint);
}
.devx-settings .devx-consent__actions {
  margin-top: 16px;
}
@media (max-width: 767px) {
  .devx-settings {
    padding: 16px;
  }
  .devx-settings__close {
    top: 8px;
    right: 8px;
  }
}

/* inner pages: Contact, Privacy, 404 */
.page-top {
  padding-bottom: 56px;
}
.page-top .lead {
  margin-bottom: 0;
}
.page-top .note {
  margin-top: 16px;
}
.contact .contact-info {
  order: -1; /* wide screen: address left, form right; phone: the form first, as in the DOM */
}
.form textarea {
  resize: vertical;
}
.form .send-err {
  margin-top: 12px;
  font-size: 14px;
  color: #a12b32;
}
.form .send-err:empty {
  display: none;
}
.sent {
  padding: 24px;
  border-radius: 16px;
}
.sent h3 {
  margin-bottom: 8px;
}
.legal {
  display: grid;
  grid-template-columns: 264px minmax(0, 1fr);
  gap: 64px;
  align-items: start;
}
.toc {
  position: sticky;
  top: 24px;
}
.toc summary {
  min-height: 44px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font: 600 12px/1.5 var(--mono);
  letter-spacing: 0.09em;
  text-transform: uppercase;
  list-style: none;
}
.toc summary::-webkit-details-marker {
  display: none;
}
.toc summary::after {
  content: "+";
  font: 400 22px/1 -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
  color: var(--link);
}
.toc details[open] summary::after {
  content: "−";
}
.toc ul {
  border-top: 1px solid var(--line);
}
.toc a {
  min-height: 44px;
  display: flex;
  align-items: center;
  padding: 6px 0;
  border-bottom: 1px solid var(--line);
  color: var(--ink);
  font-size: 15px;
  line-height: 1.35;
  text-decoration: none;
}
.toc a:hover {
  color: var(--link);
  text-decoration: underline;
}
.legal-text {
  max-width: 62ch;
  min-width: 0;
}
.legal-text > * + * {
  margin-top: 16px;
}
.legal-text h2 {
  margin: 48px 0 0;
  font-size: 32px;
  line-height: 1.15;
  letter-spacing: -0.03em;
}
.legal-text h2:first-child {
  margin-top: 0;
}
.legal-text h3 {
  margin-top: 32px;
}
.legal-text p,
.legal-text li {
  line-height: 1.65;
}
.legal-text ul {
  padding-left: 24px;
  list-style: disc;
}
.legal-text li + li {
  margin-top: 8px;
}
.legal-text table {
  width: 100%;
  border-collapse: collapse;
  font-size: 15px;
}
.legal-text th,
.legal-text td {
  padding: 8px 12px 8px 0;
  border-bottom: 1px solid var(--line);
  text-align: left;
  vertical-align: top;
}
.legal-text code {
  font: 14px var(--mono);
  overflow-wrap: anywhere;
}
.legal-text a {
  overflow-wrap: anywhere;
}
.legal__btn {
  padding: 0;
  border: 0;
  background: none;
  color: var(--link);
  text-decoration: underline;
  text-underline-offset: 4px;
}
.legal__nowrap {
  white-space: nowrap;
}
.nf-code {
  margin-bottom: 8px;
  font-size: 120px;
  font-weight: 550;
  line-height: 1;
  letter-spacing: -0.055em;
  color: var(--blue);
}
.nf .lead {
  margin-bottom: 32px;
}
@media (max-width: 700px) {
  .contact .contact-info {
    order: 0;
  }
  .legal {
    grid-template-columns: 1fr;
    gap: 32px;
  }
  .toc {
    position: static;
  }
  .legal-text h2 {
    margin-top: 32px;
  }
  .nf-code {
    font-size: 80px;
  }
}

/* ---------- footer */
.ftr {
  padding: 56px 0 32px;
  border-top: 1px solid var(--line);
  font-size: 15px;
}
.ftr__in {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 32px;
}
.ftr__in * {
  min-width: 0;
}
.ftr__brand img {
  width: 107px;
  display: block;
  margin-bottom: 12px;
}
.ftr__brand p + p {
  margin-top: 4px;
}
.ftr h2 {
  font-size: 15px;
  letter-spacing: 0;
  margin-bottom: 8px;
}
.ftr a {
  min-height: 44px;
  min-width: 44px;
  display: inline-flex;
  align-items: center;
  color: var(--ink);
  text-decoration: none;
  overflow-wrap: anywhere;
}
.ftr a:hover {
  color: var(--link);
  text-decoration: underline;
}
.ftr address {
  font-style: normal;
  display: grid;
}
.ftr__bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 24px;
  margin-top: 32px;
  padding-top: 16px;
  border-top: 1px solid var(--line);
}
.ftr__bar button {
  min-height: 44px;
  padding: 0;
  border: 0;
  background: none;
  opacity: 0.65;
}
.ftr__bar p {
  margin-left: auto;
  font-size: 13px;
}

/* ---------- ≤1000: menu panel */
@media (max-width: 1000px) {
  .mobile {
    display: block;
    order: 1; /* in the DOM before the menu: Tab goes from Menu into the open panel */
  }
  .lang {
    margin-left: auto;
  }
  .bar > .btn-sm {
    display: none;
  }
  #topics {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    max-height: calc(100vh - 64px);
    overflow-y: auto;
    padding: 8px 20px 20px;
    background: #fff;
    border-bottom: 1px solid var(--line);
    box-shadow: var(--shadow);
  }
  #topics.open {
    display: block;
    animation: drop 0.2s var(--ease);
  }
  #topics details {
    border-bottom: 1px solid var(--line);
  }
  #topics .topic {
    min-height: 52px;
    padding: 0;
    font-size: 17px;
    border-bottom: 1px solid var(--line);
    border-radius: 0;
  }
  #topics summary {
    min-height: 52px;
    padding: 0;
    justify-content: space-between;
    font-size: 17px;
  }
  .drop {
    position: static;
    width: auto;
    padding: 0 0 12px;
    border: 0;
    box-shadow: none;
    animation: none;
  }
  .drop a {
    padding-left: 12px;
  }
}

/* ---------- ≤700: phone */
@media (max-width: 700px) {
  .wrap {
    width: calc(100% - 40px);
  }
  .hdr {
    min-height: 65px;
  }
  .bar {
    min-height: 64px;
    gap: 8px;
  }
  h1 {
    font-size: 46px;
    line-height: 1.04;
  }
  h2 {
    font-size: 36px;
  }
  .lead {
    font-size: 19px;
  }
  .hero-in {
    padding: 56px 0 96px;
  }
  .wave::after {
    background: linear-gradient(180deg, #f6fbfff5 0%, #f6fbfff0 46%, #f6fbffb0 72%, transparent);
  }
  .band {
    padding: 56px 0;
  }
  .pair,
  .article {
    grid-template-columns: 1fr;
    gap: 32px;
  }
  .clientband {
    padding: 32px 0;
  }
  .logos {
    grid-template-columns: repeat(3, 1fr);
    gap: 20px 16px;
  }
  .logos img {
    max-height: 30px;
    width: auto;
  }
  .logos .word {
    font-size: 13px;
  }
  .stats {
    grid-template-columns: 1fr 1fr;
    gap: 24px 12px;
  }
  .stats strong {
    font-size: 40px;
  }
  .win-bar {
    height: 24px;
    padding: 0 10px;
  }
  .win-bar i {
    width: 7px;
    height: 7px;
  }
  .art {
    inset: 24px 0 0;
  }
  .chip {
    left: 8px;
    bottom: 8px;
    max-width: calc(100% - 16px);
    padding: 6px 10px;
    font-size: 12px;
  }
  .controls button {
    padding: 8px 10px;
    font-size: 13px;
  }
  .cards,
  .cards.two,
  .grid8 {
    grid-template-columns: 1fr;
  }
  .form {
    padding: 20px;
  }
  .form .row {
    grid-template-columns: 1fr;
    gap: 0;
  }
  .ftr__in {
    grid-template-columns: 1fr 1fr;
  }
  .ftr__brand {
    grid-column: 1 / -1;
  }
  .ftr__bar p {
    margin-left: 0;
    width: 100%;
  }
}
@media (min-width: 701px) and (max-width: 1100px) {
  .cards,
  .grid8 {
    grid-template-columns: 1fr 1fr;
  }
}

/* ---------- reduced motion: no movement, static background, all frames */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
    scroll-behavior: auto !important;
  }
  .wave {
    background: #eaf7ff url(../img/wave.svg) center / 100% 100% no-repeat;
  }
  .wave canvas,
  .wave-switch {
    display: none;
  }
}
