/* ==========================================================================
   Homepage — Heart Mind Habits (the emblem hero at the end of this file;
   the sections below it come from You, Awake's CMS)
   ==========================================================================*/

/* ---------- Hero ---------- */
.hero {
  position: relative;
  height: 100vh;
  height: 100svh;
  min-height: 620px;
  overflow: hidden;
  isolation: isolate;
  background: radial-gradient(120% 80% at 50% 40%, var(--hero-tint) 0%, var(--ink) 70%);
  touch-action: pan-y;
  -webkit-tap-highlight-color: transparent;
  cursor: crosshair;
}
.hero-stage { position: absolute; inset: 0; z-index: -2; }
.hero-water {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  transition: opacity 1.6s var(--ease);
}
.hero-water.on { opacity: 1; }

/* readable scrim behind the headline */
.hero::after {
  content: "";
  position: absolute;
  inset: auto 0 0 0;
  height: 46%;
  z-index: -1;
  background: linear-gradient(180deg, transparent, rgb(var(--bg-rgb) / 0.55) 45%, rgb(var(--bg-rgb) / 0.92));
  pointer-events: none;
}

.hero-inner {
  position: absolute;
  inset: auto 0 0 0;
  margin: 0 auto;
  padding-bottom: clamp(36px, 6vh, 72px);
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr);
  align-items: end;
  gap: 32px 64px;
  pointer-events: none;
}
.hero-inner a, .hero-inner button { pointer-events: auto; }
.hero .eyebrow { margin-bottom: 14px; color: var(--soft); }
.hero h1 {
  font-size: calc(clamp(3.4rem, 9.5vw, 8.6rem) * var(--text-scale, 1));
  line-height: 0.9;
  letter-spacing: -0.03em;
  text-shadow: 0 4px 60px rgb(var(--bg-rgb) / 0.8);
}
/* "Life": soft brand colors slowly drifting across the letters (all modes, not just Full) */
.hero h1 .accent-italic {
  background-image: linear-gradient(100deg,
    #f0a597 0%, #E9A07A 17%, #DBB66F 33%, #c9cf95 50%, #8EB9A5 67%, #E27F6D 83%, #f0a597 100%);
  background-size: 300% 100%;
  background-position: 0% 50%;
  animation: life-drift 18s ease-in-out infinite alternate;
}
@keyframes life-drift {
  from { background-position: 0% 50%; }
  to { background-position: 100% 50%; }
}
@media (prefers-reduced-motion: reduce) {
  .hero h1 .accent-italic { animation: none; background-position: 15% 50%; }
}

.hero-sub {
  font-family: var(--serif);
  font-style: italic;
  font-size: clamp(1.3rem, 2.4vw, 1.9rem);
  color: var(--mist);
  margin: 14px 0 0;
  opacity: 0.9;
}
.hero-foot { padding-bottom: 8px; }
.hero-lede {
  color: var(--soft);
  font-size: 1.02rem;
  max-width: 30em;
  margin: 0 0 24px;
}

/* intro choreography */
.hero .eyebrow,
.hero h1,
.hero-sub,
.hero-foot,
.hero-controls {
  animation: rise 1.6s var(--ease) both;
}
.hero h1 { animation-delay: 0.25s; }
.hero-sub { animation-delay: 0.5s; }
.hero-foot { animation-delay: 0.75s; }
.hero-controls { animation-delay: 1.4s; }
@keyframes rise {
  from { opacity: 0; transform: translateY(24px); filter: blur(6px); }
  to { opacity: 1; transform: none; filter: none; }
}
@media (prefers-reduced-motion: reduce) {
  .hero .eyebrow, .hero h1, .hero-sub, .hero-foot, .hero-controls { animation: none; }
}

/* top controls: sound + hint */
.hero-controls {
  position: absolute;
  top: calc(var(--header-h) + 14px);
  left: 0;
  right: 0;
  padding: 0 16px;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 16px;
  white-space: nowrap;
  pointer-events: none;
}
.hero-controls > * { pointer-events: auto; }
.hero-hint {
  margin: 0;
  font-size: 0.78rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
}
.touch-hint { display: none; }
@media (pointer: coarse) {
  .pointer-hint { display: none; }
  .touch-hint { display: inline; }
}
.hero-status {
  font-size: 0.7rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
  opacity: 0.6;
}
.hero-status:empty { display: none; }

.sound-btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 40px;
  padding: 0 16px 0 14px;
  border-radius: 999px;
  border: 1px solid var(--line-strong);
  background: rgb(var(--fg-rgb) / 0.05);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  color: var(--mist);
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  transition: background 0.3s, border-color 0.3s;
}
.sound-btn:hover { background: rgb(var(--fg-rgb) / 0.1); }
.sound-btn[aria-pressed="true"] { border-color: rgb(var(--accent-rgb) / 0.6); }
.eq { display: inline-flex; align-items: flex-end; gap: 2px; height: 14px; }
.eq i {
  width: 2px;
  height: 4px;
  border-radius: 1px;
  background: var(--lime);
  transition: height 0.3s;
}
.sound-on .eq i { animation: eq 1.1s ease-in-out infinite; }
.sound-on .eq i:nth-child(2) { animation-delay: -0.4s; }
.sound-on .eq i:nth-child(3) { animation-delay: -0.75s; }
@keyframes eq { 0%, 100% { height: 4px; } 50% { height: 14px; } }

