/* Reading direction and visual alignment are separate from translation opt-out. */
html[dir=rtl] :is(main,section,article,div)[data-no-translate]:not([dir=ltr]){
  direction:rtl;
  unicode-bidi:normal;
}
html[dir=rtl] :is(h1,h2,h3,h4,h5,h6):not([dir=ltr]):not([lang=en]){
  direction:rtl;
  unicode-bidi:isolate;
  letter-spacing:0;
  word-break:normal;
  overflow-wrap:normal;
}
html[lang=sd] :is(h1,h2,h3,h4,h5,h6){word-spacing:.08em}
html[dir=rtl] :is(.name-equation,.brand,.language-options,a[href^="mailto:"],a[href^="tel:"],bdi,[dir=ltr]){
  direction:ltr;
  unicode-bidi:isolate;
}

/* Group section headings, descriptions and section-level buttons together. */
.studio-home :is(.cms-section,.studio-section) .studio-section-head{
  display:flex;
  flex-direction:column;
  align-items:center;
  justify-content:center;
  gap:20px;
  text-align:center;
}
.studio-home :is(.cms-section,.studio-section) .studio-section-head>div{width:100%}
.studio-home :is(.cms-section,.studio-section) .studio-section-head :is(h1,h2,p,.eyebrow){
  text-align:center;
  margin-inline:auto;
}
.studio-home :is(.cms-section,.studio-section) .studio-section-head :is(h1,h2){
  max-width:1100px;
  text-wrap:balance;
}
.studio-home :is(.cms-section,.studio-section) .studio-section-head p{max-width:760px}
.studio-home .studio-section>.wrap>:is(h2,.eyebrow){text-align:center;margin-inline:auto}
.cms-section.cms-type-cta>.wrap,
.cms-section.cms-type-cta .studio-section-head,
.studio-cta>.wrap,
.teal-cta>.wrap{text-align:center}
.cms-section.cms-type-cta .studio-section-head :is(h1,h2,p,.eyebrow){text-align:center;margin-inline:auto}
.cms-section.cms-type-cta .studio-section-head :is(h1,h2){max-width:1100px;text-wrap:balance}
.cms-section.cms-type-cta .studio-section-description{max-width:800px}
.cms-section.cms-type-cta .actions,.studio-cta .actions{
  justify-content:center;
  align-items:center;
  flex-wrap:wrap;
  gap:14px;
}
.teal-cta>.wrap{padding-inline:0}
.teal-cta :is(h2,p){margin-inline:auto;max-width:950px;text-wrap:balance}
.teal-cta .button{position:static;inset:auto;transform:none;margin-top:22px}
:is(.custom-cta,.contact-bottom) .editorial-split>div:first-child{text-align:center}
:is(.custom-cta,.contact-bottom) .editorial-split>div:first-child :is(h2,p){margin-inline:auto;text-wrap:balance}

