
:root {
  --olive: #595934;
  --olive-dark: #40421f;
  --olive-soft: #8a8870;
  --cream: #d8d0ac;
  --cream-light: #ede7cf;
  --sand: #c8be98;
  --paper: #f2edd9;
  --text: #f2eed9;
  --body-text: #5a5833;
  --shadow: 0 18px 50px rgba(0, 0, 0, .25);
  --header-height: 88px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--body-text);
  background: var(--olive);
  font-family: Inter, Arial, sans-serif;
  font-size: 16px;
  line-height: 1.55;
}
a { color: inherit; }
img, video { display: block; max-width: 100%; }
button, a { -webkit-tap-highlight-color: transparent; }
.skip-link {
  position: fixed;
  left: 1rem;
  top: -5rem;
  z-index: 9999;
  background: var(--paper);
  color: var(--olive-dark);
  padding: .75rem 1rem;
  border-radius: 99px;
}
.skip-link:focus { top: 1rem; }

.site-header {
  position: fixed;
  inset: 0 0 auto 0;
  height: var(--header-height);
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px clamp(18px, 5vw, 72px);
  background: rgba(135, 132, 105, .72);
  backdrop-filter: blur(5px);
  transition: background .25s ease, height .25s ease;
}
.site-header.scrolled {
  height: 72px;
  background: rgba(89, 89, 52, .92);
}
.logo-link { display: inline-flex; align-items: center; }
.logo {
  width: 82px;
  height: 78px;
  object-fit: contain;
  filter: drop-shadow(0 5px 10px rgba(0,0,0,.18));
}
.site-header.scrolled .logo { width: 70px; height: 66px; }
.menu-button {
  border: 0;
  cursor: pointer;
  color: var(--paper);
  background: var(--olive-dark);
  border-radius: 999px;
  min-width: 178px;
  height: 34px;
  font-size: 22px;
  line-height: 1;
  letter-spacing: .02em;
  font-family: Inter, Arial, sans-serif;
}
.menu-button:hover { background: #4b4c25; }
.menu-panel {
  position: fixed;
  z-index: 1100;
  inset: 0 0 0 auto;
  width: min(420px, 100%);
  background: rgba(64, 66, 31, .97);
  color: var(--paper);
  transform: translateX(100%);
  transition: transform .32s ease;
  display: flex;
  flex-direction: column;
  gap: .25rem;
  padding: 34px clamp(28px, 6vw, 56px);
  box-shadow: -20px 0 60px rgba(0,0,0,.35);
}
.menu-panel.is-open { transform: translateX(0); }
.menu-panel a {
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: clamp(2.15rem, 4vw, 3.3rem);
  text-decoration: none;
  line-height: 1.15;
  padding: .2rem 0;
}
.menu-panel a:hover { color: #fff; transform: translateX(5px); }
.close-menu {
  align-self: flex-end;
  background: transparent;
  border: 1px solid rgba(242,237,217,.7);
  color: var(--paper);
  border-radius: 999px;
  padding: .45rem 1rem;
  cursor: pointer;
  margin-bottom: 1rem;
}

.section { position: relative; overflow: hidden; }
.hero {
  min-height: 100svh;
  display: grid;
  place-items: center;
  text-align: center;
  color: #fff;
  padding: calc(var(--header-height) + 56px) 22px 82px;
}
.hero-video, .hero-overlay {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}
.hero-video { object-fit: cover; filter: saturate(.9) contrast(1.05); }
.hero-overlay {
  background:
    linear-gradient(rgba(56, 42, 23, .28), rgba(56, 42, 23, .52)),
    radial-gradient(circle at center, rgba(0,0,0,.08), rgba(0,0,0,.38));
}
.hero-content {
  position: relative;
  z-index: 2;
  max-width: 760px;
  padding-top: 30px;
}
h1, h2, h3 {
  font-family: "Cormorant Garamond", Georgia, serif;
  font-weight: 400;
  margin: 0;
}
h1 {
  font-size: clamp(4.1rem, 11vw, 8.3rem);
  line-height: .9;
  letter-spacing: -.045em;
  margin-bottom: 22px;
  text-shadow: 0 8px 25px rgba(0,0,0,.25);
}
.hero p {
  font-size: clamp(1rem, 1.6vw, 1.2rem);
  margin: .35rem auto;
  max-width: 730px;
  text-shadow: 0 3px 15px rgba(0,0,0,.5);
}
.hero-actions, .donation-actions {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 28px;
}
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 154px;
  min-height: 48px;
  padding: .8rem 1.45rem;
  border-radius: 10px;
  text-decoration: none;
  border: 1px solid currentColor;
  transition: transform .2s ease, background .2s ease, color .2s ease;
}
.button:hover { transform: translateY(-2px); }
.button.primary {
  background: rgba(89, 89, 52, .9);
  color: var(--paper);
  border-color: rgba(242,237,217,.7);
}
.button.ghost {
  color: var(--paper);
  background: rgba(255,255,255,.05);
  border-color: rgba(242,237,217,.75);
}
.split .button.ghost, .about .button.ghost, .donation .button.ghost { color: var(--body-text); }

.about {
  min-height: 900px;
  display: grid;
  grid-template-columns: minmax(220px, 31%) 1fr;
  background: var(--cream);
}
.about-image {
  background-image: linear-gradient(rgba(41,40,18,.05), rgba(41,40,18,.05)), url('../images/cactus.jpg');
  background-size: cover;
  background-position: center;
  min-height: 760px;
}
.about-copy {
  padding: clamp(60px, 8vw, 120px) clamp(30px, 7vw, 112px);
  max-width: 980px;
}
.eyebrow {
  letter-spacing: .03em;
  font-size: clamp(1.25rem, 2vw, 1.7rem);
  margin: 0 0 12px;
}
.about h2, .gallery h2, .donation h2 {
  font-size: clamp(4rem, 8vw, 6.8rem);
  line-height: .9;
  color: var(--olive-dark);
  letter-spacing: -.045em;
  margin-bottom: 34px;
}
.text-columns {
  max-width: 720px;
  columns: 1;
  font-size: 1.05rem;
}
.text-columns p { margin-top: 0; }
.quote {
  font-family: Caveat, "Comic Sans MS", cursive;
  color: var(--paper);
  font-size: clamp(2.8rem, 6vw, 5.2rem);
  line-height: .9;
  margin: 0;
  font-weight: 500;
}
.small-quote {
  margin-top: 60px;
  color: var(--olive-soft);
  font-size: clamp(2.6rem, 6vw, 4.8rem);
}
.media-triptych {
  display: grid;
  grid-template-columns: 1.05fr .9fr 1.05fr;
  min-height: 640px;
  background: var(--olive-soft);
  color: var(--paper);
}
.wide-quote {
  display: flex;
  align-items: center;
  padding: 60px clamp(20px, 5vw, 70px);
  font-family: Caveat, "Comic Sans MS", cursive;
  color: var(--paper);
  font-size: clamp(3rem, 6vw, 5.4rem);
  line-height: .92;
}
.triptych-video video, .triptych-image {
  width: 100%;
  height: 100%;
  min-height: 640px;
  object-fit: cover;
}
.triptych-image {
  background: url('../images/sand.jpg') center/cover no-repeat;
  opacity: .82;
}
.split {
  display: grid;
  grid-template-columns: minmax(320px, 41%) 1fr;
  min-height: 860px;
  background: var(--cream);
}
.split.reverse { grid-template-columns: 1fr minmax(320px, 38%); }
.split.reverse .split-media { order: 2; }
.split-media {
  min-height: 760px;
  background: var(--olive-soft);
}
.split-media video, .split-media img {
  width: 100%;
  height: 100%;
  min-height: inherit;
  object-fit: cover;
}
.split-copy {
  padding: clamp(58px, 8vw, 108px) clamp(32px, 7vw, 110px);
  color: var(--body-text);
  max-width: 1000px;
}
.split-copy h2 {
  font-size: clamp(4rem, 8vw, 7rem);
  line-height: .88;
  color: var(--olive-dark);
  letter-spacing: -.05em;
  margin-bottom: 26px;
}
.split-copy h3 {
  font-size: clamp(1.7rem, 3vw, 2.4rem);
  line-height: 1.1;
  color: var(--body-text);
  margin: 0 0 42px;
}
.split-copy p {
  font-size: clamp(1rem, 1.25vw, 1.12rem);
  max-width: 760px;
  margin: 0 0 1rem;
}
.split-copy a { font-weight: 600; }
.sunlight .split-copy {
  padding-top: clamp(82px, 10vw, 135px);
}
.quote-band {
  min-height: 330px;
  background: var(--olive-soft);
  display: flex;
  align-items: center;
  padding: 42px clamp(30px, 12vw, 220px);
}
.food { background: var(--olive-soft); }
.food .split-copy, .male-female .split-copy {
  color: var(--paper);
}
.food .split-copy h2, .male-female .split-copy h2 { color: var(--paper); }
.food .split-media { background: #222; }
.wood-band {
  min-height: clamp(240px, 25vw, 380px);
  background: url('../images/wood-thin.png') center/cover no-repeat;
}
.habitat {
  background: var(--cream);
}
.habitat::after {
  content: "";
  position: absolute;
  right: 0;
  bottom: 0;
  width: 40%;
  height: 45%;
  background: url('../images/sand.jpg') center/cover no-repeat;
  opacity: .08;
  pointer-events: none;
}
.shell-quote {
  justify-content: flex-start;
  text-align: left;
  background: var(--olive-soft);
  padding-left: clamp(34px, 7vw, 110px);
  padding-right: clamp(24px, 5vw, 80px);
}
.male-female {
  background: var(--olive-soft);
}
.gallery {
  background: var(--cream);
  padding: clamp(70px, 8vw, 120px) clamp(18px, 4vw, 70px);
}
.gallery-heading {
  text-align: center;
  max-width: 800px;
  margin: 0 auto 46px;
}
.gallery-heading h2 { margin-bottom: 14px; }
.gallery-heading p:last-child { font-size: 1.08rem; }
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(150px, 1fr));
  gap: 0;
  box-shadow: var(--shadow);
  overflow: hidden;
  border-radius: 0;
  max-width: 1500px;
  margin: 0 auto;
  background: var(--olive-dark);
}
.gallery-card { min-height: 360px; }
.video-launch {
  appearance: none;
  border: 0;
  padding: 0;
  margin: 0;
  width: 100%;
  height: 100%;
  background: transparent;
  display: block;
  cursor: pointer;
  position: relative;
  overflow: hidden;
}
.video-launch img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .35s ease, filter .35s ease;
}
.video-launch:hover img { transform: scale(1.045); filter: brightness(.84); }
.play-circle {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 70px;
  height: 70px;
  transform: translate(-50%, -50%);
  border-radius: 50%;
  background: rgba(255,255,255,.38);
  backdrop-filter: blur(2px);
}
.play-circle::after {
  content: "";
  position: absolute;
  left: 28px;
  top: 22px;
  width: 0;
  height: 0;
  border-top: 13px solid transparent;
  border-bottom: 13px solid transparent;
  border-left: 19px solid rgba(255,255,255,.95);
}
.donation {
  background:
    linear-gradient(rgba(89,89,52,.82), rgba(89,89,52,.86)),
    url('../images/beware-turtle.jpg') center/cover fixed no-repeat;
  min-height: 580px;
  display: grid;
  place-items: center;
  color: var(--paper);
  text-align: center;
  padding: 78px 20px;
}
.donation-card {
  width: min(860px, 100%);
  background: rgba(64,66,31,.82);
  padding: clamp(34px, 6vw, 72px);
  box-shadow: var(--shadow);
  border: 1px solid rgba(242,237,217,.26);
}
.footer-logo { width: 92px; margin: 0 auto 20px; }
.donation h2 { color: var(--paper); margin-bottom: 20px; }
.donation p { font-size: 1.18rem; margin-inline: auto; max-width: 600px; }
.site-footer {
  background: var(--olive);
  color: var(--paper);
  min-height: 340px;
  padding: 48px clamp(24px, 6vw, 80px);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 22px;
  text-align: center;
}
.site-footer a { text-decoration: none; }
.site-footer a:hover { text-decoration: underline; }
.footer-main {
  display: flex;
  flex-direction: column;
  align-items: center;
}
.mini-logo { width: 78px; margin: 0 0 22px; }
.footer-title {
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: clamp(2.2rem, 4vw, 3.1rem);
  line-height: 1;
  margin: 0 0 10px;
}
.footer-email {
  font-weight: 600;
  margin: 0;
} 
.footer-links {
  display: flex;
  gap: 20px;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
}
.footer-links a {
  display: inline-grid;
  place-items: center;
  border-radius: 999px;
  font-size: .75rem;
  font-weight: 700;
}
.social-icon-link {
  width: 42px;
  height: 42px;
  background: transparent;
  padding: 0;
}
.social-icon-link img {
  width: 34px;
  height: 34px;
  object-fit: contain;
  display: block;
}
.donate-link {
  min-width: 82px;
  height: 34px;
  padding: 0 16px;
  background: var(--paper);
  color: var(--olive-dark);
}
.copyright { margin: 4px 0 0; }

