:root {
  --ink: #17201b;
  --muted: #667167;
  --paper: #f5ecd9;
  --paper-deep: #ead5b4;
  --canopy: #183f2b;
  --moss: #5f7f4b;
  --lichen: #c6d076;
  --ember: #dc6b35;
  --rosewood: #873f31;
  --night: #101813;
  --white: #fffaf0;
  --shadow: 0 28px 80px rgba(23, 32, 27, .18);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background:
    radial-gradient(circle at 12% 8%, rgba(220, 107, 53, .28), transparent 27rem),
    radial-gradient(circle at 86% 4%, rgba(198, 208, 118, .32), transparent 24rem),
    linear-gradient(145deg, #fff7e5 0%, var(--paper) 42%, #ecd7bd 100%);
  font-family: Manrope, Verdana, sans-serif;
  overflow-x: hidden;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(23, 32, 27, .05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(23, 32, 27, .04) 1px, transparent 1px);
  background-size: 44px 44px;
  mask-image: linear-gradient(to bottom, rgba(0, 0, 0, .7), transparent 78%);
  z-index: -2;
}

.grain {
  position: fixed;
  inset: 0;
  z-index: 10;
  pointer-events: none;
  opacity: .16;
  mix-blend-mode: multiply;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 160 160' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.8' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.42'/%3E%3C/svg%3E");
}

a {
  color: inherit;
  text-decoration: none;
}

.site-header {
  position: sticky;
  top: 18px;
  z-index: 5;
  width: min(1120px, calc(100% - 32px));
  margin: 18px auto 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 14px 12px 18px;
  border: 1px solid rgba(23, 32, 27, .12);
  border-radius: 999px;
  background: rgba(255, 250, 240, .72);
  backdrop-filter: blur(18px);
  box-shadow: 0 12px 42px rgba(23, 32, 27, .1);
}

.brand,
.nav {
  display: flex;
  align-items: center;
  gap: 10px;
}

.brand {
  font-weight: 800;
  letter-spacing: -.03em;
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  color: var(--white);
  background: var(--canopy);
  font-size: 1.05rem;
}

.nav {
  gap: 4px;
}

.nav a {
  padding: 10px 14px;
  border-radius: 999px;
  color: rgba(23, 32, 27, .74);
  font-size: .88rem;
  font-weight: 700;
  transition: color .2s ease, background .2s ease;
}

.nav a:hover {
  color: var(--canopy);
  background: rgba(95, 127, 75, .12);
}

main {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
}

.hero {
  min-height: calc(100vh - 92px);
  display: grid;
  grid-template-columns: minmax(0, 1.02fr) minmax(340px, .98fr);
  gap: clamp(28px, 6vw, 76px);
  align-items: center;
  padding: clamp(54px, 8vw, 104px) 0 72px;
}

.eyebrow,
.section-kicker p {
  margin: 0 0 16px;
  color: var(--rosewood);
  font-size: .78rem;
  font-weight: 800;
  letter-spacing: .18em;
  text-transform: uppercase;
}

h1,
h2,
h3 {
  margin: 0;
  font-family: Fraunces, Georgia, serif;
  letter-spacing: -.055em;
  line-height: .93;
}

h1 {
  max-width: 720px;
  font-size: clamp(4.1rem, 10vw, 8.9rem);
}

h2 {
  font-size: clamp(2.7rem, 6vw, 5.8rem);
}

h3 {
  font-size: clamp(1.65rem, 3vw, 2.45rem);
}

.hero-text {
  max-width: 620px;
  margin: 28px 0 0;
  color: rgba(23, 32, 27, .76);
  font-size: clamp(1.06rem, 1.6vw, 1.28rem);
  line-height: 1.75;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 34px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  padding: 0 20px;
  border: 1px solid rgba(23, 32, 27, .18);
  border-radius: 999px;
  font-weight: 800;
  transition: transform .2s ease, box-shadow .2s ease, background .2s ease;
}

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

.button.primary {
  color: var(--white);
  border-color: var(--canopy);
  background: var(--canopy);
  box-shadow: 0 16px 38px rgba(24, 63, 43, .25);
}

.button.ghost {
  background: rgba(255, 250, 240, .55);
}

.hero-visual {
  position: relative;
  min-height: 660px;
  display: grid;
  place-items: center;
}

.sun-disc {
  position: absolute;
  width: min(86vw, 560px);
  aspect-ratio: 1;
  border-radius: 50%;
  background:
    radial-gradient(circle at 50% 45%, rgba(255, 250, 240, .95), rgba(255, 199, 111, .75) 36%, rgba(220, 107, 53, .2) 68%, transparent 69%),
    repeating-radial-gradient(circle, rgba(135, 63, 49, .14) 0 2px, transparent 2px 18px);
  filter: drop-shadow(0 34px 70px rgba(220, 107, 53, .2));
  animation: breathe 9s ease-in-out infinite;
}

.lemur-card {
  position: relative;
  width: min(100%, 510px);
  padding: 18px;
  border: 1px solid rgba(23, 32, 27, .14);
  border-radius: 48% 52% 44% 56% / 60% 44% 56% 40%;
  background: linear-gradient(150deg, rgba(255, 250, 240, .64), rgba(234, 213, 180, .34));
  box-shadow: var(--shadow);
  backdrop-filter: blur(10px);
}

.lemur-card svg {
  display: block;
  width: 100%;
  height: auto;
  overflow: visible;
}

.leaf {
  fill: var(--moss);
  opacity: .78;
}

.tail-base,
.arm,
.leg {
  fill: none;
  stroke: #20261f;
  stroke-linecap: round;
  stroke-width: 34;
}

.tail-base {
  stroke-width: 46;
}

.tail.stripe {
  fill: none;
  stroke: var(--white);
  stroke-linecap: round;
  stroke-width: 22;
}

.body,
.head {
  fill: #d5c2a7;
  stroke: #20261f;
  stroke-width: 8;
}

.belly,
.muzzle {
  fill: var(--white);
}

.ear {
  fill: #c9b08f;
  stroke: #20261f;
  stroke-width: 8;
}

.mask,
.nose,
.eye {
  fill: #20261f;
}

.floating-note {
  position: absolute;
  max-width: 190px;
  padding: 12px 14px;
  border: 1px solid rgba(23, 32, 27, .12);
  border-radius: 18px;
  color: var(--white);
  background: rgba(24, 63, 43, .9);
  box-shadow: 0 18px 45px rgba(23, 32, 27, .16);
  font-size: .84rem;
  font-weight: 800;
  line-height: 1.35;
}

.note-one {
  right: -2px;
  bottom: 160px;
}

.note-two {
  left: 2px;
  top: 144px;
  color: var(--ink);
  background: rgba(198, 208, 118, .9);
}

.quick-facts {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  margin: 14px 0 116px;
  border: 1px solid rgba(23, 32, 27, .16);
  border-radius: 34px;
  overflow: hidden;
  background: rgba(23, 32, 27, .14);
  box-shadow: 0 22px 60px rgba(23, 32, 27, .1);
}

.quick-facts article {
  min-height: 220px;
  padding: 28px;
  background: rgba(255, 250, 240, .58);
}

.fact-number {
  display: block;
  margin-bottom: 34px;
  font-family: Fraunces, Georgia, serif;
  font-size: clamp(3.5rem, 7vw, 6.3rem);
  font-weight: 900;
  letter-spacing: -.08em;
  line-height: .8;
  color: var(--canopy);
}

.quick-facts p,
.feature-card p,
.behavior-cards p,
.conservation-panel p,
.site-footer {
  color: rgba(23, 32, 27, .72);
  line-height: 1.72;
}

.split-section,
.behavior-section,
.conservation {
  padding: 92px 0;
}

.split-section {
  display: grid;
  grid-template-columns: .8fr 1.2fr;
  gap: clamp(28px, 6vw, 78px);
  align-items: start;
}

.content-grid {
  display: grid;
  grid-template-columns: 1.2fr .8fr;
  gap: 18px;
}

.feature-card,
.behavior-cards article,
.conservation-panel {
  border: 1px solid rgba(23, 32, 27, .14);
  border-radius: 34px;
  background: rgba(255, 250, 240, .62);
  box-shadow: 0 18px 55px rgba(23, 32, 27, .09);
}

.feature-card {
  padding: 30px;
}

.feature-card.large {
  min-height: 420px;
  display: flex;
  flex-direction: column;
  justify-content: end;
  background:
    linear-gradient(rgba(24, 63, 43, .08), rgba(24, 63, 43, .08)),
    radial-gradient(circle at 80% 4%, rgba(198, 208, 118, .55), transparent 34%),
    rgba(255, 250, 240, .64);
}

.map-card {
  min-height: 420px;
  display: grid;
  place-items: center;
  background: var(--canopy);
  color: var(--white);
  overflow: hidden;
}

.map-card p {
  margin: 0;
  color: rgba(255, 250, 240, .8);
  font-weight: 800;
  letter-spacing: .14em;
  text-transform: uppercase;
}

.madagascar-shape {
  width: 130px;
  height: 292px;
  border-radius: 48% 52% 58% 42% / 24% 30% 70% 76%;
  transform: rotate(17deg);
  background:
    radial-gradient(circle at 58% 18%, var(--lichen), transparent 18%),
    linear-gradient(150deg, #e7a153, var(--ember) 58%, #b84f35);
  box-shadow: inset -18px -28px 0 rgba(23, 32, 27, .16), 0 24px 46px rgba(0, 0, 0, .2);
}

.centered {
  max-width: 760px;
  margin: 0 auto 42px;
  text-align: center;
}

.behavior-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

.behavior-cards article {
  min-height: 330px;
  padding: 28px;
  transition: transform .22s ease, background .22s ease;
}

.behavior-cards article:hover {
  transform: translateY(-8px) rotate(-1deg);
  background: rgba(255, 250, 240, .86);
}

.behavior-cards span {
  display: grid;
  place-items: center;
  width: 54px;
  height: 54px;
  margin-bottom: 74px;
  border-radius: 50%;
  color: var(--canopy);
  background: rgba(198, 208, 118, .55);
  font-size: 1.35rem;
}

.conservation {
  padding-bottom: 60px;
}

.conservation-panel {
  position: relative;
  overflow: hidden;
  padding: clamp(32px, 6vw, 66px);
  color: var(--white);
  background:
    linear-gradient(135deg, rgba(16, 24, 19, .92), rgba(24, 63, 43, .96)),
    radial-gradient(circle at 85% 10%, rgba(220, 107, 53, .7), transparent 30%);
}

.conservation-panel::after {
  content: "";
  position: absolute;
  right: -90px;
  top: -80px;
  width: 320px;
  aspect-ratio: 1;
  border: 1px solid rgba(255, 250, 240, .2);
  border-radius: 50%;
  box-shadow: 0 0 0 34px rgba(255, 250, 240, .04), 0 0 0 82px rgba(255, 250, 240, .025);
}

.conservation-panel h2 {
  max-width: 920px;
}

.conservation-panel p {
  max-width: 820px;
  color: rgba(255, 250, 240, .76);
}

.conservation-actions {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  margin-top: 34px;
}

.conservation-actions div {
  padding: 18px;
  border: 1px solid rgba(255, 250, 240, .14);
  border-radius: 22px;
  background: rgba(255, 250, 240, .08);
}

.conservation-actions strong,
.conservation-actions span {
  display: block;
}

.conservation-actions strong {
  margin-bottom: 8px;
  color: var(--white);
}

.conservation-actions span {
  color: rgba(255, 250, 240, .68);
  line-height: 1.55;
}

.site-footer {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: 30px 0 42px;
  display: flex;
  justify-content: space-between;
  gap: 18px;
  border-top: 1px solid rgba(23, 32, 27, .14);
}

.site-footer p {
  margin: 0;
}

.site-footer a {
  font-weight: 800;
  color: var(--canopy);
}

[data-reveal] {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity .8s ease, transform .8s ease;
}

[data-reveal].is-visible {
  opacity: 1;
  transform: translateY(0);
}

@keyframes breathe {
  0%, 100% { transform: scale(1) rotate(0deg); }
  50% { transform: scale(1.035) rotate(2deg); }
}

@media (max-width: 900px) {
  .site-header {
    align-items: flex-start;
    border-radius: 28px;
  }

  .nav {
    flex-wrap: wrap;
    justify-content: flex-end;
  }

  .hero,
  .split-section,
  .content-grid,
  .quick-facts,
  .behavior-cards,
  .conservation-actions {
    grid-template-columns: 1fr;
  }

  .hero {
    min-height: auto;
    padding-top: 72px;
  }

  .hero-visual {
    min-height: 540px;
  }

  .note-one {
    right: 10px;
    bottom: 84px;
  }

  .note-two {
    top: 58px;
  }

  .quick-facts {
    margin-bottom: 54px;
  }
}

@media (max-width: 620px) {
  main,
  .site-footer,
  .site-header {
    width: min(100% - 22px, 1180px);
  }

  .site-header,
  .site-footer {
    flex-direction: column;
  }

  .nav a {
    padding: 8px 10px;
  }

  h1 {
    font-size: clamp(3.4rem, 18vw, 5rem);
  }

  .hero-visual {
    min-height: 460px;
  }

  .floating-note {
    position: relative;
    left: auto;
    right: auto;
    top: auto;
    bottom: auto;
    margin-top: 10px;
    justify-self: start;
  }

  .note-one {
    justify-self: end;
  }

  .quick-facts article,
  .feature-card,
  .behavior-cards article,
  .conservation-panel {
    border-radius: 26px;
  }
}
