/* ============================================================
   Stress & Resilience (stress.html) - page styles.
   v2.60.0 (R6b - the page joins the shared component layer)

   Linked LAST, after css/components.css and css/hc-steps.css, so the
   page's own accent and pieces win without !important. What lives here
   is only what is this page's: its calm blue accent, the aurora hero,
   the HPA stage (theme, 2D view, labels), the Calm Space (v2.61.0: its
   eight worlds in 2D, the words band, the now-playing bar) and the help
   band. Everything else is the shared layer.

   Accent (text-safe values checked by research/tests/stress-r6):
     light  --pg-acc #2D9CDB  --pg-acc-ink #1A6AA3  --pg-acc-soft #E8F3FB
     dark   --pg-acc #5FB8F0  --pg-acc-ink #8CCBF5  --pg-acc-soft #0F2333
   ============================================================ */
.st-page {
  --pg-acc: #2D9CDB; --pg-acc-ink: #1A6AA3; --pg-acc-soft: #E8F3FB;
  --st-cat-mind-body: #2D9CDB; --st-cat-lifestyle: #1F9455; --st-cat-supplement: #7B6BD0;
  --st-ease: cubic-bezier(.25, 1, .5, 1);
}
body.dark .st-page { --pg-acc: #5FB8F0; --pg-acc-ink: #8CCBF5; --pg-acc-soft: #0F2333;
  --st-cat-mind-body: #5FB8F0; --st-cat-lifestyle: #52D6A0; --st-cat-supplement: #ADA2EA; }

/* ---------- HERO: the aurora, kept; refined to the redesigned heroes ---------- */
.st-hero { position: relative; overflow: hidden; padding: 5rem 1.5rem 4.5rem;
  background: linear-gradient(165deg, var(--hc-ink-900) 0%, #0d3550 72%, #1E7BB8 145%); background-color: #0B2238; }
.st-hero::before { content: ""; position: absolute; inset: 0; pointer-events: none; z-index: 1;
  background: radial-gradient(ellipse 50% 60% at 82% 28%, rgba(95, 224, 207, .12), transparent 70%),
              radial-gradient(ellipse 40% 45% at 8% 92%, rgba(140, 140, 245, .1), transparent 70%); }
#st-breath-bg { position: absolute; inset: 0; width: 100%; height: 100%; opacity: .9; z-index: 0; }
.st-hero-in { position: relative; z-index: 2; }
.st-hero-eye { display: inline-flex; align-items: center; gap: .5rem; background: rgba(45, 156, 219, .16); border: 1px solid rgba(95, 184, 240, .45); color: #A9DBF6;
  font-size: .74rem; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; padding: .4rem 1rem; border-radius: 50px; margin-bottom: 1.5rem;
  -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); }
.st-hero-eye .hci { color: #5FE0CF; }
.st-hero-title { font-family: 'Fraunces', Georgia, serif; font-weight: 700; color: #fff; margin-bottom: 1rem; padding-bottom: .06em; }
.st-hero-title em { font-style: italic; font-weight: 500; background: linear-gradient(120deg, #A9DBF6 10%, #5FE0CF 95%); -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent; display: inline-block; padding: 0 .08em .16em 0; margin-bottom: -.16em; }
.st-hero-sub { font-size: 1.05rem; color: rgba(255, 255, 255, .78); line-height: 1.7; margin-bottom: 2rem; }
.st-hero-jump { display: flex; gap: .65rem; flex-wrap: wrap; margin-bottom: 2.5rem; justify-content: flex-start; }
.st-hero-cta { transition: background-color .3s var(--st-ease), transform .3s var(--st-ease), box-shadow .3s var(--st-ease); }
.st-hero-cta:hover { transform: translateY(-2px); box-shadow: 0 12px 28px -10px rgba(0, 133, 120, .7); }
.st-hero-cta span { transition: transform .3s var(--st-ease); }
.st-hero-cta:hover span { transform: translateX(3px); }
.st-hero-ghost { color: #fff; background: rgba(255, 255, 255, .06); border-color: rgba(255, 255, 255, .28); }
.st-hero-ghost:hover { background: rgba(255, 255, 255, .14); border-color: rgba(255, 255, 255, .5); }
.st-hero .hc-btn:focus-visible { outline-color: #fff; }
.st-hero-stats { display: flex; flex-wrap: wrap; gap: 1.25rem 2.75rem; padding-top: 1.5rem; border-top: 1px solid rgba(255, 255, 255, .12); max-width: 46rem; }
.st-hero-stats > div { display: flex; flex-direction: column-reverse; gap: .3rem; }
.st-hs-n { font-family: 'Fraunces', Georgia, serif; font-size: 2rem; font-weight: 650; line-height: 1; color: #A9E9E0; letter-spacing: -.02em; }
.st-hs-n small { font-family: 'Inter', system-ui, sans-serif; font-size: .9rem; font-weight: 600; color: rgba(255, 255, 255, .74); letter-spacing: 0; }
.st-hs-l { font-family: var(--c-mono); font-size: .74rem; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: rgba(255, 255, 255, .72); }
@media (max-width: 560px) {
  .st-hero { padding: 3.75rem 1.25rem 3.5rem; }
  .st-hero-stats { gap: 1rem 1.75rem; }
  .st-hs-n { font-size: 1.6rem; }
}
.st-notewrap { padding-top: 2rem; }

/* ---------- 01 the science cards ---------- */
.st-sci .hc-card-title { font-size: 1.24rem; }
.st-sci-foot { flex-wrap: wrap; justify-content: flex-start; gap: .4rem 1.25rem; }
.st-sci-foot .hc-card-go { min-height: 44px; text-decoration: none; }
.st-sci-foot .hc-card-go::after { content: "\2193"; }
.st-sci-foot .hc-card-go:hover { text-decoration: underline; text-underline-offset: 4px; }
.st-sci-foot .hc-card-go:focus-visible, .st-xl a:focus-visible { outline: 3px solid var(--hc-ink-800); outline-offset: 2px; border-radius: 2px; }
body.dark .st-sci-foot .hc-card-go:focus-visible, body.dark .st-xl a:focus-visible { outline-color: var(--hc-teal-light); }
.st-xl { display: inline-flex; flex-wrap: wrap; align-items: center; gap: .1rem .9rem; }
.st-xl-k { font-family: var(--c-mono); font-size: .72rem; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--c-text-3); }
.st-xl a { min-height: 44px; min-width: 44px; justify-content: center; display: inline-flex; align-items: center; font-size: .9rem; font-weight: 600; color: var(--pg-acc-ink); text-decoration: underline; text-decoration-color: color-mix(in srgb, var(--pg-acc-ink) 40%, transparent); text-underline-offset: 3px; }
.st-xl a:hover { text-decoration-color: currentColor; }
@media (min-width: 1000px) { .st-sci--lead .hc-card-title { font-size: 1.5rem; } }

/* ---------- 02 THE STRESS RESPONSE: a night stage, one family with the brain's and the muscle's ---------- */
.st-sec-hpa { background: var(--c-card); }
.hpa-fig.hc-figure {
  padding: 0; border: 0; border-radius: 28px; overflow: hidden; isolation: isolate;
  background:
    radial-gradient(60% 75% at 34% 46%, rgba(62, 123, 214, .24), transparent 70%),
    radial-gradient(40% 45% at 92% 6%, rgba(95, 224, 207, .1), transparent 70%),
    linear-gradient(160deg, #0C1D36 0%, #060E1D 64%);
  background-color: #060E1D;
  color: #EEF5FC;
  box-shadow: 0 40px 80px -40px rgba(6, 22, 48, .6), inset 0 0 0 1px rgba(150, 200, 255, .14);
}
.hpa-fig .hcsp-root {
  --sp-line: rgba(150, 200, 255, .16);
  --sp-text: #EEF5FC;
  --sp-text-2: #C4D5E8;
  --sp-text-3: #9FB4CC;
  --sp-acc: #8CCBF5;
  --sp-ink: #061220;
  --sp-grid: rgba(150, 200, 255, .05);
  --sp-glass: rgba(6, 14, 29, .62);
  --sp-tog-hover: rgba(62, 123, 214, .3);
  --sp-tog-hover-line: rgba(150, 200, 255, .42);
  --sp-tog-on: rgba(62, 123, 214, .4);
  --sp-tog-on-line: rgba(150, 200, 255, .58);
  --sp-n-line: rgba(140, 203, 245, .45);
  --sp-cur: rgba(62, 123, 214, .26);
  --sp-cur-line: rgba(140, 203, 245, .62);
  --sp-hi: #FFD9A0;
  --sp-hi-line: rgba(255, 197, 107, .5);
  --sp-hi-bg: rgba(255, 197, 107, .1);
  --sp-hi-bg-2: rgba(255, 197, 107, .2);
  --sp-hi-line-2: rgba(255, 197, 107, .75);
  --sp-hi-ul: rgba(255, 217, 160, .45);
  --sp-rule: linear-gradient(#5FE0CF, #B9A6FF 52%, #FFC56B);
  --sp-h: clamp(500px, 44vw, 600px);
}
.hpa3d-canvas { cursor: default; }
/* desktop: the stage fills the row beside the (taller) caption panel - no dark band beneath it */
@media (min-width: 1000px) {
  .hpa-fig .hcsp-stage { height: auto; min-height: var(--sp-h); }
  /* the caption reserves the longest step's room, so the stage keeps one height from step to step */
  .hpa-fig .hcsp-root .hcsp-cap { min-height: 21.5rem; }
}
@media (max-width: 999px) { .hpa-fig .hcsp-stage { --sp-h: clamp(500px, 66vw, 580px); } }
@media (max-width: 640px) {
  .hpa-fig.hc-figure { border-radius: 22px; }
  .hpa-fig .hcsp-stage { --sp-h: min(124vw, 500px); }
}

/* labels: organ names plain, hormone names in their messenger's colour */
.hpa3d-labels { position: absolute; inset: 0; pointer-events: none; transition: opacity .5s var(--st-ease); }
.hpa-lab { position: absolute; left: 0; top: 0; white-space: nowrap; pointer-events: none;
  font: 600 .8rem/1 'Inter', system-ui, sans-serif; letter-spacing: .01em; color: #EEF5FC;
  padding: .38rem .6rem; border-radius: 999px; background: rgba(6, 14, 29, .78); border: 1px solid rgba(150, 200, 255, .26);
  -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); }
.hpa-lab.is-horm { font-family: var(--c-mono); font-weight: 700; letter-spacing: .06em; }
.hpa-lab.is-crh { color: #7CEBDD; border-color: rgba(95, 224, 207, .45); }
.hpa-lab.is-acth { color: #CFC2FF; border-color: rgba(185, 166, 255, .45); }
.hpa-lab.is-cort { color: #FFD394; border-color: rgba(255, 197, 107, .45); }
.hpa-lab-ln { position: absolute; height: 1px; width: 0; background: rgba(200, 222, 255, .55); transform-origin: 0 50%; }
.hpa-lab-ln::after { content: ""; position: absolute; right: -3px; top: -2px; width: 5px; height: 5px; border-radius: 50%; background: #EEF5FC; }
.hpa3d-lab { transition: transform .45s var(--st-ease); }

/* 2D view: the same arrangement, CSS geometry on the HCHPA.ANAT layout */
.hpa2d { width: 100%; height: 100%; display: flex; align-items: center; justify-content: center; }
.hpa2d-art { position: relative; height: 94%; aspect-ratio: 3.2 / 5.6; max-width: 100%; }
.hpa2d-art > * { position: absolute; display: block; }
.hpa2d-torso { border-radius: 46% 46% 20% 20% / 17% 17% 6% 6%; border: 1px solid rgba(142, 200, 255, .32);
  background: linear-gradient(180deg, rgba(142, 200, 255, .08), rgba(142, 200, 255, .025) 70%);
  -webkit-mask-image: linear-gradient(180deg, #000 72%, transparent 100%); mask-image: linear-gradient(180deg, #000 72%, transparent 100%); }
.hpa2d-neck { border-left: 1px solid rgba(142, 200, 255, .32); border-right: 1px solid rgba(142, 200, 255, .32); background: rgba(142, 200, 255, .05); }
.hpa2d-head { border-radius: 50%; border: 1px solid rgba(142, 200, 255, .4); background: radial-gradient(70% 70% at 40% 35%, rgba(142, 200, 255, .1), rgba(142, 200, 255, .03)); }
.hpa2d-brain { border-radius: 50% 50% 46% 46% / 60% 60% 40% 40%; border: 1px solid rgba(207, 200, 255, .5);
  background: radial-gradient(65% 60% at 45% 40%, rgba(150, 140, 240, .32), rgba(91, 99, 184, .16)); }
.hpa2d-stalk, .hpa2d-vessel.is-trunk { width: 2px; margin-left: -1px; background: rgba(121, 174, 255, .5); border-radius: 2px; }
.hpa2d-vessel.is-branch { height: 2px; margin-top: -1px; background: rgba(121, 174, 255, .5); transform-origin: 0 50%; border-radius: 2px; }
.hpa2d-kid { border-radius: 50%; background: radial-gradient(70% 60% at 40% 35%, #C8656F, #8E3D48 70%, #6E2E38); box-shadow: inset 0 0 0 1px rgba(255, 192, 182, .35); }
.hpa2d-kid.is-l { -webkit-mask-image: radial-gradient(ellipse 34% 19% at 0% 50%, transparent 97%, #000 100%); mask-image: radial-gradient(ellipse 34% 19% at 0% 50%, transparent 97%, #000 100%); }
.hpa2d-kid.is-r { -webkit-mask-image: radial-gradient(ellipse 34% 19% at 100% 50%, transparent 97%, #000 100%); mask-image: radial-gradient(ellipse 34% 19% at 100% 50%, transparent 97%, #000 100%); }
.hpa2d-adr { border-radius: 50% 50% 20% 20% / 92% 92% 12% 12%; background: radial-gradient(80% 90% at 40% 30%, #FBDB8A, #D9A43C 75%); box-shadow: 0 0 0 1px rgba(255, 226, 166, .4); transition: box-shadow .8s var(--st-ease); }
.hpa2d-gland { border-radius: 50%; transition: box-shadow .8s var(--st-ease), filter .8s var(--st-ease); }
.hpa2d-gland.is-hyp { background: radial-gradient(circle at 40% 35%, #9FF5EA, #1E9C90); }
.hpa2d-gland.is-pit { background: radial-gradient(circle at 40% 35%, #E2D8FF, #6E57C4); }
/* which part is lit, per step and pattern */
.hpa2d[data-step="0"] .is-hyp { box-shadow: 0 0 14px 4px rgba(95, 224, 207, .85); }
.hpa2d[data-step="1"] .is-pit { box-shadow: 0 0 14px 4px rgba(185, 166, 255, .9); }
.hpa2d[data-step="1"] .is-hyp { box-shadow: 0 0 8px 2px rgba(95, 224, 207, .45); }
.hpa2d[data-step="2"] .hpa2d-adr { box-shadow: 0 0 16px 4px rgba(255, 197, 107, .85), 0 0 0 1px rgba(255, 226, 166, .6); }
.hpa2d[data-step="3"][data-variant="acute"] .is-hyp,
.hpa2d[data-step="3"][data-variant="acute"] .is-pit { animation: hpa2d-ease 4.6s ease-out both; }
@keyframes hpa2d-ease { 0%, 30% { box-shadow: 0 0 14px 4px rgba(255, 197, 107, .75); } 100% { box-shadow: 0 0 0 0 rgba(255, 197, 107, 0); } }
.hpa2d[data-variant="chronic"] .is-hyp { box-shadow: 0 0 11px 3px rgba(95, 224, 207, .6); }
.hpa2d[data-variant="chronic"] .is-pit { box-shadow: 0 0 11px 3px rgba(185, 166, 255, .6); }
.hpa2d[data-variant="chronic"] .hpa2d-adr { box-shadow: 0 0 12px 3px rgba(255, 197, 107, .6), 0 0 0 1px rgba(255, 226, 166, .5); }
/* step 4: the brake - an amber ring around the hypothalamus and pituitary (weaker when chronic) */
.hpa2d-brake { border-radius: 50%; border: 2px solid rgba(255, 197, 107, .95); box-shadow: 0 0 14px 3px rgba(255, 197, 107, .5), inset 0 0 10px rgba(255, 197, 107, .35);
  animation: hpa2d-brake .7s ease-out 1.5s both; }
.hpa2d[data-variant="chronic"] .hpa2d-brake { opacity: .4; animation: none; }
@keyframes hpa2d-brake { from { opacity: 0; } to { opacity: 1; } }
/* pulses ride a track; each route is a container, so a pulse travels 100cqh */
.hpa2d-track { width: 12px; margin-left: -6px; container-type: size; display: none; }
.hpa2d-pulse { position: absolute; left: 1px; top: 0; width: 10px; height: 10px; border-radius: 50%; opacity: 0;
  animation: hpa2d-down 2.4s cubic-bezier(.45, 0, .55, 1) calc(var(--d) * .32s + .25s) 1 both; }
.hpa2d-track.is-crh .hpa2d-pulse { background: #7CEBDD; box-shadow: 0 0 10px 3px rgba(95, 224, 207, .7); animation-duration: 1.3s; }
.hpa2d-track.is-down .hpa2d-pulse { background: #CFC2FF; box-shadow: 0 0 10px 3px rgba(185, 166, 255, .7); }
.hpa2d-track.is-up .hpa2d-pulse { background: #FFD394; box-shadow: 0 0 10px 3px rgba(255, 197, 107, .7); animation-name: hpa2d-up; }
@keyframes hpa2d-down { 0% { transform: translateY(0); opacity: 0; } 12%, 85% { opacity: 1; } 100% { transform: translateY(calc(100cqh - 10px)); opacity: 0; } }
@keyframes hpa2d-up { 0% { transform: translateY(calc(100cqh - 10px)); opacity: 0; } 12%, 85% { opacity: 1; } 100% { transform: translateY(0); opacity: 0; } }
.hpa2d[data-step="0"] .hpa2d-track.is-crh,
.hpa2d[data-step="1"] .hpa2d-track.is-down,
.hpa2d[data-step="2"] .hpa2d-track.is-up,
.hpa2d[data-step="3"] .hpa2d-track.is-up,
.hpa2d[data-variant="chronic"] .hpa2d-track { display: block; }
.hpa2d[data-variant="chronic"] .hpa2d-pulse { animation-iteration-count: infinite; animation-delay: calc(var(--d) * -.6s); }
.hpa2d[data-variant="chronic"] .hpa2d-track { opacity: .6; }
.hpa2d-labs { inset: 0; pointer-events: none; }
.hpa2d-lab { transform: translate(14px, -50%); }
.hpa2d-lab.is-l { transform: translate(calc(-100% - 14px), -50%); }
.hpa2d-lab::before { content: ""; position: absolute; top: 50%; width: 12px; height: 1px; background: rgba(200, 222, 255, .55); }
.hpa2d-lab.is-r::before { right: 100%; }
.hpa2d-lab.is-l::before { left: 100%; }
@media (prefers-reduced-motion: reduce) {
  .hpa2d-pulse { animation: none !important; opacity: 1; transform: translateY(calc((var(--d) * 26% + 10%) * 1)); top: calc(var(--d) * 24% + 8%); }
  .hpa2d[data-step="3"][data-variant="acute"] .is-hyp, .hpa2d[data-step="3"][data-variant="acute"] .is-pit { animation: none !important; box-shadow: 0 0 6px 1px rgba(255, 197, 107, .4); }
  .hpa3d-lab, .hpa3d-labels { transition: none; }
  .hpa2d-brake { animation: none !important; }
}

/* ---------- 03 the daily rhythm ---------- */
.st-chart { max-width: 940px; }
.st-page .hcc { margin: 0; border: 1px solid var(--c-line); border-radius: var(--c-r-1); background: var(--c-card); padding: clamp(1.1rem, 3vw, 2rem); }
.st-page .hcc-title { font-size: clamp(1.1rem, 2vw, 1.3rem); font-weight: 620; color: var(--c-text); }
.st-page .hcc-head { margin-bottom: 1.4rem; align-items: center; }
.st-page .hcc-note { font-size: .9rem; line-height: 1.6; color: var(--c-text-2); margin-top: 1.1rem; }
.st-page .hcc-schem { color: var(--c-text-2); border-color: var(--c-line-strong); }
.st-page .hcc-sc-y, .st-page .hcc-sc-x, .st-page .hcc-sc-mlbl, .st-page .hcc-sc-key-i { color: var(--c-text-2); }
body.dark .st-page .hcc { background: var(--c-card) !important; border-color: var(--c-line) !important; }
body.dark .st-page .hcc-schem, body.dark .st-page .hcc-sc-y, body.dark .st-page .hcc-sc-x, body.dark .st-page .hcc-sc-mlbl, body.dark .st-page .hcc-sc-key-i { color: var(--c-text-2) !important; }

/* ---------- 04 the tabs ---------- */
.st-sec-tabs { padding-bottom: clamp(3rem, 7vw, 5.5rem); }
.st-sec-tabs > .hc-inner:first-child .hc-head { margin-bottom: 1.5rem; }
.st-tabbar { position: sticky; top: var(--hc-nav-h, 64px); z-index: 50; border-radius: 0; border-top: 1px solid var(--c-line); background: color-mix(in srgb, var(--c-card) 90%, transparent); }
body.dark .st-tabbar { background: color-mix(in srgb, var(--c-card) 92%, transparent); }
.st-tpanels { padding-top: clamp(1.75rem, 4vw, 2.75rem); }
.st-tpanel[hidden] { display: none; }
.st-ph-head { max-width: 760px; margin-bottom: 1.75rem; }
.st-pt { font-family: 'Fraunces', Georgia, serif; font-size: clamp(1.5rem, 2.8vw, 2rem); font-weight: 650; letter-spacing: -.02em; line-height: 1.1; color: var(--c-text); margin: 0; }
.st-pl { margin: .6rem 0 0; font-size: 1rem; line-height: 1.65; color: var(--c-text-2); max-width: 62ch; }
.st-cat + .st-cat { margin-top: 2.25rem; }
.st-cathd { display: flex; align-items: center; gap: .55rem; margin: 0 0 .9rem; font-family: var(--c-mono); font-size: .8rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--c-text-2); }
.st-catic { display: inline-flex; color: var(--card-acc); }
.st-tl .hc-card-top { align-items: flex-start; }
.st-tl-cat { display: inline-flex; align-items: center; gap: .45rem; font-family: var(--c-mono); font-size: .72rem; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; color: var(--c-text-3); }
.st-tl .hc-card-title { font-size: 1.22rem; }
.st-tl .hc-ev { font-size: .72rem; }

/* tool detail (inside the shared drawer) */
.st-ph { position: relative; padding: 2rem 1.8rem 1.6rem; color: #fff;
  background: radial-gradient(80% 120% at 100% 0%, rgba(95, 224, 207, .16), transparent 60%), linear-gradient(160deg, #0d3550, #0B1B30); }
.st-ph-k { display: inline-flex; align-items: center; gap: .45rem; margin: 0 0 .55rem; font-family: var(--c-mono); font-size: .74rem; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: #A9DBF6; }
.st-ph-nm { font-family: 'Fraunces', Georgia, serif; font-size: 1.8rem; font-weight: 650; letter-spacing: -.02em; line-height: 1.1; margin: 0; color: #fff; }
.st-ph-ev { margin-top: .8rem; }
.st-ph .hc-ev { font-size: .74rem; }
.st-pb { padding: 1.6rem 1.8rem .5rem; }
.st-psec { margin-bottom: 1.35rem; }
.st-ph3 { margin: 0 0 .45rem; font-family: var(--c-mono); font-size: .74rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--pg-acc-ink); }
.st-psec p { margin: 0; font-size: .95rem; line-height: 1.72; color: var(--c-text-2); }
.st-evrow { display: grid; gap: .6rem; padding: .9rem 1rem; border: 1px solid var(--c-line); border-radius: var(--c-r-1); background: var(--c-card); }
.st-pb .hc-callout { margin-top: 0; }
.st-plink { margin-top: 1.25rem; }
.st-dfoot { padding: 1.2rem 1.8rem 2.5rem; }
.st-dfoot .hc-btn { width: 100%; }
@media (max-width: 560px) { .st-ph, .st-pb, .st-dfoot { padding-left: 1.25rem; padding-right: 1.25rem; } }

/* ---------- 05 help: always visible, prominent, calm ---------- */
.st-sec-help { background: linear-gradient(180deg, color-mix(in srgb, var(--pg-acc-soft) 70%, var(--hc-surface-200)), var(--hc-surface-200)); }
body.dark .st-sec-help { background: linear-gradient(180deg, #0E1E30, var(--hc-ink-750)); }
.st-sup { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 1.1rem 1.4rem; align-items: start; max-width: 880px;
  padding: clamp(1.4rem, 3vw, 2rem); background: var(--c-card); border: 1px solid #BFE6D2; border-left: 4px solid #1F9455; border-radius: var(--c-r-1);
  box-shadow: 0 24px 50px -36px rgba(14, 60, 40, .45); }
.st-sup-ic { width: 52px; height: 52px; display: grid; place-items: center; border-radius: 50%; background: #E3F5EC; color: #17703F; }
.st-sup p { margin: 0; font-size: clamp(1rem, 1.5vw, 1.1rem); line-height: 1.75; color: var(--c-text); }
body.dark .st-sup { border-color: #1F4A3E; border-left-color: #52D6A0; box-shadow: none; }
body.dark .st-sup-ic { background: #0F2A1E; color: #7FD6A8; }
@media (max-width: 560px) { .st-sup { grid-template-columns: 1fr; } .st-sup-ic { width: 44px; height: 44px; } }

/* ============================================================
   THE CALM SPACE (v2.61.0)
   A stage that is a place: the scene (3D canvas, or the matching CSS
   world in 2D) with the words in their own calm band underneath - never
   on the scene. The controls sit to the side (desktop) or below (phone).
   The mood colours are registered properties, so a world change
   crossfades the CSS side in step with the 3D one (1.5 s).
   ============================================================ */
@property --m-core { syntax: "<color>"; inherits: true; initial-value: #8FE6DA; }
@property --m-rim  { syntax: "<color>"; inherits: true; initial-value: #B3A6FF; }
@property --m-amb  { syntax: "<color>"; inherits: true; initial-value: #6C7BEA; }
.cs, .cs-np-host {
  --cs-ink: #EEF4FB; --cs-ink-2: #C7D3E3; --cs-ink-3: #9EAFC6;
  --cs-line: rgba(160, 190, 255, .12); --cs-line-2: rgba(160, 190, 255, .24);
  --cs-teal: #5FE0CF; --cs-deep: #050A16;
  --cs-band: color-mix(in srgb, var(--m-amb) 10%, #060B17);
  --cs-ease: cubic-bezier(.25, 1, .5, 1);
  --cs-breath: cubic-bezier(.37, 0, .63, 1);   /* ease-in-out sine: exactly the pacer's fullness curve */
  /* the shared 3D | 2D switch (HCViewSwitch, css/hc-steps.css), in the Calm Space's night palette */
  --vs-glass: rgba(5, 10, 22, .5); --vs-line: rgba(160, 190, 255, .24); --vs-text: #C7D3E3; --vs-text-hover: #EEF4FB;
  --vs-hover: rgba(30, 48, 92, .55); --vs-on: #5FE0CF; --vs-on-ink: #06110F; --vs-focus: #fff;
  transition: --m-core 1.5s ease, --m-rim 1.5s ease, --m-amb 1.5s ease;
}
.cs-head { max-width: 760px; margin-bottom: 1.6rem; }
.cs-title { font-family: 'Fraunces', Georgia, serif; font-size: clamp(1.5rem, 2.8vw, 2rem); font-weight: 650; letter-spacing: -.02em; line-height: 1.1; color: var(--c-text); margin: 0; }
.cs-title:focus { outline: none; }
.cs-title:focus-visible { outline: 2px solid var(--pg-acc); outline-offset: 4px; border-radius: 4px; }
.cs-line { margin: .55rem 0 0; font-size: 1rem; line-height: 1.65; color: var(--c-text-2); }

.cs-fig {
  margin: 0; position: relative; overflow: hidden; isolation: isolate;
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(290px, 320px); grid-template-areas: "stage panel" "note note";
  border-radius: 28px; color: var(--cs-ink);
  background: linear-gradient(170deg, #091327 0%, var(--cs-deep) 60%); background-color: var(--cs-deep);
  box-shadow: 0 50px 90px -50px rgba(6, 18, 40, .7), inset 0 0 0 1px rgba(160, 190, 255, .1);
}
.cs-stagewrap { grid-area: stage; min-width: 0; }
.cs-stage { position: relative; display: grid; grid-template-rows: auto auto; overflow: hidden; overflow: clip; }   /* clip: never a scroll container */
.cs-scene { position: relative; height: clamp(460px, 40vw, 580px); overflow: hidden; overflow: clip; container-type: size; background: var(--cs-deep); }
.cs-gl, .cs-2d { position: absolute; inset: 0; }
.cs-gl { opacity: 0; transition: opacity .9s var(--cs-ease); }
.cs-gl > canvas { display: block; touch-action: pan-y; }
.cs[data-mode="3d"] .cs-gl { opacity: 1; }
.cs[data-mode="3d"] .cs-2d { visibility: hidden; opacity: 0; }
.cs[data-mode="2d"] .cs-gl { visibility: hidden; }
.cs-2d { overflow: hidden; overflow: clip; transition: opacity 1.2s ease; }
.cs[data-ending] .cs-2d { opacity: .34; transition-duration: 10s; }

/* ---------- the words: their own calm band under the scene ---------- */
.cs-band { position: relative; z-index: 2; background: var(--cs-band); border-top: 1px solid var(--cs-line); }
.cs-band-in { position: relative; display: grid; grid-template-columns: minmax(0, 1fr) minmax(120px, 240px) minmax(8.5rem, auto); align-items: center; gap: 1rem 1.75rem;
  min-height: 92px; padding: 1rem clamp(1.1rem, 2.4vw, 1.75rem); }
.cs-phase { grid-column: 1; grid-row: 1; margin: 0; min-width: 0; font-family: 'Fraunces', Georgia, serif; font-style: italic; font-weight: 450; font-size: clamp(1.6rem, 2.6vw, 2.15rem); line-height: 1.1; letter-spacing: -.01em; color: #F4F8FD; }
.cs-phase.is-idle { font-family: var(--c-mono); font-style: normal; font-weight: 600; font-size: .8rem; line-height: 1.5; letter-spacing: .18em; text-transform: uppercase; color: var(--cs-ink-2); }
.cs-phase.is-done { font-size: clamp(1.35rem, 2.2vw, 1.7rem); color: #FFF3DE; }
.cs-meter { grid-column: 2; grid-row: 1; position: relative; display: block; height: 4px; border-radius: 4px; background: rgba(160, 190, 255, .14); opacity: 0; transition: opacity .6s ease; }
.cs-meter.is-on { opacity: 1; }
.cs-meter i { position: absolute; left: 0; top: 0; bottom: 0; right: 100%; border-radius: inherit; background: linear-gradient(90deg, color-mix(in srgb, var(--m-rim) 70%, transparent), var(--m-core)); }
.cs-meter i::after { content: ""; position: absolute; right: -5px; top: 50%; width: 10px; height: 10px; margin-top: -5px; border-radius: 50%; background: #fff;
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--m-core) 35%, transparent), 0 0 14px 2px color-mix(in srgb, var(--m-core) 60%, transparent); }
.cs-meter i[data-dir="in"] { animation: cs-fill var(--bt) var(--cs-breath) forwards; }
.cs-meter i[data-dir="out"] { right: 0; animation: cs-empty var(--bt) var(--cs-breath) forwards; }
@keyframes cs-fill { from { right: 100%; } to { right: 0; } }
@keyframes cs-empty { from { right: 0; } to { right: 100%; } }
.cs-aux { grid-column: 3; grid-row: 1; margin: 0; text-align: right; font: 600 .76rem/1.4 var(--c-mono); letter-spacing: .12em; text-transform: uppercase; color: var(--cs-ink-3); font-variant-numeric: tabular-nums; }
@media (prefers-reduced-motion: reduce) { .cs-meter { display: none; } }

/* ---------- stage tools: the shared 3D | 2D switch + full screen ---------- */
.cs-tools { position: absolute; top: 1rem; right: 1rem; z-index: 4; display: flex; align-items: center; gap: .5rem; }
.cs-vs { -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); }
.cs-tool { display: inline-flex; align-items: center; gap: .5rem; min-height: 44px; padding: 0 1rem; border-radius: 999px; border: 1px solid var(--cs-line-2);
  background: rgba(5, 10, 22, .5); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); color: var(--cs-ink-2);
  font: 600 .8rem/1 'Inter', system-ui, sans-serif; cursor: pointer; touch-action: manipulation;
  transition: background-color .35s var(--cs-ease), color .35s var(--cs-ease), border-color .35s var(--cs-ease); }
.cs-tool:hover { color: var(--cs-ink); background: rgba(30, 48, 92, .55); border-color: rgba(160, 190, 255, .45); }
.cs-tool[aria-pressed="true"] { color: var(--cs-ink); background: rgba(62, 90, 170, .45); border-color: rgba(160, 190, 255, .6); }
.cs-fs-ic { position: relative; width: 12px; height: 12px; flex: none;
  background: linear-gradient(currentColor, currentColor) 0 0 / 5px 1.5px, linear-gradient(currentColor, currentColor) 0 0 / 1.5px 5px,
              linear-gradient(currentColor, currentColor) 100% 0 / 5px 1.5px, linear-gradient(currentColor, currentColor) 100% 0 / 1.5px 5px,
              linear-gradient(currentColor, currentColor) 0 100% / 5px 1.5px, linear-gradient(currentColor, currentColor) 0 100% / 1.5px 5px,
              linear-gradient(currentColor, currentColor) 100% 100% / 5px 1.5px, linear-gradient(currentColor, currentColor) 100% 100% / 1.5px 5px;
  background-repeat: no-repeat; }
.cs-tool:focus-visible, .cs-close:focus-visible, .cs-tog:focus-visible, .cs-chip:focus-visible, .cs-np button:focus-visible { outline: 2px solid #fff; outline-offset: 2px; }

/* ---------- the control panel: quiet, to the side ---------- */
.cs-pick, .cs-vol, .cs-main { min-width: 0; }
.cs-panel { grid-area: panel; min-width: 0; border-left: 1px solid var(--cs-line); padding: 1.5rem 1.35rem 1.4rem; display: flex;
  background: linear-gradient(180deg, rgba(255, 255, 255, .018), transparent 40%); }
.cs-ctrl { display: flex; flex-direction: column; gap: 1.35rem; width: 100%; }
.cs-main { display: flex; flex-direction: column; gap: .65rem; }
.cs-go { min-height: 52px; font-size: 1rem; gap: .65rem; padding: 0 1.5rem; align-self: stretch; box-shadow: 0 14px 30px -16px rgba(0, 133, 120, .85); }
.cs-go:focus-visible { outline: 3px solid #fff !important; outline-offset: 2px; }
.cs-go-ic { width: 0; height: 0; border-left: 10px solid currentColor; border-top: 6px solid transparent; border-bottom: 6px solid transparent; }
.cs-go[data-state="on"] .cs-go-ic { width: 10px; height: 10px; border: 0; background: currentColor; border-radius: 2px; }
/* on/off switches: a labelled row, the On / Off word and a track with a knob */
.cs-togs { display: grid; grid-template-columns: minmax(0, 1fr); gap: .35rem; }
.cs-tog { display: flex; align-items: center; gap: .65rem; min-height: 44px; padding: 0 .55rem 0 .85rem; border-radius: 12px; border: 1px solid var(--cs-line);
  background: rgba(255, 255, 255, .02); color: var(--cs-ink-2); font: 500 .86rem/1.15 'Inter', system-ui, sans-serif; text-align: left; cursor: pointer; touch-action: manipulation;
  transition: background-color .35s var(--cs-ease), border-color .35s var(--cs-ease), color .35s var(--cs-ease); }
.cs-tog-l { flex: 1; min-width: 0; }
.cs-tog-s { min-width: 2.1em; text-align: right; font: 600 .72rem/1 var(--c-mono); letter-spacing: .12em; text-transform: uppercase; color: var(--cs-ink-3); }
.cs-tog-t { position: relative; flex: none; width: 40px; height: 24px; border-radius: 999px; background: rgba(160, 190, 255, .14); box-shadow: inset 0 0 0 1.5px rgba(160, 190, 255, .5);
  transition: background-color .35s var(--cs-ease), box-shadow .35s var(--cs-ease); }
.cs-tog-t i { position: absolute; left: 4px; top: 4px; width: 16px; height: 16px; border-radius: 50%; background: #C3CEE0; transition: transform .35s var(--cs-ease), background-color .35s ease; }
.cs-tog:hover { color: var(--cs-ink); border-color: var(--cs-line-2); background: rgba(255, 255, 255, .045); }
.cs-tog[aria-checked="true"] { color: var(--cs-ink); border-color: rgba(95, 224, 207, .4); background: rgba(95, 224, 207, .06); }
.cs-tog[aria-checked="true"] .cs-tog-s { color: var(--cs-teal); }
.cs-tog[aria-checked="true"] .cs-tog-t { background: var(--cs-teal); box-shadow: inset 0 0 0 1.5px var(--cs-teal); }
.cs-tog[aria-checked="true"] .cs-tog-t i { transform: translateX(16px); background: #fff; box-shadow: 0 1px 3px rgba(0, 0, 0, .35); }
@media (prefers-reduced-motion: reduce) { .cs-tog-t, .cs-tog-t i { transition: none; } }
.cs-lab { display: block; margin-bottom: .5rem; font-family: var(--c-mono); font-size: .74rem; font-weight: 600; letter-spacing: .16em; text-transform: uppercase; color: var(--cs-ink-3); }
/* single-choice chips: the sounds (with their world's colour) and the session length */
.cs-chips { display: grid; grid-template-columns: 1fr 1fr; gap: .35rem; }
.cs-lens { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.cs-chip { display: inline-flex; align-items: center; gap: .55rem; min-height: 44px; padding: 0 .75rem; border-radius: 12px; border: 1px solid var(--cs-line);
  background: rgba(255, 255, 255, .02); color: var(--cs-ink-2); font: 500 .86rem/1.15 'Inter', system-ui, sans-serif; text-align: left; cursor: pointer; touch-action: manipulation;
  transition: background-color .35s var(--cs-ease), border-color .35s var(--cs-ease), color .35s var(--cs-ease); }
.cs-len { justify-content: center; padding: 0 .3rem; font-size: .82rem; font-variant-numeric: tabular-nums; }
.cs-chip i { width: 10px; height: 10px; flex: none; border-radius: 50%; background: var(--dot); box-shadow: 0 0 0 3px color-mix(in srgb, var(--dot) 22%, transparent); }
.cs-chip:hover { color: var(--cs-ink); border-color: var(--cs-line-2); background: rgba(255, 255, 255, .045); }
.cs-chip[aria-pressed="true"] { color: #06110F; background: var(--cs-teal); border-color: var(--cs-teal); font-weight: 600; }
.cs-chip[aria-pressed="true"] i { box-shadow: 0 0 0 2px #06110F; }
.cs-vol-row { display: grid; grid-template-columns: auto minmax(0, 1fr) auto 3.2rem; align-items: center; gap: .7rem; }
.cs-vol-ic { width: 8px; height: 8px; border-radius: 50%; border: 1.5px solid var(--cs-ink-3); }
.cs-vol-ic.is-hi { width: 14px; height: 14px; box-shadow: inset 0 0 0 2.5px rgba(5, 11, 24, 1), inset 0 0 0 10px var(--cs-ink-3); }
.cs-vol-out { font: 600 .86rem/1 var(--c-mono); color: var(--cs-ink-2); text-align: right; font-variant-numeric: tabular-nums; }
.cs-range { -webkit-appearance: none; appearance: none; width: 100%; height: 44px; margin: 0; background: transparent; cursor: pointer; touch-action: pan-y; }
.cs-range::-webkit-slider-runnable-track { height: 4px; border-radius: 2px;
  background: linear-gradient(90deg, var(--m-rim), var(--cs-teal)) 0 / var(--p) 100% no-repeat, rgba(160, 190, 255, .18); }
.cs-range::-moz-range-track { height: 4px; border-radius: 2px; background: rgba(160, 190, 255, .18); }
.cs-range::-moz-range-progress { height: 4px; border-radius: 2px; background: linear-gradient(90deg, var(--m-rim), var(--cs-teal)); }
.cs-range::-webkit-slider-thumb { -webkit-appearance: none; width: 20px; height: 20px; margin-top: -8px; border-radius: 50%; background: #F2F6FC; border: 0;
  box-shadow: 0 0 0 6px color-mix(in srgb, var(--cs-teal) 20%, transparent), 0 2px 8px rgba(0, 0, 0, .4); transition: box-shadow .3s ease; }
.cs-range::-moz-range-thumb { width: 20px; height: 20px; border: 0; border-radius: 50%; background: #F2F6FC; box-shadow: 0 0 0 6px rgba(95, 224, 207, .2); }
.cs-range:focus-visible { outline: none; }
.cs-range:focus-visible::-webkit-slider-thumb { box-shadow: 0 0 0 3px #050B18, 0 0 0 6px #fff; }
.cs-range:focus-visible::-moz-range-thumb { box-shadow: 0 0 0 3px #050B18, 0 0 0 6px #fff; }
.cs-nosound { margin: 0; font-size: .86rem; line-height: 1.6; color: var(--cs-ink-2); }
.cs-note { grid-area: note; margin: 0; padding: 1rem 1.75rem 1.25rem; border-top: 1px solid var(--cs-line); font-size: .86rem; line-height: 1.6; color: var(--cs-ink-3); }
.cs-note strong { color: var(--cs-ink-2); font-weight: 600; }

@media (max-width: 999px) {
  .cs-fig { grid-template-columns: 1fr; grid-template-areas: "stage" "panel" "note"; }
  .cs-scene { height: clamp(460px, 62vw, 560px); }
  .cs-panel { border-left: 0; border-top: 1px solid var(--cs-line); padding: 1.5rem; }
  .cs-ctrl { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr); gap: 1.4rem 2rem; align-items: start; }
  .cs-ctrl .cs-main, .cs-ctrl .cs-vol, .cs-ctrl .cs-lens-pick { grid-column: 1; }
  .cs-ctrl .cs-snds-pick { grid-column: 2; grid-row: 1 / span 3; }
}
@media (max-width: 640px) {
  .cs-fig { border-radius: 22px; }
  .cs-scene { height: min(112vw, 460px); }
  .cs-band-in { grid-template-columns: minmax(0, 1fr) auto; gap: .7rem 1rem; min-height: 0; padding: 1rem 1.1rem 1.1rem; }
  .cs-meter { grid-column: 1 / -1; grid-row: 2; }
  .cs-aux { grid-column: 2; }
  .cs-phase { font-size: 1.55rem; }
  .cs-tools { top: .75rem; right: .75rem; left: .75rem; justify-content: flex-end; }
  .cs-tool { padding: 0 .85rem; }
  .cs-panel { padding: 1.25rem; }
  .cs-ctrl { grid-template-columns: minmax(0, 1fr); }
  .cs-ctrl .cs-main, .cs-ctrl .cs-vol, .cs-ctrl .cs-lens-pick, .cs-ctrl .cs-snds-pick { grid-column: auto; grid-row: auto; }
  .cs-note { padding: 1rem 1.25rem 1.2rem; }
}

/* ---------- full screen: the same scene and band, the controls docked below ---------- */
.cs-full { position: fixed; inset: 0; z-index: 9500; display: grid; grid-template-rows: minmax(0, 1fr) auto; grid-template-columns: minmax(0, 1fr); background: var(--cs-deep); color: var(--cs-ink); }
.cs-full .cs-stage { grid-template-rows: minmax(0, 1fr) auto; min-height: 0; }
.cs-full .cs-scene { height: auto; min-height: 0; }
.cs-full-top { position: absolute; top: 0; left: 0; right: 0; z-index: 5; display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  padding: max(1rem, env(safe-area-inset-top)) 1.25rem 1rem; }
.cs-full-k { margin: 0; padding: .5rem .85rem; border-radius: 999px; background: rgba(5, 10, 22, .5); font-family: var(--c-mono); font-size: .76rem; font-weight: 600; letter-spacing: .2em; text-transform: uppercase; color: var(--cs-ink-2); }
.cs-close { display: inline-flex; align-items: center; gap: .6rem; min-height: 44px; min-width: 44px; padding: 0 1rem 0 .85rem; border-radius: 999px; border: 1px solid var(--cs-line-2);
  background: rgba(5, 10, 22, .55); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); color: var(--cs-ink); font: 600 .84rem/1 'Inter', system-ui, sans-serif; cursor: pointer; }
.cs-close:hover { background: rgba(40, 60, 110, .5); }
.cs-close-x { position: relative; width: 12px; height: 12px; }
.cs-close-x::before, .cs-close-x::after { content: ""; position: absolute; left: 50%; top: 50%; width: 14px; height: 1.75px; border-radius: 2px; background: currentColor; translate: -50% -50%; rotate: 45deg; }
.cs-close-x::after { rotate: -45deg; }
.cs-full-dock { position: relative; z-index: 5; border-top: 1px solid var(--cs-line); background: #060C1A; padding: 1rem 1.25rem max(1rem, env(safe-area-inset-bottom)); }
.cs-full-dock .cs-ctrl { max-width: 1240px; margin: 0 auto; display: grid; grid-template-columns: minmax(230px, 280px) minmax(0, 1fr) minmax(170px, 220px) minmax(200px, 250px); gap: 1rem 1.5rem; align-items: end; }
.cs-full-dock .cs-snds { display: flex; flex-wrap: wrap; gap: .35rem; }
.cs-full-dock .cs-snd { flex: none; }
.cs-full-dock .cs-main { gap: .45rem; }
.cs-full-dock .cs-snds-pick, .cs-full-dock .cs-vol, .cs-full-dock .cs-lens-pick, .cs-full-dock .cs-main { grid-column: auto; grid-row: auto; }
@media (max-width: 1100px) {
  .cs-full-dock .cs-ctrl { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: .8rem 1.25rem; }
  .cs-full-dock .cs-snds-pick { grid-column: 1 / -1; grid-row: 2; }
  .cs-full-dock .cs-snds { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; padding-bottom: 2px; -webkit-mask-image: linear-gradient(90deg, #000 85%, transparent); mask-image: linear-gradient(90deg, #000 85%, transparent); padding-right: 2rem; }
  .cs-full-dock .cs-snds::-webkit-scrollbar { display: none; }
  .cs-full-dock .cs-lab { margin-bottom: .35rem; }
}
@media (max-width: 700px) {
  .cs-full-dock .cs-ctrl { grid-template-columns: minmax(0, 1fr); }
  .cs-full-dock .cs-main { flex-direction: row; }
  .cs-full-dock .cs-go { flex: 0 0 auto; align-self: auto; }
  .cs-full-dock .cs-togs { flex: 1; }
  .cs-full-dock .cs-snds-pick { grid-column: auto; grid-row: auto; }
  .cs-full .cs-band-in { padding: .8rem 1.1rem; }
}
@media (max-width: 420px) {
  .cs-full-dock .cs-main { flex-direction: column; }
  .cs-full-dock .cs-tog { font-size: .8rem; }
}

/* ============================================================
   THE 2D WORLDS - CSS only: gradients and a few softly animated dots,
   one composition per sound, matching the 3D worlds. The breath: the
   lights gather inward on the in-breath and settle on the out-breath.
   ============================================================ */
.cs2d-w { position: absolute; inset: 0; }
.cs2d-w.is-in { animation: cs2d-in 1.5s ease both; }
.cs2d-w.is-out { animation: cs2d-out 1.5s ease both; }
@keyframes cs2d-in { from { opacity: 0; } to { opacity: 1; } }
@keyframes cs2d-out { from { opacity: 1; } to { opacity: 0; } }
.cs2d-gather { position: absolute; inset: 0; transform: scale(.97); opacity: .9; transition: transform 1.2s var(--cs-breath), opacity 1.2s ease; }
.cs-stage[data-phase="in"] .cs2d-gather { transform: scale(.925); opacity: 1; transition-duration: var(--bt); }
.cs-stage[data-phase="out"] .cs2d-gather { transform: scale(1); opacity: .76; transition-duration: var(--bt); }
.cs2d-gather > i, .cs2d-gather > span, .cs2d-sky > i { position: absolute; display: block; border-radius: 50%; opacity: var(--o);
  animation-duration: var(--t); animation-delay: var(--d); animation-iteration-count: infinite; animation-timing-function: linear; }
.cs2d-focal { position: absolute; left: 50%; top: 50%; width: 34cqmin; aspect-ratio: 1; translate: -50% -50%; border-radius: 50%; pointer-events: none;
  background: radial-gradient(circle, rgba(255, 255, 255, .92) 0, color-mix(in srgb, var(--m-core) 75%, transparent) 5%, color-mix(in srgb, var(--m-core) 20%, transparent) 15%,
    color-mix(in srgb, var(--m-rim) 7%, transparent) 36%, transparent 66%);
  transform: scale(.97); opacity: .8; transition: transform 1.2s var(--cs-breath), opacity 1.2s ease; }
.cs-stage[data-phase="in"] .cs2d-focal { transform: scale(1.08); opacity: 1; transition-duration: var(--bt); }
.cs-stage[data-phase="out"] .cs2d-focal { transform: scale(.94); opacity: .7; transition-duration: var(--bt); }

/* Soft pad: aurora and nebula clouds, motes floating */
.cs2d-w[data-w="pad"] { background: radial-gradient(120% 60% at 50% 115%, rgba(42, 60, 138, .4), transparent 60%), linear-gradient(180deg, #0B0F2E, #0B1A36 55%, #050A18); }
.cs2d-neb { position: absolute; border-radius: 50%; }
.cs2d-neb.is-a { left: -15%; right: -15%; top: 4%; height: 30%; background: radial-gradient(50% 50% at 50% 50%, rgba(56, 205, 185, .28), transparent 70%); rotate: -5deg; animation: cs2d-drift 40s ease-in-out infinite alternate; }
.cs2d-neb.is-b { left: 8%; width: 55%; top: 50%; height: 36%; background: radial-gradient(50% 50% at 50% 50%, rgba(138, 123, 255, .2), transparent 70%); animation: cs2d-drift 52s ease-in-out -14s infinite alternate-reverse; }
.cs2d-neb.is-c { right: 2%; width: 40%; top: 26%; height: 30%; background: radial-gradient(50% 50% at 50% 50%, rgba(127, 212, 240, .13), transparent 70%); animation: cs2d-drift 46s ease-in-out -30s infinite alternate; }
@keyframes cs2d-drift { from { translate: -5% 0; } to { translate: 5% 2%; } }
.cs2d-w[data-w="pad"] .cs2d-gather > i { left: var(--x); top: var(--y); width: var(--s); height: var(--s); background: color-mix(in srgb, var(--m-core) 70%, #fff);
  box-shadow: 0 0 6px color-mix(in srgb, var(--m-core) 70%, transparent); animation-name: cs2d-float; animation-timing-function: ease-in-out; animation-direction: alternate; }
@keyframes cs2d-float { from { translate: 0 12px; } to { translate: 6px -18px; } }

/* Rain: thin streaks of light falling at a slight slant */
.cs2d-w[data-w="rain"] { background: radial-gradient(100% 40% at 50% 112%, rgba(46, 95, 134, .5), transparent 70%), linear-gradient(180deg, #08111F, #0D1D2F 60%, #050B15); }
.cs2d-w[data-w="rain"] .cs2d-gather > i { left: var(--x); top: 0; width: 1.5px; height: var(--l); border-radius: 1px; rotate: 9deg;
  background: linear-gradient(180deg, transparent, rgba(190, 228, 248, .85)); animation-name: cs2d-fall; }
@keyframes cs2d-fall { from { translate: 0 -25cqh; } to { translate: -18cqh 110cqh; } }

/* Ocean waves: rows of light points on a slow swell, the moon's path down the middle */
.cs2d-w[data-w="ocean"] { background: radial-gradient(70% 18% at 50% 50%, rgba(58, 91, 168, .5), transparent 70%), linear-gradient(180deg, #050B1C 0%, #15244A 49.6%, #0C1834 50.4%, #030711 100%); }
.cs2d-path { position: absolute; left: 50%; top: 50%; bottom: 0; width: 26%; translate: -50% 0;
  background: repeating-linear-gradient(180deg, rgba(226, 235, 255, .26) 0 2px, transparent 2px 9px);
  -webkit-mask-image: radial-gradient(50% 100% at 50% 0, #000, transparent 85%); mask-image: radial-gradient(50% 100% at 50% 0, #000, transparent 85%); }
.cs2d-w[data-w="ocean"] .cs2d-gather > span { left: -6%; right: -6%; top: var(--y); height: 14px; margin-top: -7px; border-radius: 0;
  background: radial-gradient(circle, rgba(205, 222, 255, 1) 0 var(--r), transparent calc(var(--r) + 1.2px)) center / var(--g) 100% repeat-x;
  animation-name: cs2d-swell; animation-timing-function: ease-in-out; animation-direction: alternate; }
@keyframes cs2d-swell { from { translate: 0 var(--a); } to { translate: calc(var(--g) * .3) calc(var(--a) * -1); } }

/* Campfire: embers rising from a warm glow below */
.cs2d-w[data-w="fire"] { background: radial-gradient(90% 45% at 50% 115%, rgba(194, 94, 40, .62), transparent 70%), linear-gradient(180deg, #0D0912, #190E14 50%, #2B130C); }
.cs2d-w[data-w="fire"] .cs2d-gather > i { left: var(--x); bottom: -2%; width: var(--s); height: var(--s);
  background: radial-gradient(circle, #FFE4B5 0, #FFA45C 45%, transparent 72%); box-shadow: 0 0 6px rgba(255, 164, 92, .55); animation-name: cs2d-rise; }
@keyframes cs2d-rise { 0% { translate: 0 0; opacity: 0; } 8% { opacity: var(--o); } 60% { translate: calc(var(--sx) * .6) -55cqh; opacity: calc(var(--o) * .7); } 100% { translate: var(--sx) -95cqh; opacity: 0; } }

/* Forest: soft trunks in a green depth, fireflies glowing slowly on and off */
.cs2d-w[data-w="forest"] { background: radial-gradient(70% 30% at 50% 44%, rgba(42, 106, 80, .5), transparent 70%), linear-gradient(180deg, #040E0B, #0B2219 44%, #020906); }
.cs2d-trunks { position: absolute; inset: 0;
  background: linear-gradient(90deg, transparent 0 4%, rgba(2, 8, 6, .5) 6% 9%, transparent 12% 21%, rgba(2, 8, 6, .3) 22% 24%, transparent 26% 70%, rgba(2, 8, 6, .42) 72% 76%, transparent 79% 88%, rgba(2, 8, 6, .3) 90% 92%, transparent 94%); }
.cs2d-w[data-w="forest"] .cs2d-gather > i { left: var(--x); top: var(--y); width: calc(var(--s) * 4); height: calc(var(--s) * 4);
  background: radial-gradient(circle, #F2FBBE 0, rgba(214, 240, 140, .55) 14%, rgba(214, 240, 140, .12) 34%, transparent 62%);
  animation: cs2d-wander var(--t) ease-in-out var(--d) infinite alternate, cs2d-blink var(--b) ease-in-out var(--d) infinite; }
@keyframes cs2d-wander { 0% { translate: 0 0; } 50% { translate: 3cqw -2cqh; } 100% { translate: -2cqw 1.5cqh; } }
@keyframes cs2d-blink { 0%, 40% { opacity: .08; } 52% { opacity: .95; } 66%, 100% { opacity: .08; } }

/* Stream: a river of light points flowing along a soft curve */
.cs2d-w[data-w="stream"] { background: radial-gradient(60% 10% at 52% 72%, rgba(95, 214, 203, .14), transparent 75%), linear-gradient(180deg, #050F1D, #0B1F2C 52%, #040C14); }
.cs2d-w[data-w="stream"] .cs2d-gather > i { left: 0; top: calc(66% + var(--y)); width: var(--s); height: var(--s); background: #BFF4EC;
  box-shadow: 0 0 5px rgba(95, 214, 203, .7); animation-name: cs2d-flow; }
@keyframes cs2d-flow { 0% { translate: -6cqw -9cqh; opacity: 0; } 8% { opacity: var(--o); } 25% { translate: 22cqw -4cqh; } 50% { translate: 50cqw 5cqh; }
  75% { translate: 78cqw 9cqh; } 92% { opacity: var(--o); } 100% { translate: 106cqw 3cqh; opacity: 0; } }

/* Soft wind: long thin streaks drifting sideways */
.cs2d-w[data-w="wind"] { background: radial-gradient(90% 40% at 50% 60%, rgba(58, 77, 120, .4), transparent 70%), linear-gradient(180deg, #0C1325, #18233B 50%, #090F1C); }
.cs2d-w[data-w="wind"] .cs2d-gather > i { left: 0; top: var(--y); width: var(--l); height: 2px; border-radius: 2px;
  background: linear-gradient(90deg, transparent, rgba(232, 239, 248, .9) 70%, transparent); box-shadow: 0 0 6px rgba(200, 214, 240, .35); animation-name: cs2d-blow; animation-timing-function: ease-in-out; }
@keyframes cs2d-blow { 0% { translate: -40cqw 0; opacity: 0; } 15%, 85% { opacity: var(--o); } 100% { translate: 130cqw var(--dy); opacity: 0; } }

/* Night: a slowly turning sky */
.cs2d-w[data-w="night"] { background: linear-gradient(115deg, transparent 28%, rgba(106, 85, 200, .12) 48%, transparent 68%), linear-gradient(180deg, #04061A, #0A0E2C 58%, #030616); }
.cs2d-sky { position: absolute; left: 50%; top: 50%; width: 150cqmax; height: 150cqmax; translate: -50% -50%; animation: cs2d-turn 600s linear infinite; }
@keyframes cs2d-turn { to { rotate: 360deg; } }
.cs2d-sky > i { left: var(--x); top: var(--y); width: var(--s); height: var(--s); background: #EEF2FF; box-shadow: 0 0 4px rgba(238, 242, 255, .6);
  animation-name: cs2d-twinkle; animation-timing-function: ease-in-out; animation-direction: alternate; }
@keyframes cs2d-twinkle { from { opacity: var(--o); } to { opacity: calc(var(--o) * .45); } }

/* the egg in 2D: ten soft lights rise in a ring around the light, then fade */
.cs2d-egg { position: absolute; left: 50%; top: 50%; width: 0; height: 0; pointer-events: none; }
.cs2d-egg i { position: absolute; left: -6px; top: -6px; width: 12px; height: 12px; border-radius: 50%; opacity: 0;
  background: radial-gradient(circle, #fff 0, color-mix(in srgb, var(--m-core) 80%, transparent) 30%, transparent 70%);
  transform: rotate(calc(var(--i) * 36deg)) translateY(-19cqmin); transition: opacity 3.4s ease; }
.cs2d-egg.is-on i { opacity: .95; transition: opacity 3s ease calc(var(--i) * .12s); }

/* reduced motion: still worlds (each light rests where its path puts it), no gathering;
   a slow brightness cue carries the timing, with the words */
.cs-cue { display: none; position: absolute; left: 50%; top: 50%; width: 80cqmin; aspect-ratio: 1; translate: -50% -50%; border-radius: 50%; pointer-events: none;
  background: radial-gradient(circle, color-mix(in srgb, var(--m-core) 24%, transparent) 20%, color-mix(in srgb, var(--m-rim) 14%, transparent) 42%, transparent 68%);
  opacity: .35; transition: opacity 1.2s linear; }
.cs[data-reduced] .cs-cue { display: block; }
.cs-stage[data-phase="in"] .cs-cue { opacity: .95; transition-duration: var(--bt); }
.cs-stage[data-phase="out"] .cs-cue { opacity: .1; transition-duration: var(--bt); }
@media (prefers-reduced-motion: reduce) {
  .cs .cs-stage .cs-cue { transition: opacity var(--bt) linear !important; }
  .cs .cs-stage[data-phase="rest"] .cs-cue { transition: opacity 1.2s linear !important; }
  .cs .cs2d-gather, .cs .cs2d-focal, .cs-stage[data-phase] .cs2d-gather, .cs-stage[data-phase] .cs2d-focal { transform: none !important; opacity: 1 !important; transition: none !important; }
  .cs .cs2d-gather > i, .cs .cs2d-gather > span, .cs .cs2d-sky > i, .cs .cs2d-neb, .cs .cs2d-sky { animation-play-state: paused !important; animation-duration: var(--t, 40s) !important; animation-delay: var(--d, -10s) !important; animation-iteration-count: infinite !important; animation-fill-mode: both !important; }
  .cs .cs2d-w[data-w="pad"] .cs2d-gather > i { animation-name: cs2d-float !important; }
  .cs .cs2d-w[data-w="rain"] .cs2d-gather > i { animation-name: cs2d-fall !important; }
  .cs .cs2d-w[data-w="ocean"] .cs2d-gather > span { animation-name: cs2d-swell !important; }
  .cs .cs2d-w[data-w="fire"] .cs2d-gather > i { animation-name: cs2d-rise !important; }
  .cs .cs2d-w[data-w="stream"] .cs2d-gather > i { animation-name: cs2d-flow !important; }
  .cs .cs2d-w[data-w="wind"] .cs2d-gather > i { animation-name: cs2d-blow !important; }
  .cs .cs2d-w[data-w="forest"] .cs2d-gather > i { animation-name: cs2d-blink !important; animation-duration: var(--b) !important; }
  .cs .cs2d-w.is-in, .cs .cs2d-w.is-out { animation-name: none !important; }
  .cs .cs2d-w.is-out { visibility: hidden; }
  .cs .cs2d-egg { display: none; }
}

/* ---------- the egg: ten breaths - the line in the band (never on the scene) ---------- */
.cs-egg { grid-column: 2 / -1; grid-row: 1; z-index: 1; align-self: stretch; display: flex; align-items: center; justify-content: flex-end; background: var(--cs-band); pointer-events: none; }
.cs-egg-line { margin: 0; white-space: nowrap; opacity: 0; font-family: 'Fraunces', Georgia, serif; font-style: italic; font-size: clamp(1.02rem, 1.6vw, 1.2rem); color: #FFF1D6;
  padding: .5rem 1.05rem; border-radius: 999px; border: 1px solid rgba(255, 210, 150, .32); background: rgba(255, 210, 150, .06); transition: opacity 1.8s ease .5s; }
.cs-egg.is-on .cs-egg-line { opacity: 1; }
.cs-egg.is-out .cs-egg-line { opacity: 0; transition-delay: 0s; }
.cs-egg.is-still .cs-egg-line { transition: none; opacity: 1; box-shadow: 0 0 0 2px rgba(255, 210, 150, .55); }
.cs-egg.is-still.is-out .cs-egg-line { opacity: 0; }
@media (max-width: 640px) { .cs-egg { grid-column: 1 / -1; grid-row: 2; justify-content: flex-start; margin: -.35rem 0; } }

/* ---------- now playing: bottom left while the Calm Space is out of sight ----------
   bottom-left, never wider than the room left by the sitewide back-to-top button
   (js/backtotop.js: 46px, 20px from the bottom right) */
.cs-np-host { position: fixed; left: 0; bottom: 0; width: 0; height: 0; z-index: 8700; }
/* layout + motion: css/hc-nowplaying.css (shared with the Sleep Chamber); colours here */
.cs-np { --np-bg: color-mix(in srgb, var(--m-amb) 14%, #070D1C); --np-ink: var(--cs-ink); --np-ink-3: var(--cs-ink-3);
  --np-viz: var(--m-core); --np-btn-line: var(--cs-line-2); }
.cs-np-host[data-reduced] .cs-np { transform: none; }
.cs-np-host[data-reduced] .cs-np-viz i { animation: none; transform: scaleY(.7); }
