/* A small illustrated field guide, in the colors of Casa Maar. */
.wildlife-section { padding-block: 90px 32px; background: var(--paper); }
.wildlife-heading { display: grid; grid-template-columns: 1.25fr 1fr; align-items: end; gap: 8%; margin-bottom: 38px; }
.wildlife-kicker { font: 500 .875rem/1.6 var(--sans); letter-spacing: .1em; color: var(--muted); margin-bottom: 14px; }
.wildlife-heading h2 { font-size: clamp(2.75rem, 4.2vw, 4.2rem); }
.wildlife-heading > p { font-size: 1rem; line-height: 1.8; color: var(--muted); max-width: 390px; margin-bottom: 5px; }
.wildlife-track { position: relative; display: flex; gap: 24px; align-items: stretch; overflow-x: auto; overscroll-behavior-inline: contain; scroll-snap-type: x mandatory; scrollbar-width: thin; scrollbar-color: #9aa991 transparent; padding-bottom: 10px; }
.wildlife-track:focus-visible { outline: 2px solid var(--green); outline-offset: 4px; }
.wildlife-card { position: relative; isolation: isolate; flex: 0 0 calc((100% - 48px) / 3); min-width: 0; scroll-snap-align: start; background-color: #f4eedf; background-image: radial-gradient(ellipse at 50% 0, #fffdf5df, transparent 85%), repeating-linear-gradient(0deg, #80704a05 0 1px, transparent 1px 4px); border: 1px solid #c6b99b; border-radius: 2px; overflow: hidden; }
.wildlife-track .wildlife-card { box-shadow: 0 5px 18px #584a2f0d, inset 0 0 0 4px #fffdf342; }
.wildlife-card { display: flex; flex-direction: column; }
.wildlife-card::before { content: ''; position: absolute; z-index: 3; inset: 9px; pointer-events: none; background: linear-gradient(#a99467, #a99467) left top / 20px 1px no-repeat, linear-gradient(#a99467, #a99467) left top / 1px 20px no-repeat, linear-gradient(#a99467, #a99467) right top / 20px 1px no-repeat, linear-gradient(#a99467, #a99467) right top / 1px 20px no-repeat, linear-gradient(#a99467, #a99467) left bottom / 20px 1px no-repeat, linear-gradient(#a99467, #a99467) left bottom / 1px 20px no-repeat, linear-gradient(#a99467, #a99467) right bottom / 20px 1px no-repeat, linear-gradient(#a99467, #a99467) right bottom / 1px 20px no-repeat; opacity: .55; }
.wildlife-art { position: relative; flex-shrink: 0; overflow: hidden; height: 280px; padding-top: 10px; }
.wildlife-art::before { content: ''; position: absolute; left: 50%; top: 22px; width: min(72%, 230px); height: 224px; transform: translateX(-50%); border: 1px solid #a5976a35; border-radius: 50%; background: radial-gradient(ellipse, #a9b49a16, transparent 72%); box-shadow: 0 0 0 5px #a5976a08; pointer-events: none; }
/* Blend the original atlas into the plate and soften only its outer margins. */
.wildlife-sprite { position: absolute; top: 6px; left: 50%; height: calc(100% - 6px); aspect-ratio: 3 / 4; transform: translateX(-50%); background-size: 400% 200%; background-repeat: no-repeat; background-position: 0 0; mix-blend-mode: multiply; -webkit-mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent), linear-gradient(0deg, transparent, #000 10%, #000 96%, transparent); mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent), linear-gradient(0deg, transparent, #000 10%, #000 96%, transparent); -webkit-mask-composite: source-in; mask-composite: intersect; animation: wildlife-frames 3.2s steps(1, end) infinite; animation-play-state: paused; }
.wildlife-congo .wildlife-sprite { background-image: url('/assets/wildlife/congo-v2.webp'); }
.wildlife-capuchin .wildlife-sprite { background-image: url('/assets/wildlife/carablanca-v2.webp'); animation-duration: 3.6s; }
.wildlife-macaw .wildlife-sprite { background-image: url('/assets/wildlife/lapa-v2.webp'); animation-duration: 2.8s; }
.wildlife-margay .wildlife-sprite { background-image: url('/assets/wildlife/tigrillo-v1.webp'); animation-duration: 3.6s; }
.wildlife-jaguarundi .wildlife-sprite { background-image: url('/assets/wildlife/yaguarundi-v1.webp'); animation-duration: 3.8s; }
.wildlife-habitat:has(i) { letter-spacing: 0; overflow-wrap: anywhere; }
.wildlife-navigation { display: flex; justify-content: space-between; align-items: center; gap: 16px; margin-top: 12px; }
.wildlife-navigation[hidden] { display: none; }
.wildlife-navigation p { margin: 0; color: var(--muted); font-size: .875rem; line-height: 1.5; }
#wildlife-position { display: block; color: var(--green); font-weight: 500; }
.wildlife-swipe-hint { display: block; margin-top: 3px; }
.wildlife-navigation > div { display: flex; gap: 8px; }
.wildlife-navigation button { min-height: 44px; padding: 9px 16px; border: 1px solid #c9d1c3; border-radius: 3px; background: transparent; color: var(--green); font: 500 .875rem/1.5 var(--sans); }
.wildlife-navigation button:disabled { opacity: .45; cursor: default; }
.wildlife-scene-light { display: none; }
.wildlife-copy { display: flex; flex-direction: column; flex: 1; padding: 15px 25px 22px; }
.wildlife-habitat { display: flex; align-items: center; gap: 9px; font: 500 .875rem/1.5 var(--sans); letter-spacing: .08em; color: #796b48; margin: 0 0 10px; }
.wildlife-habitat::before { content: ''; flex: 0 0 18px; height: 1px; background: #a28f64; }
.wildlife-copy h3 { font: 500 2.2rem/1.1 var(--serif); letter-spacing: -.025em; margin-bottom: 16px; }
.wildlife-copy > p:not(.wildlife-habitat), .wildlife-copy details p { font-size: 1rem; line-height: 1.75; color: var(--muted); }
.wildlife-copy > p:not(.wildlife-habitat) { min-height: 112px; margin-bottom: 16px; }
.wildlife-copy details { margin-top: auto; border-top: 1px solid #b9aa8660; }
.wildlife-copy details > summary::after { display: grid; place-items: center; flex-shrink: 0; width: 25px; height: 25px; border: 1px solid #b9aa8680; border-radius: 50%; font-size: 1.05rem; }
.wildlife-section summary { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 48px; padding-block: 8px; cursor: pointer; list-style: none; font: 500 .875rem/1.5 var(--sans); color: var(--green); }
.wildlife-section summary::-webkit-details-marker { display: none; }
.wildlife-section summary::after { content: '+'; font-size: 1.25rem; font-weight: 400; }
.wildlife-section details[open] > summary::after { content: '−'; }
.wildlife-copy details p { margin-block: 8px 6px; }
.wildlife-section summary:focus-visible, .wildlife-section a:focus-visible { outline: 2px solid var(--green); outline-offset: 4px; }
.wildlife-footnote { display: grid; grid-template-columns: 1.6fr 1fr; gap: 24px; margin-top: 20px; padding-top: 12px; border-top: 1px solid var(--line); align-items: start; }
.wildlife-footnote > p, .wildlife-sources p { font-size: .875rem; line-height: 1.8; color: var(--muted); }
.wildlife-footnote > p { margin: 8px 0 0; }
.wildlife-sources { margin: 0; }
.wildlife-section + .reviews-section { padding-top: 36px; }
.wildlife-sources p { margin: 8px 0 20px; }
.wildlife-sources a { text-decoration: underline; text-underline-offset: 3px; }
.wildlife-card[data-animate="true"] .wildlife-sprite { animation-play-state: running; }
@keyframes wildlife-frames {
  0%, 100% { background-position: 0 0; }
  12.5% { background-position: 33.333333% 0; }
  25% { background-position: 66.666667% 0; }
  37.5% { background-position: 100% 0; }
  50% { background-position: 0 100%; }
  62.5% { background-position: 33.333333% 100%; }
  75% { background-position: 66.666667% 100%; }
  87.5% { background-position: 100% 100%; }
}
html.motion-paused .wildlife-sprite { animation: none !important; }
@media (prefers-reduced-motion: reduce) { .wildlife-sprite { animation: none !important; } }
@media (max-width: 1050px) and (min-width: 761px) { .wildlife-card { flex-basis: calc((100% - 24px) / 2); } }
@media (max-width: 760px) {
  .wildlife-section { padding-block: 52px 20px; }
  .wildlife-heading { grid-template-columns: 1fr; gap: 22px; margin-bottom: 28px; }
  .wildlife-heading h2 { font-size: 2.8rem; }
  .wildlife-heading > p { max-width: 100%; }
  .wildlife-track { gap: 16px; }
  .wildlife-card { flex-basis: calc(100% - 24px); }
  .wildlife-art { height: 260px; }
  .wildlife-copy { padding: 14px 23px 20px; }
  .wildlife-art::before { top: 20px; height: 212px; }
  .wildlife-copy > p:not(.wildlife-habitat) { min-height: 0; }
  .wildlife-copy h3 { font-size: 2rem; }
  .wildlife-navigation { gap: 10px; }
  .wildlife-navigation button { padding-inline: 12px; }
  .wildlife-footnote { display: block; margin-top: 16px; padding-top: 12px; }
  .wildlife-footnote > p { margin: 0 0 8px; line-height: 1.65; }
  .wildlife-sources summary { min-height: 44px; padding-block: 6px; }
  .wildlife-section + .reviews-section { padding-top: 28px; }
}
