/* AVIX V35 — mobile correction pass
   Restores the desktop profile-story hierarchy on phones, returns portraits to
   Section 1, keeps leadership portraits uncropped, restores continuous logo
   marquees, compacts the Method cards, and reconnects Green Antibiotics branding
   to its laboratory plates. */

.chapter-ga-logo-mobile,.ga-mobile-assay-block{display:none}

/* -------------------------------------------------------------------------- */
/* HOME — four-step Method: compact 2 × 2 on normal phones                    */
/* -------------------------------------------------------------------------- */
@media (min-width:380px) and (max-width:620px){
  body.avix-home-page-v32 #method .method-grid{
    display:grid!important;grid-template-columns:repeat(2,minmax(0,1fr))!important;
    gap:10px!important;
  }
  body.avix-home-page-v32 #method .method-card{
    min-height:0!important;padding:15px 14px 16px!important;border-radius:15px!important;
  }
  body.avix-home-page-v32 #method .method-card .method-no{
    font-size:8.5px!important;letter-spacing:.10em!important;
  }
  body.avix-home-page-v32 #method .method-card h3{
    margin:17px 0 11px!important;font-size:16.5px!important;line-height:1.12!important;
    letter-spacing:-.025em!important;
  }
  body.avix-home-page-v32 #method .method-card .method-copy-3{
    margin:0!important;font-size:11.4px!important;line-height:1.43!important;
  }
  body.avix-home-page-v32 #method .method-card .method-copy-3>span{
    white-space:normal!important;
  }
}
@media (max-width:379px){
  body.avix-home-page-v32 #method .method-grid{gap:10px!important}
  body.avix-home-page-v32 #method .method-card{padding:18px!important;border-radius:15px!important}
  body.avix-home-page-v32 #method .method-card h3{margin:18px 0 10px!important;font-size:20px!important}
}

/* -------------------------------------------------------------------------- */
/* HOME — Green Antibiotics mobile evidence: logo belongs to the plate block  */
/* -------------------------------------------------------------------------- */
@media (max-width:800px){
  body.avix-home-page-v32 .venture-chapter-g .chapter-media-ga{display:none!important}
  body.avix-home-page-v32 .venture-chapter-g .ga-mobile-assay-block{
    display:block!important;margin:0 0 14px;padding:16px 12px 12px;
    border:1px solid rgba(31,28,28,.10);border-radius:18px;
    background:linear-gradient(135deg,#fff 0%,#f9fcf8 58%,rgba(57,181,74,.08) 100%);
  }
  body.avix-home-page-v32 .venture-chapter-g .chapter-ga-logo-mobile{
    display:block!important;width:min(220px,66%)!important;height:auto!important;
    max-height:72px!important;object-fit:contain!important;margin:0 auto 13px!important;
  }
  body.avix-home-page-v32 .venture-chapter-g .assay-pair-mobile{
    margin:0!important;gap:9px!important;
  }
}

/* -------------------------------------------------------------------------- */
/* HOME — Leadership: full portraits + actual mobile marquee                  */
/* -------------------------------------------------------------------------- */
@media (max-width:800px){
  body.avix-home-page-v32 #leadership .avix-leader-media{
    aspect-ratio:auto!important;height:auto!important;overflow:hidden!important;
    border-radius:18px!important;background:#fff!important;
  }
  body.avix-home-page-v32 #leadership .avix-leader-media img{
    display:block!important;width:100%!important;height:auto!important;aspect-ratio:auto!important;
    object-fit:contain!important;object-position:center top!important;
  }
  body.avix-home-page-v32 #leadership .avix-logo-marquee{
    overflow:hidden!important;overflow-x:hidden!important;
    -webkit-mask-image:linear-gradient(90deg,transparent 0,#000 6%,#000 94%,transparent 100%)!important;
    mask-image:linear-gradient(90deg,transparent 0,#000 6%,#000 94%,transparent 100%)!important;
  }
  body.avix-home-page-v32 #leadership .avix-logo-track{
    display:flex!important;width:max-content!important;
    animation:avix-leader-logo-scroll 28s linear infinite!important;
    animation-play-state:running!important;will-change:transform!important;
  }
  body.avix-home-page-v32 #leadership .avix-logo-set,
  body.avix-home-page-v32 #leadership .avix-logo-set[aria-hidden="true"]{
    display:flex!important;flex:none!important;width:auto!important;gap:8px!important;padding-right:8px!important;
  }
  body.avix-home-page-v32 #leadership .avix-logo-set span{
    flex:0 0 108px!important;width:108px!important;height:52px!important;padding:4px 9px!important;
  }
  body.avix-home-page-v32 #leadership .avix-logo-set img{
    width:auto!important;height:auto!important;max-width:90px!important;max-height:32px!important;object-fit:contain!important;
  }
}
/* The user explicitly requested the same continuous institution movement on
   mobile as desktop. Keep only this non-essential marquee moving even where a
   previous V34 override disabled it. */
