:root {
  --dark: #111315;
  --paper: #f8f7f4;
  --lime: #d5ff3d;
  --ink: #10110c;
  --coral: #ff795f;
  --display: Impact, "Arial Narrow", "Arial Black", system-ui, sans-serif;
  --mono: ui-monospace, Consolas, monospace;
  --snap: cubic-bezier(.16, 1, .3, 1);
  font-family: system-ui, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
body { margin: 0; background: var(--dark); color: var(--paper); }
[hidden] { display: none !important; }

.screen {
  display: grid;
  place-items: center;
  min-height: 100vh;
  min-height: 100svh;
  padding: 2rem clamp(1rem, 6vw, 4rem);
  text-align: center;
}

.search { position: relative; }
.search::after {
  content: "";
  position: absolute;
  inset: auto 0 0;
  height: min(24vh, 15rem);
  pointer-events: none;
  background: radial-gradient(circle, #7a7e70 1.2px, transparent 1.6px) 0 0 / 26px 26px;
  mask-image: linear-gradient(transparent, rgb(0 0 0 / 65%));
}

.search-content {
  position: relative;
  z-index: 1;
  width: min(100%, 49rem);
  margin-bottom: clamp(3rem, 13vh, 8rem);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: .32em;
  font-size: clamp(1.25rem, 4.6vw, 2.3rem);
  font-weight: 750;
  letter-spacing: -.04em;
}
.brand svg { width: 1.22em; height: 1.22em; color: var(--lime); }

h1 {
  margin: .28em 0 .5em;
  font-size: clamp(2.2rem, 10vw, 6.2rem);
  font-weight: 850;
  line-height: 1.02;
  letter-spacing: -.058em;
}

form { display: flex; gap: clamp(.5rem, 2vw, .9rem); }
.search-note { margin: .85rem 0 0; color: #afb1a9; font-size: .85rem; line-height: 1.4; }
input, button {
  min-height: clamp(3.25rem, 8.6vw, 4.25rem);
  padding: .5em clamp(.72rem, 3vw, 1.35rem);
  border: 2px solid transparent;
  border-radius: .48rem;
  font: inherit;
  font-size: clamp(1rem, 3.6vw, 1.75rem);
}
input {
  flex: 1 1 0;
  min-width: 0;
  border-color: #717473;
  color: var(--paper);
  background: #131517;
}
input::placeholder { color: #a9aaa7; }
button {
  color: var(--ink); background: var(--lime); font-weight: 800; cursor: pointer;
  transition: transform .14s ease-out, background-color .14s ease-out;
}
button:enabled:hover { background: #e5ff80; }
button:enabled:active { transform: scale(.96); }
button:disabled { opacity: .56; cursor: default; }
:is(input, button, a):focus-visible { outline: 2px solid currentColor; outline-offset: 4px; }
button:focus-visible, input:focus-visible { outline-color: var(--lime); }

.shot { position: relative; isolation: isolate; overflow: hidden; align-content: center; }
.shot h2 { margin: 0; line-height: 1; }
.shot [tabindex="-1"]:focus { outline: none; }
.display {
  font-family: var(--display);
  font-weight: 900;
  letter-spacing: -.015em;
  text-transform: uppercase;
}
.emoji {
  font: normal 1em/1 "Apple Color Emoji", "Segoe UI Emoji", "Noto Color Emoji", sans-serif;
  pointer-events: none;
  user-select: none;
}

/* The sweep and the type appear to lock onto the same target. */
.scan {
  gap: clamp(1.5rem, 5vmin, 3rem);
  background: radial-gradient(ellipse at center, #20291a, var(--dark) 70%);
  color: var(--lime);
}
.radar {
  position: relative;
  width: clamp(7rem, 27vmin, 16rem);
  aspect-ratio: 1;
  overflow: hidden;
  border: 1px solid #93ac65;
  border-radius: 50%;
  background:
    linear-gradient(90deg, transparent 49.7%, #53613e 50%, transparent 50.3%),
    linear-gradient(transparent 49.7%, #53613e 50%, transparent 50.3%),
    repeating-radial-gradient(circle, transparent 0 21%, #53613e 21.6% 22%, transparent 22.5% 43%);
  animation: acquire .35s var(--snap) both;
}
.radar::before, .radar::after { content: ""; position: absolute; }
.radar::before {
  inset: 0;
  background: conic-gradient(transparent 62%, #d5ff3d16 78%, #d5ff3d80 99.6%, transparent);
  animation: sweep 1.25s linear infinite;
}
.radar::after {
  inset: 47%; background: var(--lime); border-radius: 50%;
  box-shadow: 0 0 1rem var(--lime);
}
.radar-hit {
  position: absolute; z-index: 1; left: 57%; top: 22%;
  padding: .08em; font-size: clamp(1.15rem, 4.2vmin, 2.4rem);
  animation: lock-on .32s .95s var(--snap) both;
}
.radar-hit::before, .radar-hit::after { content: ""; position: absolute; width: .3em; height: .3em; }
.radar-hit::before { inset: 0 auto auto 0; border-top: 1px solid; border-left: 1px solid; }
.radar-hit::after { inset: auto 0 0 auto; border-bottom: 1px solid; border-right: 1px solid; }
.scan h2 {
  font: 700 clamp(1.55rem, 5vw, 4rem)/1.1 var(--mono);
  letter-spacing: -.06em;
  animation: type-in .58s steps(12, end) both;
}
@keyframes acquire { from { opacity: 0; transform: scale(.72); } }
@keyframes lock-on { from { opacity: 0; transform: scale(.25); filter: blur(4px); } }
@keyframes sweep { to { transform: rotate(1turn); } }
@keyframes type-in { from { clip-path: inset(0 100% 0 0); } to { clip-path: inset(0); } }

.fault {
  background: repeating-linear-gradient(#241b24 0 1px, #1b161d 1px 5px);
  color: var(--paper);
}
.fault h2 { display: grid; gap: .08em; justify-items: center; }
.fault small { font: 600 clamp(1.2rem, 4.7vw, 3.6rem)/1.2 var(--mono); }
.fault .display {
  color: var(--coral);
  font-size: clamp(3rem, 19vw, 14rem);
  animation: signal-slip .6s var(--snap) both;
}
.fault small:last-child { animation: type-in .38s .16s steps(12, end) both; }
@keyframes signal-slip {
  0% { transform: translateX(-22%) skewX(-18deg); opacity: .25; text-shadow: .13em 0 #69d9ce; }
  38% { transform: translateX(4%) skewX(7deg); text-shadow: -.055em 0 #69d9ce; }
  72% { transform: translateX(-1%); text-shadow: .02em 0 #69d9ce; }
  100% { transform: none; text-shadow: 0 0 transparent; }
}

.evidence {
  background-color: #e8e5dc;
  background-image: radial-gradient(#bdbbae 1px, transparent 1px);
  background-size: 14px 14px;
  color: var(--ink);
}
.result {
  width: min(78vw, 52vh, 24rem);
  margin: 0;
  padding: clamp(.4rem, 1.2vmin, .75rem);
  background: var(--paper);
  box-shadow: 0 .8rem 1.8rem #27261930;
  transform: rotate(-3deg);
  transform-origin: 50% 46%;
  animation: drop-print .52s var(--snap) both, down-the-drain .38s ease-in calc(var(--hold) - .38s) forwards;
}
.result img { display: block; width: 100%; height: auto; aspect-ratio: 1; object-fit: cover; }
.result figcaption {
  display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: .3em;
  padding: .48em .1em .12em; text-align: left;
  font-size: clamp(.92rem, 2.8vw, 1.4rem);
}
.item-info { display: grid; gap: .15em; }
.item-info small { font: .82em/1.15 var(--mono); }
.price-tag {
  display: grid; grid-template-columns: auto .55em; column-gap: .35em; justify-self: end;
  padding: .35em .45em; background: #ffe069; color: var(--ink);
  box-shadow: 0 2px 2px #231e122b; transform: rotate(5deg);
  animation: stick-price .44s .5s var(--snap) both;
}
.price-tag b { font: 850 1.55em/.98 system-ui, sans-serif; letter-spacing: -.055em; }
.price-tag small { grid-column: 1; margin-top: .28em; font: 700 max(.82em, .8125rem)/1.1 var(--mono); }
.price-tag::after {
  content: ""; grid-column: 2; grid-row: 1 / 3;
  background: repeating-linear-gradient(90deg, currentColor 0 1px, transparent 1px 3px, currentColor 3px 5px, transparent 5px 7px);
}
@keyframes stick-price {
  from { opacity: 0; transform: translate(12%, -35%) rotate(13deg) scale(1.35); }
  60% { opacity: 1; transform: rotate(3deg) scale(.96); }
  to { transform: rotate(5deg); }
}
@keyframes drop-print {
  from { opacity: .2; transform: translateY(20%) rotate(10deg) scale(.91); }
  68% { transform: translateY(-2%) rotate(-5deg); }
  to { transform: rotate(-3deg); }
}
@keyframes down-the-drain { to { transform: rotate(-85deg) scale(.15); opacity: 0; } }
@media (max-height: 28rem) and (min-aspect-ratio: 3/2) {
  .result {
    width: max-content; max-width: 84vw; padding-right: clamp(.8rem, 2vw, 1.2rem);
    display: grid; grid-template-columns: min(48vh, 12rem) auto;
    align-items: center; gap: clamp(.7rem, 2.5vw, 1.2rem);
  }
  .result figcaption { grid-template-columns: 1fr; gap: .8em; font-size: clamp(.95rem, 3.8vh, 1.2rem); }
  .price-tag { justify-self: start; }
}

.punch, .outro { background: var(--lime); color: var(--ink); }
.punch::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: #e8e5dc; transform-origin: right;
  animation: shutter .32s var(--snap) both;
}
.punch h2 { font-size: clamp(2.15rem, 12vw, 10.5rem); line-height: .92; }
.punch h2 > span { display: block; animation: hit-line .5s var(--snap) both; }
.punch h2 > .punch-last {
  position: relative; width: max-content; margin-inline: auto;
  --entry: 30%; animation-delay: .1s;
}
.plunger {
  position: absolute; left: calc(100% + .08em); bottom: .05em;
  font-size: .66em; transform: rotate(-12deg); transform-origin: 30% 90%;
  animation: suction .5s .35s var(--snap) both;
}
@keyframes shutter { to { transform: scaleX(0); } }
@keyframes hit-line {
  from { opacity: 0; transform: translateX(var(--entry, -30%)) skewX(-8deg); }
  to { opacity: 1; transform: none; }
}
@keyframes suction {
  from { opacity: 0; transform: translate(.75em, -.85em) rotate(24deg); }
  45% { opacity: 1; transform: rotate(-17deg) scale(1.1, .8); }
  72% { transform: rotate(-7deg) scale(.98, 1.05); }
  to { transform: rotate(-12deg); }
}

.reaction { background: var(--dark); color: var(--paper); }
.reaction h2 {
  position: relative;
  font-size: clamp(2.3rem, 12.2vw, 11rem);
  animation: stamp .48s var(--snap) both;
}
.reaction h2::after {
  content: ""; position: absolute; inset: -.26em -.22em -.3em;
  border: max(3px, .035em) solid var(--lime);
  border-radius: 48% 55% 49% 43%;
  transform: rotate(-7deg);
  animation: type-in .48s .15s ease-out both;
}
@keyframes stamp {
  from { opacity: .1; transform: scale(1.32) rotate(-8deg); }
  60% { transform: scale(.96) rotate(1deg); }
  to { transform: none; }
}

.outro { gap: clamp(1.1rem, 3.8vh, 2.1rem); }
.outro p { margin: 0; }
.invitation, .countdown { font: 600 clamp(.95rem, 2.6vw, 1.35rem)/1.35 var(--mono); }
.destination { display: grid; justify-items: center; gap: .25em; color: inherit; text-decoration: none; }
.domain {
  display: inline-flex; align-items: center; gap: .1em;
  padding: 0 .04em .04em;
  border-bottom: .055em solid;
  font-size: clamp(3.2rem, 14vw, 10rem);
  font-weight: 850; letter-spacing: -.075em; line-height: .97;
}
.domain svg { width: .6em; height: .6em; animation: point .6s var(--snap) both; }
.destination:hover .domain { border-bottom-style: dashed; }
.signoff { font-size: clamp(1.25rem, 5vw, 3.7rem); font-weight: 750; letter-spacing: -.04em; }
.countdown { font-variant-numeric: tabular-nums; }
.countdown span { display: inline-block; min-width: 2ch; }
.time-track {
  position: relative; width: min(100%, 14rem); height: 4px; margin: .65rem auto 0;
  border-radius: 4px; background: #10110c30;
}
.time-track::after {
  content: ""; display: block; height: 100%; border-radius: inherit; background: currentColor; transform-origin: left;
  animation: shutter var(--hold) linear forwards;
}
.time-drop {
  position: absolute; inset: 100% 0 auto; font-size: clamp(1rem, 2.7vmin, 1.45rem);
  text-align: right; transform: translateX(.5em); animation: follow-drain var(--hold) linear forwards;
}
@keyframes follow-drain { to { transform: translateX(calc(-100% + .5em)); } }
@keyframes point { from { opacity: .4; transform: translate(-.2em, .2em) scale(.75); } }

.paused :is(.shot, .shot *), .paused .shot ::before, .paused .shot ::after, .paused .shot::before {
  animation-play-state: paused !important;
}
@media (prefers-reduced-motion: reduce) {
  .shot, .shot *, .shot::before, .shot ::before, .shot ::after { animation: none !important; }
  .punch::before, .time-track { display: none; }
  button { transition: none; }
}

noscript a { color: inherit; }
