/* ============================================================
   FRAME V2 — overview.css
   Hero "How Frame works" video lightbox.
   Self-contained; layered on top of the design system.
   ============================================================ */

/* lock background scroll while the lightbox is open */
html.vmodal-open, html.vmodal-open body { overflow: hidden; }

.vmodal {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: clamp(16px, 4vw, 56px);
  opacity: 0;
  visibility: hidden;
  transition: opacity .35s var(--ease-standard, cubic-bezier(.22,1,.36,1)), visibility 0s linear .35s;
}
.vmodal.is-open {
  opacity: 1;
  visibility: visible;
  transition: opacity .35s var(--ease-standard, cubic-bezier(.22,1,.36,1));
}

.vmodal__backdrop {
  position: absolute;
  inset: 0;
  background: radial-gradient(closest-side at 50% 40%, rgba(15,76,129,.22), transparent 70%), rgba(4,6,10,.82);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  cursor: pointer;
}

.vmodal__shell {
  position: relative;
  width: min(1120px, 100%);
  transform: translateY(18px) scale(.985);
  transition: transform .4s var(--ease-standard, cubic-bezier(.22,1,.36,1));
}
.vmodal.is-open .vmodal__shell { transform: translateY(0) scale(1); }

.vmodal__frame {
  position: relative;
  aspect-ratio: 16 / 9;
  width: 100%;
  border-radius: 16px;
  overflow: hidden;
  background: #05070A;
  border: 1px solid rgba(255,255,255,.1);
  box-shadow: 0 40px 120px rgba(0,0,0,.6), 0 0 0 1px rgba(78,146,214,.12);
}
.vmodal__video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  background: #05070A;
}

.vmodal__close {
  position: absolute;
  top: -14px;
  right: -14px;
  width: 44px;
  height: 44px;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,.16);
  background: #0f4c81;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 10px 30px rgba(0,0,0,.45);
  transition: transform .2s var(--ease-standard, cubic-bezier(.22,1,.36,1)), background .2s;
  z-index: 2;
}
.vmodal__close:hover { transform: scale(1.06); background: #155f9f; }
.vmodal__close .material-symbols-sharp { font-size: 24px; }

.vmodal__cap {
  margin-top: 16px;
  text-align: center;
  font-family: 'IBM Plex Sans Condensed', system-ui, sans-serif;
  font-size: 11.5px;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: #8F98A3;
}

@media (max-width: 600px) {
  .vmodal__close { top: -10px; right: -6px; width: 40px; height: 40px; }
}

@media (prefers-reduced-motion: reduce) {
  .vmodal, .vmodal__shell { transition: none; }
}
