
/* Homepage hero portrait — keep the head in frame on mobile */
@media (max-width: 767px) {
  .elementor-5007 .elementor-element.elementor-element-7da858c img {
    object-fit: cover;
    object-position: center 8%;
  }
}

/* Blogs page hero — compact (mirrors Elementor settings; kept inline so page-cache plugins can't serve old sizes) */
.elementor-1031 .elementor-element.elementor-element-6063d06{--padding-top:56px!important;--padding-bottom:40px!important}
.elementor-1031 .elementor-element.elementor-element-3f0bba7 .elementor-heading-title{font-size:48px!important;line-height:56px!important}
.elementor-1031 .elementor-element.elementor-element-325e314{font-size:18px!important;line-height:28px!important;padding:14px 0 28px 0!important}
@media (max-width:1024px){
  .elementor-1031 .elementor-element.elementor-element-6063d06{--padding-top:40px!important;--padding-bottom:32px!important}
  .elementor-1031 .elementor-element.elementor-element-3f0bba7 .elementor-heading-title{font-size:38px!important;line-height:46px!important}
  .elementor-1031 .elementor-element.elementor-element-325e314{font-size:17px!important;line-height:26px!important}
}
@media (max-width:767px){
  .elementor-1031 .elementor-element.elementor-element-6063d06{--padding-top:25px!important;--padding-bottom:20px!important}
  .elementor-1031 .elementor-element.elementor-element-3f0bba7 .elementor-heading-title{font-size:28px!important;line-height:36px!important}
  .elementor-1031 .elementor-element.elementor-element-325e314{font-size:16px!important;line-height:24px!important;padding:0!important;margin:12px 0 20px 0!important}
}


/* Compact phone footer: booking and Fiverr above the social links. */
@media (max-width: 767px) {
  .elementor-1401 .elementor-element-399e019 { padding: 24px 18px 16px; }
  .elementor-1401 .elementor-element-399e019 > .e-con-inner { padding: 0; gap: 14px; }
  .elementor-1401 :is(.elementor-element-c0a5ae5,.elementor-element-f601e30,.elementor-element-5081064,.elementor-element-2bf2bd9) { width: 100%; padding: 0; margin: 0; gap: 8px; min-height: 0; }
  .elementor-1401 .elementor-element-c0a5ae5 { flex-direction: column; gap: 12px; }
  .elementor-1401 :is(.elementor-element-0b3dd18,.elementor-element-354bed4) { display: none; }
  .elementor-1401 .elementor-element-567357e { width: 100%; }
  .elementor-1401 .elementor-element-567357e ul { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 10px; }
  .elementor-1401 .elementor-element-567357e li:has(a:is([href*="linkedin.com"],[href*="facebook.com"])) { display: none; }
  .elementor-1401 .elementor-element-567357e li { padding: 0; margin: 0; }
  .elementor-1401 .elementor-element-567357e a { justify-content: center; min-height: 44px; border: 1px solid currentColor; border-radius: 6px; }
  .elementor-1401 .elementor-element-83ef067 { width: 100%; padding: 10px 0 0; margin: 0; gap: 4px; align-items: center; text-align: center; }
  .elementor-1401 .elementor-element-b63fa82 ul { display: flex; flex-flow: row wrap; justify-content: center; gap: 4px 14px; }
  .elementor-1401 .elementor-element-b63fa82 li { margin: 0; padding: 0; }
  .elementor-1401 .elementor-element-b63fa82 a { min-height: 32px; }
  .elementor-1401 .elementor-element-47c4517 p { margin: 0; }
}

