/* ============================================================
   The Animals, a single long scroll. One species after another:
   a full-bleed portrait, what we're told, then the life, start to
   finish. No buttons, no WebGL, you just keep scrolling.
   ============================================================ */
body.animals { background: #050505; }

/* the file index, a fixed strip of named tabs, one per animal */
.file-rail {
  position: fixed;
  left: 0; right: 0; bottom: 0;
  z-index: 40;
  display: flex;
  overflow-x: auto;
  scrollbar-width: none;
  background: rgba(5, 5, 5, 0.92);
  border-top: 1px solid var(--hairline);
  backdrop-filter: blur(6px);
}
.file-rail::-webkit-scrollbar { display: none; }
.file-rail a {
  flex: 0 0 auto;
  display: flex; align-items: baseline; gap: 0.5rem;
  padding: 0.85rem 1.1rem;
  border-right: 1px solid var(--hairline-faint);
  white-space: nowrap;
  transition: background 0.3s var(--ease-out);
}
.file-rail a:hover { background: rgba(232, 228, 220, 0.05); }
.file-rail .fr-num {
  font-family: var(--sans); font-size: 0.58rem; font-weight: 700;
  letter-spacing: 0.14em; color: var(--grey-dim);
}
.file-rail .fr-name {
  font-family: var(--serif); font-size: 0.98rem; color: var(--grey);
  transition: color 0.3s var(--ease-out);
}
.file-rail a:hover .fr-name { color: var(--bone); }
.file-rail a.current .fr-num { color: var(--blood-bright); }
.file-rail a.current .fr-name { color: var(--white); }
/* sit content above the rail */
main { padding-bottom: 4rem; }

/* intro */
.an-intro {
  min-height: 62vh;
  display: flex; flex-direction: column; justify-content: flex-end;
  padding: 6rem var(--gutter) 3rem;
  max-width: 60rem; margin-inline: auto;
}
.an-intro .kicker { color: var(--blood-bright); margin-bottom: 1.2rem; }
.an-intro h1 {
  font-family: var(--serif);
  font-size: clamp(2.6rem, 9vw, 5.6rem);
  line-height: 0.98; letter-spacing: -0.025em; color: var(--white);
  text-wrap: balance;
}
.an-intro .lede {
  margin-top: 1.6rem; max-width: 40rem;
  font-size: clamp(1.05rem, 2.4vw, 1.25rem); line-height: 1.6; color: var(--bone); text-wrap: pretty;
}
.an-intro .cue { margin-top: 2.4rem; font-size: 0.66rem; font-weight: 600; letter-spacing: 0.32em; text-transform: uppercase; color: var(--grey); }
.an-intro .cue .arrow { display: block; margin-top: 0.6rem; font-size: 1rem; }
@media (prefers-reduced-motion: no-preference) {
  .an-intro .cue .arrow { animation: an-bob 2.4s cubic-bezier(0.65,0,0.35,1) infinite; }
}
@keyframes an-bob { 0%,100% { transform: translateY(0); opacity: 0.5; } 50% { transform: translateY(8px); opacity: 1; } }

/* one species */
.species { position: relative; border-top: 1px solid var(--hairline); }

/* the portrait, full-bleed, sticky so the copy scrolls over its tail */
.sp-portrait {
  position: relative;
  height: 92vh;
  overflow: hidden;
}
.sp-portrait img {
  position: absolute; inset: 0;
  width: 100%; height: 100%; object-fit: cover;
  filter: grayscale(0.3) brightness(0.62) contrast(1.06);
}
/* the dog is the loved one, keep her warm and in colour */
#dog .sp-portrait img { filter: contrast(1.03) saturate(1.05); object-position: 50% 32%; }
.sp-portrait::after {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(to top,
    rgba(5,5,5,0.94) 0%,
    rgba(5,5,5,0.82) 16%,
    rgba(5,5,5,0.52) 34%,
    rgba(5,5,5,0.16) 56%,
    rgba(5,5,5,0.3) 82%,
    rgba(5,5,5,0.55) 100%);
}
.sp-portrait .pcap {
  position: absolute; left: 0; right: 0; bottom: 0; z-index: 2;
  padding: 0 var(--gutter) 3rem;
  max-width: 60rem; margin-inline: auto;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.98), 0 2px 34px rgba(0, 0, 0, 0.85);
}
.sp-file { font-size: 0.66rem; font-weight: 700; letter-spacing: 0.3em; text-transform: uppercase; color: var(--white); }
.sp-file b { color: var(--bone); font-weight: 700; }
.sp-name {
  font-family: var(--serif); color: var(--white);
  font-size: clamp(3rem, 12vw, 7rem); line-height: 0.9; letter-spacing: -0.02em;
  margin-top: 0.4rem;
}
.sp-told {
  margin-top: 1rem; max-width: 28rem;
  font-family: var(--serif); font-style: italic; color: var(--bone);
  font-size: clamp(1.1rem, 2.6vw, 1.4rem); line-height: 1.4;
}
.sp-told .lbl { display: block; font-style: normal; font-family: var(--sans); font-size: 0.6rem; font-weight: 700; letter-spacing: 0.26em; text-transform: uppercase; color: var(--bone); margin-bottom: 0.5rem; }
.sp-credit { position: absolute; right: var(--gutter); bottom: 0.8rem; z-index: 2; font-size: 0.54rem; letter-spacing: 0.06em; color: rgba(232,228,220,0.4); text-align: right; max-width: 18rem; }

