/* ============================================================
   EMBER EDITORIAL — Multimarket Design System v3
   Full component spec applied, 2026-09-27
   ============================================================ */

/* ── Reset ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  /* ── Background elevations ── */
  --bg:         #0B0A09;
  --bg-elev-1:  #131110;
  --bg-elev-2:  #1A1715;
  --bg-elev-3:  #221E1B;

  /* ── Borders ── */
  --line:        #26221F;
  --line-strong: #3A342F;

  /* ── Text ── */
  --fg:   #F1EBE1;  /* 17.5:1 on bg */
  --fg-2: #9C948B;  /* 7.2:1  */
  --fg-3: #5E5751;  /* 3.1:1 — decorative / mono label ≥12px only */

  /* ── Accent: Ember ── */
  --ember:       #FF5A2E;
  --ember-hover: #FF7A52;
  --ember-deep:  #B83A17;
  --ember-dim:   rgba(255, 90, 46, 0.12);

  /* ── Accent: Gold ── */
  --gold:        #C8A96E;
  --gold-dim:    rgba(200, 169, 110, 0.14);

  /* ── Semantic ── */
  --ok:      #8FB58A;
  --warn:    #C8A96E;
  --off:     #6B6560;
  --danger:  #D9634A;

  /* ── Typography ── */
  --font-serif: 'Lora', Georgia, serif;
  --font-sans:  'Geist', 'Inter', system-ui, sans-serif;
  --font-mono:  'Geist Mono', 'Fira Code', monospace;

  /* ── Spacing ── */
  --sp-1:  4px;
  --sp-2:  8px;
  --sp-3:  12px;
  --sp-4:  16px;
  --sp-5:  20px;
  --sp-6:  24px;
  --sp-8:  32px;
  --sp-10: 40px;
  --sp-12: 48px;
  --sp-16: 64px;
  --sp-18: 72px;
  --sp-24: 96px;

  /* ── Radius ── */
  --r-sm: 2px;
  --r-md: 3px;
  --r-lg: 4px;

  /* ── Motion ── */
  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-std: cubic-bezier(0.4, 0, 0.2, 1);
  --t-fast: 140ms;
  --t-mid:  240ms;
  --t-slow: 400ms;

  /* ── Layout ── */
  --max-w: 1280px;
  --col-gap: 24px;
}

html {
  font-size: 16px;
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  background: var(--bg);
  color: var(--fg);
  font-family: var(--font-sans);
  font-size: 1rem;
  line-height: 1.6;
  min-height: 100vh;
}

a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
ul { list-style: none; }
button { cursor: pointer; border: none; background: none; font: inherit; }

.container {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 var(--sp-6);
}

/* ── Grain overlay ── */
.hero-grain,
.page-grain {
  /* fixed so grain covers the full viewport on scroll */
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 1;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='200' height='200'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.8' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='200' height='200' filter='url(%23n)' opacity='1'/%3E%3C/svg%3E");
  background-size: 200px 200px;
  opacity: 0.045;
  mix-blend-mode: soft-light;
}
/* Content layers must sit above the fixed grain */
main, footer { position: relative; z-index: 2; }

/* ── Navbar ── */
.navbar {
  position: sticky;
  top: 0;
  z-index: 200;
  border-bottom: 1px solid transparent;
  background: rgba(11, 10, 9, 0.72);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  transition: border-color var(--t-fast);
}
.navbar.is-scrolled { border-bottom-color: var(--line); }

.navbar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 56px;
  gap: var(--sp-4);
}

.logo-text {
  font-family: var(--font-mono);
  font-size: 0.875rem;
  font-weight: 500;
  letter-spacing: 0.02em;
  color: var(--fg);
  display: flex;
  align-items: center;
  gap: 0.4em;
  transition: color var(--t-fast);
}
.logo-text:hover { color: var(--ember); }
.logo-mark { color: var(--ember); }

.navbar-nav ul {
  display: flex;
  gap: var(--sp-8);
  align-items: center;
}

.nav-link {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--fg-2);
  transition: color var(--t-fast);
  position: relative;
  padding-bottom: 2px;
}
.nav-link::after {
  content: '';
  position: absolute;
  bottom: -2px; left: 0;
  width: 0; height: 1px;
  background: var(--ember);
  transition: width var(--t-mid) var(--ease-out);
}
.nav-link:hover,
.nav-link.active { color: var(--fg); }
.nav-link:hover::after,
.nav-link.active::after { width: 100%; }

