/* AgriConnect SA — understated founder portrait treatment (12 Nov 2026)
   Scoped to #founder. The original founder photograph is never modified. */
#founder.v779-founder{
  position:relative;isolation:isolate;display:grid;
  grid-template-columns:minmax(240px,.75fr) minmax(0,1.25fr);
  gap:clamp(34px,6vw,92px);align-items:center;
  width:min(1240px,calc(100% - 36px));
  margin:clamp(64px,9vw,120px) auto;
  padding:clamp(34px,6vw,80px)!important;
  border:1px solid rgba(196,216,205,.16);border-radius:24px;
  background:
    radial-gradient(circle at 5% 78%,rgba(119,77,157,.32),transparent 43%),
    radial-gradient(circle at 95% 0%,rgba(77,139,113,.18),transparent 50%),
    linear-gradient(135deg,#0b221d 0%,#101e21 61%,#1e1a2d 100%);
  color:#f5f8f4;box-shadow:0 30px 85px -55px rgba(1,21,15,.48);
  overflow:hidden;scroll-margin-top:115px;
}
#founder.v779-founder::before{
  content:"";position:absolute;inset:24px 24px auto auto;
  width:88px;height:1px;background:rgba(227,228,222,.42);
}
#founder .v779-founder-portrait{position:relative;display:grid;justify-items:center;gap:21px;min-width:0}
#founder .v779-founder-portrait::before{
  content:"";position:absolute;z-index:-1;left:5%;top:5%;
  width:95%;aspect-ratio:3/4;border:1px solid rgba(191,167,221,.32);
  border-radius:50%;transform:rotate(-11deg) translate(-6px,8px);
}
#founder .v779-founder-image-frame{
  position:relative;width:min(338px,100%);height:auto;aspect-ratio:3/4.05;
  border-radius:48% 48% 46% 46% / 35% 35% 35% 35%;
  overflow:hidden;border:2px solid rgba(208,192,221,.46);
  background:#151b46;box-shadow:0 24px 55px -28px rgba(0,0,0,.7);
  transition:border-color .45s ease,box-shadow .45s ease,transform .55s cubic-bezier(.2,.7,.25,1);
}
#founder .v779-founder-image-frame::after{
  content:"";position:absolute;inset:0;border-radius:inherit;
  box-shadow:inset 0 0 0 1px rgba(255,255,255,.12);pointer-events:none;
}
#founder .v779-founder-image-frame img{
  display:block;width:100%;height:100%;object-fit:cover;object-position:center 38%;
  transform:scale(1);transition:transform .9s cubic-bezier(.2,.7,.25,1);
}
@media(hover:hover) and (pointer:fine){
  #founder .v779-founder-image-frame:hover{
    transform:translateY(-8px) rotate(-1deg);
    border-color:rgba(225,206,243,.8);
    box-shadow:0 38px 65px -28px rgba(0,0,0,.8);
  }
  #founder .v779-founder-image-frame:hover img{transform:scale(1.035);}
}
#founder .v779-founder-caption{display:grid;gap:7px;text-align:center}
#founder .v779-founder-caption small{
  color:#c8bdde;font-size:10px;font-weight:650;letter-spacing:.15em;
  text-transform:uppercase;
}
#founder .v779-founder-caption strong{
  color:#f7f7f2;font-size:19px;font-weight:680;line-height:1.25;
}
#founder .v779-founder-caption span{color:#b7c9c1;font-size:12px;font-weight:450}
#founder .v779-founder-story{max-width:650px;text-align:left}
#founder .v779-founder-story>.eyebrow{
  margin:0 0 16px;color:#cadbd0;font-size:12px;
  font-weight:670;letter-spacing:.17em;text-transform:uppercase;
}
#founder .v779-founder-story h2{
  max-width:620px;margin:0 0 clamp(18px,3vw,29px);
  font-size:clamp(39px,4.9vw,70px);font-weight:640;
  line-height:1.05;letter-spacing:-.055em;color:#fffaf4;text-wrap:balance;
}
#founder .v779-founder-intro{
  max-width:570px;margin:0 0 16px;color:#e6eae7;
  font-size:clamp(16px,1.5vw,19px);font-weight:420;line-height:1.7;
}
#founder .v779-founder-followup{
  max-width:550px;margin:0;color:#b9cfc5;
  font-size:clamp(14px,1.25vw,16px);line-height:1.8;
}
#founder .v779-founder-action{
  display:flex;align-items:center;flex-wrap:wrap;gap:18px 25px;
  justify-content:flex-start;margin:34px 0 0;padding:0;border:0;
}
#founder .v779-founder-action .btn{
  flex:0 0 auto;display:inline-flex;align-items:center;justify-content:center;
  min-height:49px;padding:13px 24px;border-radius:40px;
  color:#103025;background:#c9e5d2;border:1px solid #c9e5d2;
  font-weight:750;font-size:14px;
  transition:background .25s ease,transform .25s ease;
}
#founder .v779-founder-action .btn:hover{background:#e3f5e6;transform:translateY(-2px)}
#founder .v779-founder-action .btn:focus-visible{outline:3px solid #d8bbfa;outline-offset:4px}
#founder .v779-founder-action-note{color:#b9cfc5;font-size:12px;letter-spacing:.025em}
@media(min-width:981px){
  #founder.is-in-view .v779-founder-image-frame{animation:founderPortraitDrift 8s ease-in-out 1s infinite alternate}
}
@keyframes founderPortraitDrift{
  from{translate:0 0}to{translate:0 -9px}
}
@keyframes founderReveal{
  from{opacity:0;translate:0 28px}to{opacity:1;translate:0 0}
}
#founder.is-motion-ready:not(.is-in-view) .v779-founder-portrait,
#founder.is-motion-ready:not(.is-in-view) .v779-founder-story{opacity:0;translate:0 28px}
#founder.is-motion-ready.is-in-view .v779-founder-portrait{
  animation:founderReveal .85s both cubic-bezier(.18,.7,.25,1)
}
#founder.is-motion-ready.is-in-view .v779-founder-story{
  animation:founderReveal .88s .16s both cubic-bezier(.18,.7,.25,1)
}
@media(max-width:980px){
  #founder.v779-founder{grid-template-columns:1fr;gap:31px;padding:35px 24px!important}
  #founder .v779-founder-image-frame{width:min(330px,74vw)}
  #founder .v779-founder-story{max-width:700px}
}
@media(max-width:620px){
  #founder.v779-founder{width:calc(100% - 20px);margin:54px auto;
    padding:28px 20px 37px!important;border-radius:21px;gap:30px}
  #founder .v779-founder-image-frame{width:min(265px,68vw);aspect-ratio:3/4}
  #founder .v779-founder-portrait::before{left:12%;width:74%}
  #founder .v779-founder-story h2{font-size:clamp(37px,10vw,52px)}
  #founder .v779-founder-action{margin-top:25px}
}
@media(prefers-reduced-motion:reduce){
  #founder .v779-founder-image-frame,
  #founder .v779-founder-image-frame img,
  #founder .v779-founder-action .btn{
    animation:none!important;transition:none!important;transform:none!important;translate:none!important
  }
  #founder .v779-founder-portrait,#founder .v779-founder-story{
    animation:none!important;opacity:1!important;translate:none!important
  }
}