.modal {
  position: fixed;
  z-index: 1500;
  inset: 0;
  background: rgba(0,0,0,.86);
  display: none;
  align-items: center;
  justify-content: center;
  padding: 24px;
}
.modal.is-open { display: flex; }
.modal video {
  max-width: min(92vw, 620px);
  max-height: 88svh;
  background: #000;
  box-shadow: 0 20px 80px rgba(0,0,0,.5);
}
.modal-close {
  position: fixed;
  right: 24px;
  top: 20px;
  z-index: 2;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  border: 1px solid rgba(255,255,255,.55);
  background: rgba(255,255,255,.08);
  color: white;
  font-size: 36px;
  cursor: pointer;
  line-height: 1;
}
.reveal { opacity: 0; transform: translateY(22px); transition: opacity .8s ease, transform .8s ease; }
.reveal.is-visible { opacity: 1; transform: translateY(0); }

@media (max-width: 1050px) {
  .gallery-grid { grid-template-columns: repeat(3, minmax(140px, 1fr)); }
  .gallery-card { min-height: 320px; }
  .split, .split.reverse, .about, .media-triptych { grid-template-columns: 1fr; }
  .split.reverse .split-media { order: 0; }
  .about-image { min-height: 420px; }
  .media-triptych { min-height: auto; }
  .triptych-video video, .triptych-image { min-height: 480px; }
  .wide-quote { min-height: 260px; }
}

