/* Maroon Marks: scroll-driven spinning coin, placed between the hero headline and intro.
   Everything here is scoped to .coin-spin so the rest of the site is unaffected. */

/* Lets the white band run edge to edge without a sideways scrollbar.
   "clip" (unlike "hidden") keeps position: sticky working. */
html { overflow-x: clip; }

.coin-spin {
  position: relative;
  height: 280vh;                         /* scroll distance for one full turn */
  width: 100vw;
  margin: 8px 0 30px calc(50% - 50vw);   /* break out of the centered container */
  background: #f7f5ef;                   /* same cream as the rest of the site */
  text-align: left;
}
.coin-spin__stage {
  position: sticky; top: 0;
  height: 100vh; height: 100svh;
  display: grid; place-items: center;
  overflow: hidden;
}
.coin-spin__canvas {
  position: relative;
  width: min(72vh, 46vw, 760px);
  height: min(72vh, 46vw, 760px);
}
.coin-spin__shadow {
  position: absolute; left: 50%; top: calc(50% + min(36vh, 23vw, 380px) - 12px);
  width: min(42vh, 27vw, 440px); height: 22px;
  transform: translateX(-50%); border-radius: 50%;
  background: radial-gradient(closest-side, rgba(40, 39, 32, .28), rgba(40, 39, 32, 0));
  pointer-events: none;
}

.coin-spin__cap {
  position: absolute; top: 50%; width: min(300px, 20vw);
  transition: opacity .45s ease, transform .45s ease;
}
.coin-spin__cap--left { left: 5vw; transform: translateY(-50%); }
.coin-spin__cap--right { right: 5vw; transform: translateY(-50%); text-align: right; }
.coin-spin__cap.is-off { opacity: 0; pointer-events: none; }
.coin-spin__cap--left.is-off { transform: translate(-16px, -50%); }
.coin-spin__cap--right.is-off { transform: translate(16px, -50%); }
.coin-spin__cap h3 {
  font-family: Editorial, Georgia, serif; font-weight: 400;
  font-size: clamp(30px, 2.6vw, 40px); line-height: 1.12; letter-spacing: -1px;
  color: #282720; margin: 10px 0 12px;
}
.coin-spin__cap p { font-size: 14px; line-height: 1.8; color: #65635b; margin: 0; }

/* Tablets and phones: coin on top, caption underneath. */
@media (max-width: 1100px) {
  .coin-spin__canvas { width: min(56vh, 84vw); height: min(56vh, 84vw); margin-top: -18vh; }
  .coin-spin__shadow { top: calc(50% - 18vh + min(28vh, 42vw) - 10px); width: min(32vh, 48vw); }
  .coin-spin__cap, .coin-spin__cap--left, .coin-spin__cap--right {
    left: 50%; right: auto; top: auto; bottom: max(7vh, 40px);
    width: calc(100% - 40px); max-width: 440px;
    transform: translateX(-50%); text-align: center;
  }
  .coin-spin__cap--left.is-off, .coin-spin__cap--right.is-off { transform: translate(-50%, 12px); }
  .coin-spin__cap h3 { font-size: 32px; margin: 8px 0 10px; }
}
@media (max-width: 600px) {
  .coin-spin__cap h3 { font-size: 28px; }
  .coin-spin__cap p { font-size: 13px; }
}
@media (prefers-reduced-motion: reduce) { .coin-spin__cap { transition: none; } }
