/* ============ Home ============ */

/* ---------- Hero (brand) ---------- */
.hero { position: relative; padding-top: clamp(2.5rem, 1rem + 5vw, 6rem); padding-bottom: clamp(3rem, 2rem + 4vw, 6rem); overflow: clip; }
.hero::before {
  content: ""; position: absolute; inset: -30% -10% auto auto; width: 70vw; height: 70vw; max-width: 980px; max-height: 980px;
  background: radial-gradient(closest-side, rgba(236, 223, 198, .09), rgba(236, 223, 198, 0) 70%); pointer-events: none;
}
.hero__grid { display: grid; gap: var(--s-7); align-items: center; }
.hero__copy { display: grid; gap: 0; justify-items: start; position: relative; z-index: 1; }
.hero h1 { font-size: var(--fs-hero); max-width: 17ch; }
.hero h1 em::before { content: "\A"; white-space: pre; }  /* line break WITHOUT making <em> a block: translators then translate the whole title as one sentence */
.hero .eyebrow { margin: 0 0 var(--hero-eyebrow); }
.hero h1 { margin: 0; }
.hero .lead { max-width: 32em; margin: var(--hero-lead) 0 0; }
.hero__ctas { display: flex; flex-wrap: wrap; gap: var(--s-3); margin-top: var(--s-6); }
@media (min-width: 1000px) { .hero__grid { grid-template-columns: 1.15fr .85fr; gap: var(--s-8); } }

/* Newest real session card */
.latest { position: relative; display: grid; gap: var(--s-2); padding: var(--s-3); border-radius: var(--r-xl); overflow: hidden; border: 1px solid var(--line-2); background: var(--surface); box-shadow: var(--shadow-2); transition: transform var(--t-base) var(--ease-out), border-color var(--t-base); }
.latest:hover { border-color: var(--text-3); }
.latest__thumb { position: relative; aspect-ratio: 16/9; overflow: hidden; border-radius: 8px; background: var(--surface-2); }
.latest__thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--ease-out); }
.latest:hover .latest__thumb img { transform: scale(1.03); }
.latest__play-old { position: absolute; left: 50%; top: 50%; width: 64px; height: 64px; margin: -32px 0 0 -32px; border-radius: 50%; display: grid; place-items: center; background: rgba(19,10,4, .72); color: var(--moon); font-size: 18px; padding-left: 4px; backdrop-filter: blur(6px); transition: transform var(--t-base) var(--ease-out); }
.latest:hover .latest__play-old { transform: scale(1.08); }
.latest__body { display: grid; gap: var(--s-2); padding: var(--s-2) var(--s-3) var(--s-3); }
.latest__title { font-family: var(--font-display); font-size: var(--fs-card); line-height: 1.2; letter-spacing: var(--tracking-display-sm); font-weight: var(--fw-display); }
/* Phones & tablets: a compact card, so the hero copy stays the star */
@media (max-width: 999px) {
  .latest { grid-template-columns: minmax(0, 44%) 1fr; align-items: center; border-radius: var(--r-lg); max-width: 640px; }
  .latest__thumb { aspect-ratio: 16/9; width: 100%; height: auto; min-height: 0; }
  .latest__body { min-width: 0; }
  .latest { gap: var(--s-3); }
  .latest__thumb { border-radius: 4px; }
  .latest__body { padding: 0 var(--s-2) 0 0; gap: 4px; }
  .latest__title { font-size: 1.05rem; line-height: 1.25; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
  .latest__body .eyebrow { font-size: 10px; }
  .latest__actions { display: none; }
  .latest .play-badge--lg { width: 40px; height: 40px; margin: -20px 0 0 -20px; }
  .latest.is-playing { grid-template-columns: 1fr; }
  .latest.is-playing .latest__thumb { aspect-ratio: 16/9; }
}

/* ---------- Start here: three paths ---------- */
.paths { display: grid; gap: var(--s-3); grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr)); }
.path { display: flex; flex-direction: column; gap: var(--s-3); padding: var(--s-5); border-radius: var(--r-xl); border: 1px solid var(--line); background: linear-gradient(180deg, var(--surface), transparent 140%);
  transition: transform var(--t-base) var(--ease-out), border-color var(--t-base), box-shadow var(--t-base); }
