:root { --ink: #0b0b0d; --lime: #c8ff2e; --pink: #ff3d8b; }
* { box-sizing: border-box; }
html, body { height: 100%; margin: 0; background: #000; overflow: hidden; }

.stage { position: fixed; inset: 0; overflow: hidden; background: #000; }

/* The face: starts wide, then slowly pushes in on his eyes ("he's talking to YOU"). */
.face {
  position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: cover; object-position: 50% 30%;
  transform-origin: 50% 32%;
  animation: push 4.2s cubic-bezier(.2,.6,.2,1) .1s both;
}
@keyframes push { from { transform: scale(1); } to { transform: scale(1.55); } }

/* Meme caption, one word at a time. */
.caption {
  position: absolute; left: 0; right: 0; bottom: max(9vh, 48px); margin: 0;
  padding: 0 16px; text-align: center;
  font: 400 min(15vw, 120px)/1 "Anton", Impact, "Arial Black", sans-serif;
  color: #fff; letter-spacing: .02em;
  -webkit-text-stroke: max(2px, .035em) #000; paint-order: stroke fill;
  text-shadow: 0 .04em .12em rgba(0,0,0,.6);
}
.w { display: inline-block; opacity: 0; transform: scale(1.8); animation: word .22s cubic-bezier(.2,1.6,.4,1) forwards; }
.w:nth-child(1) { animation-delay: .7s; }
.w:nth-child(2) { animation-delay: 1.15s; }
.w:nth-child(3) { animation-delay: 1.6s; }
.w:nth-child(4) { animation-delay: 2.2s; }
.w--last { color: var(--lime); }
.w--last { animation: word .22s cubic-bezier(.2,1.6,.4,1) 2.2s forwards, shake .5s 2.45s 2; }
@keyframes word { to { opacity: 1; transform: none; } }
@keyframes shake {
  0%,100% { transform: none; } 20% { transform: translate(-4px, 2px) rotate(-3deg); }
  40% { transform: translate(5px, -2px) rotate(3deg); } 60% { transform: translate(-3px, 1px) rotate(-2deg); }
  80% { transform: translate(2px, -1px) rotate(1deg); }
}
/* Freeze frame on the last word: the push-in "lands" with a jolt. */
.stage::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: #fff; opacity: 0; animation: flash .35s ease-out 2.2s;
}
@keyframes flash { 0% { opacity: .35; } 100% { opacity: 0; } }

/* Small way out, top right. */
.skip {
  position: absolute; top: max(14px, env(safe-area-inset-top)); right: 14px; z-index: 2;
  font: 700 12px/1 "JetBrains Mono", ui-monospace, monospace; letter-spacing: .08em; text-transform: uppercase;
  color: var(--ink); background: var(--lime); text-decoration: none;
  padding: .7em 1em; box-shadow: 3px 3px 0 var(--pink); opacity: .85;
}

@media (prefers-reduced-motion: reduce) {
  .face { animation: none; transform: scale(1.25); }
  .w, .w--last { animation: none; opacity: 1; transform: none; }
  .stage::after { animation: none; }
}