.hamburger { display: none; }

/* ── Hero ── */
.hero {
  position: relative;
  min-height: 88vh;
  display: flex;
  align-items: center;
  padding: var(--sp-24) 0 var(--sp-16);
  overflow: hidden;
  border-bottom: 1px solid var(--line);
}

/* Glow blobs */
.hero-glow {
  position: absolute;
  top: 40%;
  left: 72%;
  transform: translate(-50%, -50%);
  width: 720px; height: 720px;
  border-radius: 50%;
  background: radial-gradient(circle at center,
    rgba(184,58,23,0.55) 0%,
    rgba(184,58,23,0.22) 35%,
    rgba(184,58,23,0) 70%);
  filter: blur(80px);
  pointer-events: none;
  z-index: 0;
  will-change: transform;
  animation: blob-drift 14s ease-in-out alternate infinite;
}
.hero-glow-gold {
  position: absolute;
  top: 90%; left: 20%;
  transform: translate(-50%, -50%);
  width: 260px; height: 260px;
  border-radius: 50%;
  background: radial-gradient(circle at center,
    rgba(200,169,110,0.10) 0%,
    rgba(200,169,110,0) 70%);
  filter: blur(60px);
  pointer-events: none;
  z-index: 0;
}
@keyframes blob-drift {
  from { transform: translate(-50%, -50%) translate(0, 0); }
  to   { transform: translate(-50%, -50%) translate(28px, 18px); }
}

.hero-inner {
  position: relative;
  z-index: 1;
  max-width: 900px;
  display: flex;
  flex-direction: column;
  gap: 0;
}

.hero-overline {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--fg-3);
  margin-bottom: var(--sp-5);
}

.hero-title {
  font-family: var(--font-serif);
  font-size: clamp(3.5rem, 8vw, 7rem);
  font-weight: 400;
  line-height: 0.95;
  letter-spacing: -0.025em;
  color: var(--fg);
  margin-bottom: var(--sp-8);
}

.hero-title em {
  font-style: italic;
  color: var(--ember);
}

/* Typewriter: chars are invisible by default when JS is active */
.js .tw-char { opacity: 0; }
.js .tw-done .tw-char,
.tw-char.is-on { opacity: 1; }

.tw-cursor.is-out { opacity: 0; }

.hero-lead {
  font-size: clamp(1.125rem, 1.5vw, 1.1875rem);
  line-height: 1.6;
  color: var(--fg-2);
  max-width: 56ch;
  margin-bottom: var(--sp-6);
}

.hero-trust {
  display: flex;
  align-items: center;
  gap: 0.5em;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--fg-2);
  margin-bottom: var(--sp-10);
}
.hero-trust svg { color: var(--gold); flex-shrink: 0; }
.hero-trust .sep { color: var(--fg-3); }

.hero-cta-row {
  display: flex;
  align-items: center;
  gap: var(--sp-4);
  margin-bottom: var(--sp-18);
}

.hero-counters {
  display: flex;
  gap: var(--sp-12);
}

.counter-block {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.counter-num {
  font-family: var(--font-serif);
  font-size: clamp(2.5rem, 4vw, 3.5rem);
  font-weight: 400;
  line-height: 1.0;
  letter-spacing: -0.02em;
  color: var(--fg);
  font-variant-numeric: tabular-nums;
}
.counter-num.accent { color: var(--gold); }

.counter-lbl {
  font-family: var(--font-mono);
  font-size: 0.6875rem;
  letter-spacing: 0.10em;
  text-transform: uppercase;
  color: var(--fg-2);
}

/* btn arrow */
.btn-arr {
  display: inline-block;
  position: relative;
  z-index: 1;
  transition: transform var(--t-mid) var(--ease-out);
}
.btn:hover .btn-arr { transform: translateX(4px); }

/* ── Typewriter ── */
.tw-text { display: inline; }
.tw-cursor {
  display: inline-block;
  width: 0.08em;
  height: 0.9em;
  margin-left: 0.04em;
  vertical-align: -0.05em;
  background: var(--ember);
  border-radius: 1px;
  box-shadow: 0 0 8px rgba(255,90,46,0.9), 0 0 24px rgba(255,90,46,0.45);
  animation: blink 1.1s step-end infinite;
  transition: opacity var(--t-slow) ease;
}
@keyframes blink { 50% { opacity: 0; } }

/* ── CTA Buttons ── */
.btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 0.5em;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 14px 24px;
  border-radius: var(--r-sm);
  overflow: hidden;
  cursor: pointer;
  transition: color var(--t-mid);
  border: none;
}

