/* ============================================================
   BrandUp 1.2 — Human Agency Direction
   Purpose: remove the visual vocabulary associated with AI-generated
   landing pages and foreground real work, typography and restraint.
   ============================================================ */

:root{
  --bu-agency-ink:#090909;
  --bu-agency-paper:#f0eadf;
  --bu-agency-line:rgba(240,234,223,.18);
  --bu-agency-muted:rgba(240,234,223,.62);
}

/* Remove conversion-page noise on the company homepage. */
body.home .bu-countdown,
body.home .bu-topbar{display:none!important}

/* Less glass, less glow, less "AI SaaS". */
body.home .bu-header,
body.home .bu-header.is-scrolled{background:rgba(9,9,9,.94);backdrop-filter:none;border-bottom:1px solid var(--bu-agency-line)}
body.home .bu-nav a::after{height:1px;background:currentColor}
body.home .bu-btn,
body.home .bu-agency-link{box-shadow:none!important}

/* ---------- Hero ---------- */
.bu-agency-hero{background:var(--bu-agency-ink);padding:clamp(70px,9vw,128px) 0 30px;min-height:calc(100svh - 74px);display:flex;flex-direction:column;justify-content:space-between}
.bu-agency-hero__grid{display:grid;grid-template-columns:minmax(0,.78fr) minmax(0,1.22fr);gap:clamp(38px,6vw,96px);align-items:end}
.bu-agency-hero__copy{padding-bottom:clamp(18px,4vw,58px)}
.bu-agency-label{margin:0 0 26px;font:600 .72rem/1.2 var(--bu-ff-en);letter-spacing:.15em;text-transform:uppercase;color:var(--bu-gold)}
.bu-agency-hero h1{margin:0;font-size:clamp(3rem,6.9vw,7rem);line-height:.98;letter-spacing:-.055em;max-width:9.5ch;font-weight:600;text-wrap:balance}
.bu-agency-hero__lead{max-width:52ch;margin:30px 0 0;color:var(--bu-agency-muted);font-size:clamp(1rem,1.35vw,1.18rem);line-height:1.85}
.bu-agency-hero__actions{display:flex;align-items:center;gap:22px;flex-wrap:wrap;margin-top:34px}
.bu-agency-link{display:inline-flex;align-items:center;gap:12px;padding:0 0 7px;border-bottom:1px solid rgba(240,234,223,.42);color:var(--bu-agency-paper);font-weight:600;font-size:.92rem;transition:border-color .2s,color .2s}
.bu-agency-link:hover{border-color:var(--bu-gold);color:var(--bu-gold)}
.bu-agency-link--solid{padding:13px 18px;border:1px solid var(--bu-agency-paper);background:var(--bu-agency-paper);color:#111}
.bu-agency-link--solid:hover{background:var(--bu-gold);border-color:var(--bu-gold);color:#111}
.bu-agency-hero__meta{display:flex;gap:10px 18px;flex-wrap:wrap;margin-top:44px;color:rgba(240,234,223,.42);font:500 .68rem/1.2 var(--bu-ff-en);text-transform:uppercase;letter-spacing:.1em}
.bu-agency-hero__meta span:not(:last-child)::after{content:"/";margin-inline-start:18px;color:rgba(240,234,223,.22)}

.bu-agency-featured{display:block;color:inherit}
.bu-agency-featured__image{aspect-ratio:1.22;overflow:hidden;background:#171717}
.bu-agency-featured__image img{width:100%;height:100%;object-fit:cover;object-position:top center;display:block;transform:scale(1.001);transition:transform .7s cubic-bezier(.2,.7,.2,1)}
.bu-agency-featured:hover .bu-agency-featured__image img{transform:scale(1.018)}
.bu-agency-featured__caption{display:flex;justify-content:space-between;gap:28px;padding:16px 0 0;border-top:0;color:var(--bu-agency-paper)}
.bu-agency-featured__caption span{display:block;color:rgba(240,234,223,.44);font:500 .62rem/1.2 var(--bu-ff-en);letter-spacing:.12em;text-transform:uppercase;margin-bottom:5px}
.bu-agency-featured__caption strong{font-size:.92rem;font-weight:600}
.bu-agency-featured__caption small{font:500 .65rem/1.5 var(--bu-ff-en);color:rgba(240,234,223,.44);text-align:end}
.bu-agency-featured--empty{aspect-ratio:1.22;border:1px solid var(--bu-agency-line);display:flex;flex-direction:column;justify-content:space-between;padding:30px}
.bu-agency-featured__emptymark{font:600 clamp(3rem,8vw,7rem)/1 var(--bu-ff-en);letter-spacing:-.07em;color:rgba(240,234,223,.15)}
.bu-agency-hero__foot{display:flex;justify-content:space-between;gap:20px;padding-top:28px;margin-top:clamp(50px,7vw,100px);border-top:1px solid var(--bu-agency-line);font:500 .62rem/1.2 var(--bu-ff-en);letter-spacing:.12em;text-transform:uppercase;color:rgba(240,234,223,.32)}

/* ---------- Shared section language ---------- */
body.home .bu-section{padding-block:clamp(88px,11vw,160px)}
.bu-agency-sectionhead{display:grid;grid-template-columns:.72fr 1.28fr;gap:clamp(30px,6vw,100px);align-items:start;margin-bottom:clamp(50px,7vw,92px)}
.bu-agency-sectionhead .bu-agency-label{margin-top:10px}
.bu-agency-sectionhead h2,
.bu-agency-capabilities h2{margin:0;font-size:clamp(2.3rem,5.3vw,5.4rem);line-height:1.05;letter-spacing:-.045em;font-weight:600;max-width:12ch}

/* ---------- Services ---------- */
.bu-agency-services{background:var(--bu-agency-paper);color:#121212}
.bu-agency-services .bu-agency-label{color:#8a6b36}
.bu-agency-service-list{border-top:1px solid rgba(18,18,18,.22)}
.bu-agency-service{display:grid;grid-template-columns:70px minmax(180px,.9fr) minmax(260px,1.1fr) minmax(180px,.7fr);gap:28px;align-items:start;padding:30px 0;border-bottom:1px solid rgba(18,18,18,.22)}
.bu-agency-service__num{font:600 .68rem/1 var(--bu-ff-en);letter-spacing:.1em;color:#8b7350;margin-top:7px}
.bu-agency-service h3{font-size:clamp(1.2rem,2vw,1.7rem);line-height:1.25;font-weight:600;margin:0}
.bu-agency-service p{margin:0;color:rgba(18,18,18,.65);line-height:1.8;max-width:52ch}
.bu-agency-service small{font:500 .67rem/1.55 var(--bu-ff-en);letter-spacing:.04em;color:rgba(18,18,18,.48)}

/* ---------- Capabilities ---------- */
.bu-agency-capabilities{background:#10100f;color:var(--bu-agency-paper)}
.bu-agency-capabilities__grid{display:grid;grid-template-columns:1fr 1fr;gap:clamp(45px,8vw,130px);align-items:start}
.bu-agency-capabilities__right{padding-top:10px}
.bu-agency-capabilities__right>p{margin:0 0 38px;max-width:48ch;color:var(--bu-agency-muted);line-height:1.9;font-size:1.02rem}
.bu-agency-capabilities__right ul{display:grid;grid-template-columns:1fr 1fr;border-top:1px solid var(--bu-agency-line)}
.bu-agency-capabilities__right li{padding:16px 0;border-bottom:1px solid var(--bu-agency-line);font:500 .76rem/1.4 var(--bu-ff-en);letter-spacing:.02em}
.bu-agency-capabilities__right li:nth-child(odd){padding-inline-end:18px}
.bu-agency-capabilities__right li:nth-child(even){padding-inline-start:18px;border-inline-start:1px solid var(--bu-agency-line)}

/* ---------- Real work becomes the visual center ---------- */
body.home .bu-portfolio-v3{background:#090909}
body.home .bu-portfolio-v3__head{grid-template-columns:.7fr 1.3fr;align-items:start;border-bottom:1px solid var(--bu-agency-line);padding-bottom:30px}
body.home .bu-portfolio-v3__head .bu-h2{font-size:clamp(2.8rem,7vw,6.5rem);line-height:.95;font-weight:600;letter-spacing:-.055em;max-width:8ch}
body.home .bu-portfolio-v3__head .bu-lead{max-width:48ch;justify-self:end;color:var(--bu-agency-muted);line-height:1.9}
body.home .bu-portfolio-v3__grid{gap:50px 24px}
body.home .bu-project-card{border:0;border-radius:0;background:transparent;overflow:visible}
body.home .bu-project-card__media,
body.home .bu-project-card--hero .bu-project-card__media{height:auto;aspect-ratio:1.28;background:#161616}
body.home .bu-project-card--hero .bu-project-card__media{aspect-ratio:1.72}
body.home .bu-project-card__browserbar{display:none}
body.home .bu-project-card__sector{border-radius:0;background:#0a0a0a;backdrop-filter:none;border:0;padding:7px 10px;font-size:.62rem}
body.home .bu-project-card__body{padding:14px 0 0;border-top:0}
body.home .bu-project-card__index{color:rgba(240,234,223,.4)}
body.home .bu-project-card h3{font-size:1.15rem;font-weight:600}
body.home .bu-project-card__body p{font-size:.67rem;color:rgba(240,234,223,.42)}
body.home .bu-project-card__actions a{border-bottom-color:rgba(240,234,223,.35)}
body.home .bu-hover-zoom img{transition:transform .7s cubic-bezier(.2,.7,.2,1)}

/* ---------- Calm down the remaining commercial sections ---------- */
body.home .bu-testimonials,
body.home #packages,
body.home .bu-steps-sec,
body.home .bu-faq,
body.home .bu-lead-sec{background:#0b0b0b!important}
body.home .bu-quote,
body.home .bu-pkg,
body.home .bu-step,
body.home .bu-acc__item,
body.home .bu-form{border-radius:8px!important;background:#10100f!important;border-color:var(--bu-agency-line)!important;box-shadow:none!important}
body.home .bu-pkg--rec{background:#12110f!important;border-color:rgba(212,175,106,.55)!important}
body.home .bu-pkg--rec::before{display:none}
body.home .bu-pkg__badge{border-radius:2px}
body.home .bu-final{background:#090909!important;padding-block:clamp(100px,13vw,190px)!important}
body.home .bu-final::before{display:none!important}
body.home .bu-final__h{font-weight:600;letter-spacing:-.05em!important}

@media (max-width:1024px){
  .bu-agency-hero__grid{grid-template-columns:1fr;align-items:start}
  .bu-agency-hero__copy{max-width:760px}
  .bu-agency-hero h1{max-width:11ch}
  .bu-agency-hero__work{width:88%;margin-inline-start:auto}
  .bu-agency-sectionhead{grid-template-columns:1fr}
  .bu-agency-service{grid-template-columns:55px 1fr 1.2fr}
  .bu-agency-service small{grid-column:2/-1}
  .bu-agency-capabilities__grid{grid-template-columns:1fr}
}

@media (max-width:768px){
  .bu-agency-hero{padding-top:54px}
  .bu-agency-hero h1{font-size:clamp(2.7rem,13vw,5rem);max-width:10ch}
  .bu-agency-hero__lead{margin-top:22px}
  .bu-agency-hero__meta span::after{display:none!important}
  .bu-agency-hero__work{width:100%}
  .bu-agency-hero__foot{margin-top:54px}
  .bu-agency-service{grid-template-columns:38px 1fr;gap:12px 18px;padding:24px 0}
  .bu-agency-service p,.bu-agency-service small{grid-column:2}
  .bu-agency-capabilities__right ul{grid-template-columns:1fr}
  .bu-agency-capabilities__right li:nth-child(even){padding-inline-start:0;border-inline-start:0}
  body.home .bu-portfolio-v3__head{grid-template-columns:1fr}
  body.home .bu-portfolio-v3__head .bu-lead{justify-self:start}
  body.home .bu-project-card--hero .bu-project-card__media,
  body.home .bu-project-card__media{aspect-ratio:1.12;height:auto}
  body.home .bu-project-card__body{flex-direction:row}
}

@media (max-width:480px){
  .bu-agency-hero__actions{align-items:flex-start;flex-direction:column}
  .bu-agency-featured__caption{gap:14px}
  .bu-agency-featured__caption small{max-width:120px}
  .bu-agency-hero__foot{font-size:.52rem}
  .bu-agency-service{grid-template-columns:28px 1fr}
  body.home .bu-project-card__body{flex-direction:column}
}


/* ============================================================
   v1.2.1 refinement — Arabic headline spacing + alternating surfaces
   ============================================================ */

/* Hero title: Arabic needs gentler spacing than Latin display type */
.bu-agency-hero h1{
  line-height:1.08;
  letter-spacing:-.02em;
  max-width:none;
  text-wrap:initial;
}
.bu-agency-hero h1 span{display:block}
html[dir="rtl"] .bu-agency-hero h1,
body.rtl .bu-agency-hero h1{
  letter-spacing:0;
  line-height:1.12;
}

/* Alternating black / white section rhythm */
.bu-surface--light{
  background:#F4EFE7 !important;
  color:#111111 !important;
}
.bu-surface--light .bu-h2,
.bu-surface--light h2,
.bu-surface--light h3,
.bu-surface--light h4,
.bu-surface--light strong,
.bu-surface--light .bu-agency-service p,
.bu-surface--light .bu-agency-service small,
.bu-surface--light .bu-agency-capabilities__right li,
.bu-surface--light .bu-project-card h3,
.bu-surface--light .bu-quote blockquote,
.bu-surface--light .bu-step h3,
.bu-surface--light .bu-acc__q,
.bu-surface--light .bu-final__h{
  color:#101010 !important;
}
.bu-surface--light p,
.bu-surface--light .bu-lead,
.bu-surface--light .bu-agency-intro,
.bu-surface--light .bu-agency-service small,
.bu-surface--light .bu-agency-capabilities__right li small,
.bu-surface--light .bu-project-card__body p,
.bu-surface--light .bu-quote cite,
.bu-surface--light .bu-step p,
.bu-surface--light .bu-acc__a,
.bu-surface--light .bu-form__hint,
.bu-surface--light .bu-muted{
  color:rgba(16,16,16,.68) !important;
}
.bu-surface--light .bu-eyebrow,
.bu-surface--light .bu-agency-label,
.bu-surface--light .bu-link-under,
.bu-surface--light .bu-project-card__actions a{
  color:#8E6A2B !important;
}
.bu-surface--light .bu-agency-sectionhead,
.bu-surface--light .bu-agency-service,
.bu-surface--light .bu-portfolio-v3__head,
.bu-surface--light .bu-quote,
.bu-surface--light .bu-step,
.bu-surface--light .bu-acc__item,
.bu-surface--light .bu-form{
  border-color:rgba(16,16,16,.12) !important;
}
.bu-surface--light .bu-project-card__sector{
  background:#ffffff !important;
  color:#222 !important;
}
.bu-surface--light .bu-project-card__index{color:rgba(16,16,16,.35) !important}
.bu-surface--light .bu-project-card__media,
.bu-surface--light .bu-project-card--hero .bu-project-card__media,
.bu-surface--light .bu-agency-featured__image{background:#ddd7cf !important}
.bu-surface--light .bu-step,
.bu-surface--light .bu-quote,
.bu-surface--light .bu-acc__item,
.bu-surface--light .bu-form{
  background:#fffdf9 !important;
  box-shadow:none !important;
}
.bu-surface--light .bu-btn--ghost{
  color:#111 !important;
  border-color:rgba(16,16,16,.18) !important;
}
.bu-surface--light .bu-btn--ghost:hover{background:rgba(16,16,16,.04) !important}

.bu-surface--dark{
  background:#0A0A0A !important;
  color:var(--bu-text) !important;
}

/* Specific clean-up for homepage sections when light */
body.home .bu-surface--light.bu-portfolio-v3__head{background:transparent!important}
body.home .bu-surface--light .bu-portfolio-v3__head .bu-lead{color:rgba(16,16,16,.68)!important}
body.home .bu-surface--light .bu-quote,
body.home .bu-surface--light .bu-step,
body.home .bu-surface--light .bu-acc__item,
body.home .bu-surface--light .bu-form{background:#fffdf9!important;border-radius:8px!important}
body.home .bu-surface--light .bu-project-card__body p{color:rgba(16,16,16,.56)!important}

@media (max-width:768px){
  .bu-agency-hero h1{font-size:clamp(2.5rem,12vw,4.4rem);line-height:1.1}
  html[dir="rtl"] .bu-agency-hero h1,
  body.rtl .bu-agency-hero h1{line-height:1.14}
}

@media (max-width:480px){
  .bu-agency-hero h1{font-size:clamp(2.2rem,11.5vw,3.4rem)}
}
