/* =========================================================================
   Public homepage — Tarotscope v2.0 visual system (REQ-273).
   Consumes design tokens declared by dashboard.css :root.
   Loaded alongside dashboard.css + header.css + footer.css by home.html.
   Organized by section in render order.
   ========================================================================= */

body.ts-home {
  background: var(--bg);
  color: var(--text);
  font-family: var(--f-sans);
  font-size: 15px;
  line-height: 1.6;
  min-height: 100vh;
  min-height: 100dvh;
  overflow-x: hidden;
  margin: 0;
}
body.ts-home main { position: relative; z-index: 1; }

/* Force text presentation on glyphs (share dashboard rule) */
body.ts-home .glyph,
body.ts-home .ac-sym,
body.ts-home .ac-mode,
body.ts-home .vi,
body.ts-home .sh-symbol,
body.ts-home .tl-glyph,
body.ts-home .final-star {
  font-variant-emoji: text;
  font-feature-settings: "liga" off;
}

/* ───── Section shells ───── */
.home-section {
  max-width: 1200px;
  margin: 0 auto;
  padding: 48px 32px;
  position: relative;
}
.home-section.narrow { max-width: 960px; }
.home-section.flush  { padding-top: 32px; padding-bottom: 32px; }

.section-label {
  font-family: var(--f-mono);
  font-size: 12px;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--gold-dim);
  text-align: center;
  margin-bottom: 20px;
}
.heading {
  font-family: var(--f-display);
  font-weight: 500;
  color: var(--text);
  text-align: center;
  margin: 0 auto 16px;
  letter-spacing: 0.005em;
}
.heading em { color: var(--gold-2); font-style: italic; }
.heading.h-md { font-size: clamp(28px, 3.4vw, 44px); line-height: 1.12; }
.sub {
  font-family: var(--f-display);
  font-style: italic;
  font-size: clamp(15px, 1.6vw, 18px);
  color: var(--text-2);
  text-align: center;
  max-width: 680px;
  margin: 0 auto 40px;
  line-height: 1.55;
}

.divider {
  display: flex; align-items: center; justify-content: center;
  gap: 14px; margin: 48px auto 36px;
  color: var(--gold-dim); opacity: 0.55;
}
.divider .l, .divider .r { height: 1px; flex: 1 0 60px; max-width: 120px; background: var(--line); }
.divider .d {
  width: 8px; height: 8px; transform: rotate(45deg);
  background: transparent; border: 1px solid var(--gold-dim);
}
.spacer { height: 12px; }

/* ───── Reveal (IntersectionObserver) ───── */
.reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 1s var(--ease), transform 1s var(--ease);
}
.reveal.visible { opacity: 1; transform: none; }
.d1 { transition-delay: .1s; } .d2 { transition-delay: .2s; }
.d3 { transition-delay: .3s; } .d4 { transition-delay: .4s; }
.d5 { transition-delay: .5s; } .d6 { transition-delay: .6s; }
.d7 { transition-delay: .7s; } .d8 { transition-delay: .8s; } .d9 { transition-delay: .9s; }

/* ───── Buttons ───── */
.btn, .btn-ghost {
  display: inline-flex; align-items: center; justify-content: center;
  padding: 14px 32px;
  font-family: var(--f-mono);
  font-size: 12px;
  letter-spacing: 0.26em;
  text-transform: uppercase;
  text-decoration: none;
  border-radius: 2px;
  cursor: pointer;
  transition: filter 180ms var(--ease), transform 180ms var(--ease), border-color 180ms var(--ease), color 180ms var(--ease);
  border: 1px solid var(--gold);
}
.btn {
  background: linear-gradient(180deg, var(--gold-2) 0%, var(--gold) 100%);
  color: #0b0a12;
}
.btn:hover { filter: brightness(1.15); transform: translateY(-2px); }
.btn-ghost {
  background: transparent;
  color: var(--gold-2);
  border-color: var(--gold-dim);
}
.btn-ghost:hover { color: var(--gold-2); border-color: var(--gold); transform: translateY(-2px); }

/* =========================================================================
   1 · HERO
   ========================================================================= */
#hero {
  position: relative;
  min-height: 72vh;
  display: grid; place-items: center;
  padding: 80px 24px 80px;
  overflow: hidden;
}
.hero-bg-video {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  z-index: 0;
  pointer-events: none;
}
#hero .vignette {
  position: absolute; inset: 0;
  background:
    radial-gradient(ellipse at 50% 45%, rgba(11,10,18,0.35) 0%, rgba(11,10,18,0.75) 70%, rgba(11,10,18,0.95) 100%);
  pointer-events: none;
  z-index: 1;
}
@media (prefers-reduced-motion: reduce) {
  .hero-bg-video { display: none; }
}
/* The hero clip plays on mobile too — operator decision, 2026-08-29,
   reversing audit P1-F.

   P1-F hid it below 700px because the .webm/.mp4 are ~4 MB each and "mobile
   users get no visual benefit". The operator disagrees about the benefit and
   accepts the bytes for now; the open question it left is quality, not
   presence — a lighter encode for small screens is the next step, not hiding
   it. Until that exists, small screens fetch the same file the desktop does.
   `prefers-reduced-motion` still removes it, and that is a different question. */
.hero-inner {
  position: relative; z-index: 2;
  max-width: 900px; width: 100%;
  text-align: center;
  display: flex; flex-direction: column; align-items: center;
  gap: 22px;
}
.hero-h1 {
  font-family: var(--f-display);
  font-weight: 500;
  font-size: clamp(30px, 5vw, 54px);
  line-height: 1.08;
  color: var(--text);
  margin: 0;
  letter-spacing: 0.005em;
  opacity: 0;
  animation: fadeIn 1s var(--ease) 1.4s forwards;
  /* Contrast contour — eight-direction dark halo around each glyph keeps the
     headline readable over the looping video background regardless of frame. */
  text-shadow:
    -1px -1px 0 rgba(11, 10, 18, 0.9),
     1px -1px 0 rgba(11, 10, 18, 0.9),
    -1px  1px 0 rgba(11, 10, 18, 0.9),
     1px  1px 0 rgba(11, 10, 18, 0.9),
     0   -1.5px 0 rgba(11, 10, 18, 0.9),
     0    1.5px 0 rgba(11, 10, 18, 0.9),
    -1.5px 0 0 rgba(11, 10, 18, 0.9),
     1.5px 0 0 rgba(11, 10, 18, 0.9),
     0 2px 24px rgba(0, 0, 0, 0.55);
}
.hero-h1 em { color: var(--gold-2); font-style: italic; }
.hero-sub {
  font-family: var(--f-display);
  font-style: italic;
  font-size: clamp(16px, 1.8vw, 20px);
  color: var(--text-2);
  max-width: 620px;
  margin: 0;
  opacity: 0;
  animation: fadeIn 1s var(--ease) 1.8s forwards;
  text-shadow:
    -1px -1px 0 rgba(11, 10, 18, 0.85),
     1px -1px 0 rgba(11, 10, 18, 0.85),
    -1px  1px 0 rgba(11, 10, 18, 0.85),
     1px  1px 0 rgba(11, 10, 18, 0.85),
     0 2px 16px rgba(0, 0, 0, 0.45);
}
.hero-btns {
  display: flex; gap: 16px; flex-wrap: wrap; justify-content: center;
  opacity: 0;
  animation: fadeIn 1s var(--ease) 2.2s forwards;
}
.hero-friction {
  font-family: var(--f-mono);
  font-size: 12px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--text-3);
  margin: 8px 0 0;
  opacity: 0;
  animation: fadeIn 1s var(--ease) 2.5s forwards;
}
@keyframes fadeIn { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }

.scroll-hint {
  position: absolute; left: 50%; bottom: 24px;
  transform: translateX(-50%);
  font-family: var(--f-mono);
  font-size: 12px; letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--text-3);
  animation: scrollPulse 2s ease-in-out infinite;
  z-index: 2;
}
@keyframes scrollPulse { 0%,100% { opacity: 0.4; } 50% { opacity: 0.9; } }

/* =========================================================================
   2 · DUAL VOICE
   ========================================================================= */
.toggle-bar {
  display: flex; gap: 10px; justify-content: center;
  margin-bottom: 32px;
}
.toggle-btn {
  padding: 11px 22px;
  background: transparent;
  border: 1px solid var(--gold-dim);
  color: var(--text-2);
  font-family: var(--f-mono);
  font-size: 12px;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  cursor: pointer;
  border-radius: 2px;
  transition: all 180ms var(--ease);
}
.toggle-btn:hover { color: var(--text); border-color: var(--gold); }
.toggle-btn.active-oracle { color: var(--oracle); border-color: var(--oracle); background: rgba(74,111,165,0.08); }
.toggle-btn.active-mocker { color: var(--mocker); border-color: var(--mocker); background: rgba(200,116,82,0.08); }

.voice-card {
  position: relative;
  max-width: 760px; margin: 0 auto;
  padding: 40px 44px 32px;
  background: var(--surface);
  border: 1px solid rgba(74,111,165,0.3);
  border-radius: 2px;
  overflow: hidden;
  transition: border-color 320ms var(--ease);
}
.voice-card .top-line {
  position: absolute; top: 0; left: 0; right: 0; height: 1px;
  background: linear-gradient(to right, transparent, var(--oracle), transparent);
  transition: background 320ms var(--ease);
}
.voice-card .side-glow {
  position: absolute; top: 0; bottom: 0; width: 40%;
  left: 0;
  background: linear-gradient(to right, rgba(74,111,165,0.1), transparent);
  pointer-events: none;
  transition: background 320ms var(--ease);
}
.voice-card.fading .vc-speaker,
.voice-card.fading .vc-text { opacity: 0; }
.vc-label {
  font-family: var(--f-mono);
  font-size: 12px;
  letter-spacing: 0.26em;
  text-transform: uppercase;
  color: var(--gold-dim);
  text-align: center;
  margin-bottom: 22px;
}
.vc-speaker {
  font-family: var(--f-display);
  font-style: italic;
  font-size: 16px;
  color: var(--oracle);
  text-align: center;
  margin-bottom: 18px;
  transition: opacity 220ms var(--ease), color 320ms var(--ease);
}
.vc-text {
  font-family: var(--f-display);
  font-size: clamp(17px, 1.8vw, 21px);
  line-height: 1.6;
  color: var(--text);
  text-align: center;
  margin: 0 0 22px;
  transition: opacity 220ms var(--ease);
}