.btn-primary {
  background: var(--ember);
  color: var(--bg);
}
.btn-primary::before {
  content: '';
  position: absolute;
  inset: 0;
  background: var(--ember-hover);
  transform: translateX(-100%);
  transition: transform 320ms var(--ease-out);
}
.btn-primary:hover::before { transform: translateX(0); }
.btn-primary span { position: relative; z-index: 1; }

.btn-secondary {
  background: transparent;
  color: var(--fg);
  border: 1px solid var(--line-strong);
  transition: color var(--t-mid), border-color var(--t-mid);
}
.btn-secondary:hover {
  color: var(--ember);
  border-color: var(--ember);
}

/* ── Catalog Section ── */
.catalog-section {
  padding: var(--sp-16) 0 var(--sp-24);
}

.catalog-header {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  margin-bottom: var(--sp-4);
  padding-bottom: var(--sp-4);
  border-bottom: 1px solid var(--line);
}

.catalog-label {
  font-family: var(--font-mono);
  font-size: 0.6875rem;
  letter-spacing: 0.10em;
  text-transform: uppercase;
  color: var(--fg-3);
}

.catalog-count {
  font-family: var(--font-mono);
  font-size: 0.6875rem;
  letter-spacing: 0.06em;
  color: var(--ember);
}

/* ── Filter nav ── */
.filter-nav {
  display: flex;
  gap: var(--sp-2);
  margin-bottom: var(--sp-6);
  flex-wrap: wrap;
}
.filter-btn {
  font-family: var(--font-mono);
  font-size: 0.6875rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--fg-2);
  border: 1px solid var(--line);
  border-radius: var(--r-sm);
  padding: 5px 12px;
  background: transparent;
  transition: color var(--t-fast), border-color var(--t-fast), background var(--t-fast);
}
.filter-btn:hover {
  color: var(--fg);
  border-color: var(--line-strong);
}
.filter-btn.active {
  color: var(--ember);
  border-color: var(--ember);
  background: var(--ember-dim);
}

.catalog-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0;
}

/* ── Catalog Card ── */
.catalog-card {
  display: grid;
  grid-template-columns: 64px 1fr auto;
  gap: 0;
  align-items: start;
  padding: var(--sp-8) 0;
  border-bottom: 1px solid var(--line);
  position: relative;
  transition: background var(--t-fast);
}

.catalog-card::before {
  content: '';
  position: absolute;
  left: calc(var(--sp-6) * -1);
  right: calc(var(--sp-6) * -1);
  top: 0; bottom: 0;
  background: transparent;
  transition: background var(--t-fast);
  pointer-events: none;
}
.catalog-card:hover::before {
  background: rgba(255, 90, 46, 0.035);
}

/* Inset ember glow at bottom of hovered card */
.catalog-card::after {
  content: '';
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 60px;
  background: linear-gradient(to top, rgba(184,58,23,0.30) 0%, transparent 100%);
  opacity: 0;
  transition: opacity var(--t-mid) var(--ease-out);
  pointer-events: none;
}
.catalog-card:hover::after { opacity: 1; }

/* ── Featured card ── */
.catalog-card--featured {
  padding: var(--sp-10) 0;
  border-bottom: 1px solid var(--line-strong);
}
.catalog-card--featured .card-name {
  font-size: clamp(1.5rem, 3vw, 2rem);
}
.catalog-card--featured:hover::before {
  background: rgba(255, 90, 46, 0.05);
}
.card-featured-label {
  font-family: var(--font-mono);
  font-size: 0.625rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--gold);
  border: 1px solid rgba(200,169,110,0.35);
  border-radius: var(--r-sm);
  padding: 2px 7px;
}

.card-index {
  font-family: var(--font-mono);
  font-size: 0.6875rem;
  font-weight: 500;
  letter-spacing: 0.04em;
  color: var(--fg-3);
  padding-top: 5px;
  transition: color var(--t-fast);
}
.catalog-card:hover .card-index { color: var(--ember); }

