/* ==========================================================================
   Smartkip — design tokens (white & light blue)
   ========================================================================== */
:root {
  --bg: #fbf5e8;
  --dots: radial-gradient(rgba(168, 107, 22, .14) 1px, transparent 1.3px);
  --gold-glow: rgba(227, 174, 69, .26);
  --bg-soft: #f5ebd6;
  --bg-sky: #f1e3c3;
  --surface: #ffffff;
  --surface-2: #fdf8ee;
  --line: rgba(48, 36, 14, .09);
  --line-2: rgba(48, 36, 14, .15);
  --text: #211a10;
  --body: #3d3427;
  --muted: #6f634f;
  --dim: #a39679;

  --blue-50: #fbf6ea;
  --blue-100: #f6ebd2;
  --blue-200: #ecd9ac;
  --blue-300: #dfbd78;
  --blue-400: #d2a24a;
  --blue-500: #b8862b;
  --blue-600: #9a6d1c;
  --blue-700: #7a5415;
  --grad: linear-gradient(135deg, #e3b85a 0%, #b8862b 50%, #8a5f14 100%);
  --grad-text: linear-gradient(100deg, #8a5f14 0%, #c8962f 40%, #e0b250 62%, #9a6d1c 100%);

  --ok: #16a36d;
  --warn: #e5484d;
  --shadow-sm: 0 1px 2px rgba(48, 36, 14, .05), 0 6px 18px -8px rgba(48, 36, 14, .1);
  --shadow: 0 26px 60px -30px rgba(122, 84, 21, .32);
  --shadow-lg: 0 50px 120px -50px rgba(122, 84, 21, .38);

  --radius: 22px;
  --ease: cubic-bezier(.22, 1, .36, 1);
  --ease-io: cubic-bezier(.76, 0, .24, 1);
  --container: 1240px;
  --pad: clamp(16px, 4vw, 40px);
  --header-h: 76px;

  --font-display: "Unbounded", "Manrope", system-ui, sans-serif;
  --font: "Manrope", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --mono: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
}

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

html {
  background: var(--bg);
  scroll-behavior: smooth;
  scroll-padding-top: 90px;
  -webkit-text-size-adjust: 100%;
}
html.is-loading, html.is-menu-open { overflow: hidden; }

body {
  margin: 0;
  min-width: 320px;
  background: var(--dots) 0 0 / 22px 22px, var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: clip;
}

::selection { background: rgba(184, 134, 43, .2); color: var(--text); }

img, svg { display: block; max-width: 100%; }
a { color: inherit; }
button { font: inherit; }
h1, h2, h3, h4 { margin: 0; font-weight: 500; }
p { margin: 0; text-wrap: pretty; }

:focus-visible { outline: 2px solid var(--blue-500); outline-offset: 3px; border-radius: 6px; }

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

.container {
  width: 100%;
  max-width: calc(var(--container) + var(--pad) * 2);
  margin-inline: auto;
  padding-inline: var(--pad);
}

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

.lead {
  font-size: clamp(18px, 1.55vw, 22px);
  line-height: 1.5;
  font-weight: 500;
  color: var(--text);
  margin-bottom: 18px;
}

.h2 {
  font-family: var(--font-display);
  font-size: clamp(28px, 3.5vw, 50px);
  line-height: 1.1;
  letter-spacing: -.03em;
  font-weight: 500;
  color: var(--text);
  text-wrap: balance;
}
.h3 { font-family: var(--font-display); font-size: clamp(22px, 2.2vw, 30px); line-height: 1.2; letter-spacing: -.025em; font-weight: 500; }

.hero__title em, .h2 em, .page-hero__title em {
  font-style: normal;
  background: var(--grad-text);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 24px;
  font: 500 12px/1 var(--mono);
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--blue-600);
}
.eyebrow__n { display: inline-flex; align-items: center; gap: 12px; color: var(--dim); }
.eyebrow__n::after { content: ""; width: 28px; height: 1px; background: currentColor; opacity: .7; }
.eyebrow--dark { color: var(--blue-700); }

.chip {
  display: inline-flex;
  align-items: center;
  padding: 5px 10px;
  border: 1px solid var(--blue-200);
  border-radius: 999px;
  background: var(--blue-50);
  color: var(--blue-700);
  font: 700 12px/1.2 var(--font);
  text-decoration: none;
  white-space: nowrap;
}
.chip--lg { padding: 7px 14px; font-size: 13px; margin-bottom: 20px; transition: background-color .3s, border-color .3s; }
.chip--lg:hover { background: var(--blue-100); border-color: var(--blue-300); }

/* ==========================================================================
   Split-text & reveal
   ========================================================================== */
.w {
  display: inline-block;
  overflow: hidden;
  vertical-align: bottom;
  padding: .06em .04em .14em;
  margin: -.06em -.04em -.14em;
}
.wi {
  display: inline-block;
  transform: translateY(112%) rotate(5deg);
  transform-origin: 0 100%;
  transition: transform 1.15s var(--ease);
  transition-delay: calc(var(--i, 0) * 55ms);
}
[data-split].in .wi { transform: none; }

.is-split em { background: none; -webkit-background-clip: border-box; background-clip: border-box; color: inherit; }
.is-split em .wi {
  background: var(--grad-text);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.js [data-reveal] {
  opacity: 0;
  transform: translateY(34px);
  transition: opacity 1s var(--ease), transform 1.2s var(--ease);
  transition-delay: var(--delay, 0ms);
}
.js [data-reveal].in { opacity: 1; transform: none; }

.js [data-reveal-group] > * {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 1s var(--ease), transform 1.2s var(--ease), border-color .4s, box-shadow .5s var(--ease), background-color .4s;
  transition-delay: calc(var(--i, 0) * 90ms);
}
.js [data-reveal-group].in > * { opacity: 1; transform: none; }

/* language switch cross-fade */
main, .nav, .header__cta, .footer, .mnav__links { transition: opacity .28s ease, filter .28s ease; }
.is-switching main, .is-switching .nav, .is-switching .header__cta, .is-switching .footer, .is-switching .mnav__links {
  opacity: 0;
  filter: blur(4px);
}

/* ==========================================================================
   Buttons
   ========================================================================== */
.btn {
  --h: 48px;
  position: relative;
  isolation: isolate;
  overflow: hidden;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  height: var(--h);
  padding: 0 22px;
  border: 1px solid transparent;
  border-radius: 999px;
  font: 700 15px/1 var(--font);
  letter-spacing: .005em;
  text-decoration: none;
  white-space: nowrap;
  cursor: pointer;
  transition: transform .45s var(--ease), background-color .3s, border-color .3s, color .3s, box-shadow .45s var(--ease);
}
.btn--sm { --h: 40px; padding: 0 18px; font-size: 14px; }
.btn--lg { --h: 56px; padding: 0 28px; font-size: 15.5px; }
.btn--block { width: 100%; }
.btn__ico { width: 18px; height: 18px; flex: none; transition: transform .45s var(--ease); }
.btn:hover .btn__ico { transform: translateX(4px); }

.btn--primary {
  color: #fff;
  background: var(--grad);
  box-shadow: 0 14px 30px -14px rgba(154, 109, 28, .75), inset 0 1px 0 rgba(255, 255, 255, .35);
}
.btn--primary::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(110deg, transparent 30%, rgba(255, 255, 255, .45) 50%, transparent 70%);
  transform: translateX(-120%);
  transition: transform .9s var(--ease);
}
.btn--primary:hover { box-shadow: 0 20px 40px -16px rgba(154, 109, 28, .9), inset 0 1px 0 rgba(255, 255, 255, .35); }
.btn--primary:hover::before { transform: translateX(120%); }

.btn--ghost {
  color: var(--text);
  border-color: var(--line-2);
  background: rgba(255, 255, 255, .7);
  backdrop-filter: blur(8px);
}
.btn--ghost:hover { border-color: var(--blue-300); color: var(--blue-600); background: #fff; }

.btn--dark { color: #fff; background: var(--text); }
.btn--dark:hover { background: #0f0b05; box-shadow: 0 16px 36px -18px rgba(40, 30, 12, .7); }

/* ==========================================================================
   Loader
   ========================================================================== */
.loader { display: none; }
.js .loader {
  --ls: 1;
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: grid;
  place-items: center;
  background: var(--bg);
  clip-path: inset(0 0 0 0);
  transition: clip-path 1.1s var(--ease-io);
}
.js .loader.is-quick { --ls: .45; }
.js .loader.is-done { clip-path: inset(0 0 100% 0); pointer-events: none; }
.js .loader.is-gone { display: none; }

.loader__grid {
  position: absolute;
  inset: 0;
  background-image: linear-gradient(rgba(184, 134, 43, .1) 1px, transparent 1px), linear-gradient(90deg, rgba(184, 134, 43, .1) 1px, transparent 1px);
  background-size: 56px 56px;
  background-position: center;
  mask-image: radial-gradient(circle at 50% 50%, #000 0, transparent 45%);
  -webkit-mask-image: radial-gradient(circle at 50% 50%, #000 0, transparent 45%);
}
.loader::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 2px;
  background: var(--grad);
  opacity: 0;
  transition: opacity .3s;
}
.loader.is-done::after { opacity: 1; }

.loader__inner {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  width: min(340px, 74vw);
  transition: transform 1.1s var(--ease-io), opacity .7s ease;
}
.loader.is-done .loader__inner { transform: translateY(-80px); opacity: 0; }

.loader__mark {
  width: 128px;
  height: 128px;
  overflow: visible;
  animation: lm-turn calc(1.8s * var(--ls)) var(--ease) both;
}
.lm-outline > * {
  stroke-dasharray: 1;
  stroke-dashoffset: 1;
  animation: draw calc(1.05s * var(--ls)) var(--ease) forwards, fade-out calc(.5s * var(--ls)) ease calc(1.2s * var(--ls)) forwards;
}
.lm-outline circle { animation-delay: calc(.25s * var(--ls)), calc(1.2s * var(--ls)); }
.lm-fill { opacity: 0; animation: fade-in calc(.7s * var(--ls)) ease calc(.75s * var(--ls)) forwards; }
.lm-cycle, .lm-heads { transform-origin: 100px 100px; animation: spin 9s linear calc(2s * var(--ls)) infinite; }
.lm-cycle path {
  stroke-dasharray: 1;
  stroke-dashoffset: 1;
  animation: draw calc(.55s * var(--ls)) var(--ease) forwards;
}
.lm-cycle path:nth-child(1) { animation-delay: calc(.7s * var(--ls)); }
.lm-cycle path:nth-child(2) { animation-delay: calc(.82s * var(--ls)); }
.lm-cycle path:nth-child(3) { animation-delay: calc(.94s * var(--ls)); }
.lm-cycle path:nth-child(4) { animation-delay: calc(1.06s * var(--ls)); }
.lm-heads path {
  transform-box: fill-box;
  transform-origin: center;
  transform: scale(0);
  animation: pop calc(.5s * var(--ls)) var(--ease) forwards;
}
.lm-heads path:nth-child(1) { animation-delay: calc(1.1s * var(--ls)); }
.lm-heads path:nth-child(2) { animation-delay: calc(1.22s * var(--ls)); }
.lm-heads path:nth-child(3) { animation-delay: calc(1.34s * var(--ls)); }
.lm-heads path:nth-child(4) { animation-delay: calc(1.46s * var(--ls)); }
.lm-check > * {
  stroke-dasharray: 1;
  stroke-dashoffset: 1;
  animation: draw calc(.6s * var(--ls)) var(--ease) calc(1.25s * var(--ls)) forwards;
}
.lm-check path { animation-delay: calc(1.6s * var(--ls)); }

.loader__word { width: 100%; height: auto; margin-top: 34px; overflow: visible; }
.loader__word path {
  stroke-dasharray: 1;
  stroke-dashoffset: 1;
  animation: draw calc(.9s * var(--ls)) var(--ease) forwards;
}
.loader__word path:nth-child(1) { animation-delay: calc(.45s * var(--ls)); }
.loader__word path:nth-child(2) { animation-delay: calc(.53s * var(--ls)); }
.loader__word path:nth-child(3) { animation-delay: calc(.61s * var(--ls)); }
.loader__word path:nth-child(4) { animation-delay: calc(.69s * var(--ls)); }
.loader__word path:nth-child(5) { animation-delay: calc(.77s * var(--ls)); }
.loader__word path:nth-child(6) { animation-delay: calc(.85s * var(--ls)); }
.loader__word path:nth-child(7) { animation-delay: calc(.93s * var(--ls)); }
.loader__word path:nth-child(8) { animation-delay: calc(1.01s * var(--ls)); }

.loader__meta {
  display: flex;
  justify-content: space-between;
  width: 100%;
  margin-top: 30px;
  font: 500 10.5px/1 var(--mono);
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--dim);
  opacity: 0;
  animation: fade-in .6s ease .3s forwards;
}
.loader__pct { color: var(--blue-600); font-variant-numeric: tabular-nums; }
.loader__pct b { font-weight: 500; }
.loader__bar { width: 100%; height: 2px; margin-top: 12px; border-radius: 2px; background: var(--blue-100); overflow: hidden; }
.loader__bar i { display: block; height: 100%; background: var(--grad); transform-origin: left; transform: scaleX(0); }

/* ==========================================================================
   Header & navigation
   ========================================================================== */
.scroll-progress { position: fixed; top: 0; left: 0; right: 0; z-index: 101; height: 2px; pointer-events: none; }
.scroll-progress i { display: block; height: 100%; background: var(--grad); transform-origin: left; transform: scaleX(var(--p, 0)); }

.header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  height: var(--header-h);
  border-bottom: 1px solid transparent;
  transition: transform .6s var(--ease), background-color .4s, border-color .4s, box-shadow .4s;
}
.header.is-scrolled, .header.is-solid {
  background: rgba(255, 255, 255, .82);
  border-bottom-color: var(--line);
  backdrop-filter: blur(18px) saturate(160%);
  -webkit-backdrop-filter: blur(18px) saturate(160%);
}
.header.is-scrolled { box-shadow: 0 10px 30px -24px rgba(48, 36, 14, .35); }
.header.is-hidden { transform: translateY(-100%); }
.header__inner { height: 100%; display: flex; align-items: center; gap: 28px; }
.js .header__inner { opacity: 0; translate: 0 -14px; transition: opacity 1s var(--ease) .35s, translate 1.2s var(--ease) .35s; }
.is-ready .header__inner { opacity: 1; translate: 0 0; }
.js .page-article .header__inner, .js .page-articles .header__inner, .js .page-clients .header__inner { transition-delay: 0s; }

.brand { display: inline-flex; align-items: center; gap: 12px; flex: none; text-decoration: none; }
.brand__mark { width: 38px; height: 38px; transition: transform 1.2s var(--ease); }
.brand:hover .brand__mark { transform: rotate(90deg); }
.brand__word { width: 112px; height: 15.5px; }

.nav { display: flex; gap: 2px; margin-left: auto; }
.nav a {
  position: relative;
  padding: 10px 13px;
  font-size: 14.5px;
  font-weight: 600;
  color: var(--muted);
  text-decoration: none;
  white-space: nowrap;
  transition: color .3s;
}
.nav a::after {
  content: "";
  position: absolute;
  left: 13px; right: 13px; bottom: 4px;
  height: 1.5px;
  border-radius: 2px;
  background: var(--blue-500);
  transform: scaleX(0);
  transform-origin: right;
  transition: transform .5s var(--ease);
}
.nav a:hover, .nav a.is-active { color: var(--text); }
.nav a:hover::after, .nav a.is-active::after { transform: scaleX(1); transform-origin: left; }

.header__actions { display: flex; align-items: center; gap: 12px; }

.lang {
  position: relative;
  display: flex;
  padding: 3px;
  border: 1px solid var(--line-2);
  border-radius: 999px;
  background: #fff;
}
.lang a {
  position: relative;
  z-index: 1;
  width: 50px;
  padding: 7px 0;
  border-radius: 999px;
  color: var(--muted);
  font: 700 12.5px/1 var(--font);
  text-align: center;
  text-decoration: none;
  transition: color .4s;
}
.lang a:hover { color: var(--text); }
.lang a[aria-current="true"] { color: #fff; }
.lang__pill {
  position: absolute;
  top: 3px; bottom: 3px; left: 3px;
  width: 50px;
  border-radius: 999px;
  background: var(--grad);
  box-shadow: 0 6px 16px -8px rgba(154, 109, 28, .9);
  transition: transform .55s var(--ease);
}
.lang[data-active="kk"] .lang__pill { transform: translateX(50px); }

.burger {
  display: none;
  position: relative;
  width: 44px; height: 44px;
  padding: 0;
  border: 1px solid var(--line-2);
  border-radius: 50%;
  background: #fff;
  cursor: pointer;
}
.burger span {
  position: absolute;
  left: 13px; right: 13px;
  height: 1.5px;
  border-radius: 2px;
  background: var(--text);
  transition: transform .5s var(--ease), top .5s var(--ease);
}
.burger span:first-child { top: 17px; }
.burger span:last-child { top: 25px; }
.is-menu-open .burger span:first-child { top: 21px; transform: rotate(45deg); }
.is-menu-open .burger span:last-child { top: 21px; transform: rotate(-45deg); }

.mnav {
  position: fixed;
  inset: 0;
  z-index: 99;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: calc(var(--header-h) + 20px) var(--pad) calc(28px + env(safe-area-inset-bottom));
  background: rgba(255, 255, 255, .97);
  backdrop-filter: blur(20px);
  clip-path: circle(0 at calc(100% - 44px) 38px);
  visibility: hidden;
  transition: clip-path .8s var(--ease-io), visibility 0s linear .8s;
}
.is-menu-open .mnav { clip-path: circle(150% at calc(100% - 44px) 38px); visibility: visible; transition: clip-path .8s var(--ease-io), visibility 0s; }
.mnav__links { display: flex; flex-direction: column; }
.mnav__links a {
  display: flex;
  align-items: baseline;
  gap: 16px;
  padding: 14px 0;
  border-bottom: 1px solid var(--line);
  color: var(--text);
  text-decoration: none;
  font: 500 clamp(22px, 6.4vw, 32px)/1.15 var(--font-display);
  letter-spacing: -.02em;
  opacity: 0;
  transform: translateY(24px);
  transition: opacity .4s, transform .7s var(--ease);
}
.is-menu-open .mnav__links a { opacity: 1; transform: none; transition-delay: calc(.18s + var(--i, 0) * 50ms); }
.mnav__n { font: 500 11px/1 var(--mono); color: var(--blue-500); }
.mnav__foot { display: grid; gap: 6px; color: var(--muted); font-size: 14px; }
.mnav__phone { color: var(--text); text-decoration: none; font: 500 22px/1.2 var(--font-display); }

/* ==========================================================================
   Hero
   ========================================================================== */
.hero {
  position: relative;
  min-height: 100vh;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: calc(var(--header-h) + 56px) 0 120px;
  overflow: hidden;
  background: transparent;
}
.hero__bg { position: absolute; inset: 0; z-index: 0; pointer-events: none; }
.hero__grid-bg, .page-hero::before {
  position: absolute;
  inset: 0;
  background-image: linear-gradient(rgba(184, 134, 43, .09) 1px, transparent 1px), linear-gradient(90deg, rgba(184, 134, 43, .09) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: radial-gradient(ellipse 75% 70% at 62% 42%, #000 20%, transparent 75%);
  -webkit-mask-image: radial-gradient(ellipse 75% 70% at 62% 42%, #000 20%, transparent 75%);
}
.hero__grid-bg { display: none; }
.glow--a {
  width: 62vw; height: 62vw;
  left: 42%; top: -28%;
  background: radial-gradient(closest-side, rgba(240, 199, 102, .3), transparent);
  animation: drift 18s ease-in-out infinite alternate;
}
.glow--b {
  width: 48vw; height: 48vw;
  left: -18%; bottom: -34%;
  background: radial-gradient(closest-side, rgba(251, 226, 154, .45), transparent);
  animation: drift 24s ease-in-out infinite alternate-reverse;
}
.hero__gear {
  position: absolute;
  right: -16vw; top: 50%;
  width: min(80vw, 1040px);
  aspect-ratio: 1;
  margin-top: calc(min(80vw, 1040px) / -2);
  color: rgba(184, 134, 43, .08);
  animation: spin 140s linear infinite;
}
.hero__spot {
  position: absolute;
  inset: 0;
  background: radial-gradient(520px circle at var(--mx, 70%) var(--my, 35%), rgba(227, 174, 69, .1), transparent 65%), radial-gradient(38vw 30vw at 12% 8%, var(--gold-glow), transparent 70%), radial-gradient(30vw 26vw at 92% 70%, rgba(210, 162, 74, .1), transparent 70%);
}

.hero__layout {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(0, .92fr);
  gap: clamp(32px, 5vw, 80px);
  align-items: center;
}

.pulse-dot {
  position: relative;
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--blue-500);
  box-shadow: 0 0 10px rgba(184, 134, 43, .7);
}
.pulse-dot::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 50%;
  border: 1px solid var(--blue-500);
  animation: ping 2.2s var(--ease) infinite;
}

.hero__title {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(36px, 4.7vw, 70px);
  line-height: 1.04;
  letter-spacing: -.04em;
  margin-bottom: 28px;
  color: var(--text);
  text-wrap: balance;
}
.hero__lead {
  max-width: 56ch;
  margin-bottom: 38px;
  font-size: clamp(16px, 1.25vw, 18.5px);
  color: var(--muted);
}
.hero__ctas { display: flex; flex-wrap: wrap; gap: 14px; margin-bottom: 52px; }

.hero__pillars {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  border-top: 1px solid var(--line);
}
.hero__pillars li { display: flex; flex-direction: column; gap: 6px; padding: 18px 18px 0 0; }
.hero__pillars li + li { padding-left: 18px; border-left: 1px solid var(--line); }
.hero__pillars b { font: 500 14px/1.2 var(--font-display); color: var(--blue-600); letter-spacing: -.01em; }
.hero__pillars span { font-size: 13.5px; line-height: 1.45; color: var(--muted); }

.js .hero-in {
  opacity: 0;
  transform: translateY(26px);
  filter: blur(8px);
  transition: opacity 1.1s var(--ease), transform 1.3s var(--ease), filter 1.1s var(--ease);
  transition-delay: calc(var(--d, 0) * 90ms + 250ms);
}
.is-ready .hero-in { opacity: 1; transform: none; filter: none; }
.hero__title .wi { transition-delay: calc(var(--i, 0) * 60ms + 200ms); }

.scroll-cue {
  position: absolute;
  left: 50%; bottom: 26px;
  z-index: 1;
  translate: -50% 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  font: 500 10px/1 var(--mono);
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--dim);
  text-decoration: none;
}
.scroll-cue i { position: relative; width: 1px; height: 46px; background: var(--line-2); overflow: hidden; }
.scroll-cue i::after {
  content: "";
  position: absolute;
  left: 0; top: 0;
  width: 1px; height: 40%;
  background: var(--blue-500);
  animation: cue 2.2s var(--ease-io) infinite;
}

/* ---------- HMI panel ---------- */
.hero__visual { position: relative; perspective: 1600px; }
.hmi {
  position: relative;
  padding: 14px;
  border: 1px solid var(--line-2);
  border-radius: 24px;
  background: rgba(255, 255, 255, .92);
  box-shadow: 0 40px 90px -50px rgba(48, 36, 14, .22), 0 2px 6px rgba(48, 36, 14, .04);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  transform: rotateY(var(--ry, -7deg)) rotateX(var(--rx, 4deg));
  transform-style: preserve-3d;
  transition: transform .9s var(--ease);
}
.hmi::before {
  content: "";
  position: absolute;
  inset: -1px;
  padding: 1px;
  border-radius: inherit;
  background: linear-gradient(140deg, rgba(184, 134, 43, .22), transparent 32%, transparent 70%, rgba(184, 134, 43, .12));
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask: linear-gradient(#000 0 0) content-box exclude, linear-gradient(#000 0 0);
  pointer-events: none;
}
.hmi__top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 4px 6px 14px;
  margin-bottom: 12px;
  border-bottom: 1px solid var(--line);
  font: 500 10.5px/1 var(--mono);
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--muted);
  white-space: nowrap;
}
.hmi__id { display: flex; align-items: center; gap: 8px; color: var(--text); }
.hmi__id svg { width: 18px; height: 18px; }
.hmi__id em { margin-left: 6px; font-style: normal; color: var(--blue-600); }
.hmi__obj { overflow: hidden; text-overflow: ellipsis; }
.hmi__status { display: flex; align-items: center; gap: 8px; }
.hmi__status time { color: var(--text); font-variant-numeric: tabular-nums; margin-left: 4px; }

.led {
  display: inline-block;
  flex: none;
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--ok);
  box-shadow: 0 0 0 3px rgba(22, 163, 109, .14);
}
.led--run { background: var(--blue-500); box-shadow: 0 0 0 3px rgba(184, 134, 43, .16); animation: blink 1.6s ease-in-out infinite; }
.led--auto { background: #b5a58a; box-shadow: 0 0 0 3px rgba(181, 165, 138, .18); }

.hmi__grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  grid-template-areas: "chart chart" "gauge energy" "sys sys";
  gap: 10px;
}
.tile {
  position: relative;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #f8fafc;
}
.tile--chart { grid-area: chart; }
.tile--gauge { grid-area: gauge; }
.tile--energy { grid-area: energy; }
.tile--systems { grid-area: sys; background: #fff; }
.tile__head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 8px;
  margin-bottom: 10px;
  font: 500 10.5px/1.2 var(--mono);
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--muted);
}
.tile__val b { font: 500 22px/1 var(--font-display); letter-spacing: -.03em; color: var(--text); font-variant-numeric: tabular-nums; }
.tile__val small { margin-left: 3px; font-size: 11px; color: var(--muted); }

.chart { width: 100%; height: 118px; overflow: visible; }
.chart__grid line { stroke: rgba(48, 36, 14, .09); stroke-dasharray: 2 4; }
.chart__limit { stroke: rgba(229, 72, 77, .4); stroke-dasharray: 4 4; }
.chart__line {
  fill: none;
  stroke: var(--blue-500);
  stroke-width: 2;
  stroke-linejoin: round;
  vector-effect: non-scaling-stroke;
  filter: drop-shadow(0 4px 6px rgba(184, 134, 43, .35));
}
.chart__dot {
  position: absolute;
  width: 9px; height: 9px;
  margin: -4.5px 0 0 -4.5px;
  border: 2px solid #fff;
  border-radius: 50%;
  background: var(--blue-500);
  box-shadow: 0 0 0 1px var(--blue-500), 0 4px 10px rgba(184, 134, 43, .5);
}
.chart__dot::after {
  content: "";
  position: absolute;
  inset: -3px;
  border-radius: 50%;
  border: 1px solid var(--blue-500);
  animation: ping 1.8s var(--ease) infinite;
}
.chart__axis { display: flex; justify-content: space-between; margin-top: 6px; font: 10px/1 var(--mono); color: var(--dim); }

.gauge { width: 100%; max-width: 150px; margin: 4px auto 0; overflow: visible; }
.gauge__track { fill: none; stroke: #eddfc0; stroke-width: 8; stroke-linecap: round; }
.gauge__val {
  fill: none;
  stroke: url(#g-blue);
  stroke-width: 8;
  stroke-linecap: round;
  stroke-dasharray: 100;
  stroke-dashoffset: calc(100 - var(--v, 70));
  transition: stroke-dashoffset 1.2s var(--ease);
}
.tile__big { display: flex; align-items: baseline; justify-content: center; gap: 5px; color: var(--text); }
.tile__big b { font: 500 26px/1 var(--font-display); letter-spacing: -.03em; font-variant-numeric: tabular-nums; }
.tile__big small { font: 11px/1 var(--mono); color: var(--muted); }
.tile--gauge .tile__big { margin-top: -16px; }
.tile--energy .tile__big { justify-content: flex-start; margin-top: 8px; }

.bars { display: flex; align-items: flex-end; gap: 4px; height: 46px; margin-top: 14px; }
.bars i {
  flex: 1;
  height: var(--h, 40%);
  border-radius: 3px 3px 1px 1px;
  background: linear-gradient(180deg, var(--blue-400), rgba(223, 189, 120, .35));
  transition: height .9s var(--ease);
}
.bars i:last-child { background: linear-gradient(180deg, var(--blue-600), var(--blue-300)); }

.sys { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 10px 18px; }
.sys li { display: flex; align-items: center; gap: 10px; min-width: 0; font-size: 13px; font-weight: 600; color: var(--text); }
.sys li span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sys em {
  margin-left: auto;
  padding: 4px 7px;
  border-radius: 6px;
  font: 500 9.5px/1 var(--mono);
  font-style: normal;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--ok);
  background: rgba(22, 163, 109, .1);
  white-space: nowrap;
}
.sys li:has(.led--run) em { color: var(--blue-600); background: rgba(184, 134, 43, .1); }
.sys li:has(.led--auto) em { color: #6b7d91; background: rgba(139, 122, 96, .1); }

.float-chip {
  position: absolute;
  z-index: 2;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 16px 10px 10px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: rgba(255, 255, 255, .95);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  box-shadow: var(--shadow);
  color: var(--text);
  animation: float 7s ease-in-out infinite;
}
.float-chip b { display: block; font: 700 12.5px/1.2 var(--font); white-space: nowrap; }
.float-chip small { display: block; margin-top: 4px; font: 500 9.5px/1.2 var(--mono); letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.float-chip--a { left: -44px; top: 30%; }
.float-chip--b { right: -14px; top: -26px; padding-left: 16px; animation-delay: -3.5s; }
.float-chip__ico { display: grid; place-items: center; width: 30px; height: 30px; border-radius: 9px; background: rgba(22, 163, 109, .12); color: var(--ok); }
.float-chip__ico svg { width: 16px; height: 16px; }

/* ==========================================================================
   Ticker
   ========================================================================== */
.ticker {
  position: relative;
  display: flex;
  align-items: center;
  gap: 36px;
  padding: 24px 0;
  border-block: 1px solid var(--line);
  background: rgba(255, 252, 245, .7);
  backdrop-filter: blur(6px);
}
.ticker__label {
  flex: none;
  padding-left: max(var(--pad), calc((100vw - var(--container)) / 2));
  font: 500 11px/1.3 var(--mono);
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--dim);
  white-space: nowrap;
}
.ticker__viewport {
  flex: 1;
  min-width: 0;
  overflow: hidden;
  mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
}
.ticker__track { display: flex; width: max-content; animation: marquee 46s linear infinite; }
.ticker:hover .ticker__track { animation-play-state: paused; }
.ticker__track span {
  position: relative;
  padding-right: 64px;
  font: 500 18px/1 var(--font-display);
  letter-spacing: -.01em;
  color: var(--muted);
  white-space: nowrap;
  transition: color .3s;
}
.ticker__track span:hover { color: var(--blue-600); }
.ticker__track span::after {
  content: "";
  position: absolute;
  right: 29px; top: 50%;
  width: 6px; height: 6px;
  margin-top: -3px;
  background: var(--blue-400);
  transform: rotate(45deg);
}

/* ==========================================================================
   Sections
   ========================================================================== */
.section { position: relative; padding: clamp(84px, 11vw, 160px) 0; }
.section--tight { padding-top: clamp(24px, 4vw, 48px); }
.sec-head { max-width: 900px; margin-bottom: clamp(44px, 6vw, 76px); }
.sec-head--split {
  max-width: none;
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr);
  gap: 40px;
  align-items: end;
}
.sec-head__aside { max-width: 42ch; justify-self: end; font-size: 16.5px; }
div.sec-head__aside { display: grid; gap: 20px; justify-items: start; }

/* ---------- About ---------- */
.about__grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(44px, 6vw, 100px);
  align-items: center;
}
.about__text > .muted { font-size: 16.5px; max-width: 58ch; }
.features {
  list-style: none;
  margin: 44px 0 0;
  padding: 0;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 30px 32px;
}
.feature { position: relative; display: flex; flex-direction: column; gap: 16px; padding-top: 24px; border-top: 1px solid var(--line); }
.feature::before {
  content: "";
  position: absolute;
  top: -1px; left: 0;
  width: 48px; height: 2px;
  background: var(--grad);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 1.2s var(--ease) .4s;
}
.in > .feature::before { transform: none; }
.feature__ico, .cinfo__ico {
  display: grid;
  place-items: center;
  border: 1px solid var(--blue-200);
  border-radius: 12px;
  background: var(--blue-50);
  color: var(--blue-600);
}
.feature__ico { width: 44px; height: 44px; }
.feature__ico svg, .cinfo__ico svg, .hub__ico svg {
  fill: none;
  stroke: currentColor;
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.feature__ico svg { width: 22px; height: 22px; }
.feature h3 { margin-bottom: 6px; font: 700 17px/1.3 var(--font); color: var(--text); }
.feature p { color: var(--muted); font-size: 15px; line-height: 1.55; }

/* hub diagram */
.about__visual { position: relative; }
.hub { position: relative; width: 100%; max-width: 560px; margin-inline: auto; aspect-ratio: 1; }
.hub__lines { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.hub__orbit { fill: none; stroke: rgba(48, 36, 14, .16); stroke-width: .2; stroke-dasharray: .6 1.4; transform-origin: 50px 50px; animation: spin 80s linear infinite; }
.hub__orbit--b { stroke: rgba(184, 134, 43, .35); animation-duration: 50s; animation-direction: reverse; }
.hub__spokes path { fill: none; stroke: rgba(184, 134, 43, .38); stroke-width: .22; stroke-dasharray: .8 1.2; }
.hub__pulses circle { fill: var(--blue-500); }
.hub__core {
  position: absolute;
  left: 50%; top: 50%;
  width: 31%;
  aspect-ratio: 1;
  translate: -50% -50%;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(210, 162, 74, .18), rgba(255, 255, 255, 0) 68%);
}
.hub__core::before, .hub__core::after {
  content: "";
  position: absolute;
  inset: 4%;
  border-radius: 50%;
  border: 1px solid rgba(184, 134, 43, .4);
  animation: ripple 3.6s var(--ease) infinite;
}
.hub__core::after { animation-delay: 1.8s; }
.hub__core svg { width: 82%; height: 82%; overflow: visible; filter: drop-shadow(0 12px 24px rgba(122, 84, 21, .22)); }
.hub__gear { transform-origin: 100px 100px; animation: spin 40s linear infinite reverse; }
.hub__cycle { transform-origin: 100px 100px; animation: spin 10s linear infinite; }
.hub__node {
  position: absolute;
  left: var(--x); top: var(--y);
  translate: -50% -50%;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 7px 14px 7px 7px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #fff;
  box-shadow: var(--shadow-sm);
  color: var(--text);
  font-size: 13px;
  font-weight: 700;
  white-space: nowrap;
  transition: border-color .4s, opacity .8s var(--ease), scale .8s var(--ease);
}
.hub__node:hover { border-color: var(--blue-300); }
.js .hub__node { opacity: 0; scale: .7; }
.js .in .hub__node { opacity: 1; scale: 1; }
.in .hub__node:nth-of-type(2) { transition-delay: .3s; }
.in .hub__node:nth-of-type(3) { transition-delay: .4s; }
.in .hub__node:nth-of-type(4) { transition-delay: .5s; }
.in .hub__node:nth-of-type(5) { transition-delay: .6s; }
.in .hub__node:nth-of-type(6) { transition-delay: .7s; }
.in .hub__node:nth-of-type(7) { transition-delay: .8s; }
.hub__ico { display: grid; place-items: center; width: 28px; height: 28px; border-radius: 50%; background: var(--blue-50); color: var(--blue-600); }
.hub__ico svg { width: 16px; height: 16px; }
.hub__caption { margin-top: 18px; text-align: center; font: 500 11px/1.4 var(--mono); letter-spacing: .14em; text-transform: uppercase; color: var(--dim); }

/* ---------- Spotlight cards ---------- */
.spot { position: relative; isolation: isolate; }
.spot::before, .spot::after {
  content: "";
  position: absolute;
  border-radius: inherit;
  pointer-events: none;
  opacity: 0;
  transition: opacity .5s;
}
.spot::before {
  inset: 0;
  z-index: -1;
  background: radial-gradient(420px circle at var(--mx, 50%) var(--my, 0%), rgba(210, 162, 74, .12), transparent 45%);
}
.spot::after {
  inset: -1px;
  padding: 1px;
  background: radial-gradient(320px circle at var(--mx, 50%) var(--my, 0%), rgba(184, 134, 43, .7), transparent 45%);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask: linear-gradient(#000 0 0) content-box exclude, linear-gradient(#000 0 0);
}
.spot:hover::before, .spot:hover::after { opacity: 1; }

/* ---------- Services ---------- */
.svc-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
.svc {
  display: flex;
  flex-direction: column;
  padding: 26px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  box-shadow: var(--shadow-sm);
}
.js .svc-grid.in > .svc:hover, .js .plat-grid.in > .plat:hover, .js .client-grid.in > .client:hover, .js .art-grid.in > .acard:hover { transform: translateY(-6px); box-shadow: var(--shadow); transition-delay: 0s; }
.svc__art {
  height: 136px;
  margin: -6px -6px 24px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: radial-gradient(120% 100% at 50% 0%, rgba(223, 189, 120, .35), transparent 60%), var(--blue-50);
  overflow: hidden;
}
.svc__art svg { width: 100%; height: 100%; }
.svc__top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 14px;
  font: 500 10.5px/1 var(--mono);
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--dim);
}
.svc__num { color: var(--blue-600); }
.svc__title { margin-bottom: 10px; font: 500 26px/1.15 var(--font-display); letter-spacing: -.03em; color: var(--text); }
.svc__sub { margin-bottom: 12px; font-size: 15.5px; font-weight: 700; color: var(--text); }
.svc__text { margin-bottom: 22px; font-size: 15px; color: var(--muted); }
.svc__list { list-style: none; margin: 0 0 30px; padding: 22px 0 0; display: grid; grid-template-columns: 1fr 1fr; gap: 11px 24px; border-top: 1px solid var(--line); }
.svc__list li { position: relative; padding-left: 22px; font-size: 14.5px; line-height: 1.45; color: var(--body); }
.svc__list li::before { content: ""; position: absolute; left: 0; top: .7em; width: 10px; height: 2px; border-radius: 2px; background: var(--blue-400); }
.svc__link {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-top: auto;
  font-size: 14.5px;
  font-weight: 700;
  color: var(--blue-600);
  text-decoration: none;
  transition: gap .4s var(--ease), color .3s;
}
.svc__link svg { width: 16px; height: 16px; }
.svc__link:hover { gap: 16px; color: var(--blue-700); }

/* service illustrations */
.a-frame { fill: none; stroke: rgba(40, 30, 12, .35); stroke-width: 1.4; stroke-linecap: round; stroke-linejoin: round; }
.a-grid { fill: none; stroke: rgba(40, 30, 12, .07); }
.a-trend {
  fill: none;
  stroke: var(--blue-500);
  stroke-width: 2.4;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-dasharray: 1;
  stroke-dashoffset: 1;
  animation: trend 5s var(--ease) infinite;
}
.a-blink { fill: var(--blue-500); animation: blink 1.4s ease-in-out infinite; }
.a-windows rect { fill: rgba(40, 30, 12, .04); stroke: rgba(40, 30, 12, .22); animation: win 7s ease-in-out infinite; }
.a-windows rect:nth-child(3n+1) { animation-delay: 0s; }
.a-windows rect:nth-child(3n+2) { animation-delay: -2.3s; }
.a-windows rect:nth-child(3n) { animation-delay: -4.6s; }
.a-windows rect:nth-child(4n) { animation-delay: -1.2s; }
.a-blade { fill: var(--blue-400); transform-box: fill-box; transform-origin: center; animation: spin 2.4s linear infinite; }
.a-flow { fill: none; stroke: var(--blue-500); stroke-width: 1.6; stroke-dasharray: 4 6; animation: flow 1s linear infinite; }
.a-fill { fill: var(--blue-500); }
.a-level { transform-box: fill-box; transform-origin: bottom; animation: level 4.5s ease-in-out infinite alternate; }
.a-gear-shape { fill: none; stroke: var(--blue-500); transform-box: view-box; }
.a-gear-shape.a-gear-a { stroke-width: 4.6; transform-origin: 104px 64px; animation: spin 9s linear infinite; }
.a-gear-shape.a-gear-b { stroke-width: 7.2; transform-origin: 151px 37px; animation: spin 5.6s linear infinite reverse; }
.a-dial { fill: #fff; stroke: rgba(40, 30, 12, .35); stroke-width: 1.4; }
.a-tick { fill: none; stroke: rgba(40, 30, 12, .45); stroke-width: 1.6; stroke-linecap: round; }
.a-needle { fill: none; stroke: var(--blue-500); stroke-width: 2.4; stroke-linecap: round; transform-origin: 86px 50px; animation: needle 3.6s ease-in-out infinite alternate; }
.a-screen { fill: var(--blue-100); stroke: var(--blue-300); }

/* ---------- Mnemonic diagrams ---------- */
.mnemo { background: transparent; }
.mnemo__box { display: grid; gap: 14px; }
.mnemo__tabs {
  display: flex;
  gap: 8px;
  margin: -4px;
  padding: 4px;
  overflow-x: auto;
  scrollbar-width: none;
  scroll-snap-type: x proximity;
}
.mnemo__tabs::-webkit-scrollbar { display: none; }
.mnemo__tabs [role="tab"] {
  position: relative;
  flex: none;
  display: inline-flex;
  align-items: center;
  gap: 9px;
  overflow: hidden;
  padding: 11px 15px;
  border: 1px solid var(--line-2);
  border-radius: 12px;
  background: #fff;
  color: var(--muted);
  font: 700 14px/1 var(--font);
  white-space: nowrap;
  cursor: pointer;
  scroll-snap-align: start;
  transition: background-color .3s, border-color .3s, color .3s, box-shadow .4s var(--ease);
}
.mnemo__tabs [role="tab"]:hover { border-color: var(--blue-300); color: var(--text); }
.mnemo__tabs [aria-selected="true"], .mnemo__tabs [aria-selected="true"]:hover {
  background: var(--blue-500);
  border-color: var(--blue-500);
  color: #fff;
  box-shadow: 0 12px 24px -14px rgba(154, 109, 28, .9);
}
.mnemo__tab-n { font: 500 10.5px/1 var(--mono); color: var(--dim); transition: color .3s; }
[aria-selected="true"] .mnemo__tab-n { color: rgba(255, 255, 255, .72); }
.mnemo__tab-bar {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 3px;
  background: rgba(255, 255, 255, .7);
  transform-origin: left;
  transform: scaleX(var(--p, 0));
  opacity: 0;
}
.is-auto [aria-selected="true"] .mnemo__tab-bar { opacity: 1; }

.scada {
  overflow: hidden;
  border: 1px solid var(--line-2);
  border-radius: 24px;
  background: #fff;
  box-shadow: var(--shadow-lg), 0 2px 6px rgba(48, 36, 14, .04);
}
.scada__top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 14px 20px;
  border-bottom: 1px solid var(--line);
  background: linear-gradient(180deg, #fefbf4, #f7eedb);
  font: 500 10.5px/1 var(--mono);
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--muted);
  white-space: nowrap;
}
.scada__title { min-width: 0; overflow: hidden; text-overflow: ellipsis; color: var(--text); font-size: 11.5px; letter-spacing: .12em; }
.scada__screen {
  overflow-x: auto;
  background-color: #fefbf4;
  background-image: linear-gradient(rgba(184, 134, 43, .055) 1px, transparent 1px), linear-gradient(90deg, rgba(184, 134, 43, .055) 1px, transparent 1px);
  background-size: 25px 25px;
  overscroll-behavior-x: contain;
}
.scada__canvas { min-width: 760px; aspect-ratio: 1000 / 560; }
.scada__canvas.is-paused * { animation-play-state: paused !important; }
.mnemo-svg { display: block; width: 100%; height: 100%; overflow: visible; }
.scada__foot { display: flex; align-items: center; justify-content: space-between; gap: 12px 24px; padding: 16px 20px 18px; border-top: 1px solid var(--line); }
.scada__foot p { max-width: 92ch; font-size: 15px; line-height: 1.55; color: var(--muted); }
.scada__hint { display: none; flex: none; font: 500 10.5px/1 var(--mono); letter-spacing: .12em; text-transform: uppercase; color: var(--blue-600); }

/* scheme parts */
.mnemo-svg {
  --m-hot: #e5484d; --m-ret: #3b8fe6; --m-hot2: #f07167; --m-ret2: #63aef0;
  --m-cs: #0aa2c0; --m-cr: #6cc4e2; --m-cw: #b8862b; --m-dh: #ef8a35; --m-dc: #f4b47a;
  --m-gas: #d29c06; --m-steam: #dcb873; --m-e: #f2a516;
}
.mp { fill: none; stroke-width: 10; stroke-linecap: round; stroke-linejoin: round; stroke-opacity: .2; }
.mf { fill: none; stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 9 15; animation: mflow 1.1s linear infinite; }
.mf.is-still { animation: none; stroke-dasharray: none; stroke-opacity: .3; }
.mp--hot, .mf--hot { stroke: var(--m-hot); }
.mp--ret, .mf--ret { stroke: var(--m-ret); }
.mp--hot2, .mf--hot2 { stroke: var(--m-hot2); }
.mp--ret2, .mf--ret2 { stroke: var(--m-ret2); }
.mp--cs, .mf--cs { stroke: var(--m-cs); }
.mp--cr, .mf--cr { stroke: var(--m-cr); }
.mp--cw, .mf--cw { stroke: var(--m-cw); }
.mp--dh, .mf--dh { stroke: var(--m-dh); }
.mp--dc, .mf--dc { stroke: var(--m-dc); }
.mp--gas, .mf--gas { stroke: var(--m-gas); }
.mp--steam, .mf--steam { stroke: var(--m-steam); }
.mt { font: 600 13px/1 var(--font); fill: var(--text); }
.mt--b { font-weight: 700; font-size: 13.5px; }
.mt--s { font: 500 11px/1 var(--mono); fill: var(--muted); }
.mt--xs { font: 600 9.5px/1 var(--mono); fill: var(--muted); }
.mt--v { font: 600 14px/1 var(--mono); fill: var(--text); font-variant-numeric: tabular-nums; }
.mt--log { font: 600 12.5px/1 var(--font); fill: var(--text); }
.mt--lcd { font: 500 15px/1 var(--mono); fill: #3a2c12; font-variant-numeric: tabular-nums; }
.mt--kpi { font: 500 26px/1 var(--font-display); fill: var(--text); letter-spacing: -.02em; font-variant-numeric: tabular-nums; }
.mt--alarm { font: 700 13.5px/1 var(--font); fill: #fff; }
.mval { font: 600 12px/1 var(--mono); fill: var(--blue-700); font-variant-numeric: tabular-nums; }
.mtag rect { fill: #fff; stroke: rgba(48, 36, 14, .16); }
.mtag__l { font: 500 10.5px/1 var(--mono); fill: var(--muted); }
.mtag__v { font: 600 13px/1 var(--mono); fill: var(--text); font-variant-numeric: tabular-nums; }
.mtag__u { font-size: 11px; font-weight: 500; fill: var(--muted); }
.mbox rect { fill: #fff; stroke: rgba(40, 30, 12, .22); stroke-width: 1.3; }
.mbox__line { fill: none; stroke: rgba(40, 30, 12, .12); stroke-width: 1.2; }
.mbox__deco { fill: none; stroke: rgba(40, 30, 12, .08); stroke-width: 3; stroke-linecap: round; }
.mled { fill: var(--ok); }
.mled.is-ok { filter: drop-shadow(0 0 3px rgba(22, 163, 109, .6)); }
.marrow { fill: none; stroke: var(--blue-400); stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; }
.mwall { fill: url(#m-hatch); stroke: rgba(40, 30, 12, .25); }
.mhatch { stroke: rgba(40, 30, 12, .2); stroke-width: 2; }
.mduct { fill: #f6efe0; stroke: rgba(40, 30, 12, .28); stroke-width: 1.4; }
.mair { fill: none; stroke: #c9b38a; stroke-width: 2.4; stroke-linecap: round; stroke-dasharray: 2 22; animation: mflow .9s linear infinite; }
.mlink { fill: none; stroke: rgba(40, 30, 12, .3); stroke-dasharray: 3 4; }

.mpump__body { fill: #fff; stroke: rgba(40, 30, 12, .45); stroke-width: 1.6; }
.mpump__tri { fill: #ddd0b6; }
.mpump.is-on .mpump__tri { fill: var(--ok); }
.mpump__ring { fill: none; stroke: var(--ok); stroke-width: 1.6; stroke-dasharray: 3 5; opacity: 0; transform-box: fill-box; transform-origin: center; }
.mpump.is-on .mpump__ring { opacity: .9; animation: spin 3s linear infinite; }
.mfan__body { fill: #fff; stroke: rgba(40, 30, 12, .4); stroke-width: 1.5; }
.mfan__blades { fill: #ddd0b6; transform-box: fill-box; transform-origin: center; }
.mfan.is-on .mfan__blades { fill: var(--blue-400); animation: spin var(--spd, 1.1s) linear infinite; }
.mfan__hub { fill: #fff; stroke: rgba(40, 30, 12, .4); }
.mvalve__body { fill: #fff; stroke: rgba(40, 30, 12, .55); stroke-width: 1.4; stroke-linejoin: round; }
.mvalve__stem { stroke: rgba(40, 30, 12, .5); stroke-width: 1.4; }
.mvalve__act { fill: var(--blue-50); stroke: var(--blue-300); }
.mdamper rect, .mfilter rect, .mcoil rect { fill: #fff; stroke: rgba(40, 30, 12, .4); stroke-width: 1.3; }
.mdamper path { stroke: rgba(40, 30, 12, .6); stroke-width: 2.2; stroke-linecap: round; }
.mfilter path { fill: none; stroke: #b5a58a; stroke-width: 1.4; }
.mcoil path { fill: none; stroke-width: 2; stroke-linejoin: round; }
.mcoil--hot path { stroke: var(--m-hot); }
.mcoil--cold path { stroke: var(--m-cs); opacity: .45; }
.mhx rect { fill: #fff; stroke: rgba(40, 30, 12, .45); stroke-width: 1.4; }
.mhx path { stroke: rgba(40, 30, 12, .18); }
.mtank { fill: #f6efe0; stroke: rgba(40, 30, 12, .38); stroke-width: 1.4; }
.mrad rect { fill: #ffe7e4; stroke: var(--m-hot); stroke-opacity: .55; }
.mmeter circle, .mtap { fill: #fff; stroke: rgba(40, 30, 12, .4); stroke-width: 1.4; }
.msteam circle { fill: #b7d7f6; stroke: #dcb873; stroke-width: 1; transform-box: fill-box; transform-origin: center; animation: msteam 2.4s ease-out infinite; }
.msteam circle:nth-child(2) { animation-delay: -.8s; }
.msteam circle:nth-child(3) { animation-delay: -1.6s; }
.mchamber { fill: #fff8f1; stroke: rgba(40, 30, 12, .2); }
.mburner { fill: var(--blue-50); stroke: rgba(40, 30, 12, .35); }
.mflame { transform-box: fill-box; transform-origin: left center; animation: mflame .17s ease-in-out infinite alternate; }
.mflame path { fill: url(#m-flame); }
.mflame .mflame__in { fill: #fff2c2; opacity: .85; }

/* power */
.ew { fill: none; stroke: #e4d9c4; stroke-linecap: round; transition: stroke .4s; }
.ew.is-on { stroke: rgba(242, 165, 22, .35); }
.ef { fill: none; stroke: transparent; stroke-width: 2.4; stroke-linecap: round; stroke-dasharray: 6 18; }
.ef.is-on { stroke: #dd8a00; animation: mflow .8s linear infinite; }
.mtr circle { fill: rgba(255, 255, 255, .85); stroke: #d4c4a4; stroke-width: 2.6; transition: stroke .4s; }
.mtr.is-on circle { stroke: var(--m-e); }
.qf__blade { stroke: #b5a58a; stroke-width: 5; stroke-linecap: round; transform-box: view-box; transition: transform .5s var(--ease), stroke .3s; }
.qf:not(.is-open) .qf__blade { stroke: #dd8a00; }
.qf.is-open .qf__blade { transform: rotate(-32deg); }
.qf circle { fill: #fff; stroke: #b5a58a; stroke-width: 2; }
.mdgu__g circle { fill: #fff; stroke: #d4c4a4; stroke-width: 2.4; }
.mdgu__g .mdgu__ring { fill: none; stroke-dasharray: 4 6; transform-box: fill-box; transform-origin: center; }
.is-dgu .mdgu__g .mdgu__ring { stroke: var(--m-e); animation: spin 1s linear infinite; }
.mdgu.is-on .mdgu__g circle:last-child { stroke: var(--m-e); }
.mdgu__eng { fill: var(--blue-50); stroke: rgba(40, 30, 12, .3); }
.is-dgu .mdgu__eng { animation: mrumble .12s linear infinite; }
.mload { transition: opacity .4s; }
.mload:not(.is-on) { opacity: .4; }
.mcell { fill: #efe6d4; }
.mcell.is-full { fill: var(--ok); }
.is-bat .mcell.is-full { fill: var(--m-e); animation: blink 1.2s ease-in-out infinite; }
.mbanner { opacity: 0; transition: opacity .4s; }
.mbanner rect { fill: var(--warn); }
.is-alarm .mbanner { opacity: 1; }
.is-alarm .mbanner rect { animation: blink 1.6s ease-in-out infinite; }
.mlog.is-new { animation: mfade .6s ease both; }
.mlog.is-alarm .mt--log { fill: var(--warn); }

/* leaks */
.mfloor { fill: #fefbf4; }
.mwalls { fill: none; stroke: #6f634f; stroke-width: 6; stroke-linecap: square; }
.mpuddle ellipse { fill: rgba(184, 134, 43, .28); transform-box: fill-box; transform-origin: center; transform: scale(0); transition: transform 2s var(--ease); }
.mpuddle .mpuddle__ring { fill: none; stroke: var(--blue-500); stroke-width: 1.5; }
.is-leak .mpuddle ellipse { transform: scale(1); }
.is-leak .mpuddle .mpuddle__ring { animation: mripple 1.8s ease-out infinite; }
.mdrops circle { fill: var(--blue-500); opacity: 0; }
.is-leak:not(.is-closed) .mdrops circle { animation: mdrop .9s ease-in infinite; }
.is-leak:not(.is-closed) .mdrops circle:last-child { animation-delay: .45s; }
.mlvalve circle { fill: #fff; stroke: var(--ok); stroke-width: 3; transition: stroke .3s; }
.mlvalve__h { stroke: var(--ok); stroke-width: 4; stroke-linecap: round; transform-box: fill-box; transform-origin: center; transform: rotate(90deg); transition: transform .6s var(--ease), stroke .3s; }
.is-closed .mlvalve circle, .is-closed .mlvalve__h { stroke: var(--warn); }
.is-closed .mlvalve__h { transform: none; }
.msensor rect { fill: #fff; stroke: rgba(40, 30, 12, .4); }
.msensor circle { fill: var(--ok); }
.is-leak .msensor[data-s="3"] rect { stroke: var(--warn); }
.is-leak .msensor[data-s="3"] circle, .is-leak .mrow[data-row="3"] .mled { fill: var(--warn); animation: blink .7s ease-in-out infinite; }
.is-leak .mrow[data-row="3"] .mt--v { fill: var(--warn); }
.mserver rect { fill: #f6efe2; stroke: rgba(40, 30, 12, .3); }

/* fan coils */
.mroom { fill: #f4e8cc; transition: fill 1.2s ease; }
.mroom__t { font: 500 28px/1 var(--font-display); fill: var(--text); letter-spacing: -.03em; font-variant-numeric: tabular-nums; }
.mroom__u { font-size: 15px; fill: var(--muted); }
.mperson { opacity: .14; transition: opacity .5s; }
.mperson.is-on { opacity: 1; }
.mperson circle, .mperson path { fill: none; stroke: var(--blue-600); stroke-width: 2; }
.mfcu { fill: #fff; stroke: rgba(40, 30, 12, .4); }
.mlegend rect { fill: url(#m-temp); stroke: rgba(40, 30, 12, .15); }

/* metering */
.mbus { fill: none; stroke: #c9b38a; stroke-width: 2; stroke-dasharray: 5 5; }
.mpacket { fill: var(--blue-500); filter: drop-shadow(0 0 4px rgba(184, 134, 43, .7)); }
.mlcd { fill: #f8eedb; stroke: var(--blue-200); }
.mmeter__ico { fill: var(--blue-500); }
.mmeter__ico--bolt { fill: var(--m-e); }
.mmeter__ico--flame { fill: var(--m-dh); }
.mchip rect { fill: var(--blue-50); stroke: var(--blue-200); }
.mbars rect { fill: var(--blue-300); transition: y .9s var(--ease), height .9s var(--ease); }
.mbars rect:last-child { fill: var(--blue-600); }

/* lighting */
.mwindow { fill: none; stroke: #9fd0fa; stroke-width: 7; }
.mlamp__glow { fill: url(#m-glow); opacity: 0; transition: opacity .5s; }
.mlamp.is-on .mlamp__glow { opacity: var(--lvl, 1); }
.mlamp__dot { fill: #fff; stroke: #d4c4a4; stroke-width: 2; transition: fill .4s, stroke .4s; }
.mlamp.is-on .mlamp__dot { fill: #ffd25e; stroke: #e0a800; }
.mpsensor circle { fill: #fff; stroke: var(--blue-500); stroke-width: 2; }
.mwalker circle { fill: var(--blue-600); }
.mwalker .mwalker__ring { fill: none; stroke: var(--blue-500); stroke-width: 2; transform-box: fill-box; transform-origin: center; animation: mripple 1.6s ease-out infinite; }

/* ---------- Process (light blue panel) ---------- */
.panel-light {
  position: relative;
  overflow: clip;
  padding: clamp(32px, 6.5vw, 96px);
  border: 1px solid var(--blue-200);
  border-radius: clamp(24px, 3vw, 40px);
  background: #fff;
  box-shadow: var(--shadow-sm);
  color: var(--text);
}
.panel-light::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: linear-gradient(rgba(154, 109, 28, .07) 1px, transparent 1px), linear-gradient(90deg, rgba(154, 109, 28, .07) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: linear-gradient(120deg, #000 0%, transparent 55%);
  -webkit-mask-image: linear-gradient(120deg, #000 0%, transparent 55%);
  pointer-events: none;
}
.process__layout {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, .92fr) minmax(0, 1.08fr);
  gap: clamp(40px, 7vw, 110px);
}
.process__sticky { position: sticky; top: 120px; }
.process .h2 { font-size: clamp(28px, 3.1vw, 44px); }
.process__lead { max-width: 44ch; margin: 26px 0 34px; font-size: 17px; color: var(--muted); }

.steps { position: relative; list-style: none; margin: 0; padding: 0; }
.steps__line { position: absolute; left: 27px; top: 30px; bottom: 30px; width: 2px; border-radius: 2px; background: rgba(48, 36, 14, .1); }
.steps__line i { position: absolute; left: 0; top: 0; width: 100%; height: 100%; border-radius: 2px; background: var(--grad); transform-origin: top; transform: scaleY(var(--p, 0)); }
.step { position: relative; display: grid; grid-template-columns: 56px minmax(0, 1fr); gap: 26px; padding: 4px 0 40px; }
.step:last-child { padding-bottom: 0; }
.step__n {
  position: relative;
  z-index: 1;
  display: grid;
  place-items: center;
  width: 56px; height: 56px;
  border: 1px solid var(--blue-200);
  border-radius: 50%;
  background: #fff;
  font: 500 14px/1 var(--font-display);
  color: var(--dim);
  transition: background-color .6s var(--ease), color .6s var(--ease), border-color .6s, box-shadow .6s;
}
.step.is-active .step__n { background: var(--blue-500); border-color: var(--blue-500); color: #fff; box-shadow: 0 12px 24px -10px rgba(154, 109, 28, .8); }
.step h3 { margin: 14px 0 8px; font: 500 20px/1.25 var(--font-display); letter-spacing: -.02em; color: var(--text); }
.step p { max-width: 50ch; font-size: 15.5px; color: var(--muted); }

/* ---------- Clients ---------- */
.client-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.client {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  box-shadow: var(--shadow-sm);
}
.client.is-hidden { display: none; }
.client:hover { border-color: var(--blue-200); }
.client__art {
  position: relative;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  border-bottom: 1px solid var(--line);
  background: radial-gradient(80% 90% at 50% 105%, rgba(223, 189, 120, .45), transparent 70%), linear-gradient(180deg, #fdf8ee, #f4e8cc);
}
.client__art::before, .acard__cover::before, .article__cover::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: linear-gradient(rgba(154, 109, 28, .06) 1px, transparent 1px), linear-gradient(90deg, rgba(154, 109, 28, .06) 1px, transparent 1px);
  background-size: 28px 28px;
}
.client__art svg, .client__art img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform 1.4s var(--ease); }
.client:hover .client__art svg, .client:hover .client__art img { transform: scale(1.045); }
.client__credit { position: absolute; right: 8px; bottom: 8px; padding: 3px 7px; border-radius: 6px; background: rgba(255, 255, 255, .88); font: 10px/1.3 var(--mono); color: var(--muted); }
.client__body { display: grid; gap: 12px; padding: 20px 22px 24px; }
.client__meta { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; font-size: 13px; color: var(--dim); }
.client__name { font: 500 18px/1.3 var(--font-display); letter-spacing: -.02em; color: var(--text); text-wrap: balance; }
.pa-line { fill: none; stroke: rgba(40, 30, 12, .32); stroke-width: 1.2; stroke-linecap: round; stroke-linejoin: round; }
.pa-glow path { fill: none; stroke: var(--blue-500); stroke-width: 1.8; stroke-linecap: round; animation: glow 3.2s ease-in-out infinite alternate; }
.pa-glow path:nth-child(2) { animation-delay: -1s; }
.pa-glow path:nth-child(3) { animation-delay: -2s; }
.pa-glow path:nth-child(4) { animation-delay: -2.8s; }
.pa-flow path { fill: none; stroke: var(--blue-500); stroke-width: 1.6; stroke-dasharray: 4 6; animation: flow 1s linear infinite; }
.pa-boxes rect { fill: var(--blue-400); animation: conveyor 3s linear infinite; }
.pa-ping { fill: var(--blue-500); transform-box: fill-box; transform-origin: center; animation: beat 2s ease-in-out infinite; }

.client-more {
  list-style: none;
  margin: 28px 0 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0 32px;
}
.client-more li { position: relative; padding: 16px 0 16px 22px; border-bottom: 1px solid var(--line); font-weight: 600; color: var(--text); }
.clients__more { display: flex; justify-content: center; margin-top: 40px; }
.client-more li::before { content: ""; position: absolute; left: 0; top: 1.5em; width: 10px; height: 2px; border-radius: 2px; background: var(--blue-400); }

.stats { display: flex; flex-wrap: wrap; gap: 16px 52px; margin: 34px 0 0; }
.stats div { display: grid; gap: 8px; }
.stats dt {
  font: 500 clamp(34px, 4vw, 52px)/1 var(--font-display);
  letter-spacing: -.04em;
  background: var(--grad-text);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.stats dd { margin: 0; font: 500 11px/1.3 var(--mono); letter-spacing: .12em; text-transform: uppercase; color: var(--dim); }

/* ---------- AI Factory ---------- */
.ai {
  overflow: hidden;
  color: #dbe7f5;
  background:
    radial-gradient(55% 70% at 85% 25%, rgba(227, 174, 69, .32), transparent 62%),
    radial-gradient(45% 55% at 5% 95%, rgba(184, 134, 43, .2), transparent 60%),
    radial-gradient(rgba(251, 226, 154, .1) 1px, transparent 1.3px) 0 0 / 22px 22px,
    linear-gradient(180deg, #0c1622, #111d2b);
}
.ai .h2 { color: #fff; }
.ai .h2 em, .ai .is-split em .wi { background: linear-gradient(100deg, #E3AE45, #FBE29A 50%, #D49A33); -webkit-background-clip: text; background-clip: text; color: transparent; }
.ai .eyebrow { color: #F0C766; }
.ai .eyebrow__n { color: rgba(255, 255, 255, .45); }
.ai__layout { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); gap: clamp(40px, 6vw, 90px); align-items: center; }
.ai .h2 { font-size: clamp(28px, 3vw, 42px); }
.ai__lead { max-width: 54ch; margin: 24px 0 34px; font-size: 17px; color: rgba(219, 231, 245, .78); }
.ai__list { list-style: none; margin: 0; padding: 0; display: grid; gap: 22px; }
.ai__list li { display: grid; grid-template-columns: 44px minmax(0, 1fr); gap: 16px; }
.ai__ico { display: grid; place-items: center; width: 44px; height: 44px; border: 1px solid rgba(240, 199, 102, .35); border-radius: 12px; background: rgba(240, 199, 102, .08); color: #F0C766; }
.ai__ico svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.ai__list h3 { margin-bottom: 4px; font: 700 16.5px/1.3 var(--font); color: #fff; }
.ai__list p { font-size: 15px; line-height: 1.55; color: rgba(219, 231, 245, .7); }

.aip { position: relative; padding: 14px; border: 1px solid var(--line-2); border-radius: 24px; background: #fff; box-shadow: 0 50px 110px -45px rgba(227, 174, 69, .6), 0 0 0 1px rgba(240, 199, 102, .3); }
.aip__top { display: flex; align-items: center; gap: 12px; padding: 4px 6px 14px; margin-bottom: 12px; border-bottom: 1px solid var(--line); font: 500 10.5px/1 var(--mono); letter-spacing: .06em; text-transform: uppercase; color: var(--muted); white-space: nowrap; }
.aip__obj { min-width: 0; overflow: hidden; text-overflow: ellipsis; }
.aip__tag { margin-left: auto; padding: 4px 8px; border-radius: 6px; background: var(--blue-50); color: var(--blue-700); }
.aip__chart { position: relative; height: 240px; border: 1px solid var(--line); border-radius: 14px; background-color: var(--blue-50); background-image: linear-gradient(rgba(184, 134, 43, .07) 1px, transparent 1px), linear-gradient(90deg, rgba(184, 134, 43, .07) 1px, transparent 1px); background-size: 26px 26px; overflow: hidden; }
.aip__chart svg { position: absolute; inset: 10px 0; width: 100%; height: calc(100% - 20px); overflow: visible; }
.aip__band { fill: rgba(22, 163, 109, .1); stroke: rgba(22, 163, 109, .35); stroke-dasharray: 4 4; vector-effect: non-scaling-stroke; }
.aip__limit { stroke: var(--warn); stroke-width: 1.5; stroke-dasharray: 6 5; vector-effect: non-scaling-stroke; }
.aip__now { stroke: rgba(40, 30, 12, .25); stroke-dasharray: 2 4; vector-effect: non-scaling-stroke; }
.aip__line { fill: none; stroke: var(--blue-500); stroke-width: 2.4; stroke-linejoin: round; vector-effect: non-scaling-stroke; transition: stroke .4s; }
.aip__fc { fill: none; stroke: var(--blue-400); stroke-width: 2; stroke-dasharray: 5 5; vector-effect: non-scaling-stroke; }
.aip__dot { fill: var(--blue-500); stroke: #fff; stroke-width: 2; vector-effect: non-scaling-stroke; }
.aip__hit { fill: none; stroke: var(--warn); stroke-width: 2; vector-effect: non-scaling-stroke; opacity: 0; transition: opacity .3s; transform-box: fill-box; transform-origin: center; animation: beat 1.4s ease-in-out infinite; }
.is-warn .aip__line { stroke: #e0711f; }
.is-warn .aip__fc { stroke: var(--warn); }
.aip__lbl { position: absolute; font: 500 10px/1 var(--mono); letter-spacing: .06em; text-transform: uppercase; color: var(--muted); pointer-events: none; }
.aip__lbl--limit { left: 12px; top: 18px; color: var(--warn); }
.aip__lbl--band { left: 12px; bottom: 74px; color: #0f7a51; }
.aip__lbl--now { left: calc(75% + 6px); bottom: 12px; }
.aip__lbl--fc { right: 10px; bottom: 12px; color: var(--blue-600); }
.aip__row { display: grid; grid-template-columns: 150px minmax(0, 1fr); gap: 10px; margin-top: 10px; }
.aip__risk { display: grid; align-content: start; gap: 6px; padding: 14px; border: 1px solid var(--line); border-radius: 14px; background: #fff; }
.aip__risk > span { font: 500 10.5px/1.2 var(--mono); letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
.aip__risk b { font: 500 30px/1 var(--font-display); letter-spacing: -.03em; color: var(--text); font-variant-numeric: tabular-nums; }
.aip__risk > i { display: block; height: 6px; border-radius: 6px; background: #efe6d4; overflow: hidden; }
.aip__risk > i > i { display: block; height: 100%; width: 8%; border-radius: inherit; background: linear-gradient(90deg, var(--ok), #f2a516 60%, var(--warn)); background-size: 300px 100%; transition: width .6s var(--ease); }
.aip__alert { position: relative; min-height: 112px; border: 1px solid var(--line); border-radius: 14px; background: #fff; overflow: hidden; transition: border-color .4s, background-color .4s; }
.aip__state { position: absolute; inset: 0; display: grid; align-content: center; gap: 5px; padding: 14px 16px 14px 36px; transition: opacity .4s, transform .5s var(--ease); }
.aip__state .led { position: absolute; left: 16px; top: 20px; }
.aip__state b { font: 700 15px/1.3 var(--font); color: var(--text); }
.aip__state > span { font-size: 13.5px; line-height: 1.45; color: var(--muted); }
.aip__state em { font-style: normal; font-weight: 700; color: var(--warn); font-variant-numeric: tabular-nums; }
.aip__rec { color: var(--text) !important; font-weight: 600; }
.aip__led { background: var(--warn); box-shadow: 0 0 0 3px rgba(229, 72, 77, .18); animation: blink 1s ease-in-out infinite; }
.aip__state--warn { opacity: 0; transform: translateY(10px); }
.is-warn .aip__alert { border-color: rgba(229, 72, 77, .35); background: #fff8f7; }
.is-warn .aip__state--ok { opacity: 0; transform: translateY(-10px); }
.is-warn .aip__state--warn { opacity: 1; transform: none; }
.is-warn .aip__state--warn b { color: #b4232a; }
.ai__stack { display: flex; justify-content: center; gap: 8px; margin-top: 18px; }
.ai__layer { padding: 8px 14px; border: 1px solid rgba(255, 255, 255, .16); border-radius: 999px; background: rgba(255, 255, 255, .06); font: 600 12.5px/1 var(--font); color: #cfe0f2; }
.ai__layer + .ai__layer { position: relative; }
.ai__layer--top { border-color: #D49A33; background: linear-gradient(135deg, #E3AE45, #C98A26); color: #1a1205; box-shadow: 0 10px 22px -12px rgba(212, 154, 51, .9); }

/* ---------- Platforms ---------- */
.platforms { background: transparent; }
.plat-grid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.plat {
  display: flex;
  flex-direction: column;
  gap: 12px;
  min-height: 200px;
  padding: 26px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  box-shadow: var(--shadow-sm);
}
.plat__brand { display: flex; align-items: center; height: 84px; margin-bottom: 10px; transform-origin: left center; }
.plat__logo { width: auto; max-width: 100%; object-fit: contain; object-position: left center; transition: transform .5s var(--ease); }
.plat:hover .plat__logo { transform: scale(1.04); }
.plat__word { font: 500 30px/1 var(--font-display); letter-spacing: -.03em; color: #5f6f81; transition: color .4s; }
.plat:hover .plat__word { color: var(--blue-600); }
.plat__name { margin-top: auto; font: 700 17px/1.25 var(--font); color: var(--text); }
.plat__desc { font-size: 14.5px; line-height: 1.5; color: var(--muted); }

/* ---------- Articles: cards ---------- */
.articles { background: transparent; }
.art-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.acard {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  box-shadow: var(--shadow-sm);
  transition: transform .6s var(--ease), box-shadow .5s var(--ease), border-color .4s;
}
.acard:hover { border-color: var(--blue-200); }
.acard.is-hidden { display: none; }
.acard__link { display: flex; flex-direction: column; height: 100%; color: inherit; text-decoration: none; }
.acard__cover, .article__cover {
  position: relative;
  overflow: hidden;
  background: radial-gradient(90% 100% at 50% 110%, rgba(223, 189, 120, .5), transparent 70%), linear-gradient(180deg, #fdf8ee, #f4e8cc);
}
.acard__cover { aspect-ratio: 16 / 9; border-bottom: 1px solid var(--line); }
.acard__cover svg, .article__cover svg { position: relative; width: 100%; height: 100%; transition: transform 1.2s var(--ease); }
.acard:hover .acard__cover svg { transform: scale(1.05); }
.acard__body { flex: 1; display: flex; flex-direction: column; gap: 12px; padding: 22px 22px 24px; }
.acard__meta { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; font-size: 13px; color: var(--dim); }
.acard__title { font: 500 19px/1.3 var(--font-display); letter-spacing: -.02em; color: var(--text); text-wrap: balance; }
.acard__excerpt { font-size: 15px; line-height: 1.55; color: var(--muted); }
.acard__more { display: inline-flex; align-items: center; gap: 8px; margin-top: auto; padding-top: 6px; font-size: 14px; font-weight: 700; color: var(--blue-600); transition: gap .4s var(--ease); }
.acard__more svg { width: 16px; height: 16px; }
.acard:hover .acard__more { gap: 14px; }

/* cover illustrations */
.cv-panel { fill: #fff; stroke: rgba(40, 30, 12, .18); stroke-width: 1.5; }
.cv-grid { fill: none; stroke: rgba(40, 30, 12, .07); }
.cv-line { fill: none; stroke: rgba(40, 30, 12, .3); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.cv-accent { fill: none; stroke: var(--blue-500); stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; }
.cv-area { fill: rgba(184, 134, 43, .12); }
.cv-dot { fill: var(--blue-500); filter: drop-shadow(0 3px 6px rgba(184, 134, 43, .5)); }
.cv-fill { fill: var(--blue-200); }
.cv-win rect { fill: rgba(40, 30, 12, .04); stroke: rgba(40, 30, 12, .22); stroke-width: 1.2; }
.cv-win .on { fill: rgba(210, 162, 74, .55); stroke: var(--blue-400); }
.cv-nodes rect, .cv-checks rect { fill: #fff; stroke: var(--blue-300); stroke-width: 1.5; }
.cv-checks rect { stroke: rgba(40, 30, 12, .25); }

/* ---------- CTA band ---------- */
.cta-band { padding-bottom: clamp(84px, 10vw, 140px); }
.cta-band--inline { padding: clamp(64px, 8vw, 104px) 0 0; }
.cta-band__box {
  position: relative;
  overflow: hidden;
  padding: clamp(44px, 7vw, 100px) clamp(24px, 6vw, 80px);
  border: 1px solid var(--blue-200);
  border-radius: clamp(24px, 3vw, 40px);
  text-align: center;
  background: radial-gradient(70% 120% at 50% 0%, rgba(223, 189, 120, .45), transparent 62%), linear-gradient(160deg, #f6ecd6, #fefbf5 60%, #f1e3c3);
}
.cta-band__gear {
  position: absolute;
  left: 50%; top: 50%;
  width: 720px; height: 720px;
  margin: -360px 0 0 -360px;
  color: rgba(184, 134, 43, .2);
  animation: spin 90s linear infinite;
  pointer-events: none;
}
.cta-band .h2 { position: relative; max-width: 20ch; margin: 0 auto 18px; }
.cta-band .muted { position: relative; max-width: 50ch; margin: 0 auto 38px; font-size: 17px; text-wrap: balance; }
.cta-band__actions { position: relative; display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 18px 30px; }
.cta-band__phone { display: flex; flex-direction: column; text-align: left; color: var(--text); text-decoration: none; font: 500 20px/1.2 var(--font-display); letter-spacing: -.01em; transition: color .3s; }
.cta-band__phone:hover { color: var(--blue-600); }
.cta-band__phone small { margin-bottom: 5px; font: 500 10.5px/1 var(--mono); letter-spacing: .12em; text-transform: uppercase; color: var(--dim); }

/* ---------- Contact ---------- */
.contact { padding-top: 0; }
.contact__layout { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(44px, 6vw, 100px); align-items: start; }
.contact__lead { max-width: 46ch; margin: 24px 0 36px; font-size: 17px; }
.cinfo { display: grid; gap: 10px; margin-bottom: 14px; }
.cinfo__item {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 16px 18px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: #fff;
  box-shadow: var(--shadow-sm);
  color: var(--text);
  text-decoration: none;
}
.js .cinfo.in > a.cinfo__item:hover { border-color: var(--blue-300); transform: translateX(6px); transition-delay: 0s; }
.cinfo__ico { flex: none; width: 44px; height: 44px; }
.cinfo__ico svg { width: 20px; height: 20px; }
.cinfo small { display: block; margin-bottom: 4px; font: 500 10.5px/1 var(--mono); letter-spacing: .12em; text-transform: uppercase; color: var(--dim); }
.cinfo b { font-size: 16px; font-weight: 700; line-height: 1.4; }

.map { position: relative; height: 210px; overflow: hidden; border: 1px solid var(--line); border-radius: 16px; background: #f2e8d4; }
.map__svg { width: 100%; height: 100%; }
.map__streets path { fill: none; stroke: #fff; stroke-width: 8; stroke-linecap: round; }
.map__streets .map__main { stroke: rgba(210, 162, 74, .45); stroke-width: 12; }
.map__river { fill: none; stroke: rgba(223, 189, 120, .7); stroke-width: 18; stroke-linecap: round; }
.map__blocks rect { fill: rgba(40, 30, 12, .04); stroke: rgba(40, 30, 12, .07); }
.map__pin { position: absolute; left: var(--x); top: var(--y); display: flex; align-items: center; gap: 10px; translate: -7px -50%; }
.map__pin i { position: relative; width: 14px; height: 14px; border: 2px solid #fff; border-radius: 50%; background: var(--blue-500); box-shadow: 0 0 0 4px rgba(184, 134, 43, .22), 0 6px 14px rgba(154, 109, 28, .5); }
.map__pin i::after { content: ""; position: absolute; inset: -4px; border-radius: 50%; border: 1.5px solid var(--blue-500); animation: ping 2s var(--ease) infinite; }
.map__pin span { padding: 6px 10px; border: 1px solid var(--line); border-radius: 8px; background: #fff; box-shadow: var(--shadow-sm); font-size: 12px; font-weight: 700; color: var(--text); }
.map__links { position: absolute; right: 12px; bottom: 12px; display: flex; gap: 8px; }
.map__links a {
  padding: 8px 12px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, .92);
  box-shadow: var(--shadow-sm);
  color: var(--text);
  font-size: 12px;
  font-weight: 700;
  text-decoration: none;
  transition: border-color .3s, color .3s;
}
.map__links a:hover { border-color: var(--blue-300); color: var(--blue-600); }

/* ---------- Form ---------- */
.form {
  position: relative;
  display: grid;
  gap: 14px;
  padding: clamp(24px, 3.4vw, 40px);
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 28px;
  background: #fff;
  box-shadow: var(--shadow-lg);
}
.form::before {
  content: "";
  position: absolute;
  left: 0; right: 0; top: 0;
  height: 3px;
  background: var(--grad);
}
.form__head { margin-bottom: 6px; }
.form__head h3 { margin-bottom: 6px; font: 500 24px/1.2 var(--font-display); letter-spacing: -.025em; color: var(--text); }
.form__head p { font-size: 15px; color: var(--muted); }
.form__row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }

.field { position: relative; display: block; }
.field input, .field textarea, .field select {
  width: 100%;
  padding: 24px 16px 9px;
  border: 1px solid var(--line-2);
  border-radius: 14px;
  outline: none;
  background: var(--surface-2);
  color: var(--text);
  font: 600 15.5px/1.4 var(--font);
  -webkit-appearance: none;
  appearance: none;
  transition: border-color .3s, background-color .3s, box-shadow .3s;
}
.field textarea { min-height: 112px; padding-top: 28px; resize: vertical; }
.field select {
  padding-right: 44px;
  cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' fill='none' stroke='%23b8862b' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M1 1.5l5 5 5-5'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 18px center;
}
.field select option { background: #fff; color: var(--text); }
.field input:hover, .field textarea:hover, .field select:hover { border-color: rgba(48, 36, 14, .26); }
.field input:focus, .field textarea:focus, .field select:focus {
  border-color: var(--blue-400);
  background-color: #fff;
  box-shadow: 0 0 0 4px rgba(184, 134, 43, .14);
}
.field__label {
  position: absolute;
  left: 17px; top: 17px;
  font-size: 15px;
  color: var(--muted);
  pointer-events: none;
  transform-origin: left top;
  transition: transform .35s var(--ease), color .3s;
}
.field input:focus + .field__label,
.field input:not(:placeholder-shown) + .field__label,
.field textarea:focus + .field__label,
.field textarea:not(:placeholder-shown) + .field__label,
.field__label--static { transform: translateY(-9px) scale(.76); color: var(--blue-600); }
.field__label--static { color: var(--muted); }
.field__err { display: none; margin-top: 6px; padding-left: 4px; font-size: 12.5px; color: var(--warn); }
.field.is-invalid input { border-color: rgba(229, 72, 77, .6); background: #fff6f2; }
.field.is-invalid .field__label { color: var(--warn); }
.field.is-invalid .field__err { display: block; }
.form.shake { animation: shake .5s var(--ease); }

.chips { margin: 2px 0 0; padding: 0; border: 0; min-width: 0; }
.chips legend { margin-bottom: 10px; padding: 0; font-size: 13.5px; color: var(--muted); }
.chips__list { display: flex; flex-wrap: wrap; gap: 8px; }
.chips label { position: relative; }
.chips input { position: absolute; opacity: 0; pointer-events: none; }
.chips span {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 10px 16px;
  border: 1px solid var(--line-2);
  border-radius: 999px;
  background: #fff;
  color: var(--text);
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  user-select: none;
  transition: background-color .3s, border-color .3s, color .3s;
}
.chips span::before {
  content: "";
  width: 8px; height: 8px;
  border: 1px solid var(--dim);
  border-radius: 50%;
  transition: background-color .3s, border-color .3s, box-shadow .3s;
}
.chips span:hover { border-color: var(--blue-300); }
.chips input:checked + span { background: var(--blue-50); border-color: var(--blue-300); color: var(--blue-700); }
.chips input:checked + span::before { background: var(--blue-500); border-color: var(--blue-500); box-shadow: 0 0 0 3px rgba(184, 134, 43, .18); }
.chips input:focus-visible + span { outline: 2px solid var(--blue-500); outline-offset: 2px; }

.form__submit { margin-top: 6px; }
.form__submit[disabled] { opacity: .7; cursor: progress; }
.form__note { text-align: center; font-size: 12.5px; color: var(--dim); }
.form__note.is-error { color: var(--warn); }

.form__done {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 40px;
  text-align: center;
  background: #fff;
  opacity: 0;
  visibility: hidden;
  transition: opacity .6s var(--ease), visibility 0s linear .6s;
}
.form.is-done .form__done { opacity: 1; visibility: visible; transition: opacity .6s var(--ease), visibility 0s; }
.form__done-mark { width: 96px; height: 96px; margin-bottom: 22px; }
.fd-ring { fill: none; stroke: url(#g-blue); stroke-width: 4; stroke-dasharray: 1; stroke-dashoffset: 1; transform: rotate(-90deg); transform-origin: 100px 100px; }
.fd-check { fill: none; stroke: url(#g-blue); stroke-width: 7; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 1; stroke-dashoffset: 1; }
.form.is-done .fd-ring { stroke-dashoffset: 0; transition: stroke-dashoffset 1s var(--ease) .2s; }
.form.is-done .fd-check { stroke-dashoffset: 0; transition: stroke-dashoffset .7s var(--ease) .85s; }
.form__done h3 { margin-bottom: 10px; font: 500 24px/1.2 var(--font-display); letter-spacing: -.025em; color: var(--text); }
.form__done p { max-width: 34ch; margin-bottom: 26px; color: var(--muted); }

/* ==========================================================================
   Article & articles index pages
   ========================================================================== */
.page-hero {
  position: relative;
  overflow: hidden;
  padding: calc(var(--header-h) + clamp(36px, 5vw, 64px)) 0 clamp(40px, 5vw, 64px);
  background: radial-gradient(60% 90% at 80% 0%, var(--gold-glow), transparent 70%);
}
.page-hero::before { content: ""; mask-image: radial-gradient(ellipse 70% 90% at 70% 0%, #000 10%, transparent 70%); -webkit-mask-image: radial-gradient(ellipse 70% 90% at 70% 0%, #000 10%, transparent 70%); }
.page-hero > .container { position: relative; }
.page-hero__title {
  max-width: 18ch;
  margin-bottom: 20px;
  font: 500 clamp(36px, 5vw, 68px)/1.04 var(--font-display);
  letter-spacing: -.04em;
  color: var(--text);
  text-wrap: balance;
}
.page-hero__lead { max-width: 60ch; font-size: clamp(16px, 1.3vw, 19px); color: var(--muted); }

.crumbs { margin-bottom: 28px; }
.crumbs ol { display: flex; flex-wrap: wrap; gap: 6px 0; list-style: none; margin: 0; padding: 0; font-size: 13.5px; color: var(--dim); }
.crumbs li { display: flex; align-items: center; min-width: 0; }
.crumbs li + li::before { content: ""; width: 5px; height: 5px; margin: 0 12px; border-top: 1.5px solid var(--dim); border-right: 1.5px solid var(--dim); transform: rotate(45deg); }
.crumbs a { color: var(--muted); text-decoration: none; transition: color .3s; }
.crumbs a:hover { color: var(--blue-600); }
.crumbs [aria-current] { color: var(--text); }
.crumbs [aria-current] span { max-width: 42ch; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

.filters { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 32px; }
.filters button {
  padding: 10px 18px;
  border: 1px solid var(--line-2);
  border-radius: 999px;
  background: #fff;
  color: var(--muted);
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  transition: background-color .3s, border-color .3s, color .3s, box-shadow .3s;
}
.filters button:hover { border-color: var(--blue-300); color: var(--text); }
.filters button[aria-pressed="true"] { background: var(--blue-500); border-color: var(--blue-500); color: #fff; box-shadow: 0 10px 22px -12px rgba(154, 109, 28, .9); }

.article__title {
  max-width: 24ch;
  margin-bottom: 20px;
  font: 500 clamp(30px, 4.2vw, 54px)/1.1 var(--font-display);
  letter-spacing: -.035em;
  color: var(--text);
  text-wrap: balance;
}
.article__lead { max-width: 62ch; margin-bottom: 26px; font-size: clamp(17px, 1.45vw, 20px); color: var(--muted); }
.article__meta { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 0; font-size: 14px; color: var(--muted); }
.article__meta > :not(:last-child)::after { content: "·"; margin: 0 12px; color: var(--dim); }
.article__cover { aspect-ratio: 21 / 8; margin: 8px 0 clamp(40px, 6vw, 72px); border: 1px solid var(--line); border-radius: clamp(18px, 2.4vw, 28px); }

.article__layout {
  display: grid;
  grid-template-columns: 240px minmax(0, 740px);
  justify-content: space-between;
  gap: clamp(40px, 6vw, 96px);
}
.toc { position: sticky; top: 108px; align-self: start; }
.toc__title { margin-bottom: 14px; font: 500 11px/1 var(--mono); letter-spacing: .14em; text-transform: uppercase; color: var(--dim); }
.toc ol { list-style: none; margin: 0; padding: 0; }
.toc a {
  display: block;
  padding: 8px 0 8px 16px;
  border-left: 2px solid var(--line);
  color: var(--muted);
  font-size: 14px;
  line-height: 1.4;
  text-decoration: none;
  transition: color .3s, border-color .3s;
}
.toc a:hover { color: var(--text); }
.toc a.is-active { border-color: var(--blue-500); color: var(--blue-700); font-weight: 600; }

.prose { font-size: 18px; line-height: 1.75; color: var(--body); }
.prose > :first-child { margin-top: 0; }
.prose h2 { margin: 56px 0 16px; font: 500 clamp(22px, 2.2vw, 30px)/1.25 var(--font-display); letter-spacing: -.025em; color: var(--text); scroll-margin-top: 100px; }
.prose h3 { margin: 32px 0 10px; font: 700 20px/1.35 var(--font); color: var(--text); }
.prose p { margin: 0 0 18px; }
.prose strong { font-weight: 700; color: var(--text); }
.prose ul { list-style: none; margin: 0 0 24px; padding: 0; }
.prose li { position: relative; margin-bottom: 10px; padding-left: 28px; }
.prose li::before { content: ""; position: absolute; left: 5px; top: .68em; width: 8px; height: 8px; border-radius: 50%; background: var(--blue-400); box-shadow: 0 0 0 4px var(--blue-100); }
.callout { margin: 32px 0; padding: 22px 26px; border: 1px solid var(--blue-200); border-left: 4px solid var(--blue-500); border-radius: 16px; background: var(--blue-50); }
.callout p { margin: 0; }
.table-wrap { margin: 24px 0 32px; overflow-x: auto; border: 1px solid var(--line); border-radius: 16px; box-shadow: var(--shadow-sm); }
.prose table { width: 100%; min-width: 600px; border-collapse: collapse; font-size: 15px; line-height: 1.5; }
.prose th, .prose td { padding: 14px 16px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; }
.prose thead th { background: var(--blue-50); color: var(--blue-700); font-size: 13.5px; font-weight: 700; }
.prose tbody th { width: 22%; background: #fefbf4; color: var(--text); font-weight: 700; }
.prose tbody tr:last-child > * { border-bottom: 0; }

.related { margin-top: clamp(72px, 9vw, 120px); padding-bottom: clamp(84px, 10vw, 140px); }
.related .h3 { margin-bottom: 28px; color: var(--text); }
.page-articles .cta-band--inline, .page-clients .cta-band--inline { padding-bottom: clamp(84px, 10vw, 140px); }

/* ==========================================================================
   Footer
   ========================================================================== */
.footer { position: relative; padding: 76px 0 28px; border-top: 1px solid var(--line); background: var(--bg-soft); overflow: hidden; }
.footer__top { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 40px; }
.footer__brand p { max-width: 36ch; margin-top: 22px; font-size: 14.5px; }
.footer__col { display: flex; flex-direction: column; align-items: flex-start; gap: 12px; }
.footer__col h2 { margin-bottom: 6px; font: 500 11px/1 var(--mono); letter-spacing: .14em; text-transform: uppercase; color: var(--dim); }
.footer__col a, .footer__col p { font-size: 14.5px; color: var(--muted); text-decoration: none; transition: color .3s; }
.footer__col a:hover { color: var(--blue-600); }
.footer__word { margin: 80px 0 28px; color: var(--blue-500); opacity: .13; }
.footer__word svg { width: 100%; height: auto; }
.js .footer__word svg { clip-path: inset(100% 0 0 0); transition: clip-path 1.6s var(--ease-io); }
.js .footer__word.in svg { clip-path: inset(0 0 0 0); }
.footer__bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  padding-top: 24px;
  border-top: 1px solid var(--line);
  font-size: 13px;
  color: var(--dim);
}
.to-top { display: inline-flex; align-items: center; gap: 8px; color: var(--muted); text-decoration: none; transition: color .3s; }
.to-top svg { width: 16px; height: 16px; transform: rotate(-90deg); transition: transform .5s var(--ease); }
.to-top:hover { color: var(--blue-600); }
.to-top:hover svg { transform: rotate(-90deg) translateX(3px); }

/* ==========================================================================
   Keyframes
   ========================================================================== */
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes draw { to { stroke-dashoffset: 0; } }
@keyframes fade-in { to { opacity: 1; } }
@keyframes fade-out { to { opacity: 0; } }
@keyframes pop { 0% { transform: scale(0); } 70% { transform: scale(1.25); } 100% { transform: scale(1); } }
@keyframes lm-turn { from { transform: rotate(-70deg) scale(.86); } to { transform: none; } }
@keyframes drift { from { transform: translate(0, 0) scale(1); } to { transform: translate(-6%, 8%) scale(1.12); } }
@keyframes float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-10px); } }
@keyframes blink { 0%, 100% { opacity: 1; } 50% { opacity: .35; } }
@keyframes ping { 0% { transform: scale(1); opacity: .9; } 80%, 100% { transform: scale(3); opacity: 0; } }
@keyframes ripple { 0% { transform: scale(.9); opacity: .9; } 100% { transform: scale(1.7); opacity: 0; } }
@keyframes marquee { to { transform: translateX(-50%); } }
@keyframes cue { 0% { transform: translateY(-100%); } 100% { transform: translateY(260%); } }
@keyframes flow { to { stroke-dashoffset: -20; } }
@keyframes trend { 0% { stroke-dashoffset: 1; opacity: 1; } 55% { stroke-dashoffset: 0; } 85% { stroke-dashoffset: 0; opacity: 1; } 100% { stroke-dashoffset: 0; opacity: 0; } }
@keyframes win { 0%, 100% { fill: rgba(40, 30, 12, .04); } 40%, 60% { fill: rgba(210, 162, 74, .7); } }
@keyframes needle { 0% { transform: rotate(-62deg); } 45% { transform: rotate(18deg); } 60% { transform: rotate(8deg); } 100% { transform: rotate(46deg); } }
@keyframes level { from { transform: scaleY(.45); } to { transform: scaleY(1); } }
@keyframes glow { from { opacity: .25; } to { opacity: 1; } }
@keyframes conveyor { 0% { transform: translateX(0); opacity: 0; } 15%, 85% { opacity: 1; } 100% { transform: translateX(60px); opacity: 0; } }
@keyframes beat { 0%, 100% { transform: scale(1); } 50% { transform: scale(1.7); } }
@keyframes shake { 20%, 60% { transform: translateX(-6px); } 40%, 80% { transform: translateX(6px); } }
@keyframes mflow { to { stroke-dashoffset: -24; } }
@keyframes mfade { from { opacity: 0; } }
@keyframes msteam { from { transform: translateY(0) scale(.6); opacity: .9; } to { transform: translateY(-30px) scale(1.7); opacity: 0; } }
@keyframes mflame { from { transform: scale(calc(var(--fl, 1) * .88), .9); } to { transform: scale(var(--fl, 1), 1.06); } }
@keyframes mrumble { 50% { transform: translate(.6px, -.6px); } }
@keyframes mripple { from { transform: scale(.6); opacity: 1; } to { transform: scale(1.3); opacity: 0; } }
@keyframes mdrop { from { transform: translateY(0); opacity: 1; } to { transform: translateY(28px); opacity: 0; } }

/* ==========================================================================
   Responsive
   ========================================================================== */
@media (max-width: 1280px) {
  .nav { display: none; }
  .burger { display: block; }
  .header__actions { margin-left: auto; }
}

@media (max-width: 1180px) {
  .hero__layout { grid-template-columns: minmax(0, 1fr); }
  .hero__copy { max-width: 760px; }
  .hero__visual { max-width: 640px; width: 100%; margin: 24px auto 0; }
  .hmi { --ry: 0deg; --rx: 0deg; }
  .float-chip--a { left: -16px; }
  .float-chip--b { right: -8px; }
  .scroll-cue { display: none; }
}

@media (max-width: 820px) {
  .scada__hint { display: inline-flex; align-items: center; gap: 8px; }
  .scada__hint::after { content: "→"; font-size: 13px; animation: float 2s ease-in-out infinite; }
}

@media (max-width: 1024px) {
  .sec-head--split { grid-template-columns: minmax(0, 1fr); gap: 20px; }
  .sec-head__aside { justify-self: start; }
  .about__grid { grid-template-columns: minmax(0, 1fr); }
  .about__visual { max-width: 560px; width: 100%; margin-inline: auto; }
  .svc-grid { grid-template-columns: minmax(0, 1fr); max-width: 680px; }
  .svc__list { grid-template-columns: minmax(0, 1fr); }
  .process__layout { grid-template-columns: minmax(0, 1fr); }
  .process__sticky { position: static; }
  .plat-grid, .client-grid, .client-more { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .ai__layout { grid-template-columns: minmax(0, 1fr); }
  .ai__visual { max-width: 640px; width: 100%; margin-inline: auto; }
  .art-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .contact__layout { grid-template-columns: minmax(0, 1fr); }
  .footer__top { grid-template-columns: 1fr 1fr; }
  .footer__brand { grid-column: 1 / -1; }
  .article__layout { grid-template-columns: minmax(0, 1fr); max-width: 760px; }
  .toc { position: static; padding: 20px 22px; border: 1px solid var(--line); border-radius: 16px; background: var(--bg-soft); }
}

@media (max-width: 720px) {
  :root { --header-h: 66px; }
  .header__cta { display: none; }
  .brand__mark { width: 34px; height: 34px; }
  .brand__word { width: 98px; height: 13.5px; }
  .hero { padding: calc(var(--header-h) + 36px) 0 64px; min-height: 0; }
  .hero__ctas { margin-bottom: 40px; }
  .hero__ctas .btn { flex: 1 1 auto; }
  .hero__pillars { grid-template-columns: minmax(0, 1fr); }
  .hero__pillars li, .hero__pillars li + li { flex-direction: row; align-items: baseline; gap: 14px; padding: 14px 0; border-left: 0; border-bottom: 1px solid var(--line); }
  .hero__pillars b { flex: 0 0 96px; }
  .hmi { padding: 10px; border-radius: 20px; }
  .hmi__obj { display: none; }
  .chart { height: 96px; }
  .sys { grid-template-columns: minmax(0, 1fr); }
  .float-chip { display: none; }
  .ticker { flex-direction: column; align-items: stretch; gap: 16px; padding: 20px 0; }
  .ticker__label { padding-left: var(--pad); }
  .features { grid-template-columns: minmax(0, 1fr); }
  .hub__node { gap: 6px; padding: 5px 10px 5px 5px; font-size: 11.5px; }
  .hub__ico { width: 22px; height: 22px; }
  .hub__ico svg { width: 13px; height: 13px; }
  .plat-grid, .client-grid, .client-more, .art-grid { grid-template-columns: minmax(0, 1fr); }
  .plat { min-height: 0; }
  .plat__name { margin-top: 10px; }
  .form__row { grid-template-columns: minmax(0, 1fr); }
  .footer__top { grid-template-columns: minmax(0, 1fr); gap: 32px; }
  .footer__bottom { flex-direction: column; align-items: flex-start; }
  .cta-band__actions { flex-direction: column; }
  .cta-band__phone { text-align: center; }
  .map__links { left: 12px; right: auto; }
  .article__cover { aspect-ratio: 16 / 9; }
  .prose { font-size: 17px; }
  .crumbs [aria-current] span { max-width: 24ch; }
  .scada { border-radius: 18px; }
  .aip__row { grid-template-columns: minmax(0, 1fr); }
  .aip__chart { height: 210px; }
  .aip__lbl--band { display: none; }
  .ai__stack { flex-wrap: wrap; }
  .scada__top { padding: 12px 14px; }
  .scada__top .hmi__id span, .scada__top .hmi__status span { display: none; }
  .scada__foot { flex-direction: column-reverse; align-items: flex-start; padding: 14px 16px 16px; }
  .scada__foot p { font-size: 14.5px; }
}

@media (max-width: 420px) {
  .hub__node span:not(.hub__ico) { max-width: 90px; overflow: hidden; text-overflow: ellipsis; }
  .lang a, .lang__pill { width: 44px; }
  .lang[data-active="kk"] .lang__pill { transform: translateX(44px); }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .001ms !important;
    animation-delay: 0s !important;
    animation-iteration-count: 1 !important;
    transition-duration: .001ms !important;
    transition-delay: 0s !important;
  }
}

/* ==========================================================================
   Content from the admin (assets/js/cms-live.js)
   ========================================================================== */
.cms-preview-bar {
  position: fixed;
  left: 50%; bottom: 16px;
  z-index: 200;
  translate: -50% 0;
  padding: 10px 18px;
  border-radius: 999px;
  background: #c27c0e;
  color: #fff;
  font: 700 13px/1.3 var(--font);
  box-shadow: 0 12px 30px -12px rgba(0, 0, 0, .45);
  pointer-events: none;
}
.acard.is-cms-trim, .client.is-cms-hidden { display: none; }
.acard__cover img, .article__cover img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.article__cover--photo { aspect-ratio: 16 / 8; }
.article__solo { max-width: 760px; margin: 0 auto; }
.article__back { max-width: 760px; margin: 44px auto 0; }
.related-space { height: clamp(84px, 10vw, 140px); }
.prose img { max-width: 100%; height: auto; margin: 22px 0; border-radius: 16px; }
.prose blockquote { margin: 28px 0; padding: 18px 22px; border-left: 4px solid var(--blue-500); border-radius: 14px; background: var(--blue-50); }
.prose ol { margin: 0 0 24px; padding-left: 24px; }
.prose a { color: var(--blue-600); }
.is-loading [data-f="title"] {
  width: min(560px, 90%);
  border-radius: 12px;
  background: linear-gradient(90deg, var(--blue-50), var(--blue-100), var(--blue-50));
  background-size: 200% 100%;
  color: transparent;
  animation: cms-shimmer 1.4s linear infinite;
}
@keyframes cms-shimmer { to { background-position: -200% 0; } }

/* Service landing pages (_build/services.mjs) */
.svcpage__actions { display: flex; flex-wrap: wrap; align-items: center; gap: 18px 28px; margin-top: 28px; }
.svcpage__h { margin: 56px 0 24px; }
.svcpage__h:first-child { margin-top: 0; }
.svcpage__grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.svcpage__card { padding: 24px; border: 1px solid var(--line); border-radius: 18px; background: rgba(255, 255, 255, .7); }
.svcpage__card h3 { margin: 10px 0 8px; font: 500 19px/1.25 var(--font-display); color: var(--text); }
.svcpage__card p { margin: 0; font-size: 15px; color: var(--muted); }
.svcpage__body { max-width: 780px; margin-top: 56px; }
.svcpage__steps { list-style: none; counter-reset: st; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 16px; }
.svcpage__steps li { counter-increment: st; display: grid; gap: 6px; padding: 20px; border-radius: 16px; background: rgba(255, 255, 255, .7); border: 1px solid var(--line); }
.svcpage__steps li::before { content: "0" counter(st); font: 600 13px/1 var(--mono, monospace); color: var(--blue-600); }
.svcpage__steps b { color: var(--text); }
.svcpage__steps span { font-size: 14.5px; color: var(--muted); }
.svcpage__faq { max-width: 860px; display: grid; gap: 10px; }
.svcpage__faq details { border: 1px solid var(--line); border-radius: 14px; background: rgba(255, 255, 255, .7); padding: 0 20px; }
.svcpage__faq summary { cursor: pointer; padding: 18px 0; font-weight: 700; color: var(--text); list-style-position: outside; }
.svcpage__faq p { margin: 0 0 18px; color: var(--body); }
@media (max-width: 1080px) { .svcpage__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } .svcpage__steps { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 640px) { .svcpage__grid, .svcpage__steps { grid-template-columns: minmax(0, 1fr); } }

/* Rating pages (_build/ratings.mjs) */
.rate { padding-bottom: 40px; }
.rate > * { max-width: 980px; }
.rate > .cta-band { max-width: none; }
.rate h2 { margin: 48px 0 16px; font: 500 clamp(24px, 2.4vw, 32px)/1.2 var(--font-display); color: var(--text); }
.rate h3 { margin: 22px 0 8px; font-size: 17px; color: var(--text); }
.rate p, .rate li { font-size: 16.5px; line-height: 1.65; color: var(--body); }
.rate ul, .rate ol { padding-left: 22px; display: grid; gap: 6px; }
.rate a { color: var(--blue-700); text-decoration: underline; text-underline-offset: 3px; }
.rate .btn { text-decoration: none; }
.rate__intro { font-size: 18px !important; margin-top: 8px; }
.rate__note { margin: 20px 0; padding: 18px 20px; border-left: 3px solid var(--blue-400); border-radius: 12px; background: rgba(255, 255, 255, .75); font-size: 15px; line-height: 1.6; color: var(--body); }
.rate__quick { padding: 22px 24px; border: 1px solid var(--line); border-radius: 18px; background: rgba(255, 255, 255, .75); }
.rate__quick h2 { margin-top: 0; }
.rate__table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: 16px; background: rgba(255, 255, 255, .75); }
.rate__table { width: 100%; min-width: 820px; border-collapse: collapse; font-size: 14.5px; }
.rate__table th, .rate__table td { padding: 12px 14px; text-align: left; vertical-align: top; border-bottom: 1px solid var(--line); }
.rate__table thead th { font-size: 12.5px; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); }
.rate__table tbody th { position: sticky; left: 0; background: #fffdf8; }
.rate__table tr.is-own td, .rate__table tr.is-own th { background: #fbf3df; }
.rate__toc { margin-top: 32px; }
.rate__toc ol { display: flex; flex-wrap: wrap; gap: 8px 18px; list-style: decimal inside; padding: 0; }
.rate__w { display: inline-block; margin-left: 6px; padding: 1px 8px; border-radius: 999px; background: #fbf3df; font-size: 12.5px; font-weight: 700; }
.rate-card { margin-top: 40px; padding: 26px; border: 1px solid var(--line); border-radius: 22px; background: rgba(255, 255, 255, .8); scroll-margin-top: 90px; }
.rate-card--own { border: 2px solid var(--blue-400); box-shadow: var(--shadow); }
.rate-card__head { display: flex; gap: 18px; align-items: flex-start; }
.rate-card__place { flex: none; display: grid; place-items: center; width: 48px; height: 48px; border-radius: 50%; background: var(--grad); color: #fff; font: 600 20px/1 var(--font-display); }
.rate-card h2 { margin: 4px 0 6px; }
.rate-card__badge { display: inline-block; padding: 4px 10px; border-radius: 999px; background: #fbf3df; font-size: 12.5px; font-weight: 700; color: #7a5a12; }
.rate-card__verdict { margin: 0; font-weight: 600; color: var(--text) !important; }
.rate-facts { margin-top: 18px; width: 100%; border-collapse: collapse; font-size: 15px; }
.rate-facts th, .rate-facts td { padding: 8px 0; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; }
.rate-facts th { width: 34%; padding-right: 16px; font-weight: 600; color: var(--muted); }
.rate-pc { display: grid; grid-template-columns: 1fr 1fr; gap: 0 28px; }
.rate-card__who { margin-top: 18px; }
.rate-card__actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 18px; }
.rate__sources ul { grid-template-columns: repeat(2, minmax(0, 1fr)); }
@media (max-width: 720px) { .rate-pc, .rate__sources ul { grid-template-columns: minmax(0, 1fr); } .rate-card { padding: 20px; } .rate-card__head { gap: 12px; } .rate-card__place { width: 40px; height: 40px; font-size: 17px; } }

/* Client testimonial and map link (/clients/) */
.client__body { grid-template-rows: auto auto 1fr auto; }
.client__quote { margin: 4px 0 0; padding: 14px 16px; border-left: 3px solid var(--blue-400); border-radius: 0 10px 10px 0; background: var(--blue-50, #f3f6fb); }
.client__quote blockquote { margin: 0; }
.client__quote p { margin: 0; font-size: 14.5px; line-height: 1.55; color: var(--muted); }
.client__quote p::before { content: "«"; } .client__quote p::after { content: "»"; }
.client__quote figcaption { margin-top: 8px; font: 12px/1.3 var(--mono); color: var(--dim); }
.client__quote.is-draft { outline: 2px dashed #e0a100; outline-offset: 2px; }
.client__map { display: inline-flex; align-items: center; gap: 6px; justify-self: start; align-self: end; font-size: 14px; font-weight: 600; color: var(--blue-500); text-decoration: none; }
.client__map:hover span { text-decoration: underline; }
.client__quote figcaption b { font-weight: 600; color: var(--text); }
