/* Rubber-stamp wordplay and the supplied-meme reveal. The stamp holds its
   frame during the erase, then eases continuously into the shorter ending;
   matching polygon points avoid a discrete clip-path jump between shapes.
   Satire stays labelled,
   never blocks navigation and stops after one short sequence. Without motion
   or JavaScript, the final HACKS stamp and both examples remain readable. */
.opening-stamp {
  position: absolute;
  z-index: 2;
  top: clamp(2rem, 5vw, 4rem);
  right: 7%;
  display: flex;
  padding: .04em .13em;
  border: .055em solid currentColor;
  outline: 1px solid currentColor;
  outline-offset: -.105em;
  color: #ef8b75;
  font: 900 clamp(3.4rem, 10vw, 9rem)/1.05 var(--font-body);
  letter-spacing: -.055em;
  opacity: .88;
  transform: rotate(-10deg);
  pointer-events: none;
}
.opening-stamp::after {
  position: absolute;
  inset: 0;
  content: "";
  background: repeating-linear-gradient(175deg, transparent 0 11px, #332a25 11px 12px, transparent 12px 19px);
  opacity: .4;
}
.opening-stamp__ending { position: relative; width: .72em; }
.opening-stamp__erased { position: absolute; inset: 0 auto auto 0; visibility: hidden; }
.opening-stamp__final { display: block; }
.opening-stamp.is-stamping { animation: stamp-impact 3.4s cubic-bezier(.22, 1, .36, 1) both; }
.is-stamping .opening-stamp__ending { animation: stamp-shorten 3.4s cubic-bezier(.45, 0, .2, 1) both; }
.is-stamping .opening-stamp__erased { visibility: visible; animation: stamp-erase 3.4s linear both; }
.is-stamping .opening-stamp__final { animation: stamp-finish 3.4s cubic-bezier(.22, 1, .36, 1) both; }
.hero__stamp-context { display: flex; flex-wrap: wrap; gap: .3rem 1rem; max-width: 48rem; margin-top: 1.5rem; color: #e5c6b1; font-size: .65rem; line-height: 1.6; }
.hero__stamp-context > span { flex-basis: 100%; letter-spacing: .1em; text-transform: uppercase; }
.hero__stamp-context a { text-decoration: underline; text-underline-offset: .2em; }
.hero__stamp-context button { padding: 0; border: 0; background: transparent; color: inherit; text-decoration: underline; }
.hero__stamp-actions { display: flex; flex-wrap: wrap; gap: .5rem 1.2rem; }
.communication-scene { background: #e8dfcf; }
.communication-scene__layout { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: clamp(2rem, 6vw, 6rem); align-items: center; }
.communication-scene h2 { font-size: clamp(3.4rem, 6vw, 6rem); }
.communication-scene h2 em { color: #8d3d31; }
.communication-scene__aside { margin: 1.2rem 0; font-size: 1.05rem; }
.communication-scene__context { max-width: 33rem; font-size: .78rem; }
.communication-scene__context summary { cursor: pointer; text-decoration: underline; text-underline-offset: .25em; }
.communication-scene__context p { margin: 1rem 0; }
.communication-scene__links { display: flex; flex-direction: column; align-items: flex-start; gap: .8rem; padding-top: 1rem; border-top: 1px solid #bcaa91; }
.meme-reply { min-width: 0; background: #282a24; color: #f5f1ea; box-shadow: .6rem .7rem 0 #cfc0a9; transform: rotate(1.5deg); }
.meme-reply__header { display: flex; align-items: center; gap: .6rem; padding: .8rem 1rem; border-bottom: 1px solid #5c5e50; font-size: .68rem; }
.meme-reply__header > :last-child { margin-left: auto; color: #bdc1a9; text-transform: uppercase; letter-spacing: .1em; }
.meme-reply__light { width: .5rem; height: .5rem; border-radius: 50%; background: #b8cf8e; }
.meme-reply__stage { position: relative; min-height: 21rem; display: grid; align-items: center; overflow: hidden; }
.meme-reply__promise { position: absolute; inset: 0; display: grid; align-content: center; justify-items: center; gap: .4rem; background: #e4edd8; color: #31482f; }
.meme-reply__promise > :first-child { font: 400 4rem/1 var(--font-body); }
.meme-reply__promise strong { font: 400 clamp(2.5rem, 4vw, 4rem)/1.1 var(--font-display); }
.meme-reply__promise > :last-child { font-size: .75rem; }
.meme-reply__images { display: flex; align-items: center; justify-content: center; padding: 2rem 1.5rem; }
.meme-reply__images figure { flex: 0 1 48%; min-width: 0; margin: 0; padding: .45rem .45rem .8rem; background: #faf7ef; color: #282a24; transform: rotate(-9deg); box-shadow: 0 .4rem 1.5rem #0005; }
.meme-reply__images figure + figure { margin-left: -.8rem; transform: translateY(1.2rem) rotate(9deg); }
.meme-reply__images img { width: 100%; aspect-ratio: 1; object-fit: contain; }
.meme-reply__images figcaption { padding-top: .6rem; text-align: center; font-size: .65rem; line-height: 1.4; }
.meme-reply__footer { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: .5rem; padding: .85rem 1rem; border-top: 1px solid #5c5e50; }
.meme-reply__footer p { margin: 0; font: 400 1.65rem/1.1 var(--font-display); }
.meme-reply__footer button { border: 0; padding: .4rem 0; background: transparent; color: #d3dfba; font-size: .7rem; text-decoration: underline; text-underline-offset: .3em; }
.meme-reply__source { margin: 0; padding: 0 1rem 1rem; color: #bdc1a9; font-size: .6rem; }
.meme-reply.is-pending .meme-reply__images { visibility: hidden; }
.meme-reply.is-first .meme-reply__images figure:last-child { visibility: hidden; }
.meme-reply.is-first .meme-reply__images figure:first-child { transform: rotate(-5deg); }
.meme-reply.is-first .meme-reply__images figure:first-child,
.meme-reply.is-complete .meme-reply__images figure:last-child { animation: meme-arrive .3s ease-out; }
.chat__bubble--meme { max-width: min(15rem, 80%); }
.chat__bubble--meme img { max-height: 9rem; width: auto; max-width: 100%; object-fit: contain; }
.chat__bubble--meme small { display: block; margin-top: .4rem; font-size: .65rem; }
@keyframes stamp-impact {
  0% { opacity: 0; transform: scale(1.2) rotate(-13deg); }
  15%, 42% { opacity: .95; transform: scale(1) rotate(-10deg); }
  100% { opacity: .88; transform: scale(1) rotate(-10deg); }
}
@keyframes stamp-erase {
  0%, 38% { clip-path: polygon(0 0, 100% 0, 100% 25%, 100% 50%, 100% 75%, 100% 100%, 0 100%); opacity: 1; filter: blur(0); }
  52% { clip-path: polygon(0 0, 73% 0, 65% 25%, 76% 50%, 65% 75%, 70% 100%, 0 100%); opacity: .8; filter: blur(.35px); }
  64% { clip-path: polygon(0 0, 30% 0, 24% 25%, 35% 50%, 22% 75%, 28% 100%, 0 100%); opacity: .45; filter: blur(.7px); }
  76%, 100% { clip-path: polygon(0 0, 0 0, 0 25%, 0 50%, 0 75%, 0 100%, 0 100%); opacity: 0; filter: blur(1px); }
}
@keyframes stamp-shorten { 0%, 58% { width: 1.4em; } 94%, 100% { width: .72em; } }
@keyframes stamp-finish {
  0%, 64% { opacity: 0; filter: blur(2px); transform: translateX(.06em); }
  91%, 100% { opacity: 1; filter: blur(0); transform: translateX(0); }
}
@keyframes meme-arrive { from { opacity: 0; translate: 0 1rem; } to { opacity: 1; translate: 0 0; } }
@media (max-width: 760px) {
  .opening-stamp { top: 1.2rem; right: 7%; font-size: clamp(3.4rem, 14vw, 6.5rem); }
  .hero__content { padding-top: 8rem; }
  .communication-scene__layout { grid-template-columns: minmax(0, 1fr); }
  .meme-reply { margin-inline: .4rem; }
  .meme-reply__stage { min-height: 18rem; }
}
@media (prefers-reduced-motion: reduce) {
  .opening-stamp, .opening-stamp *, .meme-reply * { animation: none !important; }
  .opening-stamp__erased { visibility: hidden !important; }
  .meme-reply.is-first .meme-reply__images figure { visibility: visible; transform: rotate(-9deg); }
  .meme-reply.is-first .meme-reply__images figure:last-child { transform: translateY(1.2rem) rotate(9deg); }
}
