/* Zodiac Traits — Dark Celestial Editorial & Nocturnal Fate Theater Design System */
:root {
  --bg-void: #060a14;
  --bg-night: #0b1120;
  --bg-card: rgba(14, 21, 38, 0.78);
  --bg-card-solid: #0f1629;
  --border-gold: rgba(216, 180, 106, 0.24);
  --border-gold-strong: rgba(216, 180, 106, 0.56);
  --border-subtle: rgba(157, 178, 206, 0.14);
  --gold: #d8b46a;
  --gold-soft: #ebd29b;
  --silver: #9db2ce;
  --text-main: #eef1f7;
  --text-muted: #98a6bd;
  --font-serif: 'Cormorant Garamond', Georgia, 'Times New Roman', serif;
  --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 20px;
  --shadow-deep: 0 24px 64px rgba(2, 5, 14, 0.72);
}

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

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: radial-gradient(ellipse at 50% -10%, #111c36 0%, var(--bg-void) 58%);
  background-color: var(--bg-void);
  color: var(--text-main);
  font-family: var(--font-sans);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* Delicate film-grain texture for tactile editorial warmth */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  opacity: 0.035;
  background-image: radial-gradient(rgba(255,255,255,0.6) 0.5px, transparent 0.5px);
  background-size: 24px 24px;
}

main, header, footer { position: relative; z-index: 1; }
main { flex: 1; }

a { color: var(--gold-soft); text-decoration: none; transition: color 0.2s ease, border-color 0.2s ease; }
a:hover { color: #fff; }

h1, h2, h3, h4, .serif {
  font-family: var(--font-serif);
  font-weight: 500;
  letter-spacing: 0.015em;
  line-height: 1.18;
  margin-top: 0;
}

.container {
  width: 100%;
  max-width: 1140px;
  margin: 0 auto;
  padding: 0 20px;
}
.container-narrow { max-width: 820px; margin: 0 auto; padding: 0 20px; }

/* --- Sky Ribbon --- */
.sky-ribbon {
  background: rgba(8, 13, 26, 0.92);
  border-bottom: 1px solid var(--border-subtle);
  font-size: 12px;
  color: var(--silver);
  padding: 7px 0;
}
.sky-ribbon-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  flex-wrap: wrap;
}
.sky-pill-group { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
.sky-badge {
  color: var(--gold-soft);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-size: 11px;
  font-weight: 500;
}

/* --- Header & Nav --- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  background: rgba(6, 10, 20, 0.82);
  border-bottom: 1px solid var(--border-gold);
}
.nav-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 68px;
  gap: 16px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--text-main);
}
.brand-mark {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  border: 1px solid var(--gold);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--gold);
  font-size: 14px;
  box-shadow: 0 0 18px rgba(216, 180, 106, 0.22);
}
.brand-text {
  font-family: var(--font-serif);
  font-size: 22px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.nav-links {
  display: flex;
  align-items: center;
  gap: 22px;
  flex-wrap: wrap;
}
.nav-links a {
  font-size: 13.5px;
  color: var(--silver);
  letter-spacing: 0.03em;
}
.nav-links a:hover, .nav-links a.active { color: var(--gold-soft); }
.nav-cta {
  padding: 8px 16px;
  border-radius: 999px;
  border: 1px solid var(--gold);
  background: rgba(216, 180, 106, 0.12);
  color: var(--gold-soft) !important;
  font-size: 13px !important;
  font-weight: 500;
}
.nav-cta:hover {
  background: var(--gold);
  color: #080c16 !important;
}

/* --- Buttons --- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 24px;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0.04em;
  cursor: pointer;
  border: 1px solid transparent;
  transition: transform 0.2s ease, background 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
  font-family: var(--font-sans);
}
.btn-gold {
  background: linear-gradient(135deg, #e5c681, #c39a4b);
  color: #090d17;
  box-shadow: 0 8px 28px rgba(216, 180, 106, 0.28);
}
.btn-gold:hover {
  transform: translateY(-1px);
  color: #090d17;
  box-shadow: 0 12px 34px rgba(216, 180, 106, 0.42);
}
.btn-outline {
  background: rgba(14, 21, 38, 0.65);
  border-color: var(--border-gold-strong);
  color: var(--gold-soft);
}
.btn-outline:hover {
  background: rgba(216, 180, 106, 0.14);
  color: #fff;
}
.btn-ghost {
  background: transparent;
  border-color: var(--border-subtle);
  color: var(--silver);
}
.btn-ghost:hover { border-color: var(--gold); color: var(--gold-soft); }

/* --- Cinematic Hero --- */
.hero {
  position: relative;
  overflow: hidden;
  padding: 88px 0 80px;
  border-bottom: 1px solid var(--border-gold);
}
.hero-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  opacity: 0.46;
  animation: kenBurnsSlow 26s ease-in-out infinite alternate;
}
.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(6,10,20,0.68) 0%, rgba(6,10,20,0.45) 45%, rgba(6,10,20,0.98) 100%);
}
.hero-content {
  position: relative;
  z-index: 2;
  max-width: 780px;
}
.eyebrow {
  font-size: 11.5px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 14px;
  display: inline-block;
}
.hero h1 {
  font-size: clamp(2.4rem, 5.2vw, 4.1rem);
  color: #f8f6f0;
  margin-bottom: 18px;
}
.hero-lead {
  font-size: 17px;
  color: #cbd5e6;
  max-width: 620px;
  margin-bottom: 28px;
}
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; align-items: center; }

