@font-face {
  font-family: 'Fraunces';
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url('/fonts/fraunces-latin.woff2') format('woff2-variations');
}

@font-face {
  font-family: 'Nunito';
  font-style: normal;
  font-weight: 200 1000;
  font-display: swap;
  src: url('/fonts/nunito-latin.woff2') format('woff2-variations');
}

:root {
  --ink: #1f3a2e;
  --ink-soft: #4c6054;
  --ink-faint: #7a8b7f;
  --paper: #fbf6ea;
  --paper-deep: #f2e7d2;
  --cream: #fffdf8;
  --green: #2d6a50;
  --green-dark: #1f4a39;
  --green-light: #dcebdf;
  --gold: #e1a63a;
  --gold-soft: #f6e3b8;
  --coral: #d97858;
  --coral-soft: #f6ddd3;
  --sky: #7fb6c9;
  --line: rgba(31, 58, 46, 0.14);
  --line-strong: rgba(31, 58, 46, 0.24);
  --shadow: 0 20px 50px rgba(31, 58, 46, 0.12);
  --shadow-sm: 0 10px 26px rgba(31, 58, 46, 0.09);
  --radius-xl: 36px;
  --radius-lg: 26px;
  --radius-md: 18px;
  --radius-sm: 12px;
  --max: 1180px;
  --accent: var(--green);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  color: var(--ink);
  background:
    radial-gradient(circle at 12% 8%, rgba(225, 166, 58, 0.11), transparent 28rem),
    radial-gradient(circle at 88% 18%, rgba(127, 182, 201, 0.13), transparent 26rem),
    var(--paper);
  font-family: 'Nunito', ui-rounded, 'Segoe UI', sans-serif;
  font-size: 17px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

body::before {
  content: '';
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  opacity: 0.35;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 140 140' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.12'/%3E%3C/svg%3E");
}

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

a {
  color: var(--green);
  text-decoration-thickness: 1.5px;
  text-underline-offset: 3px;
}

a:hover {
  color: var(--coral);
}

:focus-visible {
  outline: 3px solid var(--gold);
  outline-offset: 3px;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1,
h2,
h3 {
  font-family: 'Fraunces', Georgia, serif;
  font-weight: 600;
  line-height: 1.02;
  letter-spacing: -0.02em;
}

h1 {
  font-size: clamp(2.8rem, 6vw, 5.6rem);
}

h2 {
  font-size: clamp(1.8rem, 3vw, 2.8rem);
}

h3 {
  font-size: 1.25rem;
}

/* ---------- shared ---------- */

.site-header,
.site-footer,
.hero,
.how-it-works,
.meet-strip,
.data-note,
.animal-page,
.credits-page,
.error-page {
  width: min(100% - 40px, var(--max));
  margin-inline: auto;
}

.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 26px 0 18px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  color: var(--ink);
  font-family: 'Fraunces', Georgia, serif;
  font-size: 1.35rem;
  font-weight: 650;
  letter-spacing: -0.02em;
  text-decoration: none;
}

.brand:hover {
  color: var(--green);
}

.brand-mark {
  display: inline-flex;
  width: 38px;
  height: 38px;
  color: var(--green);
  flex: 0 0 auto;
}

.brand-mark svg {
  width: 100%;
  height: 100%;
}

.brand-small {
  font-size: 1.05rem;
}

.brand-small .brand-mark {
  width: 28px;
  height: 28px;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 26px;
  font-size: 0.94rem;
  font-weight: 700;
}

.site-nav a {
  color: var(--ink-soft);
  text-decoration: none;
}

.site-nav a:hover {
  color: var(--green);
}

.nav-grownups {
  padding: 9px 15px;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
}

.kid-header {
  padding-bottom: 8px;
}

.quiet-form {
  margin: 0;
}

.text-button {
  padding: 0;
  border: 0;
  background: none;
  color: var(--ink-soft);
  font: inherit;
  font-weight: 750;
  text-decoration: underline;
  text-decoration-thickness: 1.5px;
  text-underline-offset: 3px;
  cursor: pointer;
}

.text-button:hover {
  color: var(--coral);
}

.eyebrow {
  display: flex;
  align-items: center;
  gap: 9px;
  margin-bottom: 14px;
  color: var(--green);
  font-size: 0.74rem;
  font-weight: 850;
  letter-spacing: 0.15em;
  text-transform: uppercase;
}

.eyebrow-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--gold);
  box-shadow: 0 0 0 5px rgba(225, 166, 58, 0.18);
}