/* =========================================================================
   3 · ARCHETYPE CAROUSEL — Cover Flow (3D)
   ========================================================================= */
.carousel-section {
  padding: 48px 0 56px;
  overflow: hidden;
  position: relative;
}
.carousel-section .section-label,
.carousel-section .heading,
.carousel-section .sub,
.carousel-section .carousel-cta,
.carousel-section .cf-info {
  padding-left: 24px; padding-right: 24px;
}
.carousel-track-wrap {
  position: relative;
  margin-top: 16px;
}
.carousel-stage {
  position: relative;
  width: 100%;
  height: 480px;
  perspective: 1500px;
  perspective-origin: 50% 50%;
  outline: none;
  overflow: hidden;
  cursor: grab;
  touch-action: pan-y;
  user-select: none;
  -webkit-user-select: none;
}
.carousel-stage.is-dragging { cursor: grabbing; }
.carousel-stage.is-dragging .arc-card { transition: none; }
.carousel-track {
  position: absolute; inset: 0;
  transform-style: preserve-3d;
  display: block;
}
.arc-card {
  position: absolute;
  top: 50%; left: 50%;
  width: 240px;
  height: 448px;
  margin-top: -224px;
  margin-left: -120px;
  background: transparent;
  border: 0;
  padding: 0;
  border-radius: 0;
  display: block;
  text-align: left;
  text-decoration: none;
  color: inherit;
  cursor: pointer;
  transform-style: preserve-3d;
  transform-origin: 50% 50%;
  transition: transform 620ms cubic-bezier(0.22, 1, 0.36, 1),
              opacity 420ms ease;
  -webkit-box-reflect: below 6px linear-gradient(transparent 55%, rgba(0,0,0,0.42));
  will-change: transform, opacity;
}
.arc-card.is-active { cursor: default; }
.ac-card-img {
  position: relative;
  width: 100%; height: 100%;
  overflow: hidden;
  border-radius: 4px;
  border: 1px solid var(--line);
  background:
    radial-gradient(ellipse at 50% 30%, rgba(201,168,109,0.10), transparent 60%),
    linear-gradient(180deg, #1a1828, #0f0d1a);
  box-shadow: 0 18px 50px -12px rgba(0,0,0,0.55),
              0 2px 8px rgba(0,0,0,0.4);
}
.arc-card.oracle-card .ac-card-img { border-top: 2px solid var(--oracle); }
.arc-card.mocker-card .ac-card-img { border-top: 2px solid var(--mocker); }
.arc-card.is-active .ac-card-img {
  border-color: var(--gold-2);
  box-shadow: 0 26px 70px -10px rgba(0,0,0,0.7),
              0 0 0 1px rgba(201,168,109,0.25),
              0 4px 14px rgba(0,0,0,0.5);
}
.ac-card-img img {
  width: 100%; height: 100%;
  object-fit: cover;
  display: block;
}
.ac-card-img::after {
  content: '';
  position: absolute; inset: 0;
  box-shadow: inset 0 0 28px rgba(11,10,18,0.4),
              inset 0 -60px 60px -30px rgba(11,10,18,0.55);
  pointer-events: none;
}
/* Animated card clip: fades in over the static image only while the card is
   centered (`.is-active`) and its video is actually playing. The still image
   stays underneath as poster + graceful fallback when the clip is missing. */
.ac-card-img .ac-video {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  opacity: 0;
  transition: opacity 0.6s ease;
  pointer-events: none;
}
.arc-card.is-active .ac-card-img .ac-video.is-playing { opacity: 1; }
/* While the clip is playing, clear the overlays that sit on top of it (the
   ☽ Oracle/Mocker badge and the edge vignette) so only the animated card
   shows — they return the moment it pauses. */
.ac-mode { transition: opacity 0.4s ease; }
.arc-card.is-clip-playing .ac-mode { opacity: 0; }
.ac-card-img::after { transition: opacity 0.4s ease; }
.arc-card.is-clip-playing .ac-card-img::after { opacity: 0; }
@media (prefers-reduced-motion: reduce) {
  .ac-card-img .ac-video { display: none; }
}
.ac-mode {
  position: absolute;
  top: 8px; left: 8px;
  padding: 4px 8px;
  font-family: var(--f-mono);
  font-size: 12px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--text);
  background: rgba(11,10,18,0.72);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  border: 1px solid var(--line);
  border-radius: 2px;
  z-index: 2;
}
.arc-card.oracle-card .ac-mode { color: var(--gold-2); border-color: rgba(74,111,165,0.55); }
.arc-card.mocker-card .ac-mode { color: var(--gold-2); border-color: rgba(200,116,82,0.55); }
/* Card-internal meta strings stay in DOM for i18n + JS read; never rendered. */
.arc-card .ac-meta,
.arc-card .ac-vector,
.arc-card .ac-name,
.arc-card .ac-l2 { display: none; }

/* ── Cover Flow nav buttons ────────────────────────────────────────── */
.cf-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 30;
  width: 46px; height: 46px;
  display: grid; place-items: center;
  padding: 0;
  background: linear-gradient(180deg, var(--gold-2) 0%, var(--gold) 100%);
  border: 1px solid var(--gold-2);
  border-radius: 50%;
  color: var(--bg);
  cursor: pointer;
  box-shadow: 0 6px 20px -6px rgba(0,0,0,0.65), 0 0 0 1px rgba(11,10,18,0.15);
  transition: background 200ms var(--ease), border-color 200ms var(--ease),
              color 200ms var(--ease), box-shadow 200ms var(--ease), opacity 200ms ease;
}
.cf-nav svg { display: block; }
/* Sit just outside the visible card fan (offset-3 at ~±360px from center)
   while clamping to a small viewport-edge gap on narrow screens. */
.cf-prev { left:  max(16px, calc(50% - 400px)); }
.cf-next { right: max(16px, calc(50% - 400px)); }
.cf-nav:hover {
  filter: brightness(1.12);
  border-color: var(--gold);
  box-shadow: 0 8px 26px -6px rgba(0,0,0,0.72), 0 0 0 1px rgba(11,10,18,0.22);
}
.cf-nav:disabled { opacity: 0.25; cursor: not-allowed; }

/* ── Active-card info pane ─────────────────────────────────────────── */
.cf-info {
  text-align: center;
  margin: 18px auto 0;
  max-width: 720px;
  min-height: 110px;
}
.cf-info-vector {
  font-family: var(--f-mono);
  font-size: 12px;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--gold-dim);
}
.cf-info-name {
  font-family: var(--f-display);
  font-style: italic;
  font-size: 30px;
  line-height: 1.15;
  color: var(--gold-2);
  margin: 8px 0 10px;
}
.cf-info-l2 {
  font-family: var(--f-display);
  font-size: 16px;
  line-height: 1.55;
  color: var(--text-2);
  margin: 0 auto;
}
.cf-info-vector,
.cf-info-name,
.cf-info-l2 { transition: opacity 280ms ease; }
.cf-info.is-swapping > * { opacity: 0; }

.carousel-cta { text-align: center; margin-top: 28px; }

@media (max-width: 700px) {
  .carousel-stage { height: 420px; }
  .arc-card { width: 200px; height: 374px; margin-top: -187px; margin-left: -100px; }
  .cf-info-name { font-size: 24px; }
  .cf-info-l2 { font-size: 15px; }
  .cf-nav { width: 44px; height: 44px; }  /* iOS HIG tap-target floor (was 40) */
  .cf-nav svg { width: 18px; height: 18px; }
  .cf-prev { left:  max(8px, calc(50% - 320px)); }
  .cf-next { right: max(8px, calc(50% - 320px)); }
}
@media (max-width: 480px) {
  .carousel-stage { height: 380px; }
  .arc-card { width: 170px; height: 318px; margin-top: -159px; margin-left: -85px; }
  .cf-prev { left:  max(4px, calc(50% - 250px)); }
  .cf-next { right: max(4px, calc(50% - 250px)); }
}

/* ── Split variant: rotating deck (left) + always-on detail (right) ──── */
.archetype-split {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 40px;
  align-items: center;
  max-width: 1180px;
  margin: 28px auto 0;
  padding: 0 24px;
}
.archetype-stage-col { position: relative; min-width: 0; }
/* Stage now lives in the left half — drive the fan off column width, not
   the viewport (see metrics() in home.js), and pin nav inside the column. */
.archetype-split .carousel-stage { height: 472px; }
.archetype-split .cf-prev { left: 4px; }
.archetype-split .cf-next { right: 4px; }

.archetype-detail-col {
  min-width: 0;
  align-self: center;
  text-align: left;
}
/* Neutralise the centred full-width info pane + the section's 24px gutters. */
.archetype-detail-col .cf-info {
  text-align: left;
  margin: 0;
  max-width: none;
  min-height: 0;
  padding-left: 0;
  padding-right: 0;
}
.archetype-detail-col .cf-info-vector { font-size: 13px; }
.archetype-detail-col .cf-info-name {
  font-size: 42px;
  line-height: 1.08;
  margin: 12px 0 18px;
}
.archetype-detail-col .cf-info-l2 {
  font-size: 19px;
  line-height: 1.62;
  margin: 0;
}
.archetype-split .carousel-cta {
  text-align: left;
  margin-top: 26px;
  padding-left: 0;
  padding-right: 0;
}

