/* ---------- opening intro: 8-bit popcorn buckets on a sofa (drawn by js/intro.js) ---------- */
.intro {
  position: fixed; inset: 0; z-index: 9999; overflow: hidden; background: #0a0405; cursor: pointer;
  transition: opacity .45s ease; -webkit-tap-highlight-color: transparent;
}
.intro.out { opacity: 0; pointer-events: none; }
#intro-cv {
  position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%);
  width: 100vw; image-rendering: pixelated; image-rendering: crisp-edges;
}
.intro-cap {
  position: absolute; left: 0; right: 0; bottom: 6%; text-align: center; color: #ecd6b6; letter-spacing: .08em;
  font: 500 15px/1.4 Kanit, "IBM Plex Sans Thai", system-ui, sans-serif; text-shadow: 0 2px 0 #000; transition: opacity .25s;
}
.intro-cap i { display: inline-block; width: 4px; height: 4px; margin-left: 4px; background: currentColor; vertical-align: middle; animation: introDot 1.2s steps(1) infinite; }
.intro-cap i:nth-child(3) { animation-delay: .3s; }
.intro-cap i:nth-child(4) { animation-delay: .6s; }
@keyframes introDot { 0%, 100% { opacity: .2; } 30% { opacity: 1; } }
@media (max-aspect-ratio: 4/5) { #intro-cv { top: 46%; } .intro-cap { bottom: 26%; } }
.intro-skip { position: absolute; right: 16px; top: 14px; color: rgba(236, 214, 182, .55); font: 13px system-ui, sans-serif; opacity: 0; animation: introFadeIn .4s 1.4s forwards; }
@keyframes introFadeIn { to { opacity: 1; } }
.intro:not(.ph-loop) .intro-cap, .intro.ph-after .intro-skip, .intro.ph-boom .intro-skip, .m-short .intro-skip, .m-short .intro-cap { opacity: 0; }

/* the marquee lights come on as the intro clears */
.lights-on .marquee { animation: mqOn 1s ease-out; }
@keyframes mqOn { 0% { filter: brightness(.35); } 35% { filter: brightness(1.7) drop-shadow(0 0 14px #ffd27a); } 100% { filter: none; } }