.path:hover { transform: translateY(-4px); border-color: var(--line-2); box-shadow: 0 24px 50px -30px rgba(0,0,0,.8); }
.path__n { font-size: var(--fs-xs); color: var(--text-3); }
.path__title { font-family: var(--font-display); font-size: var(--fs-card-lg); line-height: 1; letter-spacing: var(--tracking-display); font-weight: var(--fw-display); }
.path__text { color: var(--text-2); font-size: var(--fs-sm); line-height: 1.6; }
.path__btn { align-self: flex-start; margin-top: auto; }
.path:hover .path__btn:not(.btn--primary) { border-color: var(--moon); color: var(--moon); }
.path__viz { height: 48px; display: flex; align-items: center; gap: 4px; }
/* 01 · a ring that fills */
.path__viz--ring { position: relative; }
.path__viz--ring svg { width: 48px; height: 48px; transform: rotate(-90deg); flex: none; }
.path__viz--ring circle { fill: none; stroke: var(--line-2); stroke-width: 2.5; }
.path__viz--ring .p { stroke: var(--moon); stroke-linecap: round; stroke-dasharray: 119.4; stroke-dashoffset: 90; transition: stroke-dashoffset 1.4s var(--ease-out); }
.path:hover .path__viz--ring .p { stroke-dashoffset: 8; }
.path__viz--ring span { margin-left: 10px; font: 500 var(--fs-sm)/1 var(--font-mono); color: var(--text-2); }
/* 02 · the rhythm bar breathes */
.path__viz--bar i { height: 10px; background: var(--moon); border-radius: 3px; opacity: .8; }
.path__viz--bar b { height: 10px; border-radius: 3px; background: repeating-linear-gradient(90deg, var(--line-2) 0 2px, transparent 2px 4px); }
.path:hover .path__viz--bar i { animation: pathbar 3.2s var(--ease-in-out) infinite; }
.path:hover .path__viz--bar i:nth-of-type(2) { animation-delay: .2s; } .path:hover .path__viz--bar i:nth-of-type(3) { animation-delay: .4s; }
@keyframes pathbar { 50% { opacity: .35; } }
/* 03 · dots spread apart */
.path__viz--dots i { width: 26px; height: 26px; border-radius: 50%; background: var(--c); margin-right: -8px; box-shadow: 0 0 0 3px var(--surface); transition: margin var(--t-base) var(--ease-out); }
.path:hover .path__viz--dots i { margin-right: 4px; }
/* 04 · lines write themselves */
.path__viz--lines { flex-direction: column; align-items: flex-start; justify-content: center; gap: 6px; width: 100%; }
.path__viz--lines i { height: 2px; background: var(--line-2); border-radius: 2px; width: 70%; transition: width .6s var(--ease-out); }
.path__viz--lines i:nth-child(2) { width: 90%; } .path__viz--lines i:nth-child(3) { width: 50%; }
.path:hover .path__viz--lines i { width: 95%; } .path:hover .path__viz--lines i:nth-child(3) { width: 75%; }
@media (prefers-reduced-motion: reduce) { .path:hover .path__viz--bar i { animation: none; } }

/* Session picker panel */
.picker {
  position: relative; z-index: 2;
  border: 1px solid var(--line-2); border-radius: var(--r-xl);
  background: linear-gradient(180deg, rgba(31, 18, 9, .95), rgba(27, 16, 8, .95));
  box-shadow: var(--shadow-2); padding: clamp(1.1rem, .8rem + 1.5vw, 2rem);
  display: grid; gap: var(--s-5);
}
.picker__head { display: flex; flex-wrap: wrap; gap: var(--s-2) var(--s-4); align-items: baseline; justify-content: space-between; }
.picker__head h2 { font-family: var(--font-display); font-size: var(--fs-card-lg); font-weight: var(--fw-display); letter-spacing: var(--tracking-display); }
.picker__rows { display: grid; gap: var(--s-4); }
.picker__row { display: grid; gap: var(--s-2); }
.picker__row > .eyebrow { display: flex; gap: .8em; white-space: nowrap; }
.picker__row .chips { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; margin-inline: calc(-1 * clamp(1.1rem, .8rem + 1.5vw, 2rem)); padding-inline: clamp(1.1rem, .8rem + 1.5vw, 2rem); scroll-padding-inline: 1rem; }
.picker__row .chips::-webkit-scrollbar { display: none; }
.picker__row .chip { flex: none; }
@media (min-width: 640px) {
  .picker__row .chips { flex-wrap: wrap; overflow: visible; margin: 0; padding: 0; }
}
.picker__results { border-top: 1px solid var(--line); padding-top: var(--s-4); display: grid; gap: var(--s-3); }
.picker__list { display: grid; gap: var(--s-1); }
.picker__status { display: flex; flex-wrap: wrap; gap: var(--s-2) var(--s-4); align-items: center; justify-content: space-between; font-size: var(--fs-sm); color: var(--text-2); }
.picker__status .note { color: var(--lamp); }
.picker__list.is-swapping { opacity: .3; transition: opacity 120ms; }
.picker__list { transition: opacity var(--t-base) var(--ease-out); }