@media (max-width: 860px) {
  .archetype-split {
    grid-template-columns: 1fr;
    gap: 6px;
  }
  .archetype-detail-col { text-align: center; }
  .archetype-detail-col .cf-info { text-align: center; }
  .archetype-detail-col .cf-info-name { font-size: 30px; }
  .archetype-detail-col .cf-info-l2 { font-size: 16px; }
  .archetype-split .carousel-cta { text-align: center; }
}

/* =========================================================================
   5 · HERALDRY & TALISMAN
   ========================================================================= */
.artifacts-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  max-width: 1040px; margin: 0 auto;
}
.artifact-card {
  position: relative;
  padding: 40px 32px 32px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 2px;
  text-align: center;
  overflow: hidden;
}
.af-glow {
  position: absolute; inset: 0;
  pointer-events: none;
}
.af-visual {
  position: relative;
  width: 180px; height: 220px;
  margin: 0 auto 20px;
  display: grid; place-items: center;
}
.af-visual.talisman { height: 180px; }
.af-visual.talisman .tl-wrap {
  width: 100%; height: 100%;
  animation: spin 60s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }
.af-visual picture { display: block; width: 100%; height: 100%; }
.af-visual img, .af-visual svg { display: block; width: 100%; height: 100%; object-fit: cover; }
.af-title {
  font-family: var(--f-display);
  font-size: 26px;
  color: var(--gold-2);
  margin-bottom: 6px;
}
.af-sub {
  font-family: var(--f-mono);
  font-size: 12px;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--gold-dim);
  margin-bottom: 18px;
}
.af-desc {
  font-family: var(--f-display);
  font-size: 15px;
  color: var(--text-2);
  line-height: 1.55;
  margin: 0 auto 20px;
  max-width: 380px;
}
.af-sample {
  border-top: 1px solid var(--line-soft);
  padding-top: 18px;
  text-align: center;
}
.afs-label {
  font-family: var(--f-mono);
  font-size: 12px;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--text-3);
  margin-bottom: 8px;
}
.afs-motto {
  font-family: var(--f-display);
  font-style: italic;
  font-size: 19px;
  color: var(--gold-2);
  margin-bottom: 10px;
}
.afs-text {
  font-family: var(--f-display);
  font-style: italic;
  font-size: 14px;
  color: var(--text-2);
  line-height: 1.55;
}
.af-note {
  text-align: center;
  font-family: var(--f-display);
  font-style: italic;
  font-size: 14px;
  color: var(--text-3);
  margin-top: 28px;
}

/* =========================================================================
   7 · SEVEN VECTORS
   ========================================================================= */
.vec-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(130px, 1fr));
  gap: 16px;
  max-width: 1040px; margin: 0 auto;
}
.vec-item {
  padding: 22px 14px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 2px;
  text-align: center;
  transition: border-color 180ms var(--ease), transform 180ms var(--ease);
}
.vec-item:hover { border-color: var(--gold); transform: translateY(-2px); }
.vec-item .vi {
  font-family: var(--f-display);
  font-size: 30px;
  color: var(--gold-2);
  display: block; margin-bottom: 6px;
}
.vec-item .vn {
  font-family: var(--f-mono);
  font-size: 12px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--text);
  display: block; line-height: 1.4;
}
.vec-item .vp {
  font-family: var(--f-display);
  font-style: italic;
  font-size: 13px;
  color: var(--text-3);
  margin-top: 4px;
  display: block;
}

/* =========================================================================
   8 · YOUR CIRCLE / COMPATIBILITY
   ========================================================================= */
.circle-wrap {
  position: relative;
  width: 340px; height: 340px;
  margin: 20px auto 36px;
}
.circle-video {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  border-radius: 50%;
  pointer-events: none;
  z-index: 0;
}
@media (prefers-reduced-motion: reduce) {
  .circle-video { display: none; }
}
/* Audit P1-F: skip circle video on mobile (~4.4MB each) — the static
   visual rhythm holds without it. */
@media (max-width: 700px) {
  .circle-video { display: none; }
}
.compat-demo {
  display: grid;
  grid-template-columns: 180px 1fr 180px;
  gap: 20px;
  align-items: center;
  max-width: 860px;
  margin: 0 auto;
  padding: 28px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 2px;
}
.compat-person { text-align: center; }
.cp-ava {
  width: 56px; height: 56px; border-radius: 50%;
  border: 1px solid var(--gold-dim);
  background: var(--bg-2);
  color: var(--gold-2);
  font-family: var(--f-display);
  font-size: 22px;
  display: grid; place-items: center;
  margin: 0 auto 10px;
}
.cp-name {
  font-family: var(--f-display);
  font-size: 17px;
  color: var(--text);
}
.cp-sign {
  font-family: var(--f-mono);
  font-size: 12px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--text-3);
  margin-top: 4px;
}
.compat-middle { padding: 0 4px; }
.compat-vs {
  text-align: center;
  font-family: var(--f-display);
  font-size: 20px;
  color: var(--gold-dim);
  margin-bottom: 14px;
}
.compat-vectors {
  display: flex; flex-direction: column; gap: 10px;
}
.compat-vec {
  display: grid;
  grid-template-columns: 28px 1fr;
  gap: 10px; align-items: center;
}
.cv-icon {
  font-family: var(--f-display);
  font-size: 16px;
  color: var(--gold-dim);
  text-align: center;
}
.cv-bar-bg {
  height: 6px;
  background: rgba(201,168,109,0.08);
  border-radius: 3px;
  overflow: hidden;
}
.cv-bar {
  height: 100%;
  border-radius: 3px;
  transition: width 1.5s cubic-bezier(.16,1,.3,1);
}
.cv-bar.high { background: linear-gradient(90deg, var(--gold), var(--gold-2)); }
.cv-bar.mid  { background: linear-gradient(90deg, var(--oracle), var(--violet)); }
.cv-bar.low  { background: linear-gradient(90deg, var(--mocker), var(--rose)); }

.compat-quote {
  max-width: 760px;
  margin: 32px auto 0;
  padding: 22px 26px;
  background: var(--surface-2);
  border-left: 2px solid var(--gold);
  border-radius: 2px;
  font-family: var(--f-display);
  font-style: italic;
  font-size: 16px;
  line-height: 1.6;
  color: var(--text);
}
.cq-credit {
  font-family: var(--f-mono);
  font-size: 12px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--text-3);
  margin-top: 14px;
  font-style: normal;
}

.circle-cta-block {
  text-align: center; margin-top: 36px;
}
.circle-cta-note {
  text-align: center;
  font-family: var(--f-display);
  font-style: italic;
  font-size: 14px;
  color: var(--text-3);
  margin-top: 14px;
}

/* =========================================================================
   9 · WHY DIFFERENT
   ========================================================================= */
.why-list {
  max-width: 720px; margin: 0 auto;
  display: flex; flex-direction: column; gap: 26px;
}
.why-item {
  display: grid;
  grid-template-columns: 56px 1fr;
  gap: 18px;
  padding-bottom: 22px;
  border-bottom: 1px solid var(--line-soft);
}
.why-item:last-child { border-bottom: none; }
.wi-n {
  font-family: var(--f-display);
  font-size: 38px;
  color: var(--gold-dim);
  line-height: 1;
}
.wi-t {
  font-family: var(--f-display);
  font-size: 21px;
  color: var(--text);
  margin-bottom: 6px;
}
.wi-d {
  font-family: var(--f-display);
  font-size: 15px;
  color: var(--text-2);
  line-height: 1.55;
  margin: 0;
}

/* =========================================================================
   10 · INTERACTIVE DEMO
   ========================================================================= */
.demo-header {
  display: flex; justify-content: space-between; align-items: center;
  max-width: 860px;
  margin: 0 auto 14px;
  padding: 0 4px;
  font-family: var(--f-mono);
  font-size: 12px;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--text-3);
}
.demo-header .dh-l { color: var(--gold-dim); }
.reading-card {
  max-width: 860px;
  margin: 0 auto;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 2px;
  padding: 40px 44px;
  position: relative;
  font-family: var(--f-display);
  font-size: 17px;
  line-height: 1.68;
  color: var(--text);
}
.reading-card p { margin: 0 0 16px; }
.reading-card .rc-line {
  position: absolute; top: 0; left: 0; right: 0; height: 1px;
  background: linear-gradient(to right, transparent, var(--gold), transparent);
}
.tag {
  display: inline;
  color: var(--gold-2);
  border-bottom: 1px dashed var(--gold-dim);
  cursor: pointer;
  padding: 0 2px;
  transition: color 180ms var(--ease), background 180ms var(--ease);
}
.tag:hover { color: var(--gold); background: rgba(201,168,109,0.06); }
.tag.open { color: var(--gold); background: rgba(201,168,109,0.1); }
.tag-hint { animation: tagPulse 2s var(--ease) 3; }
@keyframes tagPulse {
  0%, 100% { background: rgba(201,168,109,0); }
  50%      { background: rgba(201,168,109,0.18); }
}
.deep-dive {
  max-height: 0;
  opacity: 0;
  overflow: hidden;
  background: var(--bg-2);
  border: 1px solid transparent;
  border-radius: 2px;
  margin: 14px 0 18px;
  transition: max-height 450ms var(--ease), opacity 260ms var(--ease),
              padding 300ms var(--ease), border-color 300ms var(--ease);
  padding: 0 24px;
}
.deep-dive.open {
  max-height: 700px;
  opacity: 1;
  padding: 22px 24px;
  border-color: var(--line);
}
.dd-head {
  display: flex; justify-content: space-between; align-items: center;
  font-family: var(--f-mono);
  font-size: 12px;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 14px;
}
.dd-head .close {
  /* UX-audit home F02: was 8×22 — bumped via padding to 44×44 hit-area.
     Glyph itself stays small; transparent expansion gives the click target. */
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  margin: -10px -10px -10px 0;
  cursor: pointer;
  color: var(--text-3);
  font-size: 13px;
  letter-spacing: 0;
  user-select: none;
}
.dd-head .close:hover { color: var(--gold); }
.dd-head .close:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 2px;
  border-radius: 2px;
}
.deep-dive p {
  font-family: var(--f-display);
  font-size: 15px;
  line-height: 1.6;
  color: var(--text-2);
  margin: 0 0 8px;
}
.dd-em {
  font-family: var(--f-display);
  font-style: italic;
  color: var(--gold-2);
}
.dd-context {
  font-family: var(--f-mono);
  font-size: 12px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--text-3);
  border-top: 1px solid var(--line-soft);
  padding-top: 12px;
  margin-top: 12px;
  line-height: 1.6;
}
.evo-q {
  margin-top: 22px;
  padding-top: 20px;
  border-top: 1px solid var(--line-soft);
  text-align: center;
}
.evo-q p {
  font-family: var(--f-display);
  font-style: italic;
  font-size: 18px;
  color: var(--gold-2);
  margin: 0 0 10px;
  line-height: 1.5;
}
.eq-label {
  font-family: var(--f-mono);
  font-size: 12px;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--text-3);
}

