:root {
  --serif: 'Eczar', Georgia, serif;
  --sans: 'Anek Latin', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --gold: #C9A23A;
  --gold-hi: #DDB751;
}
/* Theme: stone on black. Everything monochrome; gold only on the vajra and the buy button. */
[data-theme="stone"] {
  --bg: #08080A; --bg-2: #111114; --line: #24252A;
  --ink: #EDEAE3; --mute: #8E9199; --accent: #C9A23A;
  --band-a-bg: #0D0D10; --band-a-ink: #EDEAE3; --band-a-mute: #8E9199; --band-a-accent: #C9A23A;
  --band-b-bg: #08080A; --band-b-ink: #EDEAE3; --band-b-mute: #8E9199;
  --btn-bg: #C9A23A; --btn-ink: #0A0A0A; --btn-hi: #DDB751;
  --glow: rgba(255,255,255,0.10);
}
/* Theme: Lapis & Vermilion. Flat vermilion and lapis fields, ink black, bone white. */
[data-theme="vermilion"] {
  --bg: #120D0B; --bg-2: #1C1512; --line: #3A2A24;
  --ink: #F3E9DA; --mute: #C9B9A6; --accent: #E4472B;
  --band-a-bg: #E4472B; --band-a-ink: #120D0B; --band-a-mute: #3B1A12; --band-a-accent: #120D0B;
  --band-b-bg: #16285E; --band-b-ink: #F3E9DA; --band-b-mute: #B9C3E0;
  --btn-bg: #F3E9DA; --btn-ink: #120D0B; --btn-hi: #FFFFFF;
  --glow: rgba(255,200,150,0.16);
}