/* ---------- About ---------- */
.about__grid { display: grid; gap: var(--s-7); }
@media (min-width: 1000px) { .about__grid { grid-template-columns: 1.3fr .7fr; align-items: end; } }
.about blockquote { margin: 0; font-family: var(--font-display); font-size: var(--fs-3xl); line-height: 1.12; letter-spacing: var(--tracking-display); font-weight: var(--fw-display); }
.about blockquote em { color: var(--moon); }
.about cite { display: block; font-family: var(--font-sans); margin-top: var(--s-5); font-style: normal; font-size: var(--fs-sm); color: var(--text-3); }

/* ---------- Stay close (email + community) ---------- */
/* Grid children must be allowed to shrink (prevents mobile overflow from long content/forms) */
.hero__grid > *, .about__grid > *, .close__grid > * { min-width: 0; }


/* Rhythm bar inside the picker: the selected rhythm across 3 hours */
.picker__rhythm { display: grid; gap: 6px; }
.picker__bar-meta { display: flex; justify-content: space-between; font-family: var(--font-mono); font-size: 11px; color: var(--text-3); }
.picker__bar-meta .summary { color: var(--text-2); }

/* Wide picker (Home section): labels left, 3 results in a row */
@media (min-width: 900px) {
  .picker--wide .picker__rows { grid-template-columns: auto 1fr; column-gap: var(--s-6); align-items: center; }
  .picker--wide .picker__row { display: contents; }
  .picker--wide .picker__list { grid-template-columns: repeat(3, 1fr); gap: var(--s-3); }
}
.picker__head h3 { font-family: var(--font-display); font-weight: var(--fw-display); font-size: var(--fs-card-lg); letter-spacing: var(--tracking-display); }

/* ---------- Story: problem → Luneia ---------- */
.story__grid { display: grid; gap: var(--s-7); }
@media (min-width: 1000px) { .story__grid { grid-template-columns: .9fr 1.1fr; align-items: start; } .story__lead { position: sticky; top: 110px; } }
.story h2 { font-size: var(--fs-3xl); line-height: 1.05; }
.story h2 em { color: var(--accent-word); }
.pains { display: grid; }
.pains li { display: grid; grid-template-columns: 64px 1fr; gap: var(--s-4); padding: var(--s-5) 0; border-bottom: 1px solid var(--line); }
.pains li:first-child { border-top: 1px solid var(--line); }
.pains__n { font-size: var(--fs-xs); color: var(--text-3); padding-top: .35em; }
.pains p { font-family: var(--font-display); font-size: var(--fs-xl); line-height: 1.3; color: var(--text-2); letter-spacing: var(--tracking-display-sm); font-weight: var(--fw-display); }
.story__answer { margin-top: var(--s-9); display: grid; gap: var(--s-7); }
@media (min-width: 1000px) { .story__answer { grid-template-columns: 1.1fr .9fr; gap: var(--s-8); align-items: end; } }
.story__text { display: grid; gap: var(--s-4); }
.story__text > p:last-child { color: var(--text-2); max-width: 36em; }
.story__big { font-family: var(--font-display); font-size: var(--fs-2xl); line-height: 1.25; color: var(--text); letter-spacing: var(--tracking-display); font-weight: var(--fw-display); }

