/* Homepage only: the page starts in a soft daytime nursery and drifts into night as you scroll. */
.home main > section { padding: 96px 0; position: relative; }

/* ---------- hero ---------- */
.h-hero { padding: 140px 0 34px !important; overflow: hidden; isolation: isolate;
  background: linear-gradient(transparent 62%, var(--bg) 96%),
              radial-gradient(120% 80% at 80% 10%, var(--blush) 0%, transparent 60%),
              radial-gradient(90% 70% at 0% 100%, #f3ebfa 0%, transparent 55%), var(--bg); }
.b1 { width: 380px; height: 380px; background: var(--butter); left: -120px; top: 80px; }
.b2 { width: 300px; height: 300px; background: var(--sky); right: 18%; bottom: 40px; }
.h-hero-grid { display: grid; grid-template-columns: 1.15fr 1fr; gap: 48px; align-items: center; padding-bottom: 88px; }
.h-title { font-size: clamp(2.8rem, 7.4vw, 5.6rem); line-height: 1; letter-spacing: -.03em; margin-bottom: .35em; font-weight: 520; }
.h-title .split { display: inline-block; }
.h-title .split div { padding-bottom: .16em; margin-bottom: -.16em; }
.h-title em { display: inline-block; font-weight: 440; color: var(--rose); padding-right: .08em; }
.h-hero .lead { font-size: clamp(1.1rem, 1.9vw, 1.28rem); color: var(--muted); max-width: 31em; margin-bottom: 1.8em; }

.h-window { position: relative; width: min(100%, 460px); justify-self: center; aspect-ratio: 1; }
.h-porthole { position: absolute; inset: 9%; border-radius: 50%; background: var(--blush);
  box-shadow: 0 0 0 10px var(--card), 0 0 0 11px var(--petal), 0 30px 60px -20px rgba(120, 50, 85, .45); }
.h-porthole::after { content: ""; position: absolute; inset: 0; border-radius: 50%; pointer-events: none;
  box-shadow: inset 0 0 40px rgba(255, 255, 255, .7); background: radial-gradient(circle at 32% 28%, rgba(255, 255, 255, .55), transparent 38%); }
.h-porthole canvas { width: 100%; height: 100%; }
.h-window::before { content: ""; position: absolute; inset: 2%; border-radius: 50%; border: 2px dashed var(--pink); opacity: .8;
  animation: h-turn 60s linear infinite; }
.h-stars { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; fill: var(--pink); }
.h-stars .moon { fill: var(--moon); stroke: #e9cf86; stroke-width: 1.5; }
.h-stars .s1, .h-stars .s3 { fill: #c9b6ee; }
.h-stars path, .h-stars circle { transform-box: fill-box; transform-origin: center; animation: h-twinkle 3.6s ease-in-out infinite; }
.h-stars .s2 { animation-delay: -1.2s; } .h-stars .s3 { animation-delay: -2.1s; } .h-stars .s4 { animation-delay: -.6s; }
.h-stars .moon { animation: h-bob 6s ease-in-out infinite; }

.h-ribbon { background: var(--rose-deep); color: #fff; overflow: hidden; padding: 14px 0;
  box-shadow: 0 10px 30px -14px rgba(120, 50, 85, .5); }
.h-ribbon-track { display: flex; width: max-content; align-items: center; gap: 22px; animation: h-marquee 114s linear infinite;
  font: italic 500 1.5rem var(--head); font-variation-settings: "SOFT" 100, "WONK" 1; white-space: nowrap; }
.h-ribbon i { font-style: normal; color: var(--pink); font-size: 1rem; }

/* ---------- the path ---------- */
.h-path { background: linear-gradient(#f8eef0 0%, #efe3f1 45%, #cdb9d8 100%); }
.h-path-head { text-align: center; }
.h-path-head h2 { margin-bottom: 0; }
.h-path-art { margin: 36px auto 8px; max-width: 1000px; }
.h-path-art svg { width: 100%; height: auto; overflow: visible; }
.h-path-art .wide { display: none; }
:is(.wide, .long) .dot text:not(.stop) { font-size: 15px; }
.trail-bg, .trail { fill: none; stroke-linecap: round; stroke-width: 6; }
.trail-bg { stroke: rgba(147, 57, 95, .14); stroke-dasharray: 2 12; }
.trail { stroke: var(--rose); }
.dot circle { fill: var(--card); stroke: var(--pink); stroke-width: 3; }
.dot text { font: 800 13px var(--body); fill: var(--rose-deep); text-anchor: middle; }
.dot.on circle { fill: var(--rose-deep); stroke: var(--card); }
.dot.on text { fill: #fff; }
.dot.mastery circle { stroke: var(--dusk); }
.dot.mastery text { fill: var(--dusk); }
.dot.mastery.on circle { fill: var(--dusk); stroke: var(--card); }
.dot.mastery.on text { fill: #fff; }
.dot.mastery .stop, .dot.mastery.on .stop { fill: var(--dusk); }
.dot .stop { font: 700 17px var(--body); fill: var(--rose-deep); text-anchor: middle; paint-order: stroke; stroke: #f6ecf1; stroke-width: 5px;
  stroke-linejoin: round; opacity: .4; transition: opacity .5s; }
.dot.on .stop { fill: var(--rose-deep); opacity: 1; }
html:not(.motion) .dot .stop { opacity: 1; }
.stop-caption { display: none; }
.bracket path { fill: none; stroke: var(--rose); stroke-width: 2.5; stroke-linecap: round; stroke-linejoin: round; opacity: .55; }
.bracket text { font: 700 18px var(--body); fill: var(--rose-deep); text-anchor: middle; }
.bracket.mastery path { stroke: var(--dusk); }
.bracket.mastery text { fill: var(--dusk); }
html.motion .bracket { opacity: 0; transition: opacity .6s ease; }
html.motion .bracket.on { opacity: 1; }
.h-steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 48px; margin-top: 40px; }
.h-step h3 { font-size: clamp(1.4rem, 2.2vw, 1.85rem); font-weight: 520; }
.h-step p { color: #5d4856; font-size: 1.12rem; }

/* ---------- the shelf (on the night sky) ---------- */
.h-shelf { background: var(--night); color: #f4e9f1; }
.h-shelf h2 { color: #fff; }
.h-shelf a { color: var(--pink); }
.tapes { display: grid; gap: 26px; grid-template-columns: repeat(3, 1fr); margin-top: 34px; }
.tape-card { border-radius: var(--radius); padding: 22px 24px 26px; color: var(--ink); background: var(--card);
  transition: transform .4s cubic-bezier(.3, 1.4, .5, 1); }
.tape-card.c1 { background: var(--blush); transform: rotate(-1.4deg); }
.tape-card.c2 { background: var(--lilac); transform: rotate(.8deg) translateY(14px); }
.tape-card.c3 { background: var(--mint); transform: rotate(-.5deg); }
.tape-card:hover { transform: rotate(0) translateY(-6px); }
.tape-card h3 { margin: 18px 0 .4em; }
.tape-card p { margin: 0; color: #4e3b47; }
.tape-card a { color: var(--rose-deep); }
.cassette { display: flex; align-items: center; justify-content: space-between; gap: 10px; height: 74px; padding: 0 22px;
  border-radius: 14px; background: rgba(255, 255, 255, .7); box-shadow: inset 0 0 0 2px rgba(59, 39, 52, .12); }
.cassette .window { flex: 1; height: 26px; border-radius: 8px; background: rgba(59, 39, 52, .12); }
.cassette .reel { width: 40px; height: 40px; border-radius: 50%; flex: none;
  background: radial-gradient(circle, var(--card) 0 5px, transparent 6px),
              repeating-conic-gradient(rgba(59, 39, 52, .55) 0 18deg, transparent 18deg 60deg), rgba(59, 39, 52, .2); }
.tape-card:hover .reel { animation: h-turn 2.4s linear infinite; }

/* ---------- members' stories (night sky, shown once Ashley approves one) ---------- */
.h-stories { background: var(--night); color: #f4e9f1; }
.h-stories h2 { color: #fff; }
.stories { display: grid; gap: 22px; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); margin-top: 30px; }
.story { margin: 0; padding: 24px 26px; border-radius: var(--radius); color: var(--ink); background: var(--card); }
.story.s1 { background: var(--blush); } .story.s2 { background: var(--lilac); } .story.s3 { background: var(--sky); }
.story blockquote { margin: 0 0 14px; font: 500 1.12rem/1.6 var(--head); font-variation-settings: "SOFT" 100; }
.story blockquote::before { content: "\201C"; } .story blockquote::after { content: "\201D"; }
.story figcaption { font-weight: 800; color: #5d4855; font-size: .95rem; }

/* ---------- voices, blog, end ---------- */
.h-voices { background: linear-gradient(var(--night), var(--plum)); color: #f4e9f1; }
.h-voices h2 { color: #fff; }
.h-voices .voice { color: var(--ink); }
.h-blog { background: linear-gradient(var(--plum), var(--dusk) 30%, #e8d9ec 75%, var(--bg)); color: #f4e9f1; }
.h-blog h2#blog-title { color: #fff; }
.h-blog .post-card { color: var(--ink); }
.h-more a { color: #fff; }
.h-end { text-align: center; padding: 120px 0 130px !important; background: var(--bg); overflow: hidden; }
.h-end .btns { justify-content: center; }
.nightlight { position: relative; width: 96px; height: 96px; margin: 0 auto 30px; border-radius: 50%; transform: rotate(-24deg);
  box-shadow: inset -26px 8px 0 0 var(--moon); filter: drop-shadow(0 0 22px rgba(247, 215, 130, .75)); animation: h-glow 5s ease-in-out infinite; }
.nightlight::after { content: ""; position: absolute; inset: -60px; z-index: -1; border-radius: 50%;
  background: radial-gradient(closest-side, rgba(247, 230, 181, .3), transparent); }

/* ---------- motion ---------- */
@keyframes h-turn { to { transform: rotate(360deg); } }
@keyframes h-twinkle { 50% { transform: scale(.6); opacity: .5; } }
@keyframes h-bob { 50% { transform: translateY(-8px) rotate(-6deg); } }
@keyframes h-marquee { to { transform: translateX(-50%); } }
@keyframes h-glow { 50% { transform: rotate(-18deg) translateY(-6px); } }
@media (prefers-reduced-motion: reduce) {
  .h-window::before, .h-stars *, .h-ribbon-track, .nightlight, .tape-card:hover .reel { animation: none !important; }
}

/* ---------- small screens ---------- */
@media (max-width: 900px) {
  .h-hero { padding-top: 112px !important; }
  .h-hero-grid { grid-template-columns: 1fr; gap: 36px; text-align: left; padding-bottom: 64px; }
  .h-window { width: min(78vw, 380px); }
  .h-path-art .long { display: none; }
  .h-path-art .wide { display: block; }
  .stop-caption { display: block; min-height: 1.5em; margin: 10px 0 0; text-align: center; font-weight: 800; color: var(--rose-deep); }
  .h-steps { grid-template-columns: 1fr; gap: 28px; margin-top: 28px; }
  .tapes { grid-template-columns: 1fr; max-width: 460px; }
  .h-counts { grid-template-columns: 1fr; }
  .h-counts div { display: grid; grid-template-columns: 3.2rem 1fr; align-items: center; gap: 12px; }
  .h-counts b { margin: 0; font-size: 2.2rem; }
  .tape-card.c2 { transform: rotate(.8deg); }
  .home main > section { padding: 72px 0; }
}

.h-tour-btn { position: relative; display: inline-grid; grid-template-columns: 1fr auto; align-items: center; column-gap: 18px; margin-top: 16px;
  padding: 16px 26px 16px 28px; border-radius: 24px; text-decoration: none; color: #fff; max-width: 100%;
  background: radial-gradient(130% 160% at 0% 0%, var(--rose-deep) 0%, var(--dusk) 50%, var(--plum) 100%);
  box-shadow: 0 16px 34px -14px rgba(42, 28, 51, .6), inset 0 -3px 0 rgba(0, 0, 0, .18); transition: transform .2s ease, box-shadow .2s ease; }
.h-tour-btn:hover { color: #fff; transform: translateY(-2px); box-shadow: 0 20px 40px -14px rgba(42, 28, 51, .7), inset 0 -3px 0 rgba(0, 0, 0, .18); }
.h-tour-main { font: 600 1.3rem/1.2 var(--head); font-variation-settings: "SOFT" 100; text-wrap: balance; }
.h-tour-sub { grid-column: 1; font-size: .92rem; font-weight: 600; color: rgba(255, 255, 255, .8); margin-top: 2px; }
.h-tour-arrow { grid-column: 2; grid-row: 1 / span 2; display: grid; place-items: center; width: 42px; height: 42px; border-radius: 50%;
  background: rgba(255, 255, 255, .16); font-size: 1.2rem; transition: transform .2s ease; }
.h-tour-btn:hover .h-tour-arrow { transform: translateX(3px); }
@media (max-width: 560px) { .h-tour-btn { display: grid; width: 100%; padding: 16px 18px 16px 22px; } .h-tour-main { font-size: 1.15rem; } }
@media (prefers-reduced-motion: reduce) { .h-tour-btn, .h-tour-arrow { transition: none; } .h-tour-btn:hover, .h-tour-btn:hover .h-tour-arrow { transform: none; } }