.compare-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
  max-width: 860px;
  margin: 32px auto 0;
}
.compare-box {
  padding: 22px 24px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 2px;
}
.compare-box.typical { opacity: 0.75; }
.cb-label {
  font-family: var(--f-mono);
  font-size: 12px;
  letter-spacing: 0.26em;
  text-transform: uppercase;
  color: var(--text-3);
  margin-bottom: 10px;
}
.compare-box.ours .cb-label { color: var(--gold); }
.cb-text {
  font-family: var(--f-display);
  font-style: italic;
  font-size: 15px;
  color: var(--text-2);
  line-height: 1.55;
  margin: 0;
}
.compare-box.ours .cb-text { color: var(--text); }

.demo-cta { text-align: center; margin-top: 36px; }

/* =========================================================================
   11 · FINAL CTA
   ========================================================================= */
.final-cta {
  max-width: 820px; margin: 0 auto;
  padding: 48px 32px 40px;
  text-align: center;
}
.final-star {
  font-family: var(--f-display);
  font-size: 32px;
  color: var(--gold-2);
  margin-bottom: 20px;
  animation: breathe 4s ease-in-out infinite;
}
@keyframes breathe {
  0%, 100% { opacity: 0.65; transform: scale(1); }
  50%      { opacity: 1;    transform: scale(1.08); }
}
.final-sub {
  font-family: var(--f-mono);
  font-size: 12px;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--text-3);
  margin-top: 18px;
}

/* =========================================================================
   Responsive
   ========================================================================= */
@media (max-width: 900px) {
  .artifacts-grid { grid-template-columns: 1fr; max-width: 480px; }
  .compat-demo { grid-template-columns: 1fr; }
  .compat-middle { order: 3; }
}
@media (max-width: 700px) {
  .home-section { padding: 36px 20px; }
  #hero { padding: 8px 20px 40px; }
  .compare-grid { grid-template-columns: 1fr; }
  .reading-card { padding: 28px 22px; font-size: 15.5px; }
  .circle-wrap { transform: scale(0.85); transform-origin: top center; }
}
@media (max-width: 480px) {
  .hero-btns { flex-direction: column; width: 100%; }
  .hero-btns .btn, .hero-btns .btn-ghost { width: 100%; }
  .toggle-bar { flex-wrap: wrap; }
}

/* =========================================================================
   Section 9b — Blog teaser (featured + tutorials)
   ========================================================================= */
#home-blog .hb-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 32px;
  align-items: stretch;
  margin-top: 8px;
}
#home-blog .hb-feature {
  display: flex;
  flex-direction: column;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: linear-gradient(180deg, rgba(20,18,28,0.65), rgba(11,10,18,0.55));
  text-decoration: none;
  color: inherit;
  overflow: hidden;
  transition: transform 0.4s ease, border-color 0.4s ease, box-shadow 0.4s ease;
  position: relative;
}
#home-blog .hb-feature::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: radial-gradient(ellipse at top left, rgba(201,168,109,0.10), transparent 60%);
}
#home-blog .hb-feature:hover {
  transform: translateY(-3px);
  border-color: rgba(201,168,109,0.55);
  box-shadow: 0 18px 48px rgba(0,0,0,0.45);
}
#home-blog .hb-feature-media {
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: #0e0d16;
}
#home-blog .hb-feature-media img,
#home-blog .hb-feature-media picture {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s ease;
}
#home-blog .hb-feature:hover .hb-feature-media img { transform: scale(1.04); }
#home-blog .hb-feature-body {
  padding: 22px 24px 26px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  position: relative;
}
#home-blog .hb-eyebrow {
  font-family: var(--f-mono);
  font-size: 11px;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--gold-2);
}
#home-blog .hb-feature-title {
  font-family: var(--f-display);
  font-size: clamp(22px, 2.4vw, 30px);
  line-height: 1.18;
  margin: 0;
  color: var(--text);
  font-weight: 500;
}
#home-blog .hb-feature-sub {
  font-family: var(--f-display);
  font-style: italic;
  color: var(--text-2);
  font-size: 16px;
  line-height: 1.45;
  margin: 0;
}
#home-blog .hb-cta {
  margin-top: 6px;
  font-family: var(--f-mono);
  font-size: 12px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gold-2);
}

#home-blog .hb-tutorials {
  display: flex;
  flex-direction: column;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: rgba(15,13,22,0.55);
  padding: 22px 22px 14px;
}
#home-blog .hb-tutorials-label {
  font-family: var(--f-mono);
  font-size: 11px;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--gold-dim);
  margin-bottom: 12px;
}
#home-blog .hb-tutorial-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
}
#home-blog .hb-tutorial-item + .hb-tutorial-item {
  border-top: 1px solid var(--line);
}
#home-blog .hb-tutorial-link {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 14px;
  align-items: center;
  padding: 14px 4px;
  text-decoration: none;
  color: inherit;
  transition: color 0.25s ease;
}
#home-blog .hb-tutorial-link:hover { color: var(--gold-2); }
#home-blog .hb-tutorial-num {
  font-family: var(--f-mono);
  font-size: 12px;
  color: var(--gold-dim);
  letter-spacing: 0.12em;
}
#home-blog .hb-tutorial-meta {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}
#home-blog .hb-tutorial-title {
  font-family: var(--f-display);
  font-size: 17px;
  line-height: 1.25;
  color: var(--text);
}
#home-blog .hb-tutorial-link:hover .hb-tutorial-title { color: var(--gold-2); }
#home-blog .hb-tutorial-sub {
  font-family: var(--f-display);
  font-style: italic;
  font-size: 13.5px;
  color: var(--text-2);
  line-height: 1.35;
  display: -webkit-box;
  -webkit-line-clamp: 1;
  line-clamp: 1;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
#home-blog .hb-tutorial-arrow {
  font-family: var(--f-mono);
  color: var(--gold-dim);
  font-size: 14px;
  transition: transform 0.25s ease;
}
#home-blog .hb-tutorial-link:hover .hb-tutorial-arrow {
  transform: translateX(3px);
  color: var(--gold-2);
}
#home-blog .hb-all {
  text-align: center;
  margin-top: 32px;
}

@media (max-width: 900px) {
  #home-blog .hb-grid { grid-template-columns: 1fr; gap: 22px; }
  #home-blog .hb-feature-body { padding: 20px 20px 22px; }
}

/* =========================================================================
   Reduced motion
   ========================================================================= */
@media (prefers-reduced-motion: reduce) {
  .hero-h1, .hero-sub, .hero-btns, .hero-friction {
    animation: none !important;
    opacity: 1 !important;
    transform: none !important;
  }
  .arc-card { transition: none !important; }
  .af-visual.talisman .tl-wrap { animation: none !important; }
  .scroll-hint, .final-star { animation: none !important; opacity: 0.8; }
  .reveal { opacity: 1 !important; transform: none !important; transition: none !important; }
  .tag-hint { animation: none !important; }
}

/* ═══════ Section 2 · Natal chart carousel (real example) ═══════ */
.natal-split-section {
  padding: 64px 0 72px;
  text-align: center;
  /* page-scoped element accents (token-driven; consumed below) */
  --nb-fire: #c8623f; --nb-earth: #8a9a5b; --nb-air: #6a8fb5; --nb-water: #4a6fa5;
}
.natal-split {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 40px; align-items: center;
  max-width: 1180px; margin: 28px auto 0; padding: 0 24px;
}
.natal-stage-col { position: relative; }
.natal-stage {
  position: relative; min-height: 440px;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
}
.natal-stage:focus { outline: none; }
.natal-carousel { position: relative; width: 100%; max-width: 420px; margin: 0 auto; }
.nat-slide {
  position: absolute; inset: 0;
  display: flex; align-items: center; justify-content: center;
  opacity: 0; visibility: hidden; transition: opacity 0.45s var(--ease);
  pointer-events: none;
}
.nat-slide.is-active { position: relative; opacity: 1; visibility: visible; pointer-events: auto; }
.home-natal-wheel { width: 100%; max-width: 400px; aspect-ratio: 1 / 1; margin: 0 auto; }

