/* ProAxis Preview 11 — Arabic editorial type + Earth atmosphere
   Overrides only presentation. Existing globe assets, content, translations,
   business flows, light/dark theme switching and accessibility remain intact. */

:root{
  --pa-hero-navy:#061626;
  --pa-hero-ivory:#f8f4ec;
}

/* 1. Arabic gets a proportioned editorial typographic system of its own.
   Original EN-specific 14ch/21ch and text-wrap:balance caused 4-5 short lines.
   Favor readable whole phrases, measured widths and comfortable baselines. */
html[lang="ar"] body.site-root,
html[lang="ar"] body.sol-landing{
  font-family:"ProAxis Alexandria",Tahoma,"Segoe UI",sans-serif;
  font-size:16px;
  line-height:1.75;
}
html[lang="ar"] body.site-root :is(h1,h2,h3,h4,h5,h6),
html[lang="ar"] body.sol-landing :is(h1,h2,h3,h4,h5,h6){
  font-family:"ProAxis Alexandria",Tahoma,"Segoe UI",sans-serif;
  letter-spacing:0!important;
  font-weight:620;
  text-wrap:pretty;
  overflow-wrap:normal;
  word-break:normal;
}
html[lang="ar"] body.site-root :is(.section-head,.morph-heading){
  width:100%;
  max-width:min(100%,1000px);
  min-width:0;
}
html[lang="ar"] body.site-root .section-head .section-title,
html[lang="ar"] body.site-root .morph-heading .section-title,
html[lang="ar"] body.site-root .capabilities .section-title{
  max-width:min(100%,1000px)!important;
  max-inline-size:none!important;
  width:auto;
  margin-inline:auto;
  font-size:clamp(1.85rem,3vw,3.05rem);
  line-height:1.55!important;
  font-weight:630;
  text-wrap:pretty!important;
}
html[lang="ar"] body.site-root .section-head .section-lead,
html[lang="ar"] body.site-root .morph-heading .section-lead{
  max-width:min(100%,860px)!important;
  margin-inline:auto;
  font-size:clamp(.96rem,1.17vw,1.08rem);
  line-height:1.92;
}
html[lang="ar"] body.site-root .section-head .eyebrow{
  font-weight:600;
  font-size:.83rem;
  line-height:1.85;
  letter-spacing:0!important;
}
html[lang="ar"] body.site-root .section-head.left .section-title,
html[lang="ar"] body.site-root .section-head.left .section-lead{
  margin-inline:0;
}

/* Homepage hero — keep text clear of the Earth while giving Arabic natural width.
   English stays unchanged. */
html[lang="ar"] body.site-root .hero.hero-cosmic .hero-grid{
  justify-content:flex-start;
  padding-inline-start:clamp(.8rem,2vw,1.8rem);
  padding-inline-end:clamp(.7rem,1.5vw,1.4rem);
}
html[lang="ar"] body.site-root .hero.hero-cosmic .hero-content{
  flex:0 0 auto;
  width:min(62%,760px)!important;
  max-width:min(62%,760px)!important;
  min-width:0;
}
html[lang="ar"] body.site-root .hero.hero-cosmic .hero-title{
  max-inline-size:none!important;
  max-width:100%!important;
  width:100%;
  font-size:clamp(2.25rem,3.45vw,3.55rem)!important;
  line-height:1.49!important;
  font-weight:640!important;
  letter-spacing:0!important;
  text-wrap:pretty!important;
  word-break:normal;
  overflow-wrap:normal;
  margin:clamp(.75rem,1.5vw,1.1rem) 0 1.2rem!important;
}
html[lang="ar"] body.site-root .hero.hero-cosmic .hero-desc{
  max-width:56ch!important;
  font-size:clamp(.98rem,1.2vw,1.08rem)!important;
  line-height:1.96!important;
}
html[lang="ar"] body.site-root .hero.hero-cosmic .hero-content .eyebrow{
  font-size:.8rem;
  font-weight:630!important;
  line-height:1.8;
  letter-spacing:0!important;
}
html[lang="ar"] body.site-root .hero.hero-cosmic .hero-cta .btn{
  font-weight:660;
  font-size:.95rem;
  line-height:1.6;
}
html[lang="ar"] body.site-root .sol-gateway-head h2,
html[lang="ar"] body.site-root .sol-gateway-head .sol-gateway-title{
  max-width:min(100%,870px)!important;
  font-size:clamp(1.8rem,2.8vw,2.9rem);
  line-height:1.55!important;
  font-weight:630;
  text-wrap:pretty!important;
}
html[lang="ar"] body.site-root .about h2,
html[lang="ar"] body.site-root .industries h2{
  text-wrap:pretty!important;
}
html[lang="ar"] body.sol-landing .sol-category-intro h1{
  max-width:100%!important;
  max-inline-size:none!important;
  font-size:clamp(1.95rem,3.25vw,3.15rem)!important;
  font-weight:630!important;
  line-height:1.57!important;
  text-wrap:pretty!important;
}
html[lang="ar"] body.sol-landing .sol-category-intro .sol-intro-lead{
  line-height:1.96!important;
  max-width:75ch!important;
}
html[lang="ar"] body.sol-landing :is(.v8-method-heading,.v9-method-heading,.v10-sector-intro h2,.v10-governance-heading h2){
  max-width:100%;
  line-height:1.55!important;
  font-weight:630!important;
  text-wrap:pretty!important;
}
html[lang="ar"] body.sol-landing .ux-service-group-heading h3{
  font-weight:630!important;
  line-height:1.6!important;
}
html[lang="ar"] body.sol-landing .ux-service-copy h4{
  line-height:1.75!important;
  font-weight:620!important;
}

