/* site-chrome.css — header + footer shared by the main site, chart insights,
   white papers and annual reports. Generated from main-site-mck.css. */
:root{--navy:      #051C2C;   /* primary dark ground */
  --navy-2:    #06212F;   /* dark panels */
  --navy-3:    #0B2A3B;   /* dark cards */
  --ink:       #051C2C;   /* text on light */
  --ink-soft:  #34454F;   /* muted body on light */
  --ink-faint: #5C6B74;
  --paper:     #FFFFFF;
  --paper-2:   #F4F6F7;   /* light grey section */
  --paper-3:   #ECEFF1;
  --line:      #E0E5E8;   /* hairline on light */
  --line-dk:   rgba(255,255,255,.16); /* hairline on dark */
  --accent:    #2251FF;   /* McKinsey blue */
  --accent-2:  #1a41d6;
  --accent-cy: #00A9F4;   /* cyan, sparing */
  --on-navy:   #FFFFFF;
  --on-navy-soft: rgba(255,255,255,.72);
  --on-navy-faint: rgba(255,255,255,.52);

  --max: 1200px;
  --gutter: clamp(20px, 5vw, 64px);
  --sec-y: clamp(56px, 8vw, 120px);

  --font-display: "Spectral", "Noto Serif SC", Georgia, "Songti SC", serif;
  --font-sans: "Inter", "Noto Sans SC", -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;

  /* Type scale — mirrors assets/main-site-mck.css */
  --fs-hero:    clamp(46px, calc(4.4vw + 14px), 78px);
  --fs-h1:      clamp(40px, calc(3.6vw + 14px), 64px);
  --fs-h2:      clamp(28px, 3.6vw, 44px);
  --fs-h2-sm:   clamp(22px, 2.2vw, 30px);
  --fs-quote:   clamp(22px, 2.6vw, 34px);
  --fs-h3:      clamp(19px, 1.7vw, 23px);
  --fs-h4:      17.5px;
  --fs-lead:    clamp(17px, 1.5vw, 21px);
  --fs-read:    17px;
  --fs-body:    16px;
  --fs-body-sm: 15px;
  --fs-meta:    15px;
  --fs-label:   15px;
  --fs-ui:      15px;
  --fs-nav:     15px;

  --radius: 4px;
  --ease: cubic-bezier(.22,.61,.36,1);}
*{box-sizing:border-box;}
html{-webkit-text-size-adjust:100%; scroll-behavior:smooth;}
body{margin:0;
  font-family:var(--font-sans);
  color:var(--ink);
  background:var(--paper);
  font-size:16px;
  line-height:1.6;
  -webkit-font-smoothing:antialiased;
  text-rendering:optimizeLegibility;}
img{max-width:100%; display:block;}
a{color:inherit; text-decoration:none;}
button{font:inherit; cursor:pointer;}
.wrap{width:100%; max-width:var(--max); margin:0 auto; padding-left:var(--gutter); padding-right:var(--gutter);}
.btn{display:inline-flex; align-items:center; justify-content:center; gap:10px;
  height:50px; padding:0 24px; border-radius:var(--radius);
  font-size:var(--fs-ui); font-weight:600; letter-spacing:.01em; line-height:1;
  border:1px solid var(--ink); color:var(--ink); background:transparent;
  transition:all .25s var(--ease);}
