/* ============================================
   BEAR SAFETY - NPS-Inspired Design System
   ============================================ */

:root {
  /* Core palette */
  --green-deep: #2D5016;
  --green-mid: #4A7C59;
  --green-light: #87A878;
  --green-pale: #c5d9b2;
  --tan: #F5E6C8;
  --tan-light: #FFF8F0;
  --tan-dark: #E8D5B7;
  --cream: #FFFBF0;
  --brown-rust: #8B4513;
  --brown-dark: #6B3A2A;
  --brown-mid: #A0764E;
  --black-bear: #333;
  --text-primary: #2a2118;
  --text-secondary: #5a4a3a;
  --text-muted: #8a7a6a;
  --danger: #c0392b;
  --caution: #d4a017;
  --safe: #27ae60;
  
  /* Typography */
  --font-display: 'Lora', Georgia, serif;
  --font-body: 'Source Sans 3', 'Segoe UI', sans-serif;
  
  /* Spacing */
  --section-pad: clamp(40px, 5vw, 72px);
  --container-max: 1200px;
  --radius: 8px;
  --radius-lg: 16px;
}

/* ============================================
   RESET & BASE
   ============================================ */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html {
  scroll-behavior: smooth;
  font-size: 16px;
  scroll-padding-top: 70px;
}

body {
  font-family: var(--font-body);
  color: var(--text-primary);
  background: var(--cream);
  line-height: 1.7;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, h5 {
  font-family: var(--font-display);
  line-height: 1.2;
  font-weight: 700;
}

a { color: var(--green-deep); text-decoration: none; }
a:hover { color: var(--brown-rust); }

img { max-width: 100%; }

/* ============================================
   NAVIGATION
   ============================================ */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: rgba(255, 251, 240, 0.95);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(45, 80, 22, 0.1);
  transition: box-shadow 0.3s, background 0.3s;
}

.navbar.scrolled {
  box-shadow: 0 2px 20px rgba(45, 80, 22, 0.12);
}

.nav-inner {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.1rem;
  color: var(--green-deep);
}

.nav-paw { fill: var(--green-deep); }

.nav-links {
  display: flex;
  gap: 6px;
}

.nav-links a {
  padding: 6px 14px;
  font-size: 0.88rem;
  font-weight: 500;
  color: var(--text-secondary);
  border-radius: 6px;
  transition: all 0.2s;
  letter-spacing: 0.02em;
}

.nav-links a:hover {
  color: var(--green-deep);
  background: rgba(74, 124, 89, 0.08);
}

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}

.nav-toggle span {
  width: 22px;
  height: 2px;
  background: var(--green-deep);
  border-radius: 2px;
  transition: transform 0.3s;
}

/* ============================================
   HERO SECTION
   ============================================ */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  overflow: hidden;
  background: linear-gradient(180deg, #5a8f4a 0%, #4A7C59 40%, #2D5016 100%);
}

.hero::after {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at center 40%, rgba(0,0,0,0) 0%, rgba(0,0,0,0.25) 100%);
  pointer-events: none;
  z-index: 1;
}

.hero-bg-mountains {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  top: 0;
  pointer-events: none;
}

.hero-mountain-svg {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 100%;
}

.hero-content {
  position: relative;
  z-index: 2;
  padding: 0 24px;
  animation: fadeInUp 1.2s ease-out;
}

.hero-badge {
  margin-bottom: 24px;
  opacity: 0;
  animation: fadeIn 1s ease-out 0.3s forwards;
}

.hero-badge-svg {
  filter: drop-shadow(0 2px 8px rgba(0,0,0,0.2));
}

.hero-title {
  font-size: clamp(2.4rem, 6vw, 4.5rem);
  color: #fff;
  text-shadow: 0 2px 20px rgba(0,0,0,0.4), 0 0 60px rgba(0,0,0,0.2);
  letter-spacing: 0.01em;
  margin-bottom: 16px;
}

.hero-title span {
  display: block;
  font-size: 1.3em;
  color: #fff;
  text-shadow: 0 3px 30px rgba(0,0,0,0.5), 0 0 80px rgba(0,0,0,0.3);
}

.hero-subtitle {
  font-family: var(--font-body);
  font-size: clamp(1rem, 2.5vw, 1.35rem);
  color: rgba(255, 255, 255, 0.9);
  text-shadow: 0 1px 10px rgba(0,0,0,0.3);
  font-weight: 300;
  max-width: 600px;
  margin: 0 auto 24px;
  letter-spacing: 0.03em;
}

.hero-divider {
  opacity: 0;
  animation: fadeIn 1s ease-out 0.6s forwards;
}

.scroll-indicator {
  position: absolute;
  bottom: 32px;
  left: 50%;
  transform: translateX(-50%);
  color: var(--tan);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  font-size: 0.8rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  font-family: var(--font-body);
  font-weight: 400;
  animation: bounce 2s infinite 2s;
  z-index: 3;
}

/* ============================================
   SECTION COMMON
   ============================================ */
.section {
  padding: var(--section-pad) 24px;
  max-width: var(--container-max);
  margin: 0 auto;
}

.section-header {
  text-align: center;
  margin-bottom: 36px;
}