/* 2. Earth photograph fades into the actual site palette in both themes.
   Centered masks are applied to the image plane, not to the hero text.
   The more compact radial falloff removes the rectangular source boundary. */
.hero.hero-cosmic,
.hero.hero-cosmic[data-theme="dark"]{
  background:var(--pa-hero-navy)!important;
}
.hero.hero-cosmic .hero-reference-art{
  background:transparent;
  -webkit-mask-image:radial-gradient(
    ellipse 35% 92% at 70% 49%,
    #000 0%,#000 45%,
    rgba(0,0,0,.93) 60%,
    rgba(0,0,0,.44) 78%,
    transparent 99%);
  mask-image:radial-gradient(
    ellipse 35% 92% at 70% 49%,
    #000 0%,#000 45%,
    rgba(0,0,0,.93) 60%,
    rgba(0,0,0,.44) 78%,
    transparent 99%);
}
.hero.hero-cosmic .hero-reference-shade{
  background:
    linear-gradient(0deg,#061626 0%,rgba(6,22,38,.84) 5%,rgba(6,22,38,.19) 24%,transparent 43%),
    linear-gradient(180deg,rgba(6,22,38,.37) 0%,transparent 17%),
    linear-gradient(90deg,#061626 0%,rgba(6,22,38,.89) 20%,rgba(6,22,38,.38) 45%,transparent 68%)!important;
}
html[dir="rtl"] .hero.hero-cosmic .hero-reference-art{
  -webkit-mask-image:radial-gradient(
    ellipse 35% 92% at 30% 49%,
    #000 0%,#000 45%,rgba(0,0,0,.93) 60%,
    rgba(0,0,0,.44) 78%,transparent 99%);
  mask-image:radial-gradient(
    ellipse 35% 92% at 30% 49%,
    #000 0%,#000 45%,rgba(0,0,0,.93) 60%,
    rgba(0,0,0,.44) 78%,transparent 99%);
}
html[dir="rtl"] .hero.hero-cosmic .hero-reference-shade{
  background:
    linear-gradient(0deg,#061626 0%,rgba(6,22,38,.84) 5%,rgba(6,22,38,.19) 24%,transparent 43%),
    linear-gradient(180deg,rgba(6,22,38,.37) 0%,transparent 17%),
    linear-gradient(270deg,#061626 0%,rgba(6,22,38,.89) 20%,rgba(6,22,38,.38) 45%,transparent 68%)!important;
}
html[data-theme="light"] .hero.hero-cosmic{
  background:var(--pa-hero-ivory)!important;
}
html[data-theme="light"] .hero.hero-cosmic .hero-reference-shade{
  background:
    linear-gradient(0deg,#f8f4ec 0%,rgba(248,244,236,.84) 6%,rgba(248,244,236,.24) 25%,transparent 43%),
    linear-gradient(180deg,rgba(248,244,236,.45) 0%,transparent 17%),
    linear-gradient(90deg,#f8f4ec 0%,rgba(248,244,236,.93) 21%,rgba(248,244,236,.35) 46%,transparent 69%)!important;
}
html[dir="rtl"][data-theme="light"] .hero.hero-cosmic .hero-reference-shade{
  background:
    linear-gradient(0deg,#f8f4ec 0%,rgba(248,244,236,.84) 6%,rgba(248,244,236,.24) 25%,transparent 43%),
    linear-gradient(180deg,rgba(248,244,236,.45) 0%,transparent 17%),
    linear-gradient(270deg,#f8f4ec 0%,rgba(248,244,236,.93) 21%,rgba(248,244,236,.35) 46%,transparent 69%)!important;
}

/* 3. Responsive: content leads, globe supports; no desktop-sized forced stacks. */
@media(max-width:1060px){
  html[lang="ar"] body.site-root .hero.hero-cosmic .hero-content{
    width:min(64%,720px)!important;
    max-width:min(64%,720px)!important;
  }
  html[lang="ar"] body.site-root .hero.hero-cosmic .hero-title{
    font-size:clamp(2.06rem,3.65vw,3rem)!important;
  }
  html[lang="ar"] body.site-root .section-head .section-title{
    font-size:clamp(1.85rem,3.25vw,2.7rem);
  }
}
@media(max-width:760px){
  html[lang="ar"] body.site-root .hero.hero-cosmic .hero-content{
    width:100%!important;
    max-width:min(100%,640px)!important;
  }
  html[lang="ar"] body.site-root .hero.hero-cosmic .hero-grid{
    padding-block:clamp(4.75rem,12vw,6.5rem) 2.7rem;
    padding-inline:clamp(1rem,4vw,1.5rem);
  }
  html[lang="ar"] body.site-root .hero.hero-cosmic .hero-title{
    font-size:clamp(1.88rem,6vw,2.7rem)!important;
    line-height:1.55!important;
  }
  html[lang="ar"] body.site-root .section-head .section-title,
  html[lang="ar"] body.site-root .morph-heading .section-title{
    font-size:clamp(1.7rem,5vw,2.4rem);
    line-height:1.59!important;
  }
  html[lang="ar"] body.site-root .section-head .section-lead{font-size:.96rem;}
  .hero.hero-cosmic .hero-reference-art,
  html[dir="rtl"] .hero.hero-cosmic .hero-reference-art{
    opacity:.58;
    -webkit-mask-image:linear-gradient(180deg,rgba(0,0,0,.25) 0%,#000 22%,rgba(0,0,0,.55) 63%,transparent 97%);
    mask-image:linear-gradient(180deg,rgba(0,0,0,.25) 0%,#000 22%,rgba(0,0,0,.55) 63%,transparent 97%);
  }
  .hero.hero-cosmic .hero-reference-shade{
    background:
      linear-gradient(0deg,#061626,rgba(6,22,38,.90) 27%,rgba(6,22,38,.60) 65%,rgba(6,22,38,.72))!important;
  }
  html[data-theme="light"] .hero.hero-cosmic .hero-reference-shade{
    background:
      linear-gradient(0deg,#f8f4ec,rgba(248,244,236,.92) 28%,rgba(248,244,236,.65) 66%,rgba(248,244,236,.80))!important;
  }
  html[dir="rtl"] .hero.hero-cosmic .hero-reference-shade{
    background:linear-gradient(0deg,#061626,rgba(6,22,38,.91) 28%,rgba(6,22,38,.62) 67%,rgba(6,22,38,.80))!important;
  }
  html[dir="rtl"][data-theme="light"] .hero.hero-cosmic .hero-reference-shade{
    background:linear-gradient(0deg,#f8f4ec,rgba(248,244,236,.94) 28%,rgba(248,244,236,.67) 67%,rgba(248,244,236,.82))!important;
  }
}
@media(max-width:420px){
  html[lang="ar"] body.site-root .hero.hero-cosmic .hero-title{
    font-size:clamp(1.78rem,7.2vw,2.2rem)!important;
    line-height:1.58!important;
  }
  html[lang="ar"] body.site-root .hero.hero-cosmic .hero-desc{
    font-size:.94rem!important;
    line-height:1.9!important;
  }
  html[lang="ar"] body.site-root .section-head .section-title{
    font-size:clamp(1.62rem,7vw,2.15rem)!important;
  }
}