/* Apply a text gradient without splitting Sindhi or Urdu shaping into letters. */
.studio-viewport .studio-slide:not(:first-child) .studio-hero-copy>.hero-title{
  width:fit-content;
  max-width:100%;
  color:#f6f3ed;
}
@supports ((background-clip:text) or (-webkit-background-clip:text)){
  .studio-viewport .studio-slide:not(:first-child) .studio-hero-copy>.hero-title{
    background-image:linear-gradient(90deg,#f6f3ed 0%,#f6f3ed 20%,#21bbb2 44%,#21bbb2 57%,#ff8b38 80%,#ff8b38 100%);
    background-repeat:no-repeat;
    background-clip:text;
    -webkit-background-clip:text;
    color:transparent;
    -webkit-text-fill-color:transparent;
  }
  html[dir=rtl] .studio-viewport .studio-slide:not(:first-child) .studio-hero-copy>.hero-title{
    background-image:linear-gradient(270deg,#f6f3ed 0%,#f6f3ed 20%,#21bbb2 44%,#21bbb2 57%,#ff8b38 80%,#ff8b38 100%);
  }
  .studio-viewport .studio-slide:not(:first-child) .studio-hero-copy>.hero-title :is(span,em){
    color:inherit;
    -webkit-text-fill-color:inherit;
  }
}

/* Keep RTL copy on the physical left, with proper RTL reading inside the fade. */
html[dir=rtl] .studio-home .studio-viewport .studio-hero-copy,
html[dir=rtl] .studio-viewport .cms-public-slide .studio-hero-copy,
html[dir=rtl] .scene-hero:not(.scene-account) .hero-copy-block{
  direction:rtl;
  text-align:right;
  width:48%;
  max-width:680px;
  margin-left:0;
  margin-right:auto;
  align-items:stretch;
}
html[dir=rtl] .studio-home .studio-viewport .studio-hero-copy>:is(h1,h2,p,.eyebrow),
html[dir=rtl] .scene-hero:not(.scene-account) .hero-copy-block>:is(h1,h2,p,.eyebrow){
  direction:rtl;
  unicode-bidi:isolate;
  text-align:right;
  max-width:100%;
  margin-left:auto;
  margin-right:0;
  letter-spacing:0;
  text-wrap:balance;
}
html[dir=rtl] .studio-home .studio-viewport .studio-hero-copy>.hero-title:not(.cms-three-words){
  font-size:clamp(35px,3.4vw,58px);
  line-height:1.65;
  white-space:normal;
  word-break:normal;
  overflow-wrap:normal;
}
html[dir=rtl] .studio-home .studio-viewport .cms-public-slide .studio-hero-copy>.hero-title:not(.cms-three-words){display:block!important}
html[dir=rtl] .studio-home .studio-viewport .studio-hero-copy>.cms-hero-subtitle{
  font-size:clamp(22px,1.8vw,29px);
  line-height:1.8;
}
html[dir=rtl] .studio-home .studio-viewport .studio-hero-copy>p{font-size:19px;line-height:1.9}
html[dir=rtl] .studio-home .studio-viewport .studio-hero-copy>.eyebrow,
html[dir=rtl] .scene-hero:not(.scene-account) .hero-copy-block>.eyebrow{display:block;width:100%}
html[dir=rtl] .studio-home .studio-viewport .studio-hero-copy>.actions,
html[dir=rtl] .scene-hero:not(.scene-account) .hero-copy-block>.actions{
  direction:rtl;
  justify-content:flex-start;
  margin-left:auto;
  margin-right:0;
  max-width:100%;
}
html[dir=rtl] .studio-home .studio-viewport .studio-hero-copy>.hero-title.cms-three-words{
  display:flex!important;
  flex-direction:row;
  flex-wrap:nowrap;
  justify-content:flex-start;
  gap:.2em;
  font-size:clamp(33px,3.7vw,62px);
  white-space:nowrap;
}
html[dir=rtl] .scene-hero:not(.scene-account) .hero-copy-block>h1{
  font-size:clamp(35px,3.5vw,60px);
  line-height:1.65;
}

@media(max-width:760px){
  .studio-home :is(.cms-section,.studio-section) .studio-section-head{gap:16px}
  html[dir=rtl] .studio-home .studio-viewport .studio-hero-copy,
  html[dir=rtl] .studio-viewport .cms-public-slide .studio-hero-copy,
  html[dir=rtl] .scene-hero:not(.scene-account) .hero-copy-block{width:100%;max-width:100%}
  html[dir=rtl] .studio-home .studio-viewport .studio-hero-copy{padding-block:28px}
  html[dir=rtl] .studio-home .studio-viewport .studio-hero-copy>.hero-title:not(.cms-three-words){font-size:clamp(29px,7.3vw,38px);line-height:1.7}
  html[dir=rtl] .studio-home .studio-viewport .studio-hero-copy>.hero-title.cms-three-words{font-size:clamp(24px,6.8vw,38px);gap:.15em}
  html[dir=rtl] .studio-home .studio-viewport .studio-hero-copy>.cms-hero-subtitle{font-size:21px;line-height:1.8}
  html[dir=rtl] .studio-home .studio-viewport .studio-hero-copy>p{font-size:17px;line-height:1.9}
  html[dir=rtl] .scene-hero:not(.scene-account) .hero-copy-block>h1{font-size:clamp(32px,8vw,44px)}
}
@media(forced-colors:active){
  .studio-viewport .studio-slide:not(:first-child) .studio-hero-copy>.hero-title{
    background:none!important;color:CanvasText!important;-webkit-text-fill-color:CanvasText!important;
  }
}

/* Desktop sticky menu */
@media (min-width:1101px) {
  .header.studio-header {
    position:sticky;
    top:0;
    z-index:80;
  }
}

/* BEGIN BRAINDUS ACCESSIBILITY POLISH V1 */
/* Keep orange/green fills. Give their small labels a contrasting foreground. */
.studio-actions .button,
.studio-hero-copy .actions>.button:not(.outline),
.cms-type-cta .actions>.button:not(.outline),
.studio-cta .actions>.button:not(.outline),
.analytics-choice .actions>.button:not(.outline),
.scene-hero:not(.scene-account):not(.scene-checkout) .hero-copy-block .actions>.button:not(.outline){
 color:#19262d;
}

/* These translucent cards have light surfaces even on the darker CMS themes. */
.studio-product-card,
.cms-section .studio-product-card>div>p,
.studio-product-card>div>.button.outline{
 color:#19262d;
}
.studio-product-card>div>.button.outline{border-color:#075a5e}

/* A two-colour focus indicator remains visible on light and dark surfaces. */
.button:focus-visible,
.studio-slider .button:focus-visible,
.studio-slider button:focus-visible,
.studio-product-card a:focus-visible,
.language-options button:focus-visible{
 outline:3px solid #19262d;
 outline-offset:3px;
 box-shadow:0 0 0 6px #f6f3ed;
}

/* The skip target must clear the sticky desktop header. */
#main-content{scroll-margin-block-start:128px}
@media(max-width:1100px){#main-content{scroll-margin-block-start:16px}}
@media(forced-colors:active){
 .button:focus-visible,
 .studio-slider .button:focus-visible,
 .studio-slider button:focus-visible,
 .studio-product-card a:focus-visible,
 .language-options button:focus-visible{
  outline:3px solid Highlight;
  box-shadow:none;
 }
}
/* END BRAINDUS ACCESSIBILITY POLISH V1 */

/* BEGIN BRAINDUS CONSENT CONTRAST V1 */
/* Explicit colours prevent inherited footer/section text from reaching the banner. */
body .analytics-choice{
 background:#ffffff;
 color:#19262d;
}
body .analytics-choice p{
 color:#19262d;
 opacity:1;
}
body .analytics-choice .actions>.button:not(.outline){
 color:#19262d;
}
body .analytics-choice .actions>.button.outline{
 background:#ffffff;
 color:#19262d;
 border-color:#075a5e;
}
body .analytics-choice .actions>.button.outline:hover{
 background:#edf3ef;
 color:#19262d;
}
@media(forced-colors:active){
 body .analytics-choice,
 body .analytics-choice p{
  background:Canvas;
  color:CanvasText;
 }
 body .analytics-choice .actions>.button{
  color:ButtonText;
  background:ButtonFace;
  border-color:ButtonText;
 }
}
/* END BRAINDUS CONSENT CONTRAST V1 */

/* BEGIN BRAINDUS RECENT WORK V1 */
#recent-work-sindhi-fonts{
 --project-text:#f6f3ed;--project-copy:#d0dedf;
 --project-label:#ffb57e;--project-border:#b4c5c7;
 color:var(--project-text);
 border-block:1px solid #ffffff18;
 position:relative;
 overflow:hidden;
 padding-block:clamp(36px,5vw,72px);
}
#recent-work-sindhi-fonts:is(.cms-theme-ivory,.cms-theme-ajrak){
 --project-text:#19262d;--project-copy:#334a50;
 --project-label:#075a5e;--project-border:#075a5e;
}
#recent-work-sindhi-fonts>.wrap{
 display:grid;
 grid-template-columns:minmax(0,1.15fr) minmax(0,1fr);
 grid-template-rows:auto auto;
 column-gap:clamp(24px,4vw,56px);
 row-gap:22px;
 align-items:center;
}
#recent-work-sindhi-fonts .studio-section-head{
 grid-column:2;grid-row:1;
 display:block;align-self:end;
 margin:0;text-align:start;
}
#recent-work-sindhi-fonts .studio-section-head :is(h1,h2,p,.eyebrow){
 text-align:start;margin-inline:0;
}
#recent-work-sindhi-fonts .studio-section-head h2{color:var(--project-text)}
#recent-work-sindhi-fonts .eyebrow{
 color:var(--project-label);opacity:1;
 font-size:11px;line-height:1.8;letter-spacing:.1em;
}
#recent-work-sindhi-fonts .cms-section-description{
 color:var(--project-copy);font-size:15px;line-height:1.9;max-width:620px;
}
#recent-work-sindhi-fonts .cms-text-media{
 grid-column:1;grid-row:1 / span 2;
 margin:0;border:1px solid #ffffff30;border-radius:14px;
 overflow:hidden;background:#0a3731;
 box-shadow:0 16px 34px #0003;
}
#recent-work-sindhi-fonts .cms-text-media::before{
 content:'sindhifonts.com';display:block;
 background:#f6f3ed;color:#19262d;
 padding:11px 16px;font:600 12px/1.6 Manrope,Arial,sans-serif;
 direction:ltr;text-align:left;border-bottom:1px solid #19262d18;
}
#recent-work-sindhi-fonts .cms-text-media img{
 display:block;width:100%;height:auto;max-height:none;object-fit:contain;
}
#recent-work-sindhi-fonts .recent-project-actions{
 grid-column:2;grid-row:2;display:flex;align-self:start;
 align-items:center;flex-wrap:wrap;gap:12px;
}
#recent-work-sindhi-fonts .recent-project-actions .button{
 font-size:12px;line-height:1.6;
}
#recent-work-sindhi-fonts .recent-project-actions .button:not(.outline){
 color:#19262d;background:#ff7918;border-color:#ff7918;
}
#recent-work-sindhi-fonts .recent-project-actions .button.outline{
 color:var(--project-text);border-color:var(--project-border);background:transparent;
}
html[dir=rtl] #recent-work-sindhi-fonts .cms-section-description{font-size:20px;line-height:2.1}
html[dir=rtl] #recent-work-sindhi-fonts .eyebrow{font-size:16px;letter-spacing:0}
html[dir=rtl] #recent-work-sindhi-fonts .recent-project-actions .button{font-size:17px}
@media(max-width:900px){
 #recent-work-sindhi-fonts>.wrap{grid-template-columns:1fr;gap:24px}
 #recent-work-sindhi-fonts .studio-section-head{grid-column:1;grid-row:1}
 #recent-work-sindhi-fonts .cms-text-media{grid-column:1;grid-row:2}
 #recent-work-sindhi-fonts .recent-project-actions{grid-column:1;grid-row:3}
}
@media(forced-colors:active){
 #recent-work-sindhi-fonts .recent-project-actions .button{color:ButtonText;background:ButtonFace;border-color:ButtonText}
}
/* END BRAINDUS RECENT WORK V1 */

