/* SellerVine bento cards: upgrades the plain card grids on inner pages (paired with /js/sv-bento.js).
 *
 * The script tags each qualifying grid .svb and its cards .svb-c. Without the script nothing here applies,
 * so every card stays exactly as it was. Layout spans only apply from 1024px; phones keep one column.
 */

/* ── layout: a featured tile and full-width closers, filled without holes ── */
@media (min-width: 1024px) {
  .svb { grid-auto-flow: dense; }
  .svb > .svb-w2 { grid-column: span 2; }
  .svb > .svb-wf { grid-column: 1 / -1; }
  .svb > .svb-h2 { grid-row: span 2; }
}

/* ── every card: a light that follows the cursor and a lit edge ── */
.svb-c { position: relative; isolation: isolate; }
.svb-glow {
  position: absolute; inset: 0; z-index: -1; border-radius: inherit; pointer-events: none; opacity: 0;
  transition: opacity .45s cubic-bezier(.22, 1, .36, 1);
  background: radial-gradient(360px circle at var(--mx, 50%) var(--my, 0%), rgba(59, 130, 246, .10), transparent 60%);
}
.svb-glow::after {
  content: ""; position: absolute; inset: 0; border-radius: inherit; padding: 1px;
  background: radial-gradient(240px circle at var(--mx, 50%) var(--my, 0%), rgba(59, 130, 246, .85), rgba(124, 58, 237, .45) 45%, transparent 75%);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor; mask-composite: exclude;
}
.svb-c:hover > .svb-glow { opacity: 1; }
.svb-dk .svb-glow { background: radial-gradient(320px circle at var(--mx, 50%) var(--my, 0%), rgba(103, 232, 249, .14), transparent 60%); }
.svb-dk .svb-glow::after { background: radial-gradient(220px circle at var(--mx, 50%) var(--my, 0%), rgba(103, 232, 249, .9), rgba(124, 58, 237, .4) 45%, transparent 75%); }

/* the icon tile tilts and sends out a ring on hover */
.svb-ico { position: relative; transition: transform .5s cubic-bezier(.34, 1.56, .64, 1); }
.svb-ico::after {
  content: ""; position: absolute; inset: -1px; border-radius: inherit; border: 2px solid rgba(59, 130, 246, .5);
  opacity: 0; transform: scale(.9); pointer-events: none;
}
.svb-c:hover .svb-ico { transform: rotate(-8deg) scale(1.08); }
.svb-c:hover .svb-ico::after { animation: svb-ping 1.1s cubic-bezier(.22, 1, .36, 1); }
@keyframes svb-ping { 0% { opacity: .9; transform: scale(.9); } 100% { opacity: 0; transform: scale(1.6); } }