/* Phone hero: introduce Touhid beside his portrait. */
@media (max-width: 767px) {
  body.home .th { padding-inline: clamp(16px, 5vw, 32px); }
  body.home .th .th-in { display: grid !important; grid-template-columns: minmax(0,1fr) clamp(76px,24vw,132px); grid-template-rows: auto auto auto auto auto; gap: 0 12px; align-content: start; padding: 20px 0 18px !important; height: auto; min-height: 0; }
  body.home .th .th-copy { display: contents; }
  body.home .th .th-eyebrow { grid-area: 1/1; align-self: end; margin: 0 0 6px !important; font-size: 10px; line-height: 1.35; white-space: normal; }
  body.home .th .th-h1 { grid-area: 2/1; align-self: start; font-size: clamp(28px,7.5vw,40px); line-height: 1.03; margin: 0; }
  body.home .th .th-visual { grid-area: 1/2/3/3; width: 100% !important; height: auto !important; aspect-ratio: 4/5; align-self: center; margin: 0 !important; border-radius: 12px; background-size: auto 100% !important; background-position: center bottom !important; overflow: hidden; }
  body.home .th .th-lead { grid-area: 3/1/4/-1; margin: 14px 0 0 !important; font-size: 15px; line-height: 1.45; }
  body.home .th .th-cta { grid-area: 4/1/5/-1; margin: 14px 0 0 !important; gap: 12px; }
  body.home .th .th-cta a { min-height: 44px; }
  body.home .th .th-proof { grid-area: 5/1/6/-1; margin: 14px 0 0 !important; }
}
@media (max-width: 767px) {
  body.home section.th:has(#th-title) .th-in { display: grid !important; grid-template-columns: minmax(0,1fr) clamp(76px,24vw,132px) !important; gap: 0 12px !important; }
  body.home section.th:has(#th-title) .th-visual { min-width: 0 !important; min-height: 0 !important; justify-self: end; margin: 0 !important; }
}
@media (max-width: 767px) {
  body.home section.th:has(#th-title) .th-eyebrow { margin-bottom: 6px !important; }
  body.home section.th:has(#th-title) :is(.th-lead,.th-cta,.th-proof) { margin-top: 12px !important; }
  body.home section.th:has(#th-title) .th-visual { background-size: auto 132% !important; background-position: center top !important; }
  footer[data-elementor-id="1401"] .elementor-element:is(.elementor-element-c0a5ae5,.elementor-element-f601e30,.elementor-element-5081064,.elementor-element-2bf2bd9) { gap: 10px !important; padding: 0 !important; }
  footer[data-elementor-id="1401"] .elementor-element-ae9bb69 { flex-flow: row nowrap; align-items: center; gap: 12px; }
  footer[data-elementor-id="1401"] .elementor-element-5081064 { display: block; }
  footer[data-elementor-id="1401"] .elementor-element-83ef067 { padding: 8px 0 0; gap: 2px; }
  footer[data-elementor-id="1401"] .elementor-element-567357e ul { display: grid !important; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 8px; }
  footer[data-elementor-id="1401"] .elementor-element-567357e a { min-height: 44px; align-items: center; justify-content: center; }
}
@media (max-width:767px) {
  footer:is(.elementor-1401,#site-footer)[data-elementor-id="1401"] .e-con { min-height: 0 !important; padding-block: 0 !important; gap: 10px !important; }
  footer:is(.elementor-1401,#site-footer) .elementor-element-399e019 > .e-con-inner { padding-block: 18px !important; gap: 12px !important; }
  footer:is(.elementor-1401,#site-footer) .elementor-element-ae9bb69 { flex-direction: row !important; align-items: center !important; }
  footer:is(.elementor-1401,#site-footer) .elementor-element-5081064 { display: block !important; }
  footer:is(.elementor-1401,#site-footer) .elementor-element-567357e ul { display:grid !important; gap:8px !important; }
  footer:is(.elementor-1401,#site-footer) .elementor-element-567357e a { min-height:44px !important; }
  footer:is(.elementor-1401,#site-footer) .elementor-element-83ef067 { align-items:center !important; gap:0 !important; padding-top:8px !important; }
}

/* Mobile portrait alongside the introduction and booking links. */
@media (max-width: 767px) {
  body.home section.th:has(#th-title) .th-in { grid-template-columns: minmax(0, 1fr) 40% !important; column-gap: clamp(12px, 3vw, 20px) !important; }
  body.home section.th:has(#th-title) .th-visual { grid-area: 1 / 2 / 5 / 3; align-self: stretch; aspect-ratio: auto; max-height: none !important; background-size: cover !important; background-position: 50% 0 !important; }
  body.home section.th:has(#th-title) .th-lead { grid-column: 1; min-width: 0; }
  body.home section.th:has(#th-title) .th-cta { grid-column: 1; display: flex !important; flex-wrap: wrap; justify-content: flex-start; gap: 2px 12px !important; }
  body.home section.th:has(#th-title) .th-cta a { min-height: 40px; }
  body.home section.th:has(#th-title) .th-proof { grid-column: 1 / -1; }
}
@media (max-width: 767px) {
  body.home section.th #th-title { font-size: clamp(22px, 6.1vw, 36px) !important; line-height: 1.08 !important; min-width: 0; }
}
@media (max-width: 359px) {
  body.home section.th:has(#th-title) .th-visual { grid-row: 1 / 4; }
  body.home section.th:has(#th-title) .th-cta { grid-column: 1 / -1; }
}

/* Phone layout for the introduction, credentials, posts and footer. */
@media (max-width:767px) {
 body.home:has(#th-title) section.th:has(#th-title) .th-in { display:flex !important; flex-flow:column nowrap !important; align-items:center !important; gap:0 !important; text-align:center; }
 body.home:has(#th-title) section.th:has(#th-title) .th-visual { order:-1; align-self:center; width:clamp(100px,29vw,138px) !important; height:clamp(100px,29vw,138px) !important; border-radius:50%; background-size:auto 155% !important; background-position:center 5% !important; margin:0 auto 14px !important; }
 body.home:has(#th-title) section.th:has(#th-title) .th-eyebrow, body.home:has(#th-title) section.th #th-title { align-self:center; }
 body.home:has(#th-title) section.th #th-title { font-size:clamp(27px,7vw,38px) !important; }
 body.home:has(#th-title) section.th:has(#th-title) .th-lead { max-width:38ch; text-wrap:pretty; text-align:center !important; }
 body.home:has(#th-title) section.th:has(#th-title) .th-cta { justify-content:center !important; align-self:center !important; width:auto !important; }
 body.home:has(#th-title) section.th:has(#th-title) .th-proof { width:100%; }
 footer:is(.elementor-1401,#site-footer) [data-id="f601e30"],footer:is(.elementor-1401,#site-footer) [data-id="ae9bb69"] { align-items:center !important; justify-content:center !important; text-align:center !important; width:100%; }
 footer:is(.elementor-1401,#site-footer) [data-id="47c4517"] { text-align:center !important; margin-inline:auto; }
 body.home:has(#th-title) .elementor-5007 [data-id="a0315e7"] { display:grid !important; grid-template-columns:repeat(2,minmax(0,1fr)) !important; gap:10px !important; }
 body.home:has(#th-title) .elementor-5007 [data-id="a0315e7"] :is([data-id="a459b56"],[data-id="ad02491"],[data-id="885711b"],[data-id="d348805"],[data-id="d31531e"]) { width:100% !important; min-width:0; margin:0 !important; padding:12px 6px !important; text-align:center !important; }
 body.home:has(#th-title) [data-id="a459b56"] { grid-area:1/1 !important; } body.home:has(#th-title) [data-id="ad02491"] { grid-area:1/2 !important; }
 body.home:has(#th-title) [data-id="885711b"] { grid-area:2/1/3/-1 !important; } body.home:has(#th-title) [data-id="d348805"] { grid-area:3/1 !important; } body.home:has(#th-title) [data-id="d31531e"] { grid-area:3/2 !important; }
 body.home:has(#th-title) [data-id="a0315e7"] .elementor-image-box-wrapper { display:flex !important; flex-direction:column; align-items:center; gap:8px; text-align:center !important; }
 body.home:has(#th-title) [data-id="a0315e7"] .elementor-image-box-img { margin:0 auto !important; width:40px !important; }
 body.home:has(#th-title) [data-id="a0315e7"] .elementor-image-box-title {font-size:16px !important; line-height:1.2 !important; text-wrap:balance;}
 body.home:has(#th-title) [data-id="a0315e7"] .elementor-image-box-description {font-size:14px !important;line-height:1.4 !important;}
 body.home:has(#th-title) .elementor-5007 [data-id="663f64a"] {padding-block:28px !important;}
 body.home:has(#th-title) [data-id="663f64a"] > .e-con-inner {gap:12px !important;}
 body.home:has(#th-title) [data-id="1b03e76"] {position:relative;}
 body.home:has(#th-title) [data-id="1b03e76"] .swiper {padding-bottom:0 !important;}
 body.home:has(#th-title) [data-id="1b03e76"] .elementor-swiper-button {position:absolute !important; top:58px !important; bottom:auto !important; transform:none !important; width:36px !important; height:36px !important; display:grid; place-items:center; background:#fff; color:#171717; border-radius:50%; box-shadow:0 1px 5px #0003; z-index:3;}
 body.home:has(#th-title) [data-id="1b03e76"] .elementor-swiper-button-prev {left:8px !important;right:auto !important;} body.home:has(#th-title) [data-id="1b03e76"] .elementor-swiper-button-next {right:8px !important;left:auto !important;}
 body.home:has(#th-title) [data-id="1b03e76"] .swiper-pagination {position:static !important;height:auto !important;padding:4px 0 !important;}
}
/* Keep the role on one line and bring the biography closer to the logos. */
@media (max-width: 767px) {
 body.home section.th:has(#th-title) .th-eyebrow { width:100%; justify-content:center; white-space:nowrap !important; font-size:clamp(10px,2.8vw,12px) !important; gap:7px; }
 body.home:has(#th-title) [data-id="7f3919e"] > .e-con-inner { padding-block:16px !important; gap:10px !important; }
 body.home:has(#th-title) [data-id="b4704c8"] > .e-con-inner { padding-top:18px !important; gap:18px !important; }
 body.home:has(#th-title) [data-id="b304128"] { order:-1 !important; }
}
/* Wider mobile portrait with an offset corner and natural headroom. */
@media (max-width:767px) {
 body.home:has(#th-title) section.th:has(#th-title) .th-visual { width:clamp(158px,45vw,196px) !important; height:clamp(146px,40vw,174px) !important; border-radius:28px 8px 28px 8px !important; background-size:auto 126% !important; background-position:center 7px !important; background-repeat:no-repeat !important; }
}
/* Mobile editorial alignment. */
@media (max-width:767px) {
 body.home:has(#th-title) :is(.th-lead,[data-id="b304128"],[data-id="b304128"] p,[data-id="b304128"] h2,[data-id="ad262e5"],[data-id="ad262e5"] h2) { text-align:center !important; }
 body.home:has(#th-title) [data-id="ad262e5"] { width:100% !important; margin-inline:auto !important; }
 body.home:has(#th-title) :is([data-id="a459b56"],[data-id="ad02491"]) figure.elementor-image-box-img { display:grid !important; place-items:center; width:100% !important; height:44px !important; }
 body.home:has(#th-title) :is([data-id="a459b56"],[data-id="ad02491"]) figure img { display:block; max-width:100% !important; max-height:38px; object-fit:contain; margin:auto !important; }
 body.home:has(#th-title) [data-id="1b03e76"] .swiper-pagination { display:none !important; }
 body.home:has(#th-title) [data-id="1b03e76"] [data-id="368252b"] { min-height:0 !important; height:auto !important; padding:0 0 10px !important; }
 body.home:has(#th-title) [data-id="1b03e76"] [data-id="db2dc89"] { width:100%;margin:0 0 10px !important; }
 body.home:has(#th-title) [data-id="1b03e76"] [data-id="db2dc89"] img { display:block;width:100% !important;height:auto !important;aspect-ratio:2 / 1;object-fit:cover;border-radius:12px; }
 body.home:has(#th-title) [data-id="1b03e76"] :is([data-id="d3b9990"],h3,[data-id="fd825fd"]) {text-align:center !important;}
 body.home:has(#th-title) [data-id="1b03e76"] h3 { font-size:clamp(17px,4.6vw,21px) !important;line-height:1.35 !important;text-wrap:balance; }
 body.home:has(#th-title) [data-id="1b03e76"] [data-id="fd825fd"] ul {justify-content:center !important;}
}
