/* Polish v5, loaded after polish.css.
   One typeface for the entire site, every word: IBM Plex Sans.
   Why this font: it was designed for a global institution, it reads as rigorous, factual and data led,
   and it has the full range of weights, so headings, body text, labels, buttons and numbers
   all come from one family. That gives a policy intelligence brand a single, serious voice.
   Highlight words keep their colour only: gold on dark sections, blue on light sections. */

:root{--f-one:'IBM Plex Sans','Segoe UI',system-ui,sans-serif}
body,body *:not(svg):not(path):not(i){font-family:var(--f-one)!important}

/* headings */
.ch-hero .ch-h1,.who-heading,.articles-heading,.who-we-serve-heading,.faq-title,.fa-text h2,.wy-title,.cf-cta-title{font-weight:600;font-style:normal;letter-spacing:-.025em}
.articles-heading,.who-we-serve-heading,.faq-title,.wy-title{font-size:clamp(30px,3.3vw,44px);line-height:1.12}
.who-heading{line-height:1.16}
.fa-text h2{line-height:1.15}
.cf-cta-title{font-size:clamp(30px,3.6vw,48px);line-height:1.1}
.p-accent,.who-word-accent,.ch-hero .ch-h1 em,.cf-cta-title em{font-style:normal;font-weight:600;font-size:1em;letter-spacing:inherit;line-height:inherit}
.who-word-accent{margin-right:.28em}
.ch-hero .ch-h1 em{color:var(--c-gold-soft)}

/* hero headline on two lines like the original, sized to leave clear space before the globe */
.ch-hero .ch-h1{line-height:1.08;font-size:clamp(30px,min(4.3vw,7vh),60px)}
@media(min-width:801px){
  .ch-hero .ch-h1{font-size:clamp(24px,min(3.5vw,6.4vh),54px);text-wrap:nowrap}
  .ch-hero .ch-h1 .ch-ln{white-space:nowrap}
}

/* card titles, numbers and small text */
.who-pillar-text h3,.wy-card h3,.articles-bento-side-text h3,.articles-bento-overlay h3,.who-we-serve-card-label,.faq-question{font-weight:600;letter-spacing:-.01em}
.wy-big,.wy-chip b{font-weight:600;letter-spacing:-.03em}
.cf-word{font-weight:700;letter-spacing:.06em;font-size:min(14vw,200px);margin-right:-.06em}
.ch-mark-word{font-weight:600}
.who-copy,.who-we-serve-desc,.wy-head-side p,.articles-sub,.faq-desc,.fa-text p,.wy-card p,.who-pillar-text p{letter-spacing:0}

/* ---------- v5 fixes ---------- */
/* hero opening: the CAHNDU wordmark and its tagline keep their original font */
.ch-mark,.ch-mark *{font-family:'Manrope','Segoe UI',system-ui,sans-serif!important}

/* lighter images: compressed copies of the two Who We Are photos */
.who-pillar-graphic-a{background-image:linear-gradient(180deg,rgba(11,27,77,.15) 0%,rgba(11,23,42,.65) 100%),url('img/opt/Policy_Intelligence_card.webp')}
.who-pillar-graphic-b{background-image:linear-gradient(180deg,rgba(11,27,77,.15) 0%,rgba(11,23,42,.65) 100%),url('img/opt/Regional_and_Global_Markets_card.webp')}

/* Independent Analysis panels: text centred in the space below the header, calmer steps (ticks stay Cahndu blue) */
.fa-text{padding-top:92px;padding-bottom:24px;box-sizing:border-box}
@media(min-width:821px){
  .fa-wrap{height:185vh}
  .fa-half{transition:transform 800ms cubic-bezier(.65,0,.35,1)}
}
@media(min-width:821px) and (max-height:760px){
  .fa-text h2{font-size:30px}
  .fa-text p{font-size:13.5px;line-height:1.6;margin-bottom:8px}
  .fa-list{margin:8px 0 14px;gap:6px}
  .fa-list li{font-size:12.5px}
}

/* Insights on the homepage: each card opens its article, plus a link to the full Insights page */
.articles-bento-card{position:relative}
.articles-card-link{position:absolute;inset:0;z-index:3;border-radius:inherit}
.articles-card-link:focus-visible{outline:2px solid var(--c-gold-soft);outline-offset:3px}
.articles-more{position:relative;z-index:1;display:flex;justify-content:center;margin-top:44px}
.articles-all{display:inline-flex;align-items:center;gap:10px;height:48px;padding:0 24px;border-radius:999px;background:var(--c-ivory);color:var(--c-navy);font-weight:600;font-size:14.5px;text-decoration:none;transition:background .25s ease}
.articles-all:hover{background:var(--c-gold-soft)}

/* tablet: stacked hero headline sized to fit the screen */
@media(min-width:761px) and (max-width:1100px){
  .ch-hero.is-stacked .ch-h1{font-size:clamp(30px,4.6vw,48px);text-wrap:wrap}
  .ch-hero.is-stacked .ch-h1 .ch-ln{white-space:normal}
}

