.steps-line {
  position: absolute;
  top: 0;
  right: 0;
  left: 0;
  height: 1px;
  background: rgb(255 255 255 / 0.16);
  transform: scaleX(0);
  transform-origin: left center;
}

.steps-line::after {
  content: "";
  position: absolute;
  top: -1px;
  left: 0;
  width: 22%;
  height: 3px;
  border-radius: 999px;
  background: linear-gradient(90deg, transparent, #dfc9a7, transparent);
  opacity: 0;
}

.steps-dot {
  position: absolute;
  top: 0;
  left: 0;
  z-index: 1;
  width: 10px;
  height: 10px;
  border-radius: 999px;
  background: #c7a77b;
  box-shadow: 0 0 0 5px #11110f;
  transform: translateY(-50%);
}

.steps-dot-mobile {
  top: 0.55rem;
  left: 0;
  transform: translate(-50%, -50%);
}

@media (prefers-reduced-motion: no-preference) {
  .steps-dot {
    transform: translateY(-50%) scale(0);
  }

  .steps-dot-mobile {
    transform: translate(-50%, -50%) scale(0);
  }

  [data-steps].is-playing .steps-line {
    animation: steps-draw 1.35s cubic-bezier(0.22, 1, 0.36, 1) forwards;
  }

  [data-steps].is-playing .steps-line::after {
    animation: steps-travel 4.4s ease-in-out 1.25s infinite;
  }

  [data-steps].is-playing .steps-dot {
    animation:
      steps-dot-in 0.7s cubic-bezier(0.22, 1, 0.36, 1) forwards,
      steps-dot-pulse 2.8s ease-in-out infinite;
    animation-delay: calc(0.4s + var(--step) * 0.22s), calc(1.15s + var(--step) * 0.22s);
  }

  [data-steps].is-playing .steps-dot-mobile {
    animation:
      steps-dot-in-mobile 0.7s cubic-bezier(0.22, 1, 0.36, 1) forwards,
      steps-dot-pulse 2.8s ease-in-out infinite;
    animation-delay: calc(0.2s + var(--step) * 0.18s), calc(0.95s + var(--step) * 0.18s);
  }
}

@keyframes steps-draw {
  to {
    transform: scaleX(1);
  }
}

@keyframes steps-travel {
  0% {
    transform: translateX(-40%);
    opacity: 0;
  }
  14% {
    opacity: 1;
  }
  86% {
    opacity: 1;
  }
  100% {
    transform: translateX(430%);
    opacity: 0;
  }
}

@keyframes steps-dot-in {
  0% {
    transform: translateY(-50%) scale(0);
  }
  68% {
    transform: translateY(-50%) scale(1.22);
  }
  100% {
    transform: translateY(-50%) scale(1);
  }
}

@keyframes steps-dot-in-mobile {
  0% {
    transform: translate(-50%, -50%) scale(0);
  }
  68% {
    transform: translate(-50%, -50%) scale(1.22);
  }
  100% {
    transform: translate(-50%, -50%) scale(1);
  }
}

.site-footer {
  margin-top: 3.5rem;
  padding-top: 4.75rem;
}

@media (min-width: 768px) {
  .site-footer {
    margin-top: 5.5rem;
    padding-top: 6.5rem;
  }
}

.usm-form .wpcf7-form {
  display: flex;
  flex-direction: column;
  gap: 1.15rem;
}

.usm-form label {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  color: rgb(245 242 235 / 0.55);
  font-size: 0.68rem;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.usm-form input[type="text"],
.usm-form input[type="email"],
.usm-form input[type="tel"],
.usm-form textarea {
  width: 100%;
  border: 1px solid rgb(255 255 255 / 0.12);
  border-radius: 0.9rem;
  background: rgb(255 255 255 / 0.04);
  color: #f5f2eb;
  padding: 0.9rem 1rem;
  font-family: Manrope, sans-serif;
  font-size: 1rem;
  font-weight: 400;
  letter-spacing: 0;
  text-transform: none;
}

.usm-form textarea {
  min-height: 150px;
  resize: vertical;
}

.usm-form input::placeholder,
.usm-form textarea::placeholder {
  color: rgb(245 242 235 / 0.32);
}

.usm-form input:focus,
.usm-form textarea:focus {
  outline: 2px solid #c7a77b;
  outline-offset: 2px;
}

.usm-form .wpcf7-submit {
  width: fit-content;
  margin-top: 0.35rem;
  border: 0;
  border-radius: 999px;
  background: #f5f2eb;
  color: #11110f;
  padding: 0.85rem 1.6rem;
  font-family: Manrope, sans-serif;
  font-size: 0.95rem;
  font-weight: 500;
  letter-spacing: 0;
  text-transform: none;
  cursor: pointer;
}

.usm-form .wpcf7-submit:hover {
  background: #dfc9a7;
}

.usm-form .wpcf7-not-valid-tip {
  margin-top: 0.35rem;
  color: #dfc9a7;
  font-size: 0.8rem;
  letter-spacing: 0;
  text-transform: none;
}

.usm-form .wpcf7-response-output {
  margin: 0.25rem 0 0;
  border: 1px solid rgb(199 167 123 / 0.4) !important;
  border-radius: 1rem;
  color: #f5f2eb;
  padding: 0.9rem 1rem;
}

.cupping-hero,
.service-hero {
  object-position: center 42%;
}

.story-hero {
  height: 600px;
  max-height: 600px;
}

.story-hero-copy {
  padding-top: 6.5rem;
  padding-bottom: 2.25rem;
}

.story-hero h1 {
  font-size: clamp(2.6rem, 5vw, 4.25rem);
}

.confirm-page {
  display: flex;
  align-items: center;
  min-height: 100svh;
  padding: 8.5rem 0 5rem;
}

.confirm-when {
  max-width: 16ch;
  margin-top: 1rem;
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: clamp(2.4rem, 4vw, 3.75rem);
  line-height: 0.95;
  color: #f5f2eb;
}

.confirm-time {
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: clamp(4.5rem, 8vw, 6.5rem);
  line-height: 0.85;
  color: #dfc9a7;
}

.confirm-time-link {
  font-size: clamp(2.4rem, 4vw, 3.5rem);
  line-height: 0.95;
  text-decoration: none;
}

.story-close {
  position: relative;
  overflow: hidden;
  border: 1px solid rgb(199 167 123 / 0.28);
  border-radius: 28px;
  background:
    radial-gradient(ellipse at 100% 0%, rgb(199 167 123 / 0.18), transparent 42%),
    linear-gradient(180deg, #1b1914 0%, #12110e 100%);
}

.story-close::before {
  content: "";
  position: absolute;
  top: 0;
  right: 12%;
  left: 12%;
  height: 1px;
  background: linear-gradient(90deg, transparent, #dfc9a7, transparent);
}

.story-close-inner {
  display: flex;
  flex-direction: column;
  gap: 2.75rem;
  padding: 2.75rem 1.75rem 2.5rem;
}

.story-close-side {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

@media (min-width: 768px) {
  .story-close-inner {
    flex-direction: row;
    align-items: flex-end;
    justify-content: space-between;
    gap: 4rem;
    padding: 4.5rem 4rem 4rem;
  }

  .story-close-side {
    align-items: flex-end;
    min-width: 220px;
    padding-bottom: 0.25rem;
    text-align: right;
  }
}

@keyframes steps-dot-pulse {
  0%,
  100% {
    box-shadow: 0 0 0 5px #11110f, 0 0 0 0 rgb(199 167 123 / 0.5);
  }
  55% {
    box-shadow: 0 0 0 5px #11110f, 0 0 0 9px rgb(199 167 123 / 0);
  }
}

.intl-row {
  border-color: rgb(255 255 255 / 0.1);
}

.intl-row:hover {
  border-color: rgb(255 255 255 / 0.3);
  background: rgb(255 255 255 / 0.04);
}

.intl-row-featured,
.intl-row-featured:hover {
  border-color: rgb(199 167 123 / 0.55);
  background: linear-gradient(180deg, rgb(199 167 123 / 0.2), rgb(199 167 123 / 0.05));
}

.intl-price-side {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.6rem;
}

@media (min-width: 768px) {
  .intl-price-side {
    align-items: flex-end;
    text-align: right;
  }
}

.intl-currency {
  margin-left: 0.15em;
  font-size: 0.5em;
  color: #dfc9a7;
}

.intl-badge {
  display: inline-flex;
  border: 1px solid rgb(199 167 123 / 0.6);
  border-radius: 999px;
  padding: 0.3rem 0.8rem;
  color: #dfc9a7;
  font-family: Manrope, sans-serif;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.intl-badge-solid {
  border-color: #c7a77b;
  background: #c7a77b;
  color: #11110f;
}

.intl-stars {
  color: #c7a77b;
  font-size: 15px;
  letter-spacing: 0.3em;
}

.intl-detail {
  margin-top: 0.5rem;
  color: #f5f2eb;
  font-weight: 600;
}
