/* Editorial 2027 — softer display type, restrained scale, handwritten accents. */
@font-face{
  font-family:"Hanieh Dast Nevis";
  src:url("./farsi-dast-nevis.woff") format("woff");
  font-style:normal;
  font-weight:400;
  font-display:swap;
}
:root{
  --hs-display-en:"Cormorant Garamond", Georgia, serif;
  --hs-display-fa:"Noto Naskh Arabic","Vazirmatn",sans-serif;
  --hs-hand-en:"Caveat",cursive;
  --hs-hand-fa:"Hanieh Dast Nevis","Noto Nastaliq Urdu","Noto Naskh Arabic","Vazirmatn",serif;
}

/* Major page titles: softer and less visually oversized. */
body.lang-en .home-hero-copy-v2 h1{font-family:var(--hs-display-en)!important;font-weight:600!important;letter-spacing:-.022em!important;font-size:clamp(42px,4.6vw,60px)!important;line-height:1.02!important;max-width:12ch;text-wrap:balance}
body.lang-fa .home-hero-copy-v2 h1{font-family:var(--hs-display-fa)!important;font-weight:700!important;letter-spacing:0!important;font-size:clamp(38px,4.4vw,56px)!important;line-height:1.42!important;max-width:15ch;text-wrap:balance}
body.lang-en :is(.home-section-head,.home-diagnostic-copy-v2,.home-flagship-copy-v2,.home-about-copy-v2,.home-cta-copy-v2) h2{font-family:var(--hs-display-en)!important;font-weight:600!important;letter-spacing:-.018em!important;font-size:clamp(29px,3vw,40px)!important;line-height:1.12!important}
body.lang-fa :is(.home-section-head,.home-diagnostic-copy-v2,.home-flagship-copy-v2,.home-about-copy-v2,.home-cta-copy-v2) h2{font-family:var(--hs-display-fa)!important;font-weight:700!important;letter-spacing:0!important;font-size:clamp(28px,2.9vw,38px)!important;line-height:1.5!important}
body.lang-en :is(.home-hero-copy-v2,.about-hero-copy,.page-hero-v3,.service-detail-copy-v3,.decision-service-hero,.flagship-standard-hero,.archive-hero,.article-hero) h1,
body.lang-en :is(.home-section-head,.home-diagnostic-copy-v2,.home-flagship-copy-v2,.home-about-copy-v2,.home-cta-copy-v2,.section-title,.story-content,.service-detail-content-v3,.decision-section,.article-body) h2{
  font-family:var(--hs-display-en)!important;
  font-weight:600!important;
  letter-spacing:-.022em!important;
  text-wrap:balance;
}
body.lang-fa :is(.home-hero-copy-v2,.about-hero-copy,.page-hero-v3,.service-detail-copy-v3,.decision-service-hero,.flagship-standard-hero,.archive-hero,.article-hero) h1,
body.lang-fa :is(.home-section-head,.home-diagnostic-copy-v2,.home-flagship-copy-v2,.home-about-copy-v2,.home-cta-copy-v2,.section-title,.story-content,.service-detail-content-v3,.decision-section,.article-body) h2{
  font-family:var(--hs-display-fa)!important;
  font-weight:700!important;
  letter-spacing:0!important;
  text-wrap:balance;
}

body.lang-en :is(.page-hero-v3,.service-detail-copy-v3,.decision-service-hero,.flagship-standard-hero) h1{
  font-size:clamp(38px,4.25vw,58px)!important;
  line-height:1.05!important;
}
body.lang-fa :is(.page-hero-v3,.service-detail-copy-v3,.decision-service-hero,.flagship-standard-hero) h1{
  font-size:clamp(36px,4.25vw,54px)!important;
  line-height:1.38!important;
}
body.lang-en :is(.page-content-v3 .story-content,.service-detail-content-v3,.decision-section,.section-title) h2{
  font-size:clamp(28px,3vw,40px)!important;
  line-height:1.13!important;
}
body.lang-fa :is(.page-content-v3 .story-content,.service-detail-content-v3,.decision-section,.section-title) h2{
  font-size:clamp(27px,3vw,38px)!important;
  line-height:1.48!important;
}

