:root {
  --bg: #fafaf7;
  --bg-dark: #141a12;
  --bg-card: #ffffff;
  --text: #1a1f16;
  --text-soft: #4a5240;
  --text-muted: #7a826f;
  --accent: #3d6b4f;
  --accent-light: #5a9e72;
  --accent-subtle: #e8f0ea;
  --gold: #b8963e;
  --border: #d8ddd2;
  --border-light: #eceee8;
  --font-body: "Inter", system-ui, -apple-system, sans-serif;
  --font-display: "Playfair Display", Georgia, "Times New Roman", serif;
  --radius: 0.5rem;
  --radius-lg: 0.85rem;
  --container: min(1080px, calc(100% - 3rem));
  --section-pad: clamp(4rem, 10vw, 7rem);
}

::selection {
  color: #fff;
  background: var(--accent);
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

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

body {
  min-height: 100vh;
  color: var(--text);
  font-family: var(--font-body);
  background: var(--bg);
  line-height: 1.7;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: var(--accent);
  text-decoration: none;
  transition: color 0.2s ease;
}

a:hover {
  color: var(--accent-light);
}

.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 2rem;
  height: 3.5rem;
  background: rgba(250, 250, 247, 0.82);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border-light);
  transition:
    transform 0.35s ease,
    box-shadow 0.35s ease;
}

.nav.scrolled {
  box-shadow: 0 1px 12px rgba(0, 0, 0, 0.06);
}

.nav__logo {
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--text);
  letter-spacing: -0.01em;
}

.nav__logo:hover {
  color: var(--accent);
}

.nav__links {
  display: flex;
  gap: 1.6rem;
}

.nav__links a {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.78rem;
  font-weight: 500;
  color: var(--text-soft);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  transition: color 0.2s ease;
  position: relative;
}

.nav__links a i {
  font-size: 0.7rem;
}

.nav__links a::after {
  content: "";
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 0;
  height: 1.5px;
  background: var(--accent);
  transition: width 0.25s ease;
}

.nav__links a:hover {
  color: var(--accent);
}

.nav__links a:hover::after {
  width: 100%;
}

.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  overflow: hidden;
  background:
    linear-gradient(
      180deg,
      rgba(20, 26, 18, 0.35) 0%,
      rgba(20, 26, 18, 0.55) 50%,
      rgba(20, 26, 18, 0.8) 100%
    ),
    url("/assets/images/leopard.jpg") center / cover no-repeat;
  color: #fff;
}

.hero__overlay {
  position: absolute;
  inset: 0;
  background: radial-gradient(
    ellipse 70% 60% at 50% 40%,
    transparent 0%,
    rgba(20, 26, 18, 0.4) 100%
  );
}

.hero__content {
  position: relative;
  z-index: 2;
  max-width: 720px;
  padding: 0 1.5rem;
}

.hero__eyebrow {
  font-size: 0.72rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: rgba(255, 255, 255, 0.7);
  margin-bottom: 1rem;
}

.hero__title {
  font-family: var(--font-display);
  font-size: clamp(2.6rem, 7vw, 5rem);
  font-weight: 700;
  line-height: 1.05;
  letter-spacing: -0.02em;
  margin-bottom: 1.2rem;
}

.hero__subtitle {
  font-size: 1.1rem;
  color: rgba(255, 255, 255, 0.8);
  max-width: 520px;
  margin: 0 auto 2.4rem;
  line-height: 1.6;
}

.hero__cta {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  padding: 0.65rem 1.4rem;
  border: 1px solid rgba(255, 255, 255, 0.35);
  border-radius: 999px;
  color: #fff;
  font-size: 0.85rem;
  font-weight: 500;
  letter-spacing: 0.04em;
  transition:
    background 0.25s ease,
    border-color 0.25s ease,
    transform 0.25s ease;
}

.hero__cta:hover {
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(255, 255, 255, 0.5);
  color: #fff;
  transform: translateY(-1px);
}

.hero__cta i {
  font-size: 0.72rem;
  animation: bounceDown 1.8s ease-in-out infinite;
}

@keyframes bounceDown {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(4px);
  }
}

.hero__scroll-indicator {
  position: absolute;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
}

.hero__scroll-line {
  width: 1px;
  height: 48px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.5), transparent);
  animation: scrollLine 2s ease-in-out infinite;
}

@keyframes scrollLine {
  0% {
    opacity: 0;
    transform: scaleY(0);
    transform-origin: top;
  }
  50% {
    opacity: 1;
    transform: scaleY(1);
    transform-origin: top;
  }
  100% {
    opacity: 0;
    transform: scaleY(1);
    transform-origin: bottom;
  }
}

.section {
  padding: var(--section-pad) 0;
}

.section
  > *:not(.stats-row):not(.threat-cards):not(.goals-grid):not(
    .timeline-visual
  ):not(.funding-table-wrapper):not(.success-methods):not(.map-container):not(
    .range-countries
  ) {
  width: var(--container);
  margin-left: auto;
  margin-right: auto;
}

