/* PureTone inner pages — About, Membership, Science, Help.
   Each page continues the home page: same tokens, type and scene rhythm,
   with one signature interaction per page. Motion comes from --p (0 → 1),
   written by scenes.js; without it, every scene shows its final state. */

.vh {
  position: absolute !important;
  width: 1px; height: 1px;
  margin: -1px; padding: 0; border: 0;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap;
}

/* ---------- Scroll scene skeleton ---------- */
[data-scrub] { position: relative; --p: 1; }
.scenes-live [data-scrub] { --p: 0; height: calc(var(--len, 260) * 1vh); }
.scenes-live [data-scrub] > .sticky {
  position: sticky;
  top: 0;
  height: 100vh;
  height: 100svh;
  overflow: hidden;
}
[data-scrub] > .sticky {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 10vh 0;
}
.scenes-live [data-scrub] > .sticky { padding: 0; }

/* ---------- ABOUT · 1: endless music → one session ---------- */
.story .sticky { --q: clamp(0, calc((var(--p) - 0.12) / 0.5), 1); --r: clamp(0, calc((var(--p) - 0.55) / 0.3), 1); }
.cloud { position: absolute; inset: 0; pointer-events: none; }
.cloud span {
  position: absolute;
  left: 50%;
  top: 50%;
  white-space: nowrap;
  font-family: var(--serif);
  font-style: normal;
  font-size: clamp(15px, 1.5vw, 22px);
  color: var(--muted-text);
  transform: translate(-50%, -50%) translate(calc((var(--x) * var(--sx, 1vw) + var(--dx, 0px)) * (1 - var(--q))), calc((var(--y) * 1vh + var(--dy, 0px)) * (1 - var(--q)))) scale(calc(1 - 0.6 * var(--q)));
  /* fade fast as words approach the centre, so they never sit on the heading */
  opacity: calc((1 - var(--q)) * (1 - var(--q)) * (1 - var(--q)) * var(--o, 0.75));
  will-change: transform, opacity;
}
.cloud span:nth-child(5n) { color: var(--accent-text); }
.cloud span:nth-child(4n) { font-family: var(--mono); font-style: normal; font-size: 11px; letter-spacing: 0.14em; text-transform: uppercase; }
.scenes-static .cloud { display: none; }

.story-copy { position: relative; z-index: 1; display: grid; justify-items: center; }
.story-title {
  display: grid;
  margin: 0 0 22px;
  font-family: var(--serif);
  font-style: normal;
  font-weight: 500;
  font-size: var(--fs-display);
  line-height: 0.95;
  letter-spacing: -0.02em;
}
.story-title > span { grid-area: 1 / 1; }
.story-title .t1 { opacity: calc(1 - var(--q) * 1.6); transform: translateY(calc(var(--q) * -18px)); }
.story-title .t2 { opacity: var(--r); transform: translateY(calc((1 - var(--r)) * 18px)); }
.story-title .t2 em { font-style: normal; color: var(--accent); }
.scenes-static .story-title .t1 { display: none; }

.session-bar {
  display: flex;
  gap: 4px;
  width: min(560px, 78vw);
  height: 10px;
  margin: 8px 0 22px;
  transform: scaleX(var(--r));
  transform-origin: center;
}
.session-bar i { display: block; height: 100%; border-radius: 3px; background: var(--ink); }
.session-bar i:nth-child(2) { background: var(--accent); }
.session-bar i:nth-child(4) { background: var(--accent); opacity: 0.55; }
.session-meta {
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted-text);
  margin: 0 0 18px;
  opacity: var(--r);
}
.story-sub { opacity: var(--r); }

/* ---------- Word-by-word note (About · 2) ---------- */
.note-scene .sticky { width: min(100%, 860px); margin: 0 auto; }
.big-note {
  font-family: var(--serif);
  font-style: normal;
  font-weight: 500;
  font-size: var(--fs-h3);
  line-height: 1.28;
  letter-spacing: -0.01em;
  margin: 0;
  text-wrap: pretty;
}
.big-note .w {
  opacity: clamp(0.14, calc(var(--p) * (var(--n) + 6) - var(--i)), 1);
  transition: opacity 0.12s linear;
}
.big-note .w:nth-child(n) { color: inherit; }

