/* Homepage hero sequence v3, "Segnale disturbato" (src/components/home-agency/v3/Signal.jsx). Loads after v2.css. */
.v3 { height: 380vh; }
.v3 .v2-hero { bottom: 112px; }

/* the headline + its interference layers (copies, never read by screen readers) */
.v3-h1 { position: relative; isolation: isolate; }
.v3-base { position: relative; z-index: 1; display: block; }
.v3-gb, .v3-gf { position: absolute; inset: 0; pointer-events: none; }
.v3-gb { z-index: 0; }
.v3-gf { z-index: 2; }
.v3-c { position: absolute; inset: 0; display: block; opacity: 0; will-change: transform, opacity; }
.v3-c .v2-l, .v3-c .v2-r { display: inline-block; }
.v3-c.r { color: #ff4a3d; mix-blend-mode: screen; }
.v3-c.c { color: #2fd8ff; mix-blend-mode: screen; }
.v3-c.s { color: #f3f1ee; background: #060607; }

/* logos, inside the hero */
.v3-logos { position: absolute; z-index: 3; left: max(4vw, calc((100vw - 1200px) / 2)); right: max(4vw, calc((100vw - 1200px) / 2)); bottom: 22px; height: 84px;
  display: flex; align-items: center; gap: 40px; border-top: 1px solid rgba(255, 255, 255, .12); pointer-events: none; }
.v3-lt { margin: 0; flex: none; max-width: 15ch; font-size: 15px; line-height: 1.42; color: #d4d0cb; }
.v3-lm { flex: 1; min-width: 0; overflow: hidden; }
.v3-lr { display: flex; align-items: center; justify-content: space-between; gap: 28px; }
.v3-lr img { flex: none; opacity: .62; display: block; }
.v3-lr img.dup { display: none; }
@media (max-width: 1279px) { .v3-lr img:nth-child(n+9) { display: none; } }
@media (max-width: 1023px) {
  .v3-logos { gap: 24px; }
  .v3-lm { -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); }
  .v3-lr { justify-content: flex-start; gap: 36px; width: max-content; animation: v3-marquee 40s linear infinite; }
  .v3-lr img.dup, .v3-lr img:nth-child(n+9) { display: block; }
}
@media (max-width: 759px) {
  .v3 .v2-hero { bottom: 104px; }
  .v3-logos { left: 16px; right: 16px; bottom: 14px; height: 90px; flex-direction: column; align-items: stretch; justify-content: center; gap: 14px; }
  .v3-lt { max-width: none; font-size: 14px; text-align: center; }
}
@keyframes v3-marquee { to { transform: translateX(calc(-50% - 18px)); } }

/* wall line: a lower third (broadcast caption), never over the feed */
.v3 .v2-lock { top: auto; bottom: max(28px, 6vh); }
.v3 .v2-lock::before { display: none; }
.v3 .v2-lock h3 { padding: 14px 22px 15px; border-radius: 10px; background: rgba(8, 9, 10, .86); box-shadow: 0 0 0 1px rgba(255, 255, 255, .1); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
  font-size: clamp(22px, 2.3vw, 36px); text-shadow: none; }
@media (max-width: 759px) { .v3 .v2-lock h3 { font-size: 22px; padding: 12px 16px; } }

/* channel change: a short zap on a picture (the feed between scenes, the console screen on a voice change) */
.v3-zap > video { animation: v3-zap .3s steps(1) both; }
.v3-zap::after { content: ""; position: absolute; inset: 0; z-index: 2; pointer-events: none; animation: v3-zap-lines .3s steps(1) both;
  background: repeating-linear-gradient(rgba(255, 244, 236, .22) 0 1px, transparent 1px 3px); }
@keyframes v3-zap {
  0% { transform: translateX(-10px); clip-path: inset(0 0 52% 0); filter: contrast(1.35) saturate(1.5); }
  18% { transform: translateX(7px); clip-path: inset(38% 0 18% 0); }
  36% { transform: translateX(-3px); clip-path: inset(0); filter: brightness(1.45); }
  56% { transform: translateX(2px); clip-path: inset(64% 0 0 0); filter: none; }
  74%, 100% { transform: none; clip-path: inset(0); filter: none; }
}
@keyframes v3-zap-lines { 0% { opacity: 1; } 56% { opacity: .5; } 74%, 100% { opacity: 0; } }

@media (prefers-reduced-motion: reduce) {
  .v3-lr { animation: none; }
  .v3-zap > video, .v3-zap::after { animation: none; }
}
