/* "How sound meets us" (round 2, Nov 20 2026): one session, step by step. Soft charcoal drawings with small, slow, looping movement;
   nothing bold. Everything still for visitors who ask for reduced motion. */
.as .as-sec, .as .as-wide { padding: 0; }
.as-head { max-width: 46rem; }
.as-head .lede { max-width: 44rem; }

/* the map */
.as-mapfig { margin: clamp(2.4rem, 5vw, 3.6rem) 0 0; max-width: 62rem; }
.as-mapfig figcaption { font-size: .9rem; color: var(--muted); margin-top: .6rem; max-width: 40rem; }
.as-map a { cursor: pointer; }
.as-map a:hover circle { stroke: #B08257; }

/* each step: words beside the drawing; the drawing stays in view while the words are read */
.as-sec { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.08fr); gap: clamp(2rem, 5vw, 5rem); align-items: start; margin-top: clamp(4rem, 8vw, 6.5rem); }
.as-sec.flip .as-txt { order: 2; } .as-sec.flip .as-vis { order: 1; }
.as-vis { position: sticky; top: 6.5rem; }
.as-k { display: flex; align-items: center; gap: .7rem; font-size: .72rem; letter-spacing: .16em; text-transform: uppercase; color: var(--muted); margin-bottom: .9rem; }
.as-n { display: inline-flex; align-items: center; justify-content: center; width: 1.9rem; height: 1.9rem; border: 1px solid var(--line-2); border-radius: 50%;
        font-family: var(--serif); font-size: 1.05rem; letter-spacing: 0; color: var(--ink); text-transform: none; }