.lede {
  max-width: 620px;
  color: var(--ink-soft);
  font-size: clamp(1.05rem, 1.5vw, 1.22rem);
  line-height: 1.6;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 46px;
  padding: 11px 20px;
  border: 1px solid transparent;
  border-radius: 999px;
  font: inherit;
  font-size: 0.94rem;
  font-weight: 800;
  line-height: 1.2;
  text-decoration: none;
  cursor: pointer;
  transition: transform 160ms ease, box-shadow 160ms ease, background 160ms ease, color 160ms ease;
}

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

.button:active {
  transform: translateY(0);
}

.button-primary {
  color: #fffdf8;
  background: var(--green-dark);
  box-shadow: 0 12px 24px rgba(31, 74, 57, 0.2);
}

.button-primary:hover {
  color: #fffdf8;
  background: var(--green);
  box-shadow: 0 16px 30px rgba(31, 74, 57, 0.25);
}

.button-quiet {
  color: var(--ink);
  background: var(--cream);
  border-color: var(--line);
}

.button-quiet:hover {
  color: var(--green);
  border-color: var(--line-strong);
  background: #fff;
}

.button-small {
  min-height: 38px;
  padding: 8px 15px;
  font-size: 0.84rem;
}

.button-wide {
  width: 100%;
}

.text-link {
  color: var(--green);
  font-weight: 800;
  text-decoration: none;
}

.text-link:hover {
  color: var(--coral);
  text-decoration: underline;
}

.flash {
  display: flex;
  align-items: flex-start;
  gap: 9px;
  padding: 11px 14px;
  border-radius: var(--radius-sm);
  font-size: 0.9rem;
  font-weight: 700;
  line-height: 1.4;
}

.flash span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  flex: 0 0 auto;
  font-size: 0.75rem;
}

.flash-error {
  color: #7c2d1c;
  background: var(--coral-soft);
  border: 1px solid rgba(217, 120, 88, 0.32);
}

.flash-error span {
  color: #fff;
  background: var(--coral);
}

.flash-notice {
  color: var(--green-dark);
  background: var(--green-light);
  border: 1px solid rgba(45, 106, 80, 0.24);
}

.flash-notice span {
  color: #fff;
  background: var(--green);
}

/* ---------- home ---------- */

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.04fr) minmax(0, 0.96fr);
  align-items: center;
  gap: clamp(30px, 6vw, 80px);
  padding: clamp(30px, 5vw, 68px) 0 56px;
}

.hero-copy h1 {
  margin-bottom: 20px;
  max-width: 10ch;
}

.hero-scribble {
  position: relative;
  display: inline-block;
  color: var(--green);
  text-decoration: underline;
  text-decoration-style: wavy;
  text-decoration-color: var(--gold);
  text-decoration-thickness: 0.06em;
  text-underline-offset: 0.08em;
}

.code-form {
  max-width: 590px;
  margin-top: 30px;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: rgba(255, 253, 248, 0.72);
  box-shadow: var(--shadow-sm);
  backdrop-filter: blur(10px);
}