.section-number {
  display: inline-block;
  font-family: var(--font-display);
  font-size: 0.85rem;
  color: var(--brown-rust);
  letter-spacing: 0.1em;
  margin-bottom: 8px;
  opacity: 0.7;
}

.section-header h2 {
  font-size: clamp(2rem, 4vw, 3rem);
  color: var(--green-deep);
  margin-bottom: 12px;
}

.section-subtitle {
  font-size: 1.1rem;
  color: var(--text-secondary);
  max-width: 650px;
  margin: 0 auto;
  font-weight: 300;
}

.subsection-title {
  font-size: 1.5rem;
  color: var(--green-deep);
  text-align: center;
  margin: 48px 0 8px;
}

.subsection-desc {
  text-align: center;
  color: var(--text-muted);
  margin-bottom: 32px;
  font-size: 0.95rem;
}

/* Section divider pine silhouettes */
.section::before {
  content: '';
  display: block;
  width: 80px;
  height: 3px;
  background: linear-gradient(90deg, transparent, var(--green-mid), transparent);
  margin: 0 auto 40px;
  border-radius: 2px;
}

.hero::before, .site-footer::before { display: none; }

/* ============================================
   BEAR COMPARISON
   ============================================ */
.bear-comparison-grid {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 24px;
  align-items: start;
}

.bear-card {
  background: #fff;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: 0 4px 24px rgba(0,0,0,0.06);
  border: 1px solid rgba(0,0,0,0.05);
  transition: transform 0.3s, box-shadow 0.3s;
}

.bear-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 32px rgba(0,0,0,0.1);
}

.bear-card-header {
  position: relative;
  text-align: center;
  color: #fff;
  overflow: hidden;
}

.bear-photo-wrapper {
  width: 100%;
  height: 260px;
  overflow: hidden;
  position: relative;
}

.black-bear-card .bear-photo-wrapper {
  background: linear-gradient(135deg, #3a3a3a, #1a1a1a);
}

.grizzly-bear-card .bear-photo-wrapper {
  background: linear-gradient(135deg, #8B4513, #6B3A2A);
}

.bear-photo {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 30%;
  display: block;
  transition: transform 0.5s ease;
}

.bear-card:hover .bear-photo {
  transform: scale(1.05);
}

.bear-photo-wrapper::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 60%;
  background: linear-gradient(to top, rgba(30,30,30,0.92) 0%, rgba(30,30,30,0.5) 50%, transparent 100%);
  pointer-events: none;
}

.black-bear-card .bear-photo-wrapper::after {
  background: linear-gradient(to top, rgba(26,26,26,0.92) 0%, rgba(26,26,26,0.5) 50%, transparent 100%);
}

.grizzly-bear-card .bear-photo-wrapper::after {
  background: linear-gradient(to top, rgba(107,58,42,0.92) 0%, rgba(107,58,42,0.5) 50%, transparent 100%);
}

.bear-card-header h3,
.bear-card-header .scientific-name,
.bear-card-header .photo-credit {
  position: relative;
  z-index: 2;
}

.bear-card-header h3 {
  font-size: 1.5rem;
  margin-bottom: 4px;
  margin-top: -56px;
}

.scientific-name {
  font-size: 0.85rem;
  opacity: 0.8;
  font-family: var(--font-body);
}

.photo-credit {
  display: block;
  font-size: 0.7rem;
  opacity: 0.5;
  font-family: var(--font-body);
  margin-top: 4px;
  padding-bottom: 12px;
}

.grizzly-header {
  /* gradient handled by photo overlay */
}

.bear-card-body {
  padding: 20px;
}

.stat-row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  padding: 10px 12px;
  border-bottom: 1px solid rgba(0,0,0,0.05);
  font-size: 0.92rem;
  gap: 12px;
}

.stat-row:last-child { border-bottom: none; }

.stat-label {
  font-weight: 600;
  color: var(--text-secondary);
  white-space: nowrap;
  flex-shrink: 0;
}

.stat-value {
  text-align: right;
  color: var(--text-primary);
}

.stat-value small {
  color: var(--text-muted);
  font-size: 0.85em;
}

.highlight-row {
  background: var(--tan-light);
  border-radius: 6px;
  margin: 4px -4px;
  padding: 10px 16px;
}

.yes-marker::before {
  content: '✓ ';
  color: var(--safe);
  font-weight: 700;
}

.no-marker::before {
  content: '✗ ';
  color: var(--danger);
  font-weight: 700;
}

.vs-divider {
  display: flex;
  align-items: center;
  justify-content: center;
  padding-top: 80px;
}

.vs-circle {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: var(--brown-rust);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.1rem;
  box-shadow: 0 4px 16px rgba(139, 69, 19, 0.3);
}

/* Flip Cards */
.flip-cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 16px;
  max-width: 1100px;
  margin: 0 auto;
}

.flip-card {
  perspective: 800px;
  cursor: pointer;
  height: 180px;
}

.flip-card-inner {
  position: relative;
  width: 100%;
  height: 100%;
  transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
  transform-style: preserve-3d;
}

.flip-card.flipped .flip-card-inner {
  transform: rotateY(180deg);
}

.flip-card-front, .flip-card-back {
  position: absolute;
  width: 100%;
  height: 100%;
  backface-visibility: hidden;
  border-radius: var(--radius);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 20px;
  text-align: center;
}

