/* Arabic needs connected letters, no Latin tracking, and room between lines. */
[dir="rtl"]{
  --font:Tajawal,Manrope,system-ui,sans-serif;
  --display:Tajawal,system-ui,sans-serif;
}
[dir="rtl"] p,
[dir="rtl"] li,
[dir="rtl"] .lede,
[dir="rtl"] .service-row em,
[dir="rtl"] .how-grid p,
[dir="rtl"] .project-meta p{
  font-size:1.08rem;
  line-height:1.95;
}
[dir="rtl"] .filter{
  font-size:1rem;
  line-height:1.45;
}
[dir="rtl"] h1,
[dir="rtl"] h2,
[dir="rtl"] h3,
[dir="rtl"] .display,
[dir="rtl"] .font-display,
[dir="rtl"] .service-row strong,
[dir="rtl"] .menu-panel>a,
[dir="rtl"] .marquee-track span{
  letter-spacing:0;
  line-height:1.45;
}
[dir="rtl"] .section h2,
[dir="rtl"] .surface-light h2,
[dir="rtl"] .surface-dark h2,
[dir="rtl"] .work-head h2,
[dir="rtl"] .sticky-title h2,
[dir="rtl"] .about-band h2,
[dir="rtl"] .service h2{
  font-size:clamp(1.7rem,3.4vw,2.55rem);
  line-height:1.45;
}
[dir="rtl"] .page-hero h1{
  font-size:clamp(2rem,5vw,3.6rem);
  line-height:1.35;
}
[dir="rtl"] .cta h2{
  font-size:clamp(2rem,5vw,3.5rem);
  line-height:1.35;
}
[dir="rtl"] .hero h1 .sub{
  font-size:clamp(1.45rem,3.2vw,2.05rem);
  line-height:1.4;
}
[dir="rtl"] .project-card h3{
  font-size:clamp(1.35rem,2.2vw,1.75rem);
  line-height:1.4;
}
[dir="rtl"] .service-row strong{
  font-size:clamp(1.15rem,1.7vw,1.45rem);
}
[dir="rtl"] .how-grid h3,
[dir="rtl"] .process h3{
  font-size:1.2rem;
}
[dir="rtl"] .menu-panel>a{
  font-size:1.15rem;
}
[dir="rtl"] .marquee-track span{
  font-size:clamp(1.05rem,1.5vw,1.4rem);
}
[dir="rtl"] .eyebrow,
[dir="rtl"] .meta,
[dir="rtl"] .help strong,
[dir="rtl"] .tiny.up{
  letter-spacing:0;
  text-transform:none;
}
[dir="rtl"] .sticky-title h2,
[dir="rtl"] .cta h2{
  max-width:none;
}
[dir="rtl"] #main h1,
[dir="rtl"] #main h2,
[dir="rtl"] #main h3{
  overflow-wrap:normal;
  word-break:normal;
}

