/* Small moments of play, without moving the copy or hiding controls. */
.dog-note {
  pointer-events: none;
}
.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}
.love-button {
  position: absolute;
  bottom: 60px;
  left: auto;
  right: -48px;
  width: 52px;
  height: 52px;
  border: 0;
  background: transparent;
  color: #bd8677;
  padding: 4px;
  transform: rotate(-16deg);
  border-radius: 50%;
}
.love-button svg {
  width: 100%;
  height: 100%;
  fill: transparent;
  stroke: currentColor;
  stroke-width: 1.5;
  transition:
    fill 0.25s,
    transform 0.3s;
}
.love-button:hover svg,
.love-button.is-loved svg {
  fill: #e5b5b177;
  transform: scale(1.12);
}
.love-button::after {
  content: "Tail wags for you!";
  position: absolute;
  bottom: 65px;
  left: 50%;
  width: 145px;
  transform: translate(-50%, 8px) rotate(16deg);
  padding: 8px 10px;
  background: var(--cream);
  border: 1px solid var(--line);
  border-radius: 12px;
  color: #87564e;
  font-size: 12px;
  opacity: 0;
  pointer-events: none;
  transition:
    opacity 0.2s,
    transform 0.2s;
}
.love-button.is-loved::after {
  opacity: 1;
  transform: translate(-50%, 0) rotate(16deg);
}
.love-particle {
  position: absolute;
  left: 17px;
  top: 10px;
  font-size: 27px;
  color: #b77c6d;
  pointer-events: none;
  animation: love-rise 1s var(--delay) both ease-out;
}
.bubble {
  animation: bubble-float 7s ease-in-out infinite;
}
.bubble-two {
  animation-delay: -3s;
}
.bubble-three {
  animation-delay: -5s;
}
.hero-photo picture {
  display: block;
  transition: transform 0.8s cubic-bezier(0.2, 0.7, 0.3, 1);
}
@media (hover: hover) {
  .hero-photo:hover picture {
    transform: scale(1.025);
  }
  .benefits li:hover svg {
    transform: translateY(-4px) rotate(-7deg);
  }
  .benefits svg {
    transition: transform 0.3s;
  }
  .brand:hover img {
    transform: rotate(-2deg);
  }
  .brand img {
    transition: transform 0.3s;
  }
  .button:hover > span:last-child {
    transform: translateX(4px);
  }
  .button > span:last-child {
    transition: transform 0.2s;
  }
}
.hero-copy {
  animation: soft-arrival 0.7s both;
}
.dog-note {
  animation: note-arrival 1s 0.2s both;
}
@keyframes bubble-float {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-17px);
  }
}
@keyframes love-rise {
  from {
    opacity: 0;
    transform: translate(0, 0) scale(0.5);
  }
  20% {
    opacity: 1;
  }
  to {
    opacity: 0;
    transform: translate(var(--drift), -95px) scale(1.2);
  }
}
@keyframes soft-arrival {
  from {
    opacity: 0;
    transform: translateY(12px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
@keyframes note-arrival {
  from {
    opacity: 0;
    transform: rotate(3deg);
  }
  to {
    opacity: 1;
    transform: rotate(8deg);
  }
}
@media (min-width: 701px) and (max-width: 1150px) {
  .dog-note {
    left: 52%;
    right: auto;
    top: 22px;
    font-size: 23px;
  }
}
@media (max-width: 700px) {
  .dog-note {
    top: 12px;
    right: 30px;
    font-size: 21px;
  }
  .love-button {
    bottom: 40px;
    left: auto;
    right: 25px;
    width: 46px;
    height: 46px;
  }
  .love-button::after {
    left: 0;
    transform: translate(-65%, 8px) rotate(16deg);
  }
  .love-button.is-loved::after {
    transform: translate(-65%, 0) rotate(16deg);
  }
}
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
  }
  .hero-photo:hover picture {
    transform: none;
  }
}
.hero-photo {
  z-index: 0;
}
.hero-copy {
  z-index: 1;
  width: max-content;
  max-width: 60%;
}
.hero-photo::after {
  pointer-events: none;
}
.bubble {
  display: grid;
  place-items: center;
  padding: 0;
  min-width: 44px;
  min-height: 44px;
  background: transparent;
  border: 0;
  box-shadow: none;
  --bubble-size: 37px;
  cursor: pointer;
  isolation: isolate;
}
.bubble::before,
.bubble::after {
  content: "";
  position: absolute;
  width: var(--bubble-size);
  height: var(--bubble-size);
  border-radius: 50%;
  pointer-events: none;
}
.bubble::before {
  border: 1px solid #ffffffc9;
  background: radial-gradient(
    circle at 28% 23%,
    #fff9 0%,
    #fff1 24%,
    #e8bdce0d 50%,
    #fff3 90%
  );
  box-shadow:
    inset 2px 2px 6px #fff8,
    2px 3px 8px #bda8951a;
  transition:
    transform 0.25s,
    opacity 0.2s;
}
.bubble::after {
  border: 2px solid #f1c4c5;
  opacity: 0;
}
.bubble-two {
  --bubble-size: 18px;
}
.bubble-three {
  --bubble-size: 56px;
}
.bubble:hover::before {
  transform: scale(1.15);
  box-shadow:
    inset 2px 2px 9px #fff9,
    0 0 18px #fffd;
}
.bubble.is-popping {
  animation-play-state: paused;
  cursor: default;
}
.bubble.is-popping::before {
  animation: bubble-pop 0.4s ease-out forwards;
}
.bubble.is-popping::after {
  animation: pop-ring 0.55s ease-out forwards;
}
.bubble-droplet {
  position: absolute;
  left: calc(50% - 3px);
  top: calc(50% - 3px);
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #f1c4c5;
  box-shadow: 0 0 4px #fff8;
  animation: droplet-burst 0.65s ease-out forwards;
  pointer-events: none;
}
@keyframes bubble-pop {
  0% {
    opacity: 1;
    transform: scale(1);
  }
  45% {
    opacity: 0.85;
    transform: scale(1.3);
  }
  100% {
    opacity: 0;
    transform: scale(1.65);
  }
}
@keyframes pop-ring {
  0% {
    opacity: 0.9;
    transform: scale(0.8);
  }
  100% {
    opacity: 0;
    transform: scale(2.3);
  }
}
@keyframes droplet-burst {
  0% {
    opacity: 1;
    transform: translate(0, 0) scale(0.4);
  }
  100% {
    opacity: 0;
    transform: translate(var(--x), var(--y)) scale(0.9);
  }
}
@media (max-width: 700px) {
  .hero-copy {
    width: 100%;
    max-width: none;
  }
  .bubble-one {
    --bubble-size: 25px;
  }
  .bubble-three {
    --bubble-size: 40px;
  }
}
@media (prefers-reduced-motion: reduce) {
  .bubble.is-popping::before {
    opacity: 0;
  }
  .bubble.is-popping::after {
    display: none;
  }
}
