/* Arabic is an independent reading layout. Artwork and video keep their original geometry. */
@font-face{
  font-family:'Noto Sans Arabic';
  font-style:normal;
  font-weight:100 900;
  font-display:swap;
  src:url('assets/NotoSansArabic-Arabic.woff2') format('woff2');
  unicode-range:U+0600-06FF,U+0750-077F,U+0870-0891,U+0897-08E1,U+08E3-08FF,U+200C-200E,U+2010-2011,U+204F,U+2E41,U+FB50-FDFF,U+FE70-FE74,U+FE76-FEFC,U+102E0-102FB,U+10E60-10E7E,U+10EC2-10EC7,U+10EC9-10EEE,U+10EF0-10EFF,U+1EE00-1EEFF;
}
@font-face{
  font-family:'Noto Sans Arabic';
  font-style:normal;
  font-weight:100 900;
  font-display:swap;
  src:url('assets/NotoSansArabic-Latin.woff2') format('woff2');
  unicode-range:U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD;
}

body.locale-ar{
  --font:'Noto Sans Arabic',Inter,'Datadriven Web Sans',Tahoma,sans-serif;
  --type-body:16px;
  --type-compact:15px;
  --type-label:14px;
  --type-meta:12px;
  --type-action:14px;
  --type-chapter:15px;
  font-family:var(--font);
  direction:rtl;
  text-align:start;
  word-break:normal;
  overflow-wrap:break-word;
  letter-spacing:0;
  line-height:1.9;
}
/* Arabic joining needs natural tracking and sufficient room for ascenders and dots. */
body.type-system.locale-ar :is(h1,h2,h3,h4,h5,p,a,button,summary,dt,dd,li,span,time,label,input,textarea){letter-spacing:0}
body.type-system.locale-ar :is(.subsection-title,.item-title,.vision h2,.contact h2,.research-feature-title,.research-leadership dd>strong){line-height:1.65}
body.type-system.locale-ar :is(.hero-description,.product-copy>p,.body-copy,.research-record>p:not(.small-heading),.principle-body p,.team-principles dd,.vision>p:not(.kicker),.philosophy,.project-description){line-height:1.95}
body.type-system.locale-ar :is(.company-statement,.research-feature-title){font-weight:550;line-height:1.65}
body.type-system.locale-ar :is(.text-link,.button,.contact-button,.nav,.nav-main,.nav-utility,.menu-toggle,.dialog-top h2,.dialog-close){line-height:1.7}
body.type-system.locale-ar :is(figcaption,.metric-note,.source-links,.research-meta,.case-kicker,.case-kicker>span,.footer-company p,.footer-address,.footer-links,.footer-bottom,.dialog-caption){line-height:1.9}
.locale-ar :is(.section-heading,.product-grid,.institution-area,.data-area,.company-row,.credentials,.research-layout,.research-facts,.footer-top)>*{min-width:0}
.locale-ar :is(bdi,[dir='ltr'],.ltr-inline){unicode-bidi:isolate}
.locale-ar .ltr-inline{display:inline-block;direction:ltr}
body.type-system.locale-ar .count-up{direction:ltr;unicode-bidi:isolate;font-family:Outfit,Inter,sans-serif;letter-spacing:-.035em}
body.type-system.locale-ar .count-up>span{letter-spacing:inherit}
.locale-ar :is(.contact-email-address,.metric-interval){direction:ltr;unicode-bidi:isolate;display:inline-block}

/* RTL flex and grid follow document order from the right without mirroring assets. */
.locale-ar .skip{left:auto;right:20px}
.locale-ar .nav-main a,.locale-ar .nav-contact{white-space:nowrap}
.locale-ar .nav-contact>span{margin-left:0;margin-inline-start:14px}
.locale-ar .language-options{right:auto;left:0;min-width:150px}
.locale-ar .language-option{font-family:var(--font)}
.locale-ar .language-option [lang='ko'],.locale-ar .language-option [lang='ja']{font-family:'Datadriven Web Sans',sans-serif}
.locale-ar .language-option [lang='en']{font-family:Inter,sans-serif}

body.type-system.locale-ar .hero h1{font-size:clamp(42px,4.35vw,63px);line-height:1.52;letter-spacing:0;font-weight:600}
body.type-system.locale-ar .hero h1>span{letter-spacing:0}
body.type-system.locale-ar .hero-vision{font-size:20px;line-height:1.85;font-weight:500;max-width:760px}
.locale-ar .hero-context{max-width:770px}
.locale-ar .hero-context .hero-description{max-width:690px}
.locale-ar .hero-bottom{gap:42px}
.locale-ar .hero-actions{min-width:180px;gap:24px}
.locale-ar .hero-actions .button{width:180px;gap:18px}
.locale-ar .hero-motion-toggle{right:auto;left:max(20px,calc((100% - 1200px)/2))}