.code-form label {
  display: block;
  margin-bottom: 8px;
  color: var(--ink-soft);
  font-size: 0.76rem;
  font-weight: 850;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.code-row {
  display: flex;
  gap: 10px;
}

.code-row input {
  min-width: 0;
  flex: 1;
  height: 58px;
  padding: 0 18px;
  border: 1.5px solid var(--line-strong);
  border-radius: 15px;
  color: var(--ink);
  background: #fffdf8;
  font-family: 'Nunito', ui-monospace, monospace;
  font-size: clamp(1rem, 2.2vw, 1.25rem);
  font-weight: 850;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  outline: none;
}

.code-row input::placeholder {
  color: #a7b1a7;
  letter-spacing: 0.06em;
}

.code-row input:focus {
  border-color: var(--green);
  box-shadow: 0 0 0 4px rgba(45, 106, 80, 0.14);
}

.code-row .button {
  height: 58px;
  padding-inline: 24px;
  white-space: nowrap;
}

.code-form .flash {
  margin-top: 12px;
}

.form-help {
  margin: 10px 2px 0;
  color: var(--ink-faint);
  font-size: 0.8rem;
}

.trust-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 22px;
  margin-top: 22px;
  color: var(--ink-soft);
  font-size: 0.82rem;
}

.trust-row span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.trust-row span::before {
  content: '✓';
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  color: var(--green);
  background: var(--green-light);
  font-size: 0.68rem;
  font-weight: 900;
}

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

.hero-blob {
  position: absolute;
  inset: 8% 5% 4%;
  border-radius: 48% 52% 55% 45% / 48% 42% 58% 52%;
  background:
    radial-gradient(circle at 35% 30%, rgba(255, 253, 248, 0.8), transparent 35%),
    linear-gradient(140deg, rgba(225, 166, 58, 0.26), rgba(127, 182, 201, 0.24) 55%, rgba(217, 120, 88, 0.17));
  transform: rotate(-4deg);
}

.hero-animal {
  position: relative;
  width: min(100%, 520px);
  border-radius: 46% 54% 48% 52% / 52% 46% 54% 48%;
  box-shadow: 0 26px 60px rgba(31, 58, 46, 0.14);
  animation: float 7s ease-in-out infinite;
}

.floating-tag {
  position: absolute;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 11px 15px;
  border: 1px solid rgba(31, 58, 46, 0.1);
  border-radius: 16px;
  background: rgba(255, 253, 248, 0.9);
  box-shadow: var(--shadow-sm);
  backdrop-filter: blur(8px);
  font-size: 0.82rem;
  line-height: 1.2;
}

.floating-tag strong,
.floating-tag small {
  display: block;
}

.floating-tag small {
  color: var(--ink-soft);
  font-size: 0.72rem;
}

.tag-one {
  top: 12%;
  left: -2%;
  transform: rotate(-3deg);
}

.tag-two {
  right: -2%;
  bottom: 12%;
  transform: rotate(3deg);
}

.tag-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--gold-soft);
  font-size: 1.15rem;
}

.tag-number {
  color: var(--green);
  font-family: 'Fraunces', Georgia, serif;
  font-size: 1.45rem;
  font-weight: 650;
}

@keyframes float {
  0%, 100% { transform: translateY(0) rotate(-1deg); }
  50% { transform: translateY(-10px) rotate(1deg); }
}

.how-it-works {
  padding: 46px 0 20px;
}

.section-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 24px;
}

.section-heading h2 {
  margin-bottom: 0;
}

.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.step-card {
  position: relative;
  padding: 26px 24px 24px;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: rgba(255, 253, 248, 0.64);
}

.step-number {
  display: block;
  margin-bottom: 18px;
  color: var(--gold);
  font-family: 'Fraunces', Georgia, serif;
  font-size: 1.5rem;
  font-weight: 650;
}

.step-card h3 {
  margin-bottom: 7px;
}

.step-card p {
  margin-bottom: 0;
  color: var(--ink-soft);
  font-size: 0.92rem;
}

.meet-strip {
  padding: 48px 0 26px;
}

.portrait-row {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 12px;
}

.portrait-chip {
  margin: 0;
  text-align: center;
}

.portrait-chip img {
  width: 100%;
  aspect-ratio: 1;
  border: 4px solid var(--cream);
  border-radius: 50%;
  object-fit: cover;
  box-shadow: 0 8px 20px rgba(31, 58, 46, 0.12);
  outline: 3px solid color-mix(in srgb, var(--accent) 35%, transparent);
  outline-offset: -7px;
  transition: transform 180ms ease;
}

.portrait-chip:hover img {
  transform: translateY(-3px) rotate(-2deg);
}

