:root {
  --bg-deep: #04050b;
  --bg-cosmic: #131832;
  --gold: #e8c97a;
  --gold-soft: rgba(232, 201, 122, 0.34);
  --orb-core: #fffdf4;
  --cool: #ebeefa;
  --cream: #f4f0e6;
  --ink-dim: rgba(244, 240, 230, 0.46);
  --ink-faint: rgba(244, 240, 230, 0.28);
  --hair: rgba(232, 201, 122, 0.16);
  --font-display: "Fraunces", Georgia, "Times New Roman", serif;
  --font-ui: "Inter", system-ui, -apple-system, sans-serif;
}

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

html { -webkit-text-size-adjust: 100%; }

body {
  font-family: var(--font-ui);
  color: var(--cream);
  background: var(--bg-deep);
  min-height: 100vh;
  min-height: 100svh;
  overflow-x: hidden;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

/* Cosmic backdrop: radial glow from top-center down to deep night */
.sky {
  position: fixed;
  inset: 0;
  z-index: -2;
  background: radial-gradient(120% 90% at 50% -10%, var(--bg-cosmic) 0%, var(--bg-deep) 62%);
}
#stars {
  position: fixed;
  inset: 0;
  z-index: -1;
  display: block;
}

/* ---- Shell ---- */
.wrap { width: min(1080px, 100% - 2.5rem); margin-inline: auto; }

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.6rem 0;
}
.wordmark {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 1.15rem;
  letter-spacing: 0.02em;
  color: var(--cream);
  text-decoration: none;
}
.wordmark::first-letter { color: var(--gold); }
.nav-link {
  font-size: 0.72rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--ink-dim);
  text-decoration: none;
  transition: color 0.25s ease;
}
.nav-link:hover, .nav-link:focus-visible { color: var(--gold); }
.nav-right { display: flex; align-items: center; gap: 1.35rem; }
.lang {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  font-size: 0.68rem;
  letter-spacing: 0.16em;
}
.lang button {
  background: none;
  border: none;
  padding: 0;
  margin: 0;
  cursor: pointer;
  font: inherit;
  letter-spacing: inherit;
  text-transform: uppercase;
  color: var(--ink-faint);
  transition: color 0.2s ease;
}
.lang button[aria-pressed="true"] { color: var(--gold); }
.lang button:hover, .lang button:focus-visible { color: var(--cream); }
.lang .sep { color: var(--ink-faint); }

/* ---- Hero ---- */
.hero {
  min-height: calc(100svh - 5.4rem);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 1rem 0 3rem;
}
.eyebrow {
  font-size: 0.7rem;
  letter-spacing: 0.42em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 2.4rem;
  padding-left: 0.42em;
}

/* ---- Orb ---- */
.orb-stage {
  position: relative;
  width: 220px;
  height: 220px;
  display: grid;
  place-items: center;
  touch-action: none;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}
.orb-ring {
  position: absolute;
  inset: 0;
  transform: rotate(-90deg);
  overflow: visible;
}
.orb-ring .track { fill: none; stroke: rgba(255,255,255,0.07); stroke-width: 1; }
.orb-ring .arc {
  fill: none;
  stroke: var(--gold);
  stroke-width: 2;
  stroke-linecap: round;
  transition: stroke-dashoffset 0.08s linear;
}
.orb {
  width: 74px;
  height: 74px;
  border-radius: 50%;
  background: radial-gradient(circle at 50% 50%, var(--orb-core) 0%, var(--gold) 44%, rgba(232,201,122,0) 72%);
  box-shadow: 0 0 34px 6px var(--gold-soft);
  transform: scale(var(--charge, 1));
  transition: transform 0.12s ease-out, box-shadow 0.12s ease-out;
  will-change: transform;
}
.orb-hint {
  position: absolute;
  bottom: -2.4rem;
  font-size: 0.62rem;
  letter-spacing: 0.4em;
  text-transform: uppercase;
  color: var(--ink-dim);
  white-space: nowrap;
  transition: opacity 0.25s ease;
}

