/* ============================================================
   CarniWa Mockup — CSS
   Dark editorial magazine × carnivore lifestyle guide
   ============================================================ */

/* --- Google Fonts import --- */
@import url('https://fonts.googleapis.com/css2?family=Space+Grotesk:wght@400;500;600;700&family=Inter:wght@300;400;500;600&family=JetBrains+Mono:wght@400;500&display=swap');

/* --- Custom Properties --- */
:root {
  /* Palette */
  --bg:           #0a0a0a;
  --bg-alt:       #0e0e0e;
  --surface:      #141414;
  --surface-hover:#1a1a1a;
  --border:       #222;
  --border-light: #2a2a2a;

  --gold:         #d4940a;
  --gold-light:   #e8ac2e;
  --gold-dark:    #a87208;
  --gold-glow:    rgba(212,148,10,.12);

  --text:         #f0ece4;
  --text-dim:     #9a958c;
  --text-muted:   #5e5a54;

  /* Grade palette */
  --grade-5: #22c55e;
  --grade-4: #84cc16;
  --grade-3: #f59e0b;
  --grade-2: #ef4444;
  --grade-1: #991b1b;

  /* Typography */
  --font-display: 'Space Grotesk', sans-serif;
  --font-body:    'Inter', sans-serif;
  --font-mono:    'JetBrains Mono', monospace;

  /* Sizing */
  --nav-h: 64px;
  --max-w: 1200px;
  --radius: 10px;
  --radius-sm: 6px;
}

/* --- Reset --- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-font-smoothing: antialiased; }
body {
  font-family: var(--font-body);
  font-weight: 400;
  color: var(--text);
  background: var(--bg);
  line-height: 1.6;
  overflow-x: hidden;
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
button { font-family: inherit; cursor: pointer; border: none; background: none; color: inherit; }
ul, ol { list-style: none; }

/* --- Grain Overlay --- */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  z-index: 9999;
  pointer-events: none;
  opacity: .035;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)'/%3E%3C/svg%3E");
  background-repeat: repeat;
  background-size: 200px;
}

/* --- Scroll Progress --- */
.scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  width: 0%;
  height: 2px;
  background: linear-gradient(90deg, var(--gold-dark), var(--gold), var(--gold-light));
  z-index: 10001;
  transition: width .1s linear;
}

/* ============================================================
   NAVIGATION
   ============================================================ */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: var(--nav-h);
  z-index: 10000;
  display: flex;
  align-items: center;
  padding: 0 clamp(1rem, 4vw, 2.5rem);
  background: rgba(10,10,10,.85);
  backdrop-filter: blur(16px) saturate(1.2);
  border-bottom: 1px solid transparent;
  transition: border-color .3s, background .3s;
}
.nav.scrolled {
  border-bottom-color: var(--border);
  background: rgba(10,10,10,.95);
}
.nav__logo {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.35rem;
  letter-spacing: -.02em;
  display: flex;
  align-items: center;
  gap: .5rem;
}
.nav__logo .cw-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  background: var(--gold);
  color: var(--bg);
  border-radius: 6px;
  font-size: .85rem;
  font-weight: 700;
  letter-spacing: 0;
}
.nav__links {
  display: flex;
  gap: 2rem;
  margin-left: auto;
  align-items: center;
}
.nav__links a {
  font-family: var(--font-display);
  font-size: .875rem;
  font-weight: 500;
  color: var(--text-dim);
  position: relative;
  padding: .25rem 0;
  transition: color .25s;
}
.nav__links a:hover,
.nav__links a.active {
  color: var(--text);
}
.nav__links a.active::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--gold);
  border-radius: 1px;
}

