/* The world's opening, an old TV switching on (see intro.js): black halves cover the screen, a thin line draws across the
   middle, then the halves part to show the world. Only transform and opacity move, so it stays smooth on a phone. */
.i-overlay { position: fixed; inset: 0; z-index: 99999; pointer-events: none; overflow: hidden; }
.i-overlay.out { animation: i-out 1s linear forwards; }
.i-overlay.out::before, .i-overlay.out::after { content: ''; position: absolute; left: 0; right: 0; height: 50.5%; z-index: 2; background: var(--cz-plum-deep); will-change: transform; }
.i-overlay.out::before { top: 0; animation: i-tv-top 1s forwards; }
.i-overlay.out::after { bottom: 0; animation: i-tv-bot 1s forwards; }
.i-line { position: absolute; left: 0; right: 0; top: calc(50% - 1px); height: 2px; z-index: 3; opacity: 0; background: var(--cz-cream);
  box-shadow: 0 0 8px color-mix(in srgb, var(--cz-cream) 55%, transparent); will-change: transform, opacity; }
.out .i-line { animation: i-tv-line 1s forwards; }

@keyframes i-out { 0%, 99% { visibility: visible; } 100% { visibility: hidden; } }
@keyframes i-tv-top { 0%, 30% { transform: none; animation-timing-function: cubic-bezier(.6, 0, .25, 1); } 100% { transform: translateY(-100%); } }
@keyframes i-tv-bot { 0%, 30% { transform: none; animation-timing-function: cubic-bezier(.6, 0, .25, 1); } 100% { transform: translateY(100%); } }
@keyframes i-tv-line { 0% { opacity: 0; transform: scaleX(0); animation-timing-function: cubic-bezier(.2, .7, .3, 1); }
  12% { opacity: 1; transform: scaleX(.12); } 30% { opacity: 1; transform: scaleX(1); } 55% { opacity: 1; transform: scaleX(1); } 85%, 100% { opacity: 0; transform: scaleX(1); } }
