/* ═══════════════════════════════════════════════════════════════
   WalletGuard — Editorial Design System
   Ink & Parchment · Cormorant Garamond · Sharp Grid
   ═══════════════════════════════════════════════════════════════ */

/* ─── Tokens ───────────────────────────────────────────────────── */
:root {
  /* Palette — Ink & Parchment */
  --ink:          #0c0a08;
  --ink-2:        #141210;
  --ink-3:        #1e1b18;
  --ink-4:        #2a2724;
  --ink-5:        #3d3a36;
  --parchment:    #f0ebe1;
  --parchment-2:  #e6e0d4;
  --parchment-3:  #d9d2c4;
  --text:         #ddd8ce;
  --text-muted:   #9a9188;
  --text-dim:     #6a6460;
  --text-dark:    #0c0a08;
  --text-dark-muted: #5a5450;
  --gold:         #c4943a;
  --gold-dim:     #8a6625;
  --vermillion:   #e04830;
  --vermillion-dim:#b83c28;
  --forest:       #3a6b1e;
  --forest-dim:   #254a10;
  --border:       rgba(221, 216, 206, 0.12);
  --border-2:     rgba(221, 216, 206, 0.22);
  --border-light: rgba(12, 10, 8, 0.1);
  --border-light-2: rgba(12, 10, 8, 0.18);

  /* Typography */
  --serif:  'Cormorant Garamond', 'Georgia', serif;
  --sans:   'Space Grotesk', system-ui, sans-serif;
  --mono:   'JetBrains Mono', 'IBM Plex Mono', monospace;

  /* Scale — dramatic */
  --fs-hero:    clamp(54px, 9vw, 122px);
  --fs-display: clamp(38px, 5.5vw, 72px);
  --fs-h1:      clamp(28px, 3.5vw, 48px);
  --fs-h2:      clamp(22px, 2.8vw, 36px);
  --fs-h3:      20px;
  --fs-body:    16px;
  --fs-small:   13.5px;
  --fs-micro:   11px;

  /* Spacing */
  --max: 1280px;
  --gutter: clamp(20px, 4vw, 48px);
  --header-h: 64px;

  /* Easing */
  --ease-out:   cubic-bezier(0.16, 1, 0.3, 1);
  --ease-inout: cubic-bezier(0.85, 0, 0.15, 1);
}

/* ─── Light mode override ─────────────────────────────────────── */
[data-theme="light"] {
  --ink:       #f0ebe1;
  --ink-2:     #e6e0d4;
  --ink-3:     #d9d2c4;
  --ink-4:     #cec6b5;
  --ink-5:     #bdb3a0;
  --text:      #0c0a08;
  --text-muted:#5a5450;
  --text-dim:  #8a8278;
  --border:    rgba(12,10,8,0.1);
  --border-2:  rgba(12,10,8,0.18);
  --gold:      #8a6625;
}

/* ─── Reset ────────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
}
body {
  font-family: var(--sans);
  font-size: var(--fs-body);
  line-height: 1.65;
  color: var(--text);
  background: var(--ink);
  min-height: 100vh;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  cursor: none;
}
@media (hover: none) { body { cursor: auto; } }
img, svg { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; cursor: none; border: none; background: none; }
/* Keep custom cursor as the only pointer on desktop */
a, button, input, select, textarea, [role="button"], label, summary { cursor: none !important; }
@media (hover: none) { button { cursor: pointer; } }
:focus-visible { outline: 1px solid var(--gold); outline-offset: 3px; }
::selection { background: var(--gold); color: var(--ink); }

/* ─── Noise overlay ────────────────────────────────────────────── */
.noise {
  pointer-events: none;
  position: fixed;
  inset: 0;
  z-index: 100;
  opacity: 0.03;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='300' height='300'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='300' height='300' filter='url(%23n)' opacity='1'/%3E%3C/svg%3E");
  background-repeat: repeat;
}

/* ─── Custom cursor ────────────────────────────────────────────── */
.cursor {
  position: fixed;
  width: 8px;
  height: 8px;
  background: var(--text);
  border-radius: 50%;
  pointer-events: none;
  z-index: 9999;
  transform: translate(-50%, -50%);
  transition: width 0.25s var(--ease-out), height 0.25s var(--ease-out), background 0.25s;
  will-change: transform;
  mix-blend-mode: difference;
}
.cursor.is-link {
  width: 8px;
  height: 8px;
  background: var(--text);
  border: none;
}
.cursor.is-text {
  width: 8px;
  height: 8px;
  border-radius: 50%;
}
@media (hover: none) { .cursor { display: none; } }

/* ─── Skip link ─────────────────────────────────────────────────── */
.skip-link {
  position: absolute;
  top: -48px;
  left: 16px;
  padding: 8px 16px;
  background: var(--gold);
  color: var(--ink);
  font-size: var(--fs-small);
  font-weight: 600;
  z-index: 9999;
  border-radius: 0;
  transition: top 0.2s;
}
.skip-link:focus { top: 8px; }