/* fact cards — houses / aspects */
.nat-fact-card {
  width: 100%; max-width: 360px; padding: 44px 28px;
  border: 1px solid var(--line); border-radius: 10px;
  background:
    radial-gradient(ellipse at 50% 30%, rgba(201,168,109,0.09), transparent 60%),
    linear-gradient(180deg, #141225, #0d0b18);
  text-align: center;
}
.nfc-house { font-family: var(--f-display); font-size: 68px; color: var(--gold); line-height: 1; }
.nfc-glyphs { font-size: 36px; letter-spacing: 0.14em; color: var(--gold-2); margin-top: 12px; }
.nfc-aspect { display: flex; align-items: center; justify-content: center; gap: 22px; font-size: 56px; color: var(--gold); }
.nfc-aspect .op { color: var(--gold-2); font-size: 40px; }
.nfc-caption {
  margin-top: 20px; font-family: var(--f-mono); font-size: 12px;
  letter-spacing: 0.1em; text-transform: uppercase; color: var(--text-3);
}

/* element / modality bars */
.nat-bars {
  width: 100%; max-width: 360px; display: flex; flex-direction: column; gap: 16px;
  padding: 30px 28px; border: 1px solid var(--line); border-radius: 10px;
  background: linear-gradient(180deg, #141225, #0d0b18);
}
.nat-bar { display: grid; grid-template-columns: 90px 1fr 46px; align-items: center; gap: 12px; }
.nb-label { font-family: var(--f-mono); font-size: 12px; letter-spacing: 0.06em; text-transform: uppercase; color: var(--text-2); text-align: left; }
.nb-track { height: 8px; border-radius: 4px; background: rgba(255,255,255,0.06); overflow: hidden; }
.nb-fill { display: block; height: 100%; border-radius: 4px; background: var(--gold); }
.nb-pct { font-family: var(--f-mono); font-size: 13px; color: var(--gold-2); text-align: right; }
.nat-bar[data-el="fire"]  .nb-fill { background: var(--nb-fire); }
.nat-bar[data-el="earth"] .nb-fill { background: var(--nb-earth); }
.nat-bar[data-el="air"]   .nb-fill { background: var(--nb-air); }
.nat-bar[data-el="water"] .nb-fill { background: var(--nb-water); }

/* dots */
.natal-dots { display: flex; gap: 8px; justify-content: center; margin-top: 22px; }
.nat-dot {
  width: 8px; height: 8px; border-radius: 50%; border: none; padding: 0; cursor: pointer;
  background: rgba(201,168,109,0.28); transition: transform 0.3s var(--ease), background 0.3s var(--ease);
}
.nat-dot.is-active { background: var(--gold); transform: scale(1.35); }

/* right reading panel */
.natal-reading-col { text-align: left; }
.nr-kicker { font-family: var(--f-mono); font-size: 12px; letter-spacing: 0.22em; text-transform: uppercase; color: var(--gold-2); }
.nr-fact { font-family: var(--f-display); font-size: 26px; color: var(--text); margin: 10px 0 16px; line-height: 1.25; }
.nr-text { font-family: var(--f-display); font-size: 19px; line-height: 1.7; color: var(--text-2); margin-bottom: 26px; }

@media (max-width: 860px) {
  .natal-split { grid-template-columns: 1fr; gap: 22px; }
  .natal-stage { min-height: 380px; }
  .natal-reading-col { text-align: center; }
}

/* ═══════ Shared: collapse/expand reading bodies ═══════ */
/* Inner scrollers steal the page's wheel scroll. Instead, reading bodies are
   collapsed to a preview (no inner scroll) and "read more" unlocks the FULL
   content inline so the page scrolls naturally. */
.exp-body { position: relative; overflow: hidden; }
.exp-body.is-clamped {
  max-height: var(--exp-h, 440px);
  -webkit-mask-image: linear-gradient(180deg, #000 72%, transparent);
          mask-image: linear-gradient(180deg, #000 72%, transparent);
}
.read-more {
  align-self: flex-start; margin-top: 16px; cursor: pointer;
  background: none; border: 1px solid var(--gold-dim); color: var(--gold-2);
  font-family: var(--f-mono); font-size: 11px; letter-spacing: 0.16em; text-transform: uppercase;
  padding: 9px 18px; border-radius: 999px; transition: background 0.25s var(--ease), color 0.25s var(--ease);
}
.read-more:hover { background: rgba(201,168,109,0.12); color: var(--gold); }
.read-more.is-hidden { display: none; }

/* ═══════ Section 3 · Deep dive (archetype → deep analysis) ═══════ */
.deepdive-split-section { padding: 40px 0 72px; text-align: center; }
.deepdive-wrap { max-width: 1180px; margin: 28px auto 0; padding: 0 24px; }
.deepdive-wrap:focus { outline: none; }

/* shared header on top */
.dd-topbar { display: flex; align-items: center; justify-content: center; gap: 22px; margin-bottom: 24px; }
.dd-topbar .cf-nav { position: static; transform: none; }   /* inline in the bar, not absolute */
.dd-topic { min-width: 300px; }
.dd-topic-label { display: block; font-family: var(--f-mono); font-size: 12px; letter-spacing: 0.22em; text-transform: uppercase; color: var(--gold-2); }
.dd-topic-arch { display: block; font-family: var(--f-display); font-style: italic; font-size: 26px; color: var(--gold); margin-top: 4px; }

/* two panels; the deep-dive collapses to a preview + "read more" (no inner
   scroller stealing the page scroll), so align-items:start lets it grow alone */
.deepdive-panels {
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.25fr);
  gap: 28px; align-items: start; text-align: left;
}
.dd-panel {
  border: 1px solid var(--line); border-radius: 12px;
  background: linear-gradient(180deg, #141225, #0d0b18);
  padding: 28px 30px; display: flex; flex-direction: column;
}
.dd-panel-cap { font-family: var(--f-mono); font-size: 11px; letter-spacing: 0.2em; text-transform: uppercase; color: var(--gold-dim); margin-bottom: 16px; }
.dd-panel-short { justify-content: flex-start; }   /* essence aligned to the top */
.dd-panel-short .dd-short-text { font-family: var(--f-display); font-size: 21px; line-height: 1.7; color: var(--text); margin: 0; }
.dd-panel-ext .exp-body { --exp-h: 360px; }
.dd-ext-p { font-family: var(--f-display); font-size: 17px; line-height: 1.74; color: var(--text-2); margin: 0 0 15px; }
.dd-ext-p:last-child { margin-bottom: 0; }
/* astrological facts stay visible in the text — styled like a deep-dive link */
.dd-fact {
  color: var(--gold-2); font-style: italic;
  border-bottom: 1px dashed var(--gold-dim); padding-bottom: 1px;
}
.dd-ext-p { font-family: var(--f-display); font-size: 17px; line-height: 1.74; color: var(--text-2); margin: 0 0 15px; }
.dd-ext-p:last-child { margin-bottom: 0; }
/* astrological facts stay visible in the text — styled like a deep-dive link */
.dd-fact {
  color: var(--gold-2); font-style: italic;
  border-bottom: 1px dashed var(--gold-dim); padding-bottom: 1px;
}

.dd-dots { display: flex; gap: 8px; justify-content: center; margin-top: 26px; }
.dd-cta { text-align: center; margin-top: 22px; }

@media (max-width: 860px) {
  .deepdive-panels { grid-template-columns: 1fr; gap: 18px; }
  .dd-topic { min-width: 0; }
  .dd-panel-short { text-align: center; }
}

/* ═══════ Section 4 · Compatibility (real examples) ═══════ */
.compat-split-section { padding: 40px 0 72px; text-align: center; }
.compat-wrap { max-width: 1180px; margin: 28px auto 0; padding: 0 24px; }
.compat-wrap:focus { outline: none; }
.cx-topbar { display: flex; align-items: center; justify-content: center; gap: 22px; margin-bottom: 24px; }
.cx-topbar .cf-nav { position: static; transform: none; }
.cx-topic { min-width: 300px; }
.cx-kicker { display: block; font-family: var(--f-mono); font-size: 12px; letter-spacing: 0.22em; text-transform: uppercase; color: var(--gold-2); }
.cx-pair { display: block; font-family: var(--f-display); font-style: italic; font-size: 26px; color: var(--gold); margin-top: 4px; }

.compat-panels { display: grid; grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr); gap: 28px; align-items: start; text-align: left; }
.cx-panel { border: 1px solid var(--line); border-radius: 12px; background: linear-gradient(180deg, #141225, #0d0b18); padding: 28px 30px; display: flex; flex-direction: column; }
.cx-panel-cap { font-family: var(--f-mono); font-size: 11px; letter-spacing: 0.2em; text-transform: uppercase; color: var(--gold-dim); margin-bottom: 16px; }
.cx-panel-summary { align-items: center; text-align: center; justify-content: flex-start; }
.cx-score-wrap { margin: 12px 0 22px; }
.cx-score-ring {
  width: 132px; height: 132px; border-radius: 50%;
  display: grid; place-items: center;
  font-family: var(--f-display); font-size: 36px; color: var(--gold);
  border: 2px solid var(--gold-dim);
  background: radial-gradient(circle at 50% 38%, rgba(201,168,109,0.14), transparent 70%);
  box-shadow: 0 0 0 6px rgba(201,168,109,0.05);
}
.cx-hero { font-family: var(--f-display); font-size: 18px; line-height: 1.66; color: var(--text-2); margin: 0; }
.cx-hero .cx-dim-p { font-size: inherit; line-height: inherit; margin: 0 0 10px; }
.cx-hero .cx-dim-p:last-child { margin-bottom: 0; }

.cx-panel-dims .exp-body { --exp-h: 380px; }
.cx-dim { margin-bottom: 22px; }
.cx-dim:last-child { margin-bottom: 0; }
.cx-dim-head { display: flex; align-items: center; gap: 14px; margin-bottom: 9px; }
.cx-dim-name { font-family: var(--f-mono); font-size: 12px; letter-spacing: 0.05em; text-transform: uppercase; color: var(--text); white-space: nowrap; }
/* The split bar (REQ-592) — harmony left, tension right, in the canonical
   polarity tokens the result page and the synastry grid both draw in. Was a
   single gold fill scaled from a 0-5 score the pipeline no longer emits. */
.cx-dim-track { flex: 1; display: flex; height: 6px; border-radius: 3px; background: rgba(255,255,255,0.06); overflow: hidden; }
.cx-dim-harmony { display: block; height: 100%; background: var(--harmony); }
.cx-dim-tension { display: block; height: 100%; background: var(--tension); }
/* An axis no aspect touches: an empty track, never a half-filled one. */
.cx-dim-track--empty { opacity: 0.45; }
.cx-dim-side { font-family: var(--f-mono); font-size: 10px; letter-spacing: 0.12em; text-transform: uppercase; margin: 0 0 5px; }
.cx-dim-side--harmony { color: var(--harmony); }
.cx-dim-side--tension { color: var(--tension); margin-top: 12px; }
.cx-dim-p { font-family: var(--f-display); font-size: 16px; line-height: 1.7; color: var(--text-2); margin: 0 0 8px; }
.cx-dim-p:last-child { margin-bottom: 0; }

@media (max-width: 860px) {
  .compat-panels { grid-template-columns: 1fr; gap: 18px; }
  .cx-topic { min-width: 0; }
  .cx-panel-summary { text-align: center; }
}

/* ═══════ Section 4c · Astrologer chat (animated) ═══════ */
.chat-split-section { padding: 40px 0 72px; text-align: center; }
.chat-wrap { max-width: 720px; margin: 28px auto 0; padding: 0 24px; }
.chat-wrap:focus { outline: none; }
.ch-topbar { display: flex; align-items: center; justify-content: center; gap: 22px; margin-bottom: 22px; }
.ch-topbar .cf-nav { position: static; transform: none; }
.ch-topic { min-width: 220px; }
.ch-kicker { display: block; font-family: var(--f-mono); font-size: 12px; letter-spacing: 0.22em; text-transform: uppercase; color: var(--gold-2); }
.ch-topic-name { display: block; font-family: var(--f-display); font-style: italic; font-size: 24px; color: var(--gold); margin-top: 4px; }

.ch-window {
  border: 1px solid var(--line); border-radius: 16px; overflow: hidden;
  background: linear-gradient(180deg, #141225, #0d0b18);
  box-shadow: 0 24px 60px -20px rgba(0,0,0,0.6);
  text-align: left;
}
.ch-header {
  display: flex; align-items: center; gap: 12px; padding: 15px 20px;
  border-bottom: 1px solid var(--line); background: rgba(255,255,255,0.02);
}
.ch-avatar {
  width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center;
  font-size: 20px; color: var(--bg); background: linear-gradient(180deg, var(--gold-2), var(--gold));
}
.ch-header-info { display: flex; flex-direction: column; }
.ch-name { font-family: var(--f-display); font-size: 17px; color: var(--text); }
.ch-status { font-family: var(--f-mono); font-size: 11px; letter-spacing: 0.1em; color: var(--gold-dim); }

/* grows with the animated conversation — no inner scroll (which steals the
   page scroll); the whole dialogue unfolds inline and the page scrolls */
/* REQ-769 — a FIXED height, not a floor. `min-height` let the box grow as
   messages were appended, and everything below the section jumped: measured
   2026-08-30, `#chat-demo` went 847px → 1098px while scrolling past it, the
   largest single contributor to a home-page CLS of 0.313 ("poor" is >0.25).

   The script already calls `scrollDown()` after every bubble — it always
   expected a scroll container and never got one, so the call did nothing.
   Pinning the height makes the existing code do its job.

   Deliberately not a tuned `min-height`: the settled height depends on the
   text, and Bulgarian runs longer than English, so a number calibrated in one
   locale is wrong in the other. A fixed box scrolls in every language. */
.ch-messages {
  height: 380px;
  overflow-y: auto;
  overscroll-behavior: contain;
  padding: 22px 20px; display: flex; flex-direction: column; gap: 12px;
}

.ch-msg {
  max-width: 82%; padding: 12px 16px; border-radius: 16px;
  font-family: var(--f-display); font-size: 16px; line-height: 1.55;
  opacity: 0; transform: translateY(12px);
  transition: opacity 0.35s var(--ease), transform 0.35s var(--ease);
}
.ch-msg.is-in { opacity: 1; transform: none; }
.ch-msg-user {
  align-self: flex-end; color: var(--bg);
  background: linear-gradient(180deg, var(--gold-2), var(--gold));
  border-bottom-right-radius: 4px;
}
.ch-msg-astro {
  align-self: flex-start; color: var(--text);
  background: rgba(255,255,255,0.05); border: 1px solid var(--line);
  border-bottom-left-radius: 4px;
}
.ch-msg-astro .dd-fact { color: var(--gold-2); border-bottom: 1px dashed var(--gold-dim); }

.ch-typing { display: flex; gap: 5px; align-items: center; padding: 15px 16px; }
.ch-typing span {
  width: 7px; height: 7px; border-radius: 50%; background: var(--gold-dim);
  animation: chTyping 1.2s infinite ease-in-out;
}
.ch-typing span:nth-child(2) { animation-delay: 0.18s; }
.ch-typing span:nth-child(3) { animation-delay: 0.36s; }
@keyframes chTyping {
  0%, 60%, 100% { transform: translateY(0); opacity: 0.4; }
  30% { transform: translateY(-5px); opacity: 1; }
}

.chat-wrap .dd-dots { margin-top: 22px; }
@media (max-width: 860px) { .ch-topic { min-width: 0; } .ch-msg { max-width: 88%; } }

/* ═══════ Section 6 · Heraldry (real coats of arms) ═══════ */
.heraldry-split-section { padding: 40px 0 72px; text-align: center; }
.heraldry-wrap { max-width: 1180px; margin: 28px auto 0; padding: 0 24px; }
.heraldry-wrap:focus { outline: none; }

/* shared header on top */
.hx-topbar { display: flex; align-items: center; justify-content: center; gap: 22px; margin-bottom: 24px; }
.hx-topbar .cf-nav { position: static; transform: none; }
.hx-topic { min-width: 220px; }
.hx-kicker { display: block; font-family: var(--f-mono); font-size: 12px; letter-spacing: 0.22em; text-transform: uppercase; color: var(--gold-2); }
.hx-name { display: block; font-family: var(--f-display); font-style: italic; font-size: 26px; color: var(--gold); margin-top: 4px; }

/* shield (+ motto) left · reading right. The reading is collapsed to a preview
   (no inner scroller — that would steal the page scroll); "read more" unlocks
   the full text inline. align-items:start so an expanded reading grows on its
   own without stretching the shield. */
.heraldry-panels {
  display: grid; grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: 34px; align-items: start; text-align: left;
}
.hx-shield-col {
  display: flex; flex-direction: column; align-items: center; justify-content: flex-start;
  gap: 24px;
  border: 1px solid var(--line); border-radius: 14px;
  background: radial-gradient(120% 90% at 50% 20%, #171331, #0b0a16 70%);
  padding: 30px 26px;
}
.hx-shield {
  /* REQ-769 — same as `.tk-pendant`; ratio from the markup's 480×853. */
  aspect-ratio: 480 / 853;
  display: block; width: 100%; max-width: 300px; height: auto; border-radius: 8px;
  filter: drop-shadow(0 22px 40px rgba(0,0,0,0.55));
}

/* motto — now lives on the shield, under the coat of arms */
.hx-motto { text-align: center; width: 100%; }
.hx-motto-latin {
  display: block; font-family: var(--f-display); font-style: italic;
  font-size: 25px; line-height: 1.25; color: var(--gold);
  letter-spacing: 0.01em;
}
.hx-motto-tr {
  display: block; font-family: var(--f-display); font-style: italic;
  font-size: 18px; line-height: 1.4; color: var(--text-2); margin-top: 10px;
}

/* reading panel — collapse/expand, no inner scroll */
.hx-panel {
  border: 1px solid var(--line); border-radius: 14px;
  background: linear-gradient(180deg, #141225, #0d0b18);
}
.hx-reading { display: flex; flex-direction: column; padding: 30px 32px; }
.hx-reading .exp-body { --exp-h: 500px; }

/* motto interpretation (why this motto) */
.hx-interp { margin-bottom: 22px; }
.hx-p { font-family: var(--f-display); font-size: 17px; line-height: 1.72; color: var(--text-2); margin: 0 0 13px; }
.hx-p:last-child { margin-bottom: 0; }

/* section cap uses the exact same font + colour as the symbolism sub-heads */
.hx-panel-cap { font-family: var(--f-mono); font-size: 12px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--gold-2); margin-bottom: 14px; }

/* symbolism blocks (inside the shared scroller) */
.hx-sym-head {
  font-family: var(--f-mono); font-size: 12px; letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--gold-2); margin: 18px 0 8px;
}
.hx-sym-head:first-child { margin-top: 0; }
/* symbolism prose matches the interpretation prose exactly (same .hx-p) */

/* astrological facts stay visible in the reading, styled like a deep-dive link */
.hx-fact { color: var(--gold-2); font-style: italic; border-bottom: 1px dashed var(--gold-dim); padding-bottom: 1px; }

/* Lineage — the house's founding history (REQ-574) */
.hx-lineage { margin-top: 26px; padding-top: 22px; border-top: 1px solid var(--line-soft, rgba(201,168,109,0.14)); }
.hx-lin-house { font-family: var(--f-display); font-style: italic; font-size: 24px; color: var(--gold); line-height: 1.2; margin-bottom: 4px; }
.hx-lin-epithet { font-family: var(--f-mono); font-size: 10px; letter-spacing: 0.2em; text-transform: uppercase; color: var(--text-3); margin-bottom: 18px; }
.hx-lin-facts { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1px; background: var(--line-soft, rgba(201,168,109,0.14)); border: 1px solid var(--line-soft, rgba(201,168,109,0.14)); margin-bottom: 20px; }
@media (max-width: 560px) { .hx-lin-facts { grid-template-columns: 1fr; } }
.hx-lin-fact { background: var(--bg, #0b0a12); padding: 12px 15px; display: flex; flex-direction: column; gap: 4px; }
.hx-lin-fact-l { font-family: var(--f-mono); font-size: 9px; letter-spacing: 0.18em; text-transform: uppercase; color: var(--text-3); }
.hx-lin-fact-v { font-family: var(--f-display); font-size: 16px; color: var(--text); line-height: 1.3; }
.hx-lin-founding { font-family: var(--f-display); font-size: 17px; line-height: 1.7; color: var(--text-2); padding: 16px 18px; border-left: 2px solid var(--gold-dim); background: rgba(168,135,46,0.04); margin: 0 0 18px; }

.hx-cta { align-self: flex-start; margin-top: 20px; flex-shrink: 0; }
.heraldry-wrap .dd-dots { margin-top: 26px; }

@media (max-width: 860px) {
  .heraldry-panels { grid-template-columns: 1fr; gap: 20px; }
  .hx-topic { min-width: 0; }
  .hx-shield { max-width: 240px; }
  .hx-reading { padding: 26px 24px; }
  .hx-reading .exp-body { --exp-h: 340px; }
  .hx-cta { align-self: stretch; text-align: center; }
}

/* ═══════ Section 7 · Talisman (real generated personal talismans) ═══════ */
/* Pendants are photorealistic goldsmith shots on a lit studio backdrop, so a
   near-black panel + a soft radial edge-mask blends the studio bg seamlessly —
   no per-pixel transparency (which halos on gradient backgrounds). */
.tk-pendant-col {
  background: radial-gradient(120% 90% at 50% 34%, #14121c, #050506 78%);
  padding: 22px;
}
.tk-pendant {
  /* REQ-769 — the box before the bytes. `src` is empty until the script fills
     it, and with `height: auto` the element had no height at all until then,
     so the section grew 200px under the reader's thumb. The ratio is the one
     the markup already declares (512×512). */
  aspect-ratio: 512 / 512;
  display: block; width: 100%; max-width: 320px; height: auto; border-radius: 10px;
  -webkit-mask-image: radial-gradient(118% 76% at 50% 46%, #000 60%, transparent 92%);
          mask-image: radial-gradient(118% 76% at 50% 46%, #000 60%, transparent 92%);
}

/* material composition = the pendant's "title", captioned under the image */
.tk-caption { width: 100%; display: flex; flex-direction: column; align-items: center; gap: 14px; }
.tk-cap-grid {
  display: flex; flex-wrap: wrap; justify-content: center; gap: 10px 26px;
  padding-top: 4px;
}
.tk-cap-item { display: flex; flex-direction: column; align-items: center; gap: 3px; }
.tk-cap-label { font-family: var(--f-mono); font-size: 10px; letter-spacing: 0.18em; text-transform: uppercase; color: var(--gold-dim); }
.tk-cap-val { font-family: var(--f-display); font-style: italic; font-size: 18px; line-height: 1.15; color: var(--gold); }
.tk-cap-colors { display: flex; gap: 10px; }
.tk-swatch { width: 16px; height: 16px; border-radius: 50%; border: 1px solid var(--line); box-shadow: 0 0 0 1px rgba(0,0,0,0.4) inset; }

@media (max-width: 860px) {
  .tk-pendant { max-width: 240px; }
  .tk-cap-grid { gap: 10px 18px; }
}

/* =========================================================================
   MOBILE MARKETING STRATEGY (M1–M6)
   Mobile-only surgical layer that makes the marketing messages land on phones.
   Every rule is scoped to a mobile media query (or is visually inert on
   desktop, e.g. scroll-margin-top) so the desktop layout is untouched.
   ========================================================================= */

/* M1 — hero proof visual (portrait tarot card). Hidden by default so desktop
   never renders or fetches a second image; shown only on phones. */
.hero-proof { display: none; }

/* M5 — mobile persistent conversion bar. Hidden by default; the ≤700px block
   turns it into a fixed bottom bar, and JS toggles .is-visible. */
.m-sticky-cta { display: none; }

/* M6 — anchor landing offset for the sticky header (~56px). Visually inert:
   only affects where in-page anchor scrolls stop, so it is desktop-safe. */
#hero, #natal-demo, #deepdive-demo, #compat-demo,
#chat-demo, #heraldry-demo, #talisman-demo, #home-blog {
  scroll-margin-top: 64px;
}

@media (max-width: 700px) {
  /* ── M1 · Hero: kill the dead vertical void, raise proof + hook + CTA ── */
  #hero {
    min-height: auto;
    place-items: start center;   /* was center → no ~150px empty band on top */
    padding: 18px 20px 32px;
  }
  .hero-inner { gap: 14px; }
  /* REQ-768 (a) — no tarot card in the hero on a phone. This block used to
     turn `.hero-proof` on below 700px, which is the inverse of the canonical
     rule in `UX/tarotscope-design-guidelines.md` §12: "Hero tarot cards:
     Hidden below 1024px. The text content carries the hero alone." At 390px it
     rendered a 128×239 card centred over the playing background video and
     competed with the wheel instead of proving anything. The base
     `.hero-proof { display: none }` above now holds at every width; re-making
     the proof-above-the-fold argument means changing the guidelines first. */
  .hero-h1 { animation-delay: 0.5s; font-size: clamp(28px, 8vw, 40px); }
  .hero-btns { animation-delay: 0.8s; margin-top: 2px; }
  .hero-friction { animation-delay: 1s; }
  .scroll-hint { display: none; }  /* content now fills the fold; hint was noise */

  /* ── M5 · Sticky conversion bar ── */
  .m-sticky-cta {
    display: flex; flex-direction: column; align-items: center; gap: 3px;
    position: fixed; left: 12px; right: 12px;
    bottom: calc(12px + env(safe-area-inset-bottom, 0px));
    z-index: 45;
    padding: 11px 18px;
    background: linear-gradient(180deg, var(--gold-2) 0%, var(--gold) 100%);
    color: var(--bg);
    border-radius: 12px;
    text-align: center; text-decoration: none;
    box-shadow: 0 12px 34px -10px rgba(0,0,0,0.78), 0 0 0 1px rgba(11,10,18,0.15);
    transform: translateY(150%);
    opacity: 0;
    transition: transform 320ms var(--ease), opacity 320ms var(--ease);
    pointer-events: none;
  }
  .m-sticky-cta.is-visible { transform: none; opacity: 1; pointer-events: auto; }
  .msc-label {
    font-family: var(--f-display); font-weight: 600;
    font-size: 17px; line-height: 1.1; letter-spacing: 0.01em;
  }
  .msc-sub {
    font-family: var(--f-mono); font-size: 9px; line-height: 1.2;
    letter-spacing: 0.14em; text-transform: uppercase; opacity: 0.82;
  }

  /* ── M3 · Carousel dots: keep the 9px visual, extend the hit area to ~44px
     tall (padding + content-box clip). Full 44px width per dot is impossible
     for 9-in-a-row on 390px, so the arrows carry the primary nav (now 44px). ── */
  .natal-dots, .dd-dots { gap: 2px; }
  .nat-dot {
    box-sizing: content-box;
    width: 9px; height: 9px;
    padding: 17px 9px;              /* → 43px tall × 27px wide tap area */
    background-clip: content-box;
  }
  /* .is-active sets `background:` (shorthand) which resets background-clip to
     border-box → the gold would flood the whole padded box as a tall pill.
     Re-pin the clip so the active dot stays a small circle. */
  .nat-dot.is-active { background-clip: content-box; }

  /* ── M2 · Vertical compression: trim the tall demo sections so the value-prop
     spine arrives sooner and the page stops being ~14.6 screens tall. ── */
  .carousel-section { padding: 22px 0 26px; }
  .natal-split-section { padding: 24px 0 30px; }
  .deepdive-split-section,
  .compat-split-section,
  .chat-split-section,
  .heraldry-split-section { padding: 24px 0 30px; }
  .deepdive-wrap, .compat-wrap, .chat-wrap, .heraldry-wrap { margin-top: 16px; }
  .home-section { padding: 26px 20px; }
  /* Leave room so the sticky bar never covers the last section's own CTA. */
  .final-cta { padding-bottom: 96px; }
}

/* =========================================================================
   Section 10 — Pricing (free-first price list)
   ========================================================================= */
#pricing .pr-grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 28px;
  align-items: stretch;
  max-width: 980px;
  margin: 8px auto 0;
}
#pricing .pr-coin { color: var(--gold); font-style: normal; }

/* FREE — the marketing focus, gold-framed and dominant */
#pricing .pr-free {
  position: relative;
  display: flex; flex-direction: column;
  padding: 42px 34px 34px;
  border: 1px solid var(--gold);
  border-radius: 4px;
  background:
    radial-gradient(120% 100% at 50% 0%, rgba(201, 168, 109, 0.10), transparent 62%),
    var(--bg-card);
  box-shadow: 0 24px 60px -34px rgba(0, 0, 0, 0.85);
  text-align: center;
}
#pricing .pr-free-badge {
  position: absolute;
  top: -12px; left: 50%; transform: translateX(-50%);
  font-family: var(--f-mono);
  font-size: 10.5px; letter-spacing: 0.22em; text-transform: uppercase;
  color: #0b0a12;
  background: linear-gradient(180deg, var(--gold-2), var(--gold));
  padding: 5px 14px; border-radius: 2px;
  white-space: nowrap;
}
#pricing .pr-welcome {
  display: flex; flex-direction: column; align-items: center;
  gap: 4px; margin: 8px 0 24px;
}
#pricing .pr-welcome-coins {
  font-family: var(--f-display);
  font-size: clamp(44px, 6vw, 60px);
  line-height: 1;
  font-weight: 600;
  color: var(--gold-2);
}
#pricing .pr-welcome-label {
  font-family: var(--f-mono);
  font-size: 11px; letter-spacing: 0.2em; text-transform: uppercase;
  color: var(--text-2);
}
#pricing .pr-free-list {
  list-style: none; margin: 0 0 28px; padding: 0;
  align-self: center; text-align: left;
  display: flex; flex-direction: column; gap: 13px;
}
#pricing .pr-free-list li {
  display: flex; align-items: center; gap: 12px;
  font-family: var(--f-display); font-size: 19px; color: var(--text);
}
#pricing .pr-check { flex: 0 0 auto; font-size: 13px; color: var(--gold); }
#pricing .pr-free-cta { margin-top: auto; align-self: center; }

/* PAID — secondary weight */
#pricing .pr-paid {
  display: flex; flex-direction: column;
  padding: 34px 30px;
  border: 1px solid var(--line);
  border-radius: 4px;
  background: var(--bg-2);
}
#pricing .pr-paid-cap {
  font-family: var(--f-mono);
  font-size: 11px; letter-spacing: 0.24em; text-transform: uppercase;
  color: var(--gold-dim);
  margin-bottom: 18px;
}
#pricing .pr-price-list { list-style: none; margin: 0; padding: 0; }
#pricing .pr-price-row {
  display: flex; align-items: baseline; justify-content: space-between;
  gap: 16px; padding: 14px 0;
  border-bottom: 1px solid var(--line-soft);
}
#pricing .pr-price-name {
  font-family: var(--f-display); font-size: 19px; color: var(--text);
}
#pricing .pr-price-hint {
  display: block; margin-top: 4px;
  font-family: var(--f-mono); font-size: 10.5px; letter-spacing: 0.12em;
  text-transform: uppercase; color: var(--text-3);
}
#pricing .pr-price-val {
  flex: 0 0 auto; white-space: nowrap;
  font-family: var(--f-display); font-size: 24px; color: var(--gold-2);
}
#pricing .pr-price-soon .pr-price-name,
#pricing .pr-price-soon .pr-price-val { color: var(--text-3); }
#pricing .pr-price-soon .pr-price-hint { color: var(--gold-dim); }
/* PREMIUM — own showcase so flagship products aren't buried */
#pricing .pr-premium {
  max-width: 980px;
  margin: 24px auto 0;
  padding: 30px 30px 32px;
  border: 1px solid var(--line);
  border-radius: 4px;
  background:
    radial-gradient(140% 120% at 0% 0%, rgba(201, 168, 109, 0.06), transparent 55%),
    var(--bg-card);
}
#pricing .pr-premium-head {
  display: flex; align-items: flex-end; justify-content: space-between;
  gap: 20px; flex-wrap: wrap;
  padding-bottom: 20px; margin-bottom: 22px;
  border-bottom: 1px solid var(--line);
}
#pricing .pr-premium-kicker {
  font-family: var(--f-mono);
  font-size: 11px; letter-spacing: 0.24em; text-transform: uppercase;
  color: var(--gold-dim); margin-bottom: 8px;
}
#pricing .pr-premium-title {
  font-family: var(--f-display); font-weight: 500;
  font-size: clamp(24px, 3vw, 32px); line-height: 1.05;
  color: var(--text); margin: 0;
}
#pricing .pr-premium-price {
  font-family: var(--f-display); font-size: 30px; color: var(--gold-2);
  white-space: nowrap;
}
#pricing .pr-premium-each {
  font-family: var(--f-mono); font-size: 10.5px; letter-spacing: 0.2em;
  text-transform: uppercase; color: var(--text-3); margin-left: 8px;
}
#pricing .pr-premium-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(230px, 1fr));
  gap: 14px;
}
#pricing .pr-premium-card {
  display: flex; flex-direction: column;
  padding: 16px 18px;
  border: 1px solid var(--line-soft);
  border-radius: 3px;
  background: var(--bg-2);
  text-decoration: none;
}
#pricing .pr-premium-name {
  font-family: var(--f-display); font-size: 18px; color: var(--gold-2);
  margin-bottom: 5px;
}
#pricing .pr-premium-desc {
  font-family: var(--f-sans); font-size: 12.5px; line-height: 1.55;
  color: var(--text-2);
}
#pricing .pr-premium-sample {
  margin-top: 10px;
  font-family: var(--f-mono); font-size: 10.5px; letter-spacing: 0.16em;
  text-transform: uppercase; color: var(--gold-dim);
  transition: color 180ms var(--ease), transform 180ms var(--ease);
}
#pricing .pr-premium-card--link {
  transition: border-color 180ms var(--ease), transform 180ms var(--ease), background 180ms var(--ease);
}
#pricing .pr-premium-card--link:hover {
  border-color: var(--gold-dim);
  background: var(--surface-2);
  transform: translateY(-2px);
}
#pricing .pr-premium-card--link:hover .pr-premium-sample {
  color: var(--gold-2);
}