/* Mobile menu */
.nav__hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  margin-left: auto;
  padding: 8px;
}
.nav__hamburger span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--text);
  border-radius: 1px;
  transition: transform .3s, opacity .3s;
}
.nav__hamburger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav__hamburger.open span:nth-child(2) { opacity: 0; }
.nav__hamburger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.nav__mobile-menu {
  display: none;
  position: fixed;
  top: var(--nav-h);
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(10,10,10,.97);
  backdrop-filter: blur(24px);
  flex-direction: column;
  padding: 2rem;
  gap: 1.5rem;
  z-index: 9999;
}
.nav__mobile-menu.open { display: flex; }
.nav__mobile-menu a {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--text-dim);
  transition: color .25s;
}
.nav__mobile-menu a.active { color: var(--gold); }

@media (max-width: 768px) {
  .nav__links { display: none; }
  .nav__hamburger { display: flex; }
}

/* ============================================================
   LAYOUT UTILS
   ============================================================ */
.container {
  width: 100%;
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 clamp(1rem, 4vw, 2.5rem);
}
.section {
  padding: clamp(4rem, 8vw, 7rem) 0;
}
.section--alt { background: var(--bg-alt); }

/* ============================================================
   TYPOGRAPHY
   ============================================================ */
h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -.025em;
}
h1 { font-size: clamp(2.5rem, 6vw, 4.5rem); }
h2 { font-size: clamp(1.75rem, 4vw, 2.75rem); }
h3 { font-size: clamp(1.25rem, 2.5vw, 1.5rem); }
h4 { font-size: 1.1rem; }

.label {
  font-family: var(--font-mono);
  font-size: .7rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: .1em;
  color: var(--gold);
}

.text-dim { color: var(--text-dim); }
.text-muted { color: var(--text-muted); }
.text-gold { color: var(--gold); }

/* ============================================================
   BUTTONS
   ============================================================ */
.btn {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  font-family: var(--font-display);
  font-size: .875rem;
  font-weight: 600;
  padding: .75rem 1.5rem;
  border-radius: var(--radius-sm);
  transition: all .25s;
}
.btn--gold {
  background: var(--gold);
  color: var(--bg);
}
.btn--gold:hover {
  background: var(--gold-light);
  transform: translateY(-1px);
  box-shadow: 0 8px 24px rgba(212,148,10,.25);
}
.btn--outline {
  border: 1px solid var(--border-light);
  color: var(--text-dim);
}
.btn--outline:hover {
  border-color: var(--gold);
  color: var(--gold);
}
.btn--ghost {
  color: var(--gold);
  padding: .5rem 0;
}
.btn--ghost:hover { color: var(--gold-light); }
.btn--ghost .arrow {
  transition: transform .25s;
}
.btn--ghost:hover .arrow { transform: translateX(4px); }

/* ============================================================
   GRADE BADGES
   ============================================================ */
