.graphy {
  max-width: var(--max-width);
  margin: 0 auto;
  background-color: var(--teal);
  text-align: center;
  position: relative;
  @media (min-width: 769px) {
    cursor: none;
  }
}

.graphy__wrap {
  padding: var(--offset-y) var(--offset-x);
  @media (min-width: 769px) {
    padding: var(--offset-y) calc(2*var(--offset-x));
  }
}

.graphy__main {
  position: relative;
  width: fit-content;
  margin: 0 auto;
}

.graphy__main > img {
  display: block;
}

.graphy__dots {
  position: absolute;
  inset: 0;
  width: 100%;
  max-width: 739px;
  aspect-ratio: 739 / 635; 
  @media (max-width: 768px) {
    display: none;
  }
}

.graphy__dot {
  position: absolute;
  transform: translate(-50%, -50%);
}

.graphy__dot--ext {
  padding: 0;
  border: none;
  background: none; 
}

.graphy__dot-point {
  display: block;
  width: 12px; 
  aspect-ratio: 1 / 1;
  background: white;
  border-radius: 50%;
  transition: .3s ease-in-out;
}

.graphy__dot-point::before {
  content: '';
  border-radius: 100%;
  display: block;
  position: absolute;
  inset: 0;
  width: 12px;
  aspect-ratio: 1/1;
  box-shadow: inset 0 0 0 .5px white;
  transition: all ease-in-out 400ms;
  animation: pulse-long;
  animation-iteration-count: infinite;
  animation-duration: 1800ms;
  opacity: 1;
}

.graphy__dot-text {
  position: absolute;
  top: -50%;
}

.graphy__dot-text--left {
  right: 35px;
  text-align: right;
}

.graphy__dot-text--right {
  text-align: left;
  left: 35px;
}

.graphy__dot-text > span {
  font: var(--petit);
  color: white;
  text-wrap: nowrap;
  transition: .5s ease-in-out;
  @media (max-width: 1125px) {
    font: var(--short);
  }
}

.graphy__dot-text > p {
  font-size: 1rem;
  line-height: 1.5;
  color: white;
  width: max-content;
  max-width: 230px;
  opacity: 0;
  transition: opacity .3s ease-in-out;
  pointer-events: none;
  height: 0;
  @media (max-width: 1125px) {
    font: var(--demi);
    font-weight: 400;
    line-height: 1.25;
    max-width: 150px;
  }
}

@keyframes pulse-long {
  0% {
    transform: scale(1)
  }
  60% {
    transform: scale(3.75)
  }
  100% {
    opacity: 0;
  }
}

.graphy__cursor {
  width: 12px;
  background: white;
}

.graphy__cursor,
.graphy__cursor-ring {
  position: absolute;
  inset: 0;
  will-change: transform;
  border-radius: 50%;
  aspect-ratio: 1/1;
  transform: translate(-50%, -50%);
  z-index: 9999;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.2s ease-in-out;
} 

.graphy__cursor-ring {
  width: 44px;
  box-shadow: 0 0 0 1px white;
}