/* Handwritten notes are accents, never primary body copy. */
.home-hero-handnote{margin:10px 0 14px;opacity:.92}
body.lang-fa .home-hero-handnote{margin:7px 0 8px;align-self:flex-start}
.internal-hero-handnote{margin:12px 0 18px;font-size:clamp(24px,2.5vw,34px)!important}
body.lang-fa .internal-hero-handnote{margin:8px 0 13px;font-size:clamp(21px,2.3vw,30px)!important}

.hs-handnote,.editorial-handnote,.article-handnote{
  display:inline-block;
  color:#079ed0;
  font-weight:600;
  transform:rotate(-3deg);
  transform-origin:center;
  line-height:1.05;
}
body.lang-en :is(.hs-handnote,.editorial-handnote,.article-handnote){font-family:var(--hs-hand-en);font-size:clamp(28px,3vw,42px)}
body.lang-fa :is(.hs-handnote,.editorial-handnote,.article-handnote){font-family:var(--hs-hand-fa)!important;font-size:clamp(28px,3.1vw,42px);font-weight:400!important;line-height:1.65;letter-spacing:0!important;transform:rotate(-2deg)}

/* Editorial titles should breathe without becoming huge. */
.page-hero-v3 .lead,.service-detail-copy-v3 .lead{max-width:64ch}
.page-hero-v3 h1,.service-detail-copy-v3 h1{max-width:18ch}
body.lang-fa .page-hero-v3 h1,body.lang-fa .service-detail-copy-v3 h1{max-width:20ch}

@media(max-width:767px){
  body.lang-en :is(.page-hero-v3,.service-detail-copy-v3,.decision-service-hero,.flagship-standard-hero) h1{font-size:clamp(34px,10vw,44px)!important;line-height:1.08!important}
  body.lang-fa :is(.page-hero-v3,.service-detail-copy-v3,.decision-service-hero,.flagship-standard-hero) h1{font-size:clamp(33px,9vw,42px)!important;line-height:1.5!important}
  body.lang-en :is(.page-content-v3 .story-content,.service-detail-content-v3,.decision-section,.section-title) h2{font-size:clamp(26px,8vw,34px)!important}
  body.lang-fa :is(.page-content-v3 .story-content,.service-detail-content-v3,.decision-section,.section-title) h2{font-size:clamp(25px,7.8vw,33px)!important;line-height:1.55!important}
  .hs-handnote,.editorial-handnote,.article-handnote{max-width:100%;overflow-wrap:anywhere}
}