.btn .ar{display:inline-flex; transition:transform .25s var(--ease);}
.btn:hover .ar{transform:translateX(4px);}
.btn.primary{background:var(--accent); border-color:var(--accent); color:#fff;}
.btn.primary:hover{background:var(--accent-2); border-color:var(--accent-2);}
.btn.ghost{border-color:var(--line); color:var(--ink);}
.btn.ghost:hover{border-color:var(--ink);}
.btn.on-dark{border-color:rgba(255,255,255,.4); color:#fff;}
.btn.on-dark:hover{background:rgba(255,255,255,.08); border-color:#fff;}
.btn.lg{padding:0 30px; font-size:16px;}
.siteHeader{position:sticky; top:0; z-index:60;
  background:var(--navy);
  border-bottom:0;}
.navBar{display:grid;
  grid-template-columns:auto minmax(0,1fr) auto;
  align-items:center;
  gap:24px;
  height:86px;
  max-width:1440px;}
.brand{display:flex; align-items:center; gap:12px; color:#fff; min-width:0;}
.brand .logo{height:34px; width:auto; display:block; flex:0 0 auto;}
.brand .bname{font-family:var(--font-display); font-weight:700; font-size:27px; letter-spacing:0; line-height:.98; white-space:nowrap;}
.brand .bsub{font-size:15px; color:#fff; letter-spacing:0; text-transform:none; margin-top:2px; font-weight:600; line-height:1.05; white-space:nowrap;}
.brand .stack{display:flex; flex-direction:column; line-height:1.05;}
.primaryNav{display:flex; align-items:center; gap:22px; min-width:0;}
.primaryNav a{color:#fff; font-size:var(--fs-nav); font-weight:600;
  padding:0; border-radius:0; transition:color .2s;
  white-space:nowrap;}
.primaryNav a:hover{color:var(--accent-cy); background:transparent;}
.primaryNav a.active{color:#fff;}
.primaryNav a.active::after{display:none;}
.navRight{display:flex; align-items:center; gap:7px; color:#fff; align-self:center;}
.topMini,.topSep{color:#fff; font-size:var(--fs-nav); line-height:1; font-weight:600;}
.topMini:hover{color:var(--accent-cy);}
.primaryNav .navItem{position:relative; display:flex; align-items:center;}
.megaMenu{position:absolute; top:100%; left:0; min-width:210px;
  background:#fff; border:1px solid var(--line); border-radius:var(--radius);
  box-shadow:0 26px 64px -26px rgba(5,28,44,.55); padding:10px;
  opacity:0; visibility:hidden; transform:translateY(10px);
  transition:opacity .2s var(--ease), transform .2s var(--ease); z-index:75;}
.megaMenu::before{content:""; position:absolute; top:-12px; left:0; right:0; height:12px;}
.primaryNav .navItem:hover .megaMenu,
.primaryNav .navItem:focus-within .megaMenu{opacity:1; visibility:visible; transform:translateY(0);}
.mmLink{display:block; padding:11px 14px; border-radius:var(--radius); color:var(--ink) !important;}
.mmLink:hover{background:var(--paper-2);}
.mmLink b{display:block; font-size:var(--fs-nav); font-weight:600;}
.mmLink span{display:block; font-size:15px; color:var(--ink-faint); margin-top:3px; line-height:1.45;}
.navToggle{display:none; background:transparent; border:0; padding:8px;}
.mckMenuButton{display:none; width:40px; height:40px; padding:7px 0;}
.navToggle span{display:block; width:26px; height:2px; background:#fff; margin:6px 0; transition:.25s var(--ease);}
.drawer{position:fixed; inset:0 0 0 auto; width:min(86vw,360px);
  background:var(--navy-2); z-index:80; transform:translateX(100%);
  transition:transform .3s var(--ease); padding:88px 28px 32px;
  display:flex; flex-direction:column; gap:4px; border-left:1px solid var(--line-dk);}
.drawer.open{transform:translateX(0);}
.drawer a{color:var(--on-navy-soft); font-size:18px; padding:14px 4px; border-bottom:1px solid var(--line-dk);}
.drawer a:hover{color:#fff;}
.drawer .btn{margin-top:18px;}
.scrim{position:fixed; inset:0; background:rgba(3,14,22,.55); z-index:70; opacity:0; visibility:hidden; transition:.3s;}
.scrim.open{opacity:1; visibility:visible;}
.drawerClose{position:absolute; top:20px; right:22px; background:transparent; border:0; color:#fff; font-size:30px; line-height:1;}
@keyframes fade{ from{ opacity:0; transform:translateY(8px);} to{ opacity:1; transform:none; } }
.hero .wrap{position:relative; z-index:2;}
.heroArt img{width:100%; height:clamp(320px,42vw,520px); object-fit:cover; border-radius:var(--radius);}
.mckHeroMedia img{width:100%; height:clamp(340px,42vw,560px); object-fit:cover; border-radius:0;}
.spotlightSide a{display:block; padding:22px 0; border-top:1px solid var(--line);}
.spotlightSide a:hover b{color:var(--accent);}
.capabilityRows a{display:grid; grid-template-columns:70px minmax(170px,.42fr) 1fr; gap:clamp(18px,3vw,42px); align-items:baseline; padding:24px 0; border-bottom:1px solid var(--line);}
.capabilityRows a:hover b{color:var(--accent);}
.processMedia img{width:100%; height:clamp(320px,36vw,500px); object-fit:cover; border-radius:0;}
@media (max-width:980px){
.capabilityRows a{grid-template-columns:56px 1fr;}
}
@media (max-width:640px){
.capabilityRows a{grid-template-columns:1fr; gap:8px; padding:22px 0;}
}
.mkImageStory img{width:100%; height:100%; min-height:inherit; object-fit:cover; filter:saturate(.94) contrast(1.04); transition:transform .45s var(--ease);}
.mkImageStory:hover img,.mkFounderFeature:hover img,.mkWhitepaperHero:hover img{transform:scale(1.035);}
.mkFounderFeature img{width:100%; height:100%; min-height:765px; object-fit:cover; object-position:center top; filter:saturate(.9) contrast(1.02);}
.mkWhitepaperHero img{position:absolute; inset:0; width:100%; height:100%; object-fit:cover; object-position:center; opacity:.82; transition:transform .5s var(--ease);}
.mkChartGrid>.btn{justify-self:end; margin-top:96px; min-width:200px; justify-content:center; border-color:rgba(255,255,255,.74);}
.mkLatestList a{display:grid; grid-template-columns:130px 1fr; gap:clamp(18px,3vw,42px); padding:24px 0; border-bottom:1px solid var(--line); align-items:baseline;}
.mkLatestList a:hover b{color:var(--accent);}
.mkHelpRows a{display:grid; grid-template-columns:minmax(190px,.34fr) 1fr; gap:clamp(24px,4vw,64px); padding:25px 0; border-bottom:1px solid var(--line); align-items:baseline;}
.mkHelpRows a:hover b{color:var(--accent);}
.mkImpactList a{display:grid; grid-template-columns:minmax(150px,.28fr) 1fr; gap:clamp(22px,4vw,62px); padding:25px 0; border-bottom:1px solid var(--line); align-items:baseline;}
.mkImpactList a:hover b{color:var(--accent);}
.mkAboutGrid .btn{white-space:nowrap;}
@media(max-width:1180px){
.navBar{grid-template-columns:auto minmax(0,1fr) auto; gap:18px;}
.primaryNav{gap:15px;}
.primaryNav a{font-size:15px;}
.mkFounderFeature,.mkFounderFeature img{min-height:680px;}
}
@media(max-width:980px){
.navBar{grid-template-columns:44px 1fr auto;}
.primaryNav{display:none;}
.navToggle{display:block;}
.mkFounderFeature,.mkFounderFeature img{min-height:520px;}
}
@media(max-width:840px){
.mkStoryMasonry,.mkHeroRight,.mkChartGrid,.mkChartEpisode,.mkLatestGrid,.mkHowHead,.mkHelpRows a,.mkImpactGrid,.mkImpactList a,.mkAboutGrid{grid-template-columns:1fr;}
.mkFounderFeature,.mkFounderFeature img{min-height:500px;}
.mkChartGrid>.btn{justify-self:start; margin-top:0;}
.mkLatestList a{grid-template-columns:1fr; gap:10px;}
}
@media(max-width:520px){
.navBar{height:72px; grid-template-columns:38px 1fr auto; gap:12px;}
.brand .bname{font-size:22px;}
.brand .bsub{font-size:15px;}
.brand .logo{height:26px;}
.topMini,.topSep{display:none;}
.mkFounderFeature,.mkFounderFeature img{min-height:460px;}
}
.logoRow img{height:clamp(38px,4.4vw,58px); width:auto; object-fit:contain;
  filter:grayscale(1) opacity(.62); transition:.3s var(--ease);}
.logoRow img:hover{filter:grayscale(0) opacity(1);}
.splitMedia img{width:100%; height:clamp(280px,34vw,440px); object-fit:cover; border-radius:var(--radius);}
.subHero .crumb a:hover{color:#fff;}
.contactCard .v a{color:var(--accent);}
.siteFooter{background:var(--navy-2); color:var(--on-navy-soft); padding:clamp(48px,6vw,80px) 0 32px; border-top:1px solid var(--line-dk);}
.footTop{display:grid; grid-template-columns:1.4fr 1fr 1fr 1fr; gap:32px; padding-bottom:40px; border-bottom:1px solid var(--line-dk);}
.footBrand .bname{font-family:var(--font-display); font-size:22px; color:#fff;}
.footBrand p{margin-top:14px; font-size:15px; max-width:34ch;}
.footCol h5{color:#fff; font-size:var(--fs-label); letter-spacing:.1em; text-transform:uppercase; margin:0 0 16px; font-family:var(--font-sans); font-weight:700;}
.footCol a{display:block; font-size:var(--fs-nav); padding:6px 0; color:var(--on-navy-soft);}
.footCol a:hover{color:#fff;}
.footBottom{display:flex; justify-content:space-between; flex-wrap:wrap; gap:12px; padding-top:24px; font-size:var(--fs-meta); color:var(--on-navy-faint);}
.footBottom a{color:#fff;}
.footBottom a:hover{color:#fff;}
@media (max-width:980px){
.footTop{grid-template-columns:1fr 1fr;}
}
@media (max-width:720px){
.primaryNav,.navCta{display:none;}
.navToggle{display:block;}
.footTop{grid-template-columns:1fr;}
}
@media (prefers-reduced-motion:reduce){
*{animation:none!important; transition:none!important; scroll-behavior:auto!important;}
}
.member .photoFrame img{width:100%; height:100%; object-fit:cover;}
.postThumb img{width:100%; height:100%; object-fit:cover; filter:saturate(.9);}
.whitepaperCard .postThumb img{filter:saturate(.86) contrast(.98); transition:transform .45s var(--ease), filter .45s var(--ease);}
.whitepaperCard:hover .postThumb img{transform:scale(1.025); filter:saturate(1) contrast(1.01);}
.artHead .crumb a:hover{color:#fff;}
.artBody img{width:100%; border-radius:var(--radius); margin:24px 0;}
.artBody a{color:var(--accent); font-weight:600;}
.prin, .dgCard, .proofMetric, .procInfo, .procMeta, .procTrack, .whyGrid > *, .dgGrid > *{min-width:0;}
@keyframes fragSpin{ to{ transform:rotate(360deg); } }
:root{--ar-right:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M3 12h17M13.5 5.5L20 12l-6.5 6.5'/%3E%3C/svg%3E");
  --ar-ne:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5.5 18.5L18.5 5.5M9 5.5h9.5V15'/%3E%3C/svg%3E");
  --ar-down:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 3.5v17M5.5 14L12 20.5 18.5 14'/%3E%3C/svg%3E");}
.ar,
.btn .ar{display:inline-block;
  width:1em; height:1em;
  flex:0 0 auto;
  position:relative; top:0;
  overflow:hidden;                /* clips the parked glyph */
  text-indent:-10em;              /* …which this pushes out of the box */
  vertical-align:-.14em;          /* box centre ≈ CJK ink centre when inline */
  margin:0;                       /* never inherit a section's span margins */
  background-color:currentColor;
  -webkit-mask:var(--ar-right) no-repeat center / 100% 100%;
  mask:var(--ar-right) no-repeat center / 100% 100%;}
@supports not ((-webkit-mask-image:url('')) or (mask-image:url(''))){
.ar,.btn .ar{display:inline-flex; width:auto; height:auto;
    overflow:visible; text-indent:0; background:none;
    vertical-align:baseline; top:.14em;}
}
.mkAboutGrid .btn{align-self:start; margin-top:-.1em;}
.mkFounderFeature:not(a):hover img{transform:none;}
.mkImageStory.posL img{object-position:25% center;}
.mkImageStory.isChart img{position:absolute; inset:0 0 auto 0;
  height:56%; min-height:0;
  object-fit:cover; object-position:center 24%;
  filter:none;}
.mkImageStory.isChart:hover img{transform:none;}

/* ---- additions for sub-pages that wear this chrome ---------------------- */
.skip{position:absolute;left:-9999px;top:0;z-index:200;background:#fff;color:#051C2C;padding:10px 16px}
.skip:focus{left:8px;top:8px}
.navRight .siAction{appearance:none;-webkit-appearance:none;background:transparent;border:0;padding:0;
  font-family:inherit;color:#fff;font-size:var(--fs-nav);font-weight:600;line-height:1;white-space:nowrap;
  margin-right:14px;text-decoration:none;cursor:pointer}
.navRight .siAction:hover{color:#00A9F4}
@media(max-width:900px){.navRight .siAction{display:none}}
@media print{.siteHeader,.siteFooter,.scrim,.drawer{display:none!important}}

/* Sub-pages set their own --max for their body column (white papers use 1120).
   The frame must not inherit that, or the brand would sit in a different place
   on every page, so the chrome carries its own width. */
.siteHeader .wrap,.siteFooter .wrap{max-width:var(--chrome-max,1440px);
  padding-left:var(--chrome-gutter,clamp(20px,5vw,64px));
  padding-right:var(--chrome-gutter,clamp(20px,5vw,64px))}

/* ======================================================================
   Phone layout — wide exhibits
   White-paper and annual-report exhibits are laid out for a ~1000px
   column: timelines, heat tables and comparison grids keep their own
   width rather than reflowing. On a phone the section (.blk) clipped
   whatever ran past the column, so the right-hand half of several
   charts was unreachable. Letting the figure itself scroll sideways
   keeps every chart complete and legible at its designed size.
   !important because each page carries its own inline .exhibit rules.
   ====================================================================== */
@media (max-width:760px){
  /* Fallback only: site-chrome.js scales the wide blocks down to fit (see
     .siExFit). If the script has not run, the figure scrolls sideways rather
     than losing its right-hand half to the section's overflow:hidden. */
  .exhibit{ overflow-x:auto !important; -webkit-overflow-scrolling:touch; overscroll-behavior-x:contain; }
  /* the ShineIn signature line under each exhibit may wrap on a narrow screen */
  .exBrand{ white-space:normal !important; }
}
/* An exhibit graphic rendered at its full width and scaled down (see
   site-chrome.js). The frame is decorative — the reader pinches to read it —
   so it takes no pointer events and the page scrolls straight over it. */
.siExFrame{ position:relative; overflow:hidden; width:100%; max-width:100%; min-width:0; margin:0; }
.siExFrame iframe{
  display:block; border:0; background:transparent;
  transform-origin:top left; pointer-events:none;
}
.siExHidden{ display:none !important; }
.siExFramed{ overflow:visible !important; }

/* Tap to read the exhibit.
   A drawing built for a 1040px column sits at about a quarter size here: enough
   to see its shape, not enough to read it. The control opens the same drawing
   full screen at a readable size, where it pans in both directions. It replaces
   the line that used to say the figure could be pinched — one control per
   exhibit says it where the reader is already looking. */
.siExZoom{
  position:absolute; top:6px; right:6px; z-index:2;
  width:34px; height:34px; padding:0;
  display:flex; align-items:center; justify-content:center;
  border:1px solid rgba(11,31,46,.14); border-radius:50%;
  background:rgba(255,255,255,.92); color:var(--navy,#0B1F2E);
  -webkit-backdrop-filter:blur(3px); backdrop-filter:blur(3px);
  cursor:pointer; -webkit-appearance:none; appearance:none;
}
.siExZoom svg{ width:19px; height:19px; fill:none; stroke:currentColor; stroke-width:1.6;
  stroke-linecap:round; stroke-linejoin:round; }
.siExZoom:active{ background:#fff; }

.siExViewer{
  position:fixed; inset:0; z-index:9999; background:#fff;
  display:flex; align-items:stretch; justify-content:stretch;
}
.siExViewerPane{
  flex:1; min-width:0; overflow:auto; -webkit-overflow-scrolling:touch;
  overscroll-behavior:contain;
  display:flex; align-items:flex-start; justify-content:flex-start;
  padding:56px 12px 12px;
}
/* top left, not centred: a drawing wider than the screen should open on its
   title and its axis, not on its middle */
.siExViewerShell{ position:relative; overflow:hidden; flex:0 0 auto; margin:0 auto 0 0; }
/* nothing to pan to in whole-drawing mode, so it sits in the middle */
.siExViewerPane.whole{ align-items:center; justify-content:center; }
.siExViewerPane.whole .siExViewerShell{ margin:auto; }
.siExViewerShell iframe{
  display:block; border:0; background:transparent;
  transform-origin:top left; pointer-events:none;
}
.siExViewerClose{
  position:absolute; top:10px; right:10px; z-index:2;
  width:38px; height:38px; padding:0;
  display:flex; align-items:center; justify-content:center;
  border:1px solid rgba(11,31,46,.14); border-radius:50%;
  background:rgba(255,255,255,.92); color:var(--navy,#0B1F2E);
  cursor:pointer; -webkit-appearance:none; appearance:none;
}
.siExViewerClose svg{ width:20px; height:20px; fill:none; stroke:currentColor;
  stroke-width:1.7; stroke-linecap:round; }
/* reading size <-> whole drawing; hidden when the drawing already fits */
.siExViewerFit{
  position:absolute; left:50%; bottom:16px; transform:translateX(-50%); z-index:2;
  padding:9px 18px; border:1px solid rgba(11,31,46,.14); border-radius:999px;
  background:rgba(255,255,255,.94); color:var(--navy,#0B1F2E);
  font-family:var(--font-sans); font-size:14px; font-weight:600; letter-spacing:.02em;
  -webkit-backdrop-filter:blur(3px); backdrop-filter:blur(3px);
  cursor:pointer; -webkit-appearance:none; appearance:none;
}
.siExViewerFit[hidden]{ display:none; }

/* Annual-report university table: "OFFER" needs a few more pixels than the
   phone column gave it, so the header was clipped at the right edge. */
@media (max-width:760px){
  .uniTable .uniTr{ grid-template-columns:44px 34px minmax(0,1fr) 54px; }
}