/* v2: Visible, continuous oval portrait motion.
   The earlier treatment only revealed once on scroll and drifted 9px on desktop,
   which was effectively invisible after arriving via the #founder anchor. */
@keyframes founderOvalFloat{
  0%,100%{transform:translate3d(0,0,0) rotate(-1.5deg)}
  50%{transform:translate3d(0,-17px,0) rotate(1.5deg)}
}
@keyframes founderImagePan{
  0%,100%{transform:scale(1.11) translate3d(-1.4%,1%,0)}
  50%{transform:scale(1.17) translate3d(1.4%,-1%,0)}
}
@keyframes founderOvalHalo{
  0%,100%{transform:rotate(-11deg) translate(-6px,8px);opacity:.45}
  50%{transform:rotate(-5deg) translate(4px,-7px);opacity:.85}
}
#founder .v779-founder-image-frame,
#founder.is-in-view .v779-founder-image-frame{
  animation:founderOvalFloat 5.8s ease-in-out infinite!important;
  will-change:transform;
}
#founder .v779-founder-image-frame img{
  animation:founderImagePan 8.5s ease-in-out infinite;
  will-change:transform;
}
#founder .v779-founder-portrait::before{
  animation:founderOvalHalo 7s ease-in-out infinite;
}
#founder.is-motion-ready:not(.is-in-view) .v779-founder-portrait,
#founder.is-motion-ready:not(.is-in-view) .v779-founder-story{
  opacity:1;translate:none;
}
@media(hover:hover) and (pointer:fine){
  #founder .v779-founder-image-frame:hover,
  #founder.is-in-view .v779-founder-image-frame:hover{
    animation-play-state:paused!important;
    transform:translateY(-13px) rotate(0deg) scale(1.025);
  }
  #founder .v779-founder-image-frame:hover img{animation-play-state:paused;transform:scale(1.17)}
}
@media(prefers-reduced-motion:reduce){
  #founder .v779-founder-image-frame,
  #founder.is-in-view .v779-founder-image-frame,
  #founder .v779-founder-image-frame img,
  #founder .v779-founder-portrait::before{
    animation:none!important;transform:none!important;will-change:auto;
  }
}


/* Overlay: name and location live inside the original photo, not below it. */
#founder .v779-founder-image-frame{isolation:isolate}
#founder .v779-founder-image-frame .v779-founder-caption{
  position:absolute;z-index:3;inset:auto 0 0;
  display:flex;flex-direction:column;align-items:center;justify-content:flex-end;
  gap:6px;min-height:45%;padding:56px 18px 30px;
  text-align:center;
  background:linear-gradient(to top,rgba(7,17,18,.95) 0%,rgba(7,17,18,.68) 43%,transparent 100%);
  opacity:0;transform:translateY(18px);
  transition:opacity .42s ease,transform .52s cubic-bezier(.2,.75,.2,1);
  pointer-events:none;
}
#founder .v779-founder-image-frame .v779-founder-caption small{color:#e5d6f2;font-size:10px}
#founder .v779-founder-image-frame .v779-founder-caption strong{color:#fff;font-size:clamp(17px,1.6vw,21px);text-shadow:0 1px 4px #071313}
#founder .v779-founder-image-frame .v779-founder-caption span{color:#e2e8e2;font-size:12px}
#founder .v779-founder-image-frame:hover .v779-founder-caption,
#founder .v779-founder-image-frame:focus-within .v779-founder-caption{
  opacity:1;transform:translateY(0);
}
@media(hover:none),(pointer:coarse){
  #founder .v779-founder-image-frame .v779-founder-caption{
    opacity:1;transform:none;min-height:34%;padding:34px 12px 20px;
  }
}
@media(prefers-reduced-motion:reduce){
  #founder .v779-founder-image-frame .v779-founder-caption{transition:none}
}
