/* ==========================================================================
   Amwaj Solutions — site.css
   One stylesheet for English (LTR) and Arabic (RTL). Direction-aware spacing
   uses logical properties (margin-inline, inset-inline, padding-inline…).
   ========================================================================== */

:root {
  /* Brand palette (from HANDOFF.md) + derived tones */
  --navy-950: #070f38;
  --navy-900: #0b1650;
  --navy-700: #1a2e8e;   /* primary — blue-dark */
  --blue-500: #1a6fff;   /* accent — blue-mid */
  --cyan-400: #0aa2f5;   /* logo highlight */
  --blue-100: #e8f0ff;   /* blue-light */
  --blue-50:  #f4f7ff;   /* bg-light */
  --gold:     #c8923a;   /* decorative gold */
  --gold-ink: #94651f;   /* gold for small text on white (AA contrast) */
  --ink:      #0d1b4b;   /* headings */
  --text:     #2d3a5a;   /* body */
  --muted:    #586890;   /* meta (AA contrast) */
  --line:        rgba(26, 46, 142, .12);
  --line-strong: rgba(26, 46, 142, .22);
  --danger: #c0271a;

  --radius: 16px;
  --radius-sm: 10px;
  --shadow-sm: 0 1px 2px rgba(13, 27, 75, .05), 0 4px 12px -4px rgba(13, 27, 75, .06);
  --shadow-md: 0 18px 40px -18px rgba(13, 27, 75, .28);
  --shadow-lg: 0 40px 80px -30px rgba(13, 27, 75, .35);

  --font-sans: 'IBM Plex Sans', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --font-mono: 'IBM Plex Mono', ui-monospace, SFMono-Regular, Menlo, monospace;
  --font-brand: 'IBM Plex Sans', 'IBM Plex Sans Arabic', system-ui, sans-serif;

  --container: 1200px;
  --gutter: clamp(16px, 4vw, 40px);
  --header-h: 72px;
}

