:root {
  --ink: #102626;
  --forest: #173f34;
  --water: #184f62;
  --deep-water: #1b382f;
  --lime: #d8ff73;
  --paper: #f3f1e8;
  --white: #fffdf7;
  --line: rgba(16, 38, 38, 0.24);
  --max: 1240px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: Arial, Helvetica, sans-serif;
  font-size: 16px;
  line-height: 1.55;
  overflow-x: hidden;
}
a { color: inherit; }
.progress { position: fixed; inset: 0 0 auto; height: 3px; z-index: 100; background: transparent; }
.progress span { display: block; width: 0; height: 100%; background: var(--lime); }

.site-header {
  position: fixed;
  z-index: 90;
  top: 0;
  left: 0;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  padding: 1.1rem 3vw;
  color: var(--white);
  background: linear-gradient(to bottom, rgba(8, 29, 32, .82), transparent);
  transition: background .25s ease;
}
.site-header.scrolled { background: rgba(8, 29, 32, .96); }
.wordmark { display: flex; align-items: center; gap: .7rem; text-decoration: none; font-weight: 700; font-size: .82rem; letter-spacing: .04em; }
.wordmark-mark { width: 1.7rem; height: 1.7rem; border: 2px solid var(--lime); border-radius: 50%; }
nav { display: flex; gap: 1.5rem; }
nav a { text-decoration: none; font-size: .78rem; opacity: .68; transition: opacity .2s ease; }
nav a:hover, nav a.active { opacity: 1; }

.hero {
  position: relative;
  min-height: 100svh;
  display: grid;
  grid-template-columns: 1.1fr .9fr;
  align-items: end;
  padding: 9rem 5vw 6rem;
  color: var(--white);
  background: var(--deep-water);
  overflow: hidden;
}
.hero-grid { position: absolute; inset: 0; opacity: .14; background-image: linear-gradient(rgba(255,255,255,.3) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.3) 1px, transparent 1px); background-size: 8vw 8vw; }
.hero-copy, .hero-placeholder { position: relative; z-index: 1; }
.hero h1 { margin: .3rem 0 1.2rem; font: 700 clamp(5.4rem, 14vw, 12rem)/.75 Georgia, serif; letter-spacing: -.08em; }
.eyebrow { margin: 0 0 1rem; color: var(--lime); font-weight: 700; font-size: .78rem; letter-spacing: .16em; text-transform: uppercase; }
.hero-deck { max-width: 35rem; margin: 0; font-size: clamp(1.1rem, 2vw, 1.45rem); }
.hero-placeholder, .image-placeholder {
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  gap: .35rem;
  min-height: 25rem;
  padding: 1.5rem;
  border: 1px solid rgba(255,255,255,.42);
  background: repeating-linear-gradient(135deg, rgba(255,255,255,.07) 0, rgba(255,255,255,.07) 2px, transparent 2px, transparent 16px);
}
.hero-placeholder span, .image-placeholder span { font-weight: 700; }
.hero-placeholder small, .image-placeholder small { opacity: .68; }
.scroll-cue { position: absolute; z-index: 2; left: 5vw; bottom: 1.5rem; text-decoration: none; font-size: .8rem; letter-spacing: .08em; text-transform: uppercase; }

