/* FIX7 — mobile-only founder story compatibility. Desktop baseline untouched. */
@media (max-width:980px){
  #founderStory .story-fit-stage,
  #founderStory.k6r5-archive .story-fit-stage{
    display:flex!important;
    flex-direction:column!important;
    align-items:center!important;
    justify-content:flex-start!important;
    width:100%!important;
    height:auto!important;
    min-height:0!important;
    gap:18px!important;
    padding:10px 12px 18px!important;
    overflow:visible!important;
  }

  #founderStory .story-fit-shell{
    order:2!important;
    position:relative!important;
    width:min(356px,calc(100vw - 28px))!important;
    height:auto!important;
    min-height:0!important;
    overflow:visible!important;
    align-self:center!important;
    justify-self:auto!important;
    filter:drop-shadow(0 18px 26px rgba(0,0,0,.18));
  }

  #founderStory .story-fit-shell > .founder-story__book{
    position:relative!important;
    left:auto!important;
    top:auto!important;
    width:356px!important;
    max-width:calc(100vw - 28px)!important;
    margin:0 auto!important;
    transform:none!important;
    transform-origin:center top!important;
  }

  #founderStory .founder-story__viewport{
    width:100%!important;
    height:650px!important;
    max-height:72svh!important;
    min-height:540px!important;
  }

  #founderStory .story-history-slot,
  #founderStory.k6r5-archive .story-history-slot{
    display:block!important;
    opacity:1!important;
    visibility:visible!important;
    pointer-events:auto!important;
    width:min(430px,calc(100vw - 24px))!important;
    height:auto!important;
    min-height:500px!important;
    overflow:visible!important;
    margin:0 auto!important;
  }

  #founderStory .story-history-slot--left{order:1!important}
  #founderStory .story-history-slot--right{order:3!important}

  #founderStory.k6r5-archive .k6r5-cloud{
    width:100%!important;
    height:auto!important;
    min-height:500px!important;
    grid-template-columns:repeat(2,minmax(0,1fr))!important;
    grid-template-rows:none!important;
    grid-auto-rows:minmax(86px,auto)!important;
    gap:10px!important;
    padding:4px 0!important;
  }

  #founderStory .founder-story__btn[data-story-action="toggle"]{
    display:inline-flex!important;
    align-items:center!important;
    justify-content:center!important;
    pointer-events:auto!important;
  }

  #founderStory .founder-story__controls{
    position:relative!important;
    z-index:100!important;
    height:auto!important;
    margin:8px auto 10px!important;
    pointer-events:auto!important;
  }
}
/* FIX8 — final mobile phone proportion polish only */
@media (max-width:520px){
  #founderStory .story-fit-shell{
    width:min(348px,calc(100vw - 28px))!important;
  }

  #founderStory .story-fit-shell > .founder-story__book{
    width:348px!important;
    max-width:calc(100vw - 28px)!important;
  }

  #founderStory .founder-story__viewport{
    height:670px!important;
    max-height:74svh!important;
    min-height:560px!important;
  }
}