/* landscape tablets and small laptops: headline wraps before the globe */
@media(min-width:801px) and (max-width:1280px){
  .ch-hero:not(.is-stacked) .ch-h1{font-size:clamp(26px,3vw,40px);max-width:42vw;text-wrap:wrap}
  .ch-hero:not(.is-stacked) .ch-h1 .ch-ln{white-space:normal;display:inline}
  .ch-hero:not(.is-stacked) .ch-eyebrow{max-width:42vw}
}

/* mobile: Insights cards stack in one column so every article shows with its picture */
@media(max-width:860px){
  .articles-bento{grid-template-columns:1fr!important;grid-template-rows:none!important;gap:16px}
  .articles-bento .articles-bento-card{grid-column:1/-1!important;grid-row:auto!important}
  .articles-bento .articles-bento-side .articles-photo{flex:none;height:210px;min-height:0}
  .articles-bento .articles-bento-mid{min-height:240px}
  .articles-bento .articles-bento-mid .articles-photo{position:absolute;inset:0;height:100%}
  .articles-bento .articles-bento-overlay{z-index:2}
}

/* mobile and tablet: Independent Analysis becomes three stacked stories, picture on top, text below, each revealed as it scrolls in */
@media(max-width:820px){
  .fa-wrap{height:auto!important;padding:64px 0 8px}
  .fa-stage{position:relative;height:auto;overflow:visible}
  .fa-page{position:relative;inset:auto;height:auto;display:flex;flex-direction:column;padding:0 20px 64px;max-width:640px;margin:0 auto}
  .fa-page .fa-half{position:relative;display:block!important;width:100%;height:auto;left:auto!important;transform:none!important;transition:none}
  .fa-page .fa-half.fa-img-half{order:-1}
  .fa-half-inner.has-img{height:62vw;max-height:360px;border-radius:22px;overflow:hidden;box-shadow:0 24px 50px rgba(0,0,0,.35)}
  .fa-half-inner.no-img{background:none;height:auto}
  .fa-text{height:auto;padding:26px 2px 0;justify-content:flex-start}
  .fa-text h2{font-size:clamp(28px,7.4vw,36px)}
  .fa-text p,.fa-list li{max-width:none}
  .fa-text p{font-size:14.5px}
  .fa-list li{font-size:13.5px}
  .fa-nav{display:none}
  .fa-page::before{content:attr(data-n);position:absolute;right:26px;top:14px;z-index:3;font-size:12px;font-weight:600;letter-spacing:.16em;color:#F4EFE6;background:rgba(3,6,14,.55);border:1px solid rgba(244,239,230,.18);border-radius:999px;padding:6px 11px;-webkit-backdrop-filter:blur(8px);backdrop-filter:blur(8px)}
  /* reveal motion */
  .fa-m .fa-half-inner.has-img{clip-path:inset(10% 8% 10% 8% round 22px);transform:scale(1.06);transition:clip-path 1.1s cubic-bezier(.16,1,.3,1),transform 1.4s cubic-bezier(.16,1,.3,1)}
  .fa-m .fa-text>*{opacity:0;transform:translateY(26px);transition:opacity .8s cubic-bezier(.16,1,.3,1),transform .8s cubic-bezier(.16,1,.3,1)}
  .fa-m .fa-list li{opacity:0;transform:translateX(-14px);transition:opacity .6s ease,transform .6s cubic-bezier(.16,1,.3,1)}
  .fa-m .fa-page::before{opacity:0;transition:opacity .6s ease .5s}
  .fa-m .fa-page.m-in .fa-half-inner.has-img{clip-path:inset(0 0 0 0 round 22px);transform:none}
  .fa-m .fa-page.m-in .fa-text>*{opacity:1;transform:none}
  .fa-m .fa-page.m-in .fa-text>:nth-child(1){transition-delay:.25s}
  .fa-m .fa-page.m-in .fa-text>:nth-child(2){transition-delay:.35s}
  .fa-m .fa-page.m-in .fa-text>:nth-child(3){transition-delay:.45s}
  .fa-m .fa-page.m-in .fa-text>:nth-child(4){transition-delay:.55s}
  .fa-m .fa-page.m-in .fa-text>:nth-child(5){transition-delay:.6s}
  .fa-m .fa-page.m-in .fa-text>:nth-child(6){transition-delay:.7s}
  .fa-m .fa-page.m-in .fa-list li{opacity:1;transform:none}
  .fa-m .fa-page.m-in .fa-list li:nth-child(1){transition-delay:.75s}
  .fa-m .fa-page.m-in .fa-list li:nth-child(2){transition-delay:.85s}
  .fa-m .fa-page.m-in .fa-list li:nth-child(3){transition-delay:.95s}
  .fa-m .fa-page.m-in::before{opacity:1}
}
@media(max-width:820px) and (prefers-reduced-motion:reduce){
  .fa-m .fa-half-inner.has-img,.fa-m .fa-text>*,.fa-m .fa-list li,.fa-m .fa-page::before{opacity:1!important;transform:none!important;clip-path:none!important;transition:none!important}
}
