/* About page: the opening stadium, the leader's round photo, the owner's words, the rhythm arc, two rooms, the open ring. */

.a-open {
  max-width: 90rem; margin-inline: auto;
  padding: clamp(1rem, 3vh, 2rem) var(--gutter) 0;
  display: grid; gap: clamp(1rem, 3vh, 1.75rem);
}
.a-open__text { display: grid; gap: 1rem; position: relative; z-index: 2; }
.a-open h1 { font-size: clamp(1.9rem, 1.1rem + 3vw, 3.5rem); max-width: 24em; }
.a-open__photo { position: relative; width: 100%; aspect-ratio: 2 / 1; margin: 0; }
.a-open__photo img { position: absolute; inset: 0; }
@media (min-width: 48rem) {
  .a-open__photo { aspect-ratio: 2.8 / 1; max-height: 42vh; }
}

/* Sections */
.a-sec {
  max-width: 90rem; margin: clamp(3rem, 9vh, 6rem) auto 0;
  padding-inline: var(--gutter);
}
.a-sec > h2 { margin-bottom: 1.5rem; }
.a-sec + .dot-rule { margin-top: clamp(3rem, 8vh, 5rem); }

/* Who leads the circle */
.a-who { display: grid; gap: 2rem; align-items: center; }
.a-who__photo { width: min(100%, 28rem); justify-self: center; margin: 0; }
.a-who__text h2 { margin: 0 0 1rem; }
@media (min-width: 60rem) {
  .a-who { grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--gutter); }
  .a-who__photo { grid-column: 1 / span 5; width: 100%; margin-left: calc(var(--gutter) * -2); }
  .a-who__text { grid-column: 7 / -1; }
}

/* How we work: the owner's words, large, italic */
.a-words-panel { padding: clamp(1.5rem, 5vw, 4rem); }
.a-words {
  font-style: italic; font-size: clamp(1.45rem, 1.05rem + 1.7vw, 2.4rem);
  line-height: 1.35; max-width: 52ch;
}
.a-words p + p { margin-top: 1em; }

/* The rhythm arc */
.a-arc {
  display: block; width: 100%; max-width: 56rem; margin: 0 auto;
  padding: 1rem 0; background: none; border: 0; border-radius: 2rem;
  color: inherit; cursor: pointer; min-height: 2.75rem;
}
.a-arc svg { width: 100%; height: auto; overflow: visible; }
.arc__dot {
  fill: var(--cream); transform-box: fill-box; transform-origin: center;
  transition: fill .3s var(--settle), stroke .3s var(--settle), transform .45s var(--sway);
}
.arc__dot--E { fill: none; stroke: var(--cream); stroke-width: 1.6; }
.arc__dot.is-lit { fill: var(--sun); transform: scale(1.4); }
.arc__dot--E.is-lit { fill: none; stroke: var(--sun); }
.a-arc[aria-pressed="true"] { background: var(--shade); }
.a-cap { margin: 0.5rem auto 0; text-align: center; max-width: 46ch; }

/* Music paragraph with the pandeiro */
.a-music { display: grid; gap: 2rem; align-items: center; margin-top: clamp(2rem, 6vh, 4rem); }
.a-music__text h2 { margin: 0 0 1rem; }
.a-music__photo { width: min(100%, 28rem); justify-self: center; margin: 0; }
@media (min-width: 60rem) {
  .a-music { grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--gutter); }
  .a-music__text { grid-column: 1 / span 6; }
  .a-music__photo { grid-column: 8 / -1; width: 100%; margin-right: calc(var(--gutter) * -2); }
}

/* Two arts, two rooms */
.a-rooms { display: grid; gap: 1.25rem; }
.a-room { display: grid; gap: 1rem; align-content: start; }
.a-room p { max-width: var(--measure); }
@media (min-width: 52rem) {
  .a-rooms { grid-template-columns: 1fr 1fr; gap: 1.5rem; align-items: start; }
  .a-room--b { margin-top: 3rem; }
}

/* The open ring that closes the page */
.a-close { display: grid; justify-items: center; gap: 1.5rem; text-align: center; }
.a-close > h2 { margin: 0; }
.a-ring { width: 100%; max-width: 28rem; margin-bottom: 2.5rem; }
.a-ring__dots { position: absolute; inset: 0; }

/* Reduced motion: the pattern shows lit and still */
@media (prefers-reduced-motion: reduce) {
  .arc__dot--L { fill: var(--sun); }
  .arc__dot { transition: none; }
}