.grade-badge {
  display: inline-flex;
  align-items: center;
  gap: .4rem;
  font-family: var(--font-mono);
  font-size: .7rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: .06em;
  padding: .3rem .6rem;
  border-radius: 4px;
  line-height: 1;
}
.grade-badge .grade-num {
  font-weight: 700;
  font-size: .8rem;
}
.grade-badge--5 { background: rgba(34,197,94,.12); color: var(--grade-5); border: 1px solid rgba(34,197,94,.2); }
.grade-badge--4 { background: rgba(132,204,22,.12); color: var(--grade-4); border: 1px solid rgba(132,204,22,.2); }
.grade-badge--3 { background: rgba(245,158,11,.12); color: var(--grade-3); border: 1px solid rgba(245,158,11,.2); }
.grade-badge--2 { background: rgba(239,68,68,.12); color: var(--grade-2); border: 1px solid rgba(239,68,68,.2); }
.grade-badge--1 { background: rgba(153,27,27,.15); color: #ef4444; border: 1px solid rgba(153,27,27,.3); }

/* Large grade badge (detail page) */
.grade-badge--lg {
  font-size: 1rem;
  padding: .6rem 1.2rem;
  gap: .6rem;
}
.grade-badge--lg .grade-num {
  font-size: 1.5rem;
}

/* ============================================================
   TYPE BADGES
   ============================================================ */
.type-badge {
  display: inline-flex;
  align-items: center;
  gap: .3rem;
  font-family: var(--font-mono);
  font-size: .65rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: .08em;
  color: var(--text-muted);
  padding: .2rem .5rem;
  border: 1px solid var(--border);
  border-radius: 3px;
}

/* ============================================================
   HERO SECTION
   ============================================================ */
.hero {
  min-height: 85vh;
  display: flex;
  align-items: center;
  position: relative;
  padding-top: var(--nav-h);
  overflow: hidden;
}
.hero::before {
  content: '';
  position: absolute;
  top: -30%;
  right: -20%;
  width: 70vw;
  height: 70vw;
  background: radial-gradient(circle, rgba(212,148,10,.06) 0%, transparent 70%);
  pointer-events: none;
}
.hero::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 120px;
  background: linear-gradient(to top, var(--bg), transparent);
  pointer-events: none;
}
.hero__content {
  position: relative;
  z-index: 1;
  max-width: 720px;
}
.hero__tagline {
  font-family: var(--font-mono);
  font-size: .75rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: .15em;
  color: var(--gold);
  margin-bottom: 1.5rem;
  display: flex;
  align-items: center;
  gap: .75rem;
}
.hero__tagline::before {
  content: '';
  width: 24px;
  height: 1px;
  background: var(--gold);
}
.hero h1 {
  margin-bottom: 1.5rem;
}
.hero h1 .gold { color: var(--gold); }
.hero__sub {
  font-size: 1.1rem;
  color: var(--text-dim);
  max-width: 540px;
  margin-bottom: 2.5rem;
  line-height: 1.7;
}

/* Search bar */
.search-bar {
  display: flex;
  align-items: center;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  max-width: 520px;
  transition: border-color .3s;
}
.search-bar:focus-within {
  border-color: var(--gold);
  box-shadow: 0 0 0 3px var(--gold-glow);
}
.search-bar__icon {
  padding: 0 1rem;
  color: var(--text-muted);
  flex-shrink: 0;
}
.search-bar input {
  flex: 1;
  background: none;
  border: none;
  outline: none;
  color: var(--text);
  font-family: var(--font-body);
  font-size: .95rem;
  padding: .9rem 0;
}
.search-bar input::placeholder {
  color: var(--text-muted);
}
.search-bar .btn {
  margin: .35rem;
  border-radius: var(--radius-sm);
}

/* ============================================================
   STATS BAR
   ============================================================ */
.stats-bar {
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  background: var(--bg-alt);
}
.stats-bar__inner {
  display: flex;
  justify-content: space-between;
  padding: 2rem 0;
  gap: 1rem;
  flex-wrap: wrap;
}
.stat {
  text-align: center;
  flex: 1;
  min-width: 120px;
}
.stat__num {
  font-family: var(--font-display);
  font-size: clamp(1.75rem, 3.5vw, 2.5rem);
  font-weight: 700;
  color: var(--gold);
  line-height: 1;
  margin-bottom: .35rem;
}
.stat__label {
  font-family: var(--font-mono);
  font-size: .65rem;
  text-transform: uppercase;
  letter-spacing: .1em;
  color: var(--text-muted);
}

/* ============================================================
   PILLARS / HOW IT WORKS
   ============================================================ */
.pillars {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
}
.pillar {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 2rem;
  transition: border-color .3s, transform .3s;
}
.pillar:hover {
  border-color: var(--gold-dark);
  transform: translateY(-2px);
}
.pillar__icon {
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--gold-glow);
  border: 1px solid rgba(212,148,10,.15);
  border-radius: var(--radius-sm);
  color: var(--gold);
  font-size: 1.25rem;
  margin-bottom: 1.25rem;
}
.pillar h3 { margin-bottom: .75rem; }
.pillar p {
  color: var(--text-dim);
  font-size: .9rem;
  line-height: 1.7;
}

/* ============================================================
   PLACE CARDS
   ============================================================ */
