/* =========================================================================
   Sedra Group — Design System
   بنية القالب: Agenius (Real Mehedi) — الهوية: مجموعة سدرا
   ========================================================================= */

/* ---------- 1. Design Tokens ---------- */
:root {
  /* Brand — مستخرجة من شعار مجموعة سدرا */
  --brand: #1A3B2E;
  --brand-deep: #123C2F;
  --brand-mid: #26765A;
  --gold: #9B8752;
  --gold-soft: #C7B487;

  /* Dark scale */
  --ink: #0D1713;
  --ink-deep: #071A15;
  --ink-char: #141817;
  --ink-soft: #1E2B26;

  /* Light scale */
  --ivory: #F6F3EA;
  --cream: #EDE8DC;
  --sage-light: #DDE8E2;
  --sage: #8DAE9F;
  --white: #FFFFFF;

  /* Sector accents */
  --acc-ai: #A995D8;
  --acc-ai-soft: #EDE9F6;
  --acc-ai-deep: #75669B;
  --acc-sys: #26765A;
  --acc-sys-soft: #DDE8E2;
  --acc-prod: #3E8FA8;
  --acc-prod-soft: #DCEBF0;
  --acc-game: #C4693F;
  --acc-game-soft: #F6E7DE;

  /* Semantic */
  --bg: var(--ivory);
  --bg-alt: var(--cream);
  --surface: var(--white);
  --fg: var(--ink);
  --fg-muted: #4A5A53;
  --fg-subtle: #5A6963;
  --line: rgba(26, 59, 46, .14);
  --line-strong: rgba(26, 59, 46, .28);

  /* Typography */
  --font-ar: "IBM Plex Sans Arabic", "Tajawal", system-ui, sans-serif;
  --font-ar-display: "Tajawal", "IBM Plex Sans Arabic", system-ui, sans-serif;
  --font-en: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-mono: "IBM Plex Mono", ui-monospace, "SFMono-Regular", monospace;
  --font: var(--font-en);
  --font-display: var(--font-en);

  /* Fluid type scale */
  --t-mega: clamp(3.4rem, 11.2vw, 11rem);
  --t-h1: clamp(2.7rem, 7.4vw, 6.4rem);
  --t-h2: clamp(2.1rem, 5.2vw, 4.4rem);
  --t-h3: clamp(1.55rem, 3.1vw, 2.5rem);
  --t-h4: clamp(1.2rem, 2vw, 1.6rem);
  --t-lead: clamp(1.05rem, 1.65vw, 1.4rem);
  --t-body: clamp(1rem, 1.15vw, 1.125rem);
  --t-sm: .9375rem;
  --t-xs: .8125rem;
  --t-eyebrow: .75rem;

  /* Spacing scale */
  --s-1: .25rem; --s-2: .5rem;  --s-3: .75rem; --s-4: 1rem;
  --s-5: 1.5rem; --s-6: 2rem;   --s-7: 2.75rem; --s-8: 3.5rem;
  --s-9: 5rem;   --s-10: 7rem;  --s-11: 9.5rem;
  --section: clamp(4.5rem, 9vw, 9.5rem);
  --gutter: clamp(1.15rem, 4vw, 3.5rem);
  --maxw: 1560px;
  --maxw-text: 68ch;

  /* Radii */
  --r-sm: 10px; --r-md: 18px; --r-lg: 28px; --r-xl: 40px; --r-pill: 999px;

  /* Elevation */
  --sh-sm: 0 1px 2px rgba(7,26,21,.06), 0 4px 14px rgba(7,26,21,.05);
  --sh-md: 0 2px 6px rgba(7,26,21,.07), 0 18px 44px rgba(7,26,21,.09);
  --sh-lg: 0 4px 12px rgba(7,26,21,.08), 0 34px 84px rgba(7,26,21,.14);

  /* Motion */
  --e-out: cubic-bezier(.22,.61,.36,1);
  --e-inout: cubic-bezier(.65,.05,.36,1);
  --e-spring: cubic-bezier(.34,1.4,.64,1);
  --d-fast: .22s; --d: .42s; --d-slow: .78s;

  --nav-h: 76px;
  --dir-x: 1; /* 1 = LTR, -1 = RTL — تُستخدم لعكس اتجاه الحركات */
}

[dir="rtl"] {
  --font: var(--font-ar);
  --font-display: var(--font-ar-display);
  --dir-x: -1;
}

/* ---------- 2. Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; padding: 0; }
html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--nav-h) + 16px);
  /* clip بدل hidden: يمنع التجاوز الأفقي دون تعطيل position:sticky */
  overflow-x: clip;
}
body {
  font-family: var(--font);
  font-size: var(--t-body);
  line-height: 1.65;
  color: var(--fg);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: clip;
  text-rendering: optimizeLegibility;
}
img, svg, video, canvas { display: block; max-width: 100%; height: auto; }
button, input, select, textarea { font: inherit; color: inherit; }
button { background: none; border: 0; cursor: pointer; }
a { color: inherit; text-decoration: none; }
ul, ol { list-style: none; }
h1,h2,h3,h4,h5 { font-weight: 800; line-height: 1.02; letter-spacing: -.028em; font-family: var(--font-display); }
[dir="rtl"] h1, [dir="rtl"] h2, [dir="rtl"] h3, [dir="rtl"] h4 { letter-spacing: 0; line-height: 1.2; }
:focus-visible {
  outline: 3px solid var(--brand-mid);
  outline-offset: 3px;
  border-radius: 4px;
}
::selection { background: var(--brand); color: var(--ivory); }

.skip-link {
  position: absolute; inset-inline-start: var(--s-4); top: -100px;
  z-index: 999; background: var(--brand); color: var(--ivory);
  padding: var(--s-3) var(--s-5); border-radius: var(--r-pill); font-weight: 700;
  transition: top var(--d-fast);
}
.skip-link:focus { top: var(--s-4); }
.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

