/* ═══════════════════════════════════════════════════════════════════════
   THE JOURNEY — progressive reveal
   Loaded on every public page (a discovery can open anywhere). Every rule is
   scoped under .jn-, so this never touches anything else. Colours come from the
   style.css tokens only; type is Cinzel / Inter / JetBrains Mono, nothing else.
   ═══════════════════════════════════════════════════════════════════════ */

/* ── The seal sigil ───────────────────────────────────────────────────── */
.jn-seal,
.jn-announce-seal { display: block; width: 34px; height: 34px; flex: 0 0 34px; color: var(--gold-dim); }
.jn-seal svg,
.jn-announce-seal svg { width: 100%; height: 100%; display: block; }
.jn-card.is-open .jn-seal { color: var(--gold-light); }
.jn-announce-seal { color: var(--gold-light); width: 40px; height: 40px; flex-basis: 40px; }

/* Only the open seal turns — a sealed one sits still, because nothing about it
   is moving yet. Honours reduced-motion (the whole animation is dropped). */
@media (prefers-reduced-motion: no-preference) {
  .jn-card.is-open .jn-seal svg,
  .jn-announce-seal svg { animation: jn-turn 34s linear infinite; }
}
@keyframes jn-turn { to { transform: rotate(360deg); } }

/* ── Cards ────────────────────────────────────────────────────────────── */
.jn-grid { display: grid; gap: 18px; }
.jn-grid--page { grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); align-items: start; }

.jn-card { display: flex; gap: 18px; padding: 22px 24px; background: var(--bg2);
  border: 1px solid var(--border-faint); border-left: 2px solid var(--gold-dim); }
.jn-card.is-open { border-left-color: var(--gold-light); background: var(--bg2); }
.jn-card.is-sealed { background: color-mix(in oklab, var(--bg2) 70%, var(--bg)); }
.jn-card-main { min-width: 0; flex: 1; }

.jn-card-eyebrow { font-family: var(--font-mono); font-size: 10px; letter-spacing: 0.2em;
  text-transform: uppercase; color: var(--gold); margin: 0 0 8px; }
.jn-card.is-sealed .jn-card-eyebrow { color: var(--text-muted); }

.jn-card-title { font-family: 'Cinzel', serif; font-size: clamp(17px, 2.1vw, 21px); font-weight: 600;
  letter-spacing: 0.04em; color: var(--gold-bright); margin: 0 0 12px; line-height: 1.3; }

.jn-card-img { width: 100%; height: auto; display: block; margin: 0 0 14px;
  border: 1px solid var(--border-faint); }

.jn-card-prose { font-family: 'Inter', sans-serif; font-size: 15px; line-height: 1.8;
  color: var(--text-sub); }
.jn-card-prose a { color: var(--gold-light); }

.jn-card-teaser { font-family: 'Inter', sans-serif; font-size: 15px; line-height: 1.75;
  color: var(--text-muted); font-style: italic; margin: 0 0 14px; }

.jn-card-cta { margin-top: 16px; display: inline-flex; }

/* ── Progress track ───────────────────────────────────────────────────── */
.jn-track { position: relative; height: 2px; background: var(--border-faint); overflow: hidden; }
.jn-track-fill { position: absolute; inset: 0 auto 0 0; background: var(--gold-light); }
@media (prefers-reduced-motion: no-preference) {
  .jn-track-fill { transition: width 0.6s cubic-bezier(0.22, 1, 0.36, 1); }
}
.jn-track--wide { height: 3px; max-width: 420px; margin: 0 auto; }

.jn-card-progress { font-family: var(--font-mono); font-size: 10px; letter-spacing: 0.16em;
  text-transform: uppercase; color: var(--text-muted); margin: 8px 0 0; }

/* ── Remaining steps (the /journey page only) ─────────────────────────── */
.jn-steps { list-style: none; margin: 16px 0 0; padding: 0; display: flex; flex-direction: column; gap: 1px; }
.jn-step { display: flex; align-items: center; gap: 10px; padding: 8px 10px; background: var(--bg);
  font-family: 'Inter', sans-serif; font-size: 13px; color: var(--text-muted); }
.jn-step a { color: var(--text-sub); text-decoration: none; border-bottom: 1px solid var(--border-faint); }
.jn-step a:hover { color: var(--gold-light); border-bottom-color: var(--gold-dim); }
.jn-step-mark { width: 7px; height: 7px; flex: 0 0 7px; border: 1px solid var(--gold-dim);
  transform: rotate(45deg); }
.jn-step.is-done .jn-step-mark { background: var(--gold-light); border-color: var(--gold-light); }
.jn-step-state { margin-left: auto; font-family: var(--font-mono); font-size: 9px;
  letter-spacing: 0.18em; text-transform: uppercase; color: var(--gold-dim); }