@media (max-width:800px) and (prefers-reduced-motion:reduce){
  body.avix-home-page-v32 #leadership .avix-logo-track{
    animation:avix-leader-logo-scroll 38s linear infinite!important;
    animation-play-state:running!important;
  }
  body.avix-home-page-v32 #leadership .avix-logo-set[aria-hidden="true"]{display:flex!important}
}

/* -------------------------------------------------------------------------- */
/* FOUNDER + ADVISOR — mobile hero = desktop story, reflowed                   */
/* -------------------------------------------------------------------------- */
@media (max-width:620px){
  body.avix-profile-page .founder-journey-hero>.hero-grid{
    display:grid!important;grid-template-columns:1fr!important;gap:26px!important;
    width:calc(100% - 32px)!important;max-width:1280px!important;
    padding:42px 0 30px!important;height:auto!important;min-height:0!important;
  }
  body.avix-profile-page .founder-journey-hero .profile-mobile-hero{display:none!important}
  body.avix-profile-page .founder-journey-hero>.hero-grid>.hero-copy,
  body.avix-profile-page .founder-journey-hero>.hero-grid>.hero-visual{
    display:block!important;width:100%!important;max-width:none!important;min-width:0!important;
  }
  body.avix-profile-page .founder-journey-hero .hero-copy .eyebrow{
    margin:0 0 16px!important;font-size:9.5px!important;line-height:1.25!important;
    letter-spacing:.12em!important;
  }
  body.avix-profile-page .founder-journey-hero .hero-copy h1{
    margin:0!important;font-size:clamp(42px,12.1vw,50px)!important;
    line-height:.96!important;letter-spacing:-.055em!important;
  }
  body.page-dr-david-brown .founder-journey-hero .hero-copy h1{
    font-size:clamp(39px,10.7vw,46px)!important;
  }
  body.avix-profile-page .founder-journey-hero .hero-copy h1>span{
    display:block!important;white-space:normal!important;
  }
  body.avix-profile-page .founder-journey-hero .hero-support-natural-v61{
    margin:22px 0 0!important;max-width:39ch!important;color:rgba(255,255,255,.72)!important;
    font-size:14px!important;line-height:1.56!important;
  }
  body.avix-profile-page .founder-journey-hero .hero-actions-global{
    margin-top:22px!important;display:grid!important;grid-template-columns:1fr!important;
    gap:8px!important;width:100%!important;
  }
  body.avix-profile-page .founder-journey-hero .hero-actions-global .btn{
    min-height:44px!important;padding:10px 14px!important;font-size:12.5px!important;
  }

  /* Journey: retain all desktop information, but turn the right-hand visual
     into a compact phone timeline and brand strip. */
  body.avix-profile-page .founder-journey-map{
    margin:2px 0 0!important;padding:21px 0 0!important;border-top:1px solid rgba(255,255,255,.14)!important;
    border-radius:0!important;background:none!important;box-shadow:none!important;
  }
  body.avix-profile-page .founder-journey-map__eyebrow{
    margin:0 0 18px!important;text-align:left!important;color:#d4af37!important;
    font-size:9px!important;letter-spacing:.12em!important;
  }
  body.avix-profile-page .founder-journey-map__step{
    grid-template-columns:28px minmax(0,1fr)!important;gap:11px!important;padding-bottom:14px!important;
  }
  body.avix-profile-page .founder-journey-map__step>span{
    width:24px!important;height:24px!important;font-size:8px!important;
  }
  body.avix-profile-page .founder-journey-map__step:not(:last-child)::after{
    left:11px!important;top:25px!important;
  }
  body.avix-profile-page .founder-journey-map__step small{
    margin:0 0 3px!important;font-size:8px!important;letter-spacing:.08em!important;
  }
  body.avix-profile-page .founder-journey-map__step strong{
    font-size:13.5px!important;line-height:1.3!important;
  }
  body.avix-profile-page .journey-arrow-stage{display:none!important}
  body.page-dr-md-arif-sheikh .founder-journey-map__ventures{
    display:grid!important;grid-template-columns:repeat(3,minmax(0,1fr))!important;
    margin-top:8px!important;border-top:1px solid rgba(255,255,255,.12)!important;
  }
  body.page-dr-david-brown .founder-journey-map__ventures{
    display:grid!important;grid-template-columns:repeat(2,minmax(0,1fr))!important;
    margin-top:8px!important;border-top:1px solid rgba(255,255,255,.12)!important;
  }
  body.avix-profile-page .founder-journey-map__ventures>div{
    min-height:74px!important;padding:13px 7px 10px!important;border-top:0!important;
    border-left:0!important;justify-content:flex-start!important;
  }
  body.avix-profile-page .founder-journey-map__ventures>div+div{
    border-left:1px solid rgba(255,255,255,.12)!important;border-top:0!important;
  }
  body.avix-profile-page .founder-journey-map__ventures strong{
    white-space:normal!important;font-size:12px!important;line-height:1.2!important;
  }
  body.avix-profile-page .founder-journey-map__ventures span{
    white-space:normal!important;margin-top:5px!important;font-size:8.8px!important;line-height:1.25!important;
  }

  /* Four desktop proof points become an explicit 2 × 2 phone proof matrix. */
  body.avix-profile-page .hero-proof-master-v74,
  body.avix-profile-page .hero-proof-master-v74>.trust-grid{
    display:grid!important;grid-template-columns:repeat(2,minmax(0,1fr))!important;
  }
  body.avix-profile-page .hero-proof-master-v74>.trust-grid{
    width:calc(100% - 32px)!important;margin-inline:auto!important;
  }
  body.avix-profile-page .hero-proof-master-v74 .trust-item,
  body.avix-profile-page .hero-proof-master-v74 .trust-item:first-child,
  body.avix-profile-page .hero-proof-master-v74 .trust-item:last-child{
    min-height:82px!important;height:auto!important;padding:14px 12px!important;
    border-right:1px solid rgba(255,255,255,.15)!important;
    border-bottom:1px solid rgba(255,255,255,.15)!important;
  }
  body.avix-profile-page .hero-proof-master-v74 .trust-item:nth-child(2n){border-right:0!important}
  body.avix-profile-page .hero-proof-master-v74 .trust-item:nth-last-child(-n+2){border-bottom:0!important}
  body.avix-profile-page .hero-proof-master-v74 .trust-item strong{
    font-size:20px!important;line-height:1.05!important;white-space:normal!important;
  }
  body.avix-profile-page .hero-proof-master-v74 .trust-item span{
    margin-top:5px!important;font-size:7.8px!important;line-height:1.3!important;white-space:normal!important;
    letter-spacing:.07em!important;
  }

  /* Section 1 owns the portrait again. Show the full square source image with
     no mobile crop, then continue into credentials and biography. */
  body.avix-profile-page .founder-person-card{
    display:block!important;max-width:none!important;width:100%!important;border-radius:18px!important;
  }
  body.avix-profile-page .founder-person-card__image{
    display:block!important;width:100%!important;height:auto!important;aspect-ratio:auto!important;
    overflow:hidden!important;border-radius:18px!important;background:#fff!important;
  }
  body.avix-profile-page .founder-person-card__image img{
    display:block!important;width:100%!important;height:auto!important;aspect-ratio:auto!important;
    object-fit:contain!important;object-position:center top!important;
  }
  body.avix-profile-page .founder-person-card__identity{padding:16px 0!important}
  body.avix-profile-page .founder-person-card__identity strong{font-size:20px!important}
  body.avix-profile-page .founder-person-card__facts>div{padding:11px 0!important}
  body.avix-profile-page .founder-person-card__facts small{font-size:8.8px!important}
  body.avix-profile-page .founder-person-card__facts span{font-size:12px!important;white-space:normal!important}
  body.avix-profile-page .founder-profile-link{padding:13px 0!important;font-size:12px!important}
}