.flip-card-front {
  background: linear-gradient(135deg, var(--green-deep), var(--green-mid));
  color: #fff;
}

.flip-number {
  display: block;
  font-family: var(--font-display);
  font-size: 2rem;
  font-weight: 700;
  opacity: 0.4;
  margin-bottom: 8px;
}

.flip-question {
  font-weight: 600;
  font-size: 1rem;
}

.flip-card-back {
  background: #fff;
  border: 2px solid var(--green-mid);
  transform: rotateY(180deg);
  color: var(--text-primary);
}

.flip-card-back strong {
  font-family: var(--font-display);
  font-size: 1.05rem;
  color: var(--green-deep);
  margin-bottom: 8px;
}

.flip-card-back p {
  font-size: 0.85rem;
  color: var(--text-secondary);
  line-height: 1.5;
}

/* ============================================
   RANGE MAPS
   ============================================ */
.range-maps-section {
  max-width: 1000px;
}

.maps-toggle {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-bottom: 24px;
}

.map-tab {
  padding: 10px 28px;
  border: 2px solid var(--green-mid);
  background: transparent;
  color: var(--green-deep);
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.95rem;
  border-radius: 30px;
  cursor: pointer;
  transition: all 0.3s;
}

.map-tab.active {
  background: var(--green-deep);
  color: #fff;
  border-color: var(--green-deep);
}

.map-tab:hover:not(.active) {
  background: rgba(74, 124, 89, 0.1);
}

.map-container {
  position: relative;
}

.map-panel {
  display: none;
}

.map-panel.active {
  display: block;
  animation: fadeIn 0.4s ease;
}

.map-legend {
  display: flex;
  justify-content: center;
  gap: 24px;
  margin-bottom: 16px;
}

.legend-item {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.9rem;
  color: var(--text-secondary);
}

.legend-color {
  width: 16px;
  height: 16px;
  border-radius: 3px;
  border: 1px solid rgba(0,0,0,0.1);
}

.map-svg-wrapper {
  background: #fff;
  border-radius: var(--radius-lg);
  padding: 24px;
  box-shadow: 0 4px 24px rgba(0,0,0,0.06);
  border: 1px solid rgba(0,0,0,0.05);
}

.us-map-svg {
  width: 100%;
  height: auto;
}

.us-map-svg path {
  stroke: #fff;
  stroke-width: 1;
  transition: fill 0.2s, opacity 0.2s;
  cursor: pointer;
}

.us-map-svg path:hover {
  opacity: 0.8;
  stroke-width: 2;
  stroke: var(--brown-rust);
}

.map-tooltip {
  position: absolute;
  background: var(--text-primary);
  color: #fff;
  padding: 8px 14px;
  border-radius: 6px;
  font-size: 0.85rem;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.2s;
  z-index: 100;
  white-space: nowrap;
  box-shadow: 0 4px 12px rgba(0,0,0,0.2);
}

.map-tooltip.visible {
  opacity: 1;
}

.map-caption {
  text-align: center;
  color: var(--text-muted);
  font-size: 0.88rem;
  margin-top: 16px;
  font-style: italic;
}

/* ============================================
   BEAR SPRAY SECTION
   ============================================ */
.spray-section {
  max-width: 1100px;
}

.effectiveness-banner {
  background: linear-gradient(135deg, var(--green-deep), #1a3a0d);
  border-radius: var(--radius-lg);
  padding: 40px;
  margin-bottom: 40px;
  color: #fff;
}

.eff-bar-container {
  margin-bottom: 16px;
}

.eff-bar {
  height: 48px;
  border-radius: 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 20px;
  font-weight: 600;
  font-size: 0.95rem;
  width: 0;
  transition: width 1.5s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  overflow: hidden;
  white-space: nowrap;
}

.eff-bar.animated {
  width: var(--target-width);
}

.spray-bar {
  background: linear-gradient(90deg, #27ae60, #2ecc71);
  --target-width: 92%;
}

.firearms-bar {
  background: linear-gradient(90deg, var(--brown-rust), #a0603a);
  --target-width: 67%;
}

.eff-bar-label { font-size: 0.9rem; }
.eff-bar-pct { font-size: 1.4rem; font-family: var(--font-display); }

.eff-note {
  text-align: center;
  font-size: 0.85rem;
  opacity: 0.7;
  margin-top: 16px;
}

/* Spray Facts Grid */
.spray-facts-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 20px;
  margin-bottom: 48px;
}

.spray-fact {
  background: #fff;
  border-radius: var(--radius);
  padding: 24px;
  border: 1px solid rgba(0,0,0,0.05);
  transition: transform 0.3s;
}

.spray-fact:hover { transform: translateY(-2px); }

.spray-fact-icon {
  font-size: 1.8rem;
  margin-bottom: 8px;
}

.spray-fact h4 {
  font-size: 1.05rem;
  color: var(--green-deep);
  margin-bottom: 8px;
}

.spray-fact p {
  font-size: 0.9rem;
  color: var(--text-secondary);
  line-height: 1.6;
}

/* Step-by-Step Deployment Cards */
.spray-steps-section {
  margin-top: 40px;
  margin-bottom: 40px;
}

.spray-steps-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-top: 24px;
}

.spray-step-card {
  background: #fff;
  border-radius: var(--radius-lg);
  padding: 28px 24px 24px;
  border: 1px solid rgba(0,0,0,0.06);
  box-shadow: 0 2px 12px rgba(0,0,0,0.04);
  position: relative;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.spray-step-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 24px rgba(0,0,0,0.08);
}

.step-number {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--green-deep);
  color: #fff;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1rem;
  margin-bottom: 14px;
}

