/* VISURA motion layer: light points, scroll reveals, horizontal case reel */
:root {
  --glow-1: rgba(0, 206, 184, 0.16);
  --glow-2: rgba(237, 237, 239, 0.06);
  --ease-out: cubic-bezier(.16, 1, .3, 1);
}

/* Light points: soft radial lights behind highlighted sections */
.has-glow { position: relative; isolation: isolate; }
.has-glow::before {
  content: ""; position: absolute; z-index: -1; pointer-events: none;
  width: min(900px, 90vw); aspect-ratio: 1; border-radius: 50%;
  background: radial-gradient(closest-side, var(--glow-1), transparent 70%);
  filter: blur(20px);
  top: var(--glow-y, -10%); left: var(--glow-x, -10%);
  transform: translate3d(0, var(--glow-shift, 0px), 0);
}
.has-glow.glow-right::before { left: auto; right: var(--glow-x, -10%); }
.has-glow.glow-soft::before { background: radial-gradient(closest-side, var(--glow-2), transparent 70%); }

/* Spotlight that follows the cursor on cards */
.spot { position: relative; }
.spot::after {
  content: ""; position: absolute; inset: 0; pointer-events: none; z-index: 1;
  background: radial-gradient(420px circle at var(--mx, 50%) var(--my, 50%), rgba(0, 206, 184, 0.13), transparent 60%);
  opacity: 0; transition: opacity .35s;
}
.spot:hover::after { opacity: 1; }

/* Reveal base (JS adds .is-in); without JS everything stays visible */
.js-motion [data-reveal] { opacity: 0; transform: translateY(32px); transition: opacity .9s var(--ease-out), transform .9s var(--ease-out); }
.js-motion [data-reveal="left"] { transform: translateX(-48px); }
.js-motion [data-reveal="right"] { transform: translateX(48px); }
.js-motion [data-reveal].is-in { opacity: 1; transform: none; }

/* Case reel: horizontal strip pinned on desktop, swipe on mobile */
.reel { padding: 96px 0 72px; overflow: hidden; border-top: 1px solid var(--line); }
.reel-head { padding: 0 clamp(40px, 5.5vw, 96px); display: flex; justify-content: space-between; align-items: end; gap: 24px; margin-bottom: 40px; }
.reel-head h2 { font-family: var(--m-font-display); font-weight: 700; font-size: clamp(28px, 3.2vw, 46px); letter-spacing: -0.02em; line-height: 1.05; color: var(--paper); margin: 8px 0 0; max-width: 18ch; }
.reel-label { font-family: var(--m-font-mono); font-size: 12px; letter-spacing: .08em; text-transform: uppercase; color: var(--amber); margin: 0; }
.reel-all { font-family: var(--m-font-mono); font-size: 13px; color: var(--paper); text-decoration: none; border-bottom: 1px solid var(--amber); padding-bottom: 4px; white-space: nowrap; }
.reel-track { display: flex; gap: 20px; padding: 0 clamp(40px, 5.5vw, 96px); width: max-content; will-change: transform; }
.reel-item { position: relative; display: block; width: clamp(280px, 34vw, 560px); aspect-ratio: 4/3; overflow: hidden; background: var(--ink-2); text-decoration: none; flex: none; }
.reel-item.is-video { width: clamp(320px, 52vw, 860px); aspect-ratio: 16/9; }
.reel-item img, .reel-item video { width: 100%; height: 100%; object-fit: cover; display: block; transform: scale(1.08); transition: transform .8s var(--ease-out), opacity .4s; opacity: .82; }
.reel-item:hover img { transform: scale(1.02); opacity: 1; }
.reel-item video { opacity: 1; transform: none; }
.reel-cap { position: absolute; left: 0; right: 0; bottom: 0; padding: 48px 24px 20px; background: linear-gradient(transparent, rgba(8, 8, 10, .88)); z-index: 2; }
.reel-cap span { font-family: var(--m-font-mono); font-size: 11px; letter-spacing: .08em; text-transform: uppercase; color: var(--amber); }
.reel-cap h3 { font-family: var(--m-font-display); font-weight: 700; font-size: 22px; color: var(--paper); margin: 6px 0 0; }
.reel-progress { margin: 32px clamp(40px, 5.5vw, 96px) 0; height: 1px; background: var(--line); position: relative; }
.reel-progress i { position: absolute; inset: 0 auto 0 0; width: 0; background: var(--amber); box-shadow: 0 0 12px var(--amber); }

@media (max-width: 800px) {
  .reel { padding: 64px 0 48px; }
  .reel-head { padding: 0 16px; flex-direction: column; align-items: start; }
  .reel-track { width: auto; overflow-x: auto; scroll-snap-type: x mandatory; padding: 0 16px 8px; -webkit-overflow-scrolling: touch; scrollbar-width: none; }
  .reel-track::-webkit-scrollbar { display: none; }
  .reel-item, .reel-item.is-video { width: 82vw; scroll-snap-align: start; }
  .reel-progress { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  .js-motion [data-reveal] { opacity: 1; transform: none; transition: none; }
  .reel-item img { transform: none; }
}

/* Grey surfaces: lighter bands and tiles to break the all-black page */
:root { --surface-1: #141418; --surface-2: #1D1D23; --surface-3: #26262D; }
section.band-grey { background: var(--surface-1); border-top: none !important; }
.verticais .verticais-grid.tiles, .processo .processo-steps.tiles { gap: 12px; border-top: none; }
.verticais .tiles .v-card, .processo .tiles .step {
  background: var(--surface-2); border: 1px solid var(--m-border-soft); border-radius: 6px;
  padding: 32px 28px; transition: background .3s, border-color .3s, transform .4s var(--ease-out);
}
.verticais .tiles .v-card:hover, .processo .tiles .step:hover { background: var(--surface-3); border-color: var(--m-border-strong); transform: translateY(-4px); }
@media (max-width: 1024px) { .verticais .tiles, .processo .tiles { grid-template-columns: 1fr 1fr !important; } }
@media (max-width: 600px) { .verticais .tiles, .processo .tiles { grid-template-columns: 1fr !important; } }

/* Page transitions: cross-fade between pages (supported browsers) + soft entry */
@view-transition { navigation: auto; }
::view-transition-old(root) { animation: vt-out .28s ease both; }
::view-transition-new(root) { animation: vt-in .45s var(--ease-out) both; }
@keyframes vt-out { to { opacity: 0; transform: translateY(-8px); } }
@keyframes vt-in { from { opacity: 0; transform: translateY(12px); } }
body { animation: page-in .6s var(--ease-out) both; }
@keyframes page-in { from { opacity: 0; } }
@media (prefers-reduced-motion: reduce) {
  ::view-transition-old(root), ::view-transition-new(root), body { animation: none; }
}

/* Home: three-column variant of the services grid */
.verticais .verticais-grid.cols-3 { grid-template-columns: repeat(3, 1fr); }
@media (max-width: 1024px) { .verticais .verticais-grid.tiles.cols-3 { grid-template-columns: 1fr 1fr !important; } }
@media (max-width: 600px) { .verticais .verticais-grid.tiles.cols-3 { grid-template-columns: 1fr !important; } }