/* Founder and advisor four-step grids: 2 × 2 on normal phone widths, while
   very narrow phones retain a readable single column. */
@media (min-width:380px) and (max-width:620px){
  body.avix-profile-page .founder-steps{
    display:grid!important;grid-template-columns:repeat(2,minmax(0,1fr))!important;
    gap:10px!important;border:0!important;
  }
  body.avix-profile-page .founder-step,
  body.avix-profile-page .founder-step:nth-child(2),
  body.avix-profile-page .founder-step:last-child{
    min-height:0!important;padding:16px 14px!important;border:1px solid var(--founder-dark-line)!important;
    border-radius:14px!important;
  }
  body.avix-profile-page .founder-step__number{margin:0 0 17px!important;font-size:8.5px!important;letter-spacing:.10em!important}
  body.avix-profile-page .founder-step h3{margin:0 0 10px!important;font-size:16.5px!important;line-height:1.15!important}
  body.avix-profile-page .founder-step p,
  body.avix-profile-page .founder-step .profile-three-lines>span,
  body.avix-profile-page .founder-step__intro,
  body.avix-profile-page .founder-step__bullets li{
    font-size:11.2px!important;line-height:1.42!important;
  }
  body.avix-profile-page .founder-step__bullets{margin-top:9px!important;padding-left:14px!important}
}