/* ---------- 3. Layout ---------- */
.wrap { width: 100%; max-width: var(--maxw); margin-inline: auto; padding-inline: var(--gutter); }
.section { padding-block: var(--section); position: relative; }
.section--tight { padding-block: clamp(3rem, 6vw, 6rem); }
.grid { display: grid; gap: var(--s-5); }
@media (min-width: 768px)  { .g-md-2 { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) {
  .g-lg-2 { grid-template-columns: repeat(2, 1fr); }
  .g-lg-3 { grid-template-columns: repeat(3, 1fr); }
  .g-lg-4 { grid-template-columns: repeat(4, 1fr); }
}
.stack > * + * { margin-block-start: var(--s-4); }

/* Section headings */
.eyebrow {
  display: inline-flex; align-items: center; gap: var(--s-2);
  font-size: var(--t-eyebrow); font-weight: 700; letter-spacing: .16em;
  text-transform: uppercase; color: var(--brand-mid);
  padding: 7px 14px; border: 1px solid var(--line-strong);
  border-radius: var(--r-pill); background: rgba(255,255,255,.5);
}
[dir="rtl"] .eyebrow { letter-spacing: 0; text-transform: none; font-size: .8rem; }
.eyebrow::before {
  content: ""; width: 6px; height: 6px; border-radius: 50%;
  background: var(--brand-mid); flex: none;
}
.sec-head { max-width: 1100px; margin-block-end: clamp(2.5rem, 5vw, 4.5rem); }
.sec-head h2 { font-size: var(--t-h2); margin-block-start: var(--s-4); text-wrap: balance; }
.sec-head p { font-size: var(--t-lead); color: var(--fg-muted); max-width: var(--maxw-text); margin-block-start: var(--s-4); }
.sec-head--center { margin-inline: auto; text-align: center; }
.sec-head--center p { margin-inline: auto; }

/* ---------- 4. Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .6em;
  padding: 1.05em 1.9em; border-radius: var(--r-pill);
  font-weight: 700; font-size: var(--t-sm); line-height: 1;
  border: 1.5px solid transparent; cursor: pointer;
  transition: transform var(--d-fast) var(--e-out), background var(--d-fast), color var(--d-fast), border-color var(--d-fast), box-shadow var(--d-fast);
  position: relative; overflow: hidden; white-space: nowrap;
}
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }
.btn__ico { flex: none; transition: transform var(--d) var(--e-out); }
[dir="rtl"] .btn__ico, [dir="rtl"] .btn > svg { transform: scaleX(-1); }
.btn:hover .btn__ico, .btn:hover > svg { transform: translateX(calc(4px * var(--dir-x))); }
[dir="rtl"] .btn:hover .btn__ico, [dir="rtl"] .btn:hover > svg { transform: scaleX(-1) translateX(4px); }
.btn > svg { flex: none; transition: transform var(--d) var(--e-out); }
/* حقول لاتينية داخل صفحة عربية: البريد والروابط والأرقام تُقرأ من اليسار */
input[type="email"], input[type="url"], input[type="tel"], input[type="number"] { direction: ltr; text-align: start; }
[dir="rtl"] input[type="email"], [dir="rtl"] input[type="url"],
[dir="rtl"] input[type="tel"], [dir="rtl"] input[type="number"] { text-align: right; }

.btn--primary { background: var(--brand); color: var(--ivory); box-shadow: var(--sh-sm); }
.btn--primary:hover { background: var(--ink-deep); box-shadow: var(--sh-md); }
.btn--ghost { background: transparent; color: var(--brand); border-color: var(--line-strong); }
.btn--ghost:hover { background: var(--brand); color: var(--ivory); border-color: var(--brand); }
.btn--light { background: var(--ivory); color: var(--brand); }
.btn--light:hover { background: var(--white); }
.btn--onDark { background: transparent; color: var(--ivory); border-color: rgba(246,243,234,.32); }
.btn--onDark:hover { background: var(--ivory); color: var(--brand); border-color: var(--ivory); }
.btn--sm { padding: .8em 1.4em; font-size: var(--t-xs); }
.btn--block { width: 100%; }

/* ---------- 5. Loading Screen ---------- */
.loader {
  position: fixed; inset: 0; z-index: 9999;
  background: var(--ink-deep); color: var(--ivory);
  display: grid; place-items: center; gap: var(--s-5);
  transition: opacity .6s var(--e-out), visibility .6s;
}
.loader[hidden], .loader.is-done { opacity: 0; visibility: hidden; pointer-events: none; }
.loader__inner { display: grid; justify-items: center; gap: var(--s-5); padding: var(--gutter); text-align: center; }
.loader__logo { width: clamp(160px, 26vw, 260px); opacity: 0; animation: loaderLogo .9s var(--e-out) .1s forwards; }
.loader__roots { width: clamp(180px, 30vw, 300px); overflow: visible; }
.loader__roots path, .loader__roots line {
  stroke-dasharray: 200; stroke-dashoffset: 200;
  animation: draw 1.1s var(--e-out) .45s forwards;
}
.loader__roots circle { opacity: 0; animation: pop .5s var(--e-spring) 1.15s forwards; }
.loader__line {
  font-size: var(--t-sm); letter-spacing: .05em; color: var(--sage);
  opacity: 0; animation: fadeUp .7s var(--e-out) .8s forwards;
}
@keyframes loaderLogo { from { opacity: 0; transform: translateY(14px) scale(.97); } to { opacity: 1; transform: none; } }
@keyframes draw { to { stroke-dashoffset: 0; } }
@keyframes pop { from { opacity: 0; transform: scale(.4); } to { opacity: 1; transform: scale(1); } }
@keyframes fadeUp { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }

/* ---------- 6. Custom Cursor ---------- */
.cursor, .cursor-dot { position: fixed; top: 0; left: 0; pointer-events: none; z-index: 9000; will-change: transform; }
.cursor {
  width: 40px; height: 40px; margin: -20px 0 0 -20px;
  border: 1.5px solid var(--brand); border-radius: 50%;
  transition: width .3s var(--e-out), height .3s var(--e-out), margin .3s var(--e-out),
              background .3s var(--e-out), border-color .3s var(--e-out), opacity .3s;
  display: grid; place-items: center;
}
.cursor-dot { width: 6px; height: 6px; margin: -3px 0 0 -3px; background: var(--brand); border-radius: 50%; }
.cursor__label {
  font-size: 11px; font-weight: 800; color: var(--ivory);
  opacity: 0; transition: opacity .2s; white-space: nowrap; letter-spacing: .04em;
}
body.cursor-hover .cursor { width: 68px; height: 68px; margin: -34px 0 0 -34px; background: var(--brand); border-color: var(--brand); }
body.cursor-hover .cursor-dot { opacity: 0; }
body.cursor-label .cursor { width: 92px; height: 92px; margin: -46px 0 0 -46px; background: var(--brand); border-color: var(--brand); }
body.cursor-label .cursor__label { opacity: 1; }
body.cursor-onDark .cursor { border-color: var(--ivory); }
body.cursor-onDark .cursor-dot { background: var(--ivory); }
body.cursor-onDark.cursor-hover .cursor,
body.cursor-onDark.cursor-label .cursor { background: var(--ivory); border-color: var(--ivory); }
body.cursor-onDark .cursor__label { color: var(--brand); }
@media (hover: none), (pointer: coarse) { .cursor, .cursor-dot { display: none !important; } }

/* ---------- 7. Scroll progress ---------- */
.progress {
  position: fixed; inset-block-start: 0; inset-inline-start: 0;
  height: 3px; width: 100%; transform: scaleX(0);
  background: linear-gradient(90deg, var(--brand), var(--brand-mid), var(--gold));
  z-index: 900; will-change: transform;
}
[dir="ltr"] .progress { transform-origin: left; }
[dir="rtl"] .progress { transform-origin: right; }

/* ---------- 8. Navigation ---------- */
.nav {
  position: fixed; inset-block-start: 0; inset-inline: 0; z-index: 800;
  height: var(--nav-h); display: flex; align-items: center;
  transition: background var(--d) var(--e-out), box-shadow var(--d), backdrop-filter var(--d), transform var(--d) var(--e-out);
}
.nav.is-stuck {
  background: rgba(246,243,234,.86);
  backdrop-filter: saturate(180%) blur(18px);
  -webkit-backdrop-filter: saturate(180%) blur(18px);
  box-shadow: 0 1px 0 var(--line);
}
.nav.is-hidden { transform: translateY(-104%); }
.nav__in { display: flex; align-items: center; gap: var(--s-5); width: 100%; }
.nav__logo { display: flex; align-items: center; flex: none; }
.nav__logo img { height: 34px; width: auto; transition: opacity var(--d-fast); }
.nav__links { display: none; gap: clamp(.6rem, 1.6vw, 1.5rem); margin-inline: auto; }
@media (min-width: 1100px) { .nav__links { display: flex; } }
.nav__link {
  font-size: var(--t-sm); font-weight: 600; padding: .5em .1em;
  position: relative; color: var(--fg);
}
.nav__link::after {
  content: ""; position: absolute; inset-block-end: 0; inset-inline-start: 0;
  height: 2px; width: 100%; background: var(--brand);
  transform: scaleX(0);
  transition: transform var(--d) var(--e-out);
}
[dir="ltr"] .nav__link::after { transform-origin: right; }
[dir="rtl"] .nav__link::after { transform-origin: left; }
.nav__link:hover::after, .nav__link[aria-current="page"]::after { transform: scaleX(1); }
[dir="ltr"] .nav__link:hover::after { transform-origin: left; }
[dir="rtl"] .nav__link:hover::after { transform-origin: right; }
.nav__actions { display: flex; align-items: center; gap: var(--s-3); margin-inline-start: auto; }
@media (min-width: 1100px) { .nav__actions { margin-inline-start: 0; } }
.nav__cta { display: none; }
@media (min-width: 700px) { .nav__cta { display: inline-flex; } }
.lang {
  display: inline-flex; align-items: center; gap: .4em;
  font-size: var(--t-xs); font-weight: 800; letter-spacing: .06em;
  padding: .62em 1em; border: 1.5px solid var(--line-strong); border-radius: var(--r-pill);
  transition: background var(--d-fast), color var(--d-fast), border-color var(--d-fast);
}
.lang:hover { background: var(--brand); color: var(--ivory); border-color: var(--brand); }
.burger {
  width: 48px; height: 48px; border-radius: 50%; border: 1.5px solid var(--line-strong);
  display: grid; place-items: center; gap: 5px; align-content: center;
  transition: background var(--d-fast), border-color var(--d-fast);
}
.burger:hover { background: var(--brand); border-color: var(--brand); }
.burger span { width: 18px; height: 2px; background: var(--fg); border-radius: 2px; transition: all var(--d) var(--e-out); }
.burger:hover span { background: var(--ivory); }
body.menu-open .burger span:first-child { transform: translateY(3.5px) rotate(45deg); }
body.menu-open .burger span:last-child { transform: translateY(-3.5px) rotate(-45deg); }

/* ---------- 9. Overlay menu ---------- */
.menu {
  position: fixed; inset: 0; z-index: 850;
  background: var(--ink-deep); color: var(--ivory);
  clip-path: circle(0% at var(--menu-x, 90%) 40px);
  transition: clip-path .75s var(--e-inout);
  overflow-y: auto; visibility: hidden;
}
body.menu-open .menu { clip-path: circle(150% at var(--menu-x, 90%) 40px); visibility: visible; }
.menu__in { min-height: 100%; padding-block: calc(var(--nav-h) + var(--s-6)) var(--s-8); display: grid; align-content: start; gap: var(--s-8); }
.menu__grid { display: grid; gap: var(--s-8); }
@media (min-width: 900px) { .menu__grid { grid-template-columns: 1.35fr 1fr; gap: var(--s-9); } }
.menu__label {
  font-size: var(--t-eyebrow); letter-spacing: .18em; text-transform: uppercase;
  color: var(--sage); margin-block-end: var(--s-5); display: block;
}
[dir="rtl"] .menu__label { letter-spacing: 0; text-transform: none; font-size: .8rem; }
.menu__nav { display: grid; gap: .2rem; }
.menu__link {
  font-family: var(--font-display); font-size: clamp(1.9rem, 4.6vw, 3.4rem);
  font-weight: 800; letter-spacing: -.03em; line-height: 1.16;
  opacity: 0; transform: translateY(28px);
  transition: opacity .5s var(--e-out), transform .5s var(--e-out), color .25s;
  display: inline-flex; align-items: baseline; gap: .5em; width: fit-content;
}
[dir="rtl"] .menu__link { letter-spacing: 0; }
body.menu-open .menu__link { opacity: 1; transform: none; }
.menu__link:hover { color: var(--sage); }
.menu__link i {
  font-style: normal; font-family: var(--font-mono); font-size: .78rem;
  color: var(--gold-soft); opacity: .8; font-weight: 500;
}
.menu__side { display: grid; gap: var(--s-7); align-content: start; }
.menu__cos { display: grid; gap: var(--s-3); }
.menu__co {
  display: flex; align-items: center; justify-content: space-between; gap: var(--s-4);
  padding: var(--s-4) var(--s-5); border: 1px solid rgba(246,243,234,.14);
  border-radius: var(--r-md); transition: background var(--d-fast), border-color var(--d-fast), transform var(--d-fast);
}
.menu__co:hover { background: rgba(246,243,234,.07); border-color: rgba(246,243,234,.3); transform: translateX(calc(5px * var(--dir-x))); }
.menu__co b { font-weight: 700; font-size: 1.02rem; }
.menu__co span { font-size: var(--t-xs); color: var(--sage); }
.menu__meta { display: grid; gap: var(--s-3); font-size: var(--t-sm); }
.menu__meta a { color: var(--sage); transition: color var(--d-fast); }
.menu__meta a:hover { color: var(--ivory); }
.menu__foot { display: flex; flex-wrap: wrap; gap: var(--s-4); align-items: center; padding-block-start: var(--s-6); border-block-start: 1px solid rgba(246,243,234,.14); }

/* ---------- 10. Hero ---------- */
.hero {
  position: relative; padding-block: calc(var(--nav-h) + clamp(3rem, 8vw, 7rem)) clamp(3rem, 7vw, 6rem);
  overflow: hidden; background: var(--ivory);
}
.hero__bg { position: absolute; inset: 0; pointer-events: none; overflow: hidden; }
.hero__blob {
  position: absolute; border-radius: 50%; filter: blur(72px); opacity: .5;
  will-change: transform;
}
.hero__blob--1 { width: 46vw; height: 46vw; background: var(--sage-light); inset-block-start: -14vw; inset-inline-end: -10vw; }
.hero__blob--2 { width: 34vw; height: 34vw; background: var(--acc-ai-soft); inset-block-end: -12vw; inset-inline-start: -8vw; }
.hero__blob--3 { width: 24vw; height: 24vw; background: #F2E9D6; inset-block-start: 34%; inset-inline-start: 42%; opacity: .45; }
.hero__in { position: relative; z-index: 1; }
.hero h1 { font-size: var(--t-h1); text-wrap: balance; }
.hero h1 .ln { display: block; overflow: hidden; }
.hero h1 .ln > span {
  display: block; transform: translateY(105%);
  animation: heroLine .95s var(--e-out) forwards;
}
.hero h1 .ln:nth-child(2) > span { animation-delay: .09s; }
.hero h1 .ln:nth-child(3) > span { animation-delay: .18s; }
@keyframes heroLine { to { transform: none; } }
.hero__eyebrow { margin-block-end: var(--s-5); }
.hero__rot {
  display: inline-flex; align-items: center; gap: .45em;
  margin-block-start: var(--s-6); font-size: var(--t-h3); font-weight: 800;
  font-family: var(--font-display); color: var(--brand-mid);
}
.rot { display: inline-grid; height: 1.25em; overflow: hidden; vertical-align: bottom; }
.rot span {
  grid-area: 1/1; transition: transform .55s var(--e-out), opacity .55s var(--e-out);
  transform: translateY(110%); opacity: 0;
}
.rot span.is-in  { transform: none; opacity: 1; }
.rot span.is-out { transform: translateY(-110%); opacity: 0; }
.hero__sub { font-size: var(--t-lead); color: var(--fg-muted); max-width: 62ch; margin-block-start: var(--s-5); }
.hero__cta { display: flex; flex-wrap: wrap; gap: var(--s-3); margin-block-start: var(--s-7); align-items: center; }
.hero__play {
  display: inline-flex; align-items: center; gap: var(--s-3);
  font-weight: 700; font-size: var(--t-sm); padding: .5em;
}
.hero__play i {
  width: 46px; height: 46px; border-radius: 50%; background: var(--brand); color: var(--ivory);
  display: grid; place-items: center; flex: none; transition: transform var(--d) var(--e-spring);
}
.hero__play:hover i { transform: scale(1.12); }
.hero__scroll {
  display: inline-flex; align-items: center; gap: var(--s-3);
  margin-block-start: clamp(3rem, 7vw, 5.5rem);
  font-size: var(--t-xs); font-weight: 700; letter-spacing: .1em; color: var(--fg-subtle);
}
[dir="rtl"] .hero__scroll { letter-spacing: 0; }
.hero__scroll i {
  width: 30px; height: 46px; border: 1.5px solid var(--line-strong); border-radius: var(--r-pill);
  position: relative; flex: none;
}
.hero__scroll i::after {
  content: ""; position: absolute; inset-block-start: 8px; inset-inline-start: 50%;
  width: 4px; height: 8px; border-radius: 2px; background: var(--brand);
  transform: translateX(-50%); animation: scrollDot 1.7s var(--e-inout) infinite;
}
@keyframes scrollDot { 0%,100% { opacity: 0; transform: translate(-50%,0); } 40% { opacity: 1; } 70% { opacity: 0; transform: translate(-50%,16px); } }

/* ---------- 11. Cards ---------- */
.card {
  background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--r-lg); padding: clamp(1.6rem, 3vw, 2.6rem);
  transition: transform var(--d) var(--e-out), box-shadow var(--d) var(--e-out), border-color var(--d);
  position: relative; overflow: hidden; height: 100%;
}
.card:hover { transform: translateY(-6px); box-shadow: var(--sh-md); border-color: var(--line-strong); }
.card h3 { font-size: var(--t-h4); margin-block: var(--s-5) var(--s-3); }
.card p { color: var(--fg-muted); font-size: var(--t-sm); }
.card__art { height: 116px; display: grid; place-items: center; }
.card__art svg { height: 100%; width: 100%; }
.card__n {
  font-family: var(--font-mono); font-size: var(--t-xs); font-weight: 600;
  color: var(--gold); letter-spacing: .1em;
}

.tile {
  border-radius: var(--r-lg); padding: clamp(1.5rem, 2.6vw, 2.2rem);
  border: 1px solid var(--line); background: var(--surface); height: 100%;
  display: grid; gap: var(--s-4); align-content: start;
  transition: transform var(--d) var(--e-out), box-shadow var(--d), background var(--d);
}
.tile:hover { transform: translateY(-5px); box-shadow: var(--sh-md); }
.tile__ico { width: 52px; height: 52px; border-radius: var(--r-md); display: grid; place-items: center; background: var(--sage-light); }
.tile h3 { font-size: 1.18rem; }
.tile p { font-size: var(--t-sm); color: var(--fg-muted); }

.badge {
  display: inline-flex; align-items: center; gap: .45em;
  font-size: var(--t-xs); font-weight: 700; padding: .42em .9em;
  border-radius: var(--r-pill); background: var(--sage-light); color: var(--brand);
  white-space: nowrap;
}
.badge::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; flex: none; }
.badge--dark { background: rgba(246,243,234,.12); color: var(--ivory); }
.badge--outline { background: transparent; border: 1px solid var(--line-strong); }

