/* BidEquity redesign: the two detailed motion stories, their shared page (BEP-2310, 4 November 2026).
   Rebuilt from the owner's Codex detailed stories (BidEquity-motion-stories-2026-10-30) to the site's rules:
   brand tokens only, 12px type floor (16px for the narration), 6px corners on controls and cards, no shadows.
   Opened directly, a page shows a slim header (wordmark, a link back to the homepage) and the site footer.
   Opened by the homepage pop-up with ?view=popup, view.js marks <html> .in-popup and only the story shows.
   identify.css and shape.css hold each story's own picture. */

/* ---------- the page ---------- */
.sp{background:var(--be-sand);color:var(--be-navy)}
.sp-w{width:min(1320px,calc(100% - 48px));margin-inline:auto}
.sp-head{display:flex;flex-wrap:wrap;align-items:center;justify-content:space-between;gap:8px 32px;min-height:96px;padding:16px 0}
.sp-mark{display:inline-flex;padding-block:6px;color:var(--be-navy);text-decoration:none}
/* the Vela Intelligence wordmark (navy, for the sand page), as the site footer draws it */
.sp-mark img{display:block;width:96px;height:auto}
.sp-back{color:var(--be-navy);text-decoration-color:var(--be-navy-200)}
.sp-main{padding-bottom:24px}
.sp-foot{margin-top:56px}

/* the stage's frame, as the homepage draws it: a navy-700 bezel round the navy story */
.sp-bezel{padding:8px;background:var(--be-navy-700);border-radius:10px}
.sp-story{position:relative;background:var(--be-navy);color:var(--be-sand);border-radius:4px;padding:0 28px 24px;overflow:clip}
.sp-story p,.sp-story h1,.sp-story h2,.sp-story h3{margin:0}
/* the page is a sand ground (.act-two); inside the navy story the focus ring is bright aqua again */
.sp .sp-story :focus-visible{outline-color:var(--be-bright-aqua)}
.sp [hidden]{display:none !important}
.sr-only{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap}

/* the title line: the story's title and the illustrative-example label */
.topline{display:flex;align-items:center;justify-content:space-between;gap:16px;min-height:80px;padding:20px 0;border-bottom:1px solid var(--be-navy-700)}
.topline h1{font-family:'Spline Sans',sans-serif;font-weight:500;font-size:clamp(24px,2.2vw,30px);line-height:1.2;letter-spacing:-.02em;color:var(--be-sand);text-wrap:balance}
.topline>span{flex:none;font-size:12px;font-weight:600;letter-spacing:.12em;text-transform:uppercase;color:var(--be-navy-200)}

/* the narration: the moment's count, headline and sentence */
.count{display:flex;align-items:center;gap:10px;font-size:12px;font-weight:600;letter-spacing:.08em;color:var(--be-bright-aqua)}
.count i{width:24px;height:1px;background:var(--be-navy-500)}
.headline{margin-top:12px !important;font-family:'Spline Sans',sans-serif;font-weight:500;font-size:28px;line-height:1.18;letter-spacing:-.02em;color:var(--be-sand);text-wrap:balance}
.narration{margin-top:16px !important;font-size:16px;line-height:1.6;color:var(--be-navy-100);max-width:42ch;text-wrap:pretty}

/* the four moments: a button each, the current one marked by word colour and an underline; then play */
.controls{display:flex;align-items:center;gap:16px;padding-top:12px;border-top:1px solid var(--be-navy-700)}
/* on a laptop the story can run taller than the window (or the pop-up), so the moments stay in reach */
@media (min-width:701px){
  .controls{position:sticky;bottom:0;z-index:5;margin-bottom:-24px;padding-bottom:24px;background:var(--be-navy)}
}
.steps{flex:1;display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:8px}
.steps button{min-height:44px;padding:8px;border:0;border-bottom:2px solid transparent;border-radius:6px 6px 0 0;background:none;font-family:'Inter',sans-serif;font-size:14px;font-weight:500;color:var(--be-navy-200);cursor:pointer;transition:color 300ms var(--e),border-color 300ms var(--e)}
.steps button:hover{color:var(--be-sand)}
.steps button[aria-current]{color:var(--be-bright-aqua);border-bottom-color:var(--be-bright-aqua)}
/* the play, pause and replay control shows its icon only; its name is in aria-label (as on the homepage stage) */
.ctl{display:inline-flex;align-items:center;justify-content:center;flex:none;width:44px;height:44px;padding:0;border-radius:6px;border:1px solid var(--be-navy-500);background:transparent;color:var(--be-sand);cursor:pointer;transition:transform 500ms var(--e)}
.ctl:active{transform:scale(.98);transition-duration:160ms}
.ctl .ic{width:32px;height:32px;background:var(--be-navy-700);position:relative}
.ctl:hover .ic,.ctl:focus-visible .ic{transform:scale(1.08)}
.ctl .ic::before,.ctl .ic::after{content:"";position:absolute}
.ctl[data-state="playing"] .ic::before,.ctl[data-state="playing"] .ic::after{top:10px;width:3px;height:12px;background:var(--be-sand);border-radius:1px}
.ctl[data-state="playing"] .ic::before{left:12px}
.ctl[data-state="playing"] .ic::after{left:17px}
.ctl[data-state="paused"] .ic::before{left:13px;top:10px;width:9px;height:12px;background:var(--be-sand);clip-path:polygon(0 0,100% 50%,0 100%)}
.ctl[data-state="ended"] .ic::before{left:9px;top:9px;width:14px;height:14px;border:2px solid var(--be-sand);border-top-color:transparent;border-radius:50%}
.ctl[data-state="ended"] .ic::after{left:16px;top:7px;width:0;height:0;border-left:5px solid var(--be-sand);border-top:4px solid transparent;border-bottom:4px solid transparent}

/* the lines under the story */
.sp-note{margin-top:16px;font-size:14px;line-height:1.5;color:var(--be-navy-700)}

/* ---------- inside the homepage pop-up (?view=popup): the story alone, filling the frame ---------- */
.in-popup .sp{background:var(--be-navy);color:var(--be-sand)}
.in-popup .sp-head,.in-popup .sp-foot,.in-popup .sp-back,.in-popup .skip{display:none}
.in-popup .sp-w{width:100%}
.in-popup .sp-main{padding-bottom:0}
.in-popup .sp-bezel{padding:0;background:none;border-radius:0}
.in-popup .sp-story{border-radius:0}
.in-popup .sp-note{margin:0;padding:0 28px 20px;color:var(--be-navy-200)}

/* ---------- responsive ---------- */
@media (max-width:700px){
  .sp-w{width:calc(100% - 32px)}
  .sp-head{min-height:80px}
  .sp-story{padding:0 16px 16px}
  .topline{display:block;padding:16px 0}
  .topline h1{font-size:24px}
  .topline>span{display:block;margin-top:8px}
  .headline{font-size:24px}
  .controls{flex-wrap:wrap;gap:8px}
  .steps{flex-basis:100%;grid-template-columns:repeat(2,minmax(0,1fr))}
  .ctl{margin-left:auto}
  .in-popup .sp-note{padding:0 16px 16px}
}
@media (prefers-reduced-motion:reduce){
  .sp *,.sp *::before,.sp *::after{animation:none !important;transition:none !important}
  .ctl{display:none !important}
}