/* ─── Layout ────────────────────────────────────────────────────── */
.container {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 var(--gutter);
}
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ─── Header ────────────────────────────────────────────────────── */
/* Header is styled inline in HTML for reliability. Only hover states here. */
.site-header a:hover { color: #ddd8ce !important; }
.site-header button:hover { color: #c4943a !important; }
/* Nav drawer hover (drawer styled inline in HTML) */
.nav-drawer a:hover { color: #ddd8ce !important; }

/* ─── Rule ──────────────────────────────────────────────────────── */
.rule { height: 1px; background: var(--border); }

/* ─── Marquee ───────────────────────────────────────────────────── */
.marquee-band {
  overflow: hidden;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  background: var(--ink-2);
  padding: 12px 0;
}
.marquee-track {
  display: flex;
  gap: 0;
  white-space: nowrap;
  animation: marquee-scroll 28s linear infinite;
  width: max-content;
}
.marquee-track:hover { animation-play-state: paused; }
.marquee-item {
  display: inline-flex;
  align-items: center;
  gap: 16px;
  padding: 0 32px;
  font-family: var(--mono);
  font-size: var(--fs-micro);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-dim);
}
.marquee-item::after {
  content: '·';
  color: var(--gold);
  font-size: 18px;
  line-height: 1;
  opacity: 0.6;
}
@keyframes marquee-scroll {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}

/* ─── Hero dot grid canvas ──────────────────────────────────────── */
.hero-dots {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  pointer-events: none;
  opacity: 0.35;
}

/* ─── Hero ──────────────────────────────────────────────────────── */
.hero {
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding-top: var(--header-h);
  padding-bottom: 0;
  position: relative;
  overflow: hidden;
}
.hero-bg {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 60% 50% at 80% 20%, rgba(196,148,58,0.04), transparent 60%),
    radial-gradient(ellipse 50% 60% at 10% 80%, rgba(184,60,40,0.03), transparent 60%),
    var(--ink);
  z-index: 0;
}
.hero-inner {
  position: relative;
  z-index: 1;
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  padding: 52px var(--gutter) 32px;
  max-width: var(--max);
  margin: 0 auto;
  width: 100%;
}
.hero-overline {
  display: flex;
  align-items: center;
  gap: 32px;
  margin-bottom: 40px;
}
.hero-overline-tag {
  font-family: var(--mono);
  font-size: var(--fs-micro);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-muted);
  border: 1px solid rgba(221, 216, 206, 0.28);
  padding: 4px 10px;
}
.hero-overline-stat {
  font-family: var(--mono);
  font-size: var(--fs-micro);
  letter-spacing: 0.06em;
  color: var(--vermillion);
  text-transform: uppercase;
  opacity: 1;
}

.hero-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
  align-items: start;
}
.hero-headline-col { padding-right: 40px; }
.hero-headline {
  font-family: var(--serif);
  font-size: var(--fs-hero);
  font-weight: 600;
  line-height: 0.92;
  letter-spacing: -0.02em;
  color: var(--text);
  margin-bottom: 0;
}
.hero-headline .accent { color: var(--gold); font-style: italic; }
.hero-headline .danger {
  color: var(--vermillion);
  display: inline-block;
  position: relative;
}
.hero-headline .danger::after {
  content: '';
  position: absolute;
  left: 0; right: 0;
  bottom: 0.1em;
  height: 1px;
  background: var(--vermillion);
  opacity: 0.4;
}

.hero-right {
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  padding-top: 4px;
  padding-bottom: 8px;
  border-left: 1px solid var(--border);
  padding-left: 48px;
}
.hero-index {
  font-family: var(--mono);
  font-size: var(--fs-micro);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-dim);
  margin-bottom: 24px;
  display: flex;
  align-items: center;
  gap: 12px;
}
.hero-index::before {
  content: '';
  display: block;
  width: 32px;
  height: 1px;
  background: var(--text-dim);
}
.hero-sub {
  font-size: clamp(14px, 1.2vw, 17px);
  color: var(--text-muted);
  line-height: 1.7;
  max-width: 400px;
  margin-bottom: 36px;
}
.hero-sub strong { color: var(--text); font-weight: 600; }
.hero-cta-row { display: flex; gap: 16px; align-items: center; flex-wrap: wrap; }
.hero-bottom-strip {
  position: relative;
  z-index: 1;
  margin-top: 64px;
  border-top: 1px solid var(--border);
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  max-width: var(--max);
  margin-left: auto;
  margin-right: auto;
  width: 100%;
  padding: 0 var(--gutter);
}
.hero-stat-item {
  padding: 20px 24px 20px 0;
  border-right: 1px solid var(--border);
}
.hero-stat-item:first-child { padding-left: 0; }
.hero-stat-item:last-child { border-right: none; padding-left: 24px; }
.hero-stat-num {
  font-family: var(--serif);
  font-size: clamp(28px, 4vw, 48px);
  font-weight: 600;
  color: var(--text);
  line-height: 1;
  letter-spacing: -0.02em;
}
.hero-stat-label {
  font-family: var(--mono);
  font-size: var(--fs-micro);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-dim);
  margin-top: 6px;
}

@media (max-width: 900px) {
  .hero-layout { grid-template-columns: 1fr; }
  .hero-headline-col { padding-right: 0; margin-bottom: 40px; }
  .hero-right { border-left: none; padding-left: 0; border-top: 1px solid var(--border); padding-top: 32px; }
  .hero-bottom-strip { grid-template-columns: 1fr 1fr; }
  .hero-stat-item:nth-child(3) { grid-column: span 2; border-right: none; border-top: 1px solid var(--border); }
}
@media (max-width: 560px) {
  .hero-inner { padding: 24px var(--gutter) 16px; }
  .hero-bottom-strip { grid-template-columns: 1fr; }
  .hero-stat-item { border-right: none !important; border-top: 1px solid var(--border); grid-column: span 1 !important; padding: 16px 0; }
  .hero-stat-item:first-child { border-top: none; }
}

/* ─── Buttons ───────────────────────────────────────────────────── */
.btn-arrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: var(--fs-small);
  font-weight: 600;
  letter-spacing: 0.04em;
  color: var(--text);
  padding: 11px 22px;
  border: 1px solid var(--border-2);
  border-radius: 0;
  position: relative;
  overflow: hidden;
  transition: color 0.28s var(--ease-out), border-color 0.28s;
  background: transparent;
}
.btn-arrow::before {
  content: '';
  position: absolute;
  inset: 0;
  background: var(--text);
  transform: translateY(100%);
  transition: transform 0.32s var(--ease-out);
  z-index: 0;
}
.btn-arrow:hover::before { transform: translateY(0); }
.btn-arrow:hover { color: var(--ink); border-color: var(--text); }
.btn-arrow span, .btn-arrow .arr { position: relative; z-index: 1; }
.btn-arrow .arr { transition: transform 0.28s var(--ease-out); }
.btn-arrow:hover .arr { transform: translateX(4px); }

