/*
 * Landing page v2 ("Two lenses, one self"). Loaded by templates/landing.html
 * only; the admin and the other public flows have their own stylesheets.
 *
 * Palette is variables so the page can be re-tinted in one place. Body text is
 * off-white on near-black navy with a left-hand shade over the photograph, so
 * everything sits well above WCAG AA (4.5:1) for text.
 */

:root {
  --bg: #070813;
  --bg-2: #0d0f22;
  --gold: #e8c27a;
  --gold-hi: #f6dfa6;
  --gold-lo: #c9964a;
  --violet: #9b86ff;
  --green: #62d6a0;
  --text: #f4efe6;
  --text-dim: #d3cde0;
  --text-mute: #b3adc4;
  --line: rgba(244, 239, 230, 0.16);

  --font-serif: "Cormorant Garamond", "Playfair Display", Georgia, "Times New Roman", serif;
  --font-sans: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --gutter: clamp(16px, 5.2vw, 100px);
  --nav-h: 84px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { background: var(--bg); overflow-x: clip; scroll-behavior: smooth; }
body {
  min-height: 100vh;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.5;
  overflow-x: clip;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }
svg { display: block; }
:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; border-radius: 6px; }

.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0;
}
.skip-link {
  position: absolute; left: 12px; top: -48px; z-index: 50;
  background: var(--gold); color: #1a1408; padding: 0.55rem 0.9rem; border-radius: 8px;
  font-weight: 600;
}
.skip-link:focus { top: 12px; }

/* ---- background layers --------------------------------------------------- */
.bg { position: fixed; inset: 0; z-index: 0; background: var(--bg); }
.bg__img {
  width: 100%; height: 100%; object-fit: cover; object-position: 70% 50%;
  display: block;
}
.bg__shade {
  position: absolute; inset: 0;
  background:
    linear-gradient(90deg, rgba(5, 6, 16, 0.92) 0%, rgba(5, 6, 16, 0.74) 30%,
      rgba(5, 6, 16, 0.30) 58%, rgba(5, 6, 16, 0.04) 80%),
    linear-gradient(180deg, rgba(5, 6, 16, 0.55) 0%, rgba(5, 6, 16, 0) 22%,
      rgba(5, 6, 16, 0) 62%, rgba(5, 6, 16, 0.78) 100%);
}
#galaxy-canvas {
  position: fixed; inset: 0; width: 100%; height: 100%;
  z-index: 1; pointer-events: none; display: block;
  opacity: 0; transition: opacity 1.2s ease;
}
#galaxy-canvas.is-on { opacity: 0.85; }

/* ---- nav ---------------------------------------------------------------- */
.nav {
  position: relative; z-index: 20;
  display: flex; align-items: center; justify-content: space-between; gap: 1.5rem;
  height: var(--nav-h);
  padding: 0 var(--gutter);
}
.nav__brand { display: inline-flex; align-items: center; gap: 0.85rem; color: var(--gold); }
.nav__mark { width: 44px; height: 44px; flex: none; }
.nav__name {
  font-family: var(--font-serif); font-size: 1.15rem; font-weight: 500;
  letter-spacing: 0.34em; text-transform: uppercase; color: var(--text);
  white-space: nowrap;
}
.nav__links {
  position: absolute; left: 50%; transform: translateX(-50%);
  display: flex; align-items: center; gap: clamp(1.2rem, 2.6vw, 2.8rem);
  font-size: 0.95rem; font-weight: 500; color: var(--text-dim);
}
.nav__links a { position: relative; padding: 0.4rem 0; transition: color 0.2s; }
.nav__links a:hover { color: var(--text); }
.nav__links a.is-active { color: var(--text); }
.nav__links a.is-active::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -4px; height: 2px;
  background: linear-gradient(90deg, transparent, var(--gold), transparent);
}
.nav__admin { opacity: 0.65; font-size: 0.85rem; }
.nav__toggle { display: none; }