/* Quick Question Bar on Hero */
.hero-question-form {
  margin-top: 28px;
  display: flex;
  gap: 10px;
  max-width: 620px;
  background: rgba(8, 13, 25, 0.82);
  border: 1px solid var(--border-gold);
  border-radius: 999px;
  padding: 6px 6px 6px 20px;
  backdrop-filter: blur(10px);
}
.hero-question-form input {
  flex: 1;
  background: transparent;
  border: none;
  color: #fff;
  font-size: 14.5px;
  outline: none;
  min-width: 0;
}
.hero-question-form input::placeholder { color: #7e8da8; }

/* --- Sections & Cards --- */
.section { padding: 64px 0; }
.section-tight { padding: 40px 0; }
.section-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 28px;
}
.section-head h2 { font-size: clamp(1.75rem, 3.2vw, 2.5rem); margin-bottom: 6px; }
.section-sub { color: var(--text-muted); margin: 0; max-width: 620px; }

.grid-3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 22px; }
.grid-2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 22px; }
.grid-4 { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.grid-6 { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 14px; }

.card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 24px;
  transition: border-color 0.25s ease, transform 0.25s ease, box-shadow 0.25s ease;
}
.card:hover {
  border-color: var(--border-gold);
  transform: translateY(-2px);
  box-shadow: 0 18px 42px rgba(2, 6, 16, 0.55);
}
.card-gold { border-color: var(--border-gold); }

