/**
 * Storyboard intro + 3D cover-flow showcase (from Free ideas)
 */
.idea-storyboard-section {
  background: var(--vf-white);
  padding-top: clamp(44px, 5.5vw, 72px);
  padding-bottom: clamp(80px, 12vw, 140px);
  padding-inline: var(--h-pad);
  position: relative;
  z-index: 10;
}
.idea-storyboard-inner {
  width: 100%;
  max-width: min(1480px, 100%);
  margin: 0 auto;
}
.idea-storyboard-header {
  text-align: center;
  margin-bottom: 0;
}
.idea-storyboard-header h2 {
  font-family: 'Bebas Neue', sans-serif;
  font-size: clamp(44px, 5.5vw, 78px);
  letter-spacing: 0.04em;
  color: var(--vf-black);
  line-height: 1.06;
  margin: 0 0 clamp(22px, 3vw, 36px);
  text-wrap: balance;
}
.idea-storyboard-lead {
  font-family: 'Montserrat', sans-serif;
  font-size: clamp(19px, 2.35vw, 26px);
  font-weight: 400;
  color: var(--vf-grey);
  line-height: 1.65;
  margin: 0 auto;
  max-width: min(88ch, 100%);
  text-wrap: balance;
}

.proof-section {
  --content-wide: min(1700px, 96vw);
  background: var(--page-bg);
  padding: clamp(56px, 8vw, 96px) 0 48px;
  position: relative;
  z-index: 35;
  border-radius: 0;
  width: 100%;
  max-width: none;
  box-shadow: 0 -12px 40px rgb(from var(--vf-black) r g b / 0.5);
  overflow-x: visible;
  overflow-y: visible;
}

.proof-header {
  text-align: center;
  padding: 0 var(--h-pad);
  margin-bottom: 28px;
  position: relative;
  z-index: 2;
  max-width: var(--content-wide);
  margin-left: auto;
  margin-right: auto;
}
.proof-header h2 {
  font-family: 'Bebas Neue', sans-serif;
  font-size: clamp(36px, 4.5vw, 80px);
  letter-spacing: 0.04em;
  color: var(--vf-white);
  line-height: 1;
  margin-top: 0;
}

