/* =====================================================================
   MECHATRONICS ENGINEERING (ME) — customized-style.css
   Visual system for the ME website. Built on Bootstrap 5.3 (grid, utilities).
   Sections:
   01 Tokens            08 Page hero           15 Cards
   02 Base & type       09 Breadcrumb          16 Partners marquee
   03 Buttons           10 Sections & titles   17 Video facade
   04 Header / top bar  11 Reveal animations   18 Forms
   05 Navbar & menu     12 Counters & stats    19 Footer
   06 Search            13 Preloader           20 Utilities / back-to-top
   07 Language / RTL    14 Scroll progress     21 Reduced motion
   ===================================================================== */

/* ---------- 01 Tokens ---------- */
:root {
  /* Brand — the live site's colours, which match the logo */
  --me-sky: #0099ff;          /* logo light blades (.cls-1) */
  --me-blue: #1f5cc2;         /* site secondary */
  --me-indigo: #333399;       /* logo dark blades (.cls-2) */
  --me-sky-hover: #46b5ff;
  --me-sky-deep: #0077d6;     /* sky that passes 4.5:1 for small text on white */
  --me-gradient: linear-gradient(90deg, var(--me-sky) 0%, var(--me-blue) 100%);
  --me-gradient-135: linear-gradient(135deg, var(--me-sky) 0%, var(--me-blue) 55%, var(--me-indigo) 100%);
  --me-gradient-text: linear-gradient(90deg, #36b0ff 0%, var(--me-sky) 40%, #5b8ef0 100%);
  /* footer ground — also used for the blue bands on product pages */
  --me-gradient-footer: linear-gradient(135deg, var(--me-sky) 0%, var(--me-blue) 100%);
  --me-gradient-footer-glow: radial-gradient(60% 80% at 0% 0%, rgba(255,255,255,.12), transparent 60%), radial-gradient(50% 70% at 100% 100%, rgba(51,51,153,.35), transparent 70%);

  /* Neutrals (from the live site scale) */
  --me-ink: #111827;
  --me-ink-2: #000000;
  --me-muted: #000000;
  --me-line: #e5e7eb;
  --me-line-2: #d1d5db;
  --me-surface: #ffffff;
  --me-surface-2: #f6f8fb;
  --me-surface-3: #eef4fb;
  --me-dark: #080d1a;         /* live site dark ground */
  --me-dark-2: #0e1730;

  /* Type */
  --font-display: "League Gothic", "Oswald", "Arial Narrow", Impact, sans-serif;
  --font-body: "Roboto Condensed", "Arial Narrow", Arial, sans-serif;
  --font-arabic: "IBM Plex Sans Arabic", "Segoe UI", Tahoma, sans-serif;

  /* Spacing (live site scale) */
  --space-1: 4px; --space-2: 8px; --space-3: 12px; --space-4: 16px; --space-5: 24px;
  --space-6: 32px; --space-7: 48px; --space-8: 64px; --space-9: 80px; --space-10: 96px; --space-11: 128px;

  /* Sharp corners site-wide (images, cards, panels, tiles). Only buttons stay pill-shaped. */
  --radius-sm: 0; --radius-md: 0; --radius-lg: 0; --radius-pill: 999px;
  --shadow-1: 0 1px 2px rgba(17, 24, 39, .06), 0 2px 8px rgba(17, 24, 39, .04);
  --shadow-2: 0 18px 40px -18px rgba(31, 92, 194, .35);
  --shadow-3: 0 30px 60px -20px rgba(8, 13, 26, .45);

  --ease-out: cubic-bezier(.22, 1, .36, 1);
  --ease-in-out: cubic-bezier(.65, 0, .35, 1);
  --dur-1: .18s; --dur-2: .35s; --dur-3: .7s;

  --header-h: 100px;        /* navbar at rest */
  --header-h-min: 76px;     /* navbar while scrolling */
  --topbar-h: 40px;
}

/* ---------- 02 Base & type ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h-min) + 16px); }
body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 22px;
  line-height: 1.65;
  color: var(--me-ink);
  background: var(--me-surface);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
html[lang="ar"] body { font-family: var(--font-arabic); font-size: 21.5px; line-height: 1.85; }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--me-blue); text-decoration: none; transition: color var(--dur-1); }
a:hover { color: var(--me-sky); }
::selection { background: var(--me-sky); color: #fff; }

h1, h2, h3, .display-title {
  font-family: var(--font-display);
  font-weight: 400;
  text-transform: uppercase;
  letter-spacing: .01em;
  line-height: .95;
  color: var(--me-ink);
  margin: 0 0 var(--space-4);
}
h1 { font-size: clamp(3.2rem, 7.5vw, 6.5rem); }
h2 { font-size: clamp(2.5rem, 5vw, 4rem); }
h3 { font-size: clamp(1.8rem, 3vw, 2.4rem); }
h4, h5, h6 { font-family: var(--font-body); font-weight: 700; letter-spacing: .01em; color: var(--me-ink); line-height: 1.25; }
h4 { font-size: 1.35rem; } h5 { font-size: 1.15rem; } h6 { font-size: 1rem; }
html[lang="ar"] :is(h1, h2, h3, .display-title) { font-family: var(--font-arabic); font-weight: 700; text-transform: none; letter-spacing: 0; line-height: 1.3; }
html[lang="ar"] h1 { font-size: clamp(2.4rem, 5.4vw, 4.4rem); }
html[lang="ar"] h2 { font-size: clamp(1.9rem, 3.6vw, 2.9rem); }
html[lang="ar"] h3 { font-size: clamp(1.4rem, 2.4vw, 1.9rem); }
html[lang="ar"] :is(h4, h5, h6) { font-family: var(--font-arabic); }
p { margin: 0 0 var(--space-4); }
.lead-text { font-size: 1.375rem; line-height: 1.6; color: var(--me-muted); }
.text-gradient {
  background: var(--me-gradient-text);
  -webkit-background-clip: text; background-clip: text;
  color: transparent;
  background-size: 200% 100%;
  animation: me-gradient-pan 6s ease-in-out infinite alternate;
}
@keyframes me-gradient-pan { from { background-position: 0% 50%; } to { background-position: 100% 50%; } }

.eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  font: 700 13px/1 var(--font-body);
  letter-spacing: .22em; text-transform: uppercase;
  color: var(--me-sky-deep);
  margin-bottom: var(--space-4);
}
.eyebrow::before { content: ""; width: 28px; height: 3px; border-radius: 0; background: var(--me-gradient); }
html[lang="ar"] .eyebrow { letter-spacing: 0; font-family: var(--font-arabic); font-size: 14px; }
.on-dark .eyebrow { color: var(--me-sky-hover); }

/* ---------- 03 Buttons — one family, one height, one radius ---------- */
.btn-me {
  --btn-h: 50px;
  position: relative; isolation: isolate; overflow: hidden;
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  height: var(--btn-h); padding: 0 28px;
  border-radius: var(--radius-pill);
  border: 1.5px solid transparent;
  font: 700 14px/1 var(--font-body);
  letter-spacing: .12em; text-transform: uppercase;
  white-space: nowrap; cursor: pointer; user-select: none;
  transition: transform var(--dur-2) var(--ease-out), box-shadow var(--dur-2) var(--ease-out), color var(--dur-2), border-color var(--dur-2), background-color var(--dur-2);
  will-change: transform;
}
html[lang="ar"] .btn-me { font-family: var(--font-arabic); letter-spacing: 0; font-size: 15px; }
.btn-me .bi { font-size: 1.05em; transition: transform var(--dur-2) var(--ease-out); }
.btn-me:hover .bi-arrow-right, .btn-me:hover .bi-arrow-up-right { transform: translateX(4px); }
html[dir="rtl"] .btn-me .bi-arrow-right { transform: scaleX(-1); }
html[dir="rtl"] .btn-me:hover .bi-arrow-right { transform: scaleX(-1) translateX(4px); }
.btn-me:active { transform: scale(.97); }
.btn-me:focus-visible { outline: 3px solid var(--me-sky); outline-offset: 3px; }

/* primary: brand gradient + light sweep on hover */
.btn-me--primary { color: #fff; background: var(--me-gradient); background-size: 160% 100%; box-shadow: var(--shadow-2); }
.btn-me--primary::after {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(110deg, transparent 20%, rgba(255,255,255,.35) 45%, transparent 70%);
  transform: translateX(-120%); transition: transform .8s var(--ease-out);
}
.btn-me--primary:hover { color: #fff; transform: translateY(-2px); box-shadow: 0 22px 40px -16px rgba(0,153,255,.6); background-position: 100% 0; }
.btn-me--primary:hover::after { transform: translateX(120%); }

/* outline: gradient fills from the start edge */
.btn-me--outline { color: var(--me-blue); border-color: currentColor; background: transparent; }
.btn-me--outline::before {
  content: ""; position: absolute; inset: 0; z-index: -1; background: var(--me-gradient);
  transform: scaleX(0); transform-origin: left; transition: transform var(--dur-2) var(--ease-out);
}
html[dir="rtl"] .btn-me--outline::before { transform-origin: right; }
.btn-me--outline:hover { color: #fff; border-color: transparent; transform: translateY(-2px); }
.btn-me--outline:hover::before { transform: scaleX(1); }

/* light: for dark/photo grounds */
.btn-me--light { color: #fff; border-color: rgba(255,255,255,.7); background: rgba(255,255,255,.04); backdrop-filter: blur(6px); }
.btn-me--light::before { content: ""; position: absolute; inset: 0; z-index: -1; background: #fff; transform: scaleX(0); transform-origin: left; transition: transform var(--dur-2) var(--ease-out); }
html[dir="rtl"] .btn-me--light::before { transform-origin: right; }
.btn-me--light:hover { color: var(--me-blue); border-color: #fff; transform: translateY(-2px); }
.btn-me--light:hover::before { transform: scaleX(1); }

/* text link with animated underline */
.btn-me--link { height: auto; padding: 0; color: var(--me-blue); border: 0; border-radius: 0; background: none; letter-spacing: .1em; }
.btn-me--link::after { content: ""; position: absolute; left: 0; right: 0; bottom: -4px; height: 2px; background: var(--me-gradient); transform: scaleX(.3); transform-origin: left; transition: transform var(--dur-2) var(--ease-out); }
html[dir="rtl"] .btn-me--link::after { transform-origin: right; }
.btn-me--link:hover { color: var(--me-sky); }
.btn-me--link:hover::after { transform: scaleX(1); }
.btn-me--link { overflow: visible; }

.btn-me--sm { --btn-h: 40px; padding: 0 20px; font-size: 12.5px; }
.btn-me--lg { --btn-h: 58px; padding: 0 36px; font-size: 15px; }
.btn-me[disabled], .btn-me.is-loading { pointer-events: none; opacity: .7; }
.btn-me.is-loading .btn-label { opacity: 0; }
.btn-me.is-loading::before { content: ""; position: absolute; width: 20px; height: 20px; border-radius: 50%; border: 2px solid currentColor; border-right-color: transparent; animation: me-spin .7s linear infinite; z-index: 2; transform: none; background: none; inset: auto; }
.btn-group-me { display: flex; flex-wrap: wrap; gap: var(--space-3); align-items: center; }

/* click ripple (added by JS) */
.me-ripple { position: absolute; border-radius: 50%; transform: scale(0); background: rgba(255,255,255,.45); pointer-events: none; animation: me-ripple .6s var(--ease-out); z-index: 1; }
.btn-me--outline .me-ripple { background: rgba(0,153,255,.25); }
@keyframes me-ripple { to { transform: scale(2.6); opacity: 0; } }
@keyframes me-spin { to { transform: rotate(360deg); } }

/* ---------- 04 Header / top bar ---------- */
/* The header keeps its full height in the page flow, so shrinking the navbar never makes the content jump.
   The space freed below the shrunk navbar stays transparent and click-through. */
.site-header { position: sticky; top: calc(var(--topbar-h) * -1); z-index: 1030; height: calc(var(--topbar-h) + var(--header-h)); pointer-events: none; }
.site-header > * { pointer-events: auto; }
.top-bar { height: var(--topbar-h); background: var(--me-gradient-135); color: #fff; font-size: 14px; }
.top-bar .container { height: 100%; }
.top-bar a { color: rgba(255,255,255,.92); display: inline-flex; align-items: center; gap: 8px; }
.top-bar a:hover { color: #fff; }
.top-bar .bi { font-size: 15px; }
.top-bar .social-links a { width: 30px; height: 30px; justify-content: center; border-radius: 50%; transition: background var(--dur-1), transform var(--dur-2) var(--ease-out); }
.top-bar .social-links a:hover { background: rgba(255,255,255,.18); transform: translateY(-2px); }

/* ---------- 05 Navbar & products dropdown ---------- */
.me-navbar {
  height: var(--header-h);
  background: rgba(255,255,255,.92);
  backdrop-filter: saturate(1.6) blur(14px);
  -webkit-backdrop-filter: saturate(1.6) blur(14px);
  border-bottom: 1px solid transparent;
  transition: height .45s var(--ease-out), box-shadow var(--dur-2), border-color var(--dur-2);
}
.site-header.is-scrolled .me-navbar { height: var(--header-h-min); box-shadow: 0 8px 30px -18px rgba(8,13,26,.35); border-color: var(--me-line); }
.me-navbar .container { height: 100%; }
.navbar-brand { padding: 0; margin: 0; display: flex; align-items: center; }
.navbar-logo { height: 78px; width: auto; transition: height .45s var(--ease-out), transform .9s var(--ease-out); }
.site-header.is-scrolled .navbar-logo { height: 58px; }
.navbar-brand:hover .navbar-logo { transform: rotate(-90deg); }

.me-nav { display: flex; align-items: center; gap: clamp(8px, 1.4vw, 26px); margin: 0 auto; padding: 0; list-style: none; }
.me-nav > li { position: relative; }
.me-nav .nav-link {
  position: relative; display: inline-flex; align-items: center; gap: 4px; white-space: nowrap;
  padding: 10px 2px; color: var(--me-ink);
  font: 600 15px/1 var(--font-body); letter-spacing: .06em; text-transform: uppercase;
}
html[lang="ar"] .me-nav .nav-link { font-family: var(--font-arabic); letter-spacing: 0; font-size: 15.5px; }
.me-nav .nav-link::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 2px; height: 2px; border-radius: 2px;
  background: var(--me-gradient); transform: scaleX(0); transform-origin: center; transition: transform var(--dur-2) var(--ease-out);
}
.me-nav .nav-link:hover, .me-nav .nav-link.active { color: var(--me-blue); }
.me-nav .nav-link:hover::after, .me-nav .nav-link.active::after { transform: scaleX(1); }
.me-nav .nav-link .bi-chevron-down { font-size: 11px; transition: transform var(--dur-2) var(--ease-out); }
.me-nav .has-dropdown:hover .bi-chevron-down, .me-nav .has-dropdown:focus-within .bi-chevron-down { transform: rotate(180deg); }

/* Products dropdown — minimal: four families */
.nav-dropdown {
  position: absolute; top: calc(100% + 14px); inset-inline-start: 50%;
  min-width: 250px; margin: 0; padding: 8px; list-style: none;
  background: #fff; border: 1px solid var(--me-line); border-radius: var(--radius-md);
  box-shadow: 0 24px 48px -24px rgba(8,13,26,.35);
  opacity: 0; visibility: hidden; transform: translate(-50%, 8px);
  transition: opacity var(--dur-2) var(--ease-out), transform var(--dur-2) var(--ease-out), visibility var(--dur-2);
}
html[dir="rtl"] .nav-dropdown { transform: translate(50%, 8px); }
.nav-dropdown::before { content: ""; position: absolute; top: -16px; left: 0; right: 0; height: 16px; } /* hover bridge */
.nav-dropdown::after { content: ""; position: absolute; top: 0; left: 16px; right: 16px; height: 2px; background: var(--me-gradient); border-radius: 0 0 2px 2px; }
.has-dropdown:hover .nav-dropdown, .has-dropdown:focus-within .nav-dropdown { opacity: 1; visibility: visible; transform: translate(-50%, 0); }
html[dir="rtl"] .has-dropdown:hover .nav-dropdown, html[dir="rtl"] .has-dropdown:focus-within .nav-dropdown { transform: translate(50%, 0); }
.nav-dropdown a {
  position: relative; display: flex; align-items: center; gap: 12px;
  padding: 11px 12px; border-radius: 0; color: var(--me-ink);
  font: 600 14.5px/1.2 var(--font-body); letter-spacing: .04em; text-transform: uppercase;
  transition: background var(--dur-1), color var(--dur-1), padding var(--dur-2) var(--ease-out);
}
html[lang="ar"] .nav-dropdown a { font-family: var(--font-arabic); text-transform: none; letter-spacing: 0; font-size: 15px; }
.nav-dropdown .dd-num { font: 600 11px/1 var(--font-body); color: #000000; letter-spacing: .08em; transition: color var(--dur-1); }
.nav-dropdown a .bi { margin-inline-start: auto; font-size: 13px; opacity: 0; transform: translateX(-6px); transition: opacity var(--dur-1), transform var(--dur-2) var(--ease-out); }
html[dir="rtl"] .nav-dropdown a .bi { transform: scaleX(-1) translateX(-6px); }
.nav-dropdown a:hover, .nav-dropdown a:focus-visible { background: var(--me-surface-3); color: var(--me-blue); padding-inline-start: 16px; outline: none; }
.nav-dropdown a:hover .dd-num, .nav-dropdown a:focus-visible .dd-num { color: var(--me-sky); }
.nav-dropdown a:hover .bi, .nav-dropdown a:focus-visible .bi { opacity: 1; transform: none; }
html[dir="rtl"] .nav-dropdown a:hover .bi { transform: scaleX(-1); }
.nav-dropdown li { opacity: 0; transform: translateY(4px); transition: opacity .3s, transform .4s var(--ease-out); }
.has-dropdown:hover .nav-dropdown li, .has-dropdown:focus-within .nav-dropdown li { opacity: 1; transform: none; }
.nav-dropdown li:nth-child(2) { transition-delay: .03s; } .nav-dropdown li:nth-child(3) { transition-delay: .06s; }
.nav-dropdown li:nth-child(4) { transition-delay: .09s; } .nav-dropdown li:nth-child(5) { transition-delay: .12s; }

.nav-actions { display: flex; align-items: center; gap: var(--space-3); }
.icon-btn {
  width: 44px; height: 44px; display: inline-grid; place-items: center; border-radius: 50%;
  border: 1px solid var(--me-line); background: #fff; color: var(--me-ink); cursor: pointer;
  transition: border-color var(--dur-1), color var(--dur-1), transform var(--dur-2) var(--ease-out), background var(--dur-1);
}
.icon-btn:hover { border-color: var(--me-sky); color: var(--me-sky); transform: translateY(-1px); }
.icon-btn:focus-visible { outline: 3px solid var(--me-sky); outline-offset: 2px; }
.lang-toggle { width: auto; padding: 0 14px; border-radius: var(--radius-pill); font: 700 14px/1 var(--font-arabic); gap: 6px; display: inline-flex; align-items: center; }
html[lang="ar"] .lang-toggle { font-family: var(--font-body); letter-spacing: .08em; }

.nav-burger { display: none; }
.nav-burger span { display: block; width: 20px; height: 2px; background: currentColor; border-radius: 2px; transition: transform var(--dur-2) var(--ease-out), opacity var(--dur-1); }
.nav-burger span + span { margin-top: 5px; }
.nav-burger { flex-direction: column; justify-content: center; }
body.nav-open .nav-burger span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
body.nav-open .nav-burger span:nth-child(2) { opacity: 0; }
body.nav-open .nav-burger span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* mobile drawer */
.mobile-drawer {
  position: fixed; inset: 0; z-index: 1040; pointer-events: none;
}
.mobile-drawer__scrim { position: absolute; inset: 0; background: rgba(8,13,26,.55); opacity: 0; transition: opacity var(--dur-2); }
.mobile-drawer__panel {
  position: absolute; top: 0; bottom: 0; inset-inline-end: 0; width: min(380px, 88vw);
  background: #fff; padding: var(--space-6) var(--space-5); overflow-y: auto;
  transform: translateX(100%); transition: transform .5s var(--ease-out);
  display: flex; flex-direction: column; gap: var(--space-5);
}
html[dir="rtl"] .mobile-drawer__panel { transform: translateX(-100%); }
body.nav-open .mobile-drawer { pointer-events: auto; }
body.nav-open .mobile-drawer__scrim { opacity: 1; }
body.nav-open .mobile-drawer__panel { transform: none; }
.mobile-drawer nav a { display: flex; justify-content: space-between; align-items: center; padding: 14px 0; border-bottom: 1px solid var(--me-line); color: var(--me-ink); font: 400 1.9rem/1 var(--font-display); text-transform: uppercase; opacity: 0; transform: translateY(12px); transition: opacity .4s, transform .5s var(--ease-out), color var(--dur-1); }
html[lang="ar"] .mobile-drawer nav a { font-family: var(--font-arabic); font-weight: 700; font-size: 1.2rem; }
.mobile-drawer nav a.active, .mobile-drawer nav a:hover { color: var(--me-blue); }
body.nav-open .mobile-drawer nav a { opacity: 1; transform: none; }
.mobile-drawer nav a:nth-child(1) { transition-delay: .08s; } .mobile-drawer nav a:nth-child(2) { transition-delay: .12s; }
.mobile-drawer nav a:nth-child(3) { transition-delay: .16s; } .mobile-drawer nav a:nth-child(4) { transition-delay: .2s; }
.mobile-drawer nav a:nth-child(5) { transition-delay: .24s; } .mobile-drawer nav a:nth-child(6) { transition-delay: .28s; }
.mobile-drawer nav a:nth-child(7) { transition-delay: .32s; } .mobile-drawer nav a:nth-child(8) { transition-delay: .36s; }

.mobile-drawer .drawer-sub { display: grid; padding: 4px 0 10px; border-bottom: 1px solid var(--me-line); }
.mobile-drawer .drawer-sub a { padding: 7px 0; padding-inline-start: 14px; border-inline-start: 2px solid var(--me-line); color: var(--me-muted); font: 600 15px/1.3 var(--font-body); letter-spacing: .04em; text-transform: uppercase; transition: color var(--dur-1), border-color var(--dur-1); }
html[lang="ar"] .mobile-drawer .drawer-sub a { font-family: var(--font-arabic); text-transform: none; letter-spacing: 0; }
.mobile-drawer .drawer-sub a:hover { color: var(--me-blue); border-color: var(--me-sky); }
.mobile-drawer nav > a[data-nav="products"] { border-bottom: 0; }

@media (max-width: 1199.98px) {
  .me-nav, .nav-actions .btn-me, .nav-actions .search-wrapper { display: none !important; }
  .nav-burger { display: inline-flex; }
  :root { --header-h: 80px; --header-h-min: 66px; }
  .navbar-logo { height: 60px; }
  .site-header.is-scrolled .navbar-logo { height: 50px; }
}

/* ---------- 06 Search ---------- */
.search-overlay {
  position: fixed; inset: 0; z-index: 1050; display: grid; align-items: start; justify-items: center;
  padding: 12vh var(--space-4) var(--space-4);
  background: rgba(8,13,26,.72); backdrop-filter: blur(6px);
  opacity: 0; visibility: hidden; transition: opacity var(--dur-2), visibility var(--dur-2);
}
body.search-open .search-overlay { opacity: 1; visibility: visible; }
.search-panel { width: min(720px, 100%); background: #fff; border-radius: var(--radius-lg); box-shadow: var(--shadow-3); overflow: hidden; transform: translateY(-16px) scale(.98); transition: transform var(--dur-2) var(--ease-out); }
body.search-open .search-panel { transform: none; }
.search-field { display: flex; align-items: center; gap: 12px; padding: 18px 22px; border-bottom: 1px solid var(--me-line); }
.search-field .bi-search { font-size: 20px; color: var(--me-sky); }
.search-field input { flex: 1; border: 0; outline: 0; font: 400 1.25rem/1.4 var(--font-body); color: var(--me-ink); background: transparent; }
html[lang="ar"] .search-field input { font-family: var(--font-arabic); }
.search-field kbd { font: 600 12px/1 var(--font-body); color: var(--me-muted); border: 1px solid var(--me-line); border-radius: 0; padding: 5px 7px; background: var(--me-surface-2); }
.search-results { max-height: 52vh; overflow-y: auto; padding: 8px; }
.search-results a { display: grid; grid-template-columns: 44px 1fr auto; gap: 14px; align-items: center; padding: 10px 12px; border-radius: var(--radius-md); color: var(--me-ink); }
.search-results a:hover, .search-results a.is-active { background: var(--me-surface-3); }
.search-results .sr-ico { width: 44px; height: 44px; border-radius: 0; display: grid; place-items: center; background: var(--me-surface-3); color: var(--me-blue); overflow: hidden; }
.search-results .sr-ico img { width: 100%; height: 100%; object-fit: contain; background: #fff; }
.search-results strong { display: block; font-weight: 700; }
.search-results small { color: var(--me-muted); }
.search-results mark { background: rgba(0,153,255,.16); color: inherit; padding: 0 2px; border-radius: 0; }
.search-empty, .search-hint { padding: 22px; color: var(--me-muted); text-align: center; }
.search-hint .chips { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; margin-top: 12px; }
.chip-btn { border: 1px solid var(--me-line-2); background: #fff; border-radius: var(--radius-pill); padding: 6px 14px; font: 600 13px/1.2 var(--font-body); color: var(--me-ink-2); cursor: pointer; transition: all var(--dur-1); }
.chip-btn:hover, .chip-btn.active { border-color: var(--me-sky); color: #fff; background: var(--me-gradient); }
html[lang="ar"] .chip-btn { font-family: var(--font-arabic); }

/* ---------- 07 Language / RTL helpers ---------- */
html[dir="rtl"] .flip-rtl { transform: scaleX(-1); }
[data-i18n-ready="false"] [data-i18n] { visibility: hidden; }

/* ---------- 08 Page hero (inner pages) ---------- */
.page-hero {
  position: relative; isolation: isolate; overflow: hidden;
  min-height: clamp(360px, 52vh, 540px);
  display: flex; align-items: flex-end;
  color: #fff; background: var(--me-dark);
  padding: var(--space-10) 0 var(--space-8);
}
.page-hero__bg { position: absolute; inset: -6% 0 0; z-index: -2; background-size: cover; background-position: center; transform: scale(1.08); animation: me-kenburns 14s var(--ease-out) forwards; }
.page-hero::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(90deg, rgba(8,13,26,.9) 0%, rgba(8,13,26,.55) 50%, rgba(8,13,26,.15) 100%); }
html[dir="rtl"] .page-hero::before { background: linear-gradient(270deg, rgba(8,13,26,.9) 0%, rgba(8,13,26,.55) 50%, rgba(8,13,26,.15) 100%); }
.page-hero::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 5px; background: var(--me-gradient-135); transform-origin: left; animation: me-bar-in 1.2s .3s var(--ease-out) both; }
html[dir="rtl"] .page-hero::after { transform-origin: right; }
.page-hero h1 { color: #fff; max-width: 14ch; margin-bottom: var(--space-4); }
html[lang="ar"] .page-hero h1 { max-width: 18ch; }
.page-hero .lead-text { color: rgba(255,255,255,.82); max-width: 56ch; }
.page-hero .airflow { position: absolute; inset: 0; z-index: -1; opacity: .55; pointer-events: none; }
@keyframes me-kenburns { to { transform: scale(1); } }
@keyframes me-bar-in { from { transform: scaleX(0); } to { transform: scaleX(1); } }

/* airflow lines (decorative SVG used in heroes) */
.airflow path { fill: none; stroke: url(#me-airflow-grad); stroke-width: 1.4; stroke-linecap: round; stroke-dasharray: 220 900; animation: me-airflow 7s linear infinite; }
.airflow path:nth-child(2) { animation-delay: -1.6s; animation-duration: 8.5s; }
.airflow path:nth-child(3) { animation-delay: -3.1s; animation-duration: 6.2s; }
.airflow path:nth-child(4) { animation-delay: -4.4s; animation-duration: 9s; }
.airflow path:nth-child(5) { animation-delay: -5.2s; animation-duration: 7.6s; }
@keyframes me-airflow { from { stroke-dashoffset: 1120; } to { stroke-dashoffset: 0; } }
html[dir="rtl"] .airflow { transform: scaleX(-1); }

/* centered content */
.page-hero { align-items: center; text-align: center; }
.page-hero h1, .page-hero .lead-text { margin-inline: auto; }
.page-hero h1, html[lang="ar"] .page-hero h1 { max-width: none; }
.page-hero .me-breadcrumb { justify-content: center; }
.page-hero::before, html[dir="rtl"] .page-hero::before { background: radial-gradient(80% 90% at 50% 50%, rgba(8,13,26,.55) 0%, rgba(8,13,26,.82) 100%); }

/* ---------- 09 Breadcrumb ---------- */
.me-breadcrumb { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-bottom: var(--space-4); font: 600 13px/1 var(--font-body); letter-spacing: .14em; text-transform: uppercase; }
html[lang="ar"] .me-breadcrumb { font-family: var(--font-arabic); letter-spacing: 0; font-size: 14px; }
.me-breadcrumb a { color: rgba(255,255,255,.75); }
.me-breadcrumb a:hover { color: #fff; }
.me-breadcrumb .sep { width: 18px; height: 2px; background: var(--me-sky); border-radius: 2px; }
.me-breadcrumb [aria-current] { color: var(--me-sky-hover); }

/* ---------- 10 Sections & titles ---------- */
.section { padding: var(--space-11) 0; position: relative; }
.section--tight { padding: var(--space-9) 0; }
.section--alt { background: var(--me-surface-2); }
.section--dark { background: var(--me-dark); color: rgba(255,255,255,.82); }
.section--dark :is(h1, h2, h3, h4, h5) { color: #fff; }
@media (max-width: 767.98px) { .section { padding: var(--space-9) 0; } .section--tight { padding: var(--space-8) 0; } }
.section-head { max-width: 760px; margin-bottom: var(--space-8); }
.section-head.text-center { margin-inline: auto; }
.section-head p { color: var(--me-muted); font-size: 1.375rem; }
.section--dark .section-head p { color: rgba(255,255,255,.7); }
.title-line { display: block; width: 64px; height: 4px; border-radius: 0; background: var(--me-gradient); margin: var(--space-4) 0 0; transform-origin: left; }
.text-center .title-line { margin-inline: auto; }

/* ---------- 11 Reveal animations ---------- */
[data-reveal] { opacity: 0; transition: opacity .9s var(--ease-out), transform .9s var(--ease-out), clip-path 1.1s var(--ease-out); transition-delay: var(--reveal-delay, 0s); }
[data-reveal="up"] { transform: translateY(40px); }
[data-reveal="down"] { transform: translateY(-30px); }
[data-reveal="left"] { transform: translateX(-48px); }
[data-reveal="right"] { transform: translateX(48px); }
html[dir="rtl"] [data-reveal="left"] { transform: translateX(48px); }
html[dir="rtl"] [data-reveal="right"] { transform: translateX(-48px); }
[data-reveal="zoom"] { transform: scale(.92); }
[data-reveal="mask"] { opacity: 1; clip-path: inset(0 100% 0 0); }
html[dir="rtl"] [data-reveal="mask"] { clip-path: inset(0 0 0 100%); }
[data-reveal].is-visible { opacity: 1; transform: none; clip-path: inset(0 0 0 0); }
.reveal-ready [data-reveal-title] .w { display: inline-block; overflow: hidden; vertical-align: bottom; }
.reveal-ready [data-reveal-title] .w > span { display: inline-block; transform: translateY(105%); transition: transform 1s var(--ease-out); transition-delay: calc(var(--i) * 70ms + var(--reveal-delay, 0s)); }
.reveal-ready [data-reveal-title].is-visible .w > span { transform: none; }
.title-line[data-reveal] { transform: scaleX(0); opacity: 1; }
.title-line[data-reveal].is-visible { transform: scaleX(1); }

/* ---------- 12 Counters & stats ---------- */
.stat { display: grid; gap: 6px; }
.stat__value { font: 400 clamp(2.8rem, 5vw, 4.4rem)/.9 var(--font-display); color: var(--me-ink); font-variant-numeric: tabular-nums; direction: ltr; unicode-bidi: isolate; }
html[dir="rtl"] .stat__value { text-align: right; }
.stat__value small { font-size: .42em; margin-inline-start: 6px; color: var(--me-sky-deep); letter-spacing: .04em; }
.stat__label { font: 600 13px/1.4 var(--font-body); letter-spacing: .14em; text-transform: uppercase; color: var(--me-muted); }
html[lang="ar"] .stat__label { font-family: var(--font-arabic); letter-spacing: 0; font-size: 14px; }
.on-dark .stat__value { color: #fff; }
.on-dark .stat__value small { color: var(--me-sky-hover); }
.on-dark .stat__label { color: rgba(255,255,255,.65); }

/* ---------- 13 Preloader (logo blades spin) ---------- */
.preloader { position: fixed; inset: 0; z-index: 2000; display: grid; place-items: center; background: #fff; transition: opacity .6s var(--ease-out), visibility .6s; }
.preloader.is-done { opacity: 0; visibility: hidden; }
.preloader svg { width: 110px; height: 110px; }
.preloader .blades { transform-origin: 250px 250px; animation: me-spin 1.1s var(--ease-in-out) infinite; }
.preloader__bar { position: absolute; bottom: 0; left: 0; height: 3px; width: 100%; background: var(--me-gradient); transform-origin: left; animation: me-load 1.6s var(--ease-in-out) infinite; }
@keyframes me-load { 0% { transform: scaleX(0); } 60% { transform: scaleX(1); transform-origin: left; } 61% { transform-origin: right; } 100% { transform: scaleX(0); transform-origin: right; } }

/* ---------- 14 Scroll progress ---------- */
.scroll-progress { position: fixed; top: 0; left: 0; right: 0; height: 3px; z-index: 1060; background: var(--me-gradient); transform: scaleX(0); transform-origin: left; pointer-events: none; }
html[dir="rtl"] .scroll-progress { transform-origin: right; }

/* ---------- 15 Cards ---------- */
.me-card {
  position: relative; height: 100%;
  background: #fff; border: 1px solid var(--me-line); border-radius: var(--radius-lg);
  overflow: hidden; display: flex; flex-direction: column;
  transition: transform var(--dur-2) var(--ease-out), box-shadow var(--dur-2) var(--ease-out), border-color var(--dur-2);
}
.me-card::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 3px; background: var(--me-gradient); transform: scaleX(0); transform-origin: left; transition: transform .5s var(--ease-out); }
html[dir="rtl"] .me-card::after { transform-origin: right; }
.me-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-2); border-color: transparent; }
.me-card:hover::after { transform: scaleX(1); }
.me-card__media { position: relative; aspect-ratio: 4 / 3; overflow: hidden; background: var(--me-surface-2); }
.me-card__media img { width: 100%; height: 100%; object-fit: cover; transition: transform 1s var(--ease-out); }
.me-card:hover .me-card__media img { transform: scale(1.07); }
.me-card__body { padding: var(--space-5); display: flex; flex-direction: column; gap: var(--space-3); flex: 1; }
.me-card__index { font: 400 2.2rem/1 var(--font-display); color: transparent; -webkit-text-stroke: 1px var(--me-line-2); }
.me-card:hover .me-card__index { -webkit-text-stroke-color: var(--me-sky); }
.me-card__title { margin: 0; font: 700 1.25rem/1.25 var(--font-body); color: var(--me-ink); }
html[lang="ar"] .me-card__title { font-family: var(--font-arabic); }
.me-card__text { margin: 0; color: var(--me-muted); font-size: 1rem; }
.me-card .btn-me--link { margin-top: auto; align-self: flex-start; }

/* tilt (JS sets --rx/--ry) */
[data-tilt] { transform: perspective(900px) rotateX(var(--rx, 0)) rotateY(var(--ry, 0)); transition: transform .4s var(--ease-out); }

/* ---------- 16 Partners marquee ---------- */
.partners-tabs { display: inline-flex; padding: 5px; border-radius: var(--radius-pill); background: var(--me-surface-2); border: 1px solid var(--me-line); gap: 4px; margin-bottom: var(--space-7); position: relative; }
.partners-tabs button { position: relative; z-index: 1; border: 0; background: none; padding: 10px 22px; border-radius: var(--radius-pill); font: 700 13px/1 var(--font-body); letter-spacing: .14em; text-transform: uppercase; color: var(--me-muted); cursor: pointer; transition: color var(--dur-2); }
html[lang="ar"] .partners-tabs button { font-family: var(--font-arabic); letter-spacing: 0; font-size: 14px; }
.partners-tabs button[aria-selected="true"] { color: #fff; }
.partners-tabs .pill { position: absolute; z-index: 0; top: 5px; bottom: 5px; border-radius: var(--radius-pill); background: var(--me-gradient); box-shadow: var(--shadow-2); transition: left .45s var(--ease-out), width .45s var(--ease-out); }
.marquee { position: relative; overflow: hidden; mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); }
.marquee + .marquee { margin-top: var(--space-5); }
.marquee__track { display: flex; gap: var(--space-5); width: max-content; animation: me-marquee var(--marquee-dur, 50s) linear infinite; }
.marquee--reverse .marquee__track { animation-direction: reverse; }
.marquee:hover .marquee__track { animation-play-state: paused; }
@keyframes me-marquee { from { transform: translateX(0); } to { transform: translateX(-50%); } }
html[dir="rtl"] .marquee__track { animation-name: me-marquee-rtl; }
@keyframes me-marquee-rtl { from { transform: translateX(0); } to { transform: translateX(50%); } }
.logo-tile { flex: none; width: 170px; height: 96px; display: grid; place-items: center; padding: 14px 18px; background: #fff; border: 1px solid var(--me-line); border-radius: var(--radius-md); transition: border-color var(--dur-2), box-shadow var(--dur-2); }
.logo-tile img { max-height: 64px; width: auto; object-fit: contain; filter: grayscale(1) contrast(.9); opacity: .7; transition: filter var(--dur-2), opacity var(--dur-2); }
.logo-tile:hover { border-color: var(--me-sky); box-shadow: var(--shadow-2); }
.logo-tile:hover img { filter: none; opacity: 1; }
.partners-panel[hidden] { display: none; }
.partners-panel { animation: me-fade-up .6s var(--ease-out); }
@keyframes me-fade-up { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: none; } }

/* ---------- 17 Video facade (loads YouTube only on click) ---------- */
.video-facade { position: relative; display: block; width: 100%; aspect-ratio: 16 / 9; border: 0; padding: 0; border-radius: var(--radius-lg); overflow: hidden; background: var(--me-dark); cursor: pointer; box-shadow: var(--shadow-3); }
.video-facade img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform 1s var(--ease-out), opacity var(--dur-2); opacity: .85; }
.video-facade:hover img { transform: scale(1.05); opacity: 1; }
.video-facade::before { content: ""; position: absolute; inset: 0; z-index: 1; background: linear-gradient(180deg, transparent 40%, rgba(8,13,26,.6)); }
.video-facade__play { position: absolute; z-index: 2; inset: 0; margin: auto; width: 88px; height: 88px; border-radius: 50%; display: grid; place-items: center; background: var(--me-gradient); color: #fff; font-size: 34px; box-shadow: 0 0 0 0 rgba(0,153,255,.6); animation: me-pulse 2.2s infinite; transition: transform var(--dur-2) var(--ease-out); }
.video-facade:hover .video-facade__play { transform: scale(1.08); }
.video-facade__play .bi { margin-inline-start: 5px; }
@keyframes me-pulse { 0% { box-shadow: 0 0 0 0 rgba(0,153,255,.55); } 70% { box-shadow: 0 0 0 26px rgba(0,153,255,0); } 100% { box-shadow: 0 0 0 0 rgba(0,153,255,0); } }
.video-facade iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; z-index: 3; }

/* ---------- 18 Forms ---------- */
.me-field { position: relative; }
.me-field input, .me-field textarea, .me-field select {
  width: 100%; height: 56px; padding: 22px 16px 8px; border: 1.5px solid var(--me-line-2); border-radius: var(--radius-md);
  font: 400 1rem/1.4 var(--font-body); color: var(--me-ink); background: #fff; outline: none;
  transition: border-color var(--dur-1), box-shadow var(--dur-1);
}
html[lang="ar"] .me-field :is(input, textarea, select) { font-family: var(--font-arabic); }
.me-field textarea { height: 140px; resize: vertical; padding-top: 26px; }
.me-field label { position: absolute; top: 18px; inset-inline-start: 16px; color: var(--me-muted); font-size: 1rem; pointer-events: none; transition: all var(--dur-2) var(--ease-out); }
.me-field :is(input, textarea):focus + label, .me-field :is(input, textarea):not(:placeholder-shown) + label, .me-field select + label { top: 8px; font-size: 12px; letter-spacing: .06em; color: var(--me-sky-deep); font-weight: 700; }
.me-field :is(input, textarea, select):focus { border-color: var(--me-sky); box-shadow: 0 0 0 4px rgba(0,153,255,.12); }
.me-field.is-invalid :is(input, textarea, select) { border-color: #c62828; }
.me-field .field-error { display: none; color: #b42318; font-size: 13px; margin-top: 6px; }
.me-field.is-invalid .field-error { display: block; }
.form-status { display: none; align-items: center; gap: 10px; padding: 14px 16px; border-radius: var(--radius-md); font-weight: 600; }
.form-status.is-shown { display: flex; animation: me-fade-up .5s var(--ease-out); }
.form-status--ok { background: #e7f6ee; color: #146c43; }
.form-status--err { background: #fdecea; color: #b42318; }

/* ---------- 19 Footer — logo gradient ---------- */
.site-footer { position: relative; overflow: hidden; isolation: isolate; color: rgba(255,255,255,.88); padding-top: var(--space-10);
  background: var(--me-gradient-footer); }
.site-footer::before { content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none; background: var(--me-gradient-footer-glow); }
.site-footer .eyebrow { color: #fff; }
.site-footer .eyebrow::before { background: #fff; }
.footer-cta h2 { color: #fff; margin: 0; }
.footer-cta { padding-bottom: var(--space-8); border-bottom: 1px solid rgba(255,255,255,.22); margin-bottom: var(--space-8); }
.site-footer h6 { font: 700 13px/1 var(--font-body); letter-spacing: .18em; text-transform: uppercase; color: #fff; margin: 0 0 var(--space-5); }
html[lang="ar"] .site-footer h6 { font-family: var(--font-arabic); letter-spacing: 0; font-size: 14px; }
.site-footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.site-footer a:not(.btn-me):not(.social-btn) { color: rgba(255,255,255,.88); }
.site-footer a:not(.btn-me):not(.social-btn):hover { color: #fff; text-decoration: underline; text-underline-offset: 4px; }
.site-footer .footer-contact strong { color: #fff; }
.footer-links a { display: inline-flex; align-items: center; gap: 8px; transition: color var(--dur-1), transform var(--dur-2) var(--ease-out); }
.footer-links a:hover { transform: translateX(4px); }
html[dir="rtl"] .footer-links a:hover { transform: translateX(-4px); }
.footer-contact li { display: grid; grid-template-columns: 20px 1fr; gap: 12px; align-items: start; }
.footer-contact .bi { color: #fff; opacity: .85; margin-top: 3px; }
.footer-logo { height: 76px; width: auto; margin-bottom: var(--space-5); filter: brightness(0) invert(1); }
.social-row { display: flex; gap: 10px; flex-wrap: wrap; }
.social-btn { width: 46px; height: 46px; border-radius: 50%; display: grid; place-items: center; border: 1px solid rgba(255,255,255,.45); color: #fff; font-size: 18px; position: relative; overflow: hidden; isolation: isolate; transition: transform var(--dur-2) var(--ease-out), color var(--dur-2), border-color var(--dur-2); }
.social-btn::before { content: ""; position: absolute; inset: 0; z-index: -1; background: #fff; transform: translateY(101%); transition: transform var(--dur-2) var(--ease-out); }
.social-btn:hover { color: var(--me-blue); border-color: #fff; }
.social-btn:hover::before { transform: none; }
.footer-bottom { margin-top: var(--space-8); padding: var(--space-5) 0; border-top: 1px solid rgba(255,255,255,.22); color: rgba(255,255,255,.8); font-size: 14px; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; }

/* white button: for brand-gradient grounds */
.btn-me--white { color: var(--me-blue); background: #fff; box-shadow: 0 16px 34px -18px rgba(8,13,26,.55); }
.btn-me--white:hover { color: var(--me-indigo, #333399); transform: translateY(-2px); box-shadow: 0 22px 40px -18px rgba(8,13,26,.6); }

/* ---------- 20 Utilities / back-to-top ---------- */
.back-to-top { position: fixed; z-index: 1020; bottom: 24px; inset-inline-end: 24px; width: 54px; height: 54px; border-radius: 50%; border: 0; background: #fff; color: var(--me-blue); box-shadow: var(--shadow-3); display: grid; place-items: center; cursor: pointer; opacity: 0; transform: translateY(20px); pointer-events: none; transition: opacity var(--dur-2), transform var(--dur-2) var(--ease-out); }
.back-to-top.is-shown { opacity: 1; transform: none; pointer-events: auto; }
.back-to-top svg { position: absolute; inset: 0; transform: rotate(-90deg); }
.back-to-top circle { fill: none; stroke-width: 3; }
.back-to-top .track { stroke: var(--me-line); }
.back-to-top .bar { stroke: url(#me-btt-grad); stroke-linecap: round; stroke-dasharray: 151; stroke-dashoffset: 151; }
.back-to-top .bi { font-size: 20px; transition: transform var(--dur-2) var(--ease-out); }
.back-to-top:hover .bi { transform: translateY(-3px); }
.floating-quote { position: fixed; z-index: 1019; bottom: 18px; inset-inline-start: 18px; display: none; opacity: 0; transform: translateY(20px); pointer-events: none; transition: opacity var(--dur-2), transform var(--dur-2) var(--ease-out); }
.floating-quote.is-shown { opacity: 1; transform: none; pointer-events: auto; }
@media (max-width: 767.98px) { .floating-quote { display: inline-flex; } .back-to-top { bottom: 18px; inset-inline-end: 18px; } }
.media-frame { position: relative; border-radius: var(--radius-lg); overflow: hidden; }
.media-frame img { width: 100%; height: 100%; object-fit: cover; }
.media-frame--accent::before { content: ""; position: absolute; z-index: 1; inset-block-start: 0; inset-inline-start: 0; width: 6px; height: 40%; background: var(--me-gradient-135); }
.skip-link { position: absolute; top: -100px; inset-inline-start: 12px; z-index: 3000; background: var(--me-blue); color: #fff; padding: 10px 16px; border-radius: var(--radius-md); }
.skip-link:focus { top: 12px; color: #fff; }

/* ---------- 21 Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; scroll-behavior: auto !important; }
  [data-reveal] { opacity: 1 !important; transform: none !important; clip-path: none !important; }
  .reveal-ready [data-reveal-title] .w > span { transform: none !important; }
  .marquee__track { animation: none !important; flex-wrap: wrap; width: auto; justify-content: center; }
}

/* ---------- 22 Page transitions ---------- */
main, .site-footer { transition: opacity .26s var(--ease-out), transform .26s var(--ease-out); }
body.is-leaving main, body.is-leaving .site-footer { opacity: 0; transform: translateY(10px); }
body.is-switching main, body.is-switching .site-footer, body.is-switching .site-header { opacity: .0; transition-duration: .2s; }

/* =====================================================================
   23 HOME
   ===================================================================== */
/* ---- Hero slider (fade) ---- */
.hero-slider { position: relative; isolation: isolate; overflow: hidden; background: var(--me-dark); color: #fff; display: grid;
  /* fill the screen below the top bar + navbar */
  min-height: calc(100vh - var(--topbar-h) - var(--header-h)); min-height: calc(100svh - var(--topbar-h) - var(--header-h)); }
/* all slides share one grid cell, so the hero is as tall as its tallest slide — text never overflows */
.hero-slides { display: grid; min-height: inherit; }
.hero-slide { grid-area: 1 / 1; position: relative; isolation: isolate; min-height: inherit; display: flex; align-items: center; padding: 40px 0 110px; opacity: 0; visibility: hidden; transition: opacity 1.2s var(--ease-in-out), visibility 1.2s; }
.hero-slide.is-active { opacity: 1; visibility: visible; z-index: 1; }

.hero-slide__bg { position: absolute; inset: 0; z-index: -2; background: center / cover no-repeat; transform: scale(1.12); transition: transform 8s linear; }
.hero-slide.is-active .hero-slide__bg { transform: scale(1); }
.hero-slide::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(90deg, rgba(8,13,26,.55) 0%, rgba(8,13,26,.2) 55%, rgba(8,13,26,.05) 100%); }
html[dir="rtl"] .hero-slide::before { background: linear-gradient(270deg, rgba(8,13,26,.55) 0%, rgba(8,13,26,.2) 55%, rgba(8,13,26,.05) 100%); }
.hero-slide__air { position: absolute; inset: 0; z-index: -1; width: 100%; height: 100%; opacity: .5; pointer-events: none; }

/* caption box — the reference's dark panel, in ME's minimal glass */
.hero-caption {
  position: relative; width: min(600px, 100%);
  padding: clamp(28px, 4vw, 48px);
  background: rgba(8,13,26,.55);
  backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
  border: 1px solid rgba(255,255,255,.08);
}
.hero-caption::before { content: ""; position: absolute; top: -1px; inset-inline-start: -1px; height: 4px; width: 0; background: var(--me-gradient-135); transition: width 1s .2s var(--ease-out); }
.hero-slide.is-active .hero-caption::before { width: calc(100% + 2px); }
.hero-caption .eyebrow { color: var(--me-sky-hover); }
.hero-title { color: #fff; font-size: clamp(3rem, 5.4vw, 5rem); margin-bottom: var(--space-5); }
html[lang="ar"] .hero-title { font-size: clamp(2.2rem, 4.4vw, 3.8rem); }
.hero-accent { color: var(--me-sky); }
.hero-caption p { color: rgba(255,255,255,.85); font-size: 1.375rem; max-width: 48ch; margin-bottom: var(--space-6); }

/* caption entrance: from the start side, staggered (reference: fadeInLeft) */
.hc-line { display: block; overflow: hidden; padding-bottom: .04em; }
.hc-line > span { display: inline-block; transform: translateY(105%); }
.hc-item { opacity: 0; transform: translateX(-40px); }
html[dir="rtl"] .hc-item { transform: translateX(40px); }
.hero-slide.is-active .hc-line > span { animation: me-line-up 1s var(--ease-out) .35s forwards; }
.hero-slide.is-active .hc-line + .hc-line > span { animation-delay: .47s; }
.hero-slide.is-active .hc-item { animation: me-in-start 1s var(--ease-out) forwards; }
.hero-slide.is-active .eyebrow.hc-item { animation-delay: .2s; }
.hero-slide.is-active p.hc-item { animation-delay: .6s; }
.hero-slide.is-active .btn-group-me.hc-item { animation-delay: .75s; }
@keyframes me-line-up { from { transform: translateY(105%); } to { transform: none; } }
@keyframes me-in-start { to { opacity: 1; transform: none; } }

@media (max-width: 767.98px)  {
  .hero-slide { align-items: flex-start; padding: 24px 0 104px; }
  .hero-caption { padding: 24px 22px 26px; }
  .hero-title { font-size: clamp(2.4rem, 11vw, 3rem); margin-bottom: 14px; }
  html[lang="ar"] .hero-title { font-size: clamp(1.8rem, 8vw, 2.3rem); }
  .hero-caption p { font-size: 1.25rem; line-height: 1.55; margin-bottom: 20px; }
  .hero-caption .btn-me { --btn-h: 46px; padding: 0 20px; }
}
/* arrows: hidden off the edges, slide in on hover (reference behaviour) */
.hero-arrow {
  position: absolute; z-index: 5; top: 50%; width: 56px; height: 56px; margin-top: -28px;
  display: grid; place-items: center; border-radius: 50%;
  border: 1px solid rgba(255,255,255,.35); background: rgba(8,13,26,.35); color: #fff; font-size: 20px;
  backdrop-filter: blur(6px); cursor: pointer; opacity: 0;
  transition: transform .5s var(--ease-out), opacity .5s, background var(--dur-1), border-color var(--dur-1);
}
.hero-arrow--prev { inset-inline-start: 24px; transform: translateX(-90px); }
.hero-arrow--next { inset-inline-end: 24px; transform: translateX(90px); }
html[dir="rtl"] .hero-arrow--prev { transform: translateX(90px); }
html[dir="rtl"] .hero-arrow--next { transform: translateX(-90px); }
.hero-slider:hover .hero-arrow, .hero-arrow:focus-visible { opacity: 1; transform: none; }
.hero-arrow:hover { background: var(--me-gradient); border-color: transparent; }
.hero-arrow:focus-visible { outline: 3px solid var(--me-sky); outline-offset: 3px; }
@media (hover: none), (max-width: 767.98px) { .hero-arrow { display: none; } }

/* counter + progress dots */
.hero-controls { position: absolute; z-index: 5; left: 0; right: 0; bottom: 52px; display: flex; align-items: center; justify-content: flex-end; gap: 24px; pointer-events: none; }
.hero-controls > * { pointer-events: auto; }
.hero-count { font: 400 1.4rem/1 var(--font-display); letter-spacing: .08em; color: rgba(255,255,255,.6); direction: ltr; }
.hero-count b { font-weight: 400; color: #fff; font-size: 1.9rem; }
.hero-dots { display: flex; gap: 10px; }
.hero-dots button { width: 54px; height: 22px; padding: 0; border: 0; background: none; cursor: pointer; display: grid; align-items: center; }
.hero-dots span { display: block; height: 3px; border-radius: 0; background: rgba(255,255,255,.3); overflow: hidden; position: relative; }
.hero-dots span::after { content: ""; position: absolute; inset: 0; background: var(--me-gradient); transform: scaleX(0); transform-origin: left; }
html[dir="rtl"] .hero-dots span::after { transform-origin: right; }
.hero-dots [aria-selected="true"] span::after { animation: me-dot-fill var(--hero-interval, 6.5s) linear forwards; }
.hero-slider.is-paused .hero-dots [aria-selected="true"] span::after { animation-play-state: paused; }
.hero-dots button:focus-visible { outline: 2px solid var(--me-sky); outline-offset: 2px; }
@keyframes me-dot-fill { to { transform: scaleX(1); } }
@media (max-width: 767.98px) { .hero-controls { bottom: 40px; justify-content: center; } }

/* ---------- Company overview — pinned scroll story ----------
   JS (Story) writes 3 progress vars on .story, each 0 → 1:
   --t text fades out · --m media clears / frame goes full-bleed · --q play button in */
.story { --t: 0; --m: 0; --q: 0; position: relative; height: 300vh; background: #fff; }
.story__sticky { position: sticky; top: var(--header-h-min); height: calc(100vh - var(--header-h-min)); height: calc(100svh - var(--header-h-min)); overflow: hidden; display: grid; }
.story__frame {
  position: relative; isolation: isolate; overflow: hidden; background: var(--me-dark); color: #fff;
}
.story__media { position: absolute; inset: 0; z-index: -2; transform: scale(calc(1.18 - var(--m) * .18));
  filter: grayscale(calc(1 - var(--m))) blur(calc((1 - var(--m)) * 3px)) brightness(calc(.75 + var(--m) * .25));
  opacity: calc(.4 + var(--m) * .6); will-change: transform, filter, opacity; }
.story__poster, .story__video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.story__bgvideo { position: absolute; inset: 0; overflow: hidden; opacity: 0; transition: opacity 1.2s var(--ease-out); }
.story__bgvideo.is-ready { opacity: 1; }
.story__bgvideo iframe { position: absolute; top: 50%; left: 50%; border: 0; pointer-events: none;
  width: max(100%, calc((100svh - var(--header-h-min)) * 16 / 9)); height: max(100%, 56.25vw); transform: translate(-50%, -50%) scale(1.22); }
.story__shade { position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background: rgba(8,13,26,.72);
  opacity: calc(1 - var(--m) * .75); }
.story__shade::after { content: ""; position: absolute; inset: 0; background: radial-gradient(60% 60% at 50% 50%, transparent, rgba(8,13,26,.55)); }
.story__content { position: relative; height: 100%; display: flex; align-items: center; justify-content: center; text-align: center; }
.story__text { max-width: 820px; margin-inline: auto;
  opacity: calc(1 - var(--t)); transform: translateY(calc(var(--t) * -60px)); filter: blur(calc(var(--t) * 8px)); will-change: opacity, transform; }
.story.is-text-gone .story__text { visibility: hidden; }
.story__text h2 { color: #fff; }
.story__text .lead-text { color: rgba(255,255,255,.85); }
.story__text .eyebrow { justify-content: center; }
.story__text .title-line { margin-inline: auto; transform-origin: center; }
.story__play { position: absolute; inset: 0; margin: auto; width: max-content; height: max-content; z-index: 3;
  display: flex; flex-direction: column; align-items: center; gap: 18px; padding: 0; border: 0; background: none; color: #fff; cursor: pointer;
  opacity: var(--q); transform: scale(calc(.55 + var(--q) * .45)); pointer-events: none; }
.story.is-playable .story__play, .story__play:focus-visible { pointer-events: auto; opacity: 1; }
.story__play-btn { position: relative; width: 112px; height: 112px; border-radius: 50%; display: grid; place-items: center; background: var(--me-gradient); font-size: 44px; box-shadow: 0 20px 50px -14px rgba(0,153,255,.7); transition: transform var(--dur-2) var(--ease-out); }
.story__play-btn .bi { margin-inline-start: 6px; }
.story__play-btn::before, .story__play-btn::after { content: ""; position: absolute; inset: -14px; border-radius: 50%; border: 1px solid rgba(255,255,255,.45); animation: me-ring 2.6s var(--ease-out) infinite; }
.story__play-btn::after { animation-delay: 1.3s; }
.story__play:hover .story__play-btn { transform: scale(1.08); }
.story__play:focus-visible { outline: none; }
.story__play:focus-visible .story__play-btn { outline: 3px solid #fff; outline-offset: 6px; }
.story__play-label { font: 400 1.5rem/1 var(--font-display); letter-spacing: .14em; text-transform: uppercase; text-shadow: 0 2px 18px rgba(0,0,0,.5); }
@keyframes me-ring { from { transform: scale(.85); opacity: 1; } to { transform: scale(1.5); opacity: 0; } }
.story__hint { position: absolute; bottom: 28px; inset-inline-start: 50%; transform: translateX(-50%); display: flex; flex-direction: column; align-items: center; gap: 10px;
  font-size: .78rem; letter-spacing: .2em; text-transform: uppercase; color: rgba(255,255,255,.7); opacity: calc(1 - var(--t) * 2); }
html[dir="rtl"] .story__hint { transform: translateX(50%); }
.story__mouse { width: 22px; height: 34px; border: 2px solid rgba(255,255,255,.7); border-radius: 12px; position: relative; }
.story__mouse::after { content: ""; position: absolute; left: 50%; top: 6px; width: 3px; height: 7px; margin-left: -1.5px; border-radius: 2px; background: var(--me-sky); animation: me-wheel 1.6s var(--ease-in-out) infinite; }
@keyframes me-wheel { 0% { transform: translateY(0); opacity: 1; } 100% { transform: translateY(10px); opacity: 0; } }
@media (max-width: 767.98px) {
  .story { height: 240vh; }
  .story__shade { background: linear-gradient(180deg, rgba(8,13,26,.75), rgba(8,13,26,.9)); }
  .story__text .lead-text { font-size: 1.25rem; line-height: 1.6; }
  .story__play-btn { width: 88px; height: 88px; font-size: 34px; }
  .story__hint { display: none; }
}
/* no pinning when motion is reduced: text + clear video + play shown together */
@media (prefers-reduced-motion: reduce) {
  .story { height: auto; --t: 0 !important; --m: .6 !important; --q: 1 !important; }
  .story__sticky { position: relative; top: 0; height: auto; min-height: 640px; }
  .story__content { padding-block: 96px 220px; }
  .story__play { inset: auto 0 56px; pointer-events: auto; }
  .story__hint { display: none; }
}

/* video lightbox */
.video-modal { position: fixed; inset: 0; z-index: 2000; display: grid; place-items: center; padding: 24px; background: rgba(8,13,26,.88); backdrop-filter: blur(8px); opacity: 0; transition: opacity .35s var(--ease-out); }
.video-modal.is-open { opacity: 1; }
.video-modal__box { position: relative; width: min(1100px, 100%); aspect-ratio: 16 / 9; border-radius: var(--radius-lg); overflow: hidden; background: #000; box-shadow: 0 40px 80px -30px rgba(0,0,0,.8); transform: scale(.92); transition: transform .45s var(--ease-out); }
.video-modal.is-open .video-modal__box { transform: none; }
.video-modal__box iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.video-modal__close { position: absolute; top: 18px; inset-inline-end: 18px; width: 48px; height: 48px; border-radius: 50%; border: 1px solid rgba(255,255,255,.4); background: rgba(255,255,255,.08); color: #fff; font-size: 22px; display: grid; place-items: center; cursor: pointer; transition: background var(--dur-2), transform var(--dur-2) var(--ease-out); }
.video-modal__close:hover { background: var(--me-gradient); border-color: transparent; transform: rotate(90deg); }
body.has-modal { overflow: hidden; }

/* ---------- Services — expanding panels ----------
   One panel open at a time (.is-active). Desktop: horizontal accordion, opens on
   hover / click / focus. Mobile: vertical accordion, opens on tap. */
.svc-panels { display: flex; gap: 14px; height: 580px; margin-top: var(--space-7, 48px); }
.svc-panel { position: relative; isolation: isolate; flex: 1 1 0; min-width: 0; overflow: hidden; border-radius: var(--radius-lg); background: var(--me-dark); color: #fff;
  transition: flex-grow .8s var(--ease-out), box-shadow .5s; cursor: pointer; }
.svc-panel.is-active { flex-grow: 4.2; cursor: default; box-shadow: 0 30px 60px -30px rgba(8,13,26,.55); }
.svc-panel__img { position: absolute; inset: 0; z-index: -2; width: 100%; height: 100%; object-fit: cover;
  filter: grayscale(1) brightness(.55); transform: scale(1.15); transition: filter .8s var(--ease-out), transform 1.6s var(--ease-out); }
.svc-panel.is-active .svc-panel__img { filter: none; transform: scale(1); }
.svc-panel::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgba(8,13,26,.15) 0%, rgba(8,13,26,.35) 45%, rgba(8,13,26,.92) 100%); }
.svc-panel::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 4px; background: var(--me-gradient); transform: scaleX(0); transform-origin: left; transition: transform .8s var(--ease-out) .2s; }
html[dir="rtl"] .svc-panel::after { transform-origin: right; }
.svc-panel.is-active::after { transform: scaleX(1); }
.svc-panel:not(.is-active):hover .svc-panel__img { filter: grayscale(.4) brightness(.7); }

/* collapsed tab: number on top, vertical title, plus at the bottom */
.svc-panel__tab { position: absolute; inset: 0; z-index: 1; display: flex; flex-direction: column; align-items: center; justify-content: space-between; gap: 16px; padding: 28px 0;
  border: 0; background: none; color: #fff; cursor: inherit; transition: opacity .35s; }
.svc-panel__tab > * { transition: opacity .35s; }
.svc-panel.is-active .svc-panel__tab { pointer-events: none; }
.svc-panel.is-active .svc-panel__tab > * { opacity: 0; }
.svc-panel__tab:focus-visible { outline: 3px solid var(--me-sky); outline-offset: -6px; border-radius: var(--radius-lg); }
.svc-panel__num { font: 400 1.6rem/1 var(--font-display); color: var(--me-sky-hover); }
.svc-panel__label { flex: 1; writing-mode: vertical-rl; transform: rotate(180deg); font: 400 clamp(1.4rem, 1.8vw, 1.9rem)/1 var(--font-display); letter-spacing: .06em; text-transform: uppercase; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
html[dir="rtl"] .svc-panel__label { transform: none; font-family: var(--font-arabic, inherit); letter-spacing: 0; }
.svc-panel__plus { width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; border: 1px solid rgba(255,255,255,.45); transition: background .3s, transform .4s var(--ease-out); }
.svc-panel:hover .svc-panel__plus { background: var(--me-gradient); border-color: transparent; transform: rotate(90deg); }

/* open content */
.svc-panel__body { position: absolute; z-index: 2; left: 0; right: 0; bottom: 0; padding: clamp(24px, 3vw, 44px); max-width: 640px; }
.svc-panel__body > * { opacity: 0; transform: translateY(24px); transition: opacity .3s, transform .3s; }
.svc-panel.is-active .svc-panel__body > * { opacity: 1; transform: none; transition: opacity .6s var(--ease-out), transform .7s var(--ease-out); }
.svc-panel.is-active .svc-panel__body > :nth-child(1) { transition-delay: .3s; }
.svc-panel.is-active .svc-panel__body > :nth-child(2) { transition-delay: .35s; }
.svc-panel.is-active .svc-panel__body > :nth-child(3) { transition-delay: .42s; }
.svc-panel.is-active .svc-panel__body > :nth-child(4) { transition-delay: .5s; }
.svc-panel.is-active .svc-panel__body > :nth-child(5) { transition-delay: .58s; }
.svc-panel__icon { width: 58px; height: 58px; border-radius: 0; display: grid; place-items: center; font-size: 26px; background: var(--me-gradient); box-shadow: 0 14px 30px -12px rgba(0,153,255,.8); margin-bottom: 18px; }
.svc-panel__big { display: none; position: absolute; top: -78px; inset-inline-end: clamp(24px, 3vw, 44px); font: 400 7rem/1 var(--font-display); color: transparent; -webkit-text-stroke: 1px rgba(255,255,255,.35); pointer-events: none; }
.svc-panel__body h3 { color: #fff; font-size: clamp(1.8rem, 2.6vw, 2.6rem); margin-bottom: 12px; }
.svc-panel__body p { color: rgba(255,255,255,.82); margin-bottom: 22px; max-width: 52ch; }
@media (min-width: 992px) { .svc-panel__big { display: block; } .svc-panel__body { min-width: 460px; } }

@media (max-width: 991.98px) {
  .svc-panels { flex-direction: column; height: auto; gap: 12px; }
  .svc-panel { flex: none; height: 88px; transition: height .7s var(--ease-out), box-shadow .5s; }
  .svc-panel.is-active { height: 470px; }
  .svc-panel__tab { flex-direction: row; padding: 0 22px; }
  .svc-panel__label { writing-mode: horizontal-tb; transform: none; font-size: 1.35rem; text-align: start; }
  .svc-panel__plus { width: 38px; height: 38px; }
}
@media (prefers-reduced-motion: reduce) { .svc-panel__img { transform: none !important; } }

/* overview */
.overview-media { position: relative; }
.overview-media .video-facade { z-index: 1; }
.overview-media::before { content: ""; position: absolute; z-index: 0; inset: 28px -28px -28px 28px; border-radius: var(--radius-lg); background: var(--me-gradient-135); opacity: .12; }
html[dir="rtl"] .overview-media::before { inset: 28px 28px -28px -28px; }
.float-badge { position: absolute; z-index: 2; inset-inline-start: -24px; bottom: -28px; display: flex; align-items: center; gap: 14px; padding: 14px 18px; background: #fff; border-radius: var(--radius-md); box-shadow: var(--shadow-3); animation: me-float 5s var(--ease-in-out) infinite; }
.float-badge .ico { width: 46px; height: 46px; border-radius: 0; display: grid; place-items: center; color: #fff; background: var(--me-gradient); font-size: 22px; }
.float-badge strong { display: block; font: 400 1.6rem/1 var(--font-display); text-transform: uppercase; color: var(--me-ink); }
html[lang="ar"] .float-badge strong { font-family: var(--font-arabic); font-weight: 700; font-size: 1.05rem; }
.float-badge small { color: var(--me-muted); }
@keyframes me-float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-10px); } }
@media (max-width: 575.98px) { .float-badge { inset-inline-start: 12px; bottom: -22px; } }

/* CTA band */
/* ---------- CTA — wind band ---------- */
.cta-wind { position: relative; isolation: isolate; overflow: hidden; color: #fff; background: var(--me-dark); padding: var(--space-11) 0; text-align: center; }
.cta-wind__bg { position: absolute; inset: 0; z-index: -3; background-position: center; background-size: cover; background-repeat: no-repeat; background-attachment: fixed; }
/* touch devices ignore/jank on fixed backgrounds — fall back to a normal cover image */
@media (hover: none), (max-width: 991.98px) { .cta-wind__bg { background-attachment: scroll; } }
.cta-wind::before { content: ""; position: absolute; inset: 0; z-index: -2;
  background: radial-gradient(60% 80% at 50% 50%, rgba(0,153,255,.22), transparent 70%), linear-gradient(180deg, rgba(8,13,26,.9) 0%, rgba(13,22,52,.86) 55%, rgba(8,13,26,.96) 100%); }
.cta-wind__inner { position: relative; }
.cta-wind .eyebrow { color: var(--me-sky-hover); justify-content: center; }
.cta-wind__title { color: #fff; font-size: clamp(2.6rem, 5.6vw, 5.2rem); line-height: 1.02; max-width: none; margin: var(--space-4) 0 var(--space-7); }
.cta-wind__title .sw { opacity: .18; transition: opacity .35s linear, color .35s linear; }
.cta-wind__title .sw.is-on { opacity: 1; }
.cta-wind__title .sw.is-accent { background: var(--me-gradient); -webkit-background-clip: text; background-clip: text; color: transparent; }
.cta-wind__actions { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 16px 18px; }
.cta-wind__call { display: inline-flex; align-items: center; gap: 12px; color: #fff; text-decoration: none; margin-inline-start: 10px; text-align: start; }
.cta-wind__call small { display: block; font-size: .78rem; letter-spacing: .12em; text-transform: uppercase; color: rgba(255,255,255,.6); }
.cta-wind__call b { font-weight: 600; font-size: 1.05rem; }
.cta-wind__call-ico { position: relative; width: 50px; height: 50px; border-radius: 50%; display: grid; place-items: center; font-size: 19px; border: 1px solid rgba(255,255,255,.35); transition: background .3s, border-color .3s; }
.cta-wind__call-ico::after { content: ""; position: absolute; inset: -1px; border-radius: 50%; border: 1px solid var(--me-sky); animation: me-ring 2.4s var(--ease-out) infinite; }
.cta-wind__call:hover { color: #fff; }
.cta-wind__call:hover .cta-wind__call-ico { background: var(--me-gradient); border-color: transparent; }
@media (max-width: 767.98px) {
  .cta-wind { padding: var(--space-10) 0; }
  .cta-wind__call { margin-inline-start: 0; }
  .cta-wind__actions .btn-me { width: 100%; justify-content: center; }
}
@media (prefers-reduced-motion: reduce) { .cta-wind__title .sw { opacity: 1; } }

/* GM message */
/* ---------- General Manager — editorial ---------- */
[data-scroll-words] .sw { transition: opacity .35s linear, color .35s linear; }
.gm-x { text-align: center; }
.gm-x__head { display: flex; align-items: center; justify-content: center; gap: 14px; }
.gm-x__head .eyebrow { margin: 0; }
.gm-x__label { margin: 0; font-size: 1rem; font-family: var(--font-body); font-weight: 700; letter-spacing: .24em; text-transform: uppercase; color: #000000; }
.gm-x__label::before { content: "/"; margin-inline-end: 14px; color: var(--me-line-strong, #cbd5e1); }
.gm-x__lead { margin: var(--space-6) auto 0; max-width: 34ch; font: 400 clamp(2.2rem, 4.6vw, 4.4rem)/1.06 var(--font-display); text-transform: uppercase; color: var(--me-ink); letter-spacing: .005em; }
html[lang="ar"] .gm-x__lead { font-family: var(--font-arabic); font-weight: 700; font-size: clamp(1.7rem, 3.2vw, 2.9rem); line-height: 1.5; text-transform: none; }
.gm-x__lead .sw { opacity: .14; }
.gm-x__lead .sw.is-on { opacity: 1; }
.gm-x__lead .sw.is-accent { background: var(--me-gradient); -webkit-background-clip: text; background-clip: text; color: transparent; }

.gm-x__divider { display: flex; align-items: center; gap: clamp(16px, 3vw, 40px); margin: var(--space-9) 0 var(--space-4); }
.gm-x__line { flex: 1; height: 1px; background: var(--me-line); position: relative; overflow: hidden; }
.gm-x__line::after { content: ""; position: absolute; inset: 0; background: var(--me-gradient); transform: scaleX(0); transition: transform 1.4s var(--ease-out) .2s; }
.gm-x__line:first-child::after { transform-origin: right; }
.gm-x__line:last-child::after { transform-origin: left; }
.gm-x__divider.is-visible .gm-x__line::after { transform: scaleX(1); }
.gm-x__avatar { position: relative; width: 220px; height: auto; margin: 0; flex: none; display: grid; place-items: center; }
@keyframes me-spin { to { transform: rotate(360deg); } }
.gm-x__photo { position: relative; width: 220px; aspect-ratio: 1; border-radius: 50%; overflow: hidden; display: grid; place-items: center; background: var(--me-gradient-135);
  transform: scale(.6); opacity: 0; transition: transform .9s var(--ease-out), opacity .6s; }
.gm-x__divider.is-visible .gm-x__photo { transform: none; opacity: 1; }
.gm-x__photo img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center top; background: #fff; }
.gm-x__photo b { font: 400 2.6rem/1 var(--font-display); color: #fff; letter-spacing: .04em; }
.gm-x__photo:not(.is-empty) b { display: none; }
.gm-x__sign strong { display: block; font: 400 2rem/1.1 var(--font-display); text-transform: uppercase; color: var(--me-ink); }
html[lang="ar"] .gm-x__sign strong { font-family: var(--font-arabic); font-weight: 700; font-size: 1.35rem; }
.gm-x__sign small { color: var(--me-sky-deep, var(--me-blue)); font-weight: 700; letter-spacing: .18em; text-transform: uppercase; }
html[lang="ar"] .gm-x__sign small { letter-spacing: 0; }
.gm-x__body { margin: var(--space-7) auto 0; max-width: 900px; columns: 2; column-gap: var(--space-8); text-align: start; color: var(--me-ink-2); font-size: 1.375rem; line-height: 1.85; }
@media (max-width: 767.98px) {
  .gm-x__body { columns: 1; }
  .gm-x__avatar { width: 170px; }
  .gm-x__photo { width: 170px; }
  }
/* Mission & Vision columns under the general manager signature (about page) */
.gm-x__vm { margin: var(--space-7) auto 0; max-width: 1000px; display: grid; grid-template-columns: 1fr 1fr; gap: var(--space-8); text-align: start; }
.gm-x__vm .eyebrow { margin-bottom: var(--space-4); }
.gm-x__vm p { color: var(--me-ink-2); line-height: 1.7; }
.gm-x__vm p:last-child { margin-bottom: 0; }
.gm-x__vm .gm-x__vm-lead { color: var(--me-ink); font-weight: 600; }
@media (max-width: 767.98px) { .gm-x__vm { grid-template-columns: 1fr; gap: var(--space-6); } }
@media (prefers-reduced-motion: reduce) { .gm-x__lead .sw { opacity: 1; } }

/* =====================================================================
   24 ABOUT PAGE
   ===================================================================== */
html:has(.jump-bar) { scroll-padding-top: calc(var(--header-h-min) + 72px); }

/* in-page jump bar — sticks under the navbar, ink follows the current section */
.jump-bar { position: sticky; top: var(--header-h-min); z-index: 1020; background: rgba(255,255,255,.9); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); border-bottom: 1px solid var(--me-line); }
.jump-bar__track { position: relative; display: flex; gap: clamp(18px, 3vw, 40px); overflow-x: auto; scrollbar-width: none; }
.jump-bar__track::-webkit-scrollbar { display: none; }
.jump-bar a { flex: none; padding: 18px 0; font: 700 13px/1 var(--font-body); letter-spacing: .14em; text-transform: uppercase; color: var(--me-ink-2); white-space: nowrap; transition: color var(--dur-1); }
html[lang="ar"] .jump-bar a { font-family: var(--font-arabic); letter-spacing: 0; font-size: 14px; }
.jump-bar a:hover, .jump-bar a.is-active { color: var(--me-blue); }
.jump-bar__ink { position: absolute; bottom: 0; left: 0; height: 3px; width: var(--w, 0); transform: translateX(var(--x, 0)); border-radius: 0; background: var(--me-gradient); transition: transform .5s var(--ease-out), width .5s var(--ease-out); }

/* about me */
.dept-chips { list-style: none; padding: 0; margin: var(--space-6) 0 0; display: flex; flex-wrap: wrap; gap: 10px; }
.dept-chips li { display: inline-flex; align-items: center; gap: 8px; padding: 9px 16px; border: 1px solid var(--me-line-2); border-radius: 0; font-weight: 600; font-size: .95rem; color: var(--me-ink); background: #fff; transition: border-color var(--dur-2), color var(--dur-2), box-shadow var(--dur-2); }
.dept-chips li .bi { color: var(--me-sky); }
.dept-chips li:hover { border-color: var(--me-sky); color: var(--me-blue); box-shadow: 0 10px 24px -16px rgba(0,153,255,.7); }
.about-figure { position: relative; width: 100%; border-radius: 0; overflow: hidden; aspect-ratio: 5 / 4; background: var(--me-surface-3); box-shadow: 0 40px 70px -40px rgba(8,13,26,.45); }
.about-figure img { width: 100%; height: 100%; object-fit: cover; transform: scale(1.08); transition: transform 1.6s var(--ease-out); }
.about-figure.is-visible img { transform: none; }
@media (min-width: 992px) { .about-figure { aspect-ratio: auto; min-height: 100%; } .about-figure img { position: absolute; inset: 0; } }

/* vision & mission — stacking cards */
.stack { position: relative; margin-top: var(--space-8); }
.stack-card { --s: 1; --dim: 0; position: sticky; top: calc(var(--header-h-min) + 80px); display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); min-height: 540px; margin-bottom: var(--space-8);
  background: #fff; border: 1px solid var(--me-line); border-radius: var(--radius-lg); overflow: hidden; box-shadow: 0 30px 60px -36px rgba(8,13,26,.4);
  transform: scale(var(--s)); transform-origin: 50% 0; will-change: transform; }
.stack-card + .stack-card { top: calc(var(--header-h-min) + 100px); }
.stack-card:last-child { margin-bottom: 0; }
.stack-card::after { content: ""; position: absolute; inset: 0; background: var(--me-dark); opacity: calc(var(--dim) * .25); pointer-events: none; }
.stack-card__media { position: relative; overflow: hidden; background: var(--me-surface-3); }
.stack-card__media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.stack-card__body { position: relative; padding: clamp(28px, 4vw, 56px); display: flex; flex-direction: column; justify-content: center; }
.stack-card__num { position: absolute; top: 18px; inset-inline-end: 28px; font: 400 7rem/1 var(--font-display); color: transparent; -webkit-text-stroke: 1px var(--me-line-2); pointer-events: none; }
.stack-card__lead { font: 400 clamp(1.7rem, 2.6vw, 2.5rem)/1.12 var(--font-display); text-transform: uppercase; color: var(--me-ink); margin: var(--space-3) 0 var(--space-4); max-width: 26ch; }
html[lang="ar"] .stack-card__lead { font-family: var(--font-arabic); font-weight: 700; text-transform: none; font-size: clamp(1.3rem, 2vw, 1.75rem); line-height: 1.6; }
.stack-card__body > p:not(.stack-card__lead) { color: var(--me-ink-2); max-width: 60ch; }
.pillars-title { font: 700 13px/1 var(--font-body); letter-spacing: .18em; text-transform: uppercase; color: var(--me-blue); margin: var(--space-5) 0 var(--space-4); }
html[lang="ar"] .pillars-title { font-family: var(--font-arabic); letter-spacing: 0; font-size: 15px; }
.pillars { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.pillars li { display: flex; flex-direction: column; gap: 10px; padding: 16px; border-radius: var(--radius-md); background: var(--me-surface-2); }
.pillars .bi { width: 40px; height: 40px; border-radius: 0; display: grid; place-items: center; color: #fff; background: var(--me-gradient); font-size: 18px; }
.pillars strong { display: block; color: var(--me-ink); margin-bottom: 4px; }
.pillars span { font-size: .92rem; color: var(--me-ink-2); line-height: 1.55; }
@media (max-width: 991.98px) {
  .stack-card { grid-template-columns: 1fr; min-height: 0; top: calc(var(--header-h-min) + 64px); }
  .stack-card + .stack-card { top: calc(var(--header-h-min) + 80px); }
  .stack-card__media { aspect-ratio: 16 / 9; }
  .pillars { grid-template-columns: 1fr; }
  .stack-card__num { font-size: 5rem; }
}
@media (max-width: 767.98px) { .stack-card { position: relative; top: 0 !important; transform: none; } }

/* field services */
.fs-section { position: relative; isolation: isolate; color: rgba(255,255,255,.88); background: linear-gradient(135deg, var(--me-sky) 0%, var(--me-blue) 100%); }
.fs-section::before { content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none; background: radial-gradient(60% 80% at 0% 0%, rgba(255,255,255,.12), transparent 60%), radial-gradient(50% 70% at 100% 100%, rgba(51,51,153,.35), transparent 70%); }
.fs-section .eyebrow { color: #fff; }
.fs-section .eyebrow::before { background: #fff; }
.fs-section h2 { color: #fff; }
.fs-section .lead-text { color: rgba(255,255,255,.9); }
.fs-tiles { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.fs-tile { position: relative; margin: 0; aspect-ratio: 1 / 1; border-radius: var(--radius-lg); overflow: hidden; background: rgba(255,255,255,.12); isolation: isolate; box-shadow: 0 30px 50px -30px rgba(8,13,26,.6); }
.fs-tile img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; filter: grayscale(.85) brightness(.8); transform: scale(1.04); transition: filter .7s var(--ease-out), transform 1.2s var(--ease-out); }
.fs-tile::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 4px; background: #fff; transform: scaleX(0); transform-origin: left; transition: transform .6s var(--ease-out); }
html[dir="rtl"] .fs-tile::after { transform-origin: right; }
.fs-tile:hover img { filter: none; transform: scale(1.1); }
.fs-tile:hover::after { transform: scaleX(1); }
.fs-tile figcaption { position: absolute; left: 0; right: 0; bottom: 0; padding: 24px; display: flex; align-items: baseline; gap: 14px; color: #fff; font: 400 1.9rem/1.05 var(--font-display); text-transform: uppercase; }
html[lang="ar"] .fs-tile figcaption { font-family: var(--font-arabic); font-weight: 700; font-size: 1.3rem; text-transform: none; }
.fs-tile__num { font-size: 1rem; color: var(--me-sky-hover); font-family: var(--font-display); }
@media (max-width: 767.98px) { .fs-tiles { grid-template-columns: 1fr; } .fs-tile { aspect-ratio: 20 / 11; } }

/* why ME */
.why-media { position: sticky; top: calc(var(--header-h-min) + 90px); }
.why-media__frame { border-radius: var(--radius-lg); overflow: hidden; aspect-ratio: 4 / 5; background: var(--me-surface-3); }
.why-media__frame img { width: 100%; height: 100%; object-fit: cover; }
.why-list { list-style: none; padding: 0; margin: var(--space-6) 0 var(--space-6); }
.why-list li { display: grid; grid-template-columns: 56px 1fr; gap: 20px; padding: 24px 0; border-bottom: 1px solid var(--me-line); }
.why-list li:first-child { border-top: 1px solid var(--me-line); }
.why-list__ico { width: 56px; height: 56px; border-radius: 0; display: grid; place-items: center; font-size: 24px; color: var(--me-blue); background: var(--me-surface-3); transition: background var(--dur-2), color var(--dur-2), transform var(--dur-2) var(--ease-out); }
.why-list li:hover .why-list__ico { background: var(--me-gradient); color: #fff; transform: rotate(-6deg); }
.why-list h3 { font-size: 1.7rem; margin: 2px 0 6px; color: var(--me-ink); }
html[lang="ar"] .why-list h3 { font-size: 1.2rem; }
.why-list p { margin: 0; color: var(--me-ink-2); }
.commitment { position: relative; padding: 22px 26px; padding-inline-start: 30px; border-radius: var(--radius-md); background: var(--me-surface-3); color: var(--me-ink-2); margin: 0; }
.commitment::before { content: ""; position: absolute; top: 14px; bottom: 14px; inset-inline-start: 0; width: 4px; border-radius: 0; background: var(--me-gradient-135); }
.commitment strong { color: var(--me-blue); }
@media (max-width: 991.98px) { .why-media { position: relative; top: 0; } .why-media__frame { aspect-ratio: 16 / 10; } }

/* gallery — horizontal scroll strip (HGallery) + lightbox */
.hgallery { --pin-top: calc(var(--header-h-min) + 53px); position: relative; background: var(--me-surface-2); }
.hgallery__sticky { position: sticky; top: var(--pin-top); height: calc(100vh - var(--pin-top)); height: calc(100svh - var(--pin-top)); display: flex; flex-direction: column; justify-content: center; gap: clamp(20px, 4vh, 44px); overflow: hidden; padding: clamp(24px, 5vh, 56px) 0; }
.hgallery__head { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; }
.hgallery__head h2 { margin: 0; }
.hgallery__meta { display: flex; align-items: center; gap: 22px; }
.hgallery__count { font: 400 1.6rem/1 var(--font-display); letter-spacing: .06em; color: var(--me-ink-2); direction: ltr; white-space: nowrap; }
.hgallery__count b { font-weight: 400; font-size: 2.6rem; color: var(--me-ink); }
.hgallery__bar { position: relative; width: clamp(120px, 16vw, 240px); height: 2px; background: var(--me-line-2); overflow: hidden; }
.hgallery__bar span { position: absolute; inset: 0; background: var(--me-gradient); transform: scaleX(var(--p, 0)); transform-origin: left; }
html[dir="rtl"] .hgallery__bar span { transform-origin: right; }
.hgallery__hint { display: inline-flex; align-items: center; gap: 8px; font: 700 12px/1 var(--font-body); letter-spacing: .18em; text-transform: uppercase; color: var(--me-ink-2); }
html[lang="ar"] .hgallery__hint { font-family: var(--font-arabic); letter-spacing: 0; font-size: 13px; }
.hgallery__hint .bi { color: var(--me-sky); animation: me-nudge 1.6s var(--ease-in-out) infinite; }
@keyframes me-nudge { 50% { transform: translateY(4px); } }
.hgallery__viewport { overflow: hidden; }
.hgallery__track { display: flex; align-items: center; gap: clamp(16px, 2vw, 28px); padding-inline: max(16px, calc((100vw - 1296px) / 2 + 12px)); width: max-content; transform: translate3d(var(--x, 0px), 0, 0); will-change: transform; }
.hg-item { --h: 50vh; position: relative; flex: none; align-self: center; padding: 0; border: 0; background: none; cursor: zoom-in; display: flex; flex-direction: column; gap: 12px; }
.hg-item__frame { position: relative; display: block; overflow: hidden; height: min(var(--h), 480px); aspect-ratio: 4 / 3; background: var(--me-surface-3); }
.hg-item__frame img { position: absolute; inset: 0; width: 100%; height: 100%; max-width: none; object-fit: cover; transform: translate3d(var(--px, 0px), 0, 0) scale(1.2); transition: filter .6s var(--ease-out); filter: saturate(.85); will-change: transform; }
.hg-item__frame::after { content: ""; position: absolute; inset: 0; border: 0 solid #fff; background: linear-gradient(180deg, transparent 60%, rgba(8,13,26,.35)); opacity: 0; transition: opacity .4s; }
.hg-item:hover .hg-item__frame img { filter: none; }
.hg-item:hover .hg-item__frame::after { opacity: 1; }
.hg-item__num { font: 400 1.25rem/1 var(--font-display); letter-spacing: .1em; color: var(--me-ink-2); display: flex; align-items: center; gap: 10px; }
.hg-item__num::after { content: ""; flex: 1; height: 1px; background: var(--me-line-2); transform: scaleX(.25); transform-origin: left; transition: transform .6s var(--ease-out), background .3s; }
html[dir="rtl"] .hg-item__num::after { transform-origin: right; }
.hg-item:hover .hg-item__num { color: var(--me-blue); }
.hg-item:hover .hg-item__num::after { transform: scaleX(1); background: var(--me-gradient); }
.hg-item:focus-visible { outline: 3px solid var(--me-sky); outline-offset: 4px; }
/* phones / reduced motion: native swipe strip, no pinning */
.hgallery.is-static .hgallery__sticky { position: relative; top: 0; height: auto; padding: var(--space-10) 0; }
.hgallery.is-static .hgallery__viewport { overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; }
.hgallery.is-static .hgallery__viewport::-webkit-scrollbar { display: none; }
.hgallery.is-static .hgallery__track { transform: none; }
.hgallery.is-static .hg-item { scroll-snap-align: center; }
.hgallery.is-static .hgallery__hint .bi { transform: rotate(-90deg); animation: none; }
html[dir="rtl"] .hgallery.is-static .hgallery__hint .bi { transform: rotate(90deg); }
@media (max-width: 767.98px) {
  .hgallery__head { flex-direction: column; align-items: flex-start; }
  .hg-item__frame { height: 56vw; }
}

.lightbox { position: fixed; inset: 0; z-index: 2000; display: grid; place-items: center; padding: 70px 80px; background: rgba(8,13,26,.92); backdrop-filter: blur(6px); opacity: 0; transition: opacity .3s var(--ease-out); }
.lightbox.is-open { opacity: 1; }
.lightbox__img { max-width: 100%; max-height: 100%; border-radius: var(--radius-md); box-shadow: 0 40px 80px -30px rgba(0,0,0,.8); transform: scale(.96); transition: transform .4s var(--ease-out), opacity .25s; }
.lightbox.is-open .lightbox__img { transform: none; }
.lightbox__img.is-swapping { opacity: 0; }
.lightbox__btn { position: absolute; width: 52px; height: 52px; border-radius: 50%; border: 1px solid rgba(255,255,255,.35); background: rgba(255,255,255,.06); color: #fff; font-size: 22px; display: grid; place-items: center; cursor: pointer; transition: background var(--dur-2), border-color var(--dur-2); }
.lightbox__btn:hover { background: var(--me-gradient); border-color: transparent; }
.lightbox__btn:focus-visible { outline: 3px solid var(--me-sky); outline-offset: 3px; }
.lightbox__close { top: 18px; inset-inline-end: 18px; }
.lightbox__prev { inset-inline-start: 18px; top: 50%; margin-top: -26px; }
.lightbox__next { inset-inline-end: 18px; top: 50%; margin-top: -26px; }
html[dir="rtl"] .lightbox__prev .bi, html[dir="rtl"] .lightbox__next .bi { transform: scaleX(-1); }
.lightbox__count { position: absolute; bottom: 22px; left: 50%; transform: translateX(-50%); color: rgba(255,255,255,.7); font: 400 1.3rem/1 var(--font-display); letter-spacing: .1em; direction: ltr; }
@media (max-width: 767.98px) { .lightbox { padding: 70px 12px; } .lightbox__prev, .lightbox__next { top: auto; bottom: 14px; margin: 0; } }


/* =====================================================================
   25 TESTING FACILITY PAGE
   ===================================================================== */
.tf-intro__title { font-size: clamp(2.4rem, 4.6vw, 4rem); }
.tf-intro__lead { margin: var(--space-6) auto 0; max-width: none; font: 400 clamp(1.8rem, 3.2vw, 2.9rem)/1.12 var(--font-display); text-transform: uppercase; color: var(--me-ink); }
html[lang="ar"] .tf-intro__lead { font-family: var(--font-arabic); font-weight: 700; text-transform: none; font-size: clamp(1.4rem, 2.4vw, 2rem); line-height: 1.6; }
.tf-intro__lead .sw { opacity: .14; }
.tf-intro__lead .sw.is-on { opacity: 1; }
.tf-intro__lead .sw.is-accent { background: var(--me-gradient); -webkit-background-clip: text; background-clip: text; color: transparent; }
.tf-intro__text { margin: var(--space-5) auto 0; max-width: none; color: var(--me-ink-2); font-size: 1.375rem; }

/* scrollytelling: pinned photo + steps */
.tf-stage { position: sticky; top: calc(var(--header-h-min) + (100vh - var(--header-h-min) - min(62vh, 540px)) / 2); height: min(62vh, 540px); display: flex; align-items: center; }
.tf-stage__frame { position: relative; width: 100%; height: 100%; overflow: hidden; background: var(--me-surface-3); }
.tf-stage__frame img { position: absolute; inset: 0; width: 100%; height: 100%; max-width: none; object-fit: cover; opacity: 0; transform: scale(1.08); transition: opacity .8s var(--ease-out), transform 1.6s var(--ease-out); }
.tf-stage__frame img.is-active { opacity: 1; transform: none; }
.tf-stage__frame::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 65%, rgba(8,13,26,.55)); pointer-events: none; }
.tf-stage__count { position: absolute; z-index: 1; bottom: 22px; inset-inline-start: 26px; color: rgba(255,255,255,.8); font: 400 1.6rem/1 var(--font-display); letter-spacing: .08em; direction: ltr; }
.tf-stage__count b { font-weight: 400; font-size: 3rem; color: #fff; }

.tf-steps { position: relative; padding-inline-start: 40px; }
.tf-steps__rail { position: absolute; top: 0; bottom: 0; inset-inline-start: 0; width: 2px; background: var(--me-line-2); }
.tf-steps__rail span { position: absolute; inset: 0; background: var(--me-gradient-135); transform: scaleY(var(--p, 0)); transform-origin: top; }
.tf-step { position: relative; min-height: 70vh; display: flex; flex-direction: column; justify-content: center; padding: var(--space-8) 0; opacity: .35; transition: opacity .6s var(--ease-out); }
.tf-step.is-active { opacity: 1; }
.tf-step::before { content: ""; position: absolute; top: 50%; inset-inline-start: -46px; width: 14px; height: 14px; margin-top: -7px; background: #fff; border: 2px solid var(--me-line-2); transition: background .4s, border-color .4s, transform .4s var(--ease-out); }
.tf-step.is-active::before { background: var(--me-sky); border-color: var(--me-sky); transform: rotate(45deg); }
.tf-step__num { font: 400 5.5rem/.9 var(--font-display); color: transparent; -webkit-text-stroke: 1px var(--me-line-2); margin-bottom: -26px; transition: -webkit-text-stroke-color .5s; }
.tf-step.is-active .tf-step__num { -webkit-text-stroke-color: var(--me-sky); }
.tf-step__ico { position: relative; width: 52px; height: 52px; display: grid; place-items: center; font-size: 22px; color: #fff; background: var(--me-gradient); margin-bottom: var(--space-4); }
.tf-step h3 { font-size: clamp(2rem, 3vw, 2.8rem); margin-bottom: var(--space-3); color: var(--me-ink); }
html[lang="ar"] .tf-step h3 { font-size: clamp(1.4rem, 2.2vw, 1.9rem); }
.tf-step__lead { font-size: 1.375rem; font-weight: 600; color: var(--me-ink); }
.tf-step p { color: var(--me-ink-2); max-width: 60ch; }
.tf-tags { list-style: none; padding: 0; margin: var(--space-3) 0 0; display: flex; flex-wrap: wrap; gap: 8px; }
.tf-tags li { padding: 7px 14px; border: 1px solid var(--me-line-2); background: #fff; font-size: .9rem; font-weight: 600; color: var(--me-ink); }
.tf-tags li::before { content: ""; display: inline-block; width: 6px; height: 6px; margin-inline-end: 8px; vertical-align: middle; background: var(--me-sky); }
.tf-step__img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; margin-bottom: var(--space-5); }
@media (max-width: 991.98px) {
  .tf-step { min-height: 0; opacity: 1; padding: var(--space-6) 0; }
  .tf-step__num { font-size: 4rem; margin-bottom: -18px; }
}

/* closing CTA — white "signal" card on the light page, separated from the footer */
.tf-close { background: var(--me-surface-2); padding-bottom: var(--space-11); }
.tf-cta { position: relative; overflow: hidden; isolation: isolate; padding: clamp(36px, 5vw, 72px); background: #fff; border: 1px solid var(--me-line); box-shadow: 0 40px 80px -50px rgba(8,13,26,.35); }
.tf-cta::before { content: ""; position: absolute; top: 0; left: 0; right: 0; height: 4px; background: var(--me-gradient-135); transform: scaleX(0); transform-origin: left; transition: transform 1.2s var(--ease-out) .2s; }
html[dir="rtl"] .tf-cta::before { transform-origin: right; }
.tf-cta.is-visible::before { transform: scaleX(1); }
.tf-cta__wave { position: absolute; z-index: -1; left: 0; right: 0; bottom: 0; width: 100%; height: 55%; opacity: .35; pointer-events: none; }
.tf-cta__wave path { fill: none; stroke-width: 1.6; vector-effect: non-scaling-stroke; stroke-dasharray: 2400; stroke-dashoffset: 2400; }
.tf-cta__wave .w1 { stroke: var(--me-sky); }
.tf-cta__wave .w2 { stroke: var(--me-indigo, #333399); opacity: .55; }
.tf-cta.is-visible .tf-cta__wave path { animation: me-trace 2.6s var(--ease-out) forwards, me-signal 9s linear 2.6s infinite; }
.tf-cta.is-visible .tf-cta__wave .w2 { animation-delay: .3s, 2.9s; }
@keyframes me-trace { to { stroke-dashoffset: 0; } }
@keyframes me-signal { from { stroke-dashoffset: 0; } to { stroke-dashoffset: -4800; } }
.tf-cta__scan { position: absolute; z-index: -1; top: 0; bottom: 0; width: 1px; left: 0; background: linear-gradient(180deg, transparent, var(--me-sky), transparent); opacity: 0; }
.tf-cta.is-visible .tf-cta__scan { animation: me-scan 6s var(--ease-in-out) 1s infinite; }
@keyframes me-scan { 0% { left: 0; opacity: 0; } 10% { opacity: .9; } 90% { opacity: .9; } 100% { left: 100%; opacity: 0; } }
.tf-cta__title { margin: var(--space-3) 0 0; font-size: clamp(2.6rem, 5vw, 4.8rem); line-height: 1; color: var(--me-ink); }
.tf-cta__accent { background: var(--me-gradient); -webkit-background-clip: text; background-clip: text; color: transparent; }
html[lang="ar"] .tf-cta__title { line-height: 1.35; }
.tf-cta__text { color: var(--me-ink-2); font-size: 1.375rem; margin-bottom: var(--space-5); }
.tf-cta__actions { display: flex; flex-wrap: wrap; gap: 12px; }
@media (prefers-reduced-motion: reduce) { .tf-cta__wave path { stroke-dashoffset: 0; animation: none !important; } .tf-cta__scan { display: none; } }


/* =====================================================================
   26 R&D PAGE
   ===================================================================== */
.rd-pillars { list-style: none; padding: 0; margin: var(--space-6) 0 0; display: grid; gap: 0; border-top: 1px solid var(--me-line); }
.rd-pillars li { display: flex; align-items: baseline; gap: 18px; padding: 14px 0; border-bottom: 1px solid var(--me-line); font-weight: 600; color: var(--me-ink); }
.rd-pillars b { font: 400 1.2rem/1 var(--font-display); color: var(--me-sky); letter-spacing: .08em; }

/* CAD viewport frame */
.cad-view { position: relative; margin: 0; height: 100%; min-height: 420px; overflow: hidden; background: #0b1426; isolation: isolate; }
.cad-view img { position: absolute; inset: 0; width: 100%; height: 100%; max-width: none; object-fit: cover; transform: scale(1.06); transition: transform 1.8s var(--ease-out); }
.cad-view.is-visible img { transform: none; }
.cad-view__grid { position: absolute; inset: 0; pointer-events: none; opacity: .0; transition: opacity 1.2s .3s;
  background-image: linear-gradient(rgba(255,255,255,.12) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.12) 1px, transparent 1px);
  background-size: 48px 48px; mix-blend-mode: overlay; }
.cad-view.is-visible .cad-view__grid { opacity: 1; }
.cad-view__scan { position: absolute; left: 0; right: 0; height: 2px; top: 0; background: linear-gradient(90deg, transparent, var(--me-sky), transparent); box-shadow: 0 0 18px 2px rgba(0,153,255,.6); opacity: 0; }
.cad-view.is-visible .cad-view__scan { animation: me-scan-y 5s var(--ease-in-out) .6s infinite; }
@keyframes me-scan-y { 0% { top: 0; opacity: 0; } 8% { opacity: 1; } 92% { opacity: 1; } 100% { top: 100%; opacity: 0; } }
.cad-view__corner { position: absolute; width: 26px; height: 26px; border: 2px solid #fff; opacity: .85; }
.cad-view__corner.tl { top: 16px; left: 16px; border-right: 0; border-bottom: 0; }
.cad-view__corner.tr { top: 16px; right: 16px; border-left: 0; border-bottom: 0; }
.cad-view__corner.bl { bottom: 56px; left: 16px; border-right: 0; border-top: 0; }
.cad-view__corner.br { bottom: 56px; right: 16px; border-left: 0; border-top: 0; }
.cad-view__bar { position: absolute; left: 0; right: 0; bottom: 0; display: flex; justify-content: space-between; gap: 12px; padding: 12px 18px; background: rgba(8,13,26,.72); backdrop-filter: blur(6px); color: rgba(255,255,255,.75); font: 600 11px/1 ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; letter-spacing: .12em; direction: ltr; }
.cad-view__bar .bi { color: #22c55e; font-size: 8px; vertical-align: middle; margin-right: 6px; animation: me-blink 1.4s steps(2) infinite; }
@keyframes me-blink { 50% { opacity: .2; } }
@media (max-width: 991.98px) { .cad-view { min-height: 0; aspect-ratio: 16 / 10; } }

/* simulation switcher on logo gradient */
.sim-section { position: relative; isolation: isolate; color: rgba(255,255,255,.9); background: linear-gradient(135deg, var(--me-sky) 0%, var(--me-blue) 100%); }
.sim-section::before { content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none; background: radial-gradient(60% 80% at 0% 0%, rgba(255,255,255,.12), transparent 60%), radial-gradient(50% 70% at 100% 100%, rgba(51,51,153,.35), transparent 70%); }
.sim-section .eyebrow { color: #fff; }
.sim-section .eyebrow::before { background: #fff; }
.sim-section h2 { color: #fff; margin: 0; }
.sim-head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 24px; margin-bottom: var(--space-8); }
.sim-tabs { position: relative; display: inline-flex; padding: 5px; gap: 4px; border-radius: var(--radius-pill); background: rgba(255,255,255,.14); border: 1px solid rgba(255,255,255,.3); }
.sim-tabs button { position: relative; z-index: 1; border: 0; background: none; padding: 12px 26px; border-radius: var(--radius-pill); font: 700 14px/1 var(--font-body); letter-spacing: .14em; color: #fff; cursor: pointer; transition: color .3s; }
.sim-tabs button[aria-selected="true"] { color: var(--me-blue); }
.sim-tabs button:focus-visible { outline: 2px solid #fff; outline-offset: 2px; }
.sim-tabs .pill { position: absolute; z-index: 0; top: 5px; bottom: 5px; border-radius: var(--radius-pill); background: #fff; transition: left .45s var(--ease-out), width .45s var(--ease-out); }
.sim-panel[hidden] { display: none; }
.sim-panel { animation: me-fade-up .6s var(--ease-out); }
.sim-media { position: relative; aspect-ratio: 4 / 3; overflow: hidden; background: rgba(255,255,255,.1); box-shadow: 0 40px 70px -40px rgba(8,13,26,.6); }
.sim-media img { position: absolute; inset: 0; width: 100%; height: 100%; max-width: none; object-fit: cover; animation: me-zoom-out 1.4s var(--ease-out); }
@keyframes me-zoom-out { from { transform: scale(1.1); } to { transform: none; } }
.sim-title { color: #fff; font-size: clamp(2rem, 3.2vw, 3rem); margin-bottom: var(--space-4); }
html[lang="ar"] .sim-title { font-size: clamp(1.4rem, 2.4vw, 2rem); }
.sim-text { font-size: 1.375rem; color: rgba(255,255,255,.88); }
.sim-sub { font: 700 13px/1 var(--font-body); letter-spacing: .18em; text-transform: uppercase; color: #fff; margin: var(--space-6) 0 var(--space-4); opacity: .85; }
html[lang="ar"] .sim-sub { font-family: var(--font-arabic); letter-spacing: 0; font-size: 15px; }
.sim-benefits { list-style: none; padding: 0; margin: 0; display: grid; gap: 0; border-top: 1px solid rgba(255,255,255,.25); }
.sim-benefits li { display: flex; align-items: center; gap: 14px; padding: 13px 0; border-bottom: 1px solid rgba(255,255,255,.25); font-weight: 600; color: #fff; opacity: 0; transform: translateX(-14px); animation: me-slide-in .6s var(--ease-out) forwards; }
html[dir="rtl"] .sim-benefits li { transform: translateX(14px); }
.sim-benefits li:nth-child(1) { animation-delay: .15s; } .sim-benefits li:nth-child(2) { animation-delay: .23s; } .sim-benefits li:nth-child(3) { animation-delay: .31s; } .sim-benefits li:nth-child(4) { animation-delay: .39s; } .sim-benefits li:nth-child(5) { animation-delay: .47s; }
@keyframes me-slide-in { to { opacity: 1; transform: none; } }
.sim-benefits .bi { width: 28px; height: 28px; display: grid; place-items: center; flex: none; background: #fff; color: var(--me-blue); font-size: 16px; }
@media (prefers-reduced-motion: reduce) { .sim-benefits li { opacity: 1; transform: none; animation: none; } }

/* SelectME */
.sm-badge { display: inline-flex; align-items: center; gap: 10px; padding: 8px 16px; border: 1px solid var(--me-line-2); font: 700 12px/1 var(--font-body); letter-spacing: .18em; text-transform: uppercase; color: var(--me-blue); background: #fff; }
html[lang="ar"] .sm-badge { font-family: var(--font-arabic); letter-spacing: 0; font-size: 13px; }
.sm-badge__dot { width: 8px; height: 8px; background: var(--me-sky); box-shadow: 0 0 0 0 rgba(0,153,255,.6); animation: me-pulse-sq 1.8s infinite; }
@keyframes me-pulse-sq { 0% { box-shadow: 0 0 0 0 rgba(0,153,255,.55); } 70% { box-shadow: 0 0 0 10px rgba(0,153,255,0); } 100% { box-shadow: 0 0 0 0 rgba(0,153,255,0); } }
.sm-title { margin: var(--space-4) 0 var(--space-4); font-size: clamp(2.2rem, 4.4vw, 4rem); }
.sm-intro { max-width: 70ch; margin: 0 auto; color: var(--me-ink-2); font-size: 1.375rem; }
.app-window { max-width: 1040px; margin: var(--space-8) auto var(--space-8); background: #fff; border: 1px solid var(--me-line); box-shadow: 0 50px 90px -50px rgba(8,13,26,.45); transform: perspective(1400px) rotateX(10deg) scale(.96); transform-origin: 50% 100%; transition: transform 1.2s var(--ease-out), opacity .9s var(--ease-out); }
.app-window.is-visible { transform: none; }
.app-window__bar { display: flex; align-items: center; gap: 14px; padding: 12px 16px; background: var(--me-surface-2); border-bottom: 1px solid var(--me-line); font: 700 12px/1 var(--font-body); letter-spacing: .14em; text-transform: uppercase; color: var(--me-ink-2); direction: ltr; }
.app-window__bar .dots { display: inline-flex; gap: 6px; }
.app-window__bar .dots i { width: 10px; height: 10px; background: var(--me-line-2); }
.app-window__bar .dots i:first-child { background: var(--me-sky); }
.app-window__title { flex: 1; text-align: center; }
.app-window__screen { position: relative; overflow: hidden; height: min(52vh, 440px); background: var(--me-surface-3); }
.app-window__screen img { display: block; width: 100%; height: 100%; max-width: none; object-fit: cover; object-position: center center; }
@media (max-width: 575.98px) { .app-window__screen { height: 56vw; } }
.sm-sub { text-align: center; font-size: clamp(1.6rem, 2.4vw, 2.2rem); margin-bottom: var(--space-6); }
.sm-features { list-style: none; padding: 0; margin: 0 auto; max-width: 1040px; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); border-top: 1px solid var(--me-line); border-inline-start: 1px solid var(--me-line); }
.sm-features li { display: flex; align-items: center; gap: 14px; padding: 20px 22px; border-bottom: 1px solid var(--me-line); border-inline-end: 1px solid var(--me-line); background: #fff; font-weight: 600; color: var(--me-ink); transition: background .3s, color .3s; }
.sm-features .bi { width: 42px; height: 42px; flex: none; display: grid; place-items: center; font-size: 19px; color: var(--me-blue); background: var(--me-surface-3); transition: background .3s, color .3s; }
.sm-features li:hover { background: var(--me-surface-2); }
.sm-features li:hover .bi { background: var(--me-gradient); color: #fff; }
.sm-outro { max-width: 70ch; margin: var(--space-7) auto 0; text-align: center; color: var(--me-ink-2); font-size: 1.375rem; }
@media (max-width: 991.98px) { .sm-features { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 575.98px) { .sm-features { grid-template-columns: 1fr; } .app-window { transform: none; } }


/* =====================================================================
   27 CERTIFICATES PAGE
   ===================================================================== */
.cert-intro__lead { margin: var(--space-5) auto 0; font: 400 clamp(1.9rem, 3.4vw, 3.2rem)/1.1 var(--font-display); text-transform: uppercase; color: var(--me-ink); }
html[lang="ar"] .cert-intro__lead { font-family: var(--font-arabic); font-weight: 700; text-transform: none; font-size: clamp(1.4rem, 2.4vw, 2.1rem); line-height: 1.6; }
.cert-intro__lead .sw { opacity: .14; }
.cert-intro__lead .sw.is-on { opacity: 1; }
.cert-intro__lead .sw.is-accent { background: var(--me-gradient); -webkit-background-clip: text; background-clip: text; color: transparent; }

.cert-stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); margin-top: var(--space-9); border: 1px solid var(--me-line); }
.cert-stat { position: relative; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 22px; padding: clamp(28px, 3.4vw, 44px) clamp(20px, 2.6vw, 36px); border: 0; border-inline-end: 1px solid var(--me-line); background: #fff; text-align: center; cursor: pointer; overflow: hidden; isolation: isolate; transition: color .35s; }
.cert-stat:last-child { border-inline-end: 0; }
.cert-stat::before { content: ""; position: absolute; inset: 0; z-index: -1; background: var(--me-gradient-135); transform: scaleY(0); transform-origin: bottom; transition: transform .5s var(--ease-out); }
.cert-stat:hover::before, .cert-stat:focus-visible::before { transform: scaleY(1); }
/* Logo slot: fixed height so the three labels line up; white plate keeps the logo legible on the hover gradient */
/* logos sit straight on the card: a fixed 76px-high box, no white plate behind them */
.cert-stat__media { display: flex; align-items: center; justify-content: center; width: min(100%, 180px); height: 76px; transition: transform .45s var(--ease-out); }
.cert-stat__img { display: block; width: auto; height: 100%; max-width: 100%; object-fit: contain; }
.cert-stat:hover .cert-stat__media, .cert-stat:focus-visible .cert-stat__media { transform: scale(1.04); }
.cert-stat__label { max-width: 26ch; margin-inline: auto; color: var(--me-ink-2); font-weight: 600; line-height: 1.45; transition: color .35s; }
.cert-stat:hover .cert-stat__label, .cert-stat:focus-visible .cert-stat__label { color: #fff; }
.cert-stat:focus-visible { outline: 3px solid var(--me-sky); outline-offset: -3px; }
@media (max-width: 767.98px) { .cert-stats { grid-template-columns: 1fr; } .cert-stat { border-inline-end: 0; border-bottom: 1px solid var(--me-line); } .cert-stat:last-child { border-bottom: 0; } }

.cert-head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 20px; margin-bottom: var(--space-7); }
.cert-head h2 { margin: 0; }
.cert-filter { position: relative; display: inline-flex; flex-wrap: wrap; padding: 5px; gap: 4px; border-radius: var(--radius-pill); background: #fff; border: 1px solid var(--me-line); }
.cert-filter button { position: relative; z-index: 1; border: 0; background: none; padding: 11px 20px; border-radius: var(--radius-pill); font: 700 13px/1 var(--font-body); letter-spacing: .12em; text-transform: uppercase; color: var(--me-ink-2); cursor: pointer; transition: color .3s; }
html[lang="ar"] .cert-filter button { font-family: var(--font-arabic); letter-spacing: 0; font-size: 14px; }
.cert-filter button small { font-size: 11px; opacity: .6; margin-inline-start: 4px; }
.cert-filter button[aria-pressed="true"] { color: #fff; }
.cert-filter .pill { position: absolute; z-index: 0; top: 5px; bottom: 5px; border-radius: var(--radius-pill); background: var(--me-gradient); transition: left .45s var(--ease-out), width .45s var(--ease-out); }

.cert-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 18px; }
.cert-card { --d: 0s; position: relative; display: flex; flex-direction: column; padding: 0; border: 1px solid var(--me-line); background: #fff; text-align: start; cursor: zoom-in; transition: border-color .3s, box-shadow .3s, opacity .25s, transform .25s; }
.cert-card.is-out { opacity: 0; transform: scale(.96); }
.cert-card.is-in { animation: me-fade-up .5s var(--ease-out) var(--d) both; }
.cert-card:hover { border-color: var(--me-sky); box-shadow: 0 24px 44px -30px rgba(31,92,194,.55); }
.cert-card:focus-visible { outline: 3px solid var(--me-sky); outline-offset: 3px; }
.cert-card__paper { position: relative; display: block; aspect-ratio: 3 / 4; overflow: hidden; background: var(--me-surface-2); border-bottom: 1px solid var(--me-line); }
.cert-card__paper img { position: absolute; inset: 12px; width: calc(100% - 24px); height: calc(100% - 24px); max-width: none; object-fit: contain; background: #fff; box-shadow: 0 10px 24px -14px rgba(8,13,26,.35); transition: transform .7s var(--ease-out); }
.cert-card__paper::after { content: ""; position: absolute; top: 0; bottom: 0; left: -60%; width: 40%; background: linear-gradient(105deg, transparent, rgba(255,255,255,.75), transparent); transform: skewX(-12deg); opacity: 0; }
.cert-card:hover .cert-card__paper img { transform: scale(1.04); }
.cert-card:hover .cert-card__paper::after { animation: me-sheen .9s var(--ease-out); }
@keyframes me-sheen { 0% { left: -60%; opacity: 1; } 100% { left: 130%; opacity: 1; } }
.cert-card__body { display: flex; flex-direction: column; gap: 6px; padding: 16px 18px 18px; }
.cert-card__cat { align-self: flex-start; font: 700 11px/1 var(--font-body); letter-spacing: .2em; padding: 5px 8px; color: #fff; background: var(--me-blue); }
.cert-card__cat--amca { background: var(--me-blue); }
.cert-card__cat--iso { background: var(--me-indigo, #333399); }
.cert-card__cat--eos { background: var(--me-sky); }
.cert-card__title { font: 400 1.6rem/1.05 var(--font-display); text-transform: uppercase; color: var(--me-ink); }
.cert-card__tag { font-size: .9rem; color: var(--me-ink-2); }
.cert-card__view { position: absolute; top: 12px; inset-inline-end: 12px; width: 38px; height: 38px; display: grid; place-items: center; background: var(--me-gradient); color: #fff; opacity: 0; transform: translateY(-6px); transition: opacity .3s, transform .3s var(--ease-out); }
.cert-card:hover .cert-card__view, .cert-card:focus-visible .cert-card__view { opacity: 1; transform: none; }
@media (max-width: 1199.98px) { .cert-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 767.98px) { .cert-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; } .cert-card__title { font-size: 1.3rem; } .cert-head { flex-direction: column; align-items: flex-start; } }


/* =====================================================================
   28 DOWNLOADS PAGE
   ===================================================================== */
.dl-lead { font-size: clamp(2rem, 3.6vw, 3.2rem); line-height: 1.05; margin: var(--space-3) 0 0; }
html[lang="ar"] .dl-lead { font-size: clamp(1.5rem, 2.6vw, 2.2rem); line-height: 1.5; }
.dl-note { display: flex; gap: 12px; align-items: flex-start; margin: 0 0 12px; color: var(--me-ink-2); }
.dl-note .bi { flex: none; width: 34px; height: 34px; display: grid; place-items: center; background: #fff; border: 1px solid var(--me-line); color: var(--me-blue); }
.dl-note--lock .bi { background: var(--me-gradient); color: #fff; border-color: transparent; }

.doc-grid { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 18px; }
.doc-card { display: flex; flex-direction: column; background: #fff; border: 1px solid var(--me-line); transition: border-color .3s, box-shadow .3s; }
.doc-card:hover { border-color: var(--me-sky); box-shadow: 0 26px 46px -30px rgba(31,92,194,.55); }
.doc-card__cover { position: relative; display: block; aspect-ratio: 3 / 4; overflow: hidden; background: #fff; color: #fff; perspective: 900px; border-bottom: 1px solid var(--me-line); }
.doc-card__img { position: absolute; inset: 0; width: 100%; height: 100%; max-width: none; object-fit: cover; object-position: top; transform-origin: left center; transition: transform .7s var(--ease-out); }
html[dir="rtl"] .doc-card__img { transform-origin: right center; }
.doc-card:hover .doc-card__img { transform: rotateY(-14deg) scale(.96); }
html[dir="rtl"] .doc-card:hover .doc-card__img { transform: rotateY(14deg) scale(.96); }
.has-thumb .doc-card__img { display: none; }
.doc-card__canvas { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: top; transform-origin: left center; transition: transform .7s var(--ease-out); }
html[dir="rtl"] .doc-card__canvas { transform-origin: right center; }
.doc-card:hover .doc-card__canvas { transform: rotateY(-14deg) scale(.96); }
html[dir="rtl"] .doc-card:hover .doc-card__canvas { transform: rotateY(14deg) scale(.96); }
.doc-card__fallback { position: absolute; inset: 0; display: flex; flex-direction: column; justify-content: space-between; padding: 18px; }
.doc-card__fallback .bi { font-size: 34px; opacity: .85; }
.doc-card__fallback b { font: 400 1.6rem/1.05 var(--font-display); text-transform: uppercase; }
.doc-card__fallback::after { content: ""; position: absolute; top: 0; inset-inline-end: 0; border-style: solid; border-width: 0 34px 34px 0; border-color: transparent rgba(255,255,255,.35) transparent transparent; }
.has-thumb .doc-card__fallback { display: none; }
.doc-card__lock { position: absolute; z-index: 1; top: 12px; inset-inline-start: 12px; display: inline-flex; align-items: center; gap: 6px; padding: 6px 10px; background: rgba(8,13,26,.82); color: #fff; font: 700 11px/1 var(--font-body); letter-spacing: .14em; text-transform: uppercase; }
html[lang="ar"] .doc-card__lock { font-family: var(--font-arabic); letter-spacing: 0; font-size: 12px; }
.doc-card__body { display: flex; flex-direction: column; gap: 8px; padding: 16px 18px 18px; flex: 1; }
.doc-card__group { font: 700 11px/1.3 var(--font-body); letter-spacing: .16em; text-transform: uppercase; color: var(--me-blue); }
html[lang="ar"] .doc-card__group { font-family: var(--font-arabic); letter-spacing: 0; font-size: 12px; }
.doc-card__title { font-size: 1.45rem; line-height: 1.08; margin: 0; color: var(--me-ink); }
html[lang="ar"] .doc-card__title { font-size: 1.05rem; line-height: 1.5; }
.doc-card__meta { display: flex; gap: 14px; font-size: .88rem; color: var(--me-ink-2); margin-top: auto; }
.doc-card__body .btn-me { align-self: flex-start; margin-top: 6px; }
@media (max-width: 1199.98px) { .doc-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 767.98px) { .doc-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; } }

/* catalogue "book" + request form */
.book { position: relative; max-width: 440px; margin-inline: auto; transform-style: preserve-3d; }
.book img { position: relative; z-index: 1; display: block; width: 100%; height: auto; }
.book__spine { display: none; }
.book__badge { position: absolute; z-index: 3; bottom: 18px; inset-inline-end: -14px; display: inline-flex; align-items: center; gap: 8px; padding: 10px 14px; background: var(--me-gradient); color: #fff; font: 700 12px/1 var(--font-body); letter-spacing: .16em; text-transform: uppercase; }
html[lang="ar"] .book__badge { font-family: var(--font-arabic); letter-spacing: 0; font-size: 13px; }
.req-form { margin-top: var(--space-6); }
.me-field--select select { appearance: none; -webkit-appearance: none; padding-inline-end: 44px; cursor: pointer; }
.me-field--select .bi-chevron-down { position: absolute; top: 20px; inset-inline-end: 16px; color: var(--me-ink-2); pointer-events: none; }


/* =====================================================================
   29 NEWS & CAREERS PAGE
   ===================================================================== */
@keyframes me-card-in { from { opacity: 0; transform: translateY(22px); } to { opacity: 1; transform: none; } }

/* ticker */
.news-ticker { display: flex; align-items: stretch; background: var(--me-dark); color: #fff; border-bottom: 1px solid rgba(255,255,255,.08); }
.news-ticker__label { flex: none; display: inline-flex; align-items: center; gap: 10px; padding: 0 22px; background: var(--me-gradient); font: 700 12px/1 var(--font-body); letter-spacing: .2em; text-transform: uppercase; }
html[lang="ar"] .news-ticker__label { font-family: var(--font-arabic); letter-spacing: 0; font-size: 13px; }
.news-ticker__label .dot { width: 8px; height: 8px; background: #fff; animation: me-blink 1.2s steps(2) infinite; }
.news-ticker__rail { flex: 1; min-width: 0; }
.news-ticker__rail .marquee__track { gap: 0; }
.news-ticker__item { display: inline-flex; align-items: center; gap: 10px; padding: 16px 30px; white-space: nowrap; color: rgba(255,255,255,.85); border-inline-end: 1px solid rgba(255,255,255,.1); }
.news-ticker__item .bi { color: var(--me-sky); }
.news-ticker__item:hover { color: #fff; }

.news-head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 20px; margin-bottom: var(--space-7); }
.news-head h2 { margin: 0; }

/* shared bits */
.n-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 14px; font-size: .85rem; color: var(--me-ink-2); }
.n-cat { display: inline-flex; align-items: center; gap: 6px; padding: 5px 9px; font: 700 11px/1 var(--font-body); letter-spacing: .14em; text-transform: uppercase; color: #fff; background: var(--me-blue); }
html[lang="ar"] .n-cat { font-family: var(--font-arabic); letter-spacing: 0; font-size: 12px; }
.n-cat--certifications { background: var(--me-blue); }
.n-cat--exhibitions { background: var(--me-sky); }
.n-cat--visits { background: var(--me-indigo, #333399); }
.n-cat--company { background: var(--me-dark); }
.n-cat--occasions { background: #0f766e; }
.n-more { display: inline-flex; align-items: center; gap: 8px; font: 700 12px/1 var(--font-body); letter-spacing: .16em; text-transform: uppercase; color: var(--me-blue); }
html[lang="ar"] .n-more { font-family: var(--font-arabic); letter-spacing: 0; font-size: 13px; }
html[dir="rtl"] .n-more .bi, html[dir="rtl"] .rail-nav .bi, html[dir="rtl"] .reader__bar [data-reader-prev] .bi, html[dir="rtl"] .reader__bar [data-reader-next] .bi { transform: scaleX(-1); }

/* featured */
.news-featured { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: 22px; }
.nf-main { position: relative; display: block; min-height: 520px; overflow: hidden; background: var(--me-dark); color: #fff; isolation: isolate; cursor: pointer; }
.nf-main:hover, .nf-main:focus { color: #fff; }
.nf-main__media { position: absolute; inset: 0; z-index: -2; }
.nf-main__media img { width: 100%; height: 100%; object-fit: cover; transform: scale(1.08); animation: me-kenburns 16s var(--ease-out) forwards; }
.nf-main::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgba(8,13,26,.05) 25%, rgba(8,13,26,.92)); }
.nf-main__body { position: absolute; left: 0; right: 0; bottom: 0; display: flex; flex-direction: column; gap: 12px; padding: clamp(24px, 3.5vw, 44px); }
.nf-main .n-meta { color: rgba(255,255,255,.8); }
.nf-main__title { font: 400 clamp(2rem, 3.6vw, 3.4rem)/1.02 var(--font-display); text-transform: uppercase; max-width: 22ch; }
html[lang="ar"] .nf-main__title { font-family: var(--font-arabic); font-weight: 700; text-transform: none; font-size: clamp(1.4rem, 2.4vw, 2.1rem); line-height: 1.45; }
.nf-main__excerpt { color: rgba(255,255,255,.82); max-width: 60ch; }
.nf-main .n-more { color: #fff; }
.nf-list { display: grid; grid-template-rows: repeat(4, 1fr); gap: 14px; }
.nf-item { display: grid; grid-template-columns: 132px 1fr; gap: 16px; align-items: center; padding: 10px; background: #fff; border: 1px solid var(--me-line); transition: border-color .3s, transform .3s var(--ease-out); animation: me-card-in .7s var(--ease-out) both; animation-delay: calc(var(--i) * .08s + .2s); }
.nf-item:hover { border-color: var(--me-sky); transform: translateX(4px); }
html[dir="rtl"] .nf-item:hover { transform: translateX(-4px); }
.nf-item__media { display: block; height: 96px; overflow: hidden; background: var(--me-surface-3); }
.nf-item__media img { width: 100%; height: 100%; object-fit: cover; font-size: 1.8rem; }
.nf-item__body { display: flex; flex-direction: column; gap: 8px; min-width: 0; }
.nf-item__title { font-weight: 700; color: var(--me-ink); line-height: 1.35; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
@media (max-width: 991.98px) { .news-featured { grid-template-columns: 1fr; } .nf-main { min-height: 440px; } .nf-list { grid-template-rows: none; } }
@media (max-width: 575.98px) { .nf-item { grid-template-columns: 96px 1fr; } .nf-item__media { height: 80px; } }

/* event strip */
.event-strip { position: relative; isolation: isolate; overflow: hidden; background: linear-gradient(135deg, var(--me-sky) 0%, var(--me-blue) 100%); color: #fff; padding: var(--space-8) 0; }
.event-strip::before { content: ""; position: absolute; inset: 0; z-index: -1; background: repeating-linear-gradient(-45deg, rgba(255,255,255,.06) 0 2px, transparent 2px 22px); }
.event-strip__inner { display: flex; flex-wrap: wrap; align-items: center; gap: 28px 44px; }
.event-strip__date { display: flex; flex-direction: column; align-items: center; justify-content: center; width: 132px; height: 132px; background: #fff; color: var(--me-blue); box-shadow: 0 24px 40px -24px rgba(8,13,26,.6); }
.event-strip__date span { font: 700 12px/1 var(--font-body); letter-spacing: .22em; }
.event-strip__date b { font: 400 3.6rem/1 var(--font-display); color: var(--me-ink); }
.event-strip__text { flex: 1; min-width: 240px; }
.event-strip .eyebrow { color: #fff; }
.event-strip .eyebrow::before { background: #fff; }
.event-strip h2 { color: #fff; margin: 8px 0; font-size: clamp(2rem, 3.4vw, 3rem); }
.event-strip p { margin: 0; font-weight: 600; opacity: .9; }
.event-strip__play { display: inline-flex; align-items: center; gap: 16px; padding: 0; border: 0; background: none; color: #fff; font: 700 13px/1 var(--font-body); letter-spacing: .16em; text-transform: uppercase; cursor: pointer; }
html[lang="ar"] .event-strip__play { font-family: var(--font-arabic); letter-spacing: 0; font-size: 14px; }
.event-strip__play .ring { position: relative; width: 74px; height: 74px; border-radius: 50%; display: grid; place-items: center; background: #fff; color: var(--me-blue); font-size: 28px; }
.event-strip__play .ring .bi { margin-inline-start: 4px; }
.event-strip__play .ring::after { content: ""; position: absolute; inset: -8px; border-radius: 50%; border: 1px solid rgba(255,255,255,.6); animation: me-ring 2.4s var(--ease-out) infinite; }

/* filter + search + grid */
.news-search { position: relative; display: flex; align-items: center; width: min(360px, 100%); }
.news-search .bi { position: absolute; inset-inline-start: 16px; color: var(--me-ink-2); }
.news-search input { width: 100%; height: 50px; padding-inline: 46px 16px; border: 1px solid var(--me-line-2); background: #fff; font: inherit; color: var(--me-ink); outline: none; transition: border-color .2s, box-shadow .2s; }
.news-search input:focus { border-color: var(--me-sky); box-shadow: 0 0 0 4px rgba(0,153,255,.12); }
.news-filter { position: relative; display: inline-flex; flex-wrap: wrap; gap: 4px; padding: 5px; margin-bottom: var(--space-6); border-radius: var(--radius-pill); background: #fff; border: 1px solid var(--me-line); }
.news-filter button { position: relative; z-index: 1; border: 0; background: none; padding: 11px 18px; border-radius: var(--radius-pill); font: 700 13px/1 var(--font-body); letter-spacing: .1em; text-transform: uppercase; color: var(--me-ink-2); cursor: pointer; transition: color .3s; }
html[lang="ar"] .news-filter button { font-family: var(--font-arabic); letter-spacing: 0; font-size: 14px; }
.news-filter button[aria-pressed="true"] { color: #fff; }
.news-filter .pill { position: absolute; z-index: 0; border-radius: var(--radius-pill); background: var(--me-gradient); transition: left .45s var(--ease-out), top .45s var(--ease-out), width .45s var(--ease-out); }
.news-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 22px; }
.n-card { display: flex; flex-direction: column; background: #fff; border: 1px solid var(--me-line); color: inherit; transition: border-color .3s, box-shadow .3s; }
.n-card.is-new { animation: me-card-in .6s var(--ease-out) both; animation-delay: calc(var(--i) * .06s); }
.n-card:hover { border-color: var(--me-sky); box-shadow: 0 26px 46px -32px rgba(31,92,194,.55); }
.n-card:focus-visible { outline: 3px solid var(--me-sky); outline-offset: 3px; }
.n-card__media { position: relative; display: block; aspect-ratio: 16 / 11; overflow: hidden; background: var(--me-surface-3); }
.n-card__media img { width: 100%; height: 100%; object-fit: cover; transition: transform .9s var(--ease-out); }
.n-card:hover .n-card__media img { transform: scale(1.07); }
.n-card__play { position: absolute; inset: 0; margin: auto; width: 62px; height: 62px; border-radius: 50%; display: grid; place-items: center; background: rgba(255,255,255,.92); color: var(--me-blue); font-size: 26px; box-shadow: 0 10px 30px -10px rgba(0,0,0,.5); }
.n-card__src { position: absolute; top: 12px; inset-inline-end: 12px; width: 34px; height: 34px; display: grid; place-items: center; background: rgba(8,13,26,.75); color: #fff; }
.n-card__body { display: flex; flex-direction: column; gap: 10px; padding: 20px 22px 22px; flex: 1; }
.n-card__title { font: 400 1.6rem/1.08 var(--font-display); text-transform: uppercase; color: var(--me-ink); }
html[lang="ar"] .n-card__title { font-family: var(--font-arabic); font-weight: 700; text-transform: none; font-size: 1.12rem; line-height: 1.5; }
.n-card__excerpt { color: var(--me-ink-2); font-size: .95rem; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.n-card .n-more { margin-top: auto; padding-top: 6px; }
.news-empty { text-align: center; color: var(--me-ink-2); padding: var(--space-8) 0; }
@media (max-width: 991.98px) { .news-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 575.98px) { .news-grid { grid-template-columns: 1fr; } .news-filter { border-radius: 0; } }

/* video studio — player + playlist on the logo gradient */
.vstudio-section { position: relative; isolation: isolate; overflow: hidden; color: #fff; background: linear-gradient(135deg, var(--me-sky) 0%, var(--me-blue) 100%); }
.vstudio-section::before { content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none; background: radial-gradient(60% 80% at 0% 0%, rgba(255,255,255,.14), transparent 60%), radial-gradient(50% 70% at 100% 100%, rgba(51,51,153,.4), transparent 70%); }
.vstudio-section h2 { color: #fff; }
.vstudio-section .eyebrow { color: #fff; }
.vstudio-section .eyebrow::before { background: #fff; }
.vstudio { display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 1fr); gap: 22px; align-items: stretch; }
.vstudio__stage { display: flex; flex-direction: column; background: rgba(8,13,26,.35); box-shadow: 0 40px 80px -40px rgba(8,13,26,.75); }
.vstudio__screen { position: relative; aspect-ratio: 16 / 9; overflow: hidden; background: #000; }
.vstudio__layer { position: absolute; inset: 0; opacity: 0; transform: scale(1.03); transition: opacity .55s var(--ease-out), transform .8s var(--ease-out); }
.vstudio__layer.is-in { opacity: 1; transform: none; }
.vstudio__layer.is-out { opacity: 0; }
.vstudio__layer iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.vstudio__poster { position: absolute; inset: 0; padding: 0; border: 0; background: #000; cursor: pointer; }
.vstudio__poster img { width: 100%; height: 100%; object-fit: cover; opacity: .9; transition: opacity .3s, transform 1s var(--ease-out); }
.vstudio__poster:hover img { opacity: 1; transform: scale(1.03); }
.vstudio__play { position: absolute; inset: 0; margin: auto; width: 96px; height: 96px; border-radius: 50%; display: grid; place-items: center; background: #fff; color: var(--me-blue); font-size: 40px; box-shadow: 0 20px 40px -14px rgba(0,0,0,.6); }
.vstudio__play .bi { margin-inline-start: 5px; }
.vstudio__play::after { content: ""; position: absolute; inset: -12px; border-radius: 50%; border: 1px solid rgba(255,255,255,.7); animation: me-ring 2.4s var(--ease-out) infinite; }
.vstudio__poster:focus-visible { outline: 3px solid #fff; outline-offset: -6px; }
.vstudio__caption { display: flex; flex-direction: column; gap: 8px; padding: 20px 24px 24px; }
.vstudio__now { display: inline-flex; align-items: center; gap: 10px; font: 700 12px/1 var(--font-body); letter-spacing: .2em; text-transform: uppercase; color: rgba(255,255,255,.85); }
html[lang="ar"] .vstudio__now { font-family: var(--font-arabic); letter-spacing: 0; font-size: 13px; }
.eq { display: inline-flex; align-items: flex-end; gap: 2px; height: 12px; }
.eq i { width: 3px; background: #fff; animation: me-eq 1s var(--ease-in-out) infinite; }
.eq i:nth-child(2) { animation-delay: .2s; } .eq i:nth-child(3) { animation-delay: .4s; }
@keyframes me-eq { 0%, 100% { height: 3px; } 50% { height: 12px; } }
.vstudio__title { margin: 0; color: #fff; font-size: clamp(1.6rem, 2.4vw, 2.2rem); line-height: 1.1; }
html[lang="ar"] .vstudio__title { font-size: clamp(1.15rem, 1.8vw, 1.5rem); line-height: 1.5; }
.vstudio__list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; max-height: 100%; overflow-y: auto; scrollbar-width: thin; scrollbar-color: rgba(255,255,255,.4) transparent; }
.vstudio__item { position: relative; width: 100%; display: grid; grid-template-columns: 28px 112px 1fr; gap: 12px; align-items: center; padding: 10px 12px; border: 1px solid rgba(255,255,255,.22); background: rgba(255,255,255,.06); color: #fff; text-align: start; cursor: pointer; transition: background .3s, color .3s, border-color .3s; }
.vstudio__item::before { content: ""; position: absolute; top: 0; bottom: 0; inset-inline-start: -1px; width: 4px; background: var(--me-indigo, #333399); transform: scaleY(0); transition: transform .35s var(--ease-out); }
.vstudio__item:hover { background: rgba(255,255,255,.14); }
.vstudio__item.is-active { background: #fff; color: var(--me-ink); border-color: #fff; }
.vstudio__item.is-active::before { transform: scaleY(1); }
.vstudio__item:focus-visible { outline: 2px solid #fff; outline-offset: 2px; }
.vstudio__num { font: 400 1.3rem/1 var(--font-display); opacity: .75; }
.vstudio__item.is-active .vstudio__num { color: var(--me-blue); opacity: 1; }
.vstudio__thumb { position: relative; display: block; aspect-ratio: 16 / 9; overflow: hidden; background: #000; }
.vstudio__thumb img { width: 100%; height: 100%; object-fit: cover; }
.vstudio__thumb .bi { position: absolute; inset: 0; display: grid; place-items: center; font-size: 20px; color: #fff; background: rgba(8,13,26,.35); opacity: 0; transition: opacity .3s; }
.vstudio__item:hover .vstudio__thumb .bi { opacity: 1; }
.vstudio__name { font-weight: 600; font-size: .95rem; line-height: 1.35; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
@media (min-width: 992px) { .vstudio__list { max-height: 0; min-height: 100%; } }
@media (max-width: 991.98px) { .vstudio { grid-template-columns: 1fr; } .vstudio__list { max-height: 420px; } }
@media (max-width: 575.98px) { .vstudio__item { grid-template-columns: 22px 92px 1fr; } .vstudio__play { width: 72px; height: 72px; font-size: 30px; } }

/* social tiles */
.social-tiles { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 18px; }
.social-tile { position: relative; display: flex; flex-direction: column; gap: 10px; min-height: 230px; padding: 26px; border: 1px solid var(--me-line); background: #fff; color: var(--me-ink); overflow: hidden; isolation: isolate; transition: color .35s, border-color .35s; }
.social-tile::before { content: ""; position: absolute; inset: 0; z-index: -1; transform: translateY(101%); transition: transform .5s var(--ease-out); }
.social-tile--yt::before { background: linear-gradient(135deg, #ff3b30, #c4001a); }
.social-tile--in::before { background: linear-gradient(135deg, #0a66c2, #004182); }
.social-tile--fb::before { background: linear-gradient(135deg, #1877f2, #0b4fb3); }
.social-tile--ig::before { background: linear-gradient(135deg, #f58529, #dd2a7b 50%, #8134af); }
.social-tile:hover { color: #fff; border-color: transparent; }
.social-tile:hover::before { transform: none; }
.social-tile > .bi { font-size: 34px; }
.social-tile--yt > .bi { color: #ff0000; } .social-tile--in > .bi { color: #0a66c2; } .social-tile--fb > .bi { color: #1877f2; } .social-tile--ig > .bi { color: #dd2a7b; }
.social-tile:hover > .bi { color: #fff; }
.social-tile b { font: 400 2rem/1 var(--font-display); text-transform: uppercase; }
.social-tile span { color: inherit; opacity: .8; }
.social-tile em { margin-top: auto; font-style: normal; font-weight: 700; font-size: .9rem; word-break: break-all; }
@media (max-width: 991.98px) { .social-tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 575.98px) { .social-tiles { grid-template-columns: 1fr; } .social-tile { min-height: 0; } }

/* careers — light */
.careers { position: relative; isolation: isolate; background: var(--me-surface-2); color: var(--me-ink-2); overflow: hidden; }
.careers::before { content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none; background: radial-gradient(45% 55% at 100% 0%, rgba(0,153,255,.10), transparent 70%), radial-gradient(40% 50% at 0% 100%, rgba(51,51,153,.08), transparent 70%); }
.careers h2, .careers h3 { color: var(--me-ink); }
.careers__title { font-size: clamp(2.4rem, 4.4vw, 4rem); line-height: 1.02; }
.careers__lead { margin-top: var(--space-4); font-size: 1.375rem; }
.careers__sub { font: 700 13px/1 var(--font-body); letter-spacing: .18em; text-transform: uppercase; margin: var(--space-7) 0 var(--space-4); color: var(--me-blue) !important; }
html[lang="ar"] .careers__sub { font-family: var(--font-arabic); letter-spacing: 0; font-size: 15px; }
.careers__depts { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.careers__depts li { padding: 9px 14px; border: 1px solid var(--me-line-2); background: #fff; font-weight: 600; color: var(--me-ink); }
.jobs__empty { position: relative; height: 100%; display: flex; flex-direction: column; justify-content: center; gap: 14px; padding: clamp(28px, 4vw, 52px); border: 1px dashed var(--me-line-2); background: #fff; }
.jobs__empty-ico { width: 64px; height: 64px; display: grid; place-items: center; background: var(--me-gradient); color: #fff; font-size: 28px; }
.jobs__empty h3 { font-size: clamp(1.8rem, 3vw, 2.6rem); margin: 6px 0 0; }
.jobs__empty .btn-me { align-self: flex-start; }
.jobs__count { font: 700 12px/1 var(--font-body); letter-spacing: .18em; text-transform: uppercase; color: var(--me-blue); }
html[lang="ar"] .jobs__count { font-family: var(--font-arabic); letter-spacing: 0; font-size: 13px; }
.jobs { background: #fff; border: 1px solid var(--me-line); padding: 8px 26px; }
.jobs:has(.jobs__empty) { background: none; border: 0; padding: 0; height: 100%; }
.jobs__count { margin: 18px 0 4px; }
.job { border-top: 1px solid var(--me-line); animation: me-card-in .6s var(--ease-out) both; animation-delay: calc(var(--i) * .06s); }
.job summary { list-style: none; display: grid; grid-template-columns: 1fr auto; gap: 8px 20px; align-items: center; padding: 22px 0; cursor: pointer; }
.job summary::-webkit-details-marker { display: none; }
.job__title { font: 400 1.9rem/1.05 var(--font-display); text-transform: uppercase; color: var(--me-ink); }
html[lang="ar"] .job__title { font-family: var(--font-arabic); font-weight: 700; text-transform: none; font-size: 1.25rem; }
.job__tags { grid-column: 1; display: flex; flex-wrap: wrap; gap: 8px; }
.job__tags span { padding: 5px 10px; background: var(--me-surface-3); color: var(--me-ink); font-size: .85rem; font-weight: 600; }
.job__toggle { grid-column: 2; grid-row: 1 / span 2; width: 46px; height: 46px; display: grid; place-items: center; border: 1px solid var(--me-line-2); color: var(--me-ink); font-size: 18px; transition: transform .35s var(--ease-out), background .3s, color .3s; }
.job summary:hover .job__toggle { border-color: var(--me-sky); color: var(--me-blue); }
.job[open] .job__toggle { transform: rotate(45deg); background: var(--me-gradient); border-color: transparent; color: #fff; }
.job__body { padding: 0 0 26px; }
.job__body h4 { font: 700 12px/1 var(--font-body); letter-spacing: .18em; text-transform: uppercase; color: var(--me-blue); margin: 18px 0 10px; }
html[lang="ar"] .job__body h4 { font-family: var(--font-arabic); letter-spacing: 0; font-size: 14px; }
.job__body ul { padding-inline-start: 18px; margin: 0 0 18px; }

.apply { margin-top: var(--space-9); padding: clamp(26px, 4vw, 54px); background: #fff; border: 1px solid var(--me-line); box-shadow: 0 40px 80px -60px rgba(8,13,26,.35); scroll-margin-top: calc(var(--header-h-min) + 70px); position: relative; }
.apply::before { content: ""; position: absolute; top: 0; left: 0; right: 0; height: 4px; background: var(--me-gradient-135); }
.apply__head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 16px; margin-bottom: var(--space-6); }
.apply__title { font-size: clamp(2rem, 3.2vw, 2.8rem); margin: 8px 0 0; }
.apply__to { margin: 0; color: var(--me-ink-2); }
.apply__to a { color: var(--me-blue); font-weight: 700; text-decoration: underline; text-underline-offset: 4px; }
.apply__consent { display: flex; gap: 12px; align-items: flex-start; color: var(--me-ink-2); cursor: pointer; }
.apply__consent input { width: 20px; height: 20px; margin-top: 2px; accent-color: var(--me-blue); flex: none; }
.apply__consent.is-invalid span { color: #b42318; }
.apply .form-status--err a { color: inherit; font-weight: 700; text-decoration: underline; margin-inline-start: 6px; }

/* article reader */
.reader { position: fixed; inset: 0; z-index: 2000; display: flex; justify-content: flex-end; }
.reader[hidden] { display: none; }
html[dir="rtl"] .reader { justify-content: flex-start; }
.reader__backdrop { position: absolute; inset: 0; background: rgba(8,13,26,.6); backdrop-filter: blur(4px); opacity: 0; transition: opacity .35s; }
.reader__panel { position: relative; display: flex; flex-direction: column; width: min(860px, 100%); height: 100%; background: #fff; transform: translateX(100%); transition: transform .5s var(--ease-out); box-shadow: -30px 0 60px -30px rgba(0,0,0,.5); }
html[dir="rtl"] .reader__panel { transform: translateX(-100%); }
.reader.is-open .reader__backdrop { opacity: 1; }
.reader.is-open .reader__panel { transform: none; }
.reader__bar { display: flex; align-items: center; gap: 8px; padding: 12px 16px; border-bottom: 1px solid var(--me-line); }
.reader__spacer { flex: 1; }
.reader__btn { width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; border: 1px solid var(--me-line-2); background: #fff; color: var(--me-ink); font-size: 18px; cursor: pointer; transition: background .2s, color .2s, border-color .2s; }
.reader__btn:hover { background: var(--me-gradient); color: #fff; border-color: transparent; }
.reader__scroll { flex: 1; overflow-y: auto; overscroll-behavior: contain; }
.reader__hero { position: relative; background: var(--me-surface-3); }
.reader__hero .reader__img { display: block; width: 100%; height: auto; max-width: none; }
.reader__video { position: relative; aspect-ratio: 16 / 9; background: #000; }
.reader__video iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.reader__content { padding: clamp(24px, 4vw, 48px); }
.reader__title { margin: 16px 0 18px; font-size: clamp(2rem, 3.6vw, 3rem); line-height: 1.04; }
html[lang="ar"] .reader__title { font-size: clamp(1.4rem, 2.6vw, 2rem); line-height: 1.5; }
.reader__content > p { font-size: 1.375rem; color: var(--me-ink-2); }
.reader__videos { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 14px; margin: 22px 0; }
.reader__videos figure { margin: 0; }
.reader__videos figcaption { margin-top: 8px; font-size: .9rem; font-weight: 600; color: var(--me-ink); }
.reader__tags { display: flex; flex-wrap: wrap; gap: 8px; margin: 18px 0 22px !important; }
.reader__tags span { padding: 5px 10px; background: var(--me-surface-3); color: var(--me-blue); font-size: .85rem; font-weight: 700; direction: ltr; }
@media (prefers-reduced-motion: reduce) { .reader__panel { transition: none; } .n-card.is-new, .nf-item, .v-card, .job { animation: none; } }

/* =====================================================================
   30 PRODUCTS — overview (products/poducts-main.html) + product pages
   Pages are generated by tools/build-products.ps1.
   Product photos have white grounds: mix-blend-mode: multiply lets them sit on tinted panels.
   ===================================================================== */
.me-breadcrumb--ink a { color: var(--me-muted); }
.me-breadcrumb--ink a:hover { color: var(--me-blue); }
.me-breadcrumb--ink [aria-current] { color: var(--me-blue); }

/* ---------- products overview: shop layout (products/poducts-main.html) ---------- */
.shop { padding: 56px 0 var(--space-9); }
.shop__layout { display: grid; grid-template-columns: 270px minmax(0, 1fr); gap: 44px; align-items: start; }

/* filter sidebar */
.shop-side { position: sticky; top: calc(var(--header-h-min) + 20px); max-height: calc(100vh - var(--header-h-min) - 40px); overflow-y: auto; padding-inline-end: 6px; scrollbar-width: thin; scrollbar-color: var(--me-line-2) transparent; }
.shop-side__head { display: flex; align-items: center; justify-content: space-between; padding-bottom: 16px; border-bottom: 1px solid var(--me-line); }
.shop-side__head h2 { margin: 0; font: 700 1.3rem/1.2 var(--font-body); text-transform: none; letter-spacing: 0; }
html[lang="ar"] .shop-side__head h2 { font-family: var(--font-arabic); }
.shop-side__close, .shop-side__foot, .shop-side__backdrop { display: none; }
.shop-side__group { padding: 18px 0; border-bottom: 1px solid var(--me-line); }
.shop-side__group h3 { margin: 0 0 12px; font: 700 15px/1.3 var(--font-body); text-transform: none; letter-spacing: 0; color: var(--me-ink); }
html[lang="ar"] .shop-side__group h3 { font-family: var(--font-arabic); }
.shop-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 2px; }
.shop-check { position: relative; display: flex; align-items: center; gap: 10px; padding: 6px 0; cursor: pointer; color: var(--me-ink-2); font-size: .97rem; transition: color var(--dur-1); }
.shop-check:hover { color: var(--me-blue); }
.shop-check input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.shop-check__box { flex: none; position: relative; width: 18px; height: 18px; border: 1.5px solid var(--me-line-2); background: #fff; transition: background var(--dur-1), border-color var(--dur-1); }
.shop-check__box::after { content: ""; position: absolute; left: 5px; top: 1px; width: 5px; height: 10px; border: solid #fff; border-width: 0 2px 2px 0; transform: rotate(45deg) scale(0); transition: transform var(--dur-1) var(--ease-out); }
.shop-check input:checked + .shop-check__box { background: var(--me-gradient-footer); border-color: transparent; }
.shop-check input:checked + .shop-check__box::after { transform: rotate(45deg) scale(1); }
.shop-check input:checked ~ span { color: var(--me-ink); font-weight: 600; }
.shop-check input:focus-visible + .shop-check__box { outline: 3px solid var(--me-sky); outline-offset: 2px; }
.shop-check small { margin-inline-start: auto; min-width: 26px; padding: 3px 7px; border-radius: var(--radius-pill); background: var(--me-surface-3); font-size: 11.5px; font-weight: 700; color: var(--me-blue); text-align: center; }
.shop-search { display: flex; align-items: center; gap: 10px; height: 44px; margin: 0; padding: 0 12px; border: 1px solid var(--me-line-2); background: #fff; transition: border-color var(--dur-1), box-shadow var(--dur-1); }
.shop-search:focus-within { border-color: var(--me-sky); box-shadow: 0 0 0 4px rgba(0,153,255,.12); }
.shop-search .bi { color: var(--me-blue); }
.shop-search input { flex: 1; min-width: 0; height: 100%; border: 0; outline: 0; background: transparent; font: 400 .97rem/1 var(--font-body); color: var(--me-ink); }
html[lang="ar"] .shop-search input { font-family: var(--font-arabic); }
/* range: the track fills up to the thumb (--p set by the finder) */
.shop-range__val { margin: -4px 0 12px; font: 700 14px/1 var(--font-body); color: var(--me-blue); direction: ltr; unicode-bidi: isolate; }
html[dir="rtl"] .shop-range__val { text-align: right; }
.shop-range { -webkit-appearance: none; appearance: none; display: block; width: 100%; height: 4px; margin: 0; border-radius: 4px; background: linear-gradient(90deg, var(--me-blue) var(--p, 0%), var(--me-line-2) var(--p, 0%)); cursor: pointer; }
html[dir="rtl"] .shop-range { background: linear-gradient(270deg, var(--me-blue) var(--p, 0%), var(--me-line-2) var(--p, 0%)); }
.shop-range::-webkit-slider-thumb { -webkit-appearance: none; width: 18px; height: 18px; border-radius: 50%; border: 3px solid #fff; background: var(--me-blue); box-shadow: 0 2px 8px rgba(31,92,194,.45); }
.shop-range::-moz-range-thumb { width: 18px; height: 18px; border-radius: 50%; border: 3px solid #fff; background: var(--me-blue); box-shadow: 0 2px 8px rgba(31,92,194,.45); }
.shop-range:focus-visible { outline: 3px solid var(--me-sky); outline-offset: 6px; }
.shop-range__scale { display: flex; justify-content: space-between; margin-top: 10px; font-size: 12px; color: var(--me-muted); direction: ltr; }
html[dir="rtl"] .shop-range__scale { flex-direction: row-reverse; }
.shop-promo { position: relative; isolation: isolate; display: grid; gap: 6px; margin-top: 22px; padding: 22px; color: #fff; background: var(--me-gradient-footer); overflow: hidden; transition: transform var(--dur-2) var(--ease-out); }
.shop-promo::before { content: ""; position: absolute; inset: 0; z-index: -1; background: var(--me-gradient-footer-glow); }
.shop-promo:hover { color: #fff; transform: translateY(-3px); }
.shop-promo > .bi { font-size: 28px; }
.shop-promo strong { font-size: 1.05rem; }
.shop-promo span { font-size: .92rem; opacity: .9; }
.shop-promo em { display: inline-flex; align-items: center; gap: 8px; margin-top: 6px; font: 700 12px/1 var(--font-body); font-style: normal; letter-spacing: .12em; text-transform: uppercase; }
html[lang="ar"] .shop-promo em { font-family: var(--font-arabic); letter-spacing: 0; font-size: 13.5px; }

/* results bar */
.shop-top { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 16px; }
.shop-top__count { margin: 0; font-weight: 600; color: var(--me-ink-2); }
.shop-top__tools { display: flex; align-items: center; gap: 10px; }
.shop-top__filters { display: none; align-items: center; gap: 8px; height: 42px; padding: 0 16px; border: 1px solid var(--me-line-2); border-radius: var(--radius-pill); background: #fff; font: 700 13px/1 var(--font-body); letter-spacing: .08em; text-transform: uppercase; color: var(--me-ink); cursor: pointer; }
html[lang="ar"] .shop-top__filters { font-family: var(--font-arabic); letter-spacing: 0; font-size: 14px; }
.shop-top__filters b { min-width: 20px; height: 20px; padding: 0 5px; display: grid; place-items: center; border-radius: var(--radius-pill); background: var(--me-gradient-footer); color: #fff; font-size: 11px; }
.shop-sort { display: inline-flex; align-items: center; gap: 8px; height: 42px; margin: 0; padding: 0 8px 0 16px; border: 1px solid var(--me-line-2); border-radius: var(--radius-pill); background: #fff; cursor: pointer; }
.shop-sort span { font-size: 14px; font-weight: 600; color: var(--me-muted); white-space: nowrap; }
.shop-sort select { height: 100%; border: 0; outline: 0; background: transparent; font: 700 14px/1 var(--font-body); color: var(--me-ink); cursor: pointer; }
html[lang="ar"] .shop-sort select { font-family: var(--font-arabic); }
.shop-sort:focus-within { border-color: var(--me-sky); }
.shop-active { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin-bottom: 24px; }
.shop-active__label { font-size: 14px; font-weight: 600; color: var(--me-muted); }
.shop-active__chips { display: flex; flex-wrap: wrap; gap: 8px; }
.shop-chip { display: inline-flex; align-items: center; gap: 8px; height: 34px; padding: 0 14px; border: 0; border-radius: var(--radius-pill); background: var(--me-gradient-footer); color: #fff; font: 600 13px/1 var(--font-body); cursor: pointer; transition: opacity var(--dur-1); }
html[lang="ar"] .shop-chip { font-family: var(--font-arabic); }
.shop-chip .bi { font-size: 10px; }
.shop-chip:hover { opacity: .85; }
.shop-active__clear { border: 0; background: none; padding: 0; font-size: 14px; font-weight: 600; color: var(--me-blue); text-decoration: underline; text-underline-offset: 4px; cursor: pointer; }
.shop-intro { margin-bottom: 26px; padding: 20px 24px; background: var(--me-surface-2); border-inline-start: 4px solid var(--me-blue); animation: me-fade-up .5s var(--ease-out); }
.shop-intro h2 { margin: 0 0 6px; font-size: 2rem; }
.shop-intro p { margin: 0; color: var(--me-ink-2); }

/* grids of product cards: overview, "fans available" (fan section page) */
.shop-grid, .prod-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 32px 24px; }

/* product card — sharp corners like the rest of the site; tinted body under the photo */
.prod-card { position: relative; display: flex; flex-direction: column; min-width: 0; border: 1px solid var(--me-line); background: #fff; transition: box-shadow var(--dur-2) var(--ease-out), border-color var(--dur-2), transform var(--dur-2) var(--ease-out); }
.prod-card::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 3px; background: var(--me-gradient-footer); transform: scaleX(0); transform-origin: left; transition: transform .5s var(--ease-out); }
html[dir="rtl"] .prod-card::after { transform-origin: right; }
.prod-card:hover { transform: translateY(-4px); border-color: transparent; box-shadow: 0 26px 46px -28px rgba(31,92,194,.45); }
.prod-card:hover::after { transform: scaleX(1); }
.prod-card__media { position: relative; aspect-ratio: 1 / 1; overflow: hidden; background: #fff; }
.prod-card__img { position: absolute; inset: 0; display: grid; place-items: center; padding: 28px; }
.prod-card__img img { width: 100%; height: 100%; object-fit: contain; mix-blend-mode: multiply; transition: transform .9s var(--ease-out); }
.prod-card:hover .prod-card__img img { transform: scale(1.06); }
.prod-card__body { flex: 1; display: flex; flex-direction: column; padding: 2px 18px 18px; background: var(--me-surface-2); border-top: 1px solid var(--me-line); transition: background var(--dur-2); }
.prod-card:hover .prod-card__body { background: var(--me-surface-3); }
.prod-card__badges { position: absolute; top: 14px; inset-inline-start: 14px; display: flex; flex-wrap: wrap; gap: 6px; pointer-events: none; }
.prod-card__badge { display: inline-flex; align-items: center; gap: 5px; padding: 7px 11px; font: 700 12px/1 var(--font-body); letter-spacing: .06em; color: #fff; background: linear-gradient(135deg, #ff6a3d, #d92d20); }
.prod-card__badge--smoke { text-transform: uppercase; }
html[lang="ar"] .prod-card__badge--smoke { font-family: var(--font-arabic); letter-spacing: 0; text-transform: none; }
.prod-card__actions { position: absolute; top: 14px; inset-inline-end: 14px; display: flex; flex-direction: column; gap: 6px; }
.prod-card__actions a { width: 38px; height: 38px; display: grid; place-items: center; background: #fff; color: var(--me-ink); box-shadow: var(--shadow-1); opacity: 0; transform: translateX(10px); transition: opacity var(--dur-2), transform var(--dur-2) var(--ease-out), background var(--dur-1), color var(--dur-1); }
html[dir="rtl"] .prod-card__actions a { transform: translateX(-10px); }
.prod-card__actions a:nth-child(2) { transition-delay: .05s; }
.prod-card:hover .prod-card__actions a, .prod-card:focus-within .prod-card__actions a { opacity: 1; transform: none; }
.prod-card__actions a:hover { color: #fff; background: var(--me-gradient-footer); }
@media (hover: none) { .prod-card__actions a { opacity: 1; transform: none; } }
.prod-card__meta { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin: 14px 0 4px; font-size: 13px; color: var(--me-muted); }
.prod-card__key { display: inline-flex; align-items: center; gap: 5px; font-weight: 700; color: var(--me-ink); white-space: nowrap; direction: ltr; unicode-bidi: isolate; }
.prod-card__key .bi { color: var(--me-sky-deep); }
.prod-card__key small { font-size: 11px; color: var(--me-muted); }
.prod-card__title { margin: 0 0 6px; font: 700 1.12rem/1.3 var(--font-body); text-transform: none; letter-spacing: 0; }
html[lang="ar"] .prod-card__title { font-family: var(--font-arabic); font-size: 1.05rem; line-height: 1.5; }
.prod-card__title a { color: var(--me-ink); }
.prod-card__title a:hover { color: var(--me-blue); }
.prod-card__specs { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 12px; margin: 0; font-size: 15px; color: var(--me-muted); }
.prod-card__specs b { font-weight: 700; color: var(--me-blue); }
.prod-card__specs > :not([data-i18n]) { direction: ltr; unicode-bidi: isolate; }
[data-pf-item].is-in { animation: me-fade-up .5s var(--ease-out) var(--d, 0s) both; }

/* no results */
.shop-empty { max-width: 620px; margin: 10px auto 0; padding: clamp(28px, 5vw, 52px); text-align: center; border: 1px dashed var(--me-line-2); }
.shop-empty__ico { width: 64px; height: 64px; margin: 0 auto 18px; display: grid; place-items: center; border-radius: 50%; font-size: 26px; color: #fff; background: var(--me-gradient-footer); }
.shop-empty h2 { font-size: clamp(1.9rem, 3.2vw, 2.6rem); }
.shop-empty p { color: var(--me-ink-2); }
.shop-empty__actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; margin-top: var(--space-5); }

/* pages */
.shop-pager { display: flex; justify-content: center; align-items: center; gap: 8px; margin-top: 44px; }
.shop-pager:empty { display: none; }
.shop-pager__btn { width: 40px; height: 40px; display: grid; place-items: center; border: 0; border-radius: 50%; background: none; font: 600 15px/1 var(--font-body); color: var(--me-ink); cursor: pointer; transition: background var(--dur-1), color var(--dur-1); }
.shop-pager__btn:hover:not(:disabled) { background: var(--me-surface-3); color: var(--me-blue); }
.shop-pager__btn[aria-current] { color: #fff; background: var(--me-gradient-footer); box-shadow: var(--shadow-2); }
.shop-pager__btn:disabled { opacity: .35; cursor: default; }
.shop-pager__gap { color: var(--me-muted); padding: 0 2px; }

@media (max-width: 1199.98px) {
  .shop__layout { grid-template-columns: 240px minmax(0, 1fr); gap: 32px; }
  .shop-grid, .prod-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
/* phones & tablets: the sidebar becomes a drawer */
@media (max-width: 991.98px) {
  .shop__layout { grid-template-columns: 1fr; }
  .shop-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px 16px; }
  .shop-top__filters { display: inline-flex; }
  .shop-side { position: fixed; z-index: 1100; top: 0; bottom: 0; inset-inline-start: 0; width: min(340px, 88vw); max-height: none; padding: 20px 20px 0; background: #fff; box-shadow: var(--shadow-3); transform: translateX(-105%); transition: transform .4s var(--ease-out); }
  html[dir="rtl"] .shop-side { transform: translateX(105%); }
  .shop.is-filters-open .shop-side { transform: none; }
  .shop-side__backdrop { display: block; position: fixed; inset: 0; z-index: 1090; background: rgba(8,13,26,.5); opacity: 0; pointer-events: none; transition: opacity .3s; }
  .shop.is-filters-open .shop-side__backdrop { opacity: 1; pointer-events: auto; }
  .shop-side__close { display: grid; place-items: center; width: 40px; height: 40px; border: 0; border-radius: 50%; background: var(--me-surface-3); color: var(--me-ink); cursor: pointer; }
  .shop-side__foot { display: block; position: sticky; bottom: 0; margin: 0 -20px; padding: 14px 20px; background: #fff; border-top: 1px solid var(--me-line); }
  .shop-side__foot .btn-me { width: 100%; }
}
@media (max-width: 767.98px) {
  .shop-grid, .prod-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .shop-sort span { display: none; }
  .prod-card__img { padding: 16px; }
  .prod-card__body { padding: 0 12px 14px; }
  .prod-card__badge { padding: 6px 9px; font-size: 11px; }
  .prod-card__meta { flex-direction: column; align-items: flex-start; gap: 4px; }
}
@media (max-width: 339.98px) { .shop-grid, .prod-grid { grid-template-columns: 1fr; } }

/* accessories grid (fan section page) */
.acc-grid { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1px; background: var(--me-line); border: 1px solid var(--me-line); }
.acc-grid li { display: flex; align-items: center; gap: 16px; padding: 14px 16px; background: #fff; font-weight: 600; line-height: 1.3; color: var(--me-ink); transition: background var(--dur-2); }
.acc-grid li:hover { background: var(--me-surface-3); }
.acc-grid__img { flex: none; width: 76px; height: 76px; overflow: hidden; background: #fff; border: 1px solid var(--me-line); }
.acc-grid__img img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s var(--ease-out); }
.acc-grid li:hover .acc-grid__img img { transform: scale(1.1); }
/* on the blue band (fan section page) */
.acc-grid--dark { background: rgba(255,255,255,.22); border-color: rgba(255,255,255,.22); }
.acc-grid--dark li { background: rgba(255,255,255,.08); color: #fff; }
.acc-grid--dark li:hover { background: rgba(255,255,255,.18); }
.acc-grid--dark .acc-grid__img { border-color: transparent; }
@media (max-width: 991.98px) { .acc-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 459.98px) { .acc-grid { grid-template-columns: 1fr; } }

/* blue bands on product pages (fan-section accessories, mining "complete system") — the footer's gradient */
.pd-acc, .mf-system { position: relative; isolation: isolate; background: var(--me-gradient-footer); color: rgba(255,255,255,.9); }
.pd-acc::before, .mf-system::before { content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none; background: var(--me-gradient-footer-glow); }
:is(.pd-acc, .mf-system) .eyebrow { color: #fff; }
:is(.pd-acc, .mf-system) .eyebrow::before, :is(.pd-acc, .mf-system) .title-line { background: #fff; }

/* product page: hero */
.pd-hero { position: relative; isolation: isolate; overflow: hidden; padding: var(--space-8) 0 var(--space-10); background: linear-gradient(180deg, var(--me-surface-2) 0%, #fff 100%); }
.pd-hero::before { content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none; background-image: linear-gradient(var(--me-line) 1px, transparent 1px), linear-gradient(90deg, var(--me-line) 1px, transparent 1px); background-size: 56px 56px; mask-image: radial-gradient(60% 70% at 75% 45%, #000 0%, transparent 75%); -webkit-mask-image: radial-gradient(60% 70% at 75% 45%, #000 0%, transparent 75%); opacity: .7; }
html[dir="rtl"] .pd-hero::before { mask-image: radial-gradient(60% 70% at 25% 45%, #000 0%, transparent 75%); -webkit-mask-image: radial-gradient(60% 70% at 25% 45%, #000 0%, transparent 75%); }
.pd-hero .me-breadcrumb { margin-bottom: var(--space-7); }
.pd-hero__title { font-size: clamp(3rem, 6.4vw, 5.6rem); max-width: 12ch; margin-bottom: var(--space-5); }
html[lang="ar"] .pd-hero__title { max-width: 16ch; font-size: clamp(2.2rem, 4.6vw, 3.6rem); }
.pd-hero__lead { font-size: 1.375rem; color: var(--me-ink-2); max-width: 58ch; margin-bottom: var(--space-6); }
.pd-hero__actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 18px; }
.pd-tags { list-style: none; padding: 0; margin: 0 0 var(--space-5); display: flex; flex-wrap: wrap; gap: 8px; }
.pd-tags li { display: inline-flex; align-items: center; gap: 6px; padding: 7px 12px; border: 1px solid var(--me-line-2); background: #fff; font-weight: 600; font-size: .9rem; color: var(--me-ink-2); }
.pd-tags li.is-amca { border-color: transparent; background: var(--me-surface-3); color: var(--me-blue); }
.pd-stage { position: relative; display: grid; place-items: center; aspect-ratio: 1 / 1; max-width: 560px; margin-inline: auto; }
/* the reveal's clip-path would isolate the photo and stop its white ground blending into the hero */
.pd-stage[data-reveal].is-visible { clip-path: none; }
.pd-stage img { position: relative; z-index: 1; width: 86%; height: 86%; object-fit: contain; mix-blend-mode: multiply; animation: pd-float 6s ease-in-out infinite; }
@keyframes pd-float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-12px); } }
@media (max-width: 991.98px) { .pd-hero { padding: var(--space-6) 0 var(--space-8); } .pd-stage { max-width: 420px; } .pd-hero .me-breadcrumb { margin-bottom: var(--space-5); } }

/* product page: performance band */
.pd-perf { position: relative; isolation: isolate; overflow: hidden; padding: var(--space-9) 0; background: var(--me-gradient-footer); color: rgba(255,255,255,.9); }
.pd-perf::before { content: ""; position: absolute; inset: 0; z-index: -2; background: var(--me-gradient-footer-glow); }
.pd-perf .airflow { position: absolute; inset: 0; z-index: -1; width: 100%; height: 100%; opacity: .35; pointer-events: none; }
.pd-perf .eyebrow { color: #fff; }
.pd-perf .eyebrow::before { background: #fff; }
.pd-perf__title { color: #fff; margin: 0; font-size: clamp(2.2rem, 3.6vw, 3.2rem); }
.pd-perf__grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1px; background: rgba(255,255,255,.22); border: 1px solid rgba(255,255,255,.22); }
.pd-perf__item { display: flex; align-items: flex-start; gap: 16px; padding: 26px 24px; background: rgba(255,255,255,.06); transition: background var(--dur-2); }
.pd-perf__item:hover { background: rgba(255,255,255,.14); }
.pd-perf__item > .bi { flex: none; width: 46px; height: 46px; display: grid; place-items: center; font-size: 20px; color: var(--me-blue); background: #fff; }
.pd-perf .stat__value { color: #fff; font-size: clamp(2.4rem, 4vw, 3.4rem); }
.pd-perf .stat__value small { color: rgba(255,255,255,.85); }
.pd-perf .stat__label { color: rgba(255,255,255,.8); }
@media (max-width: 767.98px) { .pd-perf__grid { grid-template-columns: 1fr; } }

/* product page: design & build */
.pd-points { list-style: none; padding: 0; margin: var(--space-6) 0 0; display: grid; gap: 18px; }
.pd-points li { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 18px; padding-top: 18px; border-top: 1px solid var(--me-line); }
.pd-points__num { min-width: 1.4em; font: 400 2.4rem/1 var(--font-display); color: transparent; -webkit-text-stroke: 1px var(--me-sky); }
.pd-points h3 { font: 700 1.1rem/1.3 var(--font-body); text-transform: none; letter-spacing: 0; margin: 4px 0 6px; }
html[lang="ar"] .pd-points h3 { font-family: var(--font-arabic); font-size: 1.1rem; }
.pd-points p { margin: 0; color: var(--me-ink-2); }
.spec-table { background: #fff; border: 1px solid var(--me-line); box-shadow: 0 30px 60px -40px rgba(8,13,26,.35); }
.spec-table__head { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 22px 26px; background: var(--me-gradient-135); color: #fff; }
.spec-table__head h3 { margin: 0; color: #fff; font-size: clamp(1.6rem, 2.4vw, 2.1rem); }
.spec-table__head .bi { font-size: 26px; opacity: .85; }
.spec-table table { width: 100%; border-collapse: collapse; }
.spec-table th, .spec-table td { padding: 16px 26px; text-align: start; border-bottom: 1px solid var(--me-line); }
.spec-table tbody tr:last-child > * { border-bottom: 0; }
.spec-table thead th { font: 700 11.5px/1 var(--font-body); letter-spacing: .18em; text-transform: uppercase; color: var(--me-muted); background: var(--me-surface-2); }
html[lang="ar"] .spec-table thead th { font-family: var(--font-arabic); letter-spacing: 0; font-size: 13px; }
.spec-table tbody th { width: 42%; font-weight: 600; color: var(--me-ink-2); }
.spec-table tbody td { font-weight: 700; color: var(--me-ink); }
.spec-table tbody tr { transition: background var(--dur-1); }
.spec-table tbody tr:hover { background: var(--me-surface-3); }
@media (max-width: 575.98px) { .spec-table th, .spec-table td { padding: 13px 16px; } }

/* product page: blades / impellers */
.part-grid { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; justify-content: center; gap: clamp(18px, 3vw, 40px); }
.part { width: clamp(130px, 16vw, 190px); display: flex; flex-direction: column; align-items: center; gap: 4px; text-align: center; }
.part__disc { position: relative; width: 100%; aspect-ratio: 1; display: grid; place-items: center; margin-bottom: 12px; border-radius: 50%; background: #fff; border: 1px solid var(--me-line); box-shadow: 0 24px 40px -30px rgba(8,13,26,.4); transition: border-color var(--dur-2), box-shadow var(--dur-2); }
.part__disc::after { content: ""; position: absolute; inset: -7px; border-radius: 50%; border: 2px solid transparent; border-top-color: var(--me-sky); border-left-color: var(--me-indigo); opacity: 0; transition: opacity var(--dur-2); }
.part__disc img { width: 72%; height: 72%; object-fit: contain; mix-blend-mode: multiply; transition: transform 1.2s var(--ease-out); }
.part:hover .part__disc { border-color: transparent; box-shadow: var(--shadow-2); }
.part:hover .part__disc::after { opacity: 1; animation: me-spin 2.4s linear infinite; }
.part:hover .part__disc img { transform: rotate(120deg); }
.part strong { font: 400 1.8rem/1 var(--font-display); text-transform: uppercase; color: var(--me-ink); }
.part > span:last-child { font-size: .92rem; color: var(--me-muted); }

/* product page: applications */
.app-grid { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.app-tile { position: relative; aspect-ratio: 3 / 4; overflow: hidden; background: var(--me-dark); }
.app-tile img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--ease-out); }
.app-tile::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 45%, rgba(8,13,26,.85)); }
.app-tile span { position: absolute; z-index: 1; left: 20px; right: 20px; bottom: 18px; font: 400 2rem/1 var(--font-display); text-transform: uppercase; color: #fff; }
html[lang="ar"] .app-tile span { font-family: var(--font-arabic); font-weight: 700; font-size: 1.3rem; text-transform: none; }
.app-tile span::before { content: ""; display: block; width: 32px; height: 3px; margin-bottom: 12px; background: var(--me-gradient); transition: width .5s var(--ease-out); }
.app-tile:hover img { transform: scale(1.08); }
.app-tile:hover span::before { width: 64px; }
@media (max-width: 991.98px) { .app-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } .app-tile { aspect-ratio: 4 / 3; } }

/* product page: related rail + pager */
.pd-related__head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 18px; margin-bottom: var(--space-6); }
.pd-related__head h2 { margin: 0; }
.prod-rail { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(240px, calc((100% - 60px) / 4)); gap: 20px; overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: 14px; scrollbar-width: thin; scrollbar-color: var(--me-sky) transparent; }
.prod-rail > * { scroll-snap-align: start; }
.prod-rail .prod-card[data-reveal] { opacity: 1; transform: none; }
.pd-pager { display: grid; grid-template-columns: 1fr 1fr; gap: 1px; margin-top: var(--space-7); background: var(--me-line); border: 1px solid var(--me-line); }
.pd-pager a { display: flex; align-items: center; gap: 16px; padding: 22px 26px; background: #fff; color: var(--me-ink); font-weight: 700; transition: background var(--dur-2), color var(--dur-2); }
.pd-pager a.is-next { justify-content: flex-end; text-align: end; }
.pd-pager small { display: block; margin-bottom: 4px; font: 700 11px/1 var(--font-body); letter-spacing: .18em; text-transform: uppercase; color: var(--me-muted); }
html[lang="ar"] .pd-pager small { font-family: var(--font-arabic); letter-spacing: 0; font-size: 13px; }
.pd-pager .bi { font-size: 20px; color: var(--me-blue); transition: transform var(--dur-2) var(--ease-out); }
.pd-pager a:hover { background: var(--me-surface-3); color: var(--me-blue); }
.pd-pager a:hover .bi-arrow-left { transform: translateX(-5px); }
.pd-pager a:hover .bi-arrow-right { transform: translateX(5px); }
@media (max-width: 575.98px) { .pd-pager { grid-template-columns: 1fr; } .pd-pager a.is-next { justify-content: space-between; } }

/* CTA band (overview + product pages) */
.pd-cta-wrap { padding-top: var(--space-9); }
.pd-cta { position: relative; isolation: isolate; display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 24px 48px; padding: clamp(28px, 5vw, 64px); background: var(--me-gradient-135); color: rgba(255,255,255,.88); overflow: hidden; }
.pd-cta::before { content: ""; position: absolute; inset: 0; z-index: -1; background: radial-gradient(40% 120% at 100% 50%, rgba(255,255,255,.18), transparent 70%); }
.pd-cta .eyebrow { color: #fff; }
.pd-cta .eyebrow::before { background: #fff; }
.pd-cta__title { color: #fff; font-size: clamp(2.2rem, 4vw, 3.4rem); margin-bottom: var(--space-3); }
.pd-cta p { margin: 0; max-width: 60ch; }
.pd-cta__actions { display: flex; flex-direction: column; align-items: flex-start; gap: 14px; }
.pd-cta .btn-me--light { border-color: #fff; }
.pd-cta__link { color: #fff; }
.pd-cta__link:hover { color: #fff; opacity: .85; }
@media (max-width: 767.98px) { .pd-cta { grid-template-columns: 1fr; } }

@media (prefers-reduced-motion: reduce) { .pd-stage img, .part:hover .part__disc::after { animation: none; } }

/* ---------- mining fans page (products/products/maining-fans/mining-ventilation-system.html) ---------- */
.pd-stage--wide { max-width: 720px; aspect-ratio: 5 / 4; }
.pd-stage--wide img { width: 100%; height: auto; }

.mf-adv { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1px; background: var(--me-line); border: 1px solid var(--me-line); }
.mf-adv__item { position: relative; padding: clamp(22px, 2.6vw, 34px); background: #fff; transition: background var(--dur-2); }
.mf-adv__item::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 3px; background: var(--me-gradient); transform: scaleX(0); transform-origin: left; transition: transform .5s var(--ease-out); }
html[dir="rtl"] .mf-adv__item::before { transform-origin: right; }
.mf-adv__item:hover { background: var(--me-surface-2); }
.mf-adv__item:hover::before { transform: scaleX(1); }
.mf-adv__item > .bi { display: grid; place-items: center; width: 52px; height: 52px; margin-bottom: 18px; font-size: 22px; color: #fff; background: var(--me-gradient); }
.mf-adv__item h3 { font: 700 1.15rem/1.3 var(--font-body); text-transform: none; letter-spacing: 0; margin-bottom: 8px; }
html[lang="ar"] .mf-adv__item h3 { font-family: var(--font-arabic); font-size: 1.1rem; }
.mf-adv__item p { margin: 0; color: var(--me-ink-2); }
@media (max-width: 991.98px) { .mf-adv { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 575.98px) { .mf-adv { grid-template-columns: 1fr; } }

.mf-energy__media { position: relative; margin: 0; aspect-ratio: 4 / 5; overflow: hidden; box-shadow: 0 40px 70px -40px rgba(8,13,26,.45); }
.mf-energy__media img { width: 100%; height: 100%; object-fit: cover; }
.mf-energy__media::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 5px; background: var(--me-gradient-135); }
.mf-energy h2 { font-size: clamp(2.3rem, 4vw, 3.4rem); }
.mf-energy p { color: var(--me-ink-2); }
.mf-cycle { margin-top: var(--space-6); padding: 22px 24px; background: #fff; border: 1px solid var(--me-line); }
.mf-cycle__row { display: grid; grid-template-columns: minmax(120px, 30%) 1fr; align-items: center; gap: 16px; padding: 8px 0; font-weight: 600; color: var(--me-ink); }
.mf-cycle__bar { position: relative; height: 30px; background: var(--me-surface-3); overflow: hidden; }
.mf-cycle__bar::before { content: ""; position: absolute; inset: 0; width: calc(var(--v) * 100%); background: var(--me-gradient); transform: scaleX(0); transform-origin: left; transition: transform 1.4s var(--ease-out); }
html[dir="rtl"] .mf-cycle__bar::before { inset-inline-start: 0; left: auto; right: 0; transform-origin: right; }
.mf-cycle.is-visible .mf-cycle__bar::before { transform: scaleX(1); }
.mf-cycle__row:nth-child(2) .mf-cycle__bar::before { transition-delay: .15s; }
.mf-cycle__row:nth-child(3) .mf-cycle__bar::before { transition-delay: .3s; }
.mf-cycle__bar b { position: relative; z-index: 1; display: flex; align-items: center; height: 100%; padding-inline-start: 12px; font: 700 11.5px/1 var(--font-body); letter-spacing: .14em; text-transform: uppercase; color: #fff; }
html[lang="ar"] .mf-cycle__bar b { font-family: var(--font-arabic); letter-spacing: 0; font-size: 13px; }
.mf-cycle__note { margin: 12px 0 0; font-size: .92rem; color: var(--me-muted) !important; }
@media (max-width: 575.98px) { .mf-cycle__row { grid-template-columns: 1fr; gap: 6px; } }

.mf-comp { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
/* same frame as the product cards: white photo area of a fixed shape, tinted body; every card in a row is the same height */
.mf-comp__item { position: relative; display: flex; flex-direction: column; height: 100%; padding: 0 0 24px; background: var(--me-surface-2); border: 1px solid var(--me-line); overflow: hidden; transition: box-shadow var(--dur-2) var(--ease-out), border-color var(--dur-2), transform var(--dur-2) var(--ease-out); }
.mf-comp__item::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 3px; background: var(--me-gradient-footer); transform: scaleX(0); transform-origin: left; transition: transform .5s var(--ease-out); }
html[dir="rtl"] .mf-comp__item::after { transform-origin: right; }
.mf-comp__item:hover { transform: translateY(-4px); box-shadow: 0 26px 46px -28px rgba(31,92,194,.45); border-color: transparent; }
.mf-comp__item:hover::after { transform: scaleX(1); }
/* the image sits inside a box of fixed proportions, so photos of any shape get the same space */
.mf-comp__media { position: relative; flex: none; display: block; aspect-ratio: 4 / 3; margin-bottom: 20px; background: #fff; border-bottom: 1px solid var(--me-line); overflow: hidden; }
.mf-comp__media img { position: absolute; inset: 28px; width: calc(100% - 56px); height: calc(100% - 56px); object-fit: contain; transition: transform 1s var(--ease-out); }
.mf-comp__item:hover .mf-comp__media img { transform: scale(1.06); }
.mf-comp__num { position: absolute; top: 14px; inset-inline-end: 18px; font: 400 2.6rem/1 var(--font-display); color: transparent; -webkit-text-stroke: 1px var(--me-line-2); }
.mf-comp__item:hover .mf-comp__num { -webkit-text-stroke-color: var(--me-sky); }
.mf-comp__item h3 { padding: 0 24px; margin-bottom: 8px; font-size: clamp(1.6rem, 2.2vw, 2rem); }
.mf-comp__item p { padding: 0 24px; margin: 0; color: var(--me-ink-2); }
@media (max-width: 991.98px) { .mf-comp { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 575.98px) { .mf-comp { grid-template-columns: 1fr; } }

.mf-stages { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; align-items: stretch; }
.mf-stage { position: relative; display: flex; flex-direction: column; padding: 26px; background: #fff; border: 1px solid var(--me-line); transition: box-shadow var(--dur-2), border-color var(--dur-2); }
.mf-stage:hover { box-shadow: var(--shadow-2); border-color: transparent; }
.mf-stage__badge { position: absolute; top: 18px; inset-inline-end: 18px; padding: 5px 10px; font: 700 11px/1 var(--font-body); letter-spacing: .14em; text-transform: uppercase; color: #fff; background: var(--me-gradient); }
.mf-stage__badge--opt { color: var(--me-blue); background: var(--me-surface-3); }
html[lang="ar"] .mf-stage__badge { font-family: var(--font-arabic); letter-spacing: 0; font-size: 12px; }
.mf-stage__media { display: grid; place-items: center; height: 200px; margin: 18px 0; }
.mf-stage__media img { max-height: 100%; width: auto; object-fit: contain; transition: transform .9s var(--ease-out); }
.mf-stage:hover .mf-stage__media img { transform: translateX(8px); }
.mf-stage__num { font: 400 4.2rem/.9 var(--font-display); color: var(--me-blue); direction: ltr; unicode-bidi: isolate; }
html[dir="rtl"] .mf-stage__num { text-align: right; }
.mf-stage__num small { font-size: .4em; margin-inline-start: 4px; color: var(--me-ink); }
.mf-stage h3 { font: 700 1.1rem/1.3 var(--font-body); text-transform: none; letter-spacing: 0; margin: 10px 0 6px; }
html[lang="ar"] .mf-stage h3 { font-family: var(--font-arabic); }
.mf-stage p { color: var(--me-ink-2); margin-bottom: 14px; }
.mf-stage__fans { margin-top: auto; display: flex; gap: 8px; font-size: 22px; color: var(--me-sky); }
.mf-stage:hover .mf-stage__fans .bi { animation: me-spin 1.4s linear infinite; }
@media (max-width: 991.98px) { .mf-stages { grid-template-columns: 1fr; } .mf-stage__media { height: 170px; } }

.mf-legend { display: flex; gap: 22px; margin: 0; font-weight: 600; color: var(--me-ink-2); }
.mf-legend > span { display: inline-flex; align-items: center; gap: 8px; }
.mf-dot { display: inline-block; flex: none; width: 14px; height: 14px; border-radius: 50%; border: 2px solid var(--me-blue); background: transparent; }
.mf-dot--std { background: var(--me-gradient); border-color: transparent; }
.mf-opts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.mf-opts__group { background: #fff; border: 1px solid var(--me-line); }
.mf-opts__group h3 { margin: 0; padding: 16px 20px; font-size: 1.6rem; color: #fff; background: var(--me-gradient-footer); }
.mf-opts__group ul { list-style: none; padding: 0; margin: 0; }
.mf-opts__group li { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 13px 20px; border-top: 1px solid var(--me-line); color: var(--me-ink); transition: background var(--dur-1); }
.mf-opts__group li:first-child { border-top: 0; }
.mf-opts__group li:hover { background: var(--me-surface-3); }
@media (max-width: 991.98px) { .mf-opts { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 575.98px) { .mf-opts { grid-template-columns: 1fr; } }

.mf-system { overflow: hidden; }
.mf-system h2 { font-size: clamp(2.4rem, 4.4vw, 3.8rem); }
.mf-system__lead { color: rgba(255,255,255,.9); font-size: 1.375rem; max-width: 62ch; }
.mf-system__site { margin: 0; aspect-ratio: 4 / 3; overflow: hidden; box-shadow: 0 40px 70px -30px rgba(0,0,0,.7); }
.mf-system__site img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 40%; }
.mf-sys { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1px; background: rgba(255,255,255,.22); border: 1px solid rgba(255,255,255,.22); }
.mf-sys__item { background: rgba(255,255,255,.08); padding-bottom: 26px; transition: background var(--dur-2); }
.mf-sys__item:hover { background: rgba(255,255,255,.16); }
.mf-sys__item img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; margin-bottom: 20px; }
.mf-sys__item h3 { padding: 0 24px; font-size: 1.9rem; margin-bottom: 8px; }
.mf-sys__item p { padding: 0 24px; margin: 0; color: rgba(255,255,255,.88); }
@media (max-width: 991.98px) { .mf-sys { grid-template-columns: 1fr; } }

.mf-svc-list { list-style: none; padding: 0; margin: var(--space-5) 0 0; display: grid; gap: 10px; }
.mf-svc-list li { display: flex; align-items: center; gap: 12px; font-weight: 600; color: var(--me-ink); }
.mf-svc-list .bi { display: grid; place-items: center; width: 38px; height: 38px; color: var(--me-blue); background: var(--me-surface-3); font-size: 17px; }
.mf-svc { display: grid; grid-template-columns: 1.2fr 1fr; grid-template-rows: 1fr 1fr; gap: 12px; height: clamp(360px, 40vw, 520px); }
.mf-svc button { padding: 0; border: 0; background: var(--me-surface-3); overflow: hidden; cursor: zoom-in; }
.mf-svc button:first-child { grid-row: span 2; }
.mf-svc img { width: 100%; height: 100%; object-fit: cover; transition: transform 1s var(--ease-out); }
.mf-svc button:hover img { transform: scale(1.06); }
@media (max-width: 575.98px) { .mf-svc { grid-template-columns: 1fr 1fr; height: 420px; } }

/* =====================================================================
   31 QUOTE PAGE (pages/quotation.html)
   ===================================================================== */
/* the floating "Get A Quote" button is pointless on the quote page itself */
html[data-page="quote"] .floating-quote { display: none !important; }

/* contact details */
.q-info { list-style: none; margin: 0; padding: 0; display: grid; gap: 1px; background: var(--me-line); border: 1px solid var(--me-line); }
.q-info li { display: flex; align-items: flex-start; gap: 16px; padding: 22px; background: #fff; transition: background var(--dur-2); }
.q-info li:hover { background: var(--me-surface-2); }
.q-info__ico { flex: none; width: 46px; height: 46px; display: grid; place-items: center; font-size: 20px; color: #fff; background: var(--me-gradient-footer); }
.q-info__title { margin: 2px 0 6px; font: 700 1rem/1.3 var(--font-body); text-transform: none; letter-spacing: 0; color: var(--me-ink); }
html[lang="ar"] .q-info__title { font-family: var(--font-arabic); }
.q-info p { margin: 0; color: var(--me-ink-2); line-height: 1.6; }
.q-info a { color: var(--me-ink-2); }
.q-info a:hover { color: var(--me-blue); }
html[dir="rtl"] .q-info p[dir="ltr"] { text-align: right; }

/* form card */
.q-card { position: relative; height: 100%; padding: clamp(26px, 4vw, 48px); background: #fff; border: 1px solid var(--me-line); box-shadow: 0 40px 80px -60px rgba(8,13,26,.35); }
.q-card::before { content: ""; position: absolute; top: 0; left: 0; right: 0; height: 4px; background: var(--me-gradient-footer); }
.q-card__title { font-size: clamp(2.1rem, 3.4vw, 3rem); margin: 6px 0 12px; }
.q-card__text { color: var(--me-ink-2); margin-bottom: var(--space-6); max-width: 62ch; }

/* file field — same height and border as .me-field */
.me-file { position: relative; display: flex; align-items: center; gap: 10px; height: 56px; margin: 0; padding: 0 16px; border: 1.5px dashed var(--me-line-2); background: #fff; color: var(--me-muted); cursor: pointer; transition: border-color var(--dur-1), color var(--dur-1), background var(--dur-1); }
.me-file:hover, .me-file:focus-within { border-color: var(--me-sky); color: var(--me-blue); }
.me-file input { position: absolute; inset: 0; opacity: 0; cursor: pointer; }
.me-file .bi { font-size: 18px; color: var(--me-blue); }
.me-file__prompt, .me-file__name { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.me-file__name { display: none; font-weight: 600; color: var(--me-ink); }
.me-file.has-file { border-style: solid; border-color: var(--me-blue); background: var(--me-surface-3); }
.me-file.has-file .me-file__prompt { display: none; }
.me-file.has-file .me-file__name { display: inline; }

/* map */
.q-map-wrap { padding: 0 0 var(--space-10); }
.q-map { position: relative; height: clamp(320px, 42vw, 460px); border: 1px solid var(--me-line); overflow: hidden; background: var(--me-surface-2); }
.q-map iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; filter: grayscale(.25); }

/* ---------- Team (about page): contact cards ---------- */
.team-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--space-4); max-width: 1100px; margin-inline: auto; }
.team-card { display: flex; flex-direction: column; background: var(--me-surface); border: 1px solid var(--me-line); box-shadow: var(--shadow-1); transition: transform var(--dur-2) var(--ease-out), box-shadow var(--dur-2) var(--ease-out), border-color var(--dur-2); }
.team-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-2); border-color: transparent; }
.team-card__photo { position: relative; aspect-ratio: 4 / 5; overflow: hidden; background: var(--me-surface-3); }
.team-card__photo::after { content: ""; position: absolute; inset: auto 0 0 0; height: 4px; background: var(--me-gradient); transform: scaleX(0); transform-origin: left; transition: transform var(--dur-2) var(--ease-out); }
html[dir="rtl"] .team-card__photo::after { transform-origin: right; }
.team-card:hover .team-card__photo::after { transform: scaleX(1); }
.team-card__photo img { width: 100%; height: 100%; object-fit: cover; object-position: center top; transition: transform var(--dur-3) var(--ease-out); }
.team-card:hover .team-card__photo img { transform: scale(1.04); }
.team-card__body { display: flex; flex-direction: column; flex: 1; padding: var(--space-4); text-align: start; }
.team-card__name { margin: 0; font: 400 1.5rem/1.1 var(--font-display); text-transform: uppercase; letter-spacing: .01em; color: var(--me-ink); }
html[lang="ar"] .team-card__name { font-family: var(--font-arabic); font-weight: 700; font-size: 1.25rem; line-height: 1.5; }
.team-card__role { margin: 4px 0 var(--space-4); font-size: 12.5px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--me-sky-deep); }
html[lang="ar"] .team-card__role { letter-spacing: 0; font-size: 15px; }
.team-card__actions { display: grid; grid-template-columns: 1fr 1fr; gap: var(--space-2); margin-top: auto; }
.team-card__btn { display: inline-flex; align-items: center; justify-content: center; gap: 6px; height: 40px; padding: 0 10px; border: 1px solid var(--me-line-2); border-radius: var(--radius-pill); background: var(--me-surface); color: var(--me-ink); font-size: 13px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; text-decoration: none; transition: background var(--dur-1), color var(--dur-1), border-color var(--dur-1), transform var(--dur-1); }
html[lang="ar"] .team-card__btn { letter-spacing: 0; font-family: var(--font-arabic); font-size: 15px; }
.team-card__btn .bi { font-size: 14px; }
.team-card__btn:hover { border-color: var(--me-blue); color: var(--me-blue); transform: translateY(-1px); }
.team-card__btn--primary { background: var(--me-gradient); border-color: transparent; color: #fff; }
.team-card__btn--primary:hover { color: #fff; border-color: transparent; filter: brightness(1.08); }
.team-card__btn:focus-visible { outline: 3px solid var(--me-sky); outline-offset: 2px; }
@media (max-width: 1199.98px) { .team-grid { grid-template-columns: repeat(2, 1fr); max-width: 580px; } }
@media (max-width: 575.98px) { .team-grid { grid-template-columns: 1fr; max-width: 300px; margin-inline: auto; } }
@media (prefers-reduced-motion: reduce) { .team-card, .team-card__photo img { transition: none; } .team-card:hover, .team-card:hover .team-card__photo img { transform: none; } }