.overview, .chapter, .closing { padding: clamp(5rem, 10vw, 10rem) 5vw; }
.overview { max-width: var(--max); margin: auto; }
.chapter-label { font-size: .78rem; letter-spacing: .14em; text-transform: uppercase; }
.overview-grid { display: grid; grid-template-columns: 1.25fr .75fr; gap: 6vw; align-items: start; margin: 3rem 0 6rem; }
h2 { margin: 0; font: 700 clamp(3rem, 6vw, 6.7rem)/.92 Georgia, serif; letter-spacing: -.055em; }
.lead { margin: 0; font-size: clamp(1.15rem, 1.8vw, 1.45rem); line-height: 1.55; }
.chapter-list { list-style: none; padding: 0; margin: 0; border-top: 1px solid var(--line); }
.chapter-list li { border-bottom: 1px solid var(--line); }
.chapter-list a { display: flex; gap: 2rem; align-items: center; padding: 1.3rem 0; font: 700 clamp(1.2rem, 2.3vw, 2rem)/1.1 Georgia, serif; text-decoration: none; }
.chapter-list span { font: 400 .75rem/1 Arial, sans-serif; color: #4f6865; }

.chapter { position: relative; min-height: 90vh; overflow: hidden; }
.chapter-light { background: var(--white); }
.chapter-water { background: var(--water); color: var(--white); }
.chapter-forest { background: var(--forest); color: var(--white); }
.chapter-ink { background: #102626; color: var(--white); }
.chapter-number { position: absolute; right: 2vw; top: 2rem; font: 700 clamp(7rem, 18vw, 19rem)/1 Georgia, serif; letter-spacing: -.09em; opacity: .065; }
.chapter-layout { position: relative; z-index: 1; max-width: var(--max); margin: auto; display: grid; grid-template-columns: .9fr 1.1fr; gap: 8vw; align-items: center; }
.chapter-layout.reverse { grid-template-columns: 1.05fr .95fr; }
.chapter-layout.reverse .chapter-copy { order: 2; }
.chapter-copy h2 { margin-bottom: 2rem; }
.draft-notes { margin-top: 3rem; padding-top: 1.4rem; border-top: 1px solid var(--line); }
.draft-notes h3 { margin: 0 0 .7rem; font-size: .8rem; letter-spacing: .1em; text-transform: uppercase; }
.draft-notes ul { margin: 0; padding-left: 1.1rem; }
.media-stack { position: relative; }
.image-placeholder { color: inherit; border-color: currentColor; opacity: .86; }
.landscape { aspect-ratio: 4 / 3; }
.portrait { min-height: 38rem; }
.image-caption { margin-top: .8rem; font-size: .82rem; opacity: .7; }
.fact-row { display: grid; grid-template-columns: repeat(3, 1fr); margin-top: 3rem; border-top: 1px solid rgba(255,255,255,.3); }
.fact-row div { padding: 1.1rem .8rem 0 0; }
.fact-row strong, .fact-row span { display: block; }
.fact-row strong { font: 700 1.25rem Georgia, serif; }
.fact-row span { font-size: .78rem; opacity: .72; }

.centered-copy { max-width: 900px; margin: 0 auto 6rem; text-align: center; }
.centered-copy .lead { max-width: 760px; margin: 2rem auto 0; }
.partner-grid { max-width: var(--max); margin: auto; display: grid; grid-template-columns: repeat(4, 1fr); border-top: 1px solid var(--line); border-left: 1px solid var(--line); }
.partner-grid div { display: grid; min-height: 12rem; place-items: center; padding: 1rem; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); text-align: center; font-weight: 700; }
.placeholder-note { text-align: center; font-size: .8rem; opacity: .65; }

.wildlife-heading { position: relative; z-index: 1; max-width: var(--max); margin: 0 auto 5rem; display: grid; grid-template-columns: 1.5fr .5fr; gap: 8vw; align-items: end; }
.wildlife-heading > p { font-size: 1.1rem; }
.wildlife-grid { max-width: var(--max); margin: auto; display: grid; grid-template-columns: 2fr 1fr; gap: 1.25rem; }
.wide { grid-row: span 2; min-height: 36rem; }
.square { min-height: 18rem; }
.habitat-list { display: grid; grid-template-columns: 1fr 1fr; border-top: 1px solid rgba(255,255,255,.3); border-left: 1px solid rgba(255,255,255,.3); }
.habitat-list span { padding: 1rem; border-right: 1px solid rgba(255,255,255,.3); border-bottom: 1px solid rgba(255,255,255,.3); font-size: .82rem; }

.research-intro { position: relative; z-index: 1; max-width: 950px; margin-bottom: 6rem; }
.research-intro .lead { max-width: 740px; margin-top: 2rem; color: #bdd0cb; }
.methods-grid { max-width: var(--max); margin: 0 auto 5rem; display: grid; grid-template-columns: repeat(4, 1fr); border-top: 1px solid rgba(255,255,255,.25); }
.methods-grid article { padding: 1.5rem 1.5rem 3rem 0; border-bottom: 1px solid rgba(255,255,255,.25); }
.methods-grid article + article { padding-left: 1.5rem; border-left: 1px solid rgba(255,255,255,.25); }
.methods-grid span { color: var(--lime); font-size: .75rem; }
.methods-grid h3 { margin: 2.7rem 0 .8rem; font: 700 1.5rem Georgia, serif; }
.methods-grid p { margin: 0; color: #bdd0cb; font-size: .92rem; }
.research-placeholder { max-width: var(--max); min-height: 31rem; margin: auto; }

.closing { min-height: 78vh; display: grid; grid-template-columns: 1.3fr .7fr; gap: 8vw; align-items: center; background: var(--lime); }
.closing-copy p:not(.eyebrow) { max-width: 45rem; margin-top: 2rem; font-size: 1.2rem; }
.closing .eyebrow { color: var(--ink); opacity: .65; }
.closing-actions { align-self: end; }
.button { display: inline-block; padding: 1rem 1.3rem; color: var(--white); background: var(--ink); text-decoration: none; font-weight: 700; }
.closing-actions p { margin-top: 2rem; font-size: .86rem; }
footer { display: flex; justify-content: space-between; gap: 2rem; padding: 1.5rem 5vw; color: var(--white); background: var(--ink); font-size: .75rem; }

.reveal { opacity: 0; transform: translateY(45px); transition: opacity .8s ease, transform .8s cubic-bezier(.2,.7,.2,1); }
.reveal.is-visible { opacity: 1; transform: translateY(0); }

@media (max-width: 900px) {
  nav { display: none; }
  .hero { grid-template-columns: 1fr; gap: 3rem; padding-top: 8rem; }
  .hero h1 { font-size: clamp(5rem, 23vw, 9rem); }
  .hero-placeholder { min-height: 18rem; }
  .overview-grid, .chapter-layout, .chapter-layout.reverse, .wildlife-heading, .closing { grid-template-columns: 1fr; }
  .chapter-layout.reverse .chapter-copy { order: initial; }
  .chapter-copy { max-width: 760px; }
  .partner-grid, .methods-grid { grid-template-columns: 1fr 1fr; }
  .wildlife-grid { grid-template-columns: 1fr; }
  .wide { grid-row: auto; min-height: 28rem; }
}

@media (max-width: 560px) {
  .site-header { padding: 1rem 1.2rem; }
  .wordmark { font-size: .72rem; }
  .hero, .overview, .chapter, .closing { padding-left: 1.25rem; padding-right: 1.25rem; }
  .hero { padding-bottom: 5rem; }
  .hero h1 { font-size: 24vw; }
  .overview-grid { margin-bottom: 4rem; }
  .chapter { min-height: auto; }
  .chapter-number { font-size: 8rem; }
  .portrait { min-height: 24rem; }
  .fact-row, .partner-grid, .methods-grid, .habitat-list { grid-template-columns: 1fr; }
  .partner-grid div { min-height: 7rem; }
  .methods-grid article + article { padding-left: 0; border-left: 0; }
  .closing { min-height: 75vh; }
  footer { flex-direction: column; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
}
.hero-grid {
  display: none;
}
.hero-placeholder.has-image {
  padding: 0;
  overflow: hidden;
  background: none;
}

.hero-placeholder.has-image img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
}

.wordmark {
  font-size: 1rem;
  gap: 0.8rem;
}

.wordmark img {
  width: auto;
  height: 45px;
  display: block;
}

.hero {
  display: flex;
  align-items: flex-end;
  background-image:
    linear-gradient(rgba(5, 25, 25, 0.55), rgba(5, 25, 25, 0.55)),
    url("froglogs.png");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

.hero-placeholder {
  display: none;
}

.hero-copy {
  max-width: 750px;
}

.chapter-number {
  display: none;
}

.wildlife-heading {
  grid-template-columns: 1fr 1fr;
  align-items: start;
  gap: 6rem;
}

.wildlife-text {
  max-width: 600px;
}

.wildlife-text p {
  margin: 0 0 1.5rem;
  font-size: 1.1rem;
  line-height: 1.7;
}

#wildlife-title {
  font-size: clamp(3.5rem, 6vw, 6.5rem);
}

.image-placeholder.has-image {
  display: block;
  padding: 0;
  min-height: 0;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  border: none;
  background: none;
}

.image-placeholder.has-image img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  border: none;
}

.image-placeholder span,
.image-placeholder small,
.hero-placeholder span,
.hero-placeholder small {
  display: none;
}
.habitat-list {
  display: none;
}

.image-placeholder {
  background-image: none;
}

.education-image {
  aspect-ratio: 4 / 5;
  min-height: 38rem;
  overflow: hidden;
}

.education-image img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  object-position: center top;
}

/* EDUCATION PAGE — FULL LEFT-HALF IMAGE */

#education {
  padding: 0;
  min-height: calc(100vh - 110px);
}