.pillar-card {
  position: relative;
  overflow: hidden;
  padding: 0;
  display: flex;
  flex-direction: column;
}
.pillar-img {
  height: 180px;
  background-size: cover;
  background-position: center;
  position: relative;
}
.pillar-img::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(6,10,20,0.12) 0%, rgba(14,21,38,0.96) 100%);
}
.pillar-body { padding: 20px 24px 24px; flex: 1; display: flex; flex-direction: column; }
.pillar-body h3 { font-size: 1.55rem; margin-bottom: 8px; color: #f7f4ec; }
.pillar-body p { color: var(--text-muted); font-size: 14.5px; margin-bottom: 18px; flex: 1; }

/* Sign Selector Grid */
.sign-tile {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 18px 12px;
  border-radius: var(--radius-md);
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  color: var(--text-main);
  transition: all 0.22s ease;
}
.sign-tile:hover {
  border-color: var(--gold);
  background: rgba(216, 180, 106, 0.08);
  transform: translateY(-3px);
}
.sign-glyph {
  font-size: 28px;
  color: var(--gold);
  line-height: 1;
  margin-bottom: 8px;
}
.sign-name { font-family: var(--font-serif); font-size: 19px; color: #f6f3ec; }
.sign-dates { font-size: 11.5px; color: var(--text-muted); margin-top: 2px; }

/* --- Contextual Fate Theater Portal (The Scroll-Down Magic Hook!) --- */
.theater-portal {
  position: relative;
  margin: 44px 0 12px;
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--border-gold-strong);
  box-shadow: 0 24px 70px rgba(2, 6, 18, 0.8), 0 0 40px rgba(216, 180, 106, 0.12);
}
.theater-portal-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  opacity: 0.52;
  transition: transform 0.8s ease;
}
.theater-portal:hover .theater-portal-bg { transform: scale(1.04); }
.theater-portal::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(6,10,20,0.94) 0%, rgba(6,10,20,0.74) 55%, rgba(6,10,20,0.45) 100%);
}
.theater-portal-inner {
  position: relative;
  z-index: 2;
  padding: 42px 38px;
  max-width: 680px;
}
.portal-tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--gold-soft);
  padding: 5px 12px;
  border-radius: 999px;
  border: 1px solid var(--border-gold);
  background: rgba(6, 10, 20, 0.72);
  margin-bottom: 14px;
}
.theater-portal h2 {
  font-size: clamp(1.7rem, 3.3vw, 2.45rem);
  color: #faf7f0;
  margin-bottom: 12px;
}
.theater-portal p {
  color: #d2dceb;
  font-size: 15.5px;
  margin-bottom: 22px;
}

/* --- Score Bars & Badges --- */
.metric-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin: 22px 0; }
.metric-box {
  background: rgba(9, 14, 28, 0.75);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  padding: 16px;
}
.metric-label { font-size: 12px; color: var(--text-muted); text-transform: uppercase; letter-spacing: 0.08em; }
.metric-val { font-family: var(--font-serif); font-size: 2rem; color: var(--gold-soft); margin: 2px 0 8px; }
.bar-track { height: 4px; background: rgba(255,255,255,0.08); border-radius: 4px; overflow: hidden; }
.bar-fill { height: 100%; background: linear-gradient(90deg, var(--gold), var(--gold-soft)); border-radius: 4px; }

.tag-list { display: flex; flex-wrap: wrap; gap: 8px; margin: 14px 0; }
.tag {
  font-size: 12px;
  padding: 5px 12px;
  border-radius: 999px;
  border: 1px solid var(--border-subtle);
  background: rgba(15, 22, 41, 0.8);
  color: var(--silver);
}
.tag-gold { border-color: var(--border-gold); color: var(--gold-soft); }

/* Tabs */
.tabs { display: flex; gap: 10px; flex-wrap: wrap; margin-bottom: 24px; }
.tab-link {
  padding: 8px 18px;
  border-radius: 999px;
  border: 1px solid var(--border-subtle);
  color: var(--silver);
  font-size: 13.5px;
}
.tab-link.active, .tab-link:hover {
  border-color: var(--gold);
  background: rgba(216, 180, 106, 0.12);
  color: var(--gold-soft);
}

/* --- Forms --- */
.form-panel {
  background: var(--bg-card);
  border: 1px solid var(--border-gold);
  border-radius: var(--radius-lg);
  padding: 28px;
}
.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
.field label {
  display: block;
  font-size: 12.5px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--silver);
  margin-bottom: 7px;
}
.field input, .field select, .field textarea {
  width: 100%;
  background: rgba(6, 10, 20, 0.85);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  padding: 12px 14px;
  color: #fff;
  font-size: 14.5px;
  font-family: var(--font-sans);
  outline: none;
}
.field input:focus, .field select:focus, .field textarea:focus {
  border-color: var(--gold);
}
.chip-row { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; }
.prompt-chip {
  font-size: 12.5px;
  padding: 6px 13px;
  border-radius: 999px;
  background: rgba(216, 180, 106, 0.08);
  border: 1px solid var(--border-gold);
  color: var(--gold-soft);
  cursor: pointer;
}
.prompt-chip:hover { background: rgba(216, 180, 106, 0.2); }

