/* Shared device frames. Every design uses these so a project's screen looks the same
   in A–E and the only difference left is the page around it.

   <div class="laptop"><div class="scr"><img src="../assets/img/bryce-d1.webp" alt=""></div></div>
   <div class="phone"><div class="scr"><img src="../assets/img/bryce-m1.webp" alt=""></div></div>

   Size them by width on the outer element; height follows the aspect ratio. */
.laptop{position:relative;width:100%;padding:0 6% 0;box-sizing:border-box}
.laptop .scr{position:relative;aspect-ratio:16/10;background:#0b0b0c;border:solid #141416;
  border-width:clamp(5px,1.1vw,14px);border-bottom-width:clamp(7px,1.5vw,18px);
  border-radius:clamp(8px,1.4vw,18px) clamp(8px,1.4vw,18px) 0 0;overflow:hidden;
  box-shadow:0 0 0 1px #2a2a2e inset}
.laptop .scr img{display:block;width:100%;height:100%;object-fit:cover;object-position:top}
.laptop::after{content:'';display:block;height:clamp(8px,1.2vw,16px);margin:0 -6%;
  background:linear-gradient(#cfd0d4,#9c9da3);border-radius:0 0 clamp(8px,1.4vw,18px) clamp(8px,1.4vw,18px);
  box-shadow:0 18px 40px -18px rgba(0,0,0,.45)}

/* The bezel is an inset on the screen, not padding: padding % follows the PARENT's width, so a
   phone in a wide box (the D showreel) got a bezel 3x too thick that cropped the screenshot (flag #15).
   inset 1.49% top/bottom = 3.2% of the width at 9/19.3. */
.phone{position:relative;aspect-ratio:9/19.3;background:#0b0b0c;border-radius:14%/6.5%;
  box-sizing:border-box;box-shadow:0 0 0 1.5px #3a3a3f inset,0 24px 50px -20px rgba(0,0,0,.5)}
.phone .scr{position:absolute;inset:1.49% 3.2%;border-radius:11%/5.2%;overflow:hidden;background:#000}
.phone .scr img{display:block;width:100%;height:100%;object-fit:cover;object-position:top}

/* a "browser window" frame for flat screenshots (no device) */
.browser{border-radius:10px;overflow:hidden;background:#fff;box-shadow:0 0 0 1px rgba(0,0,0,.08),0 20px 50px -24px rgba(0,0,0,.35)}
.browser .bar{height:28px;background:#ececee;display:flex;align-items:center;gap:6px;padding:0 12px}
.browser .bar i{width:9px;height:9px;border-radius:50%;background:#c9c9ce}
.browser img{display:block;width:100%}

/* soft fade-up on scroll — see reveal.js. Under automation everything is shown at once. */
.rv{opacity:0;transform:translateY(18px);transition:opacity .7s ease,transform .7s ease}
.rv.seen{opacity:1;transform:none}
/* Phone: shorter, lighter fade that starts as a block crosses the bottom edge, so a slow thumb scroll
   never shows blank space waiting for content to pop in (reveal.js sets the earlier trigger). */
@media (max-width:760px){.rv{transform:translateY(10px);transition:opacity .45s cubic-bezier(.2,.6,.2,1),transform .45s cubic-bezier(.2,.6,.2,1)}}
@media (prefers-reduced-motion:reduce){.rv{opacity:1;transform:none;transition:none}}
