/* Ishtar Gate v3 — design system: tokens, reset, type, layout, buttons, header, footer */
@layer reset, base, layout, components, pages, utilities;

/* ============================================================ tokens */
@layer base {
  :root {
    /* glaze palette: lapis, turquoise, sun — the colours of the real glazed brick */
    --lapis: #1b43db; --lapis-600: #1737b8; --lapis-700: #0e2a9e; --lapis-800: #081766; --lapis-400: #4c75ff; --lapis-300: #8aa5ff; --lapis-100: #dce6ff; --lapis-50: #eef3ff;
    --turq: #12c4b1; --turq-600: #0a9e8f; --turq-700: #078c80; --turq-300: #7cebdd; --turq-100: #ccf5ef;
    --sun: #ffb62e; --sun-600: #e59500; --sun-300: #ffdd8a; --sun-100: #fff0cc;
    --night: #070d26; --night-2: #0d1636; --night-3: #141f4a;

    /* semantic (light) */
    --bg: #f3f6fc; --bg-2: #e8eefa; --surface: #ffffff; --surface-2: #f7f9fe; --surface-3: #eef2fb;
    --text: #0b1535; --text-2: #39456f; --muted: #626e99;
    --line: rgba(11, 21, 53, .1); --line-2: rgba(11, 21, 53, .18);
    --link: #1b43db; --accent: #1b43db; --accent-ink: #ffffff;
    --glass: rgba(255, 255, 255, .72); --glass-line: rgba(255, 255, 255, .85);
    --shadow-1: 0 1px 2px rgba(11, 21, 53, .06), 0 10px 28px -14px rgba(11, 21, 53, .22);
    --shadow-2: 0 2px 4px rgba(11, 21, 53, .06), 0 24px 60px -24px rgba(11, 21, 53, .35);
    --sky-1: #bcd6ff; --sky-2: #e3f0ff; --sky-3: #fff1cf;
    --code-bg: #0c1438; --code-text: #dfe7ff;

    --f-display: "Bricolage", "Kufi", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
    --f-body: "Instrument", "Plex", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
    --f-mono: "JetMono", ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;

    --r-s: 10px; --r-m: 18px; --r-l: 28px; --r-xl: 40px;
    --gutter: clamp(16px, 4vw, 36px);
    --maxw: 1240px;
    --header-h: 72px;
    --ease: cubic-bezier(.2, .7, .2, 1);
  }
  :root[lang="ar"] {
    --f-display: "Kufi", "Bricolage", ui-sans-serif, system-ui, "Segoe UI", Tahoma, sans-serif;
    --f-body: "Plex", "Instrument", ui-sans-serif, system-ui, "Segoe UI", Tahoma, sans-serif;
  }
  :root[data-theme="dark"] {
    color-scheme: dark;
    --bg: #070c22; --bg-2: #0b1230; --surface: #0f1737; --surface-2: #131d44; --surface-3: #18244f;
    --text: #eaf0ff; --text-2: #b9c4ea; --muted: #8995c4;
    --line: rgba(255, 255, 255, .1); --line-2: rgba(255, 255, 255, .18);
    --link: #8aa5ff; --accent: #4c75ff;
    --glass: rgba(14, 22, 58, .66); --glass-line: rgba(255, 255, 255, .14);
    --shadow-1: 0 1px 2px rgba(0, 0, 0, .3), 0 10px 28px -14px rgba(0, 0, 0, .6);
    --shadow-2: 0 2px 4px rgba(0, 0, 0, .3), 0 24px 60px -24px rgba(0, 0, 0, .8);
    --sky-1: #0a1250; --sky-2: #1a2a8c; --sky-3: #e6823a;
    --code-bg: #060b22;
    --gate-ground-a: #17236f; --gate-ground-b: #0c1347; --gate-way: #2b3fae; --gate-line: #8aa0ff;
  }
  @media (prefers-color-scheme: dark) {
    :root:not([data-theme="light"]) {
      color-scheme: dark;
      --bg: #070c22; --bg-2: #0b1230; --surface: #0f1737; --surface-2: #131d44; --surface-3: #18244f;
      --text: #eaf0ff; --text-2: #b9c4ea; --muted: #8995c4;
      --line: rgba(255, 255, 255, .1); --line-2: rgba(255, 255, 255, .18);
      --link: #8aa5ff; --accent: #4c75ff;
      --glass: rgba(14, 22, 58, .66); --glass-line: rgba(255, 255, 255, .14);
      --shadow-1: 0 1px 2px rgba(0, 0, 0, .3), 0 10px 28px -14px rgba(0, 0, 0, .6);
      --shadow-2: 0 2px 4px rgba(0, 0, 0, .3), 0 24px 60px -24px rgba(0, 0, 0, .8);
      --sky-1: #0a1250; --sky-2: #1a2a8c; --sky-3: #e6823a;
      --code-bg: #060b22;
      --gate-ground-a: #17236f; --gate-ground-b: #0c1347; --gate-way: #2b3fae; --gate-line: #8aa0ff;
    }
  }
}

/* ============================================================ reset */
@layer reset {
  *, *::before, *::after { box-sizing: border-box; }
  html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 24px); }
  body { margin: 0; min-height: 100vh; }
  h1, h2, h3, h4, p, ul, ol, figure, blockquote, dl, dd { margin: 0; }
  ul, ol { padding: 0; list-style: none; }
  img, svg, video, canvas { display: block; max-width: 100%; }
  button, input, select, textarea { font: inherit; color: inherit; }
  button { cursor: pointer; background: none; border: 0; padding: 0; }
  a { color: inherit; text-decoration: none; }
  table { border-collapse: collapse; }
  summary { cursor: pointer; }
  [hidden] { display: none !important; }
}

