/* =====================================================================
   Vega SDS — design system
   Light + dark themes, Arabic (RTL) + English (LTR).
   Brand: navy #01013D, teal #1B92BA, mint #5DFDA2 (from the logo).
   Site palette (Enterprise): #0B1530 · #101E3C · #17294D · #2589D8 · #20CDB5 · #F4F7FC · #A8B6D0 · #263B63.
   ===================================================================== */

:root {
  --navy: #01013d;
  --navy-2: #0b0b45;
  --teal: #1b92ba;
  --teal-2: #27c0df;
  --mint: #5dfda2;
  --mint-2: #2fd981;

  --bg: #f4f7fc;
  --surface: #ffffff;
  --surface-2: #f8fafd;
  --surface-3: #eaf0f8;
  --line: #dbe3f0;
  --line-2: #c9d5e8;
  --ink: #0b1530;
  --ink-2: #3c4a68;
  --muted: #5a6886;
  --primary: #20cdb5;
  --primary-ink: #0b1530;
  --primary-hover: #2589d8;
  --accent: #2589d8;
  --accent-soft: #e4f0fb;
  --mint-soft: #e3fbef;
  --mint-ink: #0a7a4a;
  --badge-bg: #ffffff;
  --badge-ink: #0b1530;
  --hero-bg: #e3ecf8;
  --hero-glow-1: rgba(32, 205, 181, 0.22);
  --hero-glow-2: rgba(37, 137, 216, 0.25);
  --band-sky: #eaf0f9;
  --band-sky-2: #e3ebf7;
  --band-mist: #e8f3f3;
  --shadow-sm: 0 1px 2px rgba(16, 24, 40, 0.04), 0 1px 3px rgba(16, 24, 40, 0.04);
  --shadow-md: 0 12px 32px -12px rgba(1, 1, 61, 0.14);
  --shadow-lg: 0 30px 60px -24px rgba(1, 1, 61, 0.22);

  --font: "Inter Tight", "IBM Plex Sans Arabic", system-ui, -apple-system, "Segoe UI", sans-serif;
  --r-xl: 32px;
  --r-lg: 24px;
  --r-md: 16px;
  --r-sm: 12px;
  --pill: 999px;
  --container: 1240px;
  --gutter: clamp(16px, 4vw, 32px);
  --section: clamp(72px, 9vw, 120px);
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --header-h: 72px;
  color-scheme: light;
}


/* Dark theme and deep bands: premium dark tech (navy #0B1530, cards #17294D, blue #2589D8, teal #20CDB5) */
html.dark,
.tone-deep,
html.dark .tone-deep {
  --bg: #0b1530;
  --surface: #17294d;
  --surface-2: #1b2f57;
  --surface-3: #21375f;
  --line: #263b63;
  --line-2: #2f4775;
  --ink: #f4f7fc;
  --ink-2: #a8b6d0;
  --muted: #8d9cba;
  --primary: #20cdb5;
  --primary-ink: #0b1530;
  --accent: #20cdb5;
  --accent-soft: rgba(32, 205, 181, 0.12);
  --mint-soft: rgba(32, 205, 181, 0.1);
  --mint-ink: #20cdb5;
  --badge-bg: rgba(37, 137, 216, 0.12);
  --badge-ink: #f4f7fc;
  --hero-bg: #0e1a38;
  --hero-glow-1: rgba(32, 205, 181, 0.14);
  --hero-glow-2: rgba(37, 137, 216, 0.28);
  --band-sky: #101e3c;
  --band-sky-2: #12223f;
  --band-mist: #101e3c;
  --shadow-md: 0 12px 30px -16px rgba(3, 8, 22, 0.7);
  --shadow-lg: 0 24px 50px -24px rgba(3, 8, 22, 0.75);
  color-scheme: dark;
}

[lang="ar"] {
  --font: "IBM Plex Sans Arabic", "Inter Tight", system-ui, sans-serif;
}

/* ---------------- Reset ---------------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 110px; }
body {
  margin: 0;
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.6;
  color: var(--ink-2);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
  transition: background-color 0.4s var(--ease), color 0.4s var(--ease);
}
[lang="ar"] body { line-height: 1.8; }
img, svg, video, canvas { display: block; max-width: 100%; }
img { height: auto; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; background: none; border: 0; padding: 0; }
h1, h2, h3, h4 { margin: 0; color: var(--ink); font-weight: 500; letter-spacing: -0.02em; line-height: 1.15; text-wrap: balance; }
[lang="ar"] :is(h1, h2, h3, h4) { letter-spacing: 0; line-height: 1.35; }
h1 { font-size: clamp(2.5rem, 1.6rem + 3.6vw, 4.25rem); letter-spacing: -0.035em; line-height: 1.05; }
h2 { font-size: clamp(2rem, 1.4rem + 2.2vw, 3.25rem); letter-spacing: -0.03em; }
h3 { font-size: clamp(1.15rem, 1.05rem + 0.4vw, 1.4rem); }
p { margin: 0; text-wrap: pretty; }
ul, ol { margin: 0; padding: 0; list-style: none; }
::selection { background: var(--mint); color: var(--navy); }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 6px; }

.icon { width: 1.25em; height: 1.25em; flex-shrink: 0; }
[dir="rtl"] .flip-rtl { transform: scaleX(-1); }
.muted { color: var(--muted); }

.skip-link { position: fixed; inset-inline-start: 16px; top: -60px; z-index: 200; background: var(--primary); color: var(--primary-ink); padding: 10px 18px; border-radius: var(--pill); }
.skip-link:focus { top: 16px; }

.container { width: 100%; max-width: calc(var(--container) + var(--gutter) * 2); margin-inline: auto; padding-inline: var(--gutter); }
.section { padding-block: calc(var(--section) / 2); }
.section:first-of-type { padding-top: 0; }

/* ---------------- Section bands ----------------
   Sections alternate between the page ground and blue-family bands so the
   light theme is never one flat colour. Assigned at build time (layout.js). */
.section.band {
  position: relative;
  margin-inline: 12px;
  padding-block: calc(var(--section) * 0.85);
  margin-block: calc(var(--section) / 2);
  border-radius: var(--r-xl);
  isolation: isolate;
  overflow: clip;
}
.section.band + .section.band { margin-top: 0; }
.tone-sky { background: linear-gradient(180deg, var(--band-sky), var(--band-sky-2)); }
.tone-sky::before {
  content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background: radial-gradient(50% 60% at 100% 0%, rgba(39, 160, 223, 0.18), transparent 70%), radial-gradient(40% 50% at 0% 100%, rgba(93, 253, 162, 0.12), transparent 70%);
}
.tone-mist { background: linear-gradient(160deg, var(--band-mist), var(--band-sky)); }
.tone-deep {
  color: var(--ink-2);
  background: radial-gradient(60% 70% at 85% 0%, rgba(39, 160, 223, 0.35), transparent 70%), radial-gradient(50% 60% at 0% 100%, rgba(93, 253, 162, 0.14), transparent 70%), linear-gradient(170deg, #071a3f, #01013d);
}
.tone-deep::after {
  content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background-image: radial-gradient(rgba(160, 210, 255, 0.16) 1px, transparent 1.4px);
  background-size: 26px 26px;
  mask-image: radial-gradient(70% 80% at 80% 10%, #000, transparent 75%);
}
@media (max-width: 600px) { .section.band { margin-inline: 6px; border-radius: var(--r-lg); } }

/* light/dark logo swap */
.logo-dark { display: none; }
:is(html.dark, .tone-deep) .logo-light { display: none; }
:is(html.dark, .tone-deep) .logo-dark { display: block; }

/* ---------------- Buttons ---------------- */
.btn {
  --b-bg: var(--surface);
  --b-ink: var(--ink);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 48px;
  padding: 12px 26px;
  border-radius: var(--pill);
  background: var(--b-bg);
  color: var(--b-ink);
  font-weight: 500;
  font-size: 1rem;
  line-height: 1.2;
  white-space: nowrap;
  border: 1px solid transparent;
  transition: background-color 0.3s var(--ease), color 0.3s var(--ease), transform 0.3s var(--ease), box-shadow 0.3s var(--ease), border-color 0.3s;
}
.btn .icon { width: 18px; height: 18px; transition: transform 0.3s var(--ease); }
.btn:hover .flip-rtl { transform: translateX(3px); }
[dir="rtl"] .btn:hover .flip-rtl { transform: scaleX(-1) translateX(3px); }
.btn:active { transform: scale(0.98); }
.btn-primary { --b-bg: var(--primary); --b-ink: var(--primary-ink); }
.btn-primary:hover { --b-bg: var(--primary-hover); --b-ink: #fff; box-shadow: var(--shadow-md); }
:is(html.dark, .tone-deep) .btn-primary:hover { --b-ink: var(--navy); }
.btn-secondary { --b-bg: var(--surface); --b-ink: var(--ink); box-shadow: var(--shadow-sm); border-color: var(--line); }
.btn-secondary:hover { --b-bg: var(--primary); --b-ink: var(--primary-ink); }
.btn-ghost { --b-bg: transparent; --b-ink: var(--ink); border-color: var(--line-2); }
.btn-ghost:hover { --b-bg: var(--surface); border-color: transparent; box-shadow: var(--shadow-sm); }
.btn-sm { min-height: 40px; padding: 8px 18px; font-size: 1rem; }
.btn-lg { min-height: 54px; padding: 14px 30px; font-size: 1rem; }
.actions { display: flex; flex-wrap: wrap; gap: 12px; }
.actions.center { justify-content: center; }

.link-arrow { display: inline-flex; align-items: center; gap: 8px; color: var(--ink); font-weight: 500; font-size: 1rem; }
.link-arrow .icon { width: 18px; height: 18px; transition: transform 0.3s var(--ease); }
a:hover .link-arrow .flip-rtl, .link-arrow:hover .flip-rtl { transform: translateX(4px); }
[dir="rtl"] a:hover .link-arrow .flip-rtl, [dir="rtl"] .link-arrow:hover .flip-rtl { transform: scaleX(-1) translateX(4px); }

/* ---------------- Badges, chips, icon boxes ---------------- */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 14px;
  border-radius: var(--pill);
  background: var(--badge-bg);
  color: var(--badge-ink);
  font-size: 0.875rem;
  font-weight: 500;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--line);
}
.badge .icon { width: 16px; height: 16px; color: var(--accent); }
.chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 12px;
  border-radius: var(--pill);
  background: var(--surface-3);
  color: var(--ink-2);
  font-size: 0.875rem;
  font-weight: 500;
  white-space: nowrap;
}
.ico-box {
  display: inline-grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 14px;
  background: var(--accent-soft);
  color: var(--teal);
  flex-shrink: 0;
}
:is(html.dark, .tone-deep) .ico-box { color: var(--teal-2); }
.ico-box .icon { width: 24px; height: 24px; }
.ico-box.lg { width: 56px; height: 56px; border-radius: 18px; }
.ico-box.lg .icon { width: 30px; height: 30px; }
.ico-box.sm { width: 36px; height: 36px; border-radius: 12px; }
.ico-box.sm .icon { width: 20px; height: 20px; }
.ico-box.mint { background: var(--mint-soft); color: var(--mint-ink); }

/* ---------------- Section heads ---------------- */
.section-head { display: grid; gap: 16px; justify-items: start; margin-bottom: clamp(36px, 5vw, 56px); max-width: 720px; }
.section-head.center { justify-items: center; text-align: center; margin-inline: auto; }
.section-head .lead { max-width: 56ch; }
.section-head .btn { margin-top: 8px; }
.lead { font-size: clamp(1.02rem, 0.98rem + 0.25vw, 1.15rem); color: var(--muted); line-height: 1.65; }

/* ---------------- Cards ---------------- */
.card {
  background: var(--surface);
  border-radius: var(--r-lg);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-sm);
  transition: transform 0.4s var(--ease), box-shadow 0.4s var(--ease), border-color 0.4s;
}
a.card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }

/* =====================================================================
   Header
   ===================================================================== */
.site-header { position: fixed; inset-inline: 0; top: 14px; z-index: 100; padding-inline: var(--gutter); transition: transform 0.4s var(--ease); }
.header-bar {
  position: relative;
  max-width: var(--container);
  margin-inline: auto;
  height: var(--header-h);
  display: flex;
  align-items: center;
  gap: 24px;
  padding-inline: 20px 12px;
  background: color-mix(in srgb, var(--surface) 88%, transparent);
  backdrop-filter: saturate(1.4) blur(14px);
  -webkit-backdrop-filter: saturate(1.4) blur(14px);
  border: 1px solid var(--line);
  border-radius: var(--pill);
  box-shadow: var(--shadow-md);
}
[dir="rtl"] .header-bar { padding-inline: 20px 12px; }
.logo img { height: 36px; width: auto; }
.main-nav { flex: 1; }
.main-nav > ul { display: flex; justify-content: center; gap: 2px; }
.main-nav > ul > li > a {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 10px 14px;
  border-radius: var(--pill);
  font-size: 1rem;
  color: var(--ink);
  transition: background-color 0.25s;
}
.main-nav > ul > li > a:hover, .main-nav > ul > li > a[aria-current="page"] { background: var(--surface-3); }
.caret { width: 14px; height: 14px; transition: transform 0.3s var(--ease); }
.has-mega:hover .caret, .has-mega:focus-within .caret { transform: rotate(180deg); }
.header-tools { display: flex; align-items: center; gap: 6px; margin-inline-start: auto; }
.tool-btn {
  height: 42px;
  min-width: 42px;
  padding-inline: 10px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  border-radius: var(--pill);
  color: var(--ink);
  font-size: 1rem;
  transition: background-color 0.25s;
}
.tool-btn:hover { background: var(--surface-3); }
.tool-btn .icon { width: 20px; height: 20px; }
.i-sun, html.dark .i-moon { display: none; }
:is(html.dark, .tone-deep) .i-sun { display: block; }
.menu-btn { display: none; }
.menu-btn .i-close { display: none; }
.menu-btn[aria-expanded="true"] .i-open { display: none; }
.menu-btn[aria-expanded="true"] .i-close { display: block; }

