/* =========================================================
   SafaQat — company profile site
   Same identity as the platform: navy · gold · cream, Readex Pro
   ========================================================= */
:root {
  --navy-900: #081a36; --navy-800: #0e2a56; --navy-700: #143a74; --navy: #1a478c; --navy-100: #e6edf8;
  --gold: #d4af37; --gold-600: #b8932a; --gold-300: #e8cd72; --gold-100: #f7ecc6;
  --cream: #fdf6e3; --ink: #13213a; --muted: #5d6b82; --line: #e8e2cf; --red: #d62b1e;
  --radius: 18px; --radius-lg: 24px;
  --shadow-sm: 0 2px 8px rgba(14,42,86,.06);
  --shadow: 0 14px 40px -12px rgba(14,42,86,.22);
  --shadow-lg: 0 30px 80px -24px rgba(8,26,54,.45);
  --ease: cubic-bezier(.22, 1, .36, 1);
  --header-h: 84px;
  --lattice: url("data:image/svg+xml,%3Csvg%20xmlns='http://www.w3.org/2000/svg'%20width='80'%20height='80'%20viewBox='0%200%2080%2080'%3E%3Cpath%20fill='none'%20stroke='%23D9C08A'%20stroke-width='0.9'%20stroke-linejoin='round'%20d='M62.0,40.0%20L40.0,62.0%20L18.0,40.0%20L40.0,18.0%20Z%20M55.6,55.6%20L24.4,55.6%20L24.4,24.4%20L55.6,24.4%20Z%20M52.6,45.2%20L45.2,52.6%20L34.8,52.6%20L27.4,45.2%20L27.4,34.8%20L34.8,27.4%20L45.2,27.4%20L52.6,34.8%20Z%20M11.0,0.0%20L0.0,11.0%20L-11.0,0.0%20L0.0,-11.0%20Z%20M7.8,7.8%20L-7.8,7.8%20L-7.8,-7.8%20L7.8,-7.8%20Z%20M91.0,0.0%20L80.0,11.0%20L69.0,0.0%20L80.0,-11.0%20Z%20M87.8,7.8%20L72.2,7.8%20L72.2,-7.8%20L87.8,-7.8%20Z%20M11.0,80.0%20L0.0,91.0%20L-11.0,80.0%20L0.0,69.0%20Z%20M7.8,87.8%20L-7.8,87.8%20L-7.8,72.2%20L7.8,72.2%20Z%20M91.0,80.0%20L80.0,91.0%20L69.0,80.0%20L80.0,69.0%20Z%20M87.8,87.8%20L72.2,87.8%20L72.2,72.2%20L87.8,72.2%20Z%20M62.0,40.0%20L80.0,40.0%20M18.0,40.0%20L0.0,40.0%20M40.0,62.0%20L40.0,80.0%20M40.0,18.0%20L40.0,0.0%20M55.6,55.6%20L72.2,72.2%20M24.4,55.6%20L7.8,72.2%20M24.4,24.4%20L7.8,7.8%20M55.6,24.4%20L72.2,7.8%20M11.0,0.0%20L34.0,0.0%20M69.0,0.0%20L46.0,0.0%20M11.0,80.0%20L34.0,80.0%20M69.0,80.0%20L46.0,80.0%20M0.0,11.0%20L0.0,34.0%20M0.0,69.0%20L0.0,46.0%20M80.0,11.0%20L80.0,34.0%20M80.0,69.0%20L80.0,46.0'/%3E%3C/svg%3E");
}
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 80px; }
body { margin: 0; font-family: "Readex Pro", system-ui, sans-serif; color: var(--ink); background: #fff; line-height: 1.75; overflow-x: hidden; -webkit-font-smoothing: antialiased; }
img, video { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
svg { width: 1em; height: 1em; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; flex-shrink: 0; }
::selection { background: var(--gold); color: var(--navy-900); }
:focus-visible { outline: 3px solid var(--gold); outline-offset: 3px; border-radius: 6px; }
.container { width: min(1240px, 100% - 32px); margin-inline: auto; }
.skip { position: fixed; top: -60px; inset-inline-start: 16px; z-index: 999; background: var(--gold); color: var(--navy-900); padding: 10px 16px; border-radius: 8px; }
.skip:focus { top: 16px; }
.progress { position: fixed; top: 0; inset-inline: 0; height: 3px; z-index: 200; background: linear-gradient(90deg, var(--gold-300), var(--gold)); transform: scaleX(0); transform-origin: right; }
[dir="ltr"] .progress { transform-origin: left; }

/* ---------- buttons ---------- */
.btn { --bg: var(--navy); --fg: #fff; position: relative; overflow: hidden; isolation: isolate; display: inline-flex; align-items: center; justify-content: center; gap: 10px; padding: 13px 26px; border-radius: 999px; background: var(--bg); color: var(--fg); font-weight: 600; white-space: nowrap; transition: transform .35s var(--ease), box-shadow .35s; }
.btn::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(110deg, transparent 30%, rgba(255,255,255,.45) 50%, transparent 70%); transform: translateX(120%); transition: transform .8s var(--ease); }
.btn:hover::after { transform: translateX(-120%); }
.btn:hover { transform: translateY(-2px); }
.btn svg { font-size: 1.15em; transition: transform .35s var(--ease); }
.btn:hover .arrow { transform: translateX(-4px); }
[dir="ltr"] .arrow { transform: scaleX(-1); }
[dir="ltr"] .btn:hover .arrow { transform: scaleX(-1) translateX(-4px); }
.btn--sm { padding: 10px 20px; font-size: .9rem; }
.btn--lg { padding: 16px 32px; font-size: 1.1rem; }
.btn--block { width: 100%; }
.btn--gold { --bg: linear-gradient(135deg, var(--gold-300), var(--gold) 55%, var(--gold-600)); --fg: var(--navy-900); box-shadow: 0 10px 28px -10px rgba(212,175,55,.8); }
.btn--glass { --bg: rgba(255,255,255,.1); border: 1.5px solid rgba(255,255,255,.55); backdrop-filter: blur(8px); }

/* ---------- header ---------- */
.header { position: fixed; top: 0; inset-inline: 0; z-index: 100; color: #fff; transition: background .4s, box-shadow .4s, transform .4s var(--ease); }
.header::before { content: ""; position: absolute; inset: 0 0 -40px; z-index: -1; background: linear-gradient(180deg, rgba(8,26,54,.7), transparent); pointer-events: none; transition: opacity .4s; }
.header.is-scrolled { background: rgba(10,31,64,.92); backdrop-filter: blur(14px); box-shadow: 0 10px 30px -12px rgba(0,0,0,.45); }
.header.is-scrolled::before { opacity: 0; }
.header.is-hidden { transform: translateY(-100%); }
.header__inner { display: flex; align-items: center; justify-content: space-between; gap: 20px; min-height: var(--header-h); transition: min-height .4s var(--ease); }
.header.is-scrolled .header__inner { min-height: 68px; }
.brand { display: flex; align-items: center; gap: 12px; flex-shrink: 0; }
.brand__logo { width: 52px; height: 52px; display: grid; place-items: center; border-radius: 12px; background: var(--cream); box-shadow: inset 0 0 0 1.5px rgba(212,175,55,.55), 0 8px 20px -10px rgba(0,0,0,.45); transition: width .4s, height .4s; }
.header.is-scrolled .brand__logo { width: 44px; height: 44px; }
.brand__logo img { width: 84%; }
.brand__text { display: flex; flex-direction: column; line-height: 1.2; }
.brand__text strong { font-size: 1.45rem; }
.brand__text small { margin-top: 2px; font-size: .8rem; color: var(--gold-300); font-weight: 500; }
.nav { display: flex; gap: 2px; }
.nav__link { position: relative; display: inline-flex; align-items: center; min-height: 44px; padding: 0 13px; border-radius: 12px; font-weight: 500; color: rgba(255,255,255,.86); white-space: nowrap; transition: color .25s, background .3s; }
.nav__link::after { content: ""; position: absolute; bottom: 6px; inset-inline: 38%; height: 2px; border-radius: 2px; background: var(--gold); transform: scaleX(0); transition: transform .35s var(--ease); }
.nav__link:hover { color: #fff; }
.nav__link:hover::after, .nav__link.is-active::after { transform: scaleX(1); }
.nav__link.is-active { color: #fff; background: rgba(255,255,255,.1); }
.header__cta { display: flex; align-items: center; gap: 10px; }
.tool { display: inline-flex; align-items: center; gap: 5px; height: 40px; padding: 0 10px; border-radius: 12px; font-size: .8rem; font-weight: 600; color: rgba(255,255,255,.85); transition: background .25s; }
.tool svg { font-size: 1.1rem; }
.tool:hover { background: rgba(255,255,255,.12); color: #fff; }
.burger { display: none; position: relative; width: 44px; height: 44px; }
.burger span { position: absolute; inset-inline: 11px; height: 2px; background: currentColor; border-radius: 2px; transition: transform .35s var(--ease), opacity .2s; }
.burger span:nth-child(1) { top: 15px; } .burger span:nth-child(2) { top: 21px; } .burger span:nth-child(3) { top: 27px; }
.burger[aria-expanded="true"] span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.burger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.burger[aria-expanded="true"] span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

/* ---------- hero ---------- */
.hero { position: relative; min-height: calc(100svh + 150px); display: grid; align-items: center; overflow: hidden; color: #fff; isolation: isolate; background: var(--navy-900); }
.hero__video { position: absolute; inset: 0; z-index: -2; width: 100%; height: 100%; object-fit: cover; transform: scale(3.3); transform-origin: 50% 49.8%; }
.hero__shade { position: absolute; inset: 0; z-index: -1; background: linear-gradient(270deg, rgba(8,26,54,.95) 0%, rgba(14,42,86,.82) 45%, rgba(26,71,140,.55) 75%, rgba(184,147,42,.55) 100%); }
[dir="ltr"] .hero__shade { transform: scaleX(-1); }
.hero__content { padding: calc(var(--header-h) + 30px) 0 200px; max-width: 1240px; }
@keyframes ping { 0% { box-shadow: 0 0 0 0 rgba(212,175,55,.7); } 70%, 100% { box-shadow: 0 0 0 10px rgba(212,175,55,0); } }
.hero__title { margin: 20px 0 16px; max-width: 760px; font-size: clamp(2.2rem, 5.2vw, 4rem); line-height: 1.25; text-shadow: 0 10px 40px rgba(0,0,0,.35); }
.hero__lead { max-width: 640px; margin: 0; font-size: clamp(1rem, 1.6vw, 1.15rem); color: rgba(255,255,255,.86); font-weight: 300; }
.hero__actions { display: flex; gap: 14px; flex-wrap: wrap; margin-top: 32px; }
.hero__facts { display: flex; flex-wrap: wrap; gap: 14px 40px; margin: 48px 0 0; padding: 0; list-style: none; }
.hero__facts li { display: grid; padding-inline-start: 16px; border-inline-start: 2px solid var(--gold); }
.hero__facts strong { font-size: 2rem; line-height: 1.2; color: var(--gold-300); font-variant-numeric: tabular-nums; }
.hero__facts span { font-size: .9rem; color: rgba(255,255,255,.75); }
.hero__wave { position: absolute; bottom: -1px; left: -2px; width: calc(100% + 4px); height: clamp(80px, 11vw, 160px); }
.hero__wave .w1 { fill: var(--gold); opacity: .55; }
.hero__wave .w2 { fill: #fff; }

/* lattice under the wave (same treatment as the platform) */
.hero::after { content: ""; position: absolute; bottom: -1px; left: -2px; z-index: 2; width: calc(100% + 4px); height: clamp(80px, 11vw, 160px); pointer-events: none; background: var(--lattice) center bottom / 80px repeat; opacity: .38;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1440 160' preserveAspectRatio='none'%3E%3Cpath d='M0,122 C260,158 560,52 900,38 C1160,28 1330,68 1440,108 L1440,160 L0,160 Z'/%3E%3C/svg%3E") 0 0 / 100% 100% no-repeat;
          mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1440 160' preserveAspectRatio='none'%3E%3Cpath d='M0,122 C260,158 560,52 900,38 C1160,28 1330,68 1440,108 L1440,160 L0,160 Z'/%3E%3C/svg%3E") 0 0 / 100% 100% no-repeat; }
.lattice-zone { position: relative; }
.lattice-zone::before { content: ""; position: absolute; top: 0; inset-inline: 0; height: 240px; background: var(--lattice) center top / 80px; opacity: .38; -webkit-mask-image: linear-gradient(#000, rgba(0,0,0,.6) 50%, transparent); mask-image: linear-gradient(#000, rgba(0,0,0,.6) 50%, transparent); pointer-events: none; }

/* ---------- partners ---------- */
.partners { padding: 40px 0 20px; }
.partners > * { position: relative; }
.label { display: flex; align-items: center; gap: 16px; max-width: 560px; margin: 0 auto 12px; color: var(--gold-600); font-weight: 600; white-space: nowrap; }
.label::before, .label::after { content: ""; flex: 1; height: 1px; background: linear-gradient(90deg, transparent, rgba(212,175,55,.7)); }
.label::after { transform: scaleX(-1); }
.marquee { direction: ltr; overflow: hidden; padding: 12px 0; -webkit-mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent); mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent); }
.marquee__track { display: flex; gap: 18px; width: max-content; animation: marquee var(--dur, 40s) linear infinite; }
@keyframes marquee { to { transform: translateX(-50%); } }
.partner { display: grid; place-items: center; height: 84px; min-width: 170px; padding: 10px 22px; border-radius: 18px; background: #fff; border: 1px solid rgba(212,175,55,.25); box-shadow: 0 6px 18px -12px rgba(14,42,86,.35); }
.partner img { max-height: 56px; max-width: 150px; object-fit: contain; }

/* ---------- sections ---------- */
.section { padding: 96px 0; }
.section--cream { background: linear-gradient(180deg, #fff, var(--cream)); }
.head { max-width: 720px; margin: 0 auto 44px; text-align: center; }
.head h2 { margin: 8px 0 10px; font-size: clamp(1.8rem, 3.4vw, 2.6rem); line-height: 1.3; color: var(--navy-800); }
.head p { margin: 0; color: var(--muted); font-size: 1.1rem; }
.head--light h2 { color: #fff; } .head--light p { color: rgba(255,255,255,.78); }

/* ---------- about: story row + values row ---------- */
.about { display: grid; grid-template-columns: 1.05fr .95fr; gap: 64px; align-items: center; }
.about__text h2 { margin: 10px 0 16px; font-size: clamp(1.7rem, 3vw, 2.5rem); line-height: 1.35; color: var(--navy-800); text-wrap: balance; }
.about__lead { margin: 0 0 28px; max-width: 560px; color: var(--muted); font-size: 1.1rem; }
.journey { position: relative; display: grid; gap: 16px; margin: 0 0 30px; padding: 0; list-style: none; }
.journey::before { content: ""; position: absolute; top: 12px; bottom: 12px; inset-inline-start: 31px; width: 2px; background: linear-gradient(var(--gold), var(--line)); }
.journey li { position: relative; display: flex; align-items: center; gap: 16px; }
.journey b { position: relative; z-index: 1; flex-shrink: 0; width: 64px; padding: 5px 0; border-radius: 999px; text-align: center; font-size: .9rem; color: var(--navy-900); background: linear-gradient(135deg, var(--gold-300), var(--gold)); box-shadow: 0 0 0 5px #fff; }
.journey span { color: var(--ink); font-weight: 500; }
.btn--navy { --bg: linear-gradient(135deg, var(--navy), var(--navy-800)); box-shadow: 0 10px 26px -12px rgba(26,71,140,.8); }
.about__media { position: relative; margin: 0; }
.about__media > img { width: 100%; aspect-ratio: 5 / 4; object-fit: cover; object-position: center 30%; border-radius: var(--radius-lg); box-shadow: var(--shadow-lg); }
.about__media::before { content: ""; position: absolute; inset: 18px -18px -18px 18px; z-index: -1; border-radius: var(--radius-lg); border: 2px solid var(--gold); opacity: .55; }
[dir="rtl"] .about__media::before { inset: 18px 18px -18px -18px; }
.about__badge { position: absolute; top: 24px; inset-inline-start: -22px; display: grid; padding: 14px 20px; border-radius: 18px; background: linear-gradient(135deg, var(--navy), var(--navy-800)); color: #fff; box-shadow: var(--shadow-lg); }
.about__badge strong { font-size: 1.9rem; line-height: 1; color: var(--gold-300); }
.about__badge span { font-size: .9rem; color: rgba(255,255,255,.8); }
.about__chip { position: absolute; bottom: -20px; inset-inline-end: 24px; display: flex; align-items: center; gap: 10px; padding: 10px 18px 10px 12px; border-radius: 18px; background: #fff; box-shadow: var(--shadow); font-size: .9rem; color: var(--navy-800); }
.about__chip img { width: 36px; padding: 3px; border-radius: 12px; background: var(--cream); }
.about__chip b { font-size: 1.1rem; color: var(--gold-600); }
.about__chip i { font-style: normal; font-weight: 600; }
.value--feature { color: #fff; background: linear-gradient(150deg, var(--navy-800), var(--navy)); border-color: transparent; box-shadow: var(--shadow); }
.value--feature h3 { color: #fff; }
.value--feature p { color: rgba(255,255,255,.8); }

/* ---------- services: scroll timeline (dark band, circle photos on a curved line) ---------- */
/* curved connector from this circle to the next, alternating sides */
.tl-item:nth-child(even):not(:last-child) .tl-item__photo::after { left: auto; right: 50%; border-radius: 999px 0 0 999px; border: 2px solid rgba(255,255,255,.18); border-right: 0; }
[dir="rtl"] .tl-item:nth-child(even):not(:last-child) .tl-item__photo::after { right: auto; left: 50%; border-radius: 0 999px 999px 0; border: 2px solid rgba(255,255,255,.18); border-left: 0; }

/* number + title sit beside the circle; the body goes on the opposite side, sides alternate */
.tl-item:nth-child(even) .tl-item__head { grid-column: 3; justify-content: flex-start; text-align: start; flex-direction: row-reverse; }
.tl-item:nth-child(even) .tl-item__body { grid-column: 1; }
/* one type scale for every station: title on one line, same size and weight, measured against the number */
.tl-item:nth-child(even) .tl-item__body { justify-self: end; }

/* ---------- products ---------- */
.products { position: relative; color: #fff; overflow: hidden; isolation: isolate; }
.products__bg { position: absolute; inset: 0; z-index: -1; background: linear-gradient(135deg, var(--navy-900), var(--navy-700) 55%, var(--navy)); }
.products__bg::after { content: ""; position: absolute; inset: 0; background: var(--lattice) center / 80px; opacity: .06; filter: brightness(3); }
.platform__logo--img { width: 56px; padding: 6px; background: var(--cream); }

/* platform contact block: phones + email, then social icons */ /* same height with 1 or 2 phones */

/* ---------- process ---------- */

/* ---------- news ---------- */
.news__head { display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; margin-bottom: 32px; }
.news__head h2 { margin: 8px 0 0; font-size: clamp(1.8rem, 3.2vw, 2.4rem); color: var(--navy-800); }
.news__more { display: inline-flex; align-items: center; gap: 8px; font-weight: 600; color: var(--navy); border-bottom: 1.5px solid var(--gold); padding-bottom: 2px; }
/* news: three equal cards, tall photo, date, bold title, 3-line excerpt */
.news__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 36px; }
.post { display: flex; flex-direction: column; overflow: hidden; border-radius: 18px; background: #fff; border: 1px solid #ececec; transition: box-shadow .35s, transform .35s var(--ease); }
.post:hover { box-shadow: var(--shadow); transform: translateY(-4px); }
.post__img { margin: 0; aspect-ratio: 3 / 2; overflow: hidden; background: var(--cream); }
.post__img img { width: 100%; height: 100%; object-fit: cover; transition: transform 1s var(--ease); }
.post:hover .post__img img { transform: scale(1.04); }
.post__body { padding: 38px 36px 34px; }
.post h3 { margin: 10px 0 0; font-size: 1.45rem; font-weight: 700; line-height: 1.5; color: var(--ink); }
.post p { margin: 22px 0 0; font-size: 1.1rem; line-height: 1.85; color: var(--muted); display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
/* 2024 milestones: points sit on a gold S-curve; hovering / tapping a month reveals its card */
/* timeline card: navy panel, no pattern; the curve is inset with equal margins */
.year { position: relative; overflow: hidden; margin-top: 56px; padding: 36px 40px 28px; border-radius: 24px; color: #fff;
  background: radial-gradient(ellipse 70% 90% at 85% 0%, rgba(212,175,55,.16), transparent 60%), linear-gradient(135deg, var(--navy-900), var(--navy-700) 60%, var(--navy)); box-shadow: var(--shadow-lg); }
.year__head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; margin-bottom: 10px; }
.year__num { display: block; font-size: 3rem; font-weight: 700; line-height: 1; color: transparent; -webkit-text-stroke: 1.5px var(--gold); }
.year__head h3 { margin: 6px 0 0; font-size: 1.45rem; color: #fff; }

/* small screens: vertical list, details always visible */
@media (max-width: 760px) {

  .year { padding: 26px 20px; }

}

/* ---------- founders: coverflow carousel (active card large with bio panel, neighbours small) ---------- */

/* states (RTL default: "next" sits to the left, like reading onward) */

/* ---------- contact ---------- */
.contact { display: grid; grid-template-columns: 1fr 1.2fr; gap: 48px; align-items: start; }
.contact__intro h2 { margin: 10px 0 12px; font-size: clamp(1.8rem, 3vw, 2.4rem); color: var(--navy-800); }
.contact__intro p { margin: 0 0 22px; color: var(--muted); }
.contact__list { display: grid; gap: 12px; margin: 0; padding: 0; list-style: none; }
.contact__list a { display: flex; align-items: center; gap: 14px; padding: 14px 18px; border-radius: var(--radius); border: 1px solid var(--line); font-weight: 500; transition: border-color .3s, transform .35s var(--ease); }
.contact__list a:hover { border-color: var(--gold); transform: translateX(-4px); }
[dir="ltr"] .contact__list a:hover { transform: translateX(4px); }
.contact__list svg { width: 40px; height: 40px; padding: 10px; border-radius: 12px; color: var(--navy-900); background: linear-gradient(135deg, var(--gold-300), var(--gold)); }
.form { padding: 32px; border-radius: var(--radius-lg); background: #fff; border: 1px solid rgba(212,175,55,.3); box-shadow: var(--shadow-lg); }
.grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 14px 18px; margin-bottom: 22px; }
.f { display: grid; gap: 6px; }
.f--full { grid-column: 1 / -1; }
.f label { font-size: .9rem; font-weight: 600; color: var(--navy-800); }
.f input, .f select, .f textarea { width: 100%; min-height: 50px; padding: 12px 16px; border-radius: 12px; border: 1.5px solid var(--line); background: #fcfbf7; color: var(--ink); font: inherit; outline: 0; resize: vertical; transition: border-color .25s, box-shadow .25s; }
.f select { appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%231A478C' stroke-width='2'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-size: 18px; background-position: left 14px center; padding-left: 40px; }
[dir="ltr"] .f select { background-position: right 14px center; padding-left: 16px; padding-right: 40px; }
.f :focus { border-color: var(--gold); background: #fff; box-shadow: 0 0 0 4px rgba(212,175,55,.18); }
.f [aria-invalid="true"] { border-color: var(--red); background: #fff8f7; }
.f__e { min-height: 1em; font-size: .8rem; color: var(--red); }
.form__msg { margin: 14px 0 0; font-weight: 600; }
.form__msg.ok { color: #137a45; } .form__msg.err { color: var(--red); }

/* ---------- footer (Qatar-style curve over photo) ---------- */
.footer { position: relative; margin-top: 40px; color: #fff; overflow-x: clip; }
.footer__line { position: absolute; top: 0; left: -2px; z-index: 2; width: calc(100% + 4px); height: 90px; pointer-events: none; }
.footer__line path { fill: none; stroke: var(--gold); stroke-width: 3px; opacity: .9; }
.footer__body { position: relative; overflow: hidden; padding: 130px 0 40px; min-height: min(31vw, 620px);
  background: linear-gradient(260deg, rgba(8,26,54,.95) 0%, rgba(14,42,86,.88) 45%, rgba(26,71,140,.72) 75%, rgba(184,147,42,.78) 100%), url('assets/footer-bg.webp') center top / cover no-repeat;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1440 90' preserveAspectRatio='none'%3E%3Cpath d='M0,46 C180,62 380,72 620,66 C900,58 1080,30 1260,22 C1350,19 1410,24 1440,30 L1440,90 L0,90 Z'/%3E%3C/svg%3E") top / 100% 90px no-repeat, linear-gradient(#000, #000) 0 89px / 100% calc(100% - 89px) no-repeat;
          mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1440 90' preserveAspectRatio='none'%3E%3Cpath d='M0,46 C180,62 380,72 620,66 C900,58 1080,30 1260,22 C1350,19 1410,24 1440,30 L1440,90 L0,90 Z'/%3E%3C/svg%3E") top / 100% 90px no-repeat, linear-gradient(#000, #000) 0 89px / 100% calc(100% - 89px) no-repeat; }
[dir="ltr"] .footer__body { background: linear-gradient(100deg, rgba(8,26,54,.95) 0%, rgba(14,42,86,.88) 45%, rgba(26,71,140,.72) 75%, rgba(184,147,42,.78) 100%), url('assets/footer-bg.webp') center top / cover no-repeat; }
.footer__grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 40px; }
.footer__brand p { max-width: 340px; margin: 16px 0 0; color: rgba(255,255,255,.75); }
.footer h4 { margin: 6px 0 14px; color: var(--gold-300); font-size: 1.1rem; }
.footer__grid > div > a:not(.brand) { display: block; width: fit-content; padding: 4px 0; color: rgba(255,255,255,.85); transition: color .25s, transform .3s var(--ease); }
.footer__grid > div > a:not(.brand):hover { color: #fff; transform: translateX(-5px); }
.socials { display: flex; gap: 10px; }
.socials a { width: 42px; height: 42px; display: grid; place-items: center; border-radius: 12px; background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.15); transition: all .3s var(--ease); }
.socials a:hover { background: var(--gold); color: var(--navy-900); transform: translateY(-4px); }
.footer__bar { position: relative; padding: 18px 16px; text-align: center; font-size: .9rem; color: rgba(253,246,227,.72); background: var(--navy-900); }
.footer__bar::before { content: ""; position: absolute; top: 0; left: 50%; width: min(560px, 80%); height: 1px; transform: translateX(-50%); background: linear-gradient(90deg, transparent, rgba(212,175,55,.75), transparent); }
.to-top { position: fixed; bottom: 24px; inset-inline-start: 24px; z-index: 90; width: 54px; height: 54px; display: grid; place-items: center; border-radius: 50%; font-size: 1.45rem; color: #fff; background: var(--navy); border: 2px solid var(--gold); box-shadow: var(--shadow); opacity: 0; transform: translateY(20px); transition: all .4s var(--ease); }
.to-top.is-shown { opacity: 1; transform: none; }
.to-top:hover { background: var(--gold); color: var(--navy-900); }

/* ---------- reveal ---------- */
.reveal { opacity: 0; transform: translateY(30px); transition: opacity .9s var(--ease), transform .9s var(--ease); transition-delay: var(--d, 0s); }
.reveal.is-in { opacity: 1; transform: none; }

/* ---------- responsive ---------- */
@media (max-width: 1180px) {
  .nav__link { padding: 0 9px; font-size: .9rem; }
  .brand__text small { display: none; }
}
@media (max-width: 980px) {
  /* timeline collapses to one column: circle + line on the start side, text beside it */
  .tl-item, .tl-item:nth-child(even) { grid-template-columns: var(--photo) 1fr; gap: 10px 22px; align-items: start; }
  .tl-item__photo, .tl-item:nth-child(even) .tl-item__photo { grid-column: 1; grid-row: 1 / span 2; }
  .tl-item__head, .tl-item:nth-child(even) .tl-item__head { grid-column: 2; grid-row: 1; flex-direction: row; justify-content: flex-start; text-align: start; }
  .tl-item__body, .tl-item:nth-child(even) .tl-item__body { grid-column: 2; grid-row: 2; }
  .tl-item:not(:last-child) .tl-item__photo::after, .tl-item:nth-child(even):not(:last-child) .tl-item__photo::after,
  [dir="rtl"] .tl-item:not(:last-child) .tl-item__photo::after, [dir="rtl"] .tl-item:nth-child(even):not(:last-child) .tl-item__photo::after { left: 50%; right: auto; width: 2px; height: var(--link, 60px); border: 0; border-radius: 0; background: linear-gradient(rgba(212,175,55,.5), rgba(255,255,255,.08)); }
  .tl-item__body, .tl-item:nth-child(even) .tl-item__body { max-width: none; justify-self: stretch; }
  .burger { display: block; }
  .nav { position: fixed; inset: 0; z-index: -1; flex-direction: column; justify-content: center; gap: 6px; padding: 100px 24px; background: linear-gradient(160deg, var(--navy-900), var(--navy)); clip-path: circle(0 at 40px 40px); transition: clip-path .7s var(--ease); }
  [dir="ltr"] .nav { clip-path: circle(0 at calc(100% - 40px) 40px); }
  .nav.is-open { clip-path: circle(150% at 50% 0) !important; }
  .nav__link { justify-content: center; font-size: 1.25rem; }
  .header.menu-open { background: transparent; box-shadow: none; }
  .about, .contact { grid-template-columns: 1fr; gap: 56px; }
  .about__media { max-width: 600px; width: 100%; margin-inline: auto; }
  .news__grid { grid-template-columns: 1fr 1fr; gap: 24px; }
  .post__body { padding: 26px 24px; }
  .footer__grid { grid-template-columns: 1fr 1fr; }
  .footer__brand { grid-column: 1 / -1; }
}
@media (max-width: 640px) {
  .header__cta > .btn { display: none; }
  .tool span { display: none; }
  .section { padding: 72px 0; }
  .hero__content { padding-bottom: 180px; }
  .hero__facts strong { font-size: 1.65rem; }
  .about__badge { inset-inline-start: 12px; }
  .about__chip { inset-inline-end: 12px; }
  .news__grid { grid-template-columns: 1fr; }
  .post h3 { font-size: 1.25rem; }
  .news__head { flex-direction: column; align-items: flex-start; }
  .grid2 { grid-template-columns: 1fr; }
  .form { padding: 22px; }
  .partner { min-width: 130px; height: 68px; }
  .partner img { max-height: 44px; max-width: 110px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
  .reveal { opacity: 1; transform: none; }
}

/* ---------- plainer, less templated presentation ---------- */
.btn::after { display: none; }                         /* no sweeping sheen */
.head { text-align: start; margin-inline: 0; max-width: 760px; }
.head h2 { margin-top: 0; }
.head--light { color: #fff; }
.reveal { transform: translateY(14px); transition-duration: .6s; }
.hero__title { font-size: clamp(2.4rem, 5.6vw, 4.4rem); }

/* two dark bands in a row (services then platforms): keep a white gap so they read as separate sections */

/* =========================================================
   FORMAL / LIGHT PASS
   Dark navy is kept only for the hero (video) and the footer.
   Every band in between is light; gold and navy are desaturated.
   ========================================================= */
:root {
  --navy-900: #14243d; --navy-800: #1c3352; --navy-700: #23406a; --navy: #2b4d7e; --navy-100: #eaeff6;
  --gold: #b9975b; --gold-600: #9a7b45; --gold-300: #d2b98a; --gold-100: #f3ecdf;
  --cream: #f8f6f1; --line: #e6e3dc; --muted: #5f6b7a;
  --surface: #f5f7fa;
  --shadow-sm: 0 1px 3px rgba(20,36,61,.06);
  --shadow: 0 8px 24px -12px rgba(20,36,61,.18);
  --shadow-lg: 0 18px 40px -20px rgba(20,36,61,.25);
}
.btn--gold { --bg: var(--gold); --fg: #fff; box-shadow: none; }
.btn--gold:hover { --bg: var(--gold-600); }
.btn--navy { --bg: var(--navy-800); box-shadow: none; }
.btn--glass { border-color: rgba(255,255,255,.7); }
.section--cream { background: var(--surface); }

/* services: light band */
.tl-item:not(:last-child) .tl-item__photo::after, .tl-item:nth-child(even):not(:last-child) .tl-item__photo::after,
[dir="rtl"] .tl-item:not(:last-child) .tl-item__photo::after, [dir="rtl"] .tl-item:nth-child(even):not(:last-child) .tl-item__photo::after { border-color: var(--line); }

/* platforms: white cards on a light band */
.products { color: var(--ink); }
.products__bg { background: #fff; }
.products__bg::after { display: none; }
.products .head--light h2 { color: var(--navy-800); }
.products .head--light p { color: var(--muted); }

/* about: vision card no longer dark */
.value--feature { color: var(--ink); background: #fff; border: 1px solid var(--gold); box-shadow: none; }
.value--feature h3 { color: var(--navy-800); }
.value--feature p { color: var(--muted); }

/* 2024 timeline card: light */
.year { color: var(--ink); background: var(--surface); border: 1px solid var(--line); box-shadow: none; }
.year__head h3 { color: var(--navy-800); }

/* founders: white bio panel instead of navy */

/* hero & footer stay dark, slightly softer */
.hero__shade { background: linear-gradient(270deg, rgba(20,36,61,.88) 0%, rgba(28,51,82,.74) 50%, rgba(43,77,126,.5) 80%, rgba(185,151,91,.35) 100%); }
.hero__facts strong { color: #fff; }
.footer__bar { background: var(--navy-900); }

/* =========================================================
   LIGHT / DARK RHYTHM
   hero D · about L · services D · platforms L · news L (+ dark timeline card) · founders D · contact L · footer D
   Dark bands use the muted navy, never near-black.
   ========================================================= */
:root { --band: linear-gradient(160deg, #1c3352 0%, #23406a 100%); }

/* services: dark again, muted */
.tl-item:not(:last-child) .tl-item__photo::after, .tl-item:nth-child(even):not(:last-child) .tl-item__photo::after,
[dir="rtl"] .tl-item:not(:last-child) .tl-item__photo::after, [dir="rtl"] .tl-item:nth-child(even):not(:last-child) .tl-item__photo::after { border-color: rgba(255,255,255,.18); }

/* timeline card inside the light news section: dark accent */
.year { color: #fff; background: var(--band); border: 0; box-shadow: var(--shadow); }
.year__head h3 { color: #fff; }

/* founders: dark band, white bio cards on top */
#team { background: var(--band); color: #fff; }
#team .head h2 { color: #fff; }

/* ---------- news: featured story + all-news grid ---------- */
.news { background: var(--surface); }
.news__label { margin: 0 0 18px; font-size: 1.45rem; color: var(--navy-800); }
.feature { display: grid; grid-template-columns: 1fr 1fr; overflow: hidden; border-radius: 18px; background: #fff; border: 1px solid var(--line); box-shadow: var(--shadow-sm); }
.feature__img { position: relative; margin: 0; min-height: 380px; }
.feature__img img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; } /* image never sets the card height */
.feature__body { display: flex; flex-direction: column; justify-content: center; gap: 16px; padding: 40px 48px 28px; }
.feature__body .meta { margin-top: 12px; }
.feature__body h3 { margin: 0; font-size: clamp(1.4rem, 2.3vw, 1.9rem); line-height: 1.5; color: var(--ink); }
.feature__body p { margin: 0; color: var(--muted); line-height: 1.9; font-size: 1rem; }
.tags { display: flex; gap: 10px; flex-wrap: wrap; }
.tag { display: inline-block; width: fit-content; padding: 6px 16px; border-radius: 999px; font-size: .9rem; font-weight: 600; color: var(--navy); background: var(--navy-100); }
.tag--solid { color: #fff; background: var(--navy-800); }
.meta { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: auto; padding-top: 8px; }
.meta time { display: inline-flex; align-items: center; gap: 8px; color: var(--muted); font-size: 1rem; }
.meta time svg { font-size: 1.1rem; }
.share { width: 40px; height: 40px; display: grid; place-items: center; border-radius: 50%; font-size: 1.1rem; color: var(--navy-800); transition: background .25s; }
.share:hover { background: var(--navy-100); }
.share.is-copied { color: var(--gold-600); }
.news__allhead { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin-top: 52px; }
.news__count { color: var(--muted); }
.news__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.post { border-radius: 18px; border: 1px solid var(--line); box-shadow: var(--shadow-sm); }
.post__img { aspect-ratio: 16 / 9; }
.post__body { display: flex; flex-direction: column; gap: 10px; padding: 18px 20px 14px; flex: 1; }
.post .tag { padding: 4px 12px; font-size: .8rem; }
.post h3 { margin: 4px 0 0; font-size: 1.1rem; line-height: 1.6; font-weight: 700; color: var(--ink); }
.post p { margin: 0; font-size: .9rem; line-height: 1.7; -webkit-line-clamp: 2; }
.post .meta { border-top: 1px solid var(--line); padding-top: 10px; }
@media (max-width: 980px) {
  .feature { grid-template-columns: 1fr; }
  .feature__img { min-height: 260px; }
  .feature__body { padding: 28px 24px; }
  .news__grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 640px) { .news__grid { grid-template-columns: 1fr; } }

/* ---------- platforms: wide horizontal rows (brand · copy · stat · image) ---------- */
#products .head { text-align: center; margin-inline: auto; }
.prows { display: grid; gap: 22px; }
.prow { --c: #b9975b; --tint: #fbf6ec; position: relative; overflow: hidden; display: grid; grid-template-columns: 240px 1fr 160px 25%; align-items: center; min-height: 240px;
  border-radius: 24px; background: linear-gradient(90deg, var(--tint), #fff 70%); border: 1px solid color-mix(in srgb, var(--c) 22%, #fff); box-shadow: var(--shadow-sm); transition: box-shadow .4s, transform .4s var(--ease); }
[dir="rtl"] .prow { background: linear-gradient(270deg, var(--tint), #fff 70%); }
.prow:hover { box-shadow: var(--shadow); transform: translateY(-3px); }
.p-gold { --c: #b9975b; --tint: #fbf5ea; } .p-green { --c: #2f9a6a; --tint: #eef8f2; } .p-blue { --c: #2e6fd1; --tint: #eef4fd; }
.prow__brand { display: flex; flex-direction: column; align-items: center; gap: 18px; height: 100%; justify-content: center; padding: 28px 24px; border-inline-end: 1px solid color-mix(in srgb, var(--c) 18%, #fff); }
.prow__logo { display: flex; align-items: center; justify-content: center; gap: 10px; min-height: 64px; }
.prow__word { display: grid; line-height: 1.1; }
.prow__word b { font-size: 1.65rem; color: var(--navy-800); }
.prow__word small { font-size: .8rem; letter-spacing: .3em; color: var(--muted); }
.prow__logo-wide { max-width: 160px; max-height: 60px; object-fit: contain; }
.prow__cta { white-space: nowrap; display: inline-flex; align-items: center; gap: 10px; padding: 12px 24px; border-radius: 999px; font-weight: 600; font-size: 1rem; color: #fff; background: var(--c); transition: filter .25s; }
.p-gold .prow__cta { background: var(--navy-800); }
.prow__cta:hover { filter: brightness(.92); }
.prow__social { display: flex; gap: 6px; }
.prow__social a { width: 32px; height: 32px; display: grid; place-items: center; border-radius: 50%; font-size: .9rem; color: var(--muted); border: 1px solid var(--line); background: #fff; transition: color .2s, border-color .2s; }
.prow__social a:hover { color: var(--c); border-color: var(--c); }
.prow__main { padding: 26px 30px; }
.prow__tag { display: inline-block; padding: 4px 12px; border-radius: 999px; font-size: .8rem; font-weight: 600; color: #fff; background: var(--c); }
.prow__main h3 { margin: 10px 0 8px; font-size: 1.65rem; color: var(--navy-800); }
.prow__main > p { margin: 0 0 18px; max-width: 520px; color: var(--muted); line-height: 1.85; }
.prow__feats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px 18px; margin: 0; padding: 0; list-style: none; }
.prow__feats li { display: flex; align-items: center; gap: 10px; font-size: .9rem; line-height: 1.5; color: var(--ink); }
.prow__fic { flex-shrink: 0; width: 40px; height: 40px; display: grid; place-items: center; border-radius: 50%; font-size: 1.1rem; color: var(--c); background: #fff; box-shadow: 0 2px 8px -2px rgba(20,36,61,.12); }
.prow__stat { position: relative; z-index: 2; display: grid; justify-items: center; gap: 2px; padding: 16px 14px; margin-inline-end: -40px; border-radius: 18px; background: #fff; border: 1px solid var(--line); box-shadow: var(--shadow-sm); }
.prow__sic { font-size: 1.45rem; color: var(--c); }
.prow__stat strong { font-size: 1.45rem; color: var(--navy-800); font-variant-numeric: tabular-nums; }
.prow__stat small { color: var(--muted); }
.prow__img { position: relative; margin: 0; align-self: stretch; }
.prow__img img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; -webkit-mask-image: linear-gradient(to left, transparent 0, rgba(0,0,0,.35) 25%, #000 65%); mask-image: linear-gradient(to left, transparent 0, rgba(0,0,0,.35) 25%, #000 65%); }
[dir="ltr"] .prow__img img { -webkit-mask-image: linear-gradient(to right, transparent 0, #000 45%); mask-image: linear-gradient(to right, transparent 0, #000 45%); }
@media (max-width: 1180px) {
  .prow { grid-template-columns: 210px 1fr 160px; }
  .prow__stat { margin-inline: 0 20px; }
  .prow__img { display: none; }
}
@media (max-width: 860px) {
  .prow { grid-template-columns: 1fr; }
  .prow__brand { flex-direction: row; flex-wrap: wrap; justify-content: space-between; border-inline-end: 0; border-bottom: 1px solid var(--line); padding: 20px; }
  .prow__main { padding: 20px; }
  .prow__stat { margin: 0 20px 20px; grid-auto-flow: column; justify-content: start; align-items: center; gap: 12px; }
  .prow__feats { grid-template-columns: 1fr; }
}
.prow__logo-app { width: 62px; height: 62px; border-radius: 12px; box-shadow: 0 6px 14px -6px rgba(214,43,30,.45); }
.prow__logo-taaqud { width: 170px; max-width: 170px; max-height: none; }

/* platform cards harmonised with the site palette:
   one navy CTA for all; accents share the gold's saturation/lightness (muted gold · sage · steel blue) */
.p-gold  { --c: #b9975b; --tint: #f8f4ec; }
.p-green { --c: #6f9a83; --tint: #f1f5f2; }
.p-blue  { --c: #5f7fa8; --tint: #f0f3f7; }
.prow { border-color: var(--line); }
.prow__brand { border-inline-end-color: var(--line); }
.prow__cta, .p-gold .prow__cta { background: var(--navy-800); }
.prow__cta:hover { background: var(--navy-700); filter: none; }
.prow__tag { color: var(--c); background: #fff; border: 1px solid currentColor; }
.prow__fic { color: var(--c); box-shadow: none; border: 1px solid var(--line); }
.prow__sic { color: var(--c); }
.prow__social a:hover { color: var(--navy-800); border-color: var(--navy-800); }

/* ---------- vision / goal: photo cards with icon badge ---------- */
.vm { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; margin-top: 64px; }
.vm__card { overflow: hidden; border-radius: 18px; background: #f6f1e8; border: 1px solid #e7dcc8; transition: box-shadow .35s, transform .35s var(--ease); }
.vm__card:hover { box-shadow: var(--shadow); transform: translateY(-3px); }
.vm__ic { position: absolute; top: 16px; inset-inline-start: 16px; width: 50px; height: 50px; display: grid; place-items: center; border-radius: 50%; font-size: 1.45rem; color: var(--gold-600); background: #fff; box-shadow: var(--shadow-sm); }
.vm__body { padding: 26px 32px 30px; text-align: center; }
.vm__body h3 { margin: 0 0 12px; font-size: 1.45rem; color: var(--navy-800); }
.vm__body p { margin: 0 auto; max-width: 440px; color: var(--muted); line-height: 1.9; }
@media (max-width: 860px) {
  .vm { grid-template-columns: 1fr; }
}

/* founders: cut-out portraits on a soft studio backdrop; transform/opacity-only motion */

/* hero facts: large, confident figures */
.hero__facts { gap: 18px 56px; margin-top: 56px; }
.hero__facts li { gap: 6px; padding-inline-start: 22px; border-inline-start-width: 3px; }
.hero__facts strong { font-size: clamp(2.6rem, 5vw, 4rem); font-weight: 700; line-height: 1; letter-spacing: -.01em; color: #fff; text-shadow: 0 6px 24px rgba(0,0,0,.35); }
.hero__facts strong { white-space: nowrap; }
.hero__facts li > span { font-size: 1rem; font-weight: 500; color: var(--gold-300); }
.hero__facts .count { font: inherit; color: inherit; }
@media (max-width: 640px) { .hero__facts { gap: 18px 28px; } .hero__facts strong { font-size: 2.3rem; } }

/* all section heads centred, like "منصاتنا الرقمية" */
.head, #products .head { text-align: center; margin-inline: auto; max-width: 760px; }
.news__head { flex-direction: column; align-items: center; text-align: center; gap: 6px; }

/* founders bio panel: same lattice as under the hero wave, fading out toward the text */

/* founders 3D: cut-out figure breaks out of its frame, tilts with the pointer, parallax between figure and backdrop */

/* founders: no backdrop box at all, only the cut-out figure on the section background */

/* slides that are not on stage are fully hidden (no ghosts during the transition) */

/* founder bio panel: frosted glass on the navy band, soft hairline border */

/* =========================================================
   REFINED PALETTE
   Deeper, cleaner navy · warmer gold · cool-neutral surfaces.
   All text pairs checked for WCAG AA (≥ 4.5:1).
   ========================================================= */
:root {
  --navy-900: #0F1F3A; --navy-800: #142C52; --navy-700: #1D3E6E; --navy: #2A5591; --navy-100: #E8EEF7;
  --gold: #C4A052; --gold-600: #8A6A2C; --gold-300: #DDC38A; --gold-100: #F6EEDC;
  --ink: #0F1B2D; --muted: #5B6676; --line: #E4E7EC; --surface: #F6F8FB; --cream: #FAF7F1;
  --band: linear-gradient(160deg, #142C52 0%, #1D3E6E 100%);
}
/* gold buttons: navy text (white on gold was 2.5:1) */
.btn--gold { --bg: var(--gold); --fg: var(--navy-900); }
.btn--gold:hover { --bg: #B48F42; }
/* replace hard-coded mid-navy leftovers */

.hero__shade { background: linear-gradient(270deg, rgba(15,31,58,.9) 0%, rgba(20,44,82,.76) 50%, rgba(42,85,145,.45) 80%, rgba(196,160,82,.35) 100%); }
.vm__card { background: var(--cream); border-color: #EADFC9; }
.footer__bar { background: var(--navy-900); }
/* platform accents on the same saturation / lightness as the new gold */
.p-gold  { --c: #C4A052; --tint: #FBF6EC; }
.p-green { --c: #5E9A7B; --tint: #F0F6F2; }
.p-blue  { --c: #4F79B0; --tint: #EEF3FA; }

/* ---------- tenders (live) ---------- */
.tenders { background: var(--surface); }
.tfilter { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin: -12px 0 28px; }
.tfilter button { --c: var(--navy-800); display: inline-flex; align-items: center; gap: 8px; min-height: 42px; padding: 0 18px; border-radius: 999px; border: 1px solid var(--line); background: #fff; font-weight: 600; color: var(--navy-800); }
.tfilter button::before { content: ""; width: 9px; height: 9px; border-radius: 50%; background: var(--c); }
.tfilter button[data-p=""]::before { display: none; }
.tfilter button small { min-width: 22px; padding: 1px 7px; border-radius: 999px; font-size: .8rem; background: var(--surface); color: var(--muted); }
.tfilter button[aria-selected="true"] { color: #fff; background: var(--navy-800); border-color: var(--navy-800); }
.tfilter button[aria-selected="true"] small { background: rgba(255,255,255,.18); color: #fff; }
.tgrid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.tempty { grid-column: 1 / -1; padding: 40px; text-align: center; color: var(--muted); border-radius: 18px; border: 1px dashed var(--line); background: #fff; }
@media (max-width: 1100px) { .tgrid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 680px) { .tgrid { grid-template-columns: 1fr; } }
.hp { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.form { position: relative; }

/* ---------- team (staff under the founders) ---------- */
.staff { margin-top: 72px; padding-top: 56px; border-top: 1px solid var(--line); }
.staff__head { display: flex; align-items: center; justify-content: center; gap: 18px; margin-bottom: 40px; }
.staff__head::before, .staff__head::after { content: ""; width: 56px; height: 1px; background: var(--gold); }
.staff__head h3 { margin: 0; font-size: clamp(1.4rem, 2.4vw, 1.8rem); color: var(--navy-800); }
/* the team section sits on the navy band: light text, glass cards */

/* founder bio panel: warm ivory card on the navy band (contrast instead of blue-on-blue) */

/* team cards below follow the same ivory treatment */

/* =========================================================
   Vision & goal: full-bleed photo cards, text over a navy fade
   Track record: navy panel with large figures
   ========================================================= */
.vm { display: grid; grid-template-columns: 1.25fr 1fr; gap: 24px; margin-top: 64px; align-items: stretch; }
.vm__card, .vm__card:hover { position: relative; isolation: isolate; display: flex; flex-direction: column; justify-content: flex-end; min-height: 440px; overflow: hidden;
  border-radius: 24px; border: 0; background: var(--navy-900); box-shadow: 0 30px 60px -36px rgba(15,31,58,.55); transform: none; }
.vm__card:nth-child(2) { margin-top: 48px; }
.vm__card::before { content: ""; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(180deg, rgba(15,31,58,0) 25%, rgba(15,31,58,.55) 55%, rgba(12,26,50,.94) 100%); transition: opacity .6s; }
.vm__body { padding: 0 36px 36px; text-align: start; color: #fff; }
.vm__body h3 { position: relative; margin: 0 0 14px; padding-bottom: 14px; font-size: clamp(1.7rem, 2.6vw, 2.2rem); color: #fff; }
.vm__body h3::after { content: ""; position: absolute; bottom: 0; inset-inline-start: 0; width: 48px; height: 3px; border-radius: 3px; background: var(--gold); transition: width .6s cubic-bezier(.22,1,.36,1); }
.vm__card:hover .vm__body h3::after { width: 96px; }
.vm__body p { max-width: 460px; margin: 0; font-size: 1.1rem; line-height: 1.9; color: rgba(255,255,255,.88); }
.record__list { display: grid; grid-template-columns: repeat(3, 1fr); margin: 0; padding: 0; list-style: none; }
.record__list li { padding: 4px 28px; border-inline-start: 1px solid rgba(255,255,255,.12); }
.record__list li:first-child { border-inline-start: 0; padding-inline-start: 0; }
.record__fig { display: flex; align-items: baseline; gap: 8px; margin-bottom: 8px; }
.record__fig b { font-size: clamp(2rem, 3.2vw, 2.6rem); line-height: 1; font-weight: 800; color: var(--gold-300); }
.record__fig small { font-size: .9rem; font-weight: 600; color: var(--gold-300); opacity: .85; }
.record__list p { margin: 0; font-size: .9rem; line-height: 1.75; color: rgba(255,255,255,.8); }

@media (max-width: 1000px) {
  .vm { grid-template-columns: 1fr; } .vm__card:nth-child(2) { margin-top: 0; } .vm__card, .vm__card:hover { min-height: 360px; }
  .record__list { grid-template-columns: 1fr; gap: 18px; }
  .record__list li, .record__list li:first-child { padding: 0 0 18px; border: 0; border-bottom: 1px solid rgba(255,255,255,.12); }
  .record__list li:last-child { padding-bottom: 0; border-bottom: 0; }
}
@media (max-width: 520px) { .vm__body { padding: 0 22px 26px; } }

/* =========================================================
   Vision, goal & track record: one family of ivory cards (no photos),
   same treatment as the founder and team cards
   ========================================================= */
.vm { grid-template-columns: 1fr 1fr; gap: 24px; }
.vm__card, .vm__card:hover, .vm__card:nth-child(2) { margin-top: 0; min-height: 0; justify-content: flex-start; align-items: flex-start; padding: 40px 40px 38px;
  background: linear-gradient(180deg, #FFFDF8 0%, #F6F0E2 100%); border: 1px solid rgba(196,160,82,.35); border-radius: 24px;
  box-shadow: 0 1px 2px rgba(15,31,58,.04); transition: transform .45s cubic-bezier(.22,1,.36,1), box-shadow .45s, border-color .45s; }
.vm__card:hover { transform: translateY(-4px); border-color: rgba(196,160,82,.7); box-shadow: 0 24px 44px -28px rgba(15,31,58,.35); }
.vm__card::before { inset: auto 0 0 auto; width: 240px; height: 240px; z-index: -1; background: var(--lattice) center / 80px; opacity: .55;
  -webkit-mask-image: radial-gradient(circle at 100% 100%, #000 0%, transparent 70%); mask-image: radial-gradient(circle at 100% 100%, #000 0%, transparent 70%); }
[dir="rtl"] .vm__card::before { inset: auto auto 0 0; -webkit-mask-image: radial-gradient(circle at 0 100%, #000 0%, transparent 70%); mask-image: radial-gradient(circle at 0 100%, #000 0%, transparent 70%); }
.vm__card::after { content: ""; position: absolute; inset: 0 0 auto; height: 4px; background: linear-gradient(90deg, var(--gold-600), var(--gold), var(--gold-300)); }
.vm__ic { position: static; display: grid; place-items: center; width: 60px; height: 60px; margin-bottom: 24px; border-radius: 18px; font-size: 1.65rem;
  color: var(--gold-300); background: var(--navy-800); box-shadow: 0 12px 22px -12px rgba(15,31,58,.6); }
.vm__ic svg { width: 1em; height: 1em; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.vm__body { padding: 0; color: var(--ink); }
.vm__body h3 { color: var(--navy-800); font-size: clamp(1.5rem, 2.2vw, 1.85rem); }
.vm__body p { max-width: 520px; color: #4A5568; font-size: 1.1rem; }
.record__list li { border-inline-start-color: rgba(196,160,82,.3); }
.record__fig b { color: var(--navy-800); }
.record__fig small { color: var(--gold-600); opacity: 1; }
.record__list p { color: #4A5568; }
@media (max-width: 1000px) {
  .vm { grid-template-columns: 1fr; }
  .vm__card, .vm__card:hover, .vm__card:nth-child(2) { padding: 32px 26px 30px; }
  .record__list li, .record__list li:first-child { border-bottom-color: rgba(196,160,82,.3); }
}

/* vision, goal and track record: three cards in one row */
.vm { grid-template-columns: repeat(3, 1fr); align-items: stretch; }
.vm__card--record .record__list { display: grid; grid-template-columns: 1fr; gap: 0; margin: 4px 0 0; }
.vm__card--record .record__list li, .vm__card--record .record__list li:first-child { display: flex; align-items: baseline; gap: 14px; padding: 12px 0; border: 0; border-top: 1px solid rgba(196,160,82,.28); }
.vm__card--record .record__list li:first-child { border-top: 0; padding-top: 2px; }
.vm__card--record .record__fig { flex-shrink: 0; flex-direction: column; align-items: flex-start; gap: 0; min-width: 72px; margin: 0; }
.vm__card--record .record__fig b { font-size: 1.65rem; color: var(--navy-800); }
.vm__card--record .record__fig small { font-size: .8rem; color: var(--gold-600); }
.vm__card--record .record__list p { font-size: .9rem; line-height: 1.7; color: #4A5568; }
@media (max-width: 1100px) { .vm { grid-template-columns: 1fr 1fr; } .vm__card--record { grid-column: 1 / -1; } }
@media (max-width: 700px) { .vm { grid-template-columns: 1fr; } }

/* founders: name and role only; the study / experience lines open on hover (tap on touch) */

/* founder nameplate: centred, name first, role under a gold rule, small cue that more opens on hover */

/* tenders sit right under the hero wave: white like the wave, the lattice carries on and fades out,
   and the partners strip below no longer restarts the pattern (it keeps it when there are no tenders) */
.tenders { background: #fff; }
.tenders > .container { position: relative; }
.tenders:not([hidden]) + .partners.lattice-zone::before { display: none; }

/* =========================================================
   Services explorer (light): field tabs + detail panel
   navy kept for text and small accents only
   ========================================================= */
.svx-section { position: relative; background: linear-gradient(180deg, #fff 0%, var(--cream) 100%); }
.svx { display: grid; grid-template-columns: 330px 1fr; gap: 28px; align-items: start; }
.svx__tabs { display: grid; gap: 10px; position: sticky; top: 110px; }
.svx__tab { display: flex; align-items: center; gap: 14px; width: 100%; padding: 14px 16px; text-align: start; border-radius: 18px; border: 1px solid transparent; background: transparent; color: var(--ink); cursor: pointer; font: inherit;
  transition: background .3s, border-color .3s, box-shadow .3s, transform .3s; }
.svx__tab:hover { background: #fff; border-color: var(--line); }
.svx__tab:focus-visible { outline: 2px solid var(--gold); outline-offset: 2px; }
.svx__tic { flex-shrink: 0; display: grid; place-items: center; width: 46px; height: 46px; border-radius: 12px; font-size: 1.25rem; color: var(--gold-600); background: var(--gold-100); transition: background .3s, color .3s; }
.svx__tic svg, .svx__ic svg, .svx li svg, .svx__chev { width: 1em; height: 1em; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.svx__tname { display: grid; gap: 2px; min-width: 0; }
.svx__tname b { font-size: 1rem; font-weight: 700; color: var(--navy-800); }
.svx__tname small { font-size: .8rem; color: var(--muted); }
.svx__chev { margin-inline-start: auto; font-size: 1.1rem; color: var(--gold-600); opacity: 0; transform: translateX(6px); transition: opacity .3s, transform .3s; }
[dir="ltr"] .svx__chev { transform: translateX(-6px) scaleX(-1); }
.svx__tab[aria-selected="true"] { background: #fff; border-color: rgba(196,160,82,.55); box-shadow: 0 14px 30px -20px rgba(15,31,58,.35); }
.svx__tab[aria-selected="true"] .svx__tic { color: var(--gold-300); background: var(--navy-800); }
.svx__tab[aria-selected="true"] .svx__chev { opacity: 1; transform: none; }
[dir="ltr"] .svx__tab[aria-selected="true"] .svx__chev { transform: scaleX(-1); }

.svx__panel { position: relative; overflow: hidden; display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); border-radius: 24px; background: #fff; border: 1px solid rgba(196,160,82,.35); box-shadow: 0 30px 60px -40px rgba(15,31,58,.35); }
.svx__panel::after { content: ""; position: absolute; inset: 0 0 auto; height: 4px; background: linear-gradient(90deg, var(--gold-600), var(--gold), var(--gold-300)); z-index: 2; }
.svx__photo { position: relative; margin: 0; min-height: 100%; }
.svx__photo img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.svx__photo::after { content: ""; position: absolute; inset: 0; background: linear-gradient(0deg, rgba(15,31,58,.35), transparent 45%); }
.svx__ic { position: absolute; bottom: 20px; inset-inline-start: 20px; z-index: 1; display: grid; place-items: center; width: 54px; height: 54px; border-radius: 18px; font-size: 1.45rem; color: var(--navy-900); background: var(--gold); box-shadow: 0 10px 20px -8px rgba(0,0,0,.4); }
.svx__body { padding: 38px 40px 36px; }
.svx__step { display: inline-flex; align-items: center; gap: 6px; font-size: .9rem; font-weight: 700; color: var(--gold-600); letter-spacing: .04em; }
.svx__step i { font-style: normal; color: var(--line); }
.svx__body h3 { margin: 8px 0 10px; font-size: clamp(1.5rem, 2.4vw, 1.9rem); color: var(--navy-800); }
.svx__body > p { margin: 0 0 22px; color: #4A5568; line-height: 1.85; }
.svx__body ul { display: grid; grid-template-columns: 1fr 1fr; gap: 10px 18px; margin: 0 0 28px; padding: 22px 0 0; list-style: none; border-top: 1px dashed rgba(196,160,82,.45); }
.svx__body li { display: flex; align-items: flex-start; gap: 10px; font-size: 1rem; line-height: 1.6; color: var(--ink); }
.svx__body li svg { flex-shrink: 0; margin-top: .25em; padding: 3px; width: 1.25em; height: 1.25em; border-radius: 50%; color: var(--gold-600); background: var(--gold-100); stroke-width: 2.6; }
.svx__cta { display: inline-flex; align-items: center; gap: 10px; }
.svx__panel.is-in .svx__photo img { animation: svxImg .7s cubic-bezier(.22,1,.36,1); }
.svx__panel.is-in .svx__body > * { animation: svxUp .55s cubic-bezier(.22,1,.36,1) both; }
.svx__panel.is-in .svx__body > :nth-child(2) { animation-delay: .04s; } .svx__panel.is-in .svx__body > :nth-child(3) { animation-delay: .08s; }
.svx__panel.is-in .svx__body > :nth-child(4) { animation-delay: .12s; } .svx__panel.is-in .svx__body > :nth-child(5) { animation-delay: .16s; }
@keyframes svxImg { from { opacity: .3; transform: scale(1.06); } to { opacity: 1; transform: none; } }
@keyframes svxUp { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }

@media (max-width: 1100px) { .svx { grid-template-columns: 280px 1fr; } .svx__panel { grid-template-columns: 1fr; } .svx__photo { height: 220px; min-height: 0; } }
@media (max-width: 900px) {
  .svx { grid-template-columns: 1fr; }
  .svx__tabs { position: static; display: flex; gap: 8px; overflow-x: auto; padding-bottom: 6px; scrollbar-width: none; }
  .svx__tabs::-webkit-scrollbar { display: none; }
  .svx__tab { flex: 0 0 auto; width: auto; padding: 10px 14px; background: #fff; border-color: var(--line); }
  .svx__tic { width: 38px; height: 38px; font-size: 1.1rem; }
  .svx__chev { display: none; }
}
@media (max-width: 600px) { .svx__body { padding: 28px 22px; } .svx__body ul { grid-template-columns: 1fr; } }
@media (prefers-reduced-motion: reduce) { .svx__panel.is-in .svx__photo img, .svx__panel.is-in .svx__body > * { animation: none; } }

/* =========================================================
   Team: no cards. Each person is cut out and stands in an ivory circle
   with a gold ring; the head rises just above the circle.
   ========================================================= */
/* the circle: same backdrop for everyone */
/* the person: clipped to the circle below its centre, free above it */

/* team: no circle frame, the cut-out stands on the navy band and fades out at the bottom */

/* =========================================================
   Founders & team on a light section: cut-out portraits standing
   in a sand-coloured arch (Omani doorway), no blue blocks
   ========================================================= */
#team .head h2 { color: var(--navy-800); }
.people { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 34px 26px; }
.person { display: flex; flex-direction: column; align-items: center; text-align: center; outline: none; }
.person__stage { position: relative; isolation: isolate; width: 100%; aspect-ratio: 4 / 5; margin-bottom: 20px; }
/* the arch */
.person__stage::before { content: ""; position: absolute; inset: 14% 4% 0; z-index: -1; border-radius: 999px 999px 18px 18px;
  background: linear-gradient(180deg, #F7F1E4 0%, #EADDC2 100%); border: 1px solid rgba(196,160,82,.35); transition: border-color .4s, box-shadow .4s; }
.person__stage::after { content: ""; position: absolute; inset: 14% 4% 0; z-index: -1; border-radius: 999px 999px 18px 18px; pointer-events: none;
  background: var(--lattice) center bottom / 64px; opacity: .45; -webkit-mask-image: linear-gradient(to top, #000, transparent 70%); mask-image: linear-gradient(to top, #000, transparent 70%); }
.person__stage img { position: absolute; left: 50%; bottom: 0; width: 100%; height: 100%; object-fit: contain; object-position: 50% 100%; transform: translateX(-50%); transform-origin: 50% 100%;
  -webkit-mask-image: linear-gradient(180deg, #000 85%, transparent 100%); mask-image: linear-gradient(180deg, #000 85%, transparent 100%);
  filter: drop-shadow(0 12px 16px rgba(15,31,58,.18)); transition: transform .6s cubic-bezier(.22,1,.36,1); }
.person:hover .person__stage img { transform: translateX(-50%) scale(1.035); }
.person:hover .person__stage::before { border-color: var(--gold); box-shadow: 0 22px 40px -26px rgba(15,31,58,.45); }
.person h3, .person h4 { margin: 0 0 6px; font-weight: 700; color: var(--navy-800); } .person h4 { font-size: 1.1rem; }
.person__role { position: relative; padding-top: 10px; font-size: .9rem; font-weight: 500; line-height: 1.5; color: var(--gold-600); }
.person__role::before { content: ""; position: absolute; top: 0; left: 50%; width: 26px; height: 2px; margin-left: -13px; border-radius: 2px; background: var(--gold); }
/* founders' background: slides up over the lower part of the arch */
.person--lead { cursor: pointer; }
.person--lead:focus-visible .person__stage::before { border-color: var(--gold); box-shadow: 0 0 0 3px rgba(196,160,82,.35); }
/* team row: same language, a little smaller */
.people--team { max-width: 980px; margin: 0 auto; gap: 30px 24px; }
@media (max-width: 1000px) { .people { grid-template-columns: repeat(2, 1fr); } .people--lead { max-width: 640px; margin-inline: auto; } }
@media (max-width: 480px) { .people { gap: 26px 14px; } .person h4 { font-size: 1rem; } .person__role { font-size: .8rem; } }
@media (prefers-reduced-motion: reduce) { .person__stage img, .person__bio { transition: none; } .person:hover .person__stage img { transform: translateX(-50%); } }
/* founders' background opens below the name (the face stays visible) */
.person--lead::after { content: ""; width: 8px; height: 8px; margin-top: 12px; border: solid var(--gold-600); border-width: 0 2px 2px 0; transform: rotate(45deg); opacity: .75; transition: transform .4s, opacity .3s; }
.person--lead:hover::after, .person--lead.is-open::after, .person--lead:focus-visible::after { transform: rotate(225deg); opacity: 0; }
.people--lead { align-items: start; }
/* on mouse devices the background floats under the name, so nothing below it moves */
@media (hover: hover) and (pointer: fine) {
  .person--lead { position: relative; }
}
/* team now has its own light section under the founders */
#staff.people-section { background: linear-gradient(180deg, #fff 0%, var(--cream) 100%); }
#staff .staff--solo { margin-top: 0; padding-top: 0; border-top: 0; }
#staff .staff__head h3 { color: var(--navy-800); font-size: clamp(1.8rem, 3.4vw, 2.6rem); }

/* founders heading back to white on the navy band */
#team.section--cream .head h2 { color: #fff; }
/* team: no arch behind the photos, everyone on the same baseline and scale */
#staff .person__stage::before, #staff .person__stage::after { display: none; }
#staff .person__stage { aspect-ratio: 5 / 6; margin-bottom: 18px; border-bottom: 1px solid rgba(196,160,82,.45); }
#staff .person__stage img { width: 100%; height: 100%; object-fit: contain; object-position: 50% 100%; -webkit-mask-image: none; mask-image: none; filter: drop-shadow(0 10px 14px rgba(15,31,58,.16)); }
#staff .person:hover .person__stage img { transform: translateX(-50%) translateY(-4px); }
/* the four team members stay in one row down to tablet width, so they stand on one line */
@media (min-width: 700px) { #staff .people--team { grid-template-columns: repeat(4, 1fr); } }

/* =========================================================
   Team, refined: soft light behind each person (no frame),
   photo fades into the page at the bottom, role as a gold chip
   ========================================================= */
#staff .person__stage { border-bottom: 0; aspect-ratio: 5 / 5.4; margin-bottom: 6px; }
#staff .person__stage::before { display: block; content: ""; position: absolute; inset: 18% 8% 6%; z-index: -1; border: 0; border-radius: 50%;
  background: radial-gradient(closest-side, rgba(221,195,138,.55), rgba(221,195,138,.22) 55%, transparent 100%); filter: blur(6px); box-shadow: none;
  transition: transform .6s cubic-bezier(.22,1,.36,1), opacity .4s; opacity: .85; }
#staff .person__stage::after { display: none; }
#staff .person__stage img { -webkit-mask-image: linear-gradient(180deg, #000 58%, transparent 92%); mask-image: linear-gradient(180deg, #000 58%, transparent 92%);
  filter: drop-shadow(0 14px 18px rgba(15,31,58,.14)); transition: transform .6s cubic-bezier(.22,1,.36,1); }
#staff .person:hover .person__stage img { transform: translateX(-50%) translateY(-6px) scale(1.02); }
#staff .person:hover .person__stage::before { transform: scale(1.08); opacity: 1; }
#staff .person h4 { position: relative; z-index: 1; margin: -18px 0 10px; font-size: 1.1rem; }
#staff .person__role { display: inline-block; padding: 6px 14px; border-radius: 999px; font-size: .9rem; font-weight: 600; color: var(--gold-600);
  background: #fff; border: 1px solid rgba(196,160,82,.45); box-shadow: 0 6px 14px -10px rgba(15,31,58,.35); transition: background .3s, color .3s, border-color .3s; }
#staff .person__role::before { display: none; }
#staff .person:hover .person__role { color: #fff; background: var(--navy-800); border-color: var(--navy-800); }
/* staggered entrance */
#staff .people--team .person { opacity: 0; transform: translateY(18px); transition: opacity .7s, transform .8s cubic-bezier(.22,1,.36,1); }
#staff .people--team.in .person, #staff .people--team.is-visible .person, #staff .people--team.is-in .person { opacity: 1; transform: none; }
#staff .people--team .person:nth-child(2) { transition-delay: .08s; } #staff .people--team .person:nth-child(3) { transition-delay: .16s; } #staff .people--team .person:nth-child(4) { transition-delay: .24s; }
@media (prefers-reduced-motion: reduce) { #staff .people--team .person { opacity: 1; transform: none; transition: none; } }
/* six team members: three per row on desktop and tablet, two on phones */
@media (min-width: 700px) { #staff .people--team { grid-template-columns: repeat(3, 1fr); max-width: 900px; gap: 44px 40px; } }
#staff .people--team .person:nth-child(5) { transition-delay: .32s; } #staff .people--team .person:nth-child(6) { transition-delay: .4s; }

/* team: all six on one line. Desktop: six equal columns; smaller screens: one swipeable row */
#staff .people--team { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); max-width: none; gap: 0 18px; align-items: start; }
#staff .person__stage { aspect-ratio: 5 / 5.6; }
#staff .person h4 { margin-top: -14px; font-size: 1rem; }
#staff .person__role { padding: 5px 11px; font-size: .8rem; line-height: 1.45; max-width: 100%; }
@media (max-width: 1100px) {
  #staff .people--team { display: flex; gap: 14px; overflow-x: auto; scroll-snap-type: x mandatory; padding: 4px 4px 14px; margin-inline: -4px; scrollbar-width: thin; scrollbar-color: rgba(196,160,82,.5) transparent; }
  #staff .people--team .person { flex: 0 0 clamp(150px, 30vw, 200px); scroll-snap-align: start; }
}

/* side founders: the collapsed panel left a hairline (its border + gold bar); hide it fully until the slide is active */

/* =========================================================
   Team as a chain: each person in a circle, circles linked by a gold line
   ========================================================= */
#staff .people--team { --cd: 150px; --gap: 18px; gap: 0 var(--gap); }
#staff .people--team .person { position: relative; }
#staff .person__stage, #staff .person:hover .person__stage { position: relative; z-index: 1; width: var(--cd); max-width: 100%; aspect-ratio: 1; height: auto; margin: 0 auto 16px; overflow: hidden; border-radius: 50%;
  background: radial-gradient(circle at 50% 30%, #FFFDF8 0%, #F3EBDB 60%, #E6D7B8 100%);
  box-shadow: 0 0 0 5px #fff, 0 0 0 6.5px var(--gold), 0 18px 30px -18px rgba(15,31,58,.45); transition: box-shadow .4s, transform .5s cubic-bezier(.22,1,.36,1); }
#staff .person__stage::before { display: none; }
#staff .person__stage img, #staff .person:hover .person__stage img { position: absolute; left: 0; top: 4%; width: 100%; height: 110%; transform: none; object-fit: cover; object-position: 50% 0;
  -webkit-mask-image: none; mask-image: none; filter: none; transition: transform .6s cubic-bezier(.22,1,.36,1); }
#staff .person:hover .person__stage { transform: translateY(-4px); box-shadow: 0 0 0 5px #fff, 0 0 0 8px var(--gold), 0 24px 36px -18px rgba(15,31,58,.5); }
#staff .person:hover .person__stage img { transform: scale(1.05); transform-origin: 50% 30%; }
#staff .person h4 { margin-top: 0; }
/* the chain link: from this circle's centre to the next one */
#staff .people--team .person::before { content: ""; position: absolute; z-index: 0; top: calc(var(--cd) / 2 - 1px); inset-inline-start: 50%; width: calc(100% + var(--gap)); height: 2px;
  background: linear-gradient(90deg, var(--gold-300), var(--gold), var(--gold-300)); transform: scaleX(0); transform-origin: right center; transition: transform .7s cubic-bezier(.22,1,.36,1); }
[dir="ltr"] #staff .people--team .person::before { transform-origin: left center; }
#staff .people--team .person:last-child::before { display: none; }
#staff .people--team.is-in .person::before { transform: scaleX(1); }
#staff .people--team .person:nth-child(2)::before { transition-delay: .15s; } #staff .people--team .person:nth-child(3)::before { transition-delay: .3s; }
#staff .people--team .person:nth-child(4)::before { transition-delay: .45s; } #staff .people--team .person:nth-child(5)::before { transition-delay: .6s; }
/* a small gold bead halfway along each link */
#staff .people--team .person::after { content: ""; position: absolute; z-index: 0; top: calc(var(--cd) / 2 - 4px); inset-inline-start: calc(100% + var(--gap) / 2 - 4px); width: 8px; height: 8px; border-radius: 50%; background: var(--gold); box-shadow: 0 0 0 3px var(--cream); }
#staff .people--team .person:last-child::after { display: none; }
@media (max-width: 1250px) { #staff .people--team { --cd: 128px; } }
@media (max-width: 1100px) { #staff .people--team { --cd: 130px; --gap: 14px; } #staff .people--team .person { flex-basis: 170px; } }
@media (prefers-reduced-motion: reduce) { #staff .people--team .person::before { transform: none; transition: none; } }

/* =========================================================
   One heading style everywhere: the title between two short gold rules
   (same as «فريق العمل»)
   ========================================================= */
.head h2, .about__text > h2, .contact__intro > h2 { display: inline-flex; align-items: center; gap: 18px; }
.head h2::before, .head h2::after, .about__text > h2::before, .about__text > h2::after, .contact__intro > h2::before, .contact__intro > h2::after {
  content: ""; flex: 0 0 auto; width: 56px; height: 1px; background: var(--gold); }
.staff__head h3 { font-size: clamp(1.8rem, 3.4vw, 2.6rem); line-height: 1.3; }
@media (max-width: 520px) {
  .head h2, .about__text > h2, .contact__intro > h2, .staff__head { gap: 12px; }
  .head h2::before, .head h2::after, .about__text > h2::before, .about__text > h2::after, .contact__intro > h2::before, .contact__intro > h2::after, .staff__head::before, .staff__head::after { width: 28px; }
}
.news__head h2 { display: inline-flex; align-items: center; gap: 18px; font-size: clamp(1.8rem, 3.4vw, 2.6rem); }
.news__head h2::before, .news__head h2::after { content: ""; flex: 0 0 auto; width: 56px; height: 1px; background: var(--gold); }
@media (max-width: 520px) { .news__head h2 { gap: 12px; } .news__head h2::before, .news__head h2::after { width: 28px; } }

/* footer: Omani fort at night (left), the links sit on the calm dark sky (right) */
.footer__body { background: linear-gradient(270deg, rgba(10,22,44,.94) 0%, rgba(12,26,52,.86) 38%, rgba(12,26,52,.45) 62%, rgba(12,26,52,.12) 100%),
  url('assets/footer-fort.webp') left 62% / cover no-repeat; }
[dir="ltr"] .footer__body { background: linear-gradient(90deg, rgba(10,22,44,.94) 0%, rgba(12,26,52,.82) 45%, rgba(12,26,52,.55) 100%),
  url('assets/footer-fort.webp') left 62% / cover no-repeat; }
@media (max-width: 800px) { .footer__body { background: linear-gradient(180deg, rgba(10,22,44,.9), rgba(10,22,44,.78)), url('assets/footer-fort.webp') 20% 60% / cover no-repeat; } }
/* footer: back to the original colour overlay (navy → blue → gold), over the fort image */
.footer__body { background: linear-gradient(260deg, rgba(8,26,54,.95) 0%, rgba(14,42,86,.88) 45%, rgba(26,71,140,.72) 75%, rgba(184,147,42,.78) 100%), url('assets/footer-fort.webp') left 62% / cover no-repeat; }
[dir="ltr"] .footer__body { background: linear-gradient(100deg, rgba(8,26,54,.95) 0%, rgba(14,42,86,.88) 45%, rgba(26,71,140,.72) 75%, rgba(184,147,42,.78) 100%), url('assets/footer-fort.webp') left 62% / cover no-repeat; }
@media (max-width: 800px) { .footer__body { background: linear-gradient(260deg, rgba(8,26,54,.95) 0%, rgba(14,42,86,.88) 45%, rgba(26,71,140,.72) 75%, rgba(184,147,42,.78) 100%), url('assets/footer-fort.webp') 20% 60% / cover no-repeat; } }
/* footer: mosque image restored (original look) */
.footer__body { background: linear-gradient(260deg, rgba(8,26,54,.95) 0%, rgba(14,42,86,.88) 45%, rgba(26,71,140,.72) 75%, rgba(184,147,42,.78) 100%), url('assets/footer-bg.webp') center top / cover no-repeat; }
[dir="ltr"] .footer__body { background: linear-gradient(100deg, rgba(8,26,54,.95) 0%, rgba(14,42,86,.88) 45%, rgba(26,71,140,.72) 75%, rgba(184,147,42,.78) 100%), url('assets/footer-bg.webp') center top / cover no-repeat; }
@media (max-width: 800px) { .footer__body { background: linear-gradient(260deg, rgba(8,26,54,.95) 0%, rgba(14,42,86,.88) 45%, rgba(26,71,140,.72) 75%, rgba(184,147,42,.78) 100%), url('assets/footer-bg.webp') center top / cover no-repeat; } }

/* =========================================================
   Consistency pass
   ========================================================= */
/* one warm light tone instead of the cool grey-blue surface */
:root { --surface: #F8F5EE; }
#news { background: var(--cream); }
/* form fields use the site font (they fell back to Arial) */
input, select, textarea, button { font-family: inherit; }
/* platform tags: darker text tone per platform for readable contrast (4.5:1+) */
.p-gold { --ct: #7A5B22; } .p-green { --ct: #3B6B52; } .p-blue { --ct: #365C8C; }
.prow__tag { color: var(--ct, var(--c)); border-color: color-mix(in srgb, var(--c) 60%, #fff); }
/* three button sizes only: small 44, regular 50, large 58 */
.btn, .prow__cta { min-height: 50px; padding-block: 0; padding-inline: 26px; display: inline-flex; align-items: center; justify-content: center; }
.btn--sm, .tcard__cta { min-height: 44px; padding-block: 0; padding-inline: 20px; }
.btn--lg, .hero .btn { min-height: 58px; padding-block: 0; padding-inline: 32px; }
/* small labels follow the scale (browser default "smaller" gave 13.3px) */
small { font-size: .8rem; }
/* one size for in-section card titles */
.vm__body h3, .svx__body h3, .feature h3 { font-size: clamp(1.45rem, 2.2vw, 1.85rem); }
/* last stray radius values */
.form, .about__media img, .about img { border-radius: 24px; }

/* =========================================================
   Consistency pass 2
   Two card families only:
   A) identity cards (vision, goal, track record, founder plate): ivory + gold top bar  (already set)
   B) content cards (services panel, platform rows, news, form): white, one border, one shadow, no gold bar
      (tender cards keep their platform-coloured frame on purpose)
   Section rhythm: white and ivory alternate
   ========================================================= */
:root { --card-line: rgba(196,160,82,.28); --card-shadow: 0 1px 3px rgba(15,31,58,.06); --card-shadow-hover: 0 18px 36px -22px rgba(15,31,58,.3); }
.svx__panel, .prow, .feature, .news__grid > *, .form { border: 1px solid var(--card-line); box-shadow: var(--card-shadow); }
.svx__panel::after { display: none; }
.prow:hover, .feature:hover, .news__grid > *:hover { box-shadow: var(--card-shadow-hover); }
.svx__tab[aria-selected="true"] { border-color: var(--card-line); box-shadow: var(--card-shadow-hover); }

/* white / ivory alternation */
.partners { background: var(--cream); }
.tenders[hidden] + .partners { background: transparent; }   /* right under the hero wave when there are no tenders */
#about { background: #fff; }
#services.svx-section { background: var(--cream); }
#products { background: #fff; }
#news { background: var(--cream); }
#staff.people-section { background: #fff; }
#contact { background: var(--cream); }
/* the strip above the footer wave matches the ivory contact section */
footer.footer { background: var(--cream); }
footer.footer { margin-top: 0; }
/* team row stays on one line whatever the number of members (added from the dashboard) */
@media (min-width: 1101px) {
  #staff .people--team { grid-template-columns: none; grid-auto-flow: column; grid-auto-columns: minmax(170px, 1fr); overflow-x: auto; scrollbar-width: thin; scrollbar-color: rgba(196,160,82,.5) transparent; padding-bottom: 10px; }
}
/* news: optional "read more" link next to the date */
.meta .news__link { margin-inline-start: auto; font-size: .9rem; font-weight: 600; color: var(--gold-600); text-decoration: none; }
.meta .news__link:hover { text-decoration: underline; }
.meta .news__link + .share { margin-inline-start: 10px; }

/* =========================================================
   2024 at a glance: calendar of 12 month tiles + featured milestone card
   light card with gold accents (no navy block)
   ========================================================= */
.year.yr { display: grid; grid-template-columns: minmax(280px, .9fr) 1.4fr; gap: 36px; align-items: stretch; margin-top: 56px; padding: 36px 40px;
  color: var(--ink); background: #fff; border: 1px solid var(--card-line); border-radius: 24px; box-shadow: var(--card-shadow); }
.year.yr::before, .year.yr::after { display: none; }
.yr__intro { display: flex; flex-direction: column; min-width: 0; }
.yr .year__num { font-size: 3.4rem; -webkit-text-stroke: 1.5px var(--gold); }
.yr h3 { margin: 8px 0 6px; font-size: 1.5rem; color: var(--navy-800); }
.yr__sum { margin: 0 0 22px; color: var(--muted); font-size: .95rem; }
.yr__card { position: relative; flex: 1; display: flex; flex-direction: column; padding: 22px 24px; border-radius: 18px;
  background: linear-gradient(180deg, #FFFDF8 0%, #F6F0E2 100%); border: 1px solid rgba(196,160,82,.4); overflow: hidden; }
.yr__card::after { content: ""; position: absolute; inset: 0 0 auto; height: 4px; background: linear-gradient(90deg, var(--gold-600), var(--gold), var(--gold-300)); }
.yr__card.is-in > * { animation: yrIn .45s cubic-bezier(.22,1,.36,1) both; }
.yr__card.is-in > :nth-child(2) { animation-delay: .05s; } .yr__card.is-in > :nth-child(3) { animation-delay: .1s; }
@keyframes yrIn { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
.yr__cardtop { display: flex; align-items: center; gap: 14px; margin-bottom: 14px; }
.yr__cardic { display: grid; place-items: center; width: 52px; height: 52px; flex-shrink: 0; border-radius: 14px; font-size: 1.5rem; color: var(--gold-300); background: var(--navy-800); }
.yr__cardic svg, .mo__ic svg { width: 1em; height: 1em; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.yr__cardtop > div { display: grid; gap: 4px; }
.yr__cardmonth { font-weight: 700; color: var(--navy-800); }
.yr__cardtag { justify-self: start; padding: 2px 10px; border-radius: 999px; font-size: .8rem; font-weight: 600; color: var(--gold-600); background: var(--gold-100); }
.yr__cardtitle { margin: 0 0 8px; font-size: 1.25rem; line-height: 1.5; color: var(--navy-800); }
.yr__cardtext { margin: 0; color: #4A5568; line-height: 1.85; }
.yr__nav { display: flex; align-items: center; gap: 10px; margin-top: 16px; }
.yr__btn { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; border: 1px solid var(--card-line); background: #fff; color: var(--navy-800); cursor: pointer; transition: background .25s, color .25s; }
.yr__btn:hover { background: var(--navy-800); color: #fff; }
.yr__btn svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
[dir="ltr"] .yr__btn svg { transform: scaleX(-1); }
.yr__count { min-width: 44px; text-align: center; font-weight: 700; color: var(--navy-800); }
.yr__bar { flex: 1; height: 4px; border-radius: 4px; background: var(--line); overflow: hidden; }
.yr__bar i { display: block; height: 100%; width: 0; border-radius: 4px; background: linear-gradient(90deg, var(--gold-600), var(--gold)); transition: width .5s cubic-bezier(.22,1,.36,1); }

.yr__months { display: grid; grid-template-columns: repeat(4, 1fr); grid-auto-rows: 1fr; gap: 12px; margin: 0; padding: 0; list-style: none; }
.yr__months > li { display: flex; }
.mo { position: relative; display: flex; flex-direction: column; justify-content: space-between; gap: 10px; width: 100%; min-height: 108px; padding: 14px; border-radius: 16px; text-align: start; font: inherit; }
.mo--off { color: #A9B0BB; background: repeating-linear-gradient(135deg, #FBFAF7 0 8px, #F6F3EC 8px 16px); border: 1px dashed #E3DDD0; }
.mo--off .mo__name { font-weight: 500; }
.mo--on { cursor: pointer; color: var(--navy-800); background: #fff; border: 1px solid rgba(196,160,82,.45); box-shadow: var(--card-shadow);
  transition: transform .35s cubic-bezier(.22,1,.36,1), box-shadow .35s, background .35s, color .35s, border-color .35s; }
.mo--on:hover { transform: translateY(-3px); box-shadow: var(--card-shadow-hover); border-color: var(--gold); }
.mo--on:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; }
.mo__name { font-weight: 700; font-size: 1rem; }
.mo__ic { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 10px; font-size: 1.1rem; color: var(--gold-600); background: var(--gold-100); transition: background .35s, color .35s; }
.mo__tag { font-size: .8rem; font-weight: 600; color: var(--gold-600); }
.mo--on.is-cur { color: #fff; background: var(--navy-800); border-color: var(--navy-800); box-shadow: 0 18px 32px -18px rgba(15,31,58,.6); transform: translateY(-3px); }
.mo--on.is-cur .mo__ic { color: var(--navy-900); background: var(--gold); }
.mo--on.is-cur .mo__tag { color: var(--gold-300); }
.mo--on.is-cur::after { content: ""; position: absolute; top: 12px; inset-inline-end: 12px; width: 8px; height: 8px; border-radius: 50%; background: var(--gold); box-shadow: 0 0 0 4px rgba(196,160,82,.25); }

@media (max-width: 1000px) {
  .year.yr { grid-template-columns: 1fr; padding: 28px 24px; gap: 24px; }
}
@media (max-width: 640px) {
  .yr__months { grid-template-columns: repeat(3, 1fr); gap: 8px; }
  .mo { min-height: 86px; padding: 10px; gap: 6px; }
  .mo__tag { display: none; }
  .mo__ic { width: 28px; height: 28px; font-size: .95rem; }
  .mo__name { font-size: .9rem; }
}
@media (prefers-reduced-motion: reduce) { .yr__card.is-in > * { animation: none; } .mo--on, .mo--on:hover, .mo--on.is-cur { transition: none; transform: none; } }

/* =========================================================
   Team chain: continuous auto-scroll (seamless loop)
   ========================================================= */
.tmarq { position: relative; overflow: hidden; padding: 18px 0 10px; margin-inline: -8px;
  -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 7%, #000 93%, transparent 100%); mask-image: linear-gradient(90deg, transparent 0, #000 7%, #000 93%, transparent 100%); }
#staff .people--team.is-marq { display: flex; width: max-content; max-width: none; margin: 0; padding: 0; gap: 0; overflow: visible; grid-template-columns: none; grid-auto-flow: initial;
  animation: tmarq var(--marq-dur, 27s) linear infinite; will-change: transform; }
#staff .people--team.is-marq .person { flex: 0 0 190px; margin-inline-end: var(--gap, 18px); opacity: 1; transform: none; transition: none; }
.tmarq:hover .people--team.is-marq, .tmarq:focus-within .people--team.is-marq { animation-play-state: paused; }
@keyframes tmarq { from { transform: translateX(0); } to { transform: translateX(50%); } }
[dir="ltr"] #staff .people--team.is-marq { animation-name: tmarq-ltr; }
@keyframes tmarq-ltr { from { transform: translateX(0); } to { transform: translateX(-50%); } }
@media (max-width: 640px) { #staff .people--team.is-marq .person { flex-basis: 150px; } }

/* calendar auto-advance: a gold timer fills along the bottom of the active month */
.mo--on.is-cur::before { content: ""; position: absolute; inset-inline: 14px; bottom: 9px; height: 3px; border-radius: 3px; background: rgba(255,255,255,.18); }
.yr__months.is-auto .mo--on.is-cur::before { background: linear-gradient(90deg, var(--gold), var(--gold-300)) 100% 0 / 0% 100% no-repeat, rgba(255,255,255,.18);
  animation: yrTimer var(--yr-step, 4200ms) linear forwards; }
[dir="ltr"] .yr__months.is-auto .mo--on.is-cur::before { background-position: 0 0; }
@keyframes yrTimer { to { background-size: 100% 100%; } }
@media (prefers-reduced-motion: reduce) { .yr__months.is-auto .mo--on.is-cur::before { animation: none; } }
/* footer: Nizwa Fort (same colour overlay as before); the crop keeps the round tower and the mountains */
.footer__body { background: linear-gradient(260deg, rgba(8,26,54,.95) 0%, rgba(14,42,86,.88) 45%, rgba(26,71,140,.72) 75%, rgba(184,147,42,.78) 100%), url('assets/footer-nizwa.webp?v=2') center 62% / cover no-repeat; }
[dir="ltr"] .footer__body { background: linear-gradient(100deg, rgba(8,26,54,.95) 0%, rgba(14,42,86,.88) 45%, rgba(26,71,140,.72) 75%, rgba(184,147,42,.78) 100%), url('assets/footer-nizwa.webp?v=2') center 62% / cover no-repeat; }
@media (max-width: 800px) { .footer__body { background: linear-gradient(260deg, rgba(8,26,54,.95) 0%, rgba(14,42,86,.88) 45%, rgba(26,71,140,.72) 75%, rgba(184,147,42,.78) 100%), url('assets/footer-nizwa.webp?v=2') 30% 60% / cover no-repeat; } }

/* footer image shown whole: fitted to the height below the wave, anchored left, right edge fading into navy.
   Layers: navy base < photo (::before) < colour overlay (::after) < content */
.footer__body, [dir="ltr"] .footer__body { background: #0F1F3A; }
@media (max-width: 800px) { .footer__body { background: #0F1F3A; } }
.footer__body::before { content: ""; position: absolute; left: 0; bottom: 0; top: 72px; z-index: 0; aspect-ratio: 1584 / 672; height: calc(100% - 72px); pointer-events: none;
  background: url('assets/footer-nizwa.webp?v=2') left bottom / cover no-repeat;
  -webkit-mask-image: linear-gradient(90deg, #000 72%, transparent 100%); mask-image: linear-gradient(90deg, #000 72%, transparent 100%); }
.footer__body::after { content: ""; position: absolute; inset: 0; z-index: 0; pointer-events: none;
  background: linear-gradient(260deg, rgba(8,26,54,.95) 0%, rgba(14,42,86,.88) 45%, rgba(26,71,140,.72) 75%, rgba(184,147,42,.78) 100%); }
[dir="ltr"] .footer__body::after { background: linear-gradient(100deg, rgba(8,26,54,.95) 0%, rgba(14,42,86,.88) 45%, rgba(26,71,140,.72) 75%, rgba(184,147,42,.78) 100%); }
.footer__body > * { position: relative; z-index: 1; }
@media (max-width: 800px) { .footer__body::before { top: 60px; height: calc(100% - 60px); } }
/* footer: wide 4:1 panorama fills the whole footer; anchored bottom-left so the fort stays whole (the extra width trimmed is sky on the right) */
.footer__body::before { inset: 0; top: 0; height: auto; aspect-ratio: auto; background: url('assets/footer-nizwa-wide.webp?v=1') left bottom / cover no-repeat;
  -webkit-mask-image: none; mask-image: none; }
@media (max-width: 800px) { .footer__body::before { top: 0; height: auto; background-position: 22% bottom; } }
/* TaaQud row (fallback without the server): olive green taken from the TaaQud logo (#263122) */
.p-blue { --c: #3D4F37; --tint: #F1F4EE; --ct: #33432E; }

/* =========================================================
   Founders, lighter: light section; navy kept only as an Omani arch behind the founder in focus,
   the founders on the sides stand on soft sand arches
   ========================================================= */
#team.section--cream { background: linear-gradient(180deg, #fff 0%, var(--cream) 100%); color: var(--ink); }
#team.section--cream .head h2 { color: var(--navy-800); }

/* founders: the arch is sized from the photo (which is square and overflows its box upwards), so it always wraps the whole figure with headroom above the head */

/* =========================================================
   Founders spotlight: stage (photo in a navy Omani arch) + details + picker
   ========================================================= */
.fx { --fx-gap: 56px; position: relative; display: grid; margin-top: 30px; }
.fx__slides { display: grid; }
.fx__slide { grid-area: 1 / 1; display: grid; grid-template-columns: 1fr 1fr; gap: var(--fx-gap); align-items: center; visibility: hidden; opacity: 0; transition: opacity .6s, visibility 0s .6s; }
.fx__slide.is-active { visibility: visible; opacity: 1; transition: opacity .6s; }
/* stage */
.fx__stage { position: relative; height: 540px; isolation: isolate; }
.fx__arch { position: absolute; z-index: -1; left: 50%; bottom: 0; width: 76%; height: 86%; transform: translateX(-50%); border-radius: 999px 999px 28px 28px;
  background: radial-gradient(ellipse 85% 70% at 50% 22%, #2A5591 0%, #1D3E6E 45%, #142C52 100%); box-shadow: 0 40px 70px -40px rgba(15,31,58,.6); }
.fx__arch::after { content: ""; position: absolute; inset: 0; border-radius: inherit; background: var(--lattice) center bottom / 70px; opacity: .1; filter: brightness(3);
  -webkit-mask-image: linear-gradient(to top, #000, transparent 70%); mask-image: linear-gradient(to top, #000, transparent 70%); }
.fx__arch--line { z-index: -2; background: none; border: 1.5px solid var(--gold); box-shadow: none; transform: translate(calc(-50% + 22px), -18px); }
[dir="rtl"] .fx__arch--line { transform: translate(calc(-50% - 22px), -18px); }
.fx__arch--line::after { display: none; }
.fx__num { position: absolute; z-index: -3; top: -10px; inset-inline-start: 0; font-size: 9rem; font-weight: 800; line-height: 1; color: transparent; -webkit-text-stroke: 1.5px rgba(196,160,82,.45); }
.fx__stage img { position: absolute; left: 50%; bottom: 0; width: 88%; height: auto; transform: translateX(-50%); filter: drop-shadow(0 26px 30px rgba(15,31,58,.35)); }
.fx__slide.is-active .fx__stage img { animation: fxRise .9s cubic-bezier(.22,1,.36,1) both; }
.fx__slide.is-active .fx__arch:not(.fx__arch--line) { animation: fxArch .9s cubic-bezier(.22,1,.36,1) both; }
@keyframes fxRise { from { opacity: 0; transform: translate(-50%, 28px) scale(.97); } to { opacity: 1; transform: translate(-50%, 0); } }
@keyframes fxArch { from { opacity: .4; height: 70%; } to { opacity: 1; height: 86%; } }
/* details */
.fx__info { padding-bottom: 210px; }
.fx__kicker { display: inline-flex; align-items: center; gap: 10px; font-size: .9rem; font-weight: 600; color: var(--gold-600); }
.fx__kicker::before { content: ""; width: 28px; height: 2px; border-radius: 2px; background: var(--gold); }
.fx__kicker i { font-style: normal; color: var(--muted); font-weight: 500; }
.fx__info h3 { margin: 12px 0 6px; font-size: clamp(2rem, 3.4vw, 2.75rem); line-height: 1.2; color: var(--navy-800); }
.fx__role { display: block; font-size: 1.1rem; font-weight: 600; color: var(--gold-600); }
.fx__bio { max-width: 520px; margin: 18px 0 22px; font-size: 1.05rem; line-height: 1.95; color: #4A5568; }
.fx__years { display: inline-flex; align-items: baseline; gap: 10px; padding: 10px 18px; border-radius: 14px; background: var(--gold-100); border: 1px solid rgba(196,160,82,.35); }
.fx__years b { font-size: 2rem; line-height: 1; font-weight: 800; color: var(--navy-800); }
.fx__years span { font-size: .95rem; font-weight: 600; color: var(--gold-600); }
.fx__slide.is-active .fx__info > * { animation: fxText .7s cubic-bezier(.22,1,.36,1) both; }
.fx__slide.is-active .fx__info > :nth-child(2) { animation-delay: .06s; } .fx__slide.is-active .fx__info > :nth-child(3) { animation-delay: .12s; }
.fx__slide.is-active .fx__info > :nth-child(4) { animation-delay: .18s; } .fx__slide.is-active .fx__info > :nth-child(5) { animation-delay: .24s; }
@keyframes fxText { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: none; } }
/* picker: 2 x 2 under the details */
.fx__pick { position: absolute; bottom: 0; inset-inline-start: calc(50% + var(--fx-gap) / 2); inset-inline-end: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.fx__chip { position: relative; overflow: hidden; display: flex; align-items: center; gap: 12px; padding: 10px 12px; border-radius: 16px; text-align: start; font: inherit; cursor: pointer;
  background: #fff; border: 1px solid var(--card-line); box-shadow: var(--card-shadow); transition: background .3s, border-color .3s, box-shadow .3s, transform .3s; }
.fx__chip:hover { border-color: var(--gold); transform: translateY(-2px); }
.fx__chip:focus-visible { outline: 2px solid var(--gold); outline-offset: 2px; }
.fx__av { flex-shrink: 0; width: 48px; height: 48px; border-radius: 50%; overflow: hidden; background: radial-gradient(circle at 50% 30%, #FFFDF8, #E6D7B8); box-shadow: 0 0 0 2px #fff, 0 0 0 3px rgba(196,160,82,.5); }
.fx__av img { width: 100%; height: 130%; object-fit: cover; object-position: 50% 0; }
.fx__who { display: grid; min-width: 0; }
.fx__who b { font-size: .95rem; color: var(--navy-800); }
.fx__who small { font-size: .78rem; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.fx__chip.is-active { background: var(--navy-800); border-color: var(--navy-800); box-shadow: 0 16px 30px -18px rgba(15,31,58,.6); }
.fx__chip.is-active .fx__who b { color: #fff; } .fx__chip.is-active .fx__who small { color: var(--gold-300); }
.fx__chip.is-active .fx__av { box-shadow: 0 0 0 2px var(--navy-800), 0 0 0 3.5px var(--gold); }
.fx__timer { position: absolute; inset-inline: 0; bottom: 0; height: 3px; background: transparent; }
.fx.is-auto .fx__chip.is-active .fx__timer { background: linear-gradient(90deg, var(--gold), var(--gold-300)) 100% 0 / 0% 100% no-repeat; animation: fxTimer var(--fx-step, 7000ms) linear forwards; }
[dir="ltr"] .fx.is-auto .fx__chip.is-active .fx__timer { background-position: 0 0; }
@keyframes fxTimer { to { background-size: 100% 100%; } }
/* smaller screens: stage, details, then the picker as a row */
@media (max-width: 900px) {
  .fx { --fx-gap: 24px; }
  .fx__slide { grid-template-columns: 1fr; gap: 16px; }
  .fx__stage { height: 400px; max-width: 420px; width: 100%; margin: 0 auto; }
  .fx__num { font-size: 6rem; }
  .fx__info { padding-bottom: 0; text-align: center; }
  .fx__bio { margin-inline: auto; }
  .fx__pick { position: static; display: flex; gap: 8px; margin-top: 22px; overflow-x: auto; padding-bottom: 6px; scrollbar-width: none; }
  .fx__chip { flex: 0 0 auto; }
  .fx__who small { display: none; }
}
@media (prefers-reduced-motion: reduce) { .fx__slide, .fx__slide.is-active { transition: none; } .fx__slide.is-active *, .fx__slide.is-active .fx__stage img { animation: none !important; } }

/* platform rows (fallback without the server): colours taken from each logo */
.p-gold  { --c: #E8A317; --tint: #FFF6DE; --ct: #8A5F0B; }   /* SafaQat: amber from the logo */
.p-green { --c: #1F3FD1; --tint: #EEF1FD; --ct: #1A35AD; }   /* TamQeen: royal blue from the logo */

/* =========================================================
   Request form: header, icon fields, live states, phone with country, success panel
   ========================================================= */
.qform { padding: 0; overflow: hidden; }
.qform__head { display: flex; align-items: center; gap: 14px; padding: 22px 28px; background: linear-gradient(180deg, #FFFDF8, #F6F0E2); border-bottom: 1px solid var(--card-line); }
.qform__ic { display: grid; place-items: center; width: 48px; height: 48px; flex-shrink: 0; border-radius: 14px; font-size: 1.35rem; color: var(--gold-300); background: var(--navy-800); }
.qform__ic svg, .f__ic svg, .f__ok svg, .qform__note svg, .qform__doneic svg { width: 1em; height: 1em; fill: none; stroke: currentColor; stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; }
.qform__head h3 { margin: 0 0 2px; font-size: 1.25rem; color: var(--navy-800); }
.qform__head p { margin: 0; font-size: .9rem; color: var(--muted); }
.qform__body { padding: 26px 28px 24px; }
.qform .grid2 { gap: 18px 18px; }
.qform .f { gap: 7px; }
.qform .f label { display: flex; align-items: baseline; gap: 6px; font-size: .92rem; font-weight: 600; color: var(--navy-800); }
.qform .req { color: var(--gold-600); font-weight: 700; }
.qform .opt { font-size: .78rem; font-weight: 500; color: var(--muted); }
/* control with icon + validity tick */
.f__ctl { position: relative; display: flex; align-items: stretch; }
.f__ic { position: absolute; top: 0; inset-inline-start: 14px; height: 52px; display: grid; place-items: center; font-size: 1.1rem; color: #9AA3B2; pointer-events: none; transition: color .25s; z-index: 1; }
.qform .f input, .qform .f select, .qform .f textarea { min-height: 52px; padding-inline-start: 44px; padding-inline-end: 40px; border-radius: 12px; border: 1.5px solid var(--line); background: #FCFBF8;
  font-size: 1rem; color: var(--ink); transition: border-color .25s, box-shadow .25s, background .25s; }
.qform .f textarea { padding-top: 14px; resize: vertical; min-height: 130px; line-height: 1.7; }
.qform .f select { padding-inline-end: 40px; }
.qform .f :is(input, select, textarea):hover { border-color: #CFC7B5; }
.qform .f :is(input, select, textarea):focus { outline: 0; border-color: var(--gold); background: #fff; box-shadow: 0 0 0 4px rgba(196,160,82,.18); }
.qform .f:focus-within .f__ic { color: var(--gold-600); }
.f__ok { position: absolute; top: 0; inset-inline-end: 14px; height: 52px; display: grid; place-items: center; font-size: 1.05rem; color: #1E8A55; opacity: 0; transform: scale(.6); transition: opacity .25s, transform .3s; pointer-events: none; }
.f.is-ok .f__ok { opacity: 1; transform: none; }
.f.is-ok :is(input, textarea) { border-color: #9ED3B5; }
.f.is-bad :is(input, textarea, select) { border-color: #D64545; background: #FFF8F7; }
.f.is-bad .f__ic { color: #D64545; }
.qform .f__e { display: flex; align-items: center; gap: 6px; min-height: 0; font-size: .82rem; font-weight: 500; color: #C02626; }
.qform .f__e:not(:empty)::before { content: "!"; display: grid; place-items: center; width: 16px; height: 16px; flex-shrink: 0; border-radius: 50%; font-size: .7rem; font-weight: 800; color: #fff; background: #D64545; }
.f__hint { font-size: .8rem; color: var(--muted); }
.f__hint--count { align-self: flex-end; margin-top: -2px; }
/* phone: country selector joined to the number */
.f__ctl--tel { gap: 0; }
.qform .f__ctl--tel select { flex: 0 0 auto; width: auto; max-width: 52%; padding-inline: 14px 34px; border-start-end-radius: 0; border-end-end-radius: 0; border-inline-end-width: 0; font-size: .9rem; font-weight: 600; color: var(--navy-800); background-color: var(--surface); }
.qform .f__ctl--tel input { flex: 1; min-width: 0; padding-inline: 16px 40px; border-start-start-radius: 0; border-end-start-radius: 0; letter-spacing: .03em; }
[dir="rtl"] .qform .f__ctl--tel input { text-align: right; }
.f__ctl--tel .f__ok { inset-inline-end: 14px; }
[dir="rtl"] .f__ctl--tel .f__ok { inset-inline-end: auto; left: 14px; }
/* footer */
.qform__foot { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; margin-top: 22px; padding-top: 20px; border-top: 1px dashed var(--card-line); }
.qform__send { min-width: 220px; }
.qform.is-sending .qform__send { opacity: .7; pointer-events: none; }
.qform.is-sending .qform__send .arrow { animation: qspin 1s linear infinite; }
@keyframes qspin { to { transform: rotate(-360deg); } }
.qform__note { display: inline-flex; align-items: center; gap: 8px; margin: 0; font-size: .84rem; color: var(--muted); }
.qform__note svg { color: var(--gold-600); }
.qform .form__msg:empty { display: none; }
.qform .form__msg { margin-top: 12px; }
/* success */
.qform__done { display: grid; justify-items: center; gap: 10px; padding: 44px 28px 40px; text-align: center; outline: none; }
.qform__done:not([hidden]) { animation: fxText .6s cubic-bezier(.22,1,.36,1) both; }
.qform__doneic { display: grid; place-items: center; width: 72px; height: 72px; border-radius: 50%; font-size: 2rem; color: #fff; background: linear-gradient(135deg, #2BA36A, #1E8A55); box-shadow: 0 0 0 8px #E4F4EC; margin-bottom: 6px; }
.qform__done h3 { margin: 0; font-size: 1.4rem; color: var(--navy-800); }
.qform__done p { max-width: 420px; margin: 0 0 10px; color: #4A5568; line-height: 1.8; }
@media (max-width: 640px) {
  .qform__head, .qform__body { padding-inline: 18px; }
  .qform .grid2 { grid-template-columns: 1fr; }
  .qform__send { width: 100%; }
}
@media (prefers-reduced-motion: reduce) { .qform.is-sending .qform__send .arrow, .qform__done:not([hidden]) { animation: none; } }
.qform .f__ctl--tel select { flex: 0 0 210px; max-width: 48%; }
/* the success panel and the form body really disappear when hidden (display:grid above would otherwise win over [hidden]) */
.qform__done[hidden], .qform__body[hidden] { display: none !important; }

/* vision · goal · values · track record: four cards in one row on wide screens */
.vm { grid-template-columns: repeat(4, 1fr); }
.vm__values { display: grid; gap: 12px; margin: 4px 0 0; padding: 0; list-style: none; }
.vm__values li { display: flex; align-items: flex-start; gap: 10px; }
.vm__vic { flex-shrink: 0; display: grid; place-items: center; width: 22px; height: 22px; margin-top: 3px; border-radius: 50%; font-size: .8rem; color: var(--gold-600); background: var(--gold-100); }
.vm__vic svg { width: 1em; height: 1em; fill: none; stroke: currentColor; stroke-width: 2.6; stroke-linecap: round; stroke-linejoin: round; }
.vm__values li > span:last-child { display: grid; gap: 1px; }
.vm__values b { font-size: .98rem; color: var(--navy-800); }
.vm__values li > span:last-child > span { font-size: .88rem; line-height: 1.65; color: #4A5568; }
@media (max-width: 1280px) { .vm { grid-template-columns: repeat(2, 1fr); } .vm__card--record { grid-column: auto; } }
@media (max-width: 700px) { .vm { grid-template-columns: 1fr; } }
/* four cards read better as a balanced 2 x 2 grid than as four narrow columns */
.vm { grid-template-columns: repeat(2, 1fr); }
@media (max-width: 700px) { .vm { grid-template-columns: 1fr; } }

/* vision · goal · values · track record on one line (compact so the four cards stay balanced) */
.vm { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 18px; }
.vm__card, .vm__card:hover, .vm__card:nth-child(2) { padding: 30px 22px 24px; }
.vm__ic { width: 50px; height: 50px; margin-bottom: 18px; border-radius: 15px; font-size: 1.35rem; }
.vm__body h3 { margin-bottom: 12px; padding-bottom: 12px; font-size: 1.35rem; }
.vm__body p { font-size: .95rem; line-height: 1.85; }
.vm__values { gap: 10px; }
.vm__values b { font-size: .92rem; }
.vm__values li > span:last-child > span { font-size: .82rem; line-height: 1.6; }
.vm__card--record .record__list li, .vm__card--record .record__list li:first-child { gap: 10px; padding: 9px 0; }
.vm__card--record .record__fig { min-width: 58px; }
.vm__card--record .record__fig b { font-size: 1.3rem; }
.vm__card--record .record__list p { font-size: .84rem; line-height: 1.6; }
@media (max-width: 1100px) { .vm { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 640px) { .vm { grid-template-columns: 1fr; } }
/* «جهات عملنا معها» uses the same heading style as the other sections: navy, same size, two short gold rules */
.partners .label { justify-content: center; gap: 18px; max-width: none; margin: 8px auto 26px; font-size: clamp(1.8rem, 3.4vw, 2.6rem); font-weight: 700; line-height: 1.3; color: var(--navy-800); }
.partners .label::before, .partners .label::after { flex: 0 0 auto; width: 56px; height: 1px; background: var(--gold); transform: none; }
@media (max-width: 520px) { .partners .label { gap: 12px; } .partners .label::before, .partners .label::after { width: 28px; } }

/* =========================================================
   Accessibility tools: floating button + panel
   ========================================================= */
.ax-btn { position: fixed; bottom: 24px; inset-inline-end: 24px; z-index: 95; width: 54px; height: 54px; display: grid; place-items: center; border-radius: 50%;
  color: #fff; background: #1F3FD1; border: 2px solid #fff; box-shadow: 0 10px 24px -8px rgba(15,31,58,.5); cursor: pointer; transition: transform .3s, background .3s; }
.ax-btn svg { width: 28px; height: 28px; fill: currentColor; stroke: currentColor; stroke-width: 2; }
.ax-btn:hover { transform: scale(1.06); background: var(--navy-800); }
.ax-btn:focus-visible { outline: 3px solid var(--gold); outline-offset: 3px; }
.ax-btn.is-on::after { content: ""; position: absolute; top: 2px; inset-inline-end: 2px; width: 12px; height: 12px; border-radius: 50%; background: var(--gold); border: 2px solid #fff; }
.ax { position: fixed; bottom: 92px; inset-inline-end: 24px; z-index: 96; width: min(380px, calc(100vw - 32px)); max-height: min(640px, calc(100vh - 120px)); display: flex; flex-direction: column;
  border-radius: 22px; background: #fff; border: 1px solid var(--line); box-shadow: 0 30px 60px -20px rgba(15,31,58,.45); overflow: hidden; animation: axIn .3s cubic-bezier(.22,1,.36,1); }
.ax[hidden] { display: none; }
@keyframes axIn { from { opacity: 0; transform: translateY(12px) scale(.98); } to { opacity: 1; transform: none; } }
.ax__head { display: flex; align-items: center; justify-content: space-between; padding: 16px 20px; border-bottom: 1px solid var(--line); }
.ax__head h2 { margin: 0; font-size: 1.15rem; color: var(--navy-800); }
.ax__close { display: grid; place-items: center; width: 38px; height: 38px; border-radius: 10px; border: 1px solid var(--line); background: #fff; color: var(--navy-800); cursor: pointer; }
.ax__close svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; }
.ax__body { overflow-y: auto; padding: 8px 16px 12px; }
.ax__group { margin: 14px 4px 8px; font-size: .78rem; font-weight: 700; letter-spacing: .06em; color: var(--muted); text-transform: uppercase; }
.ax__row { margin-bottom: 8px; padding: 12px 14px; border-radius: 14px; background: #F4F6FB; }
.ax__line { display: flex; align-items: center; gap: 12px; }
.ax__ic { display: grid; place-items: center; width: 22px; font-size: 1.15rem; color: var(--navy-800); }
.ax__ic svg { width: 1em; height: 1em; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.ax__name { flex: 1; font-weight: 600; color: var(--navy-800); }
.ax__desc { margin: 6px 0 0; font-size: .82rem; line-height: 1.6; color: var(--muted); }
.ax__steps { display: flex; gap: 8px; }
.ax__step { width: 44px; height: 44px; border-radius: 12px; border: 1px solid var(--line); background: #fff; font-size: 1.3rem; color: var(--navy-800); cursor: pointer; }
.ax__step:disabled { opacity: .4; cursor: default; }
.ax__switch { position: relative; width: 52px; height: 30px; flex-shrink: 0; border-radius: 999px; border: 0; background: #D5DAE5; cursor: pointer; transition: background .25s; }
.ax__switch i { position: absolute; top: 3px; inset-inline-start: 3px; width: 24px; height: 24px; border-radius: 50%; background: #fff; box-shadow: 0 1px 3px rgba(0,0,0,.25); transition: inset-inline-start .25s; }
.ax__switch[aria-checked="true"] { background: #1F3FD1; }
.ax__switch[aria-checked="true"] i { inset-inline-start: 25px; }
.ax__switch:focus-visible, .ax__step:focus-visible, .ax__close:focus-visible, .ax__reset:focus-visible { outline: 3px solid var(--gold); outline-offset: 2px; }
.ax__foot { padding: 12px 16px; border-top: 1px solid var(--line); }
.ax__reset { width: 100%; min-height: 44px; border-radius: 12px; border: 1px solid var(--line); background: #fff; font: inherit; font-weight: 600; color: var(--navy-800); cursor: pointer; }
.ax__reset:hover { border-color: var(--navy-800); }
@media (max-width: 520px) { .ax { inset-inline: 16px; width: auto; bottom: 88px; } .ax-btn { bottom: 18px; inset-inline-end: 18px; } }

/* ---- what each option does ---- */
/* high contrast: darker text, firmer borders, no faint greys */
html.ax-contrast { --muted: #1F2937; --line: #8A94A6; --card-line: rgba(15,31,58,.55); }
html.ax-contrast :is(.vm__body p, .fx__bio, .svx__body > p, .yr__cardtext, .record__list p, .prow p, .post p, .feature p, .tcard__sum, .about__lead, .f__hint, .qform__note, .vm__values li > span:last-child > span) { color: #111827 !important; }
html.ax-contrast :is(.fx__role, .mo__tag, .person__role, .svx__step, .yr__cardtag, .fx__kicker) { color: #5C420C !important; }
html.ax-contrast :is(input, select, textarea) { border-color: #4B5563 !important; }
/* plainer typeface + wider letter/word spacing */
html.ax-plain body, html.ax-plain body :is(h1, h2, h3, h4, p, a, span, b, li, button, input, select, textarea, label, small, time) { font-family: Tahoma, "Segoe UI", Arial, sans-serif !important; letter-spacing: .02em; word-spacing: .14em; }
/* line spacing */
html.ax-spacing body :is(p, li, dd, .fx__bio, .yr__cardtext) { line-height: 2.2 !important; }
/* highlighted links */
html.ax-links a:not(.btn):not(.brand) { text-decoration: underline !important; text-underline-offset: 3px; text-decoration-thickness: 2px; }
html.ax-links a { outline: 2px solid #F5B400; outline-offset: 2px; border-radius: 4px; }
/* reduced motion */
html.ax-still *, html.ax-still *::before, html.ax-still *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; scroll-behavior: auto !important; }
html.ax-still .tmarq .people--team.is-marq { animation: none !important; }
html.ax-still .tmarq { overflow-x: auto; }
/* large cursor */
html.ax-cursor, html.ax-cursor * { cursor: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='40' height='40' viewBox='0 0 24 24'%3E%3Cpath d='M5 3l14 7-6 2-2 6z' fill='%23000' stroke='%23fff' stroke-width='1.5' stroke-linejoin='round'/%3E%3C/svg%3E") 6 4, auto !important; }
/* reading guide */
.ax-guide { position: fixed; top: 0; left: 0; right: 0; z-index: 94; height: 44px; pointer-events: none; display: none;
  background: rgba(245,180,0,.12); border-top: 2px solid rgba(245,180,0,.8); border-bottom: 2px solid rgba(245,180,0,.8); }
html.ax-guide .ax-guide { display: block; }
/* accessibility tools in the site palette (same family as the back-to-top button: navy + gold ring) */
.ax-btn { color: #fff; background: var(--navy-800); border: 2px solid var(--gold); box-shadow: 0 10px 24px -8px rgba(15,31,58,.5); }
.ax-btn:hover { background: var(--gold); color: var(--navy-900); border-color: var(--gold); }
.ax-btn.is-on::after { background: var(--gold-300); border-color: var(--navy-800); }
.ax { border-color: var(--card-line); }
.ax__head { background: linear-gradient(180deg, #FFFDF8, #F6F0E2); border-bottom-color: var(--card-line); }
.ax__group { color: var(--gold-600); }
.ax__row { background: var(--cream); border: 1px solid rgba(196,160,82,.18); }
.ax__ic { color: var(--gold-600); }
.ax__switch { background: #DDD6C6; }
.ax__switch[aria-checked="true"] { background: var(--navy-800); }
.ax__switch[aria-checked="true"] i { background: var(--gold-300); }
.ax__step:hover:not(:disabled), .ax__close:hover { border-color: var(--gold); }
.ax__reset { border-color: var(--card-line); }
.ax__reset:hover { border-color: var(--navy-800); background: var(--navy-800); color: #fff; }

/* headings may wrap on narrow screens (long English titles) while keeping the gold rules */
.head h2, .news__head h2, .partners .label, .staff__head { white-space: normal; text-wrap: balance; }
@media (max-width: 520px) { .partners .label { font-size: 1.6rem; } }
.prow__logo { gap: 14px; }
/* phones: long headings wrap, so the side rules become one short gold line under the heading (both languages) */
@media (max-width: 600px) {
  .head h2, .news__head h2, .about__text > h2, .contact__intro > h2, .partners .label { display: flex; flex-direction: column; align-items: center; gap: 10px; text-align: center; }
  .about__text > h2, .contact__intro > h2 { align-items: flex-start; text-align: start; }
  .head h2::before, .news__head h2::before, .about__text > h2::before, .contact__intro > h2::before, .partners .label::before { display: none; }
  .head h2::after, .news__head h2::after, .about__text > h2::after, .contact__intro > h2::after, .partners .label::after { order: 2; width: 44px; height: 2px; border-radius: 2px; }
  .staff__head { flex-direction: column; gap: 10px; }
  .staff__head::before { display: none; }
  .staff__head::after { order: 2; width: 44px; height: 2px; border-radius: 2px; }
}

/* phones: keep the copyright line clear of the two floating buttons in the bottom corners */
@media (max-width: 600px) { .footer__bar { padding-bottom: 84px; } }

/* tablets: the four founder chips sit in a 2 × 2 grid instead of a row that gets cut off */
@media (min-width: 601px) and (max-width: 1000px) {
  .fx__pick { display: grid; grid-template-columns: 1fr 1fr; overflow: visible; }
  .fx__chip { min-width: 0; }
}

/* platform button fits its column in both languages (same width for every platform, never wider than the column) */
.prow__brand { min-width: 0; }
.prow__cta { width: 100%; max-width: 196px; padding-inline: 18px; gap: 8px; font-size: .95rem; }
.prow__cta .arrow { flex: 0 0 auto; }
@media (max-width: 900px) { .prow__cta { width: auto; max-width: none; } }
@media (min-width: 901px) and (max-width: 1200px) { .prow__brand { padding-inline: 14px; } .prow__cta { padding-inline: 14px; font-size: .9rem; } }

/* about photo: the "2023" badge hangs above the top corner so it no longer covers the people's faces */
.about__badge { top: -30px; padding: 12px 18px; }
.about__badge strong { font-size: 1.7rem; }
@media (max-width: 900px) { .about__media { margin-top: 30px; } }

/* social links rail: fixed to the right edge, centred vertically, in both languages */
.srail { position: fixed; right: 0; top: 50%; z-index: 80; display: flex; flex-direction: column; gap: 4px; padding: 8px 6px;
  transform: translateY(-50%); border-radius: 16px 0 0 16px; background: var(--navy-800); border: 1px solid rgba(201,168,106,.45); border-right: 0;
  box-shadow: -10px 14px 30px -14px rgba(15,31,58,.55); }
.srail a { width: 40px; height: 40px; display: grid; place-items: center; border-radius: 12px; color: var(--gold-300); transition: background .2s, color .2s, transform .2s; }
.srail a:hover { background: var(--gold); color: var(--navy-800); transform: translateX(-2px); }
.srail a:focus-visible { outline: 2px solid var(--gold); outline-offset: 2px; }
.srail svg { width: 19px; height: 19px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.srail svg.is-fill { fill: currentColor; stroke: none; width: 17px; height: 17px; }
.srail a + a::before { content: none; }
/* phones: the same links stay in the footer, the screen is too narrow for an edge rail */
@media (max-width: 600px) { .srail { display: none; } }   /* see 1024px below */
/* mid-size screens: leave a gutter for the rail so it never sits on top of content */
@media (min-width: 1025px) and (max-width: 1399px) { .container { width: min(1240px, 100% - 132px); } header .container { width: min(1240px, 100% - 32px); } }
@media (max-width: 1024px) { .srail { display: none; } }

/* a heading that does not fit on one line between its side rules: one short gold line under it (set by app.js) */
.h-stack { display: flex !important; flex-direction: column; align-items: center; gap: 12px !important; text-align: center; }
.about__text > h2.h-stack, .contact__intro > h2.h-stack { align-items: flex-start; text-align: start; }
.h-stack::before { display: none !important; }
.h-stack::after { order: 2; width: 48px !important; height: 2px !important; border-radius: 2px; transform: none !important; }

/* hero fits the first screen: title, buttons and the key figures are all visible on opening */
.hero { min-height: 100svh; align-items: center; }
.hero__content { padding: calc(var(--header-h) + clamp(28px, 7vh, 90px)) 0 clamp(96px, 12vw, 176px); }
.hero__title { max-width: 980px; margin: 0 0 14px; }
.hero__actions { margin-top: 26px; }
.hero__facts { margin-top: clamp(28px, 5vh, 48px); }
@media (max-height: 820px) and (min-width: 641px) {
  .hero__title { font-size: clamp(2.2rem, 4.6vw, 3.5rem); }
  .hero__facts strong { font-size: clamp(2.2rem, 4vw, 3.1rem); }
  .hero__lead { font-size: 1rem; }
}
/* phones: the three figures sit side by side in one row */
@media (max-width: 640px) {
  .hero__content { padding-top: calc(var(--header-h) + 20px); }
  .hero__facts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; margin-top: 28px; }
  .hero__facts li { padding-inline-start: 10px; border-inline-start-width: 2px; }
  .hero__facts strong { font-size: clamp(1.5rem, 7vw, 1.9rem); }
  .hero__facts li > span { font-size: .78rem; line-height: 1.35; }
}

/* tenders: one row of cards that scrolls sideways, with arrows on both sides */
.trow { position: relative; }
.tgrid { grid-template-columns: none; grid-auto-flow: column; grid-auto-columns: calc((100% - 44px) / 3); align-items: stretch;
  overflow-x: auto; overscroll-behavior-x: contain; scroll-snap-type: x mandatory; scrollbar-width: none; padding: 8px 2px 16px; margin: -8px -2px -16px; }
.tgrid::-webkit-scrollbar { display: none; }
.tgrid > * { scroll-snap-align: start; min-width: 0; }
.tgrid > .tempty { grid-column: auto; width: 100%; }
@media (max-width: 1100px) { .tgrid { grid-template-columns: none; grid-auto-columns: calc((100% - 22px) / 2); } }
@media (max-width: 680px) { .tgrid { grid-template-columns: none; grid-auto-columns: 86%; gap: 14px; } }
.trow__nav { position: absolute; top: 50%; z-index: 3; width: 46px; height: 46px; display: grid; place-items: center; border-radius: 50%;
  color: #fff; background: var(--navy-800); border: 2px solid var(--gold); box-shadow: 0 12px 26px -10px rgba(15,31,58,.55);
  transform: translateY(-50%); cursor: pointer; transition: background .2s, color .2s, opacity .2s; }
.trow__nav--prev { inset-inline-start: -23px; }
.trow__nav--next { inset-inline-end: -23px; }
.trow__nav svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
[dir="rtl"] .trow__nav--prev svg, [dir="ltr"] .trow__nav--next svg { transform: scaleX(-1); }
.trow__nav:hover:not(:disabled) { background: var(--gold); color: var(--navy-800); }
.trow__nav:focus-visible { outline: 3px solid var(--gold-300); outline-offset: 3px; }
.trow__nav:disabled { opacity: .35; cursor: default; }
.trow__nav[hidden] { display: none; }
/* where the side gutter is narrow (social rail, phones) the arrows sit over the card edges */
@media (max-width: 1399px) { .trow__nav--prev { inset-inline-start: -10px; } .trow__nav--next { inset-inline-end: -10px; } }
@media (max-width: 680px) { .trow__nav { width: 40px; height: 40px; } .trow__nav--prev { inset-inline-start: -6px; } .trow__nav--next { inset-inline-end: -6px; } }

/* the wave under the hero starts just below the first screen, so it is not seen on opening */
.hero { min-height: calc(100svh + clamp(80px, 11vw, 160px)); }
.hero__content { padding-bottom: calc(clamp(80px, 11vw, 160px) + clamp(96px, 12vw, 176px)); }

/* track record: three sentences, each with a small gold marker */
.vm__card--record .record__list li, .vm__card--record .record__list li:first-child { position: relative; padding-inline-start: 18px; }
.vm__card--record .record__list li::before { content: ""; position: absolute; inset-inline-start: 0; top: calc(9px + .8em); width: 7px; height: 7px; border-radius: 50%; background: var(--gold); }
.vm__card--record .record__list li:first-child::before { top: calc(2px + .8em); }
/* platform button: the longer English label fits on two lines if the column is narrow */
.prow__cta { white-space: normal; text-align: center; line-height: 1.25; }

/* platform photo: blends into the card on the text side (same in both languages), the figure card overlaps its edge */
.prow__img img { -webkit-mask-image: linear-gradient(to left, transparent 0, rgba(0,0,0,.35) 18%, #000 48%); mask-image: linear-gradient(to left, transparent 0, rgba(0,0,0,.35) 18%, #000 48%); }
[dir="ltr"] .prow__img img { -webkit-mask-image: linear-gradient(to right, transparent 0, rgba(0,0,0,.35) 18%, #000 48%); mask-image: linear-gradient(to right, transparent 0, rgba(0,0,0,.35) 18%, #000 48%); }

/* phone: read like a phone number in both languages, code first then the number ( +968 | 9123 4567 ) */
.qform .f__ctl--tel select { flex: 0 0 150px; width: 150px; min-width: 0; max-width: 46%; text-overflow: ellipsis; font-variant-numeric: tabular-nums; text-align: left; }
.qform .f__ctl--tel input, [dir="rtl"] .qform .f__ctl--tel input { text-align: left; font-size: 1.05rem; letter-spacing: .06em; font-variant-numeric: tabular-nums; }
[dir="rtl"] .f__ctl--tel[dir="ltr"] .f__ok { left: auto; right: 14px; }
@media (max-width: 480px) { .qform .f__ctl--tel select { flex-basis: 128px; width: 128px; } }
/* the phone hint shows only while the phone field is in use */
.f__ctl--tel + .f__hint { display: block; max-height: 0; margin-top: 0; overflow: hidden; opacity: 0; transition: max-height .2s ease, opacity .2s ease, margin-top .2s ease; }
.f__ctl--tel:focus-within + .f__hint { max-height: 3em; margin-top: 6px; opacity: 1; }
