/* ==========================================================================
   ARDH ALMASHAREF — Site styles (v4 · Minimal Corporate)
   1 Base  2 Layout & grid  3 Typography  4 Buttons & links  5 Header & nav
   6 Hero  7 Section heads  8 Components  9 Home sections  10 Inner pages
   11 CTA & footer  12 Motion  13 Utility pages
   ========================================================================== */

/* 1 ---- Base ---------------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--header) + 1rem); }
body { margin: 0; font-family: var(--f); font-size: var(--fs-body); line-height: var(--lh-body); font-weight: var(--w-regular); color: var(--ink); background: var(--bg); -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; overflow-x: clip; }
h1, h2, h3, h4, p, figure, blockquote, dl, dd, ol, ul { margin: 0; }
ol, ul { padding: 0; list-style: none; }
img, picture, svg { display: block; max-width: 100%; }
img { height: auto; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; background: none; border: 0; padding: 0; }
a { color: inherit; text-decoration: none; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 4px; }
[hidden] { display: none !important; }
.skip { position: absolute; inset-inline-start: 1rem; top: -4rem; z-index: 300; padding: 0.7rem 1.1rem; border-radius: var(--radius-sm); background: var(--btn-bg); color: var(--btn-fg); font-weight: var(--w-medium); }
.skip:focus { top: 0.75rem; }
.sr { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.ltr { direction: ltr; unicode-bidi: isolate; display: inline-block; }
[dir="rtl"] :is(span, b, h2, h3, dd, strong, a, th, td, li)[lang="en"] { direction: ltr; unicode-bidi: isolate; }
[dir="rtl"] :is(h2, h3, dd, th, td, b)[lang="en"] { text-align: right; }
.on-dark-theme { display: none; }
:root[data-theme="dark"] .on-light-theme { display: none; }
:root[data-theme="dark"] .on-dark-theme { display: block; }

/* 2 ---- Layout & grid --------------------------------------------------------- */
.container { width: 100%; max-width: calc(var(--container) + var(--gutter) * 2); margin-inline: auto; padding-inline: var(--gutter); }
.section { padding-block: var(--section); }
.section--sm { padding-block: var(--section-sm); }
.section--alt { background: var(--bg-alt); }
/* Two consecutive sections on the same background share one gap instead of two */
.section:not(.section--alt):not(.section--dark):not(.section--adaptive) + .section:not(.section--alt):not(.section--dark):not(.section--adaptive),
.section--alt + .section--alt { padding-top: 0; }
.section--dark { background: var(--navy-deep); color: #e8eeeb; --ink: #e8eeeb; --ink-2: #aab7c1; --ink-3: #8a98a3; --line: #2a3a47; --line-2: #3a4b58; --accent: #9cdbae; --accent-soft: rgba(156, 219, 174, 0.12); --btn-bg: #9cdbae; --btn-fg: #102028; --btn-hover: #b5e6c3; }
:root[data-theme="dark"] .section--dark { background: #0a121a; }
/* Adaptive section (home Technology, About Vision & mission): light surface in light mode, the same navy as .section--dark in dark mode */
.section--adaptive { background: #f4f6f5; }
.section--adaptive .tabs__list { background: #ffffff; border: 1px solid var(--line); }
.section--adaptive .tabs__tab[aria-selected="true"] { background: var(--mint); color: var(--navy-deep); box-shadow: none; }
:root[data-theme="dark"] .section--adaptive { background: #0a121a; color: #e8eeeb; --ink: #e8eeeb; --ink-2: #aab7c1; --ink-3: #8a98a3; --line: #2a3a47; --line-2: #3a4b58; --accent: #9cdbae; --accent-soft: rgba(156, 219, 174, 0.12); --btn-bg: #9cdbae; --btn-fg: #102028; --btn-hover: #b5e6c3; }
:root[data-theme="dark"] .section--adaptive .tabs__list { background: rgba(255, 255, 255, 0.06); border-color: transparent; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme]) .section--adaptive { background: #0a121a; color: #e8eeeb; --ink: #e8eeeb; --ink-2: #aab7c1; --ink-3: #8a98a3; --line: #2a3a47; --line-2: #3a4b58; --accent: #9cdbae; --accent-soft: rgba(156, 219, 174, 0.12); }
  :root:not([data-theme]) .section--adaptive .tabs__list { background: rgba(255, 255, 255, 0.06); border-color: transparent; }
}
.grid { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: var(--gap); }
.split { display: grid; gap: clamp(2rem, 1.2rem + 3vw, 4.5rem); align-items: center; }
.split--top { align-items: start; }
@media (min-width: 960px) {
  .split { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .split--wide-media { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); }
  .split--wide-text { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); }
  .split--reverse > :first-child { order: 2; }
}
.stack > * + * { margin-top: 1.25rem; }
.stack-sm > * + * { margin-top: 0.75rem; }
.stack-lg > * + * { margin-top: 2rem; }

/* 3 ---- Typography ------------------------------------------------------------- */
h1, .h1 { font-size: var(--fs-h1); line-height: var(--lh-tight); font-weight: var(--w-semibold); letter-spacing: var(--track-head); text-wrap: balance; }
h2, .h2 { font-size: var(--fs-h2); line-height: var(--lh-head); font-weight: var(--w-semibold); letter-spacing: var(--track-head); text-wrap: balance; }
h3, .h3 { font-size: var(--fs-h3); line-height: var(--lh-head); font-weight: var(--w-medium); }
h4 { font-size: var(--fs-body); font-weight: var(--w-medium); }
p { text-wrap: pretty; }
strong, b { font-weight: var(--w-medium); }
.lead { font-size: var(--fs-lead); line-height: 1.7; color: var(--ink-2); max-width: 60ch; }
[dir="rtl"] .lead { line-height: 1.9; }
.muted { color: var(--ink-2); }
.small { font-size: var(--fs-sm); }
.eyebrow { display: inline-flex; align-items: center; gap: 0.6rem; font-size: var(--fs-xs); font-weight: var(--w-medium); letter-spacing: 0.08em; text-transform: uppercase; color: var(--accent); }
[dir="rtl"] .eyebrow { letter-spacing: 0; font-size: var(--fs-sm); }
.eyebrow::before { content: ""; width: 1.5rem; height: 2px; background: currentColor; border-radius: 2px; }
.prose { max-width: 68ch; color: var(--ink-2); }
.prose > * + * { margin-top: 1rem; }
.num { font-variant-numeric: tabular-nums; }

/* 4 ---- Buttons & links -------------------------------------------------------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 0.6rem; min-height: 3rem; padding: 0.7rem 1.4rem; border-radius: var(--radius-sm); border: 1px solid transparent; background: var(--btn-bg); color: var(--btn-fg); font-size: 0.95rem; font-weight: var(--w-medium); line-height: 1.2; white-space: nowrap; transition: background-color var(--t-fast) var(--ease), border-color var(--t-fast), color var(--t-fast); }
.btn:hover { background: var(--btn-hover); }
.btn svg { width: 18px; height: 18px; flex: none; }
.btn--outline { background: transparent; color: var(--ink); border-color: var(--line-2); }
.btn--outline:hover { background: transparent; border-color: var(--ink); }
.btn--sm { min-height: 2.6rem; padding: 0.5rem 1.1rem; font-size: 0.9rem; }
.btn--light { background: #ffffff; color: var(--navy); }
.btn--light:hover { background: var(--mint); }
.actions { display: flex; flex-wrap: wrap; gap: 0.75rem; align-items: center; }
.link { display: inline-flex; align-items: center; gap: 0.45rem; font-weight: var(--w-medium); font-size: 0.95rem; color: var(--accent); }
.link svg { width: 18px; height: 18px; transition: transform var(--t-fast) var(--ease); }
.link:hover svg { transform: translateX(4px); }
[dir="rtl"] .link svg, [dir="rtl"] .btn svg.arrow, [dir="rtl"] .flip { transform: scaleX(-1); }
[dir="rtl"] .link:hover svg { transform: scaleX(-1) translateX(4px); }

/* 5 ---- Header & navigation ------------------------------------------------------ */
/* Fixed at the top on every page. The page reserves its height (body padding),
   except where a full-bleed hero runs underneath a transparent header. */
body { padding-top: var(--header); }
body.has-overlay-header { padding-top: 0; }
.header { --hd: 0.3s; position: fixed; inset: 0 0 auto; z-index: 100; height: var(--header); background-color: var(--header-bg); -webkit-backdrop-filter: saturate(1.5) blur(12px); backdrop-filter: saturate(1.5) blur(12px); border-bottom: 1px solid transparent; transition: background-color var(--hd) var(--ease), border-color var(--hd) var(--ease), -webkit-backdrop-filter var(--hd) var(--ease), backdrop-filter var(--hd) var(--ease); }
.header.is-scrolled { border-bottom-color: var(--line); }
.header__in { height: 100%; display: flex; align-items: center; gap: 1.5rem; }
.brand { flex: none; display: block; position: relative; }
.brand img { width: 168px; height: auto; transition: opacity var(--hd, 0.3s) var(--ease); }
/* Both logo versions stay in the layout and cross-fade, so swapping never shifts anything */
.header .brand .on-light-theme, .header .brand .on-dark-theme { display: block; }
.header .brand .on-dark-theme { position: absolute; inset: 0; opacity: 0; }
:root[data-theme="dark"] .header .brand .on-light-theme { opacity: 0; }
:root[data-theme="dark"] .header .brand .on-dark-theme { opacity: 1; }
.icon-btn, .header__cta { transition: color var(--hd, 0.3s) var(--ease), background-color var(--hd, 0.3s) var(--ease), border-color var(--hd, 0.3s) var(--ease); }
.nav { display: none; margin-inline-start: auto; }
.nav__list { display: flex; gap: 0.25rem; }
.nav__list a { --ul: var(--accent); position: relative; display: block; padding: 0.5rem 0.8rem; font-size: 0.93rem; font-weight: var(--w-medium); color: var(--ink-2); transition: color var(--t-fast); }
/* Underline: 2px, inside the link's own padding, scaled from the centre outwards */
.nav__list a::after { content: ""; position: absolute; inset-inline: 0.8rem; bottom: 0.2rem; height: 2px; border-radius: 2px; background: var(--ul); transform: scaleX(0); transform-origin: center; transition: transform 0.35s var(--ease), background-color var(--t-fast); }
.nav__list a:hover { color: var(--ink); }
.nav__list a:hover::after { --ul: var(--line-2); transform: scaleX(1); }
.nav__list a[aria-current="page"] { color: var(--accent); }
.nav__list a[aria-current="page"]::after { --ul: var(--accent); transform: scaleX(1); animation: nav-line 0.6s var(--ease) 0.15s both; }
@keyframes nav-line { from { transform: scaleX(0); } }
.header__tools { display: flex; align-items: center; gap: 0.5rem; margin-inline-start: auto; }
.icon-btn { width: 2.6rem; height: 2.6rem; display: grid; place-items: center; border-radius: var(--radius-sm); border: 1px solid var(--line); color: var(--ink); font-size: 0.85rem; font-weight: var(--w-medium); transition: border-color var(--t-fast), background-color var(--t-fast); }
.icon-btn:hover { border-color: var(--line-2); background: var(--bg-alt); }
.icon-btn svg { width: 18px; height: 18px; }
.lang-link[lang="ar"] { font-family: var(--f-arabic); }
.theme-toggle .i-sun { display: none; }
:root[data-theme="dark"] .theme-toggle .i-sun { display: block; }
:root[data-theme="dark"] .theme-toggle .i-moon { display: none; }
.header__cta { display: none; }
.burger { display: grid; }
.burger span { width: 18px; height: 12px; position: relative; display: block; }
.burger i { position: absolute; inset-inline: 0; height: 1.6px; background: currentColor; border-radius: 2px; transition: transform var(--t) var(--ease), top var(--t) var(--ease), opacity var(--t-fast); }
.burger i:nth-child(1) { top: 0; }
.burger i:nth-child(2) { top: 5px; }
.burger i:nth-child(3) { top: 10px; }
.menu-open .burger i:nth-child(1) { top: 5px; transform: rotate(45deg); }
.menu-open .burger i:nth-child(2) { opacity: 0; }
.menu-open .burger i:nth-child(3) { top: 5px; transform: rotate(-45deg); }
.mnav { position: fixed; z-index: 95; inset: var(--header) 0 0; background: var(--bg); overflow-y: auto; padding-block: 1rem 2rem; opacity: 0; visibility: hidden; transform: translateY(-8px); transition: opacity var(--t) var(--ease), transform var(--t) var(--ease), visibility 0s linear var(--t); }
.mnav.is-open { opacity: 1; visibility: visible; transform: none; transition: opacity var(--t) var(--ease), transform var(--t) var(--ease), visibility 0s; }
.mnav__list a { display: flex; justify-content: space-between; align-items: center; padding: 1rem 0; border-bottom: 1px solid var(--line); font-size: 1.1rem; font-weight: var(--w-medium); }
.mnav__list a { transition: color var(--t-fast); }
.mnav__list a > span { background: linear-gradient(var(--accent), var(--accent)) no-repeat 50% 100% / 0% 2px; padding-bottom: 0.3rem; transition: background-size 0.35s var(--ease); }
.mnav__list a[aria-current="page"] { color: var(--accent); }
.mnav__list a[aria-current="page"] > span { background-size: 100% 2px; }
.mnav__list svg { width: 18px; height: 18px; color: var(--ink-3); }
.mnav__foot { margin-top: 1.75rem; display: grid; gap: 1.25rem; }
.mnav__contact { display: grid; gap: 0.35rem; color: var(--ink-2); font-size: var(--fs-sm); }
.menu-open { overflow: hidden; }

/* Transparent header at the top of the home page; it gains its glass background after 50px.
   Scoped to .js so a page without JavaScript keeps the solid header. */
.js .header--overlay:not(.is-scrolled) { background-color: transparent; border-bottom-color: transparent; -webkit-backdrop-filter: none; backdrop-filter: none; }
/* With the mobile menu open the header sits over the menu's plain background: keep it solid */
.menu-open .header--overlay:not(.is-scrolled) { background-color: var(--bg); }
/* Over a dark photograph (inner pages): white logo, links, icons and a white button */
.js body:not(.menu-open) .header--photo:not(.is-scrolled) .brand .on-light-theme { opacity: 0; }
.js body:not(.menu-open) .header--photo:not(.is-scrolled) .brand .on-dark-theme { opacity: 1; }
.js body:not(.menu-open) .header--photo:not(.is-scrolled) .nav__list a { color: rgba(255, 255, 255, 0.86); }
.js body:not(.menu-open) .header--photo:not(.is-scrolled) .nav__list a:hover { color: #ffffff; }
.js body:not(.menu-open) .header--photo:not(.is-scrolled) .nav__list a:hover::after { --ul: rgba(255, 255, 255, 0.55); }
.js body:not(.menu-open) .header--photo:not(.is-scrolled) .nav__list a[aria-current="page"] { color: var(--mint); }
.js body:not(.menu-open) .header--photo:not(.is-scrolled) .nav__list a[aria-current="page"]::after { --ul: var(--mint); }
.js body:not(.menu-open) .header--photo:not(.is-scrolled) .icon-btn { color: #ffffff; border-color: rgba(255, 255, 255, 0.4); }
.js body:not(.menu-open) .header--photo:not(.is-scrolled) .icon-btn:hover { background: rgba(255, 255, 255, 0.14); border-color: #ffffff; }
.js body:not(.menu-open) .header--photo:not(.is-scrolled) .header__cta { background: #ffffff; color: var(--navy); }
.js body:not(.menu-open) .header--photo:not(.is-scrolled) .header__cta:hover { background: var(--mint); }
@media (min-width: 640px) { .header__cta { display: inline-flex; } }
@media (min-width: 1180px) {
  .nav { display: block; }
  .nav + .header__tools { margin-inline-start: 0.75rem; }
  .burger, .mnav { display: none; }
}

/* 6 ---- Hero (home): asymmetric editorial split ------------------------------------
   Content ~40% on the inline-start side, the video ~60% bleeding to the inline-end edge.
   The video panel starts below the header, so the transparent header always sits on a clean surface. */
.hero { position: relative; display: grid; grid-template-columns: minmax(0, 1fr); padding-top: var(--header); background: var(--bg); }
.hero__content { display: grid; gap: 2.5rem; padding: clamp(1.75rem, 1.2rem + 2vw, 2.5rem) var(--gutter) 0; }
.hero__intro { display: grid; gap: 1.25rem; justify-items: start; }
.hero__kicker { display: flex; flex-wrap: wrap; align-items: center; gap: 0.6rem; font-size: var(--fs-sm); font-weight: var(--w-medium); color: var(--ink-2); }
.hero__mark { width: 1.75rem; height: auto; color: var(--navy); flex: none; }
:root[data-theme="dark"] .hero__mark { color: #ffffff; }
.hero__sep { width: 4px; height: 4px; border-radius: 50%; background: var(--accent); }
.hero h1 { font-size: clamp(2.1rem, 1.55rem + 2.1vw, 3.6rem); line-height: var(--lh-tight); max-width: 13ch; }
.hero h1 span { display: block; color: var(--accent); font-weight: var(--w-medium); }
.hero__lead { font-size: var(--fs-lead); line-height: 1.75; color: var(--ink-2); max-width: 36rem; }
[dir="rtl"] .hero__lead { line-height: 1.95; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 0.75rem; margin-top: 0.5rem; }
.hero__facts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); border-top: 1px solid var(--line); }
.hero__facts > div { display: flex; flex-direction: column; gap: 0.25rem; padding: 1.1rem 0; }
.hero__facts > div:nth-child(odd) { padding-inline-end: 1rem; }
.hero__facts > div:nth-child(even) { padding-inline-start: 1rem; border-inline-start: 1px solid var(--line); }
.hero__facts > div:nth-child(n+3) { border-top: 1px solid var(--line); }
.hero__facts dd { order: -1; font-size: clamp(1.35rem, 1.15rem + 0.8vw, 1.85rem); font-weight: var(--w-medium); line-height: 1.15; letter-spacing: var(--track-head); color: var(--ink); }
.hero__facts dd small { font-size: 0.55em; color: var(--accent); margin-inline-start: 0.15em; }
.hero__facts dt { font-size: var(--fs-xs); color: var(--ink-3); line-height: 1.5; }
/* Stage: on phones/tablets the video comes first, inset with the brand arc in one corner */
.hero__stage { order: -1; padding: 0.75rem var(--gutter) 0; }
.hero__frame { position: relative; margin: 0; overflow: hidden; aspect-ratio: 1 / 1; border-radius: var(--radius); border-start-start-radius: 4.5rem; background: var(--navy-ink); }
.hero__poster, .hero__poster img, .hero__video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 55%; }
.hero__video { opacity: 0; transition: opacity 1s var(--ease); }
.hero__video.is-playing { opacity: 1; }
.hero__frame::after { content: ""; position: absolute; inset: auto 0 0; height: 30%; background: linear-gradient(0deg, rgba(15, 26, 35, 0.5), rgba(15, 26, 35, 0)); pointer-events: none; }
@media (max-width: 767px) { .hero__actions .btn { flex: 1 1 auto; } }
@media (min-width: 768px) {
  .hero__frame { aspect-ratio: 16 / 10; border-start-start-radius: 7rem; }
  .hero__facts { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .hero__facts > div, .hero__facts > div:nth-child(odd), .hero__facts > div:nth-child(even) { padding: 1.1rem 1.25rem; border-inline-start: 1px solid var(--line); }
  .hero__facts > div:first-child { padding-inline-start: 0; border-inline-start: 0; }
  .hero__facts > div:nth-child(n+3) { border-top: 0; }
}
@media (min-width: 960px) {
  .hero { grid-template-columns: minmax(0, 42fr) minmax(0, 58fr); min-height: clamp(640px, 100svh, 940px); }
  /* Align the text with the site container on wide screens */
  .hero__content { grid-template-rows: 1fr auto; gap: 2rem; padding-block: clamp(2rem, 1rem + 3vw, 4rem) clamp(1.5rem, 1rem + 1.5vw, 2.5rem); padding-inline-start: max(var(--gutter), calc((100vw - var(--container)) / 2)); padding-inline-end: clamp(2rem, 1rem + 3vw, 4.5rem); }
  .hero__intro { align-self: center; gap: 1.4rem; }
  .hero__facts { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .hero__facts > div, .hero__facts > div:nth-child(odd), .hero__facts > div:nth-child(even) { padding: 1rem 0; border-inline-start: 0; }
  .hero__facts > div:nth-child(even) { padding-inline-start: 1.25rem; border-inline-start: 1px solid var(--line); }
  .hero__facts > div:nth-child(n+3) { border-top: 1px solid var(--line); }
  .hero__stage { order: 0; padding: 0 0 clamp(1rem, 0.5rem + 1vw, 1.75rem); }
  .hero__frame { aspect-ratio: auto; height: 100%; min-height: 520px; border-radius: 0; border-start-start-radius: clamp(7rem, 4rem + 6vw, 12rem); border-end-start-radius: var(--radius); }
}
@media (min-width: 960px) and (max-width: 1179px) {
  /* Narrower desktops: give the text a little more room so the hero stays within one screen */
  .hero { grid-template-columns: minmax(0, 48fr) minmax(0, 52fr); }
  .hero h1 { font-size: clamp(2rem, 1.2rem + 1.9vw, 2.6rem); }
}

/* Hero entrance (home only, on load). Pure CSS keyframes on transform/opacity, so the
   final state never depends on JavaScript. Each block enters from its own side of the screen:
   the video from beyond the outer edge it sits against, the text items from beyond the
   opposite edge, staggered. LTR: video right / text left; RTL: video left / text right.
   prefers-reduced-motion switches every animation off (see Motion), leaving the final state. */
.hero { overflow-x: clip; --enter-video: 100vw; --enter-text: -100vw; }
[dir="rtl"] .hero { --enter-video: -100vw; --enter-text: 100vw; }
@keyframes hero-video-in { from { transform: translate3d(var(--enter-video), 0, 0); } to { transform: none; } }
@keyframes hero-text-in { from { opacity: 0; transform: translate3d(var(--enter-text), 0, 0); } 35% { opacity: 0.4; } to { opacity: 1; transform: none; } }
.hero__frame { animation: hero-video-in 1.2s cubic-bezier(0.22, 1, 0.36, 1) both; }
.hero__kicker, .hero h1, .hero__lead, .hero__actions, .hero__facts { animation: hero-text-in 1s cubic-bezier(0.22, 1, 0.36, 1) both; animation-delay: calc(150ms + var(--hi, 0) * 120ms); }
.hero h1 { --hi: 1; }
.hero__lead { --hi: 2; }
.hero__actions { --hi: 3; }
.hero__facts { --hi: 4; }
.hero.is-entering .hero__frame, .hero.is-entering .hero__kicker, .hero.is-entering h1, .hero.is-entering .hero__lead, .hero.is-entering .hero__actions, .hero.is-entering .hero__facts { will-change: transform, opacity; }

/* 7 ---- Section heads -------------------------------------------------------------------- */
.shead { display: grid; gap: 1rem; margin-bottom: clamp(2rem, 1.5rem + 2vw, 3.25rem); }
.shead h2 { max-width: 22ch; }
.shead p { max-width: 60ch; color: var(--ink-2); }
.shead--row { align-items: end; }
@media (max-width: 767px) { .shead--aside-wide > .shead__aside { display: none; } } /* aside button only from tablet up */
.shead--center { justify-items: center; text-align: center; }
.shead--center h2, .shead--center p { margin-inline: auto; }
@media (min-width: 960px) {
  .shead--row { grid-template-columns: minmax(0, 1fr) auto; column-gap: 3rem; }
  .shead--row > .eyebrow, .shead--row > h2, .shead--row > p { grid-column: 1; }
  .shead--row > .shead__aside { grid-column: 2; grid-row: 1 / span 3; align-self: end; }
}

/* 8 ---- Components ------------------------------------------------------------------------ */
.media { position: relative; overflow: hidden; border-radius: var(--radius); background: var(--bg-alt); }
.media > picture, .media img { display: block; width: 100%; height: 100%; }
.media img { object-fit: cover; }
.r-4x3 { aspect-ratio: 4 / 3; } .r-3x2 { aspect-ratio: 3 / 2; } .r-16x10 { aspect-ratio: 16 / 10; } .r-16x9 { aspect-ratio: 16 / 9; } .r-21x9 { aspect-ratio: 21 / 9; } .r-4x5 { aspect-ratio: 4 / 5; } .r-1x1 { aspect-ratio: 1; }
@media (max-width: 767px) { .r-21x9 { aspect-ratio: 16 / 10; } }
figcaption { margin-top: 0.7rem; font-size: var(--fs-xs); color: var(--ink-3); }
.tag { display: inline-flex; align-items: center; gap: 0.4rem; padding: 0.3rem 0.75rem; border-radius: 99px; background: var(--accent-soft); color: var(--accent); font-size: var(--fs-xs); font-weight: var(--w-medium); line-height: 1.4; width: max-content; }
.tag::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.chips { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.chips li { padding: 0.35rem 0.85rem; border: 1px solid var(--line-2); border-radius: 99px; font-size: var(--fs-sm); color: var(--ink-2); line-height: 1.5; }
.checks { display: grid; gap: 0.75rem; }
.checks li { display: grid; grid-template-columns: 1.35rem 1fr; gap: 0.75rem; align-items: start; color: var(--ink-2); }
.checks svg { width: 1.35rem; height: 1.35rem; color: var(--accent); margin-top: 0.15rem; }
[dir="rtl"] .checks svg { margin-top: 0.3rem; }
@media (min-width: 768px) { .checks--2 { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); } }
.facts { display: grid; border-top: 1px solid var(--line); }
.facts > div { display: grid; grid-template-columns: minmax(7rem, 38%) 1fr; gap: 1rem; padding-block: 0.85rem; border-bottom: 1px solid var(--line); }
.facts dt { color: var(--ink-3); font-size: var(--fs-sm); }
.facts dd { font-weight: var(--w-medium); }
.note { font-size: var(--fs-sm); color: var(--ink-3); padding-inline-start: 0.9rem; border-inline-start: 2px solid var(--accent); line-height: 1.65; }
@media (min-width: 768px) { .steps--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); } .steps--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); } .steps--4 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1024px) { .steps--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.icon { width: 2.75rem; height: 2.75rem; border-radius: 10px; display: grid; place-items: center; background: var(--accent-soft); color: var(--accent); }
.icon svg { width: 1.4rem; height: 1.4rem; }
.table { width: 100%; border-collapse: collapse; }
.table th, .table td { text-align: start; padding: 1rem 1rem 1rem 0; border-bottom: 1px solid var(--line); vertical-align: top; }
[dir="rtl"] .table th, [dir="rtl"] .table td { padding: 1rem 0 1rem 1rem; }
.table thead th { font-size: var(--fs-xs); font-weight: var(--w-medium); color: var(--ink-3); text-transform: uppercase; letter-spacing: 0.06em; border-bottom-color: var(--line-2); }
[dir="rtl"] .table thead th { letter-spacing: 0; text-transform: none; font-size: var(--fs-sm); }
.table tbody th { font-weight: var(--w-medium); }
.table td { color: var(--ink-2); }
@media (max-width: 639px) {
  .table, .table tbody { display: block; }
  .table thead { display: none; }
  .table tr { display: grid; gap: 0.2rem; padding-block: 1rem; border-bottom: 1px solid var(--line); }
  .table th, .table td, [dir="rtl"] .table th, [dir="rtl"] .table td { padding: 0; border: 0; }
}
.logo-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.logo-grid li { background: var(--bg); display: grid; gap: 0.75rem; justify-items: center; align-content: center; padding: 1.5rem 1rem; text-align: center; }
.section--alt .logo-grid li { background: var(--bg-alt); }
.logo { position: relative; width: 100%; max-width: 9.5rem; aspect-ratio: 16 / 9; border-radius: 6px; background: var(--plate); }
.logo img { position: absolute; inset: 10%; width: 80%; height: 80%; object-fit: contain; }
.logo-grid span { font-size: var(--fs-xs); color: var(--ink-3); line-height: 1.4; }
@media (min-width: 640px) { .logo-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (min-width: 1024px) { .logo-grid { grid-template-columns: repeat(6, minmax(0, 1fr)); } .logo-grid--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); } }

/* Tabs */
.tabs__list { display: flex; gap: 0.25rem; padding: 0.3rem; border-radius: 12px; background: var(--bg-alt); width: max-content; max-width: 100%; overflow-x: auto; scrollbar-width: none; }
.section--dark .tabs__list { background: rgba(255, 255, 255, 0.06); }
.tabs__tab { padding: 0.6rem 1.15rem; border-radius: 9px; font-size: 0.93rem; font-weight: var(--w-medium); color: var(--ink-2); white-space: nowrap; transition: background-color var(--t-fast), color var(--t-fast); }
.tabs__tab:hover { color: var(--ink); }
.tabs__tab[aria-selected="true"] { background: var(--bg); color: var(--ink); box-shadow: 0 1px 2px rgba(0, 0, 0, 0.06); }
.section--dark .tabs__tab[aria-selected="true"] { background: var(--mint); color: var(--navy-deep); }
.tabs__panel { margin-top: clamp(1.75rem, 1.3rem + 1.5vw, 2.75rem); }
.js .tabs__panel:not(.is-active) { display: none; }
.tabs__panel.is-active { animation: fade-in 0.5s var(--ease) both; }
@keyframes fade-in { from { opacity: 0; transform: translateY(8px); } }

/* 9 ---- Home sections ---------------------------------------------------------------------- */
/* Sectors: split list + large image (desktop) · accordion (mobile) — one markup */
.sx { --sx-fade: 0.35s; }
.sx__head { margin: 0; font: inherit; }
.sx__trigger { width: 100%; display: flex; align-items: center; gap: 1rem; padding: 1.05rem 0; text-align: start; color: var(--ink-2); font-size: 1.05rem; font-weight: var(--w-medium); line-height: 1.4; border-bottom: 1px solid var(--line); transition: color var(--t-fast) var(--ease); }
.sx__trigger:hover { color: var(--ink); }
.sx__num { flex: none; min-width: 1.75rem; font-size: var(--fs-sm); color: var(--ink-3); transition: color var(--t-fast) var(--ease); }
.sx__name { flex: 1; }
.sx__chev { flex: none; width: 18px; height: 18px; color: var(--ink-3); transition: transform 0.3s cubic-bezier(0.22, 1, 0.36, 1), color 0.3s ease; }
.sx__item.is-open .sx__trigger { color: var(--ink); }
.sx__item.is-open .sx__num { color: var(--accent); }
.sx__item.is-open .sx__chev { transform: rotate(180deg); color: var(--accent); }
.sx__media { position: relative; overflow: hidden; border-radius: var(--radius); background: var(--bg); aspect-ratio: 16 / 10; }
.sx__media picture, .sx__media img { display: block; width: 100%; height: 100%; }
.sx__media img { object-fit: cover; transform: scale(1.03); transition: transform 0.9s var(--ease); }
.sx__item.is-open .sx__media img { transform: none; }
.sx__body { display: grid; gap: 0.9rem; justify-items: start; }
.sx__title { display: none; }
.sx__text { color: var(--ink-2); max-width: 52ch; }
/* Mobile accordion: closed panels collapse completely */
.sx__panel { display: grid; gap: 1.25rem; padding-block: 1.25rem 1.75rem; }
.js .sx__item:not(.is-open):not(.is-closing) .sx__panel { display: none; }
/* (height, fade and staggered entry are animated in main.js §4b) */
.sx__item:first-child .sx__trigger { border-top: 1px solid var(--line); }
.sx__item.is-open .sx__trigger { border-bottom-color: transparent; }
/* Phones: one shared "Discover more" under item 08, on the start edge (linked to the open sector by main.js §4b) instead of one per panel */
.sx__more { display: none; }
@media (max-width: 767px) {
  .js .sx__more { display: flex; justify-content: flex-start; margin-top: 24px; }
  .js .sx__body .btn { display: none; }
}

@media (min-width: 960px) {
  /* Every trigger sits in the list column; every panel stacks in the same cell of the media column */
  .sx { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); grid-template-rows: repeat(8, auto) 1fr; column-gap: clamp(2rem, 1rem + 3vw, 4.5rem); align-items: start; }
  .sx__item { display: contents; }
  .sx__head { grid-column: 1; }
  .sx__trigger { position: relative; padding: 1rem 1.25rem; padding-inline-start: 1.5rem; border: 0; border-radius: 0 var(--radius-sm) var(--radius-sm) 0; font-size: 1.1rem; }
  [dir="rtl"] .sx__trigger { border-radius: var(--radius-sm) 0 0 var(--radius-sm); }
  .sx__item:first-child .sx__trigger { border-top: 0; }
  .sx__trigger::before { content: ""; position: absolute; inset-block: 0.55rem; inset-inline-start: 0; width: 2px; border-radius: 2px; background: var(--line-2); transition: background-color var(--t-fast) var(--ease), width var(--t-fast) var(--ease); }
  .sx__item.is-open .sx__trigger { background: var(--bg); }
  .section--alt .sx__item.is-open .sx__trigger { background: var(--bg); }
  .sx__item.is-open .sx__trigger::before { width: 3px; background: var(--accent); }
  .sx__chev { display: none; }
  .sx__panel { grid-column: 2; grid-row: 1 / -1; padding: 0; gap: 1.5rem; align-content: start; }
  .js .sx__item:not(.is-open) .sx__panel { display: grid; opacity: 0; visibility: hidden; pointer-events: none; transition: opacity var(--sx-fade) var(--ease), visibility 0s linear var(--sx-fade); }
  .js .sx__item.is-open .sx__panel { opacity: 1; visibility: visible; transition: opacity var(--sx-fade) var(--ease); }
  .sx__media { aspect-ratio: 16 / 11; }
  .sx__title { display: flex; align-items: baseline; gap: 0.75rem; font-size: var(--fs-h3); font-weight: var(--w-medium); line-height: 1.35; color: var(--ink); }
  .sx__title .num { font-size: var(--fs-sm); color: var(--accent); }
}

.feature { display: grid; gap: clamp(1.75rem, 1rem + 2.5vw, 3rem); }
.feature__body { display: grid; gap: 1.25rem; align-content: center; }
.feature__thumbs { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--gap); margin-top: var(--gap); }
@media (min-width: 960px) { .feature { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); align-items: stretch; } .feature__main .media { aspect-ratio: auto; height: 100%; min-height: 420px; } }
.tech-panel { display: grid; gap: clamp(1.75rem, 1rem + 2.5vw, 3.5rem); align-items: center; }
.tech-panel__body { display: grid; gap: 1.25rem; }
@media (min-width: 960px) { .tech-panel { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); } }
.brands-inline { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem var(--gap); padding-top: 1.25rem; border-top: 1px solid var(--line); }
.brands-inline li { font-weight: var(--w-medium); }
.brands-inline li span { display: block; font-size: var(--fs-xs); color: var(--ink-3); font-weight: var(--w-regular); }
.mini-stats { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: var(--gap); }
.mini-stats div { padding: 1.25rem; border-radius: var(--radius); background: var(--bg-alt); text-align: start; }
.section--alt .mini-stats div { background: var(--bg); }
.mini-stats b { display: block; width: fit-content; max-width: 100%; direction: ltr; unicode-bidi: isolate; font-size: var(--fs-stat); font-weight: var(--w-medium); line-height: 1.1; letter-spacing: var(--track-head); }
.mini-stats b small { font-size: 0.5em; color: var(--accent); }
.mini-stats span { display: block; margin-top: 0.35rem; font-size: var(--fs-sm); color: var(--ink-2); }