.btn-ghost {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: var(--fs-small);
  font-weight: 500;
  letter-spacing: 0.04em;
  color: var(--text-muted);
  padding: 11px 0;
  border-radius: 0;
  position: relative;
  background: transparent;
  transition: color 0.22s;
}
.btn-ghost::after {
  content: '';
  position: absolute;
  bottom: 6px; left: 0; right: 0;
  height: 1px;
  background: var(--text-muted);
  transform: scaleX(0.3);
  transform-origin: left;
  transition: transform 0.3s var(--ease-out), background 0.22s;
}
.btn-ghost:hover { color: var(--text); }
.btn-ghost:hover::after { transform: scaleX(1); background: var(--text); }

.btn-vermillion {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: var(--fs-small);
  font-weight: 600;
  letter-spacing: 0.04em;
  padding: 11px 22px;
  border: 1px solid var(--vermillion);
  border-radius: 0;
  color: var(--vermillion);
  background: transparent;
  position: relative;
  overflow: hidden;
  transition: color 0.28s var(--ease-out);
}
.btn-vermillion::before {
  content: '';
  position: absolute;
  inset: 0;
  background: var(--vermillion);
  transform: translateY(100%);
  transition: transform 0.32s var(--ease-out);
}
.btn-vermillion:hover::before { transform: translateY(0); }
.btn-vermillion:hover { color: #fff; }
.btn-vermillion span, .btn-vermillion .arr { position: relative; z-index: 1; }

/* ─── Section header ───────────────────────────────────────────── */
.section-label {
  display: flex;
  align-items: center;
  gap: 16px;
  font-family: var(--mono);
  font-size: var(--fs-micro);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-dim);
  margin-bottom: 48px;
}
.section-label::before {
  content: '';
  display: block;
  width: 40px;
  height: 1px;
  background: var(--text-dim);
}
.section-label .num {
  color: var(--gold);
  font-weight: 600;
}

/* ─── Manifesto section ────────────────────────────────────────── */
.manifesto {
  background: var(--parchment);
  color: var(--text-dark);
  padding: 100px 0;
  position: relative;
  overflow: hidden;
}
.manifesto::before {
  content: '';
  position: absolute;
  top: -1px; left: 0; right: 0;
  height: 1px;
  background: var(--border-light-2);
}
.manifesto-layout {
  display: grid;
  grid-template-columns: 200px 1fr;
  gap: 60px;
  align-items: start;
}
.manifesto-sidebar {
  padding-top: 8px;
}
.manifesto-eyebrow {
  font-family: var(--mono);
  font-size: var(--fs-micro);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-dark-muted);
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.manifesto-eyebrow .num {
  font-family: var(--serif);
  font-size: 64px;
  font-weight: 600;
  color: var(--parchment-3);
  line-height: 1;
  margin-bottom: 8px;
  letter-spacing: -0.04em;
}
.manifesto-body h2 {
  font-family: var(--serif);
  font-size: var(--fs-display);
  font-weight: 600;
  line-height: 1.1;
  letter-spacing: -0.02em;
  color: var(--text-dark);
  margin-bottom: 32px;
}
.manifesto-body h2 em {
  font-style: italic;
  color: var(--vermillion-dim);
}
.manifesto-body p {
  font-size: clamp(15px, 1.1vw, 17px);
  line-height: 1.8;
  color: var(--text-dark-muted);
  max-width: 640px;
  margin-bottom: 20px;
}
.manifesto-body p strong { color: var(--text-dark); font-weight: 600; }
.manifesto-body p:last-of-type { margin-bottom: 36px; }
@media (max-width: 768px) {
  .manifesto-layout { grid-template-columns: 1fr; gap: 32px; }
}

/* ─── Wallet listing (editorial) ───────────────────────────────── */
.wallets-section { padding: 100px 0; }
.wallet-list { border-top: 1px solid var(--border); }
.wallet-entry {
  display: grid;
  grid-template-columns: 56px 1fr 200px 160px 80px;
  gap: 24px;
  align-items: center;
  padding: 20px 0;
  border-bottom: 1px solid var(--border);
  text-decoration: none;
  color: var(--text);
  transition: background 0.2s;
  position: relative;
}
.wallet-entry::before {
  content: '';
  position: absolute;
  inset: 0;
  background: var(--ink-2);
  transform: scaleY(0);
  transform-origin: bottom;
  transition: transform 0.28s var(--ease-out);
  z-index: 0;
}
.wallet-entry:hover::before { transform: scaleY(1); }
.wallet-entry > * { position: relative; z-index: 1; }
.wallet-entry:hover .we-name { color: var(--gold); }
.wallet-entry:hover .we-arrow { opacity: 1; transform: translateX(0); }

