/* V53 — Founder signature portrait refinement only
   Scope: Home + About, VI/EN, desktop/mobile. Team portrait system from V52 remains unchanged. */
:root{
  --founder-paper:#f7f3eb;
  --founder-sage:#dfe8e0;
  --founder-line:rgba(31,77,67,.18);
}

/* Founder gets a quieter, more editorial frame than team portraits. */
body[data-page="home"] .home-founder .portrait-frame,
body[data-page="about"] .founder .portrait-frame{
  position:relative;
  isolation:isolate;
  padding:0 8px 8px 0;
  max-width:600px;
}
body[data-page="home"] .home-founder .portrait-frame::after,
body[data-page="about"] .founder .portrait-frame::after{
  content:"";
  display:block;
  position:absolute;
  z-index:-1;
  inset:6px 0 0 6px;
  background:var(--founder-sage);
  border:1px solid rgba(31,77,67,.09);
  border-radius:6px;
}
body[data-page="home"] .home-founder .portrait-frame img,
body[data-page="about"] .founder .portrait-frame img{
  display:block;
  width:100%;
  aspect-ratio:4/5;
  height:auto;
  max-height:none;
  object-fit:cover;
  object-position:center 20%;
  border:1px solid var(--founder-line);
  border-radius:5px;
  box-shadow:0 8px 18px rgba(31,77,67,.045);
  background:var(--founder-paper);
}

/* Give the Founder portrait slightly more visual authority on wide screens. */
@media(min-width:1000px){
  body[data-page="home"] .home-founder .founder,
  body[data-page="about"] .founder{
    grid-template-columns:minmax(0,.92fr) minmax(0,1.08fr);
  }
}

@media(max-width:600px){
  body[data-page="home"] .home-founder .portrait-frame,
  body[data-page="about"] .founder .portrait-frame{
    width:100%;
    max-width:500px;
    padding:0 6px 6px 0;
  }
  body[data-page="home"] .home-founder .portrait-frame::after,
  body[data-page="about"] .founder .portrait-frame::after{
    inset:5px 0 0 5px;
    border-radius:5px;
  }
  body[data-page="home"] .home-founder .portrait-frame img,
  body[data-page="about"] .founder .portrait-frame img{
    aspect-ratio:4/5;
    border-radius:4px;
    box-shadow:0 6px 14px rgba(31,77,67,.04);
  }
}