/* ---------- 12. Marquee / Ticker ---------- */
.marquee { overflow: hidden; -webkit-mask-image: linear-gradient(90deg, transparent, #000 9%, #000 91%, transparent); mask-image: linear-gradient(90deg, transparent, #000 9%, #000 91%, transparent); }
.marquee__track { display: flex; width: max-content; animation: marquee var(--mq-dur, 44s) linear infinite; will-change: transform; }
.marquee:hover .marquee__track { animation-play-state: paused; }
.marquee--rev .marquee__track { animation-direction: reverse; }
@keyframes marquee { from { transform: translateX(0); } to { transform: translateX(-50%); } }
/* في RTL يتدفق المحتوى من اليمين لليسار، فالنسخة المكررة تقع يسار الأصل —
   لذلك تتحرك المجموعة يمينًا بقيمة موجبة للحصول على دوران سلس بلا فراغ */
[dir="rtl"] .marquee__track { animation-name: marqueeRtl; }
@keyframes marqueeRtl { from { transform: translateX(0); } to { transform: translateX(50%); } }
.marquee__set { display: flex; align-items: center; flex: none; }
.mq-item {
  display: inline-flex; align-items: center; gap: var(--s-4);
  padding-inline: clamp(1.4rem, 3vw, 3rem); flex: none;
}
.mq-item__name {
  font-family: var(--font-en); font-size: clamp(1.35rem, 2.6vw, 2.1rem);
  font-weight: 800; letter-spacing: -.03em; color: var(--brand); white-space: nowrap;
}
.mq-item__tag { font-size: var(--t-xs); color: var(--fg-subtle); white-space: nowrap; }
.mq-sep { width: 9px; height: 9px; border-radius: 50%; background: var(--gold); flex: none; opacity: .65; }
.mq-strip {
  font-family: var(--font-display); font-size: clamp(2.6rem, 7vw, 6rem); font-weight: 800;
  letter-spacing: -.035em; white-space: nowrap; padding-inline: .35em; color: transparent;
  -webkit-text-stroke: 1.2px var(--line-strong);
}
[dir="rtl"] .mq-strip { letter-spacing: 0; }

/* ---------- 13. Sector slider ---------- */
.slider { position: relative; }
.slider__viewport { overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; -ms-overflow-style: none; padding-block-end: var(--s-4); }
.slider__viewport::-webkit-scrollbar { display: none; }
.slider__track { display: flex; gap: var(--s-5); padding-inline: max(var(--gutter), calc((100vw - var(--maxw)) / 2 + var(--gutter))); }
.slide { flex: 0 0 min(88vw, 460px); scroll-snap-align: center; }
@media (min-width: 1024px) { .slide { flex-basis: min(44vw, 560px); } }
.sector {
  border-radius: var(--r-xl); padding: clamp(1.8rem, 3vw, 3rem); height: 100%;
  display: grid; gap: var(--s-5); align-content: start;
  background: var(--sec-soft, var(--sage-light)); border: 1px solid transparent;
  transition: transform var(--d) var(--e-out), box-shadow var(--d);
}
.sector:hover { transform: translateY(-6px); box-shadow: var(--sh-md); }
.sector__art { height: clamp(120px, 16vw, 170px); display: grid; place-items: center; }
.sector__art svg { height: 100%; width: 100%; }
.sector h3 { font-size: var(--t-h3); color: var(--sec-deep, var(--brand)); text-wrap: balance; }
.sector p { color: var(--fg-muted); font-size: var(--t-sm); }
.sector__items { display: flex; flex-wrap: wrap; gap: .45rem; }
.chip {
  font-size: var(--t-xs); padding: .42em .85em; border-radius: var(--r-pill);
  background: rgba(255,255,255,.72); color: var(--sec-deep, var(--brand)); font-weight: 600; white-space: nowrap;
}
.sector__cos { display: flex; flex-wrap: wrap; gap: var(--s-2); padding-block-start: var(--s-4); border-block-start: 1px solid rgba(0,0,0,.09); }
.slider__ctrl { display: flex; gap: var(--s-3); margin-block-start: var(--s-6); justify-content: center; }
.sq {
  width: 52px; height: 52px; border-radius: 50%; border: 1.5px solid var(--line-strong);
  display: grid; place-items: center; transition: background var(--d-fast), color var(--d-fast), border-color var(--d-fast), opacity var(--d-fast);
}
.sq:hover { background: var(--brand); color: var(--ivory); border-color: var(--brand); }
.sq[disabled] { opacity: .34; cursor: not-allowed; }
.sq svg { transition: none; }
[dir="rtl"] .sq svg { transform: scaleX(-1); }

/* ---------- 14. Indicators ---------- */
.ind {
  display: grid; gap: var(--s-5); padding: clamp(1.6rem, 3vw, 2.4rem) 0;
  border-block-start: 1px solid var(--line);
}
.ind:last-child { border-block-end: 1px solid var(--line); }
@media (min-width: 768px) { .ind { grid-template-columns: minmax(0,.85fr) minmax(0,1.15fr); align-items: baseline; gap: var(--s-6); } }
.ind__k { font-family: var(--font-display); font-size: clamp(1.35rem, 2.6vw, 2.1rem); font-weight: 800; letter-spacing: -.028em; }
[dir="rtl"] .ind__k { letter-spacing: 0; }
.ind__v { color: var(--fg-muted); font-size: var(--t-lead); }

/* ---------- 15. Portfolio ---------- */
.pf { display: grid; gap: clamp(1.6rem, 3vw, 2.6rem); }
@media (min-width: 1024px) { .pf { grid-template-columns: repeat(2, 1fr); } }
.pf-card {
  border-radius: var(--r-xl); overflow: hidden; background: var(--surface);
  border: 1px solid var(--line); display: grid; grid-template-rows: auto 1fr;
  transition: transform var(--d) var(--e-out), box-shadow var(--d), border-color var(--d);
  height: 100%;
}
.pf-card:hover { transform: translateY(-8px); box-shadow: var(--sh-lg); border-color: transparent; }
.pf-card__media {
  position: relative; aspect-ratio: 16/10; overflow: hidden;
  background: var(--pf-soft, var(--sage-light)); display: grid; place-items: center;
}
.pf-card__media > svg { width: 88%; height: auto; transition: transform var(--d-slow) var(--e-out); }
.pf-card:hover .pf-card__media > svg { transform: scale(1.045); }
.pf-card__badge { position: absolute; inset-block-start: var(--s-4); inset-inline-start: var(--s-4); z-index: 2; }
.pf-card__body { padding: clamp(1.5rem, 2.6vw, 2.4rem); display: grid; gap: var(--s-4); align-content: start; }
.pf-card__top { display: flex; align-items: flex-start; justify-content: space-between; gap: var(--s-4); flex-wrap: wrap; }
.pf-card__name { font-family: var(--font-en); font-size: clamp(1.6rem, 3vw, 2.35rem); font-weight: 800; letter-spacing: -.032em; }
.pf-card__cat { font-size: var(--t-xs); color: var(--pf-accent, var(--brand-mid)); font-weight: 700; letter-spacing: .04em; }
.pf-card__desc { color: var(--fg-muted); font-size: var(--t-sm); }
.pf-card__cta { display: inline-flex; align-items: center; gap: .55em; font-weight: 700; font-size: var(--t-sm); color: var(--brand); margin-block-start: var(--s-2); }
.pf-card__cta svg { transition: transform var(--d) var(--e-out); }
[dir="rtl"] .pf-card__cta svg { transform: scaleX(-1); }
.pf-card:hover .pf-card__cta svg { transform: translateX(calc(5px * var(--dir-x))); }
[dir="rtl"] .pf-card:hover .pf-card__cta svg { transform: scaleX(-1) translateX(5px); }

/* Placeholder logo lockup */
.logo-ph {
  display: inline-flex; align-items: center; gap: .6em;
  font-family: var(--font-en); font-weight: 800; letter-spacing: -.02em;
  color: var(--ph-color, var(--brand));
}
.logo-ph__mark {
  width: 1.85em; height: 1.85em; border-radius: 8px; flex: none;
  display: grid; place-items: center; background: currentColor;
  font-size: .62em; color: var(--ph-on, #fff); font-weight: 900; letter-spacing: 0;
}

/* ---------- 16. Sticky process ---------- */
.proc { display: grid; gap: var(--s-6); }
@media (min-width: 1024px) { .proc { grid-template-columns: minmax(0, .78fr) minmax(0, 1.22fr); gap: var(--s-9); align-items: start; } }
.proc__sticky { position: static; }
@media (min-width: 1024px) { .proc__sticky { position: sticky; top: calc(var(--nav-h) + var(--s-7)); } }
.proc__steps { display: grid; gap: var(--s-5); }
.proc__step {
  display: grid; gap: var(--s-4); padding: clamp(1.6rem, 3vw, 2.6rem);
  border-radius: var(--r-lg); border: 1px solid var(--line); background: var(--surface);
  transition: background var(--d), border-color var(--d), transform var(--d) var(--e-out);
}
@media (min-width: 640px) { .proc__step { grid-template-columns: auto 1fr; gap: var(--s-6); align-items: start; } }
.proc__step.is-active { background: var(--brand); border-color: var(--brand); color: var(--ivory); transform: scale(1.012); }
.proc__step.is-active p { color: var(--sage); }
.proc__step.is-active .proc__num { color: var(--gold-soft); border-color: rgba(246,243,234,.28); }
.proc__num {
  font-family: var(--font-mono); font-size: 1rem; font-weight: 600; color: var(--gold);
  border: 1px solid var(--line); border-radius: var(--r-pill); padding: .5em 1em;
  width: fit-content; height: fit-content; transition: color var(--d), border-color var(--d);
}
.proc__step h3 { font-size: var(--t-h4); margin-block-end: var(--s-3); }
.proc__step p { color: var(--fg-muted); font-size: var(--t-sm); }
.proc__rail { display: flex; gap: var(--s-2); margin-block-start: var(--s-6); }
.proc__rail i { flex: 1; height: 3px; border-radius: 3px; background: var(--line); transition: background var(--d); }
.proc__rail i.on { background: var(--brand); }

/* ---------- 17. Comparison ---------- */
.cmp { display: grid; gap: var(--s-5); }
@media (min-width: 900px) { .cmp { grid-template-columns: repeat(2, 1fr); gap: var(--s-6); } }
.cmp__col { border-radius: var(--r-xl); padding: clamp(1.6rem, 3vw, 2.6rem); }
.cmp__col--a { background: var(--cream); border: 1px solid var(--line); }
.cmp__col--b { background: var(--brand); color: var(--ivory); box-shadow: var(--sh-md); }
.cmp__head { display: flex; align-items: center; gap: var(--s-3); margin-block-end: var(--s-6); padding-block-end: var(--s-5); border-block-end: 1px solid currentColor; }
.cmp__col--a .cmp__head { border-color: var(--line-strong); }
.cmp__col--b .cmp__head { border-color: rgba(246,243,234,.22); }
.cmp__head h3 { font-size: var(--t-h4); }
.cmp__col--b .cmp__head img { height: 24px; width: auto; }
.cmp__list { display: grid; gap: var(--s-4); }
.cmp__row { display: flex; gap: var(--s-3); align-items: flex-start; font-size: var(--t-sm); line-height: 1.55; }
.cmp__row i { flex: none; margin-block-start: 2px; width: 20px; height: 20px; display: grid; place-items: center; border-radius: 50%; }
.cmp__col--a .cmp__row i { background: rgba(26,59,46,.09); color: var(--fg-subtle); }
.cmp__col--b .cmp__row i { background: rgba(246,243,234,.16); color: var(--ivory); }
.cmp__col--a .cmp__row { color: var(--fg-muted); }

/* ---------- 18. Principles ---------- */
.prin {
  border-radius: var(--r-lg); padding: clamp(1.6rem, 3vw, 2.4rem);
  background: var(--surface); border: 1px solid var(--line); height: 100%;
  display: grid; gap: var(--s-5); align-content: start;
  transition: transform var(--d) var(--e-out), box-shadow var(--d);
}
.prin:hover { transform: translateY(-5px); box-shadow: var(--sh-md); }
.prin__q { font-size: 1.9rem; line-height: 1; color: var(--gold); font-family: var(--font-en); font-weight: 800; }
.prin p { font-size: 1.05rem; line-height: 1.6; font-weight: 600; color: var(--fg); }
.prin__foot { display: flex; align-items: center; gap: var(--s-3); padding-block-start: var(--s-4); border-block-start: 1px solid var(--line); font-size: var(--t-xs); color: var(--fg-subtle); }
.prin__foot img { height: 16px; width: auto; opacity: .75; }

/* ---------- 19. Collaboration models ---------- */
.model {
  border-radius: var(--r-xl); padding: clamp(1.7rem, 3vw, 2.6rem);
  border: 1px solid var(--line); background: var(--surface); height: 100%;
  display: grid; gap: var(--s-5); align-content: start;
  transition: transform var(--d) var(--e-out), box-shadow var(--d), background var(--d), color var(--d), border-color var(--d);
}
.model:hover, .model.is-featured { transform: translateY(-6px); box-shadow: var(--sh-lg); }
.model.is-featured { background: var(--brand); color: var(--ivory); border-color: var(--brand); }
.model.is-featured p, .model.is-featured li { color: var(--sage); }
.model.is-featured .model__tag { background: rgba(246,243,234,.14); color: var(--ivory); }
.model.is-featured .model__list { border-color: rgba(246,243,234,.2); }
.model.is-featured .model__list li::before { background: var(--gold-soft); }
.model__tag {
  font-family: var(--font-en); font-size: var(--t-xs); font-weight: 700; letter-spacing: .07em;
  padding: .5em 1em; border-radius: var(--r-pill); background: var(--sage-light); color: var(--brand); width: fit-content;
}
.model h3 { font-size: var(--t-h3); }
.model p { color: var(--fg-muted); font-size: var(--t-sm); }
.model__list { display: grid; gap: var(--s-3); padding-block-start: var(--s-5); border-block-start: 1px solid var(--line); }
.model__list li { display: flex; gap: var(--s-3); align-items: center; font-size: var(--t-sm); color: var(--fg-muted); }
.model__list li::before { content: ""; width: 5px; height: 5px; border-radius: 50%; background: var(--brand-mid); flex: none; }

/* ---------- 20. Ecosystem map ---------- */
.eco { position: relative; display: grid; place-items: center; padding-block: var(--s-6); }
.eco svg { width: 100%; max-width: 760px; height: auto; overflow: visible; }
.eco__node { transition: transform var(--d) var(--e-out); transform-origin: center; }
.eco__node:hover { transform: scale(1.06); }
.eco__line { stroke-dasharray: 6 7; animation: dash 22s linear infinite; }
@keyframes dash { to { stroke-dashoffset: -260; } }

/* ---------- 21. Founder ---------- */
.founder { display: grid; gap: var(--s-7); align-items: center; }
@media (min-width: 900px) { .founder { grid-template-columns: minmax(0,.72fr) minmax(0,1.28fr); gap: var(--s-9); } }
.founder__photo {
  aspect-ratio: 4/5; border-radius: var(--r-xl); overflow: hidden; position: relative;
  background: linear-gradient(160deg, var(--brand) 0%, var(--ink-deep) 100%);
  display: grid; place-items: center; padding: var(--s-6); text-align: center; color: var(--ivory);
}
.founder__photo img { width: 100%; height: 100%; object-fit: cover; }
.founder__initials {
  font-family: var(--font-en); font-size: clamp(4rem, 11vw, 7rem); font-weight: 800;
  letter-spacing: -.05em; line-height: 1; color: rgba(246,243,234,.92);
}
.founder__ph-note { font-size: var(--t-xs); color: var(--sage); margin-block-start: var(--s-4); }
.founder__name { font-size: var(--t-h2); }
.founder__role { color: var(--brand-mid); font-weight: 700; font-size: var(--t-lead); margin-block-start: var(--s-2); }
.founder__bio p { color: var(--fg-muted); font-size: var(--t-lead); }
.founder__bio p + p { margin-block-start: var(--s-4); }
.founder__tags { display: flex; flex-wrap: wrap; gap: var(--s-2); margin-block-start: var(--s-6); }

/* ---------- 22. FAQ ---------- */
.faq { display: grid; gap: var(--s-3); max-width: 940px; margin-inline: auto; }
.faq__item { border: 1px solid var(--line); border-radius: var(--r-md); background: var(--surface); overflow: hidden; transition: border-color var(--d), box-shadow var(--d); }
.faq__item[open] { border-color: var(--line-strong); box-shadow: var(--sh-sm); }
.faq__q {
  display: flex; align-items: center; justify-content: space-between; gap: var(--s-4);
  padding: clamp(1.1rem, 2vw, 1.55rem) clamp(1.2rem, 2.2vw, 1.9rem);
  font-weight: 700; font-size: var(--t-lead); cursor: pointer; list-style: none; width: 100%; text-align: start;
}
.faq__q::-webkit-details-marker { display: none; }
.faq__q i {
  flex: none; width: 32px; height: 32px; border-radius: 50%; border: 1.5px solid var(--line-strong);
  display: grid; place-items: center; position: relative; transition: background var(--d), border-color var(--d), transform var(--d);
}
.faq__q i::before, .faq__q i::after {
  content: ""; position: absolute; background: currentColor; border-radius: 2px;
  transition: transform var(--d) var(--e-out), opacity var(--d);
}
.faq__q i::before { width: 13px; height: 2px; }
.faq__q i::after  { width: 2px; height: 13px; }
.faq__item[open] .faq__q i { background: var(--brand); border-color: var(--brand); color: var(--ivory); }
.faq__item[open] .faq__q i::after { transform: scaleY(0); opacity: 0; }
.faq__a { padding: 0 clamp(1.2rem, 2.2vw, 1.9rem) clamp(1.2rem, 2.2vw, 1.7rem); color: var(--fg-muted); max-width: 72ch; }

/* ---------- 23. Forms ---------- */
.form { display: grid; gap: var(--s-5); }
.form__row { display: grid; gap: var(--s-5); }
@media (min-width: 640px) { .form__row--2 { grid-template-columns: repeat(2, 1fr); } }
.field { display: grid; gap: var(--s-2); }
.field > label { font-size: var(--t-sm); font-weight: 700; }
.field input, .field select, .field textarea {
  width: 100%; padding: .95em 1.15em; border-radius: var(--r-md);
  border: 1.5px solid var(--line-strong); background: var(--surface); color: var(--fg);
  transition: border-color var(--d-fast), box-shadow var(--d-fast), background var(--d-fast);
  font-size: var(--t-sm);
}
.field textarea { min-height: 148px; resize: vertical; line-height: 1.6; }
.field input::placeholder, .field textarea::placeholder { color: var(--fg-subtle); opacity: .8; }
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none; border-color: var(--brand); box-shadow: 0 0 0 4px rgba(38,118,90,.14);
}
.field.has-error input, .field.has-error select, .field.has-error textarea { border-color: #B4402F; }
.field__err { font-size: var(--t-xs); color: #B4402F; font-weight: 600; display: none; }
.field.has-error .field__err { display: block; }
.field select { appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1.5 6 6.5l5-5' stroke='%234A5A53' stroke-width='1.8' fill='none' stroke-linecap='round'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 1.15em center; padding-inline-end: 2.6em; }
[dir="rtl"] .field select { background-position: left 1.15em center; padding-inline-end: 1.15em; padding-inline-start: 2.6em; }
.chips { display: flex; flex-wrap: wrap; gap: var(--s-2); }
.chip-radio { position: relative; }
.chip-radio input { position: absolute; opacity: 0; width: 100%; height: 100%; inset: 0; cursor: pointer; margin: 0; }
.chip-radio span {
  display: block; padding: .68em 1.15em; border-radius: var(--r-pill);
  border: 1.5px solid var(--line-strong); font-size: var(--t-sm); font-weight: 600;
  transition: background var(--d-fast), color var(--d-fast), border-color var(--d-fast); white-space: nowrap;
}
.chip-radio input:checked + span { background: var(--brand); color: var(--ivory); border-color: var(--brand); }
.chip-radio input:focus-visible + span { outline: 3px solid var(--brand-mid); outline-offset: 3px; }
.check { display: flex; gap: var(--s-3); align-items: flex-start; font-size: var(--t-sm); color: var(--fg-muted); cursor: pointer; }
.check input { width: 20px; height: 20px; flex: none; margin-block-start: 2px; accent-color: var(--brand); }
.check a { text-decoration: underline; text-underline-offset: 3px; }
.form__note { font-size: var(--t-xs); color: var(--fg-subtle); }
.form__status { padding: var(--s-5); border-radius: var(--r-md); display: none; }
.form__status.is-visible { display: block; }
.form__status--ok { background: var(--sage-light); color: var(--brand); }
.form__status--err { background: #F7E3DF; color: #8A2E20; }
.form__status b { display: block; margin-block-end: var(--s-2); }
.btn.is-loading { pointer-events: none; opacity: .72; }
/* honeypot — يُخفى بالقص لا بالإزاحة، لأن الإزاحة السالبة توسّع مساحة التمرير في RTL */
.hp {
  position: absolute !important; width: 1px !important; height: 1px !important;
  padding: 0 !important; margin: -1px !important; overflow: hidden !important;
  clip: rect(0 0 0 0) !important; clip-path: inset(50%) !important;
  white-space: nowrap !important; border: 0 !important;
}

/* ---------- 24. Modal ---------- */
.modal {
  position: fixed; inset: 0; z-index: 950; display: grid; place-items: center;
  padding: var(--gutter); background: rgba(7,26,21,.72);
  backdrop-filter: blur(7px); -webkit-backdrop-filter: blur(7px);
  opacity: 0; visibility: hidden; transition: opacity var(--d) var(--e-out), visibility var(--d);
}
.modal.is-open { opacity: 1; visibility: visible; }
.modal__box {
  background: var(--ivory); border-radius: var(--r-xl); padding: clamp(1.7rem, 3.4vw, 3.2rem);
  width: min(100%, 880px); max-height: 88vh; overflow-y: auto; position: relative;
  transform: translateY(22px) scale(.985); transition: transform var(--d) var(--e-spring);
}
.modal.is-open .modal__box { transform: none; }
.modal__close {
  position: absolute; inset-block-start: var(--s-4); inset-inline-end: var(--s-4);
  width: 44px; height: 44px; border-radius: 50%; border: 1.5px solid var(--line-strong);
  display: grid; place-items: center; transition: background var(--d-fast), color var(--d-fast);
}
.modal__close:hover { background: var(--brand); color: var(--ivory); border-color: var(--brand); }
.reel { display: grid; gap: var(--s-6); }
.reel__stage {
  border-radius: var(--r-lg); background: var(--ink-deep); padding: clamp(1.6rem, 3vw, 2.6rem);
  display: grid; place-items: center; min-height: clamp(220px, 30vw, 320px);
}
.reel__stage svg { width: 100%; max-width: 560px; height: auto; }
.reel__steps { display: grid; gap: var(--s-3); }
@media (min-width: 700px) { .reel__steps { grid-template-columns: repeat(4, 1fr); } }
.reel__step { padding: var(--s-4); border-radius: var(--r-md); border: 1px solid var(--line); transition: background var(--d), border-color var(--d); }
.reel__step.on { background: var(--brand); color: var(--ivory); border-color: var(--brand); }
.reel__step.on p { color: var(--sage); }
.reel__step b { display: block; font-size: var(--t-sm); margin-block: var(--s-2) var(--s-1); }
.reel__step p { font-size: var(--t-xs); color: var(--fg-muted); }
.reel__step i { font-family: var(--font-mono); font-size: var(--t-xs); color: var(--gold); font-style: normal; }

/* ---------- 25. Dark section ---------- */
.dark { background: var(--ink-deep); color: var(--ivory); }
.dark .eyebrow { color: var(--sage); border-color: rgba(246,243,234,.22); background: rgba(246,243,234,.05); }
.dark .eyebrow::before { background: var(--gold-soft); }
.dark .sec-head p, .dark p { color: var(--sage); }
.dark .card, .dark .tile, .dark .prin, .dark .model, .dark .faq__item {
  background: rgba(246,243,234,.045); border-color: rgba(246,243,234,.14);
}
.dark .card p, .dark .tile p, .dark .prin p, .dark .faq__a { color: var(--sage); }
.dark .prin p { color: var(--ivory); }
.dark .ind { border-color: rgba(246,243,234,.16); }
.dark .ind__v { color: var(--sage); }
.dark .btn--ghost { color: var(--ivory); border-color: rgba(246,243,234,.3); }
.dark .btn--ghost:hover { background: var(--ivory); color: var(--brand); border-color: var(--ivory); }
.dark .field input, .dark .field select, .dark .field textarea {
  background: rgba(246,243,234,.06); border-color: rgba(246,243,234,.2); color: var(--ivory);
}
.dark .field input::placeholder, .dark .field textarea::placeholder { color: rgba(246,243,234,.45); }
.dark .chip-radio span { border-color: rgba(246,243,234,.24); }
.dark .chip-radio input:checked + span { background: var(--ivory); color: var(--brand); border-color: var(--ivory); }
.dark .check { color: var(--sage); }
.dark .faq__q i { border-color: rgba(246,243,234,.26); }
.dark .faq__item[open] .faq__q i { background: var(--ivory); border-color: var(--ivory); color: var(--brand); }
.dark .mq-strip { -webkit-text-stroke-color: rgba(246,243,234,.24); }

/* ---------- 26. CTA band ---------- */
.cta-band { position: relative; overflow: hidden; }
.cta-band__in { display: grid; gap: var(--s-6); text-align: center; justify-items: center; position: relative; z-index: 1; }
.cta-band h2 { font-size: var(--t-h2); text-wrap: balance; max-width: 20ch; }
.cta-band p { max-width: 56ch; font-size: var(--t-lead); }
.cta-band__logo { height: clamp(46px, 7vw, 74px); width: auto; opacity: .95; }

/* ---------- 27. Footer ---------- */
.footer { background: var(--ink-deep); color: var(--ivory); padding-block: clamp(3.5rem, 7vw, 6rem) var(--s-6); }
.footer__top { display: grid; gap: var(--s-8); padding-block-end: var(--s-8); border-block-end: 1px solid rgba(246,243,234,.14); }
@media (min-width: 900px) { .footer__top { grid-template-columns: minmax(0,1.5fr) repeat(3, minmax(0,1fr)); gap: var(--s-7); } }
.footer__brand { display: grid; gap: var(--s-5); align-content: start; max-width: 42ch; }
.footer__brand img { height: 42px; width: auto; }
.footer__brand p { color: var(--sage); font-size: var(--t-sm); }
.footer__col h3 { font-size: var(--t-xs); letter-spacing: .16em; text-transform: uppercase; color: var(--gold-soft); margin-block-end: var(--s-5); font-weight: 700; }
[dir="rtl"] .footer__col h3 { letter-spacing: 0; text-transform: none; font-size: .85rem; }
.footer__col ul { display: grid; gap: var(--s-3); }
.footer__col a { font-size: var(--t-sm); color: var(--sage); transition: color var(--d-fast), transform var(--d-fast); display: inline-block; }
.footer__col a:hover { color: var(--ivory); transform: translateX(calc(3px * var(--dir-x))); }
.footer__mid { display: grid; gap: var(--s-6); padding-block: var(--s-7); border-block-end: 1px solid rgba(246,243,234,.14); }
@media (min-width: 800px) { .footer__mid { grid-template-columns: 1fr auto; align-items: center; gap: var(--s-8); } }
.footer__news { display: grid; gap: var(--s-3); max-width: 480px; }
.footer__news h3 { font-size: var(--t-h4); }
.footer__news p { color: var(--sage); font-size: var(--t-sm); }
.footer__news-form { display: flex; gap: var(--s-2); flex-wrap: wrap; }
.footer__news-form input {
  flex: 1 1 220px; padding: .9em 1.15em; border-radius: var(--r-pill);
  border: 1.5px solid rgba(246,243,234,.22); background: rgba(246,243,234,.06); color: var(--ivory); font-size: var(--t-sm);
}
.footer__news-form input::placeholder { color: rgba(246,243,234,.45); }
.social { display: flex; gap: var(--s-3); flex-wrap: wrap; }
.social a {
  width: 44px; height: 44px; border-radius: 50%; border: 1px solid rgba(246,243,234,.22);
  display: grid; place-items: center; transition: background var(--d-fast), color var(--d-fast), border-color var(--d-fast);
}
.social a:hover { background: var(--ivory); color: var(--brand); border-color: var(--ivory); }
.footer__bot { display: grid; gap: var(--s-4); padding-block-start: var(--s-6); font-size: var(--t-xs); color: var(--sage); }
@media (min-width: 900px) { .footer__bot { grid-template-columns: 1fr auto 1fr; align-items: center; } }
.footer__legal { display: flex; flex-wrap: wrap; gap: var(--s-4); }
.footer__legal a:hover { color: var(--ivory); }
.footer__attr { text-align: center; opacity: .72; }
.footer__attr a { text-decoration: underline; text-underline-offset: 3px; }
.to-top {
  display: inline-flex; align-items: center; gap: var(--s-2); justify-self: end;
  padding: .7em 1.2em; border: 1px solid rgba(246,243,234,.22); border-radius: var(--r-pill);
  font-weight: 700; transition: background var(--d-fast), color var(--d-fast);
}
[dir="rtl"] .to-top { justify-self: start; }
.to-top:hover { background: var(--ivory); color: var(--brand); }

/* ---------- 28. Page header (inner pages) ---------- */
.phead {
  padding-block: calc(var(--nav-h) + clamp(3rem, 6vw, 5.5rem)) clamp(2.5rem, 5vw, 4.5rem);
  background: var(--ink-deep); color: var(--ivory); position: relative; overflow: hidden;
}
.phead__blob { position: absolute; width: 40vw; height: 40vw; border-radius: 50%; filter: blur(90px); opacity: .28; background: var(--brand-mid); inset-block-start: -16vw; inset-inline-end: -10vw; }
.phead__in { position: relative; z-index: 1; }
.phead h1 { font-size: var(--t-h1); margin-block: var(--s-5) var(--s-4); text-wrap: balance; }
.phead p { font-size: var(--t-lead); color: var(--sage); max-width: var(--maxw-text); }
.crumbs { display: flex; flex-wrap: wrap; gap: .55em; font-size: var(--t-xs); color: var(--sage); align-items: center; }
.crumbs a:hover { color: var(--ivory); }
.crumbs span[aria-hidden] { opacity: .5; }
[dir="rtl"] .crumbs span[aria-hidden] { transform: scaleX(-1); display: inline-block; }

/* ---------- 29. Company detail ---------- */
.co-hero { display: grid; gap: var(--s-7); align-items: center; }
@media (min-width: 1024px) { .co-hero { grid-template-columns: minmax(0,1fr) minmax(0,1.08fr); gap: var(--s-9); } }
.co-hero__media { border-radius: var(--r-xl); overflow: hidden; background: var(--co-soft, var(--sage-light)); padding: clamp(1.4rem, 3vw, 2.6rem); display: grid; place-items: center; }
.co-hero__media svg { width: 100%; height: auto; }
.co-meta { display: grid; gap: var(--s-4); padding: var(--s-6) 0; border-block: 1px solid var(--line); margin-block: var(--s-7); }
@media (min-width: 700px) { .co-meta { grid-template-columns: repeat(3, 1fr); gap: var(--s-6); } }
.co-meta__i { display: grid; gap: var(--s-2); }
.co-meta__i dt { font-size: var(--t-xs); letter-spacing: .12em; text-transform: uppercase; color: var(--fg-subtle); font-weight: 700; }
[dir="rtl"] .co-meta__i dt { letter-spacing: 0; text-transform: none; }
.co-meta__i dd { font-weight: 700; font-size: var(--t-sm); }
.co-block { display: grid; gap: var(--s-5); }
@media (min-width: 900px) { .co-block { grid-template-columns: minmax(0,.42fr) minmax(0,1fr); gap: var(--s-8); align-items: start; } }
.co-block h2 { font-size: var(--t-h3); }
.co-block p { color: var(--fg-muted); font-size: var(--t-lead); }
.co-block p + p { margin-block-start: var(--s-4); }
.co-list { display: grid; gap: var(--s-3); }
@media (min-width: 640px) { .co-list { grid-template-columns: repeat(2, 1fr); } }
.co-list li { display: flex; gap: var(--s-3); align-items: flex-start; font-size: var(--t-sm); padding: var(--s-3) var(--s-4); background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-md); }
.co-list li svg { flex: none; margin-block-start: 3px; color: var(--co-accent, var(--brand-mid)); }
.co-screens { display: grid; gap: var(--s-4); }
@media (min-width: 700px) { .co-screens { grid-template-columns: repeat(2, 1fr); } }
.co-screen { border-radius: var(--r-lg); overflow: hidden; border: 1px solid var(--line); background: var(--co-soft, var(--sage-light)); }
.co-screen svg { width: 100%; height: auto; }
.co-screen figcaption { padding: var(--s-4); font-size: var(--t-xs); font-weight: 700; background: var(--surface); }

/* ---------- 30. Legal pages ---------- */
.prose { max-width: 76ch; }
.prose h2 { font-size: var(--t-h3); margin-block: var(--s-8) var(--s-4); }
.prose h2:first-child { margin-block-start: 0; }
.prose h3 { font-size: var(--t-h4); margin-block: var(--s-6) var(--s-3); }
.prose p, .prose li { color: var(--fg-muted); }
.prose p + p { margin-block-start: var(--s-4); }
.prose ul { display: grid; gap: var(--s-2); margin-block-start: var(--s-4); }
.prose ul li { display: flex; gap: var(--s-3); }
.prose ul li::before { content: "—"; color: var(--gold); flex: none; }
.prose__updated { font-size: var(--t-xs); color: var(--fg-subtle); margin-block-end: var(--s-7); }

/* ---------- 31. Empty state ---------- */
.empty {
  border: 1.5px dashed var(--line-strong); border-radius: var(--r-xl);
  padding: clamp(2.2rem, 5vw, 4rem); text-align: center; display: grid; gap: var(--s-4); justify-items: center;
}
.empty h3 { font-size: var(--t-h4); }
.empty p { color: var(--fg-muted); max-width: 52ch; }

/* ---------- 32. 404 ---------- */
.nf { min-height: 78vh; display: grid; place-items: center; text-align: center; padding-block: calc(var(--nav-h) + var(--s-8)) var(--s-8); }
.nf__code { font-family: var(--font-en); font-size: clamp(6rem, 22vw, 15rem); font-weight: 800; letter-spacing: -.06em; line-height: 1; color: var(--brand); opacity: .13; }
.nf__in { display: grid; gap: var(--s-5); justify-items: center; margin-block-start: -4vw; }

/* ---------- 33. Appear effects ---------- */
[data-reveal] { opacity: 0; transform: translateY(26px); transition: opacity .82s var(--e-out), transform .82s var(--e-out); }
[data-reveal].is-in { opacity: 1; transform: none; }
[data-reveal="fade"] { transform: none; }
[data-reveal="left"]  { transform: translateX(calc(-34px * var(--dir-x))); }
[data-reveal="right"] { transform: translateX(calc(34px * var(--dir-x))); }
[data-reveal="scale"] { transform: scale(.955); }
[data-reveal].is-in { transform: none; }
[data-stagger] > * { opacity: 0; transform: translateY(24px); transition: opacity .72s var(--e-out), transform .72s var(--e-out); }
[data-stagger].is-in > * { opacity: 1; transform: none; }
[data-stagger].is-in > *:nth-child(1) { transition-delay: .02s; }
[data-stagger].is-in > *:nth-child(2) { transition-delay: .1s; }
[data-stagger].is-in > *:nth-child(3) { transition-delay: .18s; }
[data-stagger].is-in > *:nth-child(4) { transition-delay: .26s; }
[data-stagger].is-in > *:nth-child(5) { transition-delay: .34s; }
[data-stagger].is-in > *:nth-child(6) { transition-delay: .42s; }
[data-stagger].is-in > *:nth-child(7) { transition-delay: .5s; }
[data-stagger].is-in > *:nth-child(8) { transition-delay: .58s; }
[data-parallax] { will-change: transform; }

/* Split text reveal */
.split .w { display: inline-block; overflow: hidden; vertical-align: top; }
.split .w > i { display: inline-block; font-style: inherit; transform: translateY(102%); transition: transform .8s var(--e-out); }
.split.is-in .w > i { transform: none; }

/* ---------- 34. Utilities ---------- */
.mt-0 { margin-block-start: 0 !important; }
.center { text-align: center; }
.muted { color: var(--fg-muted); }
.subtle { color: var(--fg-subtle); font-size: var(--t-sm); }
.hide-sm { display: none; }
@media (min-width: 700px) { .hide-sm { display: revert; } }
.flow > * + * { margin-block-start: var(--s-5); }
.divider { height: 1px; background: var(--line); border: 0; }
.pending {
  display: inline-flex; align-items: center; gap: .5em; font-size: var(--t-xs);
  color: var(--fg-subtle); font-style: italic;
}
.pending::before { content: ""; width: 5px; height: 5px; border-radius: 50%; background: var(--gold); flex: none; }

/* ---------- 35. Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .001ms !important;
    scroll-behavior: auto !important;
  }
  [data-reveal], [data-stagger] > *, .split .w > i, .hero h1 .ln > span { opacity: 1 !important; transform: none !important; }
  .marquee__track { animation: none !important; }
  .cursor, .cursor-dot { display: none !important; }
  .loader { display: none !important; }
}

/* ---------- 36. Print ---------- */
@media print {
  .nav, .menu, .footer, .cursor, .cursor-dot, .progress, .loader, .btn { display: none !important; }
  body { background: #fff; color: #000; }
}
