/* ==========================================================================
   video.css — narrated demo players (landing page + services page)
   Site tokens only; nothing new is defined here. Loaded on index.html and
   services.html. Bump the ?v= on the <link> whenever this file changes:
   .htaccess caches CSS for a month.
   ========================================================================== */

.vsec-head { max-width: 760px; margin-bottom: 30px; }
.vsec-head .eyebrow { margin-bottom: 12px; }
.vsec-head h2 { margin-bottom: 12px; }
.vsec-head p { color: var(--text-muted); font-size: .98rem; margin: 0; }

.vfig { margin: 0; }
.vfig--wide { max-width: 940px; }

.vframe {
  position: relative;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--ink-card);
  box-shadow: var(--shadow-lift);
}
.vframe video {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 9;
  background: var(--ink);
}

/* Click-to-play facade. Removed on first play, so the native controls take
   over from then on. Without JS the native controls are there from the start. */
.vplay {
  position: absolute;
  inset: 0;
  width: 100%;
  display: flex;
  align-items: flex-end;
  justify-content: flex-start;
  gap: 14px;
  padding: clamp(16px, 3vw, 28px);
  border: 0;
  cursor: pointer;
  font: inherit;
  color: var(--text);
  text-align: left;
  background: linear-gradient(to top, rgba(5,5,5,.78) 0%, rgba(5,5,5,.28) 42%, rgba(5,5,5,0) 78%);
  transition: opacity .2s var(--ease);
}
.vplay:hover { opacity: .92; }
.vplay:focus-visible { outline: 2px solid var(--orange); outline-offset: -4px; }
.vplay .tri {
  flex: 0 0 auto;
  width: 54px; height: 54px;
  border-radius: 50%;
  background: var(--brand-sweep);
  display: grid; place-items: center;
  box-shadow: 0 10px 30px -12px rgba(254,82,0,.8);
}
.vplay .tri::after {
  content: "";
  width: 0; height: 0;
  margin-left: 4px;
  border-left: 15px solid #0B0B0C;
  border-top: 9px solid transparent;
  border-bottom: 9px solid transparent;
}
.vplay .lbl { display: block; font-weight: 650; font-size: 1rem; letter-spacing: -.01em; }
.vplay .sub {
  display: block; margin-top: 3px;
  font-size: .8rem; color: var(--text-muted); font-weight: 500;
}
.vfig figcaption {
  margin-top: 12px;
  font-size: .82rem;
  color: var(--text-faint);
}

/* Services page: one player per service block */
.service-block .vfig { margin-top: 22px; }
.service-block .vplay .tri { width: 46px; height: 46px; }
.service-block .vplay .tri::after { border-left-width: 13px; border-top-width: 8px; border-bottom-width: 8px; }

@media (max-width: 540px) {
  /* Narrow frames: stack the label under the button and lay a darker plate over
     the poster, otherwise the facade text collides with the text in the frame. */
  .vplay {
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 12px;
    text-align: center;
    background: linear-gradient(to top, rgba(5,5,5,.72) 0%, rgba(5,5,5,.58) 100%);
  }
  .vplay .tri { width: 46px; height: 46px; }
  .vplay .tri::after { border-left-width: 13px; border-top-width: 8px; border-bottom-width: 8px; }
  .vplay .lbl { font-size: .88rem; }
  .vplay .sub { font-size: .74rem; }
}

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