/* Original wording; an illustrated forest rooted in the real clearing. */
.hero { grid-template-columns: minmax(0,1.65fr) minmax(0,1fr); column-gap: 4vw; }
.hero h1 { max-width: none; font-size: clamp(3.6rem,6.6vw,7.2rem); line-height: 1.16; }
.hero h1 span { display: block; }
.hero .button { gap: 1.2rem; }
.hero-actions { display: flex; align-items: flex-start; justify-content: space-between; gap: 1.5rem; margin-top: 1.6rem; max-width: 650px; }
.hero-actions .button { flex: 0 0 auto; margin-top: 0; }
/* The jay belongs to the title block, not to the moving landscape. */
.hero-jay { flex: 0 1 190px; width: clamp(130px,14vw,190px); margin-right: 2%; pointer-events: none; }
.hero-jay img { display: block; width: 100%; height: auto; transform: translateY(-1.5rem); }
.hero-clearing { min-width: 0; height: clamp(360px,42vw,620px); pointer-events: none; }
/* Use photograph coordinates, with the same transform origin and parallax as
   hills-near. The real foreground sits above the roots, lending depth. */
.forest-plane { position: absolute; inset: 0; transform-origin: 50% 60%; pointer-events: none; }
.hero-forest { position: absolute; left: 54%; top: 28.5%; width: 25%; }
.hero-forest img {
  display: block; width: 100%; height: auto; filter: url(#ink-light);
  transform-origin: 50% 82%; transform: scale(var(--forest-growth,.9));
}
.earth-collage { display: block; padding-bottom: 0; }
.earth-copy { padding-top: 0; }
.earth-section .section-heading { max-width: 1150px; }
.earth-section .section-heading h2 { max-width: 24ch; }
.meaning-copy h2 { max-width: 22ch; font-size: clamp(2.2rem,3.5vw,3.6rem); }
.time-story .forest-note { align-self: center; }
.text-card { border-top: 1px solid var(--line); padding-top: 1.5rem; }
.journal-card .article-summary { font: 400 1.56rem/1.5 var(--body); margin-top: 1.25rem; }
.text-card .eyebrow { margin-top: 0; }
.letters-copy h2 { font-size: clamp(2.4rem,3.2vw,3.5rem); max-width: 22ch; }
.social-invite { border-bottom: 1px solid var(--line); }
.social-heading { margin-bottom: 2rem; }
.social-invite h2 { font-size: clamp(2.2rem,4vw,3.5rem); }
.social-heading .text-link { margin-top: .7rem; gap: .8rem; }
.social-posts { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); gap: 1.25rem; list-style: none; padding: 0; margin: 0; }
.social-posts li { min-width: 0; }
.social-post { display: block; }
.social-post img { display: block; width: 100%; height: auto; aspect-ratio: 4/5; object-fit: contain; }
.social-post-link { display: flex; justify-content: space-between; gap: .5rem; padding-block: .85rem; color: var(--green); font: 400 1.17rem/1.5 var(--sans); }
.social-post:hover .social-post-link { text-decoration: underline; text-underline-offset: .3em; }
.social-post:focus-visible { outline: 2px solid var(--green); outline-offset: 5px; }
.footer-columns { padding-block: 2.2rem; }
.footer-group { gap: .1rem; }
.footer-group h2 { margin-bottom: .55rem; }
.footer-group a, .footer-group p { line-height: 1.4; }
.footer-group a { min-height: 32px; padding-block: .12rem; }
.footer-group .footer-social-heading { margin-top: 1.2rem; }
.back-to-top { display: inline-flex; align-items: center; justify-content: center; gap: 1.2rem; min-height: 48px; padding: .6rem 1rem; border: 1px solid var(--green); color: var(--green); font: 400 1.17rem/1.4 var(--sans); }
.back-to-top span { font-size: 1.5rem; }
.back-to-top:hover { background: var(--green); color: var(--paper); }
.floating-top {
  position: fixed; z-index: 25; right: max(1rem,env(safe-area-inset-right));
  bottom: max(1rem,env(safe-area-inset-bottom)); display: grid; place-items: center;
  width: 46px; height: 46px; border: 1px solid var(--line); border-radius: 50%;
  color: var(--green); background: rgba(245,241,233,.94);
  box-shadow: 0 2px 12px rgba(0,40,25,.08); font: 400 1.65rem/1 var(--sans);
}
.floating-top[hidden] { display: none; }
.floating-top:hover { color: var(--paper); background: var(--green); }
.floating-top:focus-visible { outline: 2px solid var(--green); outline-offset: 4px; }
.newsletter-invite { display: block; max-width: 1000px; padding-bottom: 5rem; }
.diary-heading { margin-bottom: 2rem; }
.diary-entry { grid-template-columns: 180px minmax(0,1fr); gap: 2rem; padding-block: 2rem; align-items: start; }
.diary-entry .prose { line-height: 1.55; }
.diary-entry .prose p { margin-bottom: 1rem; }
.diary-entry .prose li { margin-bottom: .6rem; }
.diary-entry .prose > :first-child { margin-top: 0; }
.diary-entry .prose > :last-child { margin-bottom: 0; }
.diary-entry .article-gallery { gap: .85rem; margin-block: 1.5rem; align-items: start; }
/* Definite thumbnail boxes prevent intrinsic portrait sizes from inflating
   gallery rows while their displayed images remain small. */