.we-logo {
  width: 48px;
  height: 48px;
  border: 1px solid var(--border-2);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 700;
  flex-shrink: 0;
  border-radius: 0;
}
.we-main {}
.we-name {
  font-family: var(--serif);
  font-size: 22px;
  font-weight: 600;
  letter-spacing: -0.01em;
  color: var(--text);
  line-height: 1;
  margin-bottom: 5px;
  transition: color 0.22s;
}
.we-meta {
  font-family: var(--mono);
  font-size: var(--fs-micro);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-dim);
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}
.we-chains {
  font-size: var(--fs-small);
  color: var(--text-muted);
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.we-chain {
  font-family: var(--mono);
  font-size: var(--fs-micro);
  color: var(--text-dim);
  border: 1px solid var(--border);
  padding: 2px 8px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}
.we-version {
  font-family: var(--mono);
  font-size: var(--fs-micro);
  color: var(--gold);
  letter-spacing: 0.06em;
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.we-version .ver { font-size: 14px; }
.we-verified {
  display: flex;
  align-items: center;
  gap: 5px;
  font-family: var(--mono);
  font-size: var(--fs-micro);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--forest);
  border: 1px solid rgba(58,107,30,0.3);
  padding: 3px 8px;
  white-space: nowrap;
}
.we-verified::before { content: '✓'; font-size: 10px; }
.we-arrow {
  font-size: 18px;
  color: var(--text-muted);
  opacity: 0;
  transform: translateX(-6px);
  transition: opacity 0.22s, transform 0.22s var(--ease-out);
  text-align: right;
}

@media (max-width: 900px) {
  .wallet-entry { grid-template-columns: 48px 1fr 80px; gap: 16px; }
  .we-chains { display: none; }
  .we-version { align-items: flex-end; }
  .we-verified { display: none; }
}
@media (max-width: 560px) {
  .wallet-entry { grid-template-columns: 40px 1fr auto; gap: 12px; padding: 16px 0; }
  .we-arrow { opacity: 1; transform: translateX(0); }
}

/* ─── Steps ─────────────────────────────────────────────────────── */
.steps-section {
  padding: 100px 0;
  background: var(--ink-2);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}
.steps-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
}
.step-item {
  padding: 48px;
  border-right: 1px solid var(--border);
  position: relative;
}
.step-item:last-child { border-right: none; }
.step-numeral {
  font-family: var(--serif);
  font-size: 120px;
  font-weight: 600;
  line-height: 1;
  color: var(--ink-3);
  letter-spacing: -0.05em;
  margin-bottom: -16px;
  position: relative;
  z-index: 0;
  user-select: none;
}
.step-content {
  position: relative;
  z-index: 1;
}
.step-content h3 {
  font-family: var(--serif);
  font-size: 26px;
  font-weight: 600;
  color: var(--text);
  letter-spacing: -0.01em;
  margin-bottom: 12px;
  line-height: 1.2;
}
.step-content p {
  font-size: var(--fs-small);
  color: var(--text-muted);
  line-height: 1.75;
}
@media (max-width: 768px) {
  .steps-grid { grid-template-columns: 1fr; }
  .step-item { border-right: none; border-bottom: 1px solid var(--border); padding: 36px var(--gutter); }
  .step-item:last-child { border-bottom: none; }
  .step-numeral { font-size: 80px; }
}

/* ─── Pull quote ────────────────────────────────────────────────── */
.quote-section {
  padding: 100px 0;
  background: var(--parchment);
  color: var(--text-dark);
  border-top: 1px solid var(--border-light);
}
.quote-inner {
  max-width: 1000px;
  margin: 0 auto;
  padding: 0 var(--gutter);
  display: grid;
  grid-template-columns: 40px 1fr;
  gap: 32px;
}
.quote-mark {
  font-family: var(--serif);
  font-size: 120px;
  font-weight: 600;
  color: var(--parchment-3);
  line-height: 0.8;
  user-select: none;
}
.quote-text {
  font-family: var(--serif);
  font-size: clamp(26px, 3.5vw, 48px);
  font-weight: 500;
  line-height: 1.25;
  color: var(--text-dark);
  letter-spacing: -0.01em;
}
.quote-text em { font-style: italic; color: var(--vermillion-dim); }
.quote-attribution {
  margin-top: 24px;
  font-family: var(--mono);
  font-size: var(--fs-micro);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-dark-muted);
  display: flex;
  align-items: center;
  gap: 14px;
}
.quote-attribution::before {
  content: '';
  display: block;
  width: 32px;
  height: 1px;
  background: var(--text-dark-muted);
}
@media (max-width: 560px) {
  .quote-inner { grid-template-columns: 1fr; gap: 0; }
  .quote-mark { font-size: 60px; }
}

/* ─── Blog grid ──────────────────────────────────────────────────── */
.blog-section { padding: 100px 0; }
.blog-grid-editorial {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
  border-top: 1px solid var(--border);
  border-left: 1px solid var(--border);
}
.blog-card-ed {
  border-right: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  padding: 32px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  transition: background 0.22s;
}
.blog-card-ed:hover { background: var(--ink-2); }
.bc-cat {
  font-family: var(--mono);
  font-size: var(--fs-micro);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--gold);
}
.bc-title {
  font-family: var(--serif);
  font-size: clamp(18px, 1.6vw, 24px);
  font-weight: 600;
  color: var(--text);
  line-height: 1.3;
  letter-spacing: -0.01em;
}
.bc-excerpt {
  font-size: var(--fs-small);
  color: var(--text-muted);
  line-height: 1.7;
  flex: 1;
}
.bc-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-family: var(--mono);
  font-size: var(--fs-micro);
  color: var(--text-dim);
  letter-spacing: 0.06em;
  border-top: 1px solid var(--border);
  padding-top: 16px;
  margin-top: auto;
}
.bc-link {
  color: var(--text-muted);
  display: flex;
  align-items: center;
  gap: 4px;
  transition: color 0.22s;
}
.blog-card-ed:hover .bc-link { color: var(--gold); }
@media (max-width: 900px) {
  .blog-grid-editorial { grid-template-columns: 1fr 1fr; }
  .blog-card-ed:last-child { grid-column: span 2; }
}
@media (max-width: 560px) {
  .blog-grid-editorial { grid-template-columns: 1fr; border-left: none; }
  .blog-card-ed:last-child { grid-column: span 1; }
  .blog-card-ed { border-left: 1px solid var(--border); }
}

