/* AVIX V29 — final desktop geometry for Founder + Scientific Advisor profiles */
@media (min-width:1024px){
  /* Content-driven hero: remove the old 728/602px hard lock. */
  html body.avix-profile-page.founder-journey-redesign main .principal-hero-v93{
    height:auto!important;
    min-height:0!important;
    max-height:none!important;
    overflow:visible!important;
  }
  html body.avix-profile-page.founder-journey-redesign main .principal-hero-v93 > .hero-grid{
    height:auto!important;
    min-height:600px!important;
    max-height:none!important;
    padding:72px 0 62px!important;
    grid-template-columns:minmax(0,1.04fr) minmax(440px,.96fr)!important;
    gap:clamp(48px,4.8vw,72px)!important;
    align-items:center!important;
    box-sizing:border-box!important;
  }
  html body.avix-profile-page.founder-journey-redesign main .principal-hero-v93 .hero-copy{
    align-self:center!important;
    max-width:670px!important;
    min-width:0!important;
  }
  html body.avix-profile-page.founder-journey-redesign main .principal-hero-v93 .hero-copy .hero-support-natural-v61{
    max-width:64ch!important;
    margin-top:24px!important;
    font-size:16.5px!important;
    line-height:1.62!important;
  }
  html body.avix-profile-page.founder-journey-redesign main .principal-hero-v93 .hero-actions-global{
    margin-top:28px!important;
  }
  html body.avix-profile-page.founder-journey-redesign .founder-journey-map{
    align-self:center!important;
    min-height:392px!important;
    padding:30px 30px 27px!important;
    border-radius:24px!important;
  }
  html body.avix-profile-page.founder-journey-redesign .founder-journey-map__eyebrow{
    margin-bottom:22px!important;
  }
  html body.avix-profile-page.founder-journey-redesign .journey-arrow-stage{
    height:82px!important;
  }

  /* More controlled profile section rhythm. */
  html body.avix-profile-page.founder-journey-redesign .founder-section{
    padding:92px 0!important;
  }
  html body.avix-profile-page.founder-journey-redesign .founder-turning-grid{
    grid-template-columns:minmax(390px,.84fr) minmax(0,1.16fr)!important;
    gap:clamp(58px,5.6vw,82px)!important;
    align-items:start!important;
  }
  html body.avix-profile-page.founder-journey-redesign .founder-person-card{
    width:100%!important;
    max-width:470px!important;
  }
  html body.avix-profile-page.founder-journey-redesign .founder-story-copy{
    width:100%!important;
    max-width:none!important;
  }
  html body.avix-profile-page.founder-journey-redesign .founder-story-copy > p:not(.founder-kicker){
    margin-bottom:18px!important;
    font-size:16.5px!important;
    line-height:1.66!important;
  }
  html body.avix-profile-page.founder-journey-redesign .founder-story-quote{
    margin-top:28px!important;
    padding-top:20px!important;
    font-size:22px!important;
    line-height:1.34!important;
  }

  /* Section intros: align the copy without artificial oversized gaps. */
  html body.avix-profile-page.founder-journey-redesign .founder-portfolio-head,
  html body.avix-profile-page.founder-journey-redesign .founder-intro-grid{
    grid-template-columns:minmax(0,1.04fr) minmax(330px,.76fr)!important;
    gap:clamp(48px,5vw,76px)!important;
  }
  html body.avix-profile-page.founder-journey-redesign .founder-portfolio-head{
    margin-bottom:38px!important;
  }
  html body.avix-profile-page.founder-journey-redesign .founder-intro-grid{
    margin-bottom:42px!important;
  }
  html body.avix-profile-page.founder-journey-redesign .founder-portfolio-head > .founder-lead,
  html body.avix-profile-page.founder-journey-redesign .founder-intro-grid > .founder-lead{
    margin-top:28px!important;
    padding-top:0!important;
    font-size:16.5px!important;
    line-height:1.62!important;
  }

  /* Never force sentence-length proof text to stay on one line. */
  html body.avix-profile-page.founder-journey-redesign .profile-three-lines > span{
    display:block!important;
    white-space:normal!important;
  }
  html body.avix-profile-page.founder-journey-redesign .profile-three-lines > span + span{
    margin-top:2px!important;
  }

  /* Four-column method/evidence rows retain equal-height cards but can breathe. */
  html body.avix-profile-page.founder-journey-redesign .founder-steps{
    grid-template-columns:repeat(4,minmax(0,1fr))!important;
  }
  html body.avix-profile-page.founder-journey-redesign .founder-step{
    min-height:0!important;
    padding:27px 22px 29px!important;
  }
  html body.avix-profile-page.founder-journey-redesign .founder-step h3{
    margin-bottom:13px!important;
  }
  html body.avix-profile-page.founder-journey-redesign .founder-step p{
    font-size:14px!important;
    line-height:1.55!important;
  }
  html body.avix-profile-page.founder-journey-redesign .founder-programme{
    min-height:325px!important;
    padding:26px!important;
  }
  html body.avix-profile-page.founder-journey-redesign .founder-programme p{
    font-size:14.5px!important;
    line-height:1.56!important;
  }

  /* Founder: a slightly calmer portrait-to-story ratio. */
  html body.avix-profile-page.page-dr-md-arif-sheikh .founder-person-card{
    max-width:455px!important;
  }

  /* Advisor: avoid the previous 500px+ left-column squeeze. */
  html body.avix-profile-page.page-dr-david-brown .founder-turning-grid{
    grid-template-columns:minmax(400px,.86fr) minmax(0,1.14fr)!important;
    gap:clamp(54px,5vw,76px)!important;
  }
  html body.avix-profile-page.page-dr-david-brown .founder-person-card{
    max-width:480px!important;
  }
  html body.avix-profile-page.page-dr-david-brown .advisor-career-proof{
    grid-template-columns:repeat(4,minmax(0,1fr))!important;
    margin-top:30px!important;
  }
  html body.avix-profile-page.page-dr-david-brown .advisor-career-proof article{
    min-height:108px!important;
    padding:20px 17px!important;
  }
  html body.avix-profile-page.page-dr-david-brown .advisor-career-proof strong{
    font-size:18px!important;
  }
  html body.avix-profile-page.page-dr-david-brown .advisor-career-proof span{
    margin-top:7px!important;
    font-size:10.5px!important;
    line-height:1.42!important;
  }
  html body.avix-profile-page.page-dr-david-brown .advisor-amr-grid{
    margin-top:40px!important;
  }
  html body.avix-profile-page.page-dr-david-brown .advisor-amr-grid article{
    min-height:0!important;
    padding:26px 25px 28px!important;
  }
  html body.avix-profile-page.page-dr-david-brown .advisor-independent-grid{
    grid-template-columns:minmax(0,.95fr) minmax(380px,1.05fr)!important;
    gap:clamp(54px,5.5vw,82px)!important;
    align-items:start!important;
  }
  html body.avix-profile-page.page-dr-david-brown .advisor-role-facts article{
    min-height:136px!important;
    padding:24px!important;
  }
}