/* 10a ---- Editorial layout (inner pages) ---------------------------------------------
   Grammar: full-bleed photo hero · kicker "01 — label" · large statement with a lead beside it ·
   3:2 image beside a numbered list · full-bleed photo bands with a quote · dark numbered panels ·
   4:5 portrait beside numbered principles, alternating sides. */
:root { --ed: clamp(4.5rem, 2.6rem + 6.5vw, 9rem); }
.ed { padding-block: var(--ed); }
.ed:not(.section--alt):not(.section--dark):not(.section--adaptive) + .ed:not(.section--alt):not(.section--dark):not(.section--adaptive),
.ed.section--alt + .ed.section--alt { padding-top: 0; }

/* Hero */
.pgh { position: relative; isolation: isolate; overflow: hidden; display: flex; align-items: flex-end; min-height: calc(clamp(420px, 62svh, 640px) + var(--header)); background: var(--navy-ink); color: #ffffff; }
.pgh__media { position: absolute; inset: 0; z-index: -2; }
.pgh__media picture, .pgh__media img { display: block; width: 100%; height: 100%; }
.pgh__media img { object-fit: cover; object-position: var(--pos, 50% 50%); }
.pgh::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgba(15, 26, 35, 0.55) 0, rgba(15, 26, 35, 0) calc(var(--header) + 4rem)), linear-gradient(0deg, rgba(15, 26, 35, 0.9) 0%, rgba(15, 26, 35, 0.45) 55%, rgba(15, 26, 35, 0.3) 100%); }
.pgh__in { display: grid; grid-template-rows: auto 1fr; gap: 2rem; min-height: inherit; padding-block: calc(var(--header) + 1.5rem) clamp(2.25rem, 1.6rem + 2.5vw, 4rem); }
.pgh__top { display: flex; justify-content: space-between; align-items: center; gap: 1rem; font-size: var(--fs-sm); }
.pgh .crumbs { margin: 0; color: rgba(255, 255, 255, 0.72); }
.pgh .crumbs a:hover { color: #ffffff; }
.pgh__idx { color: rgba(255, 255, 255, 0.6); font-size: var(--fs-sm); }
.pgh__idx b { color: var(--mint); font-weight: var(--w-medium); }
.pgh__grid { align-self: end; display: grid; gap: 1.25rem 3rem; align-items: end; }
.pgh__kick { display: flex; align-items: center; gap: 0.75rem; margin-bottom: 1rem; font-size: var(--fs-xs); font-weight: var(--w-semibold); letter-spacing: 0.14em; text-transform: uppercase; color: rgba(255, 255, 255, 0.85); }
[dir="rtl"] .pgh__kick { letter-spacing: 0; text-transform: none; font-size: var(--fs-sm); }
.pgh__kick::before { content: ""; width: 2rem; height: 1px; background: var(--mint); }
.pgh h1 { color: #ffffff; font-size: clamp(2.2rem, 1.5rem + 2.8vw, 4rem); font-weight: var(--w-semibold); max-width: 16ch; }
.pgh__lead { color: #cdd7de; font-size: var(--fs-lead); line-height: 1.75; max-width: 40ch; }
[dir="rtl"] .pgh__lead { line-height: 1.95; }
@media (min-width: 960px) { .pgh__grid { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); } .pgh__lead { justify-self: end; } }

/* Kicker and section heads */
.kick { display: flex; align-items: center; gap: 0.75rem; font-size: var(--fs-xs); font-weight: var(--w-semibold); letter-spacing: 0.14em; text-transform: uppercase; color: var(--ink); }
[dir="rtl"] .kick { letter-spacing: 0; text-transform: none; font-size: var(--fs-sm); }
.kick .num { color: var(--accent); }
.kick::after { content: ""; width: 3.5rem; height: 1px; background: var(--line-2); }
.h-ed { font-size: clamp(1.9rem, 1.35rem + 2.1vw, 3.2rem); font-weight: var(--w-medium); line-height: 1.15; letter-spacing: -0.02em; text-wrap: balance; }
[dir="rtl"] .h-ed { line-height: 1.4; letter-spacing: 0; }
.ed-head { display: grid; gap: 1.25rem; margin-bottom: clamp(2.25rem, 1.6rem + 2.5vw, 4rem); }
.intro { color: var(--ink-2); font-size: var(--fs-lead); line-height: 1.75; max-width: 60ch; }
[dir="rtl"] .intro { line-height: 1.95; }
@media (min-width: 960px) {
  .ed-head--split { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); column-gap: var(--gap); align-items: end; }
  .ed-head--split > .kick { grid-column: 1 / -1; }
}

/* Story: statement + lead, then image + numbered list */
.story { display: grid; gap: 2rem var(--gap); }
.statement { font-size: clamp(1.65rem, 1.15rem + 2vw, 2.9rem); font-weight: var(--w-medium); line-height: 1.24; letter-spacing: -0.02em; text-wrap: balance; }
[dir="rtl"] .statement { line-height: 1.6; letter-spacing: 0; }
.statement em { font-style: normal; color: var(--accent); }
.story__aside { display: grid; gap: 1.25rem; align-content: start; }
.lead-l { font-size: clamp(1.1rem, 1rem + 0.45vw, 1.35rem); line-height: 1.65; color: var(--ink); }
[dir="rtl"] .lead-l { line-height: 1.9; }
.story__aside p:not(.lead-l) { color: var(--ink-2); font-size: var(--fs-sm); line-height: 1.8; }
@media (min-width: 960px) {
  .story { grid-template-columns: repeat(12, minmax(0, 1fr)); row-gap: clamp(2.5rem, 1.5rem + 3vw, 5rem); }
  .story > .kick { grid-column: 1 / -1; }
  .story > .statement { grid-column: 1 / 8; }
  .story__aside { grid-column: 9 / 13; padding-top: 0.5rem; }
  .story__media { grid-column: 1 / 8; }
  .story__side { grid-column: 9 / 13; }
  .story__wide { grid-column: 1 / -1; }
  /* Stacked variant: statement on top, its paragraphs directly beneath (no side column) */
  .story--stack > .statement, .story--stack > .story__aside { grid-column: 1 / -1; }
  .story--stack > .story__aside { padding-top: 0; margin-top: calc(2rem - clamp(2.5rem, 1.5rem + 3vw, 5rem)); }
}
.story--stack > .story__aside { max-width: 62rem; }
.story--full > .story__aside { max-width: none; }
/* Note variant: a short secondary line ~22px under the statement, in the secondary grey */
.story--note > .story__aside { margin-top: -0.625rem; }
.story--note > .story__aside .lead-l { color: var(--ink-2); }
@media (min-width: 960px) { .story--stack.story--note > .story__aside { margin-top: calc(1.375rem - clamp(2.5rem, 1.5rem + 3vw, 5rem)); } }
/* Compact variant: on wide screens the list follows the note at 2.5rem instead of the full row gap */
@media (min-width: 960px) { .story--compact > .story__wide { margin-top: calc(2.5rem - clamp(2.5rem, 1.5rem + 3vw, 5rem)); } }
/* Arabic lines carry more leading, so pull the note up a little more to keep the same visible gap */
[dir="rtl"] .story--note > .story__aside { margin-top: calc(-0.625rem - 6px); }
@media (min-width: 960px) { [dir="rtl"] .story--stack.story--note > .story__aside { margin-top: calc(1.375rem - 6px - clamp(2.5rem, 1.5rem + 3vw, 5rem)); } }
/* Brand statement: navy in light mode, white in dark mode; the <em> keeps the accent green */
/* Kashida heading: on Arabic phones a pre-stretched copy (fixed lines, font sized to the content width) replaces the plain text */
.kd-long { display: none; }
@media (max-width: 479px) {
  [dir="rtl"] .kd-plain { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
  [dir="rtl"] .kd-long { display: block; font-size: min(calc((100vw - 2 * var(--gutter)) * 0.0904), 2.25rem); }
  [dir="rtl"] .kd-long > span { display: block; white-space: nowrap; }
}
.statement--brand { color: var(--navy); }
:root[data-theme="dark"] .statement--brand { color: #ffffff; }
@media (prefers-color-scheme: dark) { :root:not([data-theme]) .statement--brand { color: #ffffff; } }

/* Numbered list beside an image (or on its own, in columns) */
.focus__h { font-size: var(--fs-xs); font-weight: var(--w-semibold); letter-spacing: 0.14em; text-transform: uppercase; color: var(--ink-3); padding-bottom: 0.85rem; border-bottom: 1px solid var(--line-2); }
[dir="rtl"] .focus__h { letter-spacing: 0; text-transform: none; font-size: var(--fs-sm); }
.focus li { display: grid; grid-template-columns: 2.25rem minmax(0, 1fr); gap: 0.75rem; padding-block: 0.85rem; border-bottom: 1px solid var(--line); }
.focus li > .num { font-size: var(--fs-xs); color: var(--ink-3); padding-top: 0.3rem; }
.focus li strong { display: block; font-weight: var(--w-medium); }
.focus li small { display: block; margin-top: 0.2rem; color: var(--ink-2); font-size: var(--fs-sm); line-height: 1.65; }
.focus a { transition: color var(--t-fast); }
.focus a:hover { color: var(--accent); }
.focus--cols ol { display: grid; column-gap: var(--gap); }
@media (min-width: 640px) { .focus--cols ol { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1024px) { .focus--cols ol { grid-template-columns: repeat(4, minmax(0, 1fr)); } .focus--3 ol { grid-template-columns: repeat(3, minmax(0, 1fr)); } }

/* Full-bleed photo band with a quote or statement */
.band { position: relative; isolation: isolate; overflow: hidden; display: flex; align-items: flex-end; min-height: clamp(440px, 22rem + 22vw, 780px); background: var(--navy-ink); color: #ffffff; }
.band__media { position: absolute; inset: 0; z-index: -2; }
.band__media picture, .band__media img { display: block; width: 100%; height: 100%; }
.band__media img { object-fit: cover; object-position: var(--pos, 50% 50%); }
.band::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(0deg, rgba(15, 26, 35, 0.88) 0%, rgba(15, 26, 35, 0.3) 60%, rgba(15, 26, 35, 0.1) 100%); }
.band__in { display: grid; gap: 1.25rem; padding-block: clamp(2.5rem, 1.8rem + 3vw, 5rem); }
.band__quote { max-width: 48rem; padding-inline-start: clamp(1rem, 0.6rem + 1vw, 1.75rem); border-inline-start: 3px solid var(--mint); }
.band__quote p, .band__title { font-size: clamp(1.4rem, 1.05rem + 1.6vw, 2.5rem); font-weight: var(--w-medium); line-height: 1.32; letter-spacing: -0.01em; color: #ffffff; }
[dir="rtl"] .band__quote p, [dir="rtl"] .band__title { line-height: 1.65; letter-spacing: 0; }
.band__quote footer { display: block; margin-top: 1rem; font-size: var(--fs-sm); color: rgba(255, 255, 255, 0.72); }
.band__text { max-width: 46rem; color: #cdd7de; font-size: var(--fs-lead); line-height: 1.75; }
.band__tag { justify-self: start; padding: 0.35rem 0.8rem; border-radius: 99px; border: 1px solid rgba(255, 255, 255, 0.3); background: rgba(15, 26, 35, 0.55); color: #ffffff; font-size: var(--fs-xs); }

/* Dark numbered panels */
.panels { display: grid; gap: var(--gap); }
.panel { display: grid; gap: 1rem; padding: clamp(1.75rem, 1.2rem + 2.5vw, 3.5rem); background: rgba(255, 255, 255, 0.04); border-inline-start: 2px solid var(--mint); }
.panel__head { display: flex; align-items: center; gap: 1rem; font-size: var(--fs-xs); font-weight: var(--w-semibold); letter-spacing: 0.14em; text-transform: uppercase; color: var(--ink-2); }
[dir="rtl"] .panel__head { letter-spacing: 0; text-transform: none; font-size: var(--fs-sm); }
.panel__head .big { font-size: clamp(2rem, 1.6rem + 1.5vw, 3rem); font-weight: 300; line-height: 1; letter-spacing: 0; color: var(--accent); }
.panel__head::after { content: ""; width: 2.5rem; height: 1px; background: var(--mint); }
.panel h3 { font-size: clamp(1.8rem, 1.25rem + 2.2vw, 3.2rem); font-weight: var(--w-medium); line-height: 1.15; letter-spacing: -0.02em; }
[dir="rtl"] .panel h3 { line-height: 1.4; letter-spacing: 0; }
.panel .lead-l { max-width: 68ch; }
#vision .panel .lead-l { color: var(--ink-2); } /* About: vision & mission body text in the secondary grey */
.panel p:not(.lead-l):not(.panel__head) { color: var(--ink-2); max-width: 72ch; }

/* Portrait image beside numbered principles (alternates with --flip) */
.approach { display: grid; gap: 2.5rem var(--gap); align-items: start; }
.approach__body { display: grid; gap: 1.25rem; align-content: start; }
@media (min-width: 960px) {
  .approach { grid-template-columns: repeat(12, minmax(0, 1fr)); }
  .approach__media { grid-column: 1 / 6; position: sticky; top: calc(var(--header) + 2rem); }
  .approach__body { grid-column: 7 / 13; }
  .approach--flip .approach__media { grid-column: 8 / 13; grid-row: 1; }
  .approach--flip .approach__body { grid-column: 1 / 7; grid-row: 1; }}
.principles { margin-top: 0.75rem; border-top: 1px solid var(--line-2); }
.principles > li { display: grid; grid-template-columns: 3.5rem minmax(0, 1fr); gap: 0.35rem 1.25rem; padding-block: 1.5rem; border-bottom: 1px solid var(--line); }
.principles .big { grid-row: span 3; font-size: clamp(1.8rem, 1.5rem + 1vw, 2.4rem); font-weight: 300; line-height: 1; color: var(--ink); }
.principles h3 { font-size: 1.12rem; font-weight: var(--w-semibold); line-height: 1.4; }
.principles p { color: var(--ink-2); }

/* Values matrix: numbered statements, no cards */
.matrix { display: grid; gap: 0 var(--gap); border-top: 1px solid var(--line-2); }
.matrix > li { display: grid; gap: 0.5rem; align-content: start; padding-block: 1.75rem; border-bottom: 1px solid var(--line); }
.matrix .big { font-size: clamp(1.8rem, 1.5rem + 1vw, 2.4rem); font-weight: 300; line-height: 1; color: var(--accent); }
.matrix h3 { margin-top: 0.5rem; font-size: clamp(1.2rem, 1.05rem + 0.6vw, 1.5rem); font-weight: var(--w-medium); }
.matrix p { color: var(--ink-2); }
@media (min-width: 768px) { .matrix { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1024px) { .matrix { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
/* Three items: one column until all three fit on a row, so no item is left alone on a second row */
@media (min-width: 768px) and (max-width: 1023px) { .matrix--3 { grid-template-columns: minmax(0, 1fr); } }

/* Large image beside text, alternating */
.feature-row { display: grid; gap: 2rem var(--gap); align-items: center; }
.feature-row + .feature-row { margin-top: var(--ed); }
.feature-row__body { display: grid; gap: 1.1rem; align-content: start; }
.feature-row__body > p:not(.intro):not(.kick):not(.lead-l) { color: var(--ink-2); }
@media (min-width: 960px) {
  .feature-row { grid-template-columns: repeat(12, minmax(0, 1fr)); }
  .feature-row__media { grid-column: 1 / 7; }
  .feature-row__body { grid-column: 8 / 13; }
  .feature-row--flip .feature-row__media { grid-column: 7 / 13; grid-row: 1; }
  .feature-row--flip .feature-row__body { grid-column: 1 / 6; grid-row: 1; }
}
.pair { display: grid; gap: clamp(2.5rem, 2rem + 2vw, 4rem) var(--gap); }
.pair article { display: grid; gap: 1rem; align-content: start; }
.pair article > p:not(.intro):not(.kick) { color: var(--ink-2); }
@media (min-width: 768px) { .pair { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

/* Reveal: images settle slowly from a slight zoom; groups stagger (see main.js) */
.js [data-r="img"] { transform: none; }
.js [data-r="img"] img { transform: scale(1.06); transition: transform 1.4s var(--ease); transition-delay: var(--d, 0s); }
.js [data-r="img"].is-in img { transform: none; }

/* 10 ---- Inner pages --------------------------------------------------------------------------- */
.crumbs { display: flex; flex-wrap: wrap; align-items: center; gap: 0.5rem; font-size: var(--fs-sm); color: var(--ink-3); margin-bottom: 1.25rem; }
.crumbs a:hover { color: var(--ink); }
.crumbs svg { width: 14px; height: 14px; }
@media (min-width: 960px) { .page-hero__grid { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); } }

.icon svg { flex: none; }
@media (min-width: 768px) { .duo { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); } }
@media (min-width: 768px) { .qa { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); } }
.box { padding: 1.25rem 1.4rem; border-radius: var(--radius); background: var(--bg-alt); display: grid; gap: 0.4rem; }
.box p { color: var(--ink-2); font-size: var(--fs-sm); }
.brand-list { display: grid; gap: var(--gap); }
.brand-list article { display: grid; align-content: start; gap: 0.5rem; padding-top: 1.25rem; border-top: 1px solid var(--line-2); }
.brand-list .meta { font-size: var(--fs-sm); color: var(--accent); font-weight: var(--w-medium); }
.brand-list p { color: var(--ink-2); }
@media (min-width: 768px) { .brand-list { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); column-gap: calc(var(--gap) * 2); row-gap: 2.25rem; } }
.products { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--gap); }
.product { display: grid; gap: 0.5rem; align-content: start; }
.product__img { position: relative; aspect-ratio: 1; border-radius: var(--radius); background: var(--bg-alt); }
.section--alt .product__img { background: var(--bg); }
.product__img img { position: absolute; inset: 10%; width: 80%; height: 80%; object-fit: contain; }
.product h3 { font-size: 1rem; margin-top: 0.5rem; }
.product p { font-size: var(--fs-sm); color: var(--ink-2); }
@media (min-width: 960px) { .products { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.trio { display: grid; gap: var(--gap); }
.trio figure { display: grid; gap: 0.5rem; }
.trio h3 { font-size: 1.05rem; margin-top: 0.75rem; }
.trio p { font-size: var(--fs-sm); color: var(--ink-2); }
@media (min-width: 768px) { .trio { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.partner-rows { display: grid; border-top: 1px solid var(--line); }
.partner-rows a { display: grid; grid-template-columns: 6.5rem 1fr auto; gap: 1.25rem; align-items: center; padding-block: 1.25rem; border-bottom: 1px solid var(--line); }
.partner-rows .logo { max-width: none; border: 1px solid var(--line); }
.partner-rows b { display: block; font-size: 1.15rem; }
.partner-rows span.role { display: block; color: var(--ink-2); font-size: var(--fs-sm); margin-top: 0.2rem; }
.partner-rows .go { width: 2.5rem; height: 2.5rem; border-radius: 50%; border: 1px solid var(--line-2); display: grid; place-items: center; color: var(--ink-2); transition: background-color var(--t-fast), color var(--t-fast); }
.partner-rows .go svg { width: 16px; height: 16px; }
.partner-rows a:hover .go { background: var(--btn-bg); color: var(--btn-fg); border-color: var(--btn-bg); }
@media (min-width: 768px) { .partner-rows a { grid-template-columns: 9rem 1fr auto; } }

/* 11 ---- CTA & footer ----------------------------------------------------------------------- */
.cta { border-radius: calc(var(--radius) + 4px); background: var(--navy); color: #ffffff; padding: clamp(2rem, 1.2rem + 3.5vw, 4.5rem); display: grid; gap: 1.5rem 3rem; align-items: center; position: relative; overflow: hidden; }
:root[data-theme="dark"] .cta { background: var(--surface); border: 1px solid var(--line); }
.cta h2 { max-width: 20ch; }
.cta p { color: #c4d0d8; max-width: 52ch; margin-top: 0.75rem; }
.cta__mark { position: absolute; inset-block-end: -18%; inset-inline-end: -4%; width: 34%; max-width: 360px; opacity: 0.08; pointer-events: none; }
@media (min-width: 960px) { .cta { grid-template-columns: minmax(0, 1fr) auto; } }
.footer { background: var(--navy-ink); color: #c4d0d8; padding-top: clamp(3.5rem, 2.5rem + 3vw, 5rem); font-size: var(--fs-sm); }
.footer a { transition: color var(--t-fast); }
.footer a:hover { color: var(--mint); }
.footer__top { display: grid; gap: 2.5rem var(--gap); padding-bottom: 3rem; }
.footer__brand img { width: 180px; }
.footer__brand p { margin-top: 1.25rem; max-width: 36ch; line-height: 1.8; }
.footer h2 { font-size: var(--fs-sm); font-weight: var(--w-medium); color: #ffffff; margin-bottom: 1rem; letter-spacing: 0; }
.footer__links { display: grid; gap: 0.6rem; }
.footer__contact { display: grid; gap: 0.75rem; }
.footer__contact span { display: block; color: #8a98a3; font-size: var(--fs-xs); }
.footer__bottom { display: flex; flex-wrap: wrap; gap: 0.75rem 2rem; justify-content: space-between; align-items: center; padding-block: 1.5rem; border-top: 1px solid #22313e; font-size: var(--fs-xs); color: #8a98a3; }
.footer__tools { display: flex; gap: 0.5rem; }
.footer .icon-btn { border-color: #2c3c48; color: #e8eeeb; }
.footer .icon-btn:hover { background: #16232f; }
.footer__top { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
.footer__top > :first-child, .footer__top > :last-child { grid-column: 1 / -1; }
@media (min-width: 1024px) { .footer__top > :first-child, .footer__top > :last-child { grid-column: auto; } }
@media (min-width: 1024px) { .footer__top { grid-template-columns: minmax(0, 4fr) minmax(0, 2fr) minmax(0, 2fr) minmax(0, 3fr); } }

/* 12 ---- Motion ---------------------------------------------------------------------------- */
.js [data-r] { opacity: 0; transform: translateY(16px); transition: opacity 0.7s var(--ease), transform 0.7s var(--ease); transition-delay: var(--d, 0s); }
.js [data-r].is-in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .js [data-r] { opacity: 1; transform: none; }
}

/* 13 ---- Utility pages (language gate, 404) ---------------------------------------------- */
.solo { min-height: 100svh; display: grid; align-content: center; padding-block: 3rem; background: var(--bg-alt); }
.solo__card { max-width: 40rem; margin-inline: auto; width: 100%; display: grid; gap: 2rem; }
.solo__logo img { width: 200px; }
.solo__foot { display: flex; flex-wrap: wrap; gap: 0.5rem 1.5rem; font-size: var(--fs-sm); color: var(--ink-3); }
.solo__code { font-size: clamp(4rem, 3rem + 5vw, 7rem); font-weight: var(--w-semibold); line-height: 1; color: var(--accent); }.band__quote p.band__text { font-size: var(--fs-lead); font-weight: var(--w-regular); line-height: 1.75; color: #cdd7de; letter-spacing: 0; }
[dir="rtl"] .band__quote p.band__text { line-height: 1.95; }
.feature-row .lead-l, .approach .lead-l { font-size: clamp(1.05rem, 0.98rem + 0.3vw, 1.2rem); }
.pgh__idx, .kick .num { direction: ltr; unicode-bidi: isolate; }
.principles > li > :not(.big) { grid-column: 2; }
/* Panels on an adaptive section: white cards on the light surface, the translucent navy cards in dark mode */
.section--adaptive .panel { background: #ffffff; }
:root[data-theme="dark"] .section--adaptive .panel { background: rgba(255, 255, 255, 0.04); }
@media (prefers-color-scheme: dark) { :root:not([data-theme]) .section--adaptive .panel { background: rgba(255, 255, 255, 0.04); } }

/* Inner hero entrance: the photograph settles from 110% to 100% once on load, the text fades in just after.
   CSS only, so nothing stays hidden without JavaScript; prefers-reduced-motion switches it off (see Motion). */
@keyframes pgh-zoom { from { transform: scale(1.1); } to { transform: none; } }
@keyframes pgh-text { from { opacity: 0; } to { opacity: 1; } }
.pgh__media { overflow: hidden; }
.pgh__media img { animation: pgh-zoom 1.5s cubic-bezier(0.22, 1, 0.36, 1) both; }
.pgh__grid, .pgh__top { animation: pgh-text 0.9s cubic-bezier(0.22, 1, 0.36, 1) 0.35s both; }
/* A shorter, lighter statement (Technology overview) */
.statement--sm { font-size: clamp(1.45rem, 1.1rem + 1.35vw, 2.3rem); font-weight: 450; }
[dir="ltr"] .statement--sm { font-size: clamp(1.3rem, 0.75rem + 1.25vw, 2rem); }
/* English names in an Arabic numbered list keep LTR letter order but sit on the right like the Arabic text */
[dir="rtl"] .focus li strong[lang="en"] { text-align: right; }

/* A white editorial section followed by the closing contact strip (also white): one gap, not two */
.ed:not(.section--alt):not(.section--dark):not(.section--adaptive) + .section:not(.section--alt):not(.section--dark):not(.section--adaptive) { padding-top: 0; }
/* Discreet photo credit in the top corner of a band */
.band__credit { position: absolute; z-index: 1; top: 1rem; inset-inline-end: var(--gutter); margin: 0; font-size: var(--fs-xs); color: rgba(255, 255, 255, 0.7); }
/* 3S benefits (3×3) above the polymer uses (3×2), both full width */
.spec-grids { display: grid; row-gap: clamp(2.5rem, 2rem + 2vw, 3.75rem); }

/* Contact page: heading + two call-to-action buttons, then the details in a row of four */
.reach__head { display: grid; gap: 2rem var(--gap); align-items: end; margin-bottom: clamp(2.5rem, 1.8rem + 2.5vw, 4rem); }
.reach__actions { display: flex; flex-wrap: wrap; gap: 0.75rem; }
@media (min-width: 960px) { .reach__head { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); } .reach__actions { justify-content: flex-end; } }
@media (max-width: 559px) { .reach__actions .btn { flex: 1 1 100%; } }
.reach { display: grid; grid-template-columns: minmax(0, 1fr); border-top: 1px solid var(--line-2); }
.reach__item { display: grid; grid-template-columns: 2.75rem minmax(0, 1fr); gap: 0.2rem 1rem; align-content: start; padding-block: 1.5rem; border-bottom: 1px solid var(--line); }
.reach__item .icon { grid-row: span 3; width: 2.5rem; height: 2.5rem; }
.reach__item dt { font-size: var(--fs-sm); color: var(--ink-3); }
.reach__item dd { font-weight: var(--w-medium); font-size: 1.05rem; line-height: 1.6; overflow-wrap: anywhere; }
.reach__item dd a:hover { color: var(--accent); }
@media (min-width: 640px) { .reach { grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: var(--gap); } }
@media (min-width: 1100px) {
  .reach { grid-template-columns: repeat(4, minmax(0, 1fr)); column-gap: 0; }
  .reach__item { grid-template-columns: 1fr; padding: 1.75rem 1.5rem 2rem; border-bottom: 0; border-inline-start: 1px solid var(--line); }
  .reach__item:first-child { border-inline-start: 0; padding-inline-start: 0; }
  .reach__item .icon { grid-row: auto; margin-bottom: 0.75rem; }
}
