/* CappsAI Studio animated workflow player (.sf) + homepage showcase (.sfh) */
.sf {
  --sf-ink: #0c1730; --sf-ink-2: #3b475e; --sf-ink-3: #6b7689; --sf-line: #e4e8f0; --sf-tint: #f5f7fc;
  --sf-acc: #4f46e5; --sf-vio: #9333ea; --sf-sky: #0ea5e9; --sf-green: #059669; --sf-wa: #25d366;
  position: relative; color: var(--sf-ink); font-family: "Inter", system-ui, sans-serif;
}
.sf-frame { background: #fff; border-radius: 22px; overflow: hidden; box-shadow: 0 50px 100px -40px rgba(0,0,0,.65), 0 0 0 1px rgba(255,255,255,.08); }
.sf-bar { display: flex; align-items: center; gap: .4rem; padding: .7rem 1rem; background: #f3f5fa; border-bottom: 1px solid var(--sf-line); }
.sf-bar i.d { width: 10px; height: 10px; border-radius: 50%; background: #dde2ec; }
.sf-url { margin-left: .6rem; flex: 1; max-width: 300px; background: #fff; border: 1px solid var(--sf-line); border-radius: 8px; padding: .28rem .7rem; font-size: .74rem; color: var(--sf-ink-3); display: flex; align-items: center; gap: .4rem; white-space: nowrap; overflow: hidden; }
.sf-url i { color: var(--sf-green); font-size: .65rem; }
.sf-stage { position: relative; height: 430px; background: var(--sf-tint); overflow: hidden; }
.sf-scene { position: absolute; inset: 0; padding: 1.2rem; opacity: 0; visibility: hidden; transition: opacity .45s ease, visibility 0s .45s; }
.sf-scene.on { opacity: 1; visibility: visible; transition: opacity .45s ease; }
.sf-a { opacity: 0; }
.sf-scene.on .sf-a { animation: sf-in .55s cubic-bezier(.16,.8,.3,1) var(--d, 0s) both; }
@keyframes sf-in { from { opacity: 0; transform: translateY(12px) scale(.98); } to { opacity: 1; transform: none; } }
.sf-scene.on .sf-pop { animation: sf-pop .5s cubic-bezier(.2,1.4,.4,1) var(--d, 0s) both; }
@keyframes sf-pop { from { opacity: 0; transform: scale(.6); } to { opacity: 1; transform: none; } }

/* Scene 1 — website + bot */
.sf-site { position: absolute; inset: 1.2rem; border-radius: 14px; background: #fff; border: 1px solid var(--sf-line); padding: 1.1rem 1.2rem; overflow: hidden; }
.sf-site-nav { display: flex; align-items: center; justify-content: space-between; margin-bottom: 1.4rem; }
.sf-site-logo { font-weight: 800; font-size: .9rem; letter-spacing: -.01em; }
.sf-site-logo span { color: #b45309; }
.sf-sk { display: block; height: 8px; border-radius: 6px; background: #eceff5; }
.sf-site h4, .sf-site .sf-h { font-family: "Geist", sans-serif; font-size: 1.35rem; line-height: 1.15; margin: 0 0 .7rem; max-width: 12em; color: var(--sf-ink); }
.sf-site-img { position: absolute; left: 1.2rem; bottom: 1.2rem; width: 44%; height: 38%; border-radius: 12px; background: linear-gradient(135deg, #fde68a, #fca5a5 60%, #c4b5fd); opacity: .55; }
.sf-bot { position: absolute; right: 1.1rem; bottom: 1rem; width: min(270px, 58%); background: #fff; border-radius: 18px; box-shadow: 0 24px 50px -18px rgba(12,23,48,.4); overflow: hidden; border: 1px solid var(--sf-line); }
.sf-bot-head { display: flex; align-items: center; gap: .55rem; padding: .65rem .8rem; color: #fff; background: linear-gradient(95deg, var(--sf-acc), var(--sf-vio)); }
.sf-bot-av { position: relative; width: 30px; height: 30px; border-radius: 50%; background: rgba(255,255,255,.2); display: grid; place-items: center; font-size: .8rem; }
.sf-bot-av::after { content: ""; position: absolute; inset: -4px; border-radius: 50%; border: 2px solid rgba(255,255,255,.55); animation: sf-ring 1.8s ease-out infinite; }
@keyframes sf-ring { from { transform: scale(.85); opacity: .9; } to { transform: scale(1.45); opacity: 0; } }
.sf-bot-head b { font-size: .8rem; display: block; }
.sf-bot-head small { font-size: .66rem; opacity: .85; }
.sf-bot-body { padding: .7rem; display: flex; flex-direction: column; gap: .4rem; background: #f7f8fc; min-height: 205px; }
.sf-m { max-width: 86%; padding: .45rem .6rem; border-radius: 12px; font-size: .72rem; line-height: 1.4; }
.sf-m.b { align-self: flex-start; background: #fff; border: 1px solid var(--sf-line); border-bottom-left-radius: 3px; }
.sf-m.u { align-self: flex-end; background: var(--sf-acc); color: #fff; border-bottom-right-radius: 3px; }
.sf-typing { align-self: flex-start; display: inline-flex; gap: 3px; padding: .5rem .6rem; background: #fff; border: 1px solid var(--sf-line); border-radius: 12px; }
.sf-typing i { width: 5px; height: 5px; border-radius: 50%; background: #a5b4fc; animation: sf-dot 1s infinite; }
.sf-typing i:nth-child(2) { animation-delay: .15s; } .sf-typing i:nth-child(3) { animation-delay: .3s; }
@keyframes sf-dot { 0%, 60%, 100% { transform: translateY(0); opacity: .5; } 30% { transform: translateY(-3px); opacity: 1; } }
.sf-scene.on .sf-typing { animation: sf-typing-life 1.2s var(--d, 0s) both; }
@keyframes sf-typing-life { 0% { opacity: 0; } 10%, 85% { opacity: 1; } 100% { opacity: 0; height: 0; padding: 0; margin: -0.2rem 0; border-width: 0; } }

/* Shared app chrome for scenes 2–5 */
.sf-app { position: absolute; inset: 0; display: grid; grid-template-columns: 54px 1fr; }
.sf-side { background: #0b1030; display: flex; flex-direction: column; align-items: center; gap: .9rem; padding-top: .9rem; }
.sf-side img { width: 26px; height: 26px; }
.sf-side i { color: #64708f; font-size: .85rem; width: 32px; height: 32px; display: grid; place-items: center; border-radius: 9px; }
.sf-side i.act { background: rgba(129,140,248,.18); color: #c7d2fe; }
.sf-main { padding: 1.1rem 1.2rem; overflow: hidden; position: relative; }
.sf-title { display: flex; align-items: center; justify-content: space-between; margin-bottom: .9rem; }
.sf-title b { font-family: "Geist", sans-serif; font-size: 1.05rem; }
.sf-title span { font-size: .7rem; color: var(--sf-ink-3); }
.sf-card { background: #fff; border: 1px solid var(--sf-line); border-radius: 14px; padding: .85rem .95rem; }
.sf-row { display: flex; align-items: center; gap: .7rem; padding: .55rem .2rem; border-bottom: 1px solid #eef1f6; font-size: .78rem; }
.sf-row:last-child { border-bottom: 0; }
.sf-av { width: 28px; height: 28px; border-radius: 9px; display: grid; place-items: center; color: #fff; font-weight: 700; font-size: .72rem; flex-shrink: 0; }
.sf-row .grow { flex: 1; min-width: 0; }
.sf-row .grow b { display: block; font-size: .8rem; }
.sf-row .grow small { color: var(--sf-ink-3); font-size: .68rem; }
.sf-pill { font-size: .64rem; font-weight: 700; padding: .2rem .5rem; border-radius: 999px; white-space: nowrap; }
.sf-pill.new { background: rgba(79,70,229,.1); color: var(--sf-acc); }
.sf-pill.ok { background: rgba(5,150,105,.12); color: var(--sf-green); }
.sf-pill.warn { background: rgba(217,119,6,.12); color: #b45309; }
.sf-row.hl { background: linear-gradient(90deg, rgba(79,70,229,.08), transparent); border-radius: 10px; }
.sf-toast { position: absolute; right: 1rem; top: 1rem; display: flex; align-items: center; gap: .55rem; background: #fff; border-radius: 12px; padding: .55rem .75rem; box-shadow: 0 16px 34px -14px rgba(12,23,48,.4); font-size: .72rem; z-index: 2; border: 1px solid var(--sf-line); }
.sf-toast i { width: 26px; height: 26px; border-radius: 8px; display: grid; place-items: center; background: rgba(79,70,229,.1); color: var(--sf-acc); }
.sf-toast b { display: block; font-size: .76rem; }
.sf-toast small { color: var(--sf-ink-3); }

/* Scene 3 — AI quote */
.sf-ai { display: flex; align-items: center; gap: .55rem; padding: .65rem .8rem; border-radius: 12px; border: 1px solid rgba(79,70,229,.3); background: rgba(79,70,229,.06); font-size: .8rem; margin-bottom: .8rem; min-height: 2.6rem; }
.sf-ai > i { color: var(--sf-acc); }
.sf-caret { display: inline-block; width: 2px; height: 1em; background: var(--sf-acc); margin-left: 1px; vertical-align: -2px; animation: sf-blink 1s steps(1) infinite; }
@keyframes sf-blink { 50% { opacity: 0; } }
.sf-q-line { display: flex; justify-content: space-between; font-size: .78rem; padding: .45rem 0; border-bottom: 1px dashed var(--sf-line); color: var(--sf-ink-2); }
.sf-q-line b { color: var(--sf-ink); }
.sf-q-total { display: flex; justify-content: space-between; font-weight: 800; font-size: .95rem; padding-top: .6rem; }
.sf-note { margin-top: .7rem; font-size: .68rem; color: var(--sf-ink-3); display: flex; align-items: center; gap: .4rem; }
.sf-note i { color: var(--sf-green); }

/* Scene 4 — WhatsApp share */
.sf-share { display: grid; grid-template-columns: 1fr 1fr; gap: .9rem; height: calc(100% - 2.2rem); }
.sf-phone { background: #e9e4dc; border-radius: 18px; padding: .7rem; border: 6px solid #0b1030; display: flex; flex-direction: column; gap: .45rem; overflow: hidden; }
.sf-wa-head { margin: -.7rem -.7rem .2rem; padding: .55rem .7rem; background: #075e54; color: #fff; font-size: .72rem; font-weight: 600; display: flex; align-items: center; gap: .45rem; }
.sf-wa { align-self: flex-end; max-width: 90%; background: #d9fdd3; border-radius: 10px; padding: .45rem .55rem; font-size: .7rem; line-height: 1.4; }
.sf-wa .doc { display: flex; align-items: center; gap: .4rem; background: rgba(255,255,255,.7); border-radius: 8px; padding: .35rem .45rem; margin-bottom: .3rem; font-weight: 600; }
.sf-wa .doc i { color: #dc2626; }
.sf-wa small { display: block; text-align: right; color: #53bdeb; font-size: .62rem; }
.sf-wa.in { align-self: flex-start; background: #fff; }
.sf-status { display: flex; flex-direction: column; gap: .55rem; }
.sf-stat { display: flex; align-items: center; gap: .6rem; background: #fff; border: 1px solid var(--sf-line); border-radius: 12px; padding: .6rem .75rem; font-size: .76rem; }
.sf-stat i { width: 26px; height: 26px; border-radius: 8px; display: grid; place-items: center; font-size: .72rem; }
.sf-stat small { display: block; color: var(--sf-ink-3); font-size: .66rem; }

/* Scene 5 — paid + team */
.sf-kpis { display: grid; grid-template-columns: repeat(3, 1fr); gap: .6rem; margin-bottom: .8rem; }
.sf-kpi { background: #fff; border: 1px solid var(--sf-line); border-radius: 12px; padding: .65rem .75rem; }
.sf-kpi small { display: block; font-size: .64rem; color: var(--sf-ink-3); text-transform: uppercase; letter-spacing: .06em; }
.sf-kpi b { font-family: "Geist", sans-serif; font-size: 1.1rem; }
.sf-chart { display: flex; align-items: flex-end; gap: 6%; height: 110px; padding: .7rem .9rem 0; }
.sf-chart span { flex: 1; border-radius: 6px 6px 0 0; background: linear-gradient(180deg, #818cf8, #4f46e5); transform-origin: bottom; }
.sf-chart span:last-child { background: linear-gradient(180deg, #34d399, #059669); }
.sf-scene.on .sf-chart span { animation: sf-grow .8s cubic-bezier(.16,.8,.3,1) var(--d, 0s) both; }
@keyframes sf-grow { from { transform: scaleY(0); } to { transform: scaleY(1); } }
.sf-team { position: absolute; right: 1rem; bottom: 1rem; width: min(250px, 52%); }
.sf-team .sf-card { padding: .65rem .75rem; box-shadow: 0 18px 36px -16px rgba(12,23,48,.35); }
.sf-team p { margin: .15rem 0 0; font-size: .7rem; color: var(--sf-ink-2); line-height: 1.4; }
.sf-team b { font-size: .72rem; }

/* Steps / progress */
.sf-steps { display: grid; grid-template-columns: repeat(5, 1fr); gap: .4rem; margin-top: 1rem; }
.sf-step { position: relative; text-align: left; border: 0; background: rgba(255,255,255,.06); border-radius: 12px; padding: .65rem .7rem .75rem; cursor: pointer; color: #9aa6c4; font: inherit; font-size: .76rem; font-weight: 600; overflow: hidden; transition: background .25s, color .25s; }
.sf-step b { display: block; font-size: .64rem; letter-spacing: .1em; color: #6b78a0; margin-bottom: .15rem; }
.sf-step:hover { color: #fff; }
.sf-step.on { background: rgba(255,255,255,.12); color: #fff; }
.sf-step.on b { color: #a5b4fc; }
.sf-step::after { content: ""; position: absolute; left: 0; bottom: 0; height: 3px; width: 0; background: linear-gradient(90deg, #38bdf8, #a855f7); }
.sf-step.done::after { width: 100%; }
.sf-step.on::after { animation: sf-prog var(--sf-dur, 5.5s) linear both; }
.sf.paused .sf-step.on::after { animation-play-state: paused; }
@keyframes sf-prog { from { width: 0; } to { width: 100%; } }
.sf-caption { margin-top: .9rem; min-height: 3em; color: #c3cbe0; font-size: .95rem; line-height: 1.55; }
.sf-caption b { color: #fff; }
.sf-light .sf-step { background: #eef1f7; color: var(--sf-ink-3); }
.sf-light .sf-step.on { background: #fff; color: var(--sf-ink); box-shadow: 0 6px 18px -10px rgba(12,23,48,.3); }
.sf-light .sf-step b { color: var(--sf-ink-3); }
.sf-light .sf-step.on b { color: var(--sf-acc); }
.sf-light .sf-caption { color: var(--sf-ink-2); }
.sf-light .sf-caption b { color: var(--sf-ink); }

/* ---------- Homepage showcase section ---------- */
.sfh { position: relative; min-height: 100vh; min-height: 100svh; display: flex; align-items: center; padding: clamp(4.5rem, 8vw, 6.5rem) 0; overflow: hidden; color: #c3cbe0;
  background: radial-gradient(900px 560px at 90% 10%, rgba(168,85,247,.32), transparent 60%), radial-gradient(800px 500px at 0% 90%, rgba(14,165,233,.22), transparent 60%), radial-gradient(700px 500px at 40% 40%, rgba(79,70,229,.18), transparent 65%), #0b1030; }
.sfh::before { content: ""; position: absolute; inset: 0; background-image: linear-gradient(rgba(255,255,255,.035) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.035) 1px, transparent 1px); background-size: 56px 56px; mask-image: radial-gradient(ellipse at center, #000 30%, transparent 75%); pointer-events: none; }
.sfh .container { position: relative; width: 100%; }
.sfh-grid { display: grid; grid-template-columns: .9fr 1.1fr; gap: clamp(2rem, 4.5vw, 4.5rem); align-items: center; }
.sfh-badge { display: inline-flex; align-items: center; gap: .55rem; padding: .4rem .9rem .4rem .45rem; border-radius: 999px; background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.14); font-size: .84rem; color: #dbe3f5; }
.sfh-badge b { background: linear-gradient(95deg, #38bdf8, #a855f7); color: #fff; font-size: .68rem; letter-spacing: .08em; padding: .22rem .55rem; border-radius: 999px; }
.sfh-brand { display: flex; align-items: center; gap: .7rem; margin: 1.3rem 0 .4rem; color: #fff; font-family: "Geist", sans-serif; font-weight: 700; font-size: 1.15rem; }
.sfh-brand img { width: 40px; height: 40px; }
.sfh h2 { font-family: "Geist", "Inter", sans-serif; color: #fff; font-size: clamp(2.2rem, 4.6vw, 3.7rem); line-height: 1.05; letter-spacing: -.03em; margin: .6rem 0 1.1rem; font-weight: 800; }
.sfh h2 em { font-style: normal; background: linear-gradient(95deg, #38bdf8 0%, #818cf8 55%, #c084fc 100%); -webkit-background-clip: text; background-clip: text; color: transparent; }
.sfh-lede { font-size: 1.08rem; line-height: 1.7; margin: 0 0 1.5rem; max-width: 34rem; }
.sfh-lede a { color: #c7d2fe; text-decoration: underline; text-underline-offset: 3px; }
.sfh-list { list-style: none; padding: 0; margin: 0 0 1.8rem; display: grid; grid-template-columns: 1fr 1fr; gap: .55rem 1rem; }
.sfh-list li { display: flex; align-items: center; gap: .55rem; font-size: .92rem; color: #dbe3f5; }
.sfh-list i { width: 26px; height: 26px; border-radius: 8px; display: grid; place-items: center; background: rgba(129,140,248,.16); color: #a5b4fc; font-size: .75rem; flex-shrink: 0; }
.sfh-actions { display: flex; flex-wrap: wrap; gap: .8rem; align-items: center; }
.sfh-btn { display: inline-flex; align-items: center; gap: .6rem; padding: .95rem 1.5rem; border-radius: 14px; font-weight: 600; text-decoration: none; transition: transform .25s, box-shadow .25s; }
.sfh-btn.p { background: linear-gradient(95deg, #6366f1, #a855f7); color: #fff; box-shadow: 0 18px 36px -14px rgba(168,85,247,.7); }
.sfh-btn.p:hover { transform: translateY(-2px); color: #fff; }
.sfh-btn.g { color: #fff; border: 1px solid rgba(255,255,255,.22); background: rgba(255,255,255,.05); }
.sfh-btn.g:hover { border-color: #fff; color: #fff; }
.sfh-price { margin-top: 1.2rem; font-size: .86rem; color: #9aa6c4; }
.sfh-price b { color: #fff; }

@media (max-width: 1080px) { .sfh-grid { grid-template-columns: 1fr; } .sfh { min-height: 0; } }
@media (max-width: 640px) {
  .sf-site .sf-h { font-size: 1.05rem; }
  .sf-stage { height: 400px; }
  .sf-steps { grid-template-columns: repeat(5, 1fr); gap: .25rem; }
  .sf-step { padding: .5rem .35rem .6rem; font-size: 0; }
  .sf-step b { font-size: .62rem; margin: 0; text-align: center; }
  .sf-bot { width: 74%; }
  .sf-site h4 { font-size: 1.05rem; }
  .sf-app { grid-template-columns: 1fr; }
  .sf-side { display: none; }
  .sf-share { grid-template-columns: 1fr; }
  .sf-status { display: none; }
  .sf-team { width: 70%; }
  .sfh-list { grid-template-columns: 1fr; }
  .sfh-btn { width: 100%; justify-content: center; }
}
@media (prefers-reduced-motion: reduce) {
  .sf-scene.on .sf-a, .sf-scene.on .sf-pop, .sf-scene.on .sf-chart span { animation: none; opacity: 1; }
  .sf-bot-av::after, .sf-typing i, .sf-caret { animation: none; }
  .sf-scene.on .sf-typing { display: none; }
}

.sfh h2 { font-size: clamp(2.1rem, 4vw, 3.25rem); }

/* ---------- Floating Studio bot teaser ---------- */
.sfb { position: fixed; left: 20px; bottom: 20px; z-index: 60; display: flex; align-items: flex-end; gap: .7rem; font-family: "Inter", system-ui, sans-serif; }
.sfb-btn { position: relative; width: 60px; height: 60px; border-radius: 50%; border: 0; cursor: pointer; display: grid; place-items: center; color: #fff; font-size: 1.35rem; text-decoration: none;
  background: linear-gradient(135deg, #6366f1, #a855f7); box-shadow: 0 14px 30px -10px rgba(124,58,237,.7); animation: sfb-float 4s ease-in-out infinite; }
.sfb-btn::before, .sfb-btn::after { content: ""; position: absolute; inset: 0; border-radius: 50%; border: 2px solid rgba(168,85,247,.55); animation: sf-ring 2.2s ease-out infinite; }
.sfb-btn::after { animation-delay: 1.1s; }
.sfb-btn .sfb-eyes { position: absolute; top: 22px; left: 50%; transform: translateX(-50%); display: flex; gap: 7px; }
.sfb-btn .sfb-eyes i { width: 6px; height: 8px; border-radius: 3px; background: #fff; animation: sfb-blink 4s infinite; }
.sfb-btn .sfb-smile { position: absolute; bottom: 17px; left: 50%; width: 16px; height: 7px; transform: translateX(-50%); border: 2.5px solid #fff; border-top: 0; border-radius: 0 0 12px 12px; }
.sfb-btn .sfb-ant { position: absolute; top: 6px; left: 50%; width: 2px; height: 8px; background: #fff; transform: translateX(-50%); border-radius: 2px; }
.sfb-btn .sfb-ant::after { content: ""; position: absolute; top: -5px; left: -3px; width: 8px; height: 8px; border-radius: 50%; background: #38bdf8; box-shadow: 0 0 10px #38bdf8; animation: sfb-glow 1.6s ease-in-out infinite; }
@keyframes sfb-float { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-5px); } }
@keyframes sfb-blink { 0%, 92%, 100% { transform: scaleY(1); } 95% { transform: scaleY(.1); } }
@keyframes sfb-glow { 50% { opacity: .45; } }
.sfb-card { position: relative; width: 260px; background: #fff; color: #0c1730; border-radius: 18px 18px 18px 6px; padding: .9rem 1rem 1rem; box-shadow: 0 24px 50px -18px rgba(12,23,48,.45); border: 1px solid #e4e8f0;
  opacity: 0; transform: translateY(10px) scale(.96); transform-origin: bottom left; pointer-events: none; transition: opacity .35s, transform .35s cubic-bezier(.2,1.2,.4,1); }
.sfb.open .sfb-card { opacity: 1; transform: none; pointer-events: auto; }
.sfb-card b { display: block; font-size: .92rem; margin-bottom: .3rem; }
.sfb-card p { margin: 0 0 .75rem; font-size: .84rem; color: #3b475e; line-height: 1.5; }
.sfb-card a.go { display: inline-flex; align-items: center; gap: .4rem; font-size: .82rem; font-weight: 600; color: #fff; text-decoration: none; padding: .55rem .85rem; border-radius: 10px; background: linear-gradient(95deg, #6366f1, #a855f7); }
.sfb-card a.more { margin-left: .6rem; font-size: .8rem; color: #4f46e5; font-weight: 600; text-decoration: none; }
.sfb-x { position: absolute; top: 6px; right: 8px; border: 0; background: none; color: #5f6b80; font-size: 1rem; cursor: pointer; padding: 4px; line-height: 1; }
.sfb-typing { display: inline-flex; gap: 3px; margin-bottom: .4rem; }
.sfb-typing i { width: 5px; height: 5px; border-radius: 50%; background: #a5b4fc; animation: sf-dot 1s infinite; }
.sfb-typing i:nth-child(2) { animation-delay: .15s; } .sfb-typing i:nth-child(3) { animation-delay: .3s; }
.sfb.typed .sfb-typing { display: none; }
.sfb:not(.typed) .sfb-msg { display: none; }
@media (max-width: 640px) { .sfb { left: 14px; bottom: 14px; } .sfb-btn { width: 52px; height: 52px; } .sfb-card { width: min(240px, calc(100vw - 100px)); } .sfb-btn .sfb-eyes { top: 18px; } .sfb-btn .sfb-smile { bottom: 14px; } }
@media (prefers-reduced-motion: reduce) { .sfb-btn, .sfb-btn::before, .sfb-btn::after, .sfb-btn .sfb-eyes i, .sfb-btn .sfb-ant::after { animation: none; } }

/* ---------- Homepage "Selected work": three cases incl. CappsAI Studio ---------- */
.hv-cases.hp-cases-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.hp-case-studio { position: relative; padding: 1.3rem 0 0 1.4rem; background: radial-gradient(400px 200px at 90% 0%, rgba(168,85,247,.35), transparent 70%), linear-gradient(160deg, #1b1f5e, #0b1030); }
.hp-case-studio .st-shot { width: 118%; max-width: none; height: auto; border-radius: 10px 0 0 0; box-shadow: 0 18px 40px -16px rgba(0,0,0,.6); transition: transform .6s cubic-bezier(.16,.8,.3,1); }
.hp-case-studio .st-phone { position: absolute; right: 14px; top: 26px; width: 27%; height: auto; border-radius: 14px; border: 4px solid #0c1730; box-shadow: 0 18px 36px -12px rgba(0,0,0,.6); transition: transform .6s cubic-bezier(.16,.8,.3,1); }
.hp-case:hover .hp-case-studio .st-shot { transform: scale(1.03); }
.hp-case:hover .hp-case-studio .st-phone { transform: translateY(-10px); }
@media (max-width: 1100px) { .hv-cases.hp-cases-3 { grid-template-columns: repeat(2, minmax(0, 1fr)); } .hv-cases.hp-cases-3 > :last-child { grid-column: 1 / -1; } }
@media (max-width: 720px) { .hv-cases.hp-cases-3 { grid-template-columns: 1fr; } .hv-cases.hp-cases-3 > :last-child { grid-column: auto; } }

/* Portfolio: CappsAI Studio screen gallery */
.st-gallery { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.2rem; margin-top: 3rem; }
.st-gallery figure { margin: 0; background: #fff; border: 1px solid #e4e8f0; border-radius: 16px; overflow: hidden; box-shadow: 0 20px 40px -28px rgba(12,23,48,.35); }
.st-gallery img { display: block; width: 100%; height: auto; border-bottom: 1px solid #eef1f6; }
.st-gallery figcaption { padding: .8rem 1rem; font-size: .88rem; color: #3b475e; }
@media (max-width: 860px) { .st-gallery { grid-template-columns: 1fr; } }
.st-phones { display: grid; grid-template-columns: 220px 220px 1fr; gap: 1.6rem; align-items: center; margin-top: 2.5rem; }
.st-phones figure { margin: 0; }
.st-phones img { display: block; width: 100%; height: auto; border-radius: 26px; border: 6px solid #0c1730; box-shadow: 0 30px 50px -28px rgba(12,23,48,.55); }
.st-phones figcaption { font-size: .84rem; color: #6b7689; margin-top: .6rem; text-align: center; }
.st-phones-copy h3 { font-family: "Geist", sans-serif; font-size: 1.4rem; margin: 0 0 .6rem; color: #0c1730; }
.st-phones-copy p { color: #3b475e; line-height: 1.7; margin: 0 0 1.2rem; }
@media (max-width: 860px) { .st-phones { grid-template-columns: 1fr 1fr; } .st-phones-copy { grid-column: 1 / -1; } }

/* ---------- Homepage hero: CappsAI Studio window ---------- */
.hp-studio-mark { background: #fff; padding: 2px; }
.hp-studio-win { position: absolute; right: -5%; bottom: -9%; width: 44%; z-index: 5; display: block; border-radius: 12px; overflow: visible; background: #fff; text-decoration: none;
  box-shadow: 0 30px 60px -24px rgba(12,23,48,.45), 0 0 0 1px rgba(12,23,48,.08); animation: hpFloat 9s ease-in-out -5s infinite; transition: transform .4s cubic-bezier(.16,.8,.3,1); }
.hp-studio-win:hover { transform: translateY(-6px) scale(1.02); }
.hp-studio-bar { display: flex; align-items: center; gap: 4px; padding: 5px 8px; background: #f3f5fa; border-bottom: 1px solid #e4e8f0; border-radius: 12px 12px 0 0; font: 600 9.5px/1 "Inter", sans-serif; color: #3b475e; }
.hp-studio-bar i { width: 6px; height: 6px; border-radius: 50%; background: #dbe0ea; }
.hp-studio-bar img { margin-left: 6px; }
.hp-studio-win picture img { display: block; width: 100%; height: auto; border-radius: 0 0 12px 12px; }
.hp-studio-tag { position: absolute; left: -14px; bottom: -14px; display: inline-flex; align-items: center; gap: 6px; padding: 7px 11px; border-radius: 999px; background: linear-gradient(95deg, #4f46e5, #9333ea); color: #fff; font: 600 11.5px/1 "Inter", sans-serif; box-shadow: 0 12px 24px -10px rgba(124,58,237,.7); white-space: nowrap; }
.hp-studio-tag img { background: #fff; border-radius: 5px; padding: 1px; }
@media (max-width: 1080px) { .hp-studio-win { right: 0; bottom: -6%; width: 46%; } }
@media (max-width: 640px) { .hp-studio-win { width: 52%; bottom: -10%; } .hp-studio-tag { font-size: 9.5px; padding: 6px 9px; left: auto; right: -2px; } }
@media (prefers-reduced-motion: reduce) { .hp-studio-win { animation: none; } }