/* --- Tactile Tarot Deck --- */
.tarot-fan {
  display: flex;
  justify-content: center;
  gap: 14px;
  flex-wrap: wrap;
  margin: 28px 0;
}
.tarot-card-wrap {
  width: 170px;
  height: 276px;
  perspective: 1000px;
  cursor: pointer;
}
.tarot-card-inner {
  position: relative;
  width: 100%;
  height: 100%;
  transition: transform 0.75s cubic-bezier(0.22, 1, 0.36, 1);
  transform-style: preserve-3d;
}
.tarot-card-wrap:hover .tarot-card-inner { transform: translateY(-8px); }
.tarot-card-wrap.flipped .tarot-card-inner { transform: rotateY(180deg); }
.tarot-face {
  position: absolute;
  inset: 0;
  backface-visibility: hidden;
  border-radius: 14px;
  border: 1px solid var(--border-gold-strong);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 16px;
  text-align: center;
  box-shadow: 0 18px 36px rgba(0,0,0,0.55);
}
.tarot-back {
  background: radial-gradient(circle at center, #18233f 0%, #090e1c 78%);
}
.tarot-back::before {
  content: "";
  position: absolute;
  inset: 9px;
  border: 1px solid rgba(216, 180, 106, 0.35);
  border-radius: 9px;
}
.tarot-front {
  transform: rotateY(180deg);
  background: linear-gradient(160deg, #131b30 0%, #090e1a 100%);
  justify-content: space-between;
}
.tarot-front.is-reversed .tarot-sigil { transform: rotate(180deg); }
.tarot-sigil {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  border: 1px solid var(--border-gold);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--gold);
  font-family: var(--font-serif);
  font-size: 26px;
}
.verdict-pill {
  display: inline-block;
  padding: 4px 14px;
  border-radius: 999px;
  font-size: 12px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  border: 1px solid var(--gold);
  color: var(--gold-soft);
  background: rgba(216, 180, 106, 0.14);
}

/* ============================================================
   CINEMATIC FATE THEATER (/theater)
   ============================================================ */
.theater-body { background: #04070f; }
.theater-stage {
  position: relative;
  min-height: calc(100vh - 70px);
  width: 100%;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 24px 0 42px;
}
.stage-bg-layer {
  position: fixed;
  inset: 0;
  z-index: 0;
  background-size: cover;
  background-position: center;
  transition: opacity 0.9s ease, transform 12s ease-out;
  transform: scale(1.03);
}
.stage-bg-layer.zoom-in { transform: scale(1.09); }
.stage-vignette {
  position: fixed;
  inset: 0;
  z-index: 1;
  background:
    radial-gradient(ellipse at center, rgba(6,10,20,0.22) 0%, rgba(4,7,15,0.88) 88%),
    linear-gradient(180deg, rgba(4,7,15,0.72) 0%, rgba(4,7,15,0.22) 38%, rgba(4,7,15,0.92) 100%);
  pointer-events: none;
}
#dust-canvas {
  position: fixed;
  inset: 0;
  z-index: 2;
  pointer-events: none;
  opacity: 0.72;
}
.theater-ui {
  position: relative;
  z-index: 4;
  width: 100%;
  max-width: 1040px;
  margin: 0 auto;
  padding: 0 20px;
}
.theater-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 18px;
}
.act-progress {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 11.5px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gold-soft);
}
.act-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(216, 180, 106, 0.25);
  transition: all 0.3s ease;
}
.act-dot.active { background: var(--gold); box-shadow: 0 0 12px var(--gold); transform: scale(1.25); }
.act-dot.done { background: rgba(216, 180, 106, 0.65); }