.places-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 1.25rem;
}
.place-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: .75rem;
  transition: border-color .3s, transform .3s, box-shadow .3s;
  cursor: pointer;
}
.place-card:hover {
  border-color: var(--border-light);
  transform: translateY(-2px);
  box-shadow: 0 12px 32px rgba(0,0,0,.3);
}
.place-card__header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: .75rem;
}
.place-card__name {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.05rem;
  line-height: 1.3;
}
.place-card__meta {
  display: flex;
  align-items: center;
  gap: .5rem;
  flex-wrap: wrap;
}
.place-card__city {
  font-size: .8rem;
  color: var(--text-muted);
}
.place-card__evidence {
  font-size: .85rem;
  color: var(--text-dim);
  line-height: 1.6;
  flex: 1;
}
.place-card__action {
  font-family: var(--font-mono);
  font-size: .7rem;
  color: var(--gold);
  text-transform: uppercase;
  letter-spacing: .06em;
  padding-top: .5rem;
  border-top: 1px solid var(--border);
  display: flex;
  align-items: center;
  gap: .4rem;
}

/* ============================================================
   FILTER BAR
   ============================================================ */
.filter-bar {
  display: flex;
  gap: .75rem;
  flex-wrap: wrap;
  margin-bottom: 2rem;
  align-items: center;
}
.filter-bar select,
.filter-bar .filter-btn {
  font-family: var(--font-display);
  font-size: .8rem;
  font-weight: 500;
  background: var(--surface);
  color: var(--text-dim);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: .55rem 1rem;
  outline: none;
  appearance: none;
  cursor: pointer;
  transition: border-color .25s, color .25s;
}
.filter-bar select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%235e5a54' stroke-width='2'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right .75rem center;
  padding-right: 2rem;
}
.filter-bar select:focus,
.filter-bar .filter-btn:hover,
.filter-bar .filter-btn.active {
  border-color: var(--gold);
  color: var(--text);
}
.filter-bar .filter-btn.active {
  background: var(--gold-glow);
  color: var(--gold);
}
.filter-bar__count {
  margin-left: auto;
  font-family: var(--font-mono);
  font-size: .75rem;
  color: var(--text-muted);
}

/* ============================================================
   PLACE DETAIL
   ============================================================ */
.detail-hero {
  padding-top: calc(var(--nav-h) + 3rem);
  padding-bottom: 3rem;
  border-bottom: 1px solid var(--border);
}
.detail-hero__breadcrumb {
  font-family: var(--font-mono);
  font-size: .7rem;
  color: var(--text-muted);
  margin-bottom: 1.5rem;
  display: flex;
  gap: .5rem;
}
.detail-hero__breadcrumb a:hover { color: var(--gold); }
.detail-hero__top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 2rem;
  flex-wrap: wrap;
}
.detail-hero__info h1 {
  margin-bottom: .75rem;
}
.detail-hero__meta {
  display: flex;
  gap: .75rem;
  align-items: center;
  flex-wrap: wrap;
  margin-bottom: 1rem;
}
.detail-hero__address {
  font-size: .9rem;
  color: var(--text-dim);
}

/* Criteria scores */
.criteria-section {
  padding: 3rem 0;
}
.criteria-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 1.25rem;
  margin-top: 2rem;
}
.criteria-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.25rem;
}
.criteria-card__header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: .75rem;
}
.criteria-card__name {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: .95rem;
}
.criteria-card__score {
  font-family: var(--font-mono);
  font-size: .85rem;
  font-weight: 500;
}
.criteria-card__bar {
  height: 6px;
  background: var(--border);
  border-radius: 3px;
  overflow: hidden;
  margin-bottom: .75rem;
}
.criteria-card__bar-fill {
  height: 100%;
  border-radius: 3px;
  transition: width 1.2s cubic-bezier(.22,.61,.36,1);
  width: 0;
}
.criteria-card__bar-fill.animated { /* width set via JS */ }
.criteria-card__evidence {
  font-size: .8rem;
  color: var(--text-dim);
  line-height: 1.6;
}
.criteria-card__weight {
  font-family: var(--font-mono);
  font-size: .65rem;
  color: var(--text-muted);
  margin-top: .5rem;
}