/* Intermediate desktop/laptop: prevent deliberate H2/proof lines from overflowing. */
@media (min-width:1024px) and (max-width:1199px){
  html body.avix-profile-page.founder-journey-redesign main .principal-hero-v93 > .hero-grid{
    grid-template-columns:minmax(0,1fr) minmax(400px,.92fr)!important;
    gap:42px!important;
  }
  html body.avix-profile-page.founder-journey-redesign .profile-title--two-line .profile-h2-line{
    white-space:normal!important;
  }
  html body.avix-profile-page.founder-journey-redesign .founder-turning-grid,
  html body.avix-profile-page.page-dr-david-brown .founder-turning-grid{
    grid-template-columns:minmax(350px,.82fr) minmax(0,1.18fr)!important;
    gap:48px!important;
  }
  html body.avix-profile-page.founder-journey-redesign .founder-step{
    padding-inline:18px!important;
  }
}

@media (min-width:1024px){
  /* Keep the Advisor hero to the same visual tier as the Founder hero. */
  html body.avix-profile-page.page-dr-david-brown .advisor-journey-hero .hero-copy h1{
    max-width:14ch!important;
  }
}
@media (min-width:1024px){
  html body.avix-profile-page.page-dr-david-brown main .advisor-journey-hero > .hero-grid{
    padding:62px 0 54px!important;
  }
  html body.avix-profile-page.page-dr-david-brown .advisor-journey-hero .hero-copy h1{
    max-width:none!important;
  }
}
@media (min-width:1024px){
  html body.avix-profile-page.page-dr-david-brown main .advisor-journey-hero .hero-copy h1{
    max-width:none!important;
    font-size:clamp(58px,4.3vw,64px)!important;
    line-height:.98!important;
    row-gap:.07em!important;
  }
}
@media (min-width:1024px) and (max-width:1199px){
  html body.avix-profile-page.page-dr-david-brown main .advisor-journey-hero > .hero-grid{
    padding:54px 0 46px!important;
  }
  html body.avix-profile-page.page-dr-david-brown main .advisor-journey-hero .hero-copy h1{
    font-size:54px!important;
    line-height:.98!important;
  }
  html body.avix-profile-page.page-dr-david-brown main .advisor-journey-hero .hero-copy .hero-support-natural-v61{
    font-size:15.5px!important;
    line-height:1.56!important;
  }
}