/* Compact layouts retain the desktop art direction without competing with content. */
@media(max-width:899px){
 html,body{max-width:100%;overflow-x:clip}
 #main{min-width:0}
 #main h1,#main h2,#main h3{overflow-wrap:break-word}
 [dir="rtl"] #main h1,[dir="rtl"] #main h2,[dir="rtl"] #main h3{overflow-wrap:normal;word-break:normal}
 .scene-hero-copy{transform:none!important}
 .scene-service{transform:none!important}
 .scene-screen{transform:none!important;will-change:auto;box-shadow:0 10px 22px #42200e15!important}
 .scene-preview:after{opacity:.1!important}
 .scene-process li{transform:none!important}
 .scene-workstation,[dir=rtl] .scene-workstation{position:relative;inset:auto;width:250px;height:160px;margin:30px auto 0;perspective:850px;z-index:1}
 .workstation-scale{transform:scale(.52);transform-origin:0 0;margin-left:26px;top:10px}
 .scene-work-section>div:not(.scene-workstation){padding-top:24px}
 .site-header{position:sticky;top:0}
 .site-header:has(.menu-btn[aria-expanded=true]){z-index:40}
 #mobile-menu.is-open{
  position:fixed;
  top:5rem;
  left:0;
  right:0;
  bottom:0;
  z-index:39;
  display:grid!important;
  align-content:start;
  width:100%;
  max-width:none;
  height:auto;
  margin:0;
  background:#170f0c!important;
  opacity:1!important;
  animation:none!important;
  isolation:isolate;
  overscroll-behavior:contain;
  overflow:auto;
  padding-bottom:max(28px,env(safe-area-inset-bottom));
 }
 #mobile-menu.is-open>a{
  font-size:clamp(26px,7.7vw,36px)!important;
  line-height:1.35!important;
  padding-block:18px!important;
  min-height:64px;
  display:flex;
  align-items:center;
 }
 #mobile-menu.is-open>.menu-tools{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:12px;
  margin-top:auto;
  padding-top:12px;
 }
 body:has(.menu-btn[aria-expanded=true]) #aevum-page-walker,
 body:has(.menu-btn[aria-expanded=true]) #aevum-logo-word-drips{visibility:hidden!important}
 #aevum-page-walker{transition:opacity .18s}
}
@media(max-width:639px){
 [dir="rtl"] .section h2,
 [dir="rtl"] .surface-light h2,
 [dir="rtl"] .surface-dark h2,
 [dir="rtl"] .work-head h2,
 [dir="rtl"] .sticky-title h2,
 [dir="rtl"] .service h2{
  font-size:clamp(1.45rem,5.6vw,1.85rem);
  line-height:1.45;
 }
 [dir="rtl"] .service-row strong{font-size:clamp(1.05rem,4.6vw,1.3rem);line-height:1.45}
 [dir="rtl"] .page-hero h1{font-size:clamp(1.7rem,7.2vw,2.2rem);line-height:1.35}
 [dir="rtl"] .cta h2{font-size:clamp(1.75rem,7.4vw,2.35rem);line-height:1.35}
 [dir="rtl"] .hero h1 .sub{font-size:clamp(1.3rem,5.8vw,1.7rem)}
 .wrap{padding-inline:2.5rem}
 .studio-hero .hero-inner,.hero-inner{padding-block:2.75rem 3.5rem}
 .studio-hero .btn-lg,.studio-hero .brand-button{min-height:48px}
 #main>section:not(.studio-hero):not(.hero):not(.cta):not(.surface-light){padding-block:64px}
 .scene-work-section>div:not(.scene-workstation){padding-bottom:64px}
 .page-hero{padding-block:2.5rem 1.5rem}
 .page-hero h1{font-size:clamp(2.25rem,11vw,3.25rem);line-height:1.12}
 .cta h2{font-size:clamp(2.4rem,12vw,3.5rem);max-width:none}
 .footer-grid{gap:2rem}
 .legal{flex-wrap:wrap;gap:0.75rem}
 .logo-paint-drop{width:12px;height:20px;left:-6px;top:-14px}
 .logo-paint-puddle{height:42px;margin-top:-18px}
 .logo-paint-event[data-landing-clear=false] .logo-paint-puddle,.logo-paint-event[data-landing-clear=false] .logo-paint-splash{display:none}
 .logo-paint-ink{inset:-9px -9px}
 .logo-paint-word{font-size:10px}
 .logo-paint-event[lang=ar] .logo-paint-word{font-size:13px}
 .logo-paint-wide-spray{display:none}
}
@media(max-width:389px){
 .studio-hero h1 .sub{font-size:clamp(30px,9vw,35px);line-height:1.15}
 [dir="rtl"] .studio-hero h1 .sub{font-size:clamp(1.25rem,6.4vw,1.55rem);line-height:1.4}
 .studio-hero .hero-copy .lede{font-size:14px;line-height:1.8}
 .scene-workstation,[dir=rtl] .scene-workstation{width:230px;height:145px}
 .workstation-scale{transform:scale(.47)}
}
@media(prefers-reduced-motion:reduce){#aevum-page-walker{transition:none}}
