/* web project pages (one per site on web-design.html): the live-site button, the hero video with a phone,
   the chosen pages slider (changes by itself, progress on the buttons), and the inner pages grid */
.scx .sc-live{display:inline-flex;align-items:center;gap:10px;padding:13px 28px;border-radius:99px;background:linear-gradient(90deg,#c9a6ff,#ff7ad9);color:#1a0c34;font-weight:800;text-decoration:none;box-shadow:0 14px 34px -14px rgba(255,92,200,.75);transition:transform .25s,box-shadow .25s}
.scx .sc-live:hover{transform:translateY(-2px);box-shadow:0 18px 40px -14px rgba(255,92,200,.95)}
.scx .sc-live svg{width:18px;height:18px;flex:none}

/* hero: the site's first screen as a video, the phone in front of it */
.scx .sc-tilt{position:relative;padding-bottom:6%}
.scx .sc-shot video,.scx .sc-shot .sp-poster{display:block;width:100%;height:100%;object-fit:cover;object-position:50% 0}
.scx .sp-hphone{position:absolute;left:-5%;bottom:-2%;width:23%;padding:7px;border-radius:30px;background:#111;box-shadow:0 40px 60px -24px rgba(0,0,0,.9),0 0 0 1px rgba(255,255,255,.16);z-index:3;opacity:0;animation:spPhone 1.1s .9s cubic-bezier(.2,.8,.2,1) forwards}
.scx .sp-hphone img{display:block;width:100%;aspect-ratio:390/844;object-fit:cover;object-position:50% 0;border-radius:23px;background:#fff}
@keyframes spPhone{from{opacity:0;transform:translateY(50px)}to{opacity:1;transform:none}}

/* the steps beside the full page can be clicked */
.scx .sc-steps li{cursor:pointer}
.scx .sc-steps li:hover{color:#fff}

/* chosen pages slider */
.sp-pages{width:min(1300px,92vw);margin:0 auto;padding:clamp(60px,8vw,120px) 0 clamp(30px,4vw,60px)}
.sp-head{display:grid;gap:10px;margin-bottom:clamp(20px,3vw,30px)}
.sp-head .sc-kick{justify-self:start}
.sp-head p{max-width:40em;color:rgba(244,241,255,.78);font-size:clamp(1rem,1.1vw,1.15rem);line-height:1.6;margin:0}
.sp-row{display:flex;flex-wrap:wrap;align-items:center;justify-content:space-between;gap:14px 24px;margin-bottom:20px}
.sp-tabs{display:flex;flex-wrap:wrap;gap:10px}
.sp-tab{position:relative;overflow:hidden;font:inherit;font-size:1rem;font-weight:700;padding:10px 22px;border-radius:99px;border:1px solid rgba(255,255,255,.28);background:rgba(255,255,255,.07);color:#f4f1ff;cursor:pointer;transition:background .25s,color .25s,border-color .25s}
.sp-tab span{position:relative;z-index:1}
.sp-tab:hover{border-color:#ff7ad9;background:rgba(255,255,255,.13)}
.sp-tab[aria-selected="true"]{background:rgba(255,255,255,.14);border-color:#ff7ad9}
.sp-tab:focus-visible{outline:2px solid #fff;outline-offset:3px}
/* the fill shows how long until the next screen */
.sp-prog{position:absolute;inset:0;transform-origin:100% 50%;transform:scaleX(0);background:linear-gradient(90deg,#c9a6ff,#ff7ad9);opacity:.55}
.sp-tab[aria-selected="true"] .sp-prog.run{animation:spProg var(--dur,7s) linear forwards}
.sp-pages.sp-hold .sp-prog.run{animation-play-state:paused}
@keyframes spProg{to{transform:scaleX(1)}}
.sp-ctl{display:flex;align-items:center;gap:10px;direction:rtl}
.sp-ctl button{width:44px;height:44px;border-radius:50%;border:1px solid rgba(255,255,255,.35);background:rgba(255,255,255,.07);color:#fff;display:grid;place-items:center;cursor:pointer;transition:background .25s,color .25s}
.sp-ctl button:hover{background:#fff;color:#1a0c34}
.sp-ctl button:focus-visible{outline:2px solid #fff;outline-offset:3px}
.sp-ctl svg{width:20px;height:20px}
.sp-count{font-family:'Rubik',sans-serif;font-weight:700;color:rgba(244,241,255,.6);min-width:66px;text-align:center;direction:ltr}
.sp-count b{color:#fff;font-size:1.25em}
.sp-pp .sp-i-play{display:none}
.sp-pages.sp-stop .sp-pp .sp-i-play{display:block}
.sp-pages.sp-stop .sp-pp .sp-i-pause{display:none}
.sp-body{display:grid;gap:14px}
.sp-frame{border-radius:16px;overflow:hidden;background:#fff;box-shadow:0 50px 90px -40px rgba(0,0,0,.85),0 0 0 1px rgba(255,255,255,.18)}
.sp-frame .sc-bar{display:flex;align-items:center;gap:6px;height:34px;padding:0 14px;background:#ece9f5}
.sp-frame .sc-bar i{width:10px;height:10px;border-radius:50%;background:#c9c3dc}
.sp-frame .sc-bar span{margin:0 auto;max-width:70%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;direction:ltr;font-size:.8rem;color:#5a4f7a;padding:3px 16px;border-radius:99px;background:#fff}
/* a window onto the page: the picture scrolls inside it by itself, the page's own scrolling is never caught */
.sp-view{position:relative;height:min(58svh,540px);overflow:hidden;background:#f4f2f8}
.sp-view img{position:absolute;top:0;right:0;width:100%;height:auto;opacity:0;transition:opacity .6s}
.sp-view img.on{opacity:1}
.sp-foot{display:flex;flex-wrap:wrap;align-items:center;justify-content:space-between;gap:12px;color:rgba(244,241,255,.7);font-size:.95rem}
.sp-open{display:inline-flex;align-items:center;gap:8px;padding:10px 22px;border-radius:99px;border:1.5px solid rgba(255,255,255,.6);color:#fff;font-weight:700;text-decoration:none;transition:background .25s,color .25s}
.sp-open:hover{background:#fff;color:#1a0c34}

/* inner pages, side by side and upright; hovering scrolls each page */
.sp-grid{display:grid;grid-template-columns:repeat(var(--n,3),1fr);gap:clamp(16px,2vw,28px);margin-top:30px}
.sp-card{margin:0;display:grid;gap:12px}
.sp-card .sp-win{border-radius:14px;overflow:hidden;background:#fff;box-shadow:0 40px 70px -34px rgba(0,0,0,.85),0 0 0 1px rgba(255,255,255,.18);transition:transform .4s cubic-bezier(.2,.8,.2,1)}
.sp-card .sc-bar{display:flex;align-items:center;gap:5px;height:28px;padding:0 12px;background:#ece9f5}
.sp-card .sc-bar i{width:8px;height:8px;border-radius:50%;background:#c9c3dc}
.sp-card .sp-crop{aspect-ratio:4/5;background-size:100% auto;background-repeat:no-repeat;background-position:50% var(--y,0%);transition:background-position 5s cubic-bezier(.45,0,.55,1)}
.sp-card.sp-scroll:hover .sp-crop{background-position:50% 100%}
.sp-card:hover .sp-win{transform:translateY(-6px)}
.sp-card figcaption{display:flex;align-items:center;justify-content:space-between;gap:10px;color:#fff;font-weight:700;font-size:1.05rem}
.sp-card figcaption small{font-family:'Rubik',sans-serif;color:#ff7ad9;font-weight:800;font-size:.85rem}
.sp-card figcaption a{color:rgba(244,241,255,.75);font-weight:600;font-size:.9rem;text-decoration:none;display:inline-flex;align-items:center;gap:6px}
.sp-card figcaption a:hover{color:#fff;text-decoration:underline}

@media(max-width:900px){
  .scx .sp-hphone{left:-2%;width:26%;border-radius:20px;padding:5px}
  .scx .sp-hphone img{border-radius:15px}
  .sp-view{height:52svh}
  .sp-tab{font-size:.92rem;padding:8px 16px}
  .sp-row{flex-direction:column;align-items:stretch}
  .sp-ctl{justify-content:center}
  .sp-grid{grid-template-columns:1fr 1fr}
}
@media(max-width:560px){.sp-grid{grid-template-columns:1fr}}
@media(prefers-reduced-motion:reduce){.sp-prog{display:none}.sp-card .sp-crop{transition:none}.scx .sp-hphone{opacity:1;animation:none}}