/* ─── Wallet page ────────────────────────────────────────────────── */
.page-header {
  padding: calc(var(--header-h) + 60px) 0 0;
  border-bottom: 1px solid var(--border);
}
.crumbs {
  font-family: var(--mono);
  font-size: var(--fs-micro);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-dim);
  display: flex;
  gap: 8px;
  align-items: center;
  margin-bottom: 40px;
}
.crumbs a { color: var(--text-dim); transition: color 0.18s; }
.crumbs a:hover { color: var(--text-muted); }
.crumbs .sep { color: var(--text-dim); opacity: 0.4; }
.page-header-title {
  font-family: var(--serif);
  font-size: var(--fs-h1);
  font-weight: 600;
  color: var(--text);
  letter-spacing: -0.02em;
  margin-bottom: 14px;
}
.page-header-sub {
  font-size: clamp(15px, 1.2vw, 17px);
  color: var(--text-muted);
  max-width: 520px;
  line-height: 1.7;
  margin-bottom: 32px;
}
.page-header-bottom {
  border-top: 1px solid var(--border);
  display: flex;
  gap: 0;
  overflow-x: auto;
  overflow-y: hidden;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: thin;
}
.page-header-tab {
  font-family: var(--mono);
  font-size: var(--fs-micro);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-dim);
  padding: 14px 24px;
  border-right: 1px solid var(--border);
  border-bottom: 2px solid transparent;
  margin-bottom: -1px;
  display: flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  user-select: none;
  transition: color 0.18s, border-bottom-color 0.18s, background 0.18s;
  flex: 0 0 auto;
  white-space: nowrap;
}
.page-header-tab:hover { color: var(--text-muted); background: rgba(196,148,58,0.04); }
.page-header-tab.active {
  color: var(--gold);
  background: var(--ink-2);
  border-bottom-color: var(--gold);
}

/* ─── Detail grid ────────────────────────────────────────────────── */
.detail-layout {
  display: grid;
  grid-template-columns: 1fr 360px;
  gap: 48px;
  padding: 56px 0 100px;
  align-items: start;
}
/* Right aside sticks as a whole unit so nothing from the left column bleeds through */
.detail-layout > aside {
  position: sticky;
  top: calc(var(--header-h) + 20px);
  z-index: 20;
  background: var(--ink);
  display: flex;
  flex-direction: column;
  gap: 12px;
  max-height: calc(100vh - var(--header-h) - 40px);
  overflow-y: auto;
  scrollbar-width: thin;
  scrollbar-color: var(--border-2) transparent;
}
.detail-layout > aside::-webkit-scrollbar { width: 4px; }
.detail-layout > aside::-webkit-scrollbar-track { background: transparent; }
.detail-layout > aside::-webkit-scrollbar-thumb { background: var(--border-2); border-radius: 2px; }
@media (max-width: 960px) {
  .detail-layout { grid-template-columns: 1fr; }
  .detail-layout > aside {
    position: static;
    background: transparent;
    max-height: none;
    overflow-y: visible;
  }
}

/* Download panel */
.dl-panel {
  border: 1px solid var(--border-2);
  border-radius: 0;
  background: var(--ink-2);
}
.dl-panel-header {
  padding: 20px 24px;
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.dl-panel-header h3 {
  font-family: var(--serif);
  font-size: 18px;
  font-weight: 600;
}
.dl-verified {
  font-family: var(--mono);
  font-size: var(--fs-micro);
  color: var(--forest);
  letter-spacing: 0.08em;
  display: flex;
  align-items: center;
  gap: 5px;
}
.dl-tabs {
  display: flex;
  border-bottom: 1px solid var(--border);
}
.dl-tab {
  flex: 1;
  padding: 10px;
  font-family: var(--mono);
  font-size: var(--fs-micro);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-dim);
  text-align: center;
  border-right: 1px solid var(--border);
  transition: color 0.18s, background 0.18s;
  border-bottom: 2px solid transparent;
  margin-bottom: -1px;
}
.dl-tab:last-child { border-right: none; }
.dl-tab.active { color: var(--gold); border-bottom-color: var(--gold); background: rgba(196,148,58,0.04); }
.dl-tab:hover { color: var(--text-muted); }
.dl-body { padding: 20px 24px; }
.hash-label {
  font-family: var(--mono);
  font-size: var(--fs-micro);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-dim);
  margin-bottom: 5px;
  display: block;
}
.hash-row {
  display: flex;
  gap: 6px;
  align-items: center;
  margin-bottom: 16px;
}
.hash-val {
  flex: 1;
  font-family: var(--mono);
  font-size: 10.5px;
  color: var(--text);
  background: var(--ink-3);
  border: 1px solid var(--border);
  padding: 7px 10px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.copy-hash {
  font-size: 13px;
  padding: 7px 9px;
  border: 1px solid var(--border);
  color: var(--text-muted);
  transition: color 0.18s, border-color 0.18s;
}
.copy-hash:hover { color: var(--text); border-color: var(--text-muted); }
.dl-btn-wrap { margin-top: 18px; }
.dl-btn-wrap .btn-arrow { width: 100%; justify-content: center; }
.dl-github-row {
  margin-top: 14px;
  padding-top: 14px;
  border-top: 1px solid var(--border);
  font-family: var(--mono);
  font-size: var(--fs-micro);
  letter-spacing: 0.06em;
  color: var(--text-dim);
  display: flex;
  gap: 8px;
  align-items: center;
}
.dl-github-row a { color: var(--gold); }
.dl-github-row a:hover { text-decoration: underline; }

/* Verify section (on detail) */
.hash-table-wrap { border: 1px solid var(--border); margin-bottom: 28px; }
.hash-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
}
.hash-table th {
  padding: 10px 14px;
  text-align: left;
  font-family: var(--mono);
  font-size: var(--fs-micro);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-dim);
  background: var(--ink-3);
  border-bottom: 1px solid var(--border);
}
.hash-table td {
  padding: 10px 14px;
  border-bottom: 1px solid var(--border);
  color: var(--text-muted);
}
.hash-table tr:last-child td { border-bottom: none; }
.hash-table code {
  font-family: var(--mono);
  font-size: 10.5px;
  color: var(--text);
  word-break: break-all;
}
.hash-table td:first-child { font-weight: 600; color: var(--text); white-space: nowrap; }