/* the dossier copy */
.sp-body { max-width: 44rem; margin-inline: auto; padding: 3.5rem var(--gutter) 1rem; }
.sp-head { font-family: var(--serif); color: var(--white); font-size: clamp(1.8rem, 5vw, 2.8rem); line-height: 1.08; text-wrap: balance; }
.sp-lead { margin-top: 1.3rem; font-size: 1.08rem; line-height: 1.7; color: var(--bone); }

/* the hard numbers */
.sp-stats { margin: 2.4rem 0 0; display: grid; gap: 1.4rem; }
.sp-stat { border-top: 1px solid var(--hairline); padding-top: 1rem; }
.sp-stat .n { font-family: var(--serif); font-size: clamp(2.2rem, 7vw, 3.4rem); line-height: 1; color: var(--blood-bright); letter-spacing: -0.02em; }
.sp-stat .l { margin-top: 0.6rem; font-size: 0.92rem; color: var(--grey); line-height: 1.5; max-width: 24rem; }

/* the life, start to finish */
.life { max-width: 44rem; margin-inline: auto; padding: 2.6rem var(--gutter) 4rem; }
.life-h { font-size: 0.66rem; font-weight: 700; letter-spacing: 0.26em; text-transform: uppercase; color: var(--blood-bright); }
.life-list { margin-top: 1.6rem; border-left: 1px solid rgba(232,228,220,0.15); }
.stage { position: relative; padding: 0 0 2.6rem 1.5rem; }
.stage:last-child { padding-bottom: 0; }
.stage::before { content: ''; position: absolute; left: -5px; top: 6px; width: 9px; height: 9px; border-radius: 50%; background: var(--blood-bright); }
.stage .age { font-size: 0.6rem; font-weight: 700; letter-spacing: 0.2em; text-transform: uppercase; color: var(--grey); }
.stage h3 { margin-top: 0.3rem; font-family: var(--serif); color: var(--white); font-size: 1.2rem; line-height: 1.2; }
.stage figure { margin: 0.7rem 0 0; }
.stage img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; background: rgba(232,228,220,0.05); filter: grayscale(0.35) brightness(0.82) contrast(1.05); }
.stage figcaption { margin-top: 0.3rem; font-size: 0.54rem; letter-spacing: 0.06em; color: rgba(232,228,220,0.4); }
.stage p { margin-top: 0.6rem; font-size: 0.92rem; line-height: 1.62; color: rgba(232,228,220,0.85); }
.stage .flag { margin-top: 0.7rem; display: inline-block; font-size: 0.58rem; font-weight: 700; letter-spacing: 0.16em; text-transform: uppercase; color: var(--blood-bright); border: 1px solid rgba(197,22,10,0.5); padding: 0.35rem 0.6rem; }

