:root {
  --bg: #100f0c;
  --bg-deep: #080705;
  --royal: #4a3a1c;
  --violet: #d4af6e;
  --violet-soft: rgba(212, 175, 110, 0.5);
  --moon: #d8d0be;
  --ivory: #f4f1eb;
  --line: rgba(224, 216, 198, 0.12);
  --line-soft: rgba(224, 216, 198, 0.08);
  --serif: 'Cormorant Garamond', Georgia, serif;
  --sans: 'Inter', system-ui, sans-serif;
  --mono: 'JetBrains Mono', ui-monospace, monospace;
  --radius: 14px;
  --maxw: 1180px;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 90px;
}

body {
  background: var(--bg-deep);
  color: var(--ivory);
  font-family: var(--sans);
  font-weight: 300;
  font-size: 17px;
  overflow-x: hidden;
  line-height: 1.65;
  text-rendering: optimizeLegibility;
}

::selection {
  background: rgba(212, 175, 110, 0.4);
  color: #fff;
}

::-webkit-scrollbar {
  width: 10px;
  background: var(--bg-deep);
}
::-webkit-scrollbar-thumb {
  background: linear-gradient(180deg, var(--royal), var(--violet));
  border-radius: 10px;
}

/* ---------- Background layers ---------- */
#starfield {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: -3;
  display: block;
}

.vignette {
  position: fixed;
  inset: 0;
  z-index: -2;
  pointer-events: none;
  background:
    radial-gradient(ellipse at 50% -10%, rgba(74, 58, 28, 0.35), transparent 60%),
    radial-gradient(ellipse at 50% 110%, rgba(212, 175, 110, 0.18), transparent 55%),
    radial-gradient(ellipse at center, transparent 30%, rgba(8, 7, 5, 0.55) 80%, var(--bg-deep) 100%);
}

.grain {
  position: fixed;
  inset: 0;
  z-index: 60;
  pointer-events: none;
  opacity: 0.06;
  mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml;utf8,<svg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 1 0 0 0 0 1 0 0 0 0 1 0 0 0 0.6 0'/></filter><rect width='100%25' height='100%25' filter='url(%23n)'/></svg>");
}

/* Drifting aurora blobs — warmth + depth behind content */
.aurora {
  position: fixed;
  inset: -20%;
  z-index: -1;
  pointer-events: none;
  mix-blend-mode: screen;
  opacity: 0.55;
  background:
    radial-gradient(40% 50% at 20% 30%, rgba(212, 175, 110, 0.5), transparent 60%),
    radial-gradient(35% 45% at 80% 25%, rgba(198, 162, 100, 0.32), transparent 60%),
    radial-gradient(45% 55% at 65% 80%, rgba(74, 58, 28, 0.5), transparent 62%),
    radial-gradient(30% 40% at 30% 75%, rgba(120, 180, 255, 0.22), transparent 60%);
  background-repeat: no-repeat;
  filter: blur(40px);
  animation: aurora 26s ease-in-out infinite alternate;
}
@keyframes aurora {
  0%   { transform: translate3d(-3%, -2%, 0) scale(1); }
  50%  { transform: translate3d(4%, 3%, 0) scale(1.12); }
  100% { transform: translate3d(-2%, 4%, 0) scale(1.05); }
}

/* Scroll progress bar */
.scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  height: 3px;
  width: 0;
  z-index: 70;
  background: linear-gradient(90deg, var(--royal), var(--violet), #c6a264);
  box-shadow: 0 0 12px rgba(212, 175, 110, 0.7);
  transition: width 0.1s linear;
}

/* ---------- Typography ---------- */
.display {
  font-family: var(--serif);
  font-weight: 300;
  letter-spacing: -0.015em;
  line-height: 1.04;
  text-wrap: balance;
}
.italic { font-style: italic; }
.moon { color: var(--moon); }
/* Shimmering gradient on display headline accents */
.display .moon {
  background: linear-gradient(100deg, #d8d0be 10%, #ffffff 30%, #e0c68c 50%, #e6d2a0 65%, #d8d0be 90%);
  background-size: 220% auto;
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
  animation: shimmer 8s linear infinite;
}
@keyframes shimmer {
  to { background-position: 220% center; }
}
.dim { color: rgba(224, 216, 198, 0.5); }
.center { text-align: center; }
.center.lede { margin-left: auto; margin-right: auto; }

.eyebrow {
  font-family: var(--mono);
  font-weight: 400;
  text-transform: uppercase;
  letter-spacing: 0.34em;
  font-size: 11px;
  color: rgba(224, 216, 198, 0.55);
}

.lede {
  max-width: 56ch;
  font-family: var(--serif);
  font-weight: 300;
  font-size: clamp(1.2rem, 2.1vw, 1.6rem);
  line-height: 1.5;
  color: rgba(224, 216, 198, 0.82);
}

/* ---------- Buttons ---------- */
.btn-luxe {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 14px;
  padding: 17px 30px;
  font-family: var(--mono);
  font-weight: 400;
  font-size: 11px;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--ivory);
  text-decoration: none;
  border: 1px solid rgba(224, 216, 198, 0.25);
  background: rgba(18, 16, 12, 0.4);
  backdrop-filter: blur(10px);
  border-radius: 999px;
  transition: all 0.5s cubic-bezier(0.2, 0.8, 0.2, 1);
  cursor: pointer;
}
.btn-luxe:hover {
  border-color: rgba(212, 175, 110, 0.7);
  box-shadow: 0 0 50px rgba(212, 175, 110, 0.28);
  color: #fff;
  transform: translateY(-2px);
}
.btn-solid {
  background: linear-gradient(135deg, var(--royal), var(--violet));
  border-color: transparent;
  color: #fff;
}
.btn-solid:hover {
  box-shadow: 0 0 60px rgba(212, 175, 110, 0.5);
}

/* ---------- Nav ---------- */
#nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 18px clamp(20px, 4vw, 40px);
  backdrop-filter: blur(10px);
  background: linear-gradient(180deg, rgba(8, 7, 5, 0.72), rgba(8, 7, 5, 0.2) 70%, transparent);
  border-bottom: 1px solid transparent;
  transition: border-color 0.4s, background 0.4s;
}
#nav.scrolled {
  border-bottom-color: var(--line-soft);
  background: rgba(8, 7, 5, 0.85);
}
#nav .brand {
  font-family: var(--serif);
  font-style: italic;
  font-size: 21px;
  color: var(--ivory);
  text-decoration: none;
  letter-spacing: 0.01em;
  white-space: nowrap;
}
.nav-links {
  display: flex;
  gap: clamp(18px, 3vw, 34px);
  margin-left: auto;
}
.nav-links a {
  position: relative;
  font-family: var(--mono);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.22em;
  color: rgba(224, 216, 198, 0.6);
  text-decoration: none;
  padding: 4px 0;
  transition: color 0.3s;
}
.nav-links a::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: -2px;
  width: 0;
  height: 1px;
  background: var(--violet);
  transition: width 0.35s ease;
}
.nav-links a:hover,
.nav-links a.active {
  color: var(--ivory);
}
.nav-links a:hover::after,
.nav-links a.active::after {
  width: 100%;
}
.nav-cta {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  text-decoration: none;
  color: #fff;
  padding: 10px 20px;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--royal), var(--violet));
  white-space: nowrap;
  transition: box-shadow 0.4s, transform 0.4s;
}
.nav-cta:hover {
  box-shadow: 0 0 40px rgba(212, 175, 110, 0.5);
  transform: translateY(-1px);
}

