/* Final responsive audit: preserve readable hierarchy rather than shrinking dense desktop compositions. */
html, body { overflow-x: clip; }
body, button, input, select, textarea { font-family: Inter, Arial, sans-serif; }
h1, h2, h3 { overflow-wrap: anywhere; }
p, li, small { overflow-wrap: break-word; }

@media (max-width:1000px){
  .mie-direct-grid,.broker-direct-grid{grid-template-columns:1fr;gap:34px}
  .mie-loop{width:min(470px,100%)}
  .broker-direct-grid>div{order:-1}
  .broker-direct-grid>div b{width:118px;height:118px}
  .direct-pipeline{grid-template-columns:repeat(4,1fr)}
  .leadership-profiles{grid-template-columns:1fr;max-width:760px}
  .leadership-profile{min-height:248px}
  .technology-cards{grid-template-columns:repeat(3,1fr)}
  .footer-reference .footer-columns{gap:28px}
  /* The MIE operating loop becomes a readable sequence before its labels can collide. */
  .mie-loop { display: grid; grid-template-columns: 1fr; width: 100%; height: auto; padding: 20px; border: 0; border-radius: 10px; gap: 7px; }
  .mie-loop > b { width: 118px; height: 118px; margin: 0 auto 7px; font-size: 2rem; }
  .mie-loop > i { position: static !important; width: 100%; margin: 0; text-align: center; }
}
@media (min-width:801px) and (max-width:1120px){
  header.hero-reference-nav nav{gap:1px}
  header.hero-reference-nav nav .nav-visual-link{gap:5px;padding:9px 6px;font-size:.64rem}
  header.hero-reference-nav nav .nav-visual-link span{display:none}
  header.hero-reference-nav nav .nav-visual-cta{gap:7px;margin-left:5px;padding:11px 12px;font-size:.65rem}
}
@media (min-width:601px) and (max-width:820px){
  :root{--w:min(100% - 48px,1140px)}
  .hero{min-height:560px;padding-top:70px;padding-bottom:70px}
  .hero h1{font-size:clamp(3.2rem,8vw,4.7rem)}
  .ib-native__grid{gap:14px}
  .ib-loop,.ib-native__question{padding:21px}
  .ib-loop__node{max-width:150px}
  .ib-loop__node p{display:none}
  .ib-loop__ring{width:230px;height:230px}
  .ib-loop__center{width:126px;height:126px}
  .approach-native__steps{gap:6px;font-size:.67rem}
  .market-card-grid{grid-template-columns:repeat(2,1fr)}
}
@media (max-width:600px){
  :root{--w:min(100% - 36px,1140px)}
  .wrap{padding-top:54px;padding-bottom:54px}
  .hero{min-height:520px;padding-top:58px;padding-bottom:72px}
  .hero h1{font-size:clamp(2.7rem,13vw,4rem);line-height:.91}
  .hero p:not(.kicker){font-size:1rem;line-height:1.45}
  .ib-native h2,.approach-native h2,.partner-program-native h2,.markets-native h2,.leadership-native h2{letter-spacing:-.055em}
  .direct-section{padding:56px 0}
  /* Dense process diagrams become vertical steps rather than tiny horizontal tracks. */
  .direct-pipeline{grid-template-columns:1fr;gap:0;margin-top:24px}
  .direct-pipeline b{min-height:0;padding:12px 14px 12px 25px;font-size:.74rem;text-align:left}
  .direct-pipeline b:before{top:0;bottom:0;left:8px;width:2px;height:auto}
  .approach-native__steps{display:grid;grid-template-columns:1fr;gap:5px;align-items:center}
  .approach-native__steps span{white-space:normal;padding:10px 12px;border:1px solid rgba(114,174,247,.28);border-radius:5px}
  .approach-native__steps i{justify-self:center;transform:rotate(90deg)}
  .mie-loop{padding:0}
  .mie-loop>i{font-size:.78rem}
  .technology-cards{grid-template-columns:1fr 1fr}
  .technology-cards article{min-height:106px}
  .leadership-profile{grid-template-columns:120px 1fr;min-height:220px}
  .leadership-portrait img{width:150%}
  .footer-reference .footer-main{padding-top:32px;padding-bottom:30px}
  .footer-reference .footer-columns{grid-template-columns:1fr;gap:24px}
  .footer-reference .footer-columns nav,.footer-reference .footer-contact{grid-column:auto}
  .footer-reference .footer-columns h3{margin-bottom:16px}
  .footer-reference .footer-columns nav a{margin:9px 0}
  .footer-reference .footer-cta{padding-top:48px}
  .footer-reference .footer-actions{display:grid;gap:10px;margin:18px 0 22px}
  .footer-reference .footer-actions .btn{width:100%}
  .hero.hero-reference{min-height:0;padding-bottom:34px}
  /* The market-focus panel is a separate row on phones, preserving the headline's full reading width. */
  .hero.hero-reference{display:block}
  .hero-reference-content{max-width:none!important}
  .hero-reference h1{overflow-wrap:normal;word-break:normal}
  .hero.hero-reference .growth-focus{position:relative!important;inset:auto!important;display:grid!important;grid-template-columns:1fr 1fr;width:100%!important;margin:28px 0 0!important;transform:none!important;overflow:visible}
  .hero.hero-reference .growth-focus .focus-label{grid-column:1 / -1}
  .growth-focus div{min-width:0!important;min-height:52px;padding:10px 11px;gap:7px;font-size:.72rem;white-space:normal}
  .growth-focus .focus-label{display:flex!important;font-size:.66rem}
  .performance-panel{overflow:visible}
  .performance-chart{min-width:0}
  .performance-bars{grid-template-columns:repeat(var(--count, 12), minmax(0, 1fr));padding-right:0;padding-left:0}
  .performance-bar b{font-size:.44rem}
  .performance-bar small{font-size:.48rem}
}
@media (max-width:390px){
  .technology-cards,.direct-pipeline{grid-template-columns:1fr}
  .leadership-profile{grid-template-columns:105px 1fr}
  .leadership-copy{padding:18px 15px}
  .partner-program-native__bottom{display:grid}
  .hero-reference h1{font-size:clamp(2.35rem,12vw,3rem)}
  .footer-reference .footer-columns{grid-template-columns:1fr}
  .footer-reference .footer-contact{grid-column:auto}
  .footer-reference .footer-brand{flex-wrap:wrap;gap:10px}
  .footer-reference .footer-brand span{padding-left:10px}
  .ecosystem-targets__value-grid > *{min-width:0}
  .ecosystem-targets__metric{min-width:0;padding:20px}
  .ecosystem-targets__metric > strong{white-space:normal}
  .ecosystem-targets__metric > strong b{font-size:clamp(2.7rem,15vw,3.4rem)}
  .ecosystem-targets__core p{white-space:normal;text-align:center}
}

/* Keep the footer's market links in the footer flow on phones. */
@media (max-width:600px){
  .footer-reference .footer-cta .market-nav{
    position:static!important;
    inset:auto!important;
    display:grid!important;
    grid-template-columns:1fr 1fr!important;
    width:100%!important;
    margin:22px 0 0!important;
    padding:0!important;
    gap:8px!important;
    border:0!important;
    border-radius:0!important;
    background:transparent!important;
    box-shadow:none!important;
    transform:none!important;
  }
  .footer-reference .footer-cta .market-nav a{
    display:flex!important;
    align-items:center!important;
    min-width:0!important;
    margin:0!important;
    padding:7px 0!important;
    border:0!important;
    background:transparent!important;
    color:#e9f3ff!important;
    font-size:.8rem!important;
    text-decoration:none!important;
  }
}