.pill-btn {
  display: inline-flex; align-items: center; gap: 0.6rem;
  padding: 0.6rem 1.15rem; border-radius: 999px;
  border: 1px solid rgba(244, 239, 230, 0.55); color: var(--text);
  font-size: 0.92rem; font-weight: 500;
  transition: background 0.2s, border-color 0.2s;
}
.pill-btn:hover { background: rgba(255, 255, 255, 0.08); border-color: var(--gold); }
.pill-btn__icon svg, .btn-gold__icon svg { width: 18px; height: 18px; }

/* ---- stage -------------------------------------------------------------- */
.stage { position: relative; z-index: 5; min-height: calc(100vh - var(--nav-h)); }
.stage__inner { position: relative; padding: 0 var(--gutter); max-width: 1500px; }
.hero { max-width: 700px; padding-top: clamp(0.4rem, 2.2vh, 2rem); }

.hero__eyebrow {
  font-size: 0.78rem; font-weight: 500; letter-spacing: 0.3em;
  text-transform: uppercase; color: var(--text-dim);
}
.hero__eyebrow span[aria-hidden] { margin: 0 0.35em; }
.hero__title {
  margin-top: clamp(0.5rem, 1.6vh, 1.1rem);
  font-family: var(--font-serif); font-weight: 500;
  font-size: clamp(3.3rem, 5.7vw, 6.4rem); line-height: 1;
  letter-spacing: -0.012em; color: #fbf6ec;
}
.hero__title em {
  font-style: italic; font-weight: 500;
  background: linear-gradient(180deg, var(--gold-hi), var(--gold) 55%, var(--gold-lo));
  -webkit-background-clip: text; background-clip: text; color: transparent;
  padding-right: 0.06em;
}
.hero__lede {
  margin-top: clamp(1.1rem, 2.6vh, 1.9rem); max-width: 34em;
  font-family: var(--font-serif); font-size: clamp(1.1rem, 1.35vw, 1.32rem);
  line-height: 1.45; color: var(--text);
}
.hero__ctas {
  margin-top: clamp(1.4rem, 3.2vh, 2.2rem);
  display: flex; align-items: center; gap: 1.6rem; flex-wrap: wrap;
}

