/* Cases: galeria em anel 3D que gira com a rolagem (telas largas) e carrossel de arraste (celular ou movimento reduzido) */
.showcase { position: relative; overflow: hidden; padding: 96px 0; background: #060D1D; color: var(--white); }
.sc-pin { position: relative; }
.sc-pin::before {
  content: ""; position: absolute; left: 50%; top: 50%; width: 70vw; height: 70vw; max-width: 1100px; max-height: 1100px; translate: -50% -50%;
  border-radius: 50%; background: radial-gradient(circle, rgba(51,163,255,.26), transparent 62%); pointer-events: none;
}
.sc-top { position: relative; display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; margin-bottom: 36px; }
.sc-top h2 { font-size: clamp(28px, 3.2vw, 44px); color: var(--white); }
.sc-hint { display: none; align-items: center; gap: 12px; font-size: 12px; font-weight: 600; letter-spacing: .22em; text-transform: uppercase; color: rgba(255,255,255,.6); white-space: nowrap; }
.sc-hint i { position: relative; width: 22px; height: 34px; border: 1.5px solid rgba(255,255,255,.5); border-radius: 12px; }
.sc-hint i::after { content: ""; position: absolute; left: 50%; top: 7px; width: 3px; height: 7px; margin-left: -1.5px; border-radius: 3px; background: var(--cyan); animation: scwheel 1.8s ease-in-out infinite; }
@keyframes scwheel { 0% { transform: none; opacity: 1; } 70%, 100% { transform: translateY(10px); opacity: 0; } }
.sc-floor, .sc-word, .sc-count, .sc-info { display: none; }

/* modo plano: cartões lado a lado com arraste */
.sc-ring { position: relative; display: flex; gap: 16px; padding: 4px 24px 8px; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; overscroll-behavior-x: contain; }
.sc-ring::-webkit-scrollbar { display: none; }
.sc-card { flex: 0 0 min(84vw, 520px); scroll-snap-align: center; }
.sc-media { position: relative; overflow: hidden; aspect-ratio: 16 / 9; border-radius: 18px; background: #0B1830; box-shadow: 0 30px 70px rgba(0,0,0,.5); }
.sc-media > img, .sc-media > video { position: absolute; inset: -4%; width: 108%; height: 108%; max-width: none; object-fit: cover; }
.sc-glare { position: absolute; inset: 0; pointer-events: none; opacity: 0; transition: opacity .4s ease; background: radial-gradient(420px circle at var(--gx, 50%) var(--gy, 50%), rgba(255,255,255,.26), transparent 62%); mix-blend-mode: screen; }
.sc-cap { padding: 20px 4px 0; }
.sc-cap h3, .sc-info h3 { font-size: 26px; font-weight: 800; letter-spacing: -.03em; color: var(--white); }
.sc-cap p, .sc-info p { margin-top: 8px; font-size: 16px; line-height: 1.55; color: rgba(255,255,255,.78); }
.showcase .tags { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; margin: 16px 0 0; padding: 0; }
.showcase .tags li { padding: 6px 14px; border: 1px solid rgba(255,255,255,.4); border-radius: 99px; font-size: 11px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--white); }

/* espaços reservados para cases ainda sem material */
.sc-todo .sc-media { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px; padding: 24px 36px; text-align: center; background: repeating-linear-gradient(135deg, #0B1830 0 16px, #0E1F3D 16px 32px); border: 2px dashed rgba(1,200,239,.6); }
.sc-todo .sc-media span { padding: 4px 12px; border-radius: 99px; background: #FFF3D6; font-size: 11px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: #9A6400; }
.sc-todo .sc-media b { font-size: clamp(18px, 2vw, 26px); letter-spacing: -.02em; color: var(--white); }
.sc-todo .sc-media p { max-width: 420px; font-size: 14px; line-height: 1.55; color: rgba(255,255,255,.72); }

.sc-hud { position: relative; display: flex; justify-content: center; margin-top: 28px; }
.sc-nav { display: flex; align-items: center; gap: 16px; }
.sc-nav button { all: unset; cursor: pointer; }
.sc-arrow { width: 48px; height: 48px; border-radius: 50%; display: grid; place-items: center; font-size: 20px; color: var(--white); border: 1px solid rgba(255,255,255,.35); transition: background .25s ease, border-color .25s ease, color .25s ease; }
.sc-arrow:hover, .sc-arrow:focus-visible { background: var(--cyan); border-color: var(--cyan); color: var(--navy); }
.sc-dots { display: flex; gap: 8px; }
.sc-dots button { width: 9px; height: 9px; border-radius: 9px; background: rgba(255,255,255,.3); transition: width .3s ease, background .3s ease; }
.sc-dots button.on { width: 34px; background: linear-gradient(90deg, var(--blue), var(--cyan)); }

/* modo 3D */
.showcase.sc-3d { overflow: visible; padding: 0; height: calc(100vh + (var(--n, 6) - 1) * 70vh); }
.sc-3d .sc-pin { position: sticky; top: 84px; height: calc(100vh - 84px); overflow: hidden; }
.sc-3d .sc-top { position: absolute; left: 0; right: 0; top: 34px; z-index: 3; margin: 0 auto; }
.sc-3d .sc-hint { display: flex; }

.sc-3d .sc-floor {
  display: block; position: absolute; left: -50%; bottom: 0; width: 200%; height: 46%; pointer-events: none; opacity: .8;
  background-image: linear-gradient(rgba(51,163,255,.7) 2px, transparent 2px), linear-gradient(90deg, rgba(51,163,255,.7) 2px, transparent 2px);
  background-size: 90px 90px; background-position: calc(var(--rot, 0) * -90px) 0;
  transform: perspective(620px) rotateX(66deg); transform-origin: 50% 0;
  -webkit-mask-image: linear-gradient(transparent, #000 70%); mask-image: linear-gradient(transparent, #000 70%);
}
.sc-3d .sc-word { display: grid; place-items: center; position: absolute; inset: 0 0 12%; overflow: hidden; pointer-events: none; }
/* nome do cliente: preenchido com o azul da marca, sempre atrás dos cartões */
.sc-word span {
  display: block; white-space: nowrap; font-size: var(--fs, 20vw); font-weight: 800; line-height: 1; letter-spacing: var(--ls, -.05em); margin-right: calc(var(--ls, 0px) * -1); text-transform: uppercase;
  color: transparent; background: linear-gradient(100deg, var(--blue), var(--cyan)); -webkit-background-clip: text; background-clip: text;
  filter: drop-shadow(0 0 40px rgba(1,200,239,.35)); translate: calc((var(--rot, 0) - var(--idx, 0)) * -22vw) calc(var(--py, 0) * -10px);
}
.sc-word span.in { animation: scword .9s cubic-bezier(.2, .8, .2, 1) both; }
@keyframes scword { from { opacity: 0; transform: scale(1.12); } }

.sc-3d .sc-stage { position: absolute; inset: 0 0 6%; display: grid; place-items: center; perspective: 1500px; }
.sc-3d .sc-tilt { transform-style: preserve-3d; will-change: transform; }
.sc-3d .sc-ring { display: block; width: min(50vw, 76vh); aspect-ratio: 16 / 9; padding: 0; overflow: visible; transform-style: preserve-3d; will-change: transform; }
.sc-3d .sc-card { position: absolute; inset: 0; cursor: pointer; -webkit-backface-visibility: hidden; backface-visibility: hidden; will-change: transform, filter; }
.sc-3d .sc-card.on { cursor: default; }
.sc-3d .sc-media { height: 100%; aspect-ratio: auto; border-radius: 22px; box-shadow: 0 50px 110px rgba(0,0,0,.6), 0 0 0 1px rgba(255,255,255,.1); }
.sc-3d .sc-media > img, .sc-3d .sc-media > video { translate: calc(var(--px, 0) * -14px) calc(var(--py, 0) * -10px); }
.sc-3d .sc-card.on .sc-glare { opacity: 1; }
.sc-3d .sc-card.on .sc-media { box-shadow: 0 50px 110px rgba(0,0,0,.6), 0 0 0 1.5px rgba(1,200,239,.7), 0 0 90px rgba(1,200,239,.3); }
.sc-3d .sc-cap { display: none; }

.sc-3d .sc-hud { position: absolute; left: 0; right: 0; bottom: 30px; z-index: 3; margin: 0 auto; display: grid; grid-template-columns: auto 1fr auto; align-items: end; gap: 36px; }
.sc-3d .sc-count { display: flex; align-items: baseline; gap: 8px; }
.sc-count b { font-size: clamp(60px, 6.4vw, 96px); font-weight: 200; line-height: .85; letter-spacing: -.05em; color: var(--cyan); font-variant-numeric: tabular-nums; }
.sc-count span { font-size: 14px; font-weight: 600; letter-spacing: .2em; color: rgba(255,255,255,.55); }
.sc-3d .sc-info { display: block; min-height: 118px; }
.sc-info h3 { font-size: clamp(26px, 3vw, 44px); line-height: 1.05; }
.sc-info p { max-width: 560px; }
.sc-info .tags { margin-top: 12px; }
.sc-info.in > * { animation: scup .6s cubic-bezier(.2, .8, .2, 1) both; }
.sc-info.in > :nth-child(2) { animation-delay: .07s; }
.sc-info.in > :nth-child(3) { animation-delay: .14s; }
@keyframes scup { from { opacity: 0; transform: translateY(18px); } }

/* zoom: o case da frente cresce e a imagem aproxima devagar enquanto o ponteiro está em cima */
.sc-3d .sc-media { transition: scale .7s cubic-bezier(.2, .8, .2, 1), box-shadow .5s ease; }
.sc-3d .sc-card.on .sc-media { scale: 1.09; }
.sc-3d .sc-media > img, .sc-3d .sc-media > video { transition: scale 1.6s cubic-bezier(.2, .7, .2, 1); }
.sc-3d .sc-card.on:hover .sc-media > img, .sc-3d .sc-card.on:hover .sc-media > video { scale: 1.14; }
/* movimento líquido: a imagem ondula durante o giro e quando o ponteiro passa pelo case da frente */
.showcase.liq .sc-card.near .sc-media > img, .showcase.liq .sc-card.near .sc-media > video { filter: url(#liquido); }

@media (max-height: 720px) {
  .sc-3d .sc-ring { width: min(44vw, 66vh); }
  .sc-3d .sc-top { top: 20px; }
  .sc-3d .sc-hud { bottom: 18px; }
}

/* nome do cliente ao fundo: translúcido e sem brilho, para não competir com os textos e os cartões à frente */
.sc-word span { opacity: .2; filter: none; }
.showcase:not(.sc-3d) .sc-word span { opacity: .28; }