.locale-ar .workflow{gap:8px 10px;line-height:1.9}
.locale-ar .workflow li:not(:last-child)::after{content:'←';margin-left:0;margin-inline-start:10px}
.locale-ar .product-copy>p{max-width:none}
.locale-ar .product-scale{grid-template-columns:170px minmax(0,1fr) minmax(0,1fr) minmax(0,1.35fr)}
.locale-ar .scale-number>strong{display:inline-flex;align-items:baseline;gap:5px;max-width:100%}
.locale-ar .scale-number>strong>.scale-unit{margin-left:0;white-space:normal;line-height:1.6}
.locale-ar .scale-number>p>span{margin-left:0;margin-inline-start:5px}
.locale-ar .image-zoom{text-align:start}
.locale-ar .zoom-icon{right:auto;left:10px}
.locale-ar .map-zoom .zoom-icon{right:auto;left:6px}
.locale-ar .case-kicker{display:block}
.locale-ar .case-kicker>span{display:block;margin-top:4px}
body.type-system.locale-ar .institution-case h4{font-size:27px;line-height:1.7}
.locale-ar .case-metrics dt{min-height:28px}
body.type-system.locale-ar .institution-case .case-metrics small{line-height:1.7}
.locale-ar .supply-list>div{grid-template-columns:minmax(100px,.85fr) minmax(0,1.15fr)}
body.type-system.locale-ar .project-index li{grid-template-columns:108px minmax(0,1fr);gap:20px}
.locale-ar .project-result{text-align:start}
.locale-ar .grading-range strong{white-space:normal}
.locale-ar .research-fact-value{flex-wrap:wrap;row-gap:0}
.locale-ar .research-fact-value>small{line-height:1.7}
.locale-ar .research-meta>span:first-child{font-family:var(--font)}
.locale-ar .proof-layout>.grading-proof{padding-right:0;padding-left:var(--proof-gutter)}
.locale-ar .proof-layout>.patent-proof{border-left:0;border-right:1px solid #cad5e2;padding-left:0;padding-right:calc(var(--proof-gutter) - 1px)}
.locale-ar .patent-row-title>a{display:inline-flex;align-items:baseline;gap:6px;max-width:100%}
.locale-ar .patent-row-title>a>span{margin-left:0}
.locale-ar .research-patents strong{margin-left:0;margin-inline-start:7px}
.locale-ar .company-history{--history-row-padding:17px}
.locale-ar .company-history .history li{min-height:104px;align-items:start}
.locale-ar .company-history .history time{direction:ltr;unicode-bidi:isolate;text-align:start}
.locale-ar .company .principle-body{margin-left:0;margin-right:0}
.locale-ar .footer-company{flex:0 1 360px}
.locale-ar .footer-address{flex:0 1 620px;min-width:0}
.locale-ar .footer-address>p{display:grid;grid-template-columns:115px minmax(0,1fr);gap:12px}
.locale-ar .footer-address>p>span{min-width:0}
.locale-ar .contact-button{width:192px;gap:12px}

/* Directional action cues move with the reading flow. The HTML supplies ← / ↖. */
.locale-ar .text-link:hover>span:last-child,.locale-ar .button:hover>span:last-child,.locale-ar .nav-contact:hover>span,.locale-ar .contact-button:hover>span{transform:translate(-2px,-2px)}
.locale-ar .text-link[href^='#']:hover>span:last-child,.locale-ar .hero-actions .button[href^='#']:hover>span:last-child{transform:translateY(2px)}
.locale-ar .hero-actions .button[target='_blank']:hover>span:last-child{transform:translate(-2px,-2px)}
.locale-ar [data-contact-form]:hover>span:last-child,.locale-ar .project-result:hover>span{transform:translateX(-2px)}

/* Dialogs retain native RTL order; Latin input values are isolated and editable LTR. */
.locale-ar :is(.inquiry-dialog,.dialog-top,.dialog-caption,.dialog-details){text-align:start}
.locale-ar .inquiry-dialog{font-family:var(--font);line-height:1.8}
.locale-ar .inquiry-eyebrow{letter-spacing:0!important;font-size:13px;line-height:1.8}
body.type-system.locale-ar .inquiry-dialog :is(#inquiry-title,#inquiry-success-title){line-height:1.6;letter-spacing:0}
.locale-ar .inquiry-close-icon{margin:-8px 0 0 -10px}
.locale-ar .inquiry-field :is(input:not([type='hidden']),textarea){line-height:1.7}
.locale-ar .inquiry-field :is(input[type='email'],input[type='url']){direction:ltr;text-align:left;unicode-bidi:plaintext}
.locale-ar .inquiry-field #inquiry-country{padding-right:12px;padding-left:44px}
.locale-ar .country-selected-flag{left:auto;right:12px}
.locale-ar .country-selected-flag:not([hidden])~#inquiry-country{padding-left:44px;padding-right:42px}
.locale-ar .country-toggle{right:auto;left:1px}
.locale-ar #inquiry-status{border-left:0;border-right:2px solid #a83737}
.locale-ar .inquiry-form-pending #inquiry-status{border-right-color:var(--blue)}
.locale-ar .inquiry-field>label{line-height:1.8}
.locale-ar .inquiry-consent{line-height:1.9}
.locale-ar .inquiry-optional{white-space:normal}
.locale-ar .dialog-image-toggle{text-align:start}

@media(min-width:901px){
  .locale-ar .proof-layout .subsection-title{min-height:3.3em}
}
@media(max-width:1190px){
  .locale-ar .header-inner{gap:24px}
  .locale-ar .nav{gap:26px}
  .locale-ar .nav-main{gap:22px}
  .locale-ar .nav-utility{gap:18px}
  .locale-ar .hero-actions{gap:10px}
  .locale-ar .product-scale{grid-template-columns:130px minmax(0,1fr) minmax(0,1fr) minmax(0,1.3fr)}
}
@media(max-width:900px){
  .locale-ar .language-options{min-width:0}
  body.type-system.locale-ar .hero h1{font-size:clamp(38px,5.4vw,50px)}
  body.type-system.locale-ar .hero-vision{font-size:18px}
  .locale-ar .hero-bottom{gap:30px}
  .locale-ar .hero-actions{min-width:170px}
  .locale-ar .hero-actions .button{width:170px}
  .locale-ar .product-scale{grid-template-columns:repeat(2,minmax(0,1fr))}
  .locale-ar .proof-layout>.grading-proof{padding-left:0}
  .locale-ar .proof-layout>.patent-proof{border-right:0;padding-right:0}
  .locale-ar .footer-company,.locale-ar .footer-address{flex-basis:auto}
}
@media(max-width:600px){
  body.locale-ar{--type-body:15px;--type-compact:14px;--type-label:13px;--type-meta:12px;--type-action:14px;--type-chapter:14px;--type-content:25px}
  body.type-system.locale-ar .hero h1{font-size:clamp(29px,8.4vw,42px);line-height:1.6}
  body.type-system.locale-ar .hero-vision{font-size:17px;max-width:none;line-height:1.85}
  .locale-ar .hero-actions{min-width:0;gap:20px}
  .locale-ar .hero-actions .button{width:100%;gap:8px;white-space:normal}
  .locale-ar .hero-motion-toggle{left:18px;right:auto}
  .locale-ar .zoom-icon{left:7px;right:auto}
  body.type-system.locale-ar .institution-case h4{font-size:24px}
  .locale-ar .institution-case{padding:24px}
  .locale-ar .case-metrics dt{min-height:0}
  .locale-ar .supply-list>div{grid-template-columns:minmax(0,1fr);gap:4px}
  body.type-system.locale-ar .project-index li{grid-template-columns:80px minmax(0,1fr);gap:13px}
  .locale-ar .company-history{--history-row-padding:15px}
  .locale-ar .company-history .history li{min-height:0}
  .locale-ar .footer-address>p{display:block}
  .locale-ar .footer-address>p>span{display:block;margin-bottom:4px}
  .locale-ar .contact-actions{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;width:100%}
  .locale-ar .contact-button{width:100%;min-width:0;white-space:normal;gap:8px}
  .locale-ar .inquiry-header{padding:20px;gap:12px}
  .locale-ar .inquiry-body{padding:20px 20px 24px}
  body.type-system.locale-ar .inquiry-dialog #inquiry-title{font-size:26px}
  .locale-ar .inquiry-close-icon{margin:-5px 0 0 -8px}
}
@media(max-width:360px){
  .locale-ar .contact-actions{grid-template-columns:minmax(0,1fr)}
  .locale-ar .hero-actions{gap:8px}
  .locale-ar .scale-number>strong{flex-wrap:wrap;column-gap:5px;row-gap:0}
}
@media(prefers-reduced-motion:reduce){
  .locale-ar .text-link:hover>span:last-child,.locale-ar .button:hover>span:last-child,.locale-ar .nav-contact:hover>span,.locale-ar .contact-button:hover>span,.locale-ar .project-result:hover>span{transform:none}
}
