/* Premium-video integration: audiovisual layer placed over the repaired cinema flow. */

html.ens-chat-consent-pending .floating-widgets {
  visibility: hidden;
  pointer-events: none;
}

/* ---------- Home hero · video v1 ---------- */
#hero-section.ens-motion-hero--video {
  min-height: 100dvh;
  isolation: isolate;
  background: #05060a !important;
}

/* Disable the legacy light-scene wash: v1 owns the image and its black space. */
#hero-section.ens-motion-hero--video::before {
  background: none !important;
}

#hero-section.ens-motion-hero--video .ens-hero-video {
  position: absolute !important;
  z-index: 0 !important;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center;
  pointer-events: none;
  filter: saturate(1.04) contrast(1.04);
}

.ens-hero-scrim {
  position: absolute !important;
  z-index: 1 !important;
  inset: 0;
  pointer-events: none;
}

#hero-section.ens-motion-hero--video .ens-hero-scrim {
  background:
    /* v1 already reserves its dark mesh on the left for the narrative. */
    linear-gradient(90deg, rgba(5, 6, 10, .2) 0%, rgba(5, 6, 10, .08) 47%, transparent 69%, rgba(5, 6, 10, .22) 100%),
    linear-gradient(180deg, rgba(5, 6, 10, .42), transparent 32%, rgba(5, 6, 10, .66) 100%);
}

#hero-section.ens-motion-hero--video .ens-motion-grid {
  position: absolute;
  z-index: 1;
  inset: 0;
  opacity: .3;
  pointer-events: none;
}

#hero-section.ens-motion-hero--video .ens-cinema-hero__inner {
  z-index: 2;
  min-height: calc(100dvh - 5rem);
}

@media (min-width: 768px) {
  /* Keep copy inside the intentional black negative space, never over v1's jersey. */
  #hero-section.ens-motion-hero--video .ens-cinema-hero__inner {
    grid-template-columns: minmax(0, .62fr) minmax(0, .38fr);
    gap: 0;
  }

  #hero-section.ens-motion-hero--video .ens-cinema-hero__copy {
    grid-column: 1;
    justify-self: start;
    max-width: 34rem;
  }
}

#hero-section.ens-motion-hero--video .ens-cinema-hero__media {
  display: none;
}

#hero-section.ens-motion-hero--video .ens-motion-eyebrow,
#hero-section.ens-motion-hero--video .ens-motion-hero__lead {
  color: #eef2f8;
  text-shadow: 0 2px 14px rgba(0, 0, 0, .88);
}

#hero-section.ens-motion-hero--video .ens-motion-hero__title {
  color: #ffffff;
  text-shadow: 0 6px 30px rgba(0, 0, 0, .88), 0 2px 8px rgba(0, 0, 0, .92);
}

#hero-section.ens-motion-hero--video .ens-hero-line {
  color: #ffffff;
  text-shadow: 0 6px 30px rgba(0, 0, 0, .88), 0 2px 8px rgba(0, 0, 0, .92);
}

#hero-section.ens-motion-hero--video .ens-hero-line--accent {
  color: var(--ens-sky, #87ceeb);
  text-shadow: 0 6px 30px rgba(0, 0, 0, .7), 0 0 22px rgba(135, 206, 235, .35);
}

#hero-section.ens-motion-hero--video .ens-motion-chips span {
  border-color: rgba(255, 255, 255, .18);
  background: rgba(10, 12, 18, .52);
  color: #f8fafc;
  box-shadow: 0 8px 24px rgba(0, 0, 0, .3);
}

/* ---------- Video v2 · storytelling on its native gray ---------- */
.ens-vfranja {
  position: relative;
  overflow: hidden;
  padding: clamp(4.75rem, 9vw, 7.5rem) 0;
  background: #aeaca2;
  color: #17171a;
}

.ens-vfranja__wrap {
  display: grid;
  width: min(calc(100% - 8rem), 76rem);
  margin: 0 auto;
  gap: clamp(1.75rem, 4vw, 2.75rem);
}

.ens-vfranja__media {
  overflow: hidden;
  aspect-ratio: 16 / 9;
  border-radius: 1.5rem;
  background: #c0beb5;
  box-shadow: 0 24px 56px -30px rgba(23, 23, 26, .42);
}