#education .section-content {
  width: 100%;
  max-width: none;
  min-height: calc(100vh - 110px);
  margin: 0;
  display: grid;
  grid-template-columns: 50% 50%;
  gap: 0;
  align-items: stretch;
}

#education .education-image {
  width: 100%;
  height: calc(100vh - 110px);
  min-height: 0;
  margin: 0;
  padding: 0;
  border: none;
  aspect-ratio: auto;
  overflow: hidden;
}

#education .education-image img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  object-position: center;
}

/* Gives the writing breathing room without affecting the image */

#education .section-content > *:not(.education-image) {
  padding: 5rem;
}

/* PHONE VERSION */

@media (max-width: 800px) {
  #education .section-content {
    grid-template-columns: 1fr;
  }

  #education .education-image {
    height: 70vh;
  }

  #education .section-content > *:not(.education-image) {
    padding: 3rem 1.5rem;
  }
}

/* WILDLIFE SECTION PHOTOS */

#wildlife .image-placeholder {
  padding: 0;
  overflow: hidden;
  background: none;
}

#wildlife .image-placeholder img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  object-position: center;
}

/* WILDLIFE PHOTOS — EQUAL SIZE */

#wildlife div:has(> .image-placeholder) {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
}

#wildlife .image-placeholder {
  width: 100%;
  height: auto;
  min-height: 0;
  aspect-ratio: 4 / 3;
  grid-column: auto;
  padding: 0;
  overflow: hidden;
}

#wildlife .image-placeholder img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
}

/* RESEARCH SECTION IMAGE */

#research .image-placeholder {
  padding: 0;
  overflow: hidden;
  background: none;
}

#research .image-placeholder img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  object-position: center;
}

/* FINAL PAGE BUTTONS */

.closing-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  align-items: center;
}

.closing-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 64px;
  padding: 1rem 1.5rem;
  background-color: #082525;
  color: #ffffff;
  font-weight: 700;
  text-decoration: none;
  text-align: center;
  transition: background-color 0.25s ease, transform 0.25s ease;
}

.closing-button:hover {
  background-color: #1b5554;
  transform: translateY(-3px);
}

/* STACKS THE BUTTONS ON SMALL SCREENS */

@media (max-width: 800px) {
  .closing-buttons {
    flex-direction: column;
    align-items: stretch;
  }

  .closing-button {
    width: 100%;
  }
}