/* ==========================================================================
   MIMAX SOFTWARE GROUP — Corporate Design System v3
   Light, restrained, content-first. One brand blue, navy for structure.
   ========================================================================== */

:root {
  color-scheme: light;
  --bg: #ffffff;
  --bg-soft: #f5f7fa;
  --bg-muted: #edf1f5;
  --navy: #0b1f3a;
  --navy-2: #12294a;
  --navy-line: rgba(255, 255, 255, .12);
  --text: #0f1b2d;
  --text-2: #475467;
  --text-3: #6b7789;
  --line: #e3e8ee;
  --line-2: #cfd7e1;
  --brand: #0a6db3;
  --brand-dark: #08578f;
  --brand-soft: #eaf3fa;
  --accent: #12a38f;
  --ok: #067647;
  --ok-soft: #ecfdf3;
  --err: #b42318;
  --err-soft: #fef3f2;
  --radius-sm: 6px;
  --radius: 10px;
  --radius-lg: 14px;
  --container: 1200px;
  --gutter: clamp(16px, 4vw, 32px);
  --header-h: 76px;
  --font: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --shadow-sm: 0 1px 2px rgba(16, 24, 40, .05);
  --shadow: 0 1px 3px rgba(16, 24, 40, .06), 0 1px 2px rgba(16, 24, 40, .04);
  --shadow-lg: 0 12px 32px -8px rgba(16, 24, 40, .14), 0 4px 8px -4px rgba(16, 24, 40, .06);
  --ease: cubic-bezier(.2, .7, .2, 1);
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 16px); }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 400 16px/1.65 var(--font);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}
body.is-locked { overflow: hidden; }
img, svg, video { display: block; max-width: 100%; }
img { height: auto; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; cursor: pointer; background: none; border: 0; padding: 0; }
h1, h2, h3, h4, p, ul, ol, dl, dd, figure { margin: 0; }
ul, ol { padding: 0; list-style: none; }
h1, h2, h3, h4 { color: var(--text); font-weight: 650; letter-spacing: -.015em; line-height: 1.25; }
:focus-visible { outline: 2px solid var(--brand); outline-offset: 2px; border-radius: 4px; }
::selection { background: #cfe4f5; color: var(--text); }

.sr-only { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip-link { position: absolute; left: 16px; top: -60px; z-index: 200; padding: 10px 16px; background: var(--navy); color: #fff; border-radius: var(--radius-sm); font-weight: 600; }
.skip-link:focus { top: 12px; }
.container { width: 100%; max-width: calc(var(--container) + var(--gutter) * 2); margin: 0 auto; padding: 0 var(--gutter); }
.muted { color: var(--text-3); }

/* ---------- Typography ---------- */
.h-display { font-size: clamp(32px, 3.4vw, 48px); line-height: 1.15; font-weight: 700; letter-spacing: -.025em; }
.h-section { font-size: clamp(26px, 2.4vw, 36px); line-height: 1.2; font-weight: 650; letter-spacing: -.02em; }
.h-card { font-size: 20px; line-height: 1.35; font-weight: 600; }
.lead { font-size: clamp(16px, 1.25vw, 18px); line-height: 1.7; color: var(--text-2); max-width: 680px; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  margin-bottom: 14px;
  font-size: 12.5px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase;
  color: var(--brand);
}
.eyebrow::before { content: ""; width: 20px; height: 2px; background: var(--accent); }
.note { margin-top: 14px; font-size: 13px; color: var(--text-3); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  height: 46px; padding: 0 20px;
  border-radius: var(--radius-sm); border: 1px solid transparent;
  font-size: 15px; font-weight: 600; line-height: 1; white-space: nowrap;
  transition: background-color .15s, border-color .15s, color .15s, box-shadow .15s;
}
.btn svg { width: 18px; height: 18px; flex: none; }
.btn-sm { height: 40px; padding: 0 16px; font-size: 14px; }
.btn-lg { height: 52px; padding: 0 26px; font-size: 15.5px; }
.btn-primary { background: var(--brand); color: #fff; }
.btn-primary:hover { background: var(--brand-dark); }
.btn-outline { background: #fff; color: var(--text); border-color: var(--line-2); box-shadow: var(--shadow-sm); }
.btn-outline:hover { border-color: var(--text-3); }
.btn-white { background: #fff; color: var(--navy); }
.btn-white:hover { background: var(--bg-muted); }
.btn-on-dark { color: #fff; border-color: rgba(255, 255, 255, .35); }
.btn-on-dark:hover { border-color: #fff; background: rgba(255, 255, 255, .06); }
.btn:disabled { opacity: .6; cursor: progress; }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; }

.link-arrow { display: inline-flex; align-items: center; gap: 6px; font-size: 15px; font-weight: 600; color: var(--brand); }
.link-arrow svg { width: 16px; height: 16px; transition: transform .15s; }
.link-arrow:hover svg, a:hover .link-arrow svg { transform: translateX(3px); }

.icon-btn {
  display: inline-grid; place-items: center; width: 40px; height: 40px;
  border-radius: var(--radius-sm); border: 1px solid var(--line-2); color: var(--text-2);
  transition: color .15s, border-color .15s;
}
.icon-btn svg { width: 18px; height: 18px; }
.icon-btn:hover { color: var(--brand); border-color: var(--brand); }

/* ---------- Header ---------- */
.mx-header { position: sticky; top: 0; z-index: 100; background: #fff; border-bottom: 1px solid var(--line); transition: box-shadow .2s; }
.mx-header.is-scrolled { box-shadow: 0 6px 20px -12px rgba(16, 24, 40, .18); }
.header-row { display: flex; align-items: stretch; gap: 40px; height: var(--header-h); }

.brand { display: inline-flex; align-items: center; flex: none; }
.logo { display: block; height: 40px; width: auto; }

.nav { display: flex; align-items: stretch; gap: 2px; }
.nav-item { display: flex; }
.nav-item--drop { position: relative; }
.nav-link {
  position: relative; display: inline-flex; align-items: center; gap: 4px;
  padding: 0 14px; font-size: 15px; font-weight: 500; color: var(--text);
  transition: color .15s;
}
.nav-link::after { content: ""; position: absolute; left: 14px; right: 14px; bottom: -1px; height: 2px; background: var(--brand); transform: scaleX(0); transition: transform .2s var(--ease); }
.nav-link:hover, .nav-item.is-open > .nav-link { color: var(--brand); }
.nav-link.is-active::after, .nav-item.is-open > .nav-link::after { transform: scaleX(1); }
.nav-link .chev { width: 15px; height: 15px; color: var(--text-3); transition: transform .2s; }
.nav-item.is-open .chev { transform: rotate(180deg); }

.header-actions { display: flex; align-items: center; gap: 6px; margin-left: auto; }
.lang-btn { display: inline-flex; align-items: center; gap: 6px; height: 38px; padding: 0 10px; border-radius: var(--radius-sm); font-size: 14px; font-weight: 600; color: var(--text-2); }
.lang-btn svg { width: 17px; height: 17px; }
.lang-btn:hover, .lang.is-open .lang-btn { background: var(--bg-soft); color: var(--text); }
.header-contact { display: inline-flex; align-items: center; height: 38px; padding: 0 14px; margin-left: 6px; border-left: 1px solid var(--line); font-size: 15px; font-weight: 500; color: var(--text); }
.header-contact:hover, .header-contact.is-active { color: var(--brand); }

/* Full-width products menu */
.mega {
  position: absolute; left: 0; right: 0; top: 100%;
  background: #fff; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line);
  box-shadow: 0 24px 48px -24px rgba(16, 24, 40, .22);
  opacity: 0; visibility: hidden; transform: translateY(-6px);
  transition: opacity .16s, transform .16s, visibility .16s;
}
.nav-item.is-open .mega { opacity: 1; visibility: visible; transform: none; }
.mega-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; padding: 28px 0 24px; }
.mega-item { display: flex; flex-direction: column; padding: 20px; border: 1px solid var(--line); border-radius: var(--radius); transition: border-color .15s, box-shadow .15s; }
.mega-item:hover { border-color: var(--brand); box-shadow: var(--shadow-lg); }
.mega-item img { width: 40px; height: 40px; border-radius: 9px; margin-bottom: 16px; }
.mega-item b { font-size: 16px; font-weight: 650; color: var(--text); }
.mega-item small { margin-top: 2px; font-size: 13px; color: var(--brand); font-weight: 500; }
.mega-item span { margin-top: 10px; font-size: 14px; line-height: 1.5; color: var(--text-2); }
.mega-foot { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 16px 0 20px; border-top: 1px solid var(--line); font-size: 14px; color: var(--text-3); }
.mega-foot .link-arrow { font-size: 14px; flex: none; }

/* Small dropdowns (company, language) */
.drop {
  position: absolute; top: 100%; left: 0; min-width: 220px; padding: 8px;
  background: #fff; border: 1px solid var(--line); border-radius: 0 0 var(--radius) var(--radius); box-shadow: var(--shadow-lg);
  opacity: 0; visibility: hidden; transform: translateY(-4px);
  transition: opacity .15s, transform .15s, visibility .15s;
}
.lang .drop { top: calc(100% + (var(--header-h) - 38px) / 2); border-radius: 0 0 var(--radius) var(--radius); }
.drop--right { left: auto; right: 0; min-width: 180px; }
.nav-item.is-open .drop { opacity: 1; visibility: visible; transform: none; }
.drop a { display: block; padding: 10px 12px; border-radius: var(--radius-sm); font-size: 14.5px; color: var(--text); }
.drop a:hover { background: var(--bg-soft); color: var(--brand); }
.drop a[aria-current] { color: var(--brand); font-weight: 600; }

.burger { display: none; width: 42px; height: 42px; border-radius: var(--radius-sm); border: 1px solid var(--line-2); place-items: center; }
.burger span { display: block; width: 18px; height: 2px; background: var(--text); border-radius: 2px; transition: transform .2s; }
.burger span + span { margin-top: 5px; }
.burger[aria-expanded="true"] span:first-child { transform: translateY(3.5px) rotate(45deg); }
.burger[aria-expanded="true"] span:last-child { transform: translateY(-3.5px) rotate(-45deg); }
.burger > div { display: flex; flex-direction: column; }

.drawer {
  position: fixed; inset: var(--header-h) 0 0; z-index: 90;
  background: #fff; padding: 20px var(--gutter) 32px; overflow-y: auto;
  opacity: 0; visibility: hidden; transition: opacity .2s, visibility .2s;
}
.drawer.is-open { opacity: 1; visibility: visible; }
.drawer-label { font-size: 12.5px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--text-3); margin-bottom: 10px; }
.drawer-products { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.drawer-products a { display: flex; align-items: center; gap: 10px; padding: 12px; border: 1px solid var(--line); border-radius: var(--radius-sm); }
.drawer-products img { width: 28px; height: 28px; border-radius: 7px; flex: none; }
.drawer-products b { display: block; font-size: 14.5px; font-weight: 600; }
.drawer-products small { display: block; font-size: 12px; line-height: 1.35; color: var(--text-3); }
.drawer-nav { margin-top: 16px; }
.drawer-nav a { display: block; padding: 15px 0; border-bottom: 1px solid var(--line); font-size: 17px; font-weight: 600; }
.drawer-langs { display: flex; gap: 8px; margin-top: 24px; }
.drawer-langs a { flex: 1; padding: 10px 6px; text-align: center; border: 1px solid var(--line-2); border-radius: var(--radius-sm); font-weight: 500; font-size: 14px; }
.drawer-langs a[aria-current] { border-color: var(--brand); color: var(--brand); background: var(--brand-soft); }

/* ---------- Sections ---------- */
.section { padding: clamp(64px, 8vw, 104px) 0; }
.section--tight { padding: clamp(48px, 6vw, 72px) 0; }
.section--soft { background: var(--bg-soft); }
.section--line { border-top: 1px solid var(--line); }
.section-head { max-width: 720px; margin-bottom: clamp(36px, 4vw, 52px); }
.section-head .lead { margin-top: 16px; }
.section-head--split { max-width: none; display: flex; justify-content: space-between; align-items: flex-end; gap: 24px 48px; flex-wrap: wrap; }
.section-head--split > div { max-width: 680px; }
.section-head--center { margin-left: auto; margin-right: auto; text-align: center; }
.section-head--center .lead { margin-left: auto; margin-right: auto; }

.card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); }

/* ---------- Hero (home): corporate brand banner ---------- */
.hero { position: relative; overflow: hidden; background: var(--navy); color: #fff; }
.hero-inner { position: relative; z-index: 1; padding-top: clamp(56px, 7vw, 104px); padding-bottom: clamp(120px, 12vw, 168px); }
/* ---------- Hero: interactive system map ---------- */
.hero-inner { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.08fr); gap: clamp(24px, 4vw, 56px); align-items: center; }
.hero-visual { position: relative; }
.sysmap { position: relative; margin: -36px -24px -64px 0; }
.sysmap svg { display: block; width: 100%; height: auto; overflow: visible; }
.sm-layer { transition: transform .6s var(--ease); }
.sm-orbit { fill: none; stroke: rgba(140, 205, 242, .22); stroke-width: 1; stroke-dasharray: 2 7; transform-box: view-box; transform-origin: 320px 300px; }
.sm-orbit--outer { animation: spin 140s linear infinite; }
.sm-orbit--inner { animation: spin 90s linear infinite reverse; }
.sm-halo { fill: none; stroke: rgba(140, 205, 242, .045); stroke-width: 70; }
@keyframes spin { to { transform: rotate(360deg); } }
.sm-link { fill: none; stroke: rgba(140, 205, 242, .24); stroke-width: 1.2; transition: stroke .3s, stroke-width .3s, opacity .35s; }
.sm-link--core { stroke: rgba(25, 211, 181, .4); }
.sm-packet { fill: #19d3b5; transition: opacity .35s; }
.sm-packet--out { fill: #8ccdf2; }
.sm-node { cursor: pointer; transition: opacity .35s; }
.sm-int rect { fill: #12294a; stroke: rgba(140, 205, 242, .32); stroke-width: 1; transition: fill .3s, stroke .3s; }
.sm-int text { font: 600 12px var(--font); fill: rgba(255, 255, 255, .8); pointer-events: none; }
.sm-prod circle { fill: #fff; transition: transform .35s var(--ease); transform-box: fill-box; transform-origin: center; }
.sm-prod .sm-prod-ring { fill: none; stroke: rgba(140, 205, 242, .35); stroke-width: 1; stroke-dasharray: 3 5; }
.sm-prod text { font: 600 13.5px var(--font); fill: #fff; pointer-events: none; }
.sm-prod image { pointer-events: none; }
.sm-core { fill: #12294a; stroke: #19d3b5; stroke-width: 1.5; }
.sm-core-pulse { fill: none; stroke: #19d3b5; stroke-width: 1.5; transform-box: fill-box; transform-origin: center; animation: corePulse 3.2s cubic-bezier(0, 0, .2, 1) infinite; }
@keyframes corePulse { 0% { transform: scale(1); opacity: .6; } 100% { transform: scale(1.9); opacity: 0; } }

/* focus: one node and its connections light up, the rest steps back */
.sysmap.has-focus .sm-link, .sysmap.has-focus .sm-packet, .sysmap.has-focus .sm-node { opacity: .16; }
.sysmap.has-focus .is-on { opacity: 1; }
.sysmap .sm-link.is-on { stroke: #19d3b5; stroke-width: 2; }
.sysmap .sm-int.is-on rect { fill: rgba(25, 211, 181, .14); stroke: #19d3b5; }
.sysmap .sm-prod.is-on circle:not(.sm-prod-ring) { transform: scale(1.08); }
.sysmap .sm-prod.is-on .sm-prod-ring { stroke: #19d3b5; stroke-dasharray: none; }

.sm-caption { position: absolute; left: 0; top: 30px; max-width: 220px; display: flex; flex-direction: column; align-items: flex-start; gap: 2px; text-align: left; opacity: 0; transform: translateY(6px); transition: opacity .3s, transform .3s; pointer-events: none; }
.sysmap.has-focus .sm-caption { opacity: 1; transform: none; }
.sm-caption b { font-size: 15px; font-weight: 600; color: #fff; }
.sm-caption span { font-size: 13.5px; color: rgba(255, 255, 255, .65); }
.hero-kicker { display: flex; align-items: center; gap: 12px; font-size: 13px; font-weight: 600; letter-spacing: .14em; color: #8ccdf2; }
.hero-kicker::before { content: ""; width: 28px; height: 2px; background: #19d3b5; }
.hero-title { max-width: 640px; margin-top: 24px; font-size: clamp(34px, 3.9vw, 56px); line-height: 1.08; font-weight: 600; letter-spacing: -.035em; color: #fff; }
.hero-lead { max-width: 600px; margin-top: 24px; font-size: clamp(16px, 1.3vw, 19px); line-height: 1.65; color: rgba(255, 255, 255, .72); }
.hero-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 16px 28px; margin-top: 40px; }
.hero-link { display: inline-flex; align-items: center; gap: 8px; font-size: 15.5px; font-weight: 600; color: #fff; }
.hero-link svg { width: 18px; height: 18px; transition: transform .15s; }
.hero-link:hover svg { transform: translateX(4px); }

/* Product brands, overlapping the banner */
.brands { position: relative; z-index: 2; margin-top: -72px; }
.brand-tiles { display: grid; grid-template-columns: repeat(4, 1fr); background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg); box-shadow: 0 24px 48px -24px rgba(11, 31, 58, .28); overflow: hidden; }
.brand-tile { display: flex; align-items: center; gap: 14px; height: 100%; padding: 26px 24px; transition: background-color .15s; }
.brand-tiles li + li .brand-tile { border-left: 1px solid var(--line); }
.brand-tile:hover { background: var(--bg-soft); }
.brand-tile img { width: 44px; height: 44px; border-radius: 10px; flex: none; }
.brand-tile span { flex: 1; min-width: 0; }
.brand-tile b { display: block; font-size: 17px; font-weight: 650; color: var(--text); }
.brand-tile small { display: block; margin-top: 2px; font-size: 13px; line-height: 1.4; color: var(--text-3); }
.brand-tile .go { width: 18px; height: 18px; flex: none; color: var(--text-3); transition: transform .15s, color .15s; }
.brand-tile:hover .go { color: var(--brand); transform: translateX(3px); }

/* About: statement + figures */
.about { padding-top: clamp(72px, 9vw, 120px); }
.about .about-grid { grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); }
.statement { font-size: clamp(22px, 2.1vw, 30px); line-height: 1.4; font-weight: 500; letter-spacing: -.015em; color: var(--navy); }
.about-cols { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; margin-top: 28px; font-size: 15.5px; color: var(--text-2); }
.figures { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; margin-top: clamp(48px, 6vw, 80px); }
.figures > div { display: flex; flex-direction: column-reverse; justify-content: flex-end; padding-top: 22px; border-top: 2px solid var(--navy); }
.figures dd { font-size: clamp(36px, 3.6vw, 52px); font-weight: 650; line-height: 1; letter-spacing: -.035em; color: var(--navy); }
.figures dt { margin-top: 12px; font-size: 14.5px; color: var(--text-2); }

.family .tp-visual { background: #fff; }
.family .tab:hover { background: #fff; }

/* ---------- Product family tabs ---------- */
.tab-list { display: grid; grid-template-columns: repeat(4, 1fr); border-bottom: 1px solid var(--line); }
.tab { position: relative; display: flex; align-items: center; gap: 12px; padding: 18px 16px; text-align: left; color: var(--text-2); transition: background-color .15s; }
.tab::after { content: ""; position: absolute; left: 0; right: 0; bottom: -1px; height: 3px; background: var(--brand); transform: scaleX(0); transition: transform .2s var(--ease); }
.tab:hover { background: var(--bg-soft); }
.tab[aria-selected="true"] { color: var(--text); }
.tab[aria-selected="true"]::after { transform: scaleX(1); }
.tab img { width: 32px; height: 32px; border-radius: 8px; flex: none; filter: grayscale(1); opacity: .65; transition: filter .2s, opacity .2s; }
.tab[aria-selected="true"] img, .tab:hover img { filter: none; opacity: 1; }
.tab b { display: block; font-size: 16px; font-weight: 650; }
.tab small { display: block; font-size: 13px; line-height: 1.35; color: var(--text-3); }
.tab-panel { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: clamp(32px, 5vw, 64px); align-items: center; padding-top: clamp(36px, 4vw, 52px); }
.js .tab-panel[data-hidden] { display: none; }
.tab-panel.is-entering { animation: tabIn .35s var(--ease); }
@keyframes tabIn { from { opacity: 0; transform: translateY(8px); } }
.tp-title { font-size: clamp(22px, 2vw, 28px); line-height: 1.25; font-weight: 650; letter-spacing: -.02em; }
.tp-desc { margin-top: 14px; color: var(--text-2); }
.tp-label { margin-top: 26px; font-size: 12.5px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--text-3); }
.tp-feats { display: grid; grid-template-columns: 1fr 1fr; gap: 10px 20px; margin-top: 12px; }
.tp-feats li { display: flex; align-items: flex-start; gap: 9px; font-size: 15px; font-weight: 500; }
.tp-feats svg { width: 18px; height: 18px; flex: none; margin-top: 3px; color: var(--accent); }
.tp-copy .btn-row { margin-top: 30px; }
.tp-visual { padding: clamp(20px, 3vw, 36px); background: var(--bg-soft); border: 1px solid var(--line); border-radius: var(--radius-lg); }

/* ---------- Solutions ---------- */

/* ---------- Professional services list ---------- */
.svc-list { display: grid; grid-template-columns: repeat(3, 1fr); border-top: 1px solid var(--line); }
.svc-row { display: flex; gap: 18px; padding: 28px 28px 28px 0; border-bottom: 1px solid var(--line); }
.svc-row:not(:nth-child(3n+1)) { padding-left: 28px; border-left: 1px solid var(--line); }
.svc-row .ico { width: 26px; height: 26px; flex: none; color: var(--brand); margin-top: 2px; }
.svc-row h3 { font-size: 17.5px; }
.svc-row p { margin-top: 8px; font-size: 15px; color: var(--text-2); }

/* ---------- About ---------- */
.about-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(40px, 6vw, 96px); align-items: start; }
.about-grid .lead { margin-top: 20px; }
.about-grid .muted { margin-top: 16px; color: var(--text-2); }
.about-points { border-top: 1px solid var(--line); }
.about-point { display: grid; grid-template-columns: 56px 1fr; gap: 16px; padding: 24px 0; border-bottom: 1px solid var(--line); }
.about-point .num { font-size: 14px; font-weight: 700; color: var(--brand); letter-spacing: .04em; padding-top: 2px; }
.about-point h3 { font-size: 18px; }
.about-point p { margin-top: 6px; color: var(--text-2); font-size: 15.5px; }


/* ---------- Services ---------- */
.svc-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.svc { display: flex; flex-direction: column; padding: 28px; transition: border-color .15s, box-shadow .15s; }
.svc:hover { border-color: var(--line-2); box-shadow: var(--shadow-lg); }
.svc-icon { display: grid; place-items: center; width: 48px; height: 48px; border-radius: var(--radius-sm); background: var(--brand-soft); color: var(--brand); margin-bottom: 20px; }
.svc-icon svg { width: 24px; height: 24px; }
.svc h3 { font-size: 18.5px; }
.svc p { margin-top: 10px; color: var(--text-2); font-size: 15.5px; flex: 1; }
.svc-tags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 20px; }
.svc-tags span, .chip { display: inline-flex; padding: 4px 10px; border-radius: 4px; background: var(--bg-muted); font-size: 12.5px; font-weight: 500; color: var(--text-2); }

/* ---------- Products ---------- */
.prod-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.prod-card { display: flex; flex-direction: column; overflow: hidden; transition: box-shadow .2s, border-color .2s; }
.prod-card:hover { box-shadow: var(--shadow-lg); border-color: var(--line-2); }
.prod-media { position: relative; aspect-ratio: 16 / 9; background: var(--bg-muted); border-bottom: 1px solid var(--line); overflow: hidden; }
.prod-media > img { width: 100%; height: 100%; object-fit: cover; object-position: top left; }
.prod-media .mini-phones { position: absolute; inset: 24px 0 0; display: flex; justify-content: center; gap: 14px; }
.prod-media .mini-phones img { width: 26%; height: auto; border-radius: 14px; border: 4px solid #1d2939; box-shadow: var(--shadow-lg); align-self: flex-start; }
.prod-media .mini-phones img:nth-child(2) { margin-top: -10px; }
.prod-media .mini-visual { position: absolute; inset: 20px 6% auto; }
.prod-body { display: flex; flex-direction: column; flex: 1; padding: 28px; }
.prod-id { display: flex; align-items: center; gap: 14px; margin-bottom: 18px; }
.prod-id img { width: 44px; height: 44px; border-radius: 10px; flex: none; }
.prod-id b, .prod-id h2, .prod-id h3 { display: block; font-size: 19px; font-weight: 650; color: var(--text); }
.prod-id span { display: block; font-size: 13.5px; color: var(--text-3); margin-top: 2px; }
.prod-tagline { font-size: 17px; font-weight: 600; color: var(--text); line-height: 1.4; }
.prod-desc { margin-top: 10px; color: var(--text-2); font-size: 15px; flex: 1; }
.prod-foot { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-top: 24px; padding-top: 20px; border-top: 1px solid var(--line); }
.prod-foot .domain { display: inline-flex; align-items: center; gap: 6px; font-size: 14px; color: var(--text-3); }
.prod-foot .domain:hover { color: var(--brand); }
.prod-foot .domain svg { width: 15px; height: 15px; }

/* ---------- Why ---------- */
.why-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; border-top: 1px solid var(--line); }
.why-card { padding: 28px 28px 8px 0; }
.why-card + .why-card { padding-left: 28px; border-left: 1px solid var(--line); }
.why-card .ico { width: 28px; height: 28px; color: var(--brand); margin-bottom: 18px; }
.why-card h3 { font-size: 17.5px; }
.why-card p { margin-top: 8px; font-size: 15px; color: var(--text-2); }

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

/* ---------- Tech ---------- */
.why-grid + .tech { margin-top: clamp(40px, 5vw, 56px); padding-top: 32px; border-top: 1px solid var(--line); }
.tech { display: grid; grid-template-columns: 220px 1fr; gap: 32px; align-items: center; }
.tech > p { font-size: 14px; font-weight: 600; color: var(--text-3); line-height: 1.5; }
.tech ul { display: flex; flex-wrap: wrap; gap: 8px; }
.tech li { padding: 8px 14px; border: 1px solid var(--line); border-radius: var(--radius-sm); background: #fff; font-size: 14px; font-weight: 500; color: var(--text-2); }

/* ---------- News ---------- */
.news-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.post { position: relative; display: flex; flex-direction: column; overflow: hidden; transition: box-shadow .2s; }
.post:hover { box-shadow: var(--shadow-lg); }
.post-media { aspect-ratio: 16 / 10; background: var(--bg-muted); overflow: hidden; }
.post-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s var(--ease); }
.post:hover .post-media img { transform: scale(1.03); }
.post-body { display: flex; flex-direction: column; flex: 1; padding: 22px 24px 24px; }
.post-meta { display: flex; align-items: center; gap: 10px; font-size: 13px; color: var(--text-3); }
.post-cat { color: var(--brand); font-weight: 600; }
.post-meta .post-cat::after { content: "·"; margin-left: 10px; color: var(--text-3); }
.post h3 { margin-top: 10px; font-size: 18px; line-height: 1.4; }
.post h3 a::after { content: ""; position: absolute; inset: 0; }
.post h3 a:hover { color: var(--brand); }
.post p { margin-top: 10px; font-size: 15px; color: var(--text-2); flex: 1; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.post .link-arrow { margin-top: 18px; font-size: 14px; }

/* ---------- FAQ ---------- */
.faq-grid { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: clamp(32px, 6vw, 96px); align-items: start; }
.faq-list { border-top: 1px solid var(--line); }
.faq-item { border-bottom: 1px solid var(--line); }
.faq-item summary { display: flex; justify-content: space-between; align-items: center; gap: 24px; padding: 20px 0; cursor: pointer; list-style: none; font-size: 16.5px; font-weight: 600; }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary:hover { color: var(--brand); }
.faq-item summary i { position: relative; flex: none; width: 14px; height: 14px; }
.faq-item summary i::before, .faq-item summary i::after { content: ""; position: absolute; left: 0; top: 6px; width: 14px; height: 2px; background: currentColor; transition: transform .2s; }
.faq-item summary i::after { transform: rotate(90deg); }
.faq-item[open] summary i::after { transform: rotate(0); }
.faq-a { padding: 0 40px 22px 0; color: var(--text-2); font-size: 15.5px; }

/* ---------- CTA ---------- */
.cta-band { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 32px 56px; align-items: center; padding: clamp(36px, 5vw, 56px); background: var(--navy); border-radius: var(--radius-lg); color: #fff; }
.cta-band .eyebrow { color: #8ccdf2; }
.cta-band h2 { color: #fff; }
.cta-band .lead { margin-top: 14px; color: rgba(255, 255, 255, .72); }
.cta-band .btn-row { justify-content: flex-end; }

/* ---------- Footer ---------- */
.footer { background: var(--navy); color: rgba(255, 255, 255, .7); font-size: 15px; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.2fr; gap: 40px; padding: 64px 0 48px; }
.footer-tag { margin-top: 20px; max-width: 320px; font-size: 14.5px; line-height: 1.65; }
.footer h3 { margin-bottom: 18px; font-size: 13px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: #fff; }
.footer-links { display: grid; gap: 11px; }
.footer-links a:hover { color: #fff; }
.footer-links li { display: flex; gap: 10px; align-items: flex-start; }
.footer-links svg { width: 17px; height: 17px; flex: none; margin-top: 3px; opacity: .6; }
.socials { display: flex; gap: 8px; margin-top: 24px; }
.footer .icon-btn { border-color: var(--navy-line); color: rgba(255, 255, 255, .75); }
.footer .icon-btn:hover { color: #fff; border-color: rgba(255, 255, 255, .5); }
.footer-bottom { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; padding: 22px 0; border-top: 1px solid var(--navy-line); font-size: 13.5px; color: rgba(255, 255, 255, .55); }
.footer-bottom nav { display: flex; gap: 20px; }
.footer-bottom a:hover { color: #fff; }

/* ---------- Inner page hero ---------- */
.page-hero { padding: 40px 0 clamp(44px, 5vw, 64px); background: var(--bg-soft); border-bottom: 1px solid var(--line); }
.page-hero .h-display { max-width: 860px; }
.page-hero .lead { margin-top: 16px; }
.crumbs { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 28px; font-size: 13.5px; color: var(--text-3); }
.crumbs li { display: inline-flex; align-items: center; gap: 8px; }
.crumbs li + li::before { content: "/"; color: var(--line-2); }
.crumbs a:hover { color: var(--brand); }
.crumbs [aria-current] { color: var(--text-2); }

/* ---------- Product page ---------- */
.pp-hero { padding-bottom: clamp(48px, 6vw, 80px); }
.pp-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); gap: clamp(40px, 5vw, 72px); align-items: center; }
.pp-id { display: flex; align-items: center; gap: 14px; margin-bottom: 22px; }
.pp-id img { width: 52px; height: 52px; border-radius: 12px; }
.pp-id b { display: block; font-size: 20px; font-weight: 650; }
.pp-id span { display: block; font-size: 14px; color: var(--text-3); }
.pp-hero .h-display { font-size: clamp(30px, 3vw, 42px); }
.pp-hero .btn-row { margin-top: 32px; }
.pp-meta { display: grid; grid-template-columns: repeat(3, auto); justify-content: start; gap: 8px 40px; margin-top: 36px; padding-top: 24px; border-top: 1px solid var(--line); }
.pp-meta dt { font-size: 12.5px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--text-3); }
.pp-meta dd { margin-top: 4px; font-size: 15px; font-weight: 500; }
.pp-meta a { color: var(--brand); }

.pp-stats { display: grid; grid-template-columns: repeat(4, 1fr); border: 1px solid var(--line); border-radius: var(--radius); background: #fff; }
.pp-stat { padding: 26px 24px; }
.pp-stat + .pp-stat { border-left: 1px solid var(--line); }
.pp-stat b { display: block; font-size: 32px; font-weight: 700; letter-spacing: -.02em; color: var(--navy); line-height: 1.1; }
.pp-stat span { display: block; margin-top: 6px; font-size: 14px; color: var(--text-2); }

.feat-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.feat { padding: 26px; }
.feat .svc-icon { margin-bottom: 18px; }
.feat h3 { font-size: 17.5px; }
.feat p { margin-top: 8px; font-size: 15px; color: var(--text-2); }

.gallery { display: grid; gap: 20px; }
.gallery--wide { grid-template-columns: repeat(2, 1fr); }
.gallery--tall { grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); }
.gallery figure { border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; background: var(--bg-muted); }
.gallery--tall figure { border-radius: 18px; }
.gallery img { width: 100%; }

.pricing { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.price { position: relative; display: flex; flex-direction: column; gap: 6px; padding: 26px; }
.price.is-best { border-color: var(--brand); box-shadow: 0 0 0 1px var(--brand); }
.price .mono { font-size: 13px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--text-3); }
.price b { font-size: 24px; font-weight: 700; color: var(--navy); }
.price span:last-child { font-size: 14px; color: var(--text-2); }
.save { position: absolute; top: 20px; right: 20px; padding: 3px 8px; border-radius: 4px; background: var(--ok-soft); color: var(--ok); font-size: 12.5px; font-weight: 700; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.chip { padding: 8px 14px; font-size: 14px; background: #fff; border: 1px solid var(--line); border-radius: var(--radius-sm); }

.others { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.other { position: relative; display: flex; align-items: center; gap: 14px; padding: 18px 20px; transition: border-color .15s; }
.other:hover { border-color: var(--brand); }
.other img { width: 40px; height: 40px; border-radius: 9px; }
.other div { flex: 1; min-width: 0; }
.other b { display: block; font-weight: 600; }
.other b a::after { content: ""; position: absolute; inset: 0; }
.other span { display: block; font-size: 13.5px; color: var(--text-3); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.other > svg { width: 18px; height: 18px; color: var(--text-3); flex: none; }

/* ---------- Product visuals (light) ---------- */
.browser { background: #fff; border: 1px solid var(--line-2); border-radius: var(--radius); box-shadow: var(--shadow-lg); overflow: hidden; }
.browser-bar { display: flex; align-items: center; gap: 6px; height: 38px; padding: 0 14px; background: var(--bg-soft); border-bottom: 1px solid var(--line); }
.browser-bar i { width: 10px; height: 10px; border-radius: 50%; background: var(--line-2); }
.browser-url { display: flex; align-items: center; gap: 6px; margin: 0 auto; padding: 4px 14px; background: #fff; border: 1px solid var(--line); border-radius: 5px; font-size: 12px; color: var(--text-3); }
.browser-url svg { width: 12px; height: 12px; }
.browser-screen { position: relative; aspect-ratio: 16 / 10; background: var(--bg-muted); }
.browser-screen img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: top left; opacity: 0; transition: opacity .6s; }
.browser-screen img.is-on { opacity: 1; }

.editor { background: #fff; border: 1px solid var(--line-2); border-radius: var(--radius); box-shadow: var(--shadow-lg); overflow: hidden; font-size: 13px; }
.editor-top { display: flex; align-items: center; gap: 10px; padding: 12px 16px; border-bottom: 1px solid var(--line); line-height: 1.3; }
.editor-top img { width: 26px; height: 26px; }
.editor-top small { color: var(--text-3); }
.editor-avatars { display: flex; margin-left: auto; }
.editor-avatars i { display: grid; place-items: center; width: 26px; height: 26px; margin-left: -6px; border-radius: 50%; border: 2px solid #fff; color: #fff; font: 600 10px var(--font); font-style: normal; }
.editor-tools { display: flex; flex-wrap: wrap; gap: 6px; padding: 8px 16px; background: var(--bg-soft); border-bottom: 1px solid var(--line); }
.editor-tools span { padding: 3px 9px; border-radius: 4px; background: #fff; border: 1px solid var(--line); color: var(--text-2); }
.editor-tools .on { background: #ecfdf3; border-color: #abefc6; color: var(--ok); font-weight: 600; }
.editor-body { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; padding: 16px; background: var(--bg-muted); }
.editor-page { position: relative; padding: 18px 16px; background: #fff; border-radius: 4px; box-shadow: var(--shadow); color: var(--text-2); line-height: 1.6; }
.editor-page h4 { margin: 10px 0 8px; font-size: 13.5px; }
.editor-page .tag { display: inline-block; padding: 1px 7px; border-radius: 3px; font-size: 10.5px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; }
.editor-page .tag.lat { background: var(--brand-soft); color: var(--brand); }
.editor-page .tag.cyr { background: #ecfdf3; color: var(--ok); }
.editor-page mark { background: none; text-decoration: underline wavy var(--err); color: inherit; }

.netviz { background: #fff; border: 1px solid var(--line-2); border-radius: var(--radius); box-shadow: var(--shadow-lg); overflow: hidden; }
.netviz svg { width: 100%; height: auto; }

.phones { display: flex; justify-content: center; align-items: flex-start; gap: 4%; }
.phone { width: 30%; border-radius: 22px; border: 6px solid #1d2939; overflow: hidden; background: #1d2939; box-shadow: var(--shadow-lg); }
.phone:nth-child(2) { margin-top: 40px; }
.phone:nth-child(1), .phone:nth-child(3) { margin-top: 0; }
.phone:nth-child(2) { order: 0; }

/* ---------- Contact ---------- */
.contact-grid { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: clamp(32px, 5vw, 64px); align-items: start; }
.contact-list { display: grid; border: 1px solid var(--line); border-radius: var(--radius); background: #fff; }
.contact-item { display: flex; gap: 16px; padding: 20px 22px; }
.contact-item + .contact-item { border-top: 1px solid var(--line); }
.contact-item .ico { display: grid; place-items: center; width: 42px; height: 42px; flex: none; border-radius: var(--radius-sm); background: var(--brand-soft); color: var(--brand); }
.contact-item .ico svg { width: 20px; height: 20px; }
.contact-item dt { font-size: 12.5px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--text-3); }
.contact-item dd { margin-top: 4px; font-size: 16px; font-weight: 500; }
.contact-item dd a:hover { color: var(--brand); }
.contact-item small { display: block; margin-top: 2px; font-size: 13.5px; font-weight: 400; color: var(--text-3); }
.messengers { display: flex; gap: 10px; margin-top: 16px; }
.map-card { margin-top: 16px; display: block; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; background: var(--bg-soft); }
.map-card svg { width: 100%; height: auto; }
.map-card:hover { border-color: var(--line-2); }

.form-card { padding: clamp(24px, 3.5vw, 40px); box-shadow: var(--shadow); }
.form-card h2 { font-size: 24px; }
.form-card > p { margin-top: 8px; color: var(--text-2); }
.form { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; margin-top: 28px; }
.field { display: grid; gap: 7px; }
.field--full { grid-column: 1 / -1; }
.field label, .field legend { font-size: 14px; font-weight: 600; color: var(--text); }
.input { width: 100%; height: 46px; padding: 0 14px; border: 1px solid var(--line-2); border-radius: var(--radius-sm); background: #fff; font: inherit; font-size: 15px; color: var(--text); transition: border-color .15s, box-shadow .15s; }
textarea.input { height: 132px; padding: 12px 14px; resize: vertical; }
.input::placeholder { color: #98a2b3; }
.input:focus { outline: none; border-color: var(--brand); box-shadow: 0 0 0 3px rgba(10, 109, 179, .15); }
.topic-group { display: flex; flex-wrap: wrap; gap: 8px; }
.topic-group input { position: absolute; opacity: 0; pointer-events: none; }
.topic-group label { padding: 8px 14px; border: 1px solid var(--line-2); border-radius: var(--radius-sm); font-size: 14px; font-weight: 500; color: var(--text-2); cursor: pointer; transition: all .15s; }
.topic-group label:hover { border-color: var(--text-3); }
.topic-group input:checked + label { border-color: var(--brand); background: var(--brand-soft); color: var(--brand); }
.topic-group input:focus-visible + label { outline: 2px solid var(--brand); outline-offset: 2px; }
.hp { position: absolute; left: -9999px; }
.form-status:empty { display: none; }
.form-status { grid-column: 1 / -1; padding: 12px 16px; border-radius: var(--radius-sm); font-size: 15px; }
.form-status.is-ok { background: var(--ok-soft); color: var(--ok); }
.form-status.is-err { background: var(--err-soft); color: var(--err); }
.form-foot { grid-column: 1 / -1; display: flex; align-items: center; justify-content: space-between; gap: 20px; padding-top: 8px; }
.form-foot small { font-size: 13px; color: var(--text-3); max-width: 320px; }

/* ---------- News list / article ---------- */
.filters { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 32px; }
.filters a { padding: 8px 16px; border: 1px solid var(--line-2); border-radius: var(--radius-sm); font-size: 14px; font-weight: 500; color: var(--text-2); }
.filters a:hover { border-color: var(--text-3); }
.filters a[aria-current] { background: var(--navy); border-color: var(--navy); color: #fff; }
.empty { padding: 48px; text-align: center; color: var(--text-2); }
.pagination { display: flex; justify-content: center; flex-wrap: wrap; gap: 6px; margin-top: 48px; }
.pagination .page-link, .pagination .page-item > span { min-width: 40px; height: 40px; padding: 0 12px; display: grid; place-items: center; border-radius: var(--radius-sm); border: 1px solid var(--line-2); color: var(--text-2); font-size: 14px; font-weight: 500; }
.pagination .page-link:hover { border-color: var(--brand); color: var(--brand); }
.pagination .active .page-link, .pagination .active > span { color: #fff; background: var(--brand); border-color: var(--brand); }
.pagination .disabled .page-link, .pagination .disabled > span { opacity: .45; }
nav[role="navigation"] > div:first-child:not(.pagination) { display: none; }

.article { max-width: 800px; }
.article-meta { display: flex; flex-wrap: wrap; gap: 8px 24px; margin-top: 20px; font-size: 14px; color: var(--text-3); }
.article-meta span { display: inline-flex; align-items: center; gap: 7px; }
.article-meta svg { width: 16px; height: 16px; }
.article-meta a { color: var(--brand); }
.article-cover { margin: 40px 0; border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); }
.prose { font-size: 17px; line-height: 1.8; color: #344054; }
.prose > * + * { margin-top: 1.1em; }
.prose h2 { font-size: 26px; margin-top: 1.8em; }
.prose h3 { font-size: 21px; margin-top: 1.6em; }
.prose a { color: var(--brand); text-decoration: underline; text-underline-offset: 3px; }
.prose ul, .prose ol { padding-left: 1.4em; }
.prose ul { list-style: disc; }
.prose ol { list-style: decimal; }
.prose li + li { margin-top: .4em; }
.prose img { border-radius: var(--radius); margin: 1.5em 0; }
.prose blockquote { margin: 1.5em 0; padding: 4px 0 4px 20px; border-left: 3px solid var(--brand); color: var(--text-2); font-style: italic; }
.prose table { width: 100%; border-collapse: collapse; font-size: 15px; }
.prose th, .prose td { padding: 10px 12px; border: 1px solid var(--line); text-align: left; }
.prose th { background: var(--bg-soft); }
.share { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-top: 48px; padding-top: 24px; border-top: 1px solid var(--line); }
.share > span { margin-right: 8px; font-size: 14px; font-weight: 600; color: var(--text-2); }

/* ---------- Error ---------- */
.error-page { padding: clamp(80px, 12vw, 160px) 0; text-align: center; }
.error-code { font-size: 15px; font-weight: 700; letter-spacing: .12em; color: var(--brand); }
.error-page .h-display { margin-top: 12px; }
.error-page .lead { margin: 16px auto 0; }
.error-page .btn-row { justify-content: center; margin-top: 32px; }

/* ==========================================================================
   Motion system
   ========================================================================== */

/* ---------- Brand intro (first visit in session) ---------- */
.loader { display: none; }
.intro .loader {
  position: fixed; inset: 0; z-index: 1000; display: grid; place-items: center;
  background: var(--navy);
  transition: transform .8s cubic-bezier(.7, 0, .2, 1);
}
.intro-out .loader { transform: translateY(-100%); }
.intro body { overflow: hidden; }
.loader-inner { display: flex; flex-direction: column; align-items: center; transition: opacity .3s, transform .5s var(--ease); }
.intro-out .loader-inner { opacity: 0; transform: translateY(-24px); }
.loader-mark { width: 76px; height: auto; }
.loader-mark path { stroke-dasharray: 1; stroke-dashoffset: 1; animation: draw .9s cubic-bezier(.65, 0, .35, 1) forwards; }
.loader-mark path:nth-child(2) { animation-delay: .12s; }
.loader-mark path:nth-child(3) { animation-delay: .24s; }
.loader-mark path:nth-child(4) { animation-delay: .36s; }
@keyframes draw { to { stroke-dashoffset: 0; } }
.loader-word { display: flex; flex-direction: column; align-items: center; margin-top: 22px; color: #fff; font-size: 26px; font-weight: 700; letter-spacing: .2em; line-height: 1; opacity: 0; animation: fadeUp .6s .55s var(--ease) forwards; }
.loader-word small { margin-top: 8px; font-size: 10px; font-weight: 600; letter-spacing: .46em; color: rgba(255, 255, 255, .6); }
.loader-bar { position: relative; width: 120px; height: 2px; margin-top: 28px; background: rgba(255, 255, 255, .12); overflow: hidden; border-radius: 2px; }
.loader-bar i { position: absolute; inset: 0; background: #19d3b5; transform-origin: left; animation: bar 1.2s cubic-bezier(.65, 0, .35, 1) forwards; }
@keyframes bar { from { transform: scaleX(0); } to { transform: scaleX(1); } }
@keyframes fadeUp { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }

/* ---------- Hero entrance ---------- */
.js:not(.ready) [data-in] { opacity: 0; }
.ready [data-in] { animation: heroIn 1s var(--ease) both; animation-delay: var(--d, 0s); }
.hero-title span[data-in] { display: inline-block; }
@keyframes heroIn { from { opacity: 0; transform: translateY(36px); } to { opacity: 1; transform: none; } }

/* ---------- Scroll reveal (direction aware, replays) ---------- */
.js [data-reveal] {
  --ry: 32px;
  transition: opacity .8s var(--ease), transform .8s var(--ease), clip-path .9s var(--ease);
  transition-delay: var(--d, 0s);
}
[data-dir="up"] [data-reveal] { --ry: -32px; }
.js [data-reveal]:not(.is-in) { opacity: 0; transform: translate3d(0, var(--ry), 0); transition-delay: 0s; }
.js [data-reveal="left"]:not(.is-in) { transform: translate3d(-48px, 0, 0); }
.js [data-reveal="right"]:not(.is-in) { transform: translate3d(48px, 0, 0); }
.js [data-reveal="scale"]:not(.is-in) { transform: scale(.94); }
.js [data-reveal="fade"]:not(.is-in) { transform: none; }
.js [data-reveal="mask"], .js [data-reveal="mask"]:not(.is-in) { opacity: 1; transform: none; }
.mask-in { display: inline-block; clip-path: inset(0 0 -.2em 0); transition: clip-path 1s var(--ease), transform 1s var(--ease); transition-delay: var(--d, 0s); }
.js [data-reveal="mask"]:not(.is-in) .mask-in { clip-path: inset(0 0 100% 0); transform: translate3d(0, 60%, 0); transition-delay: 0s; }
[data-dir="up"] [data-reveal="mask"]:not(.is-in) .mask-in { clip-path: inset(100% 0 -.2em 0); transform: translate3d(0, -60%, 0); }

/* ---------- Header: progress + hide on scroll down ---------- */
.mx-header { transition: box-shadow .2s, transform .35s var(--ease); }
.mx-header.is-hidden { transform: translateY(-100%); }
.scroll-progress { position: absolute; left: 0; right: 0; bottom: -1px; height: 2px; background: var(--brand); transform: scaleX(var(--sp, 0)); transform-origin: left; pointer-events: none; }

/* ---------- Section index ---------- */
.eyebrow .idx { display: inline-flex; align-items: center; margin-right: 2px; font-variant-numeric: tabular-nums; color: var(--text-3); }
.eyebrow .idx::after { content: "/"; margin-left: 10px; color: var(--line-2); }

/* ---------- Decorative brand marks ---------- */
.section, .cta-band { position: relative; }
.section > .container { position: relative; z-index: 1; }
.about { overflow: hidden; }
.figures dd em { font-style: normal; font-size: .5em; margin-left: 3px; color: var(--brand); }
.figures > div { position: relative; }
.figures > div::before { content: ""; position: absolute; left: 0; top: -2px; height: 2px; width: 100%; background: var(--brand); transform: scaleX(0); transform-origin: left; transition: transform 1s .2s var(--ease); }
.figures > div.is-in::before { transform: scaleX(1); }

/* ---------- Results (navy) ---------- */
.results { overflow: hidden; background: radial-gradient(rgba(255, 255, 255, .07) 1px, transparent 1.2px) 0 0 / 26px 26px, var(--navy); color: #fff; }
.results .eyebrow { color: #8ccdf2; }
.results .eyebrow .idx { color: rgba(255, 255, 255, .45); }
.results .eyebrow .idx::after { color: rgba(255, 255, 255, .25); }
.results .h-section { color: #fff; }
.results .lead { color: rgba(255, 255, 255, .7); }
.res-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; background: rgba(255, 255, 255, .1); border: 1px solid rgba(255, 255, 255, .1); border-radius: var(--radius-lg); overflow: hidden; }
.res-card { position: relative; display: flex; flex-direction: column; gap: 26px; padding: 30px 28px 34px; background: var(--navy); transition: background-color .25s; }
.res-card:hover { background: var(--navy-2); }
.res-id { display: flex; align-items: center; gap: 10px; font-size: 15px; font-weight: 600; color: rgba(255, 255, 255, .9); }
.res-id img { width: 28px; height: 28px; border-radius: 7px; }
.res-stat b { display: block; font-size: clamp(34px, 3.2vw, 46px); font-weight: 650; line-height: 1; letter-spacing: -.03em; color: #fff; }
.res-stat small { display: block; margin-top: 8px; font-size: 14px; line-height: 1.4; color: rgba(255, 255, 255, .62); }
.res-card .go { position: absolute; right: 24px; top: 32px; width: 18px; height: 18px; color: rgba(255, 255, 255, .4); transition: transform .2s, color .2s; }
.res-card:hover .go { color: #fff; transform: translateX(4px); }
.res-note { margin-top: 18px; font-size: 13px; color: rgba(255, 255, 255, .5); }

/* ---------- Solutions: hover ---------- */
.svc-row .svc-tags { margin-top: 14px; }
.svc-row { transition: background-color .2s; }
.svc-row:hover { background: rgba(255, 255, 255, .7); }

/* ---------- Process steps with scroll-filled track ---------- */
.steps { position: relative; display: grid; grid-template-columns: repeat(4, 1fr); gap: 28px; }
.steps-track { position: absolute; left: 22px; right: calc((100% - 84px) / 4 - 22px); top: 22px; height: 2px; background: var(--line); }
.steps-track i { position: absolute; inset: 0; background: var(--brand); transform: scaleX(var(--p, 0)); transform-origin: left; transition: transform .15s linear; }
.step { position: relative; }
.step-dot { position: relative; z-index: 1; display: grid; place-items: center; width: 46px; height: 46px; border-radius: 50%; background: #fff; border: 2px solid var(--line-2); font-size: 15px; font-weight: 700; color: var(--text-3); transition: background-color .3s, border-color .3s, color .3s, box-shadow .3s; }
.step.is-active .step-dot { background: var(--brand); border-color: var(--brand); color: #fff; box-shadow: 0 0 0 6px var(--brand-soft); }
.step h3 { margin-top: 22px; font-size: 18px; }
.step p { margin-top: 8px; font-size: 15px; color: var(--text-2); }

/* ---------- Principles ---------- */
.principles .why-grid { gap: 20px; border-top: 0; }
.principles .why-card, .principles .why-card + .why-card { position: relative; padding: 30px 26px; border: 1px solid var(--line); border-radius: var(--radius); background: #fff; overflow: hidden; transition: border-color .2s, transform .25s var(--ease), box-shadow .25s; }
.principles .why-card::after { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 3px; background: var(--brand); transform: scaleX(0); transform-origin: left; transition: transform .4s var(--ease); }
.principles .why-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.principles .why-card:hover::after { transform: scaleX(1); }

/* ---------- Technology ---------- */
.tech-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.tech-group { padding: 26px; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); }
.tech-group h3 { font-size: 13px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--text-3); }
.tech-group ul { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 16px; }
.tech-group li { padding: 7px 12px; border: 1px solid var(--line); border-radius: var(--radius-sm); font-size: 14px; font-weight: 500; transition: border-color .15s, color .15s; }
.tech-group li:hover { border-color: var(--brand); color: var(--brand); }

/* ---------- CTA band decoration ---------- */
.cta-band { overflow: hidden; background: radial-gradient(rgba(255, 255, 255, .06) 1px, transparent 1.2px) 0 0 / 24px 24px, var(--navy); }
.cta-band > * { position: relative; z-index: 1; }

/* ---------- Hover lift for brand tiles ---------- */
.brand-tile img { transition: transform .3s var(--ease); }
.brand-tile:hover img { transform: scale(1.08) rotate(-3deg); }


/* ==========================================================================
   Drawings & illustrated backgrounds
   ========================================================================== */

/* Lines that "draw" themselves when their container comes into view */
.js .draw { stroke-dasharray: 1; stroke-dashoffset: 1; }
.is-in .draw { animation: draw 1.6s var(--ease) forwards; }

/* ---------- About: isometric architecture stack ---------- */
.stack-art { max-width: 520px; margin-top: clamp(28px, 4vw, 48px); color: var(--line-2); }
.stack-svg { width: 100%; height: auto; overflow: visible; }
.stack-svg .dim path { stroke: var(--line-2); fill: none; }
.stack-svg .face { fill: #fff; stroke: rgba(11, 31, 58, .26); stroke-width: 1; }
.stack-svg .plate--top .face { fill: var(--brand-soft); stroke: var(--brand); }
.stack-svg .side-l { fill: #e6ecf2; }
.stack-svg .side-r { fill: #d6dee8; }
.stack-svg .plate--top .side-l { fill: #cfe3f3; }
.stack-svg .plate--top .side-r { fill: #b7d4ec; }
.stack-svg .grid { stroke: rgba(11, 31, 58, .08); fill: none; }
.stack-svg .node { fill: #fff; stroke: var(--brand); stroke-width: 1.5; }
.stack-svg .plate--top .node { fill: var(--brand); }
.stack-svg .leader { stroke: var(--line-2); fill: none; }
.stack-svg text { font: 600 11px var(--font); letter-spacing: .08em; fill: var(--text-3); }
.stack-svg .plate--top text { fill: var(--brand); }
.stack-svg .flows path { stroke: var(--brand); stroke-width: 1.5; fill: none; }
.js .stack-art .plate { opacity: 0; }
.stack-art.is-in .plate { animation: plateIn .8s var(--ease) both; animation-delay: calc(var(--pi) * .14s); }
@keyframes plateIn { from { opacity: 0; transform: translateY(-28px); } to { opacity: 1; transform: none; } }
.stack-art.is-in .flows .draw { animation-delay: .7s; }

/* ---------- Results: growth chart drawing in the background ---------- */
.res-bg { position: absolute; inset: 0; z-index: 0; pointer-events: none; }
.res-bg svg { position: absolute; left: 0; right: 0; bottom: 0; width: 100%; height: 72%; }
.res-bg .axis path { stroke: rgba(255, 255, 255, .05); stroke-width: 1; vector-effect: non-scaling-stroke; }
.res-bg .curve { fill: none; stroke: #19d3b5; stroke-width: 2; opacity: .4; }
.res-bg .curve--2 { stroke: #8ccdf2; opacity: .22; }
.res-bg circle { fill: #19d3b5; opacity: .55; }
.js .res-bg:not(.is-in) { opacity: 1; transform: none; }
.res-bg.is-in .curve--2 { animation-delay: .3s; animation-duration: 2s; }
.res-bg.is-in .curve { animation-duration: 2.2s; }

/* ---------- Services: drafting-paper grid ---------- */
.section--grid {
  background-color: var(--bg-soft);
  background-image: linear-gradient(rgba(11, 31, 58, .045) 1px, transparent 1px), linear-gradient(90deg, rgba(11, 31, 58, .045) 1px, transparent 1px);
  background-size: 40px 40px;
  background-position: center top;
}
.section--grid .svc-list { background: rgba(255, 255, 255, .72); border-radius: var(--radius); }

/* ---------- CTA: world map ---------- */
.cta-band > .cta-map { position: absolute; z-index: 0; right: -140px; top: 50%; width: 820px; max-width: none; transform: translateY(-50%); opacity: .14; pointer-events: none; }

/* ---------- Industries explorer ---------- */
.explorer { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: clamp(24px, 3vw, 40px); align-items: stretch; }
.ex-list { display: flex; flex-direction: column; border-top: 1px solid var(--line); }
.ex-tab { position: relative; display: grid; grid-template-columns: 30px 26px 1fr 18px; align-items: center; gap: 14px; width: 100%; padding: 21px 18px 21px 20px; border-bottom: 1px solid var(--line); text-align: left; transition: background-color .25s; }
.ex-tab::before { content: ""; position: absolute; left: 0; top: -1px; bottom: -1px; width: 3px; background: var(--brand); transform: scaleY(0); transition: transform .3s var(--ease); }
.ex-num { font-size: 13px; font-weight: 600; font-variant-numeric: tabular-nums; color: var(--text-3); transition: color .2s; }
.ex-ico { width: 24px; height: 24px; color: var(--text-3); transition: color .2s; }
.ex-name { font-size: 18px; font-weight: 600; color: var(--text-2); transition: color .2s, transform .3s var(--ease); }
.ex-go { width: 18px; height: 18px; color: var(--brand); opacity: 0; transform: translateX(-8px); transition: opacity .2s, transform .3s var(--ease); }
.ex-tab:hover { background: var(--bg-soft); }
.ex-tab[aria-selected="true"] { background: var(--bg-soft); }
.ex-tab[aria-selected="true"]::before { transform: scaleY(1); }
.ex-tab[aria-selected="true"] .ex-num, .ex-tab[aria-selected="true"] .ex-ico { color: var(--brand); }
.ex-tab[aria-selected="true"] .ex-name { color: var(--text); transform: translateX(4px); }
.ex-tab[aria-selected="true"] .ex-go { opacity: 1; transform: none; }

.ex-panels { position: relative; min-width: 0; }
.ex-panel {
  display: flex; flex-direction: column; height: 100%; border-radius: var(--radius-lg); overflow: hidden; color: #fff;
  background:
    linear-gradient(rgba(140, 205, 242, .06) 1px, transparent 1px) 0 0 / 24px 24px,
    linear-gradient(90deg, rgba(140, 205, 242, .06) 1px, transparent 1px) 0 0 / 24px 24px,
    linear-gradient(rgba(140, 205, 242, .1) 1px, transparent 1px) 0 0 / 120px 120px,
    linear-gradient(90deg, rgba(140, 205, 242, .1) 1px, transparent 1px) 0 0 / 120px 120px,
    var(--navy);
}
.js .ex-panel[data-hidden] { display: none; }
.ex-panel.is-entering { animation: tabIn .45s var(--ease); }
.ex-art { padding: 18px 18px 0; }
.ex-svg { display: block; width: 100%; height: auto; }
.ex-svg .bp-thin path { stroke: rgba(140, 205, 242, .32); stroke-width: 1; fill: none; }
.ex-svg .bp-dash { fill: none; stroke: rgba(140, 205, 242, .45); stroke-width: 1; }
.ex-svg .bp-ring { fill: none; stroke: rgba(140, 205, 242, .22); stroke-width: 1; }
.ex-svg .bp-label { font: 600 10px var(--font); letter-spacing: .08em; fill: rgba(140, 205, 242, .6); }
.ex-svg .bp-link { stroke: #19d3b5; stroke-width: 1.5; fill: none; }
.ex-svg .bp-node circle { fill: #12294a; stroke: #8ccdf2; stroke-width: 1.2; }
.ex-svg .bp-node text { font: 600 12px var(--font); fill: rgba(255, 255, 255, .88); }
.ex-svg .bp-core { fill: #12294a; stroke: #19d3b5; stroke-width: 1.5; }
.ex-svg .bp-icon { color: #fff; }
.ex-svg .bp-node, .ex-svg .bp-core, .ex-svg .bp-icon { transform-box: fill-box; transform-origin: center; }
.is-in .ex-panel:not([data-hidden]) .bp-core, .is-in .ex-panel:not([data-hidden]) .bp-icon { animation: popIn .6s .15s var(--ease) both; }
.is-in .ex-panel:not([data-hidden]) .bp-node { animation: popIn .6s var(--ease) both; animation-delay: calc(.55s + var(--k) * .12s); }
.is-in .ex-panel:not([data-hidden]) .bp-link { animation-delay: .35s; }
@keyframes popIn { from { opacity: 0; transform: scale(.6); } to { opacity: 1; transform: none; } }
.ex-body { padding: 4px clamp(22px, 3vw, 34px) clamp(24px, 3vw, 34px); }
.ex-body h3 { color: #fff; font-size: 22px; }
.ex-body p { margin-top: 10px; color: rgba(255, 255, 255, .74); font-size: 15.5px; }
.ex-products { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 22px; }
.ex-products a { display: flex; align-items: center; gap: 12px; padding: 10px 14px 10px 10px; border: 1px solid rgba(255, 255, 255, .14); border-radius: var(--radius-sm); background: rgba(255, 255, 255, .04); transition: border-color .2s, background-color .2s; }
.ex-products a:hover { border-color: #8ccdf2; background: rgba(255, 255, 255, .08); }
.ex-products img { width: 32px; height: 32px; border-radius: 8px; }
.ex-products b { display: block; font-size: 14.5px; font-weight: 600; color: #fff; }
.ex-products small { display: block; font-size: 12px; color: rgba(255, 255, 255, .6); }
.ex-products svg { width: 16px; height: 16px; color: rgba(255, 255, 255, .5); }


/* ---------- Trust strip (clients) ---------- */
.trust { display: grid; grid-template-columns: auto 1fr; gap: 16px 32px; align-items: center; margin-top: 36px; padding-top: 28px; border-top: 1px solid var(--line); }
.trust > p { font-size: 12.5px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--text-3); white-space: nowrap; }
.trust ul { display: flex; flex-wrap: wrap; gap: 10px 28px; }
.trust li { display: inline-flex; align-items: center; gap: 8px; font-size: 14.5px; font-weight: 600; color: var(--text-2); }
.trust svg { width: 18px; height: 18px; color: var(--brand); flex: none; }

/* ---------- Client projects ---------- */
.proj-filter { display: inline-flex; padding: 4px; gap: 4px; background: var(--bg-soft); border: 1px solid var(--line); border-radius: 10px; }
.proj-filter button { display: inline-flex; align-items: center; gap: 8px; height: 38px; padding: 0 14px; border-radius: 7px; font-size: 14px; font-weight: 600; color: var(--text-2); transition: background-color .2s, color .2s, box-shadow .2s; }
.proj-filter button span { min-width: 22px; padding: 1px 6px; border-radius: 10px; background: var(--bg-muted); font-size: 12px; color: var(--text-3); text-align: center; }
.proj-filter button:hover { color: var(--text); }
.proj-filter button[aria-pressed="true"] { background: #fff; color: var(--text); box-shadow: var(--shadow); }
.proj-filter button[aria-pressed="true"] span { background: var(--brand); color: #fff; }

.proj-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.proj[hidden] { display: none; }
.proj.is-filtering { animation: tabIn .45s var(--ease) both; }


/* ==========================================================================
   Brand colour & light: logo gradient (teal → cyan → blue) as the accent
   ========================================================================== */
:root {
  --g1: #19d3b5;
  --g2: #14a9e0;
  --g3: #3b6cff;
  --g4: #7c5cff;
  --grad: linear-gradient(120deg, var(--g1) 0%, var(--g2) 45%, var(--g3) 100%);
  --grad-wide: linear-gradient(110deg, var(--g1), var(--g2), var(--g3), var(--g4), var(--g2), var(--g1));
  --grad-soft: linear-gradient(135deg, rgba(25, 211, 181, .14), rgba(59, 108, 255, .14));
  --glow: 0 14px 36px -14px rgba(20, 169, 224, .65);
}

/* Shimmering gradient text */
.grad-text {
  background: var(--grad-wide);
  background-size: 300% 100%;
  -webkit-background-clip: text; background-clip: text;
  color: transparent; -webkit-text-fill-color: transparent;
  animation: sheen 8s linear infinite;
}
@keyframes sheen { to { background-position: 300% 0; } }

/* Buttons: gradient + light sweep */
.btn-primary { position: relative; overflow: hidden; background: var(--grad); background-size: 160% 100%; background-position: 0 0; color: #fff; border: 0; transition: background-position .5s var(--ease), box-shadow .3s, transform .2s; }
.btn-primary:hover { background: var(--grad); background-size: 160% 100%; background-position: 100% 0; box-shadow: var(--glow); transform: translateY(-1px); }
.btn-primary::after, .btn-white::after { content: ""; position: absolute; top: 0; bottom: 0; left: -60%; width: 40%; background: linear-gradient(100deg, transparent, rgba(255, 255, 255, .45), transparent); transform: skewX(-20deg); transition: left .7s var(--ease); pointer-events: none; }
.btn-primary:hover::after, .btn-white:hover::after { left: 130%; }
.btn-white { position: relative; overflow: hidden; }
.btn-white:hover { box-shadow: 0 12px 32px -12px rgba(140, 205, 242, .7); }

/* Accent details */
.eyebrow::before { background: var(--grad); width: 24px; }
.scroll-progress { background: var(--grad); }
.tab::after, .nav-link::after, .ex-tab::before { background: var(--grad); }
.steps-track i { background: var(--grad); }
.step.is-active .step-dot { background: var(--grad); border-color: transparent; box-shadow: 0 0 0 6px rgba(20, 169, 224, .14), var(--glow); }
.svc-icon { background: var(--grad-soft); color: var(--g3); }
.figures dd > span { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; -webkit-text-fill-color: transparent; }
.figures > div::before { background: var(--grad); height: 3px; top: -3px; }
.figures dd em { color: var(--g2); }
.res-stat b { background: linear-gradient(120deg, #6ef3dc, #7dd3fc 50%, #a5b4fc); -webkit-background-clip: text; background-clip: text; color: transparent; -webkit-text-fill-color: transparent; }
.proj-filter button[aria-pressed="true"] span { background: var(--grad); }

/* Gradient border that lights up on hover */
.proj, .principles .why-card, .tech-group, .feat, .post, .brand-tile, .res-card { isolation: isolate; }
.proj::before, .principles .why-card::before, .tech-group::before, .feat::before, .post::before {
  content: ""; position: absolute; inset: -1px; z-index: 2; border-radius: inherit; padding: 1.5px; pointer-events: none;
  background: var(--grad-wide); background-size: 300% 100%;
  -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);
  opacity: 0; transition: opacity .35s;
}
.tech-group, .feat { position: relative; }
.proj:hover::before, .principles .why-card:hover::before, .tech-group:hover::before, .feat:hover::before, .post:hover::before { opacity: 1; animation: sheen 6s linear infinite; }
.proj:hover, .principles .why-card:hover, .tech-group:hover, .feat:hover { box-shadow: 0 24px 48px -24px rgba(20, 169, 224, .45); border-color: transparent; }
.brand-tile { position: relative; }
.brand-tile::after { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 3px; background: var(--grad); transform: scaleX(0); transform-origin: left; transition: transform .4s var(--ease); }
.brand-tile:hover::after { transform: scaleX(1); }

/* ---------- Aurora light on navy surfaces ---------- */
.hero::before, .hero::after, .cta-band::before, .cta-band::after {
  content: ""; position: absolute; z-index: 0; border-radius: 50%; pointer-events: none; filter: blur(70px); opacity: .55;
}
.hero::before { width: 620px; height: 620px; right: -120px; top: -160px; background: radial-gradient(closest-side, rgba(20, 169, 224, .55), transparent); animation: drift1 18s ease-in-out infinite alternate; }
.hero::after { width: 520px; height: 520px; right: 280px; bottom: -220px; background: radial-gradient(closest-side, rgba(124, 92, 255, .45), transparent); animation: drift2 22s ease-in-out infinite alternate; }
.cta-band::before { width: 460px; height: 460px; left: -140px; top: -200px; background: radial-gradient(closest-side, rgba(25, 211, 181, .45), transparent); animation: drift1 20s ease-in-out infinite alternate; }
.cta-band::after { width: 420px; height: 420px; right: 10%; bottom: -260px; background: radial-gradient(closest-side, rgba(59, 108, 255, .5), transparent); animation: drift2 24s ease-in-out infinite alternate; }
@keyframes drift1 { to { transform: translate(-120px, 80px) scale(1.15); } }
@keyframes drift2 { to { transform: translate(140px, -60px) scale(.9); } }
.hero > .container { position: relative; z-index: 1; }

/* ---------- Results: wall of real screens ---------- */
.results { background: var(--navy); }
.results::before { content: ""; position: absolute; inset: 0; z-index: 1; pointer-events: none;
  background:
    linear-gradient(90deg, var(--navy) 0%, rgba(11, 31, 58, .94) 34%, rgba(11, 31, 58, .55) 70%, rgba(11, 31, 58, .7) 100%),
    linear-gradient(0deg, var(--navy) 0%, transparent 30%, transparent 75%, var(--navy) 100%);
}
.results::after { content: ""; position: absolute; z-index: 1; width: 560px; height: 560px; right: 8%; top: 10%; border-radius: 50%; background: radial-gradient(closest-side, rgba(20, 169, 224, .35), transparent); filter: blur(60px); pointer-events: none; }
.res-wall { position: absolute; inset: 0; z-index: 0; overflow: hidden; perspective: 1600px; }
.res-wall-inner { position: absolute; right: -6%; top: -30%; width: 78%; display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; transform: rotateX(18deg) rotateY(-14deg) rotateZ(-8deg); transform-origin: center; opacity: .55; }
.res-wall-col { display: flex; flex-direction: column; gap: 18px; animation: wallUp var(--dur, 50s) linear infinite; }
.res-wall-col:nth-child(even) { animation-direction: reverse; }
.res-wall-col img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; object-position: top; border-radius: 10px; box-shadow: 0 20px 40px -20px rgba(0, 0, 0, .6); border: 1px solid rgba(255, 255, 255, .08); }
@keyframes wallUp { to { transform: translateY(-50%); } }
.res-wall:not(.is-playing) .res-wall-col { animation-play-state: paused; }
.results > .container { z-index: 2; }
.res-grid { background: rgba(255, 255, 255, .1); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); }
.res-card { background: rgba(11, 31, 58, .82); }
.res-card:hover { background: rgba(18, 41, 74, .92); }

/* ---------- Project cards with screenshots ---------- */
.proj-art { display: block; width: 100%; height: 100%; background: linear-gradient(135deg, #0b1f3a 0%, #133a6e 55%, #1a5fb4 100%); }
.proj--biz .proj-art { background: linear-gradient(135deg, #0b3a4a 0%, #0f6f8a 50%, #14a9e0 100%); }
.proj-art .pa-grid path { stroke: rgba(255, 255, 255, .06); stroke-width: 1; }
.proj-art .pa-panel { fill: rgba(255, 255, 255, .08); stroke: rgba(255, 255, 255, .22); }
.proj-art .pa-line { fill: rgba(255, 255, 255, .5); }
.proj-art .pa-soft { fill: rgba(255, 255, 255, .1); }
.proj-art .pa-chart { fill: none; stroke: #6ef3dc; stroke-width: 2.5; stroke-linecap: round; stroke-linejoin: round; }
.proj-art .pa-dot { fill: none; stroke: #8ccdf2; stroke-width: 6; stroke-dasharray: 70 40; }


/* ---------- Project cards: image first, details rise on hover ---------- */
.proj { position: relative; display: block; aspect-ratio: 4 / 3.15; border-radius: var(--radius-lg); overflow: hidden; background: var(--navy); box-shadow: 0 1px 2px rgba(16, 24, 40, .06), 0 0 0 1px var(--line); transition: transform .45s var(--ease), box-shadow .45s var(--ease); }
.proj:hover { transform: translateY(-6px); box-shadow: 0 30px 60px -28px rgba(11, 31, 58, .55), 0 18px 40px -24px rgba(20, 169, 224, .5); }
.proj-shot { position: absolute; inset: 0; }
.proj-shot img { width: 100%; height: 100%; object-fit: cover; object-position: top center; transform-origin: top center; transition: transform 1.4s var(--ease), filter .6s; }
.proj:hover .proj-shot img { transform: scale(1.07); filter: saturate(1.1); }
.proj-art { transition: transform 1.4s var(--ease); }
.proj:hover .proj-art { transform: scale(1.06); }

/* shade: light at rest, deeper on hover so the details stay readable */
.proj-shot::after { content: ""; position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(180deg, rgba(11, 31, 58, 0) 38%, rgba(11, 31, 58, .55) 66%, rgba(11, 31, 58, .94) 100%);
  transition: opacity .5s; }
.proj-shot::before { content: ""; position: absolute; inset: 0; z-index: 1; pointer-events: none; opacity: 0;
  background: linear-gradient(180deg, rgba(11, 31, 58, .15) 0%, rgba(11, 31, 58, .7) 45%, rgba(11, 31, 58, .97) 100%);
  transition: opacity .5s var(--ease); }
.proj:hover .proj-shot::before { opacity: 1; }

/* chips on top of the image */
.proj-domain, .proj-sector { position: absolute; top: 14px; z-index: 3; display: inline-flex; align-items: center; gap: 6px; padding: 5px 10px; border-radius: 999px; font-size: 12px; font-weight: 600; line-height: 1.2; backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); transition: transform .45s var(--ease), opacity .45s; }
.proj-domain { left: 14px; max-width: 58%; background: rgba(255, 255, 255, .9); color: var(--text-2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; box-shadow: 0 4px 14px -6px rgba(11, 31, 58, .35); }
.proj-domain:empty { display: none; }
.proj-domain svg { width: 11px; height: 11px; flex: none; }
.proj-sector { right: 14px; background: rgba(11, 31, 58, .72); color: #fff; border: 1px solid rgba(255, 255, 255, .18); }
.proj--biz .proj-sector { background: rgba(20, 169, 224, .78); }

/* info panel */
.proj-info { position: absolute; left: 0; right: 0; bottom: 0; z-index: 3; padding: 22px 24px 22px; color: #fff; }
.proj h3 { font-size: 20px; line-height: 1.25; color: #fff; text-shadow: 0 2px 12px rgba(0, 0, 0, .25); }
.proj h3 a { color: inherit; }
.proj h3 a::after { content: ""; position: absolute; inset: 0; z-index: 4; }
.proj-type { margin-top: 4px; font-size: 14px; color: rgba(255, 255, 255, .78); }
.proj-more { display: grid; grid-template-rows: 0fr; transition: grid-template-rows .55s var(--ease); }
.proj-more > div { overflow: hidden; }
.proj-client, .proj-cta { opacity: 0; transform: translateY(18px); transition: opacity .45s var(--ease), transform .55s var(--ease); }
.proj-client { margin-top: 16px; padding-top: 14px; border-top: 1px solid rgba(255, 255, 255, .18); font-size: 13.5px; line-height: 1.45; color: rgba(255, 255, 255, .88); }
.proj-client small { display: block; margin-bottom: 2px; font-size: 10.5px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: #6ef3dc; }
.proj-cta { display: inline-flex; align-items: center; gap: 6px; margin-top: 14px; padding: 8px 14px; border-radius: 999px; background: var(--grad); font-size: 13px; font-weight: 600; color: #fff; box-shadow: var(--glow); }
.proj-cta svg { width: 14px; height: 14px; }
.proj:hover .proj-more, .proj:focus-within .proj-more { grid-template-rows: 1fr; }
.proj:hover .proj-client, .proj:hover .proj-cta, .proj:focus-within .proj-client, .proj:focus-within .proj-cta { opacity: 1; transform: none; }
.proj:hover .proj-client { transition-delay: .08s; }
.proj:hover .proj-cta { transition-delay: .16s; }
.proj:hover .proj-domain { transform: translateY(-2px); }

/* touch screens have no hover: show everything */
@media (hover: none) {
  .proj-more { grid-template-rows: 1fr; }
  .proj-client, .proj-cta { opacity: 1; transform: none; }
  .proj-shot::before { opacity: 0; }
  .proj-shot::after { background: linear-gradient(180deg, rgba(11, 31, 58, 0) 22%, rgba(11, 31, 58, .7) 50%, rgba(11, 31, 58, .96) 78%); }
}


/* ---------- Responsive ---------- */
@media (max-width: 1180px) {
  .header-row { gap: 24px; }
  .nav-link { padding: 0 10px; }
  .nav-link::after { left: 10px; right: 10px; }
  .mega-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 1023px) {
  .proj-grid { grid-template-columns: 1fr 1fr; }
  .trust { grid-template-columns: 1fr; }
  .hero-inner { grid-template-columns: 1fr; }
  .sysmap { max-width: 600px; margin: 8px auto -24px; }
  .explorer { grid-template-columns: 1fr; }
  .ex-list { display: grid; grid-template-columns: 1fr 1fr; border-top: 0; gap: 0 16px; }
  .ex-tab { padding: 16px 12px 16px 16px; grid-template-columns: 26px 22px 1fr; }
  .ex-go { display: none; }
  .res-grid, .tech-grid { grid-template-columns: 1fr 1fr; }
  .steps { grid-template-columns: 1fr 1fr; gap: 36px 28px; }
  .steps-track { display: none; }
  .principles .why-grid { grid-template-columns: 1fr 1fr; }
  .principles .why-card, .principles .why-card + .why-card, .principles .why-card:nth-child(even) { padding: 26px 22px; border: 1px solid var(--line); }
  .nav, .header-contact, .header-actions .lang { display: none; }
  .burger { display: grid; }
  .about-grid, .pp-grid, .contact-grid, .faq-grid, .tab-panel { grid-template-columns: 1fr; }
  .tab-list { grid-template-columns: repeat(2, 1fr); }
  .brand-tiles { grid-template-columns: 1fr 1fr; }
  .brand-tiles li:nth-child(3) .brand-tile { border-left: 0; }
  .brand-tiles li:nth-child(n+3) .brand-tile { border-top: 1px solid var(--line); }
  .about .about-grid { grid-template-columns: 1fr; gap: 24px; }
  .figures { grid-template-columns: 1fr 1fr; gap: 32px 24px; }
  .svc-grid, .feat-grid { grid-template-columns: 1fr 1fr; }
  .svc-list { grid-template-columns: 1fr 1fr; }
  .svc-row, .svc-row:not(:nth-child(3n+1)) { padding: 24px 24px 24px 0; border-left: 0; }
  .svc-row:nth-child(even) { padding-left: 24px; border-left: 1px solid var(--line); }
  .why-grid { grid-template-columns: 1fr 1fr; border-top: 0; }
  .why-card, .why-card + .why-card { padding: 24px 24px 24px 0; border-left: 0; border-top: 1px solid var(--line); }
  .why-card:nth-child(even) { padding-left: 24px; border-left: 1px solid var(--line); }
  .news-grid { grid-template-columns: 1fr 1fr; }
  .pricing, .pp-stats { grid-template-columns: 1fr 1fr; }
  .pp-stat:nth-child(3) { border-left: 0; }
  .pp-stat:nth-child(n+3) { border-top: 1px solid var(--line); }
  .others { grid-template-columns: 1fr 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .cta-band { grid-template-columns: 1fr; }
  .cta-band .btn-row { justify-content: flex-start; }
  .tech { grid-template-columns: 1fr; gap: 16px; }
}
@media (max-width: 760px) {
  .res-wall-inner { width: 140%; right: -50%; opacity: .35; }
  .hero::before { width: 360px; height: 360px; }
  .hero::after { width: 300px; height: 300px; right: -60px; }
  .proj-grid { grid-template-columns: 1fr; }
  .proj { aspect-ratio: 4 / 4.4; }
  .proj-filter { display: flex; width: 100%; }
  .proj-filter button { flex: 1; justify-content: center; gap: 6px; padding: 0 6px; font-size: 13px; white-space: nowrap; }
  .trust ul { gap: 10px 18px; }
  .sm-caption { position: static; max-width: none; min-height: 44px; margin-top: -6px; align-items: center; text-align: center; }
  .ex-num { display: none; }
  .ex-tab { grid-template-columns: 22px 1fr; gap: 10px; }
  .ex-name { font-size: 15px; }
  .cta-band > .cta-map { width: 600px; right: -260px; }
  .res-grid, .tech-grid, .steps, .principles .why-grid { grid-template-columns: 1fr; }
  .principles .why-card:nth-child(even) { padding-left: 22px; }
  :root { --header-h: 64px; }
  .logo { height: 34px; }
  .brand-tiles { grid-template-columns: 1fr; }
  .brand-tiles li + li .brand-tile { border-left: 0; border-top: 1px solid var(--line); }
  .brand-tile { padding: 18px 20px; }
  .about-cols { grid-template-columns: 1fr; gap: 16px; }
  .tab { padding: 14px 10px; gap: 10px; }
  .tab small { display: none; }
  .tp-feats { grid-template-columns: 1fr; }
  .prod-grid, .svc-grid, .svc-list, .feat-grid, .news-grid, .others, .gallery--wide { grid-template-columns: 1fr; }
  .svc-row:nth-child(even) { padding-left: 0; border-left: 0; }
  .why-grid { grid-template-columns: 1fr; }
  .why-card:nth-child(even) { padding-left: 0; border-left: 0; }
  .pp-meta { grid-template-columns: 1fr 1fr; }
  .form { grid-template-columns: 1fr; }
  .form-foot { flex-direction: column; align-items: stretch; }
  .footer-grid { grid-template-columns: 1fr; gap: 32px; }
  .faq-a { padding-right: 0; }
  .editor-body { grid-template-columns: 1fr; }
  .editor-page + .editor-page { display: none; }
}
@media (max-width: 420px) {
  .drawer-products { grid-template-columns: 1fr; }
  .btn-row .btn { flex: 1 1 100%; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
  .js [data-reveal], .js [data-reveal]:not(.is-in), .js [data-reveal] .mask-in { opacity: 1; transform: none; clip-path: none; }
  .js:not(.ready) [data-in] { opacity: 1; }
  .intro .loader { display: none; }
}
@media print {
  .mx-header, .drawer, .footer, .cta-band { display: none !important; }
}
