/* Noise Studio Persian / RTL layer */
html[dir="rtl"]{direction:rtl}
body{font-family:"Tahoma","Segoe UI",Arial,sans-serif}
html[dir="rtl"] .brand-name,html[dir="rtl"] .section-kicker,html[dir="rtl"] .card-number,html[dir="rtl"] .detail-num,html[dir="rtl"] .tags,html[dir="rtl"] .quote-caption{font-family:Inter,Arial,sans-serif}
html[dir="rtl"] .nav{direction:rtl}
html[dir="rtl"] .nav a:not(.nav-contact)::after{transform-origin:left}
html[dir="rtl"] .nav a:not(.nav-contact):hover::after,html[dir="rtl"] .nav a.active:not(.nav-contact)::after{transform-origin:right}
html[dir="rtl"] .hero-copy,html[dir="rtl"] .intro-grid>p:last-child,html[dir="rtl"] .service-card p,html[dir="rtl"] .detail-row p,html[dir="rtl"] .about-grid>div:last-child p,html[dir="rtl"] .contact-grid p,html[dir="rtl"] .portfolio-content p:not(.card-number){line-height:2}
html[dir="rtl"] .hero-actions{align-items:flex-start}
html[dir="rtl"] .hero-foot{direction:rtl}
html[dir="rtl"] .art-label{text-align:left;right:auto;left:35px}
html[dir="rtl"] .quote-inner{padding-left:0;padding-right:90px}
html[dir="rtl"] .quote-mark{left:auto;right:0}
html[dir="rtl"] .cta-section:before{background:linear-gradient(270deg,var(--red),transparent 55%)}
html[dir="rtl"] .detail-row{grid-template-columns:90px 1fr}
html[dir="rtl"] .detail-row:hover{padding-left:0;padding-right:10px}
html[dir="rtl"] .card-arrow{right:auto;left:24px}
html[dir="rtl"] .portfolio-index{left:auto;right:22px}
html[dir="rtl"] .portfolio-filter .filter-label{margin-right:0;margin-left:10px}
html[dir="rtl"] .portfolio-art i{transform:rotate(-58deg)}
html[dir="rtl"] .contact-form input,html[dir="rtl"] .contact-form select,html[dir="rtl"] .contact-form textarea{text-align:right}
html[dir="rtl"] .contact-form input[type=email]{text-align:left}
.lang-switch{font-size:10px!important;letter-spacing:1.5px!important;min-width:34px;text-align:center}
@media(max-width:650px){
 html[dir="rtl"] .quote-inner{padding-right:45px;padding-left:0}
 html[dir="rtl"] .detail-row{grid-template-columns:36px 1fr}
 html[dir="rtl"] .portfolio-filter .filter-label{margin-left:0}
}

/* RTL layout corrections: keep Persian copy right-aligned and Latin brand details stable */
html[dir="rtl"] .brand{direction:ltr}
html[dir="rtl"] .hero h1,
html[dir="rtl"] .page-hero h1,
html[dir="rtl"] .hero-copy,
html[dir="rtl"] .page-hero .hero-copy,
html[dir="rtl"] .intro-grid h2,
html[dir="rtl"] .intro-grid>p,
html[dir="rtl"] .section-heading,
html[dir="rtl"] .service-card,
html[dir="rtl"] .detail-row>div,
html[dir="rtl"] .about-grid,
html[dir="rtl"] .contact-grid,
html[dir="rtl"] .cta-section,
html[dir="rtl"] .work-notice,
html[dir="rtl"] .portfolio-content{
  text-align:right;
}
html[dir="rtl"] .hero-actions{direction:rtl}
html[dir="rtl"] .hero-actions .button,
html[dir="rtl"] .hero-actions .text-link{direction:rtl}
html[dir="rtl"] .service-card h3{padding-left:24px;padding-right:0}
html[dir="rtl"] .service-card .card-arrow{left:22px;right:auto}
html[dir="rtl"] .tags{direction:ltr;justify-content:flex-start}
html[dir="rtl"] .contact-form{direction:rtl}
html[dir="rtl"] .contact-form input[type=email],
html[dir="rtl"] .contact-form [dir="ltr"]{direction:ltr;text-align:left}
html[dir="rtl"] .contact-form button{align-self:flex-start}
html[dir="rtl"] .footer-top>p{text-align:right}
html[dir="rtl"] .footer-links{direction:rtl}
html[dir="rtl"] .hero-foot span:last-child{text-align:left}
html[dir="rtl"] .portfolio-filter{direction:rtl}
@media(max-width:650px){
  html[dir="rtl"] .site-header{direction:rtl}
  html[dir="rtl"] .nav{direction:rtl;text-align:right}
  html[dir="rtl"] .nav a{width:100%;text-align:right}
  html[dir="rtl"] .hero h1,
  html[dir="rtl"] .page-hero h1{letter-spacing:-1px}
  html[dir="rtl"] .hero-actions{align-items:stretch}
  html[dir="rtl"] .hero-actions .button{align-self:flex-start}
  html[dir="rtl"] .hero-foot{gap:12px}
  html[dir="rtl"] .hero-foot span{max-width:48%}
  html[dir="rtl"] .detail-row{grid-template-columns:36px minmax(0,1fr)}
  html[dir="rtl"] .detail-row>div{min-width:0}
  html[dir="rtl"] .quote-inner{padding-right:45px}
  html[dir="rtl"] .contact-form button{align-self:flex-start}
}


/* Persian hero: keep the motion artwork on the left, away from RTL copy */
html[dir="rtl"] .hero-art{
  left:0;
  right:auto;
  background:
    linear-gradient(270deg,rgba(16,16,17,.98) 0%,rgba(16,16,17,.72) 38%,rgba(16,16,17,.2) 100%),
    url("brand/noise-banner.jpg") center/cover no-repeat;
}
html[dir="rtl"] .hero .eyebrow,
html[dir="rtl"] .hero h1,
html[dir="rtl"] .hero-copy,
html[dir="rtl"] .hero-actions,
html[dir="rtl"] .hero-foot{
  position:relative;
  z-index:2;
}
html[dir="rtl"] .hero .eyebrow,
html[dir="rtl"] .hero h1,
html[dir="rtl"] .hero-copy,
html[dir="rtl"] .hero-actions{
  max-width:58%;
}
html[dir="rtl"] .hero-foot{max-width:100%}
@media(max-width:900px){
  html[dir="rtl"] .hero-art{left:-130px;right:auto}
  html[dir="rtl"] .hero .eyebrow,
  html[dir="rtl"] .hero h1,
  html[dir="rtl"] .hero-copy,
  html[dir="rtl"] .hero-actions{max-width:64%}
}
@media(max-width:650px){
  html[dir="rtl"] .hero-art{
    left:-300px;
    right:auto;
    top:190px;
    opacity:.18;
  }
  html[dir="rtl"] .hero .eyebrow,
  html[dir="rtl"] .hero h1,
  html[dir="rtl"] .hero-copy,
  html[dir="rtl"] .hero-actions{max-width:100%}
  html[dir="rtl"] .hero h1{position:relative;z-index:2}
}