.audio-toggle {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 14px;
  border-radius: 999px;
  background: rgba(8, 13, 25, 0.78);
  border: 1px solid var(--border-gold);
  color: var(--gold-soft);
  font-size: 12.5px;
  cursor: pointer;
}

.act-panel {
  display: none;
  animation: fadeRise 0.75s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}
.act-panel.active { display: block; }

.narrative-box {
  background: rgba(6, 10, 20, 0.76);
  border: 1px solid var(--border-gold);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-radius: var(--radius-lg);
  padding: 32px 34px;
  box-shadow: var(--shadow-deep);
}
.guide-label {
  font-size: 11.5px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 10px;
}
.narrative-quote {
  font-family: var(--font-serif);
  font-size: clamp(1.35rem, 2.5vw, 1.85rem);
  line-height: 1.42;
  color: #f7f4ec;
  margin: 0 0 20px;
}

/* Interactive Doors & Paths */
.choice-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  margin-top: 22px;
}
.choice-card {
  text-align: left;
  background: rgba(8, 13, 26, 0.78);
  border: 1px solid var(--border-gold);
  border-radius: var(--radius-md);
  padding: 22px;
  color: var(--text-main);
  cursor: pointer;
  transition: transform 0.28s ease, border-color 0.28s ease, box-shadow 0.28s ease, background 0.28s ease;
  backdrop-filter: blur(10px);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}