/* Evidence & reasoning */
.evidence-section {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 2rem;
}
.evidence-section h3 { margin-bottom: 1rem; }
.evidence-section p {
  color: var(--text-dim);
  line-height: 1.8;
}

/* Action section */
.action-section {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  margin-top: 2rem;
}

/* Map placeholder */
.map-placeholder {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  height: 300px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
  font-family: var(--font-mono);
  font-size: .8rem;
  margin-top: 2rem;
  position: relative;
  overflow: hidden;
}
.map-placeholder::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    linear-gradient(var(--border) 1px, transparent 1px),
    linear-gradient(90deg, var(--border) 1px, transparent 1px);
  background-size: 40px 40px;
  opacity: .3;
}

/* ============================================================
   VOICES / CREATORS
   ============================================================ */
.voices-hero {
  padding-top: calc(var(--nav-h) + 4rem);
  padding-bottom: 3rem;
  text-align: center;
}
.voices-hero h1 {
  margin-bottom: 1rem;
}
.voices-hero p {
  color: var(--text-dim);
  max-width: 580px;
  margin: 0 auto;
  font-size: 1.05rem;
}

.creators-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
  gap: 1.25rem;
}
.creator-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.75rem;
  display: flex;
  flex-direction: column;
  gap: .75rem;
  transition: border-color .3s, transform .3s;
}
.creator-card:hover {
  border-color: var(--gold-dark);
  transform: translateY(-2px);
}
.creator-card__header {
  display: flex;
  align-items: center;
  gap: 1rem;
}
.creator-card__avatar {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--gold-dark), var(--gold));
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.1rem;
  color: var(--bg);
  flex-shrink: 0;
}
.creator-card__name {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.05rem;
}
.creator-card__badges {
  display: flex;
  gap: .4rem;
  flex-wrap: wrap;
  margin-top: .15rem;
}
.tier-badge {
  font-family: var(--font-mono);
  font-size: .6rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: .08em;
  padding: .15rem .45rem;
  border-radius: 3px;
}
.tier-badge--spotlight {
  background: rgba(212,148,10,.15);
  color: var(--gold);
  border: 1px solid rgba(212,148,10,.25);
}
.tier-badge--rising {
  background: rgba(132,204,22,.1);
  color: var(--grade-4);
  border: 1px solid rgba(132,204,22,.15);
}
.tier-badge--discovery {
  background: rgba(99,102,241,.1);
  color: #818cf8;
  border: 1px solid rgba(99,102,241,.15);
}
.creator-type-badge {
  font-family: var(--font-mono);
  font-size: .6rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: .08em;
  padding: .15rem .45rem;
  border-radius: 3px;
  background: rgba(240,236,228,.06);
  color: var(--text-muted);
  border: 1px solid var(--border);
}
.creator-card__bio {
  font-size: .85rem;
  color: var(--text-dim);
  line-height: 1.6;
}
.creator-card__stats {
  display: flex;
  gap: 1.5rem;
  padding-top: .5rem;
  border-top: 1px solid var(--border);
  font-family: var(--font-mono);
  font-size: .7rem;
  color: var(--text-muted);
}
.creator-card__stats strong {
  color: var(--text);
  font-weight: 600;
}

