@font-face { font-family: "Jost"; font-weight: 400; font-style: normal; font-display: swap; src: url("/assets/fonts/jost-latin-400-normal.woff2") format("woff2"); }
@font-face { font-family: "Jost"; font-weight: 500; font-style: normal; font-display: swap; src: url("/assets/fonts/jost-latin-500-normal.woff2") format("woff2"); }
@font-face { font-family: "Jost"; font-weight: 600; font-style: normal; font-display: swap; src: url("/assets/fonts/jost-latin-600-normal.woff2") format("woff2"); }

:root {
  --font: "futura-pt", "Futura PT", "Futura", "Jost", "Century Gothic", sans-serif;
  --ink: #111;
  --muted: #8a8a8a;
  --line: #ececec;
  --bg: #fff;
  --pad: clamp(14px, 2.4vw, 32px);
  --gap: 2px;
  --header-h: 64px;
}

* { box-sizing: border-box; }
/* retro 1-bit Mac-style arrow cursor everywhere (hotspot = arrow tip) */
html, body, a, button, .tile, .intro, .lb, .lb-stage, .yt-play, label, select {
  cursor: url("/assets/cursor.svg") 0 0, auto;
}
input, textarea { cursor: text; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font);
  font-size: 15px;
  line-height: 1.55;
  letter-spacing: 0.02em;
}
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  height: var(--header-h);
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 var(--pad);
  /* Apple-style frosted glass */
  background: rgba(255,255,255,.55);
  -webkit-backdrop-filter: saturate(180%) blur(22px);
  backdrop-filter: saturate(180%) blur(22px);
  border-bottom: 1px solid rgba(0,0,0,.07);
}
.logo { display: block; line-height: 0; }
.logo img { height: 34px; width: auto; }
.nav { display: flex; gap: clamp(18px, 2.6vw, 34px); }
.nav a {
  font-size: 13px; font-weight: 500;
  text-transform: uppercase; letter-spacing: 0.12em;
  color: var(--ink); transition: color .2s;
}
.nav a:hover, .nav a[aria-current="page"] { color: var(--muted); }
.menu-btn { display: none; background: none; border: 0; padding: 8px; margin-right: -8px; }
.menu-btn span { display: block; width: 22px; height: 1.5px; background: var(--ink); margin: 5px 0; transition: transform .25s, opacity .25s; }

@media (max-width: 680px) {
  :root { --header-h: 50px; }
  .menu-btn { display: block; }
  .logo img { height: 26px; }
  .nav {
    position: fixed; top: calc(var(--tv-t) + var(--header-h)); left: var(--tv-l); right: var(--tv-r);
    flex-direction: column; gap: 0;
    background: rgba(255,255,255,.72);
    -webkit-backdrop-filter: saturate(180%) blur(22px);
    backdrop-filter: saturate(180%) blur(22px);
    border-bottom: 1px solid rgba(0,0,0,.07);
    transform: translateY(-120%); transition: transform .3s ease;
    z-index: -1;
  }
  .nav a { padding: 16px var(--pad); font-size: 14px; border-top: 1px solid rgba(0,0,0,.06); }
  body.menu-open .nav { transform: none; }
  body.menu-open .menu-btn span:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
  body.menu-open .menu-btn span:nth-child(2) { opacity: 0; }
  body.menu-open .menu-btn span:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }
}

main { padding: var(--pad); min-height: calc(100% - var(--header-h) - 80px); }

/* ---------- Vintage TV frame ---------- */
:root {
  --tv-t: 26px; --tv-l: 26px; --tv-r: 132px; --tv-b: 52px;
  --tv-rad: 38px / 30px;
  --case: #0c0c0c;
}
@media (max-width: 1100px) { :root { --tv-r: 26px; } }
@media (max-width: 680px)  { :root { --tv-t: 8px; --tv-l: 8px; --tv-r: 8px; --tv-b: 28px; --tv-rad: 20px / 16px; } }