.card-body {
  display: flex;
  flex-direction: column;
  gap: var(--sp-3);
}

.card-name-row {
  display: flex;
  align-items: center;
  gap: var(--sp-4);
  flex-wrap: wrap;
}

.card-name {
  font-family: var(--font-serif);
  font-size: clamp(1.25rem, 2.5vw, 1.625rem);
  font-weight: 400;
  color: var(--fg);
  line-height: 1.15;
  transition: color var(--t-fast);
}
.catalog-card:hover .card-name { color: var(--ember); }

.card-status {
  display: flex;
  align-items: center;
  gap: 0.4em;
  font-family: var(--font-mono);
  font-size: 0.6875rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ok);
}

.status-pip {
  display: inline-block;
  width: 5px; height: 5px;
  border-radius: 50%;
  background: var(--ok);
  box-shadow: 0 0 6px var(--ok);
  animation: pulse-pip 2.4s ease infinite;
}
@keyframes pulse-pip {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.45; }
}

.card-tagline {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  letter-spacing: 0.04em;
  color: var(--gold);
}

.card-desc {
  font-size: 0.875rem;
  color: var(--fg-2);
  line-height: 1.6;
  max-width: 620px;
}

.card-meta {
  display: flex;
  gap: var(--sp-8);
  flex-wrap: wrap;
}

.meta-item {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.meta-label {
  font-family: var(--font-mono);
  font-size: 0.625rem;
  letter-spacing: 0.10em;
  text-transform: uppercase;
  color: var(--fg-3);
}

.meta-val {
  font-family: var(--font-mono);
  font-size: 0.8125rem;
  font-weight: 500;
  color: var(--fg);
}

.card-tags {
  display: flex;
  flex-wrap: wrap;
  gap: var(--sp-2);
}

.tag {
  font-family: var(--font-mono);
  font-size: 0.625rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--fg-3);
  border: 1px solid var(--line-strong);
  border-radius: var(--r-sm);
  padding: 2px 8px;
  transition: border-color var(--t-fast), color var(--t-fast);
}
.catalog-card:hover .tag {
  border-color: var(--ember);
  color: var(--ember);
}

.card-arrow {
  font-family: var(--font-mono);
  font-size: 0.875rem;
  color: var(--fg-3);
  padding-top: 5px;
  padding-left: var(--sp-8);
  transition: color var(--t-fast), transform var(--t-mid) var(--ease-out);
}
.catalog-card:hover .card-arrow {
  color: var(--ember);
  transform: translateX(5px);
}

/* Compact (other-markets) */
.catalog-grid--compact .catalog-card { padding: var(--sp-5) 0; }
.catalog-grid--compact .card-desc { display: none; }

/* ── Safety Bar ── */
.safety-bar {
  display: flex;
  align-items: flex-start;
  gap: var(--sp-3);
  margin-top: var(--sp-6);
  padding: var(--sp-4);
  border: 1px solid var(--line);
  border-left: 2px solid var(--ember);
  border-radius: var(--r-md);
  background: var(--ember-dim);
}
.safety-icon { color: var(--ember); flex-shrink: 0; margin-top: 2px; }
.safety-bar p { font-size: 0.8125rem; color: var(--fg-2); line-height: 1.55; }
.safety-bar strong { color: var(--fg); font-weight: 500; }

/* ── Section divider with triggered ember sweep ── */
.section-divider {
  border: none;
  height: 1px;
  background: var(--line);
  margin: 0;
  position: relative;
  overflow: hidden;
}
.section-divider::after {
  content: '';
  position: absolute;
  top: 0;
  left: -120px;
  width: 120px;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--ember), transparent);
}
.section-divider.is-in::after {
  animation: sweep 900ms var(--ease-out) forwards;
}
@keyframes sweep { to { left: 100%; } }

/* ── Numeral decoration ── */
.numeral-deco {
  font-family: var(--font-serif);
  font-size: clamp(5rem, 14vw, 11rem);
  font-weight: 400;
  line-height: 0.85;
  letter-spacing: -0.04em;
  color: transparent;
  -webkit-text-stroke: 1px var(--line-strong);
  position: absolute;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
  pointer-events: none;
  user-select: none;
  z-index: 0;
}

