/* Video showcase — real explainer videos that play inline (lightbox).
   Uses existing design tokens from styles.css (--teal, --ink, --paper, etc.). */

.video-showcase {
  padding: clamp(3rem, 6vw, 5.5rem) clamp(1.25rem, 5vw, 4rem);
  background: var(--white);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.video-showcase .section-heading {
  max-width: 720px;
  margin: 0 auto clamp(2rem, 4vw, 3rem);
  text-align: center;
}

.video-showcase .section-heading .eyebrow {
  color: var(--teal);
}

.vs-featured {
  display: grid;
  grid-template-columns: 1.6fr 1fr;
  gap: clamp(1.25rem, 3vw, 2.5rem);
  align-items: center;
  max-width: 1100px;
  margin: 0 auto clamp(2rem, 4vw, 3rem);
}

@media (max-width: 860px) {
  .vs-featured {
    grid-template-columns: 1fr;
  }
}

.vs-featured-copy strong {
  display: block;
  font-size: clamp(1.3rem, 2.4vw, 1.9rem);
  line-height: 1.2;
  color: var(--ink);
  margin-bottom: 0.6rem;
}

.vs-featured-copy p {
  color: var(--muted);
  margin: 0 0 1.25rem;
  line-height: 1.6;
}

.vs-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: clamp(0.75rem, 1.6vw, 1.25rem);
  max-width: 1100px;
  margin: 0 auto;
}

@media (max-width: 860px) {
  .vs-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

.vs-card {
  position: relative;
  display: block;
  width: 100%;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--paper);
  cursor: pointer;
  text-align: left;
  transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
}

.vs-card:hover,
.vs-card:focus-visible {
  transform: translateY(-3px);
  box-shadow: var(--shadow);
  border-color: var(--teal);
  outline: none;
}

.vs-thumb {
  position: relative;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: #000;
}

.vs-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.vs-play {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  background: rgba(15, 63, 61, 0.18);
  transition: background 0.18s ease;
}

.vs-card:hover .vs-play,
.vs-card:focus-visible .vs-play {
  background: rgba(15, 63, 61, 0.32);
}

.vs-play::after {
  content: "";
  width: 0;
  height: 0;
  border-style: solid;
  border-width: 11px 0 11px 18px;
  border-color: transparent transparent transparent #fff;
  margin-left: 4px;
  filter: drop-shadow(0 2px 6px rgba(0, 0, 0, 0.4));
}

.vs-play span {
  position: absolute;
  width: 54px;
  height: 54px;
  border-radius: 50%;
  background: var(--coral);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3);
}

.vs-duration {
  position: absolute;
  right: 8px;
  bottom: 8px;
  background: rgba(0, 0, 0, 0.78);
  color: #fff;
  font-size: 0.72rem;
  font-weight: 600;
  padding: 2px 7px;
  border-radius: 4px;
  letter-spacing: 0.02em;
}

.vs-meta {
  padding: 0.7rem 0.85rem 0.85rem;
}

.vs-meta strong {
  display: block;
  font-size: 0.92rem;
  color: var(--ink);
  line-height: 1.25;
}

.vs-meta span {
  font-size: 0.78rem;
  color: var(--muted);
}

.vs-actions {
  text-align: center;
  margin-top: clamp(1.5rem, 3vw, 2.25rem);
}

/* Lightbox */
.vs-lightbox {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: none;
  align-items: center;
  justify-content: center;
  padding: clamp(1rem, 4vw, 3rem);
  background: rgba(8, 20, 19, 0.86);
  backdrop-filter: blur(4px);
}

.vs-lightbox[data-open="true"] {
  display: flex;
}

.vs-lightbox-inner {
  position: relative;
  width: min(960px, 100%);
}

.vs-lightbox-frame {
  position: relative;
  aspect-ratio: 16 / 9;
  width: 100%;
  border-radius: var(--radius);
  overflow: hidden;
  background: #000;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.5);
}

.vs-lightbox-frame iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

.vs-lightbox-title {
  color: #fff;
  text-align: center;
  margin: 0.9rem 0 0;
  font-size: 0.95rem;
  opacity: 0.9;
}

.vs-lightbox-close {
  position: absolute;
  top: -14px;
  right: -14px;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 0;
  background: #fff;
  color: var(--ink);
  font-size: 1.4rem;
  line-height: 1;
  cursor: pointer;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.3);
}

@media (max-width: 600px) {
  .vs-lightbox-close {
    top: 8px;
    right: 8px;
  }
}