/* ---------- Sections ---------- */
.section {
  position: relative;
  max-width: var(--maxw);
  margin: 0 auto;
  padding: clamp(110px, 16vh, 170px) clamp(24px, 5vw, 32px);
}
.section-head { max-width: 760px; }
.section-head.center { max-width: 720px; margin: 0 auto; }
.section-head .eyebrow { margin-bottom: 22px; }
.section h2 {
  font-size: clamp(2.4rem, 6vw, 4.6rem);
  margin-bottom: 22px;
}
.section-head .lede { margin-top: 0; }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 120px 24px 90px;
}
.hero h1 {
  font-size: clamp(3rem, 9vw, 8.5rem);
  margin: 26px 0 28px;
}
.hero .eyebrow { margin-bottom: 4px; }
.hero-sub {
  font-family: var(--serif);
  font-size: clamp(1.2rem, 2.4vw, 1.7rem);
  line-height: 1.5;
  max-width: 46ch;
  color: rgba(224, 216, 198, 0.82);
  margin: 0 auto 40px;
}
.hero-actions {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  justify-content: center;
  margin-bottom: 34px;
}
.hero-trust {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 16px;
  justify-content: center;
  align-items: center;
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: rgba(224, 216, 198, 0.42);
}
.scroll-cue {
  position: absolute;
  bottom: 30px;
  left: 50%;
  transform: translateX(-50%);
  text-align: center;
}
.scroll-line {
  width: 1px;
  height: 40px;
  margin: 12px auto 0;
  background: linear-gradient(180deg, rgba(224, 216, 198, 0.6), transparent);
  animation: bob 2.4s ease-in-out infinite;
}
@keyframes bob {
  0%, 100% { transform: translateY(0); opacity: 0.8; }
  50% { transform: translateY(8px); opacity: 0.3; }
}

/* ---------- Zodiac grid ---------- */
.zodiac-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
  gap: 14px;
  margin-top: 56px;
}
.zodiac-card {
  position: relative;
  background: linear-gradient(150deg, rgba(224, 216, 198, 0.06), rgba(74, 58, 28, 0.05));
  border: 1px solid var(--line-soft);
  border-radius: var(--radius);
  padding: 26px 16px 22px;
  text-align: center;
  cursor: pointer;
  transition: transform 0.4s cubic-bezier(0.2, 0.8, 0.2, 1), border-color 0.4s, box-shadow 0.4s;
}
.zodiac-card:hover,
.zodiac-card:focus-visible {
  border-color: rgba(212, 175, 110, 0.6);
  transform: translateY(-5px);
  box-shadow: 0 12px 40px rgba(212, 175, 110, 0.22);
  outline: none;
}
.zodiac-card .glyph {
  font-size: 32px;
  color: var(--moon);
  display: block;
  filter: drop-shadow(0 0 12px rgba(212, 175, 110, 0.5));
}
.zodiac-card .z-name {
  font-family: var(--serif);
  font-size: 19px;
  margin-top: 10px;
}
.zodiac-card .z-date {
  font-family: var(--mono);
  font-size: 9px;
  letter-spacing: 0.14em;
  color: rgba(224, 216, 198, 0.45);
  margin-top: 6px;
}
.zodiac-card .z-tap {
  position: absolute;
  top: 12px;
  right: 12px;
  font-family: var(--mono);
  font-size: 8px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--violet);
  opacity: 0;
  transition: opacity 0.3s;
}
.zodiac-card:hover .z-tap { opacity: 1; }

/* ---------- Numerology ---------- */
.numerology { overflow: hidden; }
.big-number {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-family: var(--serif);
  font-size: min(56vw, 40rem);
  line-height: 0.8;
  color: var(--ivory);
  opacity: 0.07;
  pointer-events: none;
  user-select: none;
  transition: opacity 1.5s;
}
.numerology-inner {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: 1.15fr 1fr;
  gap: clamp(40px, 6vw, 72px);
  align-items: center;
}
.feature-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.feature-list li {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 18px 22px;
  background: linear-gradient(150deg, rgba(224, 216, 198, 0.1), rgba(74, 58, 28, 0.06));
  border: 1px solid var(--line);
  backdrop-filter: blur(14px);
  border-radius: var(--radius);
  cursor: pointer;
  transition: border-color 0.35s, transform 0.35s, box-shadow 0.35s;
}
.feature-list li:hover {
  border-color: rgba(212, 175, 110, 0.55);
  transform: translateX(6px);
  box-shadow: 0 10px 30px rgba(212, 175, 110, 0.16);
}
.feature-list .roman {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.3em;
  color: var(--violet);
  min-width: 22px;
}
.feature-list .f-title {
  flex: 1;
  font-family: var(--serif);
  font-size: 21px;
}
.feature-list .star {
  color: rgba(224, 216, 198, 0.4);
  transition: transform 0.35s, color 0.35s;
}
.feature-list li:hover .star {
  color: var(--violet);
  transform: rotate(90deg);
}
.feature-list .f-desc {
  flex-basis: 100%;
  font-family: var(--serif);
  font-style: italic;
  font-size: 16px;
  color: rgba(224, 216, 198, 0.7);
  max-height: 0;
  opacity: 0;
  overflow: hidden;
  transition: max-height 0.5s ease, opacity 0.5s ease, margin 0.5s ease;
}
.feature-list li.open .f-desc {
  max-height: 140px;
  opacity: 1;
  margin-top: 4px;
}
.feature-list li.open { flex-wrap: wrap; }
.feature-list li.open .star { color: var(--violet); transform: rotate(90deg); }

/* ---------- Oracle wheel ---------- */
.oracle { text-align: center; }
.oracle h2 { font-size: clamp(2.6rem, 7vw, 5.4rem); }
.wheel-stage {
  position: relative;
  width: min(82vw, 540px);
  aspect-ratio: 1;
  margin: 54px auto 0;
}
.wheel-glow {
  position: absolute;
  inset: -15%;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(212, 175, 110, 0.35) 0%, rgba(74, 58, 28, 0.18) 35%, transparent 70%);
  filter: blur(20px);
  animation: pulse 6s ease-in-out infinite;
}
@keyframes pulse {
  0%, 100% { opacity: 0.5; }
  50% { opacity: 0.85; }
}
.wheel {
  position: absolute;
  inset: 6%;
  border-radius: 50%;
  background: conic-gradient(from 0deg, #1c1810, #4a3a1c, #14110c, #4a3a1c, #1c1810, #4a3a1c, #14110c, #4a3a1c, #1c1810, #4a3a1c);
  box-shadow: 0 0 80px rgba(212, 175, 110, 0.45), inset 0 0 80px rgba(0, 0, 0, 0.6), inset 0 0 0 2px rgba(224, 216, 198, 0.25);
  transition: transform 5.2s cubic-bezier(0.18, 0.85, 0.18, 1);
}
.wheel svg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}
.wheel .seg {
  cursor: pointer;
  transition: opacity 0.25s;
}
.wheel .seg:hover { opacity: 1; }
.wheel .seg-fill {
  fill: rgba(212, 175, 110, 0);
  transition: fill 0.25s;
}
.wheel .seg:hover .seg-fill { fill: rgba(244, 241, 235, 0.12); }
.wheel-pointer {
  position: absolute;
  top: -2%;
  left: 50%;
  transform: translateX(-50%);
  width: 16px;
  height: 26px;
  background: linear-gradient(180deg, var(--ivory), var(--violet));
  clip-path: polygon(50% 100%, 0 0, 100% 0);
  filter: drop-shadow(0 0 10px var(--violet));
  z-index: 5;
}
.wheel-hub {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  width: 30%;
  height: 30%;
  border-radius: 50%;
  border: 1px solid rgba(224, 216, 198, 0.35);
  background: radial-gradient(circle, #1c1810 0%, var(--bg-deep) 70%);
  box-shadow: 0 0 50px rgba(212, 175, 110, 0.6), inset 0 0 30px rgba(0, 0, 0, 0.7);
  color: var(--ivory);
  font-family: var(--mono);
  font-size: 10px;
  line-height: 1.5;
  text-transform: uppercase;
  letter-spacing: 0.22em;
  cursor: pointer;
  z-index: 4;
  transition: box-shadow 0.4s, transform 0.3s;
}
.wheel-hub:hover {
  box-shadow: 0 0 70px rgba(212, 175, 110, 0.9), inset 0 0 30px rgba(0, 0, 0, 0.7);
  transform: translate(-50%, -50%) scale(1.04);
}
.wheel-hub:disabled { cursor: not-allowed; opacity: 0.7; }
.wheel-hint {
  margin-top: 26px;
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(224, 216, 198, 0.45);
}

.oracle-result {
  max-width: 580px;
  margin: 46px auto 0;
}
.oracle-result.show .card {
  opacity: 1;
  transform: translateY(0);
}
.oracle-result .card {
  text-align: left;
  padding: 38px;
  border-radius: var(--radius);
  background: linear-gradient(150deg, rgba(224, 216, 198, 0.1), rgba(74, 58, 28, 0.06));
  border: 1px solid var(--line);
  backdrop-filter: blur(20px);
  opacity: 0;
  transform: translateY(28px);
  transition: all 0.9s cubic-bezier(0.2, 0.8, 0.2, 1);
}
.oracle-result .symbol {
  font-size: 46px;
  color: var(--moon);
  filter: drop-shadow(0 0 18px var(--violet));
  margin-bottom: 14px;
}
.oracle-result h3 {
  font-family: var(--serif);
  font-weight: 300;
  font-size: clamp(1.8rem, 4vw, 2.4rem);
  text-transform: uppercase;
  letter-spacing: 0.01em;
  line-height: 1.1;
}
.oracle-result .copy {
  font-family: var(--serif);
  font-style: italic;
  font-size: clamp(1.2rem, 2.4vw, 1.45rem);
  line-height: 1.5;
  color: rgba(224, 216, 198, 0.9);
  margin-top: 16px;
}

/* ---------- Birth chart / calculator ---------- */
.chart-form {
  display: flex;
  flex-direction: column;
  gap: 22px;
  max-width: 580px;
  margin-top: 48px;
}
.field-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}
.chart-form label {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.chart-form label span {
  font-family: var(--mono);
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.22em;
  color: rgba(224, 216, 198, 0.6);
}
.chart-form label span em {
  font-style: normal;
  color: rgba(224, 216, 198, 0.35);
  letter-spacing: 0.16em;
}
.chart-form input {
  background: rgba(18, 16, 12, 0.5);
  border: 1px solid rgba(224, 216, 198, 0.2);
  border-radius: 10px;
  padding: 15px 16px;
  color: var(--ivory);
  font-family: var(--serif);
  font-size: 18px;
  outline: none;
  transition: border-color 0.3s, box-shadow 0.3s;
  color-scheme: dark;
  width: 100%;
}
.chart-form input:focus {
  border-color: var(--violet);
  box-shadow: 0 0 0 3px rgba(212, 175, 110, 0.15);
}
.chart-form .btn-luxe { align-self: flex-start; }

.chart-result { margin-top: 56px; }
.chart-result.show { animation: fadeUp 0.9s ease forwards; }
.result-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
  gap: 14px;
}
.result-card {
  padding: 26px 24px;
  border-radius: var(--radius);
  background: linear-gradient(150deg, rgba(224, 216, 198, 0.08), rgba(74, 58, 28, 0.05));
  border: 1px solid var(--line);
  backdrop-filter: blur(14px);
  transition: border-color 0.35s, transform 0.35s;
}
.result-card:hover {
  border-color: rgba(212, 175, 110, 0.4);
  transform: translateY(-3px);
}
.result-card .label {
  font-family: var(--mono);
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.22em;
  color: var(--violet);
}
.result-card .value {
  font-family: var(--serif);
  font-size: clamp(2.4rem, 5vw, 3.2rem);
  line-height: 1;
  margin: 12px 0 6px;
}
.result-card .sub {
  font-family: var(--serif);
  font-style: italic;
  font-size: 18px;
  color: rgba(224, 216, 198, 0.75);
}
.chart-reading {
  margin-top: 30px;
  padding: 32px 34px;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  background: linear-gradient(150deg, rgba(74, 58, 28, 0.1), rgba(18, 16, 12, 0.2));
}
.chart-reading p {
  font-family: var(--serif);
  font-size: clamp(1.2rem, 2.2vw, 1.45rem);
  line-height: 1.6;
  color: rgba(224, 216, 198, 0.9);
}
.chart-reading p + p { margin-top: 16px; }
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(24px); }
  to { opacity: 1; transform: translateY(0); }
}