/* ---------- Checklist (About · 3) ---------- */
.checks { list-style: none; margin: 0; padding: 0; display: grid; gap: 0; width: 100%; max-width: 440px; text-align: left; }
.checks li {
  display: grid;
  grid-template-columns: 28px 1fr auto;
  align-items: center;
  gap: 14px;
  padding: 18px 0;
  border-bottom: 1px solid var(--divider);
  font-size: var(--fs-body);
}
.checks li:first-child { border-top: 1px solid var(--divider); }
.checks .n { font-family: var(--mono); font-size: var(--fs-label); color: var(--muted-text); }
.checks svg { width: 22px; height: 22px; }
.checks svg path { fill: none; stroke: var(--accent); stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 24; stroke-dashoffset: 24; transition: stroke-dashoffset 0.5s cubic-bezier(.2,.7,.2,1); }
.checks.on svg path { stroke-dashoffset: 0; }
.checks li:nth-child(2) svg path { transition-delay: 0.35s; }
.checks li:nth-child(3) svg path { transition-delay: 0.7s; }
.checks li:nth-child(4) svg path { transition-delay: 1.05s; }

/* ---------- 432 wave (About · 4) ---------- */

/* ---------- MEMBERSHIP · 1: the card ---------- */
.member-hero { display: grid; grid-template-columns: 1.05fr 1fr; gap: 56px; align-items: center; text-align: left; min-height: calc(100vh - 110px); padding: 4vh 0 8vh; }
.member-hero .scene-sub { margin-left: 0; }
.card-stage { perspective: 1100px; display: grid; place-items: center; padding: 20px 0; --rx: 0deg; --ry: 0deg; --mx: 30%; --my: 20%; }
.m-card {
  position: relative;
  width: min(420px, 82vw);
  aspect-ratio: 1.586;
  border-radius: 22px;
  padding: 26px 28px;
  background: radial-gradient(120% 140% at 0% 0%, #2A2420 0%, #141211 55%, #0E0D0C 100%);
  color: var(--bg);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  box-shadow: 0 1px 0 rgba(255,255,255,0.06) inset, 0 30px 60px -20px rgba(17,17,17,0.45), 0 12px 24px -12px rgba(17,17,17,0.35);
  transform: rotateX(var(--rx)) rotateY(var(--ry));
  transform-style: preserve-3d;
  transition: transform 0.25s cubic-bezier(.2,.7,.2,1);
  overflow: hidden;
}
.m-card::after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(60% 60% at var(--mx) var(--my), rgba(244,240,226,0.16), transparent 60%);
  pointer-events: none;
}
.card-stage.float .m-card { animation: pt-float 7s ease-in-out infinite; }
@keyframes pt-float { 0%,100% { transform: rotateX(4deg) rotateY(-8deg) translateY(0); } 50% { transform: rotateX(-3deg) rotateY(7deg) translateY(-6px); } }
.m-card-top { display: flex; align-items: center; gap: 10px; }
.m-card-top .mark span { background: var(--bg); }
.m-card .m-word { font-family: var(--serif); font-style: normal; font-size: 24px; }
.m-card svg { width: 100%; height: 46px; }
.m-card svg path { fill: none; stroke: var(--accent); stroke-width: 1.6; stroke-linecap: round; }
.m-card-bottom { display: flex; justify-content: space-between; font-family: var(--mono); font-size: 11px; letter-spacing: 0.18em; text-transform: uppercase; color: #B9B6AC; }

/* ---------- MEMBERSHIP · 2: horizontal features ---------- */
.feature-scene .sticky { align-items: stretch; text-align: left; justify-content: center; }
.feature-head { display: flex; justify-content: space-between; align-items: baseline; gap: 20px; margin: 0 0 4vh; }
.feature-head .kicker { margin: 0; }
.step-count { font-family: var(--mono); font-size: 12px; letter-spacing: 0.14em; color: var(--muted-text); }
.track-window { overflow: visible; }
.track {
  display: flex;
  gap: clamp(16px, 2.4vw, 32px);
  transform: translateX(calc(var(--p) * -1 * var(--shift, 0px)));
  will-change: transform;
}
.scenes-static .track, html:not(.scenes-live) .track { flex-direction: column; transform: none; }
.panel {
  flex: 0 0 min(560px, 84vw);
  border: 1px solid var(--divider);
  border-radius: 22px;
  padding: clamp(22px, 3vw, 34px);
  background: rgba(255,255,255,0.32);
  display: grid;
  grid-template-rows: auto 1fr;
  gap: 26px;
  min-height: min(470px, 62vh);
}
.panel h3 {
  font-family: var(--serif);
  font-style: normal;
  font-weight: 500;
  font-size: var(--fs-h3);
  line-height: 1.02;
  letter-spacing: -0.015em;
  margin: 0 0 10px;
}
.panel p { margin: 0; color: var(--muted-text); font-size: 17px; line-height: 1.5; max-width: 34ch; }
.ui { align-self: end; border-radius: 16px; background: var(--ink); color: var(--bg); padding: 20px; font-size: var(--fs-small); min-height: 170px; display: grid; align-content: center; gap: 14px; overflow: hidden; }
.ui-label { font-family: var(--mono); font-size: var(--fs-micro); letter-spacing: 0.16em; text-transform: uppercase; color: #B9B6AC; }

/* ui: session timeline */
.ui-chips { display: flex; gap: 8px; flex-wrap: wrap; }
.ui-chips span { border: 1px solid rgba(244,240,226,0.3); border-radius: 999px; padding: 5px 12px; font-size: var(--fs-micro); }
.ui-chips span.on { background: var(--bg); color: var(--ink); border-color: var(--bg); }
.ui-timeline { display: flex; gap: 4px; height: 8px; }
.ui-timeline i { flex: var(--w) 1 0; border-radius: 3px; background: rgba(244,240,226,0.18); position: relative; overflow: hidden; }
.ui-timeline i::after { content: ""; position: absolute; inset: 0; background: var(--accent); transform-origin: left; transform: scaleX(0); animation: pt-fill 9s linear infinite; animation-delay: calc(var(--k) * 1.8s); }
@keyframes pt-fill { 0% { transform: scaleX(0); } 20% { transform: scaleX(1); } 95% { transform: scaleX(1); opacity: 1; } 100% { transform: scaleX(1); opacity: 0; } }

/* ui: 432 dial */
.ui-dial { display: grid; grid-template-columns: 110px 1fr; gap: 18px; align-items: center; }
.ui-dial svg { width: 110px; height: 110px; }
.ui-dial .tick { stroke: rgba(244,240,226,0.35); stroke-width: 1.4; }
.ui-dial .needle { stroke: var(--accent); stroke-width: 2.4; stroke-linecap: round; transform-origin: 55px 55px; animation: pt-tune 6s cubic-bezier(.5,0,.2,1) infinite; }
@keyframes pt-tune { 0%, 18% { transform: rotate(32deg); } 46%, 100% { transform: rotate(0deg); } }
.ui-dial .hz { font-family: var(--serif); font-style: normal; font-size: 40px; line-height: 1; }
.ui-dial .hz small { font-family: var(--mono); font-style: normal; font-size: 11px; letter-spacing: 0.14em; color: #B9B6AC; margin-left: 4px; }

/* ui: favorites */
.ui-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.ui-list li { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding-bottom: 10px; border-bottom: 1px solid rgba(244,240,226,0.12); }
.ui-list li:last-child { border-bottom: 0; padding-bottom: 0; }
.ui-list em { font-family: var(--serif); font-size: var(--fs-small); }
.ui-list small { display: block; color: #B9B6AC; font-size: 12px; }
.heart { width: 18px; height: 18px; flex: none; }
.heart path { fill: transparent; stroke: rgba(244,240,226,0.6); stroke-width: 1.5; }
.heart.is-on path { fill: var(--accent); stroke: var(--accent); }
.heart.pop path { animation: pt-heart 4.5s ease-in-out infinite; }
@keyframes pt-heart { 0%, 30% { fill: transparent; stroke: rgba(244,240,226,0.6); transform: scale(1); } 36% { fill: var(--accent); stroke: var(--accent); transform: scale(1.3); } 44%, 92% { fill: var(--accent); stroke: var(--accent); transform: scale(1); } 100% { fill: transparent; stroke: rgba(244,240,226,0.6); } }
.heart path { transform-origin: 9px 9px; transform-box: fill-box; }

/* ui: download */
.ui-dl { display: grid; grid-template-columns: 64px 1fr; gap: 16px; align-items: center; }
.ui-dl svg { width: 64px; height: 64px; transform: rotate(-90deg); }
.ui-dl .ring-bg { fill: none; stroke: rgba(244,240,226,0.15); stroke-width: 4; }
.ui-dl .ring { fill: none; stroke: var(--accent); stroke-width: 4; stroke-linecap: round; stroke-dasharray: 1; stroke-dashoffset: 1; animation: pt-ring 5s cubic-bezier(.4,0,.2,1) infinite; }
@keyframes pt-ring { 0% { stroke-dashoffset: 1; } 55%, 92% { stroke-dashoffset: 0; } 100% { stroke-dashoffset: 0; opacity: 0; } }
.ui-dl b { font-weight: 600; display: block; margin-bottom: 4px; }
.ui-dl span { color: #B9B6AC; font-size: var(--fs-label); }

/* ---------- Marquee (Membership · 3) ---------- */
.marquee { width: 100%; overflow: hidden; margin-top: 6vh; border-top: 1px solid rgba(244,240,226,0.16); border-bottom: 1px solid rgba(244,240,226,0.16); padding: 16px 0; }
.marquee-row { display: flex; width: max-content; animation: pt-marquee 38s linear infinite; }
.marquee-row span { font-family: var(--mono); font-size: 12px; letter-spacing: 0.18em; text-transform: uppercase; color: #B9B6AC; padding-right: 3em; white-space: nowrap; }
.marquee-row span::before { content: "\25CF"; color: var(--accent); margin-right: 1.2em; font-size: 8px; vertical-align: middle; }
@keyframes pt-marquee { to { transform: translateX(-50%); } }

/* ---------- SCIENCE · 1: one note ---------- */
.tuner { display: grid; justify-items: center; gap: 22px; width: 100%; }
.tuner-scope { width: 100%; max-width: 760px; height: 120px; display: block; }
.tuner-buttons { display: flex; gap: 14px; }
.tone-btn {
  all: unset;
  box-sizing: border-box;
  cursor: pointer;
  min-width: 132px;
  padding: 16px 22px;
  border-radius: 999px;
  border: 1px solid var(--ink);
  font-family: var(--serif);
  font-style: normal;
  font-size: var(--fs-h4);
  text-align: center;
  transition: background 0.2s, color 0.2s, transform 0.15s;
}
.tone-btn small { font-family: var(--mono); font-style: normal; font-size: var(--fs-micro); letter-spacing: 0.16em; text-transform: uppercase; display: block; margin-top: 2px; color: var(--muted-text); }
.tone-btn.is-432 { border-color: var(--accent); color: var(--accent-text); }
.tone-btn[aria-pressed="true"] { background: var(--ink); color: var(--bg); }
.tone-btn.is-432[aria-pressed="true"] { background: var(--accent); color: var(--ink); }
.tone-btn[aria-pressed="true"] small { color: inherit; opacity: 0.75; }
.tone-btn:active { transform: scale(0.97); }
.tone-btn:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
.tuner-note { font-family: var(--mono); font-size: 12px; letter-spacing: 0.1em; color: var(--muted-text); margin: 0; }

/* ---------- SCIENCE · 2-4: studies ---------- */
.study { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: clamp(32px, 6vw, 96px); align-items: center; text-align: left; min-height: 82vh; padding: 10vh 0; border-top: 1px solid var(--divider); }
.study:nth-of-type(odd) .stat { order: 2; }
.stat { display: grid; gap: 10px; }
.stat-num {
  font-family: var(--serif);
  font-style: normal;
  font-weight: 500;
  font-size: var(--fs-h2);
  line-height: 0.82;
  letter-spacing: -0.04em;
  font-variant-numeric: tabular-nums;
  color: var(--ink);
}
.stat-num.accent { color: var(--accent); }
.stat-cap { font-size: 17px; color: var(--muted-text); max-width: 26ch; }
.study .headline { margin-bottom: 18px; }
.study .scene-sub { margin-left: 0; max-width: 40ch; }
.study-source { font-family: var(--mono); font-size: 12px; letter-spacing: 0.06em; color: var(--muted-text); margin: 0 0 8px; }
.study-link { font-size: 15px; margin: 0; }

/* ---------- HELP: search ---------- */
.help-search { width: min(640px, 100%); margin: 6px auto 0; display: grid; gap: 16px; }
.search-field { position: relative; }
.search-field input {
  width: 100%;
  box-sizing: border-box;
  font: inherit;
  font-size: var(--fs-lead);
  padding: 18px 22px 18px 54px;
  border-radius: 999px;
  border: 1px solid var(--divider);
  background: rgba(255,255,255,0.55);
  color: var(--ink);
  transition: border-color 0.2s, box-shadow 0.2s;
}
.search-field input:focus { outline: none; border-color: var(--ink); box-shadow: 0 0 0 4px rgba(226,85,44,0.18); }
.search-field svg { position: absolute; left: 20px; top: 50%; width: 20px; height: 20px; transform: translateY(-50%); stroke: var(--muted-text); fill: none; stroke-width: 1.8; }
.chips { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; }
.chip {
  all: unset;
  cursor: pointer;
  padding: 8px 16px;
  border-radius: 999px;
  border: 1px solid var(--divider);
  font-size: var(--fs-small);
  transition: background 0.2s, color 0.2s, border-color 0.2s;
}
.chip[aria-pressed="true"] { background: var(--ink); color: var(--bg); border-color: var(--ink); }
.chip:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.help-count { font-family: var(--mono); font-size: 12px; letter-spacing: 0.1em; color: var(--muted-text); text-align: center; margin: 0; min-height: 1.4em; }
.help-empty { text-align: center; color: var(--muted-text); padding: 6vh 0; }
.faq-group[hidden], .faq details[hidden] { display: none; }

/* Smooth open/close for answers where the browser supports it */
@supports (interpolate-size: allow-keywords) {
  :root { interpolate-size: allow-keywords; }
  .faq details::details-content { height: 0; overflow: clip; transition: height 0.35s cubic-bezier(.2,.7,.2,1), content-visibility 0.35s allow-discrete; }
  .faq details[open]::details-content { height: auto; }
}

/* ---------- Mobile ---------- */
@media (max-width: 820px) {
  .member-hero { grid-template-columns: 1fr; text-align: center; gap: 28px; padding-top: 6vh; min-height: auto; }
  .member-hero .scene-sub { margin-left: auto; }
  .study { grid-template-columns: 1fr; gap: 24px; min-height: auto; }
  .study:nth-of-type(odd) .stat { order: 0; }
  .feature-head { flex-direction: column; gap: 6px; }
  .panel { min-height: min(500px, 66vh); }
  .tuner-scope { height: 90px; }
  .tone-btn { min-width: 118px; padding: 14px 18px; }
}

@media (prefers-reduced-motion: reduce) {
  .ui-timeline i::after, .ui-dial .needle, .heart.pop path, .ui-dl .ring, .marquee-row, .card-stage.float .m-card { animation: none; }
  .ui-timeline i::after { transform: scaleX(1); }
  .ui-dl .ring { stroke-dashoffset: 0; }
  .ui-dial .needle { transform: rotate(0deg); }
  .heart.pop path { fill: var(--accent); stroke: var(--accent); }
}

@media (max-width: 820px) {
  .cloud span:nth-child(2n) { display: none; }
  .cloud span { font-size: var(--fs-small); --sx: 0.72vw; }
}

/* Membership: the feature strip runs edge to edge, starting in line with the page text */
.feature-scene .sticky { width: 100vw; margin-left: calc(50% - 50vw); }
.feature-scene .feature-head,
.feature-scene .track { padding-inline: calc(max(0px, (100vw - 1320px) / 2) + clamp(24px, 4vw, 64px)); }
.feature-scene .track { width: max-content; box-sizing: border-box; }
.scenes-static .feature-scene .track, html:not(.scenes-live) .feature-scene .track { width: auto; }
.feature-scene .feature-head { box-sizing: border-box; width: 100%; }

/* Membership hero: lighter headline, bigger card */
.member-hero .mega { max-width: 12ch; }
.member-hero .m-card { width: min(470px, 84vw); }

/* Help: question groups share one width */
.faq-group { width: 100%; max-width: 720px; margin: 0 auto 7vh; text-align: left; }
.faq-group .kicker { margin-bottom: 14px; }
.faq-group .faq { max-width: none; }

/* Membership without scroll motion: the four features as a simple grid */
.scenes-static .feature-scene .track,
html:not(.scenes-live) .feature-scene .track {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 420px), 1fr));
  flex-direction: initial;
}
.scenes-static .feature-scene .panel,
html:not(.scenes-live) .feature-scene .panel { flex: none; min-height: 0; }

.scenes-static .step-count { display: none; }

/* Contact / Account: a short list of where things go */
.route-list { list-style: none; margin: 0 auto; padding: 0; width: 100%; max-width: 720px; text-align: left; }
.route-list li { display: grid; grid-template-columns: 1fr auto; gap: 6px 24px; align-items: baseline; padding: 26px 0; border-bottom: 1px solid var(--divider); }
.route-list li:first-child { border-top: 1px solid var(--divider); }
.route-list b { font-family: var(--serif); font-style: normal; font-weight: 500; font-size: var(--fs-h4); line-height: 1.1; }
.route-list span { grid-column: 1; color: var(--muted-text); font-size: 17px; }
.route-list a { grid-column: 2; grid-row: 1 / span 2; align-self: center; white-space: nowrap; }
@media (max-width: 620px) {
  .route-list li { grid-template-columns: 1fr; }
  .route-list a { grid-column: 1; grid-row: auto; }
}

/* Home: the activities cloud uses the same scene as About, in the hero's size */
.story--home .cloud span:nth-child(3n+1) { color: var(--accent-text); }

/* 432 Hz page: the big words beside each study */
.stat-num { font-size: var(--fs-h2); line-height: var(--lh-h2); }

/* Journal: a short list of pieces, each a large typographic card */

/* Home FAQ: link to every question */
.faq-more { margin: 26px 0 0; text-align: center; font-size: var(--fs-body); }
.scene--research-head { min-height: 56vh; }

/* Journal essay: a calm reading column */
.essay-body { width: 100%; max-width: 640px; margin: 0 auto; text-align: left; }
.essay-body p { font-size: var(--fs-lead); line-height: 1.7; margin: 0 0 1.2em; text-wrap: pretty; }
.essay-body h2 { font-family: var(--serif); font-style: normal; font-weight: 500; font-size: var(--fs-h4); line-height: 1.1; margin: 1.6em 0 0.6em; }
.essay-meta { font-family: var(--mono); font-size: 12px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted-text); margin: 0; }
.pull { border: 0; padding: 0; max-width: 18ch; margin-inline: auto; font-family: var(--serif); font-style: normal; font-weight: 500; font-size: var(--fs-h2); line-height: 1; letter-spacing: -0.02em; text-align: center; margin: 0; text-wrap: balance; }
.essay-scene { min-height: auto; padding: 4vh 0 6vh; }

/* Journal index: a featured piece and smaller pieces, each with a cover */

.j-cover { position: relative; display: grid; place-items: center; min-height: 240px; overflow: hidden; }

.j-cover--dark { background: radial-gradient(90% 120% at 30% 20%, #3A2A22 0%, #141211 60%); color: var(--bg); }
.j-cover--dark .j-big { font-family: var(--serif); font-style: normal; font-size: var(--fs-display); line-height: 0.8; letter-spacing: -0.04em; }
.j-cover--dark svg { position: absolute; left: 0; right: 0; bottom: 18%; width: 100%; height: 70px; }
.j-cover--dark svg path { fill: none; stroke: var(--accent); stroke-width: 2; }
.j-cover--chips { background: #F1EEE7; display: flex; flex-wrap: wrap; gap: 10px; align-content: center; justify-content: center; padding: 28px; }
.j-cover--chips span { border: 1px solid var(--divider); border-radius: 999px; padding: 8px 16px; font-size: 15px; color: var(--muted-text); text-decoration: line-through; text-decoration-color: rgba(17,17,17,0.35); }
.j-cover--chips span.on { background: var(--ink); color: var(--bg); border-color: var(--ink); text-decoration: none; }
.j-cover--word { background: #F1EEE7; }
.j-cover--word span { font-family: var(--serif); font-style: normal; font-size: var(--fs-h2); letter-spacing: -0.03em; color: var(--accent-text); }

/* Membership hero on phones: button centred, in line with the card below */
@media (max-width: 820px) {
  .member-hero .btn-row { justify-content: center; }
  .member-hero .card-stage { padding-top: 8px; }
}
/* Gathering words: the kicker arrives with the second line, not on top of
   the words; until then the first line sits in the middle of the empty band
   between the two rows of words (--hold is measured by scenes.js). */
.story .story-copy .kicker { opacity: var(--r); }
.story .story-copy { transform: translateY(calc((1 - var(--r)) * var(--hold, 0px))); }

/* ---------- Journal: index (signature: each cover opens with a quiet wipe) ---------- */
.journal-page { padding-bottom: 6vh; }
.j-masthead { display: grid; grid-template-columns: 1fr auto; align-items: end; gap: 12px 24px; padding: 4vh 0 3vh; border-bottom: 1px solid var(--ink); }
.j-masthead .kicker { margin-bottom: 18px; }
.j-mast-title { margin: 0; max-width: 12ch; }
.j-mast-meta { margin: 0 0 0.6em; font-family: var(--mono); font-size: var(--fs-label); letter-spacing: 0.16em; text-transform: uppercase; color: var(--muted-text); }
.j-index { list-style: none; margin: 0; padding: 0; }
.j-row a { display: grid; grid-template-columns: 56px 1fr 240px; gap: 28px; align-items: center; padding: clamp(24px, 3vw, 36px) 0; border-bottom: 1px solid var(--divider); color: inherit; text-decoration: none; }
.j-num { font-family: var(--mono); font-size: var(--fs-label); color: var(--muted-text); align-self: start; padding-top: 0.9em; transition: color 0.4s; }
.j-main { display: grid; gap: 10px; }
.j-row .j-title { font-family: var(--serif); font-weight: 500; font-size: var(--fs-h3); line-height: var(--lh-h3); letter-spacing: var(--ls-h3); text-wrap: balance; transition: color 0.4s, transform 0.6s cubic-bezier(.2,.7,.2,1); }
.j-row .j-dek { color: var(--muted-text); font-size: var(--fs-body); line-height: 1.5; max-width: 52ch; }
.j-meta { font-family: var(--mono); font-size: var(--fs-label); letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted-text); }
.j-main .j-meta { display: block; }
.j-thumb { display: block; grid-column: 3; grid-row: 1; height: 150px; border-radius: 14px; overflow: hidden; clip-path: inset(0 0 0 100% round 14px); transition: clip-path 0.7s cubic-bezier(.65,0,.35,1); }
.j-thumb .j-cover { height: 100%; min-height: 0; }
.j-thumb .j-cover--dark .j-big { font-size: var(--fs-h2); }
.j-thumb .j-cover--dark svg { bottom: 14%; height: 46px; }
.j-thumb .j-cover--word span { font-size: var(--fs-h3); }
.j-thumb .j-cover--chips { padding: 14px; gap: 6px; }
.j-thumb .j-cover--chips span { font-size: 12px; padding: 5px 10px; }
.j-row a:hover .j-thumb, .j-row a:focus-visible .j-thumb { clip-path: inset(0 0 0 0 round 14px); }
.j-row a:hover .j-title, .j-row a:focus-visible .j-title { color: var(--accent-text); transform: translateX(6px); }
.j-row a:hover .j-num { color: var(--accent-text); }
.j-row a:focus-visible { outline: 2px solid var(--accent); outline-offset: 4px; }
/* touch screens and narrow screens: covers always shown, above the title */
@media (hover: none), (max-width: 820px) {
  .j-row a { grid-template-columns: 1fr; gap: 12px; }
  .j-thumb { grid-column: 1; grid-row: 2; height: 170px; clip-path: none; }
  .j-num { padding-top: 0; }
  .j-row a:hover .j-title { transform: none; }
}
@media (max-width: 620px) {
  .j-masthead { grid-template-columns: 1fr; }
  .j-mast-meta { margin: 0; }
}
@media (prefers-reduced-motion: reduce) {
  .j-thumb { transition: none; }
}

/* ---------- Contact (signature: the topic word turns over) ---------- */
.contact-page { padding: 4vh 0 8vh; }
.c-hero { padding: 4vh 0 5vh; }
.c-title { font-family: var(--serif); font-weight: 500; font-size: var(--fs-display); line-height: 0.98; letter-spacing: -0.035em; margin: 0; max-width: 13ch; }
.c-rotor { position: relative; display: block; height: 1.04em; overflow: hidden; color: var(--accent); font-style: italic; }
.c-word { position: absolute; left: 0; top: 0; white-space: nowrap; transform: translateY(105%); opacity: 0; transition: transform 0.7s cubic-bezier(.2,.8,.2,1), opacity 0.5s; }
.c-word.is-on { transform: none; opacity: 1; }
.c-word.is-out { transform: translateY(-105%); opacity: 0; }
.c-routes { display: grid; gap: 0; max-width: 980px; }
.c-tabs { display: grid; grid-template-columns: repeat(3, 1fr); border-top: 1px solid var(--ink); }
.c-tab { all: unset; box-sizing: border-box; cursor: pointer; display: grid; gap: 6px; padding: 22px 18px 20px 0; font-family: var(--serif); font-size: var(--fs-h4); letter-spacing: -0.01em; color: var(--muted-text); border-bottom: 1px solid var(--divider); position: relative; transition: color 0.3s; }
.c-tab .c-n { font-family: var(--mono); font-size: var(--fs-label); letter-spacing: 0.14em; color: var(--muted-text); }
.c-tab::after { content: ""; position: absolute; left: 0; right: 18px; bottom: -1px; height: 2px; background: var(--accent); transform: scaleX(0); transform-origin: left; transition: transform 0.5s cubic-bezier(.2,.7,.2,1); }
.c-tab[aria-selected="true"] { color: var(--ink); }
.c-tab[aria-selected="true"]::after { transform: scaleX(1); }
.c-tab:hover { color: var(--ink); }
.c-tab:focus-visible { outline: 2px solid var(--accent); outline-offset: 4px; }
.c-panel { padding: 34px 0 10px; display: grid; gap: 16px; justify-items: start; max-width: 620px; animation: c-in 0.5s cubic-bezier(.2,.7,.2,1); }
.c-panel h2 { font-family: var(--serif); font-weight: 500; font-size: var(--fs-h3); line-height: 1.05; letter-spacing: -0.02em; margin: 0; }
.c-panel p { margin: 0; color: var(--muted-text); font-size: var(--fs-body); line-height: 1.55; }
.c-panel .btn { margin-top: 6px; }
.c-note { margin: 34px 0 0; font-family: var(--mono); font-size: 12px; letter-spacing: 0.1em; color: var(--muted-text); }
@keyframes c-in { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
@media (max-width: 620px) {
  .c-tabs { grid-template-columns: 1fr; }
  .c-tab { padding: 16px 0; grid-template-columns: 36px 1fr; align-items: baseline; }
  .c-tab::after { right: 0; }
}
@media (prefers-reduced-motion: reduce) {
  .c-word, .c-panel { transition: none; animation: none; }
}

.c-panel[hidden] { display: none; }

/* Standalone text links reach 24px (WCAG 2.2, 2.5.8) */
.faq-more a, .audio-compare .note a, .study-link a { display: inline-flex; align-items: center; min-height: 24px; }

/* Phones: the four moods and four lengths fit on one row in every language */
@media (max-width: 480px) {
  .picker-row { gap: 6px; }
  .picker-row li { padding: 6px 10px; }
  .ui-chips { gap: 5px; }
  .ui-chips span { padding: 5px 9px; }
}
