/* /website-examples and /websites: the preview frames (a browser window or a phone
   that scrolls by hand through a full-page capture) and the ventures row.
   Each preview is a scrollable region: the visitor scrolls inside it. */

.bw-from{margin-top:20px;font-size:15px;color:var(--muted)}
.bw-from b{color:var(--ink);font-weight:600}

/* hero: two phones, offset */
.bw-stack{position:relative;display:block;height:560px;max-width:520px;margin-left:auto;width:100%}
.bw-phone{position:absolute;top:0;left:8%;width:260px;height:540px;border-radius:40px;padding:10px;background:#11171f;box-shadow:0 40px 80px -40px rgba(17,23,31,.45)}
.bw-phone.two{left:auto;right:4%;top:48px;width:236px;height:488px;background:#20272d}
.bw-phone::before{content:"";position:absolute;top:18px;left:50%;width:72px;height:20px;margin-left:-36px;border-radius:12px;background:#000;z-index:2}
.bw-scr{display:block;height:100%;border-radius:32px;background:#fff}
/* .subhero .hero-grid img in styles.css forces 430px and cover on every hero image; these frames need the full-height capture */
.bw-scr img,.subhero .bw-scr img,.subhero .bw-view img{width:100%;height:auto;max-height:none;object-fit:fill;border-radius:0;}

/* the grid of examples */
.bw-grid{display:grid;grid-template-columns:repeat(2,1fr);gap:48px 32px}
.bw-ex.wide{grid-column:1/-1}
.bw-frame{display:block;border:1px solid var(--line);border-radius:16px;overflow:hidden;background:#fff;text-decoration:none;transition:border-color .25s,box-shadow .25s}
.bw-bar{display:flex;align-items:center;gap:8px;height:36px;padding:0 16px;border-bottom:1px solid var(--line);background:#f2f3f1}
.bw-bar i{width:10px;height:10px;border-radius:50%;background:#d6d9d6}
.bw-bar span{margin-left:12px;font-size:12px;color:var(--muted);background:#fff;border:1px solid var(--line);border-radius:8px;padding:2px 12px}
.bw-view{display:block;position:relative;aspect-ratio:16/10}
.bw-ex.wide .bw-view{aspect-ratio:16/7}
.bw-view img{width:100%;height:auto}
.bw-cap{display:flex;flex-direction:column;align-items:flex-start;gap:12px;margin-top:20px}
.bw-ex.wide .bw-cap{flex-direction:row;justify-content:space-between;align-items:flex-end;gap:24px}
.bw-cap h3{font-size:28px;margin:4px 0 8px}
.bw-cap p{color:var(--muted);max-width:520px;margin:0}
.bw-k{font-size:13px;font-weight:500;color:var(--accent)}
@media(hover:hover){.bw-frame:hover{border-color:#c4c8c4;box-shadow:0 24px 48px -32px rgba(17,23,31,.35)}}

/* The previews scroll by hand: wheel, trackpad or finger inside the frame.
   Lenis leaves them alone (data-lenis-prevent), and a thin bar shows there
   is more below. */
.bw-view,.bw-scr{overflow-y:auto;overscroll-behavior-y:auto;scrollbar-width:thin;scrollbar-color:rgba(32,39,45,.25) transparent;-webkit-overflow-scrolling:touch}
.bw-view::-webkit-scrollbar,.bw-scr::-webkit-scrollbar{width:6px}
.bw-view::-webkit-scrollbar-thumb,.bw-scr::-webkit-scrollbar-thumb{background:rgba(32,39,45,.25);border-radius:6px}
.bw-view:focus-visible,.bw-scr:focus-visible{outline:2px solid #2867d9;outline-offset:-2px}
.bw-open{margin-left:auto;font-size:12px;font-weight:600;color:var(--ink);text-decoration:none;padding:2px 10px;border:1px solid var(--line);border-radius:8px;background:#fff}
@media(hover:hover){.bw-open:hover{border-color:var(--ink)}}

/* features */
.bw-feat{display:grid;grid-template-columns:repeat(3,1fr);gap:40px 32px}
.bw-feat>div{border-top:1px solid var(--line);padding-top:20px}
.bw-feat h3{font-size:22px;margin:12px 0 8px}
.bw-feat p{color:var(--muted);margin:0}
.bw-note{margin-top:40px;color:var(--muted);max-width:720px}

/* ventures */
.bw-ven{display:grid;grid-template-columns:repeat(4,1fr);gap:24px}
.bw-ven a{display:block;text-decoration:none;color:inherit}
/* Each venture photo sits in a frame with a shade that rises from the bottom
   on hover and a label that follows it up; the photo eases in a little. */
.bw-ven-img{position:relative;display:block;overflow:hidden;border-radius:16px;margin-bottom:16px;isolation:isolate}
.bw-ven img{display:block;width:100%;height:auto;aspect-ratio:4/3;object-fit:cover;transition:transform .8s cubic-bezier(.2,.7,.2,1),filter .8s cubic-bezier(.2,.7,.2,1)}
.bw-ven-img::after{content:"";position:absolute;inset:0;background:linear-gradient(to top,rgba(17,23,31,.86) 0%,rgba(17,23,31,.35) 45%,rgba(17,23,31,0) 75%);transform:translate3d(0,40%,0);opacity:0;transition:opacity .5s ease,transform .7s cubic-bezier(.2,.7,.2,1);pointer-events:none}
.bw-ven-go{position:absolute;left:20px;bottom:18px;z-index:1;color:#fff;font-size:14px;font-weight:600;opacity:0;transform:translate3d(0,12px,0);transition:opacity .45s ease .05s,transform .6s cubic-bezier(.2,.7,.2,1) .05s}
@media(hover:hover){
  .bw-ven a:hover img{transform:scale(1.06);filter:saturate(1.08)}
  .bw-ven a:hover .bw-ven-img::after{opacity:1;transform:none}
  .bw-ven a:hover .bw-ven-go{opacity:1;transform:none}
  .bw-ven a:hover h3{color:var(--accent)}
}
.bw-ven a:focus-visible .bw-ven-img::after,.bw-ven a:focus-visible .bw-ven-go{opacity:1;transform:none}
.bw-ven h3{transition:color .3s ease}
@media(prefers-reduced-motion:reduce){.bw-ven img,.bw-ven-img::after,.bw-ven-go{transition:opacity .2s ease}}
.bw-ven h3{font-size:24px;margin:4px 0 8px}
.bw-ven p{color:var(--muted);margin:0;font-size:15px}

@media(max-width:960px){
  .bw-stack{height:480px;margin:40px auto 0}
  .bw-phone{width:220px;height:456px}
  .bw-phone.two{width:200px;height:412px}
  .bw-grid{grid-template-columns:1fr;gap:48px}
  .bw-ex.wide .bw-view{aspect-ratio:16/10}
  .bw-feat{grid-template-columns:1fr 1fr}
  .bw-ven{grid-template-columns:1fr 1fr}
}
@media(max-width:620px){
  .bw-stack{height:420px}
  .bw-phone{left:0;width:196px;height:404px;border-radius:32px;padding:8px}
  .bw-scr{border-radius:24px}
  .bw-phone.two{right:0;width:176px;height:364px}
  .bw-ex.wide .bw-cap{flex-direction:column;align-items:flex-start;gap:12px}
  .bw-feat{grid-template-columns:1fr}
  .bw-view{aspect-ratio:4/5}
  .bw-ex.wide .bw-view{aspect-ratio:4/5}
}

/* /websites borrows these frames: a desktop window with a phone in front of it */
.ws-stack .ws-desk{position:absolute;left:0;top:24px;width:88%;box-shadow:0 30px 60px -36px rgba(17,23,31,.35)}
.ws-stack .ws-desk .bw-view{aspect-ratio:4/3}
.ws-stack .bw-phone.two{top:auto;bottom:0;right:0}
.ws-fields .work-card h3{margin-bottom:4px}
@media(max-width:960px){.ws-stack .ws-desk{width:92%}}
@media(max-width:620px){.ws-stack{height:400px}.ws-stack .ws-desk{width:100%}.ws-stack .bw-phone.two{width:150px;height:310px}}