/* Compact story band (lower on the Home) */
.story--compact .story__grid { gap: var(--s-6); }
@media (min-width: 1000px) { .story--compact .story__grid { grid-template-columns: .7fr 1.3fr; } .story--compact .story__lead { position: static; } }
.story--compact h2 { font-size: var(--fs-2xl); }
.story--compact .pains { grid-template-columns: 1fr; }
@media (min-width: 700px) { .story--compact .pains { grid-template-columns: 1fr 1fr; column-gap: var(--s-6); } .story--compact .pains li:nth-child(2) { border-top: 1px solid var(--line); } }
.story--compact .pains li { grid-template-columns: 52px 1fr; padding: var(--s-4) 0; }
.story--compact .pains p { font-size: var(--fs-lg); }
.story--compact .story__answer { margin-top: var(--s-7); }
.story--compact .story__big { font-size: var(--fs-xl); }

/* Touch screens have no hover: play the card animations once they scroll into view */
@media (hover: none) {
  .path.is-in .path__viz--ring .p { stroke-dashoffset: 8; transition-delay: .3s; }
  .path.is-in .path__viz--dots i { margin-right: 4px; transition-delay: .3s; }
  .path.is-in .path__viz--lines i { width: 95%; transition-delay: .3s; } .path.is-in .path__viz--lines i:nth-child(3) { width: 75%; }
  .path.is-in .path__viz--bar i { animation: pathbar 3.2s var(--ease-in-out) 2; }
  .path { padding: var(--s-4) var(--s-5) var(--s-5); gap: var(--s-2); }
  .path__viz { height: 40px; }
}

/* Continue where you left off */
.resume { margin-top: calc(-1 * var(--s-5)); margin-bottom: var(--s-5); }
.resume__in { display: flex; flex-wrap: wrap; align-items: center; gap: var(--s-3) var(--s-5); padding: var(--s-3); border-radius: var(--r-xl); border: 1px solid var(--line-2); background: var(--surface); }
.resume__play { display: flex; align-items: center; gap: var(--s-4); flex: 1; min-width: min(100%, 300px); text-align: left; }
.resume__thumb { position: relative; width: 132px; flex: none; aspect-ratio: 16/9; border-radius: 6px; overflow: hidden; background: var(--surface-2); }
.resume__thumb img { width: 100%; height: 100%; object-fit: contain; }
.resume__txt { display: grid; gap: 3px; min-width: 0; }
.resume__txt b { font-weight: 500; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.resume__saved { margin-left: auto; }
@media (max-width: 999px) { .resume__thumb { border-radius: 4px; } }
@media (max-width: 600px) { .resume__txt .eyebrow { font-size: 10px; white-space: nowrap; } .resume__play { gap: var(--s-3); } .resume__thumb { width: 112px; } .resume__in { padding: 10px; } }

/* More from Luneia — two round buttons at the bottom of the page (same look as /links) */
.hmore-section { padding-top: var(--s-5); }
.section + .hmore-section { border-top: 0; }  /* beats `.section + .section`: no divider line above the buttons */
.hmore { display: grid; gap: 12px; width: min(100%, 480px); margin-inline: auto; }
.hm { display: grid; grid-template-columns: 50px 1fr 50px; align-items: center; gap: 14px; min-height: 66px; padding: 8px 18px 8px 8px; border-radius: 999px; text-align: center;
  border: 1px solid rgba(240,228,210,.1); background: var(--surface);
  box-shadow: 0 1px 0 rgba(255,250,240,.04) inset, 0 14px 34px -22px rgba(0,0,0,.95); transition: transform var(--t-base) var(--ease-out), background var(--t-base), border-color var(--t-base); }
.hm:hover { transform: translateY(-2px); border-color: var(--line-2); background: var(--hover); }
.hm__ico { display: grid; place-items: center; width: 50px; height: 50px; border-radius: 50%; background: var(--surface-2); color: var(--moon); }
.hm__ico svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.hm__txt { display: grid; gap: 2px; justify-items: center; min-width: 0; }
.hm__txt b { font-weight: 500; line-height: 1.25; }
.hm__txt small { max-width: 100%; font-size: var(--fs-xs); color: var(--text-3); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.hm__go { justify-self: center; width: 34px; height: 34px; display: grid; place-items: center; border-radius: 50%; background: rgba(255,250,240,.05); color: var(--text-3); transition: transform var(--t-base), color var(--t-base); }
.hm:hover .hm__go { color: var(--moon); transform: translateX(3px); }
