/* Motion · Max Headroom — character and broadcast scenes. */

/* Offset frame tunnel: deliberately low-poly and uneven. */
.mh-tunnel .mh-tun{
  position:absolute; left:var(--mhv-x); top:var(--mhv-y);
  border:1px solid rgba(102,214,208,.78);
  transform:translate(-50%,-50%);
  animation:mhx-tunnel 6.5s linear infinite;
}
.mh-tunnel .mh-tun1{width:17%;height:13%}
.mh-tunnel .mh-tun2{width:34%;height:27%;animation-delay:-1.3s;border-color:rgba(216,222,215,.62)}
.mh-tunnel .mh-tun3{width:52%;height:43%;animation-delay:-2.6s;border-color:rgba(200,77,145,.6)}
.mh-tunnel .mh-tun4{width:71%;height:61%;animation-delay:-3.9s}
.mh-tunnel .mh-tun5{width:94%;height:84%;animation-delay:-5.2s;border-color:rgba(229,207,88,.5)}
.mh-tunnel .mh-tun-core{position:absolute;left:var(--mhv-x);top:var(--mhv-y);width:3px;height:3px;background:var(--mh-white)}
@keyframes mhx-tunnel{0%{scale:.08;opacity:0}10%{opacity:.9}100%{scale:2.35;opacity:.15}}