.portrait-chip figcaption {
  margin-top: 9px;
  font-family: 'Fraunces', Georgia, serif;
  font-size: 1rem;
  font-weight: 650;
  line-height: 1.15;
}

.portrait-chip small {
  display: block;
  margin-top: 2px;
  color: var(--ink-faint);
  font-family: 'Nunito', sans-serif;
  font-size: 0.66rem;
  font-weight: 700;
  letter-spacing: 0.02em;
}

.data-note {
  padding: 30px 0 70px;
}

.data-note-inner {
  display: flex;
  align-items: flex-start;
  gap: 20px;
  padding: clamp(24px, 4vw, 40px);
  border-radius: var(--radius-xl);
  color: #f9f4e8;
  background:
    radial-gradient(circle at 90% 10%, rgba(225, 166, 58, 0.18), transparent 25rem),
    var(--green-dark);
  box-shadow: var(--shadow);
}

.data-note-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 58px;
  height: 58px;
  border-radius: 50%;
  background: rgba(255, 253, 248, 0.12);
  font-size: 1.6rem;
  flex: 0 0 auto;
}

.data-note h2 {
  margin-bottom: 8px;
  font-size: clamp(1.5rem, 2.4vw, 2.1rem);
}

.data-note p {
  max-width: 780px;
  margin-bottom: 0;
  color: rgba(249, 244, 232, 0.8);
}

.data-note a {
  color: var(--gold-soft);
}

/* ---------- animal page ---------- */

.animal-page {
  padding-bottom: 60px;
}

.animal-hero {
  display: grid;
  grid-template-columns: minmax(0, 0.82fr) minmax(0, 1.18fr);
  align-items: center;
  gap: clamp(28px, 5vw, 70px);
  padding: clamp(26px, 4vw, 54px) 0 34px;
}

.animal-portrait {
  position: relative;
  display: grid;
  place-items: center;
}

.portrait-blob {
  position: absolute;
  inset: 4% 3% 2%;
  border-radius: 47% 53% 44% 56% / 55% 44% 56% 45%;
  background: color-mix(in srgb, var(--accent) 20%, var(--paper-deep));
  transform: rotate(5deg);
}

.animal-portrait img {
  position: relative;
  width: min(100%, 430px);
  aspect-ratio: 1;
  border-radius: 46% 54% 50% 50% / 50% 48% 52% 50%;
  object-fit: cover;
  box-shadow: 0 22px 50px rgba(31, 58, 46, 0.16);
}

.portrait-stamp {
  position: absolute;
  right: -4%;
  bottom: 7%;
  display: grid;
  place-items: center;
  width: 88px;
  height: 88px;
  border: 2px dashed var(--cream);
  border-radius: 50%;
  color: var(--cream);
  background: var(--accent);
  font-size: 0.64rem;
  font-weight: 900;
  letter-spacing: 0.12em;
  line-height: 1.15;
  text-align: center;
  transform: rotate(9deg);
  box-shadow: 0 10px 20px rgba(31, 58, 46, 0.18);
}

.animal-intro h1 {
  margin-bottom: 6px;
  font-size: clamp(3rem, 6vw, 5.4rem);
}

.animal-species {
  margin-bottom: 18px;
  color: var(--ink-soft);
  font-size: 1.05rem;
  font-weight: 750;
}

.animal-species em {
  color: var(--ink-faint);
  font-weight: 500;
}

.animal-summary {
  max-width: 620px;
  margin-bottom: 22px;
  color: var(--ink-soft);
  font-size: clamp(1.02rem, 1.4vw, 1.16rem);
  line-height: 1.6;
}

.animal-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
}

.status-pill,
.region-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 13px;
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 800;
}

.status-pill {
  color: var(--green-dark);
  background: var(--green-light);
}

.status-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 0 4px rgba(45, 106, 80, 0.14);
}

.region-pill {
  color: var(--ink-soft);
  background: rgba(255, 253, 248, 0.7);
  border: 1px solid var(--line);
}

.animal-code-note {
  margin: 18px 0 0;
  color: var(--ink-faint);
  font-size: 0.74rem;
}

