/* The cat (see js/cat.js). Remove this file and its <link> to undo. */
.cat {
  position: fixed; right: clamp(16px, 3vw, 40px); bottom: clamp(16px, 3vh, 32px); z-index: 55;
  display: grid; justify-items: end;
  transform: translateY(calc(100% + 40px)); opacity: 0;
  transition: transform .8s cubic-bezier(.25, 1.2, .45, 1), opacity .5s ease;
  pointer-events: none;
}
.cat.is-up { transform: none; opacity: 1; pointer-events: auto; }
.cat__btn {
  position: relative; width: 140px; height: 140px; padding: 0; border-radius: 50%; overflow: hidden; cursor: pointer;
  border: 2px solid var(--gold);
  box-shadow: 0 0 0 4px rgba(10, 17, 29, .85), 0 0 0 5px rgba(233, 184, 67, .45), 0 16px 34px -8px rgba(0, 0, 0, .75);
  background: #0a0806;
  animation: cat-glow 3.2s ease-in-out infinite;
}
.cat__btn img, .cat__btn video { width: 100%; height: 100%; object-fit: cover; display: block; transform: scale(1.04); transition: transform .6s ease; }
.cat__btn:hover img, .cat__btn:hover video { transform: scale(1.1); }
.cat__btn:focus-visible { outline: 2px solid var(--gold-hi); outline-offset: 6px; }
@keyframes cat-glow {
  0%, 100% { box-shadow: 0 0 0 4px rgba(10,17,29,.85), 0 0 0 5px rgba(233,184,67,.45), 0 16px 34px -8px rgba(0,0,0,.75), 0 0 0 0 rgba(240,164,71,.0); }
  50% { box-shadow: 0 0 0 4px rgba(10,17,29,.85), 0 0 0 5px rgba(233,184,67,.6), 0 16px 34px -8px rgba(0,0,0,.75), 0 0 28px 6px rgba(240,164,71,.35); }
}

.cat__bubble {
  position: absolute; right: 0; bottom: calc(100% + 16px); width: max-content; max-width: min(320px, 78vw);
  display: grid; gap: 12px; justify-items: start; padding: 18px 22px; border-radius: 12px;
  background: var(--night-2); border: 3px solid #a8740f; box-shadow: inset 0 0 0 1px rgba(248, 213, 106, .25), 0 16px 34px -10px rgba(0,0,0,.75);
}
.cat__bubble[hidden] { display: none; }
.cat__bubble::after { content: ""; position: absolute; right: 60px; bottom: -10px; width: 16px; height: 16px; background: var(--night-2); border-right: 3px solid #a8740f; border-bottom: 3px solid #a8740f; transform: rotate(45deg); }
.cat__close { position: absolute; top: 4px; right: 6px; width: 28px; height: 28px; border: 0; background: none; color: var(--cream-3); font: 400 1.2rem/1 var(--sans); cursor: pointer; }
.cat__close:hover { color: var(--gold); }
.cat__line { margin: 0; padding-right: 20px; font: 400 1.28rem/1.3 var(--serif); color: var(--cream); }
.cat__call { font: 700 .95rem/1 var(--cond); letter-spacing: .16em; text-transform: uppercase; color: var(--gold); text-decoration: none; border-bottom: 1px solid rgba(233,184,67,.5); padding-bottom: 3px; }
.cat__call:hover { color: var(--gold-hi); }

/* Phones: sit above the pinned call bar */
@media (max-width: 720px) {
  .cat { right: 14px; bottom: calc(76px + env(safe-area-inset-bottom)); }
  .cat__btn { width: 104px; height: 104px; }
  .cat__bubble::after { right: 44px; }
}
@media (prefers-reduced-motion: reduce) {
  .cat { transition: opacity .3s; }
  .cat__btn { animation: none; }
}