@media (max-width: 720px) {
  :root { --header-height: 72px; }
  body { font-size: 15px; }
  .site-header { padding: 8px 16px; height: 72px; }
  .logo, .site-header.scrolled .logo { width: 68px; height: 64px; }
  .menu-button { min-width: 126px; height: 32px; font-size: 18px; }
  .hero { min-height: 760px; padding: 108px 18px 74px; }
  h1 { font-size: clamp(3.35rem, 18vw, 5.3rem); }
  .hero p { font-size: .98rem; max-width: 340px; }
  .hero-actions { margin-top: 24px; }
  .button { min-width: 132px; min-height: 44px; }
  .about-copy, .split-copy, .gallery { padding: 58px 24px; }
  .about h2, .split-copy h2, .gallery h2, .donation h2 { font-size: clamp(3.3rem, 16vw, 5rem); }
  .about-image { min-height: 360px; background-position: center top; }
  .small-quote { font-size: 3.5rem; margin-top: 38px; }
  .wide-quote { font-size: 3.6rem; min-height: 250px; }
  .triptych-video video, .triptych-image, .split-media, .split-media video, .split-media img { min-height: 500px; }
  .quote-band { min-height: 280px; padding: 40px 24px; }
  .quote { font-size: 3.6rem; }
  .wood-band { min-height: 220px; }
  .gallery-grid { grid-template-columns: repeat(2, minmax(120px, 1fr)); box-shadow: none; }
  .gallery-card { min-height: 295px; }
  .site-footer { min-height: 360px; text-align: center; align-items: center; }
  .donation { background-attachment: scroll; }
}