.as-txt h2, .as-wide h2 { margin: 0 0 .9rem; }
.as-moment { font-family: var(--serif); font-size: clamp(1.18rem, 1.7vw, 1.36rem); line-height: 1.45; color: var(--ink); margin: 0 0 1.1rem; }
.as-txt p, .as-wide p { color: var(--ink-2); line-height: 1.75; max-width: 36rem; }
.as-txt p + p { margin-top: .9rem; }
.as-term { margin: 1.3rem 0 0; padding: .1rem 0 .1rem 1rem; border-left: 1px solid #B08257; max-width: 34rem; }
.as-term + .as-term { margin-top: 1rem; }
.as-term-k { display: block; font-size: .66rem; letter-spacing: .16em; text-transform: uppercase; color: var(--muted); }
.as-term-n { display: block; font-family: var(--serif); font-size: 1.18rem; color: var(--ink); margin: .15rem 0 .2rem; }
.as-term p { margin: 0 !important; font-size: .95rem; line-height: 1.6; }

/* drawings */
.as-fig { display: block; width: 100%; height: auto; overflow: visible; }
.as-clip { overflow: hidden; }
.as-lab { font: 400 14px var(--sans); letter-spacing: .01em; }
.as-band { font: 400 21px var(--serif); }
.as-lv { font-size: 13px; }
.as-num { font: 400 14px var(--serif); }
.as-halo text { paint-order: stroke; stroke: #FBFAF8; stroke-width: 7px; stroke-linejoin: round; }
.as-bands-m { display: none; }

/* motion: slow, small, looping */
.as-scroll { animation: as-scroll var(--d, 8s) linear infinite; }
@keyframes as-scroll { to { transform: translateX(var(--shift)); } }
.as-breathe { animation: as-breathe 7s ease-in-out infinite; animation-delay: var(--dl, 0s); }
@keyframes as-breathe { 0%, 100% { opacity: .55; } 50% { opacity: 1; } }
.as-ripples circle { transform-box: fill-box; transform-origin: center; opacity: 0; stroke-width: 1.1; animation: as-ripple 7.6s var(--ease) infinite; }
.as-ripples circle:nth-child(2) { animation-delay: 1.9s; }
.as-ripples circle:nth-child(3) { animation-delay: 3.8s; }
.as-ripples circle:nth-child(4) { animation-delay: 5.7s; }
@keyframes as-ripple { 0% { transform: scale(.55); opacity: 0; } 14% { opacity: .42; } 100% { transform: scale(3.1); opacity: 0; } }
.as-ripples.small circle { animation-duration: 5.4s; animation-name: as-ripple-s; }
.as-ripples.small circle:nth-child(2) { animation-delay: 1.8s; } .as-ripples.small circle:nth-child(3) { animation-delay: 3.6s; }
@keyframes as-ripple-s { 0% { transform: scale(.8); opacity: 0; } 15% { opacity: .4; } 100% { transform: scale(2.4); opacity: 0; } }
.as-ripples.slow circle { animation-duration: 11s; }
.as-ripples.slow circle:nth-child(2) { animation-delay: 3.6s; } .as-ripples.slow circle:nth-child(3) { animation-delay: 7.2s; }
.as-pulse ellipse { transform-box: fill-box; transform-origin: center; opacity: 0; animation: as-pulse 3.6s ease-out infinite; }
.as-pulse.late ellipse { animation-delay: 1.8s; }
@keyframes as-pulse { 0% { transform: scale(.85); opacity: 0; } 20% { opacity: .75; } 100% { transform: scale(1.45); opacity: 0; } }
.as-alert { transform-box: fill-box; transform-origin: center; opacity: 0; animation: as-alert 4.8s ease-out infinite; }
@keyframes as-alert { 0% { transform: scale(.6); opacity: 0; } 6% { opacity: .9; } 38% { transform: scale(2.6); opacity: 0; } 100% { opacity: 0; } }
.as-band-hl { animation: as-band 18s ease-in-out infinite; }
@keyframes as-band { 0%, 12% { transform: translateY(0); } 50%, 72% { transform: translateY(174px); } 100% { transform: translateY(0); } }
.as-draw { stroke-dasharray: 1; stroke-dashoffset: 1; animation: as-draw 11s ease-out infinite; }
@keyframes as-draw { 0% { stroke-dashoffset: 1; opacity: 1; } 48% { stroke-dashoffset: 0; opacity: 1; } 78% { stroke-dashoffset: 0; opacity: 1; } 94% { stroke-dashoffset: 0; opacity: 0; } 100% { stroke-dashoffset: 1; opacity: 0; } }
.as-heart { transform-box: fill-box; transform-origin: center; animation: as-heart 4s ease-in-out infinite; }
@keyframes as-heart { 0%, 100% { transform: scale(1); } 50% { transform: scale(1.6); } }

/* after the steps */
.as-wide { margin-top: clamp(4rem, 8vw, 6.5rem); }
.as-wide .as-w-p { max-width: 44rem; }
.as-take { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.6rem 2.4rem; margin-top: 1.4rem; }
.as-take h3 { font-family: var(--serif); font-weight: 300; font-size: 1.32rem; color: var(--ink); margin: 0 0 .35rem; }
.as-take p { margin: 0; }
.as-from { display: block; font-size: .7rem; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); margin-top: .5rem; }
.as-motto { font-family: var(--serif); font-size: clamp(1.25rem, 2vw, 1.5rem); color: var(--ink) !important; margin-top: 1.5rem !important; }
.as-gloss { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.1rem 2.4rem; margin: 1.2rem 0 0; }
.as-gloss dt { font-family: var(--serif); font-size: 1.15rem; color: var(--ink); }
.as-gloss dd { margin: .2rem 0 0; color: var(--ink-2); font-size: .95rem; line-height: 1.6; }
.as-src { max-width: 46rem; margin-top: clamp(3.2rem, 6vw, 4.6rem); }

@media (max-width: 900px) {
  .as-sec { grid-template-columns: 1fr; gap: 1.4rem; }
  .as-sec .as-txt, .as-sec.flip .as-txt { order: 1; } .as-sec .as-vis, .as-sec.flip .as-vis { order: 2; }
  .as-vis { position: static; }
  .as-take, .as-gloss { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 640px) {
  .as-take, .as-gloss { grid-template-columns: 1fr; }
  .as-lab { font-size: 16px; }
  .as-ladder .as-st { display: none; }
  .as-bands-m { display: grid; gap: .45rem; list-style: none; padding: 0; margin: .6rem 0 0; }
  .as-bands-m li { color: var(--ink-2); font-size: .95rem; line-height: 1.5; }
  .as-bands-m span { font-family: var(--serif); font-size: 1.08rem; color: var(--ink); margin-right: .45rem; }
}
@media (prefers-reduced-motion: reduce) {
  .as-scroll, .as-breathe, .as-ripples circle, .as-pulse ellipse, .as-alert, .as-band-hl, .as-draw, .as-heart { animation: none; }
  .as-ripples circle { opacity: .2; transform: none; }
  .as-pulse ellipse { opacity: .5; }
  .as-draw { stroke-dashoffset: 0; }
}

/* step 6: the words in two columns, the ladder full width beneath them */
.as-wide-step { grid-template-columns: 1fr; gap: 1.6rem; }
.as-wide-step .as-vis { position: static; max-width: 64rem; }
.as-wide-step .as-txt { max-width: 64rem; }
.as-two { display: grid; grid-template-columns: 1fr 1fr; gap: 0 clamp(2rem, 4vw, 3.6rem); }
.as-two p { margin: 0 !important; max-width: none; }
.as-wide-step .as-term { max-width: 40rem; }
@media (max-width: 900px) { .as-two { grid-template-columns: 1fr; gap: .9rem; } }

/* closing drawing: your rhythm settles first, then theirs follows (a 24 s loop) */
.as-busy { animation: as-busy 24s ease-in-out infinite; }
.as-calm { animation: as-calm 24s ease-in-out infinite; }
.as-busy.b { animation-name: as-busy-b; } .as-calm.b { animation-name: as-calm-b; }
@keyframes as-busy { 0%, 12% { opacity: 1; } 26%, 88% { opacity: 0; } 100% { opacity: 1; } }
@keyframes as-calm { 0%, 12% { opacity: 0; } 26%, 88% { opacity: 1; } 100% { opacity: 0; } }
@keyframes as-busy-b { 0%, 38% { opacity: 1; } 54%, 88% { opacity: 0; } 100% { opacity: 1; } }
@keyframes as-calm-b { 0%, 38% { opacity: 0; } 54%, 88% { opacity: 1; } 100% { opacity: 0; } }
.as-link { animation: as-link 24s ease-in-out infinite; }
@keyframes as-link { 0%, 26% { opacity: 0; } 36%, 84% { opacity: .9; } 94%, 100% { opacity: 0; } }
@media (prefers-reduced-motion: reduce) { .as-busy { animation: none; opacity: 0; } .as-calm { animation: none; opacity: 1; } .as-link { animation: none; opacity: .9; } }

/* Nov 20 2026 sweep: the curve's labels stay readable on phones (Home and this page) */
@media (max-width: 640px) {
  .as-map .as-lab, .as-map .as-lv { font-size: 23px; }
  .as-map .as-num { font-size: 18px; }
  .as-map circle[r="12"] { r: 16; }
}

/* Nov 25 2026: the leaf blower, a short quiet block */
.as-leaf .as-w-p { max-width: 44rem; font-family: var(--serif); font-size: 1.12rem; line-height: 1.75; color: var(--ink); }

/* Nov 25 2026 (round 2): "A typical one-to-one session" opens the page (the old session page folded in) */
#session { scroll-margin-top: 6rem; }
.as-session { margin-top: clamp(2rem, 5vw, 3.5rem); }
.as-session p { max-width: 42rem; color: var(--ink-2); line-height: 1.78; margin: 0 0 1.05em; }
.as-session .as-note { font-size: .92rem; border-left: 1px solid var(--line-2); padding-left: 1rem; margin-top: 1.5rem; }
.as-session .as-next { font-family: var(--serif); font-size: 1.15rem; color: var(--ink); margin: 2.4rem 0 0; }

/* ============================================================
   PHONE PASS (Nov 25 2026): "How sound meets us" (and the curve on Home) on phones and tablets.
   ============================================================ */
/* Phone pass (Nov 25 2026): the curve. Phones get the narrower drawing of the same map (build/about_sound.py,
   .as-mapm), whose labels read at 11-12 px; the wide one's were 8 px. Tablets keep the wide map with larger labels. */
.as-mapm { display: none; }
.as-mapm a { cursor: pointer; }
.as-mapm .as-lab { font-size: 16.5px; }
.as-mapm .as-num { font-size: 15px; }
@media (max-width: 600px) {
  .as-map { display: none; }
  .as-mapm { display: block; }
}
@media (min-width: 601px) and (max-width: 1239px) {
  .as-map .as-lab, .as-map .as-lv { font-size: 18px; }
  .as-map .as-num { font-size: 16px; }
  .as-map circle[r="12"] { r: 14; }
}

/* Phone pass (Nov 25 2026): the serif "moment" line of each step was meant at 1.45 line height but a
   general rule spread it to 1.75, so it read as loose double-spaced lines on a phone. */
@media (max-width: 1239px) {
  .as-txt p.as-moment, .as-wide p.as-moment { line-height: 1.5; }
  .as-leaf .as-w-p { line-height: 1.6; }
}

/* Phone pass (Nov 25 2026): phones. Steps start a little sooner after the drawing above them; key-term
   boxes and the glossary sit a touch tighter. */
@media (max-width: 600px) {
  .as-sec, .as-wide { margin-top: 3.6rem; }
  .as-mapfig { margin-top: 2rem; }
  .as-mapfig figcaption { margin-top: 0.9rem; font-size: 0.88rem; line-height: 1.6; }
  .as-term { margin-top: 1.2rem; }
  .as-gloss { gap: 1rem; }
  .as-take { gap: 1.5rem; }
  .as-session .as-next { margin-top: 2rem; }
}

/* Phone pass (Nov 25 2026): step 6, the brainwave ladder. On phones its descriptions are already hidden
   (the list below the drawing carries them), which left the waves and names in the left half of the drawing
   at 7-9 px. The drawing is shown from its left edge at nearly twice the size, so names and waves read;
   the highlight band is trimmed to that width. */
@media (max-width: 640px) {
  .as-wide-step .as-vis { overflow: hidden; }
  .as-wide-step .as-vis .as-ladder { width: 188%; max-width: none; }
  .as-ladder .as-band-hl { width: 428px; }
  .as-ladder .as-band { font-size: 19px; }
  .as-ladder .as-lab { font-size: 15px; }
  .as-bands-m { margin-top: 1rem; }
}
@media (max-width: 1239px) {
  .as-session .as-next { line-height: 1.55; }
}
