/* ==========================================================================
   AL-WASET First Company — site.css (v9)
   One stylesheet for every page and every edition (en / ar / zh).
   Logical properties throughout (RTL-safe). Light + dark themes share the
   same component code and only swap the semantic tokens below.
   ========================================================================== */

/* -------------------------------------------------------------- 1. tokens */
:root {
  --ink-950: #06131f; --ink-900: #0b1f33; --ink-850: #0e2840; --ink-800: #10304f;
  --ink-700: #17395b; --ink-600: #25507b; --ink-500: #3b6a99;
  --gold-50: #fbf6ea; --gold-100: #f6ecd2; --gold-200: #efdcb0; --gold-300: #e6cf9c;
  --gold-400: #d8b977; --gold-500: #c9a55a; --gold-600: #a98437; --gold-700: #85662a; --gold-800: #66501f;

  --bg: #f6f3ec;
  --surface: #ffffff;
  --surface-alt: #ffffff;
  --surface-2: #f3efe6;
  --surface-3: #e9e3d6;
  --border: #e5ddcd;
  --border-strong: #d4c9b3;
  --text: #2a3542;
  --text-strong: #0b1f33;
  --text-muted: #56626f;
  --text-subtle: #7a8693;
  --accent-text: #85662a;
  --accent-soft: #fbf6ea;
  --link: #1d4f86;
  --link-hover: #0b1f33;
  --success: #1f7a4d; --success-bg: #eaf6ef; --success-border: #bfe3cb;
  --danger: #b3261e; --danger-bg: #fdeeec; --danger-border: #f3c1bc;
  --shadow-xs: 0 1px 2px rgba(11, 31, 51, .05);
  --shadow-sm: 0 1px 2px rgba(11, 31, 51, .05), 0 3px 8px -4px rgba(11, 31, 51, .1);
  --shadow-md: 0 14px 30px -16px rgba(11, 31, 51, .3), 0 2px 6px -2px rgba(11, 31, 51, .06);
  --shadow-lg: 0 30px 64px -30px rgba(11, 31, 51, .45), 0 4px 12px -4px rgba(11, 31, 51, .08);
  --ring: 0 0 0 4px rgba(201, 165, 90, .24);
  --overlay: rgba(6, 19, 31, .58);

  --font-sans: "Inter", ui-sans-serif, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", sans-serif;
  --font-serif: "Source Serif 4", "Source Serif Pro", Georgia, "Times New Roman", serif;
  --font-display: var(--font-serif);
  --font-law: var(--font-serif);

  --r-xs: 6px; --r-sm: 10px; --r-md: 14px; --r-lg: 20px; --r-xl: 28px; --r-pill: 999px;
  --container: 1240px; --narrow: 860px; --gutter: clamp(1rem, 4vw, 2.5rem);
  --hdr-h: 72px;
  --ease: cubic-bezier(.2, .7, .2, 1);
  --ease-out: cubic-bezier(.16, 1, .3, 1);
  --ease-spring: cubic-bezier(.34, 1.56, .64, 1);
  --law-size: 1.08rem;
  --lattice: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='48' height='48'%3E%3Cpath d='M24 19l5 5-5 5-5-5z' fill='%23c9a55a' fill-opacity='.09'/%3E%3C/svg%3E");
  color-scheme: light;
}

:root[data-theme="dark"] {
  --bg: #08121c;
  --surface: #0f1d2b;
  --surface-alt: #0b1824;
  --surface-2: #132435;
  --surface-3: #1a2e43;
  --border: rgba(214, 226, 238, .09);
  --border-strong: rgba(214, 226, 238, .18);
  --text: #c5cfd9;
  --text-strong: #f2f5f8;
  --text-muted: #9aa9b8;
  --text-subtle: #74859a;
  --accent-text: #e0c48a;
  --accent-soft: rgba(201, 165, 90, .12);
  --link: #9cc3ee;
  --link-hover: #ffffff;
  --success: #74d6a3; --success-bg: rgba(31, 122, 77, .18); --success-border: rgba(116, 214, 163, .3);
  --danger: #f6a59e; --danger-bg: rgba(179, 38, 30, .2); --danger-border: rgba(246, 165, 158, .3);
  --shadow-xs: 0 1px 2px rgba(0, 0, 0, .4);
  --shadow-sm: 0 1px 2px rgba(0, 0, 0, .35), 0 4px 10px -6px rgba(0, 0, 0, .5);
  --shadow-md: 0 16px 32px -18px rgba(0, 0, 0, .75);
  --shadow-lg: 0 34px 70px -32px rgba(0, 0, 0, .9);
  --overlay: rgba(0, 0, 0, .62);
  color-scheme: dark;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #08121c;
    --surface: #0f1d2b;
    --surface-alt: #0b1824;
    --surface-2: #132435;
    --surface-3: #1a2e43;
    --border: rgba(214, 226, 238, .09);
    --border-strong: rgba(214, 226, 238, .18);
    --text: #c5cfd9;
    --text-strong: #f2f5f8;
    --text-muted: #9aa9b8;
    --text-subtle: #74859a;
    --accent-text: #e0c48a;
    --accent-soft: rgba(201, 165, 90, .12);
    --link: #9cc3ee;
    --link-hover: #ffffff;
    --success: #74d6a3; --success-bg: rgba(31, 122, 77, .18); --success-border: rgba(116, 214, 163, .3);
    --danger: #f6a59e; --danger-bg: rgba(179, 38, 30, .2); --danger-border: rgba(246, 165, 158, .3);
    --shadow-xs: 0 1px 2px rgba(0, 0, 0, .4);
    --shadow-sm: 0 1px 2px rgba(0, 0, 0, .35), 0 4px 10px -6px rgba(0, 0, 0, .5);
    --shadow-md: 0 16px 32px -18px rgba(0, 0, 0, .75);
    --shadow-lg: 0 34px 70px -32px rgba(0, 0, 0, .9);
    --overlay: rgba(0, 0, 0, .62);
    color-scheme: dark;
  }
}

/* language-specific type */
html[lang="ar"] {
  --font-sans: "IBM Plex Sans Arabic", "Inter", "Segoe UI", Tahoma, "Noto Sans Arabic", sans-serif;
  --font-display: "Noto Naskh Arabic", "Source Serif 4", Georgia, serif;
}
html[lang="zh-Hans"] {
  --font-sans: "Inter", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Noto Sans SC", "Source Han Sans SC", sans-serif;
  --font-display: "Source Serif 4", "Noto Serif SC", "Songti SC", "STSong", "SimSun", serif;
}
/* English passages inside the other editions keep the Latin faces
   (zero specificity, so components such as the law text can still pick their own face) */
:where(html:not([lang="en"])) :where([lang="en"]) {
  --font-sans: "Inter", ui-sans-serif, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  --font-display: "Source Serif 4", Georgia, "Times New Roman", serif;
  font-family: var(--font-sans);
}

/* ---------------------------------------------------------------- 2. base */
*, *::before, *::after { box-sizing: border-box; }
html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-padding-top: calc(var(--hdr-h) + 1rem);
}
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }
body {
  margin: 0;
  min-height: 100vh;
  background: var(--bg);
  color: var(--text);
  font: 400 1.0625rem/1.65 var(--font-sans);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}
html[lang="ar"] body { font-size: 1.1rem; line-height: 1.85; }
html[lang="zh-Hans"] body { line-height: 1.8; }
main { display: block; outline: none; }
h1, h2, h3, h4 {
  margin: 0 0 .5em;
  color: var(--text-strong);
  font-family: var(--font-display);
  font-weight: 600;
  line-height: 1.15;
  letter-spacing: -.015em;
  text-wrap: balance;
}
html[lang="ar"] :is(h1, h2, h3, h4) { letter-spacing: 0; line-height: 1.45; font-weight: 700; }
html[lang="zh-Hans"] :is(h1, h2, h3, h4) { letter-spacing: .01em; line-height: 1.35; font-weight: 700; }
p { margin: 0 0 1em; text-wrap: pretty; }
a { color: var(--link); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--link-hover); }
img, video { display: block; max-width: 100%; height: auto; }
button { font: inherit; }
strong { font-weight: 650; color: var(--text-strong); }
:focus-visible { outline: 2px solid var(--gold-500); outline-offset: 3px; border-radius: 4px; }
::selection { background: var(--gold-300); color: var(--ink-950); }
[hidden] { display: none !important; }
kbd { font-family: var(--font-sans); }

.sr-only {
  position: absolute !important; width: 1px; height: 1px; margin: -1px; padding: 0;
  overflow: hidden; clip-path: inset(50%); white-space: nowrap; border: 0;
}
.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }
.icon {
  display: inline-block; flex: none; width: 1.15em; height: 1.15em; vertical-align: -.2em;
  fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round;
}
[dir="rtl"] .icon--flip { transform: scaleX(-1); }
.icon--back { transform: scaleX(-1); }
[dir="rtl"] .icon--back { transform: none; }

.skip-link {
  position: fixed; z-index: 200; inset-inline-start: 1rem; top: 1rem;
  padding: .7rem 1.1rem; border-radius: var(--r-sm);
  background: var(--gold-500); color: var(--ink-950); font-weight: 700; text-decoration: none;
  transform: translateY(-200%); transition: transform .2s var(--ease);
}
.skip-link:focus { transform: none; }

.container { width: min(var(--container), 100% - 2 * var(--gutter)); margin-inline: auto; }
.container--narrow { width: min(var(--narrow), 100% - 2 * var(--gutter)); }
.stretched::after { content: ""; position: absolute; inset: 0; z-index: 1; border-radius: inherit; }

/* ------------------------------------------------------------ 3. buttons */
.btn {
  --btn-bg: var(--surface); --btn-fg: var(--text-strong); --btn-bd: var(--border-strong);
  position: relative; isolation: isolate; overflow: hidden;
  display: inline-flex; align-items: center; justify-content: center; gap: .55rem;
  min-height: 2.85rem; padding: .7rem 1.3rem;
  border: 1px solid var(--btn-bd); border-radius: var(--r-sm);
  background: var(--btn-bg); color: var(--btn-fg);
  font-size: .93rem; font-weight: 650; line-height: 1.2; letter-spacing: .005em;
  text-decoration: none; white-space: nowrap; cursor: pointer;
  transition: transform .2s var(--ease), box-shadow .25s ease, background .25s ease, border-color .25s ease, color .25s ease, filter .25s ease;
}
.btn:hover { color: var(--btn-fg); text-decoration: none; transform: translateY(-1px); }
.btn:active { transform: translateY(0) scale(.985); }
.btn:disabled, .btn[aria-disabled="true"] { opacity: .65; cursor: progress; transform: none; }
.btn .icon { width: 1.1em; height: 1.1em; transition: translate .25s var(--ease); }
.btn:hover .icon--flip { translate: 3px 0; }
[dir="rtl"] .btn:hover .icon--flip { translate: -3px 0; }

