/* Majara — majaracapital.com
   Layout concept: a dark Vulcan "galaxy" home where Majara is the centre of gravity and every
   company keeps its own brand; venture pages switch fully into that company's identity and
   return to Majara's ground only for the "Built by Majara" band and the footer. */
:root {
  /* Majara palette (brand kit, hard-coded) */
  --vulcan: #121122; --deluge: #8955A2; --froly: #F37662; --white: #FFFFFF;
  --v-raised: #1D1D2E; --v-raised-2: #242436; --v-hair: #38384B; --v-border: #424256;
  --muted-on-v: #A0A0A7; --muted-on-w: #626463; --panel: #F4F5F6; --hair-w: #E3E2E4;
  --lilac: #B48CCB; --froly-text-w: #C34A39; --deluge-tint: #F3EEF6;
  --ok: #4CC38A; --warn: #F2B33D;
  /* type */
  --f-mj: 'MJ Avenir', 'MJ Fairuz', 'Segoe UI', Tahoma, Arial, sans-serif;
  --fs-body: 1.125rem; --fs-small: 0.9375rem; --fs-h3: 1.3rem;
  --fs-h2: clamp(1.9rem, 1.2rem + 2.6vw, 3.1rem);
  --fs-h1: clamp(2.5rem, 1.3rem + 5vw, 5.4rem);
  --radius: 20px;
  --gutter: max(16px, env(safe-area-inset-left, 0px));
  --gutter-r: max(16px, env(safe-area-inset-right, 0px));
  color-scheme: dark;
}

/* ---------- fonts (self-hosted WOFF2, subset) ---------- */
@font-face { font-family: 'MJ Avenir'; src: url(fonts/MJ-Avenir-400.woff2) format('woff2'); font-weight: 300 400; font-display: swap; }
@font-face { font-family: 'MJ Avenir'; src: url(fonts/MJ-Avenir-500.woff2) format('woff2'); font-weight: 500 600; font-display: swap; }
@font-face { font-family: 'MJ Avenir'; src: url(fonts/MJ-Avenir-800.woff2) format('woff2'); font-weight: 700 800; font-display: swap; }
@font-face { font-family: 'MJ Avenir'; src: url(fonts/MJ-Avenir-900.woff2) format('woff2'); font-weight: 900; font-display: swap; }
@font-face { font-family: 'MJ Fairuz'; src: url(fonts/MJ-Fairuz-300.woff2) format('woff2'); font-weight: 300; font-display: swap; }
@font-face { font-family: 'MJ Fairuz'; src: url(fonts/MJ-Fairuz-400.woff2) format('woff2'); font-weight: 400 500; font-display: swap; }
@font-face { font-family: 'MJ Fairuz'; src: url(fonts/MJ-Fairuz-700.woff2) format('woff2'); font-weight: 600 800; font-display: swap; }
@font-face { font-family: 'MJ Fairuz'; src: url(fonts/MJ-Fairuz-900.woff2) format('woff2'); font-weight: 900; font-display: swap; }
@font-face { font-family: 'Wakil Expo'; src: url(fonts/ExpoArabic.woff2) format('woff2'); font-weight: 400 900; font-display: swap; }
@font-face { font-family: 'Mashraq Rose'; src: url(fonts/RoseRuzaiq.woff2) format('woff2'); font-weight: 400 900; font-display: swap; }

/* ---------- base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; background: var(--vulcan); }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body { margin: 0; background: var(--vulcan); color: var(--white); font-family: var(--f-mj); }
.page { font-family: var(--f-mj); font-size: var(--fs-body); line-height: 1.6; background: var(--vulcan); color: var(--white); min-height: 100vh; overflow-x: clip; }
.page[lang="ar"] { line-height: 1.75; }
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
h1, h2, h3 { margin: 0; font-weight: 900; text-wrap: balance; }
h1 { font-size: var(--fs-h1); line-height: 1.04; letter-spacing: -0.02em; }
h2 { font-size: var(--fs-h2); line-height: 1.12; letter-spacing: -0.01em; }
h3 { font-size: var(--fs-h3); line-height: 1.3; font-weight: 800; }
.page[lang="ar"] h1 { line-height: 1.3; letter-spacing: 0; }
.page[lang="ar"] h2 { line-height: 1.4; letter-spacing: 0; }
.page[lang="ar"] h3 { line-height: 1.5; font-weight: 700; }
p { margin: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }
dl, dd { margin: 0; }
figure { margin: 0; }
.num { font-family: 'MJ Avenir', var(--f-mj); font-variant-numeric: tabular-nums; unicode-bidi: isolate; }
:focus-visible { outline: 3px solid var(--froly); outline-offset: 3px; border-radius: 4px; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; inset-inline-start: 16px; top: -60px; z-index: 50; background: var(--froly); color: var(--vulcan); padding: 10px 16px; border-radius: 8px; font-weight: 800; text-decoration: none; }
.skip:focus { top: calc(12px + env(safe-area-inset-top, 0px)); }
.wrap { width: 100%; max-width: 1240px; margin-inline: auto; padding-left: var(--gutter); padding-right: var(--gutter-r); }
@media (min-width: 720px) { .wrap { padding-left: max(32px, env(safe-area-inset-left, 0px)); padding-right: max(32px, env(safe-area-inset-right, 0px)); } }
section { padding-block: clamp(64px, 9vw, 120px); position: relative; }
.label, .eyebrow { font-size: 0.8125rem; font-weight: 800; letter-spacing: 0.14em; text-transform: uppercase; color: var(--froly); }
.page[lang="ar"] .label, .page[lang="ar"] .eyebrow { letter-spacing: 0; font-size: 0.95rem; font-weight: 700; }
.lede { font-size: clamp(1.1rem, 1rem + 0.4vw, 1.3rem); color: #D9D8E0; max-width: 62ch; }
.sec-head { display: grid; gap: 14px; margin-bottom: clamp(32px, 5vw, 56px); max-width: 760px; }
.sec-head p { color: var(--muted-on-v); }
.sub-h { margin-block: 56px 24px; font-size: 1.5rem; }
.arrow { display: inline-block; transition: transform .2s; }
.page[dir="rtl"] .arrow { transform: scaleX(-1); }

/* bands (one flat field per surface; a section without one sits on Vulcan).
   Neighbouring surfaces, the footer included, never share a field. */