.ens-vfranja__media video {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.ens-vfranja--complete .ens-vfranja__copy {
  max-width: 46rem;
  margin-inline: auto;
  text-align: center;
}

.ens-vfranja__copy .ens-eyebrow { margin-bottom: .65rem; color: #3d240f; }
.ens-vfranja__copy h2 {
  max-width: 18ch;
  margin: 0 auto;
  color: #17171a;
  font-size: clamp(2rem, 4.2vw, 3.6rem);
  font-weight: 900;
  letter-spacing: -.055em;
  line-height: 1;
  text-wrap: balance;
}
.ens-vfranja__copy p:last-child { max-width: 42rem; margin: 1rem auto 0; color: #34332d; line-height: 1.6; }

/* ---------- Videos v3–v6 · uncut, rounded, and deliberately quiet ---------- */
.ens-video-frame {
  position: relative;
  width: min(100%, 28rem) !important;
  margin-inline: auto;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, .14);
  border-radius: 1.5rem;
  background: #0b0b0d;
  box-shadow: 0 32px 68px -30px rgba(0, 0, 0, .56), 0 10px 24px rgba(0, 0, 0, .2);
  isolation: isolate;
}

.ens-video-frame video {
  display: block;
  width: 100% !important;
  height: auto !important;
  object-fit: contain !important;
}

.ens-video-frame--light {
  border-color: rgba(0, 0, 0, .1);
  background: #f2f2f4;
  box-shadow: 0 26px 56px -28px rgba(0, 0, 0, .32), 0 8px 18px rgba(0, 0, 0, .1);
}

.ens-premium-mockup-trio {
  display: grid;
  margin-top: 1.35rem;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: .6rem;
}

.ens-premium-mockup-trio img {
  display: block;
  width: 100%;
  aspect-ratio: 1 / 1.08;
  padding: .45rem;
  border: 1px solid rgba(23, 23, 26, .1);
  border-radius: 1rem;
  background: rgba(255, 255, 255, .56);
  object-fit: contain;
}

.ens-logo-break {
  position: relative;
  display: grid;
  min-height: clamp(17rem, 28vw, 25rem);
  overflow: hidden;
  align-content: center;
  justify-items: center;
  gap: 1rem;
  background: #05060a;
}

.ens-logo-break--compact { min-height: clamp(13rem, 24vw, 20rem); }
.ens-logo-break video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; pointer-events: none; }
.ens-logo-break__scrim { position: absolute; inset: 0; background: radial-gradient(ellipse at center, transparent 36%, rgba(5, 6, 10, .58) 100%); pointer-events: none; }
.ens-logo-break__mark { position: relative; z-index: 2; display: block; width: min(42rem, 76vw); height: auto; object-fit: contain; }
.ens-logo-break__line { position: relative; z-index: 2; max-width: 30rem; margin: 0; padding-inline: 1.5rem; color: rgba(255, 255, 255, .82); font-size: clamp(.92rem, 1.3vw, 1.1rem); line-height: 1.5; text-align: center; }

.ens-premium-video-story { padding: clamp(4rem, 8vw, 7rem) 0; background: #0a0b0f; color: #ffffff; }
.ens-premium-video-story__layout { display: grid; align-items: center; gap: clamp(2rem, 6vw, 6rem); }
.ens-premium-video-story__copy { max-width: 34rem; }
.ens-premium-video-story .ens-eyebrow { margin-bottom: .7rem; color: #a8dbf1; }
.ens-premium-video-story h2 { margin: 0; font-size: clamp(2rem, 4vw, 3.5rem); font-weight: 900; letter-spacing: -.055em; line-height: .98; text-transform: uppercase; text-wrap: balance; }
.ens-premium-video-story p:last-child { margin: 1rem 0 0; color: #c8cbd2; line-height: 1.65; }

/* ---------- Catalog video hero · v7 ---------- */
.catalog-page-hero--video {
  min-height: min(42rem, 78svh);
  isolation: isolate;
  background: #05060a !important;
  color: #ffffff !important;
}

.catalog-page-hero--video .ens-hero-video {
  position: absolute !important;
  z-index: 0 !important;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  pointer-events: none;
}

.catalog-page-hero--video .ens-hero-scrim {
  z-index: 1 !important;
  background: radial-gradient(ellipse at center, rgba(5, 6, 10, .08), rgba(5, 6, 10, .7) 85%), linear-gradient(180deg, rgba(5, 6, 10, .62), rgba(5, 6, 10, .25) 45%, rgba(5, 6, 10, .8));
}

.catalog-page-hero--video > .relative { z-index: 2; }
.catalog-page-hero--video .catalog-page-hero__copy h1 { color: #ffffff; text-shadow: 0 6px 30px rgba(0, 0, 0, .88), 0 2px 8px rgba(0, 0, 0, .92); }
.catalog-page-hero--video .catalog-page-hero__copy p { color: #e4e8ef; text-shadow: 0 2px 14px rgba(0, 0, 0, .88); }
.catalog-page-hero--video .catalog-hero-badge { border-color: rgba(255, 255, 255, .28); background: rgba(255, 255, 255, .12); color: #ffffff; backdrop-filter: blur(6px); }
.ens-catalog-showreel .showreel-frame { border-color: rgba(255, 255, 255, .13); box-shadow: 0 26px 58px -30px rgba(0, 0, 0, .8); }

/* ---------- Catalog carousel and fabric decision ---------- */
#catalogo.ens-catalog-carousel-section #cat-grid .catalog-product-stage,
#cat-grid .cat-card .catalog-product-stage {
  background: radial-gradient(circle at 50% 38%, #1a1b21 0%, #08080a 75%) !important;
}

#catalogo.ens-catalog-carousel-section #cat-grid .catalog-product-stage img {
  filter: drop-shadow(0 18px 28px rgba(0, 0, 0, .46));
}

.catalog-path-chip { display: inline-flex; align-items: center; justify-content: center; gap: .55rem; }
.catalog-path-icon { width: 1.75rem; height: 1.75rem; flex: 0 0 auto; object-fit: contain; mix-blend-mode: screen; }
.catalog-path-chip:focus-visible,
.catalog-page-hero--video a:focus-visible { outline: 3px solid #87ceeb; outline-offset: 3px; }

#telas.ens-fabrics .fabric-content > .grid {
  display: flex !important;
  gap: 1rem !important;
  overflow-x: auto !important;
  padding: .35rem .35rem 1.1rem !important;
  scroll-snap-type: x mandatory;
  scrollbar-width: thin;
  -webkit-overflow-scrolling: touch;
}

#telas.ens-fabrics .fabric-content > .grid > div {
  flex: 0 0 min(30rem, 76vw);
  max-width: min(30rem, 76vw);
  scroll-snap-align: center;
}

#telas.ens-fabrics .fabric-content > .grid::-webkit-scrollbar { height: 6px; }
#telas.ens-fabrics .fabric-content > .grid::-webkit-scrollbar-thumb { border-radius: 999px; background: rgba(23, 23, 26, .3); }

@media (min-width: 900px) {
  .ens-premium-video-story__layout { grid-template-columns: minmax(0, 1fr) minmax(18rem, .78fr); }
}

@media (max-width: 767px) {
  #hero-section.ens-motion-hero--video { min-height: 100dvh; background: #05060a !important; }
  #hero-section.ens-motion-hero--video .ens-cinema-hero__inner {
    display: block;
    min-height: calc(100dvh - 4rem);
    padding: clamp(1.35rem, 4.5vh, 2.25rem) 1.25rem min(42dvh, 22rem);
  }
  #hero-section.ens-motion-hero--video .ens-cinema-hero__copy {
    display: flex;
    align-items: flex-start;
    flex-direction: column;
    max-width: 22rem;
  }
  #hero-section.ens-motion-hero--video .ens-motion-eyebrow,
  #hero-section.ens-motion-hero--video .ens-motion-hero__title,
  #hero-section.ens-motion-hero--video .ens-motion-hero__lead {
    width: 100%;
    margin-inline: 0;
    text-align: left;
  }
  #hero-section.ens-motion-hero--video .ens-motion-eyebrow { justify-content: flex-start; }
  #hero-section.ens-motion-hero--video .ens-motion-hero__title {
    max-width: 100%;
    font-size: clamp(2.1rem, 9vw, 2.45rem);
  }
  #hero-section.ens-motion-hero--video .ens-hero-line { white-space: normal; }
  #hero-section.ens-motion-hero--video .ens-motion-chips,
  #hero-section.ens-motion-hero--video .ens-motion-actions { justify-content: flex-start; }
  #hero-section.ens-motion-hero--video .ens-hero-video {
    top: auto;
    height: min(42dvh, 22rem);
    object-fit: contain;
    object-position: center bottom;
  }
  #hero-section.ens-motion-hero--video .ens-hero-scrim {
    background: linear-gradient(180deg, rgba(5, 6, 10, .5), rgba(5, 6, 10, .04) 48%, transparent 100%);
  }
  .ens-vfranja__copy .ens-eyebrow { justify-content: center; }
  .ens-vfranja__wrap { width: min(calc(100% - 3rem), 42rem); }
  .ens-premium-video-story__copy { margin-inline: auto; text-align: center; }
  .ens-premium-video-story .ens-eyebrow { justify-content: center; }
  .ens-video-frame { width: min(100%, 23rem) !important; }
  .catalog-page-hero--video { min-height: min(40rem, 76svh); }
  .catalog-page-hero--video .ens-hero-video { object-position: 56% center; }
  #telas.ens-fabrics .fabric-content > .grid > div { flex-basis: 88%; max-width: 88%; }
}

@media (prefers-reduced-motion: reduce) {
  .ens-logo-break video,
  .ens-vfranja video,
  .ens-video-frame video { animation: none !important; }
}