.btn-gold {
  display: inline-flex; align-items: center; gap: 0.9rem;
  padding: 1.05rem 1.7rem 1.05rem 1.9rem; border-radius: 999px;
  background: linear-gradient(135deg, #f4dba0 0%, var(--gold) 45%, #cf9f55 100%);
  color: #1b1407; font-weight: 600; font-size: 1.05rem;
  box-shadow: 0 8px 30px rgba(232, 194, 122, 0.28), inset 0 1px 0 rgba(255, 255, 255, 0.5);
  transition: transform 0.2s, box-shadow 0.2s;
}
.btn-gold:hover { transform: translateY(-2px); box-shadow: 0 12px 38px rgba(232, 194, 122, 0.4), inset 0 1px 0 rgba(255, 255, 255, 0.5); }

.watch {
  display: inline-flex; align-items: center; gap: 0.9rem; cursor: pointer;
  background: none; border: 0; color: var(--text); font: inherit; font-weight: 500;
}
.watch__disc {
  width: 46px; height: 46px; border-radius: 50%; display: grid; place-items: center;
  border: 1.5px solid var(--gold); color: var(--gold); background: rgba(8, 9, 20, 0.5);
  transition: background 0.2s, transform 0.2s;
}
.watch__disc svg { width: 20px; height: 20px; margin-left: 2px; }
.watch:hover .watch__disc { background: rgba(232, 194, 122, 0.18); transform: scale(1.06); }

/* ---- glass cards -------------------------------------------------------- */
.cards {
  margin-top: clamp(1.2rem, 3vh, 2.2rem);
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(0.9rem, 1.6vw, 1.5rem);
  max-width: min(1020px, 63vw);
  scroll-margin-top: 1rem;
}
.glass-card {
  --tint: 232, 194, 122;
  position: relative; display: flex; flex-direction: column; gap: 0.7rem;
  min-height: 262px; padding: 1.05rem 1.2rem 1.05rem;
  border-radius: 16px; border: 1px solid rgba(var(--tint), 0.55);
  background:
    radial-gradient(120% 90% at 0% 0%, rgba(var(--tint), 0.16), transparent 60%),
    linear-gradient(165deg, rgba(var(--tint), 0.10), rgba(8, 9, 20, 0.62));
  -webkit-backdrop-filter: blur(14px) saturate(1.25); backdrop-filter: blur(14px) saturate(1.25);
  box-shadow: inset 0 0 44px rgba(var(--tint), 0.10), 0 14px 44px rgba(0, 0, 0, 0.4);
  transition: transform 0.28s ease, box-shadow 0.28s ease, border-color 0.28s ease;
}
.glass-card:hover, .glass-card:focus-visible {
  transform: translateY(-6px);
  border-color: rgba(var(--tint), 0.95);
  box-shadow: inset 0 0 56px rgba(var(--tint), 0.16), 0 22px 54px rgba(0, 0, 0, 0.5), 0 0 28px rgba(var(--tint), 0.18);
}
.glass-card--gold { --tint: 232, 194, 122; --accent: var(--gold); }
.glass-card--violet { --tint: 155, 134, 255; --accent: var(--violet); }
.glass-card--green { --tint: 98, 214, 160; --accent: var(--green); }

.glass-card__top { display: flex; align-items: center; justify-content: space-between; }
.glass-card__icon {
  width: 46px; height: 46px; border-radius: 50%; display: grid; place-items: center;
  border: 1.5px solid rgba(var(--tint), 0.8); color: var(--accent);
  background: rgba(var(--tint), 0.1);
}
.glass-card__icon svg { width: 24px; height: 24px; }
.glass-card__tag {
  padding: 0.28rem 0.85rem; border-radius: 999px;
  font-size: 0.68rem; font-weight: 600; letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--text-dim); background: rgba(8, 9, 20, 0.55);
  border: 1px solid rgba(var(--tint), 0.28);
}
.glass-card__title {
  margin-top: 0.4rem;
  font-family: var(--font-serif); font-weight: 500;
  font-size: clamp(1.45rem, 1.9vw, 1.8rem); line-height: 1.12; color: #fbf6ec;
}
.glass-card__copy { font-size: 0.92rem; line-height: 1.55; color: var(--text-dim); max-width: 22em; }
.glass-card__go {
  margin-top: auto; width: 40px; height: 40px; border-radius: 50%;
  display: grid; place-items: center; color: var(--accent);
  border: 1.5px solid rgba(var(--tint), 0.8);
  transition: background 0.25s, transform 0.25s;
}
.glass-card__go svg { width: 18px; height: 18px; }
.glass-card:hover .glass-card__go { background: rgba(var(--tint), 0.22); transform: translateX(3px); }

/* ---- bottom strip ------------------------------------------------------- */
.strip {
  position: relative; margin: clamp(1rem, 3vh, 2rem) var(--gutter) 0;
  padding: clamp(0.9rem, 2.2vh, 1.4rem) 0 clamp(1.1rem, 2.6vh, 1.8rem);
  border-top: 1px solid var(--line);
  display: grid; grid-template-columns: repeat(3, 1fr);
  scroll-margin-top: 1rem;
}
.strip__item {
  display: flex; align-items: center; justify-content: center; gap: 0.95rem;
  padding: 0.3rem 1rem; border-left: 1px solid var(--line);
}
.strip__item:first-child { border-left: 0; }
.strip__icon { color: var(--gold); flex: none; }
.strip__icon svg { width: 36px; height: 36px; }
.strip__item p { display: flex; flex-direction: column; gap: 0.1rem; }
.strip__item strong {
  font-family: var(--font-serif); font-weight: 600; font-size: 1.12rem; color: #fbf6ec;
}
.strip__item p span { font-size: 0.82rem; color: var(--text-mute); }