/* A keyed, prosthetic-looking bust: warm hard light, black suit and Wayfarers. */
.mh-head .mh-head-glow{
  position:absolute; left:50%; top:78%; width:62%; height:48%; translate:-50% -50%;
  background:linear-gradient(90deg,#07090a,#181b20 48%,#08090b);
  clip-path:polygon(18% 100%,25% 42%,40% 25%,60% 25%,75% 42%,82% 100%);
  filter:drop-shadow(-1cqw 0 2cqw rgba(102,214,208,.12));
}
.mh-head .mh-head-glow::before{
  content:"";position:absolute;left:38%;top:24%;width:24%;height:38%;
  background:linear-gradient(90deg,#d7d5ca 0 44%,#17191d 45% 55%,#d7d5ca 56%);
  clip-path:polygon(0 0,50% 70%,100% 0,76% 100%,24% 100%);
}
.mh-head .mh-head-oval{
  position:absolute; left:50%; top:43%; width:30cqh; height:39cqh; translate:-50% -50%;
  border-radius:42% 44% 48% 50% / 34% 36% 60% 62%;
  clip-path:polygon(13% 5%,87% 5%,100% 34%,89% 82%,66% 100%,35% 100%,11% 82%,0 34%);
  background:
    linear-gradient(104deg,#e7b4a2 0 18%,#c47d70 31%,#8d4d51 51%,#322d39 73%,#080a0d 100%);
  box-shadow:-1cqh 0 0 rgba(102,214,208,.12),1cqh 0 0 rgba(200,77,145,.1);
  animation:mhx-head 2.4s steps(2) infinite;
}
.mh-head .mh-head-oval::before{
  content:"";position:absolute;left:18%;right:18%;top:-9%;height:27%;
  background:linear-gradient(100deg,#2a2020,#8a6654 46%,#332426);
  clip-path:polygon(0 100%,8% 30%,26% 55%,42% 0,58% 48%,76% 14%,100% 100%);
}
.mh-head .mh-head-oval::after{
  content:"";position:absolute;left:39%;top:42%;width:22%;height:26%;
  background:linear-gradient(90deg,rgba(50,15,24,.8),rgba(231,180,162,.42),rgba(20,10,16,.7));
  clip-path:polygon(42% 0,70% 0,100% 86%,52% 100%,0 84%);
}
.mh-head .mh-head-shades{
  position:absolute; left:50%; top:36%; width:24cqh; height:6.8cqh; translate:-50% -50%;
  border:1cqh solid #090a0b;border-width:.9cqh 1.1cqh;border-radius:18% 18% 35% 35%;
  background:linear-gradient(90deg,#050607 0 44%,#c7a989 44% 48%,#050607 48%);
  box-shadow:0 .7cqh 1.2cqh rgba(0,0,0,.55);
}
.mh-head .mh-head-shades::before,.mh-head .mh-head-shades::after{
  content:"";position:absolute;top:-.2cqh;width:42%;height:4.5cqh;background:linear-gradient(150deg,#15191d,#030303 65%);border-radius:9% 9% 31% 31%;
}
.mh-head .mh-head-shades::before{left:1%}.mh-head .mh-head-shades::after{right:1%}
.mh-head .mh-head-mouth{
  position:absolute;left:50%;top:56%;width:8cqh;height:1.2cqh;translate:-50%;
  background:#602532;border-bottom:.35cqh solid #d99a91;animation:mhx-mouth .44s steps(2) infinite;
}
.mh-head .mh-head-scan{position:absolute;inset:0;background:repeating-linear-gradient(0deg,transparent 0 3px,rgba(0,0,0,.28) 3px 4px)}
.mh-head .mh-head-scan::before,.mh-head .mh-head-scan::after{
  content:"";position:absolute;top:37%;width:2.8cqh;height:7.5cqh;
  background:#a96362;border-radius:55% 35% 45% 50%;
}
.mh-head .mh-head-scan::before{left:calc(50% - 16.2cqh)}
.mh-head .mh-head-scan::after{right:calc(50% - 16.2cqh);transform:scaleX(-1)}
@keyframes mhx-head{0%,88%,100%{transform:none}89%{transform:translateX(-1cqw)}92%{transform:translateX(.7cqw)}}
@keyframes mhx-mouth{to{height:2.2cqh}}

/* Network 23 control-room graphics: boxed feeds, Chyron bars and a stark bug. */
.mh-news .mh-news-snow{
  position:absolute;inset:0;opacity:.3;
  background:
    repeating-linear-gradient(90deg,transparent 0 4px,rgba(216,222,215,.1) 4px 5px),
    repeating-linear-gradient(0deg,transparent 0 5px,rgba(102,214,208,.08) 5px 6px);
  animation:mhx-jitter .28s steps(2) infinite;
}
.mh-news .mh-news-bar{
  position:absolute;left:-8%;width:116%;height:8%;
  background:linear-gradient(90deg,transparent 0 5%,var(--mh-cyan) 5% 26%,#080a0b 26% 29%,
    var(--mh-white) 29% 54%,#080a0b 54% 57%,var(--mh-pink) 57% 83%,transparent 83%);
  opacity:.68;animation:mhx-news 13s linear infinite;
}
.mh-news .mh-news-b1{top:18%}.mh-news .mh-news-b2{top:48%;height:11%;animation-direction:reverse}
.mh-news .mh-news-b3{top:76%;animation-duration:17s}
.mh-news .mh-news-bug{
  position:absolute;right:7%;top:8%;width:16cqh;height:9cqh;border:1px solid var(--mh-cyan);
  background:#030506;color:var(--mh-white);
}
.mh-news .mh-news-bug::after{
  content:"N23";position:absolute;inset:0;display:grid;place-items:center;
  font:900 4.2cqh/1 Arial,sans-serif;letter-spacing:-.12em;
}
.mh-news::before{
  content:"NETWORK 23  /  LIVE FEED  /  20 MINUTES INTO THE FUTURE";
  position:absolute;z-index:4;left:6%;bottom:8%;color:rgba(216,222,215,.7);
  font:700 1.8cqh/1.2 monospace;letter-spacing:.16em;
}
@keyframes mhx-news{to{transform:translateX(-12%)}}

/* Blipvert interruption: clipped monochrome advert frames and test blocks. */
.mh-blip .mh-blip-bars{
  position:absolute;inset:0;
  background:
    linear-gradient(90deg,#d8ded7 0 12%,#111 12% 23%,#c84d91 23% 35%,#050505 35% 53%,
      #66d6d0 53% 66%,#1b1b1b 66% 82%,#e5cf58 82% 91%,#050505 91%);
  animation:mhx-blip .8s steps(1) infinite;
}
.mh-blip .mh-blip-flash{position:absolute;inset:0;animation:mhx-white 3.4s steps(1) infinite}
.mh-blip::before{
  content:"BUY  •  WATCH  •  OBEY";position:absolute;z-index:2;left:50%;top:50%;translate:-50% -50%;
  color:#fff;background:#050505;padding:1.5cqh 3cqh;font:900 5cqh/1 Arial,sans-serif;letter-spacing:.14em;
}
@keyframes mhx-blip{
  0%,32%{filter:none;transform:none}33%,65%{filter:hue-rotate(120deg);transform:scaleX(-1)}
  66%,100%{filter:grayscale(1) contrast(1.7);transform:translateY(2cqh)}
}
@keyframes mhx-white{0%,95%,100%{background:transparent}96%{background:#fff}97%{background:#000}}

/* Chrome title card rather than a generic synthwave horizon. */
.mh-chrome .mh-chrome-floor{
  position:absolute;left:-20%;right:-20%;bottom:-24%;height:54%;
  background:
    linear-gradient(90deg,rgba(102,214,208,.34) 0 1px,transparent 1px),
    linear-gradient(rgba(200,77,145,.28) 0 1px,transparent 1px);
  background-size:7cqh 7cqh;transform:perspective(46cqh) rotateX(66deg);transform-origin:center top;
  animation:mhx-floor 6s linear infinite;mask-image:linear-gradient(#000,transparent 88%);
}
.mh-chrome .mh-chrome-shine::before{
  content:"MAX\A HEADROOM";white-space:pre;position:absolute;left:50%;top:44%;translate:-50% -50%;
  text-align:center;font:900 italic 13cqh/.72 Arial Black,Arial,sans-serif;letter-spacing:-.08em;
  color:#b8c0c1;
  background:linear-gradient(180deg,#fff 0 13%,#555d62 28%,#e5e7e4 45%,#262b30 52%,#aeb7b9 70%,#fff 83%,#525a5e 100%);
  -webkit-background-clip:text;background-clip:text;-webkit-text-fill-color:transparent;
  filter:drop-shadow(.7cqh .9cqh 0 #111) drop-shadow(-.3cqh -.2cqh 0 rgba(216,222,215,.65));
}
.mh-chrome .mh-chrome-neon{
  position:absolute;left:17%;right:17%;top:69%;height:1px;background:var(--mh-pink);
  box-shadow:0 0 4px rgba(200,77,145,.6);
}