.diary-entry .article-gallery .article-photo { position: relative; width: 100%; aspect-ratio: 4/3; min-height: 0; margin: 0; }
.diary-entry .article-gallery .article-photo img {
  position: absolute; inset: 0; width: 100%; height: 100%; max-height: none; object-fit: cover;
}
.diary-entry .diagnosis-gallery { grid-template-columns: repeat(2,minmax(0,1fr)); }
.diary-date h3 { color: var(--green); font-size: 2.1rem; line-height: 1.25; }
/* The whole head, including the ear, stays to the left of the photograph. */
.inner-hero-art .muriqui-composition .photo-ink { left: -20%; bottom: -14%; width: 44%; }
.founders-heading { display: flex; align-items: center; gap: clamp(1rem,4vw,4rem); max-width: 1150px; margin: 0 auto clamp(2.5rem,5vw,5rem); }
.founders-heading .section-heading { min-width: 0; margin: 0; }
.founders-heading h2 { max-width: none; }
.founders-illustration { flex: 0 0 auto; width: clamp(140px,17vw,230px); height: auto; }
.biodiversity-map .photo-art { margin-bottom: clamp(2rem,5vw,4rem); }
.biodiversity-map .photo-surface { aspect-ratio: auto; overflow: visible; mask: none; }
.biodiversity-map .photo-surface > img { width: 100%; height: auto; max-height: none; object-fit: contain; }
.biodiversity-map .photo-ink-layer { mask: none; overflow: hidden; }
.biodiversity-map .photo-ink { left: auto; right: 0; bottom: -12%; width: 27%; }
.fauna-landscape-art { position: relative; }
.fauna-landscape-art > img { width: 100%; height: auto; max-height: none; mask: url('/assets/moldura.svg') center/100% 100% no-repeat; }
.fauna-landscape-art > span { position: absolute; pointer-events: none; }
.fauna-landscape-art > span img { width: 100%; height: auto; max-height: none; }
.fauna-flight { width: 13%; left: 52%; top: 33%; filter: url(#ink-green); }
.regeneration-acervo { padding-top: 1rem; }
.regeneration-acervo > h2 { max-width: 20ch; margin: 0 auto 3rem; text-align: center; }
.regeneration-gallery.article-gallery {
  display: grid; grid-template-columns: repeat(2,minmax(0,1fr));
  gap: .65rem; max-width: 1280px; margin: 0 auto; align-items: stretch;
}
.regeneration-gallery .scroll-photo { margin: 0; min-width: 0; }
.scroll-photo-surface {
  width: 100%; aspect-ratio: 1; overflow: hidden;
  mask: url('/assets/moldura.svg') center/100% 100% no-repeat;
}
.regeneration-gallery .scroll-photo-surface img {
  display: block; width: 100%; height: 100%; max-height: none;
  object-fit: cover; object-position: center; mask: none;
  transform: scale(var(--photo-scale,1)); transform-origin: center;
}
/* Equal rows and columns; only the image zooms, so gutters stay constant. */
.regeneration-gallery .scroll-photo:last-child:nth-child(odd) { grid-column: 1 / -1; width: calc((100% - .65rem)/2); justify-self: center; }

@media (max-width: 1200px) {
  .site-header nav a { white-space: normal; }
  .hero { grid-template-columns: minmax(0,1.65fr) minmax(0,1fr); gap: 3vw; }
  .hero h1 { font-size: clamp(3.5rem,6.8vw,5.8rem); }
}
@media (max-width: 1000px) {
  .social-posts { grid-template-columns: repeat(2,minmax(0,1fr)); }
}
@media (max-width: 900px) {
  .diary-entry { grid-template-columns: minmax(0,1fr); gap: .85rem; }
  .diary-date { position: static; }
}
@media (max-width: 760px) {
  .hero { grid-template-columns: minmax(0,1fr); row-gap: 2rem; padding-top: 10rem; min-height: max(1000px,100svh); }
  .hero h1 { font-size: clamp(2.85rem,9vw,4.5rem); }
  .hero-actions { max-width: 430px; gap: .75rem; }
  .hero-jay { flex: 0 0 125px; margin-right: 0; }
  .hero-jay img { transform: none; }
  .hero-actions .button { align-self: center; padding-inline: 1.2rem; }
  .hero-clearing { height: 350px; }
  .landscape-plane { top: 68%; }
  .hero-forest { left: 60%; top: 39.16%; width: 12%; }
  .hero-bottom { margin-top: 1rem; }
  .meaning-copy h2 { max-width: 25ch; }
  .letters-copy h2 { font-size: clamp(2.1rem,7.5vw,3rem); }
  .social-posts { gap: 1.2rem .75rem; }
  .social-post-link { font-size: 1.04rem; }
  .footer-utility { align-items: stretch; }
  .back-to-top { align-self: flex-start; }
  .inner-hero-art .muriqui-composition { padding-left: 16%; }
  .founders-heading { gap: clamp(.65rem,3vw,1.2rem); }
  .founders-heading h2 { font-size: clamp(1.95rem,8vw,3rem); }
  .founders-heading .eyebrow { font-size: .975rem; margin-bottom: .8rem; }
  .founders-illustration { width: clamp(76px,24vw,140px); }
  .diary-entry { padding-block: 1.65rem; }
  .diary-entry .article-gallery { grid-template-columns: repeat(2,minmax(0,1fr)); gap: .65rem; }
  .diary-entry .article-gallery .article-photo:last-child:nth-child(odd) { grid-column: auto; }
  .diary-entry .article-gallery .article-photo:last-child:nth-child(odd) img { height: 100%; }
  .diary-date h3 { font-size: 1.85rem; }
  .regeneration-acervo { padding-inline: .6rem; }
  .regeneration-acervo > h2 { padding-inline: var(--gutter); font-size: 2.5rem; }
  .regeneration-gallery.article-gallery { grid-template-columns: minmax(0,1fr); gap: .5rem; }
  .regeneration-gallery .scroll-photo:nth-child(n) { width: 100%; grid-column: auto; }
  .regeneration-gallery .scroll-photo:last-child:nth-child(odd) { width: 100%; grid-column: auto; }
  .regeneration-gallery .scroll-photo:nth-child(n) .scroll-photo-surface { aspect-ratio: 4/3; }
}
@media (max-width: 380px) {
  .hero { padding-top: 9rem; }
  .hero h1 { font-size: 2.85rem; }
  .hero-jay { flex-basis: 105px; }
  .social-posts { grid-template-columns: minmax(0,1fr); }
}
@media (pointer: coarse), (max-width: 760px) {
  .footer-group a { min-height: 44px; display: flex; align-items: center; }
  .footer-group { gap: 0; }
}
.motion-paused .hero-forest img, .motion-paused .regeneration-gallery .scroll-photo-surface img { transform: none; }
@media (prefers-reduced-motion: reduce) {
  .hero-forest img, .regeneration-gallery .scroll-photo-surface img { transform: none; }
}
