/* Karma Vyuha site styles: base, motion (m-), then the site (global + its components). */
/* Shared accessibility + interaction baseline, imported by every root layout before the site's own CSS. */

/* Safety net: decorative motion must never cause sideways scrolling. clip (not hidden) keeps position: sticky working. */
body {
  overflow-x: clip;
}

:focus-visible {
  outline: 3px solid var(--accent, #1a63d6);
  outline-offset: 3px;
  border-radius: 4px;
}

:focus:not(:focus-visible) {
  outline: none;
}

/* Comfortable touch targets in navigation. */
nav a {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
}

/* Tactile press feedback. */
a[class],
button {
  -webkit-tap-highlight-color: transparent;
}

a[class]:active,
button:active {
  transform: scale(0.97);
}

/* Skip link: hidden until focused with the keyboard. */
.skip-link {
  position: absolute;
  left: 16px;
  top: -100px;
  z-index: 1000;
  padding: 12px 18px;
  border-radius: 8px;
  background: #111;
  color: #fff;
  font-weight: 600;
  text-decoration: none;
}

.skip-link:focus {
  top: 16px;
}

#main:focus {
  outline: none;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto !important;
  }

  a[class]:active,
  button:active {
    transform: none;
  }
}

/* Shared motion primitives. Every effect is disabled under prefers-reduced-motion. */

/* ---- Reveal on scroll ---- */
.m-reveal {
  transition:
    opacity 0.7s cubic-bezier(0.2, 0.7, 0.2, 1),
    transform 0.7s cubic-bezier(0.2, 0.7, 0.2, 1);
  transition-delay: var(--reveal-delay, 0ms);
}

.m-reveal[data-state='pending'] {
  opacity: 0;
}

.m-reveal[data-state='pending'][data-variant='up'] {
  transform: translateY(32px);
}

.m-reveal[data-state='pending'][data-variant='left'] {
  transform: translateX(-40px);
}

.m-reveal[data-state='pending'][data-variant='right'] {
  transform: translateX(40px);
}

.m-reveal[data-state='pending'][data-variant='zoom'] {
  transform: scale(0.92);
}

.m-reveal[data-state='pending'][data-variant='pop'] {
  transform: scale(0.6);
}

.m-fill {
  height: 100%;
}

/* Side slides would push past the screen edge on phones; rise instead. */
@media (max-width: 800px) {
  .m-reveal[data-state='pending'][data-variant='left'],
  .m-reveal[data-state='pending'][data-variant='right'] {
    transform: translateY(32px);
  }
}

/* Curtain wipe for images. */
.m-reveal[data-state='pending'][data-variant='clip'] {
  opacity: 1;
  clip-path: inset(0 0 100% 0 round 12px);
}

.m-reveal[data-variant='clip'] {
  clip-path: inset(0 0 0 0 round 12px);
  transition:
    clip-path 1s cubic-bezier(0.7, 0, 0.2, 1),
    opacity 0.7s;
  transition-delay: var(--reveal-delay, 0ms);
}

