/* AVIX Water v136 — consolidated final refinements on top of v135
   Founder brand/typography/logo motion, Science mobile cleanup,
   Founder venture-card link rhythm, and AVIX-Pharma-style footer brand block. */

/* ========================================================================== */
/* 1. FOUNDER SECTION 01 — bring the editorial layout back into AVIX Water UI */
/* ========================================================================== */
html body.fp-page .fp-turning-point{
  background:#F7F6F2!important;
  color:var(--avix-ink,#10272E)!important;
  font-family:Inter,ui-sans-serif,-apple-system,BlinkMacSystemFont,"Segoe UI",Arial,sans-serif!important;
}
html body.fp-page .fp-turning-eyebrow,
html body.fp-page .fp-turning-linkedin{
  color:var(--avix-brand-text,#147C9D)!important;
}
html body.fp-page .fp-turning-story>h2,
html body.fp-page .fp-turning-name{
  color:var(--avix-ink,#10272E)!important;
  font-family:Inter,ui-sans-serif,-apple-system,BlinkMacSystemFont,"Segoe UI",Arial,sans-serif!important;
}
html body.fp-page .fp-turning-story>h2{
  font-size:clamp(48px,3.7vw,60px)!important;
  line-height:1.00!important;
  letter-spacing:-.052em!important;
  font-weight:760!important;
  margin-bottom:30px!important;
}
html body.fp-page .fp-turning-copy{
  gap:18px!important;
}
html body.fp-page .fp-turning-copy p{
  color:var(--avix-body,#31454C)!important;
  font-size:17px!important;
  line-height:1.58!important;
  max-width:790px!important;
}
html body.fp-page .fp-turning-role,
html body.fp-page .fp-turning-facts span{
  color:var(--avix-muted,#70868F)!important;
}
html body.fp-page .fp-turning-facts strong{
  color:var(--avix-body,#31454C)!important;
}
html body.fp-page .fp-turning-facts,
html body.fp-page .fp-turning-facts>div{
  border-color:rgba(16,42,51,.14)!important;
}
html body.fp-page .fp-turning-quote{
  border-left-color:var(--avix-brand,#4BC8EF)!important;
  color:var(--avix-ink,#10272E)!important;
  font-size:22px!important;
  line-height:1.36!important;
  font-weight:700!important;
  margin:28px 0 24px!important;
}

/* Continuous institutional logo rail, matching the motion language used elsewhere. */
html body.fp-page .fp-turning-logos{
  display:block!important;
  width:100%!important;
  overflow:hidden!important;
  margin-top:2px!important;
  padding:7px 0 5px!important;
  mask-image:linear-gradient(90deg,transparent,#000 5%,#000 95%,transparent)!important;
  -webkit-mask-image:linear-gradient(90deg,transparent,#000 5%,#000 95%,transparent)!important;
}
html body.fp-page .fp-turning-logo-track{
  display:flex!important;
  width:max-content!important;
  align-items:center!important;
  animation:fpTurningLogoLoop 28s linear infinite!important;
  will-change:transform!important;
}
html body.fp-page .fp-turning-logo-set{
  display:flex!important;
  align-items:center!important;
  gap:34px!important;
  padding-right:34px!important;
}
html body.fp-page .fp-turning-logo-set img{
  display:block!important;
  width:150px!important;
  height:56px!important;
  flex:0 0 150px!important;
  object-fit:contain!important;
}
html body.fp-page .fp-turning-logo-set img:nth-child(1){width:170px!important;flex-basis:170px!important}
html body.fp-page .fp-turning-logo-set img:nth-child(2){width:120px!important;flex-basis:120px!important}
html body.fp-page .fp-turning-logo-set img:nth-child(3){width:175px!important;flex-basis:175px!important}
html body.fp-page .fp-turning-logo-set img:nth-child(4){width:175px!important;flex-basis:175px!important}
@keyframes fpTurningLogoLoop{from{transform:translateX(0)}to{transform:translateX(-50%)}}

/* ========================================================================== */
/* 2. FOUNDER SECTION 02 — match AVIX body typography / paragraph rhythm      */
/* ========================================================================== */
html body.fp-page .fp2-water-copy>.av5-eyebrow{
  font-size:13px!important;
  line-height:1.2!important;
  letter-spacing:.12em!important;
  color:var(--avix-brand-text,#147C9D)!important;
}
html body.fp-page .fp2-water-copy h2{
  font-size:clamp(46px,4.1vw,58px)!important;
  line-height:1.00!important;
  letter-spacing:-.052em!important;
  margin-bottom:0!important;
}
html body.fp-page .fp2-water-copy>p:not(.av5-eyebrow){
  max-width:650px!important;
  margin:18px 0 0!important;
  color:var(--avix-body,#31454C)!important;
  font-size:17px!important;
  line-height:1.58!important;
}
html body.fp-page .fp2-water-callout{
  margin-top:24px!important;
}

/* ========================================================================== */
/* 3. FOUNDER VENTURE CARDS — lower the three final links uniformly           */
/* ========================================================================== */
html body.fp-page .fpv106-venture-grid{align-items:stretch!important}
html body.fp-page .fpv106-venture{
  min-height:422px!important;
}
html body.fp-page .fpv106-venture>a{
  margin-top:auto!important;
  padding-top:42px!important;
  padding-bottom:2px!important;
  align-self:flex-start!important;
}

/* ========================================================================== */
/* 4. SCIENCE MOBILE — cleaner background + better four-step spacing          */
/* ========================================================================== */
@media(max-width:767px){
  html body.science-v12 .s12-hero::after,
  html body.science-v12 .s12-hero-orbit{
    content:none!important;
    display:none!important;
    border:0!important;
  }
  html body.science-v12 .s12-hero-visual--system{
    margin-top:42px!important;
    padding-top:0!important;
    padding-bottom:30px!important;
  }
  html body.science-v12 .s12-hero-visual--system picture,
  html body.science-v12 .s12-hero-visual--system .s12-science-system-svg{
    width:100%!important;
    max-width:390px!important;
    margin-inline:auto!important;
  }
  /* Keep the SVG itself crisp and centered; no raster filters on mobile. */
  html body.science-v12 .s12-science-system-svg{
    filter:none!important;
    transform:none!important;
  }

  /* No inner swipe in the manufacturing pathway. */
  html body.science-v12 .s12-diagram-frame{
    overflow:hidden!important;
    touch-action:pan-y!important;
  }
  html body.science-v12 iframe.s12-plant-diagram{
    width:100%!important;
    max-width:100%!important;
    min-width:0!important;
    overflow:hidden!important;
    pointer-events:none!important;
    touch-action:pan-y!important;
  }

  /* More useful text size after the diagram. */
  html body.science-v12 .s12-process-guardrails p{
    font-size:15.5px!important;
    line-height:1.52!important;
  }

  /* Products: a little more air above the bottles. */
  html body.products-v3 .p3-hero-products{
    margin-top:42px!important;
  }
}

/* ========================================================================== */
/* 5. FOOTER — AVIX Pharma visual rhythm for the AVIX Water brand block       */
/* ========================================================================== */
@media(min-width:901px){
  html body .avix-global-footer .avix-footer-logo-link{
    margin:0 0 18px!important;
  }
  html body .avix-global-footer .avix-footer-logo{
    width:292px!important;
    max-width:100%!important;
    height:auto!important;
  }
  html body .avix-global-footer .avix-footer-tagline{
    max-width:445px!important;
    margin:0 0 18px!important;
    font-size:14.5px!important;
    line-height:1.48!important;
  }
  html body .avix-global-footer .avix-footer-tagline-line{
    display:block!important;
  }
  html body .avix-global-footer .avix-footer-proof{
    display:grid!important;
    grid-template-columns:max-content max-content!important;
    column-gap:34px!important;
    row-gap:8px!important;
    margin:0!important;
    padding:0!important;
  }
  html body .avix-global-footer .avix-footer-proof li{
    font-size:13.5px!important;
    line-height:1.35!important;
    padding-left:15px!important;
  }
}

@media(max-width:900px){
  html body.fp-page .fp-turning-story>h2{
    font-size:clamp(44px,7vw,56px)!important;
  }
  html body .avix-global-footer .avix-footer-logo{
    width:225px!important;
  }
  html body .avix-global-footer .avix-footer-tagline{
    margin-bottom:15px!important;
  }
  html body .avix-global-footer .avix-footer-proof{
    row-gap:7px!important;
  }
}

@media(max-width:620px){
  html body.fp-page .fp-turning-point{padding-top:44px!important}
  html body.fp-page .fp-turning-story>h2{
    font-size:clamp(40px,10.8vw,48px)!important;
    margin-bottom:24px!important;
  }
  html body.fp-page .fp-turning-copy{gap:16px!important}
  html body.fp-page .fp-turning-copy p,
  html body.fp-page .fp2-water-copy>p:not(.av5-eyebrow){
    font-size:16px!important;
    line-height:1.56!important;
  }
  html body.fp-page .fp-turning-quote{
    font-size:20px!important;
    margin:24px 0 22px!important;
  }
  html body.fp-page .fp-turning-logo-set{
    gap:24px!important;
    padding-right:24px!important;
  }
  html body.fp-page .fp-turning-logo-set img{
    width:118px!important;
    height:48px!important;
    flex-basis:118px!important;
  }
  html body.fp-page .fp-turning-logo-set img:nth-child(1){width:140px!important;flex-basis:140px!important}
  html body.fp-page .fp-turning-logo-set img:nth-child(2){width:104px!important;flex-basis:104px!important}
  html body.fp-page .fp-turning-logo-set img:nth-child(3),
  html body.fp-page .fp-turning-logo-set img:nth-child(4){width:145px!important;flex-basis:145px!important}

  html body.fp-page .fp2-water-copy h2{
    font-size:clamp(39px,10.5vw,47px)!important;
  }
  html body.fp-page .fpv106-venture{
    min-height:0!important;
  }
  html body.fp-page .fpv106-venture>a{
    padding-top:26px!important;
  }

  /* Pharma-like mobile brand block proportions, while retaining Water content. */
  html body .avix-global-footer .avix-footer-logo{
    width:195px!important;
  }
  html body .avix-global-footer .avix-footer-logo-link{
    margin-bottom:15px!important;
  }
  html body .avix-global-footer .avix-footer-tagline{
    margin:0 0 14px!important;
    font-size:13px!important;
    line-height:1.45!important;
  }
  html body .avix-global-footer .avix-footer-proof{
    column-gap:18px!important;
    row-gap:7px!important;
  }
  html body .avix-global-footer .avix-footer-proof li{
    font-size:12px!important;
    line-height:1.35!important;
  }
}

@media(prefers-reduced-motion:reduce){
  html body.fp-page .fp-turning-logo-track{
    animation:none!important;
    transform:none!important;
  }
}

/* Founder narrative sections: keep normal AVIX Water accents cyan.
   Product-specific card accents remain product-specific. */
html body.fp-page .fpv106-split-head .av5-eyebrow,
html body.fp-page .fpv106-venture-cta{
  color:var(--avix-brand-text,#147C9D)!important;
}
html body.fp-page .fpv106-method-head .av5-eyebrow{
  color:var(--avix-brand,#4BC8EF)!important;
}