/* Stories grid */
.stories-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
  gap: 1.25rem;
  margin-top: 2rem;
}
.story-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  transition: border-color .3s, transform .3s;
}
.story-card:hover {
  border-color: var(--border-light);
  transform: translateY(-2px);
}
.story-card__thumb {
  width: 100%;
  height: 180px;
  background: linear-gradient(135deg, #1a1a1a 0%, #222 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}
.story-card__play {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: rgba(255,255,255,.1);
  backdrop-filter: blur(8px);
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(255,255,255,.15);
}
.story-card__body {
  padding: 1.25rem;
}
.story-card__title {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: .95rem;
  margin-bottom: .5rem;
  line-height: 1.4;
}
.story-card__creator {
  font-size: .8rem;
  color: var(--text-dim);
  margin-bottom: .75rem;
}
.story-card__teaser {
  font-size: .85rem;
  color: var(--text-dim);
  line-height: 1.6;
  margin-bottom: .75rem;
}
.story-card__meta {
  display: flex;
  gap: 1rem;
  font-family: var(--font-mono);
  font-size: .7rem;
  color: var(--text-muted);
}

/* ============================================================
   SECTION HEADERS
   ============================================================ */
.section-header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 2rem;
  flex-wrap: wrap;
}
.section-header h2 { margin-bottom: .25rem; }
.section-header .label { margin-bottom: .75rem; }

/* ============================================================
   FOOTER
   ============================================================ */
.footer {
  border-top: 1px solid var(--border);
  padding: 3rem 0 2rem;
  background: var(--bg-alt);
}
.footer__inner {
  display: flex;
  justify-content: space-between;
  gap: 2rem;
  flex-wrap: wrap;
}
.footer__brand {
  max-width: 300px;
}
.footer__brand .nav__logo {
  margin-bottom: 1rem;
}
.footer__brand p {
  font-size: .85rem;
  color: var(--text-muted);
  line-height: 1.6;
}
.footer__links h4 {
  font-size: .8rem;
  color: var(--text-dim);
  margin-bottom: .75rem;
}
.footer__links a {
  display: block;
  font-size: .85rem;
  color: var(--text-muted);
  padding: .2rem 0;
  transition: color .25s;
}
.footer__links a:hover { color: var(--gold); }
.footer__bottom {
  margin-top: 2.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--border);
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: .5rem;
  font-family: var(--font-mono);
  font-size: .65rem;
  color: var(--text-muted);
}

/* ============================================================
   ANIMATIONS
   ============================================================ */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity .7s cubic-bezier(.22,.61,.36,1), transform .7s cubic-bezier(.22,.61,.36,1);
}
.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}
/* Staggered children */
.reveal-stagger > * {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity .5s cubic-bezier(.22,.61,.36,1), transform .5s cubic-bezier(.22,.61,.36,1);
}
.reveal-stagger.visible > *:nth-child(1) { transition-delay: .05s; }
.reveal-stagger.visible > *:nth-child(2) { transition-delay: .1s; }
.reveal-stagger.visible > *:nth-child(3) { transition-delay: .15s; }
.reveal-stagger.visible > *:nth-child(4) { transition-delay: .2s; }
.reveal-stagger.visible > *:nth-child(5) { transition-delay: .25s; }
.reveal-stagger.visible > *:nth-child(6) { transition-delay: .3s; }
.reveal-stagger.visible > *:nth-child(7) { transition-delay: .35s; }
.reveal-stagger.visible > *:nth-child(8) { transition-delay: .4s; }
.reveal-stagger.visible > *:nth-child(9) { transition-delay: .45s; }
.reveal-stagger.visible > *:nth-child(10) { transition-delay: .5s; }
.reveal-stagger.visible > * {
  opacity: 1;
  transform: translateY(0);
}

/* Counter animation placeholder — handled in JS */

/* ============================================================
   PAGES-SPECIFIC
   ============================================================ */
.page-header {
  padding-top: calc(var(--nav-h) + 3rem);
  padding-bottom: 2rem;
  border-bottom: 1px solid var(--border);
}
.page-header h1 { margin-bottom: .5rem; }
.page-header p {
  color: var(--text-dim);
  font-size: 1rem;
  max-width: 560px;
}

/* ============================================================
   GEAR CARDS
   ============================================================ */
