/*! ENTRA Electromechanical © 2026. V15.1 homepage additions (video section) — loaded on the homepage only.
 * The clients/certificates and solution-finder sections use the existing Gemini/V13 styles unchanged. */
.entra-hv-section { padding-block: clamp(56px, 7vw, 96px); background: #fff; }
.entra-hv-grid { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: clamp(28px, 4vw, 56px); align-items: center; }
.entra-hv-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 24px; }
.entra-hv-card { position: relative; display: block; width: 100%; aspect-ratio: 16 / 9; padding: 0; border: 0; border-radius: 16px; overflow: hidden; background: #111; cursor: pointer; color: #fff; box-shadow: 0 24px 60px -30px rgba(1, 21, 72, .45); }
.entra-hv-card img { width: 100%; height: 100%; object-fit: cover; opacity: .85; transition: opacity .3s, transform .6s cubic-bezier(.2, .7, .2, 1); }
.entra-hv-card:hover img { opacity: 1; transform: scale(1.03); }
.entra-hv-card:focus-visible { outline: 3px solid #f36e21; outline-offset: 3px; }
.entra-hv-play { position: absolute; inset-inline-start: 20px; inset-block-end: 20px; display: inline-flex; align-items: center; gap: 12px; text-align: start; font: 600 15px/1.25 Inter, Cairo, sans-serif; text-shadow: 0 1px 8px rgba(0, 0, 0, .5); }
.entra-hv-play small { display: block; font-weight: 400; font-size: 12.5px; opacity: .85; }
.entra-hv-play i { width: 56px; height: 56px; border-radius: 50%; background: #f36e21; display: grid; place-items: center; flex: none; box-shadow: 0 8px 20px rgba(243, 110, 33, .45); }
.entra-hv-play i svg { width: 20px; height: 20px; fill: #fff; margin-inline-start: 3px; }
.entra-hv-card iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
@media (max-width: 900px) { .entra-hv-grid { grid-template-columns: 1fr; } }
@media (prefers-reduced-motion: reduce) { .entra-hv-card img { transition: none; } }

/* ===== V15.2 — hero motion + conveyor background (additive; Gemini files untouched) ===== */
/* Background artwork: decorative, code-drawn illustration (not an ENTRA project photo).
   To use another image (e.g. an AI-generated one), replace assets/entra/images/hero/conveyor-bg.svg
   or change --entra-hero-bg below to url(../images/hero/your-file.webp). */
.pg-stage { --entra-hero-bg: url(../images/hero/conveyor-bg.svg); }
.entra-stage-conveyor {
  position: absolute; inset: 0; z-index: 0; pointer-events: none;
  background: var(--entra-hero-bg) center bottom / cover no-repeat;
  opacity: .5;
  -webkit-mask-image: linear-gradient(180deg, rgba(0,0,0,.35) 0%, #000 40%, #000 75%, rgba(0,0,0,.2) 100%);
          mask-image: linear-gradient(180deg, rgba(0,0,0,.35) 0%, #000 40%, #000 75%, rgba(0,0,0,.2) 100%);
}
@media (max-width: 899px) { .entra-stage-conveyor { opacity: .3; background-position: 30% 40%; } }

/* Cards ride the line: gentle staggered bob + a periodic light sweep over the photo */
@keyframes entra-card-ride { 0%, 100% { translate: 0 0; } 50% { translate: 0 -6px; } }
@keyframes entra-card-sheen { 0%, 82% { transform: translateX(-130%) skewX(-18deg); } 100% { transform: translateX(230%) skewX(-18deg); } }
.pg-stage .pg-line-track { padding-top: 12px; margin-top: -12px; }
.pg-stage .pg-line-item { animation: entra-card-ride 3.6s ease-in-out infinite; animation-delay: var(--entra-d1, 0s); }
.pg-stage .pg-line-media::after {
  content: ""; position: absolute; inset: 0 auto 0 0; width: 45%; pointer-events: none;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,.28), transparent);
  transform: translateX(-130%) skewX(-18deg);
  animation: entra-card-sheen 9s ease-in-out infinite; animation-delay: var(--entra-d2, 0s);
}
.pg-stage .pg-line-item:nth-child(1) { --entra-d1: -0.37s; --entra-d2: -0.90s; }
.pg-stage .pg-line-item:nth-child(2) { --entra-d1: -0.74s; --entra-d2: -1.80s; }
.pg-stage .pg-line-item:nth-child(3) { --entra-d1: -1.11s; --entra-d2: -2.70s; }
.pg-stage .pg-line-item:nth-child(4) { --entra-d1: -1.48s; --entra-d2: -3.60s; }
.pg-stage .pg-line-item:nth-child(5) { --entra-d1: -1.85s; --entra-d2: -4.50s; }
.pg-stage .pg-line-item:nth-child(6) { --entra-d1: -2.22s; --entra-d2: -5.40s; }
.pg-stage .pg-line-item:nth-child(7) { --entra-d1: -2.59s; --entra-d2: -6.30s; }
.pg-stage .pg-line-item:nth-child(8) { --entra-d1: -2.96s; --entra-d2: -7.20s; }
.pg-stage .pg-line-item:nth-child(9) { --entra-d1: -3.33s; --entra-d2: -8.10s; }
.pg-stage .pg-line-item:nth-child(10) { --entra-d1: -0.10s; --entra-d2: -0.00s; }
.pg-stage .pg-line-item:nth-child(11) { --entra-d1: -0.47s; --entra-d2: -0.90s; }
.pg-stage .pg-line-item:nth-child(12) { --entra-d1: -0.84s; --entra-d2: -1.80s; }
.pg-stage .pg-line-item:nth-child(13) { --entra-d1: -1.21s; --entra-d2: -2.70s; }
.pg-stage .pg-line-item:nth-child(14) { --entra-d1: -1.58s; --entra-d2: -3.60s; }
.pg-stage .pg-line-item:nth-child(15) { --entra-d1: -1.95s; --entra-d2: -4.50s; }
.pg-stage .pg-line-item:nth-child(16) { --entra-d1: -2.32s; --entra-d2: -5.40s; }
.pg-stage .pg-line-item:nth-child(17) { --entra-d1: -2.69s; --entra-d2: -6.30s; }
.pg-stage .pg-line-item:nth-child(18) { --entra-d1: -3.06s; --entra-d2: -7.20s; }
.pg-stage .pg-line-item:nth-child(19) { --entra-d1: -3.43s; --entra-d2: -8.10s; }
.pg-stage .pg-line-item a { transition: border-color .2s, transform .25s ease, box-shadow .25s ease; }
.pg-stage .pg-line-item a:hover, .pg-stage .pg-line-item a:focus-visible { transform: translateY(-6px); box-shadow: 0 14px 28px rgba(0,0,0,.45), 0 0 0 1px rgba(243,110,33,.35); }
.pg-stage .pg-line-track:hover .pg-line-item, .pg-stage .pg-line-track:focus-within .pg-line-item { animation-play-state: paused; }

/* Belt keeps running between scrolls (GSAP owns transform; this moves only the texture) */
@keyframes entra-belt-run { to { background-position: 22px 0; } }
.pg-stage .pg-rail-belt { animation: entra-belt-run .9s linear infinite; }
html[dir="rtl"] .pg-stage .pg-rail-belt { animation-direction: reverse; }

@media (prefers-reduced-motion: reduce) {
  .pg-stage .pg-line-item, .pg-stage .pg-rail-belt, .pg-stage .pg-line-media::after { animation: none !important; }
  .pg-stage .pg-line-media::after { display: none; }
  .pg-stage .pg-line-item a:hover, .pg-stage .pg-line-item a:focus-visible { transform: none; }
}

/* ===== V15.4 — continuous production-line loop + autoplay video ===== */
.pg-stage.is-looping .pg-line-track { overflow: visible; scroll-snap-type: none; touch-action: pan-y; will-change: transform; }
.pg-stage.is-looping .pg-rail-belt { animation: none; } /* belt is moved by the loop, in step with the cards */
.entra-loop-toggle {
  display: inline-flex; align-items: center; gap: 6px; margin-inline-start: 14px;
  height: 30px; padding: 0 12px; border-radius: 999px; cursor: pointer;
  background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.22); color: #e6eaee;
  font: 600 12px/1 Inter, Cairo, sans-serif;
}
.entra-loop-toggle svg { width: 12px; height: 12px; fill: currentColor; }
.entra-loop-toggle:hover { border-color: #f36e21; color: #fff; }
.entra-loop-toggle:focus-visible { outline: 2px solid #f36e21; outline-offset: 2px; }
.pg-line-header { align-items: center; }
.entra-hv-card { cursor: default; }
.entra-hv-card.is-playing .entra-hv-play { display: none; }