/* ── Market hero ── */
.market-hero {
  position: relative;
  padding: var(--sp-16) 0 var(--sp-12);
  border-bottom: 1px solid var(--line);
  overflow: hidden;
}

.market-hero-inner {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  gap: var(--sp-12);
}

.market-index {
  font-family: var(--font-mono);
  font-size: 0.6875rem;
  color: var(--ember);
  padding-top: 7px;
  letter-spacing: 0.04em;
}

.market-hero-body {
  display: flex;
  flex-direction: column;
  gap: var(--sp-5);
  flex: 1;
  min-width: 0;
}

.market-name {
  font-family: var(--font-serif);
  font-size: clamp(2.25rem, 5vw, 4rem);
  font-weight: 400;
  color: var(--fg);
  line-height: 1.05;
  letter-spacing: -0.02em;
}

.market-tagline {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  letter-spacing: 0.06em;
  color: var(--gold);
}

.market-badges {
  display: flex;
  flex-wrap: wrap;
  gap: var(--sp-2);
}

.badge {
  font-family: var(--font-mono);
  font-size: 0.625rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--fg-2);
  border: 1px solid var(--line-strong);
  border-radius: var(--r-sm);
  padding: 3px 8px;
}

.badge-live {
  display: flex;
  align-items: center;
  gap: 0.4em;
  color: var(--ok);
  border-color: rgba(143, 181, 138, 0.3);
}

.market-stats-row {
  display: flex;
  align-items: center;
  gap: var(--sp-8);
  flex-wrap: wrap;
}

.stat-block {
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.stat-num {
  font-family: var(--font-mono);
  font-size: 1.25rem;
  font-weight: 500;
  color: var(--fg);
  letter-spacing: -0.02em;
  font-variant-numeric: tabular-nums;
}

.stat-lbl {
  font-family: var(--font-mono);
  font-size: 0.625rem;
  letter-spacing: 0.10em;
  text-transform: uppercase;
  color: var(--fg-3);
}

.stat-divider {
  width: 1px;
  height: 32px;
  background: var(--line-strong);
  flex-shrink: 0;
}

/* ── Market sections ── */
.market-links-section,
.market-about-section,
.market-faq-section,
.other-markets-section {
  padding: var(--sp-16) 0;
  border-bottom: 1px solid var(--line);
}

.section-header {
  display: grid;
  grid-template-columns: 64px 1fr;
  margin-bottom: var(--sp-8);
}

.section-index {
  font-family: var(--font-mono);
  font-size: 0.6875rem;
  color: var(--ember);
  padding-top: 6px;
  letter-spacing: 0.04em;
}

.section-title {
  font-family: var(--font-serif);
  font-size: clamp(1.5rem, 3vw, 2rem);
  font-weight: 400;
  color: var(--fg);
  letter-spacing: -0.015em;
}

.section-sub {
  font-family: var(--font-mono);
  font-size: 0.6875rem;
  color: var(--fg-3);
  letter-spacing: 0.04em;
  margin-top: 6px;
  grid-column: 2;
}

/* ── Onion links ── */
.links-list {
  display: flex;
  flex-direction: column;
  margin-bottom: var(--sp-5);
}

.onion-row {
  display: grid;
  grid-template-columns: 28px 1fr auto;
  align-items: center;
  gap: var(--sp-4);
  padding: var(--sp-4) 0;
  border-bottom: 1px solid var(--line);
}

.onion-num {
  font-family: var(--font-mono);
  font-size: 0.6875rem;
  color: var(--fg-3);
}

.onion-url {
  font-family: var(--font-mono);
  font-size: 0.8125rem;
  color: var(--fg);
  word-break: break-all;
  letter-spacing: 0.01em;
}

.copy-btn {
  display: flex;
  align-items: center;
  gap: 0.4em;
  font-family: var(--font-mono);
  font-size: 0.6875rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--fg-3);
  border: 1px solid var(--line);
  border-radius: var(--r-sm);
  padding: 5px 10px;
  transition: color var(--t-fast), border-color var(--t-fast), background var(--t-fast);
  white-space: nowrap;
}
.copy-btn:hover {
  color: var(--ember);
  border-color: var(--ember);
  background: var(--ember-dim);
}
.copy-btn.copied {
  color: var(--ok);
  border-color: rgba(143,181,138,0.4);
  background: rgba(143,181,138,0.06);
}

/* ── About ── */
.about-body {
  padding-left: 64px;
}

