:root {
  --paper: #fbf8f1;
  --surface: #ffffff;
  --surface-alt: #f1ede2;
  --ink: #17231d;
  --ink-soft: #46544c;
  --brand: #0f5c43;
  --brand-ink: #ffffff;
  --accent: #b35a0f;
  --accent-soft: #fbe3c8;
  --line: #ddd6c6;
  --shadow: 0 10px 30px -12px rgb(20 40 30 / .25);
  --radius: 18px;
  --container: 1180px;
  --font: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --serif: ui-serif, "Iowan Old Style", "Palatino Linotype", Palatino, Georgia, serif;
  color-scheme: light dark;
}
@media (prefers-color-scheme: dark) {
  :root {
    --paper: #0b1712;
    --surface: #12221b;
    --surface-alt: #0f1d17;
    --ink: #e9efe9;
    --ink-soft: #a9b8ae;
    --brand: #5fd0a2;
    --brand-ink: #062016;
    --accent: #f3a05a;
    --accent-soft: #3a2817;
    --line: #23382e;
    --shadow: 0 10px 30px -12px rgb(0 0 0 / .6);
  }
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; scroll-padding-top: 76px; }
body {
  margin: 0; background: var(--paper); color: var(--ink);
  font-family: var(--font); font-size: 1.0625rem; line-height: 1.65;
  overflow-x: hidden;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--brand); }
h1, h2, h3 { line-height: 1.15; margin: 0 0 .6em; font-family: var(--serif); font-weight: 700; letter-spacing: -.01em; }
h2 { font-size: clamp(1.8rem, 1.2rem + 2.4vw, 2.8rem); }
h3 { font-size: 1.25rem; }
p { margin: 0 0 1em; }
.container { width: min(100% - 32px, var(--container)); margin-inline: auto; }
.sr-only { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip-link { position: absolute; left: 16px; top: -60px; z-index: 100; background: var(--brand); color: var(--brand-ink); padding: .6rem 1rem; border-radius: 10px; }
.skip-link:focus { top: 12px; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; border-radius: 6px; }

.eyebrow { text-transform: uppercase; letter-spacing: .14em; font-size: .78rem; font-weight: 700; color: var(--accent); margin-bottom: .8rem; }
.muted { color: var(--ink-soft); font-size: .92rem; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  min-height: 48px; padding: .7rem 1.4rem; border-radius: 999px; border: 2px solid var(--brand);
  background: var(--brand); color: var(--brand-ink); font: inherit; font-weight: 700; text-decoration: none; cursor: pointer;
  transition: transform .2s ease, background-color .2s ease, color .2s ease;
}
.btn:hover { transform: translateY(-2px); }
.btn-ghost { background: transparent; color: #fff; border-color: rgb(255 255 255 / .8); }
.btn-ghost:hover { background: rgb(255 255 255 / .12); }
.btn-small { min-height: 40px; padding: .4rem 1.1rem; }

/* Header */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: color-mix(in srgb, var(--paper) 88%, transparent);
  backdrop-filter: saturate(1.4) blur(10px); -webkit-backdrop-filter: saturate(1.4) blur(10px);
  border-bottom: 1px solid var(--line);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; min-height: 68px; gap: 1rem; }
.brand { display: inline-flex; align-items: center; gap: .6rem; text-decoration: none; color: var(--ink); }
.brand-bird { width: 44px; height: 28px; color: var(--brand); }
.brand-text { font-family: var(--serif); font-weight: 700; font-size: 1.35rem; line-height: 1; display: inline-flex; flex-direction: column; margin: 0; }
.brand-text small { font-family: var(--font); font-size: .68rem; letter-spacing: .12em; text-transform: uppercase; color: var(--ink-soft); font-weight: 600; margin-top: .25rem; }

.nav-toggle { display: inline-flex; flex-direction: column; justify-content: center; gap: 5px; width: 48px; height: 48px; border: 1px solid var(--line); border-radius: 12px; background: var(--surface); cursor: pointer; padding: 0 12px; }
.nav-toggle .bar { display: block; height: 2px; width: 100%; background: var(--ink); border-radius: 2px; transition: transform .25s ease, opacity .25s ease; }
.nav-toggle[aria-expanded="true"] .bar:nth-child(2) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] .bar:nth-child(3) { opacity: 0; }
.nav-toggle[aria-expanded="true"] .bar:nth-child(4) { transform: translateY(-7px) rotate(-45deg); }

