/* ───────────────────────── Text Shake contact sheet ───────────────────────── */
.text-shake-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: 48px;
  padding: 0 26px 0 8px;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 100px;
  background: rgba(8, 10, 18, 0.62);
  color: #fff;
  font: inherit;
  font-weight: 600;
  font-size: 18px;
  line-height: 24px;
  cursor: pointer;
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  transition: transform 0.3s var(--ease-spring, ease), background-color 0.25s ease;
}

.text-shake-btn img {
  width: 34px;
  height: 34px;
  border-radius: 50%;
}

.text-shake-btn:hover {
  background: rgba(8, 10, 18, 0.78);
  transform: translateY(-2px) scale(1.03);
}

.text-shake-btn:active {
  transform: scale(0.98);
}

.text-shake-btn:focus-visible,
.ts-sheet a:focus-visible,
.ts-sheet button:focus-visible {
  outline: 2px solid #fff;
  outline-offset: 3px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
}

.ts-overlay[hidden] {
  display: none;
}

.ts-overlay {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  padding: 16px;
  background: rgba(4, 6, 12, 0.6);
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
  opacity: 0;
  transition: opacity 0.25s ease;
}

.ts-overlay.is-open {
  opacity: 1;
}

@media (min-width: 640px) {
  .ts-overlay {
    align-items: center;
  }
}

.ts-sheet {
  position: relative;
  width: 100%;
  max-width: 380px;
  padding: 28px 22px 22px;
  border-radius: 28px;
  background: #12151f;
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: #fff;
  text-align: center;
  transform: translateY(24px);
  transition: transform 0.35s cubic-bezier(0.22, 1, 0.36, 1);
}

.ts-overlay.is-open .ts-sheet {
  transform: translateY(0);
}

.ts-close {
  position: absolute;
  top: 12px;
  right: 14px;
  width: 32px;
  height: 32px;
  border: none;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.08);
  color: rgba(255, 255, 255, 0.7);
  font-size: 20px;
  line-height: 32px;
  cursor: pointer;
}

/* Mirrors an iOS contact card: big round photo, name, handle. */
.ts-photo {
  width: 104px;
  height: 104px;
  margin: 0 auto 12px;
  border-radius: 50%;
  display: block;
  box-shadow: 0 10px 30px rgba(1, 151, 238, 0.35);
}

.ts-name {
  font-size: 28px;
  font-weight: 700;
  letter-spacing: -0.01em;
}

.ts-handle {
  margin-top: 2px;
  font-size: 15px;
  color: rgba(255, 255, 255, 0.55);
  user-select: all;
  -webkit-user-select: all;
}

.ts-pitch {
  margin: 14px auto 20px;
  max-width: 30ch;
  font-size: 15px;
  line-height: 1.45;
  color: rgba(255, 255, 255, 0.75);
}

.ts-actions {
  display: grid;
  gap: 10px;
}

.ts-primary,
.ts-secondary {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  height: 52px;
  border-radius: 16px;
  font-weight: 600;
  font-size: 17px;
  text-decoration: none;
}

.ts-primary {
  background: #0197ee;
  color: #fff;
}

.ts-secondary {
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
}

.ts-primary svg,
.ts-secondary svg {
  width: 20px;
  height: 20px;
  flex: none;
}

.ts-fineprint {
  margin-top: 14px;
  font-size: 12.5px;
  line-height: 1.4;
  color: rgba(255, 255, 255, 0.45);
}

@media (prefers-reduced-motion: reduce) {
  .ts-overlay,
  .ts-sheet,
  .text-shake-btn {
    transition: none;
  }

  .hero-text-shake {
    animation: none;
    opacity: 1;
  }
}

.hero-text-shake {
  opacity: 0;
  animation: tsFadeUp 0.9s cubic-bezier(0.22, 1, 0.36, 1) 1s forwards;
}

@keyframes tsFadeUp {
  from {
    opacity: 0;
    transform: translateY(18px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (max-width: 640px) {
  .text-shake-btn {
    height: 44px;
    font-size: 16px;
    padding: 0 22px 0 6px;
  }

  .text-shake-btn img {
    width: 32px;
    height: 32px;
  }
}