.about-text {
  font-size: 0.9375rem;
  color: var(--fg-2);
  line-height: 1.75;
  max-width: 680px;
}

/* ── FAQ (<details> with grid animation) ── */
.faq-list {
  padding-left: 64px;
  display: flex;
  flex-direction: column;
}

.faq-item {
  border-bottom: 1px solid var(--line);
}
.faq-item summary {
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--sp-4);
  padding: var(--sp-5) 0;
  cursor: pointer;
  font-size: 0.9375rem;
  font-weight: 500;
  color: var(--fg);
  transition: color var(--t-fast);
  user-select: none;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary:hover { color: var(--ember); }

.faq-marker {
  flex-shrink: 0;
  width: 16px; height: 16px;
  position: relative;
  color: var(--fg-3);
}
.faq-marker::before,
.faq-marker::after {
  content: '';
  position: absolute;
  background: currentColor;
  border-radius: 1px;
  transition: transform var(--t-mid) var(--ease-out), opacity var(--t-mid);
}
.faq-marker::before { top: 50%; left: 0; right: 0; height: 1px; transform: translateY(-50%); }
.faq-marker::after  { left: 50%; top: 0; bottom: 0; width: 1px; transform: translateX(-50%); }
.faq-item[open] summary .faq-marker { color: var(--ember); }
.faq-item[open] summary .faq-marker::after { opacity: 0; transform: translateX(-50%) rotate(90deg); }

.faq-body {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows var(--t-slow) var(--ease-out);
  overflow: hidden;
}
.faq-item[open] .faq-body {
  grid-template-rows: 1fr;
}
.faq-body-inner {
  overflow: hidden;
  min-height: 0;
}
.faq-a {
  font-size: 0.875rem;
  color: var(--fg-2);
  line-height: 1.65;
  padding-bottom: var(--sp-5);
  padding-right: var(--sp-8);
}

/* ── Page hero (inner pages) ── */
.page-hero {
  position: relative;
  padding: var(--sp-16) 0 var(--sp-8);
  border-bottom: 1px solid var(--line);
  overflow: hidden;
}

.page-title {
  font-family: var(--font-serif);
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 400;
  color: var(--fg);
  letter-spacing: -0.02em;
  margin-bottom: var(--sp-3);
}

.page-subtitle {
  font-size: 0.9375rem;
  color: var(--fg-2);
}

/* ── Breadcrumb ── */
.breadcrumb {
  padding: var(--sp-3) 0;
  border-bottom: 1px solid var(--line);
}

.breadcrumb-list {
  display: flex;
  align-items: center;
  gap: var(--sp-2);
  font-family: var(--font-mono);
  font-size: 0.6875rem;
  letter-spacing: 0.04em;
  color: var(--fg-3);
}

.breadcrumb-list li {
  display: flex;
  align-items: center;
  gap: var(--sp-2);
}

.breadcrumb-list li:not(:last-child)::after {
  content: '/';
  color: var(--fg-3);
  opacity: 0.4;
}

.breadcrumb-list a {
  color: var(--fg-2);
  transition: color var(--t-fast);
}
.breadcrumb-list a:hover { color: var(--ember); }

/* ── Footer (4-col) ── */
.site-footer {
  border-top: 1px solid var(--line);
  padding: var(--sp-16) 0 var(--sp-10);
  position: relative;
  overflow: hidden;
}

/* Decorative oversized serif behind footer */
.footer-deco {
  position: absolute;
  bottom: -0.3em;
  left: 50%;
  transform: translateX(-50%);
  font-family: var(--font-serif);
  font-size: clamp(6rem, 18vw, 16rem);
  font-weight: 400;
  color: transparent;
  -webkit-text-stroke: 1px var(--line);
  white-space: nowrap;
  pointer-events: none;
  user-select: none;
  z-index: 0;
  letter-spacing: -0.04em;
  line-height: 1;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: var(--sp-10);
  margin-bottom: var(--sp-10);
  position: relative;
  z-index: 1;
}

.footer-col-brand .footer-brand {
  font-family: var(--font-mono);
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--fg);
  display: flex;
  align-items: center;
  gap: 0.4em;
  margin-bottom: var(--sp-4);
}

.footer-col-brand .footer-tagline {
  font-size: 0.8125rem;
  color: var(--fg-2);
  line-height: 1.55;
  max-width: 28ch;
  margin-bottom: var(--sp-6);
}