.spray-step-card h4 {
  font-family: var(--font-display);
  font-size: 1.1rem;
  color: var(--text-primary);
  margin-bottom: 8px;
}

.spray-step-card p {
  font-size: 0.88rem;
  color: var(--text-secondary);
  line-height: 1.55;
  margin: 0;
}

@media (max-width: 768px) {
  .spray-steps-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 500px) {
  .spray-steps-grid {
    grid-template-columns: 1fr;
  }
}

/* Bear Spray Demo */
.spray-demo {
  background: var(--tan-light);
  border-radius: var(--radius-lg);
  padding: 40px 32px;
  border: 1px solid var(--tan-dark);
}

.demo-steps-nav {
  display: flex;
  justify-content: center;
  gap: 12px;
  margin-bottom: 32px;
}

.demo-step-btn {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 2px solid var(--green-mid);
  background: #fff;
  color: var(--green-deep);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1rem;
  cursor: pointer;
  transition: all 0.3s;
}

.demo-step-btn.active {
  background: var(--green-deep);
  color: #fff;
  border-color: var(--green-deep);
  transform: scale(1.1);
}

.demo-step-btn:hover:not(.active) {
  background: rgba(74, 124, 89, 0.1);
}

.demo-stage {
  position: relative;
  min-height: 320px;
}

.demo-scene {
  display: none;
  animation: fadeIn 0.5s ease;
}

.demo-scene.active {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
  align-items: center;
}

.scene-illustration {
  position: relative;
  height: 260px;
  background: linear-gradient(180deg, #c8e0b8 0%, #a8cc90 60%, #7ab35e 100%);
  border-radius: var(--radius);
  overflow: hidden;
}

.scene-ground {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 40px;
  background: #6B8F5B;
  border-radius: 0 0 var(--radius) var(--radius);
}

/* Stick Figure */
.stick-figure {
  position: absolute;
  bottom: 50px;
  left: 15%;
}

.sf-head {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--brown-dark);
  margin: 0 auto;
}

.sf-body {
  width: 4px;
  height: 40px;
  background: var(--brown-dark);
  margin: 0 auto;
}

.sf-arm-l, .sf-arm-r {
  position: absolute;
  width: 30px;
  height: 4px;
  background: var(--brown-dark);
  top: 30px;
  border-radius: 2px;
}

.sf-arm-l { left: -16px; transform: rotate(-20deg); }
.sf-arm-r { right: -16px; transform: rotate(20deg); }

.sf-leg-l, .sf-leg-r {
  position: absolute;
  width: 4px;
  height: 35px;
  background: var(--brown-dark);
  bottom: -35px;
  border-radius: 2px;
}

.sf-leg-l { left: 4px; transform: rotate(-10deg); }
.sf-leg-r { right: 4px; transform: rotate(10deg); }

.sf-alert {
  position: absolute;
  top: -20px;
  left: 50%;
  transform: translateX(-50%);
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--danger);
  animation: pulse 1s infinite;
}

/* Bear Figure */
.bear-figure {
  position: absolute;
  bottom: 40px;
  right: 15%;
}

.bear-body {
  width: 60px;
  height: 36px;
  background: var(--brown-rust);
  border-radius: 20px 24px 16px 16px;
  position: relative;
}

.bear-head {
  width: 24px;
  height: 22px;
  background: var(--brown-rust);
  border-radius: 50%;
  position: absolute;
  top: -6px;
  left: -10px;
}

.bear-head::after {
  content: '';
  position: absolute;
  width: 8px;
  height: 6px;
  background: #5a3010;
  border-radius: 50%;
  top: 10px;
  left: 2px;
}

.bear-ear-l, .bear-ear-r {
  width: 8px;
  height: 8px;
  background: var(--brown-rust);
  border-radius: 50%;
  position: absolute;
  top: -14px;
}

.bear-ear-l { left: -6px; }
.bear-ear-r { left: 8px; }

.bear-legs {
  display: flex;
  gap: 6px;
  position: absolute;
  bottom: -18px;
  left: 4px;
}

.bear-legs::before, .bear-legs::after,
.bear-legs span::before, .bear-legs span::after {
  content: '';
  display: block;
  width: 10px;
  height: 20px;
  background: var(--brown-dark);
  border-radius: 0 0 4px 4px;
}

/* Approaching animation */
.bear-figure.approaching {
  animation: bearApproach 2s ease-in-out infinite alternate;
}

.bear-figure.retreating {
  animation: bearRetreat 2s ease-in-out forwards;
  transform: scaleX(-1);
}

/* Spray cloud */
.spray-cloud {
  position: absolute;
  bottom: 60px;
  left: 35%;
  right: 25%;
}

.cloud-puff {
  position: absolute;
  border-radius: 50%;
  background: rgba(255, 140, 0, 0.5);
}

.spray-cloud.active .cloud-puff {
  animation: puffGrow 1.5s ease-out infinite;
}