/* Top-up strip — buy more coins (full width, clearly visible card) */
#pricing .pr-topup {
  max-width: 980px;
  margin: 22px auto 0;
  padding: 18px 24px;
  border: 1px solid var(--line);
  border-radius: 4px;
  background: var(--bg-2);
  display: flex; align-items: center; justify-content: center;
  flex-wrap: wrap; gap: 12px 18px;
}
#pricing .pr-topup-label {
  font-family: var(--f-mono); font-size: 11px; letter-spacing: 0.18em;
  text-transform: uppercase; color: var(--gold-dim);
}
#pricing .pr-topup-opts {
  display: flex; flex-wrap: wrap; gap: 10px; justify-content: center;
}
#pricing .pr-topup-chip {
  font-family: var(--f-sans); font-size: 13px; color: var(--text);
  padding: 8px 15px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--surface);
  white-space: nowrap;
}
#pricing .pr-topup-chip strong { color: var(--gold-2); font-weight: 600; }

@media (max-width: 760px) {
  #pricing .pr-grid { grid-template-columns: 1fr; max-width: 460px; }
  #pricing .pr-premium, #pricing .pr-topup { max-width: 460px; }
  #pricing .pr-premium-grid { grid-template-columns: 1fr; }
}

/* ═══════ Loading placeholder — REQ-769 ═══════
   Content that arrives after first paint used to arrive by GROWING its box, so
   everything below it jumped. Measured 2026-08-30 while scrolling the home
   page: `#chat-demo` 847→1098px, `#talisman-demo` 1383→1583px, and a CLS of
   0.313 — "poor" is anything above 0.25. The blog and the example reading both
   measured 0.000, so it was never the page weight; it was the boxes.

   Two halves, and the second is why this is a component rather than a
   `min-height`. The box reserves its final size up front (`aspect-ratio`, from
   the same width/height the markup already declares), and the reserved space
   shows THIS until the content lands — otherwise the fix trades a jump for a
   hole, which reads as a broken page rather than a loading one.

   The motif is a transit ring: the wheel, its twelve house divisions, and one
   body moving through them. Drawn as geometry — a border, a repeating conic
   gradient, an orbiting dot — so it draws no astrological SYMBOL by hand and
   uses no Unicode zodiac character (§4 forbids both; the canon for symbols is
   `astro-glyphs-d3.js`). Gold on dark, one revolution every eight seconds:
   §15 forbids "animations that distract from reading", so this is slow enough
   to read as breathing rather than as a spinner demanding attention. */
