/* RTL Layout Styles */
      [dir="rtl"] {
        text-align: right;
      }

      [dir="rtl"] .mxd-header__controls {
        flex-direction: row-reverse;
      }

      [dir="rtl"] .main-menu__content {
        text-align: right;
      }

      [dir="rtl"] .mxd-hero-01__title {
        text-align: right;
      }

      [dir="rtl"] .mxd-hero-01__data-descr {
        text-align: right;
      }

      [dir="rtl"] .mxd-services-stack__title {
        text-align: right;
      }

      [dir="rtl"] .mxd-services-stack__info {
        text-align: right;
      }

      [dir="rtl"] .mxd-testimonials-card__text {
        text-align: right;
      }

      [dir="rtl"] .mxd-approach-list__title {
        text-align: right;
      }

      [dir="rtl"] .mxd-approach-list__descr {
        text-align: right;
      }

      /* RTL rules for use-cases.html sections */
      [dir="rtl"] .mxd-hero-08__headline,
      [dir="rtl"] .mxd-hero-08__center,
      [dir="rtl"] .mxd-section-title__title,
      [dir="rtl"] .mxd-section-title__hrtitle,
      [dir="rtl"] .mxd-section-title__hrdescr,
      [dir="rtl"] .mxd-block__content,
      [dir="rtl"] .mxd-block__manifest,
      [dir="rtl"] .mxd-promo__content,
      [dir="rtl"] .mxd-project-item__name,
      [dir="rtl"] .mxd-project-item__tags,
      [dir="rtl"] .mxd-tech-stack-cards__title,
      [dir="rtl"] .mxd-services-cards__tags,
      [dir="rtl"] .mxd-footer,
      [dir="rtl"] .mxd-footer__footer-blocks {
        text-align: right;
      }

      /* ============================================================
         RTL section-by-section fixes for the MXD template
         All overrides scoped to [dir="rtl"] so LTR stays untouched.
         ============================================================ */

      /* --- 1. Services stack cards (Identity / Packaging / Digital / Strategy) ---
         The inner is flex-direction:column with width-60 title + info blocks
         (60%-wide block children) layered over a full-cover absolute image
         container; the actual image is anchored to the right side via
         `right:0` (1200px+) or `right:-15%` (992px+) on `.service-img`.
         In LTR: text-on-LEFT + image-on-RIGHT.
         For a proper RTL mirror we need:
           - title + info to sit on the RIGHT of the card (the natural
             behaviour of width-60 blocks under direction:rtl — block-start
             aligns to the inline-start, which in RTL is the right edge)
           - image to flip to the LEFT side of the card
         So we just text-align-right the text and mirror the image's
         right→left anchor. The inner container keeps direction:rtl
         (inherited from html). */
      [dir="rtl"] .mxd-services-stack__title,
      [dir="rtl"] .mxd-services-stack__title h3,
      [dir="rtl"] .mxd-services-stack__info,
      [dir="rtl"] .mxd-services-stack__info p,
      [dir="rtl"] .mxd-services-cards__title,
      [dir="rtl"] .mxd-services-cards__title p,
      [dir="rtl"] .mxd-services-cards__info,
      [dir="rtl"] .mxd-services-cards__info p,
      [dir="rtl"] .mxd-services-cards__tags {
        text-align: right;
      }
      /* Flip the absolutely-positioned card image to the LEFT side. The
         template sets `right:-15%` (992px+) and `right:0` (1200px+) on
         `.services-stack__image .service-img`. We mirror those to `left`. */
      [dir="rtl"] .services-stack__image .service-img {
        right: auto;
        left: -15%;
      }
      @media only screen and (min-width: 1200px) {
        [dir="rtl"] .services-stack__image .service-img {
          left: 0;
        }
      }
      /* CTA round control in the card corner: LTR places it top-right via
         `right:1rem`. Mirror to top-left in RTL so it sits opposite the
         now-LEFT image (the image's transparent area gives the button room). */
      [dir="rtl"] .mxd-services-stack__controls,
      [dir="rtl"] .mxd-services-cards__controls {
        right: auto;
        left: 1rem;
      }
      /* The title has `padding-right:2.6rem` in LTR which adds breathing
         room on the right edge of the headline. In RTL the title sits at
         the right edge, so that padding now pushes the title leftward.
         Flip to padding-left so the equivalent gap appears on the left. */
      [dir="rtl"] .mxd-services-stack__title {
        padding-right: 0;
        padding-left: 2.6rem;
      }
      /* Mirror arrow icons that point "right-up" so they read as outgoing
         in RTL too (towards the start of reading flow). */
      [dir="rtl"] .mxd-services-stack__controls .ph-arrow-up-right,
      [dir="rtl"] .mxd-services-cards__controls .ph-arrow-up-right,
      [dir="rtl"] .mxd-section-title__controls .ph-arrow-up-right,
      [dir="rtl"] .btn .ph-arrow-up-right {
        transform: scaleX(-1);
      }
      /* Right-pointing chevron / arrow icons on footer links: flip horizontally. */
      [dir="rtl"] .footer-blocks__links .ph-arrow-right,
      [dir="rtl"] .btn .ph-arrow-right {
        transform: scaleX(-1);
      }

      /* --- 2. Hero rotating word chips (Craft / Identity / Packaging / Digital / Strategy)
         These chips live as direct flex children of .mxd-hero-08__wrap, which
         is a flex row that squeezes them to <30px each. In LTR the END of
         each English word clips visibly ("Cra", "Identi", ...). In RTL the
         clipping cuts the BEGINNING of each Arabic word, making them
         unreadable. Give the chips natural sizing so the full word shows,
         and force LTR layout direction inside each chip so text+icon line up. */
      [dir="rtl"] .marquee__item.item-regular.text,
      .mxd-hero-08__wrap > .marquee__item.item-regular.text {
        flex: 0 0 auto;
        min-width: max-content;
        overflow: visible;
      }
      [dir="rtl"] .marquee__item.item-regular.text {
        direction: ltr;
      }
      [dir="rtl"] .marquee__item.item-regular.text p {
        direction: rtl;
      }

      /* --- 3. Marquee tracks (logos / words rows that GSAP translateX-animates)
         GSAP writes inline `transform: translateX(...)` in one direction.
         Without `direction: ltr` on the track, RTL parent flips the flex
         children visual order, breaking the seamless loop. */
      [dir="rtl"] .marquee,
      [dir="rtl"] .marquee--gsap,
      [dir="rtl"] .marquee-right--gsap,
      [dir="rtl"] .marquee-left--gsap,
      [dir="rtl"] .marquee__top,
      [dir="rtl"] .marquee__bottom,
      [dir="rtl"] .marquee__toleft,
      [dir="rtl"] .marquee__toright {
        direction: ltr;
      }

      /* --- 4. Featured project items (pinned scroll list) and blog preview
         cards. Tags are absolute bottom:0 left:0 - keep pinned to visual LEFT
         of the card (matches the design in either direction). Reverse flex so
         the chip order reads right-to-left within the tag row.
         Project name underline gradient is "left-to-right" via CSS gradient;
         in RTL we want it growing from the right under the link text. */
      [dir="rtl"] .mxd-project-item__tags,
      [dir="rtl"] .mxd-blog-preview__tags {
        flex-direction: row-reverse;
        justify-content: flex-start;
      }
      [dir="rtl"] .mxd-project-item__name a,
      [dir="rtl"] .mxd-blog-preview__data a {
        background-position: 0% 100%, 100% 100% !important;
      }
      [dir="rtl"] .mxd-project-item__name a:hover,
      [dir="rtl"] .mxd-blog-preview__data a:hover {
        background-position: 100% 100%, 0% 100% !important;
      }
      [dir="rtl"] .mxd-blog-preview__data {
        text-align: right;
      }

      /* --- 5. Section-title cluster + "All Works" CTA: text-align right
         and ensure the CTA icon mirrors. Already covered by the cluster
         rule above, plus an extra anchor for the small chevron in muted btns. */
      [dir="rtl"] .mxd-section-title__descr {
        text-align: right;
      }

      /* --- 6. Approach / philosophy list (icon | title | description rows)
         Bootstrap grid auto-mirrors with direction:rtl, but the title box has
         `padding: 0 3rem; text-align: right` baked in - that's fine in RTL.
         Just make sure the description aligns right and the icon image is at
         the visual start (now the right edge) without forced margins. */
      [dir="rtl"] .mxd-approach-list__title {
        padding: 0 3rem;
        text-align: right;
      }
      [dir="rtl"] .mxd-approach-list__descr {
        text-align: right;
      }

      /* --- 7. Tech-stack cards (square logo tiles)
         The .mxd-tech-stack-cards__inner is a flex container with logo + title.
         Keep the row order natural in RTL (title text reads right, logo on
         the right side of the row). The Bootstrap grid handles column order. */
      [dir="rtl"] .mxd-tech-stack-cards__inner {
        text-align: right;
      }

      /* --- 8. Footer columns: flex container naturally mirrors with direction:rtl
         so DOM order col1 -> col2 -> col3 appears right-to-left (col1 on right,
         col3 on left). Anchor text right inside each card so addresses/links
         read properly. */
      [dir="rtl"] .footer-blocks__column,
      [dir="rtl"] .footer-blocks__card,
      [dir="rtl"] .footer-nav__item,
      [dir="rtl"] .footer-socials__item,
      [dir="rtl"] .footer-blocks__links,
      [dir="rtl"] .footer-blocks__title,
      [dir="rtl"] .mxd-point-subtitle {
        text-align: right;
      }
      /* `.mxd-point-subtitle` is flex w/ icon + text. Reverse so icon sits
         on the visual right (start of RTL reading) next to its label. */
      [dir="rtl"] .mxd-point-subtitle {
        flex-direction: row-reverse;
        justify-content: flex-end;
      }
      /* Footer nav counter pill (Works "24+") - keep number after the svg. */
      [dir="rtl"] .footer-nav__counter {
        flex-direction: row-reverse;
      }

      /* --- 9. Header controls cluster: keep row-reverse from earlier rule.
         The parent header is flex with justify-content: space-between, so the
         logo sits at the visual right and the controls cluster at the visual
         left in RTL. Within the cluster we use row-reverse so reading right-
         to-left gives: تواصل (closest to logo) -> EN -> theme switcher. */

      /* --- 10. Pinned-projects sticky column: in LTR the title column is on
         the LEFT and the project list scrolls on the RIGHT. Bootstrap's
         col-xl-5 / col-xl-7 auto-mirrors with RTL so the title sits on the
         RIGHT and the scrolling cards on the LEFT - which reads correctly.
         Just ensure the static section-title text aligns right. */
      [dir="rtl"] .mxd-pinned-projects__static-inner {
        text-align: right;
      }

      /* --- 11. Section titles + generic content blocks --- */
      [dir="rtl"] .mxd-section-title__hrtitle,
      [dir="rtl"] .mxd-section-title__hrdescr,
      [dir="rtl"] .mxd-section-title__controls {
        text-align: right;
      }
      /* mxd-section-title__controls is a flex container with a CTA button -
         keep it anchored to the start (visual right) in RTL. */
      [dir="rtl"] .mxd-section-title__controls {
        justify-content: flex-start;
      }

      /* --- 12. Hero-08 bottom row: flex with data-wrap on the visual right
         in RTL (because of natural rtl flip), video-wrap on the left. Just
         anchor description text right and put the "Available for Projects"
         mark's icon to the right side of its label. */
      [dir="rtl"] .mxd-hero-08__descr {
        text-align: right;
      }
      [dir="rtl"] .mxd-hero__mark {
        flex-direction: row-reverse;
        justify-content: flex-end;
      }

      /* --- 13. Hero rotating spin image: keep visually centered (no fix). --- */

      /* --- 14. Service stack image positioning override
         The img inside .services-stack__image has right: -15% (extends past
         right edge to crop into card). In RTL with content-on-left, we keep
         the image on the right edge. The default rules already do that.
         Just ensure the img doesn't reverse via the inner's direction:ltr
         we set above (it inherits ltr, which keeps right:0 meaning right). */

      /* --- 15. mxd-block__manifest, mxd-block__content rows: text-align right
         already covered. The inner Bootstrap grid auto-flips column order. */

      /* --- 16. Stats cards (white-on-blue counters + illustrations)
         Each card has an absolute-positioned illustration anchored to a corner.
         In LTR: image-1 top-left, image-3 bottom-right, image-4 bottom-right.
         In RTL we mirror each to the opposite horizontal corner. */
      [dir="rtl"] .mxd-stats-cards__image.mxd-stats-cards-image-1 {
        left: auto;
        right: -4rem;
      }
      [dir="rtl"] .mxd-stats-cards__image.mxd-stats-cards-image-3 {
        right: auto;
        left: -4rem;
      }
      [dir="rtl"] .mxd-stats-cards__image.mxd-stats-cards-image-4 {
        right: auto;
        left: -6rem;
      }
      /* Stats counter text-alignment + flip the "align-end" inside the stat
         card (which uses align-items: flex-end in cross axis). */
      [dir="rtl"] .mxd-counter,
      [dir="rtl"] .mxd-counter__descr,
      [dir="rtl"] .mxd-counter__number {
        text-align: right;
      }
      [dir="rtl"] .mxd-stats-cards__inner {
        text-align: right;
      }

      /* --- 17. CTA / Promo block: the bg illustration peeks in from the right
         in LTR (right: -10rem on small / right: 0 on large). In RTL we want
         it peeking in from the LEFT. */
      [dir="rtl"] .mxd-promo__bg {
        right: auto;
        left: -10rem;
        background-position: right center;
      }
      @media only screen and (min-width: 992px) {
        [dir="rtl"] .mxd-promo__bg {
          left: 0;
          right: auto;
        }
      }
      /* Promo title icon: in LTR padding-right pushes caption text away from icon.
         In RTL flip to padding-left so caption sits to the left of the icon. */
      [dir="rtl"] .mxd-promo__icon {
        padding-right: 0;
        padding-left: 1rem;
      }
      [dir="rtl"] .mxd-promo__content,
      [dir="rtl"] .mxd-promo__title,
      [dir="rtl"] .mxd-promo__caption {
        text-align: right;
      }
      /* Promo parallax images — proper RTL mirror.
         The template places `.mxd-promo__images` (the containing flex box)
         as `position:absolute; top:0; right:0; width:46%; height:100%` so
         it occupies the RIGHT half of the inner in LTR. Inside it:
           - image-1 (astronaut) is anchored `right:6rem` → far-right of inner
           - image-2 (shape)     is anchored `left:6rem`  → middle of inner
         For a proper RTL mirror we flip the container to occupy the LEFT
         half (`right:auto; left:0`) AND flip each image's anchor side so
         their positions within the (now LEFT-half) container mirror as
         well, giving:
           - image-1 (astronaut) at far-LEFT of inner
           - image-2 (shape)     at the middle of inner */
      [dir="rtl"] .mxd-promo__images {
        right: auto;
        left: 0;
      }
      [dir="rtl"] .mxd-promo__images .promo-image-1 {
        right: auto;
        left: 6rem;
      }
      [dir="rtl"] .mxd-promo__images .promo-image-2 {
        left: auto;
        right: 0;
      }
      @media only screen and (min-width: 992px) {
        [dir="rtl"] .mxd-promo__images .promo-image-2 {
          right: 6rem;
        }
      }
      @media only screen and (min-width: 1600px) {
        [dir="rtl"] .mxd-promo__images .promo-image-1 {
          left: 9rem;
        }
      }

      /* --- 18. Manifest block (Who we are + description): Bootstrap col-5 title /
         col-7 content row auto-mirrors via direction:rtl. Just anchor text right. */
      [dir="rtl"] .mxd-block__name,
      [dir="rtl"] .mxd-block__manifest,
      [dir="rtl"] .mxd-block__content,
      [dir="rtl"] .mxd-manifest,
      [dir="rtl"] .mxd-manifest__controls {
        text-align: right;
      }
      [dir="rtl"] .mxd-manifest__controls {
        justify-content: flex-start;
      }

      /* --- 19. Mobile menu / main-menu accordion: text-align right and
         re-orient toggle arrow icon to the visual right of each link label. */
      [dir="rtl"] .main-menu__accordion,
      [dir="rtl"] .main-menu__item,
      [dir="rtl"] .main-menu__toggle,
      [dir="rtl"] .submenu,
      [dir="rtl"] .submenu__item {
        text-align: right;
      }
      [dir="rtl"] .main-menu__toggle {
        flex-direction: row-reverse;
        justify-content: flex-end;
      }

      /* --- 20. Tag chips (.tag) reset internal flex order so star/icon glyph
         (if present) appears at start of reading direction. */
      [dir="rtl"] .tag {
        direction: rtl;
      }

      /* --- 21. Button caption + icon order: most .btn-default elements have
         <span class="btn-caption">text</span><i class="ph-arrow-up-right"></i>
         In LTR icon sits to right of text. In RTL with default flex it moves
         to left of text - that's actually correct natural mirroring. We
         already flip the arrow direction via scaleX(-1) above so the icon
         keeps pointing "outward" in reading direction. */

      /* --- 22. Footer fullwidth SVG text (the giant "HAWIH" footer wordmark)
         renders correctly in both directions because it's an SVG text path. */

      /* RTL Font Support */
      [dir="rtl"] * {
        font-family: 'IBM Plex Sans Arabic', 'Segoe UI', 'Tahoma', 'Arial', sans-serif;
      }

      /* Show/hide content based on language */
      .lang-content {
        display: block;
      }

      [dir="rtl"] .lang-content.en {
        display: none;
      }

      [dir="rtl"] .lang-content.ar {
        display: block;
      }

      [dir="ltr"] .lang-content.ar {
        display: none;
      }

      [dir="ltr"] .lang-content.en {
        display: block;
      }

      /* Logo Theme Switching */
      .mxd-logo__dark {
        display: block;
      }
      
      .mxd-logo__light {
        display: none;
      }
      
      /* Light theme logo switching - using color-scheme attribute */
      :root[color-scheme="light"] .mxd-logo__dark {
        display: none !important;
      }
      
      :root[color-scheme="light"] .mxd-logo__light {
        display: block !important;
      }
      
      /* Alternative selectors for light mode */
      [data-theme="light"] .mxd-logo__dark,
      body.light-mode .mxd-logo__dark,
      html.light-mode .mxd-logo__dark {
        display: none;
      }
      
      [data-theme="light"] .mxd-logo__light,
      body.light-mode .mxd-logo__light,
      html.light-mode .mxd-logo__light {
        display: block;
      }

      /* Technology Logos Styling - Square Frames with Normal Colors */
      .mxd-partners-cards__inner {
        aspect-ratio: 1 / 1;
        display: flex;
        align-items: center;
        justify-content: center;
        padding: 2rem;
      }

      .mxd-partners-cards__logo {
        display: flex;
        align-items: center;
        justify-content: center;
        width: 100%;
        height: 100%;
      }

      .mxd-partners-cards__logo img {
        max-width: 100%;
        max-height: 100%;
        width: auto;
        height: auto;
        object-fit: contain;
        transition: transform 0.3s ease;
      }

      .mxd-partners-cards__inner:hover .mxd-partners-cards__logo img {
        transform: scale(1.1);
      }

      /* ============================================================
         Hawih owner review fixes (round 2)
         All RTL/layout overrides scoped to this block.
         ============================================================ */

      /* --- Fix 1: Header — proper RTL mirror for the burger and controls
         LTR layout (1440 vp):
           - `.mxd-header` is `position:absolute; left:6rem; right:9.6rem`
             (template sets `left` + width, leaving a ~136px gutter on the
             right where the burger lives).
           - logo on the LEFT (start of space-between), controls cluster
             on the RIGHT, then a 56-px burger in the right gutter.
         For a proper RTL mirror we need:
           - logo on the visual RIGHT  (already correct via space-between)
           - controls cluster on the visual LEFT (already correct)
           - burger on the visual LEFT, sitting in a LEFT gutter
         To create the left gutter we swap the header's `left/right`
         offsets so the header is anchored to the right edge instead, and
         we let `.mxd-nav__contain` use its natural RTL `flex-end` (which
         resolves to the LEFT edge) — putting the burger ~6rem from the
         left, mirroring the LTR position of ~6rem from the right.
         The previous fix forced `.mxd-nav__contain` to `direction:ltr`
         which kept the burger on the right next to the logo — wrong. */
      [dir="rtl"] .mxd-header {
        left: auto;
        right: 3rem;
      }
      @media only screen and (min-width: 768px) {
        [dir="rtl"] .mxd-header {
          right: 6rem;
        }
      }
      @media only screen and (min-width: 1600px) {
        [dir="rtl"] .mxd-header {
          right: 9rem;
        }
      }

      /* --- Fix 2: Hero title (.hero-01-title) is too dominant
         Template ships 120px; cut to ~80px peak so the
         "حِرفة عربيّة / هويات سعودية" stack fits more comfortably.
         Note: this template uses html { font-size: 10px } so 1rem ≈ 10px.
         Using vw so it scales down on narrower viewports. */
      .hero-01-title {
        font-size: clamp(4rem, 6vw, 8rem) !important;
        line-height: 1.1 !important;
      }
      html[lang="ar"] .hero-01-title,
      [dir="rtl"] .hero-01-title {
        line-height: 1.25 !important;
      }
      /* Title rows/items inherit the font-size from the parent only when
         not explicitly set — force them so the inner <em> chips shrink too. */
      .hero-01-title__row,
      .hero-01-title__item {
        font-size: inherit !important;
        line-height: inherit !important;
      }
      /* The inline image "title-item-image" sizes off font-size; shrink it
         proportionally so the row stays visually balanced. */
      .hero-01-title__item.title-item-image {
        height: 0.85em !important;
      }

      /* --- Fix 3: Stats card image-2 (iPhones) covers the "19+" text in RTL
         Original positioning: { left: 0; right: 334px; top: 0; bottom: -40px }
         — image pinned to LEFT side of card. In RTL `align-end` puts the
         counter on the LEFT too, so they collide. Mirror image-2 to the
         RIGHT side (so counter on left, image on right — matches the
         flip pattern already applied to image-3 and image-4). */
      [dir="rtl"] .mxd-stats-cards__image.mxd-stats-cards-image-2 {
        left: auto !important;
        right: 0 !important;
      }

      /* --- Fix 4: Service stack card titles — keep on one line and
         align cleanly with the description in RTL.
         Titles ship at 70px which forces 2 lines on every card except
         the first. Reduce to a clamp peaking at ~2.4rem (~38px) and
         lock them to a single line at desktop widths. */
      .mxd-services-stack__title h3 {
        font-size: clamp(2.8rem, 4vw, 5rem) !important;
        line-height: 1.15 !important;
      }
      [dir="rtl"] .mxd-services-stack__title,
      [dir="rtl"] .mxd-services-stack__title h3,
      [dir="rtl"] .mxd-services-stack__info,
      [dir="rtl"] .mxd-services-stack__info p {
        text-align: right !important;
      }
      @media (min-width: 1200px) {
        .mxd-services-stack__title h3 {
          white-space: nowrap;
        }
      }

      /* --- Fix 6: Sectors We Serve (mxd-awards-list) — hover-reveal arrow
         The template uses `translateX(-5.4rem)` on the icon and the title <p>
         to hide the arrow icon off the LEFT edge in LTR; on hover both reset
         to 0, sliding the icon in from the left while pushing the text right.
         In RTL the icon naturally sits at the visual RIGHT edge; we mirror
         the offset to `+5.4rem` so the icon is hidden off the RIGHT edge
         instead, and on hover slides leftward into view. */
      [dir="rtl"] .mxd-awards-list__icon,
      [dir="rtl"] .mxd-awards-list__title p {
        transform: translateX(5.4rem) !important;
      }
      [dir="rtl"] .mxd-awards-list__item:hover .mxd-awards-list__icon,
      [dir="rtl"] .mxd-awards-list__item:hover .mxd-awards-list__title p {
        transform: translateX(0) !important;
      }
      /* The arrow inside the icon is `ph ph-arrow-right`. In LTR it points
         rightward = "outgoing" reading-direction arrow. In RTL we need it
         to point leftward (reading-direction outgoing). */
      [dir="rtl"] .mxd-awards-list__icon .ph-arrow-right {
        transform: scaleX(-1);
      }

      /* --- Fix 5: Promo "حدّثنا عن مشروعك." alignment in RTL
         Keep the title block-level (icon flows on its own line above the
         caption, mirroring LTR), but force the whole content cluster
         right-aligned. The existing rule sets .mxd-promo__icon padding to
         left side; pair that with text-align:right on the wrapper so the
         icon ends up at the visual start (right) of the row. */
      [dir="rtl"] .mxd-promo__content,
      [dir="rtl"] .mxd-promo__title,
      [dir="rtl"] .mxd-promo__caption,
      [dir="rtl"] .mxd-promo__controls {
        text-align: right !important;
      }
      [dir="rtl"] .mxd-promo__controls {
        display: flex;
        justify-content: flex-start;
      }

      /* ============================================================
         Round 4 review fixes (May 2026)
         ============================================================ */

      /* --- Fix 1: Hero-08 title should center in AR, not right-align.
         The RTL pass set `.mxd-container { text-align: right }` globally,
         which leaks into hero-08 and makes each wrapped line of the H1
         hug the right edge — visually breaking the centered composition
         around the 3D sphere. Force center alignment on the hero-08
         headline cluster in RTL. */
      [dir="rtl"] .mxd-hero-08 .mxd-container,
      [dir="rtl"] .mxd-hero-08__headline,
      [dir="rtl"] .mxd-hero-08__headline .mxd-container,
      [dir="rtl"] .hero-08-headline__title,
      [dir="rtl"] .hero-08-headline__title h1 {
        text-align: center !important;
      }

      /* --- Fix 2: Hero-01 lead paragraph needs clear bottom margin.
         The paragraph "نحن هوية، استوديو سعودي للتصميم متخصّص..." sits
         too tight to the next dark video section. The descr lives in
         `.mxd-hero-01__bottom`, a flex row with a FIXED height (16rem /
         20rem), so adding margin to the descr itself does not push the
         next section down. Apply margin to the bottom block instead. */
      .mxd-hero-01__bottom {
        margin-bottom: 12rem !important;
      }
      .mxd-hero-01__data-descr {
        padding-bottom: 1rem !important;
      }
      @media (max-width: 768px) {
        .mxd-hero-01__bottom {
          margin-bottom: 6rem !important;
        }
      }

      /* --- Fix 3: Service-stack card text readability on dark / blue bgs.
         Cards with `.bg-accent` (cobalt) or `.bg-base-opp` (ink) have
         titles and descriptions inheriting a near-black color because of
         a generic `p span { color: var(--t-bright) }` rule that wins
         specificity over the parent's `t-opposite` (white) class.
         Force every text node inside accent/ink cards to render light. */
      .stack-item .mxd-services-stack__inner.bg-accent .mxd-services-stack__title h3,
      .stack-item .mxd-services-stack__inner.bg-accent .mxd-services-stack__title,
      .stack-item .mxd-services-stack__inner.bg-accent .mxd-services-stack__info,
      .stack-item .mxd-services-stack__inner.bg-accent .mxd-services-stack__info p,
      .stack-item .mxd-services-stack__inner.bg-accent .mxd-services-stack__info p span,
      .stack-item .mxd-services-stack__inner.bg-accent .mxd-services-stack__info .lang-string,
      .stack-item .mxd-services-stack__inner.bg-accent p,
      .stack-item .mxd-services-stack__inner.bg-accent p span,
      .stack-item .mxd-services-stack__inner.bg-accent p .lang-string,
      .stack-item .mxd-services-stack__inner.bg-accent h3,
      .stack-item .mxd-services-stack__inner.bg-accent h3 span,
      .stack-item .mxd-services-stack__inner.bg-accent h3 .lang-string,
      .stack-item .mxd-services-stack__inner.bg-base-opp .mxd-services-stack__title h3,
      .stack-item .mxd-services-stack__inner.bg-base-opp .mxd-services-stack__title,
      .stack-item .mxd-services-stack__inner.bg-base-opp .mxd-services-stack__info,
      .stack-item .mxd-services-stack__inner.bg-base-opp .mxd-services-stack__info p,
      .stack-item .mxd-services-stack__inner.bg-base-opp .mxd-services-stack__info p span,
      .stack-item .mxd-services-stack__inner.bg-base-opp .mxd-services-stack__info .lang-string,
      .stack-item .mxd-services-stack__inner.bg-base-opp p,
      .stack-item .mxd-services-stack__inner.bg-base-opp p span,
      .stack-item .mxd-services-stack__inner.bg-base-opp p .lang-string,
      .stack-item .mxd-services-stack__inner.bg-base-opp h3,
      .stack-item .mxd-services-stack__inner.bg-base-opp h3 span,
      .stack-item .mxd-services-stack__inner.bg-base-opp h3 .lang-string {
        color: #ffffff !important;
      }
      /* Chip / tag pills on accent / ink cards: ensure visible border + text */
      .stack-item .mxd-services-stack__inner.bg-accent .tag,
      .stack-item .mxd-services-stack__inner.bg-accent .tag span,
      .stack-item .mxd-services-stack__inner.bg-accent .tag .lang-string,
      .stack-item .mxd-services-stack__inner.bg-base-opp .tag,
      .stack-item .mxd-services-stack__inner.bg-base-opp .tag span,
      .stack-item .mxd-services-stack__inner.bg-base-opp .tag .lang-string {
        color: #ffffff !important;
        border-color: rgba(255, 255, 255, 0.6) !important;
      }

      /* --- Fix 4: Marquee image-text captions on cobalt panels.
         The two-line image marquee uses `.marquee__item.has-caption` for
         word panels like "Inspiring / ideas", "Real / craft", "From /
         Riyadh", "حِرفة / حقيقية". These render on a cobalt bg but the
         child `<span class="lang-string">` inherits the near-black ink
         color (via `p span` selector). Force the captions light. */
      .marquee__item.has-caption,
      .marquee__item.has-caption p,
      .marquee__item.has-caption p span,
      .marquee__item.has-caption p .lang-string,
      .marquee__item.has-caption .lang-string,
      .marquee__item.has-caption span {
        color: #ffffff !important;
      }

      /* --- Fix 5: Off-canvas hamburger menu text contrast.
         When `.hamburger__base` paints its dark backdrop (rgb(28,28,28))
         behind the slide-down menu, the promo captions and footer-data
         text read with near-black color (from `p span` ink) — totally
         unreadable. Force all caption + footer text to paper/white,
         and the muted-secondary text to a translucent white. */
      .mxd-menu__wrapper .menu-promo__caption,
      .mxd-menu__wrapper .mxd-menu__caption,
      .mxd-menu__wrapper .menu-promo__caption .lang-string,
      .mxd-menu__wrapper .mxd-menu__caption .lang-string,
      .mxd-menu__wrapper .menu-promo__caption span,
      .mxd-menu__wrapper .mxd-menu__caption span {
        color: rgba(255, 255, 255, 0.82) !important;
      }
      .mxd-menu__wrapper .mxd-menu__data,
      .mxd-menu__wrapper .mxd-menu__data p,
      .mxd-menu__wrapper .mxd-menu__data p span,
      .mxd-menu__wrapper .mxd-menu__data p .lang-string,
      .mxd-menu__wrapper .mxd-menu__data a,
      .mxd-menu__wrapper .mxd-menu__data a span,
      .mxd-menu__wrapper .mxd-menu__data a .lang-string,
      .mxd-menu__wrapper .mxd-menu__data i {
        color: rgba(255, 255, 255, 0.85) !important;
      }
      .mxd-menu__wrapper .mxd-menu__data a:hover,
      .mxd-menu__wrapper .mxd-menu__data a:hover span,
      .mxd-menu__wrapper .mxd-menu__data a:hover .lang-string {
        color: #ffffff !important;
      }

      /* Force hero loading-state elements to always be visible — the
         template's app.min.js animates them in via opacity transitions,
         but it errors out (missing .mxd-hero-08__tl-trigger and [data-speed]
         which we removed with the marquee chips + video) and leaves some
         items at opacity:0. This makes the hero always visible regardless
         of JS state, and prevents the "text sometimes visible sometimes not"
         flicker on reload + lang toggle. */
      .mxd-hero-08 .loading__item,
      .mxd-hero-08 .loading__fade,
      .mxd-hero-08 .loading-wrap,
      .mxd-hero-08__wrap.loading-wrap,
      .mxd-hero-08__center,
      .mxd-hero-08__bottom,
      .hero-08-headline__title,
      .mxd-hero__mark,
      .mxd-hero-08__descr {
        opacity: 1 !important;
        visibility: visible !important;
      }
      /* Lang-string spans inside loading items — same fix, since the
         language toggle re-writes textContent and can momentarily strip
         child structure. */
      .mxd-hero-08 .lang-string {
        opacity: 1 !important;
        visibility: visible !important;
      }

      /* Hero-08 title — caps out at 100px per spec (user-requested) */
      .hero-08-headline__title h1 {
        font-size: clamp(2.5rem, 7vw, 100px) !important;
        line-height: 1.05 !important;
        font-weight: 500 !important;
      }

      /* WebGL divider — force WHITE text on every descendant regardless of
         theme. In light mode the page's ink color cascades through to
         .lang-string spans, making text render black on the cobalt frame. */
      .uc-divider-content,
      .uc-divider-content *,
      .uc-divider-content p,
      .uc-divider-content span,
      .uc-divider-content li,
      .uc-divider-content .lang-string {
        color: #fff !important;
      }
      .uc-divider-content .uc-divider-descr,
      .uc-divider-content .uc-divider-descr .lang-string {
        color: rgba(255, 255, 255, 0.78) !important;
      }
      /* The eyebrow gets a slightly softer white for visual hierarchy */
      .uc-divider-content > div > div:first-child span:last-child,
      .uc-divider-content > div > div:first-child span:last-child .lang-string {
        color: rgba(255, 255, 255, 0.85) !important;
      }

      /* Trim the empty space BELOW the divider section — the template's
         `padding-hero-08 padding-pre-manifest` classes add a lot of vertical
         padding above and below; we don't need the bottom padding since we
         removed the hero's bottom block. */
      .mxd-section.padding-hero-08.padding-pre-manifest {
        padding-top: 4rem !important;
        padding-bottom: 4rem !important;
      }
      @media (max-width: 768px) {
        .mxd-section.padding-hero-08.padding-pre-manifest {
          padding-top: 2rem !important;
          padding-bottom: 2rem !important;
        }
      }

      /* Reduce the height of the WebGL frame — content only needs ~300px,
         not 760px. The width stays at template default. We override both
         the inline min-height AND the GSAP-injected height that the
         template's parallax script writes onto the divider wrappers. */
      .mxd-divider,
      .mxd-divider__image,
      .uc-divider-content {
        min-height: 0 !important;
        max-height: none !important;
        height: auto !important;
      }
      /* In case the parallax-img wrapper script injects an inline height
         on a generated child element, force its height too. */
      .mxd-divider > div,
      .mxd-divider__image > div:not(#webgl-container):not(.uc-divider-content) {
        height: auto !important;
        min-height: 0 !important;
      }
      /* WebGL canvas mounts absolutely — its parent .mxd-divider__image
         needs to be positioned and have the frame's actual content height. */
      .uc-divider-content {
        padding: 56px 80px !important;
      }
      @media (max-width: 900px) {
        .uc-divider-content {
          flex-direction: column !important;
          padding: 40px 32px !important;
          gap: 32px !important;
        }
      }

      /* "Who we are / من نحن" heading on the manifest block — was too
         small at template default. Bump up to match other section titles. */
      .mxd-block__name.name-manifest h2.reveal-type,
      .mxd-block__name.name-manifest h2 {
        font-size: clamp(2.5rem, 5vw, 5.5rem) !important;
        line-height: 1.1 !important;
        font-weight: 500 !important;
      }
      html[lang="ar"] .mxd-block__name.name-manifest h2 {
        line-height: 1.25 !important;
      }
      .hero-08-headline__title h1 .lang-string {
        display: inline !important;
        font-size: inherit !important;
        line-height: inherit !important;
      }
      html[lang="ar"] .hero-08-headline__title h1 {
        line-height: 1.2 !important;
      }
      /* Keep the eyebrow + descr balanced against the smaller h1 */
      .mxd-hero-08__descr p {
        font-size: clamp(0.95rem, 1.2vw, 1.15rem) !important;
        line-height: 1.55 !important;
      }
      .mxd-hero__mark .mark-text {
        font-size: 0.85rem !important;
        letter-spacing: 0.02em;
      }