.cloud-puff.p1 { width: 50px; height: 50px; left: 0; top: -20px; animation-delay: 0s; }
.cloud-puff.p2 { width: 70px; height: 60px; left: 30px; top: -30px; animation-delay: 0.2s; }
.cloud-puff.p3 { width: 60px; height: 50px; left: 70px; top: -15px; animation-delay: 0.4s; }
.cloud-puff.p4 { width: 40px; height: 40px; left: 50px; top: 10px; animation-delay: 0.3s; }
.cloud-puff.p5 { width: 55px; height: 45px; left: 100px; top: -25px; animation-delay: 0.5s; }

.spray-cloud.fading .cloud-puff {
  animation: puffFade 2s ease-out forwards;
}

/* Can closeup */
.can-closeup {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
}

.spray-can {
  position: relative;
  text-align: center;
}

.can-body {
  width: 50px;
  height: 120px;
  background: linear-gradient(135deg, #e05020, #c03010);
  border-radius: 8px 8px 12px 12px;
  margin: 0 auto;
  box-shadow: inset -8px 0 12px rgba(0,0,0,0.2);
}

.can-nozzle {
  width: 20px;
  height: 16px;
  background: #333;
  border-radius: 4px 4px 0 0;
  margin: 0 auto;
  position: relative;
  top: -1px;
}

.safety-clip {
  width: 28px;
  height: 10px;
  background: #ff6600;
  border-radius: 3px;
  position: absolute;
  top: -22px;
  left: 50%;
  transform: translateX(-50%);
}

.safety-clip.removing {
  animation: clipRemove 1.5s ease-in-out infinite;
}

.can-label {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  color: #fff;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.7rem;
  text-align: center;
  line-height: 1.2;
  letter-spacing: 0.1em;
}

/* Aim line */
.spray-can-held {
  position: absolute;
  top: 45%;
  left: 40%;
}

.aim-line {
  width: 100px;
  height: 2px;
  background: repeating-linear-gradient(90deg, var(--danger), var(--danger) 6px, transparent 6px, transparent 12px);
  transform: rotate(10deg);
  animation: aimPulse 1s infinite;
}

/* Holster indicator */
.holster-indicator {
  position: absolute;
  top: 22px;
  right: -14px;
  width: 14px;
  height: 22px;
  background: linear-gradient(135deg, #e05020, #c03010);
  border-radius: 3px;
  animation: holsterGlow 1s infinite;
}

.scene-text h4 {
  font-size: 1.3rem;
  color: var(--green-deep);
  margin-bottom: 12px;
}

.scene-text p {
  color: var(--text-secondary);
  font-size: 0.95rem;
  line-height: 1.7;
}

/* ============================================
   STATISTICS SECTION
   ============================================ */
.stats-callouts {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 16px;
  margin-bottom: 40px;
}

.callout-card {
  background: #fff;
  border-radius: var(--radius);
  padding: 24px;
  text-align: center;
  border: 1px solid rgba(0,0,0,0.05);
  box-shadow: 0 2px 12px rgba(0,0,0,0.04);
  transition: transform 0.3s;
}

.callout-card:hover { transform: translateY(-3px); }

.callout-card.accent {
  background: var(--green-deep);
  color: #fff;
  border-color: var(--green-deep);
}

.callout-card.accent .callout-text { color: rgba(255,255,255,0.85); }
.callout-card.accent .callout-text small { color: rgba(255,255,255,0.6); }

.callout-number {
  font-family: var(--font-display);
  font-size: 2.4rem;
  font-weight: 700;
  color: var(--brown-rust);
  line-height: 1;
  margin-bottom: 8px;
}

.callout-card.accent .callout-number { color: #fff; }

.callout-text {
  font-size: 0.9rem;
  color: var(--text-secondary);
  line-height: 1.4;
}

.callout-text small {
  color: var(--text-muted);
  font-size: 0.85em;
}

/* Charts */
.charts-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}

.chart-card {
  background: #fff;
  border-radius: var(--radius-lg);
  padding: 24px;
  box-shadow: 0 4px 24px rgba(0,0,0,0.06);
  border: 1px solid rgba(0,0,0,0.05);
}

.chart-card.full-width {
  grid-column: 1 / -1;
}

.chart-card h4 {
  font-size: 1.05rem;
  color: var(--green-deep);
  margin-bottom: 16px;
  text-align: center;
}

.chart-wrapper {
  position: relative;
  width: 100%;
  min-height: 250px;
}

.chart-wrapper.square {
  max-width: 350px;
  margin: 0 auto;
}

.stats-trend-note {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  background: var(--tan-light);
  border-left: 4px solid var(--brown-rust);
  border-radius: 0 var(--radius) var(--radius) 0;
  padding: 20px 24px;
  margin-top: 24px;
}

.trend-icon { font-size: 1.5rem; flex-shrink: 0; }

.stats-trend-note p {
  font-size: 0.95rem;
  color: var(--text-secondary);
  line-height: 1.6;
}

/* ============================================
   GEAR SECTION
   ============================================ */
.gear-filters {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
  margin-bottom: 32px;
}

.gear-filter {
  padding: 8px 20px;
  border: 1px solid var(--tan-dark);
  background: #fff;
  color: var(--text-secondary);
  font-family: var(--font-body);
  font-weight: 500;
  font-size: 0.9rem;
  border-radius: 24px;
  cursor: pointer;
  transition: all 0.3s;
}

.gear-filter.active {
  background: var(--green-deep);
  color: #fff;
  border-color: var(--green-deep);
}

.gear-filter:hover:not(.active) {
  border-color: var(--green-mid);
  color: var(--green-deep);
}

.gear-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(270px, 1fr));
  gap: 20px;
}