@media (max-width: 430px) {
  .gallery-card { min-height: 260px; }
  .play-circle { width: 56px; height: 56px; }
  .play-circle::after { left: 23px; top: 18px; border-top-width: 10px; border-bottom-width: 10px; border-left-width: 15px; }
  .hero { min-height: 720px; }
  .menu-panel a { font-size: 2.35rem; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .hero-video, .split video { animation: none; }
  * { transition-duration: .01ms !important; }
}

/* v4 gallery update: media only, no title/description */
.gallery {
  background: var(--olive-dark);
  padding: 0;
}
.gallery-grid {
  width: 100%;
  max-width: none;
  margin: 0;
  box-shadow: none;
  background: var(--olive-dark);
}
.gallery-card,
.photo-card {
  min-height: clamp(380px, 42vw, 620px);
}
.photo-card img {
  width: 100%;
  height: 100%;
  min-height: inherit;
  object-fit: cover;
}

@media (max-width: 720px) {
  .about-copy, .split-copy { padding: 58px 24px; }
  .gallery { padding: 0; }
  .gallery-card,
  .photo-card { min-height: 330px; }
}

@media (max-width: 430px) {
  .gallery-card,
  .photo-card { min-height: 285px; }
}


/* v10 mobile-only cleanup: hide cactus, wood and sand images on phone screens */
@media (max-width: 720px) {
  .about-image,
  .triptych-image,
  .wood-band {
    display: none;
  }

  .habitat::after {
    display: none;
  }
}


/* v11 mobile-only order: show the tortoise video first, then the quote underneath */
@media (max-width: 720px) {
  .media-triptych {
    display: flex;
    flex-direction: column;
  }

  .media-triptych .triptych-video {
    order: 1;
  }

  .media-triptych .wide-quote {
    order: 2;
    background: var(--olive-soft);
  }
}
