/* Linda TV: de lege tv uit de intro van de homepage, schermvullend, met ruis en af en toe een glitch op het scherm.
   "You haven't watched it all" wordt uitgetypt en een klik zoomt het scherm in, terug naar het begin van het portfolio. */
.lr-tv-blok {
  --bg: #2a2a2a;
  --wit: #f2f5f7;
  --sans: "Montserrat", system-ui, sans-serif;
  --hand: "Alkalami", Georgia, serif;
  position: relative; -webkit-font-smoothing: antialiased;
}
.lr-tv-blok *, .lr-tv-blok *::before, .lr-tv-blok *::after { box-sizing: border-box; }
.lr-tv-blok a.lr-tv, .lr-tv-blok a.lr-tv:hover, .lr-tv-blok a.lr-tv:focus { color: var(--wit); text-decoration: none; box-shadow: none; }
/* The TV image always covers the screen, but never lets the TV screen itself fall off the edge */
.lr-tv {
  --w: min(max(100vw, 160vh), 215vw); --h: calc(var(--w) / 1.6);
  position: relative; display: block; width: 100vw; height: 100vh; height: 100svh; margin-left: calc(50% - 50vw);
  overflow: hidden; cursor: pointer; color: var(--wit); text-decoration: none; background: #171612;
}
.lr-tv-beeld {
  position: absolute; width: var(--w); height: var(--h);
  left: clamp(calc(100vw - var(--w)), calc(50vw - var(--w) * .4066), 0px);
  top: clamp(min(0px, calc(100% - var(--h))), calc(50% - var(--h) * .449), max(0px, calc(100% - var(--h))));
}
.lr-tv-beeld { background: #171612 url("tv.jpg") center / cover; }
/* the top of the TV fades into the page */
.lr-tv::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 32%; z-index: 2; pointer-events: none; background: linear-gradient(var(--bg), rgba(42, 42, 42, .85) 30%, rgba(42, 42, 42, 0)); }
.lr-scherm { position: absolute; z-index: 3; left: 19.65%; top: 13.56%; width: 42.01%; height: 62.67%; border-radius: 3.3% / 3.6%; overflow: hidden; background: rgba(28, 28, 26, .06); container-type: inline-size; display: grid; place-content: center; text-align: center; }
.lr-scherm::before { content: ""; position: absolute; inset: 0; background: repeating-linear-gradient(0deg, rgba(0, 0, 0, .07) 0 1px, transparent 1px 3px); pointer-events: none; }
/* the static and glitch: grain and stripes on a canvas, and the title jumps with a red/blue edge for a moment */
.lr-glitch { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; }
.lr-scherm.is-glitch .lr-scherm-titel { animation: lr-glitch .26s steps(3) infinite; text-shadow: -.5cqw 0 rgba(255, 70, 120, .45), .5cqw 0 rgba(70, 210, 255, .45); }
@keyframes lr-glitch { 0% { transform: translate(0); clip-path: inset(0 0 0 0); } 33% { transform: translate(-1cqw, .3cqw); clip-path: inset(18% 0 46% 0); } 66% { transform: translate(.8cqw, -.2cqw); clip-path: inset(52% 0 8% 0); } 100% { transform: translate(0); clip-path: inset(0 0 0 0); } }
.lr-scherm::after { content: ""; position: absolute; inset: 0; pointer-events: none; background: rgba(255, 255, 255, 0); transition: background .4s; }
.lr-tv:hover .lr-scherm::after { background: rgba(255, 255, 255, .08); }
.lr-scherm-titel { position: relative; font: 400 11cqw/1.1 var(--hand); color: rgba(235, 235, 232, .8); text-shadow: 0 0 1.4cqw rgba(255, 255, 255, .35), 0 .4cqw 1.6cqw rgba(0, 0, 0, .25); letter-spacing: -.01em; }
.lr-scherm-titel .k { visibility: hidden; }
.lr-scherm-titel .k.is-getypt { visibility: visible; }
.lr-scherm-knop { position: relative; display: inline-flex; align-items: center; gap: 2cqw; margin: 6cqw auto 0; padding: 2.4cqw 4cqw; border: 1px solid rgba(240, 240, 238, .6); border-radius: 999px; color: rgba(240, 240, 238, .9); font: 500 max(8px, 2.3cqw)/1 var(--sans); letter-spacing: .26em; text-transform: uppercase; white-space: nowrap; opacity: 0; transition: opacity .8s ease, background .3s, color .3s; }
.lr-scherm-knop::before { content: ""; border-style: solid; border-width: .6em 0 .6em 1em; border-color: transparent transparent transparent currentColor; }
.lr-tv.is-getypt .lr-scherm-knop { opacity: 1; }
.lr-tv:hover .lr-scherm-knop { background: rgba(240, 240, 238, .9); color: #2a2a2a; }
.lr-tv-zoom { position: fixed; inset: 0; z-index: 9999; background: #1a1a1a; opacity: 0; pointer-events: none; transition: opacity .5s ease .55s; }
.lr-tv-zoom.is-aan { opacity: 1; }
.lr-tv.is-in .lr-tv-beeld { transition: transform 1.1s cubic-bezier(.7, 0, .2, 1); }


/* upright screens (phones): the section is as tall as the TV image, so there is no empty band under it */
@media (max-aspect-ratio: 1/1) { .lr-tv-blok .lr-tv { height: min(100svh, var(--h)); } }
@media (prefers-reduced-motion: reduce) { .lr-scherm-knop, .lr-tv-zoom { transition: none; } }