/* ---- Revealed quote ---- */
.reveal {
  min-height: 8.5rem;
  margin-top: 4.2rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  max-width: 40rem;
}
.quote {
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 400;
  font-size: clamp(1.5rem, 4.6vw, 2.35rem);
  line-height: 1.34;
  color: var(--cream);
  opacity: 0;
  transform: translateY(10px);
  transition: opacity 0.7s ease, transform 0.7s cubic-bezier(0.2, 0.8, 0.2, 1);
}
.quote.show { opacity: 1; transform: none; }
.quote-rule {
  width: 40px;
  height: 1px;
  background: var(--gold);
  opacity: 0;
  margin: 1.5rem 0 1.15rem;
  transition: opacity 0.7s ease 0.1s;
}
.quote-rule.show { opacity: 0.6; }
.author {
  font-size: 0.72rem;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--ink-dim);
  opacity: 0;
  transition: opacity 0.7s ease 0.15s;
}
.author.show { opacity: 1; }

/* ---- Subhead + store ---- */
.subhead {
  margin-top: 3.4rem;
  font-size: 1.02rem;
  color: var(--ink-dim);
  max-width: 30rem;
}
.store {
  margin-top: 1.8rem;
  display: flex;
  gap: 0.75rem;
  align-items: center;
  flex-wrap: wrap;
  justify-content: center;
}
.badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.6rem 1.05rem;
  border: 1px solid var(--hair);
  border-radius: 999px;
  font-size: 0.78rem;
  color: var(--cream);
  background: rgba(255, 255, 255, 0.02);
}
.badge svg { width: 15px; height: 15px; fill: var(--cream); opacity: 0.85; }
.badge-note {
  font-size: 0.68rem;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--gold);
}

/* ---- Values band ---- */
.values {
  border-top: 1px solid var(--hair);
  padding: 4.5rem 0;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2.5rem;
}
.value h3 {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 1.2rem;
  color: var(--cream);
  margin-bottom: 0.5rem;
}
.value .num {
  display: block;
  font-size: 0.66rem;
  letter-spacing: 0.3em;
  color: var(--gold);
  margin-bottom: 0.9rem;
}
.value p { color: var(--ink-dim); font-size: 0.95rem; max-width: 22rem; }

/* ---- Footer ---- */
.foot {
  border-top: 1px solid var(--hair);
  padding: 2.2rem 0 3rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
  font-size: 0.8rem;
  color: var(--ink-faint);
}
.foot a { color: var(--ink-dim); text-decoration: none; }
.foot a:hover, .foot a:focus-visible { color: var(--gold); }
.foot .links { display: flex; gap: 1.4rem; }

/* ---- Reading page (privacy) ---- */
.reader { padding: 3rem 0 5rem; max-width: 42rem; }
.reader .kicker {
  font-size: 0.7rem;
  letter-spacing: 0.4em;
  text-transform: uppercase;
  color: var(--gold);
}
.reader h1 {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(2rem, 6vw, 2.9rem);
  margin: 1rem 0 0.4rem;
}
.reader .updated { color: var(--ink-faint); font-size: 0.85rem; margin-bottom: 2.6rem; }
.reader h2 {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 1.3rem;
  color: var(--gold);
  margin: 2.2rem 0 0.6rem;
}
.reader p { color: rgba(244, 240, 230, 0.78); margin-bottom: 0.9rem; }
.reader a { color: var(--gold); }

/* ---- Motion / a11y ---- */
:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; border-radius: 4px; }

@media (prefers-reduced-motion: reduce) {
  * { animation-duration: 0.001ms !important; transition-duration: 0.001ms !important; }
}

@media (max-width: 720px) {
  .values { grid-template-columns: 1fr; gap: 2.2rem; }
  .foot { flex-direction: column; align-items: flex-start; }
}
