/* =========================================================
   STONES — 02, pinned horizontal travel on a sine path
   ========================================================= */

.stones {
  position: relative;
  background: var(--ink-000);
  overflow: hidden;
}

.stones__inner {
  min-height: 100vh;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: clamp(2rem, 5vh, 4rem);
  padding-block: clamp(4rem, 9vh, 7rem);
}

/* ---------------- head ---------------- */

.stones__head {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr);
  align-items: end;
  gap: clamp(1.25rem, 3vw, 3.5rem);
}

.stones__head .eyebrow {
  grid-column: 1 / -1;
  margin-bottom: 0.5rem;
}

.stones__head .h-sec em {
  font-style: italic;
  color: var(--gold-200);
}

.stones__head .lede {
  max-width: 46ch;
  font-size: var(--step-0);
}

@media (max-width: 900px) {
  .stones__head {
    grid-template-columns: 1fr;
  }
}

/* ---------------- the rail ---------------- */

.stones__viewport {
  position: relative;
  width: 100%;
  overflow: hidden;
  /* Room above and below for the sine to swing into without clipping */
  padding-block: clamp(3rem, 7vh, 6rem);
}

.stones__track {
  display: flex;
  align-items: center;
  gap: clamp(2rem, 5vw, 6rem);
  padding-inline: var(--gutter);
  width: max-content;
  will-change: transform;
}

.stones__card {
  display: grid;
  grid-template-columns: minmax(0, 0.92fr) minmax(0, 1.08fr);
  align-items: center;
  gap: clamp(1.5rem, 3vw, 3.25rem);
  width: min(74vw, 860px);
  will-change: transform;
}

.stones__visual {
  position: relative;
  aspect-ratio: 4 / 5;
  will-change: transform, filter;
}

.stones__badge {
  position: absolute;
  left: 4%;
  bottom: 5%;
  font-family: var(--font-mono);
  font-size: var(--step--2);
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--gold-100);
  background: rgba(6, 5, 4, 0.62);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid rgba(201, 162, 39, 0.32);
  padding: 0.6em 1em 0.55em;
  border-radius: 999px;
  white-space: nowrap;
  display: inline-flex;
  align-items: center;
  gap: 0.6em;
}

.stones__badge .ico {
  font-size: 1.35em;
  color: var(--gold-200);
}

/* The pictures are real photographs now, not painted granite plates. */
.stoneface__cut img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.stones__body {
  display: flex;
  flex-direction: column;
  gap: 0.7rem;
  will-change: opacity;
}

.stones__num {
  font-family: var(--font-mono);
  font-size: var(--step--2);
  letter-spacing: 0.24em;
  color: var(--gold-300);
}

.stones__name {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: var(--step-3);
  line-height: 0.98;
  letter-spacing: -0.015em;
  color: var(--bone-100);
}

.stones__sub {
  font-family: var(--font-serif);
  font-style: italic;
  font-weight: 300;
  font-size: var(--step-0);
  color: var(--gold-200);
  margin-top: -0.35rem;
}

.stones__text {
  font-family: var(--font-serif);
  font-weight: 300;
  font-size: var(--step--1);
  line-height: 1.68;
  color: var(--bone-300);
  max-width: 42ch;
  margin-top: 0.35rem;
}

.stones__minerals {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  margin-top: 0.75rem;
}

.stones__minerals li {
  font-family: var(--font-mono);
  font-size: 0.62rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--bone-400);
  border: 1px solid var(--rule);
  padding: 0.5em 0.85em 0.45em;
  border-radius: 999px;
}

/* ---------------- foot ---------------- */

.stones__foot {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: clamp(1rem, 2.5vw, 2rem);
}

.stones__counter {
  display: flex;
  align-items: baseline;
  gap: 0.35em;
  font-family: var(--font-mono);
  font-size: var(--step--1);
  color: var(--bone-400);
  font-variant-numeric: tabular-nums;
}

.stones__counter-now {
  color: var(--gold-200);
  font-size: var(--step-0);
}

.stones__counter-sep {
  opacity: 0.4;
}

.stones__progress {
  height: 1px;
  background: var(--rule);
  overflow: hidden;
}

.stones__progress-fill {
  display: block;
  height: 100%;
  background: var(--gold-300);
  transform: scaleX(0);
  transform-origin: left center;
}

.stones__hint {
  color: var(--bone-500);
}

/* =========================================================
   Under 900px there is no pin and no horizontal travel — the
   rail becomes a native swipe strip with snap points, which
   is what a thumb expects anyway.
   ========================================================= */

@media (max-width: 900px) {
  .stones__inner {
    min-height: 0;
  }

  .stones__viewport {
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
  }

  .stones__viewport::-webkit-scrollbar {
    display: none;
  }

  .stones__track {
    gap: 1.25rem;
  }

  .stones__card {
    grid-template-columns: 1fr;
    width: min(82vw, 420px);
    scroll-snap-align: center;
    gap: 1.5rem;
  }

  .stones__visual {
    aspect-ratio: 1 / 1;
  }

  .stones__foot {
    grid-template-columns: auto minmax(0, 1fr);
  }

  .stones__hint {
    display: none;
  }
}