/* Accordion */
.accordion-item { border: 1px solid var(--border); margin-bottom: 8px; }
.accordion-trigger {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px 20px;
  font-weight: 600;
  font-size: 15px;
  transition: background 0.18s;
  width: 100%;
  text-align: left;
}
.accordion-trigger:hover { background: var(--ink-3); }
.accordion-chevron { font-size: 11px; color: var(--text-dim); transition: transform 0.22s; }
.accordion-item.open .accordion-chevron { transform: rotate(180deg); }
.accordion-body {
  display: none;
  padding: 20px;
  border-top: 1px solid var(--border);
  font-size: var(--fs-small);
  color: var(--text-muted);
  line-height: 1.8;
  background: var(--ink-2);
}
.accordion-item.open .accordion-body { display: block; }
.accordion-body ol, .accordion-body ul { padding-left: 18px; }
.accordion-body li + li { margin-top: 6px; }
.accordion-body code {
  font-family: var(--mono);
  font-size: 11.5px;
  background: var(--ink-3);
  padding: 1px 6px;
  color: var(--gold);
}

/* GitHub panel */
.github-panel-ed {
  border: 1px solid var(--border);
  padding: 20px;
  margin-bottom: 16px;
}
.github-panel-ed h4 {
  font-family: var(--mono);
  font-size: var(--fs-micro);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-dim);
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  gap: 8px;
}
.github-stats-row { display: flex; gap: 28px; margin-bottom: 14px; }
.gh-stat-num { font-family: var(--serif); font-size: 26px; font-weight: 600; color: var(--text); display: block; line-height: 1; }
.gh-stat-label { font-family: var(--mono); font-size: var(--fs-micro); color: var(--text-dim); letter-spacing: 0.06em; }
.github-meta-row { font-family: var(--mono); font-size: var(--fs-micro); color: var(--text-dim); display: flex; flex-direction: column; gap: 4px; }
.github-meta-row strong { color: var(--text); }

/* Feature tags */
.feature-list {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 12px;
}
.feature-tag {
  font-family: var(--mono);
  font-size: var(--fs-micro);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-dim);
  border: 1px solid var(--border);
  padding: 4px 10px;
  border-radius: 0;
}

/* Callout box */
.callout-ed {
  border-left: 2px solid var(--gold);
  padding: 14px 18px;
  background: rgba(196,148,58,0.06);
  margin: 20px 0;
  font-size: var(--fs-small);
  color: var(--text-muted);
  line-height: 1.7;
}
.callout-ed.danger { border-left-color: var(--vermillion); background: rgba(184,60,40,0.06); }
.callout-ed.safe { border-left-color: var(--forest); background: rgba(58,107,30,0.06); }
.callout-ed strong { color: var(--text); }
.callout-ed a { color: var(--gold); text-decoration: underline; }

