/* SCADA Lab — mobile-first stylesheet (mockup v2, 24.11.2026) */
:root {
  --navy-950: #061a29;
  --navy-900: #08263b;
  --navy: #0b3a53;
  --navy-700: #12506f;
  --cyan: #5cc6d3;
  --cyan-300: #8fdbe4;
  --teal: #1d8a99;
  --teal-ink: #0f6a76;
  --ink: #13212c;
  --muted: #5a6b7b;
  --line: #e1e8ee;
  --band: #f4f8fa;
  --white: #ffffff;
  --amber-bg: #fff6d8;
  --amber-line: #f2c14e;
  --amber: #f5b82e;
  --amber-ink: #4d3800;
  --radius: 14px;
  --radius-sm: 10px;
  --max: 1120px;
  --gutter: 20px;
  --shadow: 0 1px 2px rgba(8, 38, 59, .06), 0 8px 24px rgba(8, 38, 59, .08);
  --font: -apple-system, BlinkMacSystemFont, "SF Pro Text", system-ui, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font);
  font-size: 16.5px;
  line-height: 1.6;
  color: var(--ink);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
}
img, svg { display: block; }
a { color: var(--teal-ink); text-underline-offset: 3px; }
a:hover { color: var(--navy); }
:focus-visible { outline: 3px solid var(--cyan); outline-offset: 2px; border-radius: 6px; }
.wrap { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 var(--gutter); }
.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.ico { width: 22px; height: 22px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
section[id], #pilot { scroll-margin-top: 72px; }

/* ---------- Header ---------- */
.top {
  position: sticky; top: 0; z-index: 50;
  background: rgba(6, 26, 41, .92);
  -webkit-backdrop-filter: saturate(160%) blur(12px);
  backdrop-filter: saturate(160%) blur(12px);
  border-bottom: 1px solid rgba(255, 255, 255, .08);
}
.top-row { display: flex; align-items: center; justify-content: space-between; height: 60px; gap: 16px; }
.logo { min-height: 44px; display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--white); font-weight: 700; font-size: 19px; letter-spacing: -.01em; }
.logo:hover { color: var(--white); }
.logo .mark { width: 34px; height: 34px; border-radius: 9px; box-shadow: 0 0 0 1px rgba(92, 198, 211, .35); }
.logo b { font-weight: 700; }
.logo i { font-style: normal; font-weight: 500; color: var(--cyan); }
.nav { display: none; }
.menu-btn {
  display: inline-flex; align-items: center; gap: 8px;
  height: 40px; padding: 0 14px; border-radius: 999px;
  background: rgba(255, 255, 255, .08); color: var(--white);
  border: 1px solid rgba(255, 255, 255, .14);
  font: 600 15px var(--font); cursor: pointer;
}
.menu-btn .ico { width: 20px; height: 20px; }
.menu-btn .i-close { display: none; }
.menu-open .menu-btn .i-close { display: block; }
.menu-open .menu-btn .i-menu { display: none; }
.sheet {
  display: none;
  position: absolute; left: 0; right: 0; top: 60px;
  background: var(--navy-950);
  border-bottom: 1px solid rgba(255, 255, 255, .1);
  padding: 8px var(--gutter) 20px;
  box-shadow: 0 24px 48px rgba(0, 0, 0, .35);
}
.menu-open .sheet { display: block; }
.sheet a { display: flex; align-items: center; justify-content: space-between; min-height: 54px; color: var(--white); text-decoration: none; font-size: 18px; font-weight: 600; border-bottom: 1px solid rgba(255, 255, 255, .08); }
.sheet a .ico { color: var(--cyan); width: 18px; height: 18px; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 52px; padding: 0 22px; border-radius: 12px;
  font: 650 16.5px/1.2 var(--font); text-decoration: none; cursor: pointer;
  border: 1.5px solid transparent; transition: background .15s, color .15s, border-color .15s, transform .15s;
}
.btn:active { transform: translateY(1px); }
.btn .ico { width: 20px; height: 20px; }
.btn-primary { background: var(--cyan); color: var(--navy-950); }
.btn-primary:hover { background: var(--cyan-300); color: var(--navy-950); }
.btn-navy { background: var(--navy); color: var(--white); }
.btn-navy:hover { background: var(--navy-700); color: var(--white); }
.btn-ghost { background: transparent; color: var(--white); border-color: rgba(255, 255, 255, .35); }
.btn-ghost:hover { background: rgba(255, 255, 255, .08); color: var(--white); border-color: var(--white); }
.btn-outline { background: var(--white); color: var(--navy); border-color: var(--line); }
.btn-outline:hover { border-color: var(--navy); color: var(--navy); }
.btn-amber { background: var(--amber); color: var(--navy-950); }
.btn-amber:hover { background: #ffc94d; color: var(--navy-950); }

/* ---------- Hero ---------- */
.hero {
  position: relative; overflow: hidden; color: var(--white);
  background:
    radial-gradient(120% 70% at 85% 0%, rgba(29, 138, 153, .35) 0%, rgba(29, 138, 153, 0) 60%),
    linear-gradient(180deg, var(--navy-950) 0%, var(--navy-900) 55%, var(--navy) 100%);
  padding: 36px 0 100px;
}
.hero::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background-image: radial-gradient(rgba(143, 219, 228, .16) 1px, transparent 1px);
  background-size: 22px 22px;
  -webkit-mask-image: linear-gradient(180deg, #000 0%, transparent 85%);
  mask-image: linear-gradient(180deg, #000 0%, transparent 85%);
}
.hero .wrap { position: relative; }
.chip {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 6px 12px; border-radius: 999px;
  background: rgba(92, 198, 211, .12); border: 1px solid rgba(92, 198, 211, .35);
  color: var(--cyan-300); font-size: 13px; font-weight: 600; letter-spacing: .02em;
}
.chip .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--cyan); box-shadow: 0 0 0 4px rgba(92, 198, 211, .2); }
.hero h1 {
  margin: 18px 0 16px;
  font-size: clamp(34px, 9vw, 58px); line-height: 1.08; letter-spacing: -.025em; font-weight: 750;
  max-width: 14ch;
}
.hero h1 em { font-style: normal; color: var(--cyan); }
.hero .lead { margin: 0 0 26px; font-size: 17.5px; line-height: 1.6; color: rgba(255, 255, 255, .78); max-width: 620px; }
.hero .cta { display: grid; gap: 12px; margin: 0 0 24px; }