.sp-verdict { max-width: 44rem; margin: 0 auto; padding: 0 var(--gutter); }
.sp-verdict p { border-top: 2px solid var(--blood); padding-top: 1.2rem; font-family: var(--serif); font-style: italic; color: var(--white); font-size: clamp(1.2rem, 3vw, 1.5rem); line-height: 1.4; }
.sp-cite { margin-top: 1.3rem; font-size: 0.64rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--grey-dim); line-height: 1.8; }
.sp-links { max-width: 44rem; margin: 1.4rem auto 0; padding: 0 var(--gutter) 4.5rem; display: flex; flex-wrap: wrap; gap: 0.8rem 1.4rem; }
.sp-links a { font-size: 0.66rem; font-weight: 700; letter-spacing: 0.18em; text-transform: uppercase; color: var(--bone); border-bottom: 1px solid rgba(232,228,220,0.25); padding-bottom: 0.2rem; }
.sp-links a:hover { color: var(--white); border-color: var(--white); }
.sp-links a.blood { color: var(--blood-bright); border-color: rgba(197,22,10,0.5); }

/* closing */
.an-end { max-width: 44rem; margin-inline: auto; padding: 5rem var(--gutter) 6rem; text-align: center; border-top: 1px solid var(--hairline); }
.an-end h2 { font-family: var(--serif); color: var(--white); font-size: clamp(1.8rem, 5vw, 2.8rem); line-height: 1.1; text-wrap: balance; }
.an-end p { margin: 1.2rem auto 0; max-width: 34rem; color: var(--bone); line-height: 1.6; }
.an-end .row { display: flex; gap: 0.9rem; flex-wrap: wrap; justify-content: center; margin-top: 2rem; }

/* scroll reveal */
@media (prefers-reduced-motion: no-preference) {
  .js .rv { opacity: 0; transform: translateY(22px); transition: opacity 0.9s var(--ease-out), transform 0.9s var(--ease-out); }
  .js .rv.in { opacity: 1; transform: none; }
}

/* ---- shared experience top nav (matches the other pages) ---- */
.topscrim {
  position: fixed; top: 0; left: 0; right: 0; height: 110px; z-index: 25; pointer-events: none;
  background: linear-gradient(to bottom, rgba(0,0,0,0.9) 0%, rgba(0,0,0,0.5) 45%, rgba(0,0,0,0));
}
.topnav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 30;
  display: flex; align-items: baseline; justify-content: space-between; gap: 1rem;
  padding: 1.1rem clamp(1rem, 4vw, 2.2rem);
}
.topnav .wordmark { font-family: var(--serif); font-size: 1.05rem; color: var(--white); }
.topnav .links { display: flex; align-items: baseline; white-space: nowrap; column-gap: clamp(0.7rem, 2.2vw, 1.5rem); }
.topnav .links a {
  font-family: var(--sans); font-size: 0.62rem; font-weight: 600;
  letter-spacing: 0.18em; text-transform: uppercase; color: var(--white);
}
.topnav .links a:hover { opacity: 0.6; }
.topnav .links a.current { color: var(--blood-bright); }
@media (max-width: 640px) {
  .topnav { align-items: center; gap: 0.5rem; padding: 0.85rem 1rem; }
  .topnav .links { column-gap: 0.85rem; flex-wrap: wrap; }
  .topnav .links a { font-size: 0.55rem; letter-spacing: 0.12em; }
}
