/* EVA DIAM video grid — gold / black, same tokens as Collection. */

.edv-video {
  --edv-bg: #070708;
  --edv-gold: #e4c66a;
  --edv-gold-2: #c9a227;
  --edv-text: #f4f1ea;
  --edv-muted: #9a9aa3;
  --edv-sans: Montserrat, system-ui, sans-serif;
  --edv-side: clamp(22px, 2.6vw, 40px);
  position: relative;
  width: 100vw !important;
  max-width: 100vw !important;
  margin-left: calc(50% - 50vw) !important;
  margin-right: calc(50% - 50vw) !important;
  left: auto;
  right: auto;
  background: var(--edh-bg, var(--edv-bg));
  color: var(--edh-text, var(--edv-text));
  font-family: var(--edh-sans, var(--edv-sans));
  padding: clamp(22px, 3vw, 36px) var(--edv-side) clamp(24px, 3vw, 40px) !important;
  box-sizing: border-box !important;
  overflow: hidden;
}

.edv-video *,
.edv-video *::before,
.edv-video *::after {
  box-sizing: border-box;
}

.ed-jump {
  display: block;
  width: 0;
  height: 0;
  overflow: hidden;
  pointer-events: none;
}

body:has(.edv-video) .entry-header,
body:has(.edv-video) .page-header,
body:has(.edv-video) h1.entry-title {
  display: none;
}

.elementor-section:has(.edv-video),
.elementor-container:has(.edv-video),
.elementor-element:has(.edv-video),
.elementor-widget:has(.edv-video),
.elementor-widget-wrap:has(.edv-video),
.elementor-widget-container:has(.edv-video),
.elementor-shortcode:has(.edv-video),
.e-con:has(.edv-video),
.e-con-inner:has(.edv-video),
body:has(.edv-video) .site,
body:has(.edv-video) .site-main,
body:has(.edv-video) #content,
body:has(.edv-video) .content-area,
body:has(.edv-video) .page-content,
body:has(.edv-video) article,
body:has(.edv-video) .entry-content,
body:has(.edv-video) .elementor,
body:has(.edv-video) .elementor-section,
body:has(.edv-video) .elementor-section-boxed > .elementor-container {
  max-width: none !important;
  width: 100% !important;
  padding-left: 0 !important;
  padding-right: 0 !important;
  margin-left: 0 !important;
  margin-right: 0 !important;
  overflow: visible !important;
}

body.edh-site:has(.edv-video) .site-main,
body.edh-site:has(.edv-video) #content,
body.edh-site:has(.edv-video) .page-content {
  padding-top: 0;
}

.edv-head {
  text-align: center;
  margin: 0 auto clamp(22px, 3vw, 34px);
  max-width: 56rem;
}

.edv-head__kicker {
  margin: 0 0 10px;
  font-family: var(--edh-sans, var(--edv-sans));
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.04em;
  line-height: 1.3;
  color: var(--edh-gold-t, var(--edv-gold));
}

.edv-head__title {
  margin: 0 0 12px;
  font-family: var(--edh-sans, var(--edv-sans));
  font-size: clamp(1.85rem, 3.6vw, 2.75rem);
  font-weight: 600;
  letter-spacing: 0.01em;
  line-height: 1.15;
  color: var(--edh-text, var(--edv-text));
}

.edv-head__text {
  margin: 0 auto;
  max-width: 52ch;
  font-size: clamp(13px, 1.15vw, 16px);
  font-weight: 400;
  line-height: 1.55;
  color: var(--edh-muted, var(--edv-muted));
}

.edv-head__kicker,
.edv-head__title,
.edv-head__text {
  opacity: 0;
  transform: translate3d(-42px, 0, 0);
  clip-path: inset(0 110% 0 -8px);
}

.edv-video.is-in .edv-head__kicker,
.edv-video.is-in .edv-head__title,
.edv-video.is-in .edv-head__text {
  animation: edv-copy-in 900ms cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.edv-video.is-in .edv-head__kicker {
  animation-delay: 80ms;
}

.edv-video.is-in .edv-head__title {
  animation-delay: 190ms;
}

.edv-video.is-in .edv-head__text {
  animation-delay: 320ms;
}

@keyframes edv-copy-in {
  to {
    opacity: 1;
    transform: none;
    clip-path: inset(0 -8% 0 -8px);
  }
}

.edv-stage {
  position: relative;
  max-width: 1180px;
  margin: 0 auto;
  opacity: 0;
  transform: translateY(18px);
}

.edv-video.is-in .edv-stage {
  animation: edv-item-in 800ms cubic-bezier(0.16, 1, 0.3, 1) 280ms forwards;
}

@keyframes edv-item-in {
  to {
    opacity: 1;
    transform: none;
  }
}

.edv-track {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}

.edv-card {
  position: relative;
  width: 100%;
  min-width: 0;
  aspect-ratio: 3 / 4.2;
  overflow: hidden;
  background: #1a1814;
  color: var(--edh-text, var(--edv-text));
  text-decoration: none;
}

.edv-card__media {
  position: absolute;
  inset: 0;
  display: block;
  overflow: hidden;
  background: #101012;
}

.edv-card__video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.edv-card__ph {
  display: block;
  width: 100%;
  height: 100%;
  background:
    radial-gradient(ellipse at 30% 20%, rgba(201, 162, 39, 0.14), transparent 55%),
    #101012;
}

.edv-card__veil {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(180deg, transparent 48%, rgba(7, 7, 8, 0.78) 100%);
}

.edv-card__name {
  position: absolute;
  left: 16px;
  right: 16px;
  bottom: 16px;
  z-index: 2;
  font-family: var(--edh-sans, var(--edv-sans));
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.01em;
  line-height: 1.25;
  color: var(--edh-gold-t, var(--edv-gold));
}

@media (max-width: 900px) {
  .edv-video {
    padding: 20px 16px 24px !important;
  }

  .edv-head {
    margin-bottom: 16px;
  }

  .edv-head__kicker {
    margin-bottom: 6px;
    font-size: 13px;
  }

  .edv-head__title {
    margin-bottom: 8px;
    font-size: clamp(1.55rem, 8vw, 2.05rem);
  }

  .edv-head__text {
    max-width: none;
    font-size: 12px;
    line-height: 1.6;
  }

  .edv-track {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
  }

  .edv-card__name {
    left: 10px;
    right: 10px;
    bottom: 10px;
    font-size: 12px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .edv-head__kicker,
  .edv-head__title,
  .edv-head__text,
  .edv-stage {
    opacity: 1;
    transform: none;
    clip-path: none;
    animation: none;
  }
}