.animal-code-note code {
  margin-left: 4px;
  color: var(--ink-soft);
  font-size: 0.8rem;
  font-weight: 800;
  letter-spacing: 0.06em;
}

.map-card {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius-xl);
  background: var(--cream);
  box-shadow: var(--shadow);
}

.map-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 22px 26px 16px;
}

.map-heading .eyebrow {
  margin-bottom: 5px;
}

.map-heading h2 {
  margin-bottom: 0;
  font-size: clamp(1.5rem, 2.2vw, 2.1rem);
}

.map-wrap {
  position: relative;
  margin: 0 14px;
  overflow: hidden;
  border-radius: var(--radius-lg);
  background: var(--paper-deep);
}

.animal-map {
  height: clamp(360px, 52vw, 520px);
  width: 100%;
  background: #dfe9df;
}

.map-date {
  position: absolute;
  left: 14px;
  bottom: 14px;
  z-index: 500;
  padding: 9px 13px;
  border: 1px solid rgba(31, 58, 46, 0.12);
  border-radius: 999px;
  color: var(--ink);
  background: rgba(255, 253, 248, 0.92);
  box-shadow: var(--shadow-sm);
  font-size: 0.78rem;
  font-weight: 850;
  backdrop-filter: blur(6px);
}

.map-footer {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 11px 26px 16px;
  color: var(--ink-faint);
  font-size: 0.7rem;
}

.map-empty .empty-map {
  display: grid;
  place-items: center;
  min-height: 320px;
  margin: 0 14px 14px;
  border-radius: var(--radius-lg);
  background: var(--paper-deep);
  text-align: center;
}

.empty-map span {
  font-size: 3rem;
}

.empty-map p {
  margin: 4px 0 0;
  color: var(--ink-soft);
}

.stat-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  margin: 20px 0 28px;
}

.stat-card {
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 20px 22px;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: rgba(255, 253, 248, 0.68);
}

.stat-value {
  color: var(--accent);
  font-family: 'Fraunces', Georgia, serif;
  font-size: clamp(1.7rem, 3vw, 2.5rem);
  font-weight: 650;
  line-height: 1;
}

.stat-value small {
  margin-left: 5px;
  color: var(--ink-faint);
  font-family: 'Nunito', sans-serif;
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.stat-label {
  color: var(--ink-soft);
  font-size: 0.78rem;
  font-weight: 750;
}

.story-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
  gap: 18px;
  margin-top: 14px;
}

.story-card,
.facts-card,
.notes-card,
.credit-card {
  padding: clamp(24px, 3.4vw, 36px);
  border: 1px solid var(--line);
  border-radius: var(--radius-xl);
  background: rgba(255, 253, 248, 0.74);
}

.story-card h2,
.facts-card h2,
.notes-heading h2,
.credit-card h2 {
  margin-bottom: 14px;
  font-size: clamp(1.5rem, 2.4vw, 2.1rem);
}

.story-card p {
  color: var(--ink-soft);
}

.story-aside {
  margin: 20px 0 0;
  padding-top: 18px;
  border-top: 1px dashed var(--line-strong);
  color: var(--ink-faint) !important;
  font-size: 0.84rem;
}

.facts-card {
  background:
    radial-gradient(circle at 100% 0, rgba(225, 166, 58, 0.14), transparent 15rem),
    rgba(255, 253, 248, 0.74);
}