.footer-col-brand .footer-trust {
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.footer-trust-item {
  font-family: var(--font-mono);
  font-size: 0.625rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--fg-3);
  display: flex;
  align-items: center;
  gap: 0.5em;
}
.footer-trust-item::before {
  content: '';
  width: 5px; height: 5px;
  border-radius: 50%;
  background: var(--ok);
  box-shadow: 0 0 5px var(--ok);
  flex-shrink: 0;
}

.footer-col h4 {
  font-family: var(--font-mono);
  font-size: 0.625rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--fg-3);
  margin-bottom: var(--sp-4);
}

.footer-col ul {
  display: flex;
  flex-direction: column;
  gap: var(--sp-3);
}

.footer-col a {
  font-size: 0.8125rem;
  color: var(--fg-2);
  transition: color var(--t-fast);
}
.footer-col a:hover { color: var(--ember); }

.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: var(--sp-8);
  border-top: 1px solid var(--line);
  gap: var(--sp-4);
  flex-wrap: wrap;
  position: relative;
  z-index: 1;
}

.footer-copy {
  font-family: var(--font-mono);
  font-size: 0.6875rem;
  color: var(--fg-3);
}

.footer-disclaimer {
  font-size: 0.75rem;
  color: var(--fg-3);
  opacity: 0.55;
  max-width: 60ch;
  text-align: right;
}

/* ── Fade-in (scroll) ── */
.js .fade-in {
  opacity: 0;
  transform: translateY(14px);
  filter: blur(4px);
  transition: opacity 0.5s var(--ease-out), transform 0.5s var(--ease-out), filter 0.5s var(--ease-out);
  transition-delay: var(--stagger-d, 0ms);
}
.js .fade-in.is-visible {
  opacity: 1;
  transform: translateY(0);
  filter: none;
}

/* ── Mobile ── */
@media (max-width: 768px) {
  .hamburger {
    display: flex;
    flex-direction: column;
    gap: 5px;
    padding: 4px;
  }
  .hamburger span {
    display: block;
    width: 22px; height: 1.5px;
    background: var(--fg-2);
    transition: transform var(--t-fast), opacity var(--t-fast);
  }
  .hamburger[aria-expanded="true"] span:nth-child(1) { transform: rotate(45deg) translate(4.5px, 4.5px); }
  .hamburger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
  .hamburger[aria-expanded="true"] span:nth-child(3) { transform: rotate(-45deg) translate(4.5px, -4.5px); }

  .navbar-nav {
    display: none;
    position: absolute;
    top: 56px; left: 0; right: 0;
    background: var(--bg-elev-1);
    border-bottom: 1px solid var(--line);
    padding: var(--sp-4) var(--sp-6);
  }
  .navbar-nav.open { display: block; }
  .navbar-nav ul { flex-direction: column; gap: var(--sp-5); }

  .hero { min-height: auto; padding: var(--sp-24) 0 var(--sp-12); }
  .hero-glow { width: 420px; height: 420px; filter: blur(48px); }

  .catalog-card { grid-template-columns: 48px 1fr; }
  .card-arrow { display: none; }

  .market-hero-inner { grid-template-columns: 1fr; }
  .market-hero-gif { display: none; }
  .section-header { grid-template-columns: 48px 1fr; }

  .about-body,
  .faq-list { padding-left: 48px; }

  .onion-row {
    grid-template-columns: 20px 1fr;
    grid-template-rows: auto auto;
  }
  .copy-btn { grid-column: 2; margin-top: var(--sp-2); }

  .hero-counters { gap: var(--sp-8); flex-wrap: wrap; }

  .footer-grid { grid-template-columns: 1fr 1fr; gap: var(--sp-8); }
  .footer-col-brand { grid-column: 1 / -1; }
  .footer-deco { font-size: 22vw; }
  .footer-bottom { flex-direction: column; align-items: flex-start; }
  .footer-disclaimer { text-align: left; }
  .filter-nav { gap: var(--sp-1); }
  .numeral-deco { display: none; }

  .hero-cta-row { flex-direction: column; align-items: flex-start; }
}

