/* Video reels for the public pages (home, the for-households, for-adhd-homes, how-it-fits-together, scan-receipts-to-pantry, for-performers and ai subpages and their Swedish twins), driven by
   home-reel.js. The reel itself is always dark, on both the light and the dark page theme. */
/* video reels: a poster until they scroll into view, then a silent loop; the round button pauses and plays */
.reel{position:relative;margin:clamp(28px,5vw,48px) 0 0;border-radius:22px;overflow:hidden;background:#0F1012;border:1px solid var(--line);aspect-ratio:16/9;box-shadow:0 40px 80px -40px rgba(23,24,26,.5),0 10px 24px -14px rgba(23,24,26,.3)}
.reel.clip{aspect-ratio:4/3;border-radius:18px;margin:0;box-shadow:0 30px 60px -34px rgba(23,24,26,.45)}
.reel video{display:block;width:100%;height:100%;object-fit:cover;background:#0F1012}
@media (max-width:640px){.reel[data-tall]{aspect-ratio:4/5;border-radius:18px}}
.vbtn{position:absolute;right:12px;bottom:12px;width:44px;height:44px;border-radius:50%;border:1px solid rgba(232,232,230,.2);background:rgba(15,16,18,.74);color:#E8E8E6;display:grid;place-items:center;cursor:pointer;padding:0;transition:transform .3s cubic-bezier(.2,.9,.25,1),background-color .2s}
.vbtn:hover{background:rgba(15,16,18,.92)}
.vbtn:focus-visible{outline:3px solid var(--accent);outline-offset:2px}
.vbtn svg{width:16px;height:16px;fill:currentColor}
.vbtn .i-play,.is-paused .vbtn .i-pause{display:none}
.is-paused .vbtn .i-play{display:block}
/* never played yet (reduced motion, or a browser that refused autoplay): a big play button in the middle */
.is-idle .vbtn{right:50%;bottom:50%;transform:translate(50%,50%);width:72px;height:72px;background:var(--accent);border-color:transparent;color:var(--on-accent,#17181A)}
.is-idle .vbtn svg{width:24px;height:24px}
.is-idle .vbtn:hover{transform:translate(50%,50%) scale(1.06);background:var(--accent)}
/* a reel with a visible caption under it (subpages): the frame moves to .reel-box so the caption sits outside it */
.reel.has-cap,.reel.has-cap[data-tall]{aspect-ratio:auto;overflow:visible;background:none;border:0;border-radius:0;box-shadow:none}
.reel-box{position:relative;border-radius:22px;overflow:hidden;background:#0F1012;border:1px solid var(--line);aspect-ratio:16/9;box-shadow:0 40px 80px -40px rgba(23,24,26,.5),0 10px 24px -14px rgba(23,24,26,.3)}
@media (max-width:640px){.reel[data-tall] .reel-box{aspect-ratio:4/5;border-radius:18px}}
.reel-cap{margin:10px 2px 0;font-size:14px;line-height:1.45;color:var(--muted)}