/* ---------- Modal ---------- */
.modal {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.4s ease, visibility 0.4s;
}
.modal.open { opacity: 1; visibility: visible; }
.modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(6, 5, 4, 0.72);
  backdrop-filter: blur(8px);
}
.modal-card {
  position: relative;
  z-index: 1;
  width: min(92vw, 560px);
  max-height: 86vh;
  overflow-y: auto;
  padding: 46px 44px 40px;
  border-radius: 20px;
  border: 1px solid rgba(212, 175, 110, 0.3);
  background: linear-gradient(160deg, #16140f, #0b0a07);
  box-shadow: 0 30px 90px rgba(0, 0, 0, 0.7), 0 0 80px rgba(212, 175, 110, 0.18);
  transform: translateY(20px) scale(0.98);
  transition: transform 0.45s cubic-bezier(0.2, 0.8, 0.2, 1);
}
.modal.open .modal-card { transform: translateY(0) scale(1); }
.modal-close {
  position: absolute;
  top: 18px;
  right: 18px;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.04);
  color: var(--moon);
  font-size: 13px;
  cursor: pointer;
  transition: all 0.3s;
}
.modal-close:hover {
  border-color: var(--violet);
  color: #fff;
  transform: rotate(90deg);
}
.modal-glyph {
  font-size: 54px;
  color: var(--moon);
  filter: drop-shadow(0 0 20px var(--violet));
  line-height: 1;
}
.modal-eyebrow {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.26em;
  text-transform: uppercase;
  color: var(--violet);
  margin-top: 18px;
}
.modal-title {
  font-family: var(--serif);
  font-weight: 300;
  font-size: clamp(2rem, 5vw, 2.8rem);
  line-height: 1.05;
  margin: 8px 0 6px;
}
.modal-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 16px 0 20px;
}
.modal-meta span {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--moon);
  padding: 6px 12px;
  border: 1px solid var(--line);
  border-radius: 999px;
}
.modal-body-text {
  font-family: var(--serif);
  font-size: clamp(1.15rem, 2.3vw, 1.38rem);
  line-height: 1.6;
  color: rgba(224, 216, 198, 0.9);
}
.modal-body-text + .modal-body-text { margin-top: 14px; }
.modal-quote {
  margin-top: 20px;
  padding-top: 20px;
  border-top: 1px solid var(--line-soft);
  font-family: var(--serif);
  font-style: italic;
  font-size: 1.1rem;
  color: rgba(224, 216, 198, 0.66);
}

/* ---------- Footer ---------- */
footer {
  text-align: center;
  padding: 100px 24px 80px;
  border-top: 1px solid var(--line-soft);
}
.footer-line {
  font-family: var(--serif);
  font-style: italic;
  font-size: clamp(1.3rem, 3vw, 1.6rem);
  color: var(--moon);
  margin: 18px 0 14px;
}
.footer-fine {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.24em;
  color: rgba(224, 216, 198, 0.4);
}

/* ---------- Hero rotating zodiac ring ---------- */
.hero-ring {
  position: absolute;
  left: 50%;
  top: 50%;
  width: min(125vw, 760px);
  aspect-ratio: 1;
  transform: translate(-50%, -50%);
  z-index: 0;
  pointer-events: none;
}
.hero > *:not(.hero-ring) { position: relative; z-index: 2; }
.ring-rot {
  position: absolute;
  inset: 0;
  animation: spin 120s linear infinite;
}
.ring-rot.inner { inset: 16%; animation-duration: 80s; animation-direction: reverse; opacity: 0.6; }
@keyframes spin { to { transform: rotate(360deg); } }
.ring-circle {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  border: 1px solid rgba(224, 216, 198, 0.1);
}
.ring-circle.dashed {
  inset: 8%;
  border-style: dashed;
  border-color: rgba(212, 175, 110, 0.16);
}
.hero-glyph {
  position: absolute;
  left: 50%;
  top: 0;
  width: 0;
  height: 50%;
  transform-origin: bottom center;
}
.hero-glyph i {
  position: absolute;
  top: -0.6em;
  left: 50%;
  transform: translateX(-50%);
  font-style: normal;
  font-size: clamp(16px, 2.4vw, 26px);
  color: rgba(224, 216, 198, 0.42);
  filter: drop-shadow(0 0 8px rgba(212, 175, 110, 0.45));
}
.hero-orb {
  position: absolute;
  left: 50%;
  top: 0;
  width: 12px;
  height: 12px;
  margin-left: -6px;
  margin-top: -6px;
  border-radius: 50%;
  background: radial-gradient(circle, #fff, var(--violet));
  box-shadow: 0 0 18px 4px rgba(212, 175, 110, 0.8);
}

/* ---------- Marquee ---------- */
.marquee {
  position: relative;
  overflow: hidden;
  padding: 22px 0;
  border-top: 1px solid var(--line-soft);
  border-bottom: 1px solid var(--line-soft);
  background: linear-gradient(90deg, rgba(212, 175, 110, 0.05), rgba(198, 162, 100, 0.04));
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
}
.marquee-track {
  display: flex;
  gap: 28px;
  width: max-content;
  animation: marquee 38s linear infinite;
}
.marquee:hover .marquee-track { animation-play-state: paused; }
.marquee span {
  font-family: var(--serif);
  font-style: italic;
  font-size: clamp(1.1rem, 2.6vw, 1.7rem);
  color: rgba(224, 216, 198, 0.6);
  white-space: nowrap;
}
.marquee span .dot { color: var(--violet); font-style: normal; margin: 0 4px; }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ---------- Card 3D tilt + cursor glow ---------- */
.zodiac-card {
  transform-style: preserve-3d;
  will-change: transform;
}
.zodiac-card::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: radial-gradient(180px circle at var(--mx, 50%) var(--my, 50%), rgba(212, 175, 110, 0.22), transparent 60%);
  opacity: 0;
  transition: opacity 0.3s;
  pointer-events: none;
}
.zodiac-card:hover::before { opacity: 1; }

