/* Home — the roda. Hero ring, music wheel, seat scenes, the circle to find */

/* 1 · The opening: the h1 and its sentence stand in the page itself, above the pinned ring */
.hero__open { display: grid; gap: .75rem; justify-items: center; text-align: center; padding: 1.5rem var(--gutter) .5rem; }
.hero__h1 { position: relative; z-index: 2; font-size: clamp(1.7rem, 1.2rem + 2.4vw, 3rem); text-align: center; max-width: 22ch; }
.hero__sub { font-size: clamp(1rem, .95rem + .3vw, 1.2rem); max-width: 34rem; }

/* The ring */
.hero__scene { --scene: 170vh; }
.hero__stick { padding: 1rem var(--gutter) 1.5rem; gap: 1.25rem; justify-items: center; align-content: start; }
.hero__ring { --rs: min(92vw, calc(100svh - 17rem)); width: var(--rs); min-width: min(18rem, 92vw); max-width: none; }
/* The turn follows the scroll exactly: a lagging ring would sweep its words across the seat */
.hero .ring__svg { transition: none; }
.ring__track { stroke-width: 3; opacity: .7; }
.hero__line { font-family: var(--display); color: var(--sun); font-size: clamp(1.05rem, .5rem + 2.4vw, 2.5rem); line-height: 1.1; }
.hero__side { position: relative; z-index: 2; display: grid; gap: 1rem; justify-items: center; text-align: center; max-width: 34rem; }
.pill--wrap { padding-block: .6em; text-align: center; }
.hero-seat {
  bottom: 8%; max-width: 52%; padding: .4em 1.1em; font-size: 1rem; white-space: normal; text-align: center;
  transform: translate(-50%, 50%) scaleX(var(--open, 0)); visibility: hidden; transition: none;
}
.hero-seat.is-open { visibility: visible; }
.ring__seat.pill.hero-seat:hover { transform: translate(-50%, 50%) scaleX(var(--open, 0)); }
@media (min-width: 75rem) {
  .hero__stick { grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr); column-gap: 2.5rem; align-items: center; }
  .hero__ring { --rs: min(52vw, calc(100svh - 14rem)); grid-column: 2; grid-row: 1; }
  .hero__side { grid-column: 3; grid-row: 1; justify-self: start; justify-items: start; text-align: left; max-width: 20rem; }
}

/* 2 · The music wheel: three round frames on a tan track, the front one at three o'clock */
.music { --scene: 260vh; }
.music__stick { padding: 2rem var(--gutter); gap: 2rem; }
.wheel { position: relative; width: min(80vw, 32rem); aspect-ratio: 1; justify-self: center; transform: rotate(var(--turn, 0deg)); transition: transform 1s var(--sway); }
.wheel__track { position: absolute; inset: 12%; border-radius: 50%; box-shadow: 0 0 0 .3rem var(--gourd); }
.frame {
  position: absolute; left: 50%; top: 50%; width: 36%;
  transform: translate(-50%, -50%) rotate(var(--a)) translateY(-105%) rotate(calc(-1 * var(--a) - var(--turn, 0deg)));
  transition: transform 1s var(--sway), opacity .6s var(--settle);
}
.frame:not(.is-front) { opacity: .75; }
.crop-hands { object-position: 20% 85%; transform: scale(1.35); }
.crop-gourd { object-position: 70% 70%; transform: scale(1.25); }
.music__text { display: grid; gap: 1.25rem; max-width: var(--measure); justify-self: center; }
.caps { display: grid; }
.cap { display: grid; gap: .5rem; }
/* The caption that leaves is gone at once; only the one that arrives fades in, so two are never readable together */
.js .cap { grid-area: 1 / 1; visibility: hidden; opacity: 0; transition: none; }
.js .cap.is-on { visibility: visible; opacity: 1; transition: opacity .6s var(--settle); }
.cap h3 { color: var(--sun); }
@media (prefers-reduced-motion: reduce) {
  .js .cap { grid-area: auto; visibility: visible; opacity: 1; margin-bottom: 1rem; }
}
@media (min-width: 60rem) {
  .music__stick { grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); align-items: center; column-gap: var(--gutter); }
  .wheel { width: min(44vw, 78vh); justify-self: start; margin-left: -8vw; }
  .music__text { justify-self: start; }
}

/* 3–7 · Seats: a round picture bleeding off one edge, the text in the columns it leaves */
.duo { display: grid; gap: 2rem; align-items: center; padding-block: clamp(1rem, 4vh, 3rem); }
.duo__fig { position: relative; margin-left: calc(-1 * var(--gutter)); width: calc(100% + var(--gutter)); }
.duo--right .duo__fig { margin-left: 0; }
.duo__text { display: grid; gap: 1.1rem; max-width: var(--measure); justify-items: start; }
.prices { display: flex; flex-wrap: wrap; gap: .75rem; }
.prices .pill span { font-family: var(--text); font-size: 1rem; }
.accent { position: absolute; left: 4%; bottom: -12%; width: clamp(7rem, 30%, 13rem); }
.say { font-style: italic; font-size: clamp(1.2rem, 1.1rem + .5vw, 1.45rem); margin: 0; }
.offer { display: grid; gap: .4rem; text-decoration: none; border-radius: var(--r-panel); transition: transform .35s var(--sway); width: 100%; }
.offer:hover { transform: translateX(.375rem); }
.offer .h3 { color: var(--sun); }
@media (min-width: 60rem) {
  .duo { grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--gutter); }
  .duo__fig { grid-column: 1 / span 6; grid-row: 1; margin-left: calc(-1 * var(--gutter) - 6vw); width: auto; }
  .duo__text { grid-column: 8 / -1; grid-row: 1; }
  .duo--right .duo__fig { grid-column: 6 / -1; margin-left: 0; margin-right: calc(-1 * var(--gutter) - 6vw); }
  .duo--right .duo__text { grid-column: 1 / span 5; }
  .duo--quiet .duo__fig { grid-column: 2 / span 4; margin-left: 0; }
  .duo--quiet .duo__text { grid-column: 7 / -1; }
}

/* 6 · Small word ring turning slowly round the workshop photo */
.wordring { aspect-ratio: 1; display: grid; place-items: center; }
.wordring__svg { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; animation: spin 90s linear infinite; }
.wordring__svg text { font-family: var(--display); fill: var(--cream); }
.wordring__photo { width: 74%; }
@keyframes spin { to { transform: rotate(360deg); } }

/* 8 · Find the circle: the ring again, already open, gap pointing at the pill */
.find { display: grid; gap: 2rem; align-items: center; padding-block: 2rem; }
.find__text { display: grid; gap: 1rem; max-width: var(--measure); }
.find__promo { background: var(--shade); border-radius: 1.75rem; padding: 1rem 1.25rem; font-size: var(--fs-small); }
.find__promo::before { content: ""; display: inline-block; width: .7em; height: .7em; margin-right: .5em; border-radius: 50%; background: var(--sun); }
.find__ring { width: min(92vw, 34rem); }
.find__line { font-size: clamp(.95rem, .8rem + .6vw, 1.2rem); line-height: 1.35; }
.find__seat { bottom: 8%; max-width: 54%; padding: .4em 1.1em; font-size: 1rem; white-space: normal; text-align: center; }
.find__photo { margin-right: calc(-1 * var(--gutter)); }
@media (min-width: 60rem) {
  .find { grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--gutter); }
  .find__text { grid-column: 1 / span 5; }
  .find__ring { grid-column: 6 / -1; justify-self: center; }
  .find__photo { grid-column: 4 / -1; margin-right: calc(-1 * var(--gutter) - 6vw); }
}