/* BEGIN BRAINDUS SELECTED WORK V1 */
#selected-work-websites{--project-ink:#19262d;--project-muted:#40565c;--project-accent:#075a5e;padding-block:clamp(36px,5vw,72px)}
#selected-work-websites:is(.cms-theme-charcoal,.cms-theme-teal){--project-ink:#f6f3ed;--project-muted:#d0dedf;--project-accent:#ffb57e}
#selected-work-websites .studio-section-head{text-align:start;align-items:center;gap:24px}
#selected-work-websites .studio-section-head :is(h1,h2){color:var(--project-ink)}
#selected-work-websites .studio-section-head .eyebrow{color:var(--project-accent);opacity:1}
#selected-work-websites .cms-section-description{color:var(--project-muted);max-width:680px}
#selected-work-websites .studio-service-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:20px}
#selected-work-websites .studio-service-card{display:flex;flex-direction:column;align-items:flex-start;min-width:0;padding:28px;border-radius:16px;border:1px solid #075a5e38;border-top:4px solid #075a5e;background:#fff;color:#19262d;text-align:start;box-shadow:0 8px 24px #19262d0a;text-decoration:none;transition:transform .2s ease,box-shadow .2s ease}
#selected-work-websites .studio-service-card:nth-child(2){border-top-color:#c94b16}
#selected-work-websites .studio-service-card:nth-child(3){border-top-color:#668824}
#selected-work-websites .studio-service-card>.ui-icon{width:42px;height:42px;margin-bottom:24px;color:#075a5e}
#selected-work-websites .studio-service-card>img{width:100%;height:auto;aspect-ratio:16/10;object-fit:contain;margin-bottom:22px;border-radius:8px}
#selected-work-websites .studio-service-card h3{color:#19262d;margin:0 0 12px;font-size:24px;line-height:1.35}
#selected-work-websites .studio-service-card p{color:#40565c;margin:0 0 24px;font-size:14px;line-height:1.85;opacity:1;max-width:none}
#selected-work-websites .selected-project-link{display:inline-flex;gap:10px;align-items:center;margin-top:auto;color:#075a5e;font-weight:700;font-size:13px}
#selected-work-websites .studio-service-card:hover{transform:translateY(-3px);box-shadow:0 12px 28px #19262d18}
#selected-work-websites .studio-service-card:focus-visible{outline:3px solid #075a5e;outline-offset:4px}
html[dir=rtl] #selected-work-websites .studio-service-card p{font-size:19px;line-height:2.1}
html[dir=rtl] #selected-work-websites .selected-project-link{font-size:18px}
@media(max-width:1000px){#selected-work-websites .studio-service-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:620px){#selected-work-websites .studio-service-grid{grid-template-columns:minmax(0,1fr)}#selected-work-websites .studio-service-card{padding:24px}#selected-work-websites .studio-section-head{display:block}#selected-work-websites .studio-section-head>.button{margin-top:20px}}
@media(prefers-reduced-motion:reduce){#selected-work-websites .studio-service-card{transition:none}#selected-work-websites .studio-service-card:hover{transform:none}}
/* END BRAINDUS SELECTED WORK V1 */