/* UK notice — yellow info card */
.uk {
  display: flex; gap: 14px; align-items: flex-start;
  padding: 16px; border-radius: var(--radius);
  background: var(--amber-bg); color: var(--amber-ink);
  border: 1.5px solid var(--amber-line);
  box-shadow: 0 10px 30px rgba(0, 0, 0, .25);
  max-width: 560px;
}
.uk .badge { flex: none; width: 42px; height: 42px; border-radius: 12px; background: var(--amber); color: var(--navy-950); display: grid; place-items: center; }
.uk .badge .ico { width: 22px; height: 22px; stroke-width: 2; }
.uk .label { display: block; font-size: 12px; font-weight: 750; letter-spacing: .08em; text-transform: uppercase; color: #8a6400; }
.uk strong { display: block; font-size: 17px; line-height: 1.35; color: #2e2200; margin: 2px 0 4px; }
.uk p { margin: 0; font-size: 15px; line-height: 1.5; }
.uk a { color: #2e2200; font-weight: 700; text-decoration-thickness: 2px; text-decoration-color: var(--amber); }

.waves { position: absolute; left: 0; right: 0; bottom: 0; height: 90px; width: 100%; color: var(--cyan); pointer-events: none; }

/* Trust strip: the last block of Services */
.trust { margin-top: 28px; }
.trust ul {
  list-style: none; margin: 0; padding: 6px 18px;
  background: var(--white); border-radius: var(--radius); box-shadow: var(--shadow);
  border: 1px solid var(--line);
}
.trust li { display: flex; gap: 14px; align-items: center; padding: 14px 0; border-bottom: 1px solid var(--line); font-size: 15.5px; line-height: 1.4; }
.trust li:last-child { border-bottom: 0; }
.trust li b { display: block; color: var(--navy); font-size: 16px; }
.trust li span { color: var(--muted); }
.trust .tile { flex: none; width: 40px; height: 40px; border-radius: 11px; display: grid; place-items: center; background: #e7f6f8; color: var(--teal-ink); }

/* ---------- Sections ---------- */
.section { padding: 64px 0; }
.band { background: var(--band); }
.eyebrow { margin: 0 0 10px; font-size: 13px; font-weight: 750; letter-spacing: .1em; text-transform: uppercase; color: var(--teal); }
h2 { margin: 0 0 12px; font-size: clamp(27px, 6.6vw, 40px); line-height: 1.15; letter-spacing: -.02em; color: var(--navy-950); font-weight: 750; }
h3 { margin: 0 0 6px; font-size: 18px; line-height: 1.3; color: var(--navy-950); font-weight: 700; }
.sub { margin: 0 0 28px; color: var(--muted); font-size: 17px; max-width: 640px; }

/* Services */
.cards { display: grid; gap: 12px; }
.card {
  display: flex; gap: 16px; align-items: flex-start;
  background: var(--white); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 18px;
}
.card .tile { flex: none; width: 46px; height: 46px; border-radius: 12px; display: grid; place-items: center; background: var(--navy); color: var(--cyan); }
.card p { margin: 0; color: var(--muted); font-size: 15.5px; line-height: 1.55; }
.platforms { margin-top: 28px; }
.platforms .k, .trust .k { margin: 0 0 12px; font-weight: 700; color: var(--navy-950); }
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 14px; padding: 0; list-style: none; }
.chips li { padding: 7px 12px; border-radius: 999px; background: var(--white); border: 1px solid var(--line); font-size: 14px; font-weight: 600; color: var(--navy); }
.platforms .note { margin: 0; color: var(--muted); font-size: 15px; }

/* Steps timeline */
.steps { list-style: none; margin: 0 0 32px; padding: 0; counter-reset: s; }
.steps li { position: relative; counter-increment: s; padding: 0 0 26px 58px; }
.steps li::before {
  content: counter(s); position: absolute; left: 0; top: -2px;
  width: 40px; height: 40px; border-radius: 12px;
  display: grid; place-items: center;
  background: var(--navy); color: var(--white); font-weight: 750; font-size: 17px;
}
.steps li::after { content: ""; position: absolute; left: 19.5px; top: 44px; bottom: 4px; width: 1.5px; background: linear-gradient(var(--line), var(--line)); }
.steps li:last-child { padding-bottom: 0; }
.steps li:last-child::after { display: none; }
.steps h3 { margin: 6px 0 4px; }
.steps p { margin: 0; color: var(--muted); font-size: 15.5px; }

.pilot {
  position: relative; overflow: hidden;
  padding: 26px 22px; border-radius: 18px; color: var(--white);
  background: linear-gradient(135deg, var(--navy) 0%, var(--teal-ink) 100%);
  margin-bottom: 16px;
}
.pilot .eyebrow { color: var(--cyan-300); }
.pilot h3 { color: var(--white); font-size: 24px; margin-bottom: 8px; letter-spacing: -.01em; }
.pilot p { margin: 0 0 20px; color: rgba(255, 255, 255, .85); font-size: 16.5px; }
.pilot .btn { width: 100%; }
.pilot svg.bg { position: absolute; right: -50px; top: -18px; width: 220px; height: 120px; color: rgba(143, 219, 228, .18); }
.pilot > :not(svg) { position: relative; }

.honest { display: flex; gap: 14px; padding: 20px; border-radius: var(--radius); background: var(--band); border: 1px solid var(--line); }
.honest .tile { flex: none; width: 40px; height: 40px; border-radius: 11px; display: grid; place-items: center; background: var(--white); color: var(--navy); border: 1px solid var(--line); }
.honest p { margin: 0; color: var(--muted); font-size: 15.5px; }

/* Beyond water */
.beyond { background: var(--navy-950); color: var(--white); position: relative; overflow: hidden; }
.beyond h2 { color: var(--white); }
.beyond .eyebrow { color: var(--cyan); }
.beyond .sub { color: rgba(255, 255, 255, .72); }
.mini { display: grid; gap: 12px; }
.mini article { padding: 18px; border-radius: var(--radius); background: rgba(255, 255, 255, .05); border: 1px solid rgba(255, 255, 255, .1); display: flex; gap: 14px; }
.mini .tile { flex: none; width: 42px; height: 42px; border-radius: 12px; display: grid; place-items: center; background: rgba(92, 198, 211, .14); color: var(--cyan); }
.mini h3 { color: var(--white); font-size: 17px; }
.mini p { margin: 0; color: rgba(255, 255, 255, .7); font-size: 15px; line-height: 1.55; }
.beyond .more { margin-top: 22px; }
.beyond .more a { color: var(--cyan-300); font-weight: 650; display: inline-flex; gap: 8px; align-items: center; text-decoration: none; min-height: 44px; }
.beyond .more a:hover { color: var(--white); }
.beyond .more .ico { width: 18px; height: 18px; }

/* Team */
.team { display: grid; gap: 16px; }
.person { background: var(--white); border: 1px solid var(--line); border-radius: 18px; padding: 22px 20px; box-shadow: var(--shadow); }
.person-head { display: flex; gap: 14px; align-items: center; margin-bottom: 16px; }
.avatar {
  flex: none; width: 64px; height: 64px; border-radius: 50%;
  display: grid; place-items: center;
  background: linear-gradient(135deg, var(--navy) 0%, var(--teal) 100%);
  color: var(--white); font-weight: 750; font-size: 21px; letter-spacing: .02em;
  box-shadow: 0 0 0 3px var(--white), 0 0 0 5px #d7eef2;
}
.person h3 { font-size: 21px; margin: 0; }
.person .role { margin: 2px 0 0; color: var(--teal-ink); font-weight: 650; font-size: 15px; line-height: 1.35; }
.stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin: 0 0 16px; }
.stats div { background: var(--band); border-radius: 12px; padding: 10px 8px; text-align: center; }
.stats b { display: block; font-size: 19px; line-height: 1.2; color: var(--navy-950); letter-spacing: -.01em; }
.stats span { display: block; font-size: 12px; line-height: 1.3; color: var(--muted); margin-top: 2px; }
.person ul { margin: 0 0 12px; padding-left: 18px; }
.person li { margin-bottom: 8px; font-size: 15.5px; }
.person li::marker { color: var(--teal); }
.person details { border-top: 1px solid var(--line); padding-top: 12px; margin-top: 4px; }
.person summary { cursor: pointer; font-weight: 650; color: var(--teal-ink); list-style: none; display: flex; align-items: center; gap: 6px; min-height: 44px; }
.person summary::-webkit-details-marker { display: none; }
.person summary::after { content: "+"; font-size: 20px; line-height: 1; margin-left: auto; color: var(--muted); }
.person details[open] summary::after { content: "–"; }
.person details ul { margin-top: 10px; }
.person-foot { display: flex; flex-wrap: wrap; gap: 8px 12px; align-items: center; margin-top: 12px; font-size: 14.5px; color: var(--muted); }
.person-foot .loc { display: inline-flex; align-items: center; gap: 6px; }
.person-foot .loc .ico { width: 16px; height: 16px; }
.person-links { display: flex; gap: 6px; margin-top: 14px; }
.person-links a { flex: 1; min-width: 0; white-space: nowrap; display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 44px; border-radius: 10px; border: 1px solid var(--line); text-decoration: none; font-weight: 650; font-size: 15px; color: var(--navy); }
.person-links a:hover { border-color: var(--navy); }
.person-links .ico { width: 18px; height: 18px; }

/* Contact */
.contact { background: linear-gradient(180deg, var(--navy-900), var(--navy-950)); color: var(--white); }
.contact h2 { color: var(--white); }
.contact .eyebrow { color: var(--cyan); }
.contact .sub { color: rgba(255, 255, 255, .75); }
.contact .cta { display: grid; gap: 12px; margin-bottom: 26px; }
.contact .mail-big { font-size: 18px; }
.people { display: grid; gap: 10px; margin: 0 0 22px; padding: 0; list-style: none; }
.people li { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 14px 16px; border-radius: 12px; background: rgba(255, 255, 255, .05); border: 1px solid rgba(255, 255, 255, .1); }
.people b { display: block; font-size: 16px; }
.people a { color: var(--cyan-300); font-size: 15px; word-break: break-all; }
.people a:not(.in) { display: inline-flex; align-items: center; min-height: 44px; margin: -12px 0; }
.people .in { flex: none; width: 40px; height: 40px; border-radius: 10px; display: grid; place-items: center; background: rgba(255, 255, 255, .08); color: var(--white); text-decoration: none; font-weight: 800; font-size: 15px; }
.uk-mini { display: inline-flex; align-items: center; gap: 10px; padding: 10px 14px; border-radius: 12px; background: var(--amber-bg); color: var(--amber-ink); border: 1.5px solid var(--amber-line); font-size: 14.5px; font-weight: 600; }
.uk-mini .ico { width: 18px; height: 18px; color: #8a6400; }

.uk-mini.uk-mini-sm { padding: 4px 10px; font-size: 13px; }

/* Footer */
.foot { background: var(--navy-950); color: rgba(255, 255, 255, .55); font-size: 13.5px; padding: 26px 0 calc(100px + env(safe-area-inset-bottom)); border-top: 1px solid rgba(255, 255, 255, .08); }
.foot p { margin: 4px 0; }
.foot a { color: rgba(255, 255, 255, .8); display: inline-block; padding: 8px 0; }

/* Mobile sticky action bar */
.actionbar {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 40;
  display: grid; grid-template-columns: 1fr 1fr; gap: 10px;
  padding: 10px var(--gutter) calc(10px + env(safe-area-inset-bottom));
  background: rgba(255, 255, 255, .94);
  -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px);
  border-top: 1px solid var(--line);
  box-shadow: 0 -8px 24px rgba(8, 38, 59, .1);
  transform: translateY(110%); transition: transform .25s ease;
}
.actionbar.show { transform: none; }
.actionbar .btn { min-height: 48px; padding: 0 12px; font-size: 15.5px; }

/* Prose (privacy page) */
.prose { max-width: 760px; padding-top: 40px; padding-bottom: 64px; }
.prose h1 { font-size: clamp(30px, 7vw, 42px); line-height: 1.15; letter-spacing: -.02em; color: var(--navy-950); margin: 0 0 6px; }
.prose h2 { font-size: 21px; margin: 32px 0 8px; }
.prose .muted { color: var(--muted); }

/* Simple pages (privacy) */
.back { color: rgba(255, 255, 255, .85); text-decoration: none; font-weight: 600; font-size: 15px; padding: 8px 12px; border-radius: 999px; border: 1px solid rgba(255, 255, 255, .16); }
.back:hover { color: var(--white); border-color: rgba(255, 255, 255, .4); }
.prose ul { padding-left: 20px; }
.prose li { margin-bottom: 8px; }
.foot.foot-plain { padding-bottom: calc(28px + env(safe-area-inset-bottom)); }

/* Case study page */
.case .eyebrow { margin-bottom: 8px; }
.case-lead { margin: 10px 0 22px; color: var(--muted); font-size: 18px; line-height: 1.6; }
.case-stats { display: grid; grid-template-columns: repeat(2, 1fr); gap: 8px; margin: 0 0 8px; }
.case-stats div { padding: 12px 10px; border-radius: 12px; background: var(--band); text-align: center; }
.case-stats b { display: block; color: var(--navy-950); font-size: 22px; line-height: 1.2; letter-spacing: -.01em; }
.case-stats span { display: block; margin-top: 2px; color: var(--muted); font-size: 13px; line-height: 1.35; }
.case .ticks, .case .chips { padding-left: 0; }
.case .ticks li { margin-bottom: 9px; font-size: inherit; }
.print-only { display: none; }
.case .chips { margin: 12px 0 0; }
.case .chips li { margin: 0; font-size: 13px; }
.levels { display: grid; gap: 22px; margin: 14px 0 18px; padding: 0; list-style: none; }
.levels > li { position: relative; margin: 0; padding: 16px 18px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--white); box-shadow: var(--shadow); }
.levels > li + li::before { content: ""; position: absolute; left: 50%; top: -23px; height: 22px; border-left: 2px dashed var(--teal); }
.levels b { display: block; color: var(--navy-950); font-size: 17px; }
.levels p { margin: 4px 0 0; color: var(--muted); font-size: 15.5px; line-height: 1.5; }
.lvl-n { display: block; margin-bottom: 2px; color: var(--teal-ink); font-size: 12.5px; font-weight: 750; letter-spacing: .1em; text-transform: uppercase; }
.case-cta { display: flex; flex-wrap: wrap; gap: 12px; margin: 36px 0 24px; padding: 20px; border-radius: var(--radius); background: var(--navy-950); color: rgba(255, 255, 255, .78); }
.case-cta > div { flex: 1 1 100%; }
.case-cta h2 { margin: 0 0 6px; color: var(--white); }
.case-cta p { margin: 0; }
.case-source { color: var(--muted); font-size: 14.5px; line-height: 1.55; }
.case-print { display: block; margin-top: 12px; padding: 8px 14px; border: 1px solid var(--line); border-radius: 999px; background: var(--white); color: var(--navy); font: 600 14px var(--font); cursor: pointer; }
.case-print:hover { border-color: var(--navy); }
@media (min-width: 600px) {
  .case-stats { grid-template-columns: repeat(4, 1fr); }
}
@media print {
  .case-page .top, .case-page .foot, .case-cta, .case-print { display: none !important; }
  .print-only { display: block; margin: 0 0 18px; padding-bottom: 8px; border-bottom: 1px solid var(--line); color: var(--navy); font-size: 13px; font-weight: 700; }
  .case-page .prose { padding-top: 0; padding-bottom: 0; }
  .case-lead, .case h2 { break-after: avoid; }
  .levels > li, .case-stats div { break-inside: avoid; box-shadow: none; }
  .case-stats div { border: 1px solid var(--line); }
  .case a { color: inherit; }
}

/* Team photos: replace <span class="avatar">SV</span> with <img class="avatar" src="/img/svetlana.jpg" alt="Svetlana Volosova" width="64" height="64"> */
img.avatar { display: block; object-fit: cover; background: var(--band); }

/* Narrow phones (360px Android): keep action bar labels on one line */
@media (max-width: 380px) {
  .actionbar { gap: 8px; }
  .actionbar .btn { font-size: 14.5px; gap: 6px; padding: 0 8px; white-space: nowrap; }
  .actionbar .btn .ico { width: 18px; height: 18px; }
}

/* WhatsApp */
.ico.ico-fill { stroke: none; }
.btn-wa { background: #25d366; color: #052e1a; }
.btn-wa:hover { background: #3ee07a; color: #052e1a; }
.person-links { flex-wrap: wrap; }
.person-links a.wa-link { flex-basis: 100%; order: 3; border-color: #bfe9cf; background: #f2fbf5; }
.person-links a.wa-link .ico { color: #1fa855; }

/* Email toast (app.js) */
.toast {
  position: fixed; left: 50%; bottom: calc(84px + env(safe-area-inset-bottom)); z-index: 60;
  transform: translate(-50%, 16px); opacity: 0; pointer-events: none;
  width: max-content; max-width: calc(100% - 24px);
  display: flex; flex-wrap: wrap; align-items: center; gap: 4px 12px;
  padding: 12px 44px 12px 16px; border-radius: 14px;
  background: var(--navy-950); color: var(--white); font-size: 14.5px; line-height: 1.4;
  box-shadow: 0 12px 32px rgba(0, 0, 0, .3); transition: opacity .2s, transform .2s;
}
.toast.show { opacity: 1; transform: translate(-50%, 0); pointer-events: auto; }
.toast-msg b { color: var(--cyan-300); word-break: break-all; }
.toast-actions { color: rgba(255, 255, 255, .75); }
.toast-actions a { color: var(--white); font-weight: 700; display: inline-block; padding: 6px 2px; }
.toast-close { position: absolute; right: 6px; top: 50%; transform: translateY(-50%); width: 36px; height: 36px; border: 0; border-radius: 10px; background: transparent; color: rgba(255, 255, 255, .7); font-size: 22px; cursor: pointer; }
.toast-close:hover { color: var(--white); background: rgba(255, 255, 255, .08); }
@media (min-width: 900px) { .toast { bottom: 28px; } }

/* After the UK trip (flags.js adds .uk-over from 1 Feb 2027) */
.uk-over .uk, .uk-over .uk-mini { display: none !important; }

/* ---------- Larger screens ---------- */
@media (min-width: 600px) {
  :root { --gutter: 28px; }
  .hero .cta, .contact .cta { display: flex; flex-wrap: wrap; }
  .pilot .btn { width: auto; }
  .stats b { font-size: 22px; }
}

/* Tablets in portrait (iPad 744-834 px): two columns instead of one stretched phone column */
@media (min-width: 700px) {
  .dirs, .cards, .team, .mini { grid-template-columns: repeat(2, 1fr); }
  .trust ul { display: grid; grid-template-columns: repeat(3, 1fr); padding: 6px 8px; }
  .trust li { border-bottom: 0; border-right: 1px solid var(--line); }
  .trust li:last-child { border-right: 0; }
  .contact-grid { display: grid; grid-template-columns: 1.1fr 1fr; gap: 32px; align-items: start; }
  .actionbar { padding-left: max(var(--gutter), calc(50% - 290px)); padding-right: max(var(--gutter), calc(50% - 290px)); }
}
@media (min-width: 700px) and (max-width: 899px) {
  .cards > .card:last-child:nth-child(odd) { grid-column: 1 / -1; }
  .team, .mini { align-items: start; }
  .trust li { flex-direction: column; align-items: flex-start; gap: 10px; padding: 16px 14px; }
}

@media (min-width: 900px) {
  body { font-size: 17px; }
  .top-row { height: 68px; }
  .menu-btn, .sheet { display: none !important; }
  .nav { display: flex; align-items: center; gap: 26px; }
  .nav a { color: rgba(255, 255, 255, .78); text-decoration: none; font-size: 15px; font-weight: 550; white-space: nowrap; }
  .logo { white-space: nowrap; }
  .nav a:hover { color: var(--white); }
  .nav .btn { min-height: 40px; padding: 0 16px; font-size: 15px; color: var(--navy-950); }
  section[id], #pilot { scroll-margin-top: 84px; }

  .hero { padding: 84px 0 140px; }
  .hero-grid { display: grid; grid-template-columns: 1.35fr 1fr; gap: 56px; align-items: end; }
  .hero h1 { max-width: 18ch; font-size: 56px; }
  .uk { padding: 20px; }
  .waves { height: 130px; }

  .trust ul { display: grid; grid-template-columns: repeat(3, 1fr); padding: 6px 8px; }
  .trust li { border-bottom: 0; border-right: 1px solid var(--line); padding: 20px 20px; }
  .trust li:last-child { border-right: 0; }

  .section { padding: 96px 0; }
  .cards { grid-template-columns: repeat(3, 1fr); gap: 16px; }
  /* five cards: three, then two wider ones, with no empty slot */
  .cards:not(.cards-4) { grid-template-columns: repeat(6, 1fr); }
  .cards:not(.cards-4) > .card { grid-column: span 2; }
  .cards:not(.cards-4) > .card:nth-last-child(2):nth-child(3n+1),
  .cards:not(.cards-4) > .card:last-child:nth-child(3n+2) { grid-column: span 3; }
  .card { flex-direction: column; padding: 24px; }
  .how-grid { display: grid; grid-template-columns: 1.1fr 1fr; gap: 56px; align-items: start; }
  .mini { grid-template-columns: repeat(2, 1fr); gap: 16px; }
  .team { grid-template-columns: repeat(2, 1fr); gap: 24px; align-items: start; }
  .person { padding: 28px; }
  .contact-grid { display: grid; grid-template-columns: 1.2fr 1fr; gap: 56px; align-items: start; }
  .person-links a.wa-link { flex-basis: 0; order: 0; }
  .actionbar { display: none; }
  .foot { padding-bottom: 28px; }
}
@media (min-width: 900px) and (max-width: 1099px) {
  .nav { gap: 16px; }
  .nav a { font-size: 14px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; }
}

/* ---------- Sections: /scada and /data (26.11.2026) ---------- */
.nav a[aria-current="page"] { color: var(--white); box-shadow: inset 0 -2px 0 var(--cyan); padding: 6px 0; }
.sheet a[aria-current="page"] { color: var(--cyan-300); }

.page-hero {
  position: relative; overflow: hidden; color: var(--white);
  background:
    radial-gradient(120% 80% at 85% 0%, rgba(29, 138, 153, .35) 0%, rgba(29, 138, 153, 0) 60%),
    linear-gradient(180deg, var(--navy-950) 0%, var(--navy-900) 70%, var(--navy) 100%);
  padding: 40px 0 44px;
}
.page-hero::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background-image: radial-gradient(rgba(143, 219, 228, .14) 1px, transparent 1px);
  background-size: 22px 22px;
  -webkit-mask-image: linear-gradient(180deg, #000 0%, transparent 90%);
  mask-image: linear-gradient(180deg, #000 0%, transparent 90%);
}
.page-hero .wrap { position: relative; }
.page-hero .eyebrow { color: var(--cyan); }
.page-hero h1 { margin: 0 0 14px; max-width: 860px; font-size: clamp(31px, 8vw, 50px); line-height: 1.1; letter-spacing: -.025em; font-weight: 750; }
.page-hero h1 em { font-style: normal; color: var(--cyan); }
.page-hero .lead { margin: 0 0 24px; max-width: 680px; color: rgba(255, 255, 255, .78); font-size: 17.5px; }
.page-hero .cta { display: grid; gap: 12px; }

/* Home: two directions */
.dirs { display: grid; gap: 16px; }
.dir { display: flex; flex-direction: column; overflow: hidden; border: 1px solid var(--line); border-radius: 18px; background: var(--white); box-shadow: var(--shadow); color: inherit; text-decoration: none; transition: transform .15s, box-shadow .15s; }
.dir:hover { color: inherit; transform: translateY(-2px); box-shadow: 0 2px 4px rgba(8, 38, 59, .06), 0 14px 32px rgba(8, 38, 59, .14); }
.dir-art { display: block; height: 150px; background: linear-gradient(135deg, var(--navy-950) 0%, var(--navy) 100%); }
.dir-art svg { width: 100%; height: 100%; }
.dir-body { display: block; padding: 20px 22px 22px; }
.dir-k { display: block; margin-bottom: 6px; font-size: 12.5px; font-weight: 750; letter-spacing: .08em; text-transform: uppercase; color: var(--teal); }
.dir h3 { font-size: 22px; letter-spacing: -.01em; }
.dir p { margin: 0 0 14px; color: var(--muted); font-size: 15.5px; }
.dir .go { display: inline-flex; align-items: center; gap: 8px; color: var(--teal-ink); font-weight: 700; }
.dir .go .ico { width: 18px; height: 18px; }
.art-water { fill: rgba(92, 198, 211, .35); }
.art-line { fill: none; stroke: rgba(143, 219, 228, .7); stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; }
.art-thin { fill: none; stroke: rgba(143, 219, 228, .35); stroke-width: 2; }
.art-run { fill: #2fd37f; }
.art-stop { fill: rgba(143, 219, 228, .25); }
.art-bar { fill: rgba(92, 198, 211, .55); }
.art-bar.hi { fill: var(--cyan); }


/* Lists with ticks and a call-to-action line (the panels on /scada) */
.ticks { margin: 0 0 22px; padding: 0; list-style: none; }
.ticks li { position: relative; margin-bottom: 9px; padding-left: 26px; font-size: 15.5px; line-height: 1.5; }
.ticks li::before { content: ""; position: absolute; left: 2px; top: .45em; width: 12px; height: 7px; border-left: 2px solid var(--teal); border-bottom: 2px solid var(--teal); transform: rotate(-45deg); }
.panel-cta { margin: 0; }
.panel-cta a { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; font-weight: 700; text-decoration: none; }
.panel-cta .ico { width: 18px; height: 18px; }

/* Data: pipeline steps */
.flowline { display: grid; gap: 12px; margin: 0 0 8px; padding: 0; list-style: none; counter-reset: f; }
.flowline li { position: relative; counter-increment: f; padding: 18px 18px 18px 64px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--white); }
.flowline li::before { content: counter(f); position: absolute; left: 18px; top: 18px; display: grid; place-items: center; width: 32px; height: 32px; border-radius: 10px; background: var(--navy); color: var(--cyan); font-weight: 750; }
.flowline h3 { margin-bottom: 4px; }
.flowline p { margin: 0; color: var(--muted); font-size: 15.5px; }
.flowline .k { display: block; margin-bottom: 2px; font-size: 12px; font-weight: 750; letter-spacing: .08em; text-transform: uppercase; color: var(--teal); }

@media (min-width: 600px) {
  .page-hero .cta { display: flex; flex-wrap: wrap; }
}
@media (min-width: 900px) {
  .page-hero { padding: 64px 0 68px; }
  .dirs { grid-template-columns: repeat(2, 1fr); gap: 24px; }
  .dir-art { height: 180px; }
  .cards.cards-4 { grid-template-columns: repeat(4, 1fr); }
  .flowline { grid-template-columns: repeat(4, 1fr); }
  .flowline li { padding: 64px 20px 20px; }
}