/* Mega menus */
.has-mega { position: static; }
.mega {
  position: absolute;
  top: calc(100% + 10px);
  inset-inline: 0;
  display: grid;
  grid-template-columns: 1fr 280px;
  gap: 12px;
  padding: 12px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  box-shadow: var(--shadow-lg);
  opacity: 0;
  visibility: hidden;
  transform: translateY(8px);
  transition: opacity 0.25s var(--ease), transform 0.35s var(--ease), visibility 0s linear 0.35s;
}
.mega::before { content: ""; position: absolute; inset-inline: 0; top: -12px; height: 12px; }
.has-mega:hover .mega, .has-mega:focus-within .mega { opacity: 1; visibility: visible; transform: none; transition-delay: 0s; }
.mega-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 4px; }
.mega-item { display: flex; align-items: center; gap: 14px; padding: 12px; border-radius: var(--r-md); transition: background-color 0.2s; }
.mega-item:hover { background: var(--surface-2); }
.mega-item strong { display: block; color: var(--ink); font-weight: 500; font-size: 1rem; }
.mega-item small { display: block; color: var(--muted); font-size: 0.875rem; line-height: 1.4; }
.mega-promo {
  display: grid;
  align-content: end;
  justify-items: start;
  gap: 12px;
  padding: 22px;
  border-radius: var(--r-md);
  background: radial-gradient(120% 90% at 100% 0%, rgba(93, 253, 162, 0.45), transparent 60%), radial-gradient(100% 80% at 0% 100%, rgba(39, 192, 223, 0.5), transparent 60%), var(--navy);
  color: #fff;
  min-height: 220px;
}
.mega-promo strong { font-size: 1.125rem; font-weight: 500; line-height: 1.35; color: #fff; }
.mega-promo .link-arrow { color: var(--mint); }
.mega-promo .badge { background: rgba(255, 255, 255, 0.1); color: #fff; border-color: rgba(255, 255, 255, 0.15); box-shadow: none; }

/* Mobile menu */
.mobile-menu {
  position: absolute;
  top: calc(100% + 10px);
  inset-inline: var(--gutter);
  max-height: calc(100svh - 120px);
  overflow-y: auto;
  padding: 16px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  box-shadow: var(--shadow-lg);
}
.mobile-menu nav { display: grid; gap: 4px; }
.mobile-menu nav > a:not(.btn), .mobile-menu summary { display: flex; align-items: center; justify-content: space-between; padding: 14px 12px; border-radius: var(--r-sm); font-size: 1.125rem; color: var(--ink); font-weight: 500; }
.mobile-menu summary { list-style: none; cursor: pointer; }
.mobile-menu summary::-webkit-details-marker { display: none; }
.mobile-menu details[open] .caret { transform: rotate(180deg); }
.mobile-menu nav > a:not(.btn):hover, .mobile-menu summary:hover { background: var(--surface-2); }
.mm-list { display: grid; gap: 2px; padding-bottom: 8px; }
.mobile-menu .btn { margin-top: 10px; }

@media (max-width: 1180px) {
  .main-nav, .header-cta { display: none; }
  .menu-btn { display: inline-flex; }
}
@media (max-width: 520px) {
  .lang-btn span { display: none; }
  .header-bar { padding-inline: 16px 8px; }
  .logo img { height: 30px; }
}

/* =====================================================================
   Hero panels (home + inner pages)
   ===================================================================== */
.hero-panel {
  position: relative;
  margin: 0 12px;
  border-radius: 0 0 var(--r-xl) var(--r-xl);
  background: linear-gradient(165deg, color-mix(in srgb, var(--hero-bg) 70%, #fff), var(--hero-bg) 55%, color-mix(in srgb, var(--hero-bg) 85%, var(--teal)));
  overflow: hidden;
  isolation: isolate;
}
.hero-glow {
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(40% 50% at 85% 20%, var(--hero-glow-1), transparent 70%),
    radial-gradient(45% 55% at 10% 90%, var(--hero-glow-2), transparent 70%),
    radial-gradient(30% 40% at 50% 50%, rgba(255, 255, 255, 0.35), transparent 70%);
}
:is(html.dark, .tone-deep) .hero-glow { background: radial-gradient(40% 50% at 85% 20%, var(--hero-glow-1), transparent 70%), radial-gradient(45% 55% at 10% 90%, var(--hero-glow-2), transparent 70%); }
.hero-grid-lines {
  position: absolute;
  inset: 0;
  z-index: -1;
  background-image: linear-gradient(var(--line) 1px, transparent 1px), linear-gradient(90deg, var(--line) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: radial-gradient(70% 70% at 50% 40%, #000, transparent);
}

/* Artistic layers shared by every hero: aurora sweep, star-dust grain, the 3D canvas */
.hero-art { position: absolute; inset: 0; z-index: -1; pointer-events: none; overflow: hidden; }
.hero-art::before {
  content: ""; position: absolute; inset: -40%;
  background: conic-gradient(from 210deg at 70% 40%, transparent 0deg, rgba(39, 160, 223, 0.28) 40deg, transparent 90deg, rgba(93, 253, 162, 0.2) 150deg, transparent 200deg, rgba(1, 1, 61, 0.08) 280deg, transparent 360deg);
  filter: blur(60px);
  animation: aurora 28s linear infinite;
}
html.dark .hero-art::before { background: conic-gradient(from 210deg at 70% 40%, transparent 0deg, rgba(39, 160, 223, 0.35) 40deg, transparent 90deg, rgba(93, 253, 162, 0.16) 150deg, transparent 200deg, rgba(120, 140, 255, 0.12) 280deg, transparent 360deg); }
.hero-art::after {
  content: ""; position: absolute; inset: 0; opacity: 0.35; mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}
.hero-arc {
  position: absolute; inset-inline-end: -12%; top: -30%; width: 70vmax; aspect-ratio: 1; border-radius: 50%;
  border: 1px solid color-mix(in srgb, var(--teal) 30%, transparent);
  box-shadow: inset 0 0 120px color-mix(in srgb, var(--teal) 12%, transparent);
}
.hero-arc + .hero-arc { inset-inline-end: -4%; top: -18%; width: 52vmax; border-style: dashed; opacity: 0.6; }
@keyframes aurora { to { transform: rotate(360deg); } }
.hero3d { position: absolute; inset: 0; width: 100%; height: 100%; z-index: -1; opacity: 0; transition: opacity 1.4s var(--ease); pointer-events: none; }
.hero3d.ready { opacity: 1; }
.page-hero:has(.hero3d) .page-hero-grid.no-media { min-height: 400px; align-content: center; }
.page-hero:has(.hero3d) .page-hero-grid.no-media .page-hero-copy { max-width: 700px; }
@media (max-width: 900px) {
  .page-hero:has(.hero3d) .page-hero-grid.no-media { min-height: 0; }
  .page-hero:not(.has-media):has(.hero3d) .hero-panel { padding-bottom: 260px; }
}
@media (max-width: 900px) { .hero3d.ready { opacity: 0.55; } .page-hero:not(.has-media) .hero3d.ready { opacity: 1; } .home-hero .hero3d.ready, .has-media .hero3d.ready { opacity: 0.9; } }
.page-hero:has(.hero3d.ready) .sv-icon, .page-hero:has(.hero3d.ready) .about-mark { opacity: 0; transition: opacity 0.8s; }
@media (prefers-reduced-motion: reduce) { .hero-art::before { animation: none; } }

.home-hero-grid {
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  gap: 40px;
  align-items: center;
  min-height: min(860px, 100svh);
  padding-top: calc(var(--header-h) + 64px);
  padding-bottom: 72px;
}
.home-hero-copy { display: grid; gap: 24px; justify-items: start; }
.home-hero-copy h1 { max-width: 13ch; }
.home-hero-copy .lead { max-width: 50ch; color: var(--ink-2); }
:is(html.dark, .tone-deep) .home-hero-copy .lead { color: var(--ink-2); }
.trust { display: flex; align-items: center; gap: 14px; margin-top: 8px; }
.trust strong { display: block; color: var(--ink); font-weight: 500; }
.trust small { display: block; color: var(--muted); font-size: 0.875rem; }
.trust-logos { display: flex; }
.trust-logos span {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: var(--surface);
  color: var(--teal);
  border: 2px solid var(--hero-bg);
  margin-inline-start: -10px;
  box-shadow: var(--shadow-sm);
}
.trust-logos span:first-child { margin-inline-start: 0; }
.trust-logos .icon { width: 20px; height: 20px; }

.home-hero-media { position: relative; min-height: 520px; }
.hm-main {
  position: absolute;
  inset: 8% 0 8% 4%;
  border-radius: var(--r-lg);
  background: var(--surface);
  box-shadow: var(--shadow-lg);
  overflow: hidden;
  border: 6px solid color-mix(in srgb, var(--surface) 70%, transparent);
}
.hm-main img { width: 100%; height: 100%; object-fit: cover; object-position: center; }
.hm-phone {
  position: absolute;
  inset-inline-start: -6%;
  bottom: -2%;
  width: 34%;
  border-radius: 28px;
  overflow: hidden;
  background: var(--surface);
  box-shadow: var(--shadow-lg);
  border: 6px solid var(--surface);
}
.hm-phone img { width: 100%; height: auto; }
.hm-chip {
  position: absolute;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 18px 12px 12px;
  background: var(--surface);
  border-radius: var(--r-md);
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--line);
  font-size: 0.875rem;
  white-space: nowrap;
  animation: float 6s ease-in-out infinite;
}
[dir="rtl"] .hm-chip { padding: 12px 12px 12px 18px; }
.hm-chip strong { display: block; color: var(--ink); font-weight: 500; font-size: 1rem; }
.hm-chip small { display: block; color: var(--muted); }
.hm-chip-1 { top: 2%; inset-inline-end: 6%; }
.hm-chip-2 { bottom: 14%; inset-inline-end: -2%; animation-delay: -2s; }
.hm-chip-3 { top: 40%; inset-inline-start: -8%; animation-delay: -4s; }
.chip-mark { width: 32px; height: 38px; }
@keyframes float { 50% { translate: 0 -10px; } }

@media (max-width: 980px) {
  .home-hero-grid { grid-template-columns: 1fr; padding-top: calc(var(--header-h) + 48px); min-height: 0; }
  .home-hero-media { min-height: 400px; margin-top: 20px; }
  .hm-chip-3 { inset-inline-start: 0; }
  .hm-chip-2 { inset-inline-end: 0; }
}
@media (max-width: 560px) {
  .home-hero-media { min-height: 300px; }
  .hm-chip { font-size: 0.8125rem; padding: 8px 12px 8px 8px; }
  .hm-chip-3 { display: none; }
  .hm-phone { width: 38%; inset-inline-start: 0; }
}

/* =====================================================================
   Clients marquee
   ===================================================================== */
.clients { padding-block: 48px 24px; text-align: center; }
.clients-title { color: var(--muted); font-size: 1rem; margin-bottom: 24px; }
.marquee { overflow: hidden; mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent); }
.marquee-track { display: flex; gap: 56px; width: max-content; animation: marquee 160s linear infinite; align-items: center; }
[dir="rtl"] .marquee-track { animation-name: marquee-rtl; }
.marquee:hover .marquee-track { animation-play-state: paused; }
.client-logo { display: grid; place-items: center; height: 56px; }
.client-logo img { max-height: 48px; max-width: 150px; width: auto; object-fit: contain; filter: grayscale(1); opacity: 0.7; transition: filter 0.3s, opacity 0.3s; }
.client-logo:hover img { filter: none; opacity: 1; }
html:not(.dark) .client-logo img.logo-dark { display: none; }
html:not(.dark) .client-logo img.logo-light { display: block; }
:is(html.dark, .tone-deep) .client-logo img.logo-dark { display: block; }
:is(html.dark, .tone-deep) .client-logo img.logo-light { display: none; }
@keyframes marquee { to { transform: translateX(-50%); } }
@keyframes marquee-rtl { to { transform: translateX(50%); } }

/* =====================================================================
   Services: sticky intro + stacking cards
   ===================================================================== */
.split-sticky { display: grid; grid-template-columns: 5fr 7fr; gap: clamp(32px, 5vw, 72px); align-items: start; }
.sticky-col { position: sticky; top: calc(var(--header-h) + 48px); }
.stack-cards { display: grid; gap: 20px; }
.stack-card {
  position: sticky;
  top: calc(var(--header-h) + 48px + var(--i) * 14px);
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 20px;
  align-items: start;
  padding: 28px;
  min-height: 200px;
}
.stack-card h3 { margin-bottom: 8px; }
.stack-card p { color: var(--muted); }
.stack-card .tags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 16px; }
.round-arrow { width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; background: var(--surface-3); color: var(--ink); transition: background-color 0.3s, color 0.3s, transform 0.3s var(--ease); }
.round-arrow .icon { width: 18px; height: 18px; }
a:hover .round-arrow { background: var(--primary); color: var(--primary-ink); transform: rotate(-45deg); }
[dir="rtl"] a:hover .round-arrow { transform: rotate(45deg); }
@media (max-width: 900px) {
  .split-sticky { grid-template-columns: 1fr; }
  .sticky-col { position: static; }
  .stack-card { position: relative; top: 0; grid-template-columns: auto 1fr; }
  .stack-card .round-arrow { display: none; }
}

/* =====================================================================
   Tabs (systems showcase)
   ===================================================================== */
.tab-list { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin-bottom: 24px; }
.tab {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 18px;
  border-radius: var(--pill);
  background: var(--surface);
  border: 1px solid var(--line);
  color: var(--ink);
  font-weight: 500;
  font-size: 1rem;
  transition: background-color 0.3s, color 0.3s, box-shadow 0.3s;
}
.tab .icon { width: 20px; height: 20px; color: var(--teal); }
.tab:hover { box-shadow: var(--shadow-md); }
.tab[aria-selected="true"] { background: var(--primary); color: var(--primary-ink); border-color: transparent; }
.tab[aria-selected="true"] .icon { color: inherit; }
.tab-panel { display: grid; grid-template-columns: 1fr 1.1fr; gap: 0; overflow: hidden; animation: panelIn 0.6s var(--ease); }
.tab-panel[hidden] { display: none; }
@keyframes panelIn { from { opacity: 0; transform: translateY(14px); } }
.tp-copy { padding: clamp(28px, 4vw, 48px); display: grid; gap: 18px; align-content: center; }
.tp-copy h3 { font-size: clamp(1.5rem, 1.2rem + 1vw, 2.1rem); letter-spacing: -0.02em; }
.tp-copy p { color: var(--muted); }
.tp-logo img { height: 44px; width: auto; }
.tp-media {
  position: relative;
  background: radial-gradient(80% 80% at 70% 30%, color-mix(in srgb, var(--accent, #27c0df) 35%, transparent), transparent 70%), var(--surface-2);
  display: grid;
  place-items: center;
  padding: 32px;
  min-height: 420px;
}
.tp-media img { width: 100%; height: 100%; max-height: 520px; object-fit: contain; border-radius: var(--r-md); filter: drop-shadow(0 30px 40px rgba(1, 1, 61, 0.18)); }
.tp-fallback { display: grid; gap: 28px; justify-items: center; text-align: center; }
.tp-fallback-logo { height: 120px; width: auto; }
.tp-fallback ul { display: grid; grid-template-columns: repeat(3, auto); gap: 24px; }
.tp-fallback strong { display: block; font-size: 2rem; color: var(--ink); font-weight: 500; }
.tp-fallback span { font-size: 0.875rem; color: var(--muted); }
@media (max-width: 900px) {
  .tab-panel { grid-template-columns: 1fr; }
  .tp-media { min-height: 280px; order: -1; }
}

.checklist { display: grid; gap: 10px; }
.checklist.two-col { grid-template-columns: 1fr 1fr; gap: 10px 20px; }
.checklist li { display: flex; gap: 10px; align-items: flex-start; color: var(--ink-2); font-size: 1rem; line-height: 1.5; }
.checklist .icon { width: 20px; height: 20px; color: var(--mint-2); margin-top: 2px; }
:is(html.dark, .tone-deep) .checklist .icon { color: var(--mint); }
@media (max-width: 560px) { .checklist.two-col { grid-template-columns: 1fr; } }

/* =====================================================================
   Process
   ===================================================================== */
.process-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; counter-reset: s; }
.process-card { position: relative; padding: 28px; display: grid; gap: 14px; align-content: start; overflow: hidden; }
.process-card p { color: var(--muted); font-size: 1rem; }
.process-num { position: absolute; top: 18px; inset-inline-end: 22px; font-size: 3.2rem; font-weight: 300; line-height: 1; color: var(--surface-3); letter-spacing: -0.04em; }
:is(html.dark, .tone-deep) .process-num { color: rgba(255, 255, 255, 0.07); }
@media (max-width: 1000px) { .process-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .process-grid { grid-template-columns: 1fr; } }

/* =====================================================================
   Bento "why us"
   ===================================================================== */
.bento { display: grid; grid-template-columns: repeat(3, 1fr); grid-auto-rows: minmax(240px, auto); gap: 20px; }
.bento-intro { grid-column: span 2; display: grid; gap: 18px; align-content: center; justify-items: start; padding: 12px 8px; }
.bento-intro h2 { max-width: 16ch; }
.bento-card { padding: 28px; display: grid; gap: 10px; align-content: start; overflow: hidden; }
.bento-card p { color: var(--muted); font-size: 1rem; }
.b-strategy { grid-row: span 2; }
.strategy-steps { display: grid; gap: 10px; margin-top: 18px; counter-reset: st; }
.strategy-steps li { counter-increment: st; padding: 14px 16px; border-radius: var(--r-sm); background: var(--surface-2); border: 1px solid var(--line); font-size: 1rem; color: var(--ink); display: flex; gap: 10px; }
.strategy-steps li::before { content: counter(st); color: var(--muted); font-variant-numeric: tabular-nums; }
.strategy-steps li.on { background: var(--mint); color: var(--navy); border-color: transparent; transform: scale(1.03); box-shadow: var(--shadow-md); }
.strategy-steps li.on::before { color: var(--navy); }
.b-code { grid-column: span 2; grid-template-columns: 1fr 1.2fr; align-items: center; column-gap: 28px; }
.b-code h3, .b-code p { grid-column: 1; }
.code {
  grid-column: 2;
  grid-row: 1 / span 2;
  margin: 0;
  padding: 20px 22px;
  border-radius: var(--r-md);
  background: var(--navy);
  color: #d7dbff;
  font-family: ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  font-size: 0.875rem;
  line-height: 1.7;
  overflow-x: auto;
  text-align: left;
}
.c-k { color: #5dfda2; } .c-f { color: #7fd6ff; } .c-c { color: #8d92c4; } .c-s { color: #ffcf7a; }
.region-list { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: 8px; }
.region-list li { display: flex; align-items: center; gap: 8px; padding: 10px 12px; border-radius: var(--r-md); background: var(--surface-2); border: 1px solid var(--line); color: var(--ink); font-weight: 500; font-size: 0.9375rem; }
.region-list .icon { width: 16px; height: 16px; color: var(--teal); flex: none; }
.region-langs { display: flex; align-items: center; gap: 8px; margin-top: 4px; font-size: 0.875rem !important; }
.region-langs .icon { width: 18px; height: 18px; color: var(--teal); }
.quality-seals { display: flex; gap: 8px; }
.quality-seals img { width: 52px; height: 52px; border-radius: 50%; }
@media (max-width: 1000px) {
  .bento { grid-template-columns: 1fr 1fr; }
  .bento-intro { grid-column: 1 / -1; }
  .b-code { grid-column: 1 / -1; }
}
@media (max-width: 640px) {
  .bento { grid-template-columns: 1fr; }
  .b-strategy { grid-row: auto; }
  .b-code { grid-template-columns: 1fr; }
  .code { grid-column: 1; grid-row: auto; }
}

/* Stats */
.stats-band { margin-top: 20px; display: grid; grid-template-columns: repeat(4, 1fr); background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); box-shadow: var(--shadow-sm); }
.stat { padding: 28px; display: grid; gap: 4px; }
.stat + .stat { border-inline-start: 1px solid var(--line); }
.stat strong { font-size: clamp(2.2rem, 1.6rem + 2vw, 3.2rem); font-weight: 500; color: var(--ink); letter-spacing: -0.03em; line-height: 1; font-variant-numeric: tabular-nums; }
.stat span { color: var(--muted); font-size: 1rem; }
@media (max-width: 760px) {
  .stats-band { grid-template-columns: 1fr 1fr; }
  .stat:nth-child(3) { border-inline-start: 0; }
  .stat:nth-child(n + 3) { border-top: 1px solid var(--line); }
}

/* =====================================================================
   Work cards & covers
   ===================================================================== */
.work-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 28px 24px; }
.work-grid.three { grid-template-columns: repeat(3, 1fr); }
/* Home: latest work by project type */
.work-tabs .tab-list { margin-bottom: 32px; }
.work-tab-panel { animation: panelIn 0.6s var(--ease); }
.work-tab-panel[hidden] { display: none; }
@media (max-width: 640px) {
  .work-tabs .tab-list { flex-wrap: nowrap; justify-content: flex-start; overflow-x: auto; scrollbar-width: none; margin-inline: -16px; padding: 4px 16px; scroll-snap-type: x proximity; }
  .work-tabs .tab-list::-webkit-scrollbar { display: none; }
  .work-tabs .tab { flex: none; scroll-snap-align: start; }
}
@media (prefers-reduced-motion: reduce) { .work-tab-panel { animation: none; } }
.work-card { display: grid; gap: 18px; }
.work-card-body { display: flex; justify-content: space-between; gap: 18px; align-items: start; }
.work-card-body h3 { margin-bottom: 4px; }
.work-card-body p { color: var(--muted); font-size: 1rem; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.work-cover {
  position: relative;
  display: block;
  aspect-ratio: 16 / 11;
  border-radius: var(--r-lg);
  overflow: hidden;
  background: linear-gradient(140deg, var(--c1) 0%, color-mix(in srgb, var(--c1) 70%, #000) 100%);
  color: var(--fg);
  isolation: isolate;
}
.wc-glow { position: absolute; inset: 0; z-index: -1; background: radial-gradient(60% 70% at 85% 15%, color-mix(in srgb, var(--c2) 75%, transparent), transparent 70%), radial-gradient(50% 60% at 0% 100%, color-mix(in srgb, var(--c2) 35%, transparent), transparent 70%); }
.wc-meta { position: absolute; top: 20px; inset-inline-start: 20px; display: flex; gap: 6px; flex-wrap: wrap; z-index: 2; }
.wc-meta span { padding: 4px 10px; border-radius: var(--pill); background: rgba(255, 255, 255, 0.16); backdrop-filter: blur(6px); font-size: 0.8125rem; color: var(--fg); }
.wc-name { position: absolute; bottom: 20px; inset-inline-start: 24px; z-index: 2; font-size: clamp(1.4rem, 1rem + 1.4vw, 2.2rem); font-weight: 600; letter-spacing: -0.03em; line-height: 1.05; max-width: 40%; text-shadow: 0 2px 18px rgba(0, 0, 0, 0.45); }
.wc-shot { position: absolute; inset-inline-end: -4%; bottom: -10%; width: 60%; height: 76%; border-radius: 18px 18px 0 0; overflow: hidden; background: #fff; box-shadow: 0 30px 60px -20px rgba(0, 0, 0, 0.5); transition: transform 0.7s var(--ease); }
[dir="rtl"] .wc-shot { border-radius: 18px 18px 0 0; }
.wc-shot img { width: 100%; height: 100%; object-fit: cover; object-position: top center; }
.wc-device { position: absolute; inset-inline-end: 10%; bottom: -14%; width: 34%; aspect-ratio: 9 / 17; border-radius: 28px; background: #fff; color: #1a1a1c; padding: 22px 12px; display: grid; align-content: start; gap: 8px; font-size: 0.72rem; line-height: 1.3; box-shadow: 0 30px 60px -20px rgba(0, 0, 0, 0.5); transition: transform 0.7s var(--ease); }
.wc-notch { width: 34%; height: 6px; border-radius: 6px; background: #e3e7f2; justify-self: center; margin-bottom: 6px; }
.wc-device strong { font-size: 0.85rem; }
.wc-device span:not(.wc-notch) { background: #f2f4f9; border-radius: 8px; padding: 7px 8px; }
.work-card:hover .wc-shot, .work-card:hover .wc-device { transform: translateY(-12px) rotate(-1.5deg); }
.work-cover.lg { aspect-ratio: 16 / 8; border-radius: var(--r-xl); }
.work-cover.lg .wc-name { font-size: clamp(2.2rem, 1.4rem + 3vw, 4.4rem); bottom: 32px; inset-inline-start: 36px; }
.work-cover.lg .wc-meta { top: 28px; inset-inline-start: 32px; }
.work-cover.lg .wc-shot { width: 55%; }
@media (max-width: 900px) { .work-grid, .work-grid.three { grid-template-columns: 1fr; } .work-cover.lg { aspect-ratio: 4 / 3; } }

/* Filters */
.filters { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 32px; }
.filter-btn { padding: 10px 18px; border-radius: var(--pill); background: var(--surface); border: 1px solid var(--line); color: var(--ink); font-size: 1rem; font-weight: 500; display: inline-flex; gap: 8px; align-items: center; transition: background-color 0.25s, color 0.25s; }
.filter-btn small { color: var(--muted); font-variant-numeric: tabular-nums; }
.filter-btn:hover { box-shadow: var(--shadow-md); }
.filter-btn[aria-pressed="true"] { background: var(--primary); color: var(--primary-ink); border-color: transparent; }
.filter-btn[aria-pressed="true"] small { color: inherit; opacity: 0.75; }
.work-card.is-hidden { display: none; }

/* =====================================================================
   Posts
   ===================================================================== */
.post-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.post-card { display: grid; grid-template-rows: auto 1fr; overflow: hidden; }
.post-cover {
  position: relative;
  aspect-ratio: 16 / 9;
  display: grid;
  place-items: center;
  overflow: hidden;
  background: radial-gradient(70% 90% at 80% 10%, hsl(var(--h) 85% 72% / 0.6), transparent 70%), radial-gradient(70% 80% at 10% 100%, rgba(93, 253, 162, 0.5), transparent 70%), var(--navy);
  color: #fff;
}
.post-cover > .icon { width: 64px; height: 64px; position: relative; z-index: 1; transition: transform 0.6s var(--ease); }
.post-mark { position: absolute; width: 46%; height: auto; inset-inline-end: -8%; bottom: -26%; opacity: 0.25; }
a:hover .post-cover > .icon { transform: scale(1.12) rotate(-6deg); }
.post-body { padding: 24px; display: grid; gap: 12px; align-content: start; }
.post-meta { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; font-size: 0.875rem; color: var(--muted); }
.post-body p { color: var(--muted); font-size: 1rem; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.post-card.feature { grid-column: 1 / -1; grid-template-columns: 1.1fr 1fr; grid-template-rows: none; }
.post-card.feature .post-cover { aspect-ratio: auto; min-height: 360px; }
.post-card.feature h3 { font-size: clamp(1.5rem, 1.2rem + 1.2vw, 2.3rem); }
.post-card.feature .post-body { padding: clamp(28px, 4vw, 48px); align-content: center; }
@media (max-width: 1000px) { .post-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 640px) { .post-grid { grid-template-columns: 1fr; } .post-card.feature { grid-template-columns: 1fr; } .post-card.feature .post-cover { min-height: 220px; } }

/* =====================================================================
   Tech stack
   ===================================================================== */
.tinted-panel { border-radius: var(--r-xl); padding: clamp(40px, 6vw, 80px) clamp(20px, 4vw, 56px); background: radial-gradient(60% 80% at 50% 0%, var(--hero-glow-2), transparent 70%), var(--hero-bg); }
:is(html.dark, .tone-deep) .tinted-panel { background: radial-gradient(60% 80% at 50% 0%, rgba(27, 146, 186, 0.35), transparent 70%), var(--surface); }
.stack-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; max-width: 1040px; margin-inline: auto; }
.stack-item { display: flex; align-items: center; gap: 14px; padding: 16px 18px; background: var(--surface); border-radius: var(--r-md); border: 1px solid var(--line); box-shadow: var(--shadow-sm); transition: transform 0.3s var(--ease), box-shadow 0.3s; }
.stack-item:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); }
.stack-logo { width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; background: var(--surface-2); flex-shrink: 0; }
.brand-icon { width: 24px; height: 24px; color: var(--brand, var(--ink)); }
:is(html.dark, .tone-deep) .brand-icon[style*="#000000"] { color: #fff; }
.stack-item strong { display: block; color: var(--ink); font-weight: 500; }
.stack-item small { display: block; color: var(--muted); font-size: 0.875rem; }
@media (max-width: 1000px) { .stack-grid { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 700px) { .stack-grid { grid-template-columns: 1fr 1fr; } .stack-item { padding: 12px; } }

/* =====================================================================
   FAQ
   ===================================================================== */
.faq-grid { display: grid; grid-template-columns: 5fr 7fr; gap: clamp(32px, 5vw, 72px); align-items: start; }
.faq-grid .section-head { position: sticky; top: calc(var(--header-h) + 48px); }
.faq-list { display: grid; gap: 12px; }
.faq-item { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-md); box-shadow: var(--shadow-sm); overflow: hidden; }
.faq-item summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; gap: 20px; align-items: center; padding: 20px 24px; color: var(--ink); font-weight: 500; font-size: 1.125rem; }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-icon { width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; background: var(--surface-3); flex-shrink: 0; transition: transform 0.35s var(--ease), background-color 0.3s; }
.faq-icon .icon { width: 16px; height: 16px; }
.faq-item[open] .faq-icon { transform: rotate(45deg); background: var(--mint); color: var(--navy); }
.faq-answer { padding: 0 24px 22px; color: var(--muted); }
@media (max-width: 900px) { .faq-grid { grid-template-columns: 1fr; } .faq-grid .section-head { position: static; } }

/* =====================================================================
   CTA
   ===================================================================== */
.cta-card {
  position: relative;
  overflow: hidden;
  border-radius: var(--r-xl);
  background: var(--navy);
  color: #fff;
  padding: clamp(56px, 8vw, 112px) clamp(20px, 4vw, 64px);
  text-align: center;
  isolation: isolate;
}
.cta-card::before { content: ""; position: absolute; inset: 0; z-index: -1; background: radial-gradient(50% 70% at 15% 100%, rgba(39, 192, 223, 0.5), transparent 70%), radial-gradient(50% 70% at 90% 0%, rgba(93, 253, 162, 0.35), transparent 70%); }
.cta-canvas { position: absolute; inset: 0; width: 100%; height: 100%; z-index: -1; opacity: 0; transition: opacity 1.2s; }
.cta-canvas.ready { opacity: 1; }
.cta-content { display: grid; gap: 18px; justify-items: center; max-width: 680px; margin-inline: auto; }
.cta-card h2 { color: #fff; }
.cta-card .lead { color: #c8cbe0; }
.cta-card .badge { background: rgba(255, 255, 255, 0.08); color: #fff; border-color: rgba(255, 255, 255, 0.14); box-shadow: none; }
.cta-card .btn-primary { --b-bg: var(--mint); --b-ink: var(--navy); }
.cta-card .btn-primary:hover { --b-bg: #fff; --b-ink: var(--navy); }
.cta-card .btn-ghost { --b-ink: #fff; border-color: rgba(255, 255, 255, 0.25); }
.cta-card .btn-ghost:hover { --b-bg: rgba(255, 255, 255, 0.1); }

/* =====================================================================
   Footer
   ===================================================================== */
.site-footer { margin-top: var(--section); padding-top: clamp(56px, 7vw, 88px); background: var(--surface); border-top: 1px solid var(--line); }
.footer-grid { display: grid; grid-template-columns: 1.6fr repeat(3, 1fr) 1.3fr; gap: 40px; padding-bottom: 48px; }
.footer-brand { display: grid; gap: 16px; align-content: start; }
.footer-brand p { color: var(--muted); font-size: 1rem; max-width: 36ch; }
.footer-certs { display: flex; align-items: center; gap: 10px; }
.footer-certs img { width: 56px; height: 56px; flex: none; border-radius: 50%; }
.footer-brand .iso { display: grid; gap: 2px; color: var(--ink); font-weight: 500; font-size: 0.9375rem; }
.partner-badge { display: inline-block; justify-self: start; line-height: 0; border-radius: 10px; transition: transform 0.3s var(--ease), box-shadow 0.3s; }
.partner-badge:hover { transform: translateY(-2px); box-shadow: var(--shadow-md); }
.partner-badge img { width: 120px; height: auto; }
.footer-col h2 { font-size: 1rem; font-weight: 500; letter-spacing: 0; margin-bottom: 16px; }
.footer-col ul { display: grid; gap: 10px; }
.footer-col a { color: var(--muted); font-size: 1rem; transition: color 0.2s; }
.footer-col a:hover { color: var(--ink); }
.footer-contact a, .footer-contact li { display: inline-flex; align-items: center; gap: 8px; color: var(--muted); font-size: 1rem; }
.footer-contact .icon { width: 18px; height: 18px; color: var(--teal); }
.footer-bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; padding-block: 24px 32px; border-top: 1px solid var(--line); color: var(--muted); font-size: 0.875rem; }
.footer-bottom .credits { font-size: 0.8125rem; max-width: 70ch; }
@media (max-width: 1000px) { .footer-grid { grid-template-columns: 1fr 1fr; } .footer-brand { grid-column: 1 / -1; } }
@media (max-width: 520px) { .footer-grid { grid-template-columns: 1fr; } }

/* =====================================================================
   Inner page hero
   ===================================================================== */
.page-hero .hero-panel { padding-top: calc(var(--header-h) + 72px); padding-bottom: clamp(48px, 6vw, 88px); }
.page-hero-grid { display: grid; grid-template-columns: 1.1fr 1fr; gap: 48px; align-items: center; }
.page-hero-grid.no-media { grid-template-columns: 1fr; }
.page-hero-grid.no-media .page-hero-copy { max-width: 860px; }
.page-hero-copy { display: grid; gap: 20px; justify-items: start; }
.page-hero-copy .lead { color: var(--ink-2); max-width: 58ch; }
.page-hero-media { position: relative; }
.page-hero-media img { border-radius: var(--r-lg); box-shadow: var(--shadow-lg); }
.breadcrumbs ol { display: flex; flex-wrap: wrap; gap: 6px; font-size: 0.875rem; color: var(--muted); }
.breadcrumbs li { display: inline-flex; gap: 6px; align-items: center; }
.breadcrumbs li + li::before { content: "/"; opacity: 0.5; }
.breadcrumbs a:hover { color: var(--ink); }
.breadcrumbs [aria-current] { color: var(--ink); }
@media (max-width: 900px) { .page-hero-grid { grid-template-columns: 1fr; } }

/* =====================================================================
   Motion
   ===================================================================== */
@media (prefers-reduced-motion: no-preference) {
  .js [data-reveal] { opacity: 0; transform: translateY(24px); transition: opacity 0.9s var(--ease), transform 0.9s var(--ease); transition-delay: calc(var(--i, 0) * 70ms); }
}
.js [data-reveal].is-in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; }
  .js [data-reveal] { opacity: 1; transform: none; }
}

/* =====================================================================
   Utilities
   ===================================================================== */
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.small { font-size: 0.875rem; }
.credit { color: var(--muted); font-size: 0.8125rem; opacity: 0.8; }
.tags { display: flex; flex-wrap: wrap; gap: 8px; }
.link-chip { transition: background-color 0.2s, color 0.2s; }
.link-chip:hover { background: var(--primary); color: var(--primary-ink); }
.hp { position: absolute; inset-inline-start: 0; top: 0; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }

/* =====================================================================
   Systems
   ===================================================================== */
.systems-list { display: grid; gap: 24px; }
.system-row { display: grid; grid-template-columns: 1fr 1.15fr; overflow: hidden; }
.system-row:nth-child(even) .sr-media { order: -1; }
.sr-copy { padding: clamp(28px, 4vw, 52px); display: grid; gap: 18px; align-content: center; justify-items: start; }
.sr-copy h2 { font-size: clamp(1.7rem, 1.3rem + 1.4vw, 2.5rem); }
.sr-logo img { height: 48px; width: auto; }
.sr-stats { display: grid; grid-template-columns: repeat(4, auto); gap: 18px 28px; }
.sr-stats strong { display: block; font-size: 1.8rem; color: var(--ink); font-weight: 500; line-height: 1; }
.sr-stats span { font-size: 0.875rem; color: var(--muted); }
.sr-media { position: relative; display: grid; place-items: center; padding: 32px; min-height: 380px; background: radial-gradient(80% 80% at 60% 30%, color-mix(in srgb, var(--accent) 40%, transparent), transparent 70%), var(--surface-2); overflow: hidden; }
.sr-media img { width: 100%; max-height: 440px; object-fit: contain; filter: drop-shadow(0 30px 40px rgba(1, 1, 61, 0.2)); transition: transform 0.8s var(--ease); }
.system-row:hover .sr-media img { transform: scale(1.04); }
.sr-fallback-logo { height: 180px; width: auto; }
@media (max-width: 900px) {
  .system-row { grid-template-columns: 1fr; }
  .system-row .sr-media { order: -1; min-height: 260px; }
  .sr-stats { grid-template-columns: repeat(2, auto); }
}

.sys-hero-media { position: relative; border-radius: var(--r-lg); padding: 20px; background: radial-gradient(80% 80% at 70% 20%, color-mix(in srgb, var(--accent) 45%, transparent), transparent 70%), color-mix(in srgb, var(--surface) 60%, transparent); border: 1px solid var(--line); overflow: hidden; }
.sys-hero-media img { width: 100%; border-radius: var(--r-md); box-shadow: none !important; }
.sys-hero-media.logo-only { display: grid; place-items: center; min-height: 380px; }
.sys-hero-logo { max-height: 240px; width: auto; margin-inline: auto; }

.sys-stats { display: grid; grid-template-columns: repeat(4, 1fr); background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); box-shadow: var(--shadow-sm); }
.sys-stats > div { padding: 26px 28px; display: grid; gap: 6px; }
.sys-stats > div + div { border-inline-start: 1px solid var(--line); }
.sys-stats strong { font-size: clamp(2.2rem, 1.6rem + 2vw, 3.2rem); font-weight: 500; color: var(--ink); line-height: 1; letter-spacing: -0.03em; }
.sys-stats span { color: var(--muted); font-size: 1rem; }
@media (max-width: 760px) { .sys-stats { grid-template-columns: 1fr 1fr; } .sys-stats > div:nth-child(3) { border-inline-start: 0; } .sys-stats > div:nth-child(n + 3) { border-top: 1px solid var(--line); } }

.overview { display: grid; grid-template-columns: 1.1fr 1fr; gap: clamp(32px, 5vw, 72px); align-items: center; }
.overview-copy { display: grid; gap: 18px; justify-items: start; }
.overview-copy p { color: var(--muted); }
.overview-copy p.lead.strong { color: var(--ink-2); font-size: 1.125rem; }
.overview-media { border-radius: var(--r-xl); padding: 28px; background: radial-gradient(80% 80% at 30% 20%, color-mix(in srgb, var(--accent) 40%, transparent), transparent 70%), var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow-md); display: grid; place-items: center; min-height: 360px; }
.overview-media img { border-radius: var(--r-md); max-height: 520px; width: auto; }
.aud { display: grid; gap: 12px; margin-top: 8px; }
.aud h3 { font-size: 1rem; }
@media (max-width: 900px) { .overview { grid-template-columns: 1fr; } }

.modules { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; }
.module-card { padding: 28px; display: grid; gap: 20px; align-content: start; }
.module-card.wide { grid-column: 1 / -1; }
.module-head { display: flex; gap: 16px; align-items: flex-start; }
.module-head h3 { margin-bottom: 6px; }
.module-head p { color: var(--muted); font-size: 1rem; }
@media (max-width: 800px) { .modules { grid-template-columns: 1fr; } }

.gallery { columns: 3 300px; column-gap: 16px; }
.gallery-item { margin: 0 0 16px; break-inside: avoid; border-radius: var(--r-lg); overflow: hidden; background: radial-gradient(80% 80% at 50% 0%, color-mix(in srgb, var(--accent) 30%, transparent), transparent 70%), var(--surface); border: 1px solid var(--line); padding: 14px; }
.gallery-item img { border-radius: 12px; width: 100%; transition: transform 0.6s var(--ease); }
.gallery-item:hover img { transform: scale(1.03); }

.feature-tabs .tab-list { margin-bottom: 28px; }
.feature-panel { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; animation: panelIn 0.5s var(--ease); }
.feature-panel[hidden] { display: none; }
.feature-card { padding: 24px; display: grid; gap: 10px; align-content: start; }
.feature-card p { color: var(--muted); font-size: 1rem; }
.feature-card h3 { font-size: 1.125rem; }
@media (max-width: 1000px) { .feature-panel { grid-template-columns: 1fr 1fr; } }
@media (max-width: 600px) { .feature-panel { grid-template-columns: 1fr; } }

.why-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.why-grid.four { grid-template-columns: repeat(4, 1fr); }
.why-card { padding: 26px; display: grid; gap: 10px; align-content: start; }
.why-card p { color: var(--muted); font-size: 1rem; }
@media (max-width: 1000px) { .why-grid, .why-grid.four { grid-template-columns: 1fr 1fr; } }
@media (max-width: 600px) { .why-grid, .why-grid.four { grid-template-columns: 1fr; } }

.integrations { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; max-width: 980px; margin-inline: auto; }
.integrations li { display: inline-flex; align-items: center; gap: 10px; padding: 12px 20px; border-radius: var(--pill); background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow-sm); color: var(--ink); font-weight: 500; }
.integrations .icon { color: var(--teal); }

.mini-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.mini-grid.five { grid-template-columns: repeat(5, 1fr); }
.mini-card { padding: 22px; display: grid; gap: 8px; align-content: start; }
.mini-card strong { color: var(--ink); font-weight: 500; font-size: 1.125rem; margin-top: 6px; }
.mini-card > span:not(.ico-box):not(.link-arrow) { color: var(--muted); font-size: 1rem; }
.mini-card .link-arrow { margin-top: 6px; font-size: 1rem; }
@media (max-width: 1100px) { .mini-grid, .mini-grid.five { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .mini-grid, .mini-grid.five { grid-template-columns: 1fr; } }

/* =====================================================================
   Services
   ===================================================================== */
.service-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.service-card { padding: 30px; display: grid; gap: 14px; align-content: start; }
.service-card p { color: var(--muted); font-size: 1rem; }
.service-card .link-arrow { margin-top: 8px; }
@media (max-width: 1000px) { .service-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 600px) { .service-grid { grid-template-columns: 1fr; } }

.service-visual { position: relative; min-height: 420px; display: grid; place-items: center; isolation: isolate; }
.service-visual::before, .service-visual::after { content: ""; position: absolute; z-index: -1; border-radius: 50%; border: 1px dashed color-mix(in srgb, var(--teal) 40%, transparent); }
.service-visual::before { width: 300px; height: 300px; animation: spin 40s linear infinite; }
.service-visual::after { width: 440px; height: 440px; max-width: 100%; border-style: solid; border-color: var(--line-2); background: radial-gradient(circle, color-mix(in srgb, var(--mint) 18%, transparent), transparent 65%); }
@keyframes spin { to { transform: rotate(360deg); } }
.sv-icon { width: 180px; height: 180px; border-radius: 48px; display: grid; place-items: center; background: var(--navy); color: var(--mint); box-shadow: var(--shadow-lg); transform: rotate(-6deg); }
.sv-icon .icon { width: 96px; height: 96px; }
.sv-chip { position: absolute; display: inline-flex; align-items: center; gap: 10px; padding: 12px 18px; background: var(--surface); border-radius: var(--pill); box-shadow: var(--shadow-lg); border: 1px solid var(--line); color: var(--ink); font-weight: 500; font-size: 1rem; max-width: 260px; }
.sv-chip .icon { color: var(--teal); width: 20px; height: 20px; }
.sv-chip span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sv-chip-1 { top: 6%; inset-inline-start: 0; }
.sv-chip-2 { top: 22%; inset-inline-end: 0; }
.sv-chip-3 { bottom: 22%; inset-inline-start: 4%; }
.sv-chip-4 { bottom: 4%; inset-inline-end: 6%; }
@media (max-width: 900px) { .service-visual { min-height: 340px; } .sv-icon { width: 140px; height: 140px; } .sv-icon .icon { width: 72px; height: 72px; } }

.outcomes { display: grid; gap: 16px; padding: clamp(24px, 3vw, 36px); background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-xl); box-shadow: var(--shadow-md); }
.outcomes h3 { font-size: 1.125rem; margin-top: 4px; }
.outcome { display: flex; gap: 14px; align-items: flex-start; }
.outcome strong { display: block; color: var(--ink); font-weight: 500; margin-bottom: 2px; }
.outcome p { color: var(--muted); font-size: 1rem; }

.offer-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.offer-card { padding: 26px; display: grid; gap: 12px; align-content: start; }
.offer-card p { color: var(--muted); font-size: 1rem; }
.offer-card h3 { font-size: 1.125rem; }
@media (max-width: 1100px) { .offer-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .offer-grid { grid-template-columns: 1fr; } }

.timeline { position: relative; display: grid; gap: 16px; max-width: 860px; margin-inline: auto; }
.timeline::before { content: ""; position: absolute; inset-inline-start: 27px; top: 20px; bottom: 20px; width: 2px; background: linear-gradient(var(--teal), var(--mint)); opacity: 0.4; }
.timeline li { display: grid; grid-template-columns: 56px 1fr; gap: 20px; align-items: start; }
.tl-dot { position: relative; z-index: 1; width: 56px; height: 56px; border-radius: 50%; display: grid; place-items: center; background: var(--surface); border: 2px solid var(--line); color: var(--ink); font-weight: 500; font-variant-numeric: tabular-nums; box-shadow: var(--shadow-sm); }
.tl-dot .icon { color: var(--teal); }
.tl-card { padding: 22px 26px; display: grid; gap: 8px; }
.tl-top { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px; align-items: center; }
.tl-card p { color: var(--muted); }
.tl-top .chip .icon { width: 14px; height: 14px; }

.stack-groups { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 14px; max-width: 1080px; margin-inline: auto; }
.stack-group { padding: 22px; display: grid; gap: 14px; align-content: start; }
.stack-group h3 { font-size: 1rem; }

.plans { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; align-items: stretch; }
.plan { padding: 32px; display: grid; gap: 14px; align-content: start; justify-items: start; position: relative; }
.plan p { color: var(--muted); }
.plan .btn { margin-top: auto; align-self: end; }
.plan.featured { background: var(--navy); color: #c8cbe0; border-color: transparent; box-shadow: var(--shadow-lg); }
.plan.featured h3 { color: #fff; }
.plan.featured p { color: #c8cbe0; }
.plan.featured .ico-box { background: rgba(93, 253, 162, 0.14); color: var(--mint); }
.plan.featured .badge { position: absolute; top: 24px; inset-inline-end: 24px; background: var(--mint); color: var(--navy); border: 0; }
.plan.featured .btn-primary { --b-bg: var(--mint); --b-ink: var(--navy); }
:is(html.dark, .tone-deep) .plan.featured { background: var(--surface-2); border: 1px solid rgba(93, 253, 162, 0.3); }
.industries { margin-top: 40px; display: grid; gap: 14px; justify-items: center; text-align: center; }
.industries h3 { font-size: 1.125rem; }
.industries .tags { justify-content: center; }
@media (max-width: 900px) { .plans { grid-template-columns: 1fr; } }

/* =====================================================================
   Work detail
   ===================================================================== */
.filters-row { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 16px; margin-bottom: 32px; }
.filters-row .filters { margin: 0; }
.case-cover-wrap { padding-top: 40px; }

/* Project pictures: a centred showcase with the neighbours peeking at the sides, a slim control bar, a lightbox */
.cg-section { overflow-x: clip; }
.cg { --w: min(72%, 1000px); --dir: 1; }
[dir="rtl"] .cg { --dir: -1; }
.cg-track { position: relative; height: clamp(300px, 40vw, 580px); touch-action: pan-y; user-select: none; }
.cg-slide { position: absolute; inset-block: 0; inset-inline-start: calc(50% - var(--w) / 2); width: var(--w); margin: 0; display: grid; place-items: center; padding: clamp(16px, 3.2%, 44px); border-radius: var(--r-lg); overflow: hidden; isolation: isolate; background: linear-gradient(155deg, #17294d, #0b1530 75%); box-shadow: 0 40px 80px -40px rgba(11, 21, 48, 0.55); transition: transform 0.9s cubic-bezier(0.22, 1, 0.36, 1), opacity 0.7s cubic-bezier(0.22, 1, 0.36, 1), filter 0.7s; will-change: transform; }
.cg-slide[data-o="0"] { z-index: 3; }
.cg-slide[data-o="1"], .cg-slide[data-o="-1"] { z-index: 2; opacity: 0.5; filter: saturate(0.7); cursor: pointer; transform: translateX(calc(var(--o) * var(--dir) * 104%)) scale(0.84); }
.cg-slide[data-o="1"] { --o: 1; }
.cg-slide[data-o="-1"] { --o: -1; }
.cg-slide[data-o="1"]:hover, .cg-slide[data-o="-1"]:hover { opacity: 0.75; }
.cg-slide[data-o="2"], .cg-slide[data-o="-2"] { opacity: 0; pointer-events: none; transform: translateX(calc(var(--o) * var(--dir) * 104%)) scale(0.7); }
.cg-slide[data-o="2"] { --o: 2; }
.cg-slide[data-o="-2"] { --o: -2; }
.cg-glow { position: absolute; inset: 0; z-index: -1; background: radial-gradient(60% 75% at 82% 12%, color-mix(in srgb, var(--c2) 38%, transparent), transparent 70%), radial-gradient(50% 60% at 8% 100%, rgba(32, 205, 181, 0.2), transparent 70%); }
.cg-slide img { max-width: 100%; max-height: 100%; width: auto; height: auto; object-fit: contain; border-radius: 12px; box-shadow: 0 24px 60px -18px rgba(0, 0, 0, 0.55); pointer-events: none; }
.cg-slide[data-o="0"] img { cursor: zoom-in; pointer-events: auto; }
.cg-slide.is-phone img { border-radius: 0; box-shadow: none; filter: drop-shadow(0 26px 34px rgba(0, 0, 0, 0.45)); }
.cg-bar-row { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: clamp(16px, 3vw, 40px); width: var(--w); margin: 28px auto 0; }
.cg-count { direction: ltr; display: flex; align-items: baseline; gap: 10px; margin: 0; font-variant-numeric: tabular-nums; color: var(--muted); }
.cg-count strong { font-size: 1.5rem; line-height: 1; color: var(--ink); font-weight: 600; }
.cg-count span::before { content: ""; display: inline-block; width: 28px; height: 1px; margin-inline-end: 10px; vertical-align: middle; background: currentColor; opacity: 0.5; }
.cg-steps { display: flex; gap: 6px; }
.cg-step { flex: 1; height: 22px; display: grid; align-items: center; }
.cg-step span { display: block; height: 3px; border-radius: 3px; background: var(--line-2); overflow: hidden; position: relative; }
.cg-step span::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, #20cdb5, #2589d8); transform: scaleX(var(--p, 0)); transform-origin: left; }
[dir="rtl"] .cg-step span::after { transform-origin: right; }
.cg-step.is-done span::after { --p: 1; }
.cg-step:hover span { background: var(--muted); }
.cg-ctrls { display: flex; gap: 8px; }
.cg-btn { width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; color: var(--ink); border: 1px solid var(--line-2); background: transparent; transition: background 0.25s, color 0.25s, border-color 0.25s; }
.cg-btn:hover { background: #20cdb5; border-color: #20cdb5; color: #0b1530; }
.cg-btn .icon { width: 20px; height: 20px; }
.cg-lightbox { width: 100vw; height: 100dvh; max-width: none; max-height: none; margin: 0; padding: 0; border: 0; background: rgba(6, 12, 30, 0.95); color: #fff; }
.cg-lightbox[open] { display: grid; place-items: center; }
.cg-lightbox::backdrop { background: rgba(6, 12, 30, 0.6); }
.cg-lightbox img { max-width: min(92vw, 1600px); max-height: 84dvh; object-fit: contain; border-radius: 12px; }
.cg-lightbox .cg-btn { position: fixed; color: #fff; border-color: rgba(168, 182, 208, 0.3); background: rgba(11, 21, 48, 0.6); }
.cg-lightbox .cg-btn:hover { background: #20cdb5; color: #0b1530; }
.cg-lb-close { inset-block-start: 20px; inset-inline-end: 20px; }
.cg-lb-prev, .cg-lb-next { top: 50%; translate: 0 -50%; }
.cg-lb-prev { inset-inline-start: 20px; }
.cg-lb-next { inset-inline-end: 20px; }
.cg-lb-count { direction: ltr; position: fixed; bottom: 22px; inset-inline: 0; margin: 0; text-align: center; font-variant-numeric: tabular-nums; color: #a8b6d0; }
@media (max-width: 700px) {
  .cg { --w: 88%; }
  .cg-track { height: auto; aspect-ratio: 4 / 3; }
  .cg-slide { padding: 10px; }
  .cg-bar-row { width: 100%; grid-template-columns: auto 1fr; row-gap: 14px; }
  .cg-ctrls { grid-column: 1 / -1; justify-content: center; }
  .cg-lb-prev, .cg-lb-next { top: auto; bottom: 12px; translate: none; }
}
@media (prefers-reduced-motion: reduce) { .cg-slide { transition: opacity 0.2s; } }
.facts { display: grid; grid-template-columns: repeat(6, 1fr); margin: 0; overflow: hidden; }
.facts > div { padding: 22px 24px; display: grid; gap: 6px; }
.facts > div + div { border-inline-start: 1px solid var(--line); }
.facts dt { display: flex; gap: 6px; align-items: center; color: var(--muted); font-size: 0.875rem; }
.facts dt .icon { width: 16px; height: 16px; color: var(--teal); }
.facts dd { margin: 0; color: var(--ink); font-weight: 500; }
.facts dd a { text-decoration: underline; text-underline-offset: 3px; }
@media (max-width: 1000px) { .facts { grid-template-columns: repeat(3, 1fr); } .facts > div:nth-child(4) { border-inline-start: 0; } .facts > div:nth-child(n + 4) { border-top: 1px solid var(--line); } }
@media (max-width: 600px) { .facts { grid-template-columns: 1fr 1fr; } .facts > div { border-inline-start: 0 !important; border-top: 1px solid var(--line); } }
.story { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.story-card { padding: clamp(28px, 4vw, 44px); display: grid; gap: 14px; align-content: start; }
.story-card p { font-size: 1.125rem; color: var(--ink-2); }
@media (max-width: 800px) { .story { grid-template-columns: 1fr; } }
.next-project { display: grid; grid-template-columns: 1fr 1.4fr; gap: 24px; align-items: center; padding: 16px; overflow: hidden; }
.np-copy { display: grid; gap: 8px; padding: 20px; justify-items: start; }
.np-copy strong { font-size: clamp(1.8rem, 1.2rem + 2vw, 3rem); color: var(--ink); font-weight: 500; letter-spacing: -0.03em; line-height: 1.05; }
.np-copy > span:nth-child(3) { color: var(--muted); }
@media (max-width: 800px) { .next-project { grid-template-columns: 1fr; } }

/* =====================================================================
   Blog article
   ===================================================================== */
.article-head { display: grid; gap: 18px; justify-items: start; max-width: 900px; }
.article-head h1 { font-size: clamp(2.1rem, 1.4rem + 2.8vw, 3.6rem); }
.article-meta { display: flex; flex-wrap: wrap; gap: 10px 22px; color: var(--muted); font-size: 1rem; }
.article-meta span { display: inline-flex; gap: 6px; align-items: center; }
.article-meta .icon { width: 18px; height: 18px; color: var(--teal); }
.article-layout { display: grid; grid-template-columns: 300px 1fr; gap: clamp(32px, 5vw, 72px); align-items: start; }
.toc { position: sticky; top: calc(var(--header-h) + 40px); padding: 24px; display: grid; gap: 14px; }
.toc h2 { font-size: 1rem; letter-spacing: 0; }
.toc ol { display: grid; gap: 4px; }
.toc ol a { display: block; padding: 8px 12px; border-radius: 10px; color: var(--muted); font-size: 1rem; line-height: 1.45; transition: background-color 0.2s, color 0.2s; }
.toc ol a:hover, .toc a.on { background: var(--surface-2); color: var(--ink); }
.toc a.on { box-shadow: inset 3px 0 0 var(--teal); }
[dir="rtl"] .toc a.on { box-shadow: inset -3px 0 0 var(--teal); }
.prose { max-width: 72ch; font-size: 1.125rem; color: var(--ink-2); }
.prose > * + * { margin-top: 1.15em; }
.prose h2 { font-size: clamp(1.5rem, 1.2rem + 1vw, 2rem); margin-top: 1.8em; scroll-margin-top: 120px; }
.prose h3 { font-size: 1.25rem; margin-top: 1.4em; }
.prose ul, .prose ol { padding-inline-start: 1.4em; display: grid; gap: 0.5em; }
.prose ul { list-style: disc; }
.prose ol { list-style: decimal; }
.prose li::marker { color: var(--teal); }
.prose blockquote { margin: 1.8em 0; padding: 28px 32px; border-radius: var(--r-lg); background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow-sm); font-size: 1.25rem; color: var(--ink); display: grid; gap: 10px; }
.prose blockquote .icon { width: 32px; height: 32px; color: var(--teal); }
@media (max-width: 960px) { .article-layout { grid-template-columns: 1fr; } .toc { position: static; } }

/* =====================================================================
   About
   ===================================================================== */
.about-mark { display: grid; place-items: center; min-height: 380px; }
.about-mark-svg { width: min(320px, 70%); height: auto; filter: drop-shadow(0 40px 60px rgba(27, 146, 186, 0.35)); animation: float 7s ease-in-out infinite; }
.star-card { position: relative; border-radius: var(--r-xl); overflow: hidden; min-height: 560px; display: grid; align-items: end; background: #000006; color: #e6e9ff; isolation: isolate; }
.star-card > img { position: absolute; inset: -8% 0; width: 100%; height: 116%; object-fit: cover; object-position: 62% 50%; z-index: -1; }
.star-copy { display: grid; gap: 14px; justify-items: start; padding: clamp(28px, 5vw, 64px); max-width: 620px; background: linear-gradient(90deg, rgba(0, 0, 6, 0.85), rgba(0, 0, 6, 0.4) 80%, transparent); }
[dir="rtl"] .star-copy { background: linear-gradient(-90deg, rgba(0, 0, 6, 0.85), rgba(0, 0, 6, 0.4) 80%, transparent); }
.star-copy h2 { color: #fff; }
.star-copy p { color: #d4d7f2; font-size: 1.125rem; }
.star-copy small { color: #8d92c4; font-size: 0.8125rem; }
.star-copy .badge { background: rgba(255, 255, 255, 0.08); color: #fff; border-color: rgba(255, 255, 255, 0.14); box-shadow: none; }
.mvv { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.mvv-card { padding: 32px; display: grid; gap: 12px; align-content: start; }
.mvv-card p { color: var(--muted); }
@media (max-width: 900px) { .mvv { grid-template-columns: 1fr; } }

.offices { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.office { overflow: hidden; display: grid; }
.office-img { aspect-ratio: 16 / 9; overflow: hidden; }
.office-img img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.8s var(--ease); }
.office:hover .office-img img { transform: scale(1.05); }
.office-body { padding: 26px; display: grid; gap: 10px; justify-items: start; }
.office-body p { display: flex; gap: 8px; align-items: flex-start; color: var(--ink-2); }
.office-body p .icon { color: var(--teal); margin-top: 3px; }
@media (max-width: 800px) { .offices { grid-template-columns: 1fr; } }

/* =====================================================================
   Contact & quote
   ===================================================================== */
.contact-grid { display: grid; grid-template-columns: 1fr 1.3fr; gap: 24px; align-items: start; }
.contact-cards { display: grid; gap: 14px; }
.contact-card { display: flex; align-items: center; gap: 16px; padding: 20px 22px; }
.contact-card small { display: block; color: var(--muted); font-size: 0.875rem; }
.contact-card strong { display: block; color: var(--ink); font-weight: 500; font-size: 1.125rem; }
.contact-card .go { margin-inline-start: auto; color: var(--muted); }
.form-card { padding: clamp(24px, 4vw, 44px); display: grid; gap: 14px; }
.form-card h2 { font-size: clamp(1.5rem, 1.2rem + 1vw, 2rem); }
.lead-form { display: grid; gap: 24px; margin-top: 8px; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.field { display: grid; gap: 8px; }
.field.full { grid-column: 1 / -1; }
.field label { font-weight: 500; color: var(--ink); font-size: 1rem; }
.req { color: var(--muted); font-weight: 400; font-size: 0.875rem; }
.field input, .field textarea { width: 100%; padding: 14px 16px; border-radius: var(--r-sm); border: 1px solid var(--line-2); background: var(--surface-2); color: var(--ink); font-size: 1rem; transition: border-color 0.2s, box-shadow 0.2s, background-color 0.2s; }
.field textarea { resize: vertical; min-height: 140px; }
.field input:focus, .field textarea:focus { outline: none; border-color: var(--teal); box-shadow: 0 0 0 4px color-mix(in srgb, var(--teal) 18%, transparent); background: var(--surface); }
.field.invalid input, .field.invalid textarea { border-color: #e5484d; }
.field.invalid label { color: #e5484d; }
.field small { color: var(--muted); font-size: 0.875rem; }
.form-message { padding: 14px 18px; border-radius: var(--r-sm); font-weight: 500; }
.form-message.ok { background: var(--mint-soft); color: var(--mint-ink); }
.form-message.err { background: rgba(229, 72, 77, 0.12); color: #e5484d; }
@media (max-width: 900px) { .contact-grid { grid-template-columns: 1fr; } }
@media (max-width: 560px) { .form-grid { grid-template-columns: 1fr; } }

.quote-grid { display: grid; grid-template-columns: 1fr 2fr; gap: 24px; align-items: start; }
.quote-side { position: sticky; top: calc(var(--header-h) + 40px); display: grid; gap: 22px; }
.quote-side h2 { font-size: 1.5rem; }
.next-steps { display: grid; gap: 14px; }
.next-steps li { display: flex; gap: 14px; align-items: center; color: var(--ink-2); }
.side-card { padding: 22px; display: grid; gap: 12px; justify-items: start; }
.side-card .link-arrow .icon:first-child { color: var(--teal); }
.lead-form fieldset { border: 0; padding: 0; margin: 0; display: grid; gap: 14px; }
.lead-form fieldset[hidden] { display: none; }
.lead-form legend { font-size: 1.25rem; font-weight: 500; color: var(--ink); margin-bottom: 4px; padding: 0; }
.lead-form legend.sub { font-size: 1rem; margin-top: 16px; }
.choices { display: flex; flex-wrap: wrap; gap: 10px; }
.choices.cols-2 { display: grid; grid-template-columns: 1fr 1fr; }
.choice { position: relative; cursor: pointer; }
.choice input { position: absolute; opacity: 0; inset: 0; cursor: pointer; }
.choice > span { display: flex; align-items: center; gap: 10px; min-height: 48px; padding: 10px 18px; border-radius: var(--r-sm); border: 1px solid var(--line-2); background: var(--surface-2); color: var(--ink); font-weight: 500; font-size: 1rem; transition: border-color 0.2s, background-color 0.2s, box-shadow 0.2s; height: 100%; }
.choice > span .icon { color: var(--teal); width: 22px; height: 22px; }
.choice:hover > span { border-color: var(--teal); }
.choice input:checked + span { border-color: var(--teal); background: var(--accent-soft); box-shadow: 0 0 0 3px color-mix(in srgb, var(--teal) 18%, transparent); }
.choice input:focus-visible + span { outline: 2px solid var(--teal); outline-offset: 2px; }
.form-progress { display: grid; gap: 10px; color: var(--muted); font-size: 1rem; }
.form-progress .bar { height: 6px; border-radius: 6px; background: var(--surface-3); overflow: hidden; }
.form-progress .bar span { display: block; height: 100%; width: calc(var(--p, 0.33) * 100%); background: linear-gradient(90deg, var(--teal), var(--mint)); border-radius: inherit; transition: width 0.5s var(--ease); }
.form-actions { display: flex; flex-wrap: wrap; gap: 12px; justify-content: space-between; }
.form-actions [data-next], .form-actions [data-submit] { margin-inline-start: auto; }
.form-actions [hidden] { display: none; }
@media (max-width: 900px) { .quote-grid { grid-template-columns: 1fr; } .quote-side { position: static; order: 1; } }
@media (max-width: 560px) { .choices.cols-2 { grid-template-columns: 1fr; } }

/* 404 */
.nf { display: grid; gap: 22px; justify-items: center; text-align: center; padding-top: calc(var(--header-h) + 80px); padding-bottom: 80px; min-height: 70svh; align-content: center; }
.nf-mark { width: 120px; height: auto; }

/* Long chip labels wrap on narrow screens instead of widening their card */
.stack-card-body, .split-sticky > * { min-width: 0; }
@media (max-width: 600px) { .tags .chip { white-space: normal; text-align: start; } }

/* ---------------- Platform logos ---------------- */
.sys-mark { display: inline-grid; place-items: center; flex-shrink: 0; width: 40px; height: 40px; border-radius: 12px; background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow-sm); }
.sys-mark img { width: 72%; height: 72%; object-fit: contain; }
.sys-mark.ico-mark { width: 44px; height: 44px; border-radius: 14px; background: linear-gradient(160deg, var(--surface), var(--accent-soft)); }
.sys-mark.tab-mark { width: 28px; height: 28px; border-radius: 8px; border: 0; box-shadow: none; background: transparent; }
.sys-mark.tab-mark img { width: 100%; height: 100%; }
.sys-mark.ft-mark { width: 22px; height: 22px; border: 0; box-shadow: none; background: transparent; margin-inline-end: 8px; vertical-align: middle; }
.sys-mark.ft-mark img { width: 100%; height: 100%; }
.footer-col a:has(.ft-mark) { display: inline-flex; align-items: center; }
.sys-mark.choice-mark { width: 26px; height: 26px; border: 0; box-shadow: none; background: transparent; }
.sys-mark.choice-mark img { width: 100%; height: 100%; }
.trust-logos .sys-mark { width: 100%; height: 100%; border: 0; box-shadow: none; background: transparent; }
.sys-lockup { display: inline-flex; align-items: center; gap: 10px; color: var(--ink); font-family: "Inter Tight", sans-serif; font-weight: 400; font-size: 1.25rem; letter-spacing: 0.02em; white-space: nowrap; }
.sys-lockup img { height: 1.9em; width: auto; }
.sys-lockup b { font-weight: 700; letter-spacing: 0.08em; }
.sys-hero-logo.sys-lockup { font-size: 2.6rem; }
.sys-hero-logo.sys-lockup img { height: 2.2em; }
.hero-sys-logo { display: inline-flex; align-items: center; padding: 10px 18px; border-radius: var(--r-md); background: color-mix(in srgb, var(--surface) 75%, transparent); border: 1px solid var(--line); backdrop-filter: blur(8px); }
.hero-sys-logo img.sys-logo { height: 40px; width: auto; }
.hero-sys-logo .sys-lockup { font-size: 1.125rem; }

/* =====================================================================
   Testimonials
   ===================================================================== */
.ts-section { overflow: clip; }
.ts-head { display: flex; flex-wrap: wrap; align-items: end; justify-content: space-between; gap: 24px; margin-bottom: clamp(32px, 4vw, 48px); }
.ts-head > div { display: grid; gap: 14px; justify-items: start; max-width: 680px; }
.ts-layout { display: grid; grid-template-columns: minmax(0, 1.7fr) minmax(0, 1fr); gap: 20px; align-items: stretch; }
.ts-layout > div { min-width: 0; }
@media (max-width: 960px) { .ts-layout { grid-template-columns: 1fr; } }

/* featured slider */
.ts-slider {
  position: relative; height: 100%; display: grid; grid-template-rows: 1fr auto; gap: 28px;
  padding: clamp(28px, 4vw, 52px); border-radius: var(--r-xl); overflow: hidden; isolation: isolate;
  color: #c3d2ea;
  background: radial-gradient(60% 80% at 100% 0%, rgba(39, 160, 223, 0.45), transparent 70%), radial-gradient(50% 60% at 0% 100%, rgba(93, 253, 162, 0.18), transparent 70%), linear-gradient(160deg, #0b2858, #01013d);
  box-shadow: var(--shadow-lg);
}
html.dark .ts-slider { border: 1px solid var(--line-2); }
.ts-slider::after { content: ""; position: absolute; inset: 0; z-index: -1; background-image: radial-gradient(rgba(160, 210, 255, 0.14) 1px, transparent 1.4px); background-size: 24px 24px; mask-image: linear-gradient(200deg, #000, transparent 60%); }
.ts-quote-glyph { position: absolute; inset-inline-end: clamp(20px, 4vw, 48px); top: clamp(16px, 3vw, 32px); color: rgba(93, 253, 162, 0.16); }
.ts-quote-glyph .icon { width: clamp(80px, 10vw, 140px); height: auto; }
[dir="rtl"] .ts-quote-glyph .icon { transform: scaleX(-1); }
.ts-slides { display: grid; }
.ts-slide { grid-area: 1 / 1; margin: 0; display: grid; gap: 24px; align-content: start; }
.ts-slide.is-active { animation: ts-in 0.7s var(--ease) both; }
@keyframes ts-in { from { opacity: 0; transform: translateY(14px); filter: blur(6px); } }
.ts-slide blockquote { margin: 0; }
.ts-slide blockquote p { color: #fff; font-size: clamp(1.3rem, 1rem + 1.1vw, 1.9rem); line-height: 1.45; font-weight: 400; letter-spacing: -0.01em; max-width: 34ch; text-wrap: pretty; }
[lang="ar"] .ts-slide blockquote p { line-height: 1.75; letter-spacing: 0; }
.ts-slide figcaption { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px; padding-top: 24px; border-top: 1px solid rgba(160, 210, 255, 0.16); }
.ts-slide .ts-person strong { color: #fff; }
.ts-slide .ts-person small { color: #93a6c8; }
.ts-delivered { display: inline-flex; align-items: center; gap: 12px; padding: 8px 16px 8px 8px; border-radius: var(--r-md); background: rgba(255, 255, 255, 0.06); border: 1px solid rgba(160, 210, 255, 0.14); transition: background 0.25s; }
[dir="rtl"] .ts-delivered { padding: 8px 8px 8px 16px; }
.ts-delivered:hover { background: rgba(255, 255, 255, 0.12); }
.ts-delivered small { display: block; font-size: 0.8125rem; color: #93a6c8; }
.ts-delivered strong { display: block; font-weight: 500; color: #fff; font-size: 1rem; }
.ts-controls { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.ts-pager { display: flex; gap: 6px; flex-wrap: wrap; }
.ts-dot { width: 26px; height: 24px; display: grid; align-items: center; }
.ts-dot span { display: block; height: 4px; border-radius: 4px; background: rgba(160, 210, 255, 0.22); overflow: hidden; position: relative; transition: background 0.3s; }
.ts-dot.is-active { width: 54px; }
.ts-dot.is-active span::after { content: ""; position: absolute; inset: 0; background: var(--mint); transform-origin: left; animation: ts-progress var(--slide-ms, 8s) linear both; }
[dir="rtl"] .ts-dot.is-active span::after { transform-origin: right; }
.ts-slider:hover .ts-dot.is-active span::after, .ts-slider:focus-within .ts-dot.is-active span::after { animation-play-state: paused; }
@keyframes ts-progress { from { transform: scaleX(0); } }
.ts-arrows { display: flex; gap: 8px; }
.round-btn { width: 46px; height: 46px; border-radius: 50%; display: grid; place-items: center; color: #fff; border: 1px solid rgba(160, 210, 255, 0.25); transition: background 0.25s, color 0.25s, border-color 0.25s; }
.round-btn:hover { background: var(--mint); color: var(--navy); border-color: var(--mint); }

/* shared bits */
.ts-person { display: inline-flex; align-items: center; gap: 12px; }
.ts-person strong { display: block; color: var(--ink); font-weight: 500; }
.ts-person small { display: block; color: var(--muted); font-size: 0.875rem; }
.ts-avatar { width: 46px; height: 46px; border-radius: 50%; display: grid; place-items: center; flex-shrink: 0; font-weight: 600; font-size: 1rem; letter-spacing: 0.04em; color: var(--navy); background: conic-gradient(from 200deg, #5dfda2, #27c0df, #1b92ba, #5dfda2); box-shadow: 0 0 0 3px color-mix(in srgb, var(--surface) 80%, transparent); font-family: "Inter Tight", sans-serif; }
.ts-mark { width: 34px; height: 34px; border-radius: 10px; background: #fff; border: 0; box-shadow: none; }
.ts-mark img { width: 76%; height: 76%; }
.ts-mark-icon { display: inline-grid; place-items: center; color: var(--teal); background: var(--accent-soft); }
.ts-mark-icon .icon { width: 20px; height: 20px; }
.stars { display: inline-flex; gap: 2px; }
.star { position: relative; width: 18px; height: 18px; display: inline-grid; color: color-mix(in srgb, currentColor 20%, transparent); }
.star .icon { width: 100%; height: 100%; color: rgba(140, 160, 200, 0.35); }
.star::after { content: ""; position: absolute; inset-block: 0; inset-inline-start: 0; width: var(--fill); background: #ffb800; -webkit-mask: var(--star-mask) no-repeat left / 18px 18px; mask: var(--star-mask) no-repeat left / 18px 18px; }
.stars { --star-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 256 256'%3E%3Cpath d='M234.29 114.85l-45 38.83L203 211.75a16.4 16.4 0 0 1-24.5 17.82L128 198.49l-50.53 31.08A16.4 16.4 0 0 1 53 211.75l13.76-58.07-45-38.83A16.46 16.46 0 0 1 31.08 86l59-4.76 22.76-55.08a16.36 16.36 0 0 1 30.27 0l22.75 55.08 59 4.76a16.46 16.46 0 0 1 9.37 28.86Z'/%3E%3C/svg%3E"); }
[dir="rtl"] .star::after { -webkit-mask-position: right; mask-position: right; }
.stars-trustpilot { gap: 3px; }
.stars-trustpilot .star { width: 22px; height: 22px; background: #dcdce6; border-radius: 3px; overflow: hidden; }
.stars-trustpilot .star .icon { width: 70%; height: 70%; margin: auto; color: #fff; position: relative; z-index: 1; }
.stars-trustpilot .star::after { -webkit-mask: none; mask: none; background: #00b67a; }

/* compact cards */
.ts-card { margin: 0; display: grid; gap: 18px; align-content: start; padding: 26px; border-radius: var(--r-lg); background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow-sm); height: 100%; }
.ts-card-top { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.ts-about { display: inline-flex; align-items: center; gap: 8px; font-size: 0.875rem; color: var(--muted); padding: 4px 12px 4px 4px; border-radius: var(--pill); background: var(--surface-2); border: 1px solid var(--line); max-width: 60%; }
[dir="rtl"] .ts-about { padding: 4px 4px 4px 12px; }
.ts-about span:last-child { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ts-about .ts-mark { width: 26px; height: 26px; border-radius: 50%; }
.ts-about:hover { color: var(--ink); }
.ts-card blockquote { margin: 0; }
.ts-card blockquote p { color: var(--ink); font-size: 1rem; line-height: 1.7; }
.ts-card figcaption { margin-top: auto; padding-top: 16px; border-top: 1px solid var(--line); }

/* two-row marquee */
.ts-marquee { display: grid; gap: 16px; margin-top: clamp(32px, 4vw, 56px); mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); }
.ts-row { overflow: hidden; }
.ts-track { display: flex; gap: 16px; width: max-content; animation: ts-scroll 70s linear infinite; }
.ts-dup { display: flex; gap: 16px; }
.ts-row.rev .ts-track { animation-direction: reverse; animation-duration: 80s; }
.ts-row:hover .ts-track { animation-play-state: paused; }
.ts-track .ts-card { width: min(380px, 80vw); flex-shrink: 0; }
@keyframes ts-scroll { to { transform: translateX(calc(-50% - 8px)); } }
[dir="rtl"] .ts-track { animation-name: ts-scroll-rtl; }
@keyframes ts-scroll-rtl { to { transform: translateX(calc(50% + 8px)); } }
@media (prefers-reduced-motion: reduce) { .ts-track { animation: none; } .ts-row { overflow-x: auto; } .ts-dup { display: none; } }

/* review platforms */
.ts-aside { display: grid; gap: 14px; align-content: start; padding: 24px; border-radius: var(--r-xl); background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow-sm); }
.ts-aside-title { color: var(--muted); font-size: 1rem; }
.rv-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.rv-grid.compact { grid-template-columns: 1fr; gap: 12px; }
@media (max-width: 700px) { .rv-grid { grid-template-columns: 1fr; } }
.rv-card {
  position: relative; display: grid; gap: 18px; padding: clamp(22px, 3vw, 32px); border-radius: var(--r-lg); overflow: hidden; isolation: isolate;
  background: var(--surface-2); border: 1px solid var(--line); transition: transform 0.35s var(--ease), box-shadow 0.35s var(--ease), border-color 0.35s;
}
.rv-card::before { content: ""; position: absolute; inset: auto -30% -60% auto; width: 70%; aspect-ratio: 1; border-radius: 50%; z-index: -1; filter: blur(40px); opacity: 0.35; }
.rv-google::before { background: radial-gradient(#4285f4, transparent 70%); }
.rv-trustpilot::before { background: radial-gradient(#00b67a, transparent 70%); }
.rv-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); border-color: var(--line-2); }
.rv-head { display: flex; align-items: center; gap: 12px; }
.rv-logo { width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; background: #fff; box-shadow: var(--shadow-sm); }
.rv-logo .brand-icon { width: 26px; height: 26px; }
.rv-trustpilot .rv-logo .brand-icon { color: #00b67a; }
.rv-name { font-weight: 500; color: var(--ink); font-size: 1.125rem; flex: 1; }
.rv-out { color: var(--muted); }
.rv-score { display: flex; align-items: center; gap: 16px; }
.rv-score > strong { font-size: clamp(2.6rem, 2rem + 2vw, 3.6rem); font-weight: 500; color: var(--ink); line-height: 1; letter-spacing: -0.03em; font-family: "Inter Tight", sans-serif; }
.rv-score > span { display: grid; gap: 6px; }
.rv-score small { color: var(--muted); font-size: 0.875rem; }
.rv-cta { display: inline-flex; align-items: center; gap: 8px; color: var(--accent); font-weight: 500; font-size: 1rem; }
.rv-grid.compact .rv-card { padding: 18px 20px; gap: 12px; }
.rv-grid.compact .rv-score > strong { font-size: 2.2rem; }
.rv-widget { min-height: 150px; }

/* page grid + leave a review */
.ts-grid-head { display: flex; flex-wrap: wrap; align-items: end; justify-content: space-between; gap: 20px; }
.ts-grid-head .section-head { margin-bottom: 0; }
.ts-grid { margin-top: 32px; columns: 3 320px; column-gap: 18px; }
.ts-cell { break-inside: avoid; margin-bottom: 18px; }
.ts-cell.is-hidden { display: none; }
.leave-card { display: grid; grid-template-columns: auto 1fr minmax(0, 420px); gap: 28px; align-items: center; padding: clamp(28px, 4vw, 48px); border-radius: var(--r-xl); background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow-md); }
.leave-card h2 { font-size: clamp(1.5rem, 1.2rem + 1vw, 2.1rem); }
.leave-card .rv-grid.compact { grid-template-columns: 1fr 1fr; }
@media (max-width: 980px) { .leave-card { grid-template-columns: 1fr; } }
@media (max-width: 520px) { .leave-card .rv-grid.compact { grid-template-columns: 1fr; } }

/* =====================================================================
   Footer language menu
   ===================================================================== */
.lang-menu { position: relative; }
.lang-menu summary { list-style: none; display: inline-flex; align-items: center; gap: 8px; cursor: pointer; padding: 8px 14px; border-radius: var(--pill); border: 1px solid var(--line-2); color: var(--ink); font-size: 1rem; background: var(--surface-2); transition: border-color 0.2s; }
.lang-menu summary::-webkit-details-marker { display: none; }
.lang-menu summary:hover { border-color: var(--accent); }
.lang-menu summary .icon { width: 18px; height: 18px; }
.lang-menu .caret { width: 14px !important; height: 14px !important; transition: transform 0.25s var(--ease); }
.lang-menu[open] .caret { transform: rotate(180deg); }
.lang-menu ul { position: absolute; bottom: calc(100% + 8px); inset-inline-end: 0; min-width: 190px; padding: 6px; border-radius: var(--r-md); background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow-lg); z-index: 20; animation: lang-pop 0.25s var(--ease); }
@keyframes lang-pop { from { opacity: 0; transform: translateY(6px); } }
.lang-menu a { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border-radius: 10px; color: var(--ink); font-size: 1rem; }
.lang-menu a:hover { background: var(--surface-3); }
.lang-menu a small { color: var(--muted); font-size: 0.8125rem; margin-inline-start: auto; }
.lang-menu a .icon { width: 16px; height: 16px; color: var(--accent); }
.lang-menu a[aria-current] { font-weight: 500; }
.footer-bottom { align-items: center; }

/* System hero stage: the platform's 3D model behind, a tilted screenshot card in front */
.sys-stage { position: relative; min-height: 460px; }
.sys-shot { position: absolute; inset-inline-start: 0; bottom: 0; width: 64%; border-radius: var(--r-lg); padding: 8px; background: color-mix(in srgb, var(--surface) 70%, transparent); border: 1px solid var(--line); box-shadow: var(--shadow-lg); backdrop-filter: blur(10px); transform: perspective(1200px) rotateY(var(--tilt, 8deg)) rotateX(4deg); }
[dir="rtl"] .sys-shot { --tilt: -8deg; }
.sys-shot img { width: 100%; border-radius: calc(var(--r-lg) - 8px); box-shadow: none !important; }
.sys-stage.logo-only { min-height: 420px; }
@media (max-width: 900px) { .sys-stage { min-height: 380px; } .sys-shot { width: 78%; } }
.sys-shot img { max-height: 290px; object-fit: cover; object-position: top center; }
.ts-slide[hidden] { display: none; }
.ts-grid-head .filters { margin: 0; }
.rv-name { white-space: nowrap; }
.leave-card { grid-template-columns: auto minmax(0, 1fr) minmax(0, 480px); }
@media (max-width: 980px) { .leave-card { grid-template-columns: 1fr; } }
.sys-hero-logo.sys-lockup { font-size: clamp(1.5rem, 1rem + 2.4vw, 2.6rem); max-width: 100%; }

/* Home hero stage: the 3D Vega mark owns the upper media area, the product sits in front below it */
.home-hero-media { min-height: 620px; }
.home-hero-media .hm-main { inset: auto; inset-inline-start: 0; bottom: 3%; width: 60%; aspect-ratio: 16 / 10.5; border-width: 5px; }
.home-hero-media .hm-phone { inset-inline-start: auto; inset-inline-end: 4%; bottom: 0; width: 25%; }
.home-hero-media .hm-chip-1 { top: 8%; inset-inline-end: auto; inset-inline-start: -4%; }
.home-hero-media .hm-chip-2 { top: 36%; bottom: auto; inset-inline-end: -4%; }
.home-hero-media .hm-chip-3 { top: auto; bottom: 36%; inset-inline-start: -6%; }
@media (max-width: 980px) {
  .home-hero-media { min-height: 560px; }
  .home-hero-media .hm-chip-1, .home-hero-media .hm-chip-3 { inset-inline-start: 0; }
  .home-hero-media .hm-chip-2 { inset-inline-end: 0; }
}
@media (max-width: 560px) {
  .home-hero-media { min-height: 470px; }
  .home-hero-media .hm-main { width: 74%; }
  .home-hero-media .hm-phone { width: 32%; inset-inline-end: 0; }
  .home-hero-media .hm-chip-2 { top: 30%; }
}
@media (max-width: 900px) { .home-hero .hero3d.ready { opacity: 1; } }
@media (max-width: 560px) {
  .home-hero-media .hm-chip-2, .home-hero-media .hm-chip-3 { display: none; }
  .home-hero-media .hm-chip-1 { top: 2%; }
}

/* Home hero fits the first screen together with the client logos strip below it */
.clients { padding-block: 24px 8px; }
.clients-title { margin-bottom: 14px; }
@media (min-width: 981px) {
  .home-hero-grid {
    min-height: clamp(560px, calc(100svh - 150px), 820px);
    padding-top: calc(var(--header-h) + 36px);
    padding-bottom: 36px;
  }
  .home-hero-media { min-height: clamp(440px, calc(100svh - 300px), 620px); }
}

/* =====================================================================
   Work hero: copy and facts beside a tilted wall of project covers
   ===================================================================== */
.work-hero .hero-panel { padding-top: calc(var(--header-h) + 40px); }
.work-hero-grid { display: grid; grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.05fr); gap: clamp(24px, 4vw, 56px); align-items: center; min-height: clamp(560px, calc(100svh - 120px), 760px); }
.work-hero-copy { display: grid; gap: 22px; justify-items: start; padding-block: 24px 56px; position: relative; z-index: 2; }
.work-hero-copy h1 { font-size: clamp(2.6rem, 1.6rem + 4vw, 5rem); max-width: 11ch; }
.work-hero-copy .lead { max-width: 48ch; color: var(--ink-2); }
.work-facts { display: grid; grid-template-columns: repeat(4, auto); gap: 0; margin: 12px 0 0; padding-top: 22px; border-top: 1px solid var(--line-2); width: 100%; max-width: 540px; }
.work-facts > div { display: flex; flex-direction: column-reverse; gap: 2px; padding-inline: 18px; border-inline-start: 1px solid var(--line-2); }
.work-facts > div:first-child { padding-inline-start: 0; border-inline-start: 0; }
.work-facts dt { color: var(--muted); font-size: 0.875rem; }
.work-facts dd { margin: 0; color: var(--ink); font-size: clamp(1.6rem, 1.2rem + 1.2vw, 2.3rem); font-weight: 500; letter-spacing: -0.03em; line-height: 1.1; font-family: "Inter Tight", sans-serif; font-variant-numeric: tabular-nums; }

/* the wall: a tilted plane of three drifting columns, faded at its edges */
.work-wall { position: relative; align-self: stretch; min-height: 520px; margin-block: -40px -1px; margin-inline-end: calc(var(--gutter) * -1 - 12px); perspective: 1800px; overflow: hidden;
  mask-image: linear-gradient(180deg, transparent, #000 14%, #000 82%, transparent), linear-gradient(90deg, transparent, #000 12%);
  -webkit-mask-composite: source-in; mask-composite: intersect; }
[dir="rtl"] .work-wall { mask-image: linear-gradient(180deg, transparent, #000 14%, #000 82%, transparent), linear-gradient(270deg, transparent, #000 12%); }
.wall-plane { position: absolute; inset: -18% -10% -18% 4%; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; transform: rotateX(24deg) rotateY(-16deg) rotateZ(9deg); transform-style: preserve-3d; transform-origin: 50% 40%; }
[dir="rtl"] .wall-plane { inset: -18% 4% -18% -10%; transform: rotateX(24deg) rotateY(16deg) rotateZ(-9deg); }
.wall-col { position: relative; overflow: visible; }
.wall-col:nth-child(2) { margin-top: -90px; }
.wall-track { display: grid; gap: 18px; animation: wall-up var(--dur, 70s) linear infinite; }
.wall-col.down .wall-track { animation-name: wall-down; }
.work-wall:hover .wall-track, .work-wall:focus-within .wall-track { animation-play-state: paused; }
@keyframes wall-up { from { transform: translateY(0); } to { transform: translateY(calc(-50% - 9px)); } }
@keyframes wall-down { from { transform: translateY(calc(-50% - 9px)); } to { transform: translateY(0); } }
.wall-tile { position: relative; display: block; border-radius: 20px; overflow: hidden; background: var(--surface); box-shadow: 0 24px 50px -24px rgba(1, 1, 61, 0.45), 0 0 0 1px var(--line); transition: transform 0.5s var(--ease), box-shadow 0.5s var(--ease); }
html.dark .wall-tile { box-shadow: 0 24px 50px -20px rgba(0, 0, 0, 0.7), 0 0 0 1px rgba(140, 200, 255, 0.14); }
.wall-tile:hover, .wall-tile:focus-visible { transform: translateZ(40px) scale(1.03); box-shadow: 0 40px 70px -26px rgba(1, 1, 61, 0.6), 0 0 0 2px var(--mint); }
.wall-tile .work-cover { aspect-ratio: 4 / 4.6; border-radius: 0; }
.wall-tile .wc-name { font-size: 1.15rem; bottom: auto; top: 46px; inset-inline-start: 16px; max-width: 70%; }
.wall-tile .wc-meta { top: 14px; inset-inline-start: 14px; }
.wall-tile .wc-meta span { font-size: 0.68rem; padding: 3px 8px; }
.wall-tile .wc-shot { width: 78%; height: 58%; bottom: -6%; inset-inline-end: -6%; border-radius: 12px 12px 0 0; }
.wall-tile .wc-device { width: 46%; bottom: -24%; padding: 16px 8px; gap: 5px; font-size: 0.6rem; border-radius: 20px; }
.wall-tile .wc-device strong { font-size: 0.7rem; }
.wall-tile .wc-device span:not(.wc-notch) { padding: 5px 6px; }
.wall-cap { display: flex; flex-direction: column; gap: 1px; padding: 12px 16px 14px; background: var(--surface); }
.wall-cap strong { color: var(--ink); font-weight: 500; font-size: 1rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.wall-cap small { color: var(--muted); font-size: 0.8125rem; }

@media (prefers-reduced-motion: reduce) { .wall-track { animation: none; } }
@media (max-width: 980px) {
  .work-hero-grid { grid-template-columns: 1fr; min-height: 0; }
  .work-hero-copy { padding-bottom: 8px; }
  .work-wall { min-height: 380px; margin: 0 calc(var(--gutter) * -1 - 12px); mask-image: linear-gradient(180deg, transparent, #000 18%, #000 80%, transparent); }
  .wall-plane, [dir="rtl"] .wall-plane { inset: -30% -6%; }
}
@media (max-width: 560px) {
  .work-facts { grid-template-columns: repeat(2, auto); row-gap: 16px; }
  .work-facts > div:nth-child(3) { padding-inline-start: 0; border-inline-start: 0; }
  .work-wall { min-height: 320px; }
}
@media (max-width: 560px) {
  .wall-plane, [dir="rtl"] .wall-plane { grid-template-columns: repeat(2, minmax(0, 1fr)); inset: -30% -4%; }
  .wall-col:nth-child(3) { display: none; }
}


/* ---------------- Refinements from the taste-skill review ---------------- */
/* running text in cards reads in the full text colour, at 16px */
.card p, .ts-card blockquote p, .offer-card p, .tl-card p, .plan p { color: var(--ink-2); }
/* a featured quote stays a statement: about three lines */
.ts-slide blockquote p { font-size: clamp(1.15rem, 0.95rem + 0.8vw, 1.55rem); max-width: 40ch; }

/* process as a route: four stations on one line, the order carried by the track itself */
.process-route { position: relative; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: clamp(20px, 3vw, 40px); counter-reset: none; }
.process-route::before {
  content: ""; position: absolute; top: 31px; inset-inline-start: 32px; inset-inline-end: calc((100% - 3 * clamp(20px, 3vw, 40px)) / 4 - 32px); height: 2px; border-radius: 2px;
  background: linear-gradient(90deg, var(--teal), var(--mint));
  transform-origin: left; transform: scaleX(var(--route, 1)); transition: transform 1.6s var(--ease);
}
[dir="rtl"] .process-route::before { background: linear-gradient(270deg, var(--teal), var(--mint)); transform-origin: right; }
.process-route li { position: relative; display: grid; gap: 12px; align-content: start; }
.pr-node { position: relative; z-index: 1; width: 64px; height: 64px; border-radius: 50%; display: grid; place-items: center; color: var(--navy); background: var(--mint); box-shadow: 0 0 0 8px var(--bg), 0 0 0 9px color-mix(in srgb, var(--teal) 40%, transparent); margin-bottom: 10px; }
.band .pr-node { box-shadow: 0 0 0 8px var(--band-sky), 0 0 0 9px color-mix(in srgb, var(--teal) 40%, transparent); }
.process-route li:not(:last-child) .pr-node { background: var(--surface); color: var(--teal); }
.pr-node .icon { width: 28px; height: 28px; }
.process-route h3 { font-size: 1.25rem; }
.process-route p { color: var(--ink-2); max-width: 30ch; }
@media (prefers-reduced-motion: no-preference) {
  .js .process-route:not(:has(.is-in))::before { --route: 0; }
}
@media (max-width: 900px) {
  .process-route { grid-template-columns: 1fr; gap: 28px; }
  .process-route::before { top: 32px; bottom: 32px; inset-inline: 31px auto; width: 2px; height: auto; transform: none; background: linear-gradient(180deg, var(--teal), var(--mint)); }
  .process-route li { grid-template-columns: 64px 1fr; column-gap: 20px; }
  .process-route li .pr-node { grid-row: span 2; margin: 0; }
}
.hm-chip small { font-size: 0.8125rem; }

/* =====================================================================
   Design review, round 2: calmer surfaces
   - surfaces are told apart by one tone step, not by an outline plus a shadow
   - shadows stay only on what floats (header, menus, hero chips, dialogs)
   - gradients and glows stay in the heroes and the call to action
   ===================================================================== */
:root { --shadow-sm: none; }
html.dark, .tone-deep { --shadow-sm: none; }
.card, .ts-card, .ts-aside, .rv-card, .stack-item, .tab-panel, .faq-item, .tl-card, .offer-card, .plan, .mini-card, .post-card, .outcomes, .form-card, .leave-card, .bento-card, .process-card, .stats-band, .stat { border-color: transparent !important; box-shadow: none !important; }
a.card:hover, .rv-card:hover, .stack-item:hover { box-shadow: none; background: var(--surface-2); }
html.dark a.card:hover, html.dark .rv-card:hover { background: var(--surface-2); }
.btn-secondary { border-color: transparent; box-shadow: none; }
.badge { box-shadow: none; }
.lead { color: var(--ink-2); }

/* flat bands */
.tone-sky, .tone-mist { background: var(--band-sky); }
.tone-mist { background: var(--band-mist); }
html:not(.dark) .tone-mist { background: #e4f3f4; }
.tone-sky::before, .tone-deep::after { display: none; }
.tinted-panel, :is(html.dark, .tone-deep) .tinted-panel { background: var(--band-sky); }
html.dark .tinted-panel { background: var(--surface); }
.ts-slider::after, .rv-card::before { display: none; }

/* services as a large-type list */
.svc-list { display: grid; gap: 6px; }
.svc-row { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: clamp(16px, 2.4vw, 28px); align-items: start; padding: clamp(20px, 2.6vw, 30px) clamp(16px, 2.4vw, 28px); border-radius: var(--r-lg); transition: background-color 0.35s var(--ease); }
.svc-row:hover, .svc-row:focus-visible { background: var(--surface); }
.band .svc-row:hover { background: var(--surface); }
.svc-ico { width: 52px; height: 52px; border-radius: 16px; display: grid; place-items: center; background: var(--accent-soft); color: var(--teal); margin-top: 4px; }
html.dark .svc-ico { color: var(--teal-2); }
.svc-ico .icon { width: 26px; height: 26px; }
.svc-main { display: grid; gap: 10px; }
.svc-main h3 { font-size: clamp(1.5rem, 1.1rem + 1.3vw, 2.2rem); letter-spacing: -0.025em; line-height: 1.15; }
.svc-main p { color: var(--ink-2); max-width: 56ch; }
.svc-tags { display: flex; flex-wrap: wrap; gap: 6px 18px; color: var(--muted); font-size: 0.875rem; }
.svc-tags span { display: inline-flex; align-items: center; gap: 8px; }
.svc-tags span::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--mint); }
.svc-row .round-arrow { margin-top: 6px; transition: background-color 0.3s, color 0.3s, transform 0.4s var(--ease); }
.svc-row:hover .round-arrow { background: var(--mint); color: var(--navy); transform: rotate(-45deg); }
[dir="rtl"] .svc-row:hover .round-arrow { transform: rotate(45deg); }
.svc-list.wide { grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 24px; }
@media (max-width: 900px) { .svc-list.wide { grid-template-columns: 1fr; } }
@media (max-width: 560px) {
  .svc-row { grid-template-columns: 1fr auto; padding-inline: 4px; }
  .svc-ico { grid-column: 1 / -1; width: 44px; height: 44px; }
}

/* tech stack as a logo wall: no boxes, larger marks */
.stack-grid { gap: clamp(20px, 3vw, 36px) 24px; }
.stack-item { background: transparent; padding: 6px 0; border-radius: 0; }
.stack-item:hover { background: transparent !important; transform: translateY(-3px); }
.stack-logo { width: 48px; height: 48px; border-radius: 14px; display: grid; place-items: center; background: var(--surface); flex-shrink: 0; }
.stack-logo .brand-icon { width: 26px; height: 26px; }
.ts-card figcaption, .ts-slide figcaption { border-top: 0; padding-top: 4px; }
.stack-logo { width: 56px; height: 56px; border-radius: 16px; }
.stack-logo .brand-icon { width: 30px; height: 30px; }
html.dark .tinted-panel .stack-logo { background: var(--surface-3); }
.stack-item strong { font-size: 1.125rem; }

/* services stack on the home page: cards pin and pile up as you scroll, each casting a soft edge on the one below */
.stack-card { min-height: 220px; padding: clamp(24px, 3vw, 36px); box-shadow: 0 -18px 40px -26px rgba(1, 1, 61, 0.35) !important; }
html.dark .stack-card { box-shadow: 0 -18px 40px -22px rgba(0, 0, 0, 0.8) !important; }
.stack-card h3 { font-size: clamp(1.35rem, 1.05rem + 1vw, 1.9rem); letter-spacing: -0.02em; }
.stack-card p { color: var(--ink-2); }
.stack-card .svc-tags { margin-top: 16px; }
.stack-card:hover .round-arrow { background: var(--mint); color: var(--navy); transform: rotate(-45deg); }
[dir="rtl"] .stack-card:hover .round-arrow { transform: rotate(45deg); }

html.dark .wall-tile, html.dark .wall-cap { background: var(--surface); }

/* Primary buttons carry the logo's own blue-to-green gradient; hover slides it toward the green */
.btn-primary {
  --b-ink: #01013d;
  background-image: linear-gradient(110deg, #1f9fd0 0%, #2ccbd8 45%, #5dfda2 85%, #8dffbf 100%);
  background-size: 135% 100%;
  background-position: 0% 50%;
  color: #01013d;
  border: 0;
  transition: background-position 0.6s var(--ease), box-shadow 0.4s var(--ease), transform 0.3s var(--ease);
}
.btn-primary:hover, .btn-primary:focus-visible { --b-ink: #01013d; color: #01013d; background-position: 100% 50%; box-shadow: 0 12px 30px -12px rgba(39, 192, 223, 0.65); }
:is(html.dark, .tone-deep) .btn-primary:hover { --b-ink: #01013d; }
.cta-card .btn-primary, .cta-card .btn-primary:hover { --b-ink: #01013d; }
.btn-secondary:hover { --b-bg: var(--surface-3); --b-ink: var(--ink); }

/* =====================================================================
   Enterprise colour system (adopted): premium dark tech, from the client's colour brief
   =====================================================================
   bg #0B1530 · secondary bg #101E3C · cards #17294D · primary blue #2589D8 · brand teal #20CDB5
   text #F4F7FC · secondary text #A8B6D0 · borders #263B63.
   Subtle navy-to-blue gradients, soft teal/blue ambient light, teal reserved for key CTAs and
   brand highlights, cards separated by a quiet border, no bright green surfaces. Colours only:
   the layout is untouched. The light theme is a matching counterpart built from the same roles. */
/* backgrounds: subtle navy-to-blue, ambient teal and blue light, no saturated sweeps */
html.dark .hero-panel { background: radial-gradient(55% 70% at 85% 15%, rgba(37, 137, 216, 0.22), transparent 70%), radial-gradient(45% 60% at 5% 95%, rgba(32, 205, 181, 0.12), transparent 70%), linear-gradient(170deg, #12224a, #0b1530 70%); }
html:not(.dark) .hero-panel { background: radial-gradient(55% 70% at 85% 15%, rgba(37, 137, 216, 0.16), transparent 70%), radial-gradient(45% 60% at 5% 95%, rgba(32, 205, 181, 0.12), transparent 70%), linear-gradient(170deg, #edf2fa, var(--hero-bg)); }
html .hero-art::before { opacity: 0.45; }
html .hero-art::after { display: none; }
html .tone-deep { background: radial-gradient(60% 80% at 90% 0%, rgba(37, 137, 216, 0.16), transparent 70%), linear-gradient(170deg, #101e3c, #0b1530); }
html:not(.dark) .tone-sky, html:not(.dark) .tone-mist { background: var(--band-sky); }
html .ts-slider { background: radial-gradient(60% 80% at 100% 0%, rgba(37, 137, 216, 0.2), transparent 70%), #17294d; }
html .cta-card { background: radial-gradient(50% 70% at 10% 100%, rgba(32, 205, 181, 0.14), transparent 70%), linear-gradient(170deg, #12224a, #0b1530); }
html .cta-card::before { opacity: 0.4; }
html .code { background: #0b1530; border: 1px solid #263b63; }

/* cards: clean, separated by a quiet border */
html.dark :is(.card, .ts-card, .ts-aside, .rv-card, .tab-panel, .faq-item, .stack-card, .bento-card, .post-card, .tl-card, .offer-card, .plan, .mini-card, .outcomes, .form-card, .leave-card, .stats-band),
html .tone-deep :is(.card, .bento-card) { border: 1px solid #263b63 !important; }
html:not(.dark) :is(.card, .ts-card, .ts-aside, .rv-card, .tab-panel, .faq-item, .stack-card, .post-card, .tl-card, .offer-card, .plan, .mini-card, .outcomes, .form-card, .leave-card) { border: 1px solid #dbe3f0 !important; }
html .tone-deep .card, html .tone-deep .bento-card { background: #17294d; }
html a.card:hover, html .stack-card:hover { border-color: #2f4f86 !important; }

/* buttons: teal for the important actions, a quiet blue outline for the rest */
html .btn-primary { background-image: linear-gradient(120deg, #20cdb5, #1fb8c4 60%, #2589d8 140%); background-size: 100% 100%; color: #0b1530; }
html .btn-primary:hover, html .btn-primary:focus-visible { background-image: linear-gradient(120deg, #3ad8c2, #26c3cf 60%, #2f95e0 140%); box-shadow: 0 8px 22px -12px rgba(32, 205, 181, 0.55); color: #0b1530; }
html.dark .btn-secondary, html .tone-deep .btn-secondary { --b-bg: transparent; --b-ink: #f4f7fc; border: 1px solid #2f4775; }
html.dark .btn-secondary:hover, html .tone-deep .btn-secondary:hover { --b-bg: rgba(37, 137, 216, 0.14); border-color: #2589d8; }
html:not(.dark) .btn-secondary { border: 1px solid #c9d5e8; }
html:not(.dark) .btn-secondary:hover { --b-bg: #e4f0fb; --b-ink: #0b1530; border-color: #2589d8; }

/* highlights: blue and teal instead of bright green surfaces */
html :is(.ico-box, .svc-ico) { background: rgba(37, 137, 216, 0.14); color: #20cdb5; }
html:not(.dark) :is(.ico-box, .svc-ico) { color: #2589d8; }
html .process-route::before { background: linear-gradient(90deg, #2589d8, #20cdb5); }
html[dir="rtl"] .process-route::before { background: linear-gradient(270deg, #2589d8, #20cdb5); }
html .process-route li:not(:last-child) .pr-node { background: var(--surface); color: #2589d8; }
html .process-route li:last-child .pr-node { background: #20cdb5; color: #0b1530; }
html .strategy-steps li.on, html .faq-item[open] .faq-icon, html .plan.featured .badge { background: #20cdb5; color: #0b1530; }
html .ts-dot.is-active span::after { background: #20cdb5; }
html .svc-tags span::before { background: #20cdb5; }
html :is(.checklist .icon, .link-arrow, .rv-cta) { color: #20cdb5; }
html:not(.dark) :is(.checklist .icon, .link-arrow, .rv-cta) { color: #1a6db2; }
html .stack-card:hover .round-arrow, html .svc-row:hover .round-arrow { background: #20cdb5; color: #0b1530; }
html .tab[aria-selected="true"] { background: #20cdb5; color: #0b1530; }
html ::selection { background: #2589d8; color: #ffffff; }
html :focus-visible { outline-color: #20cdb5; }

/* Home hero: the 3D mark stands alone in the media column; the chips orbit its edges */
.emblem-stage .hm-chip-1 { top: 10%; bottom: auto; inset-inline-start: 0; inset-inline-end: auto; }
.emblem-stage .hm-chip-2 { top: 44%; bottom: auto; inset-inline-end: -2%; inset-inline-start: auto; }
.emblem-stage .hm-chip-3 { top: auto; bottom: 10%; inset-inline-start: 6%; inset-inline-end: auto; }
@media (max-width: 980px) { .emblem-stage { min-height: 460px; } .emblem-stage .hm-chip-2 { inset-inline-end: 0; } }
@media (max-width: 560px) { .emblem-stage { min-height: 380px; } }

/* Home: ready platforms showcase. A list of the platforms on the start side, a dark stage with the open one's
   screens on the end side. The stage is .tone-deep, so it keeps the dark tokens and logos in both themes. */
.ps { display: grid; grid-template-columns: minmax(0, 0.92fr) minmax(0, 1.25fr); gap: clamp(24px, 3.5vw, 56px); align-items: stretch; }
.ps-list { display: flex; flex-direction: column; border-top: 1px solid var(--line); }
.ps-item { border-bottom: 1px solid var(--line); }
.ps-tab { position: relative; width: 100%; display: grid; grid-template-columns: auto auto 1fr auto; align-items: center; gap: 16px; padding: 22px 4px; text-align: start; color: var(--ink); }
.ps-num { font-variant-numeric: tabular-nums; font-size: 0.875rem; color: var(--muted); width: 2ch; transition: color 0.3s; }
.ps-mark.sys-mark { width: 44px; height: 44px; border-radius: 12px; padding: 8px; background: var(--surface); box-shadow: none; border: 0; transition: transform 0.4s var(--ease), background 0.3s; }
.ps-mark.sys-mark img { width: 100%; height: 100%; object-fit: contain; }
.ps-name { display: grid; gap: 2px; min-width: 0; }
.ps-name strong { font-size: clamp(1.1rem, 1rem + 0.4vw, 1.35rem); font-weight: 600; letter-spacing: -0.01em; transition: color 0.3s; }
.ps-name small { font-size: 0.9375rem; color: var(--muted); }
.ps-plus { width: 20px; height: 20px; color: var(--muted); transition: transform 0.4s var(--ease), color 0.3s; }
.ps-progress { position: absolute; inset-inline: 0; bottom: -1px; height: 2px; overflow: hidden; }
.ps-progress i { display: block; height: 100%; background: linear-gradient(90deg, #20cdb5, #2589d8); transform: scaleX(var(--p, 0)); transform-origin: left; }
[dir="rtl"] .ps-progress i { transform-origin: right; }
.ps-tab:hover .ps-name strong { color: var(--accent-ink, var(--ink)); }
.ps-tab:hover .ps-mark { transform: scale(1.06); }
.ps-item.is-open .ps-num { color: #20cdb5; }
.ps-item.is-open .ps-plus { transform: rotate(45deg); color: var(--ink); }
.ps-item.is-open .ps-mark { background: var(--surface-3); }
.ps-more { display: grid; grid-template-rows: 0fr; transition: grid-template-rows 0.5s var(--ease); }
.ps-more > div { overflow: hidden; padding-inline-start: calc(2ch + 16px); }
.ps-item.is-open .ps-more { grid-template-rows: 1fr; }
.ps-more p { margin: 0 0 18px; color: var(--ink-2); max-width: 52ch; }
.ps-links { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 24px; padding-bottom: 24px; }
.ps-stage { position: relative; min-height: 600px; border-radius: var(--r-lg); overflow: hidden; isolation: isolate; background: linear-gradient(160deg, #13244a, #0b1530 70%); }
.ps-stage::before { content: ""; position: absolute; inset: 0; z-index: -1; background-image: linear-gradient(rgba(168, 182, 208, 0.06) 1px, transparent 1px), linear-gradient(90deg, rgba(168, 182, 208, 0.06) 1px, transparent 1px); background-size: 44px 44px; mask-image: radial-gradient(80% 70% at 60% 40%, #000, transparent); }
.ps-panel { position: absolute; inset: 0; padding: clamp(24px, 3vw, 40px); display: grid; grid-template-rows: auto 1fr auto; gap: 20px; opacity: 0; visibility: hidden; transition: opacity 0.6s var(--ease), visibility 0s 0.6s; }
.ps-panel.is-active { opacity: 1; visibility: visible; transition: opacity 0.6s var(--ease), visibility 0s; }
.ps-glow { position: absolute; inset: 0; z-index: -1; background: radial-gradient(55% 60% at 75% 30%, color-mix(in srgb, var(--accent) 30%, transparent), transparent 70%), radial-gradient(45% 50% at 10% 100%, rgba(37, 137, 216, 0.22), transparent 70%); }
.ps-head { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.ps-logo img { height: 34px; width: auto; }
.ps-logo .sys-lockup { color: #fff; font-size: 1.1rem; }
.ps-headline { color: #a8b6d0; font-size: 0.9375rem; text-align: end; max-width: 26ch; }
.ps-screen { position: relative; margin: 0; min-height: 0; display: grid; place-items: center; }
.ps-screen img { position: absolute; inset: 0; margin: auto; max-width: 100%; max-height: 100%; width: auto; height: auto; object-fit: contain; border-radius: 14px; box-shadow: 0 40px 80px -30px rgba(0, 0, 0, 0.7), 0 0 0 1px rgba(168, 182, 208, 0.12); transform: translateY(26px) scale(0.97); opacity: 0; transition: transform 0.9s cubic-bezier(0.22, 1, 0.36, 1) 0.05s, opacity 0.7s 0.05s; }
.ps-screen .ps-poster { max-height: 92%; border-radius: 20px; }
.ps-phone { position: absolute; inset-inline-end: clamp(14px, 3%, 36px); bottom: clamp(70px, 14%, 110px); width: clamp(96px, 17%, 150px); margin: 0; transform: translateY(40px) rotate(4deg); opacity: 0; transition: transform 1s cubic-bezier(0.22, 1, 0.36, 1) 0.2s, opacity 0.7s 0.2s; }
[dir="rtl"] .ps-phone { transform: translateY(40px) rotate(-4deg); }
.ps-phone img { width: 100%; filter: drop-shadow(0 30px 30px rgba(0, 0, 0, 0.5)); }
.ps-panel.is-active .ps-screen img { transform: none; opacity: 1; }
.ps-panel.is-active .ps-phone { transform: rotate(0); opacity: 1; }
.ps-stats { display: flex; flex-wrap: wrap; gap: 10px; margin: 0; padding: 0; list-style: none; position: relative; z-index: 1; }
.ps-stats li { display: flex; align-items: baseline; gap: 10px; padding: 10px 16px; border-radius: 14px; background: rgba(23, 41, 77, 0.72); border: 1px solid rgba(168, 182, 208, 0.16); backdrop-filter: blur(10px); transform: translateY(14px); opacity: 0; transition: transform 0.7s var(--ease), opacity 0.6s; }
.ps-panel.is-active .ps-stats li { transform: none; opacity: 1; }
.ps-panel.is-active .ps-stats li:nth-child(2) { transition-delay: 0.08s; }
.ps-panel.is-active .ps-stats li:nth-child(3) { transition-delay: 0.16s; }
.ps-stats strong { font-size: 1.5rem; line-height: 1; color: #fff; font-weight: 600; font-variant-numeric: tabular-nums; }
.ps-stats span { font-size: 0.875rem; color: #a8b6d0; max-width: 18ch; line-height: 1.3; }
@media (max-width: 980px) {
  .ps { grid-template-columns: 1fr; }
  .ps-stage { order: -1; min-height: 0; aspect-ratio: 1 / 0.95; }
  .ps-headline { display: none; }
  .ps-stats li:nth-child(3) { display: none; }
}
@media (max-width: 560px) {
  .ps-stage { aspect-ratio: 1 / 1.15; }
  .ps-panel { padding: 18px; gap: 14px; }
  .ps-stats li { padding: 8px 12px; }
  .ps-stats strong { font-size: 1.2rem; }
  .ps-stats span { font-size: 0.8125rem; }
  .ps-tab { gap: 12px; padding: 18px 2px; }
  .ps-num { display: none; }
  .ps-more > div { padding-inline-start: 0; }
}
@media (prefers-reduced-motion: reduce) { .ps-screen img, .ps-phone, .ps-stats li { transition: opacity 0.2s; transform: none; } }

/* A project cover made from its showcase card: the card fills the frame, cropped toward its title */
.work-cover.is-card { background: var(--c1); }
.work-cover.is-card img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 22%; transition: transform 0.8s cubic-bezier(0.22, 1, 0.36, 1); }
.work-card:hover .work-cover.is-card img, .next-project:hover .work-cover.is-card img { transform: scale(1.04); }
.work-cover.is-grid > img { object-position: 50% 50%; }
.wc-logo { position: absolute; left: 14px; top: 14px; z-index: 2; display: flex; align-items: center; justify-content: center; width: 120px; height: 68px; border-radius: 18px; background: #fff; box-shadow: 0 0 0 1px rgba(16, 24, 40, 0.06), 0 14px 30px -14px rgba(0, 0, 0, 0.5); transform-origin: 0 0; transition: transform 0.6s var(--ease), box-shadow 0.6s var(--ease); }
.work-cover .wc-logo img { position: static; inset: auto; object-fit: contain; transform: none !important; }
.work-card:hover .wc-logo { transform: translateY(-4px); box-shadow: 0 0 0 1px rgba(16, 24, 40, 0.06), 0 26px 44px -16px rgba(0, 0, 0, 0.55); }
@media (max-width: 600px) { .wc-logo { left: 10px; top: 10px; scale: 0.82; } }

/* Project hero: the client's logo, flat, on a soft disc at the centre of the 3D orbits (hero3d.js "client") */
.client-stage { display: grid; place-items: center; min-height: 420px; }
.client-disc { width: clamp(180px, 17vw, 230px); aspect-ratio: 1; border-radius: 50%; display: flex; align-items: center; justify-content: center; padding: clamp(26px, 2.6vw, 34px); background: radial-gradient(circle at 50% 35%, #ffffff, #eef3fa 70%); box-shadow: 0 30px 70px -30px rgba(11, 21, 48, 0.35), 0 0 0 1px rgba(11, 21, 48, 0.06), 0 0 0 14px rgba(255, 255, 255, 0.35); animation: discFloat 6s ease-in-out infinite; }
html.dark .client-disc { background: radial-gradient(circle at 50% 35%, #1d335e, #13244a 70%); box-shadow: 0 30px 70px -30px rgba(0, 0, 0, 0.6), 0 0 0 1px rgba(168, 182, 208, 0.14), 0 0 0 14px rgba(37, 137, 216, 0.08); }
.client-disc img { width: 100%; height: auto; max-height: 100%; object-fit: contain; border-radius: 0; box-shadow: none; }
/* .on-dark is the light mark, for the dark theme; .on-light the dark mark, for the light theme */
html.dark .client-disc img.on-light, html:not(.dark) .client-disc img.on-dark { display: none; }
.client-name { font-weight: 700; font-size: 1.35rem; text-align: center; line-height: 1.2; color: var(--ink); }
@keyframes discFloat { 50% { transform: translateY(-8px); } }
@media (max-width: 900px) { .client-stage { min-height: 320px; } }
@media (prefers-reduced-motion: reduce) { .client-disc { animation: none; } }

/* Home hero: ISO certificates under the trust line */
.hero-certs { display: flex; align-items: center; gap: 10px; margin-top: 20px; }
.hero-certs img { width: 64px; height: 64px; flex: none; border-radius: 50%; box-shadow: 0 6px 18px -8px rgba(11, 21, 48, 0.35); }
.hero-certs span { display: grid; gap: 2px; margin-inline-start: 6px; }
.hero-certs strong { color: var(--ink); font-weight: 600; }
.hero-certs small { color: var(--muted); font-size: 0.875rem; }
@media (max-width: 640px) { .hero-certs img { width: 52px; height: 52px; } }

/* Home: the five ready platforms as one ecosystem around the Vega mark */
.pf-panel { position: relative; overflow: hidden; border-radius: var(--r-xl); padding: clamp(48px, 6vw, 88px) clamp(20px, 4vw, 64px) clamp(44px, 5vw, 72px); color: var(--ink); background: radial-gradient(50% 60% at 50% 55%, rgba(39, 192, 223, 0.18), transparent 70%), radial-gradient(40% 50% at 100% 0%, rgba(93, 253, 162, 0.1), transparent 70%), radial-gradient(40% 50% at 0% 100%, rgba(37, 137, 216, 0.16), transparent 70%), linear-gradient(170deg, #101f48, #070c2b 75%); isolation: isolate; }
.pf-panel .section-head { margin-bottom: clamp(40px, 5vw, 64px); }

.pf-eco { position: relative; display: grid; grid-template-columns: minmax(0, 1fr) clamp(300px, 30vw, 400px) minmax(0, 1fr); grid-template-rows: auto auto auto; gap: clamp(18px, 2vw, 26px) clamp(28px, 4vw, 64px); align-items: stretch; }
.pf-links { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; pointer-events: none; z-index: 0; }
.pf-links path { fill: none; stroke-width: 1.5; stroke-linecap: round; }
.pf-links .base { stroke: rgba(255, 255, 255, 0.12); }
.pf-links .flow { stroke-dasharray: 3 14; animation: pf-flow 1.6s linear infinite; opacity: 0.9; }
@keyframes pf-flow { to { stroke-dashoffset: -34; } }

.pf-card { position: relative; z-index: 1; display: grid; grid-template-rows: auto auto 1fr; gap: 18px; padding: 22px 24px 24px; border-radius: 22px; color: #fff; text-decoration: none; overflow: hidden; background: linear-gradient(160deg, rgba(255, 255, 255, 0.075), rgba(255, 255, 255, 0.025)); border: 1px solid rgba(255, 255, 255, 0.1); backdrop-filter: blur(6px); transition: transform 0.6s var(--ease), border-color 0.6s var(--ease), box-shadow 0.6s var(--ease); }
.pf-card::before { content: ""; position: absolute; inset-inline: 22px; top: 0; height: 2px; border-radius: 2px; background: linear-gradient(90deg, transparent, var(--accent), transparent); opacity: 0.8; }
.pf-0 { grid-column: 1; grid-row: 1; } .pf-1 { grid-column: 1; grid-row: 2; }
.pf-2 { grid-column: 3; grid-row: 1; } .pf-3 { grid-column: 3; grid-row: 2; }
.pf-4 { grid-column: 2; grid-row: 3; }
.pf-spot { position: absolute; inset: 0; z-index: -1; opacity: 0; transition: opacity 0.5s var(--ease); background: radial-gradient(260px circle at var(--mx, 50%) var(--my, 0%), color-mix(in srgb, var(--accent) 26%, transparent), transparent 70%); }
.pf-logo { display: flex; align-items: center; min-height: 54px; }
.pf-logo .sys-logo { height: 46px; width: auto; max-width: 220px; object-fit: contain; }
.pf-logo .sys-lockup { color: #fff; font-size: 1.5rem; gap: 10px; }
.pf-logo .sys-lockup img { height: 42px; width: auto; }
.pf-body { display: grid; gap: 4px; padding-inline-end: 52px; align-self: end; }
.pf-body strong { font-size: 1.05rem; font-weight: 600; }
.pf-body > span { color: #a9b7d3; font-size: 0.92rem; line-height: 1.6; }
.pf-go { position: absolute; inset-inline-end: 20px; bottom: 22px; display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; border: 1px solid rgba(255, 255, 255, 0.16); color: #fff; transition: background 0.4s var(--ease), color 0.4s var(--ease), border-color 0.4s var(--ease), transform 0.4s var(--ease); }
.pf-go svg { width: 18px; height: 18px; }
.pf-card:hover { transform: translateY(-4px); border-color: color-mix(in srgb, var(--accent) 60%, transparent); box-shadow: 0 24px 60px -30px color-mix(in srgb, var(--accent) 70%, transparent); }
.pf-card:hover .pf-spot { opacity: 1; }
.pf-card:hover .pf-go { background: var(--accent); border-color: var(--accent); color: var(--navy); }
.pf-card:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }

.pf-hub { grid-column: 2; grid-row: 1 / 3; position: relative; z-index: 1; display: grid; place-items: center; min-height: 420px; }
@keyframes pf-float { from { transform: translateY(-6px); } to { transform: translateY(8px); } }
.pf-halo { position: absolute; width: 78%; aspect-ratio: 1; border-radius: 50%; background: radial-gradient(closest-side, rgba(39, 192, 223, 0.45), rgba(39, 192, 223, 0.08) 60%, transparent); filter: blur(6px); }
.pf-ring { position: absolute; aspect-ratio: 1; border-radius: 50%; border: 1px solid rgba(255, 255, 255, 0.12); }
.pf-ring.r1 { width: 100%; border-color: rgba(39, 192, 223, 0.28); animation: pf-spin 40s linear infinite; }
.pf-ring.r2 { width: 76%; border-style: dashed; border-color: rgba(93, 253, 162, 0.25); animation: pf-spin 28s linear infinite reverse; }
.pf-ring.r3 { width: 124%; border-color: rgba(255, 255, 255, 0.06); }
.pf-ring i { position: absolute; width: 10px; height: 10px; border-radius: 50%; background: #5dfda2; box-shadow: 0 0 16px 4px rgba(93, 253, 162, 0.6); top: -5px; left: calc(50% - 5px); }
.pf-ring.r1 i + i { top: auto; bottom: -5px; background: #27c0df; box-shadow: 0 0 16px 4px rgba(39, 192, 223, 0.6); }
.pf-ring.r2 i { background: #fff; width: 7px; height: 7px; top: -3.5px; box-shadow: 0 0 12px 3px rgba(255, 255, 255, 0.6); }
@keyframes pf-spin { to { transform: rotate(360deg); } }
.pf-floor { position: absolute; bottom: 4%; width: 52%; height: 14%; border-radius: 50%; background: radial-gradient(closest-side, rgba(39, 192, 223, 0.5), transparent); }
.pf-cta { display: flex; justify-content: center; margin-top: clamp(32px, 4vw, 48px); }

@media (max-width: 980px) {
  .pf-eco { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .pf-hub { grid-column: 1 / -1; grid-row: 1; min-height: 320px; max-width: 360px; width: 100%; justify-self: center; }
  .pf-0, .pf-1, .pf-2, .pf-3, .pf-4 { grid-column: auto; grid-row: auto; }
  .pf-4 { grid-column: 1 / -1; }
  .pf-links { display: none; }
}
@media (max-width: 600px) {
  .pf-eco { grid-template-columns: 1fr; }
  .pf-hub { min-height: 260px; max-width: 280px; }
  .pf-4 { grid-column: auto; }
}
@media (prefers-reduced-motion: reduce) {
  .pf-ring, .pf-links .flow { animation: none; }
  .pf-card, .pf-go, .pf-spot { transition: none; }
  .pf-card:hover { transform: none; }
}

/* hub: the Vega star alone, glowing blue */
.pf-halo { width: 70%; background: radial-gradient(closest-side, rgba(95, 200, 255, 0.55), rgba(39, 146, 255, 0.16) 55%, transparent); filter: blur(10px); animation: pf-pulse 4.5s ease-in-out infinite alternate; }
.pf-star { position: relative; z-index: 2; width: 44%; height: auto; overflow: visible; filter: drop-shadow(0 0 22px rgba(95, 200, 255, 0.9)) drop-shadow(0 0 60px rgba(39, 146, 255, 0.6)); animation: pf-float 6s var(--ease) infinite alternate; }
.pf-flare { position: absolute; z-index: 1; width: 92%; height: 2px; background: linear-gradient(90deg, transparent, rgba(150, 220, 255, 0.85), transparent); filter: blur(0.5px); }
.pf-flare::after { content: ""; position: absolute; left: 50%; top: 50%; width: 2px; height: 520%; transform: translate(-50%, -50%); background: linear-gradient(transparent, rgba(150, 220, 255, 0.7), transparent); }
.pf-floor { background: radial-gradient(closest-side, rgba(95, 200, 255, 0.45), transparent); }
@keyframes pf-pulse { from { opacity: 0.75; transform: scale(0.94); } to { opacity: 1; transform: scale(1.06); } }
.pf-card { grid-template-rows: auto 1fr; gap: 16px; padding: 24px 24px 22px; }
.pf-logo { min-height: 50px; }
@media (prefers-reduced-motion: reduce) { .pf-halo, .pf-star { animation: none; } }
.pf-hub { min-height: 360px; }
@media (max-width: 980px) { .pf-hub { min-height: 280px; } }
@media (max-width: 600px) { .pf-hub { min-height: 230px; } }

/* platforms: no panel of its own; it sits on the page and follows the light or dark theme */
.pf-panel { padding: 0; border-radius: 0; background: none; overflow: visible; color: var(--ink); }
.pf-panel .section-head { max-width: none; }
.pf-panel .section-head h2 { color: var(--ink); }
.pf-panel .section-head .lead { color: var(--muted); max-width: none; }
@media (min-width: 900px) { .pf-panel .section-head h2, .pf-panel .section-head .lead { white-space: nowrap; } }
.pf-eco::before { content: ""; position: absolute; left: 50%; top: 50%; width: 760px; height: 560px; transform: translate(-50%, -55%); background: radial-gradient(closest-side, rgba(39, 192, 223, 0.14), transparent); pointer-events: none; }
.pf-card { color: var(--ink); background: color-mix(in srgb, var(--surface) 88%, transparent); border-color: var(--line); backdrop-filter: none; }
.pf-body > span { color: var(--muted); }
.pf-go { border-color: var(--line); color: var(--ink-2); }
.pf-logo .sys-lockup { color: var(--ink); }
.pf-links .base { stroke: color-mix(in srgb, var(--ink) 14%, transparent); }
.pf-ring { border-color: color-mix(in srgb, var(--ink) 10%, transparent); }
.pf-ring.r3 { border-color: color-mix(in srgb, var(--ink) 6%, transparent); }
:is(html.dark, .tone-deep) .pf-card { background: linear-gradient(160deg, rgba(255, 255, 255, 0.07), rgba(255, 255, 255, 0.025)); border-color: rgba(255, 255, 255, 0.1); }
html:not(.dark) .pf-section:not(.tone-deep) .pf-card:hover { box-shadow: 0 24px 50px -30px color-mix(in srgb, var(--accent) 80%, transparent); }
html:not(.dark) .pf-section:not(.tone-deep) .pf-halo { background: radial-gradient(closest-side, rgba(60, 170, 255, 0.4), rgba(39, 146, 255, 0.12) 55%, transparent); }
html:not(.dark) .pf-section:not(.tone-deep) .pf-star { filter: drop-shadow(0 0 18px rgba(40, 150, 255, 0.95)) drop-shadow(0 0 50px rgba(39, 146, 255, 0.7)); }
html:not(.dark) .pf-section:not(.tone-deep) .pf-flare, html:not(.dark) .pf-section:not(.tone-deep) .pf-flare::after { opacity: 0.6; }
html:not(.dark) .pf-section:not(.tone-deep) #pf-star-core stop:nth-child(2) { stop-color: #7ccfff; }
html:not(.dark) .pf-section:not(.tone-deep) #pf-star-core stop:nth-child(3) { stop-color: #1f86f0; }
.pf-section { overflow-x: clip; }
.pf-eco::before { width: min(760px, 100%); }

/* Platform page: the platform's logo alone in the hero, on a glow in its own colour */
.sys-logo-stage { display: grid; place-items: center; }
.sys-logo-stage::before { content: ""; position: absolute; width: min(460px, 90%); aspect-ratio: 1; border-radius: 50%; background: radial-gradient(closest-side, color-mix(in srgb, var(--accent) 34%, transparent), transparent 72%); }
.sls-ring { position: absolute; aspect-ratio: 1; border-radius: 50%; border: 1px solid color-mix(in srgb, var(--accent) 40%, transparent); }
.sls-ring.r1 { width: min(420px, 86%); animation: pf-spin 40s linear infinite; }
.sls-ring.r2 { width: min(300px, 62%); border-style: dashed; border-color: color-mix(in srgb, var(--accent) 30%, transparent); animation: pf-spin 28s linear infinite reverse; }
.sls-plate { position: relative; z-index: 1; display: grid; place-items: center; padding: 34px 40px; border-radius: 28px; background: color-mix(in srgb, var(--surface) 70%, transparent); border: 1px solid color-mix(in srgb, var(--accent) 35%, var(--line)); backdrop-filter: blur(6px); box-shadow: 0 30px 70px -40px color-mix(in srgb, var(--accent) 80%, transparent); }
.sls-plate .sls-logo { height: clamp(64px, 7vw, 96px); width: auto; max-width: 320px; object-fit: contain; }
.sls-plate .sys-lockup { font-size: clamp(1.8rem, 3vw, 2.4rem); gap: 14px; color: var(--ink); }
.sls-plate .sys-lockup img { height: clamp(52px, 5vw, 72px); width: auto; }
.overview.no-media { grid-template-columns: 1fr; max-width: 920px; margin-inline: auto; }
@media (prefers-reduced-motion: reduce) { .sls-ring { animation: none; } }

/* Article covers */
.post-cover.has-img { padding: 0; background: #050a29; }
.post-cover.has-img img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform 0.8s var(--ease); }
a:hover .post-cover.has-img img { transform: scale(1.04); }
.article-cover { margin: 0 0 32px; border-radius: var(--r-lg); overflow: hidden; border: 1px solid var(--line); }
.article-cover img { width: 100%; height: auto; display: block; }

/* narrow screens: long words and links wrap instead of widening the page */
.article-layout > *, .ts-card > * { min-width: 0; }
.prose a, .toc a { overflow-wrap: anywhere; }
.ts-card-top { flex-wrap: wrap; row-gap: 8px; }

/* Platforms list: a 3D scene of each platform at work, filling its panel */
.sr-media.has-scene { padding: 0; background: #071033; }
.sr-media .sr-scene { width: 100%; height: 100%; max-height: none; min-height: 380px; object-fit: cover; filter: none; }

/* Platforms list: the 3D scene drifts gently, light sweeps across it, sparks rise, and it tilts toward the pointer */
.sr-media.has-scene { perspective: 1200px; isolation: isolate; }
.sr-scene-wrap { position: absolute; inset: 0; display: block; transform-style: preserve-3d; transform: rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg)) scale(1.06); transition: transform 0.6s var(--ease); }
.sr-scene-wrap .sr-scene { position: absolute; inset: 0; width: 100%; height: 100%; animation: sr-drift 14s ease-in-out infinite alternate; }
.system-row:nth-child(2n) .sr-scene { animation-delay: -5s; }
.system-row:nth-child(3n) .sr-scene { animation-delay: -9s; }
@keyframes sr-drift {
  0% { transform: translate3d(0, 0, 0) scale(1); }
  50% { transform: translate3d(-1.2%, -1.6%, 0) scale(1.035); }
  100% { transform: translate3d(1%, -0.6%, 0) scale(1.02); }
}
.sr-sheen { position: absolute; inset: 0; background: linear-gradient(105deg, transparent 35%, rgba(255, 255, 255, 0.16) 48%, rgba(170, 230, 255, 0.08) 52%, transparent 65%); background-size: 260% 100%; mix-blend-mode: screen; animation: sr-sheen 7s ease-in-out infinite; pointer-events: none; }
@keyframes sr-sheen { 0%, 25% { background-position: 130% 0; } 75%, 100% { background-position: -130% 0; } }
.sr-sparks { position: absolute; inset: 0; pointer-events: none; overflow: hidden; }
.sr-sparks i { position: absolute; bottom: -10px; width: 5px; height: 5px; border-radius: 50%; background: color-mix(in srgb, var(--accent) 80%, #fff); box-shadow: 0 0 10px 2px color-mix(in srgb, var(--accent) 70%, transparent); opacity: 0; animation: sr-spark 7s linear infinite; }
.sr-sparks i:nth-child(1) { left: 8%; animation-delay: 0s; } .sr-sparks i:nth-child(2) { left: 16%; animation-delay: 2.4s; width: 3px; height: 3px; }
.sr-sparks i:nth-child(3) { left: 24%; animation-delay: 4.1s; } .sr-sparks i:nth-child(4) { left: 33%; animation-delay: 1.2s; width: 4px; height: 4px; }
.sr-sparks i:nth-child(5) { left: 41%; animation-delay: 5.6s; } .sr-sparks i:nth-child(6) { left: 49%; animation-delay: 3.1s; width: 3px; height: 3px; }
.sr-sparks i:nth-child(7) { left: 57%; animation-delay: 0.7s; } .sr-sparks i:nth-child(8) { left: 64%; animation-delay: 4.8s; width: 4px; height: 4px; }
.sr-sparks i:nth-child(9) { left: 71%; animation-delay: 2s; } .sr-sparks i:nth-child(10) { left: 78%; animation-delay: 6.2s; width: 3px; height: 3px; }
.sr-sparks i:nth-child(11) { left: 85%; animation-delay: 1.7s; } .sr-sparks i:nth-child(12) { left: 92%; animation-delay: 3.7s; width: 4px; height: 4px; }
.sr-sparks i:nth-child(13) { left: 12%; animation-delay: 5.1s; width: 3px; height: 3px; } .sr-sparks i:nth-child(14) { left: 68%; animation-delay: 6.8s; }
@keyframes sr-spark { 0% { transform: translate(0, 0); opacity: 0; } 12% { opacity: 0.9; } 70% { opacity: 0.6; } 100% { transform: translate(18px, -360px); opacity: 0; } }
.sr-glow { position: absolute; left: 50%; top: 55%; width: 70%; aspect-ratio: 1; border-radius: 50%; transform: translate(-50%, -50%); background: radial-gradient(closest-side, color-mix(in srgb, var(--accent) 30%, transparent), transparent 70%); z-index: -1; animation: sr-pulse 5s ease-in-out infinite alternate; }
@keyframes sr-pulse { from { opacity: 0.5; transform: translate(-50%, -50%) scale(0.92); } to { opacity: 1; transform: translate(-50%, -50%) scale(1.08); } }
.system-row:hover .sr-scene-wrap { transform: rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg)) scale(1.09); }
@media (prefers-reduced-motion: reduce) {
  .sr-scene-wrap .sr-scene, .sr-sheen, .sr-sparks i, .sr-glow { animation: none; }
  .sr-sparks { display: none; }
  .sr-scene-wrap, .system-row:hover .sr-scene-wrap { transform: scale(1.02); transition: none; }
}

/* Platform page hero: the platform's 3D mark with its main parts circling it */
.sys-orbit { position: relative; min-height: 520px; display: grid; place-items: center; isolation: isolate; }
.so-mark { position: relative; z-index: 2; width: min(300px, 62%); height: auto; filter: drop-shadow(0 30px 40px rgba(1, 1, 61, 0.45)); animation: so-float 6s ease-in-out infinite alternate; }
@keyframes so-float { from { transform: translateY(-8px) rotate(-1deg); } to { transform: translateY(10px) rotate(1deg); } }
.so-glow { position: absolute; width: min(460px, 92%); aspect-ratio: 1; border-radius: 50%; background: radial-gradient(closest-side, color-mix(in srgb, var(--accent) 38%, transparent), transparent 72%); animation: sr-pulse 5s ease-in-out infinite alternate; }
.so-ring { position: absolute; left: 50%; top: 54%; border-radius: 50%; border: 1.5px solid color-mix(in srgb, var(--accent) 45%, transparent); transform: translate(-50%, -50%); }
.so-ring.r1 { width: min(560px, 100%); height: 170px; }
.so-ring.r2 { width: min(400px, 78%); height: 120px; border-style: dashed; border-color: color-mix(in srgb, var(--accent) 30%, transparent); }
.so-floor { position: absolute; left: 50%; top: 74%; width: 260px; height: 60px; border-radius: 50%; transform: translate(-50%, -50%); background: radial-gradient(closest-side, color-mix(in srgb, var(--accent) 45%, transparent), transparent); }
.so-chip { position: absolute; left: 50%; top: 54%; z-index: 3; display: inline-flex; align-items: center; gap: 8px; padding: 8px 14px 8px 10px; border-radius: 999px; white-space: nowrap; font-size: 0.86rem; color: var(--ink);
  background: color-mix(in srgb, var(--surface) 82%, transparent); border: 1px solid color-mix(in srgb, var(--accent) 40%, var(--line)); backdrop-filter: blur(8px); box-shadow: 0 14px 30px -18px rgba(1, 1, 61, 0.6);
  transform: translate(-50%, -50%); will-change: transform; }
.so-chip svg { width: 22px; height: 22px; color: var(--accent); flex-shrink: 0; }
html.dark .so-chip, .tone-deep .so-chip { color: #fff; background: rgba(16, 28, 66, 0.72); }
@media (max-width: 900px) { .sys-orbit { min-height: 420px; } .so-chip { font-size: 0.78rem; padding: 6px 11px 6px 8px; } .so-chip svg { width: 18px; height: 18px; } }
@media (prefers-reduced-motion: reduce) { .so-mark, .so-glow { animation: none; } }
@media (max-width: 600px) {
  .sys-orbit { min-height: 360px; }
  .so-chip { padding: 9px; gap: 0; }
  .so-chip b { display: none; }
  .so-chip svg { width: 22px; height: 22px; }
  .so-mark { width: 52%; }
}

/* Header menus: no dead gap between a menu item and its panel, and a short grace delay before closing,
   so moving the pointer down to the panel never closes it */
.main-nav { align-self: stretch; }
.main-nav > ul { height: 100%; align-items: stretch; }
.main-nav > ul > li { display: flex; align-items: center; }
.mega::before { top: -22px; height: 22px; }
.mega { transition: opacity 0.25s var(--ease) 0.12s, transform 0.35s var(--ease) 0.12s, visibility 0s linear 0.47s; }
.has-mega:hover .mega, .has-mega:focus-within .mega { transition: opacity 0.25s var(--ease), transform 0.35s var(--ease), visibility 0s; }
.header-bar { transform: translateZ(0); }

/* Article internal links and the related services/platforms box */
.prose p a { color: var(--accent); font-weight: 600; text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 3px; text-decoration-color: color-mix(in srgb, var(--accent) 45%, transparent); transition: text-decoration-color 0.2s var(--ease); }
.prose p a:hover { text-decoration-color: currentColor; }
.prose .rel-box { margin-top: 2.6em; padding-top: 1.6em; border-top: 1px solid var(--line); }
.prose .rel-box h2 { margin-top: 0; font-size: 1.25rem; }
.prose .rel-box ul { list-style: none; padding: 0; margin-top: 16px; display: grid; gap: 12px; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); }
.rel-item { position: relative; display: grid; gap: 6px; align-content: start; height: 100%; padding: 18px 20px 44px; border-radius: var(--r-lg); background: var(--surface); border: 1px solid var(--line); color: var(--ink); transition: border-color 0.2s var(--ease), transform 0.25s var(--ease); }
.rel-item:hover { border-color: var(--accent); transform: translateY(-2px); }
.rel-kind { font-size: 0.8125rem; font-weight: 600; color: var(--accent); }
.rel-item strong { font-size: 1.0625rem; line-height: 1.35; }
.rel-line { font-size: 0.9375rem; line-height: 1.55; color: var(--muted); }
.rel-item > .icon:last-child, .rel-item > svg:last-child { position: absolute; inset-inline-end: 18px; bottom: 16px; width: 18px; height: 18px; color: var(--accent); }
@media (prefers-reduced-motion: reduce) { .rel-item { transition: none; } .rel-item:hover { transform: none; } }

/* Client review on a project page */
.case-reviews { display: grid; gap: 20px; }
.case-reviews h2 { font-size: clamp(1.5rem, 1.2rem + 1vw, 2rem); }
.case-reviews-list { display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 420px), 1fr)); }
.case-review blockquote p { font-size: 1.125rem; color: var(--ink); }

/* "Many more features" note under a project's feature list */
.more-features { display: flex; gap: 10px; align-items: flex-start; margin-top: 18px; color: var(--muted); font-size: 0.9375rem; line-height: 1.6; }
.more-features .icon { flex: none; width: 20px; height: 20px; margin-top: 2px; color: var(--accent); }

/* Country pages */
.loc-intro { display: grid; grid-template-columns: minmax(0, 1fr) minmax(260px, 340px); gap: clamp(24px, 4vw, 56px); align-items: start; }
.loc-intro .prose h2 { margin-top: 0; }
.loc-office { display: flex; gap: 10px; align-items: flex-start; color: var(--ink); font-weight: 600; }
.loc-office .icon { flex: none; width: 22px; height: 22px; color: var(--accent); margin-top: 3px; }
.loc-facts { padding: 24px; position: sticky; top: 110px; }
.loc-facts dl { display: grid; gap: 18px; }
.loc-facts dt { font-size: 0.875rem; color: var(--muted); }
.loc-facts dd { margin: 4px 0 0; font-weight: 700; color: var(--ink); font-size: 1.0625rem; line-height: 1.5; }
.loc-facts div:first-child dd { font-size: 2rem; line-height: 1.1; color: var(--accent); }
.loc-needs { display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 250px), 1fr)); }
.loc-need { padding: 24px; display: grid; gap: 10px; align-content: start; }
.loc-need h3 { font-size: 1.125rem; }
.loc-need p { color: var(--ink-2); line-height: 1.65; }
.loc-systems { display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 210px), 1fr)); }
.loc-system { padding: 22px; display: grid; gap: 8px; align-content: start; color: var(--ink); }
.loc-system .loc-mark img { width: 48px; height: 48px; object-fit: contain; }
.loc-system span:not(.link-arrow) { color: var(--muted); font-size: 0.9375rem; line-height: 1.55; }
@media (max-width: 860px) { .loc-intro { grid-template-columns: 1fr; } .loc-facts { position: static; } }
.loc-services { display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr)); }

/* About: the markets we serve, each linking to its country page */
.markets { display: grid; gap: 14px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 200px), 1fr)); }
.market { padding: 22px; display: grid; gap: 6px; align-content: start; color: var(--ink); }
.market .ico-box { margin-bottom: 6px; }
.market strong { font-size: 1.125rem; }
.market small { color: var(--muted); font-size: 0.875rem; line-height: 1.5; }
.market .market-count { color: var(--accent); font-weight: 600; font-size: 0.9375rem; }
.markets-more { margin-top: 18px; color: var(--muted); text-align: center; }

/* Shorter hero (blog index) */
.page-hero.hero-compact .hero-panel { padding-top: calc(var(--header-h) + 40px); padding-bottom: clamp(28px, 3.5vw, 48px); }
.page-hero.hero-compact:has(.hero3d) .page-hero-grid.no-media { min-height: 0; }
@media (max-width: 1100px) { .page-hero.hero-compact:not(.has-media):has(.hero3d) .hero-panel { padding-bottom: 120px; } }
.page-hero.hero-compact .page-hero-grid.no-media .page-hero-copy { max-width: 980px; gap: 14px; }
.page-hero.hero-compact h1 { font-size: clamp(2rem, 1.4rem + 2.2vw, 3.25rem); }

/* Home services: the whole card opens the service, while a tag with its own page links to that page */
.stack-card-link { color: inherit; }
.stack-card-link::after { content: ""; position: absolute; inset: 0; border-radius: inherit; z-index: 1; }
.stack-card { cursor: pointer; }
.svc-tag-link { position: relative; z-index: 2; display: inline-flex; align-items: center; gap: 8px; color: var(--accent); font-weight: 600; text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 3px; text-decoration-color: color-mix(in srgb, var(--accent) 45%, transparent); }
.svc-tag-link::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--mint); }
.svc-tag-link:hover { text-decoration-color: currentColor; }

/* About hero: the Vega star on its own, in the style of the home platforms hub */
.pf-hub.about-star { grid-column: auto; grid-row: auto; min-height: 440px; width: 100%; max-width: 480px; justify-self: center; }
.pf-hub.about-star .pf-star { width: 40%; }
html:not(.dark) .pf-hub.about-star .pf-halo { background: radial-gradient(closest-side, rgba(60, 170, 255, 0.4), rgba(39, 146, 255, 0.12) 55%, transparent); }
html:not(.dark) .pf-hub.about-star .pf-star { filter: drop-shadow(0 0 18px rgba(40, 150, 255, 0.95)) drop-shadow(0 0 50px rgba(39, 146, 255, 0.7)); }
html:not(.dark) .pf-hub.about-star #pf-star-core stop:nth-child(2) { stop-color: #7ccfff; }
html:not(.dark) .pf-hub.about-star #pf-star-core stop:nth-child(3) { stop-color: #1f86f0; }
@media (max-width: 900px) { .pf-hub.about-star { min-height: 300px; max-width: 320px; } }

/* Social profiles in the footer */
.footer-social { display: flex; gap: 10px; list-style: none; padding: 0; margin: 0; }
.footer-social a { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 12px; color: var(--ink); background: color-mix(in srgb, var(--ink) 6%, transparent); border: 1px solid var(--line); transition: background 0.2s var(--ease), color 0.2s var(--ease), transform 0.2s var(--ease); }
.footer-social a:hover { background: var(--accent); border-color: var(--accent); color: #fff; transform: translateY(-2px); }
.footer-social .icon { width: 20px; height: 20px; }

.footer-contact + .footer-social { margin-top: 18px; }
.contact-social { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; padding: 20px 24px; }
.contact-social > span { display: grid; gap: 2px; }
.contact-social small { color: var(--muted); }
.contact-social strong { font-size: 1.0625rem; }
.contact-social-list a { width: 44px; height: 44px; }
.footer-col ul.footer-social { display: flex; flex-wrap: wrap; gap: 10px; }
.footer-col .footer-social a { color: var(--ink); display: grid; }
.footer-col .footer-social a:hover { color: #fff; }