.section--dark {
  background: var(--bg-dark);
  color: #e4e8df;
}

.section--dark .section__number {
  color: var(--accent-light);
}

.section--dark h3,
.section--dark h4 {
  color: #f0f2ed;
}

.section--dark p,
.section--dark li {
  color: #c0c8b8;
}

.section--dark a {
  color: var(--accent-light);
}

.section--dark .threat-card,
.section--dark .success-card,
.section--dark .goal-card {
  background: rgba(255, 255, 255, 0.04);
  border-color: rgba(255, 255, 255, 0.08);
}

.section__header {
  margin-bottom: 2.8rem;
}

.section__number {
  display: block;
  font-size: 0.72rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--accent);
  margin-bottom: 0.4rem;
}

.section__title {
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  font-weight: 700;
  line-height: 1.12;
  letter-spacing: -0.015em;
}

.content-block {
  margin-bottom: 2.4rem;
}

.content-block h3 {
  font-family: var(--font-display);
  font-size: 1.45rem;
  font-weight: 600;
  margin-bottom: 0.75rem;
  letter-spacing: -0.01em;
}

.content-block h4 {
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 0.4rem;
  display: flex;
  align-items: center;
  gap: 0.45rem;
}

.content-block h4 i {
  color: var(--accent);
  font-size: 0.9rem;
}

.content-block p {
  margin-bottom: 0.9rem;
  color: var(--text-soft);
}

.content-block p:last-child {
  margin-bottom: 0;
}

.two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  margin-top: 1rem;
}

.species-intro {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2.5rem;
  align-items: start;
}

.species-intro__image {
  position: relative;
}

.species-intro__image img {
  border-radius: var(--radius-lg);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
}

.image-caption {
  display: block;
  margin-top: 0.55rem;
  font-size: 0.75rem;
  color: var(--text-muted);
  font-style: italic;
}

.stats-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.2rem;
  width: var(--container);
  margin: 2.4rem auto;
}

.stat-card {
  text-align: center;
  padding: 1.6rem 1rem;
  background: var(--accent-subtle);
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-light);
}

.stat-card__number {
  display: block;
  font-family: var(--font-display);
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  font-weight: 700;
  color: var(--accent);
  margin-bottom: 0.3rem;
}

.stat-card__label {
  font-size: 0.8rem;
  color: var(--text-soft);
}

.threat-cards {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.2rem;
  width: var(--container);
  margin: 1.6rem auto 0;
}

.threat-card {
  padding: 1.6rem;
  background: var(--bg-card);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  transition:
    transform 0.25s ease,
    box-shadow 0.25s ease;
}

.threat-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.06);
}

.threat-card__icon {
  width: 2.4rem;
  height: 2.4rem;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: var(--accent-subtle);
  color: var(--accent);
  font-size: 0.95rem;
  margin-bottom: 0.85rem;
}

.threat-card h4 {
  font-size: 1.05rem;
  margin-bottom: 0.5rem;
}

.threat-card p {
  font-size: 0.88rem;
  color: var(--text-soft);
  line-height: 1.65;
}

.map-container {
  width: var(--container);
  margin: 0 auto 2rem;
  text-align: center;
}

.range-map {
  max-width: 640px;
  margin: 0 auto;
  border-radius: var(--radius-lg);
  box-shadow: 0 6px 24px rgba(0, 0, 0, 0.12);
}

.section--dark .image-caption {
  color: #8a9280;
}

.range-countries {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.6rem;
  width: var(--container);
  margin: 0 auto;
}

.range-tag {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.35rem 0.7rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.1);
  font-size: 0.78rem;
  color: #c0c8b8;
}

.range-tag i {
  font-size: 0.65rem;
  color: var(--accent-light);
}

.goals-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1rem;
  width: var(--container);
  margin: 2rem auto 0;
}

.goal-card {
  padding: 1.5rem;
  background: var(--bg-card);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  transition:
    transform 0.25s ease,
    box-shadow 0.25s ease;
}

.goal-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.06);
}

.goal-card__number {
  font-family: var(--font-display);
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--accent);
  margin-bottom: 0.4rem;
  opacity: 0.35;
}

.goal-card h4 {
  font-size: 0.95rem;
  margin-bottom: 0.35rem;
}

.goal-card p {
  font-size: 0.82rem;
  color: var(--text-soft);
  line-height: 1.55;
}

.timeline-visual {
  width: var(--container);
  margin: 0 auto;
  position: relative;
  padding-left: 2.5rem;
}

.timeline-visual::before {
  content: "";
  position: absolute;
  left: 0.7rem;
  top: 0;
  bottom: 0;
  width: 2px;
  background: var(--border);
}

.timeline-phase {
  position: relative;
  margin-bottom: 2.5rem;
  padding: 1.5rem;
  background: var(--bg-card);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
}

.timeline-phase:last-child {
  margin-bottom: 0;
}

.timeline-phase::before {
  content: "";
  position: absolute;
  left: -2.15rem;
  top: 1.7rem;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--accent);
  border: 3px solid var(--bg);
  z-index: 1;
}