/* the seven qualities */
.hero-words { position: absolute; inset: 0; pointer-events: none; z-index: 0; }
/* word rafts drifting on the stream */
.raft {
  position: absolute;
  left: 0;
  top: 0;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 3px 11px 4px 8px;
  border-radius: 999px;
  font-family: var(--serif);
  font-style: italic;
  font-size: clamp(0.92rem, 1.25vw, 1.12rem);
  line-height: 1.2;
  color: #f4f8ff;
  white-space: nowrap;
  background: linear-gradient(180deg, rgba(40, 60, 110, 0.55), rgba(10, 20, 50, 0.45));
  border: 1px solid rgba(255, 255, 255, 0.22);
  box-shadow: 0 6px 18px -8px rgba(0, 0, 0, 0.7), inset 0 1px 0 rgba(255, 255, 255, 0.18);
  text-shadow: 0 1px 6px rgba(4, 10, 30, 0.7);
  will-change: transform, opacity;
  transition: box-shadow 0.6s var(--ease), border-color 0.6s, background 0.6s;
}
.raft i {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--ray);
  box-shadow: 0 0 8px var(--ray);
}
.raft.lit {
  border-color: color-mix(in srgb, var(--ray) 70%, white);
  background: linear-gradient(180deg, color-mix(in srgb, var(--ray) 35%, transparent), rgba(255, 255, 255, 0.08));
  box-shadow: 0 0 26px -2px var(--ray), inset 0 1px 0 rgba(255, 255, 255, 0.3);
}
@media (max-width: 600px) {
  .raft { font-size: 0.78rem; padding: 1px 8px 2px 6px; gap: 5px; }
  .raft i { width: 5px; height: 5px; }
}
/* "Plain words with a soft shadow" (the page editor's Words on the wave): no pill and no dot, larger
   lettering; the shadow follows the scheme (dark under light words, light under dark ones) */
