/* Shared home section titles: uppercase + bullet accent on scroll. */

section .section-label {
  display: flex;
  align-items: center;
  gap: 0.35em;
  margin: 0 0 24px;
  padding: 0;
  color: #a5a5a8;
  font-size: clamp(14px, 4.2vw, 18px);
  font-weight: 500;
  line-height: 1.25;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  translate: 0 5px;
  transition: color 650ms ease, translate 650ms cubic-bezier(0.22, 0.61, 0.36, 1);
}

section .section-label::before {
  content: "";
  flex: 0 0 auto;
  width: 0.43em;
  height: 0.43em;
  align-self: flex-start;
  margin-top: 0.41em;
  border-radius: 50%;
  background-color: #bcbcbc;
  transform: scale(1);
  transition: background-color 650ms ease, transform 650ms cubic-bezier(0.22, 0.61, 0.36, 1);
}

section .section-label.is-title-active {
  color: #626268;
  translate: 0 0;
}

section .section-label.is-title-active::before {
  background-color: #319b42;
  animation: section-dot-bloom 850ms ease-out;
}

/* Readable on the dark location photograph. */
.home-location .section-label {
  margin-bottom: 28px;
  color: rgba(255, 255, 255, 0.55);
  letter-spacing: 0.12em;
  translate: none;
}

.home-location .section-label::before {
  align-self: center;
  margin-top: 0;
  width: 8px;
  height: 8px;
  background-color: rgba(255, 255, 255, 0.45);
}

.home-location .section-label.is-title-active {
  color: rgba(255, 255, 255, 0.75);
}

.home-location .section-label.is-title-active::before {
  background-color: #319b42;
  animation: section-dot-bloom 850ms ease-out;
}

@keyframes section-dot-bloom {
  from { box-shadow: 0 0 0 0 rgba(49, 155, 66, 0.24); }
  to { box-shadow: 0 0 0 7px rgba(49, 155, 66, 0); }
}

@media (min-width: 768px) {
  section .section-label {
    margin-bottom: 28px;
    font-size: 20px;
    letter-spacing: 0.06em;
  }

  .home-location .section-label {
    margin-bottom: 32px;
    font-size: 13px;
    letter-spacing: 0.12em;
  }
}

@media (min-width: 992px) {
  section .section-label {
    font-size: 22px;
  }
}

@media (prefers-reduced-motion: reduce) {
  section .section-label {
    translate: none;
    transition: none;
  }

  section .section-label::before {
    transition: none;
  }

  section .section-label.is-title-active::before {
    animation: none;
  }
}