.band-white { background: var(--white); color: var(--vulcan); color-scheme: light; }
.band-white .sec-head p, .band-white .muted { color: var(--muted-on-w); }
.band-white .label, .band-white .eyebrow { color: var(--deluge); }
.band-white .lede { color: #2E2D2D; }
.band-deluge { background: var(--deluge); color: var(--white); }
.band-deluge .sec-head p { color: var(--deluge-tint); }
.band-deluge .label, .band-deluge .eyebrow { color: var(--white); }
.band-froly { background: var(--froly); color: var(--vulcan); color-scheme: light; }

/* buttons */
.btn { display: inline-flex; align-items: center; gap: 10px; min-height: 48px; padding: 12px 22px; border-radius: 999px; font-weight: 800; font-size: 1rem; text-decoration: none; transition: transform .2s, background-color .2s, color .2s; }
.btn-primary { background: var(--froly); color: var(--vulcan); }
.btn-primary:hover { background: #F58D7C; }
.btn-ghost { border: 1.5px solid currentColor; }
.btn-ghost:hover .arrow { transform: translateX(4px); }
.page[dir="rtl"] .btn-ghost:hover .arrow { transform: scaleX(-1) translateX(4px); }

/* ---------- header ---------- */
body::before { content: ""; position: fixed; inset: 0 0 auto; height: env(safe-area-inset-top, 0px); z-index: 10; background: var(--vulcan); }
.mj-header { position: sticky; top: env(safe-area-inset-top, 0px); z-index: 20; background: rgba(18, 17, 34, 0.94); border-bottom: 1px solid var(--v-hair); }
@supports (backdrop-filter: blur(8px)) { .mj-header { background: rgba(18, 17, 34, 0.82); backdrop-filter: blur(10px); } }
.mj-header-in { display: flex; align-items: center; gap: 24px; min-height: 72px; flex-wrap: wrap; }
.mj-logo { display: inline-flex; align-items: center; text-decoration: none; }
.mj-logo-full { width: 240px; height: auto; }
.mj-logo-sym { display: none; width: 44px; }
.mj-header nav { margin-inline-start: auto; }
.mj-header nav ul { display: flex; gap: 4px; }
.mj-header nav a { display: block; padding: 10px 14px; border-radius: 999px; text-decoration: none; font-weight: 500; font-size: 1rem; color: #E7E6EE; }
.mj-header nav a:hover, .mj-header nav a[aria-current="page"] { background: var(--v-raised-2); color: var(--white); }
.lang { display: inline-flex; align-items: center; min-height: 40px; padding: 8px 16px; border: 1px solid var(--v-border); border-radius: 999px; text-decoration: none; font-weight: 800; font-size: .95rem; }
.lang:hover { border-color: var(--froly); }
@media (max-width: 900px) {
  .mj-logo-full { display: none; }
  .mj-logo-sym { display: block; }
  .mj-header-in { gap: 8px 12px; min-height: 64px; padding-block: 8px; }
  .mj-header nav { order: 3; width: 100%; margin: 0; overflow-x: auto; scrollbar-width: none; }
  .mj-header nav ul { gap: 2px; }
  .mj-header nav a { padding: 8px 12px; font-size: .95rem; white-space: nowrap; }
  .mj-header .lang { margin-inline-start: auto; }
}

/* ---------- hero ---------- */
.hero { padding-block: clamp(48px, 7vw, 96px) clamp(56px, 8vw, 110px); overflow: hidden; }
.hero-art { position: absolute; inset: 0; pointer-events: none; }
.hero-art .ribbon { position: absolute; width: clamp(300px, 34vw, 520px); inset-inline-end: -150px; bottom: -110px; }
.hero-art .contour { position: absolute; width: clamp(260px, 30vw, 440px); inset-inline-end: -40px; bottom: -140px; opacity: .9; }
.page[dir="rtl"] .hero-art .ribbon, .page[dir="rtl"] .hero-art .contour { transform: scaleX(-1); }
.hero-in { position: relative; display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); gap: clamp(24px, 4vw, 64px); align-items: center; }
.hero-copy { display: grid; gap: 22px; align-content: center; }
.hero h1 { max-width: 14ch; }
.page[lang="ar"] .hero h1 { max-width: 16ch; font-size: clamp(2.4rem, 1.3rem + 3.6vw, 4.3rem); line-height: 1.35; }
.ctas { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 6px; }
.sectors { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 8px; }
.sectors li { font-size: .875rem; padding: 6px 12px; border-radius: 999px; background: var(--v-raised); border: 1px solid var(--v-hair); color: #D9D8E0; }
@media (max-width: 900px) { .hero-in { grid-template-columns: 1fr; } .galaxy { max-width: 460px; margin-inline: auto; } }

/* galaxy */
.galaxy { position: relative; width: 100%; aspect-ratio: 1; max-width: 600px; justify-self: center; }
.orbits { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.orbits ellipse { fill: none; stroke: rgba(255, 255, 255, 0.32); stroke-width: 1; vector-effect: non-scaling-stroke; }
.core { position: absolute; left: 50%; top: 50%; width: 22%; transform: translate(-50%, -50%); }
.planet { position: absolute; transform: translate(-50%, -50%) scale(var(--s, 1)); z-index: var(--z, 2); text-decoration: none; display: grid; justify-items: center; gap: 6px; transition: transform .25s; will-change: left, top; }
.pl-dot { width: clamp(46px, 9vw, 64px); aspect-ratio: 1; border-radius: 50%; background: var(--v-bg); border: 2px solid var(--v-accent); display: grid; place-items: center; overflow: hidden; }
.pl-img { width: 62%; height: 62%; object-fit: contain; }
.pl-cover { width: 100%; height: 100%; object-fit: cover; }
.t-jahez-academy .pl-dot { background: var(--white); }
.t-mawidy .pl-dot { background: var(--v-ink); }
.planet:hover, .planet:focus-visible { --s: 1.12 !important; z-index: 9 !important; }
@media (max-width: 560px) { .galaxy { width: 88%; } }

/* ---------- numbers ---------- */

/* ---------- portfolio bento ---------- */
.group-h { font-size: 1rem; font-weight: 800; color: var(--muted-on-v); margin-block: 8px 18px; letter-spacing: .02em; }
.band-white .group-h { color: var(--muted-on-w); }
.band-white .t-mawidy { --v-line: #D3CCEB; } /* Mawidy's own ground is near-white: give its card an edge on white */
.bento { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 16px; margin-bottom: 48px; }
.bento:last-child { margin-bottom: 0; }
.bento > .vc { grid-column: span 6; }
.bento > .t-mashraq { grid-column: span 5; }
.bento > .t-lamarya { grid-column: span 7; }
.bento > .t-ecommerce { grid-column: span 12; }
.bento-3 > .vc { grid-column: span 4; }
@media (max-width: 960px) { .bento > .vc, .bento > .t-mashraq, .bento > .t-lamarya { grid-column: span 12; } .bento-3 > .vc { grid-column: span 6; } }
@media (max-width: 640px) { .bento-3 > .vc { grid-column: span 12; } }
.vc { position: relative; display: grid; background: var(--v-bg); color: var(--v-ink); border-radius: var(--radius); overflow: hidden; text-decoration: none; min-height: 100%; outline: 1px solid var(--v-line); outline-offset: -1px; transition: transform .25s ease, outline-color .25s; }
.vc:hover { transform: translateY(-4px); outline: 2px solid var(--v-accent); }
.vc:focus-visible { outline: 3px solid var(--froly); outline-offset: 3px; }
.vc-body { display: grid; gap: 10px; padding: clamp(22px, 3vw, 32px); align-content: start; min-width: 0; }
.vc-top { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 18px; flex-wrap: wrap; }
.vc-logo { height: 40px; width: auto; max-width: 180px; object-fit: contain; object-position: left center; }
.page[dir="rtl"] .vc-logo { object-position: right center; }
.t-mashraq .vc-logo { height: 64px; }
.t-wukala .vc-logo, .t-koon .vc-logo { height: 48px; }
.vc-wordmark { font-family: var(--v-font-display); font-size: 1.5rem; font-weight: 700; color: var(--v-accent-text); }
.vc-name { font-family: var(--f-mj); font-size: clamp(1.4rem, 1.1rem + 1vw, 1.9rem); }
.vc-sector { font-size: .875rem; color: var(--v-muted); font-weight: 500; }
.vc-line { color: var(--v-ink); opacity: .92; max-width: 46ch; }
.vc-metric { margin-top: 10px; padding-top: 14px; border-top: 1px solid var(--v-line); display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap; }
.vc-metric strong { font-family: 'MJ Avenir', var(--f-mj); font-weight: 800; font-size: 1.7rem; color: var(--v-accent-text); line-height: 1.1; font-variant-numeric: tabular-nums; }
.vc-metric > span { font-size: .875rem; color: var(--v-muted); flex: 1 1 160px; }
.vc-go { margin-top: 8px; font-weight: 800; font-size: .9rem; color: var(--v-accent-text); }
.vc:hover .vc-go .arrow { transform: translateX(4px); }
.page[dir="rtl"] .vc:hover .vc-go .arrow { transform: scaleX(-1) translateX(4px); }
.vc-xl { grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr); }
.vc-media { position: relative; min-height: 260px; overflow: hidden; }
.vc-media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.t-wakil .vc-media { display: grid; place-items: center; padding: 28px 16px; }
.t-wakil .vc-media .phone { width: min(72%, 250px); }
.t-wakil .vc-media .phone img { position: static; height: auto; }
@media (max-width: 760px) { .t-wakil .vc-media { padding-top: 0; } .t-wakil .vc-media .phone { width: min(62%, 230px); } }
/* iPhone frame drawn in CSS around an app screenshot: bezel, rim, Dynamic Island, side buttons */
.phone { position: relative; isolation: isolate; display: block; padding: 7px; background: #0B0C10; border-radius: 38px; box-shadow: inset 0 0 0 1.5px #3A3F4B, 0 0 0 1px #000; }
.phone img { display: block; width: 100%; height: auto; border-radius: 31px; }
.phone::before { content: ""; position: absolute; z-index: 1; top: 14px; left: 50%; width: 30%; aspect-ratio: 3.4; transform: translateX(-50%); background: #000; border-radius: 99px; }
.phone::after { content: ""; position: absolute; z-index: -1; inset: 17% -3px auto; height: 26%; background: linear-gradient(#2A2E38 0 0) left 0 / 3px 13% no-repeat, linear-gradient(#2A2E38 0 0) left 45% / 3px 27% no-repeat, linear-gradient(#2A2E38 0 0) left 100% / 3px 27% no-repeat, linear-gradient(#2A2E38 0 0) right 20% / 3px 42% no-repeat; }
.t-wukala .vc-media img { object-fit: contain; padding: 18px; }
.t-jahez-academy .vc-media img { object-fit: contain; }
.vc-duo { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; }
.vc-duo img { position: static; height: 100%; min-height: 260px; }
.t-ecommerce.vc-xl { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
@media (max-width: 760px) { .vc-xl, .t-ecommerce.vc-xl { grid-template-columns: 1fr; } .vc-media { min-height: 240px; } }

/* status chips */
.chip { display: inline-flex; align-items: center; gap: 7px; font-size: .78rem; font-weight: 800; padding: 5px 11px; border-radius: 999px; border: 1px solid currentColor; line-height: 1.3; white-space: nowrap; }
.chip::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: currentColor; flex: none; }
.s-operating::before, .s-sold-out::before { background: var(--ok); }
.s-launching::before, .s-beta::before { background: var(--warn); }
.page[lang="ar"] .chip { font-size: .85rem; font-weight: 700; }

/* ---------- model / platform ---------- */
.cbo { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(20px, 3vw, 40px); counter-reset: step; }
.cbo li { display: grid; gap: 14px; align-content: start; padding-top: 24px; border-top: 3px solid var(--vulcan); }
.cbo h3 { font-size: clamp(2.4rem, 1.6rem + 2.6vw, 4rem); color: var(--deluge); line-height: 1.1; }
.page[lang="ar"] .cbo h3 { line-height: 1.35; font-weight: 900; }
.cbo p { color: var(--muted-on-w); max-width: 38ch; }
.cbo-dark li { border-top-color: var(--white); }
.cbo-dark h3 { color: var(--froly); }
.cbo-dark p { color: var(--muted-on-v); }
.plat { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.plat li { padding: 26px; border-radius: var(--radius); border: 1px solid rgba(255, 255, 255, 0.35); display: grid; gap: 10px; align-content: start; }
.plat p { color: var(--deluge-tint); font-size: 1rem; }
.plat-dark li { border-color: var(--v-border); background: var(--v-raised); }
.plat-dark p { color: var(--muted-on-v); }
@media (max-width: 860px) { .cbo, .plat { grid-template-columns: 1fr; } }

/* ---------- founder teaser (Vulcan on home, Deluge on about: never the field of its neighbours) ---------- */
.ft-in { display: grid; grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr); gap: clamp(28px, 5vw, 72px); align-items: center; }
.ft-photo { position: relative; }
.ft-photo::before { content: ""; position: absolute; inset: 22px -22px -22px 22px; background: var(--deluge); border-radius: var(--radius); }
.page[dir="rtl"] .ft-photo::before { inset: 22px 22px -22px -22px; }
.ft-photo img { position: relative; border-radius: var(--radius); width: 100%; }
.ft-copy { display: grid; gap: 16px; justify-items: start; }
.ft-copy > p:not(.label):not(.ft-title) { color: #D9D8E0; max-width: 60ch; }
.ft-quote { margin: 4px 0 8px; padding-inline-start: 24px; border-inline-start: 3px solid var(--froly); max-width: 56ch; }
.ft-quote p { font-size: 1.3rem; line-height: 1.75; color: var(--white); }
.ft-title { font-weight: 800; color: var(--froly); font-size: 1.1rem; }
.band-deluge .ft-title { color: var(--white); }
.band-deluge .ft-copy > p:not(.label):not(.ft-title) { color: var(--deluge-tint); }
.band-deluge .ft-photo::before { background: var(--froly); }
.band-deluge .ft-quote { border-color: var(--white); }
@media (max-width: 860px) { .ft-in { grid-template-columns: 1fr; } .ft-photo { max-width: 380px; } }

/* ---------- faq ---------- */
.qas { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 48px; }
.qa { padding-block: 22px; border-top: 1px solid var(--hair-w); display: grid; gap: 8px; align-content: start; }
.qa dt { font-weight: 800; font-size: 1.15rem; }
.qa dd { color: var(--muted-on-w); }
@media (max-width: 860px) { .qas { grid-template-columns: 1fr; } }

/* ---------- contact ---------- */
.contact { padding-block: clamp(48px, 6vw, 80px); }
.contact-in { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 24px; }
.contact h2 { font-size: clamp(1.7rem, 1.2rem + 1.8vw, 2.6rem); }
.contact p { max-width: 52ch; color: #3F252F; margin-top: 8px; }
.email-row { display: inline-flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.email { font-weight: 900; font-size: clamp(1.2rem, 1rem + 1vw, 1.7rem); color: var(--vulcan); text-underline-offset: 6px; }
.copy { font: inherit; font-weight: 800; font-size: .9rem; background: var(--vulcan); color: var(--white); border: 0; border-radius: 999px; padding: 10px 18px; cursor: pointer; min-height: 44px; }
.placeholder { font-weight: 800; padding: 12px 18px; border: 2px dashed var(--vulcan); border-radius: 12px; }

/* ---------- footer ---------- */
.mj-footer { padding-block: 64px calc(40px + env(safe-area-inset-bottom, 0px)); border-top: 1px solid var(--v-hair); background: var(--vulcan); color: var(--white); font-family: var(--f-mj); font-size: 1rem; }
.foot-top { display: grid; grid-template-columns: auto 1fr; gap: 40px; align-items: start; padding-bottom: 40px; border-bottom: 1px solid var(--v-hair); }
.foot-def { color: var(--muted-on-v); max-width: 70ch; font-size: .95rem; }
.foot-cols { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 32px; padding-block: 40px; }
.foot-cols h3 { font-size: .85rem; letter-spacing: .12em; text-transform: uppercase; color: var(--froly); margin-bottom: 14px; }
.page[lang="ar"] .foot-cols h3 { letter-spacing: 0; font-size: .95rem; }
.foot-cols ul { display: grid; gap: 8px; }
.foot-cols a { text-decoration: none; color: #E7E6EE; }
.foot-cols a:hover { color: var(--froly); text-decoration: underline; }
.foot-cols address { font-style: normal; color: var(--muted-on-v); margin-bottom: 16px; }
.foot-legal { color: var(--muted-on-v); font-size: .875rem; display: flex; flex-wrap: wrap; gap: 6px 12px; }
.tagline { font-family: 'MJ Avenir', var(--f-mj); font-weight: 500; color: var(--lilac); }
@media (max-width: 760px) { .foot-top { grid-template-columns: 1fr; } }

/* ---------- inner pages (about / founder / 404) ---------- */
.page-hero { overflow: hidden; padding-block: clamp(40px, 6vw, 80px) clamp(64px, 8vw, 110px); }
.page-hero .wrap { display: grid; gap: 20px; position: relative; z-index: 1; }
.page-hero h1 { font-size: clamp(2.2rem, 1.3rem + 3.6vw, 4.2rem); max-width: 20ch; }
.ribbon-about { position: absolute; width: clamp(220px, 26vw, 380px); inset-inline-end: -90px; top: -70px; }
.page[dir="rtl"] .ribbon-about { transform: scaleX(-1); }
.crumbs ol { display: flex; flex-wrap: wrap; gap: 6px; font-size: .9rem; color: var(--muted-on-v); }
.crumbs li + li::before { content: "/"; margin-inline-end: 6px; opacity: .6; }
.crumbs a { text-decoration: none; }
.crumbs a:hover { text-decoration: underline; }
.about-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(32px, 5vw, 72px); }
.about-grid h2 { margin-bottom: 24px; font-size: clamp(1.6rem, 1.2rem + 1.4vw, 2.3rem); }
.facts > div { display: grid; grid-template-columns: minmax(120px, 0.45fr) 1fr; gap: 16px; padding-block: 14px; border-top: 1px solid var(--hair-w); }
.facts dt { color: var(--muted-on-w); font-size: .95rem; }
.facts dd { font-weight: 500; }
.facts a { color: var(--deluge); font-weight: 800; }
.about-story { display: grid; gap: 18px; align-content: start; }
.about-story p { color: #2E2D2D; }
@media (max-width: 860px) { .about-grid { grid-template-columns: 1fr; } }
.table-wrap { overflow-x: auto; border: 1px solid var(--hair-w); border-radius: 14px; }
.vt { width: 100%; border-collapse: collapse; min-width: 560px; }
.vt th, .vt td { text-align: start; padding: 14px 18px; border-bottom: 1px solid var(--hair-w); vertical-align: middle; }
.vt thead th { font-size: .85rem; color: var(--muted-on-w); background: var(--panel); }
.vt tbody th a { color: var(--deluge); font-weight: 800; text-decoration: none; }
.vt tbody th a:hover { text-decoration: underline; }
.vt .chip { color: var(--vulcan); }
.vt tr:last-child th, .vt tr:last-child td { border-bottom: 0; }

/* founder page */
.person-hero { padding-block: clamp(32px, 5vw, 72px) clamp(56px, 7vw, 96px); }
.ph-in { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr); gap: clamp(32px, 5vw, 72px); align-items: center; }
.ph-copy { display: grid; gap: 18px; }
.ph-copy h1 { font-size: clamp(2.6rem, 1.4rem + 4.6vw, 5rem); display: grid; gap: 6px; }
.alt-name { justify-self: start; font-size: 0.42em; font-weight: 500; color: var(--lilac); letter-spacing: 0; }
.ph-full { color: var(--muted-on-v); font-size: var(--fs-small); margin-top: -10px; }
.ph-photo { position: relative; }
.ph-photo::before { content: ""; position: absolute; width: 70%; aspect-ratio: 1; border-radius: 50%; background: var(--froly); inset-inline-end: -12%; top: -8%; }
.ph-photo img { position: relative; border-radius: 28px; width: 100%; }
@media (max-width: 860px) { .ph-in { grid-template-columns: 1fr; } .ph-photo { max-width: 420px; order: -1; margin-inline: auto 0; } .ph-photo::before { inset-inline-end: -6%; } }
.prose { max-width: 820px; display: grid; gap: 18px; }
.prose p { font-size: 1.15rem; color: #2E2D2D; }
.career li { display: grid; grid-template-columns: 170px 1fr; gap: 24px; padding-block: 22px; border-top: 1px solid var(--hair-w); }
.career .y { font-family: 'MJ Avenir', var(--f-mj); font-weight: 800; color: var(--deluge); font-size: 1.1rem; }
.career h3 { font-size: 1.2rem; }
.career .org { font-weight: 800; color: var(--muted-on-w); margin-block: 2px 6px; }
.career p:not(.org) { color: #2E2D2D; max-width: 70ch; }
.band-white h2 + .career { margin-top: 28px; }
.cv-cols { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 40px; margin-top: 64px; }
.cv-cols h2 { font-size: 1.4rem; margin-bottom: 14px; }
.cv-cols p, .cv-cols li { color: #2E2D2D; font-size: 1rem; }
.research li { display: grid; gap: 2px; padding-block: 10px; border-top: 1px solid var(--hair-w); }
.research cite { font-style: normal; font-weight: 800; }
.research span { color: var(--muted-on-w); font-size: .9rem; }
.dots li { padding-block: 8px; border-top: 1px solid var(--hair-w); }
@media (max-width: 860px) { .cv-cols { grid-template-columns: 1fr; } .career li { grid-template-columns: 1fr; gap: 6px; } }
.profiles { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 20px; }
.profiles a { display: inline-block; padding: 10px 18px; border: 1px solid var(--v-border); border-radius: 999px; text-decoration: none; font-weight: 800; }
.band-deluge .profiles a { border-color: rgba(255, 255, 255, 0.6); }
.band-deluge .profiles a:hover { border-color: var(--white); }
.nf { min-height: 50vh; }

/* ===================================================================== venture pages */
/* each theme sets the company's own palette and type; Majara chrome stays Majara */
.t-wukala { --v-bg: #060A1E; --v-surface: #0E1533; --v-ink: #FFFFFF; --v-muted: #AEB9F5; --v-accent: #7B93FF; --v-accent-text: #8FA2FF; --v-accent-ink: #060A1E; --v-line: #1E2754; --v-radius: 6px;
  --v-font: 'IBM Plex Sans Arabic', 'Segoe UI', sans-serif; --v-font-display: 'IBM Plex Sans Arabic', 'Segoe UI', sans-serif; --v-display-weight: 700; }
.t-wakil { --v-bg: #07101F; --v-surface: #0F1A2D; --v-ink: #E8EBF0; --v-muted: #A1B4CF; --v-accent: #3F8CFE; --v-accent-text: #6AA6FF; --v-accent-ink: #07101F; --v-line: #1C2A44; --v-radius: 18px;
  --v-font: 'Noto Sans', 'Noto Sans Arabic', 'Segoe UI', sans-serif; --v-font-display: 'Wakil Expo', 'Noto Sans Arabic', sans-serif; --v-display-weight: 700; }
.t-mashraq { --v-bg: #003642; --v-surface: #0A4652; --v-ink: #FFF9F0; --v-muted: #B9C6C4; --v-accent: #FEB664; --v-accent-text: #FEB664; --v-accent-ink: #003642; --v-line: #1F5A63; --v-radius: 0px;
  --v-font: 'Almarai', 'Segoe UI', sans-serif; --v-font-display: 'Almarai', sans-serif; --v-display-weight: 800; }
.t-lamarya { --v-bg: #222F5D; --v-surface: #2A386B; --v-ink: #FFFFFF; --v-muted: #C9CEDF; --v-accent: #B59276; --v-accent-text: #D2B79F; --v-accent-ink: #222F5D; --v-line: #3A4778; --v-radius: 0px;
  --v-font: 'Jost', 'Noto Kufi Arabic', 'Segoe UI', sans-serif; --v-font-display: 'Jost', 'Noto Kufi Arabic', sans-serif; --v-display-weight: 300; }
.t-jahez-academy { --v-bg: #2F55D4; --v-surface: #2448BE; --v-ink: #FFFFFF; --v-muted: #DCE4FF; --v-accent: #FCBE50; --v-accent-text: #FFD88A; --v-accent-ink: #121F4D; --v-line: #4A6BE0; --v-radius: 26px;
  --v-font: 'Baloo Bhaijaan 2', 'Segoe UI', sans-serif; --v-font-display: 'Baloo Bhaijaan 2', sans-serif; --v-display-weight: 800; }
.t-mawidy { --v-bg: #F7F6FB; --v-surface: #FFFFFF; --v-ink: #010180; --v-muted: #5D576B; --v-accent: #6B3AFD; --v-accent-text: #5A2BE8; --v-accent-ink: #FFFFFF; --v-line: #E4E0F2; --v-radius: 22px;
  --v-font: 'Readex Pro', 'Segoe UI', sans-serif; --v-font-display: 'Readex Pro', sans-serif; --v-display-weight: 700; }
.t-koon { --v-bg: #1A0145; --v-surface: #2A0D5E; --v-ink: #FFFFFF; --v-muted: #C2B6E0; --v-accent: #29ABE2; --v-accent-text: #4CC0F0; --v-accent-ink: #1A0145; --v-line: #3B1878; --v-radius: 999px;
  --v-font: 'Alexandria', 'Segoe UI', sans-serif; --v-font-display: 'Alexandria', sans-serif; --v-display-weight: 800; }
.t-ecommerce { --v-bg: #16110E; --v-surface: #221A15; --v-ink: #F2E8DA; --v-muted: #BCAD99; --v-accent: #C9A46A; --v-accent-text: #D4B07A; --v-accent-ink: #16110E; --v-line: #3A2E25; --v-radius: 2px;
  --v-font: 'El Messiri', 'Segoe UI', sans-serif; --v-font-display: 'El Messiri', sans-serif; --v-display-weight: 700; }
.t-mawidy { color-scheme: light; }

.page.vp { background: var(--v-bg); color: var(--v-ink); font-family: var(--v-font); }
.page.vp[lang="ar"] { line-height: 1.8; }
.vp .num { font-family: inherit; }
.mj-bar { background: var(--vulcan); color: var(--white); font-family: var(--f-mj); position: sticky; top: env(safe-area-inset-top, 0px); z-index: 20; border-bottom: 1px solid var(--v-hair); }
.mj-bar-in { display: flex; align-items: center; gap: 16px; min-height: 56px; flex-wrap: wrap; }
.mj-bar-home { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; font-weight: 800; font-size: .95rem; }
.mj-bar .crumbs { margin-inline-start: auto; }
.mj-bar .lang { min-height: 36px; padding: 6px 14px; font-size: .9rem; }
@media (max-width: 640px) { .mj-bar .crumbs { display: none; } .mj-bar .lang { margin-inline-start: auto; } }

.v-hero { padding-block: clamp(40px, 6vw, 88px); overflow: hidden; }
.v-hero-in { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr); gap: clamp(28px, 5vw, 72px); align-items: center; }
.v-copy { display: grid; gap: 20px; justify-items: start; }
.v-logo { height: 56px; width: auto; max-width: 260px; object-fit: contain; }
.v-wordmark { font-family: var(--v-font-display); font-size: 2rem; font-weight: var(--v-display-weight); color: var(--v-accent-text); }
.v-eyebrow { font-weight: 700; font-size: .95rem; color: var(--v-accent-text); }
.vp h1, .vp h2, .vp h3 { font-family: var(--v-font-display); font-weight: var(--v-display-weight); }
.vp h1 { font-size: clamp(2.4rem, 1.3rem + 4.4vw, 4.8rem); }
.v-lede { font-size: clamp(1.1rem, 1rem + .5vw, 1.35rem); color: var(--v-muted); max-width: 54ch; }
.v-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.v-chips li { font-size: .875rem; font-weight: 600; padding: 6px 12px; border: 1px solid var(--v-line); border-radius: 999px; background: var(--v-surface); }
.v-btn { display: inline-flex; gap: 8px; align-items: center; min-height: 50px; padding: 12px 24px; background: var(--v-accent); color: var(--v-accent-ink); font-weight: 800; text-decoration: none; border-radius: max(min(var(--v-radius), 999px), 4px); }
.t-lamarya .v-btn { background: var(--v-accent); color: var(--v-accent-ink); }
.v-btn:hover { filter: brightness(1.06); }
.v-media { position: relative; display: grid; place-items: center; }
.v-media img { border-radius: var(--v-radius); }

.v-metrics { padding-block: clamp(36px, 5vw, 64px); border-block: 1px solid var(--v-line); background: var(--v-surface); }
.v-metrics dl { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 28px 40px; }
.v-metrics dt { font-family: var(--v-font-display); font-weight: var(--v-display-weight); font-size: clamp(2.2rem, 1.6rem + 2vw, 3.4rem); line-height: 1.1; color: var(--v-accent-text); font-variant-numeric: tabular-nums; }
.v-metrics dd { color: var(--v-muted); margin-top: 6px; max-width: 34ch; }
.v-note { margin-top: 28px; font-size: .85rem; color: var(--v-muted); }
.v-sec h2 { font-size: clamp(1.8rem, 1.3rem + 1.8vw, 2.8rem); margin-bottom: 32px; max-width: 26ch; }
.v-feats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.v-feats li { background: var(--v-surface); border: 1px solid var(--v-line); border-radius: min(var(--v-radius), 28px); padding: 26px; display: grid; gap: 10px; align-content: start; }
.v-feats h3 { font-size: 1.25rem; }
.v-feats p { color: var(--v-muted); font-size: 1rem; }
@media (max-width: 1000px) { .v-feats { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) { .v-feats { grid-template-columns: 1fr; } }
.v-sec-alt { background: var(--v-surface); }
.v-steps { counter-reset: s; display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 16px; }
.v-steps li { counter-increment: s; display: grid; align-content: start; gap: 12px; padding: 24px; border-top: 3px solid var(--v-accent); background: var(--v-bg); font-size: 1.05rem; }
.v-steps li::before { content: counter(s, decimal-leading-zero); font-weight: 800; color: var(--v-accent-text); font-size: .9rem; font-family: var(--v-font-display); }
.v-gallery { padding-block: 0 clamp(48px, 6vw, 88px); }
.v-gallery img { width: 100%; }
.v-gallery figcaption { margin-top: 12px; font-size: .9rem; color: var(--v-muted); }

.built-by { font-family: var(--f-mj); }
.built-by h2 { font-family: var(--f-mj) !important; font-weight: 900 !important; font-size: clamp(1.7rem, 1.2rem + 1.6vw, 2.5rem); margin-block: 8px 14px; }
.bb-in { display: grid; grid-template-columns: auto 1fr; gap: clamp(24px, 4vw, 56px); align-items: start; }
.bb-in > div { display: grid; gap: 12px; justify-items: start; }
.bb-in p:not(.label) { color: var(--deluge-tint); max-width: 66ch; }
.bb-sym { width: clamp(80px, 10vw, 140px); }
.bm-founder a { color: var(--white); font-weight: 800; }
@media (max-width: 640px) { .bb-in { grid-template-columns: 1fr; } }
.more { font-family: var(--f-mj); }
.more h2 { font-size: 1.3rem; margin-bottom: 20px; color: var(--muted-on-w); font-family: var(--f-mj) !important; }
.minis { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 12px; }
.mini { display: grid; gap: 4px; padding: 18px 20px; border-radius: 14px; background: var(--v-bg); color: var(--v-ink); text-decoration: none; outline: 1px solid var(--v-line); outline-offset: -1px; transition: transform .2s; }
.mini:hover { transform: translateY(-3px); outline: 2px solid var(--v-accent); }
.mini strong { font-size: 1.05rem; }
.mini span { font-size: .85rem; color: var(--v-muted); }

/* --- per-company hero treatments --- */
.vp.t-wukala .v-hero { background-image: radial-gradient(rgba(123, 147, 255, 0.22) 1px, transparent 1.6px); background-size: 14px 14px; }
.v-media-wukala img { max-width: 520px; width: 100%; }
.vp.t-wukala .v-logo { height: 72px; }
.v-media-wakil { background: var(--v-surface); border: 1px solid var(--v-line); border-radius: 32px; padding: 32px 24px 0; overflow: hidden; max-height: 600px; align-items: start; }
.v-media-wakil img { max-width: 300px; border-radius: 30px 30px 0 0; }
.v-media-mashraq { min-height: 420px; background: #0A4652; border: 1px solid var(--v-line); }
.mq-pattern { position: absolute; inset: 0; background-image: url(img/mashraq-glyph.webp); background-size: 32px 48px; opacity: .14; }
.v-media-mashraq img { position: relative; max-width: 78%; border-radius: 0; }
.page.t-mashraq[lang="ar"] h1 { font-family: 'Mashraq Rose', 'Almarai', sans-serif; font-weight: 700; line-height: 1.45; }
.t-lamarya .v-hero-in { grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr); }
.page.t-lamarya[lang="en"] h1 { text-transform: uppercase; letter-spacing: .06em; font-size: clamp(2rem, 1.2rem + 3.4vw, 3.9rem); line-height: 1.12; }
.page.t-lamarya[lang="ar"] h1 { font-family: 'Noto Kufi Arabic', sans-serif; font-weight: 300; line-height: 1.5; }
.v-media-lamarya img { border-radius: 0; }
.t-lamarya .v-steps li { background: var(--v-surface); }
.vp.t-jahez-academy h1 { font-size: clamp(3.4rem, 2rem + 7vw, 7.5rem); line-height: 1; }
.page.vp.t-jahez-academy[lang="ar"] h1 { line-height: 1.3; }
.v-media-jahez-academy img { border-radius: 0; }
.v-media-mawidy::before { content: ""; position: absolute; width: 78%; aspect-ratio: 1; border-radius: 50%; background: #00E9B1; opacity: .45; }
.v-media-mawidy img { position: relative; max-width: 460px; width: 100%; border-radius: 0; }
.v-media-koon { min-height: 440px; }
.v-media-koon img { width: 46%; max-width: 230px; border-radius: 0; }
.koon-orbit li { position: absolute; left: 50%; top: 50%; --a: calc(var(--i) * 60deg - 90deg); transform: translate(-50%, -50%) rotate(var(--a)) translate(min(36vw, 200px)) rotate(calc(-1 * var(--a))); padding: 8px 14px; border-radius: 999px; background: var(--v-surface); border: 1px solid var(--v-accent); font-size: .875rem; font-weight: 600; white-space: nowrap; }
.koon-orbit li:last-child { background: var(--v-accent); color: var(--v-accent-ink); }
@media (max-width: 520px) { .v-media-koon { min-height: 340px; } .koon-orbit li { font-size: .75rem; padding: 6px 10px; transform: translate(-50%, -50%) rotate(var(--a)) translate(130px) rotate(calc(-1 * var(--a))); } }
.v-media-ecommerce { grid-template-columns: 1fr 1fr; gap: 14px; align-items: start; }
.v-media-ecommerce figure:last-child { margin-top: 48px; }
.v-media-ecommerce img { border-radius: var(--v-radius); }
.v-media-ecommerce figcaption { display: grid; gap: 2px; margin-top: 12px; }
.v-media-ecommerce figcaption span { font-size: .875rem; color: var(--v-muted); }
@media (max-width: 860px) { .v-hero-in, .t-lamarya .v-hero-in { grid-template-columns: 1fr; } .v-media-wakil { max-height: 460px; } }

@media (prefers-reduced-motion: reduce) { *, *::before, *::after { transition: none !important; animation: none !important; } }

.v-points li::before { content: none; }
.v-next h2 { margin-bottom: 12px; }
.vp.t-mashraq .v-copy .v-logo { display: none; }
.mini:focus-visible { outline: 3px solid var(--froly); outline-offset: 3px; }
.band-froly :focus-visible { outline-color: var(--vulcan); }
.band-white :focus-visible { outline-color: var(--deluge); }
.band-deluge :focus-visible { outline-color: var(--white); }
.v-cap { margin-top: 10px; font-size: .8rem; color: var(--v-muted); text-align: center; padding-bottom: 12px; }