/* ── Reduced motion ── */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .tw-cursor { animation: none; }
  .status-pip { animation: none; }
  .hero-glow { animation: none; }
  .section-divider.is-in::after { animation: none; left: 100%; }
  .faq-body { transition: none; }
  .js .fade-in {
    transform: none;
    filter: none;
    transition: opacity 200ms;
    transition-delay: 0ms;
  }
  .btn-arr,
  .btn-primary::before { transition: none; }
}

/* ══════════════════════════════════════════════
   Guide Pages — Tor Guide / Security
   ══════════════════════════════════════════════ */

/* Steps section */
.steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: var(--sp-6);
  margin-bottom: var(--sp-18);
}

.steps > div {
  padding: var(--sp-6);
  border: 1px solid var(--line);
  border-radius: 2px;
  background: rgba(255,255,255,0.02);
  transition: border-color var(--t-mid);
}
.steps > div:hover { border-color: var(--ember); }

.step-num {
  font-family: var(--font-mono);
  font-size: 0.6875rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ember);
  margin-bottom: var(--sp-3);
}

.step-title {
  font-family: var(--font-serif);
  font-size: 1.125rem;
  font-weight: 400;
  color: var(--fg);
  margin-bottom: var(--sp-2);
  line-height: 1.3;
}

.step-desc {
  font-size: 0.875rem;
  line-height: 1.7;
  color: var(--fg-2);
}

/* Security cards */
.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: var(--sp-4);
  margin-bottom: var(--sp-18);
}

.cards .card {
  padding: var(--sp-6);
  border: 1px solid var(--line);
  border-radius: 2px;
  background: rgba(255,255,255,0.02);
  transition: border-color var(--t-mid);
}
.cards .card:hover { border-color: var(--gold); }

.card-title {
  font-family: var(--font-mono);
  font-size: 0.6875rem;
  letter-spacing: 0.10em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: var(--sp-3);
}

.card-text {
  font-size: 0.875rem;
  line-height: 1.7;
  color: var(--fg-2);
}

/* Editorial prose content */
.content {
  max-width: 720px;
}

.content h2 {
  font-family: var(--font-serif);
  font-size: clamp(1.375rem, 2.5vw, 1.75rem);
  font-weight: 400;
  color: var(--fg);
  margin-top: var(--sp-14);
  margin-bottom: var(--sp-4);
  line-height: 1.25;
}
.content h2:first-child { margin-top: 0; }

.content h3 {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.10em;
  text-transform: uppercase;
  color: var(--ember);
  margin-top: var(--sp-10);
  margin-bottom: var(--sp-3);
}

.content p {
  font-size: 0.9375rem;
  line-height: 1.8;
  color: var(--fg-2);
  margin-bottom: var(--sp-5);
}

.content a {
  color: var(--fg);
  text-decoration: underline;
  text-decoration-color: var(--ember);
  text-underline-offset: 3px;
  transition: color var(--t-fast);
}
.content a:hover { color: var(--ember); }

/* Hero subtitle */
.hero-subtitle {
  font-size: 1rem;
  line-height: 1.7;
  color: var(--fg-2);
  max-width: 600px;
  margin-top: var(--sp-4);
}

/* ── Market hero GIF (in-hero, right column) ── */
.market-hero-gif {
  display: flex;
  align-items: center;
  justify-content: flex-end;
}

.market-hero-gif .market-gif {
  width: auto;
  max-width: clamp(180px, 20vw, 320px);
  height: auto;
  border-radius: 6px;
  border: 1px solid var(--line);
  display: block;
}

/* ══════════════════════════════════════════════
   Market GIF Section
   ══════════════════════════════════════════════ */

.market-gif-section {
  padding: var(--sp-6) 0 var(--sp-18);
}

.market-gif-wrap {
  position: relative;
  border: 1px solid var(--line);
  border-radius: 4px;
  overflow: hidden;
  background: var(--bg-elev-1);
  display: inline-block;
  max-width: 100%;
}

.market-gif {
  display: block;
  width: auto;
  max-width: 100%;
  height: auto;
}

.market-gif-label {
  position: absolute;
  bottom: var(--sp-3);
  left: var(--sp-3);
  display: flex;
  align-items: center;
  gap: 6px;
  font-family: var(--font-mono);
  font-size: 0.6875rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--fg-2);
  background: rgba(11,10,9,0.75);
  backdrop-filter: blur(6px);
  padding: 4px 10px;
  border-radius: 2px;
}