/* ---- zodiac wheel ------------------------------------------------------- */
.wheel {
  position: absolute; z-index: 0; pointer-events: none;
  top: -0.4rem; right: clamp(0.5rem, 2vw, 3rem);
  width: min(34vw, 600px); aspect-ratio: 660 / 740;
}
.wheel__svg { width: 100%; height: 100%; overflow: visible; }
.wheel__ring { fill: none; stroke: rgba(232, 194, 122, 0.6); stroke-width: 0.9; }
.wheel__ring--outer { stroke-width: 1.3; stroke: rgba(232, 194, 122, 0.78); }
.wheel__ring--dots { stroke-dasharray: 1 7; stroke-width: 2; stroke: rgba(232, 194, 122, 0.55); }
.wheel__ring--soft { stroke: rgba(232, 194, 122, 0.28); stroke-dasharray: 2 5; }
.wheel__ring--moon { stroke: rgba(240, 207, 140, 0.8); stroke-width: 1.2; }
.wheel__tick { stroke: rgba(232, 194, 122, 0.5); stroke-width: 0.8; }
.wheel__spoke { stroke: rgba(232, 194, 122, 0.55); stroke-width: 1; }
.wheel__cusp { stroke: rgba(232, 194, 122, 0.22); stroke-width: 0.8; }
.wheel__glyph {
  fill: var(--gold); font-size: 30px;
  font-family: "Noto Sans Symbols", "Segoe UI Symbol", "Apple Symbols", "DejaVu Sans", serif;
  font-variant-emoji: text;
}
.wheel__axis-line { stroke: rgba(232, 194, 122, 0.3); stroke-width: 1; stroke-dasharray: 1 9; }
.wheel__dot { fill: var(--gold); filter: drop-shadow(0 0 6px rgba(232, 194, 122, 0.85)); }
.wheel__planet { stroke: rgba(232, 194, 122, 0.5); stroke-width: 0.8; }
.wheel__crescent { filter: drop-shadow(0 0 10px rgba(240, 207, 140, 0.55)); }
.wheel__moonlet { filter: drop-shadow(0 0 6px rgba(232, 194, 122, 0.7)); }

.wheel__spin { transform-origin: 300px 300px; animation: wheel-spin 120s linear infinite; }
.wheel__spin .wheel__glyph {
  transform-box: fill-box; transform-origin: center;
  animation: wheel-spin 120s linear infinite reverse;
}
@keyframes wheel-spin { to { transform: rotate(360deg); } }