* { box-sizing: border-box; }
html { background: var(--bg); }
body { margin: 0; background: var(--bg); color: var(--ink); font-family: var(--sans); font-size: 17px; line-height: 1.6; -webkit-font-smoothing: antialiased; overflow-x: hidden; }
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
svg use { fill: currentColor; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.wrap { max-width: 1120px; margin: 0 auto; padding: 0 20px; }
.wrap.narrow { max-width: 680px; }
.center { text-align: center; }

/* nav: transparent over the opening, solid after it */
.nav { position: fixed; z-index: 20; top: 0; left: 0; right: 0; display: flex; align-items: center; justify-content: space-between; padding: 14px 20px; transition: background .3s, border-color .3s; border-bottom: 1px solid transparent; }
.nav.solid { background: color-mix(in srgb, var(--bg) 88%, transparent); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); border-color: var(--line); }
.nav-mark { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; font-family: var(--serif); font-weight: 600; letter-spacing: 0.14em; font-size: 14px; color: #F3EEE6; padding: 8px 0; }
.nav-links { display: flex; gap: 2px; }
.nav-links a { text-decoration: none; font-size: 15px; font-weight: 500; padding: 10px 12px; border-radius: 8px; color: #F3EEE6; }
.nav-links a:hover { background: rgba(255,255,255,0.1); }

/* the pinned opening */
.stage { position: relative; height: 340svh; }
.stage-pin { position: sticky; top: 0; height: 100svh; overflow: hidden; background: #000; }
.layer { position: absolute; inset: 0; will-change: transform, opacity; }
.layer img { width: 100%; height: 100%; object-fit: cover; }
.layer-hero { transform-origin: calc(var(--fx) * 100%) calc(var(--fy) * 100%); }
.layer-hero img { object-position: calc(var(--fx) * 100%) calc(var(--fy) * 100%); }
.layer-close { opacity: 0; transform-origin: calc(var(--cfx) * 100%) calc(var(--cfy) * 100%); }
.layer-close img { object-position: calc(var(--cfx) * 100%) calc(var(--cfy) * 100%); }
@media (orientation: portrait) {
  .layer-hero { transform-origin: calc(var(--tfx) * 100%) calc(var(--tfy) * 100%); }
  .layer-hero img { object-position: calc(var(--tfx) * 100%) calc(var(--tfy) * 100%); }
}
.seq { z-index: 0; width: 100%; height: 100%; opacity: 0; transition: opacity .4s; }
.layer-hero { z-index: 1; }
.layer-close { z-index: 2; }
.fx, .glow, .shade { z-index: 3; }
.stage-copy, .scroll-cue { z-index: 4; }
.seq.ready { opacity: 1; }
.fx { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; }
.glow { position: absolute; inset: 0; pointer-events: none; background: radial-gradient(circle 32vmax at var(--gx, 50%) var(--gy, 40%), var(--glow), transparent 70%); mix-blend-mode: screen; }
.shade { position: absolute; inset: 0; pointer-events: none; background: linear-gradient(to top, rgba(0,0,0,0.85) 0%, rgba(0,0,0,0.35) 32%, rgba(0,0,0,0) 55%); }
.stage-copy { position: absolute; left: 0; right: 0; bottom: 0; padding: 0 max(20px, 5vw) max(56px, 9svh); max-width: 1120px; color: #F6F0E6; }
.copy-a h1 { margin: 0; font-family: var(--serif); font-weight: 600; font-size: clamp(44px, 9vw, 112px); line-height: 0.95; letter-spacing: 0.06em; }
.copy-a .tagline { margin: 16px 0 0; font-family: var(--serif); font-size: clamp(22px, 3vw, 32px); color: var(--gold-hi); }
[data-theme="vermilion"] .copy-a .tagline { color: #FFB49A; }
.copy-b { opacity: 0; }
.copy-b .big { margin: 0; max-width: 820px; font-family: var(--serif); font-weight: 500; font-size: clamp(24px, 3.6vw, 42px); line-height: 1.25; }
/* On wide screens the close-up's face sits right of centre: keep the words in the left column. */
@media (orientation: landscape) and (min-width: 900px) { .copy-b .big { max-width: 38vw; font-size: clamp(24px, 2.6vw, 38px); } }
.stage-copy .source { margin: 16px 0 0; font-size: 14px; color: rgba(246,240,230,0.7); }
.scroll-cue { position: absolute; right: max(20px, 5vw); bottom: max(56px, 9svh); width: 1px; height: 64px; background: rgba(255,255,255,0.25); overflow: hidden; }
.scroll-cue span { position: absolute; left: 0; top: -40%; width: 1px; height: 40%; background: #fff; animation: cue 2s ease-in-out infinite; }
@keyframes cue { to { top: 100%; } }

/* painted / photographed plates between bands */
.plate { position: relative; min-height: 110svh; display: flex; align-items: flex-end; overflow: hidden; background: #000; }
.plate-art { position: absolute; inset: -10% 0; background: var(--img) calc(var(--px, 0.5) * 100%) center / cover no-repeat; will-change: transform; }
@media (max-width: 900px) { .plate-art { background-image: var(--img-s); } }
.plate::after { content: ''; position: absolute; inset: 0; background: linear-gradient(to top, rgba(0,0,0,0.88) 0%, rgba(0,0,0,0.4) 38%, rgba(0,0,0,0) 62%); }
.plate-copy { position: relative; z-index: 1; max-width: 1120px; margin: 0 auto; width: 100%; padding: 0 max(20px, 5vw) max(64px, 10svh); color: #F6F0E6; }
.plate-copy .lede { margin: 0; max-width: 780px; font-family: var(--serif); font-size: clamp(24px, 3.2vw, 38px); line-height: 1.3; }
.plate-quote blockquote { margin: 0; }
.plate-quote blockquote p { margin: 0 0 10px; max-width: 900px; font-family: var(--serif); font-weight: 500; font-size: clamp(28px, 4.6vw, 54px); line-height: 1.15; }
.plate-quote blockquote p + p { font-weight: 400; font-size: clamp(22px, 3vw, 32px); color: var(--gold-hi); }
[data-theme="vermilion"] .plate-quote blockquote p + p { color: #FFB49A; }
.plate .source { margin: 14px 0 0; font-size: 14px; color: rgba(246,240,230,0.7); }
.plate .eyebrow { color: var(--gold-hi); }
[data-theme="vermilion"] .plate .eyebrow { color: #FFB49A; }

/* bands */
.band { padding: 112px 0; }
.band-a { background: var(--band-a-bg); color: var(--band-a-ink); }
.band-b { background: var(--band-b-bg); color: var(--band-b-ink); }
.eyebrow { margin: 0 0 18px; font-family: var(--serif); font-size: 22px; font-weight: 600; color: var(--accent); }
.band-a .eyebrow { color: var(--band-a-accent); }
h2 { margin: 0; font-family: var(--serif); font-weight: 600; font-size: clamp(34px, 5.4vw, 60px); line-height: 1.05; }
.sub { margin: 16px 0 0; font-size: 18px; max-width: 620px; color: var(--mute); }
.band-a .sub { color: var(--band-a-mute); }
.tenets { list-style: none; margin: 8px 0 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 0 56px; }
.tenets li { display: flex; gap: 20px; align-items: baseline; padding: 26px 0; border-top: 1px solid color-mix(in srgb, var(--band-a-ink) 22%, transparent); }
.tenets .num { flex: 0 0 36px; font-family: var(--serif); font-weight: 600; font-size: 18px; color: var(--band-a-accent); opacity: 0.8; }
.tenets p { margin: 0; font-family: var(--serif); font-weight: 500; font-size: clamp(22px, 2.4vw, 27px); line-height: 1.3; }
.coda { margin-top: 56px; padding-top: 36px; border-top: 1px solid color-mix(in srgb, var(--band-a-ink) 22%, transparent); }
.coda p { margin: 0 0 6px; font-family: var(--serif); font-weight: 500; font-size: clamp(22px, 2.6vw, 30px); line-height: 1.35; }
.coda .source { font-family: var(--sans); font-size: 14px; margin-top: 18px; color: var(--band-a-mute); }

.book { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 56px; align-items: center; }
.book-art { margin: 0; border-radius: 6px; overflow: hidden; border: 1px solid var(--line); box-shadow: 0 30px 80px rgba(0,0,0,0.5); }
.book-copy h2 span { display: block; margin-top: 8px; font-weight: 400; font-size: 0.5em; color: var(--accent); }
[data-theme="vermilion"] .band-b .book-copy h2 span { color: #FFB49A; }
.book-copy > p:not(.eyebrow) { margin: 20px 0 0; font-size: 18px; line-height: 1.65; }
.book-copy > p.meta { font-size: 15px; color: var(--band-b-mute); }
[data-theme="vermilion"] .band-b .eyebrow { color: #FFB49A; }
.book-copy .btn { margin-top: 30px; }

.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 50px; padding: 0 26px; border-radius: 8px; font-family: var(--sans); font-size: 17px; font-weight: 600; text-decoration: none; border: 0; cursor: pointer; background: var(--btn-bg); color: var(--btn-ink); transition: background .15s; }
.btn:hover { background: var(--btn-hi); }
.btn:disabled { opacity: 0.6; cursor: default; }

.stories { margin-top: 44px; display: grid; grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 20px; }
.story { display: flex; flex-direction: column; gap: 10px; text-decoration: none; }
.story img { aspect-ratio: 9 / 16; object-fit: cover; width: 100%; border-radius: 8px; background: rgba(0,0,0,0.2); transition: transform .4s; }
.story:hover img { transform: translateY(-4px); }
.story-title { font-weight: 600; font-size: 15px; line-height: 1.35; }
.story-src { font-size: 13px; margin-top: -4px; color: var(--band-a-mute); }

.join-band { position: relative; padding: 140px 0 120px; overflow: hidden; background: var(--bg); }
.join-art { position: absolute; inset: 0; background: var(--img) center / cover no-repeat; opacity: 0.35; }
@media (max-width: 900px) { .join-art { background-image: var(--img-s); } }
.join-band::before { content: ''; position: absolute; inset: 0; z-index: 1; background: radial-gradient(ellipse at center, rgba(0,0,0,0.25), rgba(0,0,0,0.85)); }
.join-band .wrap { position: relative; z-index: 2; }
.join-vajra { color: var(--gold); margin: 0 auto 22px; }
.join-band .sub { margin-left: auto; margin-right: auto; }
.join { margin: 32px auto 0; display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; max-width: 520px; }
.join input[type=email] { flex: 1 1 260px; min-height: 50px; padding: 0 18px; border-radius: 8px; border: 1.5px solid rgba(255,255,255,0.22); background: rgba(0,0,0,0.5); color: #F6F0E6; font: inherit; font-size: 16px; }
.join input[type=email]::placeholder { color: rgba(246,240,230,0.5); }
.join input[type=email]:focus { outline: 2px solid var(--gold); outline-offset: 2px; }
.hp { position: absolute; left: -9999px; }
.form-msg { min-height: 26px; margin: 16px 0 0; color: var(--mute); font-size: 15px; }

.footer { border-top: 1px solid var(--line); padding: 32px 0 40px; color: var(--mute); font-size: 15px; background: var(--bg); }
.footer-row { display: flex; flex-wrap: wrap; gap: 20px 40px; align-items: center; justify-content: space-between; }
.footer-brand { display: flex; align-items: center; gap: 12px; color: var(--ink); font-family: var(--serif); letter-spacing: 0.15em; }
.footer-links { display: flex; flex-wrap: wrap; gap: 4px 18px; }
.footer-links a { text-decoration: none; padding: 8px 0; }
.footer-links a:hover { color: var(--ink); }

/* reveal on scroll */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity .9s ease, transform .9s cubic-bezier(.2,.7,.2,1); }
.reveal.in { opacity: 1; transform: none; }

@media (max-width: 520px) {
  .nav-mark span { display: none; }
  .nav-links a { padding: 10px 9px; font-size: 14px; }
  .band { padding: 80px 0; }
  .stories { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
  .scroll-cue { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  .scroll-cue span { animation: none; }
}

/* the texts: Sanskrit large in Eczar (it carries Devanagari), English and source beneath */
.verses { list-style: none; margin: 48px 0 0; padding: 0; display: grid; grid-template-columns: 1fr; gap: 40px 64px; max-width: 900px; }
@media (min-width: 700px) { .verses { grid-template-columns: 1fr 1fr; } }
.verses li { padding-top: 22px; border-top: 1px solid var(--line); }
.verses .sa { margin: 0; font-family: var(--serif); font-weight: 500; font-size: clamp(30px, 3.4vw, 40px); line-height: 1.3; color: var(--gold-hi); }
[data-theme="vermilion"] .verses .sa { color: #FFB49A; }
.verses .en { margin: 10px 0 0; font-family: var(--serif); font-size: 22px; line-height: 1.35; }
.verses .cite { margin: 8px 0 0; font-size: 14px; color: var(--band-b-mute); }

/* Indragita, said quietly */
.reading { margin-top: 72px; padding-top: 32px; border-top: 1px solid color-mix(in srgb, var(--band-a-ink) 22%, transparent); display: flex; gap: 24px; align-items: center; max-width: 760px; }
.reading img { width: 168px; flex: 0 0 168px; border-radius: 4px; opacity: 0.9; }
.reading-k { margin: 0; font-size: 14px; color: var(--band-a-mute); }
.reading-t { margin: 6px 0 0; font-family: var(--serif); font-size: 19px; line-height: 1.4; }
.reading-a { display: inline-block; margin-top: 10px; padding: 6px 0; font-weight: 600; font-size: 15px; color: var(--band-a-accent); text-underline-offset: 4px; }
@media (max-width: 520px) { .reading { flex-direction: column; align-items: flex-start; } .reading img { width: 100%; flex: none; } }

/* stories play in place */
.story-media { position: relative; display: block; }
.play { position: absolute; left: 50%; top: 50%; width: 56px; height: 56px; margin: -28px 0 0 -28px; border-radius: 50%; background: rgba(0,0,0,0.55); border: 1.5px solid rgba(255,255,255,0.8); backdrop-filter: blur(4px); -webkit-backdrop-filter: blur(4px); transition: transform .2s, background .2s; }
.play::after { content: ''; position: absolute; left: 22px; top: 17px; border-style: solid; border-width: 11px 0 11px 17px; border-color: transparent transparent transparent #fff; }
.story:hover .play { transform: scale(1.08); background: rgba(0,0,0,0.7); }
.player { position: fixed; inset: 0; z-index: 50; display: flex; align-items: center; justify-content: center; background: rgba(0,0,0,0.92); padding: 56px 16px 24px; }
.player[hidden] { display: none; }
.player-frame { height: min(86svh, calc((100vw - 32px) * 16 / 9)); aspect-ratio: 9 / 16; border-radius: 12px; overflow: hidden; background: #000; }
.player-frame iframe { width: 100%; height: 100%; border: 0; display: block; }
.player-x { position: absolute; top: 10px; right: 12px; width: 44px; height: 44px; border: 0; border-radius: 50%; background: rgba(255,255,255,0.12); color: #fff; font-size: 28px; line-height: 44px; cursor: pointer; }
.player-x:hover { background: rgba(255,255,255,0.22); }

/* the library: a quiet panel under the verses */
.library { display: grid; gap: 6px; margin-top: 56px; padding: 26px 28px; border: 1px solid var(--line); border-radius: 10px; text-decoration: none; max-width: 760px; transition: border-color .2s, background .2s; }
.library:hover { border-color: color-mix(in srgb, var(--gold) 60%, transparent); background: rgba(255,255,255,0.02); }
.library-k { font-size: 14px; color: var(--band-b-mute); }
.library-t { font-family: var(--serif); font-size: clamp(20px, 2.2vw, 24px); line-height: 1.35; }
.library-a { margin-top: 6px; font-weight: 600; font-size: 15px; color: var(--gold-hi); }
[data-theme="vermilion"] .library-a { color: #FFB49A; }
.library-a::after { content: ' →'; }

/* the album: copy beside a Spotify player */
.album { margin-top: 80px; padding-top: 40px; border-top: 1px solid color-mix(in srgb, var(--band-a-ink) 22%, transparent); display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 32px 56px; align-items: center; }
.album h3 { margin: 0; font-family: var(--serif); font-weight: 600; font-size: clamp(34px, 4.6vw, 52px); line-height: 1.05; }
.album-copy > p:not(.eyebrow) { margin: 16px 0 0; font-family: var(--serif); font-size: 19px; line-height: 1.5; max-width: 520px; }
.album-a { display: inline-block; margin-top: 14px; padding: 6px 0; font-weight: 600; font-size: 15px; color: var(--band-a-accent); text-underline-offset: 4px; }
.album-embed { width: 100%; border: 0; border-radius: 12px; background: rgba(255,255,255,0.03); }

/* Phones: keep the opening light. No blended glow, no blur behind the nav, no parallax transforms on plates. */
.lite .glow { display: none; }
.lite .nav.solid { backdrop-filter: none; -webkit-backdrop-filter: none; background: var(--bg); }
.lite .plate-art { will-change: auto; }

/* the four Vedas, long-form */
.sub-h { margin: 56px 0 0; font-family: var(--serif); font-weight: 600; font-size: 24px; }
.vedas { margin-top: 20px; display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 24px; }
.veda { display: flex; flex-direction: column; gap: 8px; text-decoration: none; }
.veda img { aspect-ratio: 16 / 9; object-fit: cover; width: 100%; border-radius: 8px; transition: transform .4s; }
.veda:hover img { transform: translateY(-4px); }
.veda-k { margin-top: 4px; font-size: 13px; font-weight: 600; letter-spacing: 0.02em; color: var(--band-a-accent); }
.vedas + .sub-h + .stories { margin-top: 20px; }
.player-frame.wide { height: auto; width: min(94vw, 160svh); aspect-ratio: 16 / 9; }
@media (max-width: 520px) { .vedas { grid-template-columns: 1fr 1fr; gap: 16px; } .sub-h { font-size: 21px; margin-top: 44px; } }
