@keyframes blur-frame {
  0%,
  49.99% {
    backdrop-filter: blur(10px) saturate(1.1);
    -webkit-backdrop-filter: blur(10px) saturate(1.1);
  }

  50%,
  100% {
    backdrop-filter: blur(14px) saturate(1.25);
    -webkit-backdrop-filter: blur(14px) saturate(1.25);
  }
}

body:has(.find-me) {
  background: var(--scene-black, #050505);
}

.find-me__scene {
  cursor: default;
  pointer-events: none;
}

.find-me {
  --black: #050505;
  --white: #f5f5f5;
  --stroke: #e91e8c;
  --lime: #c8f542;

  position: relative;
  z-index: 1;
  max-width: 640px;
  margin: 0 auto;
  padding: 2.5rem 1.5rem 7rem;
  pointer-events: none;
}

.find-me__hero {
  margin-bottom: 5rem;
}

.find-me__section {
  margin-bottom: 5rem;
}

.find-me__section:last-child {
  margin-bottom: 0;
}

.find-me__tweets {
  display: flex;
  justify-content: center;
  width: calc(100% + 2rem);
  margin: -2.5rem -1rem 5rem;
}

.showcase-tweet {
  display: block;
  width: 100%;
  transition: transform 120ms ease;
}

.showcase-tweet:hover {
  transform: translateY(-2px);
}

.showcase-tweet__card {
  margin: 0;
  border: 3px solid var(--black);
  box-shadow: 0 0 0 4px var(--stroke);
  background: #000;
  overflow: hidden;
}

.showcase-tweet__img {
  display: block;
  width: 100%;
  height: auto;
  image-rendering: -webkit-optimize-contrast;
}

.find-me a {
  text-decoration: none;
  color: inherit;
  pointer-events: auto;
}

.find-me a:focus-visible {
  outline: 2px solid var(--stroke);
  outline-offset: 4px;
}

/* --- Mask hero --- */

.mask-hero {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: min(72vh, 520px);
  padding: 3rem 1rem;
  overflow: visible;
}

.mask-hero__center {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2rem;
  width: min(100%, 380px);
}

.mask-hero__panel {
  position: relative;
  width: 100%;
  max-width: 340px;
}

.mask-hero__panel .jagged__content {
  padding: 1.25rem 1.5rem;
  text-align: center;
}

.mask-hero__panel h2 {
  margin: 0 0 0.35rem;
  font-family: 'Rubik', system-ui, sans-serif;
  font-weight: 900;
  font-size: clamp(1.5rem, 5vw, 1.85rem);
  letter-spacing: -0.02em;
}

.mask-hero__panel p {
  margin: 0;
  font-size: 0.92rem;
  line-height: 1.5;
}

.mask-hero__avatar {
  --burst-size: clamp(168px, 28vw, 220px);
  flex-shrink: 0;
}

/* --- Profile burst --- */

.profile-burst {
  position: relative;
  width: var(--burst-size, 200px);
  height: var(--burst-size, 200px);
  margin: 0;
  overflow: visible;
}

.profile-burst__stage {
  position: relative;
  width: 100%;
  height: 100%;
}

.profile-burst__svg {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  overflow: visible;
  pointer-events: none;
}

.profile-burst__spike {
  fill: var(--stroke);
  stroke: var(--black);
  stroke-width: 4;
  stroke-linejoin: miter;
}

.profile-burst__ring {
  fill: none;
  stroke: var(--black);
}

.profile-burst__photo {
  position: absolute;
  left: 50%;
  top: 50%;
  z-index: 1;
  width: calc(100% - 18px);
  height: calc(100% - 18px);
  transform: translate(-50%, -50%);
  border-radius: 50%;
  object-fit: cover;
}

.profile-burst__ring-overlay {
  position: absolute;
  inset: 0;
  z-index: 2;
  border-radius: 50%;
  box-shadow: inset 0 0 0 7px var(--black);
  pointer-events: none;
}

/* --- Frost panel --- */

.frost-stage {
  position: relative;
  min-height: 280px;
  padding: 3.5rem 1.5rem;
  display: grid;
  place-items: center;
  overflow: hidden;
  border-radius: 4px;
}

.frost-stage__bg {
  position: absolute;
  inset: -10%;
  width: 120%;
  height: 120%;
  object-fit: cover;
  filter: blur(2px) saturate(1.15);
}

.frost-panel {
  position: relative;
  z-index: 1;
  width: min(100%, 440px);
  cursor: pointer;
  transition: transform 120ms ease;
}

.frost-panel:hover {
  transform: translateY(-2px);
}

.frost-panel .jagged__glass {
  position: absolute;
  inset: 0;
  z-index: 0;
  background: rgba(245, 245, 245, 0.12);
  backdrop-filter: blur(12px) saturate(1.15);
  -webkit-backdrop-filter: blur(12px) saturate(1.15);
  clip-path: var(--clip-current, var(--clip-a));
  animation: blur-frame calc(var(--frame-ms, 600ms) * 2) steps(1, end) infinite;
  animation-delay: var(--anim-delay, 0ms);
}

.frost-panel .jagged__content {
  color: var(--white);
  text-align: center;
  padding: 1.5rem 1.75rem;
}

.frost-panel h2 {
  margin: 0;
  font-family: 'Rubik', system-ui, sans-serif;
  font-weight: 900;
  font-size: 1.45rem;
  letter-spacing: -0.02em;
}

.frost-panel p {
  margin: 0.45rem 0 0;
  font-size: 0.92rem;
  line-height: 1.5;
  color: #ddd;
}

/* --- Comic strip --- */

.comic-row {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.5rem;
}

.comic-cell {
  position: relative;
  display: block;
  aspect-ratio: 4 / 5;
  cursor: pointer;
  transition: transform 120ms ease;
}

.comic-cell:hover {
  transform: translateY(-3px);
}

.comic-cell__shadow {
  position: absolute;
  inset: 0;
  background: var(--black);
  clip-path: var(--clip-current, var(--clip-a));
  transform: translate(var(--shadow-a, 5px), var(--shadow-a, 5px));
  animation: shadow-frame calc(var(--frame-ms, 600ms) * 2) steps(1, end) infinite;
  animation-delay: var(--anim-delay, 0ms);
}

.comic-cell__inner {
  position: relative;
  z-index: 1;
  height: 100%;
  clip-path: var(--clip-current, var(--clip-a));
  overflow: hidden;
  border: 3px solid var(--black);
}

.comic-cell__inner img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.comic-cell__caption {
  position: absolute;
  z-index: 2;
  left: 0.65rem;
  right: 0.65rem;
  bottom: 0.65rem;
  padding: 0.45rem 0.6rem;
  background: var(--white);
  color: var(--black);
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  clip-path: polygon(0 0, 100% 4%, 98% 100%, 2% 96%);
}

@media (max-width: 540px) {
  .find-me {
    padding: 2rem 1.15rem 5rem;
  }

  .find-me__hero {
    margin-bottom: 3.5rem;
  }

  .find-me__tweets {
    width: calc(100% + 1.3rem);
    margin: -1.5rem -0.65rem 3.5rem;
  }

  .find-me__section {
    margin-bottom: 3.5rem;
  }

  .mask-hero {
    min-height: min(68vh, 460px);
    padding: 2.5rem 0.5rem;
  }

  .mask-hero__center {
    gap: 1.65rem;
  }

  .comic-row {
    grid-template-columns: 1fr;
    gap: 1.75rem;
    max-width: 280px;
    margin: 0 auto;
  }
}