/* ─── Verify page ─────────────────────────────────────────────── */
.verify-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  padding: 56px 0;
}
@media (max-width: 768px) { .verify-grid { grid-template-columns: 1fr; } }
.verify-panel {
  border: 1px solid var(--border);
  background: var(--ink-2);
}
.vp-header {
  padding: 20px 24px;
  border-bottom: 1px solid var(--border);
}
.vp-header h3 {
  font-family: var(--serif);
  font-size: 20px;
  font-weight: 600;
  margin-bottom: 4px;
}
.vp-header p { font-size: var(--fs-small); color: var(--text-muted); }
.vp-body { padding: 24px; }
.dropzone-ed {
  border: 1px dashed var(--border-2);
  padding: 40px 24px;
  text-align: center;
  cursor: none;
  transition: border-color 0.22s, background 0.22s;
  margin-bottom: 16px;
  position: relative;
}
.dropzone-ed:hover, .dropzone-ed.drag-over {
  border-color: var(--gold);
  background: rgba(196,148,58,0.04);
}
.dropzone-ed input { position: absolute; inset: 0; opacity: 0; cursor: none; }
.dz-icon {
  font-family: var(--serif);
  font-size: 40px;
  color: var(--text-dim);
  margin-bottom: 12px;
}
.dz-text { font-size: var(--fs-small); color: var(--text-dim); line-height: 1.6; }
.dz-text strong { color: var(--gold); }
.algo-row { display: flex; gap: 6px; margin-bottom: 16px; }
.algo-btn-ed {
  font-family: var(--mono);
  font-size: var(--fs-micro);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 6px 14px;
  border: 1px solid var(--border-2);
  color: var(--text-dim);
  background: transparent;
  transition: color 0.18s, border-color 0.18s, background 0.18s;
  border-radius: 0;
}
.algo-btn-ed.active { color: var(--gold); border-color: var(--gold); background: rgba(196,148,58,0.08); }
.algo-btn-ed:hover { color: var(--text-muted); border-color: var(--text-muted); }
.progress-bar-ed { height: 2px; background: var(--ink-4); margin: 12px 0; display: none; }
.progress-bar-ed.visible { display: block; }
.progress-fill-ed { height: 100%; background: var(--gold); transition: width 0.1s; }
.result-box {
  background: var(--ink-3);
  border: 1px solid var(--border);
  padding: 14px;
  font-family: var(--mono);
  font-size: 11.5px;
  display: none;
  margin-top: 12px;
}
.result-box.visible { display: block; }
.result-algo-label { font-size: var(--fs-micro); letter-spacing: 0.1em; text-transform: uppercase; color: var(--text-dim); margin-bottom: 6px; }
.result-hash-val { color: var(--gold); word-break: break-all; line-height: 1.6; }
.file-info-ed {
  font-family: var(--mono);
  font-size: var(--fs-micro);
  color: var(--text-dim);
  letter-spacing: 0.06em;
  padding: 8px 0;
  display: none;
  gap: 8px;
  flex-wrap: wrap;
}
.file-info-ed.visible { display: flex; }
.compare-input-ed {
  width: 100%;
  background: var(--ink-3);
  border: 1px solid var(--border-2);
  padding: 12px;
  font-family: var(--mono);
  font-size: 11.5px;
  color: var(--text);
  resize: vertical;
  min-height: 70px;
  margin-bottom: 14px;
  transition: border-color 0.18s;
}
.compare-input-ed:focus { border-color: var(--gold); outline: none; }
.wallet-select-ed {
  width: 100%;
  background: var(--ink-3);
  border: 1px solid var(--border-2);
  padding: 10px 12px;
  font-family: var(--mono);
  font-size: var(--fs-small);
  color: var(--text);
  margin-bottom: 12px;
  cursor: none;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%237a736b' stroke-width='1.5' fill='none' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
  transition: border-color 0.18s;
}
.wallet-select-ed:focus { border-color: var(--gold); outline: none; }
.compare-match {
  padding: 14px;
  font-size: var(--fs-small);
  font-weight: 600;
  line-height: 1.6;
  display: none;
}
.compare-match.ok { background: rgba(58,107,30,0.1); border: 1px solid rgba(58,107,30,0.3); color: #7dc054; display: block; }
.compare-match.fail { background: rgba(184,60,40,0.1); border: 1px solid rgba(184,60,40,0.3); color: #e07060; display: block; }
.verify-guide-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; margin-top: 24px; }
@media (max-width: 768px) { .verify-guide-grid { grid-template-columns: 1fr; } }

/* Hash ref table */
.hash-ref-table { border: 1px solid var(--border); width: 100%; border-collapse: collapse; font-size: 13px; }
.hash-ref-table th {
  padding: 10px 14px;
  font-family: var(--mono);
  font-size: var(--fs-micro);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-dim);
  background: var(--ink-3);
  border-bottom: 1px solid var(--border);
  text-align: left;
}
.hash-ref-table td { padding: 10px 14px; border-bottom: 1px solid var(--border); color: var(--text-muted); }
.hash-ref-table tr:last-child td { border-bottom: none; }
.hash-ref-table td:first-child { font-weight: 600; color: var(--text); }
.hash-ref-table code { font-family: var(--mono); font-size: 10.5px; color: var(--text); }

/* ─── Blog ────────────────────────────────────────────────────── */
.blog-filter-bar { display: flex; gap: 4px; margin-bottom: 0; border-bottom: 1px solid var(--border); }
.blog-filter-btn {
  font-family: var(--mono);
  font-size: var(--fs-micro);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 12px 20px;
  color: var(--text-dim);
  border-right: 1px solid var(--border);
  background: transparent;
  transition: color 0.18s, background 0.18s;
  border-bottom: 2px solid transparent;
  margin-bottom: -1px;
}
.blog-filter-btn:hover { color: var(--text-muted); }
.blog-filter-btn.active { color: var(--gold); border-bottom-color: var(--gold); background: rgba(196,148,58,0.04); }
.subscribe-form { display: flex; gap: 8px; max-width: 420px; margin: 0 auto; }
.subscribe-form input { min-width: 0; }

@media (max-width: 768px) {
  .blog-filter-bar {
    overflow-x: auto;
    overflow-y: hidden;
    -webkit-overflow-scrolling: touch;
    white-space: nowrap;
    padding-bottom: 2px;
  }
  .blog-filter-btn { flex: 0 0 auto; white-space: nowrap; }
  .blog-filter-bar #blog-count {
    margin-left: 0 !important;
    padding-left: 12px !important;
    flex: 0 0 auto;
  }
  .subscribe-form { flex-wrap: wrap; }
  .subscribe-form input,
  .subscribe-form button { width: 100%; }
}

/* ─── Footer ──────────────────────────────────────────────────── */
.site-footer {
  border-top: 1px solid var(--border);
  background: var(--ink-2);
  padding: 60px 0 32px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 48px;
  margin-bottom: 48px;
  padding-bottom: 48px;
  border-bottom: 1px solid var(--border);
}
.footer-brand .logotype { margin-bottom: 14px; }
.footer-brand p {
  font-size: var(--fs-small);
  color: var(--text-dim);
  line-height: 1.75;
  max-width: 300px;
}
.footer-col h4 {
  font-family: var(--mono);
  font-size: var(--fs-micro);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-dim);
  margin-bottom: 18px;
}
.footer-col a {
  display: block;
  font-size: var(--fs-small);
  color: var(--text-muted);
  margin-bottom: 10px;
  transition: color 0.18s;
}
.footer-col a:hover { color: var(--text); }
.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
}
.footer-bottom p {
  font-family: var(--mono);
  font-size: var(--fs-micro);
  letter-spacing: 0.06em;
  color: var(--text-dim);
}
@media (max-width: 900px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .footer-grid { grid-template-columns: 1fr; gap: 32px; } }