.gear-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 1.25rem;
}
.gear-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: border-color .3s, transform .3s;
}
.gear-card:hover {
  border-color: var(--gold-dark);
  transform: translateY(-2px);
}
.gear-card__img {
  height: 180px;
  background: linear-gradient(135deg, #151515, #1c1c1c);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
  font-size: 2.5rem;
  position: relative;
}
.gear-card__price {
  position: absolute;
  top: .75rem;
  right: .75rem;
  font-family: var(--font-mono);
  font-size: .65rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: .06em;
  padding: .2rem .5rem;
  border-radius: 3px;
  background: rgba(212,148,10,.12);
  color: var(--gold);
  border: 1px solid rgba(212,148,10,.2);
}
.gear-card__body {
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: .6rem;
  flex: 1;
}
.gear-card__name {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.05rem;
}
.gear-card__verdict {
  font-family: var(--font-mono);
  font-size: .75rem;
  color: var(--gold);
  font-weight: 500;
}
.gear-card__desc {
  font-size: .85rem;
  color: var(--text-dim);
  line-height: 1.6;
}
.gear-card__pros-cons {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: .75rem;
  padding-top: .75rem;
  border-top: 1px solid var(--border);
  font-size: .8rem;
  line-height: 1.6;
}
.gear-card__pros-cons h5 {
  font-family: var(--font-mono);
  font-size: .65rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: .06em;
  margin-bottom: .35rem;
}
.gear-card__pros h5 { color: var(--grade-5); }
.gear-card__cons h5 { color: var(--grade-2); }
.gear-card__pros li,
.gear-card__cons li {
  color: var(--text-dim);
  padding-left: .75rem;
  position: relative;
}
.gear-card__pros li::before {
  content: '+';
  position: absolute;
  left: 0;
  color: var(--grade-5);
  font-weight: 600;
}
.gear-card__cons li::before {
  content: '−';
  position: absolute;
  left: 0;
  color: var(--grade-2);
  font-weight: 600;
}
.gear-card__footer {
  padding: 1rem 1.5rem;
  border-top: 1px solid var(--border);
  display: flex;
  gap: .75rem;
  align-items: center;
}
.gear-card__score {
  display: flex;
  align-items: center;
  gap: .35rem;
  font-family: var(--font-mono);
  font-size: .7rem;
  color: var(--text-muted);
}
.gear-card__score strong {
  color: var(--gold);
  font-size: .85rem;
}

/* Affiliate badge */
.affiliate-badge {
  font-family: var(--font-mono);
  font-size: .55rem;
  color: var(--text-muted);
  background: rgba(240,236,228,.04);
  border: 1px solid var(--border);
  padding: .15rem .4rem;
  border-radius: 3px;
  text-transform: uppercase;
  letter-spacing: .06em;
}

/* ============================================================
   LIBRARY / KNOWLEDGE
   ============================================================ */
.library-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
  gap: 1.25rem;
}
.library-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.5rem;
  display: flex;
  gap: 1.25rem;
  transition: border-color .3s, transform .3s;
}
.library-card:hover {
  border-color: var(--gold-dark);
  transform: translateY(-2px);
}
.library-card__icon {
  width: 56px;
  height: 72px;
  border-radius: var(--radius-sm);
  background: linear-gradient(145deg, #1a1a1a, #222);
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  color: var(--gold);
  font-size: 1.25rem;
}
.library-card__body {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: .4rem;
}
.library-card__title {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1rem;
  line-height: 1.3;
}
.library-card__author {
  font-size: .8rem;
  color: var(--text-dim);
}
.library-card__author a {
  color: var(--gold);
  transition: color .25s;
}
.library-card__author a:hover { color: var(--gold-light); }
.library-card__badges {
  display: flex;
  gap: .35rem;
  flex-wrap: wrap;
  margin-top: .15rem;
}
.library-card__desc {
  font-size: .82rem;
  color: var(--text-dim);
  line-height: 1.6;
  margin-top: .25rem;
}
.library-card__footer {
  display: flex;
  gap: .75rem;
  margin-top: auto;
  padding-top: .5rem;
}
.complexity-badge {
  font-family: var(--font-mono);
  font-size: .6rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: .06em;
  padding: .15rem .45rem;
  border-radius: 3px;
}
.complexity-badge--beginner {
  background: rgba(34,197,94,.1);
  color: var(--grade-5);
  border: 1px solid rgba(34,197,94,.15);
}
.complexity-badge--intermediate {
  background: rgba(245,158,11,.1);
  color: var(--grade-3);
  border: 1px solid rgba(245,158,11,.15);
}
.complexity-badge--advanced {
  background: rgba(239,68,68,.1);
  color: var(--grade-2);
  border: 1px solid rgba(239,68,68,.15);
}
.format-badge {
  font-family: var(--font-mono);
  font-size: .55rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: .06em;
  padding: .15rem .4rem;
  border-radius: 3px;
  background: rgba(240,236,228,.04);
  color: var(--text-muted);
  border: 1px solid var(--border);
}

/* ============================================================
   PLACE DETAIL V2 — INSIDER INTEL
   ============================================================ */
.intel-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1rem;
}
.intel-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.25rem;
}
.intel-card__label {
  font-family: var(--font-mono);
  font-size: .65rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: .08em;
  color: var(--text-muted);
  margin-bottom: .5rem;
}
.intel-card__value {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1rem;
  margin-bottom: .35rem;
}
.intel-card__detail {
  font-size: .8rem;
  color: var(--text-dim);
  line-height: 1.6;
}
.intel-card--highlight {
  border-color: rgba(212,148,10,.2);
  background: linear-gradient(135deg, var(--surface), rgba(212,148,10,.03));
}

