/* Clip both the picture and the mouse target to the calibrated CRT glass. */
.tv-real:not(.tv-zoom):is(a, [data-href]) {
  pointer-events: none;
}
.tv-real:not(.tv-zoom) > :is(.tvt-scr, .wscr) {
  pointer-events: auto;
}
.tv-real > :is(.tvt-scr, .wscr) .screen-signal {
  position: absolute;
  inset: 0;
  z-index: 2;
  opacity: .05;
  pointer-events: none;
  background:
    repeating-linear-gradient(0deg, transparent 0 3px, #bed8d8 4px 5px),
    linear-gradient(0deg, transparent 20%, #d1e4e8 49%, transparent 59%);
  background-size: 100% 5px, 100% 210%;
  mix-blend-mode: screen;
  animation: screen-breath var(--cycle) ease-in-out var(--offset) infinite;
  animation-play-state: paused;
}
.tv-real[data-screen-on] .screen-signal {
  animation-play-state: running;
}
.tv-real[data-signal="steady"] .screen-signal {
  opacity: .03;
  animation: none;
}
.tv-real[data-signal="drift"] .screen-signal {
  animation-name: signal-drift;
}
@keyframes screen-breath { 0%, 100% { opacity: .025; } 57% { opacity: .14; } }
@keyframes signal-drift {
  0% { opacity: .035; background-position: 0 0, 0 110%; }
  50% { opacity: .13; }
  100% { opacity: .035; background-position: 0 0, 0 -30%; }
}
.hy-paused .tv-real .screen-signal {
  animation-play-state: paused;
}
@media (prefers-reduced-motion: reduce) {
  .tv-real .screen-signal, .tv-real .tvt-fx::after { animation: none !important; }
}

/* Leave enough room for the six links on the Noblex glass. */
.tvt.tv-real.tv-nav .tv-menu {
  gap: 4px 10px !important;
  margin: 0 !important;
}
.tvt.tv-real.tv-nav .tv-menu a {
  min-height: 28px;
  font-size: 16px;
  padding: 0 4px !important;
}
.tvt .tv-cta .hy-btn::after { content: none; }

/* The project card and the three short guest actions share the existing screen grid. */
.hayat-preview-project { font: 400 15px/1.18 var(--home-font, monospace); }
.hayat-preview-project ul { padding: 0; list-style: none; }
.hayat-preview-project :is(li, p, h3, ul) { margin: 0 !important; padding: 0 !important; }
.hayat-preview-project h3 a { font: 600 18px/1.2 var(--home-font, monospace); }
.hayat-preview-project .item p { font: 400 14px/1.16 var(--home-font, monospace) !important; }
.tv-status .session { gap: 0 !important; line-height: 1.12; }
.tv-status .tv-meta, .tv-real[data-model="sony_tv511"] .tv-meta,
.tv-real[data-model="jvc_videosphere_3241"] .tv-meta,
.tv-real[data-model="pye_b18t"] .tv-meta {
  font-size: 10px;
  line-height: 1.05;
}
.tv-real[data-model="sony_tv511"] .tvt-in,
.tv-real[data-model="jvc_videosphere_3241"] .tvt-in,
.tv-real[data-model="pye_b18t"] .tvt-in {
  padding: 3px 5px !important;
  justify-content: center;
}
.tv-real[data-model="sony_tv511"] .tvt-in p,
.tv-real[data-model="pye_b18t"] .tvt-in p {
  margin: 0 !important;
  font: 600 15px/1.1 var(--home-font, monospace);
}

@media (min-width: 1100px) {
  .tvt.tv-status { width: 300px !important; }
  .tvt[data-model="jvc_videosphere_3241"] { width: 265px !important; }
}
.tv-real[data-signal="quiet"] .screen-signal { animation-name: screen-quiet; }
@keyframes screen-quiet {
  0%, 100% { opacity: .025; }
  60% { opacity: .07; }
}

/* Text and interference are painted into the Runway artwork. The source HTML
   remains available to assistive technology, with two native links on the glass. */
.tvt[data-screen-art="runway"] > .tvt-scr::before,
.tvt[data-screen-art="runway"] > .tvt-scr::after,
.tvt[data-screen-art="runway"] > .tvt-scr > .screen-signal,
.tvt[data-screen-art="runway"] > .tvt-scr > .tvt-fx {
  display: none;
}
.tvt[data-screen-art="runway"] > .tvt-scr > :is(.tvt-in, .tv-meta) {
  opacity: 0;
  pointer-events: none;
}
.crt-screen-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: fill;
  pointer-events: none;
  visibility: hidden;
}
.crt-screen-video[data-playing] {
  visibility: visible;
}
@media (prefers-reduced-motion: reduce) {
  .crt-screen-video {
    display: none;
  }
}
.tvt.tv-baked-screen > .tvt-scr > .tv-cta {
  position: absolute;
  inset: 0;
  z-index: 5;
  display: block;
  margin: 0 !important;
  pointer-events: none;
}
.tvt.tv-baked-screen > .tvt-scr > .tv-cta > a.hy-btn {
  position: absolute;
  inset: 0;
  display: block;
  padding: 0;
  border: 0;
  color: transparent !important;
  pointer-events: auto;
}
.tvt.tv-baked-screen > .tvt-scr > .tv-cta > a.hy-btn:hover {
  background: rgb(255 250 226 / 18%);
}
.tvt.tv-baked-screen > .tvt-scr > .tv-cta > a.hy-btn:focus-visible {
  outline: none;
  background: rgb(255 215 124 / 52%);
}

/* The Runway cabinets carry pale phosphor and reflections in their still image. */
:root .tvt.tv-real[data-crt-signal][data-place][data-model] > .tvt-scr::before {
  background: radial-gradient(ellipse at 50% 47%, transparent 48%, rgb(30 41 35 / 23%)) !important;
  mix-blend-mode: multiply !important;
}
.tvt.tv-real[data-crt-signal] > .tvt-scr > .tvt-fx {
  opacity: .16;
  filter: grayscale(1) contrast(2);
}
:root .tvt.tv-real[data-crt-signal][data-place][data-model] :is(.tvt-in, .tv-meta),
:root .tvt.tv-real[data-crt-signal][data-place][data-model] :is(.tvt-in, .tv-meta) :is(.tt, .k, .tv-h1, .tv-h2, .tv-p, .tv-sec, .tv-lead, h1, h2, h3, p, a, button, span) {
  color: #162521 !important;
  text-shadow: none !important;
}
.tvt.tv-real[data-crt-signal] :is(.tvt-in, .tv-meta) a:is(:hover, :focus-visible) {
  text-decoration: underline;
}
.tvt.tv-real[data-crt-signal] :is(.tvt-in, .tv-meta) :is(.hy-btn, .tv-action, .tv-more) {
  background-color: rgb(239 247 237 / 45%);
}
.crt-signal-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: fill;
  z-index: 0;
  opacity: var(--signal-strength);
  mix-blend-mode: soft-light;
  pointer-events: none;
}
@media (prefers-reduced-motion: reduce) {
  .crt-signal-video { display: none; }
}