.gear-card {
  background: #fff;
  border-radius: var(--radius);
  padding: 24px;
  border: 1px solid rgba(0,0,0,0.06);
  box-shadow: 0 2px 12px rgba(0,0,0,0.04);
  position: relative;
  transition: transform 0.3s, box-shadow 0.3s;
}

.gear-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 24px rgba(0,0,0,0.08);
}

.gear-card.hidden {
  display: none;
}

.gear-badge {
  display: inline-block;
  padding: 3px 10px;
  border-radius: 12px;
  font-size: 0.72rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 4px;
  margin-right: 4px;
}

.gear-badge.essential { background: #e8f5e9; color: #2e7d32; }
.gear-badge.recommended { background: #e3f2fd; color: #1565c0; }
.gear-badge.nice { background: #f3e5f5; color: #7b1fa2; }
.gear-badge.best { background: #fff3e0; color: #e65100; }
.gear-badge.value { background: #fce4ec; color: #c62828; }

.gear-card h4 {
  font-size: 1.05rem;
  color: var(--text-primary);
  margin: 8px 0;
}

.gear-price {
  font-family: var(--font-display);
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--green-deep);
  margin-bottom: 12px;
}

.gear-specs {
  list-style: none;
  margin-bottom: 12px;
}

.gear-specs li {
  font-size: 0.88rem;
  color: var(--text-secondary);
  padding: 3px 0;
  border-bottom: 1px dotted rgba(0,0,0,0.08);
}

.gear-note {
  font-size: 0.85rem;
  color: var(--text-muted);
  line-height: 1.5;
  font-style: italic;
}

.gear-warning {
  display: flex;
  gap: 16px;
  align-items: flex-start;
  background: #fff5f5;
  border: 1px solid #ffcccc;
  border-radius: var(--radius);
  padding: 20px 24px;
  margin-top: 32px;
}

.warning-icon { font-size: 1.5rem; flex-shrink: 0; }

.gear-warning strong {
  color: var(--danger);
  font-size: 1rem;
}

.gear-warning p {
  font-size: 0.9rem;
  color: var(--text-secondary);
  margin-top: 4px;
  line-height: 1.6;
}

/* ============================================
   ENCOUNTER FLOWCHART
   ============================================ */
.encounter-section { max-width: 800px; }

.flowchart {
  max-width: 600px;
  margin: 0 auto;
}

.flow-node {
  display: none;
  animation: fadeInUp 0.4s ease;
}

.flow-node.active {
  display: block;
}

.flow-question {
  font-family: var(--font-display);
  font-size: 1.3rem;
  color: var(--green-deep);
  text-align: center;
  margin-bottom: 20px;
  padding: 20px;
  background: #fff;
  border-radius: var(--radius);
  border: 2px solid var(--green-mid);
}

.flow-hint {
  font-size: 0.88rem;
  color: var(--text-secondary);
  background: var(--tan-light);
  padding: 16px;
  border-radius: var(--radius);
  margin-bottom: 20px;
  line-height: 1.6;
}

.flow-actions {
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 8px;
}

.flow-btn {
  padding: 12px 28px;
  border: 2px solid var(--green-mid);
  background: #fff;
  color: var(--green-deep);
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 1rem;
  border-radius: var(--radius);
  cursor: pointer;
  transition: all 0.3s;
}

.flow-btn:hover {
  background: var(--green-deep);
  color: #fff;
  border-color: var(--green-deep);
}

.flow-btn.yes { border-color: var(--safe); color: var(--safe); }
.flow-btn.yes:hover { background: var(--safe); color: #fff; }
.flow-btn.no { border-color: var(--text-muted); color: var(--text-muted); }
.flow-btn.no:hover { background: var(--text-muted); color: #fff; }
.flow-btn.black { border-color: #333; color: #333; }
.flow-btn.black:hover { background: #333; color: #fff; }
.flow-btn.grizzly { border-color: var(--brown-rust); color: var(--brown-rust); }
.flow-btn.grizzly:hover { background: var(--brown-rust); color: #fff; }
.flow-btn.danger { border-color: var(--danger); color: var(--danger); }
.flow-btn.danger:hover { background: var(--danger); color: #fff; }

.flow-answer {
  padding: 24px;
  border-radius: var(--radius);
  margin-bottom: 16px;
}

.flow-answer.safe {
  background: #e8f5e9;
  border-left: 4px solid var(--safe);
}

.flow-answer.caution {
  background: #fff8e1;
  border-left: 4px solid var(--caution);
}

.flow-answer.danger {
  background: #ffebee;
  border-left: 4px solid var(--danger);
}

.flow-answer h4 {
  font-size: 1.2rem;
  margin-bottom: 12px;
}

.flow-answer.safe h4 { color: #2e7d32; }
.flow-answer.caution h4 { color: #f57f17; }
.flow-answer.danger h4 { color: var(--danger); }

.flow-answer ul {
  margin-left: 20px;
}

.flow-answer li {
  font-size: 0.95rem;
  color: var(--text-secondary);
  margin-bottom: 6px;
  line-height: 1.5;
}

.flow-answer p {
  font-size: 0.95rem;
  color: var(--text-secondary);
  line-height: 1.6;
}

.flow-reset {
  display: block;
  margin: 16px auto 0;
  padding: 10px 24px;
  background: var(--green-deep);
  color: #fff;
  border: none;
  border-radius: var(--radius);
  font-family: var(--font-body);
  font-weight: 600;
  cursor: pointer;
  transition: background 0.3s;
}

.flow-reset:hover {
  background: var(--green-mid);
}

/* ============================================
   STORY SECTION
   ============================================ */
.story-section {
  max-width: 900px;
}

.story-container {
  display: grid;
  grid-template-columns: 60px 1fr 60px;
  gap: 24px;
  align-items: start;
}

.story-decoration {
  display: flex;
  flex-direction: column;
  gap: 20px;
  padding-top: 40px;
}

.story-tree.small {
  width: 40px;
  margin-left: 10px;
}

.story-text {
  background: #fff;
  border-radius: var(--radius-lg);
  padding: 40px 36px;
  box-shadow: 0 4px 24px rgba(0,0,0,0.06);
  border: 1px solid rgba(0,0,0,0.05);
  position: relative;
  font-size: 1rem;
  line-height: 1.85;
  color: var(--text-secondary);
}

.story-dropcap {
  float: left;
  font-family: var(--font-display);
  font-size: 4rem;
  font-weight: 700;
  color: var(--green-deep);
  line-height: 0.8;
  margin: 4px 12px 0 0;
}

.story-text p {
  margin-bottom: 16px;
}

.story-text em {
  color: var(--brown-rust);
  font-style: italic;
}

.story-end {
  text-align: center;
  font-size: 1.5rem;
  margin-top: 24px;
  letter-spacing: 0.3em;
}

/* ============================================
   FOOTER
   ============================================ */
.site-footer {
  background: var(--tan);
  padding: 60px 24px 30px;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.footer-inner {
  max-width: 700px;
  margin: 0 auto;
}

.footer-badge {
  margin-bottom: 24px;
}

.footer-credits p {
  font-size: 0.9rem;
  color: var(--text-secondary);
  line-height: 1.6;
  margin-bottom: 12px;
}

.footer-credits a {
  color: var(--green-deep);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.footer-disclaimer {
  font-size: 0.82rem;
  color: var(--text-muted);
  font-style: italic;
}

.footer-links {
  margin: 20px 0;
}

.footer-links a {
  display: inline-block;
  padding: 10px 24px;
  background: var(--green-deep);
  color: #fff;
  border-radius: 24px;
  font-weight: 600;
  font-size: 0.9rem;
  transition: background 0.3s;
}

.footer-links a:hover {
  background: var(--green-mid);
  color: #fff;
}

.footer-trees {
  margin: 24px 0 16px;
  opacity: 0.4;
}

.footer-copy {
  font-size: 0.8rem;
  color: var(--text-muted);
}

/* ============================================
   ANIMATIONS
   ============================================ */
@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes bounce {
  0%, 100% { transform: translateX(-50%) translateY(0); }
  50% { transform: translateX(-50%) translateY(8px); }
}

@keyframes pulse {
  0%, 100% { transform: translateX(-50%) scale(1); opacity: 1; }
  50% { transform: translateX(-50%) scale(1.3); opacity: 0.7; }
}

@keyframes bearApproach {
  0% { transform: translateX(0); }
  100% { transform: translateX(-15px); }
}

@keyframes bearRetreat {
  0% { transform: scaleX(-1) translateX(0); opacity: 1; }
  100% { transform: scaleX(-1) translateX(80px); opacity: 0.3; }
}

@keyframes puffGrow {
  0% { transform: scale(0.3); opacity: 0; }
  50% { opacity: 0.7; }
  100% { transform: scale(1.3); opacity: 0; }
}

@keyframes puffFade {
  0% { opacity: 0.5; }
  100% { opacity: 0; transform: scale(1.5) translateY(-20px); }
}

@keyframes clipRemove {
  0%, 40% { transform: translateX(-50%) translateY(0) rotate(0deg); }
  60%, 100% { transform: translateX(-50%) translateY(-20px) rotate(30deg); opacity: 0; }
}

@keyframes aimPulse {
  0%, 100% { opacity: 0.6; }
  50% { opacity: 1; }
}

@keyframes holsterGlow {
  0%, 100% { box-shadow: 0 0 0 0 rgba(224, 80, 32, 0.4); }
  50% { box-shadow: 0 0 10px 4px rgba(224, 80, 32, 0.6); }
}

/* Scroll reveal */
.reveal {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Noscript fallback: if JS doesn't run, show everything */
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; }
}

/* ============================================
   RESPONSIVE
   ============================================ */
@media (max-width: 900px) {
  .bear-comparison-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }
  
  .vs-divider {
    padding-top: 0;
  }
  
  .charts-grid {
    grid-template-columns: 1fr;
  }
  
  .demo-scene.active {
    grid-template-columns: 1fr;
  }
  
  .story-container {
    grid-template-columns: 1fr;
  }
  
  .story-decoration { display: none; }
}

@media (max-width: 700px) {
  .nav-links {
    display: none;
    position: absolute;
    top: 64px;
    left: 0;
    right: 0;
    background: rgba(255, 251, 240, 0.98);
    backdrop-filter: blur(10px);
    flex-direction: column;
    padding: 12px 24px 20px;
    border-bottom: 1px solid rgba(45, 80, 22, 0.1);
    box-shadow: 0 8px 24px rgba(0,0,0,0.08);
  }
  
  .nav-links.open { display: flex; }
  
  .nav-toggle { display: flex; }
  
  .flip-cards-grid {
    grid-template-columns: 1fr 1fr;
  }
  
  .stats-callouts {
    grid-template-columns: 1fr 1fr;
  }
  
  .gear-grid {
    grid-template-columns: 1fr;
  }
  
  .story-text {
    padding: 24px 20px;
  }
}

@media (max-width: 480px) {
  .flip-cards-grid {
    grid-template-columns: 1fr;
  }
  
  .stats-callouts {
    grid-template-columns: 1fr;
  }
}

/* ============================================
   BEAR SPRAY CINEMATIC ANIMATION
   ============================================ */
.spray-demo {
  background: var(--tan-light);
  border-radius: var(--radius-lg);
  padding: 40px 32px;
  border: 1px solid var(--tan-dark);
}

.anim-phase-label {
  text-align: center;
  font-family: var(--font-display);
  font-size: clamp(1.3rem, 3vw, 1.8rem);
  font-weight: 700;
  color: var(--green-deep);
  letter-spacing: 0.08em;
  margin-bottom: 20px;
  min-height: 2.4em;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: opacity 0.4s ease, transform 0.4s ease;
}

.anim-stage-wrapper {
  position: relative;
  background: #fff;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: 0 4px 24px rgba(0,0,0,0.08);
  border: 1px solid rgba(0,0,0,0.06);
  margin-bottom: 20px;
}

.spray-anim-svg {
  width: 100%;
  height: auto;
  display: block;
}

/* SVG element transitions */
#anim-hiker,
#anim-bear,
#anim-spray-cloud,
#hiker-alert,
#hiker-spray-can,
#hiker-arm-l,
#hiker-arm-r,
#callout-1,
#callout-2,
#callout-3 {
  transition: all 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

#anim-bear {
  transition: transform 1.2s cubic-bezier(0.4, 0, 0.2, 1);
}

#anim-spray-cloud {
  transition: opacity 1s ease, transform 1s ease;
}

/* Play/Pause button */
.anim-play-pause {
  position: absolute;
  bottom: 16px;
  right: 16px;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: rgba(45, 80, 22, 0.85);
  color: #fff;
  border: 2px solid rgba(255,255,255,0.3);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background 0.3s, transform 0.2s;
  z-index: 10;
  backdrop-filter: blur(4px);
}

.anim-play-pause:hover {
  background: rgba(45, 80, 22, 1);
  transform: scale(1.1);
}

/* Progress bar */
.anim-progress-bar {
  padding: 0 8px;
}

.anim-progress-track {
  width: 100%;
  height: 6px;
  background: var(--tan-dark);
  border-radius: 3px;
  overflow: hidden;
  margin-bottom: 12px;
}

.anim-progress-fill {
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, var(--green-deep), var(--green-mid));
  border-radius: 3px;
  transition: width 0.3s linear;
}

.anim-phase-indicators {
  display: flex;
  justify-content: space-between;
  padding: 0 4px;
}

.anim-phase-dot {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  cursor: default;
}

.anim-phase-dot::before {
  content: '';
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--tan-dark);
  border: 2px solid var(--tan-dark);
  transition: all 0.3s;
}

.anim-phase-dot.active::before {
  background: var(--green-deep);
  border-color: var(--green-deep);
  box-shadow: 0 0 0 3px rgba(74, 124, 89, 0.3);
}

.anim-phase-dot.completed::before {
  background: var(--green-mid);
  border-color: var(--green-mid);
}

.anim-phase-dot span {
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  transition: color 0.3s;
}

.anim-phase-dot.active span {
  color: var(--green-deep);
}

/* Spray cloud pulsing animation */
@keyframes sprayPulse {
  0%, 100% { transform: scale(1); opacity: 0.8; }
  50% { transform: scale(1.15); opacity: 1; }
}

#anim-spray-cloud.spraying ellipse {
  animation: sprayPulse 0.8s ease-in-out infinite;
}

#anim-spray-cloud.spraying ellipse:nth-child(2) { animation-delay: 0.1s; }
#anim-spray-cloud.spraying ellipse:nth-child(3) { animation-delay: 0.2s; }
#anim-spray-cloud.spraying ellipse:nth-child(4) { animation-delay: 0.3s; }
#anim-spray-cloud.spraying ellipse:nth-child(5) { animation-delay: 0.15s; }
#anim-spray-cloud.spraying ellipse:nth-child(6) { animation-delay: 0.25s; }

/* Alert icon pulse */
@keyframes alertPulse {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.2); }
}

#hiker-alert.show {
  animation: alertPulse 0.8s ease-in-out infinite;
}

@media (max-width: 600px) {
  .anim-phase-dot span {
    font-size: 0.6rem;
  }
  .anim-phase-label {
    font-size: 1.1rem;
  }
}