/* Final specificity lock: older principal-hero rules forced the proof rail back
   to one column below 760px. The phone design is explicitly 2 × 2. */
@media (max-width:620px){
  body.avix-profile-page.principal-redesign-v93 .principal-hero-v93 > .hero-proof-master-v74{
    width:100%!important;height:auto!important;min-height:0!important;max-height:none!important;
    overflow:visible!important;display:block!important;
  }
  body.avix-profile-page.principal-redesign-v93 .principal-hero-v93 > .hero-proof-master-v74 > .trust-grid{
    display:grid!important;grid-template-columns:repeat(2,minmax(0,1fr))!important;
    width:calc(100% - 32px)!important;height:auto!important;min-height:0!important;max-height:none!important;
    margin-inline:auto!important;overflow:visible!important;
  }
  body.avix-profile-page.principal-redesign-v93 .principal-hero-v93 > .hero-proof-master-v74 > .trust-grid > .trust-item,
  body.avix-profile-page.principal-redesign-v93 .principal-hero-v93 > .hero-proof-master-v74 > .trust-grid > .trust-item:first-child,
  body.avix-profile-page.principal-redesign-v93 .principal-hero-v93 > .hero-proof-master-v74 > .trust-grid > .trust-item:last-child{
    width:auto!important;height:auto!important;min-height:82px!important;max-height:none!important;
    padding:14px 12px!important;border-right:1px solid rgba(255,255,255,.15)!important;
    border-bottom:1px solid rgba(255,255,255,.15)!important;
  }
  body.avix-profile-page.principal-redesign-v93 .principal-hero-v93 > .hero-proof-master-v74 > .trust-grid > .trust-item:nth-child(2n){border-right:0!important}
  body.avix-profile-page.principal-redesign-v93 .principal-hero-v93 > .hero-proof-master-v74 > .trust-grid > .trust-item:nth-last-child(-n+2){border-bottom:0!important}
}
@media (max-width:620px){
  body.avix-profile-page.page-dr-david-brown.advisor-journey-redesign .advisor-journey-map .founder-journey-map__ventures{
    width:100%!important;max-width:none!important;grid-template-columns:repeat(2,minmax(0,1fr))!important;
  }
  body.avix-profile-page.page-dr-david-brown.advisor-journey-redesign .advisor-journey-map .founder-journey-map__ventures>div+div{
    border-left:1px solid rgba(255,255,255,.12)!important;border-top:0!important;
  }
}