/* ---- modal -------------------------------------------------------------- */
.modal {
  border: 0; padding: 0; background: transparent; color: var(--text);
  width: min(640px, calc(100vw - 32px)); max-height: calc(100vh - 32px);
  margin: auto; overflow: visible;
}
.modal::backdrop { background: rgba(3, 4, 12, 0.78); -webkit-backdrop-filter: blur(4px); backdrop-filter: blur(4px); }
.modal__panel {
  position: relative; padding: 2rem 1.8rem 1.8rem; border-radius: 18px;
  background: linear-gradient(165deg, #171a35, #0c0e20);
  border: 1px solid rgba(232, 194, 122, 0.5);
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.6);
  max-height: calc(100vh - 32px); overflow-y: auto;
}
.modal__close {
  position: absolute; top: 12px; right: 12px; width: 40px; height: 40px;
  display: grid; place-items: center; border-radius: 50%; cursor: pointer;
  background: rgba(255, 255, 255, 0.06); border: 1px solid var(--line); color: var(--text);
}
.modal__close svg { width: 18px; height: 18px; }
.modal__close:hover { background: rgba(255, 255, 255, 0.14); }
.modal__title { font-family: var(--font-serif); font-weight: 500; font-size: 2rem; color: #fbf6ec; }
.modal__lede { color: var(--text-dim); margin-top: 0.2rem; }
.steps { list-style: none; margin: 1.3rem 0 1.4rem; display: grid; gap: 0.95rem; }
.steps li { display: flex; gap: 1rem; align-items: flex-start; }
.steps__n {
  flex: none; width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center;
  font-family: var(--font-serif); font-size: 1.15rem; color: var(--gold);
  border: 1.5px solid var(--gold); background: rgba(232, 194, 122, 0.08);
}
.steps strong { font-family: var(--font-serif); font-size: 1.25rem; font-weight: 600; color: #fbf6ec; }
.steps p { color: var(--text-dim); font-size: 0.95rem; }
.video-slot {
  display: grid; place-items: center; gap: 0.3rem; padding: 2rem 1rem; text-align: center;
  border-radius: 12px; border: 1px dashed rgba(232, 194, 122, 0.5);
  background: rgba(255, 255, 255, 0.03); color: var(--text-dim);
}
.video-slot svg { width: 34px; height: 34px; color: var(--gold); }

/* ---- tablet: the wheel retreats behind the headline ---------------------- */
@media (max-width: 1024px) {
  .wheel {
    top: -0.5rem; right: -16vw; width: min(96vw, 680px); opacity: 0.22;
  }
  .nav__links { gap: 1.1rem; font-size: 0.88rem; }
  .nav__name { letter-spacing: 0.22em; font-size: 1.02rem; }
  .cards { max-width: none; }
  .hero { max-width: 640px; }
  .bg__shade {
    background: linear-gradient(180deg, rgba(5, 6, 16, 0.8), rgba(5, 6, 16, 0.55) 40%, rgba(5, 6, 16, 0.85));
  }
}

/* ---- phone ---------------------------------------------------------------- */
@media (max-width: 640px) {
  :root { --nav-h: 68px; }
  .nav { padding: 0 16px; }
  .nav__mark { width: 36px; height: 36px; }
  .nav__name { font-size: 0.86rem; letter-spacing: 0.2em; }
  .nav__toggle {
    display: inline-grid; place-items: center; width: 44px; height: 44px; cursor: pointer;
    background: rgba(255, 255, 255, 0.06); border: 1px solid var(--line); border-radius: 12px; color: var(--text);
  }
  .nav__bars, .nav__bars::before, .nav__bars::after {
    display: block; width: 20px; height: 2px; background: currentColor; border-radius: 2px;
    content: ""; position: relative; transition: transform 0.2s, opacity 0.2s;
  }
  .nav__bars::before { position: absolute; top: -6px; left: 0; }
  .nav__bars::after { position: absolute; top: 6px; left: 0; }
  .nav__toggle[aria-expanded="true"] .nav__bars { background: transparent; }
  .nav__toggle[aria-expanded="true"] .nav__bars::before { transform: translateY(6px) rotate(45deg); }
  .nav__toggle[aria-expanded="true"] .nav__bars::after { transform: translateY(-6px) rotate(-45deg); }

  .nav__links {
    position: absolute; left: 16px; right: 16px; top: calc(var(--nav-h) - 4px); transform: none;
    flex-direction: column; align-items: stretch; gap: 0; padding: 0.4rem 1rem;
    border-radius: 14px; background: rgba(9, 10, 24, 0.97); border: 1px solid var(--line);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.55);
    visibility: hidden; opacity: 0; pointer-events: none;
    transition: opacity 0.18s, visibility 0.18s;
  }
  .nav__links[data-open] { visibility: visible; opacity: 1; pointer-events: auto; }
  .nav__links a { padding: 0.95rem 0.2rem; font-size: 1rem; border-bottom: 1px solid var(--line); }
  .nav__links a:last-child { border-bottom: 0; }
  .nav__links a.is-active::after { display: none; }
  .nav__signin { display: none; }

  .stage__inner { padding: 0 16px; }
  .strip { margin: 1.6rem 16px 0; grid-template-columns: 1fr; gap: 0.2rem; }
  .strip__item { border-left: 0; border-top: 1px solid var(--line); justify-content: flex-start; padding: 0.9rem 0.2rem; }
  .strip__item:first-child { border-top: 0; }

  .hero__title { font-size: clamp(3rem, 15vw, 4.4rem); }
  .hero__ctas { flex-direction: column; align-items: stretch; gap: 1.1rem; }
  .btn-gold { justify-content: center; }
  .watch { justify-content: center; }
  .cards { grid-template-columns: 1fr; }
  .glass-card { min-height: 0; }
  .wheel { right: -42vw; width: 140vw; top: 0.5rem; opacity: 0.16; }
}

/* ---- motion preferences ---------------------------------------------------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .wheel__spin, .wheel__spin .wheel__glyph { animation: none; }
  .glass-card, .btn-gold, .watch__disc, .glass-card__go { transition: none; }
  .glass-card:hover, .glass-card:focus-visible, .btn-gold:hover { transform: none; }
  #galaxy-canvas { display: none; }
}

/* Signed in, the nav pill is a sign-out <form> button: strip the browser's
   button chrome so it matches the "Sign In" link it replaces. */
button.pill-btn { background: transparent; font: inherit; font-size: 0.92rem; cursor: pointer; }