/* Dual ratings */
.ratings-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.25rem;
}
.rating-block {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.5rem;
  text-align: center;
}
.rating-block__score {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 2.5rem;
  line-height: 1;
  margin-bottom: .25rem;
}
.rating-block__label {
  font-family: var(--font-mono);
  font-size: .65rem;
  text-transform: uppercase;
  letter-spacing: .08em;
  color: var(--text-muted);
  margin-bottom: .5rem;
}
.rating-block__stars {
  color: var(--gold);
  font-size: 1.1rem;
  letter-spacing: .15em;
  margin-bottom: .35rem;
}
.rating-block__count {
  font-family: var(--font-mono);
  font-size: .65rem;
  color: var(--text-muted);
}

/* Evidence gallery */
.evidence-gallery {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
  gap: .75rem;
}
.evidence-gallery__item {
  aspect-ratio: 4/3;
  background: linear-gradient(135deg, #151515, #1e1e1e);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
  font-size: .7rem;
  font-family: var(--font-mono);
  transition: border-color .3s;
}
.evidence-gallery__item:hover {
  border-color: var(--gold-dark);
}

/* Opening hours */
.hours-grid {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: .25rem .75rem;
  font-size: .85rem;
}
.hours-grid__day {
  font-weight: 500;
  color: var(--text);
}
.hours-grid__time {
  color: var(--text-dim);
}
.hours-grid__day--today {
  color: var(--gold);
}
.hours-grid__time--today {
  color: var(--gold);
}

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 640px) {
  .places-grid,
  .creators-grid,
  .stories-grid,
  .gear-grid,
  .library-grid {
    grid-template-columns: 1fr;
  }
  .ratings-row {
    grid-template-columns: 1fr;
  }
  .library-card {
    flex-direction: column;
  }
  .criteria-grid {
    grid-template-columns: 1fr;
  }
  .stats-bar__inner {
    justify-content: center;
    gap: 1.5rem;
  }
  .stat { min-width: 100px; }
  .detail-hero__top {
    flex-direction: column;
  }
  .hero { min-height: 75vh; }
  .filter-bar {
    flex-direction: column;
    align-items: stretch;
  }
  .filter-bar__count {
    margin-left: 0;
    text-align: center;
  }
}