/* ── the featured tile: soft gradient, dot grid and a drifting glow behind the content ── */
.svb-feat { background: radial-gradient(120% 90% at 0% 100%, #e0f2fe, transparent 60%), radial-gradient(90% 70% at 100% 0%, #ede9fe, transparent 60%), #f8faff !important; }
.svb-feat h3 { font-size: clamp(1.35rem, 1.9vw, 1.75rem) !important; letter-spacing: -.02em; }
.svb-art { display: none; }
.svb-feat > .svb-art {
  display: block; position: absolute; inset: 0; z-index: -1; border-radius: inherit; overflow: hidden; pointer-events: none;
  background-image: radial-gradient(rgba(37, 99, 235, .16) 1px, transparent 1px); background-size: 20px 20px;
  -webkit-mask-image: linear-gradient(180deg, #000 0%, rgba(0,0,0,.6) 55%, transparent 90%); mask-image: linear-gradient(180deg, #000 0%, rgba(0,0,0,.6) 55%, transparent 90%);
}
.svb-feat > .svb-art::before {
  content: ""; position: absolute; width: 260px; height: 260px; right: -60px; bottom: -80px; border-radius: 50%;
  background: radial-gradient(closest-side, rgba(59, 130, 246, .35), rgba(124, 58, 237, .18) 55%, transparent);
  animation: svb-drift 9s ease-in-out infinite alternate;
}
@keyframes svb-drift { to { transform: translate(-60px, -40px) scale(1.15); } }
.svb-feat.svb-col { display: flex; flex-direction: column; justify-content: flex-end; }
.svb > .svb-h2:not(.svb-c) > .svb-c { height: 100%; }
.svb-feat > .svb-art > svg {
  position: absolute; right: 8%; top: 12%; width: 42%; max-width: 190px; height: auto; aspect-ratio: 1;
  color: #3b82f6; opacity: .14; stroke-width: 1.2; fill: none; stroke: currentColor;
  transform: rotate(-8deg); transition: transform .9s cubic-bezier(.22, 1, .36, 1), opacity .5s;
}
.svb-feat:hover > .svb-art > svg { transform: rotate(0deg) scale(1.06); opacity: .22; }
.svb-feat:not(.svb-h2) > .svb-art > svg { width: 26%; top: 14%; }

/* ── entrance: cards tilt up and open, one after another (replaces the plain fade on these cards) ── */
.svb .svb-c.sv-reveal { opacity: 1; transform: none; }
.svb .svb-c.svb-pre {
  opacity: 0 !important; transform: perspective(900px) translate3d(0, 46px, 0) rotateX(-14deg) !important; transform-origin: 50% 0;
  clip-path: inset(8% 5% 8% 5% round 20px); transition: none !important;
}
.svb .svb-c.svb-go {
  clip-path: inset(0 0 0 0 round 20px);
  transition: opacity .8s cubic-bezier(.16, 1, .3, 1) var(--svb-d, 0s), transform 1s cubic-bezier(.16, 1, .3, 1) var(--svb-d, 0s),
              clip-path 1s cubic-bezier(.16, 1, .3, 1) var(--svb-d, 0s) !important;
}
/* a light sweep crosses each card once as it lands */
.svb-sheen { position: absolute; inset: 0; z-index: -1; border-radius: inherit; overflow: hidden; pointer-events: none; }
.svb-sheen::before {
  content: ""; position: absolute; top: 0; bottom: 0; left: -60%; width: 50%;
  background: linear-gradient(100deg, transparent, rgba(255, 255, 255, .75), transparent); transform: skewX(-12deg) translateX(0); opacity: 0;
}
.svb-c.svb-go > .svb-sheen::before { animation: svb-sweep 1.3s cubic-bezier(.22, 1, .36, 1) calc(var(--svb-d, 0s) + .35s) 1 both; }
.svb-dk .svb-sheen::before { background: linear-gradient(100deg, transparent, rgba(103, 232, 249, .18), transparent); }
@keyframes svb-sweep { 0% { opacity: 1; transform: skewX(-12deg) translateX(0); } 100% { opacity: 1; transform: skewX(-12deg) translateX(420%); } }

@media (prefers-reduced-motion: reduce) {
  .svb .svb-c.svb-pre { opacity: 1 !important; transform: none !important; clip-path: none; }
  .svb-feat > .svb-art::before, .svb-c:hover .svb-ico::after, .svb-c.svb-go > .svb-sheen::before { animation: none; }
  .svb-ico, .svb-c:hover .svb-ico { transition: none; transform: none; }
}

/* ── service pages: the "what we do" section as a dark panel (section.svp) ──
 * The heading stays pinned on the left on desktop; the cards sit in two columns on a glowing spine,
 * each with its own accent colour and number. Same markup and text, restyled only. */
.svp { position: relative; overflow: clip; color: #cbd5e1;
  background: radial-gradient(900px 520px at 88% 0%, rgba(59, 130, 246, .22), transparent 60%), radial-gradient(720px 520px at 0% 100%, rgba(124, 58, 237, .2), transparent 60%), #070b18 !important; }
.svp::before { content: ""; position: absolute; inset: 0; pointer-events: none;
  background-image: radial-gradient(rgba(148, 163, 184, .14) 1px, transparent 1px); background-size: 22px 22px;
  -webkit-mask-image: linear-gradient(180deg, #000, transparent 85%); mask-image: linear-gradient(180deg, #000, transparent 85%); }
.svp > div { position: relative; z-index: 1; }
.svp > div > :first-child span { color: #67e8f9 !important; }
.svp > div > :first-child h2 { color: #fff !important; letter-spacing: -.03em; }
.svp > div > :first-child p { color: #94a3b8 !important; }
.svp .svb { counter-reset: svp; }
.svp .svb > * { counter-increment: svp; }
.svp .svb > :nth-child(6n+1) { --ac: #3b82f6; } .svp .svb > :nth-child(6n+2) { --ac: #22d3ee; } .svp .svb > :nth-child(6n+3) { --ac: #a78bfa; }
.svp .svb > :nth-child(6n+4) { --ac: #34d399; } .svp .svb > :nth-child(6n+5) { --ac: #fbbf24; } .svp .svb > :nth-child(6n+6) { --ac: #38bdf8; }
.svp .svb .svb-c { background: linear-gradient(180deg, rgba(255, 255, 255, .06), rgba(255, 255, 255, .025)) !important; border-color: rgba(255, 255, 255, .09) !important; box-shadow: none !important; }
.svp .svb .svb-c:hover { border-color: color-mix(in srgb, var(--ac) 45%, transparent) !important; }
.svp .svb .svb-c h3 { color: #fff !important; }
.svp .svb .svb-c h3::before { content: counter(svp, decimal-leading-zero); display: block; margin-bottom: 8px; font: 600 11px/1 var(--font-mono, ui-monospace, monospace); letter-spacing: .14em; color: var(--ac); }
.svp .svb .svb-c p, .svp .svb .svb-c li { color: #94a3b8 !important; }
.svp .svb .svb-ico { background: color-mix(in srgb, var(--ac) 14%, transparent) !important; border: 1px solid color-mix(in srgb, var(--ac) 35%, transparent); box-shadow: none !important; color: var(--ac) !important; }
.svp .svb .svb-ico svg { color: var(--ac) !important; }
.svp .svb .svb-ico::after { border-color: var(--ac); }
.svp .svb-glow { background: radial-gradient(320px circle at var(--mx, 50%) var(--my, 0%), color-mix(in srgb, var(--ac) 16%, transparent), transparent 65%); }
.svp .svb-glow::after { background: radial-gradient(240px circle at var(--mx, 50%) var(--my, 0%), var(--ac), transparent 70%); }
.svp .svb-sheen::before { background: linear-gradient(100deg, transparent, color-mix(in srgb, var(--ac) 22%, transparent), transparent); }
.svp .svb-art { display: none !important; }
@media (min-width: 1024px) {
  .svp > div { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.5fr); gap: 56px; align-items: start; }
  .svp > div > :first-child { position: sticky; top: 120px; margin: 0 !important; max-width: none; text-align: left !important; align-items: flex-start !important; }
  .svp > div > :first-child p { margin-left: 0 !important; }
  .svp .svb { position: relative; margin-top: 0 !important; grid-template-columns: repeat(2, minmax(0, 1fr)) !important; column-gap: 56px !important; row-gap: 20px !important; }
  .svp .svb > * { grid-column: auto !important; grid-row: auto !important; }
  /* the spine every service hangs off, with a signal running down it */
  .svp .svb::before { content: ""; position: absolute; left: 50%; top: 0; bottom: 0; width: 2px; margin-left: -1px;
    background: linear-gradient(180deg, rgba(103, 232, 249, .7), rgba(124, 58, 237, .5) 60%, rgba(124, 58, 237, 0)); }
  .svp .svb::after { content: ""; position: absolute; left: 50%; top: 0; width: 6px; height: 60px; margin-left: -3px; border-radius: 3px;
    background: linear-gradient(180deg, transparent, #a5f3fc); box-shadow: 0 0 14px #67e8f9; animation: svp-run 3.6s cubic-bezier(.45, 0, .55, 1) infinite; }
}
@keyframes svp-run { 0% { top: 0; opacity: 0; } 10%, 85% { opacity: 1; } 100% { top: calc(100% - 60px); opacity: 0; } }
@media (prefers-reduced-motion: reduce) { .svp .svb::after { animation: none; display: none; } }