/* ---------- Scroll reveal ---------- */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 1s ease, transform 1s cubic-bezier(0.2, 0.8, 0.2, 1);
}
.reveal.in {
  opacity: 1;
  transform: translateY(0);
}

/* ---------- Responsive ---------- */
@media (max-width: 860px) {
  /* The mobile menu hides via opacity/visibility (see the dropdown rules
     below), not display:none — so the burger can fade it open/closed. */
  .numerology-inner { grid-template-columns: 1fr; }
}
@media (max-width: 560px) {
  body { font-size: 16px; }
  .nav-cta { display: none; }
  .field-row { grid-template-columns: 1fr; }
  .modal-card { padding: 40px 26px 32px; }
  .hero-actions { width: 100%; }
  .hero-actions .btn-luxe { flex: 1; justify-content: center; }
}

@media (max-width: 560px) {
  .hero-ring { width: 150vw; opacity: 0.7; }
}

@media (prefers-reduced-motion: reduce) {
  *, .scroll-line, .wheel-glow, .aurora, .ring-rot, .marquee-track, .display .moon {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }
  .display .moon {
    -webkit-text-fill-color: var(--moon);
    color: var(--moon);
  }
  html { scroll-behavior: auto; }
}

/* =========================================================
   ARCHIVE BUILD — added components
   ========================================================= */

/* Botanical moonlight silhouettes behind everything */
.botanical {
  position: fixed;
  inset: 0;
  z-index: -4;
  pointer-events: none;
  opacity: 0.15;
  background:
    radial-gradient(70% 90% at -5% 100%, rgba(74, 58, 28, 0.12), transparent 55%),
    radial-gradient(60% 80% at 105% 0%, rgba(212, 175, 110, 0.09), transparent 55%);
  mix-blend-mode: screen;
}
.botanical::before,
.botanical::after {
  content: '';
  position: absolute;
  bottom: -40px;
  width: 360px;
  height: 70vh;
  max-height: 720px;
  opacity: 0.16;
  background: no-repeat center / contain
    url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 200 400'><g fill='none' stroke='%23d7d2e8' stroke-width='2' stroke-linecap='round'><path d='M100 400V120'/><path d='M100 180c-40-6-62 12-78 54 42 0 64-14 78-54Z'/><path d='M100 240c40-6 62 12 78 54-42 0-64-14-78-54Z'/><path d='M100 130c-30-4-46 10-58 40 30 0 48-10 58-40Z'/><path d='M100 300c30-4 46 10 58 40-30 0-48-10-58-40Z'/></g></svg>");
  filter: blur(0.4px);
}
.botanical::before { left: -90px; transform: scaleX(-1); }
.botanical::after { right: -90px; }

/* Mobile nav burger */
.nav-burger {
  display: none;
  flex-direction: column;
  gap: 5px;
  width: 40px;
  height: 40px;
  align-items: center;
  justify-content: center;
  background: none;
  border: 1px solid var(--line);
  border-radius: 10px;
  cursor: pointer;
}
.nav-burger span {
  width: 18px; height: 1.5px; background: var(--moon);
  transition: transform 0.3s, opacity 0.3s;
}
.nav-burger.open span:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
.nav-burger.open span:nth-child(2) { opacity: 0; }
.nav-burger.open span:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }

/* Ornate frame for glyphs (reusable) */
.framed {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  position: relative;
  width: 1.9em;
  height: 1.9em;
  border-radius: 50%;
  border: 1px solid rgba(224, 216, 198, 0.3);
  box-shadow: inset 0 0 0 4px rgba(18, 16, 12, 0.6), inset 0 0 0 5px rgba(224, 216, 198, 0.14),
    0 0 26px rgba(212, 175, 110, 0.28);
  background: radial-gradient(circle at 50% 35%, rgba(212, 175, 110, 0.18), rgba(18, 16, 12, 0.5));
}
.framed::after {
  content: '';
  position: absolute;
  inset: -7px;
  border-radius: 50%;
  border: 1px dashed rgba(224, 198, 140, 0.3);
}

/* Section divider flourish at top of each section */
.section + .section::before {
  content: '✦';
  position: absolute;
  top: 0;
  left: 50%;
  transform: translate(-50%, -50%);
  font-size: 13px;
  color: rgba(224, 198, 140, 0.5);
  background: var(--bg-deep);
  padding: 0 14px;
  text-shadow: 0 0 14px rgba(212, 175, 110, 0.6);
}
.section { border-top: 1px solid var(--line-soft); }
#hero, .hero { border-top: none; }

.fine-note, .symbol-empty {
  margin-top: 28px;
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(224, 216, 198, 0.4);
}
.symbol-empty { font-family: var(--serif); text-transform: none; letter-spacing: 0; font-size: 16px; font-style: italic; }

.card-read {
  display: inline-block;
  margin-top: 14px;
  font-family: var(--mono);
  font-size: 9px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--violet);
  opacity: 0;
  transition: opacity 0.3s, transform 0.3s;
  transform: translateY(4px);
}
.tiltable:hover .card-read,
.symbol-card:hover .card-read,
.herb-card:hover .card-read { opacity: 1; transform: translateY(0); }

/* ---------- Mystic Archive grid ---------- */
.archive-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 18px;
  margin-top: 56px;
}
.archive-card {
  position: relative;
  display: block;
  text-decoration: none;
  color: var(--ivory);
  padding: 36px 32px 30px;
  border-radius: 18px;
  border: 1px solid var(--line);
  background: linear-gradient(155deg, rgba(224, 216, 198, 0.07), rgba(74, 58, 28, 0.06));
  backdrop-filter: blur(14px);
  overflow: hidden;
  transition: transform 0.45s cubic-bezier(0.2, 0.8, 0.2, 1), border-color 0.4s, box-shadow 0.4s;
  transform-style: preserve-3d;
}
.archive-card::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: radial-gradient(220px circle at var(--mx, 50%) var(--my, 50%), rgba(212, 175, 110, 0.22), transparent 60%);
  opacity: 0;
  transition: opacity 0.35s;
  pointer-events: none;
}
.archive-card:hover { border-color: rgba(212, 175, 110, 0.55); box-shadow: 0 18px 50px rgba(212, 175, 110, 0.22); }
.archive-card:hover::before { opacity: 1; }
.archive-icon {
  display: inline-flex;
  width: 54px; height: 54px;
  color: var(--moon);
  filter: drop-shadow(0 0 10px rgba(212, 175, 110, 0.5));
}
.archive-icon svg { width: 100%; height: 100%; }
.archive-card h3 {
  font-family: var(--serif);
  font-weight: 400;
  font-size: 1.7rem;
  margin: 18px 0 8px;
}
.archive-card p {
  font-family: var(--serif);
  font-size: 1.05rem;
  color: rgba(224, 216, 198, 0.72);
  line-height: 1.5;
}