html[lang="ar"] {
  --font-sans: 'IBM Plex Sans Arabic', 'IBM Plex Sans', system-ui, sans-serif;
  --font-mono: 'IBM Plex Sans Arabic', 'IBM Plex Mono', system-ui, sans-serif;
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 72px); }
body {
  margin: 0; background: #fff; color: var(--text);
  font-family: var(--font-sans); font-size: 1.0625rem; line-height: 1.7;
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
html[lang="ar"] body { line-height: 1.9; }
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
p { margin: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }
button { font: inherit; }
em { font-style: normal; }
h1, h2, h3, h4 { margin: 0; color: var(--ink); font-weight: 600; letter-spacing: -.02em; line-height: 1.15; text-wrap: balance; }
html[lang="ar"] :is(h1, h2, h3, h4) { letter-spacing: 0; line-height: 1.45; font-weight: 700; }
:focus-visible { outline: 2px solid var(--blue-500); outline-offset: 3px; border-radius: 6px; }
::selection { background: rgba(26, 111, 255, .18); }

.container { width: 100%; max-width: var(--container); margin-inline: auto; padding-inline: var(--gutter); }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip-link {
  position: absolute; inset-inline-start: 16px; top: -80px; z-index: 1000;
  background: var(--navy-700); color: #fff; padding: 10px 16px; border-radius: 8px; font-size: .875rem; font-weight: 600;
}
.skip-link:focus { top: 12px; }
.ltr { direction: ltr; unicode-bidi: isolate; }

/* Gradient highlight inside headings */
:is(h1, h2, .h-display) em {
  background: linear-gradient(90deg, var(--blue-500), var(--cyan-400));
  -webkit-background-clip: text; background-clip: text; color: transparent;
  -webkit-box-decoration-break: clone; box-decoration-break: clone;
}

/* ---------- Eyebrow label ---------- */
.eyebrow {
  display: inline-flex; align-items: center; gap: 10px; margin-bottom: 18px;
  font-family: var(--font-mono); font-size: .75rem; font-weight: 500;
  letter-spacing: .14em; text-transform: uppercase; color: var(--gold-ink);
}
.eyebrow::before { content: ""; width: 22px; height: 2px; border-radius: 2px; background: var(--gold); flex-shrink: 0; }
html[lang="ar"] .eyebrow { letter-spacing: 0; text-transform: none; font-size: .9375rem; font-weight: 600; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  font-family: var(--font-sans); font-size: .9375rem; font-weight: 600; line-height: 1;
  padding: 15px 24px; border-radius: var(--radius-sm); border: 1px solid transparent; cursor: pointer;
  transition: background .2s, color .2s, border-color .2s, box-shadow .2s, transform .2s;
  white-space: nowrap;
}
.btn svg { width: 18px; height: 18px; flex-shrink: 0; transition: transform .2s; }
.btn:hover svg.i-arrow { transform: translateX(3px); }
[dir="rtl"] .i-arrow { transform: scaleX(-1); }
[dir="rtl"] .btn:hover svg.i-arrow { transform: scaleX(-1) translateX(3px); }
.btn-primary { background: var(--navy-700); color: #fff; box-shadow: 0 10px 22px -10px rgba(26, 46, 142, .6); }
.btn-primary:hover { background: var(--blue-500); box-shadow: 0 14px 28px -12px rgba(26, 111, 255, .65); transform: translateY(-1px); }
.btn-ghost { background: #fff; color: var(--ink); border-color: var(--line-strong); }
.btn-ghost:hover { border-color: var(--navy-700); color: var(--navy-700); }
.btn-light { background: #fff; color: var(--navy-700); }
.btn-light:hover { background: var(--blue-100); transform: translateY(-1px); }
.btn-sm { padding: 11px 18px; font-size: .875rem; }
.btn[disabled] { opacity: .6; cursor: not-allowed; transform: none; }

.text-link { display: inline-flex; align-items: center; gap: 8px; font-weight: 600; font-size: .9375rem; color: var(--navy-700); }
.text-link svg { width: 16px; height: 16px; transition: transform .2s; }
.text-link:hover { color: var(--blue-500); }
.text-link:hover svg.i-arrow { transform: translateX(3px); }
[dir="rtl"] .text-link:hover svg.i-arrow { transform: scaleX(-1) translateX(3px); }
/* "Back" arrows point toward the start edge: left in English, right in Arabic */
.i-back { transform: scaleX(-1); }
.text-link:hover svg.i-back { transform: scaleX(-1) translateX(3px); }
[dir="rtl"] svg.i-back { transform: none; }
[dir="rtl"] .text-link:hover svg.i-back { transform: translateX(3px); }

/* ---------- Language suggestion bar (EN pages, Arabic browsers only) ---------- */
.lang-suggest {
  display: flex; align-items: center; justify-content: center; gap: 14px; flex-wrap: wrap;
  padding: 10px var(--gutter); background: var(--navy-900); color: #dbe5ff;
  font-family: 'IBM Plex Sans Arabic', var(--font-sans); font-size: .9375rem;
}
.lang-suggest[hidden] { display: none; }
.lang-suggest a { color: #fff; font-weight: 600; text-decoration: underline; text-underline-offset: 4px; }
.lang-suggest button { background: none; border: 0; color: #9fb3ea; cursor: pointer; font-size: 1.25rem; line-height: 1; padding: 4px 8px; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(255, 255, 255, .86);
  -webkit-backdrop-filter: saturate(180%) blur(14px); backdrop-filter: saturate(180%) blur(14px);
  border-bottom: 1px solid transparent; transition: border-color .25s, box-shadow .25s;
}
.site-header.is-scrolled { border-bottom-color: var(--line); box-shadow: 0 10px 30px -24px rgba(13, 27, 75, .45); }
.header-inner { height: var(--header-h); display: flex; align-items: center; gap: 24px; }

.brand { display: inline-flex; align-items: center; gap: 10px; flex-shrink: 0; direction: ltr; }
.brand img { width: 36px; height: auto; }
.brand-word { font-family: var(--font-brand); font-weight: 600; font-size: 1.125rem; letter-spacing: .26em; color: var(--navy-700); line-height: 1; }
.brand-word b { color: var(--blue-500); font-weight: 600; letter-spacing: 0; }

.main-nav { flex: 1; display: flex; justify-content: center; }
.main-nav ul { display: flex; gap: 2px; }
.main-nav a {
  position: relative; display: block; padding: 8px 14px; border-radius: 8px;
  font-size: .9375rem; font-weight: 500; color: var(--text); transition: color .2s, background .2s;
}
.main-nav a:hover { color: var(--navy-700); background: var(--blue-50); }
.main-nav a[aria-current="page"] { color: var(--navy-700); }
.main-nav a[aria-current="page"]::after {
  content: ""; position: absolute; inset-inline: 14px; bottom: 2px; height: 2px; border-radius: 2px;
  background: linear-gradient(90deg, var(--blue-500), var(--cyan-400));
}

.header-actions { display: flex; align-items: center; gap: 10px; }
.lang-switch {
  display: inline-flex; align-items: center; gap: 8px; height: 40px; padding-inline: 14px;
  border: 1px solid var(--line-strong); border-radius: 999px; background: #fff;
  font-size: .9375rem; font-weight: 600; color: var(--navy-700); transition: border-color .2s, background .2s;
}
.lang-switch:hover { border-color: var(--navy-700); background: var(--blue-50); }
.lang-switch svg { width: 17px; height: 17px; }
.lang-switch [lang="ar"] { font-family: 'IBM Plex Sans Arabic', sans-serif; }
.lang-switch [lang="en"] { font-family: 'IBM Plex Sans', 'IBM Plex Sans Arabic', sans-serif; }

.menu-toggle {
  display: none; width: 44px; height: 44px; border-radius: 10px; border: 1px solid var(--line-strong);
  background: #fff; cursor: pointer; align-items: center; justify-content: center; flex-direction: column; gap: 5px;
}
.menu-toggle span { display: block; width: 18px; height: 2px; border-radius: 2px; background: var(--navy-700); transition: transform .25s, opacity .2s; }
.menu-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(3.5px) rotate(45deg); }
.menu-toggle[aria-expanded="true"] span:nth-child(2) { transform: translateY(-3.5px) rotate(-45deg); }

.mobile-panel {
  position: fixed; inset-inline: 0; top: var(--header-h); bottom: 0; z-index: 99;
  background: #fff; padding: 24px var(--gutter) 40px; overflow-y: auto;
  display: flex; flex-direction: column; gap: 24px;
  animation: panel-in .22s ease both;
}
.mobile-panel[hidden] { display: none; }
@keyframes panel-in { from { opacity: 0; transform: translateY(-8px); } }
.mobile-panel ul { border-top: 1px solid var(--line); }
.mobile-panel li a {
  display: flex; align-items: center; justify-content: space-between; padding: 18px 4px;
  border-bottom: 1px solid var(--line); font-size: 1.375rem; font-weight: 600; color: var(--ink);
}
.mobile-panel li a[aria-current="page"] { color: var(--blue-500); }
.mobile-panel li a svg { width: 20px; height: 20px; color: var(--muted); }
.mobile-panel .btn, .mobile-panel .lang-switch { width: 100%; justify-content: center; height: 52px; }
body.menu-open { overflow: hidden; }
.mp-contact { display: grid; gap: 4px; padding-top: 8px; border-top: 1px solid var(--line); }
.mp-contact a { display: inline-flex; align-items: center; gap: 10px; padding: 10px 4px; font-weight: 500; color: var(--navy-700); justify-self: start; }
.mp-contact svg { width: 18px; height: 18px; color: var(--blue-500); flex-shrink: 0; }

/* ---------- Sections ---------- */
.section { padding-block: clamp(72px, 9vw, 128px); position: relative; }
.section--tint { background: var(--blue-50); }
.section-head { max-width: 720px; margin-bottom: clamp(40px, 5vw, 64px); }
.section-head--split { max-width: none; display: grid; grid-template-columns: 1.1fr 1fr; gap: 24px 64px; align-items: end; }
.section-title { font-size: clamp(2rem, 1.3rem + 2.6vw, 3.25rem); line-height: 1.08; letter-spacing: -.03em; }
html[lang="ar"] .section-title { line-height: 1.4; }
.section-sub { font-size: 1.0625rem; color: var(--text); max-width: 580px; }
.section-head .section-title + .section-sub { margin-top: 20px; }
.section-head--split .section-title + .section-sub { margin-top: 0; }

/* ---------- Hero ---------- */
.hero {
  position: relative; overflow: hidden;
  background:
    radial-gradient(900px 520px at 88% 8%, rgba(26, 111, 255, .12), transparent 62%),
    radial-gradient(700px 420px at 0% 100%, rgba(10, 162, 245, .08), transparent 60%),
    linear-gradient(180deg, #fff 0%, #f5f8ff 100%);
  padding-block: clamp(48px, 7vw, 96px) clamp(40px, 5vw, 64px);
}
[dir="rtl"] .hero {
  background:
    radial-gradient(900px 520px at 12% 8%, rgba(26, 111, 255, .12), transparent 62%),
    radial-gradient(700px 420px at 100% 100%, rgba(10, 162, 245, .08), transparent 60%),
    linear-gradient(180deg, #fff 0%, #f5f8ff 100%);
}
.hero-grid { position: relative; z-index: 1; display: grid; grid-template-columns: 1.08fr .92fr; gap: clamp(40px, 5vw, 80px); align-items: center; }
.hero h1 { font-size: clamp(2.5rem, 1.1rem + 4.6vw, 4.75rem); line-height: 1.02; letter-spacing: -.04em; margin-bottom: 26px; }
html[lang="ar"] .hero h1 { font-size: clamp(2.25rem, 1.1rem + 3.8vw, 4.1rem); line-height: 1.3; letter-spacing: 0; }
.lead { font-size: clamp(1.0625rem, 1rem + .3vw, 1.1875rem); color: var(--text); max-width: 580px; }
.hero .lead { margin-bottom: 36px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; }

.hero-waves { position: absolute; inset-inline: 0; bottom: 0; height: 260px; pointer-events: none; overflow: hidden; z-index: 0; }
.hero-waves svg { position: absolute; bottom: 0; left: 0; width: 200%; max-width: none; height: 100%; animation: drift 42s linear infinite; }
.hero-waves svg + svg { animation-duration: 60s; animation-direction: reverse; opacity: .7; }
@keyframes drift { to { transform: translateX(-50%); } }

.stats {
  position: relative; z-index: 1; margin-top: clamp(48px, 6vw, 80px);
  display: grid; grid-template-columns: repeat(3, 1fr);
  background: rgba(255, 255, 255, .78); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
  border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow-sm);
}
.stat { padding: 24px 28px; display: flex; align-items: center; gap: 16px; }
.stat + .stat { border-inline-start: 1px solid var(--line); }
.stat dt { order: 2; font-family: var(--font-mono); font-size: .75rem; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); line-height: 1.4; }
html[lang="ar"] .stat dt { letter-spacing: 0; text-transform: none; font-size: .9375rem; font-weight: 500; }
.stat dd { order: 1; margin: 0; font-size: clamp(1.75rem, 1.3rem + 1.4vw, 2.5rem); font-weight: 600; letter-spacing: -.03em; color: var(--navy-700); line-height: 1; white-space: nowrap; }
.stat dd span { color: var(--blue-500); }
html[lang="ar"] .stat dd { letter-spacing: 0; }
html[lang="ar"] .stat dd span { font-size: .55em; font-weight: 600; }

/* Architecture visual */
.arch { position: relative; }
.arch-glow { position: absolute; inset: 6% 2%; background: radial-gradient(closest-side, rgba(26, 111, 255, .30), transparent); filter: blur(34px); }
.arch-card {
  position: relative; background: rgba(255, 255, 255, .86); -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px);
  border: 1px solid var(--line); border-radius: 22px; box-shadow: var(--shadow-lg); padding: 20px;
}
.arch-head {
  display: flex; align-items: center; gap: 10px; padding: 2px 6px 16px; margin-bottom: 14px; border-bottom: 1px solid var(--line);
  font-family: var(--font-mono); font-size: .75rem; letter-spacing: .08em; text-transform: uppercase; color: var(--muted);
}
html[lang="ar"] .arch-head { letter-spacing: 0; text-transform: none; font-size: .875rem; font-weight: 600; }
.arch-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--cyan-400); box-shadow: 0 0 0 4px rgba(10, 162, 245, .16); animation: blink 2.4s ease-in-out infinite; }
@keyframes blink { 50% { box-shadow: 0 0 0 7px rgba(10, 162, 245, .06); } }
.arch-layers { position: relative; display: grid; gap: 8px; }
.arch-layers::before {
  content: ""; position: absolute; inset-inline-start: 32px; top: 22px; bottom: 22px; width: 2px;
  background: linear-gradient(var(--blue-500), var(--cyan-400)); opacity: .35;
}
.arch-layer {
  position: relative; display: grid; grid-template-columns: 40px 1fr 96px; align-items: center; gap: 12px;
  padding: 9px 12px; border-radius: 14px; background: linear-gradient(180deg, #fff, #f7f9ff); border: 1px solid var(--line);
}
.arch-ic { width: 40px; height: 40px; border-radius: 11px; display: grid; place-items: center; background: linear-gradient(135deg, var(--blue-50), var(--blue-100)); color: var(--blue-500); }
.arch-ic svg { width: 20px; height: 20px; }
.arch-num { display: block; font-family: 'IBM Plex Mono', monospace; font-size: .6875rem; color: var(--blue-500); letter-spacing: .1em; }
.arch-name { display: block; font-weight: 600; color: var(--ink); font-size: .92rem; line-height: 1.3; }
.arch-wave { width: 96px; height: 28px; overflow: hidden; }
.arch-wave path { fill: none; stroke-width: 2; stroke-linecap: round; animation: wave-shift linear infinite; }
@keyframes wave-shift { to { transform: translateX(-40px); } }
.arch-foot { display: flex; flex-wrap: wrap; gap: 8px; padding: 16px 6px 2px; }
.chip {
  display: inline-flex; align-items: center; gap: 6px; padding: 6px 11px; border-radius: 999px;
  background: var(--blue-50); border: 1px solid var(--line); color: var(--navy-700);
  font-family: 'IBM Plex Mono', 'IBM Plex Sans Arabic', monospace; font-size: .75rem; font-weight: 500;
}
.chip svg { width: 13px; height: 13px; color: var(--blue-500); }

/* ---------- Service pillars ---------- */
.pillars { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.pillar {
  position: relative; display: flex; flex-direction: column; background: #fff;
  border: 1px solid var(--line); border-radius: var(--radius); padding: 28px 24px 24px;
  transition: transform .25s, box-shadow .25s, border-color .25s;
}
.pillar::before {
  content: ""; position: absolute; inset-inline: -1px; top: -1px; height: 3px; border-radius: var(--radius) var(--radius) 0 0;
  background: linear-gradient(90deg, var(--navy-700), var(--blue-500), var(--cyan-400)); opacity: 0; transition: opacity .25s;
}
.pillar:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); border-color: transparent; }
.pillar:hover::before { opacity: 1; }
.pillar-top { display: flex; align-items: center; justify-content: space-between; margin-bottom: 22px; }
.icon-tile { width: 50px; height: 50px; border-radius: 13px; display: grid; place-items: center; background: linear-gradient(135deg, var(--blue-50), var(--blue-100)); color: var(--blue-500); }
.icon-tile svg { width: 24px; height: 24px; }
.num { font-family: 'IBM Plex Mono', monospace; font-size: .75rem; color: var(--muted); letter-spacing: .08em; }
.pillar h3 { font-size: 1.1875rem; margin-bottom: 14px; }
.pillar .ticks { margin-bottom: 22px; }
.pillar-quote { margin-top: auto; padding-top: 18px; border-top: 1px dashed var(--line-strong); font-size: .9375rem; line-height: 1.55; color: var(--gold-ink); font-style: italic; }
html[lang="ar"] .pillar-quote { font-style: normal; }
.pillar .text-link { margin-top: 16px; }

.ticks li { position: relative; padding-inline-start: 26px; padding-block: 6px; font-size: .9375rem; line-height: 1.55; }
.ticks li::before {
  content: ""; position: absolute; inset-inline-start: 0; top: 10px; width: 16px; height: 16px; background: var(--blue-500);
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12.5l4.5 4.5L19 7.5'/%3E%3C/svg%3E") center / contain no-repeat;
          mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12.5l4.5 4.5L19 7.5'/%3E%3C/svg%3E") center / contain no-repeat;
}
html[lang="ar"] .ticks li::before { top: 13px; }
.ticks--dash li::before {
  background: var(--gold); top: 17px; height: 2px; width: 12px; border-radius: 2px; -webkit-mask: none; mask: none;
}
html[lang="ar"] .ticks--dash li::before { top: 20px; }
.ticks--arrow li::before {
  -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12h14M13 6l6 6-6 6'/%3E%3C/svg%3E");
          mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12h14M13 6l6 6-6 6'/%3E%3C/svg%3E");
  background: var(--navy-700);
}
[dir="rtl"] .ticks--arrow li::before { transform: scaleX(-1); }

/* ---------- Why ---------- */
.why { display: grid; grid-template-columns: 5fr 7fr; gap: clamp(40px, 6vw, 96px); align-items: start; }
.why .section-head { position: sticky; top: calc(var(--header-h) + 40px); margin-bottom: 0; }
.why-list { border-top: 1px solid var(--line); counter-reset: why; }
.why-item { display: grid; grid-template-columns: 64px 1fr; gap: 20px; padding-block: 32px; border-bottom: 1px solid var(--line); }
.why-item .icon-tile { width: 52px; height: 52px; }
.why-item h3 { font-size: 1.3125rem; margin-bottom: 10px; }
.why-item h3 .num { display: block; margin-bottom: 6px; color: var(--blue-500); font-weight: 500; }

/* ---------- Dark sections ---------- */
.section--dark {
  position: relative; color: #c9d4f5; overflow: hidden;
  background:
    radial-gradient(900px 520px at 8% 0%, rgba(26, 111, 255, .28), transparent 60%),
    radial-gradient(700px 400px at 100% 100%, rgba(10, 162, 245, .14), transparent 60%),
    linear-gradient(180deg, var(--navy-900), var(--navy-950));
}
.section--dark :is(h2, h3) { color: #fff; }
.section--dark :is(h1, h2) em { background-image: linear-gradient(90deg, #8fc2ff, #5fd3ff); }
.section--dark .section-sub { color: #aebbe6; }
.section--dark .eyebrow { color: #e7bd7a; }
.dark-waves { position: absolute; inset-inline: 0; bottom: -10px; height: 220px; pointer-events: none; opacity: .5; overflow: hidden; }
.dark-waves svg { position: absolute; top: 0; left: 0; width: 200%; max-width: none; height: 100%; animation: drift 64s linear infinite; }
.section--dark > .container { position: relative; z-index: 1; }

/* ---------- Case studies ---------- */
.cases { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.case {
  display: flex; flex-direction: column; padding: 28px; border-radius: var(--radius);
  background: rgba(255, 255, 255, .045); border: 1px solid rgba(255, 255, 255, .1);
  transition: background .25s, border-color .25s, transform .25s;
}
.case:hover { background: rgba(255, 255, 255, .07); border-color: rgba(143, 194, 255, .45); transform: translateY(-3px); }
.case-tag { font-family: var(--font-mono); font-size: .6875rem; letter-spacing: .1em; text-transform: uppercase; color: #e7bd7a; margin-bottom: 14px; }
html[lang="ar"] .case-tag { letter-spacing: 0; font-size: .875rem; font-weight: 600; }
.case h3 { font-size: 1.25rem; line-height: 1.3; margin-bottom: 22px; }
.case-metric { display: flex; align-items: center; gap: 14px; padding-block: 18px; margin-bottom: 20px; border-block: 1px solid rgba(255, 255, 255, .1); }
.case-metric strong {
  font-size: 3rem; font-weight: 600; letter-spacing: -.04em; line-height: 1;
  background: linear-gradient(90deg, #fff, #9cc8ff); -webkit-background-clip: text; background-clip: text; color: transparent;
  font-family: 'IBM Plex Sans', sans-serif; direction: ltr;
}
.case-metric span { font-size: .875rem; color: #aebbe6; line-height: 1.4; }
.case dl { margin: 0; }
.case dt { font-family: var(--font-mono); font-size: .6875rem; letter-spacing: .12em; text-transform: uppercase; color: #8fc2ff; margin-bottom: 4px; }
html[lang="ar"] .case dt { letter-spacing: 0; font-size: .8125rem; font-weight: 600; }
.case dd { margin: 0 0 16px; font-size: .9375rem; line-height: 1.65; color: #c9d4f5; }
.case dd:last-child { margin-bottom: 0; }

/* ---------- CTA band ---------- */
.cta-band { padding-block: clamp(56px, 7vw, 96px); }
.cta-box {
  position: relative; overflow: hidden; border-radius: 26px; color: #fff;
  background: linear-gradient(120deg, var(--navy-900) 0%, var(--navy-700) 55%, #1f5be0 100%);
  padding: clamp(36px, 6vw, 72px); display: flex; align-items: center; justify-content: space-between; gap: 32px;
}
[dir="rtl"] .cta-box { background: linear-gradient(240deg, var(--navy-900) 0%, var(--navy-700) 55%, #1f5be0 100%); }
.cta-box > * { position: relative; z-index: 1; }
.cta-box h2 { color: #fff; font-size: clamp(1.875rem, 1.2rem + 2.4vw, 3rem); letter-spacing: -.03em; line-height: 1.08; }
html[lang="ar"] .cta-box h2 { line-height: 1.4; }
.cta-box h2 em { background-image: linear-gradient(90deg, #9cc8ff, #6fdcff); }
.cta-box p { color: #c9d7ff; margin-top: 14px; max-width: 520px; }
.cta-waves { position: absolute !important; inset: 0; z-index: 0 !important; pointer-events: none; opacity: .45; overflow: hidden; }
.cta-waves svg { position: absolute; top: 0; left: 0; width: 200%; max-width: none; height: 100%; animation: drift 40s linear infinite; }

/* ---------- Page hero (inner pages) ---------- */
.page-hero {
  position: relative; overflow: hidden; border-bottom: 1px solid var(--line);
  background:
    radial-gradient(800px 420px at 90% 0%, rgba(26, 111, 255, .10), transparent 60%),
    linear-gradient(180deg, #f5f8ff, #fff);
  padding-block: clamp(36px, 5vw, 64px) clamp(48px, 6vw, 88px);
}
[dir="rtl"] .page-hero { background: radial-gradient(800px 420px at 10% 0%, rgba(26, 111, 255, .10), transparent 60%), linear-gradient(180deg, #f5f8ff, #fff); }
.page-hero .container { position: relative; z-index: 1; }
.page-hero h1 { font-size: clamp(2.25rem, 1.2rem + 3.6vw, 4rem); letter-spacing: -.035em; line-height: 1.05; max-width: 860px; margin-bottom: 22px; }
html[lang="ar"] .page-hero h1 { line-height: 1.35; letter-spacing: 0; }
.page-hero .hero-waves { height: 180px; opacity: .8; }

.breadcrumbs ol { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; font-size: .8125rem; color: var(--muted); margin-bottom: clamp(28px, 4vw, 44px); }
.breadcrumbs li { display: inline-flex; align-items: center; gap: 6px; }
.breadcrumbs li + li::before { content: "/"; color: var(--line-strong); }
.breadcrumbs a:hover { color: var(--navy-700); text-decoration: underline; text-underline-offset: 3px; }
.breadcrumbs [aria-current] { color: var(--ink); max-width: 46ch; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* ---------- Services page ---------- */
.svc-tabs {
  position: sticky; top: var(--header-h); z-index: 50;
  background: rgba(255, 255, 255, .92); -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}
.svc-tabs ul { display: flex; gap: 4px; overflow-x: auto; scrollbar-width: none; padding-block: 10px; }
.svc-tabs ul::-webkit-scrollbar { display: none; }
.svc-tabs a {
  display: flex; align-items: center; gap: 7px; padding: 9px 13px; border-radius: 999px; white-space: nowrap;
  font-size: .84375rem; font-weight: 500; color: var(--text); border: 1px solid transparent; transition: background .2s, color .2s;
}
.svc-tabs a:hover { background: var(--blue-50); color: var(--navy-700); }
.svc-tabs a .num { font-size: .6875rem; }
.svc-tabs a.is-active { background: var(--navy-700); color: #fff; }
.svc-tabs a.is-active .num { color: #9cc8ff; }

.svc { padding-block: clamp(64px, 8vw, 112px); border-bottom: 1px solid var(--line); }
.svc:nth-of-type(even) { background: var(--blue-50); }
.svc-grid { display: grid; grid-template-columns: 5fr 7fr; gap: clamp(40px, 6vw, 88px); align-items: start; }
.svc-intro { position: sticky; top: calc(var(--header-h) + 96px); }
.svc-intro .icon-tile { margin-bottom: 22px; width: 56px; height: 56px; }
.svc-intro h2 { font-size: clamp(2rem, 1.3rem + 2.4vw, 3rem); letter-spacing: -.03em; line-height: 1.06; margin-bottom: 22px; }
html[lang="ar"] .svc-intro h2 { line-height: 1.4; letter-spacing: 0; }
.svc-intro p + p { margin-top: 16px; }
.svc-quote {
  margin: 28px 0 0; padding: 18px 22px; background: #fff; border: 1px solid var(--line);
  border-inline-start: 3px solid var(--gold); border-radius: 12px; font-style: italic; font-weight: 500; color: var(--ink); line-height: 1.55;
}
html[lang="ar"] .svc-quote { font-style: normal; }
.svc:nth-of-type(odd) .svc-quote { background: var(--blue-50); }
.svc-groups { display: grid; gap: 16px; }
.svc-group { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 26px 28px; box-shadow: var(--shadow-sm); }
.svc-group h3 { display: flex; align-items: center; gap: 12px; font-size: 1.0625rem; margin-bottom: 10px; }
.g-ic { width: 36px; height: 36px; border-radius: 10px; display: grid; place-items: center; flex-shrink: 0; }
.g-ic svg { width: 18px; height: 18px; }
.g-ic--blue { background: var(--blue-100); color: var(--blue-500); }
.g-ic--gold { background: #fbf1e1; color: var(--gold-ink); }
.g-ic--navy { background: #e6e9f6; color: var(--navy-700); }
.svc-group .ticks li { border-bottom: 1px solid var(--line); padding-block: 10px; }
.svc-group .ticks li:last-child { border-bottom: 0; padding-bottom: 2px; }
.svc-group .ticks li::before { top: 14px; }
.svc-group .ticks--dash li::before { top: 21px; }
html[lang="ar"] .svc-group .ticks li::before { top: 17px; }
html[lang="ar"] .svc-group .ticks--dash li::before { top: 24px; }

.stack-note { font-size: .9375rem; color: var(--muted); margin-bottom: 14px; }
.stack-rows { display: grid; gap: 12px; }
.stack-row { display: grid; grid-template-columns: 132px 1fr; gap: 12px; align-items: start; padding-top: 12px; border-top: 1px solid var(--line); }
.stack-label { font-size: .8125rem; font-weight: 600; color: var(--ink); padding-top: 5px; }
.stack-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.stack-chips .chip { font-size: .75rem; }

/* ---------- Service FAQs (native <details>, crawlable without JavaScript) ---------- */
.faq {
  display: grid; grid-template-columns: 5fr 7fr; gap: 24px clamp(40px, 6vw, 88px);
  margin-top: clamp(48px, 6vw, 72px); padding-top: clamp(32px, 4vw, 48px); border-top: 1px solid var(--line);
}
.faq-head .eyebrow { margin-bottom: 10px; }
.faq-title { font-size: clamp(1.5rem, 1.2rem + 1vw, 2rem); letter-spacing: -.02em; }
html[lang="ar"] .faq-title { letter-spacing: 0; }
.faq-list { display: grid; gap: 10px; }
.faq-item { background: #fff; border: 1px solid var(--line); border-radius: 14px; transition: border-color .2s, box-shadow .2s; }
.faq-item[open] { border-color: rgba(26, 111, 255, .35); box-shadow: var(--shadow-sm); }
.faq-item summary {
  list-style: none; cursor: pointer; display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 18px 22px; font-weight: 600; color: var(--ink); line-height: 1.45;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary:hover { color: var(--navy-700); }
.faq-item summary svg { width: 20px; height: 20px; flex-shrink: 0; color: var(--blue-500); transition: transform .2s; }
.faq-item[open] summary svg { transform: rotate(180deg); }
.faq-a { padding: 0 22px 20px; color: var(--text); font-size: 1rem; }

/* ---------- About ---------- */
.about-cols { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.about-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: clamp(28px, 4vw, 48px); box-shadow: var(--shadow-sm); }
.about-card .icon-tile { margin-bottom: 24px; }
.about-card h2 { font-size: 1.625rem; margin-bottom: 18px; }
.about-card p + p { margin-top: 14px; }
.statement { padding-block: clamp(72px, 9vw, 120px); }
.statement blockquote { margin: 0; max-width: 980px; }
.statement blockquote p {
  font-size: clamp(1.375rem, 1rem + 1.5vw, 2.25rem); line-height: 1.4; color: #fff; font-weight: 400; letter-spacing: -.015em;
}
html[lang="ar"] .statement blockquote p { line-height: 1.75; letter-spacing: 0; }
.statement .quote-mark { width: 44px; height: 44px; color: #8fc2ff; margin-bottom: 24px; opacity: .9; }
[dir="rtl"] .statement .quote-mark { transform: scaleX(-1); }

.process { position: relative; display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.process::before { content: ""; position: absolute; top: 28px; inset-inline: 28px; height: 2px; background: linear-gradient(90deg, var(--blue-500), var(--cyan-400)); opacity: .3; }
.step-num {
  position: relative; width: 56px; height: 56px; border-radius: 50%; display: grid; place-items: center; margin-bottom: 24px;
  background: #fff; border: 1px solid var(--line-strong); box-shadow: var(--shadow-sm);
  font-family: 'IBM Plex Mono', monospace; font-weight: 500; font-size: .9375rem; color: var(--navy-700);
}
.step h3 { font-size: 1.1875rem; margin-bottom: 10px; }
.step p { font-size: .96875rem; }

/* ---------- Blog listing ---------- */
.filters { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 32px; }
.filter {
  padding: 9px 16px; border-radius: 999px; border: 1px solid var(--line-strong); background: #fff; cursor: pointer;
  font-size: .875rem; font-weight: 500; color: var(--text); transition: background .2s, color .2s, border-color .2s;
}
.filter:hover { border-color: var(--navy-700); color: var(--navy-700); }
.filter[aria-pressed="true"], .filter[aria-current="page"] { background: var(--navy-700); border-color: var(--navy-700); color: #fff; }
.posts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.post-card {
  position: relative; display: flex; flex-direction: column; background: #fff; border: 1px solid var(--line);
  border-radius: var(--radius); padding: 28px; transition: transform .25s, box-shadow .25s, border-color .25s;
}
.post-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); border-color: transparent; }
.post-card[hidden] { display: none; }
.post-cat {
  align-self: flex-start; display: inline-flex; align-items: center; gap: 7px; margin-bottom: 18px;
  padding: 5px 11px; border-radius: 999px; background: var(--blue-50); color: var(--navy-700);
  font-family: var(--font-mono); font-size: .6875rem; font-weight: 500; letter-spacing: .08em; text-transform: uppercase;
}
.post-cat::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--gold); }
html[lang="ar"] .post-cat { letter-spacing: 0; font-size: .8125rem; font-weight: 600; }
.post-card h2, .post-card h3 { font-size: 1.1875rem; line-height: 1.35; letter-spacing: -.01em; margin-bottom: 12px; }
html[lang="ar"] .post-card :is(h2, h3) { line-height: 1.6; }
.post-card h2 a::after, .post-card h3 a::after { content: ""; position: absolute; inset: 0; border-radius: inherit; }
.post-card p { font-size: .9375rem; margin-bottom: 22px; }
.post-meta { margin-top: auto; display: flex; align-items: center; justify-content: space-between; gap: 12px; padding-top: 16px; border-top: 1px solid var(--line); font-size: .8125rem; color: var(--muted); }
.post-meta .read { display: inline-flex; align-items: center; gap: 6px; color: var(--navy-700); font-weight: 600; }
.post-meta .read svg { width: 15px; height: 15px; }
.post-card--featured {
  grid-column: 1 / -1; display: grid; grid-template-columns: 1.25fr 1fr; gap: 0; padding: 0; overflow: hidden;
  background: linear-gradient(135deg, #fff 30%, var(--blue-50));
}
.post-card--featured .pc-body { display: flex; flex-direction: column; padding: clamp(28px, 4vw, 48px); }
.post-card--featured h2 { font-size: clamp(1.5rem, 1.1rem + 1.4vw, 2.125rem); letter-spacing: -.025em; line-height: 1.15; }
html[lang="ar"] .post-card--featured h2 { line-height: 1.5; letter-spacing: 0; }
.post-card--featured p { font-size: 1.0625rem; }
.pc-art { position: relative; background: linear-gradient(135deg, var(--navy-900), var(--navy-700) 60%, #1f5be0); overflow: hidden; min-height: 260px; }
.pc-art svg { position: absolute; top: 0; left: 0; width: 200%; max-width: none; height: 100%; animation: drift 44s linear infinite; }
.pc-art img { position: absolute; width: 38%; max-width: 150px; inset-inline-end: 12%; top: 50%; transform: translateY(-50%); opacity: .95; }

/* ---------- Article ---------- */
.article-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 20px; font-size: .9375rem; color: var(--muted); }
.article-meta span { display: inline-flex; align-items: center; gap: 8px; }
.article-meta svg { width: 16px; height: 16px; color: var(--blue-500); }
.article-hero h1 { font-size: clamp(2rem, 1.2rem + 2.8vw, 3.4rem); max-width: 900px; }
.article-hero .post-cat { margin-bottom: 22px; }
.article { padding-block: clamp(48px, 6vw, 88px); }
.prose { max-width: 720px; margin-inline: auto; font-size: 1.125rem; line-height: 1.8; color: var(--text); }
html[lang="ar"] .prose { font-size: 1.1875rem; line-height: 2.05; }
.prose > p:first-child { font-size: 1.25rem; line-height: 1.7; color: var(--ink); }
html[lang="ar"] .prose > p:first-child { line-height: 2; }
.prose p { margin-bottom: 1.35em; }
.prose a { color: var(--blue-500); text-decoration: underline; text-underline-offset: 3px; }
.prose a:hover { color: var(--navy-700); }
.prose h2 { font-size: clamp(1.5rem, 1.2rem + 1vw, 1.875rem); letter-spacing: -.02em; margin: 2em 0 .7em; }
html[lang="ar"] .prose h2 { letter-spacing: 0; }
.prose ul { margin: 0 0 1.6em; padding: 20px 24px; background: var(--blue-50); border: 1px solid var(--line); border-radius: 14px; }
.prose ul li { position: relative; padding-inline-start: 30px; padding-block: 7px; font-size: 1.0625rem; line-height: 1.65; }
.prose ul li + li { border-top: 1px solid var(--line); }
.prose ul li::before {
  content: ""; position: absolute; inset-inline-start: 0; top: 13px; width: 18px; height: 18px; background: var(--blue-500);
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12.5l4.5 4.5L19 7.5'/%3E%3C/svg%3E") center / contain no-repeat;
          mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12.5l4.5 4.5L19 7.5'/%3E%3C/svg%3E") center / contain no-repeat;
}
html[lang="ar"] .prose ul li::before { top: 17px; }
.article-cta {
  max-width: 720px; margin: 56px auto 0; padding: clamp(28px, 4vw, 40px); border-radius: 20px; color: #fff;
  background: linear-gradient(120deg, var(--navy-900), var(--navy-700) 60%, #1f5be0);
  display: flex; flex-direction: column; align-items: flex-start; gap: 14px; position: relative; overflow: hidden;
}
.article-cta > * { position: relative; }
.article-cta h2 { color: #fff; font-size: 1.5rem; letter-spacing: -.02em; }
html[lang="ar"] .article-cta h2 { letter-spacing: 0; }
.article-cta p { color: #c9d7ff; margin-bottom: 8px; }
.article-foot { max-width: 720px; margin: 32px auto 0; }
.related .posts { grid-template-columns: repeat(3, 1fr); }
.related .section-title { font-size: clamp(1.625rem, 1.2rem + 1.4vw, 2.25rem); }

/* ---------- Contact ---------- */
.contact-grid { display: grid; grid-template-columns: 5fr 7fr; gap: clamp(32px, 5vw, 72px); align-items: start; }
.info-list { display: grid; gap: 14px; position: sticky; top: calc(var(--header-h) + 32px); }
.info { display: grid; grid-template-columns: 44px 1fr; gap: 16px; padding: 22px; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); }
.info .g-ic { width: 44px; height: 44px; border-radius: 12px; }
.info .g-ic svg { width: 20px; height: 20px; }
.info h2 { font-size: 1.0625rem; margin-bottom: 6px; }
.info p { font-size: .9375rem; line-height: 1.65; }
.kv { display: grid; grid-template-columns: auto 1fr; gap: 6px 14px; margin: 4px 0 0; font-size: .9375rem; }
.kv dt { font-family: var(--font-mono); font-size: .6875rem; letter-spacing: .1em; text-transform: uppercase; color: var(--blue-500); padding-top: 4px; }
html[lang="ar"] .kv dt { letter-spacing: 0; font-size: .875rem; padding-top: 0; font-weight: 600; }
.kv dd { margin: 0; color: var(--ink); }
.direct-links { display: grid; gap: 8px; margin-top: 6px; }
.direct-link { display: inline-flex; align-items: center; gap: 10px; justify-self: start; font-weight: 600; color: var(--navy-700); font-size: 1rem; }
.direct-link:hover { color: var(--blue-500); }
.direct-link svg { width: 17px; height: 17px; color: var(--blue-500); flex-shrink: 0; }
.c-link svg.i-whatsapp { color: #1da851; }
.site-footer .c-link svg.i-whatsapp { color: #25d366; }

/* ---------- Floating WhatsApp button ---------- */
.wa-float {
  position: fixed; z-index: 90; inset-inline-end: 20px; bottom: max(20px, env(safe-area-inset-bottom));
  width: 56px; height: 56px; border-radius: 50%; display: grid; place-items: center;
  background: #25d366; color: #fff; box-shadow: 0 12px 26px -10px rgba(13, 27, 75, .55);
  transition: transform .2s, box-shadow .2s;
}
.wa-float svg { width: 30px; height: 30px; }
.wa-float:hover { transform: translateY(-2px) scale(1.04); box-shadow: 0 18px 32px -12px rgba(13, 27, 75, .6); }
.wa-float:focus-visible { outline: 3px solid var(--navy-700); outline-offset: 3px; border-radius: 50%; }
body.menu-open .wa-float { display: none; }
@media print { .wa-float { display: none; } }

.form-card { background: #fff; border: 1px solid var(--line); border-radius: 22px; box-shadow: var(--shadow-md); padding: clamp(24px, 4vw, 44px); }
.form { display: grid; gap: 20px; }
.form[hidden] { display: none; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.field { display: flex; flex-direction: column; gap: 8px; min-width: 0; }
.field label { font-size: .875rem; font-weight: 600; color: var(--ink); }
.field .req { color: var(--blue-500); margin-inline-start: 2px; }
.input {
  width: 100%; font: inherit; font-size: 1rem; line-height: 1.4; color: var(--ink);
  background: var(--blue-50); border: 1px solid var(--line-strong); border-radius: var(--radius-sm); padding: 13px 14px;
  transition: border-color .2s, box-shadow .2s, background .2s; -webkit-appearance: none; appearance: none;
}
.input::placeholder { color: #8391b5; }
.input:hover { border-color: rgba(26, 46, 142, .35); }
.input:focus { outline: none; background: #fff; border-color: var(--blue-500); box-shadow: 0 0 0 4px rgba(26, 111, 255, .13); }
.input[type="email"], .input[type="tel"] { direction: ltr; }
[dir="rtl"] .input[type="email"], [dir="rtl"] .input[type="tel"] { text-align: right; }
select.input {
  cursor: pointer; padding-inline-end: 42px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%231a6fff' stroke-width='1.6' fill='none' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 16px center;
}
[dir="rtl"] select.input { background-position: left 16px center; }
select.input:invalid { color: #8391b5; }
select.input option { color: var(--ink); }
textarea.input { min-height: 150px; resize: vertical; }
.input[aria-invalid="true"] { border-color: var(--danger); background: #fff7f6; }
.field-error { font-size: .8125rem; color: var(--danger); }
.field-error:empty { display: none; }
.form-foot { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.form-note { font-size: .8125rem; color: var(--muted); }
[data-fs-error=""] { display: none; padding: 12px 16px; border-radius: 10px; background: #fff1f0; border: 1px solid #f3c4bf; color: var(--danger); font-size: .9375rem; margin-bottom: 16px; }
[data-fs-error=""][data-fs-active] { display: block; }
[data-fs-success] { display: none; }
[data-fs-success][data-fs-active] { display: block; }
.form-success { text-align: center; padding: 40px 16px; }
.form-success .success-ic { width: 64px; height: 64px; margin: 0 auto 20px; border-radius: 50%; display: grid; place-items: center; background: var(--blue-100); color: var(--navy-700); }
.form-success .success-ic svg { width: 30px; height: 30px; }
.form-success h2 { font-size: 1.625rem; margin-bottom: 12px; }
.form-success p { max-width: 440px; margin-inline: auto; }

/* ---------- 404 ---------- */
.nf { min-height: 60vh; display: grid; place-items: center; text-align: center; padding-block: 96px; }
.nf .code { font-family: 'IBM Plex Mono', monospace; font-size: .875rem; color: var(--blue-500); letter-spacing: .2em; margin-bottom: 16px; }
.nf h1 { font-size: clamp(2rem, 1.4rem + 2vw, 3rem); margin-bottom: 12px; }
.nf .nf-ar { margin-top: 40px; padding-top: 32px; border-top: 1px solid var(--line); font-family: 'IBM Plex Sans Arabic', sans-serif; }
.nf .nf-ar h2 { font-size: 1.5rem; margin-bottom: 8px; letter-spacing: 0; }
.nf .btn { margin-top: 24px; }

/* ---------- Footer ---------- */
.site-footer { position: relative; background: var(--navy-950); color: #a9b5dc; font-size: .9375rem; overflow: hidden; }
.site-footer::before { content: ""; position: absolute; inset-inline: 0; top: 0; height: 1px; background: linear-gradient(90deg, transparent, rgba(143, 194, 255, .45), transparent); }
.footer-grid { display: grid; grid-template-columns: 1.7fr 1fr 1.3fr 1.1fr; gap: 40px; padding-block: clamp(56px, 7vw, 88px) 48px; }
.footer-brand .brand-word { color: #fff; }
.footer-brand .brand-word b { color: #7fb3ff; }
.footer-brand p { margin-top: 20px; max-width: 360px; line-height: 1.75; }
.footer-h { font-family: var(--font-mono); font-size: .75rem; font-weight: 500; letter-spacing: .14em; text-transform: uppercase; color: #fff; margin-bottom: 18px; }
html[lang="ar"] .footer-h { letter-spacing: 0; font-size: .9375rem; font-weight: 600; }
.footer-col li + li { margin-top: 11px; }
.footer-col a { transition: color .2s; }
.footer-col a:hover { color: #fff; }
.footer-contact .c-link { display: inline-flex; align-items: center; gap: 10px; }
.footer-contact svg { width: 16px; height: 16px; color: #7fb3ff; flex-shrink: 0; }
.footer-col .lang-switch { margin-top: 6px; background: transparent; color: #fff; border-color: rgba(255, 255, 255, .22); height: 38px; }
.footer-col .lang-switch:hover { background: rgba(255, 255, 255, .06); border-color: rgba(255, 255, 255, .5); }
.footer-bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 24px; padding-block: 22px; border-top: 1px solid rgba(255, 255, 255, .08); font-size: .8125rem; color: #7d8bb8; }

/* ---------- Reveal on scroll ---------- */
.js .reveal { opacity: 0; transform: translateY(18px); transition: opacity .7s cubic-bezier(.2, .7, .2, 1), transform .7s cubic-bezier(.2, .7, .2, 1); }
.js .reveal.in { opacity: 1; transform: none; }
.js .reveal-stagger > * { opacity: 0; transform: translateY(18px); transition: opacity .6s cubic-bezier(.2, .7, .2, 1), transform .6s cubic-bezier(.2, .7, .2, 1); }
.js .reveal-stagger.in > * { opacity: 1; transform: none; }
.js .reveal-stagger.in > *:nth-child(2) { transition-delay: .07s; }
.js .reveal-stagger.in > *:nth-child(3) { transition-delay: .14s; }
.js .reveal-stagger.in > *:nth-child(4) { transition-delay: .21s; }
.js .reveal-stagger.in > *:nth-child(5) { transition-delay: .28s; }
.js .reveal-stagger.in > *:nth-child(n+6) { transition-delay: .32s; }
.hero-copy > * { animation: rise .8s cubic-bezier(.2, .7, .2, 1) both; }
.hero-copy > *:nth-child(2) { animation-delay: .06s; }
.hero-copy > *:nth-child(3) { animation-delay: .12s; }
.hero-copy > *:nth-child(4) { animation-delay: .18s; }
.arch { animation: rise 1s .2s cubic-bezier(.2, .7, .2, 1) both; }
@keyframes rise { from { opacity: 0; transform: translateY(22px); } }


/* ==========================================================================
   Motion — waves, data networks and signal flow (all disabled for
   prefers-reduced-motion; canvases pause off-screen and in background tabs)
   ========================================================================== */

/* Live network canvas (created by site.js inside [data-network]) */
.net-canvas { position: absolute; inset: 0; z-index: 0; pointer-events: none; }
.hero .net-canvas { -webkit-mask-image: linear-gradient(90deg, rgba(0,0,0,.15), rgba(0,0,0,.35) 38%, #000 72%); mask-image: linear-gradient(90deg, rgba(0,0,0,.15), rgba(0,0,0,.35) 38%, #000 72%); }
[dir="rtl"] .hero .net-canvas { -webkit-mask-image: linear-gradient(270deg, rgba(0,0,0,.15), rgba(0,0,0,.35) 38%, #000 72%); mask-image: linear-gradient(270deg, rgba(0,0,0,.15), rgba(0,0,0,.35) 38%, #000 72%); }
.page-hero .net-canvas { -webkit-mask-image: linear-gradient(90deg, transparent 15%, #000 85%); mask-image: linear-gradient(90deg, transparent 15%, #000 85%); }
[dir="rtl"] .page-hero .net-canvas { -webkit-mask-image: linear-gradient(270deg, transparent 15%, #000 85%); mask-image: linear-gradient(270deg, transparent 15%, #000 85%); }

/* Drifting glow orbs in the hero */
.orbs { position: absolute; inset: 0; z-index: 0; pointer-events: none; overflow: hidden; }
.orbs span { position: absolute; border-radius: 50%; }
.orbs span:nth-child(1) { width: 520px; height: 520px; top: -160px; inset-inline-end: -120px; background: radial-gradient(circle, rgba(26, 111, 255, .16), transparent 68%); animation: orb-a 22s ease-in-out infinite alternate; }
.orbs span:nth-child(2) { width: 420px; height: 420px; bottom: -180px; inset-inline-start: 8%; background: radial-gradient(circle, rgba(10, 162, 245, .14), transparent 68%); animation: orb-b 27s ease-in-out infinite alternate; }
@keyframes orb-a { to { transform: translate(-90px, 70px) scale(1.12); } }
@keyframes orb-b { to { transform: translate(100px, -60px) scale(.9); } }

/* Hero architecture card: 3D tilt (site.js sets --rx/--ry) + scan through the six layers */
.arch-card { transform: perspective(1100px) rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg)); transition: transform .5s cubic-bezier(.2, .7, .2, 1); will-change: transform; }
.arch-layer { animation: layer-scan 9s ease-in-out infinite; }
.arch-layer:nth-child(2) { animation-delay: 1.5s; }
.arch-layer:nth-child(3) { animation-delay: 3s; }
.arch-layer:nth-child(4) { animation-delay: 4.5s; }
.arch-layer:nth-child(5) { animation-delay: 6s; }
.arch-layer:nth-child(6) { animation-delay: 7.5s; }
.arch-layer .arch-ic { animation: ic-scan 9s ease-in-out infinite; animation-delay: inherit; }
@keyframes layer-scan {
  0%, 15%, 100% { border-color: var(--line); box-shadow: none; }
  5%, 10% { border-color: rgba(26, 111, 255, .55); box-shadow: 0 0 0 4px rgba(26, 111, 255, .08), 0 10px 24px -14px rgba(26, 111, 255, .6); }
}
@keyframes ic-scan {
  0%, 15%, 100% { box-shadow: inset 0 0 0 0 var(--blue-500); color: var(--blue-500); }
  5%, 10% { box-shadow: inset 0 0 0 30px var(--blue-500); color: #fff; }
}
.arch-foot .chip { animation: bob 4.2s ease-in-out infinite; }
.arch-foot .chip:nth-child(2) { animation-delay: .7s; }
.arch-foot .chip:nth-child(3) { animation-delay: 1.4s; }
@keyframes bob { 50% { transform: translateY(-4px); } }
.hero-copy .eyebrow::before { animation: line-in .9s .35s cubic-bezier(.2, .7, .2, 1) both; }
@keyframes line-in { from { width: 0; } }

/* Gradient highlight in headings slowly shimmers */
:is(h1, h2, .h-display) em {
  background-image: linear-gradient(90deg, var(--blue-500), var(--cyan-400), var(--blue-500));
  background-size: 200% auto; animation: shimmer 7s ease-in-out infinite alternate;
}
.section--dark :is(h1, h2) em { background-image: linear-gradient(90deg, #8fc2ff, #5fd3ff, #8fc2ff); }
.cta-box h2 em { background-image: linear-gradient(90deg, #9cc8ff, #6fdcff, #9cc8ff); }
@keyframes shimmer { to { background-position: 100% 50%; } }

/* Capabilities ticker */
.marquee {
  overflow: hidden; border-block: 1px solid var(--line); background: #fff; padding-block: 18px;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
          mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
}
.marquee-track { display: flex; width: max-content; animation: marquee 48s linear infinite; }
[dir="rtl"] .marquee-track { animation-name: marquee-rtl; }
.marquee:hover .marquee-track { animation-play-state: paused; }
.marquee-list { display: flex; flex-shrink: 0; }
.marquee-list li {
  display: flex; align-items: center; gap: 26px; padding-inline-end: 26px; white-space: nowrap;
  font-family: var(--font-mono); font-size: .8125rem; font-weight: 500; letter-spacing: .12em; text-transform: uppercase; color: var(--muted);
}
.marquee-list li::after { content: ""; width: 6px; height: 6px; border-radius: 50%; background: linear-gradient(135deg, var(--blue-500), var(--cyan-400)); }
html[lang="ar"] .marquee-list li { letter-spacing: 0; text-transform: none; font-size: .9375rem; }
@keyframes marquee { to { transform: translateX(-50%); } }
@keyframes marquee-rtl { to { transform: translateX(50%); } }

/* Cursor spotlight on cards (site.js adds .spot and sets --mx/--my) */
.case, .svc-group, .about-card, .info { position: relative; }
.spot::after {
  content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none; opacity: 0; transition: opacity .3s;
  background: radial-gradient(420px circle at var(--mx, 50%) var(--my, 50%), rgba(26, 111, 255, .09), transparent 45%);
}
.spot:hover::after { opacity: 1; }
.section--dark .spot::after { background: radial-gradient(420px circle at var(--mx, 50%) var(--my, 50%), rgba(143, 194, 255, .14), transparent 45%); }

/* Icons nudge on hover */
:is(.pillar, .why-item, .about-card, .svc-group, .info):hover :is(.icon-tile, .g-ic) svg { animation: icon-pop .7s cubic-bezier(.2, .7, .2, 1); }
@keyframes icon-pop { 40% { transform: translateY(-3px) rotate(-8deg) scale(1.1); } }
.brand:hover img { animation: bob 1.2s ease-in-out; }

/* Section labels: the gold line draws in when the section appears */
.js .reveal .eyebrow::before { width: 0; transition: width .8s .25s cubic-bezier(.2, .7, .2, 1); }
.js .reveal.in .eyebrow::before { width: 22px; }

/* About: timeline draws itself, step numbers pulse */
.js .process::before { transform: scaleX(0); transform-origin: left center; transition: transform 1.6s .2s cubic-bezier(.2, .7, .2, 1); }
[dir="rtl"] .process::before { transform-origin: right center; }
.js .process.in::before { transform: none; }
.step-num::after { content: ""; position: absolute; inset: -1px; border-radius: 50%; border: 2px solid var(--blue-500); opacity: 0; }
.process.in .step:nth-child(1) .step-num::after { animation: ring 4.8s ease-out 1s infinite; }
.process.in .step:nth-child(2) .step-num::after { animation: ring 4.8s ease-out 2.2s infinite; }
.process.in .step:nth-child(3) .step-num::after { animation: ring 4.8s ease-out 3.4s infinite; }
.process.in .step:nth-child(4) .step-num::after { animation: ring 4.8s ease-out 4.6s infinite; }
@keyframes ring { 0% { transform: scale(1); opacity: .55; } 30%, 100% { transform: scale(1.55); opacity: 0; } }

/* Buttons: light sweep on hover */
.btn-primary, .btn-light { position: relative; overflow: hidden; isolation: isolate; }
.btn-primary::after, .btn-light::after {
  content: ""; position: absolute; top: 0; bottom: 0; left: -70%; width: 45%; z-index: -1; transform: skewX(-20deg);
  background: linear-gradient(100deg, transparent, rgba(255, 255, 255, .32), transparent); transition: left .7s ease;
}
.btn-light::after { background: linear-gradient(100deg, transparent, rgba(26, 111, 255, .14), transparent); }
.btn-primary:hover::after, .btn-light:hover::after { left: 130%; }

/* Featured article: the mark floats over drifting waves */
.pc-art img { animation: float 6s ease-in-out infinite; }
@keyframes float { 0%, 100% { transform: translateY(-50%); } 50% { transform: translateY(calc(-50% - 10px)); } }

/* WhatsApp: gentle pulse ring */
.wa-float::before { content: ""; position: absolute; inset: 0; z-index: -1; border-radius: 50%; background: #25d366; animation: wa-pulse 3.6s ease-out infinite; }
@keyframes wa-pulse { 0% { transform: scale(1); opacity: .5; } 55%, 100% { transform: scale(1.65); opacity: 0; } }

/* Article reading progress (created by site.js) */
.read-progress { position: fixed; top: 0; inset-inline: 0; height: 3px; z-index: 120; pointer-events: none; }
.read-progress span { display: block; height: 100%; background: linear-gradient(90deg, var(--blue-500), var(--cyan-400)); transform: scaleX(0); transform-origin: left center; }
[dir="rtl"] .read-progress span { transform-origin: right center; background: linear-gradient(270deg, var(--blue-500), var(--cyan-400)); }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
  .js .reveal, .js .reveal-stagger > * { opacity: 1; transform: none; }
  .js .process::before { transform: none; }
  .js .reveal .eyebrow::before { width: 22px; }
  .arch-card { transform: none; }
}

/* ==========================================================================
   Responsive
   ========================================================================== */
@media (max-width: 1100px) {
  .pillars { grid-template-columns: repeat(2, 1fr); }
  .main-nav a { padding-inline: 10px; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-brand { grid-column: 1 / -1; }
}

@media (max-width: 960px) {
  .main-nav, .header-cta { display: none; }
  .menu-toggle { display: inline-flex; }
  .header-actions { margin-inline-start: auto; }
  .hero-grid { grid-template-columns: 1fr; }
  .arch { max-width: 560px; }
  .section-head--split { grid-template-columns: 1fr; }
  .why { grid-template-columns: 1fr; }
  .why .section-head { position: static; }
  .cases { grid-template-columns: 1fr; max-width: 640px; }
  .svc-grid { grid-template-columns: 1fr; }
  .svc-intro { position: static; }
  .faq { grid-template-columns: 1fr; }
  .about-cols { grid-template-columns: 1fr; }
  .process { grid-template-columns: repeat(2, 1fr); row-gap: 40px; }
  .process::before { display: none; }
  .posts, .related .posts { grid-template-columns: repeat(2, 1fr); }
  .post-card--featured { grid-template-columns: 1fr; }
  .pc-art { min-height: 180px; order: -1; }
  .contact-grid { grid-template-columns: 1fr; }
  .info-list { position: static; order: 2; }
  .cta-box { flex-direction: column; align-items: flex-start; }
}

@media (max-width: 640px) {
  :root { --header-h: 64px; }
  body { font-size: 1rem; }
  .brand img { width: 32px; }
  .brand-word { font-size: 1rem; letter-spacing: .22em; }
  .lang-switch { height: 40px; padding-inline: 12px; }
  .lang-switch .ls-icon { display: none; }
  .hero-actions { flex-direction: column; align-items: stretch; }
  .hero-actions .btn { width: 100%; }
  .stats { grid-template-columns: 1fr; }
  .stat { padding: 18px 20px; }
  .stat + .stat { border-inline-start: 0; border-top: 1px solid var(--line); }
  .arch-layer { grid-template-columns: 40px 1fr; }
  .arch-wave { display: none; }
  .arch-layers::before { inset-inline-start: 32px; }
  .pillars { grid-template-columns: 1fr; }
  .why-item { grid-template-columns: 1fr; gap: 14px; padding-block: 26px; }
  .process { grid-template-columns: 1fr; }
  .posts, .related .posts { grid-template-columns: 1fr; }
  .post-card { padding: 24px; }
  .form-row { grid-template-columns: 1fr; }
  .form-foot .btn { width: 100%; }
  .footer-grid { grid-template-columns: 1fr; gap: 32px; }
  .cta-box .btn { width: 100%; }
  .svc-group { padding: 22px 20px; }
  .stack-row { grid-template-columns: 1fr; gap: 8px; }
  .faq-item summary { padding: 16px 18px; }
  .faq-a { padding: 0 18px 18px; }
  .prose { font-size: 1.0625rem; }
  .prose > p:first-child { font-size: 1.125rem; }
  .prose ul { padding: 14px 16px; }
  .breadcrumbs [aria-current] { max-width: 22ch; }
  .wa-float { width: 52px; height: 52px; inset-inline-end: 16px; bottom: max(16px, env(safe-area-inset-bottom)); }
  .wa-float svg { width: 28px; height: 28px; }
}

/* ---------- SEO content components (added 2026-10) ---------- */
.prose h3 { font-size: clamp(1.2rem, 1.05rem + .5vw, 1.375rem); margin: 1.6em 0 .55em; letter-spacing: -.01em; color: var(--ink); }
html[lang="ar"] .prose h3 { letter-spacing: 0; }
.prose ol { margin: 0 0 1.6em; padding-inline-start: 1.4em; }
.prose ol li { padding-block: 5px; font-size: 1.0625rem; line-height: 1.7; }
.prose ol li::marker { color: var(--blue-500); font-weight: 600; }
.prose strong { color: var(--ink); font-weight: 600; }
.prose table { width: 100%; border-collapse: separate; border-spacing: 0; margin: 0 0 1.8em; font-size: .975rem; line-height: 1.55;
  border: 1px solid var(--line); border-radius: 14px; overflow: hidden; display: block; overflow-x: auto; }
.prose thead th { background: var(--navy-700); color: #fff; font-weight: 600; text-align: start; }
.prose th, .prose td { padding: 12px 14px; vertical-align: top; text-align: start; border-bottom: 1px solid var(--line); min-width: 120px; }
.prose tbody tr:nth-child(even) td { background: var(--blue-50); }
.prose tbody tr:last-child td { border-bottom: 0; }
.key-takeaways { margin: 0 0 2em; padding: 22px 24px; border-radius: 16px; background: #fff; border: 1px solid rgba(26,111,255,.28);
  box-shadow: var(--shadow-sm); border-inline-start: 4px solid var(--blue-500); }
.key-takeaways .kt-title { font-family: var(--font-mono); font-size: .8125rem; letter-spacing: .12em; text-transform: uppercase; color: var(--gold-ink); margin: 0 0 8px; font-weight: 500; }
html[lang="ar"] .key-takeaways .kt-title { letter-spacing: 0; text-transform: none; font-size: .95rem; font-weight: 600; }
.prose .key-takeaways ul { background: transparent; border: 0; padding: 0; margin: 0; }
.prose .key-takeaways ul li { font-size: 1rem; }
.article .faq { max-width: 720px; margin: 56px auto 0; grid-template-columns: 1fr; gap: 20px; }
.cta-actions { display: flex; flex-wrap: wrap; gap: 10px; }
.article-hero .lead { max-width: 760px; margin-top: 18px; }
.article-hero .hero-actions { margin-top: 26px; }
.cs-metric { display: inline-flex; align-items: baseline; gap: 14px; margin-top: 22px; padding: 14px 22px; border-radius: 16px; background: #fff; border: 1px solid var(--line); box-shadow: var(--shadow-sm); }
.cs-metric .cm-value { font-size: clamp(2rem, 1.4rem + 2vw, 3rem); font-weight: 700; background: linear-gradient(90deg, var(--blue-500), var(--cyan-400)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.cs-metric .cm-label { color: var(--muted); font-size: 1rem; }
.post-card .case-card-metric { font-size: 2.25rem; font-weight: 700; color: var(--blue-500); margin: 6px 0 0; line-height: 1.1; }
.post-card .case-card-label { color: var(--muted); margin: 0 0 10px; font-size: .95rem; }
.svc-more { margin-top: 18px; }
.svc-more a { font-weight: 600; }
.footer-social { display: inline-flex; align-items: center; gap: 8px; }
.c-link svg.i-linkedin { width: 18px; height: 18px; color: #0a66c2; flex-shrink: 0; }
.site-footer .c-link svg.i-linkedin { color: #ffffff; }
.site-footer .c-link.c-linkedin:hover svg.i-linkedin { color: #0a66c2; }

/* ==========================================================================
   Mobile refinements (2026-10-25)
   Bigger tap targets, no text under 12px, tables that read on a phone,
   shorter footer, scroll hint on the services tab strip.
   ========================================================================== */
@media (max-width: 960px) {
  /* Tap targets: grow the hit area without moving the layout */
  .site-header .brand, .footer-brand .brand { min-height: 44px; }
  .direct-links { gap: 0; }
  .direct-link { min-height: 44px; }
  .lang-switch { height: 44px; }
  .footer-col .lang-switch { height: 44px; }
  .breadcrumbs a { display: inline-block; padding-block: 11px; margin-block: -11px; }
  .text-link, .svc-more a { display: inline-flex; padding-block: 10px; margin-block: -10px; }
  .filter { min-height: 44px; }
  .svc-tabs a { min-height: 40px; }
  .lang-suggest button { min-width: 44px; min-height: 44px; }

  /* Services tab strip: fade the edges so it's clear it scrolls sideways */
  .svc-tabs ul {
    -webkit-mask-image: linear-gradient(to right, transparent 0, #000 14px, #000 calc(100% - 28px), transparent 100%);
            mask-image: linear-gradient(to right, transparent 0, #000 14px, #000 calc(100% - 28px), transparent 100%);
    padding-inline: 6px; scroll-padding-inline: 24px;
  }
  [dir="rtl"] .svc-tabs ul {
    -webkit-mask-image: linear-gradient(to left, transparent 0, #000 14px, #000 calc(100% - 28px), transparent 100%);
            mask-image: linear-gradient(to left, transparent 0, #000 14px, #000 calc(100% - 28px), transparent 100%);
  }

  /* Footer links: 40px+ rows */
  .footer-col li + li { margin-top: 2px; }
  .footer-col ul a { display: inline-flex; align-items: center; min-height: 40px; }
  .footer-contact li:not(:has(a)) { padding-block: 9px; }
}

@media (max-width: 640px) {
  /* Nothing smaller than 12px */
  .post-cat, .arch-num, .num, .svc-tabs a .num, .case-tag, .case dt, .kv dt, .stat dt { font-size: .75rem; }
  html[lang="ar"] .post-cat { font-size: .8125rem; }

  /* Footer: company links in two columns, room at the bottom for the WhatsApp button */
  .footer-col[aria-label="Company"] ul, .footer-col[aria-label="الشركة"] ul { display: grid; grid-template-columns: 1fr 1fr; column-gap: 16px; }
  .footer-col[aria-label="Company"] li + li, .footer-col[aria-label="الشركة"] li + li { margin-top: 0; }
  .footer-bottom { padding-bottom: 84px; }

  /* Featured blog card: headline sized for a phone */
  .post-card--featured h2 { font-size: 1.375rem; line-height: 1.25; }
  .post-card--featured p { font-size: 1rem; }

  /* Tables: 2-column tables fit the screen; 3+ columns become labelled cards (site.js adds .t-stack + data-label) */
  .prose th, .prose td { min-width: 0; padding: 10px 12px; }
  .prose table.t-stack { display: block; border: 0; border-radius: 0; overflow: visible; font-size: .9375rem; }
  .prose table.t-stack thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
  .prose table.t-stack tbody { display: block; }
  .prose table.t-stack tr { display: block; margin: 0 0 12px; border: 1px solid var(--line); border-radius: 14px; overflow: hidden; background: #fff; }
  .prose table.t-stack td { display: block; padding: 10px 14px; border-bottom: 1px solid var(--line); background: #fff; }
  .prose table.t-stack tbody tr:nth-child(even) td { background: #fff; }
  .prose table.t-stack td:first-child { background: var(--blue-50); color: var(--ink); font-weight: 600; }
  .prose table.t-stack tbody tr:nth-child(even) td:first-child { background: var(--blue-50); }
  .prose table.t-stack tr td:last-child { border-bottom: 0; }
  .prose table.t-stack td[data-label]::before {
    content: attr(data-label); display: block; margin-bottom: 2px;
    font-family: var(--font-mono); font-size: .75rem; font-weight: 500; letter-spacing: .08em; text-transform: uppercase; color: var(--gold-ink);
  }
  html[lang="ar"] .prose table.t-stack td[data-label]::before { font-family: var(--font-sans); letter-spacing: 0; text-transform: none; font-size: .8125rem; font-weight: 600; }
}