.ts-loader {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  pointer-events: none;
}
.ts-loader::before {
  /* the wheel, and its twelve houses */
  content: "";
  width: min(58%, 148px);
  aspect-ratio: 1;
  border-radius: 50%;
  border: 1px solid color-mix(in srgb, var(--gold) 38%, transparent);
  background: repeating-conic-gradient(
    from 0deg,
    color-mix(in srgb, var(--gold) 22%, transparent) 0deg 0.8deg,
    transparent 0.8deg 30deg);
  mask-image: radial-gradient(circle, transparent 58%, #000 60%);
  -webkit-mask-image: radial-gradient(circle, transparent 58%, #000 60%);
}
.ts-loader::after {
  /* one body, transiting */
  content: "";
  position: absolute;
  width: min(58%, 148px);
  aspect-ratio: 1;
  border-radius: 50%;
  background:
    radial-gradient(circle 3.5px at 50% 0%,
      var(--gold-2) 0 55%,
      color-mix(in srgb, var(--gold) 40%, transparent) 70%,
      transparent 72%);
  animation: ts-transit 8s linear infinite;
}
@keyframes ts-transit {
  to { transform: rotate(360deg); }
}
/* The ring still reserves the space and still reads as "not yet here" without
   the orbit — the motion is atmosphere, never the message. */
@media (prefers-reduced-motion: reduce) {
  .ts-loader::after { animation: none; }
}
/* The wrapper exists only to give the loader something to be absolute inside;
   it inherits the image's reserved ratio so nothing moves when it goes. */
.ts-media {
  position: relative;
  display: block;
  width: 100%;
}
.ts-media.is-loaded .ts-loader { display: none; }

/* The wrappers inherit the width constraint the images carried, so the
   reserved box is exactly the box the image will occupy. */
.hx-shield-media { max-width: 300px; }
.tk-pendant-media { max-width: 320px; }
@media (max-width: 720px) {
  .hx-shield-media { max-width: 240px; }
  .tk-pendant-media { max-width: 240px; }
}