html, body { height: 100%; overflow: hidden; background: var(--case); }
.screen {
  position: fixed; top: var(--tv-t); left: var(--tv-l); right: var(--tv-r); bottom: var(--tv-b);
  border-radius: var(--tv-rad);
  overflow-x: hidden; overflow-y: auto; overscroll-behavior: contain;
  background: var(--bg); z-index: 1;
}
.screen.power-on { animation: crt-on .75s cubic-bezier(.2,.7,.3,1) both; }
@keyframes crt-on {
  0%   { transform: scale(0, .004); filter: brightness(5); }
  35%  { transform: scale(1, .004); filter: brightness(4); }
  70%  { transform: scale(1, 1.03); filter: brightness(1.5) contrast(1.2); }
  100% { transform: none; filter: none; }
}
/* curved glass: vignette, reflection, faint scanlines */
.tv-glass {
  position: fixed; top: var(--tv-t); left: var(--tv-l); right: var(--tv-r); bottom: var(--tv-b);
  border-radius: var(--tv-rad); pointer-events: none; z-index: 140;
  background:
    linear-gradient(140deg, rgba(255,255,255,.10) 0%, rgba(255,255,255,0) 28%),
    radial-gradient(ellipse at 50% 50%, rgba(0,0,0,0) 60%, rgba(0,0,0,.22) 100%),
    repeating-linear-gradient(0deg, rgba(0,0,0,.035) 0 1px, transparent 1px 3px);
  box-shadow: inset 0 0 50px rgba(0,0,0,.30), inset 0 0 6px rgba(0,0,0,.6);
}
.tv-case { position: fixed; inset: 0; pointer-events: none; z-index: 150; }
.tv-hole {
  position: fixed; top: var(--tv-t); left: var(--tv-l); right: var(--tv-r); bottom: var(--tv-b);
  border-radius: var(--tv-rad);
  box-shadow:
    0 0 0 3px #000,
    0 0 0 10px #151515,
    0 0 0 11px #3a3a3a,
    0 0 0 200vmax var(--case);
}
.tv-side {
  position: fixed; top: 0; right: 0; bottom: 0; width: var(--tv-r);
  display: flex; flex-direction: column; align-items: center; gap: 26px; padding: 70px 0 90px;
  background: linear-gradient(90deg, rgba(0,0,0,.4), rgba(255,255,255,.045) 45%, rgba(0,0,0,.35));
}
.knob {
  width: 62px; height: 62px; border-radius: 50%; flex: none;
  background:
    radial-gradient(circle at 38% 32%, rgba(255,255,255,.35), rgba(255,255,255,0) 45%),
    repeating-conic-gradient(#2a2a2a 0 6deg, #3d3d3d 6deg 12deg);
  box-shadow: 0 4px 10px rgba(0,0,0,.6), inset 0 0 0 4px #1a1a1a, inset 0 0 0 5px #555;
  position: relative;
  pointer-events: auto; cursor: grab; touch-action: none;
  transform: rotate(var(--rot, 0deg));
}
.knob:active { cursor: grabbing; }
.knob::after { content: ""; position: absolute; left: 50%; top: 7px; width: 3px; height: 14px; margin-left: -1.5px; background: #d9d2c6; border-radius: 2px; }
.knob.small { width: 46px; height: 46px; --rot: -40deg; }
.knob.small::after { top: 5px; height: 10px; }
.grille {
  width: 72px; flex: 1; max-height: 300px; margin-top: 8px; border-radius: 8px;
  background: repeating-linear-gradient(0deg, #050505 0 3px, #2a2a2a 3px 6px);
  box-shadow: inset 0 2px 6px rgba(0,0,0,.8), 0 1px 0 rgba(255,255,255,.06);
}
.tv-bottom {
  position: fixed; left: 0; right: var(--tv-r); bottom: 0; height: var(--tv-b);
  display: flex; align-items: center; justify-content: center; gap: 14px;
}
.tv-brand { font-size: 10px; letter-spacing: .42em; text-transform: lowercase; color: #9a9a9a; opacity: .8; }
.tv-led { width: 6px; height: 6px; border-radius: 50%; background: #ff3b2f; box-shadow: 0 0 6px 2px rgba(255,59,47,.55); transition: background .08s, box-shadow .08s; }
.tv-led.off { background: #3b0e0b; box-shadow: none; }
@media (max-width: 1100px) { .tv-side { display: none; } }
@media (max-width: 680px) { .tv-brand { font-size: 8px; } .tv-hole { box-shadow: 0 0 0 2px #000, 0 0 0 5px #151515, 0 0 0 200vmax var(--case); } }

/* Works: no vintage veil over the images (the frame stays) */
body[data-page="works"]:not(.intro-on) .tv-glass { background: none; box-shadow: inset 0 0 0 1px rgba(0,0,0,.35); }

/* ---------- Intro: end of broadcast -> snow -> name -> TV turns on ---------- */
.intro {
  position: fixed; top: var(--tv-t); left: var(--tv-l); right: var(--tv-r); bottom: var(--tv-b);
  border-radius: var(--tv-rad); overflow: hidden; z-index: 100; background: #000;
}
.intro > * { position: absolute; inset: 0; opacity: 0; }
.intro.s-bars .tv-bars, .intro.s-noise .tv-noise { opacity: 1; }
.tv-bars { background: #808080; }
.tv-bars img { width: 100%; height: 100%; object-fit: cover; display: block; }
.intro.s-bars .tv-bars { animation: bars-wobble 1.9s steps(1) both; }
@keyframes bars-wobble {
  0%, 52%, 60%, 100% { transform: none; filter: none; }
  55% { transform: translate(6px, -3%) skewX(-3deg); filter: contrast(1.4); }
  58% { transform: translate(-4px, 2%); }
}
.tv-noise { width: 100%; height: 100%; image-rendering: pixelated; }
/* channel zapping clips */
.tv-channels { background: #000; }
.tv-channels video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; }
.tv-channels video.on { opacity: 1; animation: tune-in .35s steps(3) both; }
.intro.s-chan .tv-channels { opacity: 1; }
@keyframes tune-in {
  0%   { filter: brightness(2.2) contrast(1.6) saturate(0); transform: translateY(-6%) skewX(-4deg); }
  40%  { filter: brightness(1.3) saturate(1.8) hue-rotate(40deg); transform: translateX(10px); }
  100% { filter: none; transform: none; }
}

/* ---------- Justified gallery ---------- */
.gallery { display: flex; flex-wrap: wrap; gap: var(--gap); }
.tile {
  position: relative; overflow: hidden;
  background: #f3f3f3; flex: none;
}
.tile img {
  width: 100%; height: 100%; object-fit: cover;
  opacity: 0; transition: opacity .5s ease;
}
.tile img.loaded { opacity: 1; }
.tile .cap {
  position: absolute; inset: auto 0 0 0;
  padding: 28px 12px 10px;
  font-size: 12px; font-weight: 500; letter-spacing: .08em; text-transform: uppercase;
  color: #fff; line-height: 1.35;
  background: linear-gradient(transparent, rgba(0,0,0,.6));
  opacity: 0; transition: opacity .3s;
}
/* ----- hover: "broken TV" glitch ----- */
.tile .gl, .tile .scan { position: absolute; inset: 0; pointer-events: none; opacity: 0; }
.tile .gl { background-size: cover; background-position: center; mix-blend-mode: screen; }
.tile .gl-r { filter: grayscale(1) sepia(1) saturate(14) hue-rotate(-50deg) brightness(.85); }
.tile .gl-c { filter: grayscale(1) sepia(1) saturate(14) hue-rotate(150deg) brightness(.85); }
.tile .scan {
  background:
    linear-gradient(transparent 0 46%, rgba(255,255,255,.08) 48%, rgba(255,255,255,.03) 52%, transparent 54% 100%),
    repeating-linear-gradient(0deg, rgba(0,0,0,.1) 0 1px, transparent 1px 3px);
  background-size: 100% 260%, 100% 100%;
}
.tile .cap { z-index: 2; }
@media (hover: hover) {
  .tile:hover .cap { opacity: 1; }
  /* 1: slices sliding sideways */
  .tile.gv1:hover img { animation: tv-jitter calc(var(--gd) * 1.2) steps(1) infinite; }
  .tile.gv1:hover .gl { opacity: .55; }
  .tile.gv1:hover .gl-r { animation: tv-slice-a var(--gd) steps(1) infinite; }
  .tile.gv1:hover .gl-c { animation: tv-slice-b calc(var(--gd) * 1.25) steps(1) infinite; }
  .tile.gv1:hover .scan { opacity: 1; animation: tv-roll 1.4s linear infinite, tv-flick .11s steps(2) infinite; }
  /* 2: red / cyan split */
  .tile.gv2:hover .gl { opacity: .4; }
  .tile.gv2:hover .gl-r { animation: rgb-r var(--gd) steps(2) infinite; }
  .tile.gv2:hover .gl-c { animation: rgb-c calc(var(--gd) * .8) steps(2) infinite; }
  .tile.gv2:hover img { animation: tv-flick .09s steps(2) infinite; }
  /* 3: picture jumps vertically */
  .tile.gv3:hover img { animation: v-jump var(--gd) steps(1) infinite; }
  .tile.gv3:hover .scan { opacity: 1; animation: tv-roll .7s linear infinite; }
  /* 4: losing colour and flickering */
  .tile.gv4:hover img { animation: fade-signal calc(var(--gd) * .9) steps(1) infinite; }
  .tile.gv4:hover .scan { opacity: 1; animation: tv-flick .07s steps(2) infinite; }
  /* 5: wavy horizontal distortion */
  .tile.gv5:hover img { animation: h-wave calc(var(--gd) * .7) steps(4) infinite; }
  .tile.gv5:hover .gl-c { opacity: .35; animation: tv-slice-b var(--gd) steps(1) infinite; }
}
@media (prefers-reduced-motion: reduce) {
  .tile:hover img, .tile:hover .gl, .tile:hover .scan { animation: none !important; }
  .tile:hover .gl { opacity: 0; }
}
@keyframes tv-jitter {
  0%   { transform: none; filter: none; }
  10%  { transform: translate(-3.1px, 0) skewX(-4deg); filter: contrast(1.3) saturate(1.4); }
  14%  { transform: none; filter: none; }
  42%  { transform: translate(2.2px, 0.9px); filter: brightness(1.25); }
  46%  { transform: none; filter: none; }
  70%  { transform: translate(-1.8px, -1.4px) skewX(3deg); filter: contrast(1.5) hue-rotate(-12deg); }
  74%  { transform: none; filter: none; }
}
@keyframes tv-slice-a {
  0%   { clip-path: inset(8% 0 80% 0);  transform: translate(-7.7px, 0); }
  12%  { clip-path: inset(46% 0 38% 0); transform: translate(9.9px, 0); }
  24%  { clip-path: inset(100% 0 0 0); }
  40%  { clip-path: inset(70% 0 18% 0); transform: translate(-11.7px, 0); }
  52%  { clip-path: inset(100% 0 0 0); }
  68%  { clip-path: inset(22% 0 66% 0); transform: translate(5.9px, 0); }
  76%  { clip-path: inset(100% 0 0 0); }
  88%  { clip-path: inset(84% 0 4% 0);  transform: translate(-5px, 0); }
}
@keyframes tv-slice-b {
  0%   { clip-path: inset(60% 0 28% 0); transform: translate(6.8px, 0); }
  14%  { clip-path: inset(100% 0 0 0); }
  30%  { clip-path: inset(14% 0 74% 0); transform: translate(-9.9px, 0); }
  44%  { clip-path: inset(34% 0 52% 0); transform: translate(8.6px, 0); }
  56%  { clip-path: inset(100% 0 0 0); }
  78%  { clip-path: inset(76% 0 10% 0); transform: translate(-7.7px, 0); }
  90%  { clip-path: inset(100% 0 0 0); }
}
@keyframes tv-roll { from { background-position: 0 120%, 0 0; } to { background-position: 0 -120%, 0 0; } }
@keyframes tv-flick { 0% { opacity: .88; } 100% { opacity: 1; } }

/* ---------- Lightbox (fills the window, whole image always visible) ---------- */
.lb { position: fixed; top: var(--tv-t); left: var(--tv-l); right: var(--tv-r); bottom: var(--tv-b); border-radius: var(--tv-rad); overflow: hidden; z-index: 90; background: #fff; display: none; }
.lb.open { display: block; }
.lb-stage { position: absolute; inset: 44px 8px 46px; }
.lb-stage img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; }
.lb-cap {
  position: absolute; left: 0; right: 0; bottom: 0; height: 46px;
  display: flex; flex-direction: column; justify-content: center; align-items: center;
  padding: 0 20px; font-size: 11px; letter-spacing: .1em; text-transform: uppercase;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.lb-cap small { color: var(--muted); margin-top: 2px; }
.lb button {
  position: absolute; z-index: 2; background: none; border: 0;
  font-family: var(--font); color: var(--ink); padding: 12px 14px;
}
.lb-close { top: 2px; right: 6px; font-size: 12px; letter-spacing: .12em; }
.lb-prev, .lb-next { top: 50%; transform: translateY(-50%); font-size: 26px; line-height: 1; background: rgba(255,255,255,.7) !important; }
.lb-prev { left: 0; } .lb-next { right: 0; }
@media (max-width: 680px) {
  .lb-stage { inset: 40px 0 56px; }
  .lb-cap { height: 56px; white-space: normal; text-align: center; font-size: 10px; line-height: 1.35; }
  .lb-prev, .lb-next { display: none; }
}

/* ---------- Video page ---------- */
.videos { max-width: 1200px; margin: 0 auto; display: grid; gap: clamp(36px, 6vw, 72px); padding: 12px 0 40px; }
.vid-frame { position: relative; display: block; width: 100%; padding: 0; border: 0; aspect-ratio: 16 / 9; background: #000; overflow: hidden; }
.vid-frame:hover img, .vid-frame:hover video { filter: brightness(.85); }
.vid-frame video, .vid-frame iframe, .vid-frame img { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; object-fit: cover; }
.vid-frame video { object-fit: contain; }
.yt-play {
  position: absolute; inset: 0; border: 0; background: transparent; pointer-events: none;
  display: grid; place-items: center;
}
.yt-play::after {
  content: ""; width: 72px; height: 72px; border-radius: 50%;
  background: rgba(255,255,255,.92) url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'><path d='M9 7l8 5-8 5z' fill='%23111'/></svg>") center/34px no-repeat;
  transition: transform .2s;
}
.yt-play:hover::after { transform: scale(1.08); }
.vid-meta { margin-top: 14px; text-align: center; }
.vid-meta h2 { margin: 0; font-size: 13px; font-weight: 500; text-transform: uppercase; letter-spacing: .12em; }
.vid-meta p { margin: 4px 0 0; color: var(--muted); font-size: 14px; }

/* ---------- Text pages ---------- */
.page { max-width: 980px; margin: clamp(10px, 5vw, 60px) auto; }
.about { max-width: 680px; margin: 0 auto; text-align: center; }
.about > img { width: min(360px, 80vw); height: auto; margin: 0 auto 34px; }
.page h1 { margin: 0; font-size: clamp(22px, 3vw, 30px); font-weight: 500; letter-spacing: .04em; }
.role { margin: 2px 0 28px; color: var(--muted); text-transform: uppercase; letter-spacing: .12em; font-size: 12px; }
.lang { font-size: 11px; letter-spacing: .16em; color: var(--muted); margin: 22px 0 6px; }
.page p { margin: 0 0 10px; white-space: pre-line; }
.contact-page { max-width: 820px; margin: 0 auto; text-align: center; }
.c-sec { margin: 0 0 clamp(40px, 6vw, 64px); }
.c-sec h2 { margin: 0 0 18px; font-size: clamp(26px, 3.2vw, 34px); font-weight: 500; letter-spacing: .01em; }
.c-sec p { margin: 0 0 14px; }
.c-list, .c-indent { padding: 0; }
.c-row { display: flex; flex-direction: column; align-items: center; gap: 2px; margin-bottom: 16px; }
.c-label { color: var(--muted); font-size: 11px; letter-spacing: .16em; text-transform: uppercase; }
.c-row a { border-bottom: 1px solid transparent; transition: border-color .2s; }
.c-row a:hover { border-color: currentColor; }
ul.c-indent { list-style: none; margin: 0 0 14px; }
ul.c-indent li { margin-bottom: 6px; }
.c-map { margin-top: 22px; aspect-ratio: 16 / 6; min-height: 240px; background: #eee; overflow: hidden; }
.c-map iframe { width: 100%; height: 100%; border: 0; filter: grayscale(1) contrast(1.05); }
.label { font-size: 11px; letter-spacing: .16em; color: var(--muted); text-transform: uppercase; margin: 0 0 6px; }
.big-link { font-size: clamp(18px, 2.4vw, 24px); border-bottom: 1px solid currentColor; }
@media (max-width: 680px) {
}

/* ---------- Footer ---------- */
.site-footer {
  padding: 26px var(--pad) 32px;
  font-size: 11px; letter-spacing: .14em; text-transform: uppercase; color: var(--muted);
  display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap;
}
.site-footer a:hover { color: var(--ink); }

.empty { color: var(--muted); text-align: center; padding: 60px 0; }

/* ---------- Signal interference (while a knob is turned) ---------- */
.tv-static {
  position: fixed; top: var(--tv-t); left: var(--tv-l); right: var(--tv-r); bottom: var(--tv-b);
  width: calc(100% - var(--tv-l) - var(--tv-r)); height: calc(100% - var(--tv-t) - var(--tv-b));
  border-radius: var(--tv-rad); pointer-events: none; z-index: 130;
  image-rendering: pixelated; mix-blend-mode: screen; opacity: 0; transition: opacity .25s;
}
body.interf .tv-static { opacity: var(--noise, .5); transition: none; }
body.interf .screen {
  filter: contrast(calc(1 + var(--amt, .5) * .8)) saturate(calc(1 + var(--amt, .5) * 2)) hue-rotate(var(--hue, 0deg)) blur(calc(var(--amt, .5) * .6px));
  animation: interf-jitter .1s steps(2) infinite;
}
body.vhold .screen { transform: translateY(var(--roll, 0px)); }
body.vhold .tv-glass { background-image:
    linear-gradient(transparent calc(var(--band, 50%) - 3%), rgba(0,0,0,.85) var(--band, 50%), transparent calc(var(--band, 50%) + 3%)),
    radial-gradient(ellipse at 50% 50%, rgba(0,0,0,0) 60%, rgba(0,0,0,.22) 100%); }
@keyframes interf-jitter {
  0%   { translate: calc(var(--amt, .5) * -10px) 0; }
  50%  { translate: calc(var(--amt, .5) * 8px) calc(var(--amt, .5) * 2px); }
  100% { translate: 0 0; }
}

/* ---------- Video player inside the TV screen ---------- */
.vlb {
  position: fixed; top: var(--tv-t); left: var(--tv-l); right: var(--tv-r); bottom: var(--tv-b);
  border-radius: var(--tv-rad); overflow: hidden; z-index: 95; background: #000; display: none;
}
.vlb.open { display: block; animation: crt-on .5s cubic-bezier(.2,.7,.3,1) both; }
.vlb-stage { position: absolute; inset: 0 0 48px; }
.vlb-stage video, .vlb-stage iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; object-fit: contain; background: #000; }
.vlb-cap {
  position: absolute; left: 0; right: 0; bottom: 0; height: 48px;
  display: flex; flex-direction: column; justify-content: center; align-items: center;
  color: #fff; font-size: 11px; letter-spacing: .12em; text-transform: uppercase; text-align: center; padding: 0 16px;
}
.vlb-cap small { color: #999; text-transform: none; letter-spacing: .02em; margin-top: 2px; }
.vlb-close {
  position: absolute; top: 10px; right: 14px; z-index: 2; padding: 10px 12px;
  background: rgba(0,0,0,.45); border: 0; border-radius: 4px; color: #fff;
  font-family: var(--font); font-size: 12px; letter-spacing: .12em;
}

@keyframes rgb-r { 0% { transform: translate(-3.1px, 0); } 50% { transform: translate(-1.4px, 0.5px); } 100% { transform: translate(-4px, -0.5px); } }
@keyframes rgb-c { 0% { transform: translate(1.4px, 0); } 50% { transform: translate(0.8px, -0.2px); } 100% { transform: translate(1.8px, 0.2px); } }
@keyframes v-jump {
  0%, 30%, 62%, 100% { transform: none; }
  12% { transform: translateY(-4%); } 16% { transform: translateY(2%); }
  45% { transform: translateY(3%) skewX(1deg); } 50% { transform: translateY(-1%); }
  80% { transform: translateY(-6%); } 84% { transform: none; }
}
@keyframes fade-signal {
  0% { filter: grayscale(.6) contrast(1.2) brightness(1.1); }
  20% { filter: none; }
  45% { filter: grayscale(.35) blur(.5px) brightness(.9); }
  60% { filter: saturate(1.4) hue-rotate(-10deg); }
  80% { filter: grayscale(.5) brightness(1.15); }
  100% { filter: none; }
}
@keyframes h-wave {
  0% { transform: skewX(0) translateX(0); } 25% { transform: skewX(6deg) translateX(-2.7px); }
  50% { transform: skewX(-4deg) translateX(2.2px); } 75% { transform: skewX(3deg) translateX(-0.9px); } 100% { transform: none; }
}

/* ---------- Knob disturbance types ---------- */
body.interf[data-mode="ghost"] .screen { filter: drop-shadow(16px 0 0 rgba(255,0,70,.45)) drop-shadow(-16px 0 0 rgba(0,220,255,.45)) contrast(1.2); }
body.interf[data-mode="colors"] .screen { animation: interf-jitter .1s steps(2) infinite, color-roll .6s linear infinite; }
@keyframes color-roll { from { filter: hue-rotate(0deg) saturate(2.4); } to { filter: hue-rotate(360deg) saturate(2.4); } }
body.interf[data-mode="tear"] .tv-static, body.interf[data-mode="bars"] .tv-static { mix-blend-mode: normal; }
body.vhold .screen { transform: translateY(var(--roll, 0px)) skewY(var(--skew, 0deg)); }

/* ---------- About: photo slightly off-air now and then ---------- */
.photo-glitch { position: relative; width: min(360px, 80vw); margin: 0 auto 34px; overflow: hidden; }
.photo-glitch img { display: block; width: 100%; height: auto; margin: 0; }
.photo-glitch .pg { position: absolute; inset: 0; background-size: cover; background-position: center; opacity: 0; mix-blend-mode: screen; pointer-events: none; }
.photo-glitch .pg-r { filter: grayscale(1) sepia(1) saturate(14) hue-rotate(-50deg) brightness(.8); }
.photo-glitch .pg-c { filter: grayscale(1) sepia(1) saturate(14) hue-rotate(150deg) brightness(.8); }
.photo-glitch.g1 .pg { opacity: .7; }
.photo-glitch.g1 .pg-r { animation: rgb-r .35s steps(2) 1; }
.photo-glitch.g1 .pg-c { animation: rgb-c .35s steps(2) 1; }
.photo-glitch.g2 img { animation: photo-slip .4s steps(3) 1; }
.photo-glitch.g2 .pg-c { opacity: .6; animation: tv-slice-b .4s steps(1) 1; }
.photo-glitch.g3 img { animation: fade-signal .35s steps(2) 1; }
@keyframes photo-slip { 0% { transform: translateX(-5px) skewX(-2deg); } 50% { transform: translateX(4px); } 100% { transform: none; } }
@media (prefers-reduced-motion: reduce) { .photo-glitch * { animation: none !important; } }

/* ---------- Video page: channels ---------- */
.videos { max-width: 1100px; margin: 0 auto; display: block; padding: 8px 0 40px; }
.ch-head { text-align: center; margin-bottom: 12px; }
.ch-label { margin: 0; font-size: 13px; font-weight: 600; letter-spacing: .3em; }
.ch-hint { margin: 4px 0 0; font-size: 12px; color: var(--muted); }
.ch-monitor { position: relative; width: min(100%, calc((100vh - var(--tv-t) - var(--tv-b) - var(--header-h) - 190px) * 16 / 9)); min-width: min(100%, 320px); margin: 0 auto; aspect-ratio: 16 / 9; background: #000; overflow: hidden; border-radius: 6px; box-shadow: 0 0 0 1px #000, 0 10px 30px rgba(0,0,0,.18); }
.ch-view, .ch-view video, .ch-view img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.ch-view { cursor: inherit; }
.ch-snow { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; pointer-events: none; image-rendering: pixelated; }
.ch-monitor.zapping .ch-snow { opacity: 1; }
.ch-osd {
  position: absolute; top: 16px; left: 20px; right: 20px; display: flex; align-items: baseline; gap: 14px;
  font-family: "Courier New", ui-monospace, monospace; color: #5dff7a; text-shadow: 0 0 6px rgba(93,255,122,.8), 2px 2px 0 #000;
  opacity: 0; transition: opacity .3s; pointer-events: none; text-transform: uppercase;
}
.ch-monitor.osd-on .ch-osd, .ch-monitor:hover .ch-osd { opacity: 1; }
.osd-num { font-size: clamp(22px, 3.4vw, 40px); font-weight: 700; letter-spacing: .06em; }
.osd-name { font-size: clamp(11px, 1.3vw, 15px); letter-spacing: .08em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ch-watch {
  position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%);
  display: flex; align-items: center; gap: 12px; padding: 14px 24px 14px 18px;
  background: rgba(255,255,255,.92); color: #111; border: 0; border-radius: 40px;
  font-family: var(--font); font-size: 13px; font-weight: 600; letter-spacing: .2em;
  box-shadow: 0 6px 20px rgba(0,0,0,.35); transition: transform .2s, background .2s;
}
.ch-watch:hover { transform: translate(-50%, -50%) scale(1.06); background: #fff; }
.ch-watch-ico { width: 0; height: 0; border-left: 14px solid #111; border-top: 9px solid transparent; border-bottom: 9px solid transparent; }
.ch-controls { display: flex; justify-content: center; align-items: center; gap: 14px; margin: 14px 0 4px; }
.ch-btn {
  display: flex; align-items: center; gap: 10px; padding: 11px 18px;
  background: #111; color: #fff; border: 0; border-radius: 4px;
  font-family: var(--font); font-size: 12px; font-weight: 600; letter-spacing: .16em;
  transition: background .2s, transform .1s;
}
.ch-btn:hover { background: #333; } .ch-btn:active { transform: translateY(1px); }
.ch-counter { min-width: 120px; text-align: center; font-family: "Courier New", ui-monospace, monospace; font-size: 14px; font-weight: 700; letter-spacing: .1em; }
.ch-info { text-align: center; margin: 8px 0 34px; }
.ch-title { margin: 0; font-size: 15px; font-weight: 500; letter-spacing: .12em; text-transform: uppercase; }
.ch-caption { margin: 4px 0 0; color: var(--muted); font-size: 14px; }
.ch-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 12px; }
.ch-card { display: block; min-width: 0; padding: 0; border: 0; background: none; text-align: left; font-family: var(--font); color: var(--ink); opacity: .6; transition: opacity .2s; }
.ch-card:hover, .ch-card.on { opacity: 1; }
.ch-card-img { position: relative; display: block; aspect-ratio: 16 / 9; background: #000; overflow: hidden; border-radius: 4px; outline: 2px solid transparent; outline-offset: 2px; transition: outline-color .2s; }
.ch-card.on .ch-card-img { outline-color: #111; }
.ch-card-img img, .ch-card-img video { width: 100%; height: 100%; object-fit: cover; }
.ch-card-meta { display: flex; gap: 8px; align-items: baseline; margin-top: 8px; }
.ch-card-num { font-family: "Courier New", ui-monospace, monospace; font-size: 12px; font-weight: 700; flex: none; }
.ch-card.on .ch-card-num::before { content: ""; display: inline-block; width: 6px; height: 6px; margin-right: 6px; border-radius: 50%; background: #ff3b2f; box-shadow: 0 0 5px rgba(255,59,47,.7); vertical-align: 1px; }
.ch-card-title { font-size: 11px; letter-spacing: .06em; text-transform: uppercase; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
@media (max-width: 680px) {
  .ch-list { grid-template-columns: repeat(2, 1fr); gap: 10px; }
  .ch-btn { padding: 10px 12px; }
  .ch-counter { min-width: 0; font-size: 12px; }
  .ch-watch { padding: 10px 18px 10px 14px; font-size: 11px; }
  .ch-hint { display: none; }
}