.site-nav { position: absolute; left: 0; right: 0; top: 100%; background: var(--paper); border-bottom: 1px solid var(--line); display: none; }
.site-nav.open { display: block; }
.site-nav ul { list-style: none; margin: 0; padding: .5rem 16px 1rem; display: flex; flex-direction: column; gap: .25rem; }
.site-nav a:not(.btn) { display: block; padding: .75rem .25rem; color: var(--ink); text-decoration: none; font-weight: 600; }
.site-nav .btn { margin-top: .5rem; }
.no-js .site-nav { display: block; position: static; border: 0; }

@media (min-width: 900px) {
  .nav-toggle { display: none; }
  .site-nav, .no-js .site-nav { display: block; position: static; background: none; border: 0; }
  .site-nav ul { flex-direction: row; align-items: center; padding: 0; gap: 1.4rem; }
  .site-nav a:not(.btn) { padding: .3rem 0; position: relative; }
  .site-nav a:not(.btn)::after { content: ""; position: absolute; left: 0; right: 100%; bottom: -2px; height: 2px; background: var(--accent); transition: right .25s ease; }
  .site-nav a:not(.btn):hover::after { right: 0; }
  .site-nav .btn { margin-top: 0; }
}

/* Hero */
.hero { position: relative; min-height: min(92vh, 860px); display: grid; align-items: end; color: #fff; isolation: isolate; overflow: hidden; }
.hero-media, .hero-media img { position: absolute; inset: 0; width: 100%; height: 100%; }
.hero-media img { object-fit: cover; object-position: 60% 50%; }
.hero::after { content: ""; position: absolute; inset: 0; z-index: 0; background: linear-gradient(180deg, rgb(5 20 14 / .3) 0%, rgb(5 20 14 / .55) 35%, rgb(5 20 14 / .88) 100%); }
.hero-content { position: relative; z-index: 2; padding: 7rem 0 4.5rem; max-width: 760px; margin-left: max(16px, calc((100% - var(--container)) / 2)); }
.hero .eyebrow { color: #ffd2a6; }
.hero h1 { font-size: clamp(2.2rem, 1.3rem + 4.4vw, 4.4rem); text-shadow: 0 2px 24px rgb(0 0 0 / .35); }
.hero h1 span { color: #ffd2a6; font-style: italic; }
.lead { font-size: clamp(1.05rem, 1rem + .4vw, 1.3rem); max-width: 60ch; color: rgb(255 255 255 / .92); }
.hero-actions { display: flex; flex-wrap: wrap; gap: .8rem; margin-top: 1.6rem; }
.hero .btn:not(.btn-ghost) { background: #ffd2a6; border-color: #ffd2a6; color: #1f1306; }

.hero-flock { position: absolute; inset: 0; z-index: 1; pointer-events: none; }
.flock-bird { position: absolute; width: 46px; height: 30px; color: rgb(255 255 255 / .85); animation: glide 22s linear infinite; }
.flock-bird.b1 { top: 18%; animation-delay: -4s; }
.flock-bird.b2 { top: 26%; width: 32px; animation-duration: 28s; animation-delay: -12s; }
.flock-bird.b3 { top: 14%; width: 24px; animation-duration: 34s; animation-delay: -20s; }
@keyframes glide {
  from { transform: translate(-10vw, 20px); }
  50% { transform: translate(50vw, -20px); }
  to { transform: translate(110vw, 10px); }
}

/* Wing flap (brand + flock) */
.wing { transform-box: fill-box; animation: flap .9s ease-in-out infinite alternate; }
.wing-l { transform-origin: 100% 80%; }
.wing-r { transform-origin: 0% 80%; }
@keyframes flap { from { transform: scaleY(1); } to { transform: scaleY(-.55); } }
.flock-bird.b2 .wing { animation-duration: .7s; }
.flock-bird.b3 .wing { animation-duration: .55s; }

/* Sections */
.section { padding: clamp(4rem, 3rem + 5vw, 7rem) 0; }
.section-alt { background: var(--surface-alt); }
.section-head { max-width: 720px; margin-bottom: 2.6rem; }
.section-head p:last-child { color: var(--ink-soft); }
.split { display: grid; gap: 2.5rem; align-items: start; }
@media (min-width: 900px) { .split { grid-template-columns: 1fr 1fr; gap: 4rem; } }

/* Icons */
.icon { width: 44px; height: 44px; flex: none; color: var(--brand); }
.icon-lg { width: 56px; height: 56px; margin-bottom: 1rem; }
.icon-xl { width: 120px; height: 120px; margin-top: 1rem; color: var(--accent); }
.feather { transform-origin: 20% 90%; animation: sway 3.4s ease-in-out infinite; }
.leaf { transform-origin: 15% 85%; animation: sway 4s ease-in-out infinite; }
@keyframes sway { 0%, 100% { transform: rotate(-6deg) translateY(0); } 50% { transform: rotate(6deg) translateY(-2px); } }
.binoculars { transform-origin: 50% 60%; animation: scan 5s ease-in-out infinite; }
@keyframes scan { 0%, 100% { transform: rotate(0); } 25% { transform: rotate(-8deg); } 75% { transform: rotate(8deg); } }
.glint { animation: glint 2.5s ease-in-out infinite; }
@keyframes glint { 0%, 100% { opacity: .2; } 50% { opacity: 1; } }
.wave { animation: wave 1.8s ease-in-out infinite; opacity: 0; }
.w2 { animation-delay: .25s; } .w3 { animation-delay: .5s; }
@keyframes wave { 0% { opacity: 0; } 40% { opacity: 1; } 100% { opacity: 0; } }
.egg { transform-origin: 50% 95%; animation: wobble 3s ease-in-out infinite; }
@keyframes wobble { 0%, 70%, 100% { transform: rotate(0); } 78% { transform: rotate(-7deg); } 86% { transform: rotate(6deg); } 94% { transform: rotate(-3deg); } }
.spin { transform-origin: 24px 24px; animation: spin 6s linear infinite; }
@keyframes spin { from { transform: scaleX(1); } 50% { transform: scaleX(-1); } to { transform: scaleX(1); } }

/* Pillars */
.pillars { list-style: none; margin: 0; padding: 0; display: grid; gap: 1rem; }
.pillars li { display: flex; gap: 1rem; padding: 1.25rem; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); }
.pillars h3 { margin-bottom: .25rem; }
.pillars p { margin: 0; color: var(--ink-soft); }

/* Species */
.species-grid { display: grid; gap: 1.25rem; grid-template-columns: 1fr; }
@media (min-width: 640px) { .species-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1100px) { .species-grid { grid-template-columns: repeat(4, 1fr); } }
.species-card { background: var(--surface); border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); box-shadow: var(--shadow); display: flex; flex-direction: column; transition: transform .3s ease; }
.species-card:hover { transform: translateY(-4px); }
.species-card img { aspect-ratio: 4 / 3; object-fit: cover; width: 100%; background: var(--line); }
.species-body { padding: 1.2rem 1.3rem 1.4rem; }
.species-body h3 { margin-bottom: .1rem; }
.sci { color: var(--accent); font-size: .92rem; margin-bottom: .6rem; }
.species-body p:last-child { margin: 0; color: var(--ink-soft); font-size: .98rem; }

.species-mini { list-style: none; padding: 0; margin: 2rem 0 0; display: grid; gap: 1rem; }
@media (min-width: 760px) { .species-mini { grid-template-columns: repeat(2, 1fr); } }
.species-mini li { display: flex; gap: 1rem; padding: 1.2rem; border-radius: var(--radius); border: 1px dashed var(--line); background: var(--surface); }
.species-mini h3 { font-size: 1.1rem; margin-bottom: .3rem; }
.species-mini h3 i { font-family: var(--font); font-weight: 400; font-size: .85rem; color: var(--accent); margin-left: .3rem; }
.species-mini p { margin: 0; color: var(--ink-soft); font-size: .97rem; }

/* Cards */
.cards-3 { display: grid; gap: 1.25rem; }
@media (min-width: 820px) { .cards-3 { grid-template-columns: repeat(3, 1fr); } }
.card { padding: 1.8rem; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow); }
.card p { margin: 0; color: var(--ink-soft); }

/* Tips */
.tips { list-style: none; counter-reset: tip; margin: 0; padding: 0; display: grid; gap: .8rem; }
.tips li { counter-increment: tip; position: relative; padding: 1rem 1.1rem 1rem 3.6rem; background: var(--surface); border-radius: 14px; border: 1px solid var(--line); }
.tips li::before { content: counter(tip); position: absolute; left: 1rem; top: 1rem; width: 1.9rem; height: 1.9rem; display: grid; place-items: center; border-radius: 50%; background: var(--accent-soft); color: var(--accent); font-weight: 800; font-size: .9rem; }

/* Impact */
.impact { background: linear-gradient(160deg, #0f3d2e, #0a2a20); color: #eaf5ee; }
.impact .eyebrow { color: #ffd2a6; }
.stats { margin: 0; display: grid; gap: 1rem; grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr)); }
.stat { padding: 1.6rem; border-radius: var(--radius); background: rgb(255 255 255 / .06); border: 1px solid rgb(255 255 255 / .12); display: flex; flex-direction: column-reverse; justify-content: flex-end; }
.stat dt { color: #bcd4c6; font-size: .98rem; }
.stat dd { margin: 0 0 .3rem; font-family: var(--serif); font-size: clamp(2.2rem, 1.6rem + 2vw, 3.2rem); font-weight: 700; color: #ffd2a6; font-variant-numeric: tabular-nums; }
.footnote { margin-top: 1.4rem; font-size: .85rem; color: #bcd4c6; }

/* Form */
.contact-form { background: var(--surface); padding: 1.6rem; border-radius: var(--radius); border: 1px solid var(--line); box-shadow: var(--shadow); display: grid; gap: 1rem; }
.field { display: grid; gap: .35rem; }
.field label { font-weight: 700; font-size: .95rem; }
.field input, .field select, .field textarea {
  width: 100%; font: inherit; color: var(--ink); background: var(--paper);
  border: 1.5px solid var(--line); border-radius: 12px; padding: .75rem .9rem; min-height: 48px;
}
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--brand); outline: 3px solid color-mix(in srgb, var(--brand) 30%, transparent); outline-offset: 0; }
.field [aria-invalid="true"] { border-color: #c0392b; }
.form-note { margin: 0; font-size: .88rem; color: var(--ink-soft); }
.link { font-weight: 700; font-size: 1.15rem; }

/* Footer */
.site-footer { border-top: 1px solid var(--line); padding: 2.5rem 0; background: var(--surface-alt); }
.footer-inner { display: grid; gap: 1.5rem; }
@media (min-width: 820px) { .footer-inner { grid-template-columns: 1.4fr 1fr 1fr; align-items: center; } }
.site-footer ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 1rem; }
.site-footer a { color: var(--ink); text-decoration: none; font-weight: 600; }
.site-footer a:hover { color: var(--brand); }
.site-footer .brand-text { margin-bottom: .6rem; }

/* Reveal on scroll (only when JS is active) */
.js .reveal { opacity: 0; transform: translateY(18px); transition: opacity .7s ease, transform .7s ease; }
.js .reveal.is-visible { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .js .reveal { opacity: 1; transform: none; }
  .flock-bird { display: none; }
}
