/* Phi Chakra Sanctuary: "alive" layer (Yantra, 21 Nov 2026). Loads after style.css + design.css; works with alive.js.
   Site copy (Vastu, 23 Nov 2026): source branding/website/alive.css; only change = story chapters dim only with JS. This copy is the master.
   Golden ratio kept: φ spacing tokens from design.css Part D, hero light on the golden point, 1 : φ splits.
   Readability first: text never moves once it has arrived, body stays 21 px, contrast stays high. */

/* ---------- living background ---------- */
canvas.sky { position: fixed; inset: 0; width: 100vw; height: 100vh; z-index: -2; pointer-events: none; }
.aurora { position: fixed; inset: -20vh -10vw; z-index: -3; pointer-events: none; filter: blur(90px) saturate(1.1); opacity: .5; }
.aurora i { position: absolute; border-radius: 50%; mix-blend-mode: screen; animation: float 38s ease-in-out infinite alternate; }
.aurora i:nth-child(1) { width: 60vw; height: 40vh; left: 38%; top: 0; background: radial-gradient(closest-side, rgba(91,95,214,.55), transparent); }
.aurora i:nth-child(2) { width: 50vw; height: 45vh; left: -5%; top: 35%; background: radial-gradient(closest-side, rgba(180,123,224,.35), transparent); animation-duration: 46s; animation-delay: -12s; }
.aurora i:nth-child(3) { width: 45vw; height: 35vh; left: 55%; top: 60%; background: radial-gradient(closest-side, rgba(79,191,122,.22), transparent); animation-duration: 52s; animation-delay: -20s; }
.aurora i:nth-child(4) { width: 35vw; height: 30vh; left: 20%; top: 80%; background: radial-gradient(closest-side, rgba(232,194,122,.18), transparent); animation-duration: 60s; }
@keyframes float { 0% { transform: translate(0, 0) scale(1); } 50% { transform: translate(6vw, -4vh) scale(1.15); } 100% { transform: translate(-5vw, 5vh) scale(.95); } }
html, body { overflow-x: clip; }
body { background-color: #050816; background-image: none; }
/* the page breathes very faintly with the music */
html.sounding body::after { content: ''; position: fixed; inset: 0; pointer-events: none; z-index: -1;
  background: radial-gradient(60vmax 40vmax at 61.8% 38.2%, rgba(232,194,122, calc(var(--level, 0) * .22)), transparent 70%); }

/* ---------- floating glass nav ---------- */
.top { position: sticky; top: 13px; z-index: 50; max-width: 1080px; margin: 13px auto 0; border-radius: 99px; padding: 10px 13px 10px 21px;
  background: rgba(11,18,51,.35); backdrop-filter: blur(14px) saturate(1.2); -webkit-backdrop-filter: blur(14px) saturate(1.2);
  border: 1px solid rgba(232,194,122,.14); transition: background .4s, box-shadow .4s, max-width .5s cubic-bezier(.2,.8,.2,1); }
.top.scrolled { background: rgba(7,11,26,.72); box-shadow: 0 13px 34px rgba(0,0,0,.35); max-width: 1000px; }
/* Vastu (Yantra's check, 23 Nov): a Night band fills the gap above the floating nav, so no page text peeks out above it. */
.top::before { content: ''; position: absolute; z-index: -1; pointer-events: none; left: 50%; width: 100vw; transform: translateX(-50%);
  top: -14px; height: 14px; background: #070B1A; }
nav a.on { background: rgba(232,194,122,.12); }

/* ---------- words that rise into place ---------- */
.js [data-split] .w { display: inline-block; overflow: hidden; vertical-align: top; padding-bottom: .08em; margin-bottom: -.08em; }
.js [data-split] .w > span { display: inline-block; transform: translateY(105%); opacity: 0;
  transition: transform .9s cubic-bezier(.2,.8,.2,1), opacity .9s; transition-delay: calc(var(--i) * 55ms); }
.js [data-split].in .w > span { transform: none; opacity: 1; }
.js [data-reveal] { opacity: 0; transform: translateY(34px); transition: opacity 1s cubic-bezier(.2,.8,.2,1), transform 1s cubic-bezier(.2,.8,.2,1); transition-delay: var(--d, 0s); }
.js [data-reveal].in { opacity: 1; transform: none; }

/* ---------- text that lights up while you scroll ---------- */
.statement { font: 500 clamp(30px, 4.2vw, 46px)/1.3 var(--serif); color: var(--moon); max-width: 920px; margin: 0 auto; text-wrap: pretty; }
.statement em { font-style: normal; color: var(--gold); }
.js [data-scrub] .sw > span { opacity: .22; transition: opacity .5s; }
.js [data-scrub] .sw.lit > span { opacity: 1; }

/* ---------- hero: full-bleed night with the giant wordmark ---------- */
.hero-alive { position: relative; min-height: calc(100vh - 13px); margin: -80px 0 0; padding-top: 80px; display: grid; grid-template-columns: 1fr 1.618fr; align-items: start; }
.hero-alive .copy { position: relative; z-index: 2; padding-top: clamp(34px, 9vh, 89px); }
.hero-alive h1 { font-size: clamp(42px, 5.6vw, 68px); line-height: 1.05; }
.hero-alive .lead { font-size: 21px; }
.hero-alive .btn { padding: 0 21px; }
.hero-alive .orb { position: relative; justify-self: start; width: min(460px, 36vw); aspect-ratio: 1;
  margin-left: max(0px, calc(11.8vw - 98px)); margin-top: max(0px, calc(38.2vh - 327px));
  transform: translateY(var(--py, 0)) scale(calc(1 + var(--level, 0) * .06)); transition: transform .2s linear; }
.hero-alive .orb img { width: 100%; height: 100%; border-radius: 50%; object-fit: cover;
  -webkit-mask: radial-gradient(closest-side, #000 70%, transparent 100%); mask: radial-gradient(closest-side, #000 70%, transparent 100%);
  animation: turn 240s linear infinite; filter: brightness(calc(1 + var(--level, 0) * .5)); }
.hero-alive .orb::before { content: ''; position: absolute; inset: -18%; border-radius: 50%; z-index: -1;
  background: radial-gradient(closest-side, rgba(180,123,224,.35), rgba(91,95,214,.12) 55%, transparent 72%); animation: breathe 10s ease-in-out infinite; }
.hero-alive .orb::after { content: ''; position: absolute; inset: -6%; border-radius: 50%; border: 1px solid rgba(232,194,122,.25); animation: ripple 6s ease-out infinite; }
@keyframes breathe { 50% { transform: scale(1.12); opacity: .75; } }
@keyframes ripple { 0% { transform: scale(.92); opacity: .7; } 100% { transform: scale(1.35); opacity: 0; } }
/* lake: the waterline, and a soft trembling reflection of the light */
.lake { position: absolute; left: calc(50% - 50vw); right: calc(50% - 50vw); top: 64%; height: 36%; z-index: 0; pointer-events: none;
  background: linear-gradient(rgba(5,8,22,0), rgba(5,8,22,.85)); border-top: 1px solid rgba(232,194,122,.12); }
.lake::before { content: ''; position: absolute; left: 61.8%; top: 3%; width: 300px; height: 60%; transform: translateX(-50%);
  background: repeating-linear-gradient(transparent 0 13px, rgba(243,215,156,.16) 13px 14px); -webkit-mask: radial-gradient(closest-side, #000, transparent); mask: radial-gradient(closest-side, #000, transparent);
  animation: shimmer 5s ease-in-out infinite; opacity: calc(.6 + var(--level, 0)); }
@keyframes shimmer { 50% { transform: translateX(-50%) scaleX(1.25); opacity: .35; } }
.wordmark { grid-column: 1 / -1; position: relative; z-index: 1; margin: -21px -16px 0; overflow: hidden; line-height: 1.05; padding-bottom: .12em; } /* Vastu: room for the 'y' descender */
.wordmark span { display: block; font: 600 clamp(64px, 13.2vw, 190px)/1.05 var(--serif); letter-spacing: -.01em; text-align: center; white-space: nowrap;
  background: linear-gradient(180deg, #F4ECDD 20%, rgba(244,236,221,.18) 95%); -webkit-background-clip: text; background-clip: text; color: transparent;
  transform: translateY(var(--py, 0)); }
.scroll-cue { position: absolute; right: 0; top: calc(64% + 21px); font-size: 13px; letter-spacing: .3em; text-transform: uppercase; color: var(--mist); display: flex; align-items: center; gap: 13px; }
.scroll-cue::before { content: ''; width: 1px; height: 34px; background: linear-gradient(var(--gold), transparent); animation: cue 2.4s ease-in-out infinite; }
@keyframes cue { 0% { transform: scaleY(0); transform-origin: top; } 50% { transform: scaleY(1); transform-origin: top; } 51% { transform-origin: bottom; } 100% { transform: scaleY(0); transform-origin: bottom; } }

/* ---------- marquee of tones ---------- */
.marquee { overflow: hidden; border-block: 1px solid var(--line); padding: 21px 0; margin: 0 -50vw; padding-inline: 50vw;
  -webkit-mask: linear-gradient(90deg, transparent, #000 15%, #000 85%, transparent); mask: linear-gradient(90deg, transparent, #000 15%, #000 85%, transparent); }
.marquee div { display: flex; gap: 55px; width: max-content; animation: slide 60s linear infinite; }
.marquee span { font: 500 27px/1 var(--serif); color: var(--mist); white-space: nowrap; display: inline-flex; align-items: center; gap: 13px; }
.marquee b { font-weight: 600; color: var(--c, var(--gold)); }
.marquee span::before { content: ''; width: 9px; height: 9px; border-radius: 50%; background: var(--c, var(--gold)); box-shadow: 0 0 12px var(--c, var(--gold)); }
@keyframes slide { to { transform: translateX(-50%); } }

/* ---------- chakra story: pinned orb, chapters scroll past ---------- */
.story { --cc: #E0473F; display: grid; grid-template-columns: 1fr 1.618fr; gap: var(--s5); }
.story-pin { position: sticky; top: 18vh; height: min(600px, 66vh); display: grid; place-items: center; align-content: center; text-align: center; }
.story-visual { position: relative; display: grid; place-items: center; width: 100%; }
.story-orb { width: min(320px, 72%); aspect-ratio: 1; border-radius: 50%; position: relative; isolation: isolate;
  background: url(img/mandala.jpg) center/cover; -webkit-mask: radial-gradient(closest-side, #000 72%, transparent 100%); mask: radial-gradient(closest-side, #000 72%, transparent 100%);
  animation: turn 180s linear infinite; transform: scale(calc(1 + var(--level, 0) * .1)); }
.story-orb::before { content: ""; position: absolute; inset: 0; border-radius: 50%; background: var(--cc); mix-blend-mode: color; transition: background 1.2s; }
.story-glow { position: absolute; width: min(420px, 90%); aspect-ratio: 1; border-radius: 50%; z-index: -1; filter: blur(40px); opacity: .45;
  background: radial-gradient(closest-side, var(--cc), transparent); transition: background 1.2s; animation: breathe 8s ease-in-out infinite; }

.story-hz { display: block; font: 600 89px/1 var(--serif); color: var(--cc); transition: color 1s; margin-top: var(--s4); }
.story-hz { display: inline-block; } .story-hz-unit { font: 600 34px/1 var(--serif); color: var(--cc); margin-left: 8px; transition: color 1s; }
.story-name { font: 500 27px/1.2 var(--serif); color: var(--moon); }
.story-seed { color: var(--mist); font-size: 17px; letter-spacing: .2em; text-transform: uppercase; margin-top: 6px; }
.story-dots { display: flex; gap: 10px; justify-content: center; margin-top: var(--s3); }
.story-dots i { width: 10px; height: 10px; border-radius: 50%; background: rgba(237,230,214,.18); transition: background .6s, transform .6s; }
.story-dots i.on { background: var(--cc); transform: scale(1.2); }
.story-steps { padding: 13vh 0 21vh; }
.story-step { min-height: 62vh; display: flex; flex-direction: column; justify-content: center; transition: opacity .8s; }
.js .story-step { opacity: .3; } /* Vastu: dim only with JS, so the chapters stay readable without it */
.js .story-step.on { opacity: 1; }
.story-step .also { font-size: 17px; color: var(--gold); }
.story-step h3 { font-size: 34px; margin: 0 0 13px; }
.story-step p { color: var(--mist); max-width: 34em; margin: 0 0 21px; }
.story-step .preview { width: auto; padding: 0 28px; align-self: flex-start; }

/* ---------- cards: lean toward the cursor, light follows ---------- */
.tilt { transform: perspective(900px) rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg)); transition: transform .5s cubic-bezier(.2,.8,.2,1), border-color .4s, box-shadow .5s; will-change: transform; position: relative; }
.tilt::after { content: ''; position: absolute; inset: 0; border-radius: inherit; pointer-events: none; opacity: 0; transition: opacity .4s;
  background: radial-gradient(420px circle at var(--mx, 50%) var(--my, 50%), rgba(243,215,156,.13), transparent 60%); }
.tilt:hover { border-color: rgba(232,194,122,.45); box-shadow: 0 34px 55px -21px rgba(0,0,0,.6); }
.tilt:hover::after { opacity: 1; }
.item img, .card img { transition: transform 1.2s cubic-bezier(.2,.8,.2,1); }
.item:hover img, .card:hover img { transform: scale(1.04); }
.item, .card { overflow: hidden; }

/* ---------- glass panels (Vastu, user's wish 23 Nov): the big panels let the night sky show through ---------- */
.breathe, .member-strip, .feature, .soon, .player, .glass {
  background: linear-gradient(160deg, rgba(91,95,214,.10), rgba(237,230,214,.02) 60%, rgba(232,194,122,.04));
  border-color: rgba(232,194,122,.22); box-shadow: inset 0 1px 0 rgba(255,255,255,.08); } /* no blur: the stars stay visible through the panel */
.feature { border-color: rgba(232,194,122,.55); }

/* ---------- buttons: a slow shine crosses the gold ---------- */
.btn { position: relative; overflow: hidden; transition: transform .35s cubic-bezier(.2,.8,.2,1), background .3s, box-shadow .3s; }
.btn:not(.ghost) { box-shadow: 0 0 0 rgba(232,194,122,0); }
.btn:not(.ghost):hover { box-shadow: 0 8px 34px -8px rgba(232,194,122,.55); }
.btn:not(.ghost)::after { content: ''; position: absolute; top: 0; bottom: 0; width: 40%; left: -60%; transform: skewX(-20deg);
  background: linear-gradient(90deg, transparent, rgba(255,255,255,.45), transparent); animation: shine 6s ease-in-out infinite; }
@keyframes shine { 0%, 70% { left: -60%; } 100% { left: 130%; } }

/* ---------- listening teaser: living waveform ---------- */
.wave { display: flex; align-items: center; gap: 5px; height: 55px; }
.wave i { width: 4px; border-radius: 4px; background: var(--gold); height: 20%; animation: wave 1.6s ease-in-out infinite; animation-delay: calc(var(--k) * -.13s); opacity: .8; }
@keyframes wave { 50% { height: 100%; } }

/* ---------- media that settles into view ---------- */
.media-in { overflow: hidden; border-radius: var(--s3); }
.js .media-in[data-reveal] img { transform: scale(1.12); transition: transform 1.8s cubic-bezier(.2,.8,.2,1); }
.js .media-in[data-reveal].in img { transform: scale(1); }

/* ---------- cursor light ---------- */
.cursor-light { position: fixed; left: -210px; top: -210px; width: 420px; height: 420px; border-radius: 50%; pointer-events: none; z-index: -1;
  background: radial-gradient(closest-side, rgba(243,215,156,.07), transparent); }

/* ---------- footer wordmark ---------- */
.foot-mark { font: 600 clamp(28px, 9.2vw, 160px)/.85 var(--serif); text-align: center; margin: var(--s6) 0 var(--s4); white-space: nowrap;
  background: linear-gradient(180deg, rgba(244,236,221,.5), rgba(244,236,221,0)); -webkit-background-clip: text; background-clip: text; color: transparent; }

@media (max-width: 720px) {
  .top { border-radius: 21px; margin: 8px 8px 0; top: 8px; padding: 8px 10px; gap: 4px; }
  .top .brand { font-size: 19px; } .top .brand em { display: none; } .top .phi { width: 26px; height: 26px; }
  .top nav { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; width: 100%; gap: 2px; font-size: 16px; justify-content: space-between; } /* Vastu: 4 items fit, no edge fade */
  .top nav::-webkit-scrollbar { display: none; }
  .top nav a { white-space: nowrap; padding: 10px 8px; min-height: 44px; }
  .top nav .pill { display: none; } /* Vastu (Yantra's check): 4 items on phones; YouTube stays in the hero button and the footer */
  .top::before { top: -9px; height: 9px; }
  .hero-alive { grid-template-columns: 1fr; min-height: 0; margin-top: 0; padding-top: 21px; }
  .hero-alive .orb { order: -1; width: 72vw; margin: 0 auto; justify-self: center; }
  .hero-alive .copy { padding-top: var(--s4); }
  .lake { top: 34%; height: 12%; }
  .scroll-cue { display: none; }
  .story { grid-template-columns: 1fr; gap: 0; }
  .story-pin { top: 112px; height: auto; padding: 13px 0; background: linear-gradient(#050816 75%, transparent); z-index: 2; grid-template-columns: auto 1fr; gap: 21px; text-align: left; }
  .story-orb { width: 89px; }
  .story-hz { font-size: 44px; margin: 0; } .story-hz-unit { font-size: 21px; }
  .story-dots { justify-content: flex-start; }
  .story-steps { padding: 13vh 0 21vh; }
  .story-step { min-height: 55vh; }
  .marquee span { font-size: 21px; }
}

@media (max-width: 414px) { .top nav { font-size: 15px; } .top nav a { padding: 10px 6px; } } /* 5 links since the App page joined the menu */
@media (max-width: 359px) { .top nav { font-size: 14px; } .top nav a { padding: 10px 3px; } }

/* ---------- reduced motion: everything still, nothing hidden ---------- */
html.still .aurora i, html.calm .aurora i, html.still .hero-alive .orb img, html.still .hero-alive .orb::before, html.still .hero-alive .orb::after,
html.still .lake::before, html.still .marquee div, html.still .story-orb, html.still .story-glow, html.still .btn::after,
html.still .wave i, html.still .scroll-cue::before { animation: none !important; }
html.still .marquee div { flex-wrap: wrap; width: auto; }
html.still .story-step { opacity: 1; }
/* Vastu: with reduced motion, revealed blocks appear at once (no fade). */
html.still [data-reveal], html.still [data-split] .w > span, html.still [data-scrub] .sw > span { transition: none !important; }