/* ─── Reveal animations ────────────────────────────────────────── */
.reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 0.75s var(--ease-out), transform 0.75s var(--ease-out);
}
.reveal.in { opacity: 1; transform: translateY(0); }
.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }
.reveal-delay-3 { transition-delay: 0.3s; }
.reveal-delay-4 { transition-delay: 0.4s; }
.reveal-delay-5 { transition-delay: 0.5s; }

/* Hero items are always visible — they're in viewport at load */
.hero .reveal {
  opacity: 1;
  transform: none;
  animation: hero-in 0.8s var(--ease-out) both;
}
.hero .reveal-delay-1 { animation-delay: 0.12s; animation-fill-mode: both; }
.hero .reveal-delay-2 { animation-delay: 0.24s; animation-fill-mode: both; }
.hero .reveal-delay-3 { animation-delay: 0.36s; animation-fill-mode: both; }
@keyframes hero-in {
  from { opacity: 0; transform: translateY(20px); }
  to   { opacity: 1; transform: none; }
}
@media (prefers-reduced-motion: reduce) {
  .hero .reveal { animation: none; opacity: 1; transform: none; }
}

/* ─── Pulse verified badge ───────────────────────────────────── */
.verified-pulse {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.verified-pulse::before {
  content: '';
  display: inline-block;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--forest);
  box-shadow: 0 0 0 0 rgba(58,107,30,0.5);
  animation: pulse-ring 2s ease-out infinite;
  flex-shrink: 0;
}
@keyframes pulse-ring {
  0%   { box-shadow: 0 0 0 0 rgba(58,107,30,0.55); }
  60%  { box-shadow: 0 0 0 7px rgba(58,107,30,0); }
  100% { box-shadow: 0 0 0 0 rgba(58,107,30,0); }
}

/* ─── Wallet entry brand accent ──────────────────────────────── */
.wallet-entry {
  border-left: 3px solid transparent;
  transition: background 0.2s, border-left-color 0.25s;
}
.wallet-entry:hover {
  border-left-color: var(--entry-brand, var(--gold));
}

/* ─── Scramble text ──────────────────────────────────────────── */
.scrambling { color: var(--vermillion); }

/* ─── Counter number ─────────────────────────────────────────── */
.hero-stat-num {
  font-variant-numeric: tabular-nums;
}

/* ─── Hash type animation ────────────────────────────────────── */
@keyframes hash-cursor-blink {
  0%, 100% { opacity: 1; }
  50%       { opacity: 0; }
}
.hash-typing::after {
  content: '|';
  font-weight: 300;
  margin-left: 1px;
  animation: hash-cursor-blink 0.7s step-end infinite;
  color: var(--gold);
}

/* ─── Misc ───────────────────────────────────────────────────── */
.text-gold { color: var(--gold); }
.text-vermillion { color: var(--vermillion); }
.text-forest { color: var(--forest); }
.text-muted { color: var(--text-muted); }
.mt-4 { margin-top: 4px; }
.mt-8 { margin-top: 8px; }
.mt-16 { margin-top: 16px; }
.mt-24 { margin-top: 24px; }
.mt-32 { margin-top: 32px; }
.mt-48 { margin-top: 48px; }
.mb-16 { margin-bottom: 16px; }
.mb-24 { margin-bottom: 24px; }
.mb-32 { margin-bottom: 32px; }
.section-space { padding: 100px 0; }
.search-inline {
  position: relative;
  max-width: 400px;
}
.search-inline input {
  width: 100%;
  height: 42px;
  background: var(--ink-3);
  border: 1px solid var(--border-2);
  padding: 0 40px 0 14px;
  font-size: var(--fs-small);
  font-family: var(--sans);
  color: var(--text);
  border-radius: 0;
  transition: border-color 0.18s;
}
.search-inline input::placeholder { color: var(--text-dim); }
.search-inline input:focus { border-color: var(--gold); outline: none; }
.search-inline .si-icon { position: absolute; right: 12px; top: 50%; transform: translateY(-50%); color: var(--text-dim); pointer-events: none; }
.filter-row { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; margin-bottom: 32px; padding-bottom: 20px; border-bottom: 1px solid var(--border); }
.filter-sel {
  height: 36px;
  padding: 0 32px 0 12px;
  background: var(--ink-2);
  border: 1px solid var(--border-2);
  color: var(--text-muted);
  font-family: var(--mono);
  font-size: var(--fs-micro);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6'%3E%3Cpath d='M1 1l4 4 4-4' stroke='%237a736b' stroke-width='1.5' fill='none' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 10px center;
  transition: border-color 0.18s;
  border-radius: 0;
}
.filter-sel:focus { border-color: var(--gold); outline: none; }
.sort-group { display: flex; gap: 4px; }
.sort-btn {
  font-family: var(--mono);
  font-size: var(--fs-micro);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 7px 14px;
  border: 1px solid var(--border-2);
  color: var(--text-dim);
  background: transparent;
  transition: color 0.18s, border-color 0.18s, background 0.18s;
}
.sort-btn.active { color: var(--gold); border-color: var(--gold); background: rgba(196,148,58,0.06); }
.sort-btn:hover { color: var(--text-muted); }
.results-label {
  margin-left: auto;
  font-family: var(--mono);
  font-size: var(--fs-micro);
  color: var(--text-dim);
  letter-spacing: 0.06em;
}

@media (max-width: 768px) {
  .search-inline { max-width: 100%; width: 100%; }
  .filter-sel { width: calc(50% - 4px); }
  .sort-group { width: 100%; }
  .sort-btn { flex: 1; text-align: center; }
  .results-label {
    width: 100%;
    margin-left: 0;
    margin-top: 4px;
  }
  .algo-row { flex-wrap: wrap; }
}

@media (max-width: 520px) {
  .filter-sel { width: 100%; }
}
