/* Scoped floating contact; the existing site palette supplies the tokens. */
.tg-contact {
  --tg-size: 44px;
  --tg-bottom: calc(100px + env(safe-area-inset-bottom, 0px));
  --tg-bubble-x: 0px;
  --tg-arrow-x: 22px;
  --tg-border: rgba(245, 179, 1, .62);
  position: fixed;
  z-index: 35;
  right: 16px;
  bottom: var(--tg-bottom);
  width: var(--tg-size);
  height: var(--tg-size);
}
.tg-contact__motion {
  position: relative;
  width: 100%;
  height: 100%;
  animation: tg-float 3.4s ease-in-out infinite;
}
@keyframes tg-float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-5px); } }
.tg-contact:hover .tg-contact__motion,
.tg-contact:focus-within .tg-contact__motion { animation-play-state: paused; }
.tg-contact__button {
  display: grid;
  place-items: center;
  width: 100%;
  height: 100%;
  border: 1px solid rgba(255, 255, 255, .28);
  border-radius: 50%;
  color: #fff;
  background: linear-gradient(180deg, #2aabee, #229ed9);
  box-shadow: inset 0 1px 1px rgba(255, 255, 255, .3), 0 0 0 3px rgba(42, 171, 238, .1), 0 6px 20px rgba(0, 0, 0, .48);
  transition: box-shadow .18s ease, filter .18s ease;
  touch-action: manipulation;
  text-decoration: none;
}
.tg-contact__button svg { width: 32px; height: 32px; fill: currentColor; }
.tg-contact__button:hover { filter: brightness(1.08); box-shadow: 0 0 0 4px rgba(42, 171, 238, .18), 0 6px 22px rgba(0, 0, 0, .5); }
.tg-contact__button:active { filter: brightness(.9); }
.tg-contact__bubble {
  position: absolute;
  left: var(--tg-bubble-x);
  bottom: calc(100% + 16px);
  width: min(232px, calc(100vw - 24px));
  border: 1px solid var(--tg-border);
  border-radius: 16px;
  background: radial-gradient(ellipse at 100% 0, rgba(245, 179, 1, .13), transparent 65%), linear-gradient(135deg, #35201e, var(--color-surface) 75%);
  isolation: isolate;
  box-shadow: 0 12px 36px rgba(0, 0, 0, .5), inset 0 1px 0 rgba(255, 231, 176, .08);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: translateY(7px) scale(.96);
  transform-origin: var(--tg-arrow-x) bottom;
  transition: opacity .16s ease, transform .16s ease, visibility 0s .16s;
}
.tg-contact__bubble::before,
.tg-contact__bubble::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  border-radius: inherit;
  pointer-events: none;
}
/* A gold diamond weave fades out behind the copy. */
.tg-contact__bubble::before {
  background-image: repeating-linear-gradient(135deg, rgba(245, 179, 1, .16) 0 1px, transparent 1px 16px), repeating-linear-gradient(45deg, rgba(245, 179, 1, .1) 0 1px, transparent 1px 16px);
  -webkit-mask-image: linear-gradient(90deg, transparent, rgba(0, 0, 0, .25) 45%, #000);
  mask-image: linear-gradient(90deg, transparent, rgba(0, 0, 0, .25) 45%, #000);
}
.tg-contact__bubble::after {
  background-image: radial-gradient(rgba(255, 231, 176, .12) .55px, transparent .75px);
  background-size: 3px 3px;
  opacity: .4;
}
.tg-contact.is-open .tg-contact__bubble {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translateY(0) scale(1);
  transition: opacity .24s ease, transform .28s cubic-bezier(.2,.8,.2,1), visibility 0s;
}
.tg-contact__message {
  position: relative;
  z-index: 1;
  display: block;
  min-height: 88px;
  padding: 17px 43px 17px 18px;
  border-radius: inherit;
  color: var(--color-ink);
  font-size: 15px;
  font-weight: 500;
  line-height: 1.55;
  text-decoration: none;
  text-wrap: pretty;
  touch-action: manipulation;
}
.tg-contact__message strong { color: var(--color-gold); font-weight: 750; }
.tg-contact__message span { color: var(--color-gold); text-decoration: underline; text-underline-offset: 3px; text-decoration-color: rgba(245, 179, 1, .55); }
.tg-contact__message:hover { background: rgba(245, 179, 1, .05); }
.tg-contact__message:active { background: rgba(245, 179, 1, .1); }
.tg-contact__close {
  position: absolute;
  z-index: 2;
  top: 0;
  right: 0;
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 0 16px 0 12px;
  color: var(--color-muted);
  touch-action: manipulation;
}
.tg-contact__close svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; }
.tg-contact__close:hover { color: var(--color-gold); background: rgba(245, 179, 1, .08); }
.tg-contact__arrow {
  position: absolute;
  bottom: -7px;
  left: calc(var(--tg-arrow-x) - 7px);
  width: 13px;
  height: 13px;
  transform: rotate(45deg);
  border-right: 1px solid var(--tg-border);
  border-bottom: 1px solid var(--tg-border);
  background: var(--color-surface);
  pointer-events: none;
}
.tg-contact[data-placement="bottom"] .tg-contact__bubble { bottom: auto; top: calc(100% + 16px); transform-origin: var(--tg-arrow-x) top; }
.tg-contact[data-placement="bottom"] .tg-contact__arrow { top: -7px; bottom: auto; transform: rotate(225deg); background: #35201e; }
.tg-contact a:focus-visible, .tg-contact button:focus-visible { outline: 2px solid var(--color-gold); outline-offset: 4px; box-shadow: none; }
@media (prefers-reduced-motion: reduce) {
  .tg-contact__motion { animation: none; }
  .tg-contact__bubble, .tg-contact.is-open .tg-contact__bubble { transition: none; transform: none; }
}