.tv-warmup {
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
  background: linear-gradient(transparent 36%, #d2fcf23b 49%, transparent 65%) 0 0 / 100% 210%;
  mix-blend-mode: screen;
  transform-origin: center;
  animation: tv-warmup-flare .48s ease-out both, tv-warmup-scan 3.8s .48s linear infinite;
}
.tv-hero:has(.crt-screen-video[data-playing]) .tv-warmup,
:is(.tv-nav, .tv-status)[data-screen-on] .tv-warmup {
  opacity: 0;
  visibility: hidden;
}
@keyframes tv-warmup-flare {
  from { opacity: .8; transform: scaleY(.07); }
  to { opacity: .55; transform: scaleY(1); }
}
@keyframes tv-warmup-scan {
  from { background-position: 0 130%; }
  to { background-position: 0 -40%; }
}
@media (prefers-reduced-motion: reduce) {
  .preview-wall .tvt .tv-warmup {
    opacity: .30;
    visibility: visible;
    animation: tv-warmup-scan 9s linear infinite !important;
  }
}

/* Match the first four television cabinets before their runtime data is loaded. */
.preview-wall .tvt[data-prepared-cabinet][data-model="noblex_micro_14"] {
  aspect-ratio: 757/801;
  --ar: 0.9451;
}
.preview-wall .tvt[data-prepared-cabinet][data-model="noblex_micro_14"] > .tvt-scr {
  left: 8.71863%;
  top: 28.71411%;
  width: 82.03434%;
  height: 60.42447%;
  border-radius: 0;
  clip-path: polygon(97.91% 4.96%, 98.71% 6.61%, 99.36% 10.95%, 99.84% 22.52%, 100.00% 62.81%, 99.36% 80.37%, 98.55% 90.91%, 97.58% 93.80%, 96.30% 95.66%, 93.88% 97.11%, 79.39% 98.76%, 60.06% 99.79%, 44.12% 100.00%, 25.12% 99.17%, 8.21% 97.52%, 5.64% 96.90%, 3.70% 95.45%, 2.74% 94.01%, 1.61% 90.29%, 0.48% 72.31%, 0.00% 48.35%, 0.16% 28.72%, 1.13% 8.68%, 1.93% 5.99%, 3.86% 3.31%, 7.09% 2.07%, 17.23% 1.03%, 41.55% 0.00%, 59.58% 0.00%, 84.22% 1.03%, 93.08% 1.86%, 95.33% 2.48%, 96.62% 3.31%);
}
.preview-wall .tvt[data-prepared-cabinet][data-model="elektronika_vl100"] {
  aspect-ratio: 715/838;
  --ar: 0.8532;
}
.preview-wall .tvt[data-prepared-cabinet][data-model="elektronika_vl100"] > .tvt-scr {
  left: 8.67133%;
  top: 26.37232%;
  width: 79.02098000000001%;
  height: 55.48926%;
  border-radius: 0;
  clip-path: polygon(95.58% 4.52%, 96.46% 6.88%, 98.58% 24.30%, 99.65% 39.14%, 100.00% 55.91%, 98.94% 83.01%, 97.88% 92.90%, 96.64% 95.27%, 94.87% 96.34%, 91.33% 97.20%, 82.48% 98.28%, 63.36% 99.78%, 54.16% 100.00%, 17.52% 99.57%, 6.73% 98.71%, 5.31% 98.28%, 3.89% 96.99%, 2.30% 87.74%, 1.42% 77.85%, 0.00% 51.83%, 0.18% 37.63%, 1.59% 12.90%, 2.65% 6.67%, 3.89% 4.95%, 6.55% 3.87%, 14.69% 2.58%, 45.13% 0.00%, 61.59% 0.00%, 80.88% 1.08%, 90.97% 2.15%, 93.27% 2.80%);
}
.preview-wall .tvt[data-prepared-cabinet][data-model="rekord_v312"] {
  aspect-ratio: 1920/1440;
  --ar: 1.3333;
}
.preview-wall .tvt[data-prepared-cabinet][data-model="rekord_v312"] > .tvt-scr {
  left: 11.97917%;
  top: 15.76389%;
  width: 60.26041000000001%;
  height: 64.86111%;
  border-radius: 0;
  clip-path: polygon(4.58% 3.75%, 12.01% 1.61%, 26.02% 0.11%, 43.22% 0.00%, 62.92% 0.32%, 80.29% 1.39%, 91.36% 3.21%, 95.42% 5.67%, 97.41% 9.96%, 98.62% 17.99%, 99.65% 36.72%, 100.00% 56.21%, 99.74% 74.95%, 98.96% 87.37%, 97.58% 93.58%, 95.33% 96.79%, 89.80% 98.39%, 76.40% 99.36%, 61.37% 100.00%, 43.82% 100.00%, 27.31% 99.36%, 13.83% 98.29%, 5.96% 96.47%, 3.54% 94.22%, 1.82% 89.19%, 0.61% 79.23%, 0.00% 65.63%, 0.00% 46.36%, 0.35% 28.27%, 1.04% 16.27%, 1.99% 8.78%);
}
.preview-wall .tvt[data-prepared-cabinet][data-model="sony_kv1310"] {
  aspect-ratio: 1920/1440;
  --ar: 1.3333;
}
.preview-wall .tvt[data-prepared-cabinet][data-model="sony_kv1310"] > .tvt-scr {
  left: 19.42708%;
  top: 22.70833%;
  width: 49.58333999999999%;
  height: 47.01388999999999%;
  border-radius: 0;
  clip-path: polygon(3.89% 5.02%, 10.82% 2.81%, 27.73% 1.18%, 46.32% 0.00%, 67.12% 0.74%, 84.56% 2.07%, 93.80% 3.69%, 97.79% 6.35%, 99.26% 13.29%, 99.89% 30.43%, 100.00% 53.77%, 99.58% 73.56%, 98.84% 85.67%, 97.58% 91.88%, 95.48% 94.83%, 90.97% 96.90%, 81.41% 98.52%, 66.39% 99.70%, 47.16% 100.00%, 27.52% 99.56%, 12.50% 97.93%, 4.83% 95.86%, 2.00% 92.76%, 0.74% 87.30%, 0.21% 76.96%, 0.00% 58.35%, 0.11% 34.71%, 0.63% 16.25%, 1.26% 8.86%);
}