/* ============================================================ base */
@layer base {
  body {
    background: var(--bg); color: var(--text);
    font-family: var(--f-body); font-size: clamp(1rem, .96rem + .2vw, 1.0625rem); line-height: 1.62;
    -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; text-rendering: optimizeLegibility;
    overflow-x: clip;
  }
  :root[lang="ar"] body { line-height: 1.9; }
  h1, h2, h3, h4 { font-family: var(--f-display); font-weight: 700; letter-spacing: -.025em; line-height: 1.08; text-wrap: balance; color: var(--text); }
  :root[lang="ar"] h1, :root[lang="ar"] h2, :root[lang="ar"] h3, :root[lang="ar"] h4 { letter-spacing: 0; line-height: 1.4; font-weight: 700; }
  :root[lang="ar"] * { letter-spacing: 0 !important; }
  h1 { font-size: clamp(2.4rem, 1.2rem + 4.6vw, 4.7rem); letter-spacing: -.04em; line-height: .98; font-weight: 700; }
  :root[lang="ar"] h1 { line-height: 1.3; font-size: clamp(2.1rem, 1rem + 3.5vw, 3.9rem); }
  h2 { font-size: clamp(1.9rem, 1.2rem + 2.8vw, 3.4rem); letter-spacing: -.032em; }
  h3 { font-size: clamp(1.2rem, 1.08rem + .6vw, 1.55rem); letter-spacing: -.02em; line-height: 1.2; }
  h4 { font-size: 1.05rem; letter-spacing: -.01em; }
  p { text-wrap: pretty; }
  .lead { font-size: clamp(1.1rem, 1rem + .55vw, 1.32rem); line-height: 1.55; color: var(--text-2); max-width: 58ch; }
  :root[lang="ar"] .lead { line-height: 1.85; }
  a { color: var(--link); }
  ::selection { background: var(--lapis); color: #fff; }
  :focus-visible { outline: 3px solid var(--lapis-300); outline-offset: 3px; border-radius: 6px; }
  .ltr { direction: ltr; unicode-bidi: isolate; display: inline-block; }
  a.phone, .phone-num { direction: ltr; unicode-bidi: isolate; display: inline-block; font-variant-numeric: tabular-nums; }
  code, pre, kbd { font-family: var(--f-mono); }
  [dir="rtl"] .flip { transform: scaleX(-1); }
}

/* ============================================================ layout */
@layer layout {
  .container { width: min(100% - 2 * var(--gutter), var(--maxw)); margin-inline: auto; }
  .container--narrow { width: min(100% - 2 * var(--gutter), 800px); margin-inline: auto; }
  .container--wide { width: min(100% - 2 * var(--gutter), 1400px); margin-inline: auto; }
  .section { padding-block: clamp(64px, 9vw, 132px); }
  .section--tight { padding-block: clamp(40px, 6vw, 84px); }
  .section--flush-top { padding-top: 0; }
  .sec-head { display: grid; gap: 16px; margin-bottom: clamp(32px, 5vw, 64px); max-width: 780px; }
  .sec-head--split { max-width: none; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); align-items: end; gap: clamp(20px, 4vw, 64px); }
  .sec-head--split .lead { justify-self: end; }
  @media (max-width: 860px) { .sec-head--split { grid-template-columns: minmax(0, 1fr); } .sec-head--split .lead { justify-self: start; } }
  .sr-only { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
  .skip { position: fixed; inset-inline-start: 16px; top: -80px; z-index: 200; background: var(--lapis); color: #fff; padding: 12px 18px; border-radius: 12px; font-weight: 600; transition: top .2s; }
  .skip:focus { top: 12px; }
}

/* ============================================================ buttons */
@layer components {
  .btn {
    --b-pad: .95em 1.55em; display: inline-flex; align-items: center; justify-content: center; gap: .6em; padding: var(--b-pad);
    border-radius: 999px; font-family: var(--f-body); font-weight: 600; font-size: .98rem; line-height: 1; letter-spacing: -.005em;
    transition: transform .25s var(--ease), box-shadow .25s var(--ease), background-color .2s, color .2s, border-color .2s; white-space: nowrap; cursor: pointer; border: 1px solid transparent;
  }
  .btn:hover { transform: translateY(-2px); }
  .btn:active { transform: translateY(0); }
  .btn--lg { font-size: 1.05rem; --b-pad: 1.05em 1.7em; }
  .btn--sm { font-size: .88rem; --b-pad: .78em 1.2em; }
  .btn--primary {
    color: #fff; background: linear-gradient(180deg, #3d66f7 0%, var(--lapis) 52%, var(--lapis-600) 100%);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, .38), inset 0 -2px 0 rgba(0, 0, 0, .14), 0 12px 26px -10px rgba(27, 67, 219, .7);
  }
  .btn--primary:hover { box-shadow: inset 0 1px 0 rgba(255, 255, 255, .45), inset 0 -2px 0 rgba(0, 0, 0, .14), 0 16px 32px -10px rgba(27, 67, 219, .8); color: #fff; }
  .btn--sun {
    color: #2a1a00; background: linear-gradient(180deg, #ffd27a 0%, var(--sun) 55%, #f5a012 100%);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, .6), inset 0 -2px 0 rgba(0, 0, 0, .1), 0 12px 26px -10px rgba(255, 182, 46, .6);
  }
  .btn--sun:hover { color: #2a1a00; }
  .btn--line { color: var(--text); border-color: var(--line-2); background: color-mix(in srgb, var(--surface) 60%, transparent); }
  .btn--line:hover { border-color: var(--text); color: var(--text); }
  .btn--light { color: #fff; border-color: rgba(255, 255, 255, .32); background: rgba(255, 255, 255, .08); }
  .btn--light:hover { background: rgba(255, 255, 255, .16); color: #fff; }
  .btn__disc { display: grid; place-items: center; width: 1.75em; height: 1.75em; margin-inline-end: -.7em; border-radius: 50%; background: rgba(255, 255, 255, .22); }
  .btn--sun .btn__disc { background: rgba(0, 0, 0, .12); }
  .btn .ic { width: 1.05em; height: 1.05em; }
  [dir="rtl"] .btn .ic-arrow, [dir="rtl"] .ic-arrow-flip { transform: scaleX(-1); }
  .ic { width: 1.25em; height: 1.25em; flex: none; }
  .link-arrow { display: inline-flex; align-items: center; gap: .45em; font-weight: 600; color: var(--link); }
  .link-arrow .ic { width: 1em; height: 1em; transition: transform .25s var(--ease); }
  .link-arrow:hover .ic { transform: translateX(4px); }
  [dir="rtl"] .link-arrow .ic { transform: scaleX(-1); }
  [dir="rtl"] .link-arrow:hover .ic { transform: scaleX(-1) translateX(4px); }

  /* ============================================================ header */
  .site-header { position: fixed; inset-inline: 0; top: 0; z-index: 100; padding: 12px var(--gutter) 0; pointer-events: none; }
  .nav-pill {
    pointer-events: auto; width: min(100%, var(--maxw)); margin-inline: auto; height: 60px; padding-inline: 10px 10px;
    display: flex; align-items: center; justify-content: space-between; gap: 12px; border-radius: 999px;
    background: var(--glass); border: 1px solid var(--glass-line); backdrop-filter: blur(18px) saturate(1.4); -webkit-backdrop-filter: blur(18px) saturate(1.4);
    box-shadow: 0 1px 0 rgba(255, 255, 255, .5) inset, 0 8px 30px -14px rgba(11, 21, 53, .35); transition: box-shadow .3s, background-color .3s;
  }
  .site-header.is-scrolled .nav-pill { box-shadow: 0 1px 0 rgba(255, 255, 255, .5) inset, 0 14px 40px -14px rgba(11, 21, 53, .5); }
  .brand { display: inline-flex; align-items: center; gap: 10px; padding-inline-end: 8px; color: var(--text); }
  .brand__mark { width: 40px; height: 40px; flex: none; filter: drop-shadow(0 4px 8px rgba(27, 67, 219, .35)); }
  .brand__name { font-family: var(--f-display); font-weight: 700; font-size: 1.18rem; letter-spacing: -.03em; white-space: nowrap; }
  .nav { display: flex; align-items: center; gap: 2px; }
  .nav a { padding: 9px 14px; border-radius: 999px; font-weight: 600; font-size: .93rem; color: var(--text-2); transition: background-color .2s, color .2s; white-space: nowrap; }
  .nav a:hover { color: var(--text); background: color-mix(in srgb, var(--text) 7%, transparent); }
  .nav a[aria-current="page"] { color: var(--text); background: color-mix(in srgb, var(--lapis) 12%, transparent); }
  .nav a.nav__ai { display: inline-flex; align-items: center; gap: 6px; }
  .nav a.nav__ai::before { content: ""; width: 8px; height: 8px; border-radius: 2px; transform: rotate(45deg); background: linear-gradient(135deg, var(--turq), var(--lapis-400)); box-shadow: 0 0 10px var(--turq); }
  .header-actions { display: flex; align-items: center; gap: 6px; }
  .lang { display: inline-flex; padding: 3px; border-radius: 999px; background: color-mix(in srgb, var(--text) 7%, transparent); }
  .lang a { padding: 6px 10px; border-radius: 999px; font-size: .8rem; font-weight: 700; color: var(--muted); line-height: 1; min-width: 34px; text-align: center; }
  .lang a[aria-current="true"] { background: var(--surface); color: var(--text); box-shadow: var(--shadow-1); }
  .icon-btn { width: 40px; height: 40px; display: grid; place-items: center; border-radius: 50%; color: var(--text-2); transition: background-color .2s, color .2s; }
  .icon-btn:hover { background: color-mix(in srgb, var(--text) 8%, transparent); color: var(--text); }
  .icon-btn .ic { width: 20px; height: 20px; }
  .theme-toggle .i-moon { display: none; }
  :root[data-theme="dark"] .theme-toggle .i-sun { display: none; }
  :root[data-theme="dark"] .theme-toggle .i-moon { display: block; }
  @media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .theme-toggle .i-sun { display: none; } :root:not([data-theme="light"]) .theme-toggle .i-moon { display: block; } }
  .menu-btn { display: none; }
  .header-cta { display: inline-flex; }
  @media (max-width: 1120px) {
    .nav { display: none; }
    .menu-btn { display: grid; }
  }
  .menu__lang { display: flex; gap: 8px; flex-wrap: wrap; }
  .menu__lang a { padding: 10px 18px; border-radius: 999px; font-weight: 700; font-size: .95rem; color: var(--text-2); border: 1px solid var(--line-2); }
  .menu__lang a[aria-current="true"] { background: var(--text); color: var(--bg); border-color: var(--text); }
  @media (max-width: 640px) {
    .header-cta { display: none; }
    .header-actions .lang { display: none; }
    .brand__name { font-size: 1.05rem; }
  }
  @media (max-width: 380px) { .theme-toggle { display: none; } }

  /* mobile menu */
  .menu { position: fixed; inset: 0; z-index: 99; display: none; padding: calc(var(--header-h) + 8px) var(--gutter) 28px; overflow-y: auto; background: color-mix(in srgb, var(--bg) 94%, transparent); backdrop-filter: blur(22px); -webkit-backdrop-filter: blur(22px); }
  .menu.is-open { display: block; animation: menuIn .35s var(--ease); }
  @keyframes menuIn { from { opacity: 0; transform: translateY(-12px); } to { opacity: 1; transform: none; } }
  .menu__nav { display: grid; gap: 4px; margin-block: 12px 28px; }
  .menu__nav a { font-family: var(--f-display); font-size: clamp(1.8rem, 7vw, 2.6rem); font-weight: 700; letter-spacing: -.03em; padding: 10px 0; border-bottom: 1px solid var(--line); color: var(--text); display: flex; justify-content: space-between; align-items: center; }
  :root[lang="ar"] .menu__nav a { letter-spacing: 0; }
  .menu__nav a[aria-current="page"] { color: var(--lapis); }
  .menu__foot { display: grid; gap: 14px; color: var(--text-2); font-size: .95rem; }
  .menu__foot .btn { justify-self: start; }
  body.menu-open { overflow: hidden; }

  /* progress bar (articles) */
  .read-progress { position: fixed; inset-inline: 0; top: 0; height: 3px; z-index: 120; background: transparent; pointer-events: none; }
  .read-progress i { display: block; height: 100%; width: 0; background: linear-gradient(90deg, var(--turq), var(--lapis), var(--sun)); transform-origin: left; }
  [dir="rtl"] .read-progress i { margin-inline-start: auto; }

  /* ============================================================ footer */
  .site-footer { position: relative; margin-top: clamp(48px, 7vw, 96px); color: #c8d2f5; background: var(--night); }
  .site-footer .battlement { position: absolute; left: 50%; transform: translateX(-50%); top: -27px; width: max(100%, 1100px); height: 28px; color: var(--night); }
  .footer__top { display: grid; grid-template-columns: 1.4fr repeat(3, minmax(0, 1fr)); gap: clamp(28px, 4vw, 56px); padding-block: clamp(48px, 7vw, 88px) 40px; }
  .footer__about p { max-width: 36ch; margin-block: 18px; font-size: .96rem; color: #9fb0e6; }
  .site-footer .brand { color: #fff; }
  .site-footer h4 { color: #fff; font-size: .95rem; margin-bottom: 16px; letter-spacing: -.01em; }
  .site-footer li + li { margin-top: 10px; }
  .site-footer a { color: #b4c2f0; transition: color .2s; }
  .site-footer a:hover { color: #fff; }
  .site-footer .f-office strong { color: #fff; display: block; font-weight: 600; }
  .site-footer .f-office { font-size: .92rem; line-height: 1.5; color: #9fb0e6; }
  .site-footer .f-office + .f-office { margin-top: 14px; }
  .socials { display: flex; gap: 8px; }
  .socials a { width: 40px; height: 40px; display: grid; place-items: center; border-radius: 50%; border: 1px solid rgba(255, 255, 255, .16); color: #d3dcff; }
  .socials a:hover { background: rgba(255, 255, 255, .1); color: #fff; }
  .footer__tm { border-top: 1px solid rgba(255, 255, 255, .1); padding-block: 22px; font-size: .8rem; color: #7f8fc4; max-width: 90ch; }
  .footer__bottom { border-top: 1px solid rgba(255, 255, 255, .1); padding-block: 22px 30px; display: flex; flex-wrap: wrap; gap: 12px 28px; justify-content: space-between; font-size: .88rem; color: #8fa0d8; }
  .footer__bottom .links { display: flex; gap: 22px; flex-wrap: wrap; }
  @media (max-width: 960px) { .footer__top { grid-template-columns: 1fr 1fr; } .footer__about { grid-column: 1 / -1; } }
  @media (max-width: 560px) { .footer__top { grid-template-columns: minmax(0, 1fr); } }
}

@layer utilities {
  .center { text-align: center; }
  .mt-1 { margin-top: .5rem; } .mt-2 { margin-top: 1rem; } .mt-3 { margin-top: 1.5rem; } .mt-4 { margin-top: 2.5rem; }
  .stack-2 > * + * { margin-top: 1rem; }
  @media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; scroll-behavior: auto !important; }
  }
}

/* Ishtar Gate v3 — home page components */
@layer components {

  /* ============================================================ hero */
  .hero { padding: 12px 12px 0; }
  .hero__panel {
    position: relative; isolation: isolate; overflow: hidden; border-radius: var(--r-xl);
    padding-top: calc(var(--header-h) + 24px); min-height: min(940px, calc(100svh - 12px));
    background:
      radial-gradient(60% 50% at 8% 92%, color-mix(in srgb, var(--turq) 36%, transparent), transparent 70%),
      radial-gradient(50% 60% at 96% 0%, color-mix(in srgb, var(--lapis-400) 28%, transparent), transparent 70%),
      linear-gradient(180deg, var(--sky-1) 0%, var(--sky-2) 56%, var(--sky-3) 100%);
  }
  .hero__panel::before { content: ""; position: absolute; inset: 0; z-index: -1; opacity: .5; mix-blend-mode: soft-light;
    background-image: url("../img/brick-joints.svg"); background-size: 120px 60px; mask-image: linear-gradient(180deg, #000 0%, transparent 70%); -webkit-mask-image: linear-gradient(180deg, #000 0%, transparent 70%); }
  .hero__grid { display: grid; grid-template-columns: minmax(0, .86fr) minmax(0, 1.14fr); align-items: center; gap: clamp(8px, 3vw, 40px); min-height: calc(min(940px, 100svh - 12px) - var(--header-h) - 24px); padding-bottom: 0; }
  .hero__copy { padding-block: clamp(16px, 5vw, 56px) clamp(24px, 6vw, 72px); display: grid; gap: clamp(18px, 2.4vw, 28px); justify-items: start; position: relative; z-index: 2; }
  :root[data-theme="dark"] .hero__copy h1, :root[data-theme="dark"] .hero__copy .lead { color: #fff; }
  :root[data-theme="dark"] .hero__copy .lead { color: #c8d4ff; }
  @media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .hero__copy h1 { color: #fff; } :root:not([data-theme="light"]) .hero__copy .lead { color: #c8d4ff; } }
  .hero__copy h1 { max-width: 12.5ch; }
  :root[lang="ar"] .hero__copy h1 { max-width: 17ch; }
  :root[lang="fr"] .hero__copy h1 { max-width: 13.5ch; font-size: clamp(2.3rem, 1.1rem + 4vw, 4.1rem); }
  .hero__cta { display: flex; flex-wrap: wrap; gap: 12px; }
  .clocks { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 8px; }
  .clocks li { display: inline-flex; align-items: center; gap: 8px; padding: 7px 12px 7px 10px; border-radius: 999px; font-size: .84rem; background: var(--glass); border: 1px solid var(--glass-line); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); color: var(--text); }
  .clocks .dot { width: 8px; height: 8px; border-radius: 50%; background: #98a2c8; flex: none; }
  .clocks li.is-open .dot { background: #19c97a; box-shadow: 0 0 0 0 rgba(25, 201, 122, .6); animation: pulse 2.4s infinite; }
  .clocks b { font-weight: 600; }
  .clocks time { color: var(--muted); font-variant-numeric: tabular-nums; direction: ltr; unicode-bidi: isolate; }
  @keyframes pulse { 70% { box-shadow: 0 0 0 7px rgba(25, 201, 122, 0); } 100% { box-shadow: 0 0 0 0 rgba(25, 201, 122, 0); } }

  .hero__stage { position: relative; align-self: end; z-index: 1; margin-inline-end: clamp(-96px, -5vw, 0px); }
  .stage { position: relative; width: 100%; max-width: 760px; margin-inline: auto; aspect-ratio: 700 / 640; container-type: inline-size; }
  .stage > .gate-art { position: absolute; inset: 0; width: 100%; height: 100%; }
  .hero__stage .stage { margin-bottom: 0; }

  /* the phone standing in the doorway */
  .device { --dw: 23.5cqw; position: absolute; left: 50%; bottom: 6.6cqw; width: var(--dw); aspect-ratio: 1 / 2.02; transform: translateX(-50%); container-type: inline-size; z-index: 3;
    border-radius: calc(var(--dw) * .15); padding: calc(var(--dw) * .03); background: linear-gradient(145deg, #2a3366, #0a0f2e 40%, #060a20);
    box-shadow: 0 0 0 .6cqw rgba(255, 255, 255, .16) inset, 0 3cqw 6cqw -1cqw rgba(2, 8, 50, .65), 0 0 12cqw 1cqw rgba(18, 196, 177, .35); }
  .stage > .device::after { content: ""; position: absolute; left: 50%; bottom: -3.2cqw; width: 150%; height: 6cqw; transform: translateX(-50%); background: radial-gradient(closest-side, rgba(2, 8, 50, .55), transparent); z-index: -1; border-radius: 50%; }
  .device::before { content: ""; position: absolute; top: 4.2cqw; left: 50%; transform: translateX(-50%); width: 30%; height: 5%; border-radius: 99px; background: #02040f; z-index: 5; }
  .device__screen { position: relative; width: 100%; height: 100%; border-radius: calc(var(--dw) * .122); overflow: hidden; background: #fff; color: #0b1535; font-family: var(--f-body); }
  :root[lang="ar"] .device__screen { font-family: var(--f-body); }
  .screen { position: absolute; inset: 0; display: grid; opacity: 0; visibility: hidden; transform: scale(1.03); transition: opacity .6s var(--ease), transform .8s var(--ease), visibility 0s .6s; }
  .screen.is-active { opacity: 1; visibility: visible; transform: none; transition-delay: 0s; }
  .screen > * { min-width: 0; }
  .screen__status { position: absolute; top: 4.4cqw; inset-inline: 9cqw; display: flex; justify-content: space-between; font-size: 4.4cqw; font-weight: 700; z-index: 4; pointer-events: none; }
  .screen__status i { display: inline-block; width: 8cqw; height: 3.6cqw; border-radius: 1cqw; background: currentColor; opacity: .85; }
  .home-bar { position: absolute; bottom: 2.6cqw; left: 50%; transform: translateX(-50%); width: 32%; height: 1.5cqw; border-radius: 9px; background: rgba(11, 21, 53, .75); z-index: 6; }

  /* map (shared by ride & delivery screens) */
  .map-mini { position: absolute; inset: 0; width: 100%; height: 100%; }
  .s-ride { grid-template-rows: 58% 1fr; background: #eaf1fb; }
  .s-ride .sheet { position: relative; z-index: 2; align-self: end; height: 100%; margin-top: -6cqw; background: #fff; border-radius: 9cqw 9cqw 0 0; padding: 5.5cqw 7cqw 7cqw; display: grid; align-content: start; gap: 2.4cqw; box-shadow: 0 -2cqw 6cqw -2cqw rgba(11, 21, 53, .25); }
  .sheet h5, .s-title { margin: 0; font-family: var(--f-display); font-size: 6.7cqw; font-weight: 700; letter-spacing: -.02em; line-height: 1.15; }
  :root[lang="ar"] .sheet h5, :root[lang="ar"] .s-title { letter-spacing: 0; line-height: 1.4; }
  .sheet .row { display: flex; align-items: center; gap: 3cqw; font-size: 4.8cqw; line-height: 1.25; color: #39456f; }
  .sheet .row .pt { width: 3cqw; height: 3cqw; border-radius: 50%; background: #1b43db; flex: none; box-shadow: 0 0 0 1cqw rgba(27, 67, 219, .18); }
  .sheet .row .pt--b { background: #ffb62e; box-shadow: 0 0 0 1cqw rgba(255, 182, 46, .25); }
  .eta { display: inline-flex; align-items: baseline; gap: 1.5cqw; padding: 1.6cqw 3.4cqw; border-radius: 99px; background: #e5fbf7; color: #077a70; font-weight: 700; font-size: 4.8cqw; justify-self: start; }
  .sheet__foot { display: flex; align-items: center; justify-content: space-between; gap: 3cqw; padding-top: 1.5cqw; }
  .sheet__foot small { display: block; font-size: 3.8cqw; color: #626e99; line-height: 1.2; }
  .sheet__foot strong { font-family: var(--f-display); font-size: 6.4cqw; line-height: 1.1; }
  .pbtn { display: inline-grid; place-items: center; padding: 2.8cqw 5cqw; border-radius: 99px; background: linear-gradient(180deg, #3d66f7, #1b43db); color: #fff; font-weight: 700; font-size: 4.4cqw; line-height: 1; white-space: nowrap; box-shadow: inset 0 .4cqw 0 rgba(255, 255, 255, .35); }
  .pbtn--turq { background: linear-gradient(180deg, #2fe0cd, #0fb4a2); color: #04302b; }
  .pbtn--sun { background: linear-gradient(180deg, #ffd27a, #ffb62e); color: #3a2400; }

  .s-delivery { grid-template-rows: 36% 1fr; background: #fff; }
  .s-delivery .mapbox { position: relative; background: #e5f7f4; }
  .s-delivery .body { position: relative; z-index: 2; margin-top: -6cqw; background: #fff; border-radius: 9cqw 9cqw 0 0; padding: 6cqw 7cqw 7cqw; display: grid; align-content: start; gap: 3cqw; box-shadow: 0 -2cqw 6cqw -2cqw rgba(11, 21, 53, .2); }
  .big-eta { display: flex; align-items: baseline; gap: 2cqw; font-family: var(--f-display); font-weight: 800; font-size: 13cqw; line-height: 1; letter-spacing: -.04em; color: #0b1535; }
  .big-eta small { font-size: 5cqw; font-weight: 600; letter-spacing: 0; color: #626e99; font-family: var(--f-body); }
  .steps-mini { display: grid; gap: 2.6cqw; margin-block: 1cqw; }
  .steps-mini li { display: flex; align-items: center; gap: 3cqw; font-size: 4.6cqw; color: #8a95bb; position: relative; }
  .steps-mini li::before { content: ""; width: 4.6cqw; height: 4.6cqw; border-radius: 50%; border: .7cqw solid #cdd5ee; flex: none; background: #fff; }
  .steps-mini li.done { color: #0b1535; font-weight: 600; }
  .steps-mini li.done::before { background: #12c4b1; border-color: #12c4b1; box-shadow: inset 0 0 0 1cqw #fff; }
  .steps-mini li.now { color: #0b1535; font-weight: 700; }
  .steps-mini li.now::before { border-color: #12c4b1; box-shadow: 0 0 0 1.2cqw rgba(18, 196, 177, .25); }
  .order-chip { display: flex; align-items: center; gap: 3cqw; padding: 3cqw 4cqw; border-radius: 4cqw; background: #f3f6fc; font-size: 4.4cqw; font-weight: 600; }
  .order-chip i { width: 7cqw; height: 7cqw; border-radius: 2cqw; background: linear-gradient(135deg, #ffd27a, #ffb62e); flex: none; }

  .s-medical { background: linear-gradient(180deg, #eef3ff, #fff 38%); grid-template-rows: auto 1fr; align-content: start; padding: 15cqw 7cqw 7cqw; gap: 4cqw; }
  .s-medical .doc { display: flex; align-items: center; gap: 3cqw; }
  .avatar-mini { width: 11cqw; height: 11cqw; border-radius: 50%; background: linear-gradient(135deg, #7cebdd, #12c4b1); display: grid; place-items: center; color: #04302b; font-weight: 800; font-size: 4.6cqw; flex: none; }
  .s-medical .doc small { display: block; font-size: 4cqw; color: #626e99; }
  .daychip { display: inline-flex; align-items: center; gap: 2cqw; padding: 1.8cqw 3.6cqw; border-radius: 99px; background: #fff; border: .4cqw solid #dbe3f7; font-weight: 700; font-size: 4.4cqw; justify-self: start; }
  .slots { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2.4cqw; }
  .slots span { text-align: center; padding: 3cqw 0; border-radius: 3.2cqw; background: #fff; border: .4cqw solid #dbe3f7; font-weight: 600; font-size: 4.6cqw; font-variant-numeric: tabular-nums; direction: ltr; }
  .slots span.on { background: linear-gradient(180deg, #3d66f7, #1b43db); border-color: transparent; color: #fff; box-shadow: 0 1.5cqw 3cqw -1cqw rgba(27, 67, 219, .6); }
  .s-medical .pbtn { width: 100%; padding-block: 3.6cqw; align-self: end; font-size: 4.8cqw; }
  .s-medical .body-m { display: grid; gap: 4cqw; align-content: start; }

  .s-sms { background: linear-gradient(180deg, #fff6df, #fff 45%); padding: 15cqw 7cqw 7cqw; align-content: start; gap: 4cqw; }
  .bubble { max-width: 88%; padding: 3.4cqw 4.4cqw; border-radius: 5cqw; font-size: 4.8cqw; line-height: 1.35; position: relative; }
  .bubble--in { background: #fff; border: .4cqw solid #ecdfba; border-end-start-radius: 1.2cqw; box-shadow: 0 1.4cqw 3cqw -1.6cqw rgba(120, 80, 0, .3); }
  .bubble--out { background: linear-gradient(180deg, #3d66f7, #1b43db); color: #fff; justify-self: end; border-end-end-radius: 1.2cqw; }
  .bubble small { display: block; margin-top: 1.4cqw; font-size: 3.6cqw; opacity: .7; }
  .otp { display: grid; grid-template-columns: repeat(6, 1fr); gap: 2cqw; direction: ltr; }
  .otp span { aspect-ratio: 1 / 1.25; display: grid; place-items: center; border-radius: 2.6cqw; background: #fff; border: .5cqw solid #ecdfba; font-family: var(--f-display); font-weight: 800; font-size: 6.4cqw; }
  .otp span.on { border-color: #ffb62e; box-shadow: 0 0 0 1cqw rgba(255, 182, 46, .3); }
  .s-sms .s-title + p { margin: 0; font-size: 4.6cqw; color: #626e99; line-height: 1.35; }

  .s-ai { background: linear-gradient(180deg, #0c1448, #151f66); color: #fff; padding: 15cqw 6cqw 7cqw; align-content: start; gap: 3.4cqw; }
  .s-ai .ai-top { display: flex; align-items: center; gap: 2.6cqw; font-weight: 700; font-size: 5cqw; }
  .s-ai .ai-orb { width: 8cqw; height: 8cqw; border-radius: 50%; background: radial-gradient(circle at 30% 30%, #7cebdd, #12c4b1 50%, #1b43db); box-shadow: 0 0 4cqw rgba(18, 196, 177, .7); flex: none; }
  .s-ai .bubble--q { justify-self: end; background: rgba(255, 255, 255, .14); border-end-end-radius: 1.2cqw; color: #fff; }
  .s-ai .bubble--a { background: #fff; color: #0b1535; border-end-start-radius: 1.2cqw; }
  .s-ai .bubble--a em { display: block; font-style: normal; margin-top: 2cqw; font-size: 3.8cqw; color: #078c80; font-weight: 700; }
  .s-ai .typing { display: inline-flex; gap: 1.4cqw; padding: 3cqw 4cqw; background: rgba(255, 255, 255, .14); border-radius: 5cqw; justify-self: start; }
  .s-ai .typing i { width: 1.8cqw; height: 1.8cqw; border-radius: 50%; background: #fff; opacity: .5; animation: blink 1.2s infinite; }
  .s-ai .typing i:nth-child(2) { animation-delay: .2s; } .s-ai .typing i:nth-child(3) { animation-delay: .4s; }
  @keyframes blink { 0%, 80%, 100% { opacity: .3; transform: none; } 40% { opacity: 1; transform: translateY(-.8cqw); } }

  /* floating chips */
  .fchip { position: absolute; z-index: 5; display: inline-flex; align-items: center; gap: 1.6cqw; padding: 1.5cqw 2.6cqw 1.5cqw 1.6cqw; border-radius: 99px; font-weight: 700; font-size: max(11px, 2.2cqw); line-height: 1.15; color: #0b1535;
    background: rgba(255, 255, 255, .86); border: 1px solid rgba(255, 255, 255, .95); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); box-shadow: 0 2cqw 5cqw -1.5cqw rgba(8, 23, 102, .5);
    opacity: 0; visibility: hidden; transform: translateY(2cqw) scale(.94); transition: opacity .5s var(--ease), transform .6s var(--ease), visibility 0s .5s; max-width: 40cqw; }
  .fchip.is-active { opacity: 1; visibility: visible; transform: none; transition-delay: .15s, .15s, 0s; }
  .fchip i { width: 4.4cqw; height: 4.4cqw; border-radius: 50%; display: grid; place-items: center; background: var(--c, #12c4b1); color: #fff; flex: none; min-width: 22px; min-height: 22px; }
  .fchip i svg { width: 60%; height: 60%; }
  .fchip--l { inset-inline-start: 1%; top: 47%; } .fchip--r { inset-inline-end: 1%; top: 33%; }
  .fchip[data-i="1"], .fchip[data-i="3"] { inset-inline-start: auto; inset-inline-end: 1%; top: 33%; }
  .fchip[data-i="0"], .fchip[data-i="2"], .fchip[data-i="4"] { inset-inline-end: auto; inset-inline-start: 1%; top: 47%; }
  :root[data-theme="dark"] .fchip { background: rgba(255, 255, 255, .9); }

  .stage-tabs { display: flex; justify-content: center; gap: 4px; padding: 4px; margin: 0 auto 18px; width: max-content; max-width: calc(100% - 8px); border-radius: 999px; background: var(--glass); border: 1px solid var(--glass-line); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); position: relative; z-index: 6; overflow-x: auto; scrollbar-width: none; }
  .stage-tabs::-webkit-scrollbar { display: none; }
  .stage-tabs button { position: relative; padding: 8px 14px; border-radius: 999px; font-weight: 600; font-size: .84rem; color: var(--text-2); white-space: nowrap; transition: color .2s, background-color .2s; }
  .stage-tabs button:hover { color: var(--text); }
  .stage-tabs button[aria-selected="true"] { background: var(--surface); color: var(--text); box-shadow: var(--shadow-1); }
  .stage-tabs button[aria-selected="true"]::after { content: ""; position: absolute; inset-inline: 14px; bottom: 3px; height: 2px; border-radius: 2px; background: linear-gradient(90deg, var(--turq), var(--lapis)); transform-origin: left; animation: tabFill var(--dur, 4.6s) linear forwards; }
  [dir="rtl"] .stage-tabs button[aria-selected="true"]::after { transform-origin: right; }
  .stage-tabs.is-paused button[aria-selected="true"]::after { animation: none; transform: none; }
  @keyframes tabFill { from { transform: scaleX(0); } to { transform: scaleX(1); } }

  @media (max-width: 960px) {
    .hero__grid { grid-template-columns: minmax(0, 1fr); }
    .hero__copy { padding-bottom: 8px; }
    .hero__copy h1 { max-width: 14ch; }
    .hero__stage { margin-top: 8px; }
    .stage { max-width: 640px; }
  }
  @media (max-width: 640px) {
    .hero { padding: 8px 8px 0; }
    .hero__panel { border-radius: 28px; padding-top: calc(var(--header-h) + 8px); }
    .hero__stage .stage { width: 128%; margin-inline: -14%; max-width: none; }
    .device { --dw: 29cqw; bottom: 6.4cqw; }
    .fchip { font-size: 11.5px; max-width: 46cqw; }
    .fchip[data-i] { top: 18%; inset-inline-start: 6%; inset-inline-end: auto; }
    .fchip[data-i="1"], .fchip[data-i="3"] { inset-inline-start: auto; inset-inline-end: 6%; top: 28%; }
  }

  /* ============================================================ bento (products) */
  .bento { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: clamp(12px, 1.6vw, 20px); }
  .tile { position: relative; isolation: isolate; overflow: hidden; border-radius: var(--r-l); display: grid; grid-template-rows: auto 1fr; min-height: 360px; container-type: inline-size; color: var(--tile-ink, #fff);
    background: var(--tile-bg); box-shadow: 0 1px 0 rgba(255, 255, 255, .35) inset, var(--shadow-1); transition: transform .4s var(--ease), box-shadow .4s var(--ease); }
  .tile::before { content: ""; position: absolute; inset: 0; z-index: -1; background: url("../img/brick-joints.svg") 0 0 / 120px 60px, radial-gradient(70% 60% at 0% 0%, rgba(255, 255, 255, .3), transparent 60%); opacity: .55; }
  .tile:hover { transform: translateY(-4px); box-shadow: 0 1px 0 rgba(255, 255, 255, .35) inset, var(--shadow-2); }
  .tile__body { padding: clamp(22px, 2.4vw, 32px) clamp(22px, 2.4vw, 32px) 0; display: grid; gap: 10px; align-content: start; max-width: 46ch; }
  .tile h3 { color: inherit; font-size: clamp(1.45rem, 1.2rem + 1vw, 2rem); }
  .tile p { color: inherit; opacity: .88; font-size: .98rem; line-height: 1.5; }
  .tile__points { display: grid; gap: 6px; margin-top: 6px; font-size: .9rem; font-weight: 600; }
  .tile__points li { display: flex; gap: 8px; align-items: center; }
  .tile__points li::before { content: ""; width: 7px; height: 7px; border-radius: 2px; transform: rotate(45deg); background: currentColor; opacity: .7; flex: none; }
  .tile__more { margin-top: 10px; display: inline-flex; align-items: center; gap: 8px; font-weight: 700; font-size: .92rem; }
  .tile__more .disc { width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; background: rgba(255, 255, 255, .22); transition: transform .3s var(--ease); }
  .tile:hover .tile__more .disc { transform: translateX(4px); }
  [dir="rtl"] .tile:hover .tile__more .disc { transform: translateX(-4px); }
  .tile__more .ic { width: 15px; height: 15px; }
  .tile__art { position: relative; min-height: 190px; }
  .tile--taxi .tile__body { max-width: 34ch; }
  .tile--taxi { grid-column: span 7; --tile-bg: linear-gradient(150deg, #3a62f5 0%, #1b43db 45%, #0e2a9e 100%); }
  .tile--delivery { grid-column: span 5; --tile-bg: linear-gradient(150deg, #34e3d0 0%, #12c4b1 45%, #078c80 100%); --tile-ink: #03231f; }
  .tile--medical { grid-column: span 5; --tile-bg: linear-gradient(150deg, #ffffff 0%, #eef3ff 100%); --tile-ink: var(--text); }
  :root[data-theme="dark"] .tile--medical { --tile-bg: linear-gradient(150deg, #1a2557, #101a45); }
  .tile--sms { grid-column: span 7; --tile-bg: linear-gradient(150deg, #ffd682 0%, #ffb62e 45%, #ee9a0a 100%); --tile-ink: #2c1b00; }
  .tile--ai { grid-column: span 12; --tile-bg: radial-gradient(60% 90% at 85% 100%, rgba(18, 196, 177, .55), transparent 70%), radial-gradient(50% 70% at 20% 0%, rgba(76, 117, 255, .5), transparent 70%), linear-gradient(150deg, #0d1650, #070d26); min-height: 280px; grid-template-rows: none; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); }
  .tile--ai .tile__body { padding-bottom: 28px; align-content: center; }
  @media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .tile--medical { --tile-bg: linear-gradient(150deg, #1a2557, #101a45); } }
  .tile--medical::before { opacity: .35; }
  .tile--medical .tile__more .disc { background: var(--lapis-50); color: var(--lapis); }
  :root[data-theme="dark"] .tile--medical .tile__more .disc { background: rgba(255, 255, 255, .12); color: #fff; }

  /* mini illustrations inside tiles */
  .mini { position: absolute; font-size: 12px; color: #0b1535; }
  .mini-map { inset-inline-end: -5%; bottom: -10%; width: 58%; aspect-ratio: 8 / 5; border-radius: 22px; overflow: hidden; background: #eaf1fb; box-shadow: 0 30px 60px -20px rgba(2, 8, 60, .7), 0 0 0 6px rgba(255, 255, 255, .22); transform: rotate(-3deg); }
  [dir="rtl"] .mini-map { transform: rotate(3deg); }
  .mini-map svg { width: 100%; height: 100%; }
  .mini-card { position: absolute; display: inline-flex; align-items: center; gap: 10px; padding: 10px 14px; border-radius: 16px; background: #fff; color: #0b1535; font-weight: 700; font-size: .84rem; box-shadow: 0 16px 36px -12px rgba(2, 8, 60, .5); line-height: 1.2; }
  .mini-card small { display: block; font-weight: 500; color: #626e99; font-size: .74rem; }
  .mini-card .ib { width: 34px; height: 34px; border-radius: 10px; display: grid; place-items: center; color: #fff; flex: none; background: linear-gradient(135deg, #3d66f7, #1b43db); }
  .mini-card .ib svg { width: 18px; height: 18px; }
  .tile--taxi .mini-card { inset-inline-start: 7%; bottom: 9%; }
  .tile--taxi .mini-card.two { inset-inline-start: auto; inset-inline-end: 7%; bottom: 8%; }
  .tile--delivery .mini-route { position: absolute; inset: 10% 3% 0 3%; }
  .tile--delivery .mini-route svg { width: 100%; height: 100%; }
  .tile--delivery .mini-card { inset-inline-end: 8%; bottom: 12%; }
  .mini-cal { inset-inline-end: 8%; bottom: -3%; width: 76%; padding: 16px 16px 26px; border-radius: 22px; background: #fff; border: 1px solid var(--line); box-shadow: 0 24px 50px -22px rgba(11, 21, 53, .4); transform: rotate(2deg); }
  [dir="rtl"] .mini-cal { transform: rotate(-2deg); }
  :root[data-theme="dark"] .mini-cal { background: #0b1230; }
  .mini-cal .hd { display: flex; justify-content: space-between; align-items: center; font-weight: 700; margin-bottom: 12px; color: #0b1535; }
  :root[data-theme="dark"] .mini-cal .hd { color: #fff; }
  .mini-cal .hd span:last-child { font-size: .72rem; padding: 3px 9px; border-radius: 99px; background: #e5fbf7; color: #077a70; }
  .mini-cal .grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 7px; }
  .mini-cal .grid span { text-align: center; padding: 8px 0; border-radius: 10px; background: #f3f6fc; font-weight: 600; font-variant-numeric: tabular-nums; color: #39456f; direction: ltr; }
  .mini-cal .grid span.on { background: linear-gradient(180deg, #3d66f7, #1b43db); color: #fff; }
  .mini-cal .grid span.off { opacity: .4; text-decoration: line-through; }
  :root[data-theme="dark"] .mini-cal .grid span { background: #17214f; color: #cdd6ff; }
  .mini-chat { inset-inline-end: 6%; bottom: 3%; width: 70%; display: grid; gap: 10px; transform: rotate(-2deg); }
  [dir="rtl"] .mini-chat { transform: rotate(2deg); }
  .mini-chat .b { max-width: 86%; padding: 11px 15px; border-radius: 18px; font-weight: 600; font-size: .86rem; line-height: 1.35; box-shadow: 0 12px 26px -12px rgba(80, 50, 0, .45); }
  .mini-chat .in { background: #fff; color: #2c1b00; border-end-start-radius: 4px; }
  .mini-chat .out { background: #1b43db; color: #fff; justify-self: end; border-end-end-radius: 4px; }
  .mini-chat .otpr { display: flex; gap: 6px; justify-self: end; direction: ltr; }
  .mini-chat .otpr span { width: 32px; height: 40px; display: grid; place-items: center; border-radius: 9px; background: #fff; font-family: var(--f-display); font-weight: 800; font-size: 1.05rem; color: #0b1535; box-shadow: 0 10px 20px -10px rgba(80, 50, 0, .5); }
  .tile--ai .tile__art { min-height: 220px; }
  .mini-ai { inset: 0; display: grid; align-content: center; justify-items: start; gap: 10px; padding: clamp(18px, 3vw, 36px); }
  .mini-ai .b { max-width: 82%; padding: 12px 16px; border-radius: 18px; font-size: .9rem; line-height: 1.4; font-weight: 500; }
  .mini-ai .q { background: rgba(255, 255, 255, .13); color: #fff; justify-self: end; border-end-end-radius: 4px; }
  .mini-ai .a { background: #fff; color: #0b1535; border-end-start-radius: 4px; box-shadow: 0 16px 36px -14px rgba(18, 196, 177, .55); }
  .mini-ai .a em { display: block; font-style: normal; font-size: .76rem; font-weight: 700; color: #078c80; margin-top: 6px; }
  @media (max-width: 1000px) {
    .tile--taxi, .tile--delivery, .tile--medical, .tile--sms { grid-column: span 6; }
    .tile--ai { grid-template-columns: minmax(0, 1fr); grid-template-rows: auto 1fr; }
  }
  @media (max-width: 700px) {
    .bento { grid-template-columns: minmax(0, 1fr); }
    .tile--taxi, .tile--delivery, .tile--medical, .tile--sms, .tile--ai { grid-column: auto; min-height: 400px; }
    .tile--ai { min-height: 0; }
  }

  /* more services list */
  .more-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: end; gap: 16px 32px; margin-top: clamp(56px, 8vw, 104px); margin-bottom: 8px; }
  .more-head h3 { font-size: clamp(1.5rem, 1.2rem + 1.4vw, 2.3rem); }
  .more-head p { color: var(--text-2); max-width: 46ch; }
  .more-list { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); column-gap: clamp(24px, 4vw, 56px); }
  .more-item { display: grid; grid-template-columns: auto 1fr; gap: 6px 16px; align-items: start; align-content: start; padding-block: 26px; border-top: 1px solid var(--line); color: var(--text); transition: background-color .25s; position: relative; }
  .more-item .ico { width: 46px; height: 46px; border-radius: 14px; display: grid; place-items: center; color: var(--lapis); background: var(--lapis-50); grid-row: span 2; transition: background-color .25s, color .25s, transform .35s var(--ease); }
  :root[data-theme="dark"] .more-item .ico { background: rgba(76, 117, 255, .16); color: #9ab2ff; }
  .more-item .ico .ic { width: 24px; height: 24px; }
  .more-item h4 { align-self: start; font-size: 1.12rem; line-height: 1.25; padding-top: 2px; }
  .more-item p { color: var(--text-2); font-size: .94rem; line-height: 1.45; }
  .more-item:hover .ico { background: var(--lapis); color: #fff; transform: rotate(-6deg) scale(1.06); }
  @media (max-width: 960px) { .more-list { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
  @media (max-width: 620px) { .more-list { grid-template-columns: minmax(0, 1fr); } }

  /* ============================================================ AI panel */
  .ai-section { padding: 0 12px; margin-block: clamp(24px, 4vw, 56px); }
  .ai-panel { position: relative; isolation: isolate; overflow: hidden; border-radius: var(--r-xl); color: #fff; padding: clamp(40px, 7vw, 104px) 0;
    background: radial-gradient(60% 70% at 100% 100%, rgba(18, 196, 177, .38), transparent 65%), radial-gradient(60% 70% at 0% 0%, rgba(76, 117, 255, .55), transparent 65%), linear-gradient(160deg, #0b1450 0%, #070d26 70%); }
  .ai-panel::before { content: ""; position: absolute; inset: 0; z-index: -1; opacity: .5; background-image: url("../img/star-grid.svg"); background-size: 96px 96px; mask-image: radial-gradient(70% 80% at 80% 20%, #000, transparent 75%); -webkit-mask-image: radial-gradient(70% 80% at 80% 20%, #000, transparent 75%); }
  .ai-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.02fr); gap: clamp(28px, 5vw, 72px); align-items: center; }
  .ai-copy { display: grid; gap: 22px; justify-items: start; }
  .ai-copy h2, .ai-panel h2 { color: #fff; }
  .ai-copy .lead { color: #c3cffa; }
  .ai-caps { display: grid; gap: 14px; margin-block: 6px; }
  .ai-caps li { display: grid; grid-template-columns: 40px 1fr; gap: 14px; align-items: start; }
  .ai-caps .ico { width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; background: rgba(255, 255, 255, .09); border: 1px solid rgba(255, 255, 255, .14); color: var(--turq-300); }
  .ai-caps strong { display: block; color: #fff; font-weight: 600; line-height: 1.3; }
  .ai-caps span { color: #a5b4ea; font-size: .92rem; line-height: 1.45; }
  .ai-areas { display: flex; flex-wrap: wrap; gap: 8px; margin-top: clamp(28px, 4vw, 48px); padding-top: clamp(20px, 3vw, 32px); border-top: 1px solid rgba(255, 255, 255, .12); }
  .ai-areas li { padding: 8px 14px; border-radius: 999px; font-size: .88rem; font-weight: 600; color: #d8e1ff; background: rgba(255, 255, 255, .07); border: 1px solid rgba(255, 255, 255, .14); }
  .ai-areas li::before { content: ""; display: inline-block; width: 6px; height: 6px; margin-inline-end: 8px; border-radius: 50%; background: var(--turq); vertical-align: middle; box-shadow: 0 0 8px var(--turq); }

  .chat { border-radius: var(--r-l); background: rgba(8, 14, 44, .7); border: 1px solid rgba(255, 255, 255, .14); backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px); box-shadow: 0 40px 80px -30px rgba(0, 0, 0, .75), 0 0 0 1px rgba(255, 255, 255, .03) inset; overflow: hidden; display: grid; grid-template-rows: auto 1fr auto; min-height: 480px; }
  .chat__bar { display: flex; align-items: center; gap: 12px; padding: 14px 18px; border-bottom: 1px solid rgba(255, 255, 255, .1); }
  .chat__orb { width: 36px; height: 36px; border-radius: 50%; background: radial-gradient(circle at 30% 30%, #9af3e8, #12c4b1 45%, #1b43db); box-shadow: 0 0 20px rgba(18, 196, 177, .65); flex: none; }
  .chat__bar strong { display: block; font-size: .98rem; line-height: 1.2; }
  .chat__bar small { color: #8fa0d8; font-size: .78rem; display: flex; align-items: center; gap: 6px; }
  .chat__bar small::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: #19c97a; }
  .chat__reset { margin-inline-start: auto; font-size: .8rem; font-weight: 600; color: #aab8ee; padding: 6px 12px; border-radius: 99px; border: 1px solid rgba(255, 255, 255, .16); }
  .chat__reset:hover { color: #fff; background: rgba(255, 255, 255, .08); }
  .chat__log { padding: 18px; display: flex; flex-direction: column; gap: 12px; overflow-y: auto; max-height: 360px; min-height: 280px; scroll-behavior: smooth; }
  .msg { max-width: 88%; padding: 12px 16px; border-radius: 18px; font-size: .96rem; line-height: 1.5; animation: msgIn .4s var(--ease); }
  :root[lang="ar"] .msg { line-height: 1.8; }
  @keyframes msgIn { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
  .msg--you { align-self: flex-end; background: linear-gradient(180deg, #3d66f7, #1b43db); color: #fff; border-end-end-radius: 5px; }
  .msg--bot { align-self: flex-start; background: rgba(255, 255, 255, .09); border: 1px solid rgba(255, 255, 255, .12); color: #eaf0ff; border-end-start-radius: 5px; }
  .msg__src { display: inline-flex; align-items: center; gap: 6px; margin-top: 10px; padding: 4px 10px; border-radius: 99px; font-size: .76rem; font-weight: 700; color: #7cebdd; background: rgba(18, 196, 177, .12); border: 1px solid rgba(18, 196, 177, .3); }
  .msg__src::before { content: ""; width: 6px; height: 6px; border-radius: 2px; background: currentColor; transform: rotate(45deg); }
  .msg--typing { display: inline-flex; gap: 5px; padding: 15px 18px; }
  .msg--typing i { width: 7px; height: 7px; border-radius: 50%; background: #aab8ee; animation: blink2 1.2s infinite; }
  .msg--typing i:nth-child(2) { animation-delay: .18s; } .msg--typing i:nth-child(3) { animation-delay: .36s; }
  @keyframes blink2 { 0%, 80%, 100% { opacity: .3; transform: none; } 40% { opacity: 1; transform: translateY(-3px); } }
  .chat__empty { margin: auto; text-align: center; color: #8fa0d8; font-size: .94rem; max-width: 30ch; line-height: 1.5; }
  .chat__empty .ico { width: 56px; height: 56px; margin: 0 auto 14px; border-radius: 50%; display: grid; place-items: center; background: rgba(255, 255, 255, .07); color: var(--turq-300); }
  .chat__prompts { display: flex; flex-wrap: wrap; gap: 8px; padding: 14px 18px 12px; border-top: 1px solid rgba(255, 255, 255, .1); background: rgba(0, 0, 0, .18); }
  .chat__prompts button { padding: 9px 14px; border-radius: 99px; font-size: .88rem; font-weight: 600; color: #e4eaff; background: rgba(255, 255, 255, .09); border: 1px solid rgba(255, 255, 255, .16); transition: background-color .2s, border-color .2s, transform .2s; }
  .chat__prompts button:hover:not(:disabled) { background: rgba(255, 255, 255, .17); border-color: var(--turq); transform: translateY(-1px); }
  .chat__prompts button:disabled { opacity: .45; cursor: progress; }
  .chat__note { padding: 0 18px 14px; font-size: .76rem; color: #7f8fc4; background: rgba(0, 0, 0, .18); }
  @media (max-width: 960px) { .ai-grid { grid-template-columns: minmax(0, 1fr); } }
  @media (max-width: 560px) { .ai-section { padding: 0 8px; } .ai-panel { border-radius: 28px; padding: 32px 0 36px; } .chat__log { max-height: 300px; } }

  /* ============================================================ featured project */
  .case__grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.25fr); gap: clamp(28px, 5vw, 80px); align-items: center; }
  .badge { display: inline-flex; align-items: center; gap: 8px; padding: 6px 14px 6px 10px; border-radius: 99px; font-weight: 700; font-size: .85rem; background: var(--sun-100); color: #7a4a00; justify-self: start; }
  .badge::before { content: ""; width: 8px; height: 8px; border-radius: 2px; transform: rotate(45deg); background: var(--sun); }
  :root[data-theme="dark"] .badge { background: rgba(255, 182, 46, .16); color: var(--sun-300); }
  .case__copy { display: grid; gap: 20px; justify-items: start; }
  .check-list { display: grid; gap: 12px; }
  .check-list li { display: grid; grid-template-columns: 24px 1fr; gap: 12px; align-items: start; color: var(--text-2); line-height: 1.5; }
  .check-list li::before { content: ""; width: 24px; height: 24px; border-radius: 8px; background: var(--turq-100) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23078c80' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12.5l4.5 4.5L19 7.5'/%3E%3C/svg%3E") center / 14px no-repeat; margin-top: 1px; }
  :root[data-theme="dark"] .check-list li::before { background-color: rgba(18, 196, 177, .18); }
  .case__stage { position: relative; aspect-ratio: 1.12 / 1; container-type: inline-size; border-radius: var(--r-xl); background: radial-gradient(70% 70% at 80% 10%, var(--sun-100), transparent 60%), radial-gradient(60% 60% at 10% 90%, var(--turq-100), transparent 60%), var(--surface-3); overflow: hidden; border: 1px solid var(--line); }
  :root[data-theme="dark"] .case__stage { background: radial-gradient(70% 70% at 80% 10%, rgba(255, 182, 46, .16), transparent 60%), radial-gradient(60% 60% at 10% 90%, rgba(18, 196, 177, .18), transparent 60%), var(--surface); }
  .case__stage::before { content: ""; position: absolute; inset: 0; background: url("../img/brick-joints.svg") 0 0 / 120px 60px; opacity: .35; mix-blend-mode: soft-light; }
  .admin { position: absolute; inset-inline-start: 5cqw; top: 9cqw; width: 70cqw; border-radius: 3cqw; background: #fff; box-shadow: 0 5cqw 10cqw -3cqw rgba(8, 23, 102, .45), 0 0 0 .3cqw rgba(11, 21, 53, .08); overflow: hidden; color: #0b1535; font-size: 2.1cqw; }
  .admin__bar { display: flex; align-items: center; gap: .8cqw; padding: 1.6cqw 2cqw; background: #f3f6fc; border-bottom: .2cqw solid #e0e6f6; }
  .admin__bar i { width: 1.3cqw; height: 1.3cqw; border-radius: 50%; background: #d0d8ee; }
  .admin__bar b { margin-inline-start: 2cqw; font-weight: 700; font-size: 2cqw; color: #39456f; }
  .admin__body { display: grid; grid-template-columns: 7cqw 1fr; min-height: 38cqw; }
  .admin__side { background: #0e1a5c; display: grid; align-content: start; justify-items: center; gap: 2cqw; padding-top: 2.4cqw; }
  .admin__side i { width: 3.2cqw; height: 3.2cqw; border-radius: 1cqw; background: rgba(255, 255, 255, .22); }
  .admin__side i:first-child { background: var(--sun); }
  .admin__main { padding: 2cqw; display: grid; gap: 1.6cqw; align-content: start; }
  .kpis { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.2cqw; }
  .kpi { padding: 1.4cqw 1.6cqw; border-radius: 1.4cqw; background: #f3f6fc; line-height: 1.15; }
  .kpi small { display: block; color: #626e99; font-size: 1.6cqw; }
  .kpi strong { font-family: var(--f-display); font-size: 3.4cqw; letter-spacing: -.03em; }
  .kpi:nth-child(2) strong { color: #078c80; } .kpi:nth-child(3) strong { color: #1b43db; }
  .admin__map { position: relative; border-radius: 1.4cqw; overflow: hidden; height: 17cqw; background: #e6eefb; }
  .admin__map svg { position: absolute; inset: 0; width: 100%; height: 100%; }
  .trips { display: grid; font-size: 1.9cqw; }
  .trips > div { display: grid; grid-template-columns: .9fr 2fr; padding: .9cqw 0; border-top: .2cqw solid #eaeffa; align-items: center; }
  .trips > div:first-child { color: #8a95bb; font-weight: 600; border-top: 0; }
  .sdot { display: inline-block; width: 1.6cqw; height: 1.6cqw; border-radius: 50%; margin-inline-end: 1.2cqw; background: var(--d, #12c4b1); }
  .sdot--b { --d: #ffb62e; } .sdot--c { --d: #1b43db; }
  .st { display: inline-block; padding: .3cqw 1.2cqw; border-radius: 99px; font-weight: 700; font-size: 1.7cqw; justify-self: start; }
  .st--a { background: #e5fbf7; color: #077a70; } .st--b { background: #fff0cc; color: #8a5500; } .st--c { background: #dce6ff; color: #1737b8; }
  .case__stage .device { --dw: 24cqw; left: auto; bottom: auto; transform: none; }
  .case__stage .device--rider { inset-inline-end: 14cqw; top: 29cqw; z-index: 3; }
  .case__stage .device--driver { --dw: 22cqw; inset-inline-end: 3cqw; top: 43cqw; z-index: 4; }
  .case__stage .device { box-shadow: 0 0 0 .6cqw rgba(255, 255, 255, .16) inset, 0 3cqw 6cqw -1cqw rgba(2, 8, 50, .65); }
  .case__note { position: absolute; inset-inline-start: 5cqw; bottom: 3cqw; font-size: 1.9cqw; color: var(--muted); }
  .lg { position: absolute; z-index: 1; border-radius: 99px; font-weight: 700; font-size: max(11px, 1.9cqw); padding: .8cqw 1.8cqw; background: #fff; color: #0b1535; box-shadow: 0 1cqw 3cqw -1cqw rgba(8, 23, 102, .4); }
  .s-rider { background: #eaf1fb; grid-template-rows: 1fr auto; }
  .s-rider .search { position: absolute; z-index: 3; top: 15cqw; inset-inline: 6cqw; background: #fff; border-radius: 4cqw; padding: 3.4cqw 4cqw; font-weight: 700; font-size: 5.2cqw; box-shadow: 0 2cqw 5cqw -2cqw rgba(11, 21, 53, .35); display: flex; gap: 2.6cqw; align-items: center; }
  .s-rider .search::before { content: ""; width: 3cqw; height: 3cqw; border-radius: 50%; background: #1b43db; box-shadow: 0 0 0 1cqw rgba(27, 67, 219, .2); }
  .s-rider .cars { background: #fff; border-radius: 8cqw 8cqw 0 0; padding: 5cqw 6cqw 8cqw; display: grid; gap: 2.4cqw; z-index: 2; }
  .s-rider .car { display: flex; align-items: center; justify-content: space-between; padding: 2.6cqw 3.4cqw; border-radius: 3.4cqw; border: .5cqw solid #e0e6f6; font-weight: 700; font-size: 4.8cqw; }
  .s-rider .car.on { border-color: #1b43db; background: #eef3ff; }
  .s-rider .car small { display: block; font-weight: 500; color: #626e99; font-size: 3.6cqw; }
  .s-driver { background: #0b1450; color: #fff; grid-template-rows: 1fr auto; }
  .s-driver .req { position: relative; z-index: 3; background: #fff; color: #0b1535; border-radius: 8cqw 8cqw 0 0; padding: 6cqw 6cqw 9cqw; display: grid; gap: 2.6cqw; }
  .s-driver .req h5 { margin: 0; font-family: var(--f-display); font-size: 6cqw; letter-spacing: -.02em; }
  .s-driver .online { position: absolute; z-index: 3; top: 14cqw; inset-inline: 6cqw; display: flex; align-items: center; gap: 2.4cqw; padding: 2.6cqw 4cqw; border-radius: 99px; background: rgba(255, 255, 255, .95); color: #0b1535; font-weight: 700; font-size: 4.6cqw; }
  .s-driver .online::before { content: ""; width: 3cqw; height: 3cqw; border-radius: 50%; background: #19c97a; }
  @media (max-width: 900px) { .case__grid { grid-template-columns: minmax(0, 1fr); } }

  /* ============================================================ process */
  .process { counter-reset: step; display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 0; position: relative; }
  .process li { position: relative; padding-inline: 0 18px; padding-top: 74px; }
  .process li::before { counter-increment: step; content: counter(step); position: absolute; top: 0; inset-inline-start: 0; width: 52px; height: 60px; display: grid; place-items: end center; padding-bottom: 12px; font-family: var(--f-display); font-weight: 800; font-size: 1.1rem; color: #fff;
    border-radius: 26px 26px 6px 6px; background: linear-gradient(180deg, #3d66f7, var(--lapis-700)); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .4), 0 12px 20px -10px rgba(27, 67, 219, .7); z-index: 1; }
  .process li::after { content: ""; position: absolute; top: 59px; inset-inline: 0; height: 3px; background: repeating-linear-gradient(90deg, var(--line-2) 0 8px, transparent 8px 14px); }
  .process li:last-child::after { inset-inline-end: 50%; }
  .process h4 { margin-bottom: 8px; font-size: 1.12rem; }
  .process p { color: var(--text-2); font-size: .94rem; line-height: 1.5; }
  @media (max-width: 1060px) { .process { grid-template-columns: repeat(3, minmax(0, 1fr)); row-gap: 40px; } .process li:nth-child(3)::after { display: none; } }
  @media (max-width: 640px) {
    .process { grid-template-columns: minmax(0, 1fr); row-gap: 0; }
    .process li { padding: 0 0 32px 76px; min-height: 80px; }
    [dir="rtl"] .process li { padding: 0 76px 32px 0; }
    .process li::after { top: 60px; bottom: 0; inset-inline: 25px auto; width: 3px; height: auto; background: repeating-linear-gradient(180deg, var(--line-2) 0 8px, transparent 8px 14px); }
    .process li:last-child::after { display: none; } .process li:nth-child(3)::after { display: block; }
  }

  /* ============================================================ stack tabs */
  .tabs { display: flex; gap: 6px; padding: 5px; border-radius: 999px; background: var(--surface); border: 1px solid var(--line); width: max-content; max-width: 100%; overflow-x: auto; scrollbar-width: none; margin-bottom: 28px; }
  .tabs::-webkit-scrollbar { display: none; }
  .tabs button { padding: 10px 18px; border-radius: 999px; font-weight: 600; font-size: .92rem; color: var(--text-2); white-space: nowrap; transition: background-color .2s, color .2s; }
  .tabs button:hover { color: var(--text); }
  .tabs button[aria-selected="true"] { background: var(--lapis); color: #fff; box-shadow: 0 8px 18px -8px rgba(27, 67, 219, .7); }
  .tab-panel { display: none; }
  .tab-panel.is-active { display: block; animation: msgIn .4s var(--ease); }
  .tab-panel > p { color: var(--text-2); max-width: 60ch; margin-bottom: 22px; }
  .chips { display: flex; flex-wrap: wrap; gap: 10px; }
  .chip { display: inline-flex; align-items: center; gap: 10px; padding: 11px 18px; border-radius: 14px; font-weight: 600; background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow-1); transition: transform .25s var(--ease), border-color .25s; }
  .chip::before { content: ""; width: 8px; height: 8px; border-radius: 2px; transform: rotate(45deg); background: var(--c, var(--lapis)); }
  .chip:hover { transform: translateY(-2px); border-color: var(--c, var(--lapis)); }
  .chip--turq { --c: var(--turq); } .chip--sun { --c: var(--sun); }

  /* ============================================================ offices */
  .facts { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0; border-block: 1px solid var(--line); margin-bottom: clamp(28px, 4vw, 48px); }
  .facts li { padding: 22px 16px 22px 0; display: grid; gap: 2px; }
  .facts li + li { padding-inline-start: 24px; border-inline-start: 1px solid var(--line); }
  .facts b { font-family: var(--f-display); font-size: clamp(2rem, 1.5rem + 2vw, 3rem); letter-spacing: -.04em; line-height: 1; }
  .facts span { color: var(--text-2); font-size: .94rem; line-height: 1.35; }
  @media (max-width: 760px) { .facts { grid-template-columns: repeat(2, 1fr); } .facts li:nth-child(3) { border-inline-start: 0; padding-inline-start: 0; } .facts li:nth-child(n+3) { border-top: 1px solid var(--line); } }
  .offices { display: grid; grid-template-columns: minmax(0, 1.55fr) minmax(0, 1fr); gap: clamp(16px, 2vw, 28px); align-items: stretch; }
  .map-card { position: relative; border-radius: var(--r-l); overflow: hidden; background: radial-gradient(80% 80% at 70% 20%, rgba(76, 117, 255, .25), transparent 70%), linear-gradient(160deg, #0d1650, #070d26); min-height: 420px; container-type: inline-size; border: 1px solid rgba(255, 255, 255, .06); }
  .map-card svg.dotmap { position: absolute; inset: 0; width: 100%; height: 100%; }
  .map-card .dots { fill: none; stroke: #6f8cff; stroke-opacity: .5; stroke-linecap: round; }
  .map-card .arc { fill: none; stroke: var(--sun); stroke-width: 1.6; stroke-dasharray: 4 6; animation: dash 3s linear infinite; opacity: .95; }
  @keyframes dash { to { stroke-dashoffset: -40; } }
  .pin { position: absolute; transform: translate(-50%, -50%); z-index: 2; }
  .pin__dot { display: block; width: 14px; height: 14px; border-radius: 50%; background: var(--sun); box-shadow: 0 0 0 4px rgba(255, 182, 46, .25), 0 0 20px var(--sun); position: relative; }
  .pin__dot::after { content: ""; position: absolute; inset: -8px; border-radius: 50%; border: 1.5px solid var(--sun); opacity: 0; animation: ping 2.6s infinite; }
  @keyframes ping { 0% { transform: scale(.4); opacity: .9; } 100% { transform: scale(1.8); opacity: 0; } }
  .pin__label { position: absolute; top: 50%; inset-inline-start: 22px; transform: translateY(-50%); white-space: nowrap; padding: 6px 12px; border-radius: 99px; font-weight: 700; font-size: max(12px, 1.7cqw); color: #fff; background: rgba(8, 14, 44, .78); border: 1px solid rgba(255, 255, 255, .2); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); }
  .pin--left .pin__label { inset-inline-start: auto; inset-inline-end: 22px; }
  .pin__label small { color: #9fb0e6; font-weight: 500; margin-inline-start: 6px; font-variant-numeric: tabular-nums; direction: ltr; unicode-bidi: isolate; display: inline-block; }
  .office-list { display: grid; gap: 12px; align-content: start; }
  .office { padding: 22px; border-radius: var(--r-m); background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow-1); display: grid; gap: 8px; transition: transform .3s var(--ease), border-color .3s; }
  .office:hover { transform: translateY(-2px); border-color: var(--lapis-300); }
  .office__top { display: flex; justify-content: space-between; align-items: center; gap: 12px; }
  .office h3 { font-size: 1.25rem; }
  .office__role { display: inline-block; padding: 3px 10px; border-radius: 99px; font-size: .78rem; font-weight: 700; background: var(--lapis-50); color: var(--lapis); }
  :root[data-theme="dark"] .office__role { background: rgba(76, 117, 255, .18); color: #9ab2ff; }
  .office address { font-style: normal; color: var(--text-2); font-size: .95rem; line-height: 1.5; }
  .office__meta { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 16px; font-size: .9rem; color: var(--text-2); }
  .office__time { display: inline-flex; align-items: center; gap: 8px; font-weight: 600; color: var(--text); font-variant-numeric: tabular-nums; }
  .office__time .dot { width: 8px; height: 8px; border-radius: 50%; background: #98a2c8; }
  .office.is-open .office__time .dot { background: #19c97a; animation: pulse 2.4s infinite; }
  .office__links { display: flex; flex-wrap: wrap; gap: 6px 18px; font-weight: 600; font-size: .92rem; margin-top: 4px; }
  @media (max-width: 960px) { .offices { grid-template-columns: minmax(0, 1fr); } .map-card { min-height: 0; width: 100%; } }

  /* ============================================================ insights / posts */
  .post-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(16px, 2vw, 28px); }
  .post { display: grid; grid-template-rows: auto 1fr; border-radius: var(--r-l); overflow: hidden; background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow-1); transition: transform .4s var(--ease), box-shadow .4s var(--ease); color: var(--text); }
  .post:hover { transform: translateY(-5px); box-shadow: var(--shadow-2); }
  .post__cover { aspect-ratio: 16 / 8.4; overflow: hidden; }
  .post__cover svg { width: 100%; height: 100%; transition: transform .8s var(--ease); }
  .post:hover .post__cover svg { transform: scale(1.05); }
  .post__body { padding: 22px 24px 24px; display: grid; gap: 10px; align-content: start; }
  .post__cat { justify-self: start; font-size: .8rem; font-weight: 700; padding: 4px 11px; border-radius: 99px; background: var(--turq-100); color: var(--turq-700); }
  :root[data-theme="dark"] .post__cat { background: rgba(18, 196, 177, .16); color: var(--turq-300); }
  .post h3 { font-size: 1.22rem; line-height: 1.22; }
  .post p { color: var(--text-2); font-size: .94rem; line-height: 1.5; display: -webkit-box; -webkit-line-clamp: 3; line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
  .post__meta { display: flex; gap: 14px; color: var(--muted); font-size: .84rem; margin-top: 4px; }
  @media (max-width: 960px) { .post-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
  @media (max-width: 620px) { .post-grid { grid-template-columns: minmax(0, 1fr); } }

  /* ============================================================ CTA band */
  .cta { position: relative; isolation: isolate; overflow: hidden; border-radius: var(--r-xl); color: #fff; padding: clamp(32px, 6vw, 88px); display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: clamp(24px, 4vw, 64px); align-items: center;
    background: radial-gradient(55% 75% at 100% 100%, rgba(18, 196, 177, .42), transparent 65%), radial-gradient(60% 70% at 0% 0%, rgba(124, 160, 255, .45), transparent 65%), linear-gradient(150deg, #2a50f0 0%, #1b43db 40%, #0a1d78 100%); }
  .cta::before { content: ""; position: absolute; inset: 0; z-index: -1; background: url("../img/brick-joints.svg") 0 0 / 120px 60px; opacity: .5; mask-image: linear-gradient(90deg, #000, transparent 80%); -webkit-mask-image: linear-gradient(90deg, #000, transparent 80%); }
  [dir="rtl"] .cta::before { mask-image: linear-gradient(270deg, #000, transparent 80%); -webkit-mask-image: linear-gradient(270deg, #000, transparent 80%); }
  .cta h2 { color: #fff; font-size: clamp(2rem, 1.2rem + 3.2vw, 3.6rem); max-width: 14ch; }
  :root[lang="fr"] .cta h2, :root[lang="ar"] .cta h2 { max-width: 18ch; }
  .cta p { color: #d3ddff; max-width: 48ch; margin-top: 16px; font-size: 1.08rem; }
  .cta__btns { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
  .cta__contact { display: grid; gap: 12px; padding: 24px; border-radius: var(--r-l); background: rgba(255, 255, 255, .1); border: 1px solid rgba(255, 255, 255, .2); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); }
  .cta__contact a, .cta__contact span.row { display: flex; align-items: center; gap: 12px; color: #fff; font-weight: 600; }
  .cta__contact .ic { width: 22px; height: 22px; color: var(--sun-300); }
  .cta__contact small { color: #b7c6fb; display: block; font-weight: 500; font-size: .8rem; line-height: 1.2; }
  @media (max-width: 860px) { .cta { grid-template-columns: minmax(0, 1fr); } }
}

/* Ishtar Gate v3 — inner pages */
@layer pages {

  /* ============================================================ inner page hero */
  .page-hero { padding: 12px 12px 0; }
  .page-hero__panel { position: relative; isolation: isolate; overflow: hidden; border-radius: var(--r-xl); padding-top: calc(var(--header-h) + 36px);
    background: radial-gradient(60% 80% at 100% 0%, color-mix(in srgb, var(--lapis-400) 30%, transparent), transparent 70%), radial-gradient(50% 70% at 0% 100%, color-mix(in srgb, var(--turq) 28%, transparent), transparent 70%), linear-gradient(180deg, var(--sky-1), var(--sky-2) 70%, var(--sky-3)); }
  .page-hero__panel::before { content: ""; position: absolute; inset: 0; z-index: -1; opacity: .5; mix-blend-mode: soft-light; background: url("../img/brick-joints.svg") 0 0 / 120px 60px; mask-image: linear-gradient(180deg, #000, transparent 75%); -webkit-mask-image: linear-gradient(180deg, #000, transparent 75%); }
  .page-hero__grid { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr); gap: clamp(16px, 4vw, 56px); align-items: end; min-height: clamp(300px, 34vw, 440px); }
  .page-hero__grid--solo { grid-template-columns: minmax(0, 1fr); min-height: 0; }
  .page-hero__copy { display: grid; gap: 18px; justify-items: start; padding-bottom: clamp(32px, 5vw, 64px); }
  .page-hero h1 { font-size: clamp(2.2rem, 1.1rem + 4vw, 4.2rem); max-width: 18ch; }
  :root[data-theme="dark"] .page-hero h1 { color: #fff; }
  :root[data-theme="dark"] .page-hero .lead { color: #c8d4ff; }
  .page-hero__art { align-self: end; justify-self: end; width: 100%; max-width: 480px; line-height: 0; }
  .page-hero__art svg { width: 100%; height: auto; }
  .crumbs { display: flex; align-items: center; gap: 6px; font-size: .88rem; color: var(--text-2); flex-wrap: wrap; }
  .crumbs a { color: var(--text-2); font-weight: 600; } .crumbs a:hover { color: var(--text); }
  .crumbs .ic { width: 14px; height: 14px; opacity: .6; }
  @media (max-width: 860px) { .page-hero__grid { grid-template-columns: minmax(0, 1fr); } .page-hero__art { max-width: 340px; justify-self: center; margin-bottom: -4px; } }
  @media (max-width: 640px) { .page-hero { padding: 8px 8px 0; } .page-hero__panel { border-radius: 28px; } }

  /* AI hero */
  .ai-hero .page-hero__panel { background: radial-gradient(60% 80% at 80% 100%, rgba(18, 196, 177, .38), transparent 65%), radial-gradient(60% 70% at 10% 0%, rgba(76, 117, 255, .55), transparent 65%), linear-gradient(160deg, #0b1450, #070d26 75%); color: #fff; }
  .ai-hero .page-hero__panel::before { background-image: url("../img/star-grid.svg"); background-size: 96px 96px; opacity: .55; mix-blend-mode: normal; mask-image: radial-gradient(60% 80% at 75% 40%, #000, transparent 80%); -webkit-mask-image: radial-gradient(60% 80% at 75% 40%, #000, transparent 80%); }
  .ai-hero h1, .ai-hero .crumbs, .ai-hero .crumbs a { color: #fff; }
  .ai-hero .lead { color: #c3cffa; }
  .ai-hero .page-hero__art { max-width: 540px; }
  .hero-actions { display: flex; flex-wrap: wrap; gap: 12px; }
  .constellation .ln { stroke: url(#cs-grad); stroke-width: 1; opacity: .5; }
  .constellation .nd { fill: #cfe0ff; animation: twinkle 3.6s ease-in-out infinite; }
  .constellation .nd.big { fill: var(--turq-300); filter: drop-shadow(0 0 6px var(--turq)); }
  @keyframes twinkle { 0%, 100% { opacity: .35; } 50% { opacity: 1; } }

  /* ============================================================ generic blocks */
  .grid-3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(14px, 1.8vw, 24px); }
  .grid-2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(14px, 1.8vw, 24px); }
  .grid-4 { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: clamp(14px, 1.8vw, 24px); }
  @media (max-width: 1000px) { .grid-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); } .grid-3 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
  @media (max-width: 640px) { .grid-4, .grid-3, .grid-2 { grid-template-columns: minmax(0, 1fr); } }
  .panel { padding: clamp(22px, 2.6vw, 34px); border-radius: var(--r-l); background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow-1); display: grid; gap: 12px; align-content: start; }
  .panel h3 { font-size: 1.28rem; } .panel p { color: var(--text-2); font-size: .98rem; line-height: 1.55; }
  .gico { width: 52px; height: 52px; border-radius: 16px; display: grid; place-items: center; color: #fff; background: linear-gradient(145deg, #4c75ff, #1b43db 55%, #0e2a9e); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .45), 0 10px 20px -10px rgba(27, 67, 219, .7); }
  .gico .ic { width: 26px; height: 26px; }
  .gico--turq { background: linear-gradient(145deg, #5cf0df, #12c4b1 55%, #078c80); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .5), 0 10px 20px -10px rgba(18, 196, 177, .7); color: #03231f; }
  .gico--sun { background: linear-gradient(145deg, #ffe29a, #ffb62e 55%, #ee9a0a); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .6), 0 10px 20px -10px rgba(255, 182, 46, .7); color: #2c1b00; }
  .panel--dark { background: linear-gradient(160deg, #0f1a5a, #090f33); color: #e3eaff; border-color: rgba(255, 255, 255, .1); }
  .panel--dark h2, .panel--dark h3 { color: #fff; } .panel--dark p { color: #b4c2f0; }

  /* FAQ */
  .faq { display: grid; gap: 10px; max-width: 880px; }
  .faq details { border-radius: var(--r-m); background: var(--surface); border: 1px solid var(--line); transition: border-color .25s, box-shadow .25s; }
  .faq details[open] { border-color: var(--lapis-300); box-shadow: var(--shadow-1); }
  .faq summary { list-style: none; display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 20px 24px; font-weight: 600; font-size: 1.04rem; font-family: var(--f-display); letter-spacing: -.01em; }
  :root[lang="ar"] .faq summary { letter-spacing: 0; }
  .faq summary::-webkit-details-marker { display: none; }
  .faq summary::after { content: ""; flex: none; width: 28px; height: 28px; border-radius: 50%; background: var(--lapis-50) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%231b43db' stroke-width='2.6' stroke-linecap='round'%3E%3Cpath d='M12 6v12M6 12h12'/%3E%3C/svg%3E") center / 14px no-repeat; transition: transform .3s var(--ease); }
  .faq details[open] summary::after { transform: rotate(45deg); }
  .faq details p { padding: 0 24px 22px; color: var(--text-2); max-width: 70ch; line-height: 1.6; }

  /* ============================================================ services page */
  .svc-layout { display: grid; grid-template-columns: 250px minmax(0, 1fr); gap: clamp(24px, 4vw, 64px); align-items: start; }
  .svc-index { position: sticky; top: calc(var(--header-h) + 16px); display: grid; gap: 2px; padding: 8px; border-radius: var(--r-m); background: var(--surface); border: 1px solid var(--line); max-height: calc(100vh - var(--header-h) - 40px); overflow-y: auto; }
  .svc-index h2 { font-size: .85rem; padding: 10px 12px 6px; color: var(--muted); font-weight: 600; letter-spacing: 0; }
  .svc-index a { display: flex; align-items: center; gap: 10px; padding: 9px 12px; border-radius: 12px; font-weight: 600; font-size: .9rem; color: var(--text-2); line-height: 1.25; }
  .svc-index a .ic { width: 18px; height: 18px; opacity: .7; }
  .svc-index a:hover { background: var(--surface-3); color: var(--text); }
  .svc-index a.is-active { background: var(--lapis-50); color: var(--lapis); }
  :root[data-theme="dark"] .svc-index a.is-active { background: rgba(76, 117, 255, .18); color: #9ab2ff; }
  .svc-layout > * { min-width: 0; }
  .svc-list { display: grid; gap: clamp(16px, 2vw, 24px); }
  .svc { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 8px clamp(16px, 2.4vw, 28px); padding: clamp(22px, 3vw, 38px); border-radius: var(--r-l); background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow-1); }
  .svc h2 { font-size: clamp(1.4rem, 1.15rem + 1vw, 2rem); letter-spacing: -.025em; }
  .svc__desc { color: var(--text-2); max-width: 62ch; margin-top: 8px; }
  .svc__points { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px 28px; margin-top: 18px; grid-column: 2; }
  .svc__points li { display: grid; grid-template-columns: 22px 1fr; gap: 10px; font-size: .96rem; line-height: 1.45; color: var(--text-2); }
  .svc__points li::before { content: ""; width: 22px; height: 22px; border-radius: 7px; background: var(--turq-100) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23078c80' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12.5l4.5 4.5L19 7.5'/%3E%3C/svg%3E") center / 13px no-repeat; }
  :root[data-theme="dark"] .svc__points li::before { background-color: rgba(18, 196, 177, .18); }
  .svc__more { grid-column: 2; margin-top: 18px; }
  @media (max-width: 980px) {
    .svc-layout { grid-template-columns: minmax(0, 1fr); }
    .svc-index { position: static; display: flex; overflow-x: auto; max-height: none; border-radius: 999px; padding: 6px; scrollbar-width: none; }
    .svc-index::-webkit-scrollbar { display: none; }
    .svc-index h2 { display: none; }
    .svc-index a { white-space: nowrap; }
    .svc-index a .ic { display: none; }
  }
  @media (max-width: 640px) { .svc { grid-template-columns: minmax(0, 1fr); } .svc__points, .svc__more { grid-column: 1; } .svc__points { grid-template-columns: minmax(0, 1fr); } }

  /* ============================================================ AI page */
  .cap-card .gico { margin-bottom: 6px; }
  .flow { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 0; counter-reset: fl; position: relative; }
  .flow li { position: relative; padding: 0 14px 0 0; counter-increment: fl; }
  [dir="rtl"] .flow li { padding: 0 0 0 14px; }
  .flow__node { position: relative; height: 84px; margin-bottom: 18px; display: grid; place-items: center; border-radius: 22px; background: linear-gradient(160deg, #0f1a5a, #090f33); color: var(--turq-300); box-shadow: var(--shadow-1), inset 0 1px 0 rgba(255, 255, 255, .12); }
  .flow__node .ic { width: 30px; height: 30px; }
  .flow__node::after { content: counter(fl); position: absolute; top: -10px; inset-inline-start: -6px; width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center; font-weight: 800; font-size: .8rem; background: var(--sun); color: #2c1b00; box-shadow: 0 6px 12px -4px rgba(255, 182, 46, .7); }
  .flow li:not(:last-child)::after { content: ""; position: absolute; top: 41px; inset-inline-start: calc(100% - 14px - 18px); width: calc(14px + 18px + 14px); height: 2px; background: repeating-linear-gradient(90deg, var(--line-2) 0 6px, transparent 6px 11px); z-index: 0; }
  .flow li:not(:last-child)::before { content: ""; position: absolute; top: 37px; inset-inline-start: calc(100% - 14px - 18px); width: 10px; height: 10px; border-radius: 50%; background: var(--turq); box-shadow: 0 0 12px var(--turq); z-index: 2; animation: travel 3s linear infinite; animation-delay: calc(var(--i) * .5s); }
  @keyframes travel { 0% { transform: translateX(0); opacity: 0; } 15% { opacity: 1; } 85% { opacity: 1; } 100% { transform: translateX(46px); opacity: 0; } }
  [dir="rtl"] .flow li:not(:last-child)::before { animation-name: travelRtl; }
  @keyframes travelRtl { 0% { transform: translateX(0); opacity: 0; } 15% { opacity: 1; } 85% { opacity: 1; } 100% { transform: translateX(-46px); opacity: 0; } }
  .flow h4 { font-size: 1.02rem; margin-bottom: 4px; }
  .flow p { font-size: .88rem; color: var(--text-2); line-height: 1.45; }
  .flow-loop { display: flex; align-items: center; gap: 14px; margin-top: 36px; padding: 16px 22px; border-radius: 999px; background: var(--turq-100); color: #04504a; font-weight: 600; width: fit-content; max-width: 100%; }
  :root[data-theme="dark"] .flow-loop { background: rgba(18, 196, 177, .14); color: var(--turq-300); }
  .flow-loop .ic { width: 22px; height: 22px; flex: none; }
  @media (max-width: 1000px) {
    .flow { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 34px; }
    .flow li::before, .flow li::after { display: none !important; }
    .flow li { padding-inline-end: 18px; }
  }
  @media (max-width: 560px) { .flow { grid-template-columns: minmax(0, 1fr); } .flow-loop { border-radius: 22px; } }
  .use-card { display: grid; gap: 14px; align-content: start; }
  .use-card ul { display: grid; gap: 10px; }
  .use-card li { display: grid; grid-template-columns: 8px 1fr; gap: 12px; color: var(--text-2); font-size: .95rem; line-height: 1.45; }
  .use-card li::before { content: ""; width: 7px; height: 7px; margin-top: .55em; border-radius: 2px; transform: rotate(45deg); background: var(--turq); }
  .layers { display: grid; gap: 12px; }
  .layer { display: grid; grid-template-columns: minmax(180px, .38fr) minmax(0, 1fr); gap: 14px 28px; align-items: center; padding: 20px 24px; border-radius: var(--r-m); background: var(--surface); border: 1px solid var(--line); }
  .layer:nth-child(1) { border-inline-start: 6px solid var(--lapis); } .layer:nth-child(2) { border-inline-start: 6px solid var(--turq); } .layer:nth-child(3) { border-inline-start: 6px solid var(--sun); }
  .layer:nth-child(4) { border-inline-start: 6px solid var(--lapis-400); } .layer:nth-child(5) { border-inline-start: 6px solid var(--turq-600); } .layer:nth-child(6) { border-inline-start: 6px solid var(--sun-600); }
  .layer h3 { font-size: 1.12rem; } .layer small { display: block; color: var(--muted); font-size: .88rem; margin-top: 2px; }
  .layer .chips { gap: 8px; } .layer .chip { padding: 8px 14px; border-radius: 12px; font-size: .9rem; box-shadow: none; }
  @media (max-width: 760px) { .layer { grid-template-columns: minmax(0, 1fr); } }
  .note { margin-top: 22px; font-size: .85rem; color: var(--muted); max-width: 72ch; }
  .steps4 { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; counter-reset: s4; }
  .steps4 li { counter-increment: s4; padding: 24px; border-radius: var(--r-l); background: var(--surface); border: 1px solid var(--line); position: relative; display: grid; gap: 8px; align-content: start; }
  .steps4 li::before { content: counter(s4); width: 40px; height: 40px; border-radius: 50% 50% 8px 8px; display: grid; place-items: center; background: linear-gradient(180deg, #3d66f7, var(--lapis-700)); color: #fff; font-family: var(--f-display); font-weight: 800; margin-bottom: 8px; box-shadow: 0 10px 18px -8px rgba(27, 67, 219, .7); }
  .steps4 p { color: var(--text-2); font-size: .95rem; line-height: 1.5; }
  @media (max-width: 1000px) { .steps4 { grid-template-columns: repeat(2, minmax(0, 1fr)); } } @media (max-width: 560px) { .steps4 { grid-template-columns: minmax(0, 1fr); } }
  .demo-wrap { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: clamp(24px, 4vw, 64px); align-items: center; }
  @media (max-width: 900px) { .demo-wrap { grid-template-columns: minmax(0, 1fr); } }
  .demo-dark { padding-block: clamp(40px, 6vw, 88px); border-radius: var(--r-xl); margin-inline: 12px; color: #fff; background: radial-gradient(60% 70% at 100% 100%, rgba(18, 196, 177, .3), transparent 65%), linear-gradient(160deg, #0b1450, #070d26); }
  .demo-dark h2 { color: #fff; } .demo-dark .lead { color: #c3cffa; }

  /* ============================================================ technologies page */
  .tech-cat { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.4fr); gap: 20px clamp(24px, 5vw, 80px); padding-block: 36px; border-top: 1px solid var(--line); align-items: start; }
  .tech-cat h2 { font-size: clamp(1.5rem, 1.2rem + 1.2vw, 2.2rem); }
  .tech-cat p { color: var(--text-2); margin-top: 10px; max-width: 40ch; }
  .tech-cat__ico { margin-bottom: 14px; }
  @media (max-width: 800px) { .tech-cat { grid-template-columns: minmax(0, 1fr); } }
  .wordmarks { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 8px; }
  .wordmark { padding: 14px 22px; border-radius: 14px; font-family: var(--f-display); font-weight: 700; letter-spacing: -.02em; font-size: 1.05rem; color: var(--text-2); background: var(--surface); border: 1px dashed var(--line-2); }
  .principles { counter-reset: pr; }
  .principle { counter-increment: pr; }
  .principle h3::before { content: counter(pr) ". "; color: var(--lapis); }

  /* ============================================================ articles list */
  .filters { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 32px; }
  .filters button { padding: 9px 18px; border-radius: 999px; font-weight: 600; font-size: .92rem; border: 1px solid var(--line-2); color: var(--text-2); background: var(--surface); transition: all .2s; }
  .filters button:hover { border-color: var(--text); color: var(--text); }
  .filters button[aria-pressed="true"] { background: var(--text); color: var(--bg); border-color: var(--text); }
  .featured { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); border-radius: var(--r-xl); overflow: hidden; background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow-1); margin-bottom: clamp(16px, 2vw, 28px); color: var(--text); transition: box-shadow .4s var(--ease), transform .4s var(--ease); }
  .featured:hover { box-shadow: var(--shadow-2); transform: translateY(-3px); }
  .featured .post__cover { aspect-ratio: auto; min-height: 320px; }
  .featured .post__cover svg { height: 100%; }
  .featured__body { padding: clamp(24px, 3.4vw, 48px); display: grid; gap: 14px; align-content: center; }
  .featured h2 { font-size: clamp(1.6rem, 1.2rem + 1.6vw, 2.5rem); }
  .featured p { color: var(--text-2); }
  @media (max-width: 860px) { .featured { grid-template-columns: minmax(0, 1fr); } .featured .post__cover { min-height: 0; aspect-ratio: 16 / 8; } }

  /* ============================================================ article */
  .article-hero { padding: 12px 12px 0; }
  .article-hero__panel { border-radius: var(--r-xl); padding: calc(var(--header-h) + 44px) 0 clamp(28px, 4vw, 56px); background: radial-gradient(60% 80% at 100% 0%, color-mix(in srgb, var(--lapis-400) 28%, transparent), transparent 70%), linear-gradient(180deg, var(--sky-1), var(--sky-2) 80%, var(--sky-3)); }
  .article-hero h1 { font-size: clamp(2rem, 1.1rem + 3.4vw, 3.7rem); max-width: 22ch; letter-spacing: -.035em; }
  :root[data-theme="dark"] .article-hero h1 { color: #fff; }
  .article-hero .lead { margin-top: 18px; }
  .article-hero .post__cat { margin-block: 18px 14px; }
  .article-meta { display: flex; flex-wrap: wrap; gap: 8px 22px; margin-top: 22px; color: var(--text-2); font-size: .92rem; align-items: center; }
  .article-meta span { display: inline-flex; align-items: center; gap: 8px; } .article-meta .ic { width: 17px; height: 17px; }
  .article-cover { margin-top: clamp(-80px, -6vw, -40px); position: relative; z-index: 2; border-radius: var(--r-l); overflow: hidden; box-shadow: var(--shadow-2); aspect-ratio: 800 / 330; }
  .article-cover svg { width: 100%; height: 100%; }
  .article-layout { display: grid; grid-template-columns: 230px minmax(0, 720px); gap: clamp(28px, 5vw, 72px); justify-content: center; padding-block: clamp(36px, 5vw, 64px); }
  .toc { position: sticky; top: calc(var(--header-h) + 20px); align-self: start; display: grid; gap: 2px; padding-inline-start: 16px; border-inline-start: 2px solid var(--line); }
  .toc h2 { font-size: .85rem; font-weight: 600; color: var(--muted); margin-bottom: 8px; letter-spacing: 0; }
  .toc a { padding: 6px 0; font-size: .9rem; line-height: 1.35; color: var(--text-2); font-weight: 500; margin-inline-start: -18px; padding-inline-start: 16px; border-inline-start: 2px solid transparent; }
  .toc a:hover { color: var(--text); } .toc a.is-active { color: var(--lapis); font-weight: 700; border-color: var(--lapis); }
  :root[data-theme="dark"] .toc a.is-active { color: #9ab2ff; border-color: #9ab2ff; }
  @media (max-width: 1040px) { .article-layout { grid-template-columns: minmax(0, 720px); } .toc { display: none; } }
  .prose { font-size: clamp(1.02rem, .98rem + .25vw, 1.14rem); line-height: 1.75; color: var(--text-2); min-width: 0; }
  :root[lang="ar"] .prose { line-height: 2; }
  .prose > * + * { margin-top: 1.15em; }
  .prose h2 { margin-top: 2.2em; font-size: clamp(1.5rem, 1.25rem + 1vw, 2.05rem); color: var(--text); scroll-margin-top: 100px; }
  .prose h3 { margin-top: 1.8em; color: var(--text); }
  .prose strong { color: var(--text); font-weight: 650; }
  .prose a { text-decoration: underline; text-underline-offset: 3px; text-decoration-thickness: 1.5px; }
  .prose ul, .prose ol { padding-inline-start: 1.4em; display: grid; gap: .55em; }
  .prose ul { list-style: none; } .prose ul li { position: relative; }
  .prose ul li::before { content: ""; position: absolute; inset-inline-start: -1.1em; top: .75em; width: 6px; height: 6px; border-radius: 2px; transform: rotate(45deg); background: var(--turq); }
  .prose ol { list-style: decimal; } .prose ol li::marker { color: var(--lapis); font-weight: 700; }
  .prose code { font-size: .88em; padding: .15em .45em; border-radius: 6px; background: var(--surface-3); color: var(--text); direction: ltr; unicode-bidi: isolate; }
  .code { margin-block: 1.6em; border-radius: var(--r-m); overflow: hidden; background: var(--code-bg); box-shadow: var(--shadow-2); direction: ltr; text-align: left; }
  .code__bar { display: flex; justify-content: space-between; align-items: center; padding: 10px 14px 10px 18px; background: rgba(255, 255, 255, .05); border-bottom: 1px solid rgba(255, 255, 255, .08); color: #8fa0d8; font-size: .8rem; font-family: var(--f-body); }
  .code__bar i { display: inline-flex; gap: 6px; } .code__bar i b { width: 10px; height: 10px; border-radius: 50%; background: #3a4a8a; }
  .code__bar button { display: inline-flex; gap: 6px; align-items: center; padding: 5px 10px; border-radius: 8px; color: #c8d4ff; font-size: .8rem; font-weight: 600; } .code__bar button:hover { background: rgba(255, 255, 255, .1); }
  .code__bar button .ic { width: 14px; height: 14px; }
  .code pre { margin: 0; padding: 18px 20px 22px; overflow-x: auto; font-size: .86rem; line-height: 1.65; color: var(--code-text); tab-size: 2; }
  .code pre code { padding: 0; background: none; color: inherit; font-size: inherit; display: block; }
  .prose .code code { direction: ltr; }
  .table-wrap { overflow-x: auto; border-radius: var(--r-m); border: 1px solid var(--line); background: var(--surface); }
  .prose table { width: 100%; font-size: .93rem; min-width: 520px; }
  .prose th, .prose td { padding: 12px 16px; text-align: start; border-bottom: 1px solid var(--line); vertical-align: top; }
  .prose th { background: var(--surface-3); color: var(--text); font-weight: 650; font-size: .86rem; }
  .prose tr:last-child td { border-bottom: 0; }
  .callout { padding: 20px 24px; border-radius: var(--r-m); background: var(--sun-100); color: #4a3200; border-inline-start: 5px solid var(--sun); font-size: .98rem; line-height: 1.6; }
  :root[data-theme="dark"] .callout { background: rgba(255, 182, 46, .12); color: #ffe1a0; }
  .callout strong { color: inherit; }
  .article-foot { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 18px; align-items: center; margin-top: 48px; padding-top: 28px; border-top: 1px solid var(--line); }
  .tags { display: flex; flex-wrap: wrap; gap: 8px; }
  .tag { padding: 6px 14px; border-radius: 99px; font-size: .85rem; font-weight: 600; background: var(--surface-3); color: var(--text-2); }
  .tag:hover { background: var(--lapis-50); color: var(--lapis); }
  .share { display: flex; align-items: center; gap: 6px; color: var(--muted); font-size: .88rem; }
  .share a, .share button { width: 40px; height: 40px; display: grid; place-items: center; border-radius: 50%; border: 1px solid var(--line-2); color: var(--text-2); position: relative; } .share a:hover, .share button:hover { background: var(--surface-3); color: var(--text); }
  .share button.is-done { background: var(--turq); border-color: var(--turq); color: #03231f; }
  .author-box { display: grid; grid-template-columns: auto 1fr; gap: 18px; margin-top: 36px; padding: 24px; border-radius: var(--r-l); background: var(--surface); border: 1px solid var(--line); }
  .author-box .avatar { width: 52px; height: 52px; border-radius: 50%; display: grid; place-items: center; font-weight: 800; color: #fff; background: linear-gradient(145deg, #4c75ff, #0e2a9e); font-family: var(--f-display); }
  .author-box p { color: var(--text-2); font-size: .95rem; margin-top: 4px; line-height: 1.55; }

  /* ============================================================ about */
  .heritage { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, .95fr); gap: clamp(28px, 5vw, 80px); align-items: center; }
  .heritage__art { position: relative; border-radius: var(--r-xl); overflow: hidden; line-height: 0; background: linear-gradient(180deg, var(--sky-1), var(--sky-2) 65%, var(--sky-3)); padding: clamp(16px, 3vw, 40px) clamp(16px, 3vw, 40px) 0; }
  .heritage__art svg { width: 100%; height: auto; }
  .heritage .prose { color: var(--text-2); }
  .mv { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(14px, 2vw, 24px); }
  .mv .panel { padding: clamp(26px, 4vw, 48px); } .mv h2 { font-size: clamp(1.5rem, 1.2rem + 1.2vw, 2.1rem); } .mv p { font-size: 1.04rem; }
  @media (max-width: 800px) { .heritage, .mv { grid-template-columns: minmax(0, 1fr); } }
  .timeline { position: relative; display: grid; gap: 0; padding-inline-start: 38px; }
  .timeline::before { content: ""; position: absolute; inset-inline-start: 11px; top: 8px; bottom: 8px; width: 3px; border-radius: 3px; background: linear-gradient(180deg, var(--lapis), var(--turq), var(--sun)); }
  .tl { position: relative; padding-bottom: 34px; display: grid; grid-template-columns: 90px minmax(0, 1fr); gap: 8px 24px; }
  .tl::before { content: ""; position: absolute; inset-inline-start: -35px; top: 6px; width: 17px; height: 17px; border-radius: 50%; background: var(--bg); border: 4px solid var(--lapis); }
  .tl b { font-family: var(--f-display); font-size: 1.5rem; letter-spacing: -.03em; color: var(--lapis); } :root[data-theme="dark"] .tl b { color: #9ab2ff; }
  .tl p { color: var(--text-2); max-width: 56ch; margin-top: 4px; }
  @media (max-width: 560px) { .tl { grid-template-columns: minmax(0, 1fr); } }
  .team-ico { margin-bottom: 4px; }

  /* ============================================================ contact */
  .contact-layout { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); gap: clamp(24px, 4vw, 56px); align-items: start; }
  @media (max-width: 960px) { .contact-layout { grid-template-columns: minmax(0, 1fr); } }
  .form { padding: clamp(24px, 3.4vw, 44px); border-radius: var(--r-xl); background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow-2); display: grid; gap: 18px; }
  .form h2 { font-size: clamp(1.5rem, 1.2rem + 1.2vw, 2.1rem); }
  .form__lead { color: var(--text-2); font-size: .96rem; }
  .form__row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; } @media (max-width: 560px) { .form__row { grid-template-columns: minmax(0, 1fr); } }
  .field { display: grid; gap: 7px; } .field label { font-weight: 600; font-size: .9rem; }
  .field input, .field select, .field textarea { width: 100%; padding: 14px 16px; border-radius: 14px; border: 1.5px solid var(--line-2); background: var(--surface-2); color: var(--text); transition: border-color .2s, box-shadow .2s, background-color .2s; min-height: 50px; }
  .field textarea { min-height: 150px; resize: vertical; line-height: 1.5; }
  .field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--lapis); box-shadow: 0 0 0 4px color-mix(in srgb, var(--lapis) 20%, transparent); background: var(--surface); }
  .field input[type="email"], .field input[type="tel"] { direction: ltr; text-align: start; }
  [dir="rtl"] .field input[type="email"], [dir="rtl"] .field input[type="tel"] { text-align: right; }
  .form__note { font-size: .82rem; color: var(--muted); }
  .form__ok { display: none; padding: 16px 20px; border-radius: 14px; background: var(--turq-100); color: #04504a; font-weight: 600; }
  :root[data-theme="dark"] .form__ok { background: rgba(18, 196, 177, .16); color: var(--turq-300); }
  .form.is-sent .form__ok { display: block; }
  .contact-side { display: grid; gap: 14px; }
  .quick { display: grid; gap: 4px; }
  .quick a { display: flex; align-items: center; gap: 14px; padding: 16px 18px; border-radius: var(--r-m); background: var(--surface); border: 1px solid var(--line); font-weight: 600; color: var(--text); }
  .quick a:hover { border-color: var(--lapis-300); }
  .quick .gico { width: 44px; height: 44px; border-radius: 14px; } .quick .gico .ic { width: 22px; height: 22px; }
  .quick small { display: block; color: var(--muted); font-weight: 500; font-size: .82rem; }

  /* ============================================================ legal & 404 */
  .legal { padding-top: calc(var(--header-h) + 56px); padding-bottom: 40px; }
  .legal h1 { font-size: clamp(2.2rem, 1.2rem + 3.6vw, 3.8rem); margin-block: 14px 12px; }
  .legal .prose h2 { font-size: 1.5rem; margin-top: 1.8em; }

  /* ============================================================ additions (page heroes, article width, AI constellation) */
  .container--article { width: min(100% - 2 * var(--gutter), 1040px); margin-inline: auto; }
  .page-hero__art--card { align-self: end; }
  .art-card { line-height: 0; border-radius: 28px 28px 0 0; overflow: hidden; box-shadow: 0 -10px 60px -20px rgba(11, 21, 53, .45); transform: translateY(1px); }
  .art-card svg { width: 100%; height: auto; }
  .page-hero__art--sunk { margin-bottom: -16%; max-width: 440px; }
  .page-hero__art--sunk svg { filter: drop-shadow(0 30px 40px rgba(11, 21, 53, .35)); }
  .page-hero__grid--solo .page-hero__copy { padding-bottom: clamp(36px, 5vw, 64px); }
  .constellation-wrap { position: relative; line-height: 0; }
  .constellation-wrap svg { width: 100%; height: auto; }
  .cchip { position: absolute; line-height: 1.2; padding: 8px 14px; border-radius: 99px; font-size: .8rem; font-weight: 600; color: #e8efff; background: rgba(10, 18, 70, .72); border: 1px solid rgba(255, 255, 255, .2); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); white-space: nowrap; box-shadow: 0 10px 24px -12px rgba(0, 0, 0, .6); }
  .cchip--1 { top: 8%; inset-inline-start: 6%; } .cchip--2 { top: 20%; inset-inline-end: 0; } .cchip--3 { bottom: 20%; inset-inline-start: 0; }
  .cchip--4 { bottom: 6%; inset-inline-end: 8%; } .cchip--5 { top: 46%; inset-inline-end: 34%; display: none; }
  @media (max-width: 860px) { .constellation-wrap { max-width: 440px; margin-inline: auto; } .cchip { font-size: .72rem; padding: 6px 10px; } }
  .article-hero .container--article { display: grid; gap: 0; justify-items: start; }
  .article-hero__panel { padding-bottom: clamp(96px, 10vw, 150px); }
  .article-hero .crumbs { margin-bottom: 4px; }
  .read-progress { z-index: 150; }
  .ai-hero .page-hero__copy .hero-actions { margin-top: 8px; }
  .quick a { min-width: 0; }
  .quick a > span:last-child { min-width: 0; }
  .chat { max-width: 640px; width: 100%; justify-self: end; }
  .demo-dark .chat { justify-self: stretch; max-width: none; }
  .faq-layout { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: clamp(24px, 5vw, 80px); align-items: start; }
  .faq-layout .sec-head { margin: 0; position: sticky; top: calc(var(--header-h) + 32px); }
  .faq-layout .faq { max-width: none; }
  @media (max-width: 860px) { .faq-layout { grid-template-columns: minmax(0, 1fr); gap: 28px; } .faq-layout .sec-head { position: static; } }
  .nf .page-hero__grid { min-height: clamp(400px, 44vw, 560px); }
}