.timeline-phase__marker {
  display: inline-block;
  font-size: 0.68rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--accent);
  background: var(--accent-subtle);
  padding: 0.2rem 0.55rem;
  border-radius: 999px;
  margin-bottom: 0.25rem;
}

.timeline-phase__period {
  font-size: 0.78rem;
  color: var(--text-muted);
  margin-bottom: 0.5rem;
}

.timeline-phase h4 {
  font-family: var(--font-display);
  font-size: 1.2rem;
  margin-bottom: 0.6rem;
}

.timeline-phase ul {
  list-style: none;
  padding: 0;
}

.timeline-phase li {
  position: relative;
  padding-left: 1.2rem;
  margin-bottom: 0.4rem;
  font-size: 0.88rem;
  color: var(--text-soft);
  line-height: 1.55;
}

.timeline-phase li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.55em;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--accent);
  opacity: 0.5;
}

.funding-table-wrapper {
  width: var(--container);
  margin: 0 auto 2.4rem;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

.funding-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.88rem;
}

.funding-table th {
  text-align: left;
  font-weight: 600;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #8a9280;
  padding: 0.85rem 1rem;
  border-bottom: 2px solid rgba(255, 255, 255, 0.1);
}

.funding-table td {
  padding: 0.85rem 1rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  color: #c0c8b8;
  vertical-align: top;
}

.funding-table td i {
  color: var(--accent-light);
  margin-right: 0.4rem;
  width: 1rem;
  text-align: center;
}

.funding-table td:last-child {
  white-space: nowrap;
  font-weight: 600;
  color: #e4e8df;
}

.funding-table tfoot td {
  border-bottom: none;
  border-top: 2px solid rgba(255, 255, 255, 0.12);
  font-size: 1rem;
}

.success-methods {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 1.2rem;
  width: var(--container);
  margin: 0 auto 2.4rem;
}

.success-card {
  padding: 1.5rem;
  background: var(--bg-card);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
}

.success-card__icon {
  width: 2.4rem;
  height: 2.4rem;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: var(--accent-subtle);
  color: var(--accent);
  font-size: 0.95rem;
  margin-bottom: 0.85rem;
}

.success-card h4 {
  font-size: 1rem;
  margin-bottom: 0.5rem;
}

.success-card p {
  font-size: 0.85rem;
  color: var(--text-soft);
  line-height: 1.6;
}

.success-card__frequency {
  margin-top: 0.6rem;
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--accent) !important;
  display: flex;
  align-items: center;
  gap: 0.35rem;
}

.success-card__frequency i {
  font-size: 0.7rem;
}

.sources-list ol {
  counter-reset: source;
  list-style: none;
  padding: 0;
}

.sources-list li {
  counter-increment: source;
  position: relative;
  padding-left: 2rem;
  margin-bottom: 1rem;
  font-size: 0.88rem;
  color: #c0c8b8;
  line-height: 1.6;
}

.sources-list li::before {
  content: counter(source) ".";
  position: absolute;
  left: 0;
  font-weight: 700;
  color: var(--accent-light);
}

.sources-list a {
  word-break: break-all;
}

.footer {
  padding: 3rem 0;
  text-align: center;
  background: #0c100a;
  color: #8a9280;
}

.footer__inner {
  width: var(--container);
  margin: 0 auto;
}

.footer__logo {
  font-family: var(--font-display);
  font-size: 1.2rem;
  font-weight: 600;
  color: #d0d6c8;
  margin-bottom: 0.25rem;
}

.footer__tagline {
  font-size: 0.82rem;
  font-style: italic;
  margin-bottom: 0.6rem;
}

.footer__copy {
  font-size: 0.72rem;
  color: #5a6250;
}

.reveal {
  opacity: 0;
  transform: translateY(32px);
}

.reveal.revealed {
  opacity: 1;
  transform: translateY(0);
  transition:
    opacity 0.7s cubic-bezier(0.22, 1, 0.36, 1),
    transform 0.7s cubic-bezier(0.22, 1, 0.36, 1);
}

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

  .species-intro {
    grid-template-columns: 1fr;
  }

  .two-col {
    grid-template-columns: 1fr;
  }

  .stats-row {
    grid-template-columns: 1fr;
  }

  .threat-cards {
    grid-template-columns: 1fr;
  }

  .timeline-visual {
    padding-left: 2rem;
  }

  .success-methods {
    grid-template-columns: 1fr;
  }

  .hero__title {
    font-size: clamp(2rem, 8vw, 3.2rem);
  }
}

@media (max-width: 480px) {
  :root {
    --container: calc(100% - 2rem);
  }

  .nav {
    padding: 0 1rem;
  }

  .goals-grid {
    grid-template-columns: 1fr;
  }
}

@media (prefers-reduced-motion: reduce) {
  * {
    animation: none !important;
    transition: none !important;
  }

  .reveal {
    opacity: 1;
    transform: none;
  }
}