.choice-card:hover {
  transform: translateY(-5px);
  border-color: var(--gold-soft);
  background: rgba(18, 26, 46, 0.88);
  box-shadow: 0 18px 44px rgba(0, 0, 0, 0.65), 0 0 26px rgba(216, 180, 106, 0.18);
}
.choice-card h3 { font-size: 1.45rem; color: var(--gold-soft); margin-bottom: 6px; }
.choice-sub { font-size: 11.5px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--silver); margin-bottom: 10px; }
.choice-card p { font-size: 14px; color: #cbd5e6; margin: 0 0 16px; }
.choice-cta { font-size: 12.5px; color: var(--gold); letter-spacing: 0.08em; text-transform: uppercase; }

/* Ritual Lantern Orb */
.ritual-orb-wrap {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 36px 20px;
  text-align: center;
}
.ritual-orb {
  width: 112px;
  height: 112px;
  border-radius: 50%;
  border: 1px solid var(--gold-soft);
  background: radial-gradient(circle, rgba(235, 210, 155, 0.35) 0%, rgba(216, 180, 106, 0.06) 65%, transparent 100%);
  box-shadow: 0 0 42px rgba(216, 180, 106, 0.36);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 30px;
  color: var(--gold-soft);
  cursor: pointer;
  animation: pulseGlow 2.8s ease-in-out infinite;
  margin-bottom: 18px;
}
.ritual-orb:hover { transform: scale(1.07); }

/* Destiny Keepsake Card */
.destiny-keepsake {
  background: linear-gradient(160deg, rgba(16, 24, 44, 0.94) 0%, rgba(7, 11, 22, 0.96) 100%);
  border: 1px solid var(--border-gold-strong);
  border-radius: var(--radius-lg);
  padding: 34px;
  position: relative;
  overflow: hidden;
  box-shadow: var(--shadow-deep);
}
.destiny-keepsake::before {
  content: "";
  position: absolute;
  inset: 10px;
  border: 1px solid rgba(216, 180, 106, 0.22);
  border-radius: 13px;
  pointer-events: none;
}

.takeaway-list { list-style: none; padding: 0; margin: 18px 0 24px; display: grid; gap: 12px; }
.takeaway-list li {
  background: rgba(255,255,255,0.03);
  border-left: 2px solid var(--gold);
  padding: 12px 16px;
  border-radius: 0 8px 8px 0;
  color: #dce4f2;
  font-size: 14.5px;
}

/* Footer */
.site-footer {
  border-top: 1px solid var(--border-subtle);
  background: rgba(5, 8, 16, 0.94);
  padding: 40px 0 32px;
  margin-top: 48px;
  font-size: 13.5px;
  color: var(--text-muted);
}
.footer-grid {
  display: flex;
  justify-content: space-between;
  gap: 28px;
  flex-wrap: wrap;
}
.footer-links { display: flex; gap: 18px; flex-wrap: wrap; }

@keyframes kenBurnsSlow {
  0% { transform: scale(1.0); }
  100% { transform: scale(1.08); }
}
@keyframes fadeRise {
  0% { opacity: 0; transform: translateY(16px); }
  100% { opacity: 1; transform: translateY(0); }
}
@keyframes pulseGlow {
  0%, 100% { box-shadow: 0 0 28px rgba(216, 180, 106, 0.28); }
  50% { box-shadow: 0 0 58px rgba(216, 180, 106, 0.62); }
}

@media (max-width: 900px) {
  .grid-3, .choice-grid { grid-template-columns: 1fr; }
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .grid-6 { grid-template-columns: repeat(3, 1fr); }
  .grid-2, .form-grid, .metric-row { grid-template-columns: 1fr; }
  .theater-portal-inner, .narrative-box { padding: 24px 20px; }
  .nav-links { gap: 14px; }
}
@media (max-width: 560px) {
  .grid-6 { grid-template-columns: repeat(2, 1fr); }
  .hero { padding: 56px 0 52px; }
  .hero-question-form { flex-direction: column; border-radius: 16px; padding: 12px; }
  .tarot-card-wrap { width: 144px; height: 234px; }
}


/* --- Editorial SEO Content, Data Tables & FAQ Accordions --- */
.editorial-block {
  margin-top: 34px;
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 28px 30px;
}
.editorial-block h2 {
  font-size: clamp(1.5rem, 2.8vw, 2.05rem);
  color: #faf7f0;
  margin-bottom: 12px;
}
.editorial-block h3 {
  font-size: 1.3rem;
  color: var(--gold-soft);
  margin: 20px 0 8px;
}
.editorial-block p {
  color: #cbd5e6;
  font-size: 15px;
  margin: 0 0 14px;
}
.editorial-block p:last-child { margin-bottom: 0; }

.data-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
  margin-top: 14px;
}
.data-table th, .data-table td {
  text-align: left;
  padding: 11px 12px;
  border-bottom: 1px solid var(--border-subtle);
}
.data-table th {
  font-size: 11.5px;
  text-transform: uppercase;
  letter-spacing: 0.09em;
  color: var(--gold);
}
.data-table td { color: #dce4f2; }

.faq-list { display: grid; gap: 12px; margin-top: 16px; }
details.faq-item {
  background: rgba(9, 14, 28, 0.78);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  padding: 15px 18px;
  transition: border-color 0.2s ease;
}
details.faq-item[open] { border-color: var(--border-gold); }
details.faq-item summary {
  cursor: pointer;
  font-weight: 500;
  color: #f6f3ec;
  font-size: 15px;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
}
details.faq-item summary::-webkit-details-marker { display: none; }
details.faq-item summary::after {
  content: "+";
  color: var(--gold);
  font-size: 18px;
  flex-shrink: 0;
}
details.faq-item[open] summary::after { content: "−"; }
details.faq-item p {
  margin: 12px 0 0;
  color: #cbd5e6;
  font-size: 14.5px;
  line-height: 1.65;
}

.matrix-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  margin-top: 14px;
}
.matrix-link {
  display: block;
  padding: 9px 12px;
  border-radius: 8px;
  border: 1px solid var(--border-subtle);
  background: rgba(9, 14, 28, 0.7);
  color: #d6e0f0;
  font-size: 13px;
  transition: border-color 0.2s ease, background 0.2s ease;
}
.matrix-link:hover {
  border-color: var(--gold);
  background: rgba(216, 180, 106, 0.1);
  color: var(--gold-soft);
}

@media (max-width: 780px) {
  .editorial-block { padding: 22px 18px; }
  .matrix-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