.sbx-showcase {
  position: relative;
  z-index: 1;
  padding: 12px 0 40px;
  width: 100%;
  max-width: none;
  margin: 0;
  overflow: visible;
}
.sbx-stage {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  grid-template-areas: 'sbxPrev sbxVp sbxNext';
  align-items: center;
  gap: clamp(10px, 1.5vw, 24px);
  padding: 0 clamp(12px, 3vw, 40px);
  width: 100%;
  max-width: none;
  box-sizing: border-box;
  position: relative;
  z-index: 1;
}
.sbx-prev { grid-area: sbxPrev; }
.sbx-viewport { grid-area: sbxVp; }
.sbx-next { grid-area: sbxNext; }
.sbx-viewport {
  position: relative;
  flex: 1;
  width: 100%;
  max-width: none;
  min-height: clamp(400px, 54vh, 640px);
  height: clamp(400px, 56vh, 680px);
  overflow: visible;
  isolation: isolate;
  perspective: 1200px;
  perspective-origin: 50% 45%;
}
@keyframes borderShift {
  0% { background-position: 0% 0%; }
  100% { background-position: 300% 0%; }
}
@media (prefers-reduced-motion: reduce) {
  .sbx-card::before {
    animation: none;
    background-position: 0% 0%;
  }
}
.sbx-ring {
  position: relative;
  width: 100%;
  min-height: inherit;
  height: 100%;
  transform-style: preserve-3d;
  transform: translateZ(0);
  overflow: visible;
}
.sbx-card {
  position: absolute;
  left: 50%;
  top: 50%;
  width: auto;
  max-width: min(46vw, 660px);
  height: auto;
  min-width: 160px;
  min-height: 140px;
  background: transparent;
  border-radius: 14px;
  overflow: visible;
  border: none;
  box-shadow:
    0 24px 48px rgb(from var(--vf-black) r g b / 0.55),
    0 0 0 1px rgb(from var(--vf-white) r g b / 0.06) inset;
  transform: translate(-50%, -50%);
  transform-origin: center center;
  transition:
    transform 0.55s cubic-bezier(0.22, 1, 0.36, 1),
    opacity 0.45s ease,
    filter 0.45s ease,
    box-shadow 0.35s ease;
  will-change: transform, opacity;
  backface-visibility: visible;
}
.sbx-card::before {
  content: '';
  position: absolute;
  inset: -14px;
  border-radius: 22px;
  background: linear-gradient(90deg, #00e5ff, #a855f7, #ec4899, #f97316, #00e5ff);
  background-size: 300% 100%;
  animation: borderShift 3s linear infinite;
  filter: blur(7px);
  opacity: 0.3;
  z-index: 0;
  pointer-events: none;
}
.sbx-card::after {
  content: '';
  position: absolute;
  inset: 3px;
  border-radius: 11px;
  background: var(--vf-black);
  z-index: 0;
  pointer-events: none;
}
.sbx-card img {
  position: relative;
  z-index: 1;
  display: block;
  width: auto;
  height: auto;
  max-width: min(46vw, 660px);
  max-height: min(72vh, 820px);
  object-fit: contain;
  vertical-align: top;
  border-radius: 10px;
}
.sbx-card.is-active {
  box-shadow:
    0 0 0 1px rgb(from var(--vf-white) r g b / 0.38),
    0 24px 48px rgb(from var(--vf-black) r g b / 0.62);
  filter: none;
  opacity: 1;
  z-index: 200;
}
.sbx-card.is-active::after {
  box-shadow: inset 0 0 0 3px var(--vf-white);
}
.sbx-card.sbx-card--side-left:not(.is-active),
.sbx-card.sbx-card--side-right:not(.is-active) {
  box-shadow:
    0 20px 44px rgb(from var(--vf-black) r g b / 0.52),
    0 0 0 1px rgb(from var(--vf-white) r g b / 0.05) inset;
}
.sbx-nav {
  flex-shrink: 0;
  position: relative;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  border: 1px solid rgb(from var(--vf-white) r g b / 0.18);
  background: rgb(from var(--vf-white) r g b / 0.06);
  color: rgb(from var(--vf-white) r g b / 0.85);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s, border-color 0.2s, box-shadow 0.2s, transform 0.15s;
  z-index: 30;
  -webkit-tap-highlight-color: transparent;
}
.sbx-nav:hover {
  background: rgb(from var(--vf-white) r g b / 0.12);
  border-color: rgb(from var(--vf-white) r g b / 0.35);
  transform: scale(1.05);
}
.sbx-nav-icon--mobile { display: none; }
.sbx-nav svg {
  width: 22px;
  height: 22px;
  stroke: currentColor;
  fill: none;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

@media (max-width: 768px) {
  .sbx-showcase { padding-bottom: 48px; }
  .sbx-stage {
    grid-template-columns: 1fr;
    grid-template-areas:
      'sbxPrev'
      'sbxVp'
      'sbxNext';
    gap: 12px;
    justify-items: center;
    padding: 0 clamp(10px, 4vw, 20px);
  }
  .sbx-nav-icon--desktop { display: none; }
  .sbx-nav-icon--mobile { display: block; }
  .sbx-nav {
    z-index: 50;
    min-width: 48px;
    min-height: 48px;
    touch-action: manipulation;
  }
  .sbx-viewport {
    min-height: clamp(380px, 58vh, 640px);
    height: clamp(380px, 58vh, 640px);
    max-width: 100%;
    perspective-origin: 50% 42%;
  }
  .sbx-card { max-width: min(88vw, 400px); }
  .sbx-card img {
    max-width: min(88vw, 400px);
    max-height: min(54vh, 560px);
  }
}

@media (max-width: 480px) {
  .sbx-viewport {
    min-height: clamp(340px, 52vh, 560px);
    height: clamp(340px, 52vh, 560px);
  }
  .sbx-card { max-width: min(90vw, 360px); }
  .sbx-card img {
    max-width: min(90vw, 360px);
    max-height: min(48vh, 480px);
  }
}

@media (min-width: 1600px) {
  .sbx-viewport {
    min-height: clamp(440px, 58vh, 720px);
    height: clamp(440px, 60vh, 760px);
  }
  .sbx-card,
  .sbx-card img { max-width: min(42vw, 720px); }
  .sbx-card img { max-height: min(74vh, 840px); }
}

@media (min-width: 2000px) {
  .sbx-viewport {
    min-height: clamp(460px, 60vh, 780px);
    height: clamp(460px, 62vh, 820px);
  }
  .sbx-card,
  .sbx-card img { max-width: min(38vw, 800px); }
  .sbx-card img { max-height: min(76vh, 880px); }
}