.jn-step.is-done .jn-step-state { color: var(--gold); }

/* ── Inline block on an entity page ───────────────────────────────────── */
.jn-inline { max-width: 900px; margin: 0 auto; padding: 60px 24px 0; }

/* ── The /journey page ────────────────────────────────────────────────── */
.jn-hero { max-width: 760px; margin: 0 auto; padding: clamp(70px, 12vh, 130px) 24px 40px; text-align: center; }
.jn-hero-title { font-family: 'Cinzel', serif; font-size: clamp(30px, 5.5vw, 52px); font-weight: 600;
  letter-spacing: 0.04em; color: var(--gold-bright); margin: 18px 0 20px; line-height: 1.18; }
.jn-hero-title em { font-style: italic; color: var(--gold-light); }
.jn-hero-lead { font-family: 'Inter', sans-serif; font-size: 16px; line-height: 1.85;
  color: var(--text-muted); margin: 0 auto; max-width: 620px; }
.jn-hero-meter { margin: 36px auto 0; }
.jn-hero-count { font-family: var(--font-mono); font-size: 10px; letter-spacing: 0.2em;
  text-transform: uppercase; color: var(--text-muted); margin: 12px 0 0; }
.jn-hero-count strong { color: var(--gold-bright); font-weight: 400; }
.jn-hero-note { font-family: 'Inter', sans-serif; font-size: 13px; line-height: 1.7;
  color: var(--text-muted); margin: 28px auto 0; max-width: 520px; }
.jn-hero-note a { color: var(--gold-light); }

.jn-grid--page { max-width: 1100px; margin: 0 auto; padding: 20px 24px clamp(80px, 14vh, 140px); }

.jn-empty { max-width: 560px; margin: 0 auto; padding: 30px 24px clamp(90px, 16vh, 160px); text-align: center; }
.jn-empty-line { font-family: 'Cinzel', serif; font-size: 20px; letter-spacing: 0.05em;
  color: var(--gold-light); margin: 0 0 14px; }
.jn-empty-sub { font-family: 'Inter', sans-serif; font-size: 15px; line-height: 1.8;
  color: var(--text-muted); margin: 0 0 30px; }
.jn-empty-actions { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }

/* ── The reveal announcement ──────────────────────────────────────────── */
.jn-announce { position: fixed; z-index: 120; right: clamp(14px, 3vw, 30px);
  bottom: clamp(14px, 3vw, 30px); width: min(360px, calc(100vw - 28px));
  display: flex; flex-direction: column; gap: 12px; pointer-events: none; }

.jn-announce-card { position: relative; pointer-events: auto; padding: 24px 24px 22px;
  background: var(--bg-glass); border: 1px solid var(--border);
  border-top: 2px solid var(--gold-light);
  box-shadow: 0 24px 60px color-mix(in oklab, var(--bg) 70%, transparent); text-align: center; }

@media (prefers-reduced-motion: no-preference) {
  .jn-announce-card { animation: jn-rise 0.62s cubic-bezier(0.22, 1, 0.36, 1) both; }
  .jn-announce-card.is-going { animation: jn-sink 0.36s ease forwards; }
}
.jn-announce-card.is-going { opacity: 0; }
@keyframes jn-rise { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }
@keyframes jn-sink { to { opacity: 0; transform: translateY(10px); } }

.jn-announce-seal { margin: 0 auto 12px; }
.jn-announce-eyebrow { font-family: var(--font-mono); font-size: 9px; letter-spacing: 0.24em;
  text-transform: uppercase; color: var(--gold); margin: 0 0 8px; }
.jn-announce-title { font-family: 'Cinzel', serif; font-size: 19px; font-weight: 600;
  letter-spacing: 0.04em; color: var(--gold-bright); margin: 0 0 10px; line-height: 1.3; }
.jn-announce-sub { font-family: 'Inter', sans-serif; font-size: 13px; line-height: 1.7;
  color: var(--text-muted); margin: 0 0 18px; font-style: italic; }
.jn-announce-actions { display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; }

.jn-announce-x { position: absolute; top: 6px; right: 8px; background: none; border: none;
  color: var(--text-muted); font-size: 20px; line-height: 1; cursor: pointer; padding: 4px 8px; }
.jn-announce-x:hover { color: var(--gold-light); }

/* ── Narrow screens ───────────────────────────────────────────────────── */
@media (max-width: 640px) {
  .jn-card { flex-direction: column; gap: 12px; padding: 20px; }
  .jn-announce { right: 10px; left: 10px; bottom: 10px; width: auto; }
}