.btn--primary {
  --btn-bg: linear-gradient(135deg, var(--gold-300), var(--gold-500) 52%, var(--gold-600));
  --btn-fg: var(--ink-950); --btn-bd: transparent;
  box-shadow: 0 10px 24px -12px rgba(169, 132, 55, .85), inset 0 1px 0 rgba(255, 255, 255, .45);
}
.btn--primary:hover { filter: brightness(1.05); box-shadow: 0 18px 32px -14px rgba(169, 132, 55, .95), inset 0 1px 0 rgba(255, 255, 255, .5); }
.btn--dark { --btn-bg: var(--ink-900); --btn-fg: #fff; --btn-bd: var(--ink-900); box-shadow: 0 10px 22px -14px rgba(6, 19, 31, .8); }
.btn--dark:hover { --btn-bg: var(--ink-700); --btn-bd: var(--ink-700); }
:root[data-theme="dark"] .btn--dark { --btn-bg: var(--surface-3); --btn-bd: var(--border-strong); }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .btn--dark { --btn-bg: var(--surface-3); --btn-bd: var(--border-strong); } }
.btn--ghost { --btn-bg: transparent; --btn-fg: var(--text-strong); --btn-bd: var(--border-strong); }
.btn--ghost:hover { --btn-bg: var(--surface); --btn-bd: var(--text-strong); }
.btn--glass {
  --btn-bg: rgba(255, 255, 255, .06); --btn-fg: #fff; --btn-bd: rgba(255, 255, 255, .24);
  -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px);
}
.btn--glass:hover { --btn-bg: #fff; --btn-fg: var(--ink-900); --btn-bd: #fff; }
.btn--etravel {
  --btn-bg: linear-gradient(135deg, #f6dd2f 0%, #e9cb1b 45%, #c7a709 100%);
  --btn-fg: #1d1405; --btn-bd: transparent;
  border-radius: var(--r-pill); font-weight: 800; padding-inline: .5rem 1.1rem;
  box-shadow: 0 10px 22px -10px rgba(233, 203, 27, .85), inset 0 1px 0 rgba(255, 255, 255, .55);
}
.btn--etravel:hover { filter: brightness(1.05); box-shadow: 0 16px 30px -12px rgba(233, 203, 27, .95), inset 0 1px 0 rgba(255, 255, 255, .6); }
.btn--etravel__logo {
  display: inline-grid; place-items: center; width: 1.75em; height: 1.75em; flex: none;
  border-radius: 50%; background: #fff; box-shadow: 0 1px 4px rgba(0, 0, 0, .25);
}
.btn--etravel__logo img { width: 1.15em; height: 1.15em; border-radius: 3px; }
.btn--sm { min-height: 2.3rem; padding: .45rem .9rem; font-size: .84rem; }
.btn--lg { min-height: 3.2rem; padding: .85rem 1.5rem; font-size: 1rem; border-radius: var(--r-md); }
.btn--etravel.btn--lg { border-radius: var(--r-pill); padding-inline: .6rem 1.4rem; }
.btn--block { width: 100%; }

/* moving sheen on the main calls to action */
.btn--shine::after, .btn--etravel::after {
  content: ""; position: absolute; z-index: -1; inset-block: 0; inset-inline-start: -60%; width: 42%;
  background: linear-gradient(100deg, transparent, rgba(255, 255, 255, .6), transparent);
  transform: skewX(-20deg); transition: inset-inline-start .75s var(--ease); pointer-events: none;
}
.btn--shine:hover::after, .btn--etravel:hover::after { inset-inline-start: 130%; }

.btn__spinner {
  display: none; width: 1em; height: 1em; border-radius: 50%;
  border: 2px solid currentColor; border-inline-end-color: transparent; animation: spin .7s linear infinite;
}
.btn.is-loading .btn__spinner { display: inline-block; }
.btn.is-loading .icon { display: none; }

.btn-row { display: flex; flex-wrap: wrap; gap: .75rem; margin-top: 2rem; }

.link-arrow {
  display: inline-flex; align-items: center; gap: .45rem;
  color: var(--link); font-weight: 650; text-decoration: none;
}
.link-arrow:hover { color: var(--link-hover); }
.link-arrow .icon { transition: translate .25s var(--ease); }
.link-arrow:hover .icon--flip { translate: 4px 0; }
[dir="rtl"] .link-arrow:hover .icon--flip { translate: -4px 0; }

/* -------------------------------------------------------------- 4. chips */
.chip {
  display: inline-flex; align-items: center; gap: .35rem;
  padding: .22rem .7rem; border-radius: var(--r-pill);
  background: var(--accent-soft); border: 1px solid color-mix(in srgb, var(--gold-500) 35%, transparent);
  color: var(--accent-text); font-size: .76rem; font-weight: 650; letter-spacing: .02em;
  white-space: nowrap; font-variant-numeric: tabular-nums;
}
.chip--muted { background: var(--surface-2); border-color: var(--border); color: var(--text-muted); }
.chip--btn { cursor: pointer; font-family: var(--font-sans); transition: background .2s, border-color .2s, color .2s, transform .2s; }
.chip--btn:hover { background: var(--gold-500); border-color: var(--gold-500); color: var(--ink-950); transform: translateY(-1px); }

.eyebrow {
  display: inline-flex; align-items: center; gap: .65rem; margin: 0 0 1rem;
  font-family: var(--font-sans); font-size: .74rem; font-weight: 700; letter-spacing: .2em;
  text-transform: uppercase; color: var(--accent-text);
}
.eyebrow::before {
  content: ""; width: .5rem; height: .5rem; flex: none; transform: rotate(45deg);
  background: linear-gradient(135deg, var(--gold-300), var(--gold-600));
  box-shadow: 0 0 0 3px rgba(201, 165, 90, .18);
}
.eyebrow--light { color: var(--gold-300); }
html[lang="ar"] .eyebrow { letter-spacing: 0; text-transform: none; font-size: .9rem; }
html[lang="zh-Hans"] .eyebrow { letter-spacing: .1em; font-size: .8rem; }

.meter {
  display: inline-block; width: 72px; height: 4px; flex: none; overflow: hidden;
  border-radius: 4px; background: rgba(255, 255, 255, .12);
}
.meter i {
  display: block; height: 100%; width: calc(var(--v, 0) * 100%); border-radius: inherit;
  background: linear-gradient(90deg, var(--gold-600), var(--gold-300));
  transform-origin: left; transform: scaleX(0); transition: transform 1.4s var(--ease-out) .25s;
}
[dir="rtl"] .meter i { transform-origin: right; }
.meter.is-on i, html:not(.js) .meter i { transform: none; }
.meter--wide { flex: 1; width: auto; min-width: 60px; background: var(--surface-3); }

/* ------------------------------------------------------------ 5. header */
.hdr {
  position: sticky; top: 0; z-index: 60;
  background: var(--ink-950); color: #fff;
  border-bottom: 1px solid rgba(201, 165, 90, .16);
  transition: box-shadow .3s ease;
}
.hdr::before {
  content: ""; position: absolute; inset-inline: 0; top: 0; height: 2px;
  background: linear-gradient(90deg, transparent, var(--gold-500) 18%, var(--gold-300) 50%, var(--gold-500) 82%, transparent);
}
.hdr.is-scrolled { box-shadow: 0 12px 34px -14px rgba(0, 0, 0, .65); }
.hdr__bar { display: flex; align-items: center; gap: 1rem; min-height: var(--hdr-h); }

.brand { display: inline-flex; align-items: center; gap: .75rem; min-width: 0; color: #fff; text-decoration: none; }
.brand:hover { color: #fff; }
.brand__mark {
  width: 44px; height: 44px; flex: none; border-radius: 12px;
  box-shadow: 0 0 0 1px rgba(201, 165, 90, .28), 0 8px 18px -8px rgba(0, 0, 0, .7);
  transition: transform .5s var(--ease-spring);
}
.brand:hover .brand__mark { transform: rotate(-6deg) scale(1.06); }
.brand__text { display: flex; flex-direction: column; min-width: 0; }
.brand__name {
  font-family: var(--font-display); font-size: 1.08rem; font-weight: 600; line-height: 1.15;
  color: #fff; white-space: nowrap;
}
.brand__sub {
  margin-top: .22rem; font-size: .62rem; font-weight: 600; letter-spacing: .18em;
  text-transform: uppercase; color: var(--gold-400); white-space: nowrap;
}
html[lang="ar"] .brand__name { font-size: 1.2rem; }
html[lang="ar"] .brand__sub { letter-spacing: 0; text-transform: none; font-size: .74rem; }
html[lang="zh-Hans"] .brand__sub { letter-spacing: .08em; font-size: .68rem; }
.brand--sm .brand__mark { width: 38px; height: 38px; }

.nav { margin-inline-start: auto; }
.nav__list { display: flex; gap: .1rem; margin: 0; padding: 0; list-style: none; }
.nav__link {
  position: relative; display: block; padding: .55rem .8rem; border-radius: var(--r-sm);
  color: #c9d3de; font-size: .9rem; font-weight: 500; white-space: nowrap; text-decoration: none;
  transition: color .2s, background-color .2s;
}
html[lang="ar"] .nav__link { font-size: .98rem; }
.nav__link::after {
  content: ""; position: absolute; inset-inline: .8rem; bottom: .32rem; height: 2px; border-radius: 2px;
  background: var(--gold-500); transform: scaleX(0); transition: transform .35s var(--ease-out);
}
.nav__link:hover { color: #fff; background: rgba(255, 255, 255, .06); }
.nav__link:hover::after { transform: scaleX(.4); }
.nav__link[aria-current="page"] { color: #fff; }
.nav__link[aria-current="page"]::after { transform: scaleX(1); }

.hdr__tools { display: flex; align-items: center; gap: .4rem; flex: none; }
.tool {
  display: inline-flex; align-items: center; justify-content: center; gap: .45rem;
  min-width: 40px; height: 40px; padding: 0 .65rem; border-radius: var(--r-sm);
  border: 1px solid rgba(255, 255, 255, .12); background: rgba(255, 255, 255, .04);
  color: #d5dde6; font-size: .82rem; font-weight: 600; cursor: pointer;
  transition: background-color .2s, border-color .2s, color .2s;
}
.tool:hover { background: rgba(255, 255, 255, .1); border-color: rgba(201, 165, 90, .55); color: #fff; }
.tool[aria-expanded="true"] { background: rgba(201, 165, 90, .14); border-color: rgba(201, 165, 90, .55); color: #fff; }
.tool .icon { width: 1.15rem; height: 1.15rem; }
.tool--search { padding-inline: .7rem .45rem; color: #9fb0c2; }
.tool__kbd {
  padding: .12rem .4rem; border-radius: 6px; border: 1px solid rgba(255, 255, 255, .16);
  background: rgba(255, 255, 255, .05); color: #9fb0c2; font-size: .68rem; font-weight: 600;
}
.icon--sun { display: none; }
:root[data-theme="dark"] .icon--moon { display: none; }
:root[data-theme="dark"] .icon--sun { display: inline-block; }
.tool--menu { display: none; }
.tool--light { background: var(--surface); border-color: var(--border); color: var(--text); }
.tool--light:hover { background: var(--surface-2); border-color: var(--border-strong); color: var(--text-strong); }
.hdr__etravel { min-height: 40px; padding: .3rem .95rem .3rem .35rem; font-size: .86rem; }

.menu { position: relative; }
.menu__list {
  position: absolute; z-index: 70; top: calc(100% + .55rem); inset-inline-end: 0; min-width: 210px;
  margin: 0; padding: .4rem; list-style: none;
  background: var(--ink-900); border: 1px solid rgba(255, 255, 255, .12); border-radius: var(--r-md);
  box-shadow: 0 24px 48px -20px rgba(0, 0, 0, .8); animation: pop .2s var(--ease-out);
}
.menu__item {
  display: flex; align-items: center; gap: .75rem; padding: .6rem .75rem; border-radius: var(--r-sm);
  color: #d5dde6; font-size: .92rem; text-decoration: none;
}
.menu__item:hover { background: rgba(255, 255, 255, .07); color: #fff; }
.menu__item[aria-current] { background: rgba(201, 165, 90, .14); color: #fff; }
.menu__item-code { min-width: 2.2rem; color: var(--gold-400); font-size: .72rem; font-weight: 700; letter-spacing: .06em; }

.hdr__progress { position: absolute; inset-inline: 0; bottom: -1px; height: 2px; pointer-events: none; }
.hdr__progress i {
  display: block; height: 100%; transform-origin: left; transform: scaleX(var(--p, 0));
  background: linear-gradient(90deg, var(--gold-600), var(--gold-300));
}
[dir="rtl"] .hdr__progress i { transform-origin: right; }

/* mobile drawer */
.drawer { position: fixed; inset: 0; z-index: 90; }
.drawer__backdrop {
  position: absolute; inset: 0; background: var(--overlay);
  -webkit-backdrop-filter: blur(4px); backdrop-filter: blur(4px);
  opacity: 0; transition: opacity .35s ease;
}
.drawer__panel {
  position: absolute; inset-block: 0; inset-inline-end: 0; width: min(420px, 100%);
  display: flex; flex-direction: column; gap: 1.1rem; overflow-y: auto; overscroll-behavior: contain;
  padding: 1rem 1.25rem max(1.5rem, env(safe-area-inset-bottom));
  background: radial-gradient(500px 300px at 100% 0%, rgba(201, 165, 90, .14), transparent 60%), var(--ink-950);
  color: #fff; box-shadow: -30px 0 80px -20px rgba(0, 0, 0, .6);
  transform: translateX(100%); transition: transform .45s var(--ease-out);
}
[dir="rtl"] .drawer__panel { transform: translateX(-100%); }
.drawer.is-open .drawer__backdrop { opacity: 1; }
.drawer.is-open .drawer__panel { transform: none; }
.drawer__head { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding-bottom: .5rem; border-bottom: 1px solid rgba(255, 255, 255, .08); }
.drawer__nav { display: grid; gap: .3rem; margin: 0; padding: 0; list-style: none; }
.drawer__link {
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  padding: .9rem 1rem; border-radius: var(--r-md); border: 1px solid transparent;
  color: #e6ecf2; font-family: var(--font-display); font-size: 1.3rem; text-decoration: none;
  transition: background-color .2s, border-color .2s;
}
.drawer__link .icon { color: var(--gold-400); }
.drawer__link:hover { background: rgba(255, 255, 255, .05); color: #fff; }
.drawer__link[aria-current="page"] { background: rgba(201, 165, 90, .12); border-color: rgba(201, 165, 90, .35); color: #fff; }
.drawer.is-open .drawer__nav li { animation: slideIn .5s var(--ease-out) both; }
.drawer.is-open .drawer__nav li:nth-child(2) { animation-delay: .04s; }
.drawer.is-open .drawer__nav li:nth-child(3) { animation-delay: .08s; }
.drawer.is-open .drawer__nav li:nth-child(4) { animation-delay: .12s; }
.drawer.is-open .drawer__nav li:nth-child(5) { animation-delay: .16s; }
.drawer__label { margin: .25rem 0 -.4rem; font-size: .7rem; font-weight: 700; letter-spacing: .18em; text-transform: uppercase; color: var(--gold-400); }
html[lang="ar"] .drawer__label { letter-spacing: 0; font-size: .85rem; }
.drawer__langs { display: grid; grid-template-columns: repeat(3, 1fr); gap: .45rem; margin: 0; padding: 0; list-style: none; }
.drawer__lang {
  display: flex; flex-direction: column; align-items: center; gap: .1rem; padding: .65rem .4rem;
  border-radius: var(--r-sm); border: 1px solid rgba(255, 255, 255, .12);
  color: #d5dde6; font-size: .86rem; text-decoration: none;
}
.drawer__lang:hover { color: #fff; border-color: rgba(201, 165, 90, .5); }
.drawer__lang-code { color: var(--gold-400); font-size: .72rem; font-weight: 700; }
.drawer__lang[aria-current] { background: rgba(201, 165, 90, .14); border-color: var(--gold-500); color: #fff; }
.drawer__actions { display: grid; gap: .6rem; margin-top: auto; padding-top: 1rem; }
.drawer .btn--ghost { --btn-fg: #fff; --btn-bd: rgba(255, 255, 255, .18); }
.drawer .btn--ghost:hover { --btn-bg: rgba(255, 255, 255, .08); --btn-bd: rgba(201, 165, 90, .6); }
.drawer .btn--etravel { padding-inline: .5rem 1rem; }
html.is-locked, html.is-locked body { overflow: hidden; }

/* ----------------------------------------------------------- 6. sections */
.section { position: relative; padding-block: clamp(4rem, 8vw, 7rem); }
.section--tight { padding-block: clamp(1.5rem, 3vw, 2.5rem); }
.section--alt { background: var(--surface-alt); border-block: 1px solid var(--border); }
.section--dark { isolation: isolate; overflow: hidden; background: var(--ink-950); color: #c3cdd8; }
.section-dark__pattern {
  position: absolute; inset: -48px; z-index: -1; background-image: var(--lattice);
  -webkit-mask-image: radial-gradient(ellipse at 70% 30%, #000 20%, transparent 70%);
  mask-image: radial-gradient(ellipse at 70% 30%, #000 20%, transparent 70%);
  animation: drift 22s linear infinite;
}
.section-head { max-width: 48rem; margin-bottom: clamp(2rem, 4vw, 3.25rem); }
.section-head--center { margin-inline: auto; text-align: center; }
.section-head--split {
  display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between;
  gap: 1rem 2.5rem; max-width: none;
}
.section-head--split > div { max-width: 46rem; }
.section-title { font-size: clamp(1.9rem, 1.25rem + 2vw, 2.9rem); line-height: 1.1; margin-bottom: .45em; }
.section-title--light { color: #fff; }
.section-title--center, .section-lede--center { margin-inline: auto; text-align: center; }
.section-lede { max-width: 62ch; margin: 0; color: var(--text-muted); font-size: clamp(1.02rem, .98rem + .25vw, 1.16rem); }
.prose p { color: var(--text-muted); }

/* reveal on scroll (classes set by site.js; removed again once played) */
.js [data-reveal] {
  opacity: 0; translate: 0 22px;
  transition: opacity .85s var(--ease-out), translate .85s var(--ease-out);
  transition-delay: calc(var(--i, 0) * 80ms);
}
.js [data-reveal].is-in { opacity: 1; translate: none; }

/* headline split into words (site.js) */
.split-w { display: inline-block; overflow: hidden; vertical-align: bottom; padding-block: .12em; margin-block: -.12em; }
/* theme switch: circular reveal driven by site.js (View Transitions API) */
::view-transition-old(root), ::view-transition-new(root) { animation: none; mix-blend-mode: normal; }
.split-w > span {
  display: inline-block; transform: translateY(108%);
  animation: wordUp 1s var(--ease-out) forwards; animation-delay: calc(var(--w, 0) * 55ms + 120ms);
}

/* --------------------------------------------------------------- 7. hero */
.hero {
  position: relative; isolation: isolate; overflow: hidden;
  padding-block: clamp(4.5rem, 9vw, 8.5rem) clamp(3.5rem, 7vw, 6rem);
  background: var(--ink-950); color: #c9d3de;
}
.hero__media { position: absolute; inset: 0; z-index: -4; }
.hero__media img {
  width: 100%; height: 100%; object-fit: cover; object-position: center 55%;
  filter: saturate(.8) contrast(1.05); transform: scale(1.06);
  animation: ken 28s ease-in-out infinite alternate;
}
.hero::before {
  content: ""; position: absolute; inset: 0; z-index: -3;
  background:
    linear-gradient(90deg, rgba(6, 19, 31, .97) 0%, rgba(6, 19, 31, .88) 42%, rgba(6, 19, 31, .58) 100%),
    linear-gradient(0deg, rgba(6, 19, 31, .96) 0%, rgba(6, 19, 31, 0) 50%);
}
[dir="rtl"] .hero::before {
  background:
    linear-gradient(270deg, rgba(6, 19, 31, .97) 0%, rgba(6, 19, 31, .88) 42%, rgba(6, 19, 31, .58) 100%),
    linear-gradient(0deg, rgba(6, 19, 31, .96) 0%, rgba(6, 19, 31, 0) 50%);
}
.hero::after {
  content: ""; position: absolute; inset-inline: 0; bottom: 0; height: 1px;
  background: linear-gradient(90deg, transparent, rgba(201, 165, 90, .7), transparent);
}
.hero__glow {
  position: absolute; z-index: -1; top: -30%; inset-inline-end: -12%; width: 55vw; aspect-ratio: 1;
  border-radius: 50%; pointer-events: none;
  background: radial-gradient(closest-side, rgba(201, 165, 90, .2), transparent);
  animation: float 16s ease-in-out infinite alternate;
}
.hero__grid { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, .85fr); gap: clamp(2rem, 5vw, 4.5rem); align-items: end; }
.hero__copy > * { animation: rise .9s var(--ease-out) both; }
.hero__copy > :nth-child(3) { animation-delay: .15s; }
.hero__copy > :nth-child(4) { animation-delay: .25s; }
.hero__copy > :nth-child(5) { animation-delay: .35s; }
.hero__title {
  max-width: 17ch; margin-bottom: .4em; color: #fff;
  font-size: clamp(2.5rem, 1.35rem + 4.2vw, 4.7rem); line-height: 1.03; letter-spacing: -.025em;
}
html[lang="ar"] .hero__title { line-height: 1.35; font-size: clamp(2.2rem, 1.3rem + 3.4vw, 4rem); }
html[lang="zh-Hans"] .hero__title { line-height: 1.25; font-size: clamp(2.1rem, 1.2rem + 3.2vw, 3.8rem); max-width: 20ch; }
.hero__title::after {
  content: ""; display: block; width: 96px; height: 4px; margin-top: .4em; border-radius: 4px;
  background: linear-gradient(90deg, var(--gold-400), transparent);
}
[dir="rtl"] .hero__title::after { background: linear-gradient(270deg, var(--gold-400), transparent); }
.hero__lede { max-width: 58ch; margin: 0; color: #b9c6d3; font-size: clamp(1.05rem, 1rem + .35vw, 1.24rem); }

.stats {
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); max-width: 640px; margin-top: 2.6rem;
  overflow: hidden; border: 1px solid rgba(255, 255, 255, .12); border-radius: var(--r-lg);
  background: linear-gradient(135deg, rgba(255, 255, 255, .06), rgba(255, 255, 255, .02));
}
.stat { padding: 1.1rem 1.25rem; }
.stat + .stat { border-inline-start: 1px solid rgba(255, 255, 255, .1); }
.stat__num {
  display: block; color: var(--gold-300); font-family: var(--font-serif); font-weight: 600;
  font-size: clamp(1.9rem, 1.45rem + 1.4vw, 2.7rem); line-height: 1; font-variant-numeric: tabular-nums;
}
.stat__label {
  display: block; margin-top: .5rem; color: #93a3b4;
  font-size: .72rem; font-weight: 600; letter-spacing: .12em; text-transform: uppercase;
}
html[lang="ar"] .stat__label, html[lang="zh-Hans"] .stat__label { letter-spacing: 0; text-transform: none; font-size: .86rem; }

.hero-panel {
  position: relative; padding: 1.5rem 1.4rem 1rem; border-radius: var(--r-xl);
  background: linear-gradient(160deg, rgba(23, 57, 91, .62), rgba(6, 19, 31, .78));
  border: 1px solid rgba(255, 255, 255, .12);
  box-shadow: 0 40px 80px -40px rgba(0, 0, 0, .9), inset 0 1px 0 rgba(255, 255, 255, .08);
  -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px);
  animation: rise 1s var(--ease-out) .3s both;
}
.hero-panel::before {
  content: ""; position: absolute; top: -1px; inset-inline: 1.5rem; height: 3px; border-radius: 0 0 3px 3px;
  background: linear-gradient(90deg, var(--gold-600), var(--gold-300));
}
.hero-panel__title {
  margin: 0 .5rem .75rem; color: var(--gold-300);
  font-size: .72rem; font-weight: 700; letter-spacing: .2em; text-transform: uppercase;
}
html[lang="ar"] .hero-panel__title, html[lang="zh-Hans"] .hero-panel__title { letter-spacing: .02em; text-transform: none; font-size: .95rem; }
.hero-panel__list { display: grid; gap: .3rem; margin: 0; padding: 0; list-style: none; }
.hero-doc {
  display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: .4rem 1rem; align-items: center;
  padding: .85rem .8rem; border-radius: var(--r-md); border: 1px solid transparent;
  color: #fff; text-decoration: none; transition: background-color .25s, border-color .25s;
}
.hero-doc:hover { background: rgba(255, 255, 255, .06); border-color: rgba(201, 165, 90, .35); color: #fff; }
.hero-doc__name { font-family: var(--font-display); font-size: 1.04rem; font-weight: 600; line-height: 1.35; }
.hero-doc__meta { display: flex; align-items: center; gap: .7rem; color: #93a3b4; font-size: .78rem; }
.hero-doc__go { grid-row: 1 / span 2; grid-column: 2; color: var(--gold-400); transition: translate .3s var(--ease); }
.hero-doc:hover .hero-doc__go { translate: 4px 0; }
[dir="rtl"] .hero-doc:hover .hero-doc__go { translate: -4px 0; }
.hero-panel__all {
  display: flex; align-items: center; justify-content: center; gap: .5rem; margin-top: .6rem; padding: .85rem;
  border-top: 1px solid rgba(255, 255, 255, .08); color: var(--gold-300); font-size: .88rem; font-weight: 650; text-decoration: none;
}
.hero-panel__all:hover { color: #fff; }

/* hero illustration: crane + drifting lattice (markup kept from v8) */
.hero-fx { position: absolute; inset: 0; z-index: -2; pointer-events: none; overflow: hidden; }
.hero-fx__lattice-wrap { position: absolute; inset: 0; transition: transform .6s var(--ease); }
.hero-fx__lattice {
  position: absolute; inset: -60px; background-image: var(--lattice);
  animation: drift 18s linear infinite;
  -webkit-mask-image: linear-gradient(90deg, transparent 0%, #000 55%); mask-image: linear-gradient(90deg, transparent 0%, #000 55%);
}
[dir="rtl"] .hero-fx__lattice { -webkit-mask-image: linear-gradient(270deg, transparent 0%, #000 55%); mask-image: linear-gradient(270deg, transparent 0%, #000 55%); }
.hero-fx__crane { position: absolute; bottom: 0; inset-inline-end: 0; width: min(980px, 100%); height: 100%; transition: transform .6s var(--ease); }
.hero-fx__crane svg { display: block; width: 100%; height: 100%; }
[dir="rtl"] .hero-fx__crane svg { transform: scaleX(-1); }
.crane-in { animation: rise 1.4s var(--ease) .3s both; }
.crane-trolley { animation: trolley 14s cubic-bezier(.45, .05, .35, 1) infinite; }
.crane-cable { transform-box: fill-box; transform-origin: 50% 0; transform: scaleY(.2); animation: cable 14s cubic-bezier(.45, .05, .35, 1) infinite; }
.crane-load { transform: translateY(60px); animation: load 14s cubic-bezier(.45, .05, .35, 1) infinite; }
.crane-sway { transform-box: fill-box; transform-origin: 50% 0; animation: sway 3.5s ease-in-out infinite alternate; }
.crane-blink { animation: blink 2.4s ease-in-out infinite; }
.crane-blink2 { animation: blink 2.4s ease-in-out 1.2s infinite; }
.crane-floor { transform-box: fill-box; transform-origin: 50% 100%; animation: floor 14s ease-out infinite; }
.crane-floor.f2 { animation-delay: .25s; }
.crane-floor.f3 { animation-delay: .5s; }
.crane2-trolley { animation: trolley2 17s cubic-bezier(.45, .05, .35, 1) infinite; }
.crane2-cable { transform-box: fill-box; transform-origin: 50% 0; transform: scaleY(.25); animation: cable2 17s cubic-bezier(.45, .05, .35, 1) infinite; }
.crane2-load { transform: translateY(30px); animation: load2 17s cubic-bezier(.45, .05, .35, 1) infinite; }

/* ticker band */
.ticker {
  overflow: hidden; background: var(--ink-900); color: #aeb9c6;
  border-block: 1px solid rgba(255, 255, 255, .07);
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
}
.ticker__track { display: flex; width: max-content; animation: marquee 46s linear infinite; }
.ticker:hover .ticker__track { animation-play-state: paused; }
.ticker__group {
  display: flex; align-items: center; gap: 2.4rem; padding: 1rem 1.2rem; white-space: nowrap;
  font-size: .76rem; font-weight: 600; letter-spacing: .16em; text-transform: uppercase;
}
html[lang="ar"] .ticker__group, html[lang="zh-Hans"] .ticker__group { letter-spacing: .02em; font-size: .92rem; }
.ticker__dia { color: var(--gold-500); font-size: .6rem; }
[dir="rtl"] .ticker__track { animation-name: marqueeRtl; }

/* ---------------------------------------------------- 8. home components */
.doc-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.25rem; }
.doc-card {
  position: relative; isolation: isolate; overflow: hidden;
  display: flex; flex-direction: column; gap: .9rem;
  padding: clamp(1.4rem, 2.5vw, 2rem); border-radius: var(--r-lg);
  background: var(--surface); border: 1px solid var(--border); box-shadow: var(--shadow-sm);
  transition: transform .4s var(--ease-out), box-shadow .4s ease, border-color .4s ease;
}
.doc-card::before {
  content: ""; position: absolute; inset: 0; z-index: -1; border-radius: inherit; pointer-events: none;
  background: radial-gradient(420px circle at var(--mx, 50%) var(--my, 0%), rgba(201, 165, 90, .13), transparent 45%);
  opacity: 0; transition: opacity .4s ease;
}
.doc-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-lg); border-color: color-mix(in srgb, var(--gold-500) 50%, var(--border)); }
.doc-card:hover::before { opacity: 1; }
.doc-card__top { display: flex; align-items: center; justify-content: space-between; gap: 1rem; }
.doc-card__num {
  font-family: var(--font-serif); font-size: 2.8rem; font-weight: 600; line-height: 1;
  color: transparent; -webkit-text-stroke: 1.2px var(--gold-500); transition: color .4s ease;
}
.doc-card:hover .doc-card__num { color: var(--gold-500); }
.doc-card__meta { color: var(--accent-text); font-size: .72rem; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; }
html[lang="ar"] .doc-card__meta, html[lang="zh-Hans"] .doc-card__meta { letter-spacing: .02em; text-transform: none; font-size: .88rem; }
.doc-card__title { margin: 0; font-size: clamp(1.3rem, 1.1rem + .6vw, 1.6rem); }
.doc-card__title a { color: inherit; text-decoration: none; }
.doc-card__desc { margin: 0; color: var(--text-muted); }
.doc-card__foot { display: flex; align-items: center; gap: 1rem; margin-top: auto; padding-top: 1.1rem; border-top: 1px solid var(--border); }
.doc-card__go { display: inline-flex; align-items: center; gap: .4rem; color: var(--link); font-size: .9rem; font-weight: 650; white-space: nowrap; }
.doc-card__go .icon { transition: translate .3s var(--ease); }
.doc-card:hover .doc-card__go .icon { translate: 4px 0; }
[dir="rtl"] .doc-card:hover .doc-card__go .icon { translate: -4px 0; }

.feature-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.25rem; }
.feature {
  position: relative; display: flex; flex-direction: column; align-items: flex-start;
  padding: 2rem 1.75rem; border-radius: var(--r-lg); background: var(--bg); border: 1px solid var(--border);
  transition: transform .4s var(--ease-out), box-shadow .4s ease, border-color .4s ease;
}
.feature:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); border-color: color-mix(in srgb, var(--gold-500) 45%, var(--border)); }
.feature__icon {
  display: inline-grid; place-items: center; width: 3.1rem; height: 3.1rem; margin-bottom: 1.3rem; border-radius: 15px;
  background: linear-gradient(135deg, var(--ink-700), var(--ink-950)); color: var(--gold-300);
  box-shadow: 0 12px 22px -12px rgba(6, 19, 31, .7), inset 0 1px 0 rgba(255, 255, 255, .1);
  transition: transform .5s var(--ease-spring);
}
.feature:hover .feature__icon { transform: rotate(-8deg) scale(1.06); }
.feature__icon .icon { width: 1.45rem; height: 1.45rem; }
.feature h3 { font-size: 1.28rem; }
.feature p { color: var(--text-muted); }
.feature .link-arrow { margin-top: auto; }

.gallery { display: grid; gap: 1.1rem; grid-template-columns: repeat(var(--cols, 3), minmax(0, 1fr)); }
.gallery--4 { --cols: 4; }
.gallery__item { margin: 0; }
.gallery__link {
  position: relative; display: block; overflow: hidden; aspect-ratio: 4 / 5;
  border-radius: var(--r-lg); background: var(--surface-3); box-shadow: var(--shadow-md);
}
.gallery__link img { width: 100%; height: 100%; object-fit: cover; transition: transform 1s var(--ease-out); }
.gallery__link::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(180deg, transparent 55%, rgba(6, 19, 31, .5)); transition: opacity .4s ease;
}
.gallery__link:hover img { transform: scale(1.06); }
.gallery__zoom {
  position: absolute; z-index: 1; top: 1rem; inset-inline-end: 1rem;
  display: grid; place-items: center; width: 2.6rem; height: 2.6rem; border-radius: 50%;
  background: rgba(255, 255, 255, .92); color: var(--ink-900); box-shadow: var(--shadow-md);
  opacity: 0; transform: scale(.75); transition: opacity .3s ease, transform .4s var(--ease-spring);
}
.gallery__link:hover .gallery__zoom, .gallery__link:focus-visible .gallery__zoom { opacity: 1; transform: none; }
.gallery__item figcaption { display: flex; align-items: baseline; gap: .6rem; margin-top: .85rem; color: var(--text-muted); font-size: .9rem; }
.gallery__item figcaption::before { content: ""; width: 7px; height: 7px; flex: none; transform: translateY(-1px) rotate(45deg); background: var(--gold-500); }
@media (min-width: 900px) { .gallery--stagger .gallery__item:nth-child(2) { margin-top: 3.5rem; } }

.steps { position: relative; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1.5rem; margin: 0; padding: 0; list-style: none; }
.steps::before, .steps::after {
  content: ""; position: absolute; top: 1.4rem; inset-inline: 1.4rem; height: 2px; border-radius: 2px;
}
.steps::before { background: var(--border-strong); }
.steps::after {
  background: linear-gradient(90deg, var(--gold-600), var(--gold-300));
  transform-origin: left; transform: scaleX(0); transition: transform 1.8s var(--ease-out) .2s;
}
[dir="rtl"] .steps::after { transform-origin: right; }
.steps.is-on::after { transform: none; }
.step { position: relative; }
.step__dot {
  position: relative; z-index: 1; display: inline-grid; place-items: center; width: 2.8rem; height: 2.8rem; margin-bottom: 1.1rem;
  border-radius: 50%; background: var(--ink-900); color: #fff;
  font-family: var(--font-serif); font-size: 1.05rem; font-weight: 700;
  box-shadow: 0 0 0 6px var(--surface-alt);
  transition: background-color .5s ease, color .5s ease, transform .5s var(--ease-spring);
}
.steps.is-on .step__dot { background: var(--gold-500); color: var(--ink-950); }
.steps.is-on .step:nth-child(2) .step__dot { transition-delay: .45s; }
.steps.is-on .step:nth-child(3) .step__dot { transition-delay: .9s; }
.steps.is-on .step:nth-child(4) .step__dot { transition-delay: 1.35s; }
.step:hover .step__dot { transform: scale(1.12); }
.step h3 { margin-bottom: .35rem; font-size: 1.22rem; }
.step p { margin: 0; color: var(--text-muted); font-size: .98rem; }

.split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); gap: clamp(2rem, 6vw, 5rem); align-items: center; }
.split__copy .btn { margin-top: 1.75rem; }
.split__copy .section-lede + .section-lede { margin-top: 1rem; }
.split__media { position: relative; isolation: isolate; margin: 0; }
.split__media::before {
  content: ""; position: absolute; z-index: -1; inset-block: 1.5rem -1.5rem; inset-inline: 1.5rem -1.5rem;
  border: 1px solid var(--gold-400); border-radius: var(--r-xl);
}
.split__media img { width: 100%; aspect-ratio: 5 / 4; object-fit: cover; border-radius: var(--r-xl); box-shadow: var(--shadow-lg); }
.split__badge {
  position: absolute; bottom: 2rem; inset-inline-start: -1.25rem;
  display: flex; flex-direction: column; padding: 1rem 1.3rem; border-radius: var(--r-md);
  background: var(--ink-950); border: 1px solid rgba(201, 165, 90, .35); box-shadow: var(--shadow-lg); color: #fff;
}
.split__badge strong { color: var(--gold-300); font-family: var(--font-serif); font-size: 2.3rem; line-height: 1; }
.split__badge span { margin-top: .3rem; color: #93a3b4; font-size: .74rem; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; }

.banner {
  display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 1.25rem 2rem;
  padding: clamp(1.5rem, 3vw, 2.25rem); border-radius: var(--r-xl);
  background: linear-gradient(135deg, var(--accent-soft), var(--surface));
  border: 1px solid color-mix(in srgb, var(--gold-500) 35%, transparent); box-shadow: var(--shadow-sm);
}
.banner__icon {
  display: grid; place-items: center; width: 3.6rem; height: 3.6rem; border-radius: 16px;
  background: linear-gradient(135deg, var(--ink-700), var(--ink-950)); color: var(--gold-300);
}
.banner__icon .icon { width: 1.6rem; height: 1.6rem; }
.banner__title { margin-bottom: .3rem; font-size: 1.35rem; }
.banner p { margin: 0; color: var(--text-muted); }

.cta {
  position: relative; isolation: isolate; overflow: hidden; padding-block: clamp(4rem, 8vw, 6.5rem);
  background:
    radial-gradient(900px 400px at 85% 0%, rgba(201, 165, 90, .2), transparent 60%),
    radial-gradient(700px 360px at 0% 100%, rgba(37, 80, 123, .45), transparent 60%),
    var(--ink-950);
  color: #c3cdd8;
}
.cta__pattern {
  position: absolute; inset: -48px; z-index: -1; background-image: var(--lattice); animation: drift 18s linear infinite;
  -webkit-mask-image: radial-gradient(ellipse at center, #000 25%, transparent 72%); mask-image: radial-gradient(ellipse at center, #000 25%, transparent 72%);
}
.cta__inner { display: grid; grid-template-columns: minmax(0, 1.4fr) auto; align-items: end; gap: 2rem 3rem; }
.cta__title { max-width: 20ch; color: #fff; font-size: clamp(2rem, 1.35rem + 2.4vw, 3.2rem); }
.cta__text { max-width: 58ch; margin: 0; color: #b9c6d3; }
.cta .btn-row { margin: 0; }

/* foreign-branch section (English edition) */
.branch { overflow: hidden; isolation: isolate; background: linear-gradient(var(--bg), color-mix(in srgb, var(--gold-500) 9%, var(--bg)) 130%); }
.branch::before {
  content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background: radial-gradient(800px 340px at 92% 0%, rgba(201, 165, 90, .18), transparent 60%), radial-gradient(700px 340px at 0% 100%, rgba(23, 57, 91, .1), transparent 60%);
}
.branch h2 { max-width: 22ch; font-size: clamp(1.9rem, 1.25rem + 2vw, 2.9rem); }
.branch .lede { max-width: 66ch; color: var(--text-muted); font-size: 1.1rem; }
.branch-stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: .8rem; margin: 2rem 0 0; padding: 0; list-style: none; }
.branch-stats li { padding: 1.1rem 1rem; text-align: center; border-radius: var(--r-lg); background: var(--surface); border: 1px solid var(--border); box-shadow: var(--shadow-sm); }
.branch-stats b { display: block; color: var(--text-strong); font-family: var(--font-serif); font-size: 2rem; line-height: 1.1; font-weight: 600; font-variant-numeric: tabular-nums; }
.branch-stats b.branch-capital { color: var(--gold-600); }
.branch-stats span { color: var(--text-subtle); font-size: .72rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; }
.branch-nav {
  position: sticky; top: calc(var(--hdr-h) + .75rem); z-index: 4; display: flex; flex-wrap: wrap; gap: .3rem; width: fit-content;
  margin: 1.6rem 0 0; padding: .35rem; border-radius: var(--r-pill);
  background: color-mix(in srgb, var(--surface) 92%, transparent); border: 1px solid var(--border); box-shadow: var(--shadow-md);
  -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
}
.branch-nav a { padding: .5rem 1.05rem; border-radius: var(--r-pill); color: var(--text-strong); font-size: .86rem; font-weight: 650; text-decoration: none; transition: background-color .2s, color .2s; }
.branch-nav a:hover, .branch-nav a.is-active { background: var(--ink-900); color: #fff; }
.branch h3[id] { margin: 3rem 0 1.25rem; font-size: clamp(1.35rem, 1.1rem + .8vw, 1.8rem); scroll-margin-top: calc(var(--hdr-h) + 5rem); }
.branch-kicker { display: block; margin-bottom: .35rem; color: var(--accent-text); font-family: var(--font-sans); font-size: .72rem; font-weight: 700; letter-spacing: .22em; text-transform: uppercase; }
.branch-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); grid-auto-flow: dense; gap: 1rem; }
.branch-card {
  position: relative; overflow: hidden; padding: 1.4rem 1.3rem 1.2rem; border-radius: var(--r-lg);
  background: var(--surface); border: 1px solid var(--border); box-shadow: var(--shadow-sm);
  transition: transform .4s var(--ease-out), box-shadow .3s ease, border-color .3s ease;
}
.branch-card::before {
  content: ""; position: absolute; inset-inline: 0; top: 0; height: 3px;
  background: linear-gradient(90deg, var(--gold-600), var(--gold-300)); transform: scaleX(0); transform-origin: left; transition: transform .45s var(--ease-out);
}
.branch-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); border-color: color-mix(in srgb, var(--gold-500) 45%, var(--border)); }
.branch-card:hover::before { transform: none; }
.branch-card--wide { grid-column: span 2; }
.branch-ghost { position: absolute; top: .2rem; inset-inline-end: .7rem; color: var(--text-strong); opacity: .07; font-family: var(--font-serif); font-size: 3.4rem; font-weight: 600; line-height: 1; pointer-events: none; }
.branch-field { margin: 0 0 .3rem; color: var(--accent-text); font-size: .68rem; font-weight: 700; letter-spacing: .2em; text-transform: uppercase; }
.branch-card h4 { margin: 0 0 .6rem; font-size: 1.15rem; }
.branch-card ul { display: grid; gap: .45rem; margin: 0; padding: 0; list-style: none; color: var(--text); font-size: .94rem; }
.branch-card ul li { position: relative; padding-inline-start: 1.35rem; line-height: 1.6; }
.branch-card ul li::before { content: ""; position: absolute; inset-inline-start: 0; top: .62em; width: 7px; height: 7px; transform: rotate(45deg); background: var(--gold-500); }
.branch-docs {
  padding: clamp(1.4rem, 3vw, 2.2rem); border-radius: var(--r-xl); color: #c9d3de;
  background: var(--lattice), radial-gradient(600px 260px at 100% 0%, rgba(201, 165, 90, .16), transparent 60%), var(--ink-950);
  border: 1px solid var(--ink-800); box-shadow: var(--shadow-lg);
}
.branch-docs ol { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .4rem 2rem; margin: 0; padding: 0; list-style: none; counter-reset: doc; }
.branch-docs ol li { display: flex; gap: 1rem; padding: .9rem .4rem; border-bottom: 1px solid rgba(255, 255, 255, .08); counter-increment: doc; }
.branch-docs ol li::before {
  content: counter(doc, decimal-leading-zero); flex: 0 0 2.5rem; height: 2.5rem; display: inline-grid; place-items: center;
  border-radius: 50%; background: rgba(201, 165, 90, .14); border: 1px solid rgba(201, 165, 90, .45);
  color: var(--gold-300); font-family: var(--font-serif); font-weight: 700;
}
.branch-docs strong { display: block; color: #fff; font-size: 1rem; }
.branch-docs span { display: block; color: #b9c6d3; font-size: .93rem; }
.branch-docs b { color: var(--gold-300); }
.branch-note { margin: 1.2rem 0 0; padding: .9rem 1.1rem; border-radius: var(--r-md); background: rgba(201, 165, 90, .1); border: 1px solid rgba(201, 165, 90, .4); color: #e9dfc6; font-size: .9rem; }
.branch-no { padding: clamp(1.2rem, 2.6vw, 1.8rem); border-radius: var(--r-lg); background: var(--surface); border: 1px solid var(--border); border-inline-start: 4px solid #b04a3a; }
.branch-no ol { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .6rem 1.5rem; margin: 0; padding-inline-start: 1.5rem; }
.branch-no li { line-height: 1.6; }
.branch-no li::marker { color: #b04a3a; font-weight: 700; }
.branch-source { margin-top: 1.2rem; }
.source-note {
  padding: .9rem 1.1rem; border-radius: var(--r-sm); background: var(--surface-2); border: 1px solid var(--border);
  color: var(--text-muted); font-size: .86rem;
}

/* --------------------------------------------- 9. currency converter */
.fx { overflow: hidden; border-radius: var(--r-xl); background: var(--surface); border: 1px solid var(--border); box-shadow: var(--shadow-lg); scroll-margin-top: calc(var(--hdr-h) + 1.5rem); }
.fx__head {
  display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 1rem;
  padding: 1.6rem clamp(1.25rem, 3vw, 2rem); color: #fff;
  background: var(--lattice), radial-gradient(600px 220px at 100% 0%, rgba(201, 165, 90, .22), transparent 60%), linear-gradient(135deg, var(--ink-950), var(--ink-800));
}
.fx__head .eyebrow { margin-bottom: .5rem; }
.fx__title { margin: 0; color: #fff; font-size: clamp(1.45rem, 1.1rem + 1.1vw, 2rem); }
.fx__status {
  display: inline-flex; align-items: center; gap: .5rem; margin: 0; padding: .4rem .8rem; border-radius: var(--r-pill);
  background: rgba(255, 255, 255, .06); border: 1px solid rgba(255, 255, 255, .12); color: #b9c6d3; font-size: .78rem;
}
.fx__status:has([data-fx-status-text]:empty) { visibility: hidden; }
.fx__pulse { width: .5rem; height: .5rem; flex: none; border-radius: 50%; background: #4ade80; animation: pulse 2s infinite; }
.fx__status[data-state="stale"] .fx__pulse { background: var(--gold-400); animation: none; }
.fx__status[data-state="invalid"] .fx__pulse { background: #f87171; animation: none; }
.fx__status[data-state="loading"] .fx__pulse { background: #93c5fd; }
.fx__controls { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.3fr) auto; gap: .85rem; align-items: end; padding: 1.6rem clamp(1.25rem, 3vw, 2rem) 1rem; }
.fx__label { display: block; margin-bottom: .45rem; color: var(--accent-text); font-size: .72rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; }
html[lang="ar"] .fx__label { letter-spacing: 0; font-size: .85rem; }
.fx__input { font-family: var(--font-serif) !important; font-size: 1.45rem !important; font-weight: 600; font-variant-numeric: tabular-nums; }
.fx__input[aria-invalid="true"] { border-color: var(--danger); box-shadow: 0 0 0 4px color-mix(in srgb, var(--danger) 16%, transparent); }
.fx__refresh { min-height: 3.1rem; }
.fx__refresh.is-spinning .icon { animation: spin .8s linear infinite; }
.fx__grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(9.4rem, 1fr)); gap: .7rem; margin: 0; padding: .5rem clamp(1.25rem, 3vw, 2rem) 1.4rem; list-style: none; }
.fx__tile {
  position: relative; display: flex; flex-direction: column; gap: .2rem; width: 100%; min-width: 0; padding: .9rem 1rem;
  border-radius: var(--r-md); background: var(--bg); border: 1px solid var(--border);
  color: inherit; text-align: start; cursor: pointer;
  transition: transform .25s var(--ease), box-shadow .25s ease, border-color .25s ease, background-color .25s ease;
}
.fx__tile:hover { transform: translateY(-2px); border-color: var(--gold-400); box-shadow: var(--shadow-md); }
.fx__tile[aria-pressed="true"] { background: var(--accent-soft); border-color: var(--gold-500); box-shadow: inset 0 0 0 1px var(--gold-500); }
.fx__code { display: flex; align-items: center; gap: .5rem; color: var(--accent-text); font-size: .76rem; font-weight: 700; letter-spacing: .08em; }
.fx__sym {
  display: inline-grid; place-items: center; min-width: 1.7rem; height: 1.7rem; padding: 0 .25rem; border-radius: var(--r-pill);
  background: var(--ink-900); color: var(--gold-300); font-size: .72rem; letter-spacing: 0;
}
.fx__value { overflow: hidden; color: var(--text-strong); font-family: var(--font-serif); font-size: 1.32rem; font-weight: 600; font-variant-numeric: tabular-nums; white-space: nowrap; text-overflow: ellipsis; }
.fx__rate { overflow: hidden; color: var(--text-subtle); font-size: .74rem; white-space: nowrap; text-overflow: ellipsis; }
.fx__tile.is-loading .fx__value { width: 70%; border-radius: 6px; color: transparent; background: linear-gradient(90deg, var(--surface-3), var(--surface-2), var(--surface-3)); background-size: 200% 100%; animation: shimmer 1.4s linear infinite; }
.fx__tile.is-flash .fx__value { animation: flash .6s ease; }
.fx__note { margin: 0; padding: 1rem clamp(1.25rem, 3vw, 2rem) 1.4rem; border-top: 1px solid var(--border); color: var(--text-subtle); font-size: .8rem; }

/* --------------------------------------------------------- 10. page hero */
.page-hero {
  position: relative; isolation: isolate; overflow: hidden; color: #c3cdd8;
  padding-block: clamp(3.5rem, 7vw, 6rem) clamp(3rem, 6vw, 5rem); background: var(--ink-950);
}
.page-hero__bg {
  position: absolute; inset: 0; z-index: -2;
  background:
    radial-gradient(900px 380px at 88% -20%, rgba(201, 165, 90, .2), transparent 60%),
    radial-gradient(700px 300px at 0% 120%, rgba(37, 80, 123, .45), transparent 60%),
    linear-gradient(160deg, var(--ink-950), var(--ink-900) 60%, var(--ink-800));
}
.page-hero__bg::after {
  content: ""; position: absolute; inset: 0; opacity: .55;
  background-image: linear-gradient(rgba(255, 255, 255, .035) 1px, transparent 1px), linear-gradient(90deg, rgba(255, 255, 255, .035) 1px, transparent 1px);
  background-size: 56px 56px;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 65%); mask-image: linear-gradient(90deg, transparent, #000 65%);
}
[dir="rtl"] .page-hero__bg::after { -webkit-mask-image: linear-gradient(270deg, transparent, #000 65%); mask-image: linear-gradient(270deg, transparent, #000 65%); }
.page-hero::after {
  content: ""; position: absolute; inset-inline: 0; bottom: 0; height: 1px;
  background: linear-gradient(90deg, transparent, rgba(201, 165, 90, .7), transparent);
}
.page-hero--photo .page-hero__bg {
  background:
    linear-gradient(90deg, rgba(6, 19, 31, .97) 0%, rgba(6, 19, 31, .86) 48%, rgba(6, 19, 31, .55) 100%),
    var(--hero-photo) center 40% / cover no-repeat, var(--ink-950);
}
[dir="rtl"] .page-hero--photo .page-hero__bg {
  background:
    linear-gradient(270deg, rgba(6, 19, 31, .97) 0%, rgba(6, 19, 31, .86) 48%, rgba(6, 19, 31, .55) 100%),
    var(--hero-photo) center 40% / cover no-repeat, var(--ink-950);
}
.page-hero--about { --hero-photo: url("../../images/photo-1-plant-800.jpg"); }
.page-hero--contact { --hero-photo: url("../../images/photo-2-warehouse-800.jpg"); }
.page-hero__inner { position: relative; }
.page-hero__inner > * { animation: rise .9s var(--ease-out) both; }
.page-hero__inner > :nth-child(3) { animation-delay: .12s; }
.page-hero__inner > :nth-child(4) { animation-delay: .22s; }
.page-hero__inner > :nth-child(5) { animation-delay: .32s; }
.page-hero__title { max-width: 22ch; margin-bottom: .4em; color: #fff; font-size: clamp(2.2rem, 1.35rem + 3vw, 3.9rem); line-height: 1.07; }
html[lang="ar"] .page-hero__title { line-height: 1.4; }
.page-hero__title::after {
  content: ""; display: block; width: 76px; height: 4px; margin-top: .45em; border-radius: 4px;
  background: linear-gradient(90deg, var(--gold-400), transparent);
}
[dir="rtl"] .page-hero__title::after { background: linear-gradient(270deg, var(--gold-400), transparent); }
.page-hero__lede { max-width: 62ch; margin: 0; color: #b9c6d3; font-size: clamp(1.05rem, 1rem + .3vw, 1.2rem); }
.page-hero .btn-row { margin-top: 2rem; }
.page-hero .stats--compact { margin-top: 2rem; }
.page-hero__art { position: absolute; z-index: -1; inset-inline-end: 4%; bottom: 8%; height: 72%; width: auto; color: #8ea3b8; opacity: .6; pointer-events: none; }
.art-sheet { fill: var(--ink-900); stroke-opacity: .6; }
.art-gold { stroke: var(--gold-500); }
.art-top { transform-box: fill-box; transform-origin: 0 100%; animation: flip 6s var(--ease-out) infinite; }
.art-line { stroke-dasharray: 120; stroke-dashoffset: 120; animation: write 6s ease-in-out infinite; }
.art-line:nth-of-type(2) { animation-delay: .3s; }
.art-line:nth-of-type(3) { animation-delay: .6s; }
.art-line:nth-of-type(4) { animation-delay: .9s; }
[dir="rtl"] .page-hero__art { transform: scaleX(-1); }

.crumbs ol { display: flex; flex-wrap: wrap; align-items: center; gap: .45rem; margin: 0 0 1.6rem; padding: 0; list-style: none; color: #93a3b4; font-size: .84rem; }
.crumbs li + li::before { content: "/"; margin-inline-end: .45rem; color: rgba(255, 255, 255, .25); }
.crumbs a { color: #c9d3de; text-decoration: none; }
.crumbs a:hover { color: var(--gold-300); }
.crumbs [aria-current] { color: var(--gold-300); }

.hero-chips { display: flex; flex-wrap: wrap; gap: .6rem; margin-top: 1.9rem; }
.hero-chip {
  display: inline-flex; align-items: center; gap: .55rem; padding: .55rem 1rem; border-radius: var(--r-pill);
  background: rgba(255, 255, 255, .06); border: 1px solid rgba(255, 255, 255, .14); color: #e6ecf2; font-size: .9rem; text-decoration: none;
  -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px);
}
.hero-chip .icon { color: var(--gold-400); }
a.hero-chip:hover { border-color: var(--gold-500); color: #fff; }

/* ------------------------------------------------------------ 11. about */
.statement {
  max-width: 34ch; margin: 0 0 clamp(2.5rem, 5vw, 4rem); padding-inline-start: 1.5rem;
  border-inline-start: 4px solid var(--gold-500);
  color: var(--text-strong); font-family: var(--font-display); font-size: clamp(1.4rem, 1rem + 1.6vw, 2.1rem); line-height: 1.4;
}
.value-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 340px), 1fr)); gap: 1.25rem; }
.value {
  position: relative; overflow: hidden; padding: clamp(1.6rem, 3vw, 2.4rem); border-radius: var(--r-xl);
  background: var(--surface); border: 1px solid var(--border); box-shadow: var(--shadow-sm);
  transition: transform .4s var(--ease-out), box-shadow .4s ease;
}
.value:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.value::after { content: ""; position: absolute; inset-inline-end: -40px; top: -40px; width: 140px; height: 140px; border-radius: 50%; background: radial-gradient(closest-side, rgba(201, 165, 90, .16), transparent); }
.value__num { display: block; margin-bottom: 1rem; color: transparent; -webkit-text-stroke: 1.2px var(--gold-500); font-family: var(--font-serif); font-size: 3.2rem; font-weight: 600; line-height: 1; }
.value__title { font-size: 1.55rem; }
.value__body p { color: var(--text-muted); }
.value__body ul { display: grid; gap: .6rem; margin: 1rem 0 0; padding: 0; list-style: none; }
.value__body li { position: relative; padding-inline-start: 1.5rem; }
.value__body li::before { content: ""; position: absolute; inset-inline-start: 0; top: .65em; width: 8px; height: 8px; transform: rotate(45deg); background: var(--gold-500); }
.strengths { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem; margin: 2rem 0 0; padding: 0; list-style: none; }
.strength {
  display: flex; gap: 1rem; padding: 1.5rem; border-radius: var(--r-lg);
  background: rgba(255, 255, 255, .04); border: 1px solid rgba(255, 255, 255, .1);
  transition: background-color .3s, border-color .3s, transform .4s var(--ease-out);
}
.strength:hover { background: rgba(201, 165, 90, .08); border-color: rgba(201, 165, 90, .4); transform: translateY(-3px); }
.strength__icon { display: grid; flex: none; place-items: center; width: 2.8rem; height: 2.8rem; border-radius: 12px; background: rgba(201, 165, 90, .14); border: 1px solid rgba(201, 165, 90, .35); color: var(--gold-300); }
.strength strong { display: block; margin-bottom: .3rem; color: #fff; font-family: var(--font-display); font-size: 1.15rem; }
.strength div { color: #b9c6d3; }

/* ---------------------------------------------------------- 12. contact */
.section--contact { padding-top: clamp(2.5rem, 5vw, 4rem); }
.contact-layout { display: grid; grid-template-columns: minmax(0, 1fr) 360px; gap: clamp(1.5rem, 3vw, 2.5rem); align-items: start; }
.tabs__list {
  position: relative; display: flex; gap: .25rem; margin-bottom: 1.25rem; padding: .35rem; overflow-x: auto; scrollbar-width: none;
  border-radius: var(--r-lg); background: var(--surface); border: 1px solid var(--border); box-shadow: var(--shadow-sm);
}
.tabs__list::-webkit-scrollbar { display: none; }
.tab {
  position: relative; z-index: 1; flex: 1; display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  padding: .8rem 1rem; border-radius: var(--r-md); color: var(--text-muted); font-size: .93rem; font-weight: 650; white-space: nowrap; text-decoration: none;
  transition: color .3s ease;
}
.tab:hover { color: var(--text-strong); }
.tab[aria-selected="true"] { color: #fff; }
.tabs__ink {
  position: absolute; z-index: 0; top: .35rem; bottom: .35rem; left: 0; width: 0; border-radius: var(--r-md);
  background: linear-gradient(135deg, var(--ink-700), var(--ink-950)); box-shadow: var(--shadow-md);
  transition: transform .5s var(--ease-out), width .5s var(--ease-out);
}
:root[data-theme="dark"] .tabs__ink { background: linear-gradient(135deg, var(--gold-300), var(--gold-600)); }
:root[data-theme="dark"] .tab[aria-selected="true"] { color: var(--ink-950); }
.tabs:not(.is-ready) .tabs__ink { display: none; }
.tabs.is-ready .panel:not(.is-active) { display: none; }
.tabs.is-ready .panel.is-active { animation: panelIn .5s var(--ease-out); }
.panel {
  position: relative; overflow: hidden; margin-bottom: 1.25rem; padding: clamp(1.4rem, 3vw, 2.3rem);
  border-radius: var(--r-xl); background: var(--surface); border: 1px solid var(--border); box-shadow: var(--shadow-md);
  scroll-margin-top: calc(var(--hdr-h) + 6rem);
}
.panel::before { content: ""; position: absolute; inset-inline: 0; top: 0; height: 3px; background: linear-gradient(90deg, var(--gold-600), var(--gold-300)); }
.panel__head { margin-bottom: 1.6rem; }
.panel__title { margin-bottom: .3em; font-size: clamp(1.5rem, 1.2rem + 1vw, 2rem); }
.panel__lede { margin: 0; color: var(--text-muted); }
.mini-steps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: .6rem; margin: 1.3rem 0 0; padding: 0; list-style: none; }
.mini-steps li { display: flex; align-items: center; gap: .65rem; padding: .7rem .85rem; border-radius: var(--r-md); background: var(--bg); border: 1px solid var(--border); color: var(--text-strong); font-size: .88rem; font-weight: 600; }
.mini-steps span { display: grid; flex: none; place-items: center; width: 1.85rem; height: 1.85rem; border-radius: 50%; background: linear-gradient(135deg, var(--gold-300), var(--gold-500)); color: var(--ink-950); font-size: .85rem; font-weight: 700; }

.contact-side { position: sticky; top: calc(var(--hdr-h) + 1.25rem); display: grid; gap: 1rem; }
.contact-card {
  padding: 1.6rem; border-radius: var(--r-xl); color: #c3cdd8; box-shadow: var(--shadow-lg);
  background: var(--lattice), radial-gradient(500px 220px at 100% 0%, rgba(201, 165, 90, .18), transparent 60%), var(--ink-950);
  border: 1px solid rgba(201, 165, 90, .22);
}
.contact-card__title { color: #fff; font-size: 1.3rem; }
.contact-list { display: grid; margin: 0; padding: 0; list-style: none; }
.contact-list li { display: flex; gap: .9rem; padding: .9rem 0; border-bottom: 1px solid rgba(255, 255, 255, .08); }
.contact-list li:last-child { border-bottom: 0; padding-bottom: 0; }
.contact-item__icon { display: grid; flex: none; place-items: center; width: 2.45rem; height: 2.45rem; border-radius: 11px; background: rgba(201, 165, 90, .12); border: 1px solid rgba(201, 165, 90, .32); color: var(--gold-300); }
.contact-item__label { margin: 0; color: var(--gold-400); font-size: .7rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; }
html[lang="ar"] .contact-item__label { letter-spacing: 0; font-size: .85rem; }
.contact-item__value { margin: .15rem 0 0; color: #e6ecf2; font-size: .95rem; overflow-wrap: anywhere; }
.contact-item__value a { color: var(--gold-300); }
.mini-card {
  position: relative; display: flex; align-items: center; gap: 1rem; padding: 1.1rem 1.2rem; border-radius: var(--r-lg);
  background: var(--surface); border: 1px solid var(--border); box-shadow: var(--shadow-sm);
  color: var(--text-strong); text-decoration: none; transition: transform .3s var(--ease), box-shadow .3s, border-color .3s;
}
.mini-card:hover { transform: translateY(-2px); border-color: var(--gold-400); box-shadow: var(--shadow-md); color: var(--text-strong); }
.mini-card > span:nth-child(2) { display: grid; flex: 1; gap: .1rem; min-width: 0; }
.mini-card strong { font-family: var(--font-display); font-size: 1.05rem; }
.mini-card > span:nth-child(2) > span { color: var(--text-muted); font-size: .86rem; }
.mini-card > .icon { color: var(--accent-text); }
.mini-card__icon { display: grid; flex: none; place-items: center; width: 2.8rem; height: 2.8rem; border-radius: 12px; background: var(--ink-900); color: var(--gold-300); }
.mini-card__icon--etravel { background: #fff; box-shadow: inset 0 0 0 1px var(--border), 0 4px 10px -4px rgba(0, 0, 0, .2); }
.mini-card--gold { background: linear-gradient(135deg, color-mix(in srgb, #f6dd2f 16%, var(--surface)), var(--surface)); border-color: color-mix(in srgb, #e9cb1b 45%, var(--border)); }

/* ------------------------------------------------------------ 13. forms */
.form { display: grid; gap: 1.15rem; }
.field-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr)); gap: 1.15rem; }
.field { display: grid; gap: .45rem; align-content: start; margin: 0; }
.field label, .rfq legend, .feedback__more label { color: var(--text-strong); font-size: .88rem; font-weight: 650; }
.field input, .field textarea, .field select, .fx__input, .fx__select, .rfq-row input, .feedback textarea, .newsletter input {
  width: 100%; min-height: 3rem; padding: .75rem .95rem; border-radius: var(--r-sm);
  border: 1px solid var(--border-strong); background: var(--surface); color: var(--text-strong);
  font: inherit; font-size: 1rem; line-height: 1.4;
  transition: border-color .2s ease, box-shadow .2s ease, background-color .2s ease;
}
.field textarea, .feedback textarea { min-height: 8rem; resize: vertical; line-height: 1.55; }
.field input:hover, .field textarea:hover, .fx__input:hover, .fx__select:hover, .rfq-row input:hover { border-color: color-mix(in srgb, var(--gold-500) 55%, var(--border-strong)); }
.field input:focus, .field textarea:focus, .fx__input:focus, .fx__select:focus, .rfq-row input:focus, .feedback textarea:focus, .newsletter input:focus {
  outline: none; border-color: var(--gold-500); box-shadow: var(--ring);
}
.fx__select {
  appearance: none; padding-inline-end: 2.5rem; cursor: pointer;
  background: var(--surface) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23a98437' stroke-width='2' stroke-linecap='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E") no-repeat right .85rem center / 1.1rem;
}
[dir="rtl"] .fx__select { background-position: left .85rem center; }
::placeholder { color: var(--text-subtle); opacity: 1; }
[dir="rtl"] input[type="email"], [dir="rtl"] input[type="tel"], [dir="rtl"] input[type="url"] { direction: ltr; text-align: right; }
.field.is-invalid input, .field.is-invalid textarea, .rfq-row input.is-invalid { border-color: var(--danger); box-shadow: 0 0 0 4px color-mix(in srgb, var(--danger) 14%, transparent); }
.field__error { display: flex; align-items: center; gap: .35rem; margin: 0; color: var(--danger); font-size: .82rem; animation: rowIn .3s var(--ease-out); }
.form-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 1rem; margin-top: .3rem; }
.form-status { flex: 1 1 100%; margin: 0; padding: .8rem 1rem; border-radius: var(--r-sm); border: 1px solid transparent; font-size: .92rem; animation: rowIn .35s var(--ease-out); }
.form-status:empty { display: none; }
.form-status[data-state="success"] { background: var(--success-bg); border-color: var(--success-border); color: var(--success); }
.form-status[data-state="error"] { background: var(--danger-bg); border-color: var(--danger-border); color: var(--danger); }
.form-status[data-state="pending"] { background: var(--surface-2); border-color: var(--border); color: var(--text-muted); }
.form-note { display: flex; align-items: flex-start; gap: .5rem; margin: 0; color: var(--text-subtle); font-size: .82rem; }
.form-note .icon { margin-top: .15rem; color: var(--accent-text); }
.form-subtitle { display: flex; flex-wrap: wrap; align-items: baseline; gap: .4rem; margin: .6rem 0 -.25rem; font-family: var(--font-sans); font-size: 1.02rem; font-weight: 700; }
.form-subtitle span { color: var(--accent-text); font-size: .86rem; font-weight: 600; }
.turnstile-slot:empty { display: none; }
.hp { position: absolute !important; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip-path: inset(50%); white-space: nowrap; border: 0; }

/* file drop zones (visa form) */
.drops { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: .9rem; }
.drop { position: relative; display: grid; gap: .5rem; align-content: start; }
.drop__input { position: absolute; width: 1px; height: 1px; opacity: 0; pointer-events: none; }
.drop__zone {
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: .35rem; min-height: 11.5rem;
  padding: 1.25rem 1rem; border-radius: var(--r-lg); border: 1.5px dashed var(--border-strong); background: var(--bg);
  text-align: center; cursor: pointer; transition: border-color .25s, background-color .25s, transform .3s var(--ease-out);
}
.drop__zone:hover, .drop.is-over .drop__zone { border-color: var(--gold-500); background: var(--accent-soft); }
.drop.is-over .drop__zone { transform: scale(1.02); }
.drop__input:focus-visible + .drop__zone { outline: 2px solid var(--gold-500); outline-offset: 3px; }
.drop__icon { display: grid; place-items: center; width: 2.9rem; height: 2.9rem; margin-bottom: .35rem; border-radius: 50%; background: var(--ink-900); color: var(--gold-300); transition: transform .35s var(--ease-spring), background-color .3s; }
.drop__zone:hover .drop__icon { transform: translateY(-3px); }
.drop__title { color: var(--text-strong); font-size: .96rem; font-weight: 700; }
.drop__hint { color: var(--text-muted); font-size: .8rem; line-height: 1.45; }
.drop__types { margin-top: .15rem; color: var(--text-subtle); font-size: .72rem; }
.drop__file { display: flex; align-items: center; gap: .55rem; padding: .5rem .5rem .5rem .75rem; border-radius: var(--r-sm); background: var(--success-bg); border: 1px solid var(--success-border); color: var(--success); font-size: .84rem; animation: rowIn .35s var(--ease-out); }
.drop__file-name { flex: 1; min-width: 0; overflow: hidden; font-weight: 600; white-space: nowrap; text-overflow: ellipsis; }
.drop__remove { display: grid; place-items: center; width: 1.9rem; height: 1.9rem; flex: none; border: 0; border-radius: 50%; background: transparent; color: inherit; cursor: pointer; }
.drop__remove:hover { background: color-mix(in srgb, var(--success) 18%, transparent); }
.drop.is-filled .drop__zone { border-style: solid; border-color: var(--success-border); }
.drop.is-filled .drop__icon { background: var(--success); color: #fff; }
.drop.is-invalid .drop__zone { border-color: var(--danger); background: var(--danger-bg); }

/* quotation item rows */
.rfq { margin: 0; padding: 1rem 1rem .5rem; border-radius: var(--r-lg); border: 1px solid var(--border); background: var(--bg); }
.rfq legend { padding: 0 .4rem; }
.rfq__head:empty { display: none; }
.rfq-row { display: grid; grid-template-columns: auto minmax(0, 2.4fr) minmax(0, .8fr) minmax(0, .8fr) auto; gap: .5rem; align-items: center; margin-bottom: .55rem; animation: rowIn .4s var(--ease-out); }
.rfq-row__num { display: grid; place-items: center; width: 2rem; height: 2rem; border-radius: 50%; background: var(--surface-3); color: var(--text-muted); font-size: .8rem; font-weight: 700; }
.rfq-row input { min-height: 2.75rem; padding: .6rem .8rem; font-size: .95rem; }
.rfq-remove { display: grid; place-items: center; width: 2.6rem; height: 2.6rem; border-radius: var(--r-sm); border: 1px solid var(--border-strong); background: var(--surface); color: var(--text-subtle); cursor: pointer; transition: color .2s, border-color .2s, background-color .2s; }
.rfq-remove:hover { border-color: var(--danger-border); background: var(--danger-bg); color: var(--danger); }
.rfq__add { justify-self: start; }

/* ------------------------------------------------- 14. legislation hub */
.section--search { padding-block: clamp(3.5rem, 6vw, 5.5rem); }
.bigsearch { margin-top: 2rem; }
.bigsearch__box { position: relative; display: flex; align-items: center; }
.bigsearch__box > .icon { position: absolute; inset-inline-start: 1.35rem; width: 1.4rem; height: 1.4rem; color: var(--gold-600); pointer-events: none; }
.bigsearch input {
  width: 100%; min-height: 4rem; padding: 1rem 3.6rem; border-radius: var(--r-pill);
  border: 1px solid var(--border-strong); background: var(--surface); color: var(--text-strong);
  font: inherit; font-size: 1.15rem; box-shadow: var(--shadow-md); transition: border-color .2s, box-shadow .3s;
}
.bigsearch input:focus { outline: none; border-color: var(--gold-500); box-shadow: var(--ring), var(--shadow-lg); }
.bigsearch__spinner { position: absolute; inset-inline-end: 1.4rem; width: 1.2rem; height: 1.2rem; border-radius: 50%; border: 2px solid var(--gold-500); border-inline-end-color: transparent; opacity: 0; transition: opacity .2s; }
.bigsearch.is-loading .bigsearch__spinner { opacity: 1; animation: spin .7s linear infinite; }
.bigsearch__chips { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: .45rem; margin: 1.1rem 0 0; color: var(--text-subtle); font-size: .86rem; }
.bigsearch__status { margin: 1.1rem 0 0; color: var(--text-muted); font-size: .92rem; text-align: center; }
.bigsearch__status:empty { display: none; }
.bigsearch__results { display: grid; gap: .65rem; margin-top: 1.25rem; }
.bigsearch__results:empty { display: none; }
.api-hit {
  display: grid; gap: .25rem; padding: 1rem 1.25rem; border-radius: var(--r-md);
  background: var(--surface); border: 1px solid var(--border); border-inline-start: 3px solid var(--gold-500);
  color: var(--text); text-decoration: none; box-shadow: var(--shadow-sm);
  transition: translate .3s var(--ease), border-color .3s, box-shadow .3s; animation: rowIn .4s var(--ease-out) both;
}
.api-hit:hover { translate: 4px 0; border-color: var(--gold-400); box-shadow: var(--shadow-md); color: var(--text); }
[dir="rtl"] .api-hit:hover { translate: -4px 0; }
.api-hit-doc { color: var(--accent-text); font-size: .7rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; }
.api-hit-title { color: var(--text-strong); font-family: var(--font-serif); font-size: 1.1rem; font-weight: 600; }
.api-hit-snippet { color: var(--text-muted); font-size: .93rem; }
mark { padding: 0 .15em; border-radius: 3px; background: color-mix(in srgb, var(--gold-300) 65%, transparent); color: inherit; }

.lib-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.25rem; }
.lib-card {
  position: relative; display: grid; grid-template-columns: 116px minmax(0, 1fr); gap: 1.4rem; padding: 1.25rem;
  border-radius: var(--r-xl); background: var(--surface); border: 1px solid var(--border); box-shadow: var(--shadow-sm);
  transition: transform .4s var(--ease-out), box-shadow .4s ease, border-color .4s ease;
}
.lib-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); border-color: color-mix(in srgb, var(--gold-500) 45%, var(--border)); }
.lib-card__cover {
  position: relative; overflow: hidden; display: flex; flex-direction: column; justify-content: space-between; min-height: 160px; padding: 1rem .85rem 1rem 1.15rem;
  border-radius: 6px 16px 16px 6px; background: linear-gradient(160deg, var(--ink-600), var(--ink-950));
  box-shadow: inset 7px 0 0 rgba(0, 0, 0, .28), inset 8px 0 0 rgba(201, 165, 90, .55), var(--shadow-md);
  transition: transform .6s var(--ease-out);
}
.lib-card__cover::after { content: ""; position: absolute; inset: 0; background: linear-gradient(115deg, transparent 40%, rgba(255, 255, 255, .14) 50%, transparent 60%); transform: translateX(-100%); transition: transform .9s var(--ease); }
.lib-card:hover .lib-card__cover { transform: rotate(-3deg) translateY(-4px); }
.lib-card:hover .lib-card__cover::after { transform: translateX(100%); }
.lib-card__num { color: var(--gold-300); font-family: var(--font-serif); font-size: 2.1rem; font-weight: 600; line-height: 1; }
.lib-card__lines { display: grid; gap: .4rem; }
.lib-card__lines i { display: block; height: 3px; border-radius: 2px; background: rgba(255, 255, 255, .2); }
.lib-card__lines i:first-child { width: 72%; background: var(--gold-500); }
.lib-card__lines i:nth-child(3) { width: 55%; }
.lib-card__body { display: flex; flex-direction: column; gap: .55rem; min-width: 0; }
.lib-card__meta { margin: 0; color: var(--accent-text); font-size: .72rem; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; }
.lib-card__title { margin: 0; font-size: 1.25rem; }
.lib-card__title a { color: inherit; text-decoration: none; }
.lib-card__desc { margin: 0; color: var(--text-muted); font-size: .95rem; }
.lib-card__foot { display: flex; flex-wrap: wrap; gap: .4rem; }
.lib-card__actions { display: flex; flex-wrap: wrap; gap: .5rem; margin-top: auto; padding-top: .5rem; }
.lib-card__pdf { position: relative; z-index: 2; }

.split--files { grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr); align-items: start; }
.files { display: grid; gap: .75rem; margin: 0; padding: 0; list-style: none; }
.file {
  position: relative; display: flex; align-items: center; gap: 1rem; padding: 1rem 1.2rem; border-radius: var(--r-lg);
  background: var(--surface); border: 1px solid var(--border); box-shadow: var(--shadow-sm);
  transition: transform .3s var(--ease), box-shadow .3s, border-color .3s;
}
.file:hover { transform: translateY(-2px); border-color: var(--gold-400); box-shadow: var(--shadow-md); }
.file__icon {
  display: flex; flex: none; align-items: flex-end; justify-content: center; width: 2.6rem; height: 3.2rem; padding-bottom: .4rem;
  border-radius: 5px 12px 5px 5px; background: linear-gradient(160deg, var(--ink-600), var(--ink-950)); box-shadow: inset 0 -3px 0 var(--gold-500);
  color: #fff; font: 700 .62rem/1 var(--font-sans); letter-spacing: .06em;
}
.file__body { display: grid; flex: 1; gap: .15rem; min-width: 0; }
.file__name { color: var(--text-strong); font-weight: 650; text-decoration: none; }
.file__name:hover { color: var(--text-strong); }
.file__facts { color: var(--text-subtle); font-size: .82rem; }
.file__go { display: grid; flex: none; place-items: center; width: 2.5rem; height: 2.5rem; border-radius: 50%; background: var(--surface-2); color: var(--accent-text); transition: background-color .3s, color .3s, transform .3s var(--ease-spring); }
.file:hover .file__go { background: var(--gold-500); color: var(--ink-950); transform: translateY(2px); }
.source-notes ul { display: grid; gap: .75rem; margin: 1.25rem 0; padding: 0; list-style: none; }
.source-notes ul li { padding: 1rem 1.2rem; border-radius: var(--r-md); background: var(--surface); border: 1px solid var(--border); border-inline-start: 3px solid var(--gold-500); }
.source-notes p:last-child { font-size: .88rem; }

/* ----------------------------------------------------- 15. law text pages */
.page-hero--doc .page-hero__title { max-width: 30ch; font-size: clamp(1.9rem, 1.3rem + 2.3vw, 3.1rem); }
.doc-meta { display: flex; flex-wrap: wrap; gap: .5rem; margin: 1.6rem 0 0; padding: 0; list-style: none; }
.doc-meta li { display: inline-flex; align-items: center; gap: .45rem; padding: .42rem .85rem; border-radius: var(--r-pill); background: rgba(255, 255, 255, .06); border: 1px solid rgba(255, 255, 255, .12); color: #d5dde6; font-size: .84rem; }
.doc-meta .icon { color: var(--gold-400); }
.doc-layout { display: grid; grid-template-columns: 300px minmax(0, 1fr); gap: clamp(1.5rem, 3vw, 3rem); align-items: start; padding-block: clamp(2rem, 4vw, 3rem) 4.5rem; }
.doc-side { position: sticky; top: calc(var(--hdr-h) + 1rem); }
.toc {
  display: flex; flex-direction: column; max-height: calc(100vh - var(--hdr-h) - 2rem); overflow: hidden;
  border-radius: var(--r-lg); background: var(--surface); border: 1px solid var(--border); box-shadow: var(--shadow-sm);
}
.toc__head { display: flex; align-items: center; gap: .6rem; padding: 1rem 1.1rem .75rem; }
.toc__title { flex: 1; margin: 0; color: var(--accent-text); font-size: .74rem; font-weight: 700; letter-spacing: .18em; text-transform: uppercase; }
html[lang="ar"] .toc__title, html[lang="zh-Hans"] .toc__title { letter-spacing: .02em; font-size: .92rem; }
.toc__close { display: none; }
.toc__progress { height: 3px; margin: 0 1.1rem .5rem; overflow: hidden; border-radius: 3px; background: var(--surface-3); }
.toc__progress i { display: block; height: 100%; transform-origin: left; transform: scaleX(var(--p, 0)); background: linear-gradient(90deg, var(--gold-600), var(--gold-300)); }
[dir="rtl"] .toc__progress i { transform-origin: right; }
.toc__scroll { overflow-y: auto; overscroll-behavior: contain; padding: .25rem .6rem 1rem; scrollbar-width: thin; scrollbar-color: var(--border-strong) transparent; }
.toc__group { margin: .9rem .5rem .4rem; color: var(--text-strong); font-family: var(--font-display); font-size: .98rem; font-weight: 700; line-height: 1.35; }
.toc__group:first-child { margin-top: .2rem; }
.toc__list { margin: 0; padding: 0; list-style: none; }
.toc__list a {
  display: flex; align-items: baseline; gap: .55rem; padding: .42rem .55rem; border-radius: 8px;
  color: var(--text-muted); font-size: .86rem; line-height: 1.4; text-decoration: none; transition: background-color .15s, color .15s;
}
.toc__list a:hover { background: var(--surface-2); color: var(--text-strong); }
.toc__list a.is-active { background: var(--accent-soft); color: var(--text-strong); font-weight: 600; box-shadow: inset 3px 0 0 var(--gold-500); }
.toc__num { min-width: 1.9rem; flex: none; color: var(--accent-text); font-family: var(--font-serif); font-size: .84rem; font-weight: 700; font-variant-numeric: tabular-nums; }
.toc-backdrop { display: none; }

.doc-main { min-width: 0; }
.notice, .callout { display: flex; align-items: flex-start; gap: .85rem; margin: 0 0 1rem; padding: 1rem 1.2rem; border-radius: var(--r-md); font-size: .93rem; line-height: 1.65; }
.notice { background: color-mix(in srgb, var(--ink-600) 8%, var(--surface)); border: 1px solid color-mix(in srgb, var(--ink-600) 26%, transparent); color: var(--text); }
.notice strong { display: block; margin-bottom: .2rem; color: var(--text-strong); }
.callout { background: var(--accent-soft); border: 1px solid color-mix(in srgb, var(--gold-500) 35%, transparent); color: var(--text); }
.notice > .icon, .callout > .icon { width: 1.25rem; height: 1.25rem; margin-top: .2rem; color: var(--accent-text); }
.callout a, .notice a { color: var(--link); }
.doc-tools {
  position: sticky; top: calc(var(--hdr-h) + .6rem); z-index: 5; display: flex; align-items: center; gap: .5rem;
  margin: 0 0 1.5rem; padding: .5rem; border-radius: var(--r-lg);
  background: color-mix(in srgb, var(--surface) 90%, transparent); border: 1px solid var(--border); box-shadow: var(--shadow-md);
  -webkit-backdrop-filter: blur(12px) saturate(140%); backdrop-filter: blur(12px) saturate(140%);
}
@media (hover: none) { .doc-tools { -webkit-backdrop-filter: none; backdrop-filter: none; background: var(--surface); } }
.doc-search { position: relative; display: flex; flex: 1; align-items: center; min-width: 0; }
.doc-search > .icon { position: absolute; inset-inline-start: .85rem; color: var(--text-subtle); pointer-events: none; }
.doc-search input {
  width: 100%; min-height: 2.6rem; padding-block: .5rem; padding-inline: 2.5rem 4.5rem; border-radius: var(--r-sm);
  border: 1px solid transparent; background: var(--surface-2); color: var(--text-strong); font: inherit; font-size: .95rem;
  transition: border-color .2s, box-shadow .2s, background-color .2s;
}
.doc-search input:focus { outline: none; border-color: var(--gold-500); background: var(--surface); box-shadow: var(--ring); }
.doc-search__status { position: absolute; inset-inline-end: .7rem; padding: .1rem .5rem; border-radius: var(--r-pill); background: var(--accent-soft); color: var(--accent-text); font-size: .74rem; font-weight: 700; pointer-events: none; font-variant-numeric: tabular-nums; }
.doc-search__status:empty { display: none; }
.doc-tools__group { display: flex; gap: .25rem; }
.aa { font-family: var(--font-serif); font-size: 1.08rem; font-weight: 700; line-height: 1; }
.aa--sm { font-size: .8rem; }
.doc-tools__toc { display: none; }

.doc-section + .doc-section { margin-top: 3.5rem; }
.doc-section__head {
  position: relative; overflow: hidden; margin-bottom: 1.25rem; padding: 1.6rem 1.8rem; border-radius: var(--r-xl); color: #b9c6d3;
  background: var(--lattice), radial-gradient(500px 200px at 100% 0%, rgba(201, 165, 90, .18), transparent 60%), linear-gradient(150deg, var(--ink-950), var(--ink-800));
  scroll-margin-top: calc(var(--hdr-h) + 5rem);
}
.doc-section__title { color: #fff; font-size: clamp(1.4rem, 1.1rem + 1vw, 1.9rem); }
.doc-section__sub { margin: 0 0 .9rem; }
.doc-section__head .link-arrow { color: var(--gold-300); }
.doc-note { display: flex; align-items: flex-start; gap: .6rem; margin: 0 0 1.25rem; padding: .8rem 1rem; border-radius: var(--r-sm); background: var(--surface-2); border: 1px solid var(--border); color: var(--text-muted); font-size: .86rem; }
.doc-note .icon { margin-top: .15rem; color: var(--accent-text); }
.article-list { color: var(--text); font-family: var(--font-law); font-size: var(--law-size); line-height: 1.8; }
.article-list > p, .article-list > ul { max-width: 72ch; }
.article-list > p:first-child { color: var(--text-strong); font-weight: 600; font-size: 1.12em; }
.article {
  position: relative; margin: 0 0 1rem; padding: 1.4rem 1.6rem 1.35rem; border-radius: var(--r-lg);
  background: var(--surface); border: 1px solid var(--border); box-shadow: var(--shadow-xs);
  scroll-margin-top: calc(var(--hdr-h) + 5.5rem); transition: border-color .3s, box-shadow .3s;
}
.article:hover { border-color: color-mix(in srgb, var(--gold-500) 45%, var(--border)); }
.article:target, .article.is-target { border-color: var(--gold-500); box-shadow: var(--ring), var(--shadow-md); animation: targetPulse 1.8s var(--ease-out); }
.article-head {
  display: flex; align-items: center; gap: .8rem; margin: 0 0 .85rem; padding-bottom: .85rem; border-bottom: 1px solid var(--border);
  color: var(--accent-text); font-family: var(--font-sans); font-size: .76rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase;
}
.article-num {
  display: inline-grid; place-items: center; min-width: 2.6rem; height: 2.6rem; padding: 0 .5rem; border-radius: 12px;
  background: linear-gradient(135deg, var(--ink-700), var(--ink-950)); color: var(--gold-300);
  font-family: var(--font-serif); font-size: 1.15rem; font-weight: 700; letter-spacing: 0;
}
.article-label { flex: 1; }
.article-link {
  display: grid; place-items: center; width: 2.25rem; height: 2.25rem; border-radius: 50%;
  border: 1px solid var(--border); color: var(--text-subtle); opacity: 0;
  transition: opacity .2s, color .2s, border-color .2s, background-color .2s;
}
.article:hover .article-link, .article-link:focus-visible { opacity: 1; }
@media (hover: none) { .article-link { opacity: 1; } }
.article-link:hover { border-color: var(--gold-400); background: var(--accent-soft); color: var(--accent-text); }
.article-link.is-done { opacity: 1; border-color: var(--success); background: var(--success); color: #fff; }
.article-title { margin: 0 0 .65rem; color: var(--text-strong); font-size: 1.1em; font-weight: 600; }
.article p { margin: 0 0 .85rem; }
.article p:last-child, .article ul:last-child { margin-bottom: 0; }
.legal-list { margin: 0 0 .85rem; padding-inline-start: 1.4rem; }
.legal-list li { margin-bottom: .4rem; padding-inline-start: .2rem; }
.legal-list li::marker { color: var(--gold-600); }
.sub-heading { margin-top: 1rem; color: var(--text-strong); font-weight: 650; }
.doc-heading { margin: 2.5rem 0 1rem; padding-top: 1.25rem; border-top: 1px solid var(--border); font-size: 1.5rem; }
.note-heading { color: var(--accent-text); }
.doc-divider { height: 1px; margin: 3rem 0; border: 0; background: linear-gradient(90deg, transparent, var(--gold-500), transparent); }
mark.hl { background: color-mix(in srgb, var(--gold-300) 70%, transparent); box-shadow: 0 0 0 2px color-mix(in srgb, var(--gold-300) 70%, transparent); }

.pager { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; margin-top: 3rem; }
.pager__link {
  display: grid; gap: .4rem; padding: 1.3rem 1.4rem; border-radius: var(--r-lg);
  background: var(--surface); border: 1px solid var(--border); box-shadow: var(--shadow-sm); text-decoration: none;
  transition: transform .3s var(--ease), box-shadow .3s, border-color .3s;
}
.pager__link:hover { transform: translateY(-2px); border-color: var(--gold-400); box-shadow: var(--shadow-md); }
.pager__link--next { text-align: end; }
.pager__dir { display: inline-flex; align-items: center; gap: .4rem; color: var(--accent-text); font-size: .74rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; }
html[lang="ar"] .pager__dir, html[lang="zh-Hans"] .pager__dir { letter-spacing: .02em; font-size: .88rem; }
.pager__link--next .pager__dir { justify-content: flex-end; }
.pager__name { color: var(--text-strong); font-family: var(--font-display); font-size: 1.1rem; font-weight: 600; }

.feedback { display: grid; gap: .9rem; margin-top: 2rem; padding: 1.4rem 1.6rem; border-radius: var(--r-lg); background: var(--surface); border: 1px solid var(--border); }
.feedback__q { margin: 0; color: var(--text-strong); font-family: var(--font-display); font-size: 1.15rem; font-weight: 600; }
.feedback__actions { display: flex; flex-wrap: wrap; gap: .5rem; }
.feedback__more { display: grid; gap: .55rem; }
.feedback__more .btn { justify-self: start; }

/* --------------------------------------------------------- 16. overlays */
.palette { position: fixed; inset: 0; z-index: 100; display: flex; align-items: flex-start; justify-content: center; padding: 12vh 1rem 1rem; }
.palette__backdrop { position: absolute; inset: 0; background: var(--overlay); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); animation: fadeIn .2s ease; }
.palette__panel {
  position: relative; display: flex; flex-direction: column; width: min(660px, 100%); max-height: 72vh; overflow: hidden;
  border-radius: var(--r-xl); background: var(--surface); border: 1px solid var(--border);
  box-shadow: 0 40px 100px -30px rgba(0, 0, 0, .65); animation: pop .28s var(--ease-out);
}
.palette__search { display: flex; align-items: center; gap: .75rem; padding: 1rem 1.2rem; border-bottom: 1px solid var(--border); }
.palette__search > .icon { width: 1.35rem; height: 1.35rem; color: var(--gold-600); }
.palette__input { flex: 1; min-width: 0; border: 0; outline: none; background: transparent; color: var(--text-strong); font: inherit; font-size: 1.1rem; }
.palette__input::-webkit-search-cancel-button { display: none; }
.palette kbd { padding: .1rem .4rem; border-radius: 6px; border: 1px solid var(--border-strong); background: var(--surface-2); color: var(--text-muted); font-size: .7rem; font-weight: 600; }
.palette__list { margin: 0; padding: .5rem; overflow-y: auto; overscroll-behavior: contain; list-style: none; }
.palette__section { padding: .7rem .7rem .3rem; color: var(--text-subtle); font-size: .68rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; }
.palette__item { display: flex; align-items: center; gap: .8rem; padding: .62rem .75rem; border-radius: var(--r-sm); color: var(--text); text-decoration: none; cursor: pointer; }
.palette__item[aria-selected="true"] { background: var(--accent-soft); color: var(--text-strong); box-shadow: inset 3px 0 0 var(--gold-500); }
[dir="rtl"] .palette__item[aria-selected="true"] { box-shadow: inset -3px 0 0 var(--gold-500); }
.palette__item:hover { color: var(--text-strong); }
.palette__icon { display: grid; flex: none; place-items: center; width: 2.1rem; height: 2.1rem; border-radius: 9px; background: var(--surface-2); color: var(--accent-text); }
.palette__item[aria-selected="true"] .palette__icon { background: var(--ink-900); color: var(--gold-300); }
.palette__text { display: grid; flex: 1; min-width: 0; }
.palette__title { overflow: hidden; font-weight: 550; white-space: nowrap; text-overflow: ellipsis; }
.palette__sub { overflow: hidden; color: var(--text-subtle); font-size: .78rem; white-space: nowrap; text-overflow: ellipsis; }
.palette__empty { padding: 2.5rem 1rem; color: var(--text-muted); text-align: center; }
.palette__foot { display: flex; flex-wrap: wrap; gap: .5rem 1.2rem; padding: .65rem 1rem; border-top: 1px solid var(--border); background: var(--surface-2); color: var(--text-subtle); font-size: .76rem; }

.lightbox { position: fixed; inset: 0; z-index: 110; display: grid; place-items: center; padding: 4rem 1rem; background: rgba(4, 10, 16, .94); animation: fadeIn .25s ease; }
.lightbox__figure { display: grid; justify-items: center; gap: .8rem; max-width: min(92vw, 1100px); margin: 0; }
.lightbox__img { max-width: 100%; max-height: 76vh; width: auto; object-fit: contain; border-radius: var(--r-md); box-shadow: 0 30px 80px -20px rgba(0, 0, 0, .8); animation: zoomIn .4s var(--ease-out); }
.lightbox__cap { margin: 0; color: #d5dde6; font-size: .98rem; text-align: center; }
.lightbox__count { color: var(--gold-300); font-size: .78rem; font-weight: 700; letter-spacing: .14em; }
.lightbox__btn { position: absolute; display: grid; place-items: center; width: 3rem; height: 3rem; border-radius: 50%; border: 1px solid rgba(255, 255, 255, .22); background: rgba(255, 255, 255, .08); color: #fff; cursor: pointer; transition: background-color .2s, color .2s, border-color .2s; }
.lightbox__btn:hover { background: var(--gold-500); border-color: var(--gold-500); color: var(--ink-950); }
.lightbox__close { top: 1rem; inset-inline-end: 1rem; }
.lightbox__prev, .lightbox__next { top: 50%; translate: 0 -50%; }
.lightbox__prev { inset-inline-start: 1rem; }
.lightbox__next { inset-inline-end: 1rem; }

.toast {
  position: fixed; z-index: 120; left: 50%; bottom: 1.5rem; display: inline-flex; align-items: center; gap: .5rem;
  padding: .7rem 1.15rem; border-radius: var(--r-pill); background: var(--ink-900); border: 1px solid rgba(201, 165, 90, .5);
  color: #fff; font-size: .9rem; font-weight: 600; box-shadow: var(--shadow-lg);
  opacity: 0; translate: -50% 20px; pointer-events: none; transition: opacity .25s ease, translate .4s var(--ease-out);
}
.toast .icon { color: var(--gold-300); }
.toast.is-on { opacity: 1; translate: -50% 0; }

.to-top {
  position: fixed; z-index: 40; bottom: max(1.25rem, env(safe-area-inset-bottom)); inset-inline-end: 1.25rem;
  display: grid; place-items: center; width: 3.1rem; height: 3.1rem; padding: 0; border-radius: 50%;
  border: 0; background: var(--ink-900); color: var(--gold-300); box-shadow: var(--shadow-lg); cursor: pointer;
  opacity: 0; visibility: hidden; translate: 0 12px; transition: opacity .3s, visibility .3s, translate .4s var(--ease-out), background-color .2s;
}
.to-top.is-on { opacity: 1; visibility: visible; translate: none; }
.to-top:hover { background: var(--ink-700); }
.to-top .ring { position: absolute; inset: 0; width: 100%; height: 100%; transform: rotate(-90deg); }
.to-top .ring circle { fill: none; stroke-width: 2.5; }
.to-top .ring__track { stroke: rgba(201, 165, 90, .2); }
.to-top .ring__bar { stroke: var(--gold-400); stroke-linecap: round; stroke-dasharray: 145; stroke-dashoffset: calc(145 - 145 * var(--p, 0)); }
.to-top > .icon { transform: rotate(-90deg); }

/* ------------------------------------------------------------- 17. footer */
.ftr { position: relative; isolation: isolate; overflow: hidden; padding-block: clamp(3.5rem, 7vw, 5.5rem) 1.75rem; background: var(--ink-950); color: #93a3b4; font-size: .93rem; }
.ftr::before { content: ""; position: absolute; inset-inline: 0; top: 0; height: 1px; background: linear-gradient(90deg, transparent, var(--gold-500), transparent); }
.ftr__glow { position: absolute; z-index: -1; top: -220px; inset-inline-end: -180px; width: 720px; height: 440px; pointer-events: none; background: radial-gradient(closest-side, rgba(201, 165, 90, .14), transparent); }
.ftr__top { display: grid; grid-template-columns: 1.35fr .8fr .8fr 1.45fr; gap: 2.5rem; }
.ftr__h { margin: 0 0 1.1rem; color: var(--gold-300); font-family: var(--font-sans); font-size: .74rem; font-weight: 700; letter-spacing: .18em; text-transform: uppercase; }
html[lang="ar"] .ftr__h, html[lang="zh-Hans"] .ftr__h { letter-spacing: .02em; font-size: .95rem; text-transform: none; }
.ftr__col ul { display: grid; gap: .65rem; margin: 0; padding: 0; list-style: none; }
.ftr a { color: #c9d3de; text-decoration: none; transition: color .2s; }
.ftr a:hover { color: var(--gold-300); }
.ftr .brand__name { font-size: 1.2rem; }
.ftr__tag { max-width: 34ch; margin: 1.1rem 0 1.25rem; }
.ftr__contact { display: flex; align-items: center; gap: .55rem; margin: .45rem 0 0; font-size: .88rem; overflow-wrap: anywhere; }
.ftr__contact .icon { color: var(--gold-400); }
.ftr__news > p { margin: 0 0 1rem; }
.newsletter { display: grid; gap: .6rem; }
.newsletter__row { display: flex; gap: .5rem; }
.newsletter input { flex: 1; min-width: 0; background: rgba(255, 255, 255, .06); border-color: rgba(255, 255, 255, .16); color: #fff; }
.newsletter input::placeholder { color: #7f91a4; }
.ftr .form-status[data-state="success"] { background: rgba(31, 122, 77, .2); border-color: rgba(116, 214, 163, .3); color: #8fe0b4; }
.ftr .form-status[data-state="error"] { background: rgba(179, 38, 30, .2); border-color: rgba(246, 165, 158, .3); color: #f6b3ad; }
.ftr .form-status[data-state="pending"] { background: rgba(255, 255, 255, .05); border-color: rgba(255, 255, 255, .1); color: #b9c6d3; }
.ftr__stats { margin: 1rem 0 0; font-size: .8rem; }
.ftr__stats strong { color: var(--gold-300); }
.ftr__bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: .75rem 1.5rem; margin-top: 3rem; padding-top: 1.5rem; border-top: 1px solid rgba(255, 255, 255, .08); color: #7f91a4; font-size: .84rem; }
.ftr__langs { display: flex; gap: 1rem; }
.ftr__langs a[aria-current] { color: var(--gold-300); }

/* -------------------------------------------------------- 18. keyframes */
@keyframes rise { from { opacity: 0; transform: translateY(26px); } to { opacity: 1; transform: none; } }
@keyframes wordUp { to { transform: none; } }
@keyframes ken { from { transform: scale(1.06); } to { transform: scale(1.14); } }
@keyframes float { from { transform: translate(0, 0); } to { transform: translate(-6%, 8%); } }
@keyframes drift { from { transform: translate(0, 0); } to { transform: translate(-48px, -48px); } }
@keyframes marquee { to { transform: translateX(-50%); } }
@keyframes marqueeRtl { to { transform: translateX(50%); } }
@keyframes trolley { 0%, 8% { transform: translateX(0); } 30%, 62% { transform: translateX(-230px); } 84%, 100% { transform: translateX(0); } }
@keyframes cable { 0%, 30% { transform: scaleY(.2); } 44%, 50% { transform: scaleY(1); } 64%, 100% { transform: scaleY(.2); } }
@keyframes load { 0%, 30% { transform: translateY(60px); } 44%, 50% { transform: translateY(300px); } 64%, 100% { transform: translateY(60px); } }
@keyframes trolley2 { 0%, 10% { transform: translateX(0); } 34%, 66% { transform: translateX(120px); } 90%, 100% { transform: translateX(0); } }
@keyframes cable2 { 0%, 34% { transform: scaleY(.25); } 46%, 54% { transform: scaleY(1); } 66%, 100% { transform: scaleY(.25); } }
@keyframes load2 { 0%, 34% { transform: translateY(30px); } 46%, 54% { transform: translateY(120px); } 66%, 100% { transform: translateY(30px); } }
@keyframes sway { from { transform: rotate(-1.6deg); } to { transform: rotate(1.6deg); } }
@keyframes blink { 0%, 65% { opacity: .15; } 72%, 82% { opacity: 1; } 100% { opacity: .15; } }
@keyframes floor { 0%, 44% { opacity: .25; transform: scaleY(.6); } 52%, 92% { opacity: 1; transform: scaleY(1); } 100% { opacity: .25; transform: scaleY(.6); } }
@keyframes flip { 0%, 40% { transform: none; } 55%, 80% { transform: translate(-6px, -14px) rotate(-6deg); } 100% { transform: none; } }
@keyframes write { 0% { stroke-dashoffset: 120; } 30%, 85% { stroke-dashoffset: 0; } 100% { stroke-dashoffset: 120; } }
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 rgba(74, 222, 128, .55); } 70% { box-shadow: 0 0 0 9px rgba(74, 222, 128, 0); } 100% { box-shadow: 0 0 0 0 rgba(74, 222, 128, 0); } }
@keyframes shimmer { to { background-position: -200% 0; } }
@keyframes flash { 0% { color: var(--gold-600); } 100% { color: var(--text-strong); } }
@keyframes pop { from { opacity: 0; transform: translateY(-8px) scale(.98); } to { opacity: 1; transform: none; } }
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
@keyframes zoomIn { from { opacity: 0; transform: scale(.94); } to { opacity: 1; transform: none; } }
@keyframes slideIn { from { opacity: 0; transform: translateX(24px); } to { opacity: 1; transform: none; } }
@keyframes rowIn { from { opacity: 0; transform: translateY(-6px); } to { opacity: 1; transform: none; } }
@keyframes panelIn { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
@keyframes targetPulse { 0% { box-shadow: 0 0 0 0 rgba(201, 165, 90, .6), var(--shadow-md); } 100% { box-shadow: 0 0 0 18px rgba(201, 165, 90, 0), var(--shadow-md); } }

/* -------------------------------------------------------- 19. responsive */
@media (max-width: 1320px) {
  .tool--search .tool__label, .tool--search .tool__kbd { display: none; }
  .tool--search { padding-inline: .65rem; }
  .nav__link { padding-inline: .6rem; }
  .nav__link::after { inset-inline: .6rem; }
}
@media (max-width: 1180px) {
  .brand__sub { display: none; }
}
@media (max-width: 1080px) {
  :root { --hdr-h: 64px; }
  .nav { display: none; }
  .tool--menu { display: inline-flex; }
  .hdr__tools { margin-inline-start: auto; }
  .brand__sub { display: block; }
  .doc-layout { grid-template-columns: minmax(0, 1fr); }
  .doc-side { position: static; }
  .toc {
    position: fixed; z-index: 95; inset-inline: 0; bottom: 0; max-height: min(82vh, 680px);
    border-radius: var(--r-xl) var(--r-xl) 0 0; border-bottom: 0; box-shadow: 0 -24px 60px -20px rgba(0, 0, 0, .55);
    transform: translateY(105%); visibility: hidden;
    transition: transform .45s var(--ease-out), visibility 0s linear .45s;
  }
  .toc::before { content: ""; align-self: center; width: 44px; height: 4px; margin-top: .6rem; border-radius: 4px; background: var(--border-strong); }
  .toc.is-open { transform: none; visibility: visible; transition: transform .45s var(--ease-out); }
  .toc__close { display: inline-flex; }
  .toc__scroll { padding-bottom: max(1.25rem, env(safe-area-inset-bottom)); }
  .toc-backdrop { position: fixed; inset: 0; z-index: 94; display: block; background: var(--overlay); animation: fadeIn .25s; }
  .doc-tools__toc { display: inline-flex; }
}
@media (max-width: 960px) {
  .hero__grid, .split, .cta__inner, .contact-layout, .split--files { grid-template-columns: minmax(0, 1fr); }
  .hero__title { max-width: 20ch; }
  .feature-grid { grid-template-columns: minmax(0, 1fr); }
  .lib-grid { grid-template-columns: minmax(0, 1fr); }
  .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 2.5rem; }
  .steps::before, .steps::after { display: none; }
  .ftr__top { grid-template-columns: 1fr 1fr; }
  .ftr__brand, .ftr__news { grid-column: 1 / -1; }
  .contact-side { position: static; }
  .branch-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .branch-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .branch-docs ol { grid-template-columns: minmax(0, 1fr); }
  .gallery--4 { --cols: 2; }
  .split__media { margin-inline: 1.5rem; }
  .page-hero__art { opacity: .2; }
  .hero-fx__crane { opacity: .45; width: 150%; }
}
@media (max-width: 720px) {
  .doc-grid, .drops, .mini-steps, .strengths, .pager { grid-template-columns: minmax(0, 1fr); }
  .gallery { --cols: 1; }
  .gallery--4 { --cols: 2; }
  .gallery__link { aspect-ratio: 4 / 3; }
  .gallery--4 .gallery__link { aspect-ratio: 4 / 5; }
  .banner { grid-template-columns: minmax(0, 1fr); }
  .fx__controls { grid-template-columns: 1fr 1fr; }
  .fx__refresh { grid-column: 1 / -1; }
  .rfq-row { grid-template-columns: auto minmax(0, 1fr) minmax(0, 1fr) auto; }
  .rfq-row input[name="item_description"] { grid-column: 2 / 4; }
  .rfq-row .rfq-remove { grid-row: 1; grid-column: 4; }
  .rfq-row input[name="item_quantity"] { grid-column: 2; }
  .rfq-row input[name="item_unit"] { grid-column: 3; }
  .lib-card { grid-template-columns: 84px minmax(0, 1fr); gap: 1rem; }
  .lib-card__cover { min-height: 120px; padding: .75rem .6rem .75rem .9rem; }
  .lib-card__num { font-size: 1.6rem; }
  .branch-grid { grid-template-columns: minmax(0, 1fr); }
  .branch-card--wide { grid-column: auto; }
  .branch-no ol { grid-template-columns: minmax(0, 1fr); }
  .branch-nav { position: static; }
  .pager__link--next { text-align: start; }
  .pager__link--next .pager__dir { justify-content: flex-start; }
}
@media (max-width: 640px) {
  .hdr__tools .menu, .hdr__tools .tool--theme, .hdr__etravel { display: none; }
  .brand__sub { display: none; }
  .brand__name { font-size: 1rem; white-space: normal; }
  .btn-row .btn { flex: 1 1 100%; }
  .stat { padding: .9rem .6rem; text-align: center; }
  .stat__num { font-size: 1.6rem; }
  .stat__label { font-size: .62rem; letter-spacing: .05em; line-height: 1.4; }
  html[lang="ar"] .stat__label, html[lang="zh-Hans"] .stat__label { font-size: .78rem; }
  .ftr__top { grid-template-columns: minmax(0, 1fr); }
  .ftr__bottom { flex-direction: column; }
  .newsletter__row { flex-direction: column; }
  .article { padding: 1.1rem 1.1rem 1rem; }
  .article-head { gap: .6rem; }
  .doc-tools { top: calc(var(--hdr-h) + .4rem); }
  .doc-tools__toc span { display: none; }
  .split__badge { inset-inline-start: .75rem; bottom: .75rem; padding: .75rem 1rem; }
  .split__badge strong { font-size: 1.8rem; }
  .tabs__list { border-radius: var(--r-md); }
  .tab { padding: .7rem .8rem; font-size: .86rem; }
  .tab .icon { display: none; }
  .palette { padding-top: 1rem; }
  .palette__panel { max-height: 86vh; }
  .palette__foot { display: none; }
  .lightbox__prev, .lightbox__next { top: auto; bottom: 1rem; translate: none; }
}

/* ------------------------------------------------- 20. reduced motion */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
  .js [data-reveal] { opacity: 1; translate: none; }
  .split-w > span { transform: none; }
  .meter i { transform: none; }
}

/* --------------------------------------------------------------- 21. print */
@media print {
  .hdr, .drawer, .ftr, .toc, .doc-side, .doc-tools, .feedback, .pager, .to-top, .toast, .palette, .btn-row, .hero-fx, .ticker, .fx, .cta, .skip-link { display: none !important; }
  body { background: #fff; color: #000; font-size: 11pt; }
  .js [data-reveal] { opacity: 1 !important; translate: none !important; }
  .page-hero, .hero { padding: 0 0 1rem; background: none !important; color: #000; }
  .page-hero__bg, .hero__media, .page-hero__art, .page-hero::after { display: none; }
  .page-hero__title, .hero__title { color: #000; }
  .doc-meta li, .crumbs ol { color: #000; border-color: #999; background: none; }
  .doc-layout { display: block; padding: 0; }
  .article { break-inside: avoid; padding: 0 0 .6rem; border: 0; box-shadow: none; }
  .article-num { background: none; color: #000; border: 1px solid #000; }
  .article-link { display: none; }
  a { color: #000; }
}

/* ==========================================================================
   v9.1 — visa uploads, request tracking, polish
   ========================================================================== */

/* ---- readability: small grey text meets WCAG AA contrast */
.fx__rate, .form-note { color: var(--text-muted); }

/* ---- footer: comfortable tap targets on phones */
.ftr__langs { gap: .35rem 1.1rem; flex-wrap: wrap; }
.ftr__langs a { display: inline-flex; align-items: center; min-height: 2.5rem; padding-inline: .15rem; }
.ftr__contact a { display: inline-block; padding-block: .35rem; }

/* ---- hero chips: wrapped text keeps a tidy shape */
.hero-chip { border-radius: 1.35rem; line-height: 1.35; }

/* ---- visa uploads */
.drop__cam {
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem; min-height: 2.75rem;
  border-radius: var(--r-sm); border: 1px solid var(--border-strong); background: var(--surface); color: var(--text-strong);
  font: inherit; font-size: .88rem; font-weight: 650; cursor: pointer;
}
.drop__cam:hover { border-color: var(--gold-500); background: var(--accent-soft); }
.drop__cam .icon { width: 1.15rem; height: 1.15rem; color: var(--accent-text); }
.drop__cam-input { position: absolute; width: 1px; height: 1px; opacity: 0; pointer-events: none; }
.drop__file-icon.has-thumb { width: 2.6rem; height: 2.6rem; flex: none; border-radius: .45rem; overflow: hidden; background: var(--surface); border: 1px solid var(--success-border); }
.drop__thumb { display: block; width: 2.6rem; height: 2.6rem; max-width: none; object-fit: cover; }
.drop { grid-template-columns: minmax(0, 1fr); }
.drop.is-busy .drop__file { background: var(--surface-2); border-color: var(--border); color: var(--text-muted); }
.drop.is-busy .drop__file-name { font-weight: 500; }
.drop.is-busy .drop__file-icon { animation: awPulse 1s ease-in-out infinite alternate; }
@keyframes awPulse { from { opacity: .35; } to { opacity: 1; } }

.upload-bar { flex: 1 1 100%; height: .45rem; border-radius: var(--r-pill); background: var(--surface-2); border: 1px solid var(--border); overflow: hidden; }
.upload-bar__fill { display: block; width: 0; height: 100%; border-radius: inherit; background: linear-gradient(90deg, var(--gold-400), var(--gold-600)); transition: width .25s ease; }

/* ---- after sending: the reference card */
.form.is-done > :not(.visa-done) { display: none !important; }
.visa-done {
  scroll-margin-top: calc(var(--hdr-h) + 1.5rem);
  display: grid; grid-template-columns: auto 1fr; gap: 1.1rem; align-items: start; padding: 1.4rem;
  border-radius: var(--r-lg); background: var(--success-bg); border: 1px solid var(--success-border); outline: none;
  animation: rowIn .45s var(--ease-out);
}
.visa-done__icon { display: grid; place-items: center; width: 2.8rem; height: 2.8rem; border-radius: 50%; background: var(--success); color: #fff; }
.visa-done__icon .icon { width: 1.35rem; height: 1.35rem; }
.visa-done__title { margin: .2rem 0 .3rem; color: var(--text-strong); font-family: var(--font-display); font-size: 1.35rem; }
.visa-done__text { margin: 0; color: var(--text); }
.visa-done__ref {
  display: flex; flex-wrap: wrap; align-items: center; gap: .5rem .9rem; margin-top: 1.1rem; padding: .85rem 1rem;
  border-radius: var(--r-md); background: var(--surface); border: 1px solid var(--border);
}
.visa-done__label { color: var(--text-muted); font-size: .85rem; font-weight: 600; }
.visa-done__ref code { color: var(--text-strong); font: 700 1.25rem/1.2 ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace; letter-spacing: .06em; }
.visa-done__copy {
  margin-inline-start: auto; min-height: 2.4rem; padding: .3rem .95rem; border-radius: var(--r-pill); border: 1px solid var(--border-strong);
  background: transparent; color: var(--text-strong); font: inherit; font-size: .85rem; font-weight: 650; cursor: pointer;
}
.visa-done__copy:hover { border-color: var(--gold-500); background: var(--accent-soft); }
.visa-done__actions { display: flex; flex-wrap: wrap; gap: .7rem; margin-top: 1.1rem; }

/* ---- "Already applied?" link in the visa panel */
.panel__track { display: inline-flex; align-items: center; gap: .45rem; margin-top: 1rem; color: var(--accent-text); font-weight: 650; font-size: .92rem; text-decoration: none; }
.panel__track:hover { text-decoration: underline; text-underline-offset: 3px; }
.panel__track .icon { width: 1rem; height: 1rem; }

/* ---- track page */
.track-layout { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 22rem); gap: clamp(1.25rem, 3vw, 2.5rem); align-items: start; }
.track-card .form { max-width: 34rem; }
.track-ref-input { font-family: ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace; letter-spacing: .06em; text-transform: uppercase; }
.track-ref-input::placeholder { text-transform: none; letter-spacing: .03em; }
.track-help { margin: .35rem 0 0; color: var(--text-muted); font-size: .82rem; }
.track-result { outline: none; }
.track-result__hello { margin: 0 0 .6rem; color: var(--text-muted); }
.track-result__head { display: flex; flex-wrap: wrap; align-items: center; gap: .6rem 1rem; }
.track-result__ref { color: var(--text-muted); font: 600 .95rem/1 ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace; letter-spacing: .06em; }
.track-badge {
  display: inline-flex; align-items: center; gap: .5rem; padding: .45rem 1rem; border-radius: var(--r-pill);
  font-family: var(--font-display); font-size: 1.35rem; font-weight: 650; line-height: 1.15;
  background: var(--surface-2); color: var(--text-strong); border: 1px solid var(--border);
}
.track-badge::before { content: ""; width: .6rem; height: .6rem; border-radius: 50%; background: currentColor; }
.track-badge[data-status="new"] { color: var(--ink-600); background: color-mix(in srgb, var(--ink-500) 10%, var(--surface)); border-color: color-mix(in srgb, var(--ink-500) 30%, transparent); }
.track-badge[data-status="in_progress"] { color: var(--accent-text); background: var(--accent-soft); border-color: color-mix(in srgb, var(--gold-500) 45%, transparent); }
.track-badge[data-status="approved"] { color: var(--success); background: var(--success-bg); border-color: var(--success-border); }
.track-badge[data-status="rejected"] { color: var(--danger); background: var(--danger-bg); border-color: var(--danger-border); }
:root[data-theme="dark"] .track-badge[data-status="new"] { color: #a9c6e8; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .track-badge[data-status="new"] { color: #a9c6e8; } }
.track-result__desc { margin: 1rem 0 1.4rem; color: var(--text); font-size: 1.02rem; max-width: 38rem; }
.track-steps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); margin: 0; padding: 0; list-style: none; counter-reset: none; }
.track-step { position: relative; display: grid; justify-items: center; gap: .35rem; text-align: center; padding: 0 .4rem; }
.track-step::before {
  content: ""; position: absolute; top: 1.15rem; inset-inline-start: calc(-50% + 1.4rem); inset-inline-end: calc(50% + 1.4rem);
  height: 2px; background: var(--border-strong);
}
.track-step:first-child::before { display: none; }
.track-step.is-done::before { background: var(--success); }
.track-step.is-bad::before { background: var(--danger); }
.track-step__dot {
  position: relative; z-index: 1; display: grid; place-items: center; width: 2.3rem; height: 2.3rem; border-radius: 50%;
  background: var(--surface); border: 2px solid var(--border-strong); color: var(--text-muted); font-weight: 700; font-size: .9rem;
}
.track-step__dot .icon { width: 1.1rem; height: 1.1rem; }
.track-step.is-done .track-step__dot { background: var(--success); border-color: var(--success); color: #fff; }
.track-step.is-bad .track-step__dot { background: var(--danger); border-color: var(--danger); }
.track-step.is-next .track-step__dot { border-color: var(--gold-500); color: var(--accent-text); box-shadow: 0 0 0 4px color-mix(in srgb, var(--gold-500) 18%, transparent); }
.track-step__label { color: var(--text-strong); font-weight: 650; font-size: .92rem; }
.track-step__date { min-height: 1.2em; color: var(--text-muted); font-size: .8rem; }
.track-result__meta { margin: 1.4rem 0 0; padding-top: 1rem; border-top: 1px solid var(--border); color: var(--text-muted); font-size: .86rem; }
.track-result__actions { display: flex; flex-wrap: wrap; gap: .7rem; margin-top: 1.1rem; }
@media (max-width: 960px) { .track-layout { grid-template-columns: minmax(0, 1fr); } }
@media (max-width: 520px) {
  .visa-done { grid-template-columns: minmax(0, 1fr); }
  .visa-done__copy { margin-inline-start: 0; }
  .track-badge { font-size: 1.15rem; }
  .track-step__label { font-size: .84rem; }
}

/* ---- 404 page */
.nf { display: grid; place-items: center; min-height: 62vh; text-align: center; padding-block: clamp(3rem, 8vw, 6rem); }
.nf__code { margin: 0; color: var(--gold-500); font-family: var(--font-display); font-size: clamp(4.5rem, 14vw, 8rem); font-weight: 700; line-height: 1; letter-spacing: -.02em; }
.nf__langs { display: grid; gap: 1.6rem; margin-top: 1.4rem; }
.nf__block h1, .nf__block h2 { margin: 0 0 .4rem; color: var(--text-strong); font-family: var(--font-display); font-size: clamp(1.3rem, 2.4vw, 1.7rem); }
.nf__block p { margin: 0 0 .9rem; color: var(--text-muted); }
.nf__links { display: flex; flex-wrap: wrap; justify-content: center; gap: .6rem; }

/* ==========================================================================
   v9.2 — grouped navigation, services, FAQ, polish
   ========================================================================== */

/* ---- header: Services / Legislation dropdowns (open/close handled by the [data-menu] code in site.js) */
.nav__item { position: relative; }
.nav__trigger { display: inline-flex; align-items: center; gap: .3rem; border: 0; background: none; cursor: pointer; font-family: inherit; line-height: inherit; }
.nav__caret { width: .9em; height: .9em; opacity: .65; transform: rotate(90deg); transition: transform .25s var(--ease), opacity .2s; }
.nav__trigger:hover .nav__caret { opacity: 1; }
.nav__trigger[aria-expanded="true"] { color: #fff; background: rgba(255, 255, 255, .06); }
.nav__trigger[aria-expanded="true"] .nav__caret { opacity: 1; transform: rotate(-90deg); }
.nav__trigger.is-current { color: #fff; }
.nav__trigger.is-current::after { transform: scaleX(1); }
.nav__menu {
  inset-inline-end: auto; inset-inline-start: -.4rem; display: grid; gap: .15rem; width: max-content; min-width: 300px; max-width: 360px;
}
.menu__item--rich { align-items: flex-start; gap: .8rem; padding: .65rem .7rem; }
.menu__icon {
  display: inline-grid; place-items: center; width: 2.25rem; height: 2.25rem; flex: none; border-radius: 10px;
  background: rgba(201, 165, 90, .1); border: 1px solid rgba(201, 165, 90, .28); color: var(--gold-300);
  transition: background-color .2s, color .2s, border-color .2s;
}
.menu__icon .icon { width: 1.1rem; height: 1.1rem; }
.menu__text { display: flex; flex-direction: column; min-width: 0; padding-top: .1rem; }
.menu__name { color: #fff; font-size: .92rem; font-weight: 600; line-height: 1.3; }
.menu__desc { margin-top: .15rem; color: #93a3b4; font-size: .78rem; line-height: 1.4; }
.menu__item--rich:hover .menu__icon, .menu__item--rich:focus-visible .menu__icon { background: var(--gold-500); border-color: var(--gold-500); color: var(--ink-950); }
.menu__item--rich[aria-current] .menu__name { color: var(--gold-300); }

/* ---- mobile drawer: grouped links */
.drawer__navwrap { display: grid; gap: 1.1rem; }
.drawer__sub { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .45rem; margin: 0; padding: 0; list-style: none; }
.drawer__sub-link {
  display: flex; align-items: center; gap: .6rem; height: 100%; padding: .7rem .75rem;
  border-radius: var(--r-sm); border: 1px solid rgba(255, 255, 255, .1); background: rgba(255, 255, 255, .02);
  color: #d5dde6; font-size: .88rem; line-height: 1.3; text-decoration: none; transition: background-color .2s, border-color .2s, color .2s;
}
.drawer__sub-link .icon { color: var(--gold-400); }
.drawer__sub-link:hover { color: #fff; background: rgba(255, 255, 255, .06); border-color: rgba(201, 165, 90, .5); }
.drawer__sub-link[aria-current] { color: #fff; background: rgba(201, 165, 90, .14); border-color: var(--gold-500); }
@media (max-width: 380px) { .drawer__sub { grid-template-columns: minmax(0, 1fr); } }

/* ---- home: services */
.svc-grid .svc { background: var(--surface); box-shadow: var(--shadow-sm); }
.svc__num {
  position: absolute; top: 1.85rem; inset-inline-end: 1.75rem; color: transparent; pointer-events: none;
  font-family: var(--font-serif); font-size: 2rem; font-weight: 600; line-height: 1;
  -webkit-text-stroke: 1px var(--border-strong); transition: -webkit-text-stroke-color .3s;
}
.svc:hover .svc__num { -webkit-text-stroke-color: var(--gold-500); }
.section-head--center .eyebrow { justify-content: center; }

/* ---- home: FAQ */
.faq-layout { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: clamp(2rem, 5vw, 4.5rem); align-items: start; }
.faq-layout__head { position: sticky; top: calc(var(--hdr-h) + 2rem); margin-bottom: 0; }
.faq-layout__btn { margin-top: 1.6rem; }
.faq { display: grid; gap: .75rem; }
.faq__item {
  border-radius: var(--r-lg); background: var(--surface); border: 1px solid var(--border); box-shadow: var(--shadow-xs);
  transition: border-color .3s ease, box-shadow .3s ease;
}
.faq__item:hover { border-color: var(--border-strong); }
.faq__item[open] { border-color: color-mix(in srgb, var(--gold-500) 45%, var(--border)); box-shadow: var(--shadow-md); }
.faq__q {
  display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: 1.15rem 1.35rem;
  list-style: none; cursor: pointer; color: var(--text-strong);
  font-family: var(--font-display); font-size: 1.12rem; font-weight: 600; line-height: 1.35;
}
.faq__q::-webkit-details-marker { display: none; }
.faq__q:focus-visible { outline-offset: -2px; border-radius: var(--r-lg); }
html[lang="ar"] .faq__q { line-height: 1.6; }
.faq__toggle {
  display: grid; place-items: center; width: 2rem; height: 2rem; flex: none; border-radius: 50%;
  background: var(--accent-soft); color: var(--accent-text); border: 1px solid color-mix(in srgb, var(--gold-500) 35%, transparent);
  transition: transform .35s var(--ease), background-color .25s, color .25s;
}
.faq__item[open] .faq__toggle { transform: rotate(45deg); background: var(--gold-500); border-color: var(--gold-500); color: var(--ink-950); }
.faq__a { padding: 0 1.35rem 1.3rem; color: var(--text-muted); }
.faq__a p { margin: 0; }
.faq__item[open] .faq__a { animation: rowIn .35s var(--ease-out); }

/* ---- footer: brand · services · legislation · company · updates */
.ftr__top { grid-template-columns: 1.25fr .85fr .95fr .7fr 1.35fr; gap: 2.25rem; }

/* ---- polish */
.hero .btn-row { margin-top: 2.2rem; }
.section-head .eyebrow { margin-bottom: .85rem; }
#services, #faq, #approach, #documents { scroll-margin-top: calc(var(--hdr-h) + 1rem); }

@media (max-width: 1180px) {
  .ftr__top { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .ftr__brand, .ftr__news { grid-column: 1 / -1; }
}
@media (max-width: 960px) {
  .svc-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .faq-layout { grid-template-columns: minmax(0, 1fr); }
  .faq-layout__head { position: static; }
}
@media (max-width: 640px) {
  .svc-grid { grid-template-columns: minmax(0, 1fr); }
  .ftr__top { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 2rem 1.25rem; }
  .faq__q { padding: 1rem 1.1rem; font-size: 1.04rem; }
  .faq__a { padding: 0 1.1rem 1.1rem; }
}

/* ==========================================================================
   v9.3 — calmer, cleaner: less motion, steadier rhythm, one alignment
   ========================================================================== */

/* ---- one vertical rhythm for every section */
.section { padding-block: clamp(3.5rem, 6.5vw, 5.75rem); }
.section-head { margin-bottom: clamp(1.75rem, 3.5vw, 2.75rem); }
.section-title { font-size: clamp(1.75rem, 1.2rem + 1.7vw, 2.5rem); }
.section--alt { border-block: 0; }

/* ---- hero: keep the photo and crane, drop the restless motion */
.hero { padding-block: clamp(4rem, 8vw, 7rem) clamp(3rem, 6vw, 5rem); }
.hero__media img { animation: none; transform: none; }
.hero__glow { display: none; }
.hero-fx__lattice { animation: none; opacity: .5; }
.hero-fx__crane { opacity: .55; }
.hero__title::after { display: none; }
.hero__lede { margin-top: .4rem; }
.stats { margin-top: 2.25rem; }

/* ---- quieter decoration everywhere */
.cta__pattern, .section-dark__pattern { animation: none; }
.btn--shine::after, .btn--etravel::after { display: none; }
.doc-card:hover, .feature:hover, .branch-card:hover { transform: translateY(-2px); }
.feature:hover .feature__icon, .brand:hover .brand__mark { transform: none; }
.doc-card::before { display: none; }
.gallery--stagger .gallery__item:nth-child(2) { margin-top: 0; }
.gallery__link { aspect-ratio: 4 / 3; }

/* ---- cards: same padding, same corners, same border */
.feature, .doc-card, .faq__item, .branch-card { border-radius: var(--r-lg); }
.feature { padding: 1.75rem 1.6rem; }
.svc-grid { gap: 1rem; }
.svc__num { top: 1.7rem; inset-inline-end: 1.6rem; font-size: 1.6rem; }

/* ---- banner sits under the document cards */
.banner--after { margin-top: 1.25rem; }

/* ---- branch guide as its own page */
.branch--page { padding-top: clamp(2.5rem, 5vw, 3.5rem); }
.branch--page .branch-stats { margin-top: 0; }
.branch--page h3[id]:first-of-type { margin-top: 2.5rem; }

@media (max-width: 720px) {
  .gallery__link, .gallery--4 .gallery__link { aspect-ratio: 4 / 3; }
}


/* ==========================================================================
   v10 — "The file"
   A company file, kept in order: pale paper, navy ink, gold used like a seal.
   Section names sit in an index column; content sits in ruled lists.
   One bold element (the name الوسيط on the home page) and one moment of motion.
   This layer overrides everything above it.
   ========================================================================== */

/* -------------------------------------------------------------- tokens */
:root {
  --ink-950: #0b1a2b; --ink-900: #12263d; --ink-850: #172f4a; --ink-800: #1c3757;
  --ink-700: #24456b; --ink-600: #2f5a88; --ink-500: #4672a3;
  --gold-50: #faf6ec; --gold-100: #f3eada; --gold-200: #e8d7b1; --gold-300: #d9bd7f;
  --gold-400: #c6a25c; --gold-500: #b08a3e; --gold-600: #96742f; --gold-700: #7a5e25; --gold-800: #5e481c;

  --bg: #f5f6f8;
  --surface: #ffffff;
  --surface-alt: #eceff3;
  --surface-2: #eef1f4;
  --surface-3: #e2e7ed;
  --border: #dbe1e8;
  --border-strong: #c3ccd7;
  --rule: #d3dae2;
  --rule-strong: #12263d;
  --text: #33445a;
  --text-strong: #12263d;
  --text-muted: #56677b;
  --text-subtle: #6a7a8d;
  --accent-text: #85662a;
  --accent-soft: #f5efe1;
  --seal: #b08a3e;
  --link: #1d5aa8;
  --link-hover: #12263d;
  --alert: #a93a2c;
  --shadow-xs: none;
  --shadow-sm: 0 1px 2px rgba(18, 38, 61, .06);
  --shadow-md: 0 10px 28px -18px rgba(18, 38, 61, .35);
  --shadow-lg: 0 24px 56px -28px rgba(18, 38, 61, .45);
  --ring: 0 0 0 3px rgba(29, 90, 168, .22);
  --overlay: rgba(11, 26, 43, .5);

  --font-sans: "IBM Plex Sans", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  --font-cond: "IBM Plex Sans Condensed", "IBM Plex Sans", "Arial Narrow", sans-serif;
  --font-serif: "IBM Plex Serif", Georgia, "Times New Roman", serif;
  --font-display: var(--font-cond);
  --font-law: var(--font-serif);
  --font-kufi: "Reem Kufi", "IBM Plex Sans Arabic", "Noto Kufi Arabic", sans-serif;

  --r-xs: 3px; --r-sm: 5px; --r-md: 7px; --r-lg: 9px; --r-xl: 12px;
  --container: 1200px;
  --hdr-h: 68px;
  --lattice: none;
}
:root[data-theme="dark"] {
  --bg: #0c1622; --surface: #121f2f; --surface-alt: #0f1a28; --surface-2: #17263a; --surface-3: #1e3048;
  --border: rgba(205, 218, 232, .1); --border-strong: rgba(205, 218, 232, .2); --rule: rgba(205, 218, 232, .13); --rule-strong: rgba(232, 238, 245, .7);
  --text: #c3cfdc; --text-strong: #f1f4f8; --text-muted: #98a8bb; --text-subtle: #8090a4;
  --accent-text: #d9bd7f; --accent-soft: rgba(198, 162, 92, .12); --seal: #d2ae62;
  --link: #8fbcf0; --link-hover: #ffffff; --alert: #f0998d;
  --shadow-sm: 0 1px 2px rgba(0, 0, 0, .4); --shadow-md: 0 12px 30px -18px rgba(0, 0, 0, .8); --shadow-lg: 0 26px 60px -28px rgba(0, 0, 0, .9);
  --ring: 0 0 0 3px rgba(143, 188, 240, .28); --overlay: rgba(0, 0, 0, .6);
  color-scheme: dark;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #0c1622; --surface: #121f2f; --surface-alt: #0f1a28; --surface-2: #17263a; --surface-3: #1e3048;
    --border: rgba(205, 218, 232, .1); --border-strong: rgba(205, 218, 232, .2); --rule: rgba(205, 218, 232, .13); --rule-strong: rgba(232, 238, 245, .7);
    --text: #c3cfdc; --text-strong: #f1f4f8; --text-muted: #98a8bb; --text-subtle: #8090a4;
    --accent-text: #d9bd7f; --accent-soft: rgba(198, 162, 92, .12); --seal: #d2ae62;
    --link: #8fbcf0; --link-hover: #ffffff; --alert: #f0998d;
    --shadow-sm: 0 1px 2px rgba(0, 0, 0, .4); --shadow-md: 0 12px 30px -18px rgba(0, 0, 0, .8); --shadow-lg: 0 26px 60px -28px rgba(0, 0, 0, .9);
    --ring: 0 0 0 3px rgba(143, 188, 240, .28); --overlay: rgba(0, 0, 0, .6);
    color-scheme: dark;
  }
}

/* one type family across the three editions */
html[lang="ar"] {
  --font-sans: "IBM Plex Sans Arabic", "IBM Plex Sans", Tahoma, "Segoe UI", sans-serif;
  --font-cond: "IBM Plex Sans Arabic", "IBM Plex Sans Condensed", sans-serif;
  --font-display: var(--font-cond);
}
html[lang="zh-Hans"] {
  --font-sans: "IBM Plex Sans", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Noto Sans SC", sans-serif;
  --font-cond: "IBM Plex Sans Condensed", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Noto Sans SC", sans-serif;
  --font-display: var(--font-cond);
}
:where(html:not([lang="en"])) :where([lang="en"]) {
  --font-sans: "IBM Plex Sans", ui-sans-serif, system-ui, "Segoe UI", Arial, sans-serif;
  --font-cond: "IBM Plex Sans Condensed", "IBM Plex Sans", sans-serif;
  --font-display: var(--font-cond);
}

/* ---------------------------------------------------------------- base */
body { background: var(--bg); color: var(--text); font: 400 1.0625rem/1.65 var(--font-sans); }
html[lang="ar"] body { font-size: 1.08rem; line-height: 1.85; }
h1, h2, h3, h4 { font-family: var(--font-display); font-weight: 600; line-height: 1.1; letter-spacing: -.01em; }
html[lang="ar"] :is(h1, h2, h3, h4) { line-height: 1.4; letter-spacing: 0; font-weight: 700; }
html[lang="zh-Hans"] :is(h1, h2, h3, h4) { line-height: 1.3; letter-spacing: .01em; font-weight: 600; }
strong { font-weight: 600; }
a { text-underline-offset: .2em; }
::selection { background: var(--gold-200); color: var(--ink-950); }
:focus-visible { outline: 2px solid var(--link); outline-offset: 2px; border-radius: 3px; }
.container { width: min(var(--container), 100% - 2 * var(--gutter)); }

/* motion lives in the v12 block at the end of this layer */

/* labels: sentence case everywhere, no tracking */
.eyebrow, .stat__label, .brand__sub, .ticker__group, .doc-card__meta, .branch-stats span, .branch-field,
.fx__label, .split__badge span, .contact-item__label, .toc__title, .api-hit-doc, .lib-card__meta,
.article-head, .pager__dir, .palette__section, .lightbox__count, .ftr__h, .hero-panel__title,
.drawer__label, .form-subtitle span {
  text-transform: none; letter-spacing: 0;
}
.eyebrow { gap: .5rem; margin-bottom: .75rem; font-size: .95rem; font-weight: 600; color: var(--accent-text); }
.eyebrow::before { display: none; }
.eyebrow--light { color: var(--gold-300); }

/* ------------------------------------------------------------- buttons */
.btn {
  min-height: 2.75rem; padding: .65rem 1.15rem; border-radius: 6px;
  font-size: .95rem; font-weight: 600; letter-spacing: 0; box-shadow: none;
  transition: background-color .15s ease, border-color .15s ease, color .15s ease;
}
.btn:hover { transform: none; }
.btn:active { transform: translateY(1px); }
.btn .icon--flip { display: none; }
.btn--lg { min-height: 3.1rem; padding: .8rem 1.45rem; font-size: 1rem; border-radius: 6px; }
.btn--primary, .btn--dark { --btn-bg: var(--ink-900); --btn-fg: #fff; --btn-bd: var(--ink-900); box-shadow: none; filter: none; }
.btn--primary:hover, .btn--dark:hover { --btn-bg: var(--ink-700); --btn-bd: var(--ink-700); box-shadow: none; filter: none; }
.btn--ghost { --btn-bg: transparent; --btn-fg: var(--text-strong); --btn-bd: var(--border-strong); }
.btn--ghost:hover { --btn-bg: var(--surface); --btn-bd: var(--text-strong); }
.btn--glass { --btn-bg: transparent; --btn-fg: var(--text-strong); --btn-bd: var(--border-strong); -webkit-backdrop-filter: none; backdrop-filter: none; }
.btn--glass:hover { --btn-bg: var(--surface); --btn-fg: var(--text-strong); --btn-bd: var(--text-strong); }
.btn--etravel { box-shadow: none; font-weight: 700; }
.btn--etravel:hover { box-shadow: none; filter: brightness(1.04); }
:root[data-theme="dark"] :is(.btn--primary, .btn--dark) { --btn-bg: var(--gold-300); --btn-fg: var(--ink-950); --btn-bd: var(--gold-300); }
:root[data-theme="dark"] :is(.btn--primary, .btn--dark):hover { --btn-bg: var(--gold-200); --btn-bd: var(--gold-200); }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) :is(.btn--primary, .btn--dark) { --btn-bg: var(--gold-300); --btn-fg: var(--ink-950); --btn-bd: var(--gold-300); }
  :root:not([data-theme="light"]) :is(.btn--primary, .btn--dark):hover { --btn-bg: var(--gold-200); --btn-bd: var(--gold-200); }
}
.link-arrow { gap: .35rem; font-weight: 600; text-decoration: underline; text-decoration-color: color-mix(in srgb, currentColor 35%, transparent); }
.link-arrow:hover { text-decoration-color: currentColor; }
.link-arrow .icon { display: none; }
.chip { border-radius: 4px; background: var(--surface-2); border-color: var(--border); color: var(--text-muted); letter-spacing: 0; font-weight: 600; }

/* -------------------------------------------------------------- header */
.hdr {
  background: color-mix(in srgb, var(--surface) 92%, transparent); color: var(--text-strong);
  border-bottom: 1px solid var(--border);
  -webkit-backdrop-filter: saturate(150%) blur(12px); backdrop-filter: saturate(150%) blur(12px);
}
.hdr::before { display: none; }
.hdr.is-scrolled { box-shadow: 0 10px 30px -24px rgba(18, 38, 61, .55); }
.brand, .brand:hover { color: var(--text-strong); }
.brand__mark { width: 40px; height: 40px; border-radius: 10px; box-shadow: none; }
.brand:hover .brand__mark { transform: none; }
.brand__name { color: var(--text-strong); font-family: var(--font-cond); font-size: 1.14rem; font-weight: 600; }
.brand__sub { margin-top: .12rem; color: var(--text-muted); font-size: .76rem; font-weight: 500; }
html[lang="ar"] .brand__sub, html[lang="zh-Hans"] .brand__sub { font-size: .8rem; }
.nav__link { color: var(--text); font-size: .95rem; font-weight: 500; }
.nav__link:hover { color: var(--text-strong); background: var(--surface-2); }
.nav__link::after { bottom: .18rem; height: 2px; background: var(--seal); }
.nav__link[aria-current="page"], .nav__trigger.is-current { color: var(--text-strong); font-weight: 600; }
.nav__trigger[aria-expanded="true"] { color: var(--text-strong); background: var(--surface-2); }
.tool { border-color: var(--border); background: transparent; color: var(--text); border-radius: 6px; }
.tool:hover, .tool[aria-expanded="true"] { background: var(--surface-2); border-color: var(--border-strong); color: var(--text-strong); }
.tool--search { color: var(--text-muted); }
.tool__kbd { border-color: var(--border-strong); background: var(--surface); color: var(--text-muted); }
.hdr__etravel { min-height: 38px; }
.hdr__progress i { background: var(--seal); }

/* dropdowns + language menu: paper panels */
.menu__list { background: var(--surface); border: 1px solid var(--border); border-radius: 10px; box-shadow: var(--shadow-lg); }
.menu__item { color: var(--text); border-radius: 6px; }
.menu__item:hover { background: var(--surface-2); color: var(--text-strong); }
.menu__item[aria-current] { background: var(--accent-soft); color: var(--text-strong); }
.menu__item-code { color: var(--accent-text); }
.menu__icon { border-radius: 7px; background: var(--surface-2); border-color: var(--border); color: var(--accent-text); }
.menu__item--rich:hover .menu__icon, .menu__item--rich:focus-visible .menu__icon { background: var(--ink-900); border-color: var(--ink-900); color: #fff; }
.menu__name { color: var(--text-strong); }
.menu__desc { color: var(--text-muted); }
.menu__item--rich[aria-current] .menu__name { color: var(--accent-text); }

/* mobile drawer: paper too */
.drawer__panel { background: var(--surface); color: var(--text); box-shadow: -24px 0 60px -30px rgba(11, 26, 43, .5); }
.drawer__head { border-bottom-color: var(--border); }
.drawer__link { color: var(--text-strong); font-family: var(--font-cond); font-size: 1.35rem; font-weight: 600; border-radius: 7px; }
.drawer__link .icon { color: var(--accent-text); }
.drawer__link:hover { background: var(--surface-2); color: var(--text-strong); }
.drawer__link[aria-current="page"] { background: var(--accent-soft); border-color: transparent; color: var(--text-strong); box-shadow: inset 3px 0 0 var(--seal); }
[dir="rtl"] .drawer__link[aria-current="page"] { box-shadow: inset -3px 0 0 var(--seal); }
.drawer__label { color: var(--text-muted); font-size: .88rem; font-weight: 600; }
.drawer__sub-link { color: var(--text); border-color: var(--border); background: transparent; border-radius: 6px; }
.drawer__sub-link .icon { color: var(--accent-text); }
.drawer__sub-link:hover { color: var(--text-strong); background: var(--surface-2); border-color: var(--border-strong); }
.drawer__sub-link[aria-current] { color: var(--text-strong); background: var(--accent-soft); border-color: var(--gold-400); }
.drawer__lang { color: var(--text); border-color: var(--border); border-radius: 6px; }
.drawer__lang:hover { color: var(--text-strong); border-color: var(--border-strong); }
.drawer__lang[aria-current] { background: var(--accent-soft); border-color: var(--gold-400); color: var(--text-strong); }
.drawer__lang-code { color: var(--accent-text); }
.drawer .btn--ghost { --btn-fg: var(--text-strong); --btn-bd: var(--border-strong); }
.drawer .btn--ghost:hover { --btn-bg: var(--surface-2); --btn-bd: var(--text-strong); }

/* ---------------------------------------------------- home: the opening */
.opening {
  position: relative; overflow: hidden;
  padding-block: clamp(3.25rem, 7vw, 6.5rem) clamp(3rem, 6vw, 5.5rem);
  border-bottom: 1px solid var(--rule);
}
.opening__grid { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr); gap: clamp(2rem, 6vw, 6rem); align-items: center; }
.opening__title {
  max-width: 14ch; margin: 0 0 1.4rem; color: var(--text-strong);
  font-size: clamp(2.7rem, 1.35rem + 4.4vw, 4.9rem); line-height: 1; letter-spacing: -.028em;
}
html[lang="ar"] .opening__title { max-width: 17ch; font-size: clamp(2.2rem, 1.3rem + 3vw, 3.7rem); line-height: 1.35; letter-spacing: 0; }
html[lang="zh-Hans"] .opening__title { max-width: 15em; font-size: clamp(2rem, 1.2rem + 2.7vw, 3.4rem); line-height: 1.22; letter-spacing: .01em; }
.opening__lede { max-width: 54ch; margin: 0; color: var(--text-muted); font-size: clamp(1.06rem, 1rem + .3vw, 1.2rem); line-height: 1.6; }
.opening__actions { display: flex; flex-wrap: wrap; gap: .75rem; margin-top: 2.1rem; }

/* the name, set like a seal on the file */
.namemark { display: grid; justify-items: center; margin: 0; text-align: center; }
.namemark__word {
  display: block; padding-inline: .05em; color: var(--seal);
  font-family: var(--font-kufi); font-size: clamp(5rem, 1rem + 9.2vw, 10.5rem); font-weight: 600; line-height: 1.05;
  white-space: nowrap;
  font-feature-settings: "kern" 1;
}
.namemark__gloss {
  max-width: 30ch; margin-top: 1rem; padding-top: 1rem; border-top: 1px solid var(--rule);
  color: var(--text-muted); font-size: .97rem; line-height: 1.55;
}
.namemark__gloss i { color: var(--text-strong); font-style: italic; }
@media (prefers-reduced-motion: no-preference) {
  .namemark__word { animation: stamp .75s cubic-bezier(.2, .9, .3, 1.15) .2s both; }
  .namemark__gloss { animation: fadeIn .6s ease .75s both; }
}
@keyframes stamp {
  0% { opacity: 0; transform: scale(1.14) rotate(-4deg); filter: blur(3px); }
  55% { opacity: 1; filter: none; }
  100% { opacity: 1; transform: none; filter: none; }
}

/* ------------------------------------------------- home: the file index */
.dossier { padding-block: clamp(3.5rem, 6.5vw, 6rem); border-bottom: 1px solid var(--rule); scroll-margin-top: var(--hdr-h); }
.dossier--alt { background: var(--surface-alt); }
.dossier__grid { display: grid; grid-template-columns: minmax(0, 17.5rem) minmax(0, 1fr); gap: clamp(2rem, 6vw, 5.5rem); align-items: start; }
.dossier__head { position: sticky; top: calc(var(--hdr-h) + 2rem); }
.dossier__title { margin: 0 0 .8rem; color: var(--text-strong); font-size: clamp(1.65rem, 1.2rem + 1.3vw, 2.3rem); line-height: 1.08; }
html[lang="ar"] .dossier__title { line-height: 1.4; }
.dossier__lede { margin: 0; color: var(--text-muted); font-size: 1rem; line-height: 1.6; }
.dossier__link { display: inline-block; margin-top: 1.1rem; color: var(--link); font-weight: 600; }
.dossier__body { min-width: 0; }

/* services: a ruled register, the whole row is the link */
.svc-list { margin: 0; padding: 0; list-style: none; border-top: 2px solid var(--rule-strong); }
.svc-row {
  position: relative; display: grid; grid-template-columns: 1.6rem minmax(0, 14rem) minmax(0, 1fr) auto;
  gap: .4rem 1.5rem; align-items: start; padding: 1.4rem .5rem; border-bottom: 1px solid var(--rule);
  transition: background-color .15s ease;
}
.svc-row:hover { background: var(--surface); }
.dossier--alt .svc-row:hover { background: var(--bg); }
.svc-row__icon { width: 1.3rem; height: 1.3rem; margin-top: .2rem; color: var(--seal); }
.svc-row__name { margin: 0; font-size: 1.28rem; line-height: 1.25; }
.svc-row__desc { margin: 0; max-width: 50ch; color: var(--text-muted); }
.svc-row__go { padding-top: .15rem; color: var(--link); font-weight: 600; text-decoration: none; white-space: nowrap; }
.svc-row__go::after { content: ""; position: absolute; inset: 0; }
.svc-row:hover .svc-row__go { text-decoration: underline; }
.svc-row__go:focus-visible { outline: none; }
.svc-row:has(.svc-row__go:focus-visible) { outline: 2px solid var(--link); outline-offset: -2px; }

/* how we work: the one real sequence, so it keeps numbers */
.seq { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); margin: 0; padding: 0; list-style: none; border-top: 2px solid var(--rule-strong); }
.seq__step { padding: 1.4rem 1.4rem .5rem 0; }
.seq__step + .seq__step { padding-inline-start: 1.4rem; border-inline-start: 1px solid var(--rule); }
.seq__n { display: block; margin-bottom: 1.1rem; color: var(--seal); font-family: var(--font-cond); font-size: 3.2rem; font-weight: 500; line-height: 1; font-variant-numeric: tabular-nums; }
.seq__name { margin: 0 0 .4rem; font-size: 1.22rem; }
.seq p { margin: 0; color: var(--text-muted); font-size: .98rem; }

/* legislation: one row per document */
.doc-rows { margin: 0; padding: 0; list-style: none; border-top: 2px solid var(--rule-strong); }
.doc-row { display: grid; grid-template-columns: minmax(0, 1fr) auto auto; gap: .6rem 2rem; align-items: baseline; padding: 1.4rem .5rem; border-bottom: 1px solid var(--rule); }
.doc-row__title { margin: 0 0 .35rem; font-size: 1.28rem; line-height: 1.25; }
.doc-row__title a { color: var(--text-strong); text-decoration: none; }
.doc-row__title a:hover { text-decoration: underline; }
.doc-row__desc { margin: 0; max-width: 60ch; color: var(--text-muted); font-size: .98rem; }
.doc-row__count { color: var(--text-muted); font-size: .92rem; white-space: nowrap; font-variant-numeric: tabular-nums; }
.doc-row__links { display: flex; gap: .45rem; }
.doc-row__links a {
  display: inline-flex; align-items: center; min-height: 2.3rem; padding: .35rem .85rem;
  border: 1px solid var(--border-strong); border-radius: 5px;
  color: var(--text-strong); font-size: .9rem; font-weight: 600; text-decoration: none; white-space: nowrap;
  transition: border-color .15s ease, background-color .15s ease;
}
.doc-row__links a:hover { border-color: var(--text-strong); background: var(--surface); }

/* notes under a list */
.banner {
  gap: 1rem 1.5rem; padding: 1.25rem 1.4rem; border-radius: 8px;
  background: var(--surface); border: 1px solid var(--border); box-shadow: none;
}
.banner__icon { width: 2.75rem; height: 2.75rem; border-radius: 8px; background: var(--accent-soft); color: var(--accent-text); }
.banner__icon .icon { width: 1.35rem; height: 1.35rem; }
.banner__title { margin-bottom: .25rem; font-size: 1.18rem; }
.banner--after { margin-top: 1.75rem; }

/* photos */
.gallery { gap: 1rem; }
.gallery__link { aspect-ratio: 4 / 5; border-radius: 6px; box-shadow: none; }
.gallery__link::after { display: none; }
.gallery__link img { transition: transform .5s var(--ease-out); }
.gallery__link:hover img { transform: scale(1.03); }
.gallery__zoom { background: var(--surface); color: var(--text-strong); box-shadow: var(--shadow-md); }
.gallery__item figcaption { margin-top: .7rem; font-size: .92rem; }
.gallery__item figcaption::before { display: none; }

/* FAQ: ruled, not boxed */
.dossier .faq { gap: 0; border-top: 2px solid var(--rule-strong); }
.dossier .faq__item { border: 0; border-bottom: 1px solid var(--rule); border-radius: 0; background: transparent; box-shadow: none; }
.dossier .faq__item:hover { border-color: var(--rule); }
.dossier .faq__item[open] { box-shadow: none; border-color: var(--rule); }
.dossier .faq__q { padding: 1.25rem .5rem; font-size: 1.2rem; }
.dossier .faq__q:hover { color: var(--link); }
.faq__toggle { width: 1.9rem; height: 1.9rem; background: transparent; border: 1px solid var(--border-strong); color: var(--text-strong); }
.faq__item[open] .faq__toggle { background: var(--ink-900); border-color: var(--ink-900); color: #fff; }
:root[data-theme="dark"] .faq__item[open] .faq__toggle { background: var(--gold-300); border-color: var(--gold-300); color: var(--ink-950); }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .faq__item[open] .faq__toggle { background: var(--gold-300); border-color: var(--gold-300); color: var(--ink-950); } }
.dossier .faq__a { max-width: 66ch; padding: 0 .5rem 1.5rem; }

/* exchange-rate widget: same paper as the rest */
.fx { border-radius: 10px; border: 1px solid var(--border); box-shadow: none; }
.fx__head { padding-block: 1.2rem; background: var(--surface); color: var(--text-strong); border-bottom: 1px solid var(--border); }
.fx__head .eyebrow { display: none; }
.fx__title { color: var(--text-strong); font-size: 1.35rem; }
.fx__status { background: var(--surface-2); border-color: var(--border); color: var(--text-muted); border-radius: 5px; }
.fx__label { color: var(--text-muted); font-size: .88rem; font-weight: 600; }
.fx__input { font-family: var(--font-cond) !important; }
.fx__tile { border-radius: 7px; background: var(--bg); }
.fx__tile:hover { transform: none; border-color: var(--border-strong); box-shadow: none; }
.fx__tile[aria-pressed="true"] { background: var(--accent-soft); border-color: var(--seal); box-shadow: none; }
.fx__code { color: var(--text-muted); letter-spacing: .02em; }
.fx__sym { background: var(--surface-3); color: var(--text-strong); border-radius: 4px; }
.fx__value { font-family: var(--font-cond); }
.dossier .fx { background: var(--surface); }

/* closing call to action: a navy band */
.cta { padding-block: clamp(3.5rem, 6vw, 5.25rem); background: var(--ink-900); color: #c3cfdc; }
.cta__pattern { display: none; }
.cta__title { max-width: 22ch; color: #fff; font-size: clamp(1.9rem, 1.3rem + 2vw, 2.9rem); }
.cta__text { color: #b4c2d1; }
.cta .btn--primary { --btn-bg: var(--gold-300); --btn-fg: var(--ink-950); --btn-bd: var(--gold-300); }
.cta .btn--primary:hover { --btn-bg: var(--gold-200); --btn-bd: var(--gold-200); }
.cta .btn--glass { --btn-bg: transparent; --btn-fg: #fff; --btn-bd: rgba(255, 255, 255, .38); }
.cta .btn--glass:hover { --btn-bg: rgba(255, 255, 255, .08); --btn-fg: #fff; --btn-bd: #fff; }
.cta .btn .icon { display: none; }
.cta + .ftr, main + .ftr { border-top: 1px solid rgba(255, 255, 255, .09); }
:root[data-theme="dark"] .cta { background: #08111b; border-top: 1px solid var(--border); }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .cta { background: #08111b; border-top: 1px solid var(--border); } }

/* ------------------------------------------------- inner pages: heading */
.page-hero {
  color: var(--text); background: var(--bg); border-bottom: 1px solid var(--rule);
  padding-block: clamp(2.75rem, 5.5vw, 4.75rem) clamp(2.25rem, 4.5vw, 3.75rem);
}
.page-hero__bg, .page-hero::after, .page-hero__art { display: none; }
.page-hero__title { max-width: 20ch; color: var(--text-strong); font-size: clamp(2.3rem, 1.3rem + 3.2vw, 3.8rem); line-height: 1.03; letter-spacing: -.024em; }
.page-hero__title::after { display: none; }
html[lang="ar"] .page-hero__title { line-height: 1.35; letter-spacing: 0; }
html[lang="zh-Hans"] .page-hero__title { line-height: 1.25; letter-spacing: .01em; }
.page-hero--doc .page-hero__title { max-width: 26ch; font-size: clamp(2rem, 1.3rem + 2.4vw, 3.1rem); }
.page-hero__lede { max-width: 60ch; color: var(--text-muted); }
.crumbs ol { margin-bottom: 1.4rem; color: var(--text-muted); font-size: .9rem; }
.crumbs li + li::before { color: var(--border-strong); }
.crumbs a { color: var(--text); text-decoration: underline; text-decoration-color: var(--border-strong); }
.crumbs a:hover { color: var(--text-strong); text-decoration-color: currentColor; }
.crumbs [aria-current] { color: var(--text-strong); }
.doc-meta li, .hero-chip { border-radius: 5px; background: var(--surface); border-color: var(--border); color: var(--text); -webkit-backdrop-filter: none; backdrop-filter: none; }
.doc-meta .icon, .hero-chip .icon { color: var(--accent-text); }
a.hero-chip:hover { border-color: var(--text-strong); color: var(--text-strong); }
.page-hero .stats { border-color: var(--border); border-radius: 8px; background: var(--surface); }
.page-hero .stat + .stat { border-inline-start-color: var(--border); }
.stat__num { color: var(--text-strong); font-family: var(--font-cond); }
.stat__label { color: var(--text-muted); font-size: .85rem; }

/* generic sections on inner pages */
.section-title { font-family: var(--font-display); }
.section-title--light { color: #fff; }
.section--alt { background: var(--surface-alt); }
.section--dark { background: var(--ink-900); }
.section-dark__pattern { display: none; }
.doc-card, .feature, .value, .lib-card, .file, .branch-card, .mini-card, .pager__link, .panel, .fx__tile, .api-hit, .article { transition: border-color .15s ease, background-color .15s ease; }
.doc-card, .feature, .value, .lib-card, .file, .branch-card, .mini-card, .pager__link { border-radius: 9px; box-shadow: none; }
:is(.doc-card, .feature, .value, .lib-card, .file, .branch-card, .mini-card, .pager__link):hover { transform: none; box-shadow: none; border-color: var(--border-strong); }
.doc-card::before, .value::after, .lib-card__cover::after, .branch-card::before { display: none; }
.feature__icon { border-radius: 9px; background: var(--accent-soft); color: var(--accent-text); box-shadow: none; }
.feature:hover .feature__icon { transform: none; }

/* about */
.statement { border-inline-start-width: 3px; border-inline-start-color: var(--seal); font-family: var(--font-serif); font-weight: 400; }
.value__num { display: none; }
.value__title { font-size: 1.5rem; }
.value__body li::before { width: 6px; height: 6px; transform: none; border-radius: 50%; background: var(--seal); }
.strength { border-radius: 8px; }
.strength:hover { transform: none; background: rgba(255, 255, 255, .06); border-color: rgba(255, 255, 255, .2); }
.strength__icon { border-radius: 8px; }

/* contact + forms */
.tabs__list { border-radius: 9px; box-shadow: none; }
.tab { border-radius: 6px; }
.tabs__ink { border-radius: 6px; background: var(--ink-900); box-shadow: none; }
.panel { border-radius: 10px; box-shadow: none; }
.panel::before { display: none; }
.mini-steps li { border-radius: 6px; }
.mini-steps span { background: var(--ink-900); color: #fff; }
.contact-card { border-radius: 10px; border: 0; background: var(--ink-900); box-shadow: none; }
.contact-item__label { color: var(--gold-300); font-size: .85rem; font-weight: 600; }
.contact-item__icon, .mini-card__icon, .strength__icon { border-radius: 8px; }
.field input, .field textarea, .field select, .fx__input, .fx__select, .rfq-row input, .feedback textarea, .newsletter input { border-radius: 5px; }
.field input:hover, .field textarea:hover, .fx__input:hover, .fx__select:hover, .rfq-row input:hover { border-color: var(--text-muted); }
.field input:focus, .field textarea:focus, .fx__input:focus, .fx__select:focus, .rfq-row input:focus, .feedback textarea:focus, .newsletter input:focus { border-color: var(--link); box-shadow: var(--ring); }
.drop__zone { border-radius: 8px; }
.drop__zone:hover, .drop.is-over .drop__zone { border-color: var(--link); background: color-mix(in srgb, var(--link) 5%, var(--bg)); }
.drop.is-over .drop__zone { transform: none; }
.drop__icon { background: var(--surface-2); color: var(--accent-text); }
.drop__zone:hover .drop__icon { transform: none; }
.rfq { border-radius: 8px; }

/* legislation hub */
.bigsearch input { border-radius: 8px; box-shadow: none; }
.bigsearch input:focus { border-color: var(--link); box-shadow: var(--ring); }
.bigsearch__box > .icon { color: var(--text-muted); }
.api-hit { border-radius: 6px; box-shadow: none; border-inline-start-color: var(--seal); }
.api-hit:hover { translate: none; border-color: var(--border-strong); box-shadow: none; }
.api-hit-doc { font-size: .85rem; }
.lib-card__cover { border-radius: 3px 8px 8px 3px; background: var(--ink-900); box-shadow: inset 6px 0 0 rgba(0, 0, 0, .25), inset 7px 0 0 var(--seal); }
.lib-card:hover .lib-card__cover { transform: none; }
.lib-card__meta { font-size: .88rem; }
.file__icon { background: var(--ink-900); box-shadow: inset 0 -3px 0 var(--seal); }
.file:hover .file__go { transform: none; background: var(--ink-900); color: #fff; }
.source-notes ul li { border-radius: 6px; border-inline-start-color: var(--seal); }

/* law text: a clean printed document, ruled articles */
.toc { border-radius: 9px; box-shadow: none; }
.toc__title { color: var(--text-strong); font-size: .98rem; font-weight: 600; }
.toc__progress i { background: var(--seal); }
.toc__list a { border-radius: 5px; }
.toc__list a.is-active { box-shadow: inset 2px 0 0 var(--seal); }
[dir="rtl"] .toc__list a.is-active { box-shadow: inset -2px 0 0 var(--seal); }
.toc__group { font-family: var(--font-cond); font-weight: 600; }
.doc-tools { border-radius: 9px; box-shadow: var(--shadow-md); }
.doc-section__head {
  padding: 0 0 1.1rem; border-radius: 0; background: none; color: var(--text-muted);
  border-bottom: 2px solid var(--rule-strong);
}
.doc-section__title { color: var(--text-strong); }
.doc-section__head .link-arrow { color: var(--link); }
.article-list { font-size: 1.06rem; line-height: 1.78; }
.article { margin: 0; padding: 1.6rem .5rem 1.5rem; border: 0; border-bottom: 1px solid var(--rule); border-radius: 0; background: none; box-shadow: none; }
.article:hover { border-color: var(--rule); }
.article:target, .article.is-target { border-radius: 6px; background: var(--accent-soft); box-shadow: none; animation: none; }
.article-head { margin-bottom: .7rem; padding-bottom: 0; border-bottom: 0; color: var(--text-muted); font-size: .92rem; font-weight: 600; }
.article-num { min-width: 2.5rem; height: 2.15rem; border-radius: 4px; background: none; border: 1.5px solid var(--text-strong); color: var(--text-strong); font-family: var(--font-cond); font-size: 1.05rem; }
.legal-list li::marker { color: var(--seal); }
.doc-divider { background: var(--rule); }
.notice, .callout, .doc-note { border-radius: 7px; }
.pager__dir { font-size: .9rem; }
.feedback { border-radius: 9px; }

/* branch guide */
.branch { background: var(--bg); }
.branch::before { display: none; }
.branch-stats li { border-radius: 8px; box-shadow: none; text-align: start; }
.branch-stats b { color: var(--text-strong); font-family: var(--font-cond); font-weight: 600; }
.branch-stats b.branch-capital { color: var(--accent-text); }
.branch-stats span { color: var(--text-muted); font-size: .92rem; font-weight: 500; }
.branch-nav { border-radius: 9px; box-shadow: var(--shadow-md); }
.branch-nav a { border-radius: 6px; }
.branch-nav a:hover, .branch-nav a.is-active { background: var(--ink-900); color: #fff; }
.branch-kicker, .branch-ghost { display: none; }
.branch-field { color: var(--accent-text); font-size: .88rem; font-weight: 600; }
.branch-card ul li::before { width: 6px; height: 6px; top: .68em; transform: none; border-radius: 50%; background: var(--seal); }
.branch-docs { border-radius: 10px; border: 0; background: var(--ink-900); box-shadow: none; }
.branch-note { border-radius: 6px; }
.branch-no { border-radius: 8px; border-inline-start: 3px solid var(--alert); }
.branch-no li::marker { color: var(--alert); }
.source-note { border-radius: 6px; }

/* overlays */
.palette__panel { border-radius: 12px; }
.palette__item[aria-selected="true"] { box-shadow: inset 2px 0 0 var(--seal); }
[dir="rtl"] .palette__item[aria-selected="true"] { box-shadow: inset -2px 0 0 var(--seal); }
.palette__item[aria-selected="true"] .palette__icon { background: var(--ink-900); color: #fff; }
.palette__section { font-size: .82rem; font-weight: 600; }
.toast { border-radius: 6px; background: var(--ink-900); border-color: transparent; }
.to-top { background: var(--surface); color: var(--text-strong); box-shadow: var(--shadow-md); border: 1px solid var(--border); }
.to-top:hover { background: var(--surface-2); }
.to-top .ring__track { stroke: var(--border); }
.to-top .ring__bar { stroke: var(--seal); }
.lightbox__btn:hover { background: #fff; border-color: #fff; color: var(--ink-950); }

/* -------------------------------------------------------------- footer */
.ftr { background: var(--ink-950); color: #9fb0c3; }
.ftr::before, .ftr__glow { display: none; }
.ftr .brand, .ftr .brand:hover, .ftr .brand__name { color: #fff; }
.ftr .brand__sub { color: var(--gold-300); }
.ftr__h { color: #fff; font-family: var(--font-sans); font-size: .95rem; font-weight: 600; }
.ftr a { color: #b9c6d3; }
.ftr a:hover { color: #fff; text-decoration: underline; }
.ftr__contact .icon { color: var(--gold-300); }
.ftr__bottom { border-top-color: rgba(255, 255, 255, .1); }
.ftr .btn--primary { --btn-bg: var(--gold-300); --btn-fg: var(--ink-950); --btn-bd: var(--gold-300); }

/* ---------------------------------------------------------- responsive */
@media (max-width: 1100px) {
  .svc-row { grid-template-columns: 1.6rem minmax(0, 1fr) auto; row-gap: .3rem; }
  .svc-row__name { grid-column: 2; }
  .svc-row__desc { grid-column: 2; grid-row: 2; }
  .svc-row__go { grid-column: 3; grid-row: 1; }
}
@media (max-width: 1080px) {
  .seq { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .seq__step:nth-child(3) { padding-inline-start: 0; border-inline-start: 0; }
  .seq__step:nth-child(n + 3) { border-top: 1px solid var(--rule); }
}
@media (max-width: 900px) {
  .opening__grid { grid-template-columns: minmax(0, 1fr); }
  .namemark { justify-items: start; text-align: start; }
  .namemark__word { font-size: clamp(4.25rem, 1rem + 17vw, 8.5rem); }
  .dossier__grid { grid-template-columns: minmax(0, 1fr); gap: 1.6rem; }
  .dossier__head { position: static; max-width: 40rem; }
}
@media (max-width: 720px) {
  .svc-row { grid-template-columns: 1.6rem minmax(0, 1fr); }
  .svc-row__desc, .svc-row__go { grid-column: 2; }
  .svc-row__go { grid-row: 3; padding-top: .35rem; }
  .doc-row { grid-template-columns: minmax(0, 1fr) auto; }
  .doc-row__main { grid-column: 1 / -1; }
  .gallery { --cols: 1; }
  .gallery__link { aspect-ratio: 4 / 3; }
}
@media (max-width: 560px) {
  .seq { grid-template-columns: minmax(0, 1fr); }
  .seq__step, .seq__step + .seq__step { padding-inline: 0; border-inline-start: 0; }
  .seq__step + .seq__step { border-top: 1px solid var(--rule); }
  .seq__n { margin-bottom: .6rem; font-size: 2.4rem; }
  .opening__actions .btn { flex: 1 1 100%; }
}
@media print {
  .opening .namemark, .dossier__head { position: static; }
  .opening__actions { display: none; }
}

/* ==========================================================================
   v11 — photo-led home page, built around the visa request
   ========================================================================== */

/* ---- the pitch: real team photo, promise, two actions */
.pitch {
  position: relative; isolation: isolate; overflow: hidden; display: grid; align-items: end;
  min-height: clamp(540px, 82vh, 780px); background: var(--ink-950); color: #fff;
}
.pitch__media { position: absolute; inset: 0; z-index: -2; }
.pitch__media img { width: 100%; height: 100%; object-fit: cover; object-position: 64% 30%; }
.pitch::before {
  content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background:
    linear-gradient(0deg, rgba(11, 26, 43, .95) 0%, rgba(11, 26, 43, .8) 30%, rgba(11, 26, 43, .2) 66%, rgba(11, 26, 43, .08) 100%),
    linear-gradient(90deg, rgba(11, 26, 43, .55) 0%, rgba(11, 26, 43, 0) 62%);
}
/* the team stands on the right of the photo, so the text block stays on the left
   in every edition; in Arabic it still reads right to left inside that block */
html[dir="rtl"] .pitch__inner { display: flex; flex-direction: column; align-items: flex-end; }
html[dir="rtl"] .pitch__inner > * { width: min(100%, 40rem); }
.pitch__inner { padding-block: 9rem clamp(2.5rem, 5vw, 4rem); }
.pitch__title {
  max-width: 15ch; margin: 0 0 1.1rem; color: #fff;
  font-size: clamp(2.7rem, 1.3rem + 4.6vw, 5.2rem); line-height: .98; letter-spacing: -.03em;
  text-shadow: 0 2px 24px rgba(11, 26, 43, .35);
}
html[lang="ar"] .pitch__title { max-width: 16ch; font-size: clamp(2.3rem, 1.3rem + 3.4vw, 4.2rem); line-height: 1.3; letter-spacing: 0; }
html[lang="zh-Hans"] .pitch__title { max-width: 14em; font-size: clamp(2.2rem, 1.2rem + 3.2vw, 4rem); line-height: 1.18; letter-spacing: .01em; }
.pitch__lede { max-width: 58ch; margin: 0; color: #d6dfe9; font-size: clamp(1.06rem, 1rem + .35vw, 1.22rem); line-height: 1.6; }
.pitch__actions { display: flex; flex-wrap: wrap; gap: .75rem; margin-top: 2rem; }
.pitch .btn--primary { --btn-bg: var(--gold-300); --btn-fg: var(--ink-950); --btn-bd: var(--gold-300); }
.pitch .btn--primary:hover { --btn-bg: var(--gold-200); --btn-bd: var(--gold-200); }
.pitch .btn--glass { --btn-bg: rgba(11, 26, 43, .25); --btn-fg: #fff; --btn-bd: rgba(255, 255, 255, .5); }
.pitch .btn--glass:hover { --btn-bg: rgba(255, 255, 255, .12); --btn-fg: #fff; --btn-bd: #fff; }
.pitch__note { display: flex; align-items: flex-start; gap: .55rem; max-width: 62ch; margin: 1.15rem 0 0; color: #b9c6d3; font-size: .93rem; line-height: 1.5; }
.pitch__note .icon { margin-top: .15rem; color: var(--gold-300); }

/* ---- three facts you can check, right under the photo */
.facts { background: var(--surface); border-bottom: 1px solid var(--rule); }
.facts__list { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); margin-block: 0; padding: 0; list-style: none; }
.facts__list li { display: flex; align-items: center; gap: .7rem; padding: 1.15rem 0; color: var(--text-strong); font-size: .97rem; font-weight: 500; line-height: 1.4; }
.facts__list li + li { padding-inline-start: 1.5rem; border-inline-start: 1px solid var(--rule); }
.facts__list li:not(:last-child) { padding-inline-end: 1.5rem; }
.facts__list .icon { width: 1.3rem; height: 1.3rem; color: var(--seal); }

/* ---- visa: the main thing people come for */
.visa { padding-block: clamp(3.5rem, 6.5vw, 6rem); border-bottom: 1px solid var(--rule); }
.visa__grid { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: clamp(2rem, 6vw, 5.5rem); align-items: start; }
.visa__title, .offer__title { margin: 0 0 .9rem; color: var(--text-strong); font-size: clamp(1.9rem, 1.3rem + 2vw, 2.9rem); line-height: 1.04; letter-spacing: -.02em; }
html[lang="ar"] :is(.visa__title, .offer__title, .why__title) { line-height: 1.4; letter-spacing: 0; }
.visa__lede, .offer__lede { max-width: 46ch; margin: 0; color: var(--text-muted); font-size: 1.08rem; }
.visa__actions { display: flex; flex-wrap: wrap; gap: .75rem; margin-top: 1.75rem; }
.visa__privacy { display: flex; align-items: flex-start; gap: .55rem; max-width: 46ch; margin: 1.3rem 0 0; color: var(--text-muted); font-size: .93rem; line-height: 1.5; }
.visa__privacy .icon { margin-top: .15rem; color: var(--seal); }
.visa__steps { margin: 0; padding: 0; list-style: none; border-top: 2px solid var(--rule-strong); }
.visa__steps li { display: grid; grid-template-columns: 3.25rem minmax(0, 1fr); gap: 1rem; padding: 1.5rem 0; border-bottom: 1px solid var(--rule); }
.visa__n { color: var(--seal); font-family: var(--font-cond); font-size: 2.6rem; font-weight: 500; line-height: 1; font-variant-numeric: tabular-nums; }
.visa__step { margin: .15rem 0 .35rem; font-size: 1.3rem; }
.visa__steps p { margin: 0; color: var(--text-muted); }

/* ---- services with photographs */
.offer { padding-block: clamp(3.5rem, 6.5vw, 6rem); background: var(--surface); border-bottom: 1px solid var(--rule); }
.offer__head { max-width: 44rem; margin-bottom: clamp(1.75rem, 3.5vw, 2.5rem); }
.offer__cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.25rem; margin: 0; padding: 0; list-style: none; }
.offer-card__link {
  display: flex; flex-direction: column; height: 100%; overflow: hidden;
  border: 1px solid var(--border); border-radius: 10px; background: var(--bg);
  color: inherit; text-decoration: none; transition: border-color .15s ease;
}
.offer-card__link:hover { border-color: var(--border-strong); color: inherit; }
.offer-card__img { display: block; aspect-ratio: 4 / 3; overflow: hidden; background: var(--surface-3); }
.offer-card__img img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--ease-out); }
.offer-card__link:hover .offer-card__img img { transform: scale(1.035); }
.offer-card__body { display: flex; flex: 1; flex-direction: column; gap: .45rem; padding: 1.35rem 1.4rem 1.5rem; }
.offer-card__name { margin: 0; color: var(--text-strong); font-size: 1.38rem; line-height: 1.2; }
.offer-card__desc { color: var(--text-muted); font-size: .98rem; line-height: 1.55; }
.offer-card__go { margin-top: auto; padding-top: .7rem; color: var(--link); font-weight: 600; }
.offer-card__link:hover .offer-card__go { text-decoration: underline; }
.offer-more { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.25rem; margin: 1.25rem 0 0; padding: 0; list-style: none; }
.offer-more__row {
  display: grid; grid-template-columns: 1.5rem minmax(0, 1fr) auto; gap: .3rem 1rem; align-items: start;
  padding: 1.25rem 1.4rem; border: 1px solid var(--border); border-radius: 10px; background: var(--bg);
}
.offer-more__row > .icon { width: 1.3rem; height: 1.3rem; margin-top: .2rem; color: var(--seal); }
.offer-more__name { margin: 0 0 .2rem; font-size: 1.18rem; }
.offer-more__row p { margin: 0; color: var(--text-muted); font-size: .95rem; }
.offer-more__go { padding-top: .1rem; color: var(--link); font-weight: 600; text-decoration: none; white-space: nowrap; }
.offer-more__go:hover { text-decoration: underline; }

/* ---- why AL-WASET: the name and what it promises */
.why { padding-block: clamp(3.5rem, 6.5vw, 6rem); background: var(--surface); border-bottom: 1px solid var(--rule); }
.why__grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(2rem, 6vw, 5rem); align-items: center; }
.why__media { margin: 0; }
.why__media img { width: 100%; aspect-ratio: 5 / 4; object-fit: cover; border-radius: 10px; }
.why__mark { display: block; margin-bottom: .35rem; color: var(--seal); font-family: var(--font-kufi); font-size: clamp(3.4rem, 2rem + 4vw, 5.5rem); font-weight: 600; line-height: 1.15; text-align: left; }
html[dir="rtl"] .why__mark { text-align: right; }
.why__title { margin: 0 0 1rem; color: var(--text-strong); font-size: clamp(1.8rem, 1.2rem + 1.8vw, 2.6rem); line-height: 1.06; letter-spacing: -.02em; }
.why__body { max-width: 54ch; margin: 0; font-size: 1.06rem; }
.why__body i { color: var(--text-strong); }
.why__list { display: grid; gap: .7rem; margin: 1.5rem 0 1.6rem; padding: 0; list-style: none; }
.why__list li { display: flex; align-items: flex-start; gap: .65rem; color: var(--text-strong); }
.why__list .icon { width: 1.2rem; height: 1.2rem; margin-top: .22rem; color: var(--seal); }
.why__link { color: var(--link); font-weight: 600; }

/* ---- closing call to action: contact details where the decision happens */
.cta__contact { display: flex; flex-wrap: wrap; gap: .6rem 1.75rem; margin: 1.3rem 0 0; color: #b4c2d1; font-size: .95rem; }
.cta__contact a, .cta__contact > span { display: inline-flex; align-items: center; gap: .5rem; }
.cta__contact a { color: #fff; text-decoration: underline; text-decoration-color: rgba(255, 255, 255, .35); }
.cta__contact a:hover { color: #fff; text-decoration-color: #fff; }
.cta__contact .icon { color: var(--gold-300); }

@media (max-width: 960px) {
  .visa__grid, .why__grid { grid-template-columns: minmax(0, 1fr); }
  .offer__cards { grid-template-columns: minmax(0, 1fr); }
  .offer-card__link { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); }
  .offer-card__img { aspect-ratio: auto; min-height: 100%; }
}
@media (max-width: 760px) {
  .facts__list { grid-template-columns: minmax(0, 1fr); }
  .facts__list li, .facts__list li + li { padding: .85rem 0; border-inline-start: 0; }
  .facts__list li + li { border-top: 1px solid var(--rule); }
  .offer-more { grid-template-columns: minmax(0, 1fr); }
  .offer-more__row { grid-template-columns: 1.5rem minmax(0, 1fr); }
  .offer-more__go { grid-column: 2; }
}
@media (max-width: 700px) {
  .pitch { display: block; min-height: 0; background: var(--ink-900); }
  .pitch::before { display: none; }
  .pitch__media { position: static; aspect-ratio: 4 / 3; }
  .pitch__media img { object-position: 60% 35%; }
  .pitch__inner { padding-block: 1.75rem 2.25rem; }
  html[dir="rtl"] .pitch__inner { display: block; }
  html[dir="rtl"] .pitch__inner > * { width: auto; }
  .pitch__actions .btn, .visa__actions .btn { flex: 1 1 100%; }
  .offer-card__link { display: flex; }
  .offer-card__img { aspect-ratio: 16 / 10; min-height: 0; }
}

/* ==========================================================================
   v12 — motion
   One rule for timing: site.js adds .is-in when an element scrolls into view
   and removes [data-reveal] ~950ms (+80ms per --i step) later, so every reveal
   transition below finishes inside that window. Steps keep .is-on for good.
   Everything here sits behind prefers-reduced-motion: no-preference.
   ========================================================================== */
.pitch__media { transform: translate3d(0, var(--py, 0px), 0); }
.offer-card__go::after { content: "\2192"; display: inline-block; margin-inline-start: .4rem; }
[dir="rtl"] .offer-card__go::after { content: "\2190"; }

@media (prefers-reduced-motion: no-preference) {

  /* ---- hero: the photo settles, then drifts; copy follows the headline */
  .pitch__media { will-change: transform; }
  .pitch__media img { animation: heroSettle 2.2s var(--ease-out) both, heroDrift 28s ease-in-out 2.2s infinite alternate; }
  .pitch__lede { animation: rise .9s var(--ease-out) .55s both; }
  .pitch__actions { animation: rise .9s var(--ease-out) .7s both; }
  .pitch__note { animation: rise .9s var(--ease-out) .85s both; }
  .facts__list li { animation: rise .8s var(--ease-out) both; }
  .facts__list li:nth-child(1) { animation-delay: 1s; }
  .facts__list li:nth-child(2) { animation-delay: 1.1s; }
  .facts__list li:nth-child(3) { animation-delay: 1.2s; }
  .pitch .btn--shine::after { display: block; animation: sheen 5s ease-in-out 2.6s infinite; }

  /* ---- headline: words rise one after another (site.js splits [data-split]) */
  .split-w > span { transform: translateY(108%); animation: wordUp .95s var(--ease-out) forwards; animation-delay: calc(var(--w, 0) * 60ms + 150ms); }

  /* ---- scroll reveals */
  .js [data-reveal] {
    opacity: 0; translate: 0 30px;
    transition: opacity .75s var(--ease-out), translate .85s var(--ease-out);
    transition-delay: calc(var(--i, 0) * 80ms);
  }
  .js [data-reveal].is-in { opacity: 1; translate: none; }

  /* visa steps and the office photo come in from the side they belong to */
  .js .visa__steps > li[data-reveal] { translate: -40px 0; }
  html[dir="rtl"].js .visa__steps > li[data-reveal] { translate: 40px 0; }
  .js .visa__steps > li[data-reveal].is-in, html[dir="rtl"].js .visa__steps > li[data-reveal].is-in { translate: none; }

  /* service photos are uncovered from the top while they settle */
  .js .offer-card[data-reveal] img { clip-path: inset(0 0 100% 0); scale: 1.18; transition: clip-path .8s var(--ease-out), scale .85s var(--ease-out); transition-delay: calc(var(--i, 0) * 80ms + 60ms); }
  .js .offer-card[data-reveal].is-in img { clip-path: inset(0); scale: 1; }

  /* office photo: a curtain pulled back toward the text */
  .js .why__media[data-reveal] { translate: none; opacity: 1; }
  .js .why__media[data-reveal] img { clip-path: inset(0 100% 0 0); transition: clip-path .85s cubic-bezier(.7, 0, .2, 1); }
  html[dir="rtl"].js .why__media[data-reveal] img { clip-path: inset(0 0 0 100%); }
  .js .why__media[data-reveal].is-in img, html[dir="rtl"].js .why__media[data-reveal].is-in img { clip-path: inset(0); }

  /* the name presses in like a stamp; the promises follow */
  .why { overflow-x: clip; }
  .why__mark { width: fit-content; transform-origin: 0 60%; }
  html[dir="rtl"] .why__mark { margin-inline-start: auto; transform-origin: 100% 60%; }
  .js .why__copy[data-reveal] .why__mark { opacity: 0; transform: scale(1.3) rotate(-6deg); filter: blur(4px); }
  .js .why__copy[data-reveal].is-in .why__mark { opacity: 1; transform: none; filter: none; transition: opacity .35s ease .1s, transform .6s cubic-bezier(.2, .9, .3, 1.3) .1s, filter .4s ease .1s; }
  .js .why__copy[data-reveal] .why__list li { opacity: 0; translate: 0 12px; }
  .js .why__copy[data-reveal].is-in .why__list li { opacity: 1; translate: none; transition: opacity .45s ease, translate .45s var(--ease-out); }
  .js .why__copy[data-reveal].is-in .why__list li:nth-child(1) { transition-delay: .3s; }
  .js .why__copy[data-reveal].is-in .why__list li:nth-child(2) { transition-delay: .4s; }
  .js .why__copy[data-reveal].is-in .why__list li:nth-child(3) { transition-delay: .5s; }

  /* ---- steps: a gold line draws across, then each number lights up in turn */
  .visa__steps, .seq { position: relative; }
  .visa__steps::after, .seq::after {
    content: ""; position: absolute; inset-inline: 0; top: -2px; height: 2px; background: var(--seal);
    transform: scaleX(0); transform-origin: left; transition: transform 1.5s var(--ease-out) .2s;
  }
  [dir="rtl"] :is(.visa__steps, .seq)::after { transform-origin: right; }
  :is(.visa__steps, .seq).is-on::after { transform: none; }
  .js :is(.visa__steps, .seq)[data-steps]:not(.is-on) :is(.visa__n, .seq__n) { color: var(--border-strong); transform: scale(.7); }
  :is(.visa__n, .seq__n) { display: inline-block; transition: color .4s ease, transform .55s var(--ease-spring); }
  :is(.visa__steps, .seq).is-on > li:nth-child(1) :is(.visa__n, .seq__n) { transition-delay: .25s; }
  :is(.visa__steps, .seq).is-on > li:nth-child(2) :is(.visa__n, .seq__n) { transition-delay: .55s; }
  :is(.visa__steps, .seq).is-on > li:nth-child(3) :is(.visa__n, .seq__n) { transition-delay: .85s; }
  :is(.visa__steps, .seq).is-on > li:nth-child(4) :is(.visa__n, .seq__n) { transition-delay: 1.15s; }

  /* ---- things that answer the pointer */
  .btn:hover { transform: translateY(-1px); }
  .offer-card__link { transition: border-color .2s ease, transform .35s var(--ease-out), box-shadow .35s ease; }
  .offer-card__link:hover { transform: translateY(-5px); box-shadow: var(--shadow-lg); }
  .offer-card__go::after { transition: translate .25s var(--ease-out); }
  .offer-card__link:hover .offer-card__go::after { translate: 5px 0; }
  [dir="rtl"] .offer-card__link:hover .offer-card__go::after { translate: -5px 0; }
  .offer-more__row { transition: transform .3s var(--ease-out), box-shadow .3s ease, border-color .2s ease; }
  .offer-more__row:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); border-color: var(--border-strong); }
  .doc-row { background: linear-gradient(var(--accent-soft), var(--accent-soft)) no-repeat left / 0% 100%; transition: background-size .45s var(--ease-out); }
  [dir="rtl"] .doc-row { background-position: right; }
  .doc-row:hover { background-size: 100% 100%; }
  .why__media img { transition: clip-path .85s cubic-bezier(.7, 0, .2, 1), transform .8s var(--ease-out); }
  .why__media:hover img { transform: scale(1.025); }

  /* ---- the closing band breathes: two soft lights drift behind it */
  .cta::before {
    content: ""; position: absolute; inset: -40%; z-index: -1; pointer-events: none;
    background:
      radial-gradient(30% 40% at 28% 38%, rgba(217, 189, 127, .2), transparent 70%),
      radial-gradient(28% 38% at 74% 66%, rgba(70, 114, 163, .38), transparent 70%);
    animation: ctaGlow 18s ease-in-out infinite alternate;
  }
}

@keyframes heroSettle { from { transform: scale(1.16); filter: saturate(.55) brightness(.75); } to { transform: scale(1.03); filter: none; } }
@keyframes heroDrift { from { transform: scale(1.03); } to { transform: scale(1.09) translate(-1.2%, -1%); } }
@keyframes sheen { 0% { inset-inline-start: -60%; } 22%, 100% { inset-inline-start: 130%; } }
@keyframes ctaGlow { from { transform: translate(-4%, -3%) rotate(0deg); } to { transform: translate(5%, 4%) rotate(8deg); } }