.hero-words[data-words-style="plain"] .raft {
  --ws: var(--text-shadow-rgb, 0 0 0);
  padding: 0;
  gap: 0;
  font-size: clamp(1.15rem, 1.9vw, 1.6rem);
  color: var(--mist, #f4f8ff);
  background: none;
  border: 0;
  border-radius: 0;
  box-shadow: none;
  text-shadow: 0 1px 2px rgb(var(--ws) / 0.55), 0 2px 12px rgb(var(--ws) / 0.5), 0 0 28px rgb(var(--ws) / 0.35);
  transition: text-shadow 0.6s var(--ease);
}
[data-tone="light"] .hero-words[data-words-style="plain"] .raft { --ws: var(--text-shadow-rgb, var(--bg-rgb)); }
.hero-words[data-words-style="plain"] .raft i { display: none; }
.hero-words[data-words-style="plain"] .raft.lit {
  background: none;
  box-shadow: none;
  text-shadow: 0 1px 2px rgb(var(--ws) / 0.55), 0 0 18px var(--ray), 0 0 34px color-mix(in srgb, var(--ray) 60%, transparent);
}
@media (max-width: 600px) {
  .hero-words[data-words-style="plain"] .raft { font-size: 1rem; padding: 0; }
}
/* a word with a link (Words on the wave → "Clicking the word"): it can be clicked and reached with Tab;
   it lights up in its ray color when pointed at (the water underneath still ripples everywhere else) */
a.raft { pointer-events: auto; cursor: pointer; text-decoration: none; }
a.raft:hover, a.raft:focus-visible {
  border-color: color-mix(in srgb, var(--ray) 70%, white);
  box-shadow: 0 0 22px -2px var(--ray), inset 0 1px 0 rgba(255, 255, 255, 0.3);
}
.hero-words[data-words-style="plain"] a.raft:hover, .hero-words[data-words-style="plain"] a.raft:focus-visible {
  box-shadow: none;
  text-shadow: 0 1px 2px rgb(var(--ws) / 0.55), 0 0 16px var(--ray), 0 0 30px color-mix(in srgb, var(--ray) 55%, transparent);
  text-decoration: underline 1px color-mix(in srgb, var(--ray) 80%, white);
  text-underline-offset: 0.18em;
}
a.raft:focus-visible { outline: 2px solid var(--ray); outline-offset: 4px; }
/* "Where each word fits best": a word is built letter by letter; side by side the letters read as usual,
   and a word too long for a straight spot bends around the wave ("curved": each letter placed by home.js) */
.raft .ch { font: inherit; font-weight: inherit; display: inline; }
.raft.curved { background: none; border: 0; box-shadow: none; padding: 0; }
.raft.curved i { display: none; }
.raft.curved .ch { position: absolute; left: 0; top: 0; display: block; }
a.raft.curved:focus-visible { outline: none; }
a.raft.curved:focus-visible .ch { text-decoration: underline 1px var(--ray); }
/* the words' own shadow (Words on the wave → Shadow strength / type; set on .hero-words by home_words_attrs):
   it replaces the look's shadow; "Haze" also puts a soft cloud behind each straight plain word. A lit word still glows. */
.hero-words[data-words-shadow] .raft { text-shadow: var(--ww-shadow, none); }
.hero-words[data-words-haze][data-words-style="plain"] .raft:not(.curved) { background-image: var(--ww-haze); padding: .2em .5em; }

.scroll-cue {
  position: absolute;
  left: 50%;
  bottom: 18px;
  width: 22px;
  height: 36px;
  margin-left: -11px;
  border-radius: 12px;
  border: 1px solid var(--line-strong);
  display: none;
}
.scroll-cue span {
  position: absolute;
  left: 50%;
  top: 7px;
  width: 2px;
  height: 7px;
  margin-left: -1px;
  border-radius: 2px;
  background: var(--mist);
  animation: cue 2s var(--ease) infinite;
}
@keyframes cue { 0% { opacity: 0; transform: translateY(0); } 30% { opacity: 1; } 100% { opacity: 0; transform: translateY(12px); } }

@media (max-width: 900px) {
  .hero-inner { grid-template-columns: minmax(0, 1fr); gap: 18px; }
  .hero-lede { font-size: 0.95rem; margin-bottom: 18px; }
}
@media (max-width: 600px) {
  .hero { min-height: 600px; }
  .hero::after { height: 52%; }
  .hero-controls { gap: 10px; }
  .hero-hint { display: none; }
  .hero h1 { font-size: calc(clamp(3rem, 15vw, 4.4rem) * var(--text-scale, 1)); }
  .hero-lede { display: none; }
  .hero .btn { min-height: 48px; padding: 0 22px; }
}

/* ---------- Lite (SVG) wave ---------- */
.lite-wave { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.lite-wave path { fill: none; stroke-linecap: round; stroke-linejoin: round; }
.lw-halo { stroke: #6fb0f0; opacity: 0.06; }
.lw-shadow { stroke: #02040c; opacity: 0.6; }
.lite-wave g g path { stroke-linecap: butt; }
.lw-rim { stroke: #cfe6ff; opacity: 0.55; }
.lw-base { stroke: #0b1530; }
.lw-body { stroke: url(#lw-body); opacity: 0.55; }
.lw-sheen { stroke: url(#lw-sheen); opacity: 0.16; mix-blend-mode: screen; }
.lw-current { stroke: #fff; }
.lw-current.a { opacity: 0.18; stroke-dasharray: 0.35 0.55; animation: lw-flow 9s linear infinite; }
.lw-current.b { opacity: 0.55; stroke-dasharray: 0.05 0.75; animation: lw-flow 5.5s linear infinite; }
@keyframes lw-flow { to { stroke-dashoffset: -1.8; } }
.lw-mark { opacity: 0.9; }
.lw-mark-halo {
  opacity: 0.12;
  transform: scale(0.6);
  transform-box: fill-box;
  transform-origin: center;
  transition: opacity 0.9s var(--ease), transform 0.9s var(--ease);
}
.lite-ripple {
  position: absolute;
  width: 16px;
  height: 16px;
  margin: -8px 0 0 -8px;
  border-radius: 50%;
  border: 1px solid rgba(180, 240, 245, 0.55);
  pointer-events: none;
  animation: lite-ripple 1.3s var(--ease) forwards;
}
.lite-ripple.big { border-width: 1.5px; animation-duration: 1.8s; }
@keyframes lite-ripple {
  from { transform: scale(0.3); opacity: 0.9; }
  to { transform: scale(7); opacity: 0; }
}
.lite-ripple.big { animation-name: lite-ripple-big; }
@keyframes lite-ripple-big {
  from { transform: scale(0.3); opacity: 1; }
  to { transform: scale(14); opacity: 0; }
}
@media (prefers-reduced-motion: reduce) {
  .lw-current.a, .lw-current.b { animation: none; }
}

/* ---------- Invitation ---------- */
.invitation .statement { max-width: 18em; }
.invitation .statement + .statement { margin-top: 0.6em; color: var(--soft); }
.invitation .after {
  margin-top: clamp(40px, 6vw, 72px);
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 40px;
  align-items: end;
}
.invitation .after p { margin: 0; }
@media (max-width: 760px) { .invitation .after { grid-template-columns: minmax(0, 1fr); } }

/* ---------- Remember ---------- */
.remember-list {
  list-style: none;
  margin: 28px 0 0;
  padding: 0;
  display: grid;
  gap: 14px;
}
.remember-list li {
  font-family: var(--serif);
  font-size: clamp(1.35rem, 2.3vw, 1.8rem);
  font-style: italic;
  color: var(--mist);
  line-height: 1.3;
  padding-left: 30px;
  position: relative;
}
.remember-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.62em;
  width: 16px;
  height: 1px;
  background: var(--lime);
}
.section.dawn .remember-list li { color: var(--dawn-ink); }
.section.dawn .remember-list li::before { background: var(--dawn-accent); }

/* ---------- Infinity Wave feature ---------- */
.wave-figure {
  position: relative;
  aspect-ratio: 1.6 / 1;
  border-radius: calc(var(--radius) + 6px);
  border: 1px solid var(--line);
  background:
    radial-gradient(60% 70% at 50% 50%, rgba(79, 182, 232, 0.12), transparent 70%),
    linear-gradient(180deg, var(--night), var(--ink));
  overflow: hidden;
  display: grid;
  place-items: center;
}
.wave-figure svg { width: 86%; height: auto; overflow: visible; }
.wave-figure .wf-glow { fill: none; stroke: #6fd6dc; stroke-width: 34; opacity: 0.08; }
.wave-figure .wf-body { fill: none; stroke: url(#wf-grad); stroke-width: 14; stroke-linecap: round; opacity: 0.8; }
.wave-figure .wf-flow {
  fill: none;
  stroke: #fff;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-dasharray: 2 26;
  opacity: 0.8;
  animation: wf 6s linear infinite;
}
@keyframes wf { to { stroke-dashoffset: -280; } }
.wave-figure figcaption {
  position: absolute;
  left: 22px;
  bottom: 18px;
  font-size: 0.72rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--muted);
}
.wave-quote {
  margin: 32px 0 0;
  padding-left: 22px;
  border-left: 1px solid var(--lime);
  font-family: var(--serif);
  font-style: italic;
  font-size: 1.35rem;
  color: var(--mist);
  line-height: 1.4;
}
@media (prefers-reduced-motion: reduce) { .wave-figure .wf-flow { animation: none; } }

/* ---------- Chrysalis ---------- */
.chrysalis { position: relative; }
.chrysalis-line {
  position: relative;
  height: 1px;
  background: var(--line);
  margin: 0 0 clamp(36px, 5vw, 56px);
  overflow: hidden;
}
.chrysalis-line i {
  position: absolute;
  inset: 0;
  background: var(--spectrum);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.2s linear;
}
.chrysalis-step {
  position: relative;
  padding-top: 8px;
}
.chrysalis-step .num {
  font-family: var(--serif);
  font-size: 1rem;
  font-style: italic;
  color: var(--muted);
}
.chrysalis-step .icon {
  width: 72px;
  height: 72px;
  margin: 18px 0 24px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  border: 1px solid var(--line-strong);
  background: rgb(var(--fg-rgb) / 0.03);
  transition: border-color 0.8s var(--ease), box-shadow 0.8s var(--ease), background 0.8s;
}
.chrysalis-step .icon svg { width: 40px; height: 40px; }
.chrysalis-step .icon path,
.chrysalis-step .icon line,
.chrysalis-step .icon circle {
  fill: none;
  stroke: var(--soft);
  stroke-width: 1.3;
  stroke-linecap: round;
  stroke-linejoin: round;
  transition: stroke 0.8s;
}
.chrysalis-step h3 { font-size: clamp(1.7rem, 2.6vw, 2.2rem); margin-bottom: 10px; }
.chrysalis-step p { margin: 0; color: var(--soft); }
.chrysalis-step.on .icon {
  border-color: color-mix(in srgb, var(--c) 70%, transparent);
  box-shadow: 0 0 40px -6px var(--c);
  background: color-mix(in srgb, var(--c) 10%, transparent);
}
.chrysalis-step.on .icon path,
.chrysalis-step.on .icon line,
.chrysalis-step.on .icon circle { stroke: var(--mist); }

/* ---------- Pillars ---------- */
.pillars-words {
  display: flex;
  flex-wrap: wrap;
  gap: 0 0.5em;
  font-family: var(--serif);
  font-size: clamp(2.4rem, 6vw, 5rem);
  line-height: 1.05;
  color: var(--mist);
  letter-spacing: -0.02em;
}
.pillars-words span { opacity: 0.25; transition: opacity 1.2s var(--ease); }
.pillars-words.is-in span { opacity: 1; }
.pillars-words.is-in span:nth-child(2) { transition-delay: 0.3s; }
.pillars-words.is-in span:nth-child(3) { transition-delay: 0.6s; }
.pillars-words.is-in span:nth-child(4) { transition-delay: 0.9s; }
.pillars-words em { color: var(--lime); font-style: normal; }
.fx-lite .pillars-words span { opacity: 1; }

.through {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 4px;
}
.through li {
  font-family: var(--serif);
  font-size: clamp(1.25rem, 2vw, 1.6rem);
  color: var(--soft);
  padding: 10px 0;
  border-bottom: 1px solid var(--line);
}
.through li:last-child { border-bottom: 0; color: var(--mist); font-style: italic; }

.music-panel {
  margin-top: clamp(56px, 8vw, 96px);
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr);
  gap: clamp(32px, 5vw, 72px);
  align-items: center;
}
.music-panel .btn-row { margin-top: 28px; }
@media (max-width: 860px) { .music-panel { grid-template-columns: minmax(0, 1fr); } }

/* ---------- What may open ---------- */
.opens {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0 clamp(24px, 5vw, 72px);
}
.opens li {
  display: flex;
  gap: 16px;
  align-items: baseline;
  padding: 18px 0;
  border-bottom: 1px solid var(--dawn-line);
  font-size: 1.04rem;
  color: var(--dawn-ink);
}
.opens li::before {
  content: "";
  flex: none;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--c, var(--lime));
  transform: translateY(-1px);
}
.opens li:nth-child(7n+1) { --c: var(--r1); }
.opens li:nth-child(7n+2) { --c: var(--r2); }
.opens li:nth-child(7n+3) { --c: var(--r3); }
.opens li:nth-child(7n+4) { --c: var(--r4); }
.opens li:nth-child(7n+5) { --c: var(--r5); }
.opens li:nth-child(7n+6) { --c: var(--r6); }
.opens li:nth-child(7n+7) { --c: var(--r7); }
@media (max-width: 700px) { .opens { grid-template-columns: minmax(0, 1fr); } }

/* ---------- Guides ---------- */
.guide {
  display: grid;
  grid-template-columns: 120px minmax(0, 1fr);
  gap: 28px;
  align-items: start;
}
.guide .portrait {
  position: relative;
  aspect-ratio: 1;
  border-radius: 50%;
  overflow: hidden;
  display: grid;
  place-items: center;
  font-family: var(--serif);
  font-size: 3rem;
  font-style: italic;
  color: rgba(255, 255, 255, 0.9);
  background:
    radial-gradient(80% 80% at 30% 25%, rgba(255, 255, 255, 0.25), transparent 60%),
    conic-gradient(from 200deg, var(--r6), var(--r5), var(--aqua), var(--r7), var(--r6));
}
.guide .portrait.hope {
  background:
    radial-gradient(80% 80% at 30% 25%, rgba(255, 255, 255, 0.25), transparent 60%),
    conic-gradient(from 20deg, var(--r7), var(--gold), var(--r4), var(--aqua), var(--r7));
}
.guide .portrait img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.guide .role {
  font-size: 0.72rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--muted);
  margin: 8px 0 14px;
}
.guide p { margin: 0 0 18px; }
@media (max-width: 520px) {
  .guide { grid-template-columns: minmax(0, 1fr); }
  .guide .portrait { width: 96px; }
}

/* ---------- Closing ---------- */
.closing { text-align: center; }
.closing .statement { max-width: 16em; margin: 0 auto; }
.closing .yes {
  display: block;
  margin-top: 0.35em;
  font-style: italic;
  background: linear-gradient(100deg, var(--rose), var(--gold) 45%, var(--lime));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.closing .btn-row { justify-content: center; margin-top: 44px; }
.join {
  margin-top: clamp(72px, 10vw, 120px);
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 32px 64px;
  align-items: center;
  text-align: left;
}
@media (max-width: 760px) { .join { grid-template-columns: minmax(0, 1fr); } }

/* Lite visuals: still water, nothing to splash */
.fx-lite .hero-hint { display: none; }

/* the Infinity Wave section: bold words stand out in the light text (lib/home_sections.php) */
.wave-figure + div strong { color: var(--mist); font-weight: 600; }

/* ==========================================================================
   The emblem (cms/lib/home_sections.php home_hero, assets/js/hero.js)
   ========================================================================== */
.hmh-hero {
  cursor: default;
  background:
    radial-gradient(60% 70% at 72% 38%, rgb(var(--glow-b) / 0.10), transparent 70%),
    radial-gradient(50% 60% at 20% 80%, rgb(var(--glow-a) / 0.10), transparent 70%),
    radial-gradient(120% 90% at 60% 30%, var(--hero-tint) 0%, var(--ink) 72%);
}
.hmh-hero::after { height: 40%; background: linear-gradient(180deg, transparent, rgb(var(--bg-rgb) / 0.5) 55%, rgb(var(--bg-rgb) / 0.85)); }
.hero-emblem { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; transition: opacity 1.4s var(--ease); touch-action: pan-y; }
.hero-emblem.on { opacity: 1; }

/* the drawn logo: what Lite shows (and what Full shows until the streams start) */
.emblem-still {
  position: absolute;
  right: 12%;
  top: calc(var(--header-h) + 4vh);
  width: min(30vw, 46vh);
  aspect-ratio: 1;
  transition: opacity 1s var(--ease);
}
.hmh-hero.is-live .emblem-still { opacity: 0; pointer-events: none; }
.emblem-svg { width: 100%; height: 100%; display: block; overflow: visible; filter: drop-shadow(0 20px 50px rgb(0 0 0 / 0.35)); }
.emblem-svg path { transition: opacity .9s var(--ease), transform 1.2s cubic-bezier(.2, .9, .25, 1.15); transform-box: fill-box; transform-origin: center; }
.emblem-still.some .emblem-svg path:not(.lit) { opacity: 0.28; transform: scale(.94) translateY(4%); }
.emblem-still.some .emblem-svg path.lit { opacity: 1; }
.fx-lite .emblem-svg .hmh-coral { animation: breathe 7s ease-in-out infinite; }
.fx-lite .emblem-svg .hmh-sage { animation: breathe 7s ease-in-out -2.3s infinite; }
.fx-lite .emblem-svg .hmh-gold { animation: breathe 7s ease-in-out -4.6s infinite; }
@keyframes breathe { 0%, 100% { translate: 0 0; } 50% { translate: 0 -1.2%; } }
@media (prefers-reduced-motion: reduce) { .emblem-svg path { animation: none !important; transition: opacity .3s; } }
.hmh-hero.is-aligned .emblem-svg { filter: drop-shadow(0 0 40px rgb(var(--glow-c) / 0.35)) drop-shadow(0 20px 50px rgb(0 0 0 / 0.35)); }
/* aligned (Lite): the drawn mark beats gently, thump-thump, like the particles do in Full (hero.js) */
@media (prefers-reduced-motion: no-preference) {
  .hmh-hero.is-lite.is-aligned .emblem-svg { animation: hmh-beat 3.75s ease-out 1.2s infinite; transform-origin: 50% 55%; }
}
@keyframes hmh-beat { 0%, 100% { scale: 1; } 3.5% { scale: 1.035; } 7% { scale: 1.005; } 10.4% { scale: 1.022; } 18% { scale: 1; } }

/* words on the left, the buttons on the right */
.hmh-hero .hero-inner { grid-template-columns: minmax(0, 1.2fr) minmax(0, 0.9fr); align-items: end; }
.hmh-hero h1 { font-size: calc(clamp(3rem, 7.6vw, 7rem) * var(--text-scale, 1)); line-height: 0.95; font-weight: 500; font-variation-settings: "opsz" 144; letter-spacing: -0.035em; }
.hmh-hero .hero-lede { font-size: clamp(1.02rem, 1.3vw, 1.18rem); margin-top: 22px; max-width: 32em; }
.hero-copy > * { animation: rise 1.4s var(--ease) both; }
.hero-copy h1 { animation-delay: .2s; }
.hero-copy .hero-sub { animation-delay: .4s; }
.hero-copy .hero-lede { animation-delay: .55s; }
.hero-copy .btn-row { animation-delay: .7s; }
.hero-play { animation: rise 1.4s var(--ease) 1s both; justify-self: end; width: min(100%, 460px); }
@media (prefers-reduced-motion: reduce) { .hero-copy > *, .hero-play { animation: none; } }

.hero-ask { margin: 0 0 12px; font-size: .74rem; letter-spacing: .16em; text-transform: uppercase; color: var(--muted); }
.align-row { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.align-btn {
  --c: #E27F6D;
  display: grid; grid-template-columns: auto 1fr; align-items: center; column-gap: 9px; row-gap: 2px;
  text-align: left; padding: 12px 14px; min-height: 64px;
  border-radius: 16px; border: 1px solid var(--line-strong);
  background: rgb(var(--fg-rgb) / 0.05); color: var(--mist);
  backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
  font-family: var(--serif); font-size: 1.12rem; line-height: 1.1;
  transition: background .35s, border-color .35s, transform .35s var(--ease), box-shadow .35s;
}
.align-btn.is-mind { --c: #8EB9A5; }
.align-btn.is-habits { --c: #DBB66F; }
.align-btn .dot { width: 11px; height: 11px; border-radius: 50%; background: var(--c); box-shadow: 0 0 0 4px color-mix(in srgb, var(--c) 22%, transparent); transition: box-shadow .4s; }
.align-btn small { grid-column: 2; font-family: var(--sans); font-size: .7rem; letter-spacing: .04em; color: var(--muted); }
.align-btn:hover { background: rgb(var(--fg-rgb) / 0.1); transform: translateY(-2px); }
.align-btn[aria-pressed="true"] { border-color: color-mix(in srgb, var(--c) 70%, transparent); background: color-mix(in srgb, var(--c) 16%, transparent); box-shadow: 0 10px 30px -14px var(--c); }
.align-btn[aria-pressed="true"] .dot { box-shadow: 0 0 0 4px color-mix(in srgb, var(--c) 30%, transparent), 0 0 18px var(--c); }
.align-note { min-height: 3em; margin: 12px 2px 4px; font-family: var(--serif); font-style: italic; font-size: 1.05rem; line-height: 1.4; color: var(--soft); }
.hmh-hero.is-aligned .align-note { color: var(--mist); }
.hero-tools { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 14px; }
.sound-btn.playing .eq i { animation: eq 1.1s ease-in-out infinite; }
.sound-btn.playing .eq i:nth-child(2) { animation-delay: -0.4s; }
.sound-btn.playing .eq i:nth-child(3) { animation-delay: -0.75s; }
.scatter-btn { background: none; border: 0; padding: 6px 2px; color: var(--soft); font-size: .82rem; text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }
.scatter-btn:hover { color: var(--mist); }
.hmh-hero .hero-hint { margin-top: 12px; font-size: .7rem; }
.fx-lite .hmh-hero .hero-hint { display: none; }

/* phones and narrow windows: the emblem on top, everything else below it */
@media (max-width: 900px), (max-aspect-ratio: 23/20) {
  .hmh-hero { height: auto; min-height: 100svh; }
  .hmh-hero .hero-inner { position: relative; grid-template-columns: 1fr; padding-top: calc(var(--header-h) + 46vw); gap: 26px; }
  .hero-play { justify-self: stretch; width: 100%; }
  .emblem-still { right: 50%; translate: 50% 0; width: min(52vw, 38vh); top: calc(var(--header-h) + 3vh); }
}
@media (max-width: 560px) {
  .hmh-hero .hero-inner { padding-top: calc(var(--header-h) + 62vw); }
  .emblem-still { width: 56vw; }
  .align-btn { padding: 10px; font-size: 1rem; min-height: 58px; }
  .align-btn small { display: none; }
}

/* the lede shows on phones too (You, Awake's hero hid it), and a faint outline of the mark shows
   where the streams will go while they still flow */
.hmh-hero .hero-lede { display: block; }
.hmh-hero.is-live .emblem-still { opacity: .07; }
.hmh-hero.is-live.is-aligned .emblem-still, .hmh-hero.is-live .emblem-still.some { opacity: 0; }