/* Flagship page — 2027 editorial cover + readable dark sections. */
.organization-transformation-page .flagship-standard-hero{padding-bottom:36px}
.organization-transformation-page .flagship-parallax-cover{position:relative;height:clamp(420px,48vw,620px);margin-top:38px;border-radius:32px;overflow:hidden;background-size:cover;background-position:center 50%;background-repeat:no-repeat;background-attachment:fixed;box-shadow:0 30px 80px rgba(18,16,68,.18);border:1px solid rgba(8,180,232,.16);isolation:isolate}
.organization-transformation-page .flagship-parallax-cover:after{content:"";position:absolute;inset:0;z-index:0;background:linear-gradient(180deg,rgba(8,13,45,.06),rgba(8,13,45,.22) 55%,rgba(8,13,45,.68));pointer-events:none}
.organization-transformation-page .flagship-cover-caption{position:absolute;z-index:1;inset-inline-start:34px;bottom:30px;width:min(560px,calc(100% - 68px));color:#fff;display:grid;gap:7px}
.organization-transformation-page .flagship-cover-caption>span{font-size:10px;font-weight:900;letter-spacing:.09em;color:#8ee8ff}
body.lang-fa .organization-transformation-page .flagship-cover-caption>span{letter-spacing:0}
.organization-transformation-page .flagship-cover-caption>strong{font-family:var(--hs-display-en);font-size:clamp(28px,3.2vw,43px);line-height:1.08;font-weight:600;max-width:15ch}
body.lang-fa .organization-transformation-page .flagship-cover-caption>strong{font-family:var(--hs-display-fa);line-height:1.55;font-size:clamp(25px,3vw,38px);max-width:18ch}
.organization-transformation-page .flagship-cover-caption .hs-handnote{color:#8ee8ff;font-size:clamp(25px,2.7vw,38px);justify-self:start}
body.lang-fa .organization-transformation-page .flagship-cover-caption .hs-handnote{font-size:clamp(22px,2.5vw,32px)}

.organization-transformation-page .internal-jumpbar{top:94px;margin:18px auto 0;background:transparent;border:0;box-shadow:none;padding-inline:16px}
.organization-transformation-page .internal-jumpbar .container{background:rgba(255,255,255,.94);-webkit-backdrop-filter:blur(14px);backdrop-filter:blur(14px);border:1px solid rgba(27,23,91,.09);border-radius:20px;box-shadow:0 12px 34px rgba(27,23,91,.06);padding:10px;gap:7px}
.organization-transformation-page .internal-jumpbar a{background:#f9fcfe;border-color:rgba(27,23,91,.08)}

.organization-transformation-page .capacity-card{color:#fff!important;background:linear-gradient(145deg,#17134f,#121044)!important}
.organization-transformation-page .capacity-card h2{color:#fff!important}
.organization-transformation-page .capacity-card p{color:rgba(255,255,255,.76)!important}
.organization-transformation-page .capacity-card .decision-microcopy{color:rgba(255,255,255,.7)!important}
.organization-transformation-page .capacity-card .flagship-keyfacts span{background:#fff!important;color:#1b175b!important;border-color:rgba(142,232,255,.28)!important}
.organization-transformation-page .capacity-card .btn-primary{background:#fff!important;border-color:#fff!important;color:#1b175b!important}
.organization-transformation-page .capacity-card .btn-primary:hover{background:#eaf8fd!important}

/* Undo the global scroll-table fallback for this controlled desktop table. */
.organization-transformation-page .analysis-table{display:table!important;width:100%!important;max-width:100%!important;table-layout:fixed!important;overflow:hidden!important;border-collapse:separate!important;border-spacing:0!important}
.organization-transformation-page .analysis-table thead{display:table-header-group!important}
.organization-transformation-page .analysis-table tbody{display:table-row-group!important}
.organization-transformation-page .analysis-table tr{display:table-row!important}
.organization-transformation-page .analysis-table th,.organization-transformation-page .analysis-table td{display:table-cell!important;width:auto!important;max-width:none!important;vertical-align:top!important;overflow-wrap:break-word}
.organization-transformation-page .analysis-table th{background:#1b175b!important;color:#fff!important}
.organization-transformation-page .analysis-table td:first-child{width:auto!important}
body.lang-fa .organization-transformation-page .analysis-table th,body.lang-fa .organization-transformation-page .analysis-table td{text-align:right!important;line-height:1.85}

@media(max-width:900px){
  .organization-transformation-page .flagship-parallax-cover{background-attachment:scroll;height:430px;background-position:center center}
  .organization-transformation-page .internal-jumpbar{top:auto;margin-top:12px;padding-inline:0}
  .organization-transformation-page .internal-jumpbar .container{border-radius:0;border-inline:0;box-shadow:none;background:#fff}
}
@media(max-width:767px){
  .organization-transformation-page .flagship-parallax-cover{height:360px;margin-top:26px;border-radius:24px;background-position:center center}
  .organization-transformation-page .flagship-cover-caption{inset-inline-start:20px;bottom:18px;width:calc(100% - 40px)}
  .organization-transformation-page .flagship-cover-caption>strong{font-size:28px}.organization-transformation-page .flagship-cover-caption .hs-handnote{font-size:24px!important}
  .organization-transformation-page .analysis-table,.organization-transformation-page .analysis-table tbody,.organization-transformation-page .analysis-table tr,.organization-transformation-page .analysis-table td{display:block!important;width:100%!important;max-width:100%!important}
  .organization-transformation-page .analysis-table thead{display:none!important}
  .organization-transformation-page .analysis-table tr{padding:13px 14px!important;border-bottom:1px solid rgba(27,23,91,.1)}
  .organization-transformation-page .analysis-table td{padding:5px 0!important;border:0!important}
}