.facts-list {
  display: grid;
  gap: 16px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.facts-list li {
  display: grid;
  grid-template-columns: 34px 1fr;
  gap: 10px;
  align-items: start;
}

.fact-number {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 31px;
  height: 31px;
  border-radius: 50%;
  color: var(--green-dark);
  background: var(--gold-soft);
  font-size: 0.67rem;
  font-weight: 900;
}

.facts-list p {
  margin: 2px 0 0;
  color: var(--ink-soft);
  font-size: 0.9rem;
  line-height: 1.45;
}

.notes-card {
  margin-top: 18px;
}

.notes-heading {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 20px;
}

.notes-heading h2 {
  margin-bottom: 0;
}

.notes-icon {
  font-size: 2rem;
  transform: rotate(-5deg);
}

.timeline {
  display: grid;
  gap: 0;
  margin: 0;
  padding: 0;
  list-style: none;
}

.timeline li {
  position: relative;
  display: grid;
  grid-template-columns: 120px 1fr;
  gap: 14px;
  padding: 0 0 20px 24px;
  border-left: 1.5px dashed var(--line-strong);
}

.timeline li:last-child {
  padding-bottom: 0;
  border-left-color: transparent;
}

.timeline-dot {
  position: absolute;
  top: 4px;
  left: -6px;
  width: 10px;
  height: 10px;
  border: 2px solid var(--cream);
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 2px var(--accent);
}

.timeline time {
  color: var(--ink-faint);
  font-size: 0.75rem;
  font-weight: 850;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.timeline p {
  margin: 0;
  color: var(--ink-soft);
  font-size: 0.93rem;
}

.empty-note {
  margin-bottom: 0;
  color: var(--ink-faint);
}

.credit-card {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 26px;
  margin-top: 18px;
  color: rgba(249, 244, 232, 0.82);
  background:
    radial-gradient(circle at 100% 0, rgba(225, 166, 58, 0.16), transparent 20rem),
    var(--green-dark);
}

.credit-card h2 {
  color: #f9f4e8;
}

.credit-card p {
  max-width: 700px;
  margin-bottom: 8px;
}

.credit-card strong {
  color: #f9f4e8;
}

.credit-card .citation {
  color: rgba(249, 244, 232, 0.6);
  font-size: 0.72rem;
  line-height: 1.5;
}

.credit-actions {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 10px;
  flex: 0 0 auto;
}

.credit-actions .button-quiet {
  color: var(--green-dark);
  background: var(--gold-soft);
  border-color: transparent;
}

.credit-actions .text-link {
  color: var(--gold-soft);
}

/* ---------- credits ---------- */

.credits-page {
  padding: 34px 0 70px;
}

.page-heading {
  max-width: 780px;
  padding-bottom: 28px;
}

.credit-list {
  display: grid;
  gap: 14px;
}

.credit-animal {
  display: grid;
  grid-template-columns: 120px 1fr;
  gap: 20px;
  align-items: start;
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: rgba(255, 253, 248, 0.68);
}

.credit-animal img {
  width: 120px;
  height: 120px;
  border-radius: 24px;
  object-fit: cover;
}

.credit-animal h2 {
  margin-bottom: 4px;
  font-size: 1.4rem;
}

.credit-animal h2 span {
  color: var(--ink-faint);
  font-family: 'Nunito', sans-serif;
  font-size: 0.78rem;
  font-weight: 700;
}

.credit-animal p {
  margin-bottom: 5px;
  color: var(--ink-soft);
  font-size: 0.9rem;
}

.credit-license {
  color: var(--green) !important;
  font-size: 0.75rem !important;
  font-weight: 850;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.credit-explain {
  max-width: 820px;
  margin-top: 34px;
  padding: 28px 30px;
  border-radius: var(--radius-lg);
  background: var(--green-light);
}

.credit-explain h2 {
  font-size: 1.7rem;
}

.credit-explain p:last-child {
  margin-bottom: 0;
}

/* ---------- footer / errors ---------- */

.site-footer {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 20px;
  padding: 28px 0 34px;
  border-top: 1px solid var(--line);
  color: var(--ink-faint);
  font-size: 0.78rem;
}

.site-footer p {
  margin: 8px 0 0;
}

.site-footer nav {
  display: flex;
  gap: 18px;
}

.site-footer nav a {
  color: var(--ink-soft);
  font-weight: 750;
  text-decoration: none;
}

.site-footer nav a:hover {
  color: var(--green);
}

.error-page {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  min-height: 62vh;
  padding: 50px 0;
}

.error-page h1 {
  margin-bottom: 14px;
}

.error-page .lede {
  margin-bottom: 24px;
}

/* ---------- leaflet bits ---------- */

.map-pin-start {
  display: grid;
  place-items: center;
  width: 22px;
  height: 22px;
  border: 3px solid var(--cream);
  border-radius: 50%;
  background: var(--ink);
  box-shadow: 0 3px 8px rgba(31, 58, 46, 0.3);
}

.map-animal {
  position: relative;
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  border: 3px solid var(--cream);
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 6px 16px rgba(31, 58, 46, 0.3);
  font-size: 1.35rem;
  line-height: 1;
}

.map-animal::after {
  content: '';
  position: absolute;
  inset: -7px;
  border: 2px solid var(--accent);
  border-radius: 50%;
  opacity: 0;
  animation: pulse 2.4s ease-out infinite;
}

@keyframes pulse {
  0% { transform: scale(0.8); opacity: 0.55; }
  85% { transform: scale(1.35); opacity: 0; }
  100% { opacity: 0; }
}

/* ---------- responsive ---------- */

@media (max-width: 980px) {
  .hero {
    grid-template-columns: 1fr;
    padding-top: 20px;
  }

  .hero-copy h1 {
    max-width: 12ch;
  }

  .hero-art {
    min-height: 420px;
    order: -1;
  }

  .hero-animal {
    width: min(78vw, 430px);
  }

  .animal-hero {
    grid-template-columns: 1fr;
  }

  .animal-portrait img {
    width: min(68vw, 360px);
  }

  .portrait-stamp {
    right: 18%;
  }

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

  .portrait-row {
    grid-template-columns: repeat(3, 1fr);
    gap: 18px;
  }

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

@media (max-width: 680px) {
  body {
    font-size: 16px;
  }

  .site-header,
  .site-footer,
  .hero,
  .how-it-works,
  .meet-strip,
  .data-note,
  .animal-page,
  .credits-page,
  .error-page {
    width: min(100% - 28px, var(--max));
  }

  .site-header {
    padding-top: 18px;
  }

  .site-nav {
    gap: 12px;
    font-size: 0.82rem;
  }

  .site-nav a:first-child {
    display: none;
  }

  .hero-art {
    min-height: 330px;
  }

  .hero-animal {
    width: min(80vw, 330px);
  }

  .floating-tag {
    padding: 8px 10px;
    font-size: 0.72rem;
  }

  .tag-one {
    left: 0;
    top: 8%;
  }

  .tag-two {
    right: 0;
    bottom: 5%;
  }

  .tag-icon {
    width: 28px;
    height: 28px;
    font-size: 0.95rem;
  }

  .tag-number {
    font-size: 1.1rem;
  }

  .code-form {
    padding: 16px;
  }

  .code-row {
    flex-direction: column;
  }

  .code-row .button {
    width: 100%;
  }

  .section-heading {
    display: block;
  }

  .portrait-row {
    grid-template-columns: repeat(2, 1fr);
  }

  .data-note-inner {
    display: block;
  }

  .data-note-icon {
    margin-bottom: 16px;
  }

  .animal-hero {
    padding-top: 14px;
  }

  .animal-portrait img {
    width: min(84vw, 320px);
  }

  .portrait-stamp {
    right: 4%;
    bottom: 2%;
    width: 70px;
    height: 70px;
    font-size: 0.55rem;
  }

  .map-heading {
    align-items: flex-start;
    flex-direction: column;
    padding: 18px 18px 12px;
  }

  .map-wrap {
    margin-inline: 8px;
  }

  .animal-map {
    height: 340px;
  }

  .map-footer {
    padding-inline: 18px;
    font-size: 0.64rem;
  }

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

  .stat-card:last-child {
    grid-column: 1 / -1;
  }

  .timeline li {
    grid-template-columns: 1fr;
    gap: 4px;
  }

  .credit-card {
    display: block;
  }

  .credit-actions {
    margin-top: 18px;
  }

  .credit-animal {
    grid-template-columns: 78px 1fr;
    gap: 14px;
    padding: 14px;
  }

  .credit-animal img {
    width: 78px;
    height: 78px;
    border-radius: 16px;
  }

  .site-footer {
    display: block;
  }

  .site-footer nav {
    margin-top: 14px;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }
}