/* ---------- Birthplace autocomplete ---------- */
.place-field { position: relative; }
.place-wrap { position: relative; }
.place-wrap input {
  background: rgba(12, 6, 20, 0.55);
  border: 1px solid;
  border-image: linear-gradient(120deg, rgba(224, 198, 140, 0.55), rgba(214, 184, 122, 0.5)) 1;
  border-radius: 10px;
  padding: 15px 16px;
  color: var(--ivory);
  font-family: var(--serif);
  font-size: 18px;
  width: 100%;
  outline: none;
  transition: box-shadow 0.3s, background 0.3s;
}
.place-wrap input:focus {
  background: rgba(18, 16, 12, 0.7);
  box-shadow: 0 0 0 3px rgba(212, 175, 110, 0.18), 0 0 30px rgba(212, 175, 110, 0.25);
}
.place-list {
  list-style: none;
  position: absolute;
  top: calc(100% + 6px);
  left: 0; right: 0;
  z-index: 20;
  max-height: 280px;
  overflow-y: auto;
  border-radius: 12px;
  border: 1px solid rgba(212, 175, 110, 0.32);
  background: linear-gradient(165deg, #15130e, #0b0a07);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.6), 0 0 40px rgba(212, 175, 110, 0.15);
  opacity: 0;
  visibility: hidden;
  transform: translateY(-6px);
  transition: opacity 0.2s, transform 0.2s, visibility 0.2s;
}
.place-list.show { opacity: 1; visibility: visible; transform: translateY(0); }
.place-list li {
  display: flex;
  align-items: baseline;
  gap: 10px;
  padding: 12px 16px;
  cursor: pointer;
  border-bottom: 1px solid var(--line-soft);
  transition: background 0.18s;
}
.place-list li:last-child { border-bottom: none; }
.place-list li:hover,
.place-list li.active { background: rgba(212, 175, 110, 0.18); }
.pl-city { font-family: var(--serif); font-size: 17px; color: var(--ivory); }
.pl-country { font-family: var(--sans); font-size: 12px; color: rgba(224, 216, 198, 0.55); }
.pl-coord { margin-left: auto; font-family: var(--mono); font-size: 10px; letter-spacing: 0.1em; color: var(--violet); }
.place-meta {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.1em;
  color: rgba(224, 198, 140, 0.85);
  max-height: 0;
  opacity: 0;
  overflow: hidden;
  transition: max-height 0.3s, opacity 0.3s, margin 0.3s;
}
.place-meta.show { max-height: 30px; opacity: 1; margin-top: 4px; }
.field-help {
  margin-top: 8px;
  font-family: var(--serif);
  font-style: italic;
  font-size: 15px;
  color: rgba(224, 216, 198, 0.55);
}
.dst-toggle {
  flex-direction: row !important;
  align-items: center;
  gap: 10px !important;
  margin-top: 12px;
  cursor: pointer;
}
.dst-toggle input { width: auto !important; accent-color: var(--violet); }
.dst-toggle span {
  font-family: var(--mono) !important;
  font-size: 10px !important;
  letter-spacing: 0.16em !important;
  text-transform: uppercase;
  color: rgba(224, 216, 198, 0.5) !important;
}

/* ---------- Reveal loading + signature ---------- */
.reveal-loading { text-align: center; padding: 40px 10px 20px; }
.reveal-constellation {
  width: min(90%, 360px);
  height: 100px;
  display: block;
  margin: 0 auto 18px;
}
.reveal-constellation polyline {
  fill: none;
  stroke: rgba(224, 198, 140, 0.8);
  stroke-width: 1.5;
  stroke-dasharray: 700;
  stroke-dashoffset: 700;
  animation: drawLine 1.8s ease forwards;
  filter: drop-shadow(0 0 6px rgba(212, 175, 110, 0.7));
}
.reveal-constellation circle {
  fill: #fff;
  opacity: 0;
  animation: popDot 1.8s ease forwards;
}
.reveal-constellation circle:nth-child(2) { animation-delay: 0.1s; }
.reveal-constellation circle:nth-child(3) { animation-delay: 0.3s; }
.reveal-constellation circle:nth-child(4) { animation-delay: 0.5s; }
.reveal-constellation circle:nth-child(5) { animation-delay: 0.7s; }
.reveal-constellation circle:nth-child(6) { animation-delay: 0.9s; }
.reveal-constellation circle:nth-child(7) { animation-delay: 1.1s; }
.reveal-constellation circle:nth-child(8) { animation-delay: 1.3s; }
@keyframes drawLine { to { stroke-dashoffset: 0; } }
@keyframes popDot { 0% { opacity: 0; } 60% { opacity: 1; } 100% { opacity: 0.85; } }
.reveal-text {
  font-family: var(--serif);
  font-style: italic;
  font-size: clamp(1.2rem, 3vw, 1.5rem);
  color: var(--moon);
  letter-spacing: 0.02em;
}
.reveal-text .dots::after {
  content: '';
  animation: dots 1.4s steps(4, end) infinite;
}
@keyframes dots {
  0% { content: ''; } 25% { content: '·'; } 50% { content: '··'; } 75% { content: '···'; }
}

.sig-title { font-size: clamp(2rem, 5vw, 3rem); text-align: center; margin-bottom: 30px; }
.sig-grid { position: relative; }
.sig-constellation {
  position: absolute;
  inset: 0;
  width: 100%; height: 100%;
  z-index: 0;
  pointer-events: none;
}
.sig-constellation polyline {
  fill: none;
  stroke: rgba(224, 198, 140, 0.28);
  stroke-width: 1;
  stroke-dasharray: 1600;
  stroke-dashoffset: 1600;
  animation: drawLine 2.4s ease forwards;
}
.sig-card {
  position: relative;
  z-index: 1;
  text-align: center;
  opacity: 0;
  animation: sigIn 0.7s cubic-bezier(0.2, 0.8, 0.2, 1) forwards;
}
.sig-card .value {
  filter: drop-shadow(0 0 12px rgba(212, 175, 110, 0.35));
}
.sig-name {
  font-family: var(--serif);
  font-size: 1.5rem;
  color: var(--ivory);
  margin-bottom: 4px;
}
.sig-card.glow {
  border-color: rgba(212, 175, 110, 0.4);
  box-shadow: 0 0 0 1px rgba(212, 175, 110, 0.18);
  animation: sigIn 0.7s cubic-bezier(0.2, 0.8, 0.2, 1) forwards, glowPulse 4.5s ease-in-out infinite 0.8s;
}
@keyframes sigIn { from { opacity: 0; transform: translateY(22px) scale(0.97); } to { opacity: 1; transform: translateY(0) scale(1); } }
@keyframes glowPulse {
  0%, 100% { box-shadow: 0 0 0 1px rgba(212, 175, 110, 0.16), 0 0 24px rgba(212, 175, 110, 0.12); }
  50% { box-shadow: 0 0 0 1px rgba(212, 175, 110, 0.4), 0 0 44px rgba(212, 175, 110, 0.32); }
}
.sig-reading { margin-top: 30px; }
.sig-actions { display: flex; gap: 14px; flex-wrap: wrap; justify-content: center; margin-top: 32px; }

/* ---------- Herbarium ---------- */
.herb-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 16px;
  margin-top: 52px;
}
.herb-card {
  position: relative;
  padding: 30px 24px 24px;
  border-radius: 16px;
  border: 1px solid var(--line-soft);
  background: linear-gradient(160deg, rgba(224, 216, 198, 0.06), rgba(40, 60, 45, 0.06));
  text-align: center;
  cursor: pointer;
  overflow: hidden;
  transition: transform 0.4s cubic-bezier(0.2, 0.8, 0.2, 1), border-color 0.4s, box-shadow 0.4s;
  transform-style: preserve-3d;
}
.herb-card::before {
  content: '';
  position: absolute; inset: 0; border-radius: inherit;
  background: radial-gradient(180px circle at var(--mx, 50%) var(--my, 50%), rgba(160, 210, 170, 0.16), transparent 60%);
  opacity: 0; transition: opacity 0.3s; pointer-events: none;
}
.herb-card:hover { border-color: rgba(160, 210, 170, 0.45); box-shadow: 0 14px 40px rgba(80, 140, 100, 0.18); }
.herb-card:hover::before { opacity: 1; }
.herb-leaf { display: inline-block; width: 46px; height: 46px; color: #b9d9c2; filter: drop-shadow(0 0 10px rgba(120, 190, 140, 0.4)); }
.herb-leaf svg { width: 100%; height: 100%; }
.herb-name { font-family: var(--serif); font-size: 1.5rem; margin: 12px 0 8px; }
.herb-tags { display: flex; gap: 8px; justify-content: center; margin-bottom: 10px; }
.herb-tags span {
  font-family: var(--mono); font-size: 9px; letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--moon); padding: 4px 10px; border: 1px solid var(--line); border-radius: 999px;
}
.herb-meaning { font-family: var(--serif); font-style: italic; font-size: 1rem; color: rgba(224, 216, 198, 0.7); }
.modal-glyph.botanical { color: #b9d9c2; }
.modal-glyph.botanical svg { width: 1em; height: 1em; }

/* ---------- Symbol Library ---------- */
.symbol-search { margin: 44px 0 8px; max-width: 520px; }
.symbol-search input {
  width: 100%;
  background: rgba(18, 16, 12, 0.5);
  border: 1px solid rgba(224, 216, 198, 0.2);
  border-radius: 999px;
  padding: 15px 22px;
  color: var(--ivory);
  font-family: var(--serif);
  font-size: 18px;
  outline: none;
  transition: border-color 0.3s, box-shadow 0.3s;
}
.symbol-search input:focus { border-color: var(--violet); box-shadow: 0 0 0 3px rgba(212, 175, 110, 0.15); }
.symbol-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  gap: 14px;
  margin-top: 28px;
}
.symbol-card {
  position: relative;
  padding: 40px 20px 26px;
  border-radius: 14px;
  border: 1px solid var(--line-soft);
  background: linear-gradient(150deg, rgba(224, 216, 198, 0.05), rgba(74, 58, 28, 0.06));
  text-align: center;
  cursor: pointer;
  overflow: hidden;
  transition: transform 0.4s cubic-bezier(0.2, 0.8, 0.2, 1), border-color 0.4s, box-shadow 0.4s;
  transform-style: preserve-3d;
}
.symbol-card::before {
  content: ''; position: absolute; inset: 0; border-radius: inherit;
  background: radial-gradient(160px circle at var(--mx, 50%) var(--my, 50%), rgba(212, 175, 110, 0.2), transparent 60%);
  opacity: 0; transition: opacity 0.3s; pointer-events: none;
}
.symbol-card:hover { border-color: rgba(212, 175, 110, 0.5); box-shadow: 0 12px 36px rgba(212, 175, 110, 0.2); }
.symbol-card:hover::before { opacity: 1; }
/* Typographic catalogue label — the name is the hero, marked by one gold seal. */
.symbol-seal {
  display: block;
  font-size: 13px;
  color: var(--violet);
  opacity: 0.85;
  margin-bottom: 14px;
  text-shadow: 0 0 12px rgba(212, 175, 110, 0.5);
}
.symbol-name {
  font-family: var(--serif);
  font-weight: 400;
  font-size: 1.62rem;
  line-height: 1.12;
  letter-spacing: 0.01em;
  color: var(--ivory);
  margin: 0;
}
.symbol-rule {
  display: block;
  width: 26px;
  height: 1px;
  margin: 13px auto;
  background: linear-gradient(90deg, transparent, rgba(212, 175, 110, 0.7), transparent);
}
.symbol-theme { margin-top: 0; }
/* The framed seal used in the symbol reading modal */
.modal-glyph.seal {
  font-size: 30px;
  color: var(--violet);
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

/* ---------- Dream Index ---------- */
.dream-stage { max-width: 640px; margin: 48px auto 0; text-align: center; }
.dream-input-row { display: flex; gap: 12px; flex-wrap: wrap; }
.dream-input-row input {
  flex: 1;
  min-width: 200px;
  background: rgba(18, 16, 12, 0.5);
  border: 1px solid rgba(224, 216, 198, 0.2);
  border-radius: 12px;
  padding: 16px 20px;
  color: var(--ivory);
  font-family: var(--serif);
  font-size: 18px;
  outline: none;
  transition: border-color 0.3s, box-shadow 0.3s;
}
.dream-input-row input:focus { border-color: var(--violet); box-shadow: 0 0 0 3px rgba(212, 175, 110, 0.15); }
.dream-input-row .btn-luxe { flex-shrink: 0; }
.dream-chips { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; margin-top: 18px; }
.chip {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(224, 216, 198, 0.7);
  padding: 8px 14px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: rgba(224, 216, 198, 0.04);
  cursor: pointer;
  transition: all 0.3s;
}
.chip:hover { border-color: var(--violet); color: #fff; transform: translateY(-2px); }
.dream-result { margin-top: 28px; }
.dream-result.show .dream-card { opacity: 1; transform: translateY(0); }
.dream-card {
  text-align: left;
  padding: 34px 36px;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  background: linear-gradient(150deg, rgba(74, 58, 28, 0.12), rgba(18, 16, 12, 0.3));
  backdrop-filter: blur(14px);
  opacity: 0;
  transform: translateY(20px);
  transition: all 0.8s cubic-bezier(0.2, 0.8, 0.2, 1);
}
.dream-text {
  font-family: var(--serif);
  font-size: clamp(1.2rem, 2.6vw, 1.5rem);
  line-height: 1.55;
  color: rgba(224, 216, 198, 0.92);
  margin-top: 12px;
}

/* ---------- Oracle Cabinet ---------- */
.cabinet-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  max-width: 560px;
  margin: 52px auto 0;
}
.drawer {
  aspect-ratio: 3 / 2;
  border-radius: 10px;
  border: 1px solid rgba(214, 184, 122, 0.35);
  background: linear-gradient(165deg, #16130d, #0c0b08);
  cursor: pointer;
  padding: 0;
  position: relative;
  overflow: hidden;
  transition: transform 0.4s cubic-bezier(0.2, 0.8, 0.2, 1), box-shadow 0.4s, border-color 0.4s;
}
.drawer-face {
  position: absolute; inset: 0;
  display: flex; align-items: center; justify-content: center;
  flex-direction: column; gap: 10px;
  transition: transform 0.4s;
}
.drawer-pull {
  width: 26px; height: 6px; border-radius: 3px;
  background: linear-gradient(90deg, rgba(214, 184, 122, 0.8), rgba(224, 198, 140, 0.7));
  box-shadow: 0 0 12px rgba(214, 184, 122, 0.5);
}
.drawer-no { font-family: var(--mono); font-size: 11px; letter-spacing: 0.2em; color: rgba(224, 216, 198, 0.45); }
.drawer:hover { transform: translateY(-3px); border-color: rgba(214, 184, 122, 0.7); box-shadow: 0 14px 36px rgba(212, 175, 110, 0.22); }
.drawer:hover .drawer-face { transform: translateY(3px); }
.drawer.open { border-color: var(--violet); box-shadow: 0 0 40px rgba(212, 175, 110, 0.45); }
.drawer.open .drawer-face { transform: translateY(8px); opacity: 0.5; }
.cabinet-card .cabinet-lines {
  display: flex; flex-wrap: wrap; gap: 10px 20px;
  margin-bottom: 18px;
}
.cabinet-lines span { font-family: var(--serif); font-size: 1.15rem; color: var(--ivory); }
.cabinet-lines em {
  display: block;
  font-family: var(--mono); font-style: normal;
  font-size: 9px; letter-spacing: 0.2em; text-transform: uppercase;
  color: var(--violet); margin-bottom: 2px;
}

/* ---------- Archetypes (flip cards) ---------- */
.archetype-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 16px;
  margin-top: 52px;
}
.arc-card {
  aspect-ratio: 3 / 4.2;
  background: none;
  border: none;
  padding: 0;
  cursor: pointer;
  perspective: 1200px;
}
.arc-inner {
  position: relative;
  width: 100%; height: 100%;
  transition: transform 0.8s cubic-bezier(0.2, 0.8, 0.2, 1);
  transform-style: preserve-3d;
}
.arc-card.flipped .arc-inner { transform: rotateY(180deg); }
.arc-face {
  position: absolute; inset: 0;
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
  border-radius: 16px;
  border: 1px solid rgba(214, 184, 122, 0.32);
  background: linear-gradient(165deg, #16140f, #0b0a07);
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  text-align: center;
  padding: 24px 18px;
  box-shadow: inset 0 0 0 4px rgba(18, 16, 12, 0.7), inset 0 0 0 5px rgba(214, 184, 122, 0.18);
  transition: box-shadow 0.4s;
}
.arc-card:hover .arc-front { box-shadow: inset 0 0 0 4px rgba(18, 16, 12, 0.7), inset 0 0 0 5px rgba(214, 184, 122, 0.35), 0 0 40px rgba(212, 175, 110, 0.3); }
.arc-frame {
  display: inline-flex; align-items: center; justify-content: center;
  width: 72px; height: 72px;
  font-size: 30px;
  color: var(--moon);
  border-radius: 50%;
  border: 1px solid rgba(214, 184, 122, 0.4);
  box-shadow: inset 0 0 18px rgba(212, 175, 110, 0.25), 0 0 22px rgba(212, 175, 110, 0.3);
  margin-bottom: 16px;
}
.arc-name { font-family: var(--serif); font-weight: 400; font-size: 1.5rem; }
.arc-name.small { font-size: 1.25rem; margin-bottom: 12px; }
.arc-front .card-read { position: absolute; bottom: 16px; left: 0; right: 0; opacity: 0.7; }
.arc-back {
  transform: rotateY(180deg);
  justify-content: flex-start;
  background: linear-gradient(165deg, #1c1812, #0b0a07);
}
.arc-desc { font-family: var(--serif); font-size: 1rem; line-height: 1.5; color: rgba(224, 216, 198, 0.88); }
.arc-shadow {
  margin-top: auto;
  font-family: var(--mono); font-size: 10px; letter-spacing: 0.06em;
  color: rgba(224, 198, 140, 0.8); line-height: 1.5;
}

/* ---------- The Pattern card ---------- */
.center-section { text-align: center; }
.pattern-card {
  max-width: 760px;
  margin: 12px auto 0;
  padding: clamp(46px, 8vw, 84px) clamp(28px, 6vw, 64px);
  border-radius: 24px;
  border: 1px solid rgba(214, 184, 122, 0.28);
  background: linear-gradient(160deg, rgba(224, 216, 198, 0.08), rgba(74, 58, 28, 0.08));
  backdrop-filter: blur(18px);
  box-shadow: 0 30px 90px rgba(0, 0, 0, 0.5), inset 0 0 60px rgba(212, 175, 110, 0.08);
}
.pattern-mark { font-size: 22px; color: rgba(224, 198, 140, 0.7); text-shadow: 0 0 16px rgba(212, 175, 110, 0.7); }
.pattern-line {
  font-family: var(--serif);
  font-weight: 300;
  font-size: clamp(1.7rem, 4.5vw, 3rem);
  line-height: 1.25;
  color: var(--ivory);
  margin: 22px 0;
  min-height: 2.4em;
  transition: opacity 0.7s ease, transform 0.7s ease;
}
.pattern-line.fading { opacity: 0; transform: translateY(10px); }
.pattern-sub {
  font-family: var(--mono); font-size: 10px; letter-spacing: 0.24em;
  text-transform: uppercase; color: rgba(224, 216, 198, 0.45);
}

/* ---------- Relationship Mirror ---------- */
.mirror-wrap {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: clamp(34px, 6vw, 70px);
  align-items: center;
  margin-top: 50px;
}
.meters { display: flex; flex-direction: column; gap: 26px; }
.meter-head {
  display: flex; justify-content: space-between; align-items: baseline;
  margin-bottom: 10px;
}
.meter-head span:first-child { font-family: var(--serif); font-size: 1.4rem; color: var(--ivory); }
.meter-head span:last-child {
  font-family: var(--mono); font-size: 10px; letter-spacing: 0.16em;
  text-transform: uppercase; color: rgba(224, 216, 198, 0.5);
}
.meter-track {
  height: 8px;
  border-radius: 999px;
  background: rgba(224, 216, 198, 0.1);
  overflow: hidden;
}
.meter-fill {
  height: 100%;
  width: 0;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--royal), var(--violet), #e6d2a0);
  box-shadow: 0 0 16px rgba(212, 175, 110, 0.6);
  transition: width 1.6s cubic-bezier(0.2, 0.8, 0.2, 1);
}
.mirror-insight {
  font-family: var(--serif);
  font-style: italic;
  font-size: clamp(1.3rem, 3vw, 1.9rem);
  line-height: 1.5;
  color: var(--moon);
}

/* ---------- Life Timeline ---------- */
.timeline {
  position: relative;
  display: flex;
  justify-content: space-between;
  gap: 16px;
  margin-top: 60px;
  padding-top: 30px;
  flex-wrap: wrap;
}
.timeline::before {
  content: '';
  position: absolute;
  top: 36px; left: 4%; right: 4%;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(224, 198, 140, 0.5), transparent);
}
.tl-point {
  flex: 1;
  min-width: 120px;
  background: none; border: none; cursor: pointer;
  display: flex; flex-direction: column; align-items: center; gap: 8px;
  padding: 0;
  text-align: center;
  opacity: 0;
  animation: sigIn 0.6s ease forwards;
  animation-delay: var(--d, 0s);
}
.tl-dot {
  width: 14px; height: 14px; border-radius: 50%;
  background: radial-gradient(circle, #fff, var(--violet));
  box-shadow: 0 0 16px 3px rgba(212, 175, 110, 0.7);
  margin-bottom: 8px;
  transition: transform 0.3s;
}
.tl-point:hover .tl-dot { transform: scale(1.4); }
.tl-name { font-family: var(--serif); font-size: 1.2rem; color: var(--ivory); transition: color 0.3s; }
.tl-point:hover .tl-name { color: #fff; }
.tl-age { font-family: var(--mono); font-size: 9px; letter-spacing: 0.14em; text-transform: uppercase; color: rgba(224, 216, 198, 0.45); }

/* ---------- Final CTA ---------- */
.final-cta { text-align: center; }
.cta-inner {
  max-width: 780px;
  margin: 0 auto;
  padding: clamp(50px, 9vw, 96px) clamp(28px, 6vw, 60px);
  border-radius: 26px;
  border: 1px solid rgba(214, 184, 122, 0.28);
  background: radial-gradient(circle at 50% 0%, rgba(212, 175, 110, 0.16), transparent 60%),
    linear-gradient(160deg, rgba(224, 216, 198, 0.06), rgba(18, 16, 12, 0.3));
  box-shadow: 0 30px 90px rgba(0, 0, 0, 0.5);
}
.cta-inner h2 { font-size: clamp(2.2rem, 6vw, 4rem); margin-bottom: 22px; }
.cta-inner .btn-luxe { margin-top: 34px; }

/* ---------- Responsive additions ---------- */
@media (max-width: 860px) {
  .nav-links {
    position: fixed;
    top: 64px; left: 0; right: 0;
    flex-direction: column;
    gap: 4px;
    margin-left: 0;
    padding: 16px 24px 24px;
    background: rgba(8, 7, 5, 0.96);
    backdrop-filter: blur(14px);
    border-bottom: 1px solid var(--line);
    transform: translateY(-12px);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s, transform 0.3s, visibility 0.3s;
  }
  .nav-links.open { opacity: 1; visibility: visible; transform: translateY(0); display: flex; }
  .nav-links a { padding: 12px 0; font-size: 13px; }
  .nav-burger { display: flex; }
  .nav-cta { display: none; }
  .mirror-wrap { grid-template-columns: 1fr; }
}
@media (max-width: 560px) {
  .cabinet-grid { grid-template-columns: repeat(2, 1fr); }
  .timeline { gap: 24px; }
  .timeline::before { display: none; }
  .tl-point { min-width: 45%; }
  .dream-input-row .btn-luxe { width: 100%; justify-content: center; }
}
@media (prefers-reduced-motion: reduce) {
  .reveal-constellation polyline, .reveal-constellation circle,
  .sig-constellation polyline, .sig-card, .tl-point { animation: none !important; opacity: 1 !important; }
  .sig-card { opacity: 1 !important; }
}

/* =========================================================
   CABINET OF WONDERS — evolution layer
   ========================================================= */

/* ---------- Atmosphere: drifting dust + sigils ---------- */
.dust { position: fixed; inset: 0; z-index: -2; pointer-events: none; }
.drifters { position: fixed; inset: 0; z-index: -2; pointer-events: none; overflow: hidden; }
.drifter {
  position: absolute;
  bottom: -8vh;
  color: rgba(214, 184, 122, 0.5);
  filter: drop-shadow(0 0 8px rgba(212, 175, 110, 0.4));
  animation-name: drift;
  animation-timing-function: linear;
  animation-fill-mode: forwards;
  will-change: transform, opacity;
  user-select: none;
}
@keyframes drift {
  0%   { transform: translateY(0) translateX(0) rotate(0deg); opacity: 0; }
  12%  { opacity: 0.5; }
  85%  { opacity: 0.38; }
  100% { transform: translateY(-114vh) translateX(var(--dx, 0)) rotate(36deg); opacity: 0; }
}

/* ---------- Catalogue marks shared by archive cards ---------- */
.herb-cat, .symbol-cat {
  position: absolute;
  top: 12px; left: 14px;
  font-family: var(--mono);
  font-size: 8px;
  letter-spacing: 0.2em;
  color: rgba(214, 184, 122, 0.6);
  pointer-events: none;
}

/* ---------- Herbarium specimen plates + drawer pull ---------- */
.herb-leaf { width: 42px; height: 68px; }
.herb-card { padding-top: 34px; }
.herb-card.opening { animation: drawerPull 0.28s ease; }
.herb-card.opening { box-shadow: 0 16px 44px rgba(120, 190, 140, 0.28), 0 0 30px rgba(212, 175, 110, 0.25); }
@keyframes drawerPull {
  0%   { transform: translateY(0); }
  45%  { transform: translateY(7px) scale(0.99); }
  100% { transform: translateY(0); }
}

/* Full-bleed background video bed — breaks out of the centered column
   to span the whole viewport width across the room. */
.has-bg-video { overflow: visible; }
.section-bg-video,
.section-bg-veil {
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 100vw;
  height: 100%;
  pointer-events: none;
}
.section-bg-video {
  object-fit: cover;
  z-index: 0;
  opacity: 0.6;
  filter: saturate(1.08) brightness(0.92);
}
/* The veil keeps text readable but lets the footage clearly through. */
.section-bg-veil {
  z-index: 1;
  background:
    radial-gradient(82% 72% at 50% 45%, rgba(8, 7, 5, 0.04), rgba(8, 7, 5, 0.4) 92%),
    linear-gradient(180deg, var(--bg-deep) 0%, rgba(8, 7, 5, 0.16) 22%, rgba(8, 7, 5, 0.16) 78%, var(--bg-deep) 100%);
}
.has-bg-video > *:not(.section-bg-video):not(.section-bg-veil) { position: relative; z-index: 2; }

/* ---------- Specimen sheet (herb modal) + shared fields ---------- */
.specimen { text-align: center; }
.specimen-plate {
  display: block;
  width: 66px; height: 108px;
  margin: 2px auto 8px;
  color: #b9d9c2;
  filter: drop-shadow(0 0 14px rgba(120, 190, 140, 0.35));
}
.specimen-plate svg { width: 100%; height: 100%; }
.specimen-cat {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: rgba(214, 184, 122, 0.8);
  margin-bottom: 6px;
}
.specimen .modal-title { margin-top: 2px; }
.specimen .modal-meta { justify-content: center; }
.specimen-fields {
  text-align: left;
  margin: 22px 0 4px;
  display: flex;
  flex-direction: column;
  gap: 18px;
}
.specimen-fields > div { display: block; }
.specimen-fields dt {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--violet);
  margin-bottom: 7px;
}
.specimen-fields dd {
  font-family: var(--serif);
  font-size: clamp(1.08rem, 2.1vw, 1.24rem);
  line-height: 1.6;
  color: rgba(244, 241, 235, 0.92);
}
.specimen-reflection { text-align: left; }

/* ---------- Symbol Library card refinements ---------- */
.symbol-theme {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(224, 198, 140, 0.85);
  margin-top: 2px;
}

/* ---------- Oracle Cabinet footnote ---------- */
.cabinet-foot {
  margin-top: 18px;
  font-family: var(--mono);
  font-size: 9px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(224, 216, 198, 0.4);
}

/* ---------- Archetype cards — readability pass ---------- */
.archetype-grid { grid-template-columns: repeat(auto-fill, minmax(265px, 1fr)); gap: 18px; }
.arc-card { aspect-ratio: auto; height: 420px; }
.arc-cat {
  position: absolute;
  top: 16px; left: 0; right: 0;
  text-align: center;
  font-family: var(--mono);
  font-size: 9px;
  letter-spacing: 0.24em;
  color: rgba(214, 184, 122, 0.7);
}
.arc-front .card-read { color: rgba(214, 184, 122, 0.85); }
.arc-frame { color: #ffffff; }
.arc-name { color: rgba(255, 255, 255, 0.95); }
.arc-back {
  justify-content: flex-start;
  padding: 30px 26px;
  background: linear-gradient(168deg, #1a1610, #0a0907);
  overflow-y: auto;
  scrollbar-width: none;
}
.arc-back::-webkit-scrollbar { width: 0; height: 0; }
.arc-name.small {
  color: rgba(255, 255, 255, 0.95);
  font-size: 1.35rem;
  text-align: center;
  width: 100%;
  margin: 0 0 18px;
}
.arc-fields {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 16px;
  text-align: left;
}
.arc-fields dt {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.8);
  margin-bottom: 7px;
}
.arc-fields dd {
  font-family: var(--serif);
  font-size: 1.06rem;
  line-height: 1.7;
  color: rgba(255, 255, 255, 0.72);
}

/* ---------- The Shelf ---------- */
.shelf-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 16px;
  margin-top: 52px;
}
.shelf-card {
  position: relative;
  padding: 30px 26px 24px 32px;
  border-radius: 14px;
  border: 1px solid var(--line-soft);
  background: linear-gradient(160deg, rgba(224, 216, 198, 0.05), rgba(42, 30, 18, 0.12));
  cursor: pointer;
  overflow: hidden;
  transition: transform 0.4s cubic-bezier(0.2, 0.8, 0.2, 1), border-color 0.4s, box-shadow 0.4s;
  transform-style: preserve-3d;
}
.shelf-card::before {
  content: '';
  position: absolute; inset: 0; border-radius: inherit;
  background: radial-gradient(200px circle at var(--mx, 50%) var(--my, 50%), rgba(214, 184, 122, 0.14), transparent 60%);
  opacity: 0; transition: opacity 0.35s; pointer-events: none;
}
.shelf-card:hover { border-color: rgba(214, 184, 122, 0.5); box-shadow: 0 16px 44px rgba(212, 175, 110, 0.18); }
.shelf-card:hover::before { opacity: 1; }
.shelf-spine {
  position: absolute; left: 0; top: 0; bottom: 0;
  width: 5px;
  background: linear-gradient(180deg, rgba(214, 184, 122, 0.8), rgba(212, 175, 110, 0.55));
}
.shelf-cat {
  position: absolute; top: 16px; right: 16px;
  font-family: var(--mono);
  font-size: 9px; letter-spacing: 0.2em;
  color: rgba(214, 184, 122, 0.7);
}
.shelf-title {
  font-family: var(--serif);
  font-weight: 400;
  font-size: 1.42rem;
  line-height: 1.16;
  margin: 4px 0 10px;
  padding-right: 44px;
}
.shelf-author {
  font-family: var(--mono);
  font-size: 10px; letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--moon);
}
.shelf-note {
  font-family: var(--serif);
  font-style: italic;
  font-size: 1.02rem;
  line-height: 1.5;
  color: rgba(224, 216, 198, 0.72);
  margin-top: 14px;
}
.shelf-modal-author {
  font-family: var(--mono);
  font-size: 11px; letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--moon);
  margin: 6px 0 2px;
}
.shelf-rooms-label {
  font-family: var(--mono);
  font-size: 10px; letter-spacing: 0.22em; text-transform: uppercase;
  color: var(--violet);
  margin-top: 22px;
}
.shelf-rooms { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 12px; }
.shelf-room {
  font-family: var(--mono);
  font-size: 10px; letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--moon);
  text-decoration: none;
  padding: 9px 15px;
  border: 1px solid var(--line);
  border-radius: 999px;
  transition: all 0.3s;
}
.shelf-room:hover { border-color: var(--violet); color: #fff; background: rgba(212, 175, 110, 0.16); }

@media (prefers-reduced-motion: reduce) {
  .drifter { display: none !important; }
  .herb-card.opening { animation: none !important; }
}

/* ---------- Room-to-room navigation (multi-page archive) ---------- */
.room-foot {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: clamp(40px, 7vh, 70px) clamp(24px, 5vw, 32px) 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}
.room-foot .btn-luxe { flex: 0 1 auto; }
.room-eyebrow {
  display: block;
  text-align: center;
  margin: 0 auto clamp(40px, 8vh, 80px);
  max-width: var(--maxw);
  padding: 0 clamp(24px, 5vw, 32px);
}