/* ---- Hero entrance on page load (pure CSS, no JS) ---- */
@keyframes m-enter {
  from {
    opacity: 0;
    transform: translateY(24px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

.m-enter {
  animation: m-enter 0.9s cubic-bezier(0.2, 0.7, 0.2, 1) both;
  animation-delay: var(--enter-delay, 0ms);
}

/* Word-by-word headline: each word rises from behind a mask. */
.m-word {
  display: inline-block;
  overflow: hidden;
  vertical-align: top;
  padding-bottom: 0.08em;
  margin-bottom: -0.08em;
}

.m-wordInner {
  display: inline-block;
  animation: m-wordUp 0.9s cubic-bezier(0.2, 0.7, 0.2, 1) both;
  animation-delay: var(--enter-delay, 0ms);
}

@keyframes m-wordUp {
  from {
    transform: translateY(105%);
  }
  to {
    transform: none;
  }
}

/* ---- Magnetic ---- */
.m-magnetic {
  display: inline-block;
  transform: translate(var(--mag-x, 0), var(--mag-y, 0));
  transition: transform 0.3s cubic-bezier(0.2, 0.7, 0.2, 1);
}

/* ---- Scroll cue ---- */
.m-scrollCue {
  position: absolute;
  left: 50%;
  bottom: 24px;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  transform: translateX(-50%);
  color: currentColor;
  font-size: 0.75rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  opacity: 0.8;
}

.m-scrollLine {
  position: relative;
  width: 1px;
  height: 40px;
  overflow: hidden;
  background: color-mix(in srgb, currentColor 30%, transparent);
}

.m-scrollLine::after {
  content: '';
  position: absolute;
  inset: 0;
  background: currentColor;
  animation: m-scrollLine 1.8s cubic-bezier(0.7, 0, 0.3, 1) infinite;
}

@keyframes m-scrollLine {
  from {
    transform: translateY(-100%);
  }
  to {
    transform: translateY(100%);
  }
}

@supports (animation-timeline: scroll()) {
  .m-scrollCue {
    animation: m-cueFade linear both;
    animation-timeline: scroll();
    animation-range: 0 160px;
  }

  @keyframes m-cueFade {
    to {
      opacity: 0;
    }
  }
}

/* ---- Parallax ---- */
.m-parallax {
  position: absolute;
  inset: -8% 0;
  will-change: transform;
}

/* ---- Tilt ---- */
.m-tilt {
  position: relative;
  height: 100%;
  transform: perspective(900px) rotateX(var(--tilt-x, 0deg)) rotateY(var(--tilt-y, 0deg));
  transition: transform 0.25s ease-out;
  transform-style: preserve-3d;
}

.m-tilt::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  pointer-events: none;
  background: radial-gradient(circle at var(--glare-x, 50%) var(--glare-y, 50%), rgba(255, 255, 255, 0.25), transparent 55%);
  opacity: var(--glare-o, 0);
  transition: opacity 0.25s;
}

/* ---- Marquee ---- */
@keyframes m-marquee {
  to {
    transform: translateX(-50%);
  }
}

.m-marquee {
  overflow: hidden;
  white-space: nowrap;
}

.m-marqueeTrack {
  display: inline-flex;
  animation: m-marquee var(--marquee-duration, 30s) linear infinite;
}

.m-marquee:hover .m-marqueeTrack {
  animation-play-state: paused;
}

.m-marqueeItem {
  display: inline-flex;
  align-items: center;
  gap: 1.5em;
  padding-right: 1.5em;
}

/* ---- Rotating word ---- */
.m-rotating {
  display: inline-grid;
  vertical-align: bottom;
  overflow: hidden;
}

.m-rotatingWord {
  grid-area: 1 / 1;
  transition:
    transform 0.6s cubic-bezier(0.2, 0.7, 0.2, 1),
    opacity 0.6s;
  transform: translateY(100%);
  opacity: 0;
}

.m-rotatingWord[data-active='true'] {
  transform: none;
  opacity: 1;
}

.m-rotatingWord[data-leaving='true'] {
  transform: translateY(-100%);
  opacity: 0;
}

/* ---- Float (gentle idle bob) ---- */
@keyframes m-float {
  50% {
    transform: translateY(-12px);
  }
}

.m-float {
  animation: m-float 6s ease-in-out infinite;
}

@media (prefers-reduced-motion: reduce) {
  .m-reveal,
  .m-reveal[data-state='pending'] {
    opacity: 1 !important;
    transform: none !important;
    transition: none;
  }

  .m-enter,
  .m-float,
  .m-marqueeTrack,
  .m-wordInner,
  .m-scrollLine::after {
    animation: none;
  }

  .m-reveal[data-variant='clip'] {
    clip-path: none !important;
  }

  .m-magnetic {
    transform: none !important;
  }

  .m-tilt {
    transform: none !important;
  }

  .m-rotatingWord {
    transition: none;
  }
}

:root {
  --sandalwood: #efe4d2;
  --sandalwood-deep: #e3d3ba;
  --surface: #fbf6ec;
  --terracotta: #7a3420;
  --indigo: #1b1f3b;
  --indigo-raised: #262b4f;
  --pale-gold: #f3d9a4;
  --ink-soft: #4a4458;
  --moon: #f6eedf;
  --moon-soft: #cfc6b6;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

body {
  font-family: var(--font-body), system-ui, sans-serif;
  /* The night sky itself is the fixed CosmicBackdrop in layout.tsx; this colour shows while it loads. */
  background: #05040c;
  color: var(--moon);
  line-height: 1.6;
}

h1, h2, h3 { font-family: var(--font-display), Georgia, serif; font-weight: 600; line-height: 1.15; }
h1 { font-size: clamp(2.5rem, 6vw, 4rem); }
h2 { font-size: clamp(1.9rem, 4vw, 2.6rem); margin-bottom: 1.5rem; }
h3 { font-size: 1.5rem; margin-bottom: 0.4rem; }
a { color: inherit; }
ul { list-style: none; }

.container { width: min(1080px, 100% - 2.5rem); margin-inline: auto; }
.narrow { max-width: 680px; }

.nav { position: relative; z-index: 2; background: rgb(8 7 20 / 72%); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); border-bottom: 1px solid rgb(243 217 164 / 12%); color: var(--moon); }
.navInner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 0.5rem 1.5rem; padding-block: 0.75rem; }
.brand { display: inline-flex; align-items: center; gap: 0.6rem; font-family: var(--font-display), serif; font-size: 1.4rem; font-weight: 600; text-decoration: none; }
.brand img { border-radius: 8px; }
.navLinks { display: flex; flex-wrap: wrap; align-items: center; gap: 0.25rem 1.1rem; font-size: 0.95rem; }
.navLinks a { text-decoration: none; display: inline-flex; align-items: center; min-height: 44px; }
.navLinks a:hover { color: var(--pale-gold); }
.navLinks .navCta { color: var(--pale-gold); font-weight: 600; }

/* Cosmic intro: the star field stays still while the emblem turns as the visitor scrolls.
   The section is taller than the screen and its stage is sticky, so the turn plays out before the page moves on.
   --scroll (0 to 1) comes from the ScrollProgress motion block and stays 0 under reduced motion. */
.cosmos { --scroll: 0; position: relative; height: 170svh; }
.stage {
  position: sticky; top: 0; height: 100svh; overflow: hidden;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: clamp(1.5rem, 4svh, 2.5rem);
  padding-bottom: clamp(2rem, 8svh, 5rem);
}
/* Fixed night sky behind every page. Depth layers drift against the pointer
   (--px/--py from the PointerParallax motion block; 0 on touch screens). */
.backdrop { position: fixed; inset: 0; z-index: -1; overflow: hidden; background: #05040c; pointer-events: none; }
.nebula {
  position: absolute; inset: -6%;
  background:
    radial-gradient(circle at 50% 50%, rgba(255, 196, 92, 0.22), transparent 32%),
    radial-gradient(ellipse 45% 55% at 12% 30%, rgba(196, 38, 46, 0.42), transparent 70%),
    radial-gradient(ellipse 35% 40% at 22% 78%, rgba(20, 140, 96, 0.30), transparent 70%),
    radial-gradient(ellipse 40% 50% at 88% 25%, rgba(30, 150, 110, 0.38), transparent 70%),
    radial-gradient(ellipse 35% 45% at 85% 75%, rgba(214, 120, 150, 0.28), transparent 70%),
    radial-gradient(ellipse 60% 40% at 50% 0%, rgba(84, 58, 160, 0.35), transparent 70%),
    #05040c;
  transform: translate(calc(var(--px, 0) * -10px), calc(var(--py, 0) * -10px));
}
.stars { position: absolute; inset: 0; width: 100%; height: 100%; }
.layerFar { transform: translate(calc(var(--px, 0) * -6px), calc(var(--py, 0) * -6px)); }
.layerMid { transform: translate(calc(var(--px, 0) * -16px), calc(var(--py, 0) * -16px)); }
.layerNear { transform: translate(calc(var(--px, 0) * -30px), calc(var(--py, 0) * -30px)); }

/* Shooting stars: a short streak crosses the sky every few seconds. */
.meteor {
  position: absolute; top: 12%; left: 70%; width: 160px; height: 2px; border-radius: 2px; opacity: 0;
  background: linear-gradient(90deg, rgba(255, 243, 214, 0.95), transparent);
  transform: rotate(-35deg);
  animation: meteor 9s linear infinite;
}
.meteor:nth-of-type(2) { top: 30%; left: 92%; animation-delay: 3.2s; animation-duration: 11s; }
.meteor:nth-of-type(3) { top: 5%; left: 40%; animation-delay: 6.5s; animation-duration: 13s; width: 110px; }
@keyframes meteor {
  0% { opacity: 0; transform: rotate(-35deg) translateX(0); }
  2% { opacity: 1; }
  9% { opacity: 0; transform: rotate(-35deg) translateX(-520px); }
  100% { opacity: 0; transform: rotate(-35deg) translateX(-520px); }
}
.twinkle { animation: twinkle 4s ease-in-out infinite; transform-box: fill-box; transform-origin: center; }
@keyframes twinkle { 0%, 100% { opacity: 0.25; transform: scale(0.7); } 50% { opacity: 1; transform: scale(1.3); } }

/* The emblem sits in .core; rays and orbits are centred on it and may spill past the screen edges. */
.core {
  --size: min(40svh, 52vw, 340px); position: relative; width: var(--size); aspect-ratio: 1;
  margin-block: calc(var(--size) * 0.3);
  transform: perspective(1000px) rotateX(calc(var(--py, 0) * -10deg)) rotateY(calc(var(--px, 0) * 10deg));
}
.rays, .orbit { position: absolute; left: 50%; top: 50%; border-radius: 50%; pointer-events: none; }
.rays {
  width: calc(var(--size) * 3); aspect-ratio: 1;
  background: repeating-conic-gradient(from 0deg, rgba(255, 214, 140, 0.16) 0deg 2deg, transparent 2deg 15deg);
  mask: radial-gradient(circle, #000 18%, transparent 68%);
  transform: translate(-50%, -50%) rotate(calc(var(--scroll) * -140deg)) scale(calc(0.9 + var(--scroll) * 0.35));
  opacity: calc(0.65 + var(--scroll) * 0.35);
}
.orbit {
  width: calc(var(--size) * 1.45); aspect-ratio: 1;
  border: 1px dashed rgba(243, 217, 164, 0.35);
  transform: translate(-50%, -50%) rotate(calc(var(--scroll) * 220deg)) scale(calc(1 + var(--scroll) * 0.2));
}
.orbit::after {
  content: ''; position: absolute; top: -5px; left: 50%; width: 10px; height: 10px; margin-left: -5px; border-radius: 50%;
  background: #f3d9a4; box-shadow: 0 0 12px 3px rgba(243, 217, 164, 0.8);
}
.orbitOuter {
  width: calc(var(--size) * 2.05); border-style: solid; border-color: rgba(243, 217, 164, 0.12);
  transform: translate(-50%, -50%) rotate(calc(var(--scroll) * -160deg + 140deg)) scale(calc(1 + var(--scroll) * 0.15));
}
.orbitOuter::after { width: 6px; height: 6px; top: -3px; margin-left: -3px; background: #cfe3ff; box-shadow: 0 0 10px 2px rgba(207, 227, 255, 0.8); }

.emblem {
  position: relative; width: 100%; height: 100%; border-radius: 50%;
  box-shadow: 0 0 40px 8px rgba(255, 200, 100, 0.35), 0 0 120px 30px rgba(255, 170, 60, 0.15);
  animation: halo 5s ease-in-out infinite;
  overflow: hidden;
  transform: scale(calc(1 + var(--scroll) * 0.12));
}
.emblem img { display: block; width: 100%; height: auto; transition: filter 0.4s ease; }

/* Grow the tree. As the visitor scrolls, the tree lights up from the roots to the leaves (--grow),
   after the gold ring has drawn itself round on load (--ring); when it is whole, the infinity knot glows (--knot).
   Three copies of one image, masked differently. Reduced motion shows the finished emblem. */
@property --ring { syntax: '<number>'; inherits: true; initial-value: 0; }
.emblem {
  --grow: clamp(0.24, calc(0.24 + var(--scroll) * 1.1), 1.15);
  --knot: clamp(0, calc((var(--scroll) - 0.72) * 3.5), 1);
  animation: halo 5s ease-in-out infinite, drawRing 1.8s cubic-bezier(0.6, 0, 0.3, 1) 0.2s both;
}
@keyframes drawRing { from { --ring: 0; } to { --ring: 1; } }
.emblemSky {
  filter: brightness(0.32) saturate(0.7);
  mask: radial-gradient(circle closest-side, #000 92.6%, transparent 93.2%);
}
.emblemTree, .emblemRing { position: absolute; inset: 0; }
.emblemTree {
  mask: radial-gradient(circle closest-side, #000 92.6%, transparent 93.2%),
    linear-gradient(to top, #000 calc(var(--grow) * 100% - 12%), transparent calc(var(--grow) * 100%));
  mask-composite: intersect; -webkit-mask-composite: source-in;
}
.emblemRing {
  mask: radial-gradient(circle closest-side, transparent 92.4%, #000 93%),
    conic-gradient(#000 calc(var(--ring) * 360deg), transparent 0);
  mask-composite: intersect; -webkit-mask-composite: source-in;
}
/* A line of gold light rides the growing edge, fading out once the tree reaches the top. */
.growEdge {
  position: absolute; left: 4%; right: 4%; height: 3px; bottom: calc(var(--grow) * 100% - 7%); pointer-events: none;
  background: radial-gradient(ellipse at center, rgb(255 236 180 / 95%), rgb(255 200 110 / 40%) 45%, transparent 70%);
  filter: blur(1px); opacity: calc((1.05 - var(--grow)) * 4);
}
.knotGlow {
  position: absolute; left: 50%; top: 59%; width: 34%; aspect-ratio: 2; translate: -50% -50%; border-radius: 50%; pointer-events: none;
  background: radial-gradient(ellipse, rgb(255 230 160 / 85%), rgb(255 190 90 / 35%) 40%, transparent 70%);
  mix-blend-mode: screen; opacity: var(--knot); scale: calc(0.6 + var(--knot) * 0.4);
  animation: knotPulse 2.4s ease-in-out infinite;
}
@keyframes knotPulse { 50% { filter: brightness(1.35); } }
.core:hover .emblem img { filter: brightness(1.12) saturate(1.15); }
/* A band of light crosses the gold as the visitor scrolls, then again on hover. */
.emblem::after {
  content: ''; position: absolute; inset: -20%; pointer-events: none; mix-blend-mode: screen;
  background: linear-gradient(115deg, transparent 44%, rgb(255 240 200 / 32%) 50%, transparent 56%);
  transform: translateX(calc(-70% + var(--scroll) * 140%));
}

/* Zodiac wheel: turns one sign per step of scrolling; the pointer at the top marks the current sign. */
.wheel {
  position: absolute; left: 50%; top: 50%; width: min(calc(var(--size) * 1.7), 96vw); height: auto; aspect-ratio: 1;
  transform: translate(-50%, -50%); overflow: visible; pointer-events: none;
}
.wheelTurn { transform: rotate(calc(var(--scroll) * -330deg)); }
.wheelLine { fill: none; stroke: rgb(243 217 164 / 60%); stroke-width: 0.6; }
.wheelLineFaint { fill: none; stroke: rgb(243 217 164 / 28%); stroke-width: 0.4; }
.wheelPointer { fill: #f3d9a4; filter: drop-shadow(0 0 3px rgb(255 210 120 / 90%)); }
.sign, .signActive { transition: opacity 0.4s ease; }
.sign { opacity: 0.5; }
.signGlyph, .signName { text-anchor: middle; dominant-baseline: middle; fill: #f3d9a4; }
.signGlyph { font-size: 10px; font-family: 'Apple Symbols', 'Segoe UI Symbol', 'Noto Sans Symbols', serif; }
.signName { font-size: 3.6px; letter-spacing: 0.6px; font-family: var(--font-body), system-ui, sans-serif; font-weight: 600; }
.signActive { opacity: 1; filter: drop-shadow(0 0 2.5px rgb(255 200 110 / 95%)); }
.signActive .signGlyph { fill: #fff3d6; }
@keyframes halo {
  0%, 100% { box-shadow: 0 0 40px 8px rgba(255, 200, 100, 0.35), 0 0 120px 30px rgba(255, 170, 60, 0.15); }
  50% { box-shadow: 0 0 60px 14px rgba(255, 210, 120, 0.55), 0 0 160px 50px rgba(255, 170, 60, 0.25); }
}

.cosmosName {
  position: relative; text-align: center;
  font-family: var(--font-display), Georgia, serif; font-size: clamp(1.8rem, 5vw, 3rem); font-weight: 600;
  letter-spacing: 0.18em; text-transform: uppercase;
  background: linear-gradient(180deg, #fff3d6, #e0ad5c 60%, #b8792e); -webkit-background-clip: text; background-clip: text; color: transparent;
  filter: drop-shadow(0 2px 12px rgba(255, 180, 80, 0.35));
  transform: translateY(calc(var(--scroll) * 24px));
}

/* ---- Section skies: planets and constellations behind the content ---- */
.sky { position: absolute; inset: 0; overflow: hidden; pointer-events: none; }
.sky ~ * { position: relative; z-index: 1; }

.planet { position: absolute; width: var(--size); height: var(--size); animation: planetFloat 9s ease-in-out infinite; }
.planet:nth-child(2n) { animation-duration: 12s; animation-delay: -4s; }
.planetBody {
  position: absolute; inset: 0; border-radius: 50%; overflow: hidden;
  background: var(--surface-bands) 0 0 / 200% 100%;
  box-shadow: inset calc(var(--size) * -0.18) calc(var(--size) * -0.1) calc(var(--size) * 0.28) rgb(0 0 0 / 75%),
    inset calc(var(--size) * 0.05) calc(var(--size) * 0.04) calc(var(--size) * 0.12) rgb(255 255 255 / 25%),
    0 0 calc(var(--size) * 0.4) var(--glow);
  animation: planetSpin 40s linear infinite;
}
/* Ring drawn in two halves so the planet sits inside it. */
.ringBack, .ringFront {
  position: absolute; left: -45%; right: -45%; top: 50%; height: 34%; margin-top: -17%; border-radius: 50%;
  border: calc(var(--size) * 0.06) solid rgb(232 200 140 / 70%); transform: rotate(-18deg);
}
.ringBack { clip-path: inset(0 0 50% 0); opacity: 0.55; }
.ringFront { clip-path: inset(50% 0 0 0); }
.planet_saturn { --surface-bands: repeating-linear-gradient(170deg, #e8c98c 0 9%, #c99a55 9% 16%, #f1dcae 16% 24%, #b07d42 24% 30%); --glow: rgb(232 200 140 / 30%); }
.planet_jupiter { --surface-bands: repeating-linear-gradient(175deg, #d9a77a 0 8%, #a8653f 8% 13%, #ecd2b0 13% 22%, #8f5236 22% 26%, #d6b08a 26% 34%); --glow: rgb(217 167 122 / 28%); }
.planet_mars { --surface-bands: radial-gradient(circle at 30% 40%, #e2734a 0 12%, transparent 13%), radial-gradient(circle at 70% 65%, #7c2d1a 0 9%, transparent 10%), repeating-linear-gradient(160deg, #c4502d 0 12%, #a03c22 12% 20%, #d8663b 20% 30%); --glow: rgb(214 90 50 / 35%); }
.planet_neptune { --surface-bands: repeating-linear-gradient(172deg, #3f7fd8 0 10%, #2b5fb8 10% 18%, #66a3ee 18% 25%, #2a4f9e 25% 33%); --glow: rgb(90 150 240 / 35%); }
.planet_venus { --surface-bands: repeating-linear-gradient(165deg, #f4e1b0 0 12%, #e2c27f 12% 22%, #fff0c8 22% 30%); --glow: rgb(255 230 170 / 45%); }
.planet_moon { --surface-bands: radial-gradient(circle at 30% 35%, #9a96a0 0 9%, transparent 10%), radial-gradient(circle at 65% 60%, #8d8994 0 12%, transparent 13%), radial-gradient(circle at 55% 25%, #a5a1ab 0 6%, transparent 7%), linear-gradient(#d9d5dd, #c9c5ce); --glow: rgb(240 236 250 / 30%); }
@keyframes planetSpin { to { background-position: -200% 0; } }
@keyframes planetFloat { 0%, 100% { transform: translate(0, 0); } 50% { transform: translate(6px, -14px); } }

.constellation { position: absolute; overflow: visible; opacity: 0.8; }
.constellation path { fill: none; stroke: rgb(243 217 164 / 45%); stroke-width: 0.4; stroke-dasharray: 1; stroke-dashoffset: 1; animation: drawLine 10s ease-in-out infinite; }
.constellation circle { fill: #fff3d6; filter: drop-shadow(0 0 2px #f3d9a4); animation: twinkleStar 3s ease-in-out infinite; transform-box: fill-box; transform-origin: center; }
@keyframes drawLine { 0% { stroke-dashoffset: 1; } 40%, 70% { stroke-dashoffset: 0; } 100% { stroke-dashoffset: -1; } }
@keyframes twinkleStar { 0%, 100% { opacity: 0.5; transform: scale(0.8); } 50% { opacity: 1; transform: scale(1.25); } }

@media (max-width: 760px) {
  .planet { scale: 0.7; }
  .constellation { opacity: 0.45; }
}

@media (prefers-reduced-motion: reduce) {
  .planet, .planetBody, .constellation circle { animation: none; }
  .constellation path { animation: none; stroke-dashoffset: 0; }
}

@media (prefers-reduced-motion: reduce) {
  .cosmos { height: 100svh; }
  .emblem { --grow: 1.15; --knot: 1; --ring: 1; }
  .growEdge { display: none; }
  .twinkle, .emblem, .knotGlow, .meteor, .planFeatured, .band, .phoneDone .phoneTick { animation: none; }
  .meteor { display: none; }
}

.hero { position: relative; overflow: clip; color: var(--moon); padding-block: clamp(3rem, 8vw, 6rem); }
.heroGrid { display: grid; grid-template-columns: 1.3fr 1fr; gap: 3rem; align-items: center; }
.heroPhone { display: flex; justify-content: center; }
.lead { font-size: 1.15rem; margin-top: 1rem; max-width: 40rem; }
.hero .lead { color: var(--moon-soft); }
.actions { display: flex; flex-wrap: wrap; gap: 0.75rem; margin-top: 1.75rem; }
.primary, .secondary { display: inline-flex; align-items: center; min-height: 48px; padding: 0.6rem 1.4rem; border-radius: 999px; font-weight: 600; text-decoration: none; }
.primary { background: var(--pale-gold); color: var(--indigo); }
.primary:hover { background: var(--moon); }
.hero .primary, .band .primary { background: var(--pale-gold); color: var(--indigo); }
.hero .primary:hover, .band .primary:hover { background: var(--moon); }
.secondary { border: 1px solid var(--moon-soft); color: var(--moon); }
.fineprint { margin-top: 1rem; font-size: 0.9rem; color: var(--moon-soft); }

.phone { width: min(280px, 100%); transition: box-shadow 0.5s ease; padding: 1.5rem 1.25rem; border-radius: 32px; background: var(--sandalwood); color: var(--indigo); border: 6px solid var(--indigo-raised); box-shadow: 0 24px 60px rgb(0 0 0 / 35%); }
.phoneEyebrow { font-size: 0.8rem; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: var(--terracotta); }
.phoneTitle { font-family: var(--font-display), serif; font-size: 1.7rem; font-weight: 600; margin-bottom: 0.75rem; }
.phoneList li { border-top: 1px solid var(--sandalwood-deep); }
.phoneList button {
  display: flex; align-items: center; gap: 0.6rem; width: 100%; min-height: 44px; padding: 0.4rem 0;
  background: none; border: 0; font: inherit; font-size: 0.92rem; color: inherit; text-align: left; cursor: pointer;
}
.phoneList button:hover .phoneTick { box-shadow: 0 0 0 4px rgb(122 52 32 / 15%); }
.phoneDone { color: var(--ink-soft); }
.phoneDone .phoneTick { animation: tickPop 0.35s ease; }
@keyframes tickPop { 0% { transform: scale(0.6); } 60% { transform: scale(1.25); } 100% { transform: scale(1); } }
.phoneBar { height: 6px; margin-bottom: 0.5rem; border-radius: 3px; background: var(--sandalwood-deep); overflow: hidden; }
.phoneBar span { display: block; height: 100%; border-radius: 3px; background: linear-gradient(90deg, var(--terracotta), #c9842f); transition: width 0.4s ease; }
.phoneComplete { box-shadow: 0 24px 60px rgb(0 0 0 / 35%), 0 0 0 3px var(--pale-gold), 0 0 50px rgb(243 217 164 / 55%); }
.phoneTick { transition: box-shadow 0.2s ease, background 0.2s ease; display: inline-grid; place-items: center; flex: none; width: 22px; height: 22px; border-radius: 50%; border: 1.5px solid var(--terracotta); color: var(--moon); font-size: 0.75rem; }
.phoneDone .phoneTick { background: var(--terracotta); }
.phoneMoon { margin-top: 0.75rem; padding: 0.6rem 0.75rem; border-radius: 12px; background: var(--indigo); color: var(--pale-gold); font-size: 0.85rem; }

.section, .sectionAlt { position: relative; overflow: clip; padding-block: clamp(2.5rem, 6vw, 4.5rem); }
.sectionAlt { background: linear-gradient(180deg, transparent, rgb(84 58 160 / 12%) 30%, rgb(84 58 160 / 12%) 70%, transparent); }
.pageHeader { position: relative; overflow: clip; color: var(--moon); padding-block: clamp(3rem, 8vw, 5.5rem); }
.pageHeader .lead { color: var(--moon-soft); }
.pageHeader a { color: var(--pale-gold); }

.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 1rem; }
.card { position: relative; height: 100%; padding: 1.4rem; border-radius: 16px; background: rgb(18 16 38 / 62%); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); border: 1px solid rgb(243 217 164 / 14%); transition: border-color 0.3s ease, box-shadow 0.3s ease; }
.card:hover { border-color: rgb(243 217 164 / 45%); box-shadow: 0 14px 40px rgb(0 0 0 / 40%), 0 0 30px rgb(224 173 92 / 15%); }
.cardNumber {
  display: inline-grid; place-items: center; width: 2.2rem; height: 2.2rem; margin-bottom: 0.8rem; border-radius: 50%;
  font-family: var(--font-display), serif; font-weight: 600; font-size: 1.1rem; color: var(--moon);
  background: radial-gradient(circle at 30% 30%, #c9842f, var(--terracotta));
  box-shadow: 0 0 0 4px rgb(201 132 47 / 18%);
}
.card p { color: var(--moon-soft); }

.plans { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 1rem; }
.plan, .planFeatured { position: relative; height: 100%; padding: 1.4rem; border-radius: 16px; background: rgb(18 16 38 / 62%); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); border: 2px solid rgb(243 217 164 / 14%); transition: border-color 0.3s ease, box-shadow 0.3s ease; }
.plan:hover { border-color: rgb(243 217 164 / 45%); box-shadow: 0 14px 40px rgb(0 0 0 / 40%); }
/* Featured plan: a gold light runs round its border. */
@property --spin { syntax: '<angle>'; inherits: false; initial-value: 0deg; }
.planFeatured {
  border-color: transparent;
  background: linear-gradient(#141230, #141230) padding-box,
    conic-gradient(from var(--spin), #6b4a1c, #f3d9a4, #6b4a1c 40%, #6b4a1c) border-box;
  animation: spinBorder 4s linear infinite;
  box-shadow: 0 14px 40px rgb(0 0 0 / 40%), 0 0 40px rgb(224 173 92 / 18%);
}
@keyframes spinBorder { to { --spin: 360deg; } }
.planPrice { font-family: var(--font-display), serif; font-size: 2.3rem; font-weight: 600; color: var(--pale-gold); line-height: 1.2; }
.planRituals { margin-top: 0.5rem; color: var(--moon-soft); font-size: 0.95rem; }
.includesTitle { margin-top: 1.75rem; font-weight: 600; }
.includes { margin-block: 0.5rem 1.5rem; }
.includes li { padding-left: 1.4rem; position: relative; margin-bottom: 0.35rem; }
.includes li::before { content: '✓'; position: absolute; left: 0; color: var(--pale-gold); font-weight: 700; }
.note { margin-top: 1rem; font-size: 0.9rem; color: var(--moon-soft); }
.note a, .section a:not([class]) { color: var(--pale-gold); }

.band {
  position: relative; overflow: clip; color: var(--moon); padding-block: 4.5rem; text-align: center;
  background: linear-gradient(115deg, rgb(106 44 26 / 80%), rgb(122 52 32 / 75%) 40%, rgb(84 58 160 / 60%) 60%, rgb(122 52 32 / 75%));
  background-size: 250% 100%; animation: bandSheen 10s ease-in-out infinite alternate;
}
@keyframes bandSheen { from { background-position: 0% 0; } to { background-position: 100% 0; } }
.zodiac { position: relative; background: rgb(8 7 20 / 70%); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); color: var(--pale-gold); padding-block: 0.9rem; font-family: var(--font-display), serif; font-size: 1.15rem; letter-spacing: 0.06em; border-block: 1px solid rgb(243 217 164 / 18%); }

.faq { padding-block: 0.75rem; border-bottom: 1px solid rgb(243 217 164 / 18%); }
.faq summary { min-height: 44px; display: flex; align-items: center; font-weight: 600; cursor: pointer; }
.faq p { color: var(--moon-soft); }

.footer { position: relative; background: rgb(8 7 20 / 82%); border-top: 1px solid rgb(243 217 164 / 12%); color: var(--moon-soft); padding-block: 2.5rem 1.5rem; font-size: 0.92rem; }
.footerGrid { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 2rem; }
.footerBrand { font-family: var(--font-display), serif; font-size: 1.4rem; font-weight: 600; color: var(--moon); }
.footer li a { display: inline-flex; align-items: center; min-height: 44px; text-decoration: none; }
.footer li a:hover { color: var(--pale-gold); }
.disclaimer { margin-top: 1.5rem; font-size: 0.85rem; }
.copyright { margin-top: 0.75rem; font-size: 0.85rem; }

@media (max-width: 760px) {
  .heroGrid, .footerGrid { grid-template-columns: 1fr; }
}
