/* Layered on top of site.css: page components, motion and interaction polish. */
:root { --ease-out: cubic-bezier(.2,.7,.2,1); }

/* ---------- Interaction feedback ---------- */
.button { transition: background .2s, border-color .2s, color .2s, transform .15s var(--ease-out), box-shadow .2s; }
.button:hover { box-shadow: 0 8px 20px rgba(23,61,50,.14); }
.button:active { transform: scale(.98); }
.button span[aria-hidden="true"], .text-link span[aria-hidden="true"], .explore-card i { display: inline-block; transition: transform .2s var(--ease-out); }
.button:hover span[aria-hidden="true"], .text-link:hover span[aria-hidden="true"], .explore-card:hover i { transform: translateX(4px); }
.button-sun:hover span[aria-hidden="true"] { transform: translate(3px,-3px); }
.approach-card, .event-card, .article-card { transition: transform .25s var(--ease-out), box-shadow .25s, border-color .25s; }
.approach-card:hover, .event-card:hover { transform: translateY(-4px); box-shadow: 0 16px 34px rgba(29,48,36,.09); border-color: #d5dccf; }
.approach-icon { transition: transform .35s var(--ease-out); }
.approach-card:hover .approach-icon { transform: rotate(-6deg) scale(1.08); }
.site-header { transition: box-shadow .25s; }
.site-header.is-scrolled { box-shadow: 0 6px 22px rgba(23,61,50,.08); }
:focus-visible { outline: 3px solid rgba(45,105,71,.35); outline-offset: 2px; }

/* ---------- Scroll reveal (only when JS adds .motion) ---------- */
.motion [data-reveal] { opacity: 0; transform: translateY(22px); transition: opacity .7s var(--ease-out), transform .7s var(--ease-out); transition-delay: calc(var(--reveal-i, 0) * 80ms); }
.motion [data-reveal="fade"] { transform: none; }
.motion [data-reveal="zoom"] { transform: scale(.97); }
.motion [data-reveal].is-in { opacity: 1; transform: none; }
.motion .intro-photo[data-reveal] { clip-path: inset(8% 6% round 12px); transition: opacity .8s var(--ease-out), clip-path 1.1s var(--ease-out); }
.motion .intro-photo[data-reveal].is-in { clip-path: inset(0 0 round 12px); }

/* ---------- Inner pages ---------- */
.hero-cta-row { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.hero-cta-row .button { width: auto; margin-top: 0; min-height: 46px; padding: 0 20px; font-size: 13px; }

.section-chips { position: sticky; top: 0; z-index: 15; background: rgba(248,247,242,.92); backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); }
.section-chips-inner { display: flex; gap: 8px; overflow-x: auto; padding: 12px 0; scrollbar-width: none; }
.section-chips-inner::-webkit-scrollbar { display: none; }
.section-chips a { flex: 0 0 auto; padding: 8px 14px; border: 1px solid #dfe4dc; border-radius: 999px; background: #fff; color: #45564a; font-size: 12px; font-weight: 650; white-space: nowrap; transition: background .2s, color .2s, border-color .2s; }
.section-chips a:hover { border-color: #b9c6b6; color: var(--pine); }
.section-chips a.is-current { background: var(--pine); border-color: var(--pine); color: #fff; }

.page-section { padding: 0 0 44px; margin: 0 0 44px; border-bottom: 1px solid #e0e4dc; scroll-margin-top: 80px; }
.page-section:last-of-type { border-bottom: 0; }
.page-section h2 { margin: 0 0 14px; color: var(--pine); font-size: clamp(24px,3vw,30px); line-height: 1.15; font-weight: 650; letter-spacing: -.035em; }
.page-section p { margin: 0 0 14px; color: #58665d; font-size: 15px; line-height: 1.75; max-width: 68ch; }
.page-section .section-lead { color: var(--ink); font-size: 18px; line-height: 1.6; }

.read-more summary { display: inline-flex; align-items: center; gap: 8px; margin: 2px 0 14px; color: var(--pine-2); font-size: 13px; font-weight: 750; cursor: pointer; list-style: none; }
.read-more summary::-webkit-details-marker { display: none; }
.read-more summary::after { content: "+"; display: grid; place-items: center; width: 20px; height: 20px; border-radius: 50%; background: #e8eee4; font-size: 14px; transition: transform .25s var(--ease-out); }
.read-more[open] summary::after { transform: rotate(45deg); }
.read-more .read-more-close, .read-more[open] .read-more-open { display: none; }
.read-more[open] .read-more-close { display: inline; }
.read-more[open] > p { animation: content-rise .45s var(--ease-out) both; }

.page-more-sections { margin: 0 0 42px; padding: 20px 22px; border: 1px solid #e1e6de; border-radius: 12px; background: #f1f3ed; }
.page-more-sections > summary { display: flex; align-items: center; justify-content: space-between; gap: 14px; color: var(--pine); font-size: 14px; font-weight: 750; cursor: pointer; list-style: none; }
.page-more-sections > summary::-webkit-details-marker { display: none; }
.page-more-sections > summary::after { content: "+"; display: grid; flex: 0 0 26px; width: 26px; height: 26px; place-items: center; border-radius: 50%; background: #e0e9dc; color: var(--pine-2); font-size: 18px; transition: transform .25s var(--ease-out); }
.page-more-sections[open] > summary::after { transform: rotate(45deg); }
.page-more-sections .page-section { margin-top: 34px; }
.page-more-sections > .page-section:last-child { margin-bottom: 0; padding-bottom: 0; }
.page-more-sections .page-section { animation: content-rise .4s var(--ease-out) both; }
.page-more-sections .read-more, .page-more-sections .more-items { background: #fff; border-radius: 8px; padding: 0 12px; }

.fact-tiles { display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 10px; margin: 22px 0 0; }
.fact-tile { padding: 16px 18px; border: 1px solid #e3e7df; border-radius: 10px; background: #fff; }
.fact-tile dt { color: #9b5d3d; font-size: 10px; font-weight: 750; letter-spacing: .12em; text-transform: uppercase; }
.fact-tile dd { margin: 6px 0 0; color: var(--ink); font-size: 14px; line-height: 1.5; }

.point-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 12px; margin-top: 20px; }
.point-card { position: relative; padding: 20px 20px 18px; border: 1px solid #e3e7df; border-radius: 12px; background: #fff; transition: transform .25s var(--ease-out), box-shadow .25s, border-color .25s; }
.point-card:hover { transform: translateY(-3px); box-shadow: 0 14px 30px rgba(29,48,36,.08); border-color: #d2dacd; }
.point-index { display: grid; width: 29px; height: 29px; place-items: center; border-radius: 50%; background: #edf2e9; color: var(--pine-2); }
.point-index svg { width: 17px; height: 17px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.contact-icon svg { width: 17px; height: 17px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.point-card h3 { margin: 8px 0 6px; color: var(--pine); font-size: 16px; line-height: 1.3; }
.point-card p { margin: 0; font-size: 13px; line-height: 1.6; }

.check-list { display: grid; gap: 10px; margin: 18px 0 0; padding: 0; list-style: none; }
.check-list li { position: relative; padding: 13px 16px 13px 46px; border-radius: 10px; background: #fff; border: 1px solid #e6e9e2; color: #3f5045; font-size: 14px; line-height: 1.55; }
.check-list li::before { content: ""; position: absolute; left: 16px; top: 15px; width: 18px; height: 18px; border-radius: 50%; background: #e3ede0 url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M4 8.5l2.5 2.5L12 5.5' fill='none' stroke='%23245b46' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/12px no-repeat; }

.step-track { position: relative; display: grid; gap: 0; margin: 22px 0 0; padding: 0; list-style: none; }
.step-track li { position: relative; display: grid; grid-template-columns: 44px 1fr; gap: 16px; padding-bottom: 22px; }
.step-track li:not(:last-child)::before { content: ""; position: absolute; left: 21px; top: 44px; bottom: 0; width: 2px; background: linear-gradient(#cfdccb, #e8ece4); }
.step-dot { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; background: var(--pine); color: #fff; font-size: 13px; font-weight: 800; }
.step-track h3 { margin: 10px 0 4px; color: var(--pine); font-size: 16px; }
.step-track p { margin: 0; font-size: 14px; line-height: 1.6; }

.section-callout { margin-top: 20px !important; padding: 16px 18px; border-left: 3px solid var(--sun); border-radius: 0 10px 10px 0; background: #fbf4e8; color: #5f4a2c !important; font-size: 14px !important; }

.page-cta { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 22px; margin: 10px 0 40px; padding: 30px; border-radius: 16px; background: radial-gradient(circle at 90% 10%, #2c6a52, transparent 55%), var(--pine); color: #fff; }
.page-cta h2 { margin: 0 0 6px; color: #fff; font-size: 24px; letter-spacing: -.03em; }
.page-cta p { margin: 0; max-width: 46ch; color: #d4e0d6; font-size: 14px; line-height: 1.6; }
.page-cta-actions { display: flex; flex-wrap: wrap; gap: 10px; }
.page-cta-actions .button { width: auto; margin: 0; min-height: 46px; padding: 0 20px; font-size: 13px; }

.toc { display: grid; }
.toc a { position: relative; padding: 10px 0 10px 14px; border-left: 2px solid #e3e5de; color: #6a766d; font-size: 12px; line-height: 1.4; transition: color .2s, border-color .2s; }
.toc a:hover { color: var(--pine); }
.toc a.is-current { border-color: var(--clay); color: var(--pine); font-weight: 700; }
.page-aside { top: 78px; }

.explore-strip { padding: 56px 0 72px; background: #f1eee4; }
.explore-strip h2 { margin: 0 0 20px; color: var(--pine); font-size: 24px; letter-spacing: -.03em; }
.explore-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 12px; }
.explore-card { position: relative; display: grid; gap: 4px; padding: 20px 44px 20px 20px; border: 1px solid #e0e3d9; border-radius: 12px; background: #fff; transition: transform .25s var(--ease-out), box-shadow .25s; }
.explore-card:hover { transform: translateY(-3px); box-shadow: 0 14px 28px rgba(29,48,36,.08); }
.explore-card span { color: var(--pine); font-size: 15px; font-weight: 700; }
.explore-card small { color: #748077; font-size: 12px; }
.explore-card i { position: absolute; right: 18px; top: 50%; margin-top: -10px; color: var(--clay); font-style: normal; }

/* ---------- Empty states with a next step ---------- */
.empty-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin-top: 20px; }
.empty-actions .button { width: auto; margin: 0; min-height: 44px; padding: 0 18px; font-size: 13px; }

@media (min-width: 821px) { .section-chips { display: none; } }
@media (max-width: 820px) {
  .page-aside { display: none; }
  .page-content-layout { grid-template-columns: 1fr; padding-top: 36px; }
  .page-section .section-lead { font-size: 16px; }
  .page-cta { padding: 24px 20px; }
  .page-more-sections { padding: 17px 16px; }
  .page-cta-actions, .page-cta-actions .button, .hero-cta-row .button { flex: 1 1 auto; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-delay: 0s !important; }
  .button:hover span[aria-hidden="true"], .approach-card:hover, .event-card:hover, .point-card:hover, .explore-card:hover { transform: none; }
}

/* ---------- Home: demo-farm journey ---------- */
.demo-journey-head { display: grid; grid-template-columns: 1.1fr .9fr; align-items: end; gap: 40px; margin-bottom: 40px; }
.demo-journey-head p { margin: 0; color: #cfdcd1; font-size: 16px; line-height: 1.7; }
.journey-track { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; margin: 0; padding: 0; list-style: none; counter-reset: none; }
.journey-track li { position: relative; padding: 22px 22px 24px; border: 1px solid rgba(255,255,255,.12); border-radius: 14px; background: rgba(255,255,255,.04); transition: background .25s, transform .25s var(--ease-out), border-color .25s; }
.journey-track li:hover { background: rgba(255,255,255,.08); border-color: rgba(240,189,127,.45); transform: translateY(-3px); }
.journey-num { display: inline-grid; place-items: center; width: 36px; height: 36px; border-radius: 50%; background: #f0bd7f; color: var(--pine); font-size: 12px; font-weight: 800; }
.journey-track li:nth-child(2) .journey-num { box-shadow: 0 0 0 6px rgba(240,189,127,.18); }
.journey-track h3 { margin: 14px 0 6px; color: #fff; font-size: 17px; line-height: 1.3; }
.journey-track p { margin: 0; color: #c3d1c6; font-size: 13px; line-height: 1.6; }
.journey-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }
.journey-actions .button { width: auto; margin: 0; min-height: 48px; padding: 0 22px; font-size: 13px; }
@media (max-width: 1050px) { .journey-track { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 820px) {
  .demo-journey-head { grid-template-columns: 1fr; gap: 14px; margin-bottom: 26px; }
  .journey-track { grid-template-columns: 1fr; gap: 0; }
  .journey-track li { display: grid; grid-template-columns: 36px 1fr; column-gap: 14px; padding: 0 0 22px; border: 0; background: none; }
  .journey-track li:hover { transform: none; background: none; }
  .journey-track li:not(:last-child)::before { content: ""; position: absolute; left: 17px; top: 40px; bottom: 4px; width: 2px; background: rgba(240,189,127,.3); }
  .journey-track .journey-num { grid-row: span 2; }
  .journey-track h3 { margin: 7px 0 4px; }
  .journey-actions .button { flex: 1 1 auto; }
}
@media (max-width: 620px) { .hero-bottom-label { display: none; } }
.more-items summary { margin-top: 14px; }
.more-items[open] > .point-grid, .more-items[open] > .check-list { margin-top: 0; animation: content-rise .45s var(--ease-out) both; }
.nowrap-desktop-break { display: block; }
@media (max-width: 620px) {
  .nowrap-desktop-break { display: none; }
  .approach-card { display: grid; grid-template-columns: 52px 1fr; column-gap: 14px; align-items: start; min-height: 0; padding: 18px 44px 18px 18px; }
  .approach-card .approach-icon { grid-row: span 2; margin: 0; }
  .approach-card h3 { margin-top: 2px; }
  .approach-card p { margin: 4px 0 0; }
  .point-card { padding: 16px; }
  .point-card h3 { margin-top: 4px; }
}

/* =========================================================
   Motion v2: softer easing, image settles, hero art, depth
   ========================================================= */
:root {
  --ease-out: cubic-bezier(.16,1,.3,1);
  --ease-soft: cubic-bezier(.22,.61,.36,1);
  --elev-1: 0 1px 2px rgba(23,61,50,.04), 0 3px 10px -2px rgba(23,61,50,.06);
  --elev-2: 0 2px 4px rgba(23,61,50,.04), 0 14px 28px -8px rgba(23,61,50,.16), 0 30px 60px -20px rgba(23,61,50,.14);
}

/* Reveal: gentler distance, longer settle */
.motion [data-reveal] { transform: translateY(14px); transition: opacity 1s var(--ease-soft), transform 1.2s var(--ease-out); transition-delay: calc(var(--reveal-i, 0) * 90ms); }
.motion [data-reveal="zoom"] { transform: scale(.985); }
.motion .intro-photo[data-reveal] { transition: opacity 1.2s var(--ease-soft), clip-path 1.6s var(--ease-out); }
/* Images inside revealed cards ease down from a slight zoom */
.motion [data-reveal] .card-image img, .motion .photo-tile[data-reveal] img, .motion [data-reveal] .event-card-cover { transform: scale(1.08); transition: transform 1.8s var(--ease-out); }
.motion [data-reveal].is-in .card-image img, .motion .photo-tile[data-reveal].is-in img, .motion [data-reveal].is-in .event-card-cover { transform: scale(1); }
.motion .content-card[data-reveal].is-in:hover .card-image img, .motion .photo-tile[data-reveal].is-in:hover img { transform: scale(1.045); }
.card-image img, .photo-tile img { transition: transform 1.2s var(--ease-out); }
.card-image-placeholder { display: grid; width: 100%; height: 100%; place-items: center; background: radial-gradient(circle at 75% 25%, rgba(231,163,87,.42), transparent 24%), radial-gradient(circle at 20% 100%, rgba(114,139,110,.42), transparent 36%), linear-gradient(135deg, #214d3d, #102c25); }
.card-image-placeholder span { color: rgba(255,255,255,.74); font-size: 28px; font-weight: 800; letter-spacing: .16em; }

/* Hero carousel: slower, smoother cross-fades */
.hero-media { transition: opacity 1.4s var(--ease-soft), transform 9s var(--ease-out), visibility 0s linear 1.4s; }
.hero-slide.is-active { animation: hero-slide-enter .95s var(--ease-out) both; }
.hero-copy { animation-duration: 1.1s; animation-timing-function: var(--ease-out); }
.page-hero-copy > * { animation: content-rise 1s var(--ease-out) both; }
.page-hero-copy > :nth-child(2) { animation-delay: .08s; }
.page-hero-copy > :nth-child(3) { animation-delay: .16s; }
.page-hero-copy > :nth-child(4) { animation-delay: .24s; }

/* Card depth + spotlight that follows the pointer */
@property --spot { syntax: "<number>"; inherits: false; initial-value: 0; }
.content-card, .event-card, .approach-card, .point-card, .explore-card, .fact-tile, .check-list li, .aside-contact, .form-card, .map-card, .share-panel {
  box-shadow: var(--elev-1);
  --spot: 0;
  background-image: radial-gradient(circle 240px at var(--mx, 50%) var(--my, 50%), rgba(231,163,87, calc(.13 * var(--spot))), transparent 70%);
  transition: transform .5s var(--ease-out), box-shadow .5s var(--ease-out), border-color .4s, --spot .4s var(--ease-soft);
}
.content-card:hover, .event-card:hover, .approach-card:hover, .point-card:hover, .explore-card:hover, .fact-tile:hover, .check-list li:hover { box-shadow: var(--elev-2); --spot: 1; }
.fact-tile:hover, .check-list li:hover { transform: translateY(-2px); }
.journey-track li { --spot: 0; background-image: radial-gradient(circle 220px at var(--mx, 50%) var(--my, 50%), rgba(240,189,127, calc(.16 * var(--spot))), transparent 70%); transition: transform .5s var(--ease-out), border-color .4s, background-color .4s, --spot .4s var(--ease-soft); }
.journey-track li:hover { --spot: 1; }
.button-dark, .button-sun { box-shadow: 0 1px 2px rgba(23,61,50,.12), 0 6px 16px -6px rgba(23,61,50,.35); }
.button-dark:hover, .button-sun:hover { transform: translateY(-1px); box-shadow: 0 2px 4px rgba(23,61,50,.12), 0 12px 24px -8px rgba(23,61,50,.45); }
.button:active { transform: translateY(0) scale(.98); }

/* ---------- Inner-page hero art ---------- */
.page-hero { isolation: isolate; }
.page-hero.has-art::after { display: none; }
.page-hero.has-art .orbit { display: none; }
.hero-art { position: absolute; inset: 0; z-index: 0; pointer-events: none; overflow: hidden;
  -webkit-mask-image: linear-gradient(90deg, transparent 0%, rgba(0,0,0,.35) 28%, #000 58%);
          mask-image: linear-gradient(90deg, transparent 0%, rgba(0,0,0,.35) 28%, #000 58%);
  animation: hero-art-in 1.6s var(--ease-soft) both; }
.hero-art svg { position: absolute; inset: 0; width: 100%; height: 100%; }
.hero-art .art-grid { opacity: .5; }
.hero-art .flow { fill: none; stroke-width: 1.6; stroke-linecap: round; stroke-dasharray: 1400; stroke-dashoffset: 1400; animation: flow-draw 3.2s var(--ease-out) forwards, flow-drift 14s ease-in-out 3.2s infinite alternate; }
.hero-art .flow:nth-of-type(2) { animation-delay: .25s, 3.45s; stroke-width: 1.2; }
.hero-art .flow:nth-of-type(3) { animation-delay: .5s, 3.7s; stroke-width: 2.2; }
.hero-art .flow:nth-of-type(4) { animation-delay: .75s, 3.95s; stroke-width: 1; }
.hero-art .layer { transition: transform 1.4s var(--ease-out); transform: translate(calc(var(--px, 0) * 18px), calc(var(--py, 0) * 12px)); }
.hero-art .layer-back { transform: translate(calc(var(--px, 0) * -10px), calc(var(--py, 0) * -6px)); }
.hero-art .drift-a { animation: drift-a 22s ease-in-out infinite alternate; transform-box: fill-box; transform-origin: center; }
.hero-art .drift-b { animation: drift-b 28s ease-in-out infinite alternate; transform-box: fill-box; transform-origin: center; }
.hero-art .spin { animation: spin 40s linear infinite; transform-box: fill-box; transform-origin: center; }
.hero-art .pulse { animation: pulse 4.5s ease-in-out infinite; transform-box: fill-box; transform-origin: center; }
.page-hero .site-wrap { position: relative; z-index: 1; }
@keyframes hero-art-in { from { opacity: 0; } to { opacity: 1; } }
@keyframes flow-draw { to { stroke-dashoffset: 0; } }
@keyframes flow-drift { from { transform: translateY(0); } to { transform: translateY(-14px); } }
@keyframes drift-a { from { transform: translate(0,0) rotate(0deg); } to { transform: translate(-40px,26px) rotate(18deg); } }
@keyframes drift-b { from { transform: translate(0,0) rotate(0deg); } to { transform: translate(34px,-22px) rotate(-24deg); } }
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes pulse { 0%,100% { opacity: .35; transform: scale(1); } 50% { opacity: .9; transform: scale(1.35); } }
@media (max-width: 820px) {
  .hero-art { -webkit-mask-image: linear-gradient(180deg, transparent 0%, #000 55%); mask-image: linear-gradient(180deg, transparent 0%, #000 55%); opacity: .7; }
}

@media (prefers-reduced-motion: reduce) {
  .hero-art .flow { stroke-dashoffset: 0; }
  .hero-art *, .hero-art { animation: none !important; }
  .motion [data-reveal] .card-image img { transform: none; }
}

/* ---------- Photo & video gallery ---------- */
.media-gallery { padding: 88px 0; background: var(--paper); }
.media-gallery-compact { padding: 8px 0 40px; background: none; }
.media-gallery-head { display: flex; flex-wrap: wrap; align-items: end; justify-content: space-between; gap: 18px; margin-bottom: 28px; }
.media-gallery-title { margin: 8px 0 0; color: var(--pine); font-size: clamp(22px, 2.6vw, 28px); letter-spacing: -.035em; }
.media-gallery-tools { display: flex; flex-wrap: wrap; align-items: center; gap: 18px; }
.media-tabs { display: inline-flex; padding: 4px; border-radius: 999px; background: #ebeee6; box-shadow: inset 0 1px 2px rgba(23,61,50,.06); }
.media-tabs button { padding: 8px 16px; border: 0; border-radius: 999px; background: transparent; color: #5c6a60; font-size: 12px; font-weight: 700; cursor: pointer; transition: background .35s var(--ease-out), color .25s, box-shadow .35s; }
.media-tabs button small { margin-left: 4px; opacity: .6; font-weight: 600; }
.media-tabs button[aria-selected="true"] { background: #fff; color: var(--pine); box-shadow: var(--elev-1); }
.media-tabs { max-width: min(100%, 680px); overflow-x: auto; scrollbar-width: thin; }
.media-tabs button { flex: 0 0 auto; white-space: nowrap; }

.gallery-bento { display: grid; grid-template-columns: repeat(4, 1fr); grid-auto-rows: 200px; gap: 12px; }
.media-gallery-compact .gallery-bento { grid-auto-rows: 140px; gap: 10px; }
.gallery-tile { position: relative; display: block; overflow: hidden; padding: 0; border: 0; border-radius: 14px; background: #dfe6d9; cursor: zoom-in; box-shadow: var(--elev-1); isolation: isolate; transition: transform .6s var(--ease-out), box-shadow .6s var(--ease-out); }
.gallery-tile img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.4s var(--ease-out), filter .6s; }
.gallery-tile::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 45%, rgba(12,39,31,.72)); opacity: .55; transition: opacity .5s var(--ease-soft); }
.gallery-tile:hover { transform: translateY(-3px); box-shadow: var(--elev-2); }
.gallery-tile:focus-visible, .media-tabs button:focus-visible, .lightbox-btn:focus-visible { outline: 3px solid #e7a357; outline-offset: 3px; }
.gallery-tile:hover img { transform: scale(1.06); }
.gallery-tile:hover::after { opacity: 1; }
.gallery-tile-label { position: absolute; left: 14px; right: 44px; bottom: 12px; z-index: 1; color: #fff; font-size: 12px; font-weight: 650; line-height: 1.35; text-align: left; transform: translateY(4px); opacity: .9; transition: transform .5s var(--ease-out), opacity .4s; }
.gallery-tile:hover .gallery-tile-label { transform: none; opacity: 1; }
.gallery-tile-label small { opacity: .75; font-weight: 500; }
.gallery-tile-zoom { position: absolute; right: 12px; bottom: 10px; z-index: 1; display: grid; place-items: center; width: 26px; height: 26px; border-radius: 50%; background: rgba(255,255,255,.18); color: #fff; font-size: 13px; backdrop-filter: blur(6px); opacity: 0; transform: scale(.8); transition: opacity .4s, transform .5s var(--ease-out); }
.gallery-tile:hover .gallery-tile-zoom { opacity: 1; transform: none; }
.gallery-tile.is-feature { grid-column: span 2; grid-row: span 2; }
.gallery-tile.is-feature .gallery-tile-label { font-size: 16px; left: 20px; bottom: 18px; }
/* Fill the grid without holes for 1–7 photos */
.gallery-bento:has(> :only-child) > .is-feature { grid-column: 1 / -1; }
.gallery-bento:has(> :nth-child(2):last-child) > :last-child { grid-column: span 2; grid-row: span 2; }
.gallery-bento:has(> :nth-child(3):last-child) > :not(.is-feature) { grid-column: span 2; }
.gallery-bento:has(> :nth-child(4):last-child) > :last-child { grid-column: span 2; }
.gallery-bento:has(> :nth-child(6):last-child) > :last-child { grid-column: 1 / -1; }
.gallery-bento:has(> :nth-child(7):last-child) > :nth-child(n+6) { grid-column: span 2; }

.gallery-videos { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 14px; }
.gallery-empty { display: grid; justify-items: center; gap: 12px; padding: 42px 20px; border: 1px dashed #d5dacf; border-radius: 12px; background: rgba(255,255,255,.58); text-align: center; }
.gallery-empty-icon { display: grid; width: 48px; height: 48px; place-items: center; padding-left: 3px; border-radius: 50%; background: #e6eee2; color: var(--pine-2); font-size: 22px; }
.gallery-empty p { max-width: 460px; color: #69746b; font-size: 14px; line-height: 1.6; }
.video-tile { aspect-ratio: 16 / 9; cursor: pointer; }
.video-tile-blank { position: absolute; inset: 0; background: radial-gradient(circle at 30% 20%, #2c6a52, var(--pine)); }
.video-play { position: absolute; left: 50%; top: 50%; z-index: 1; display: grid; place-items: center; width: 58px; height: 58px; margin: -29px 0 0 -29px; border-radius: 50%; background: rgba(255,255,255,.92); box-shadow: 0 10px 30px rgba(0,0,0,.25); transition: transform .5s var(--ease-out), background .3s; }
.video-play::before { content: ""; position: absolute; inset: -8px; border-radius: 50%; border: 2px solid rgba(255,255,255,.55); animation: ring 2.4s var(--ease-soft) infinite; }
.video-play svg { width: 22px; margin-left: 3px; fill: var(--pine); }
.video-tile:hover .video-play { transform: scale(1.08); background: #f0bd7f; }
@keyframes ring { from { transform: scale(.9); opacity: .9; } to { transform: scale(1.35); opacity: 0; } }

/* Lightbox */
.lightbox { width: 100vw; max-width: 100vw; height: 100dvh; max-height: 100dvh; margin: 0; padding: 0; border: 0; background: transparent; color: #fff; }
.lightbox::backdrop { background: rgba(8,22,17,.92); backdrop-filter: blur(6px); animation: fade-in .5s var(--ease-soft); }
.lightbox[open] { display: grid; grid-template-rows: auto 1fr auto; animation: fade-in .45s var(--ease-soft); }
.lightbox-bar { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 14px 18px; font-size: 12px; color: #cfdcd1; }
.lightbox-stage { position: relative; display: grid; place-items: center; min-height: 0; padding: 0 64px; }
.lightbox-stage img, .lightbox-stage video { max-width: 100%; max-height: 100%; border-radius: 10px; box-shadow: 0 30px 80px rgba(0,0,0,.45); animation: lb-in .6s var(--ease-out); }
.lightbox-caption { max-width: 760px; margin: 0 auto; padding: 14px 20px 22px; text-align: center; }
.lightbox-caption strong { display: block; font-size: 15px; }
.lightbox-caption span { display: block; margin-top: 4px; color: #b8c8bd; font-size: 12px; line-height: 1.5; }
.lightbox-caption a { display: inline-block; margin-top: 8px; color: #f0bd7f; font-size: 12px; font-weight: 700; }
.lightbox-caption a[hidden] { display: none; }
.lightbox-btn { display: grid; place-items: center; width: 44px; height: 44px; border: 1px solid rgba(255,255,255,.18); border-radius: 50%; background: rgba(255,255,255,.08); color: #fff; font-size: 20px; cursor: pointer; transition: background .3s, transform .4s var(--ease-out); }
.lightbox-btn:hover { background: rgba(255,255,255,.18); transform: scale(1.06); }
.lightbox-prev, .lightbox-next { position: absolute; top: 50%; margin-top: -22px; }
.lightbox-prev { left: 12px; } .lightbox-next { right: 12px; }
@keyframes fade-in { from { opacity: 0; } to { opacity: 1; } }
@keyframes lb-in { from { opacity: 0; transform: scale(.97); } to { opacity: 1; transform: none; } }

@media (max-width: 820px) {
  .media-gallery { padding: 60px 0; }
  .gallery-bento, .media-gallery-compact .gallery-bento { grid-template-columns: repeat(2, 1fr); grid-auto-rows: 150px; }
  .gallery-bento > .gallery-tile { grid-column: auto !important; grid-row: auto !important; }
  .gallery-bento > .gallery-tile.is-feature { grid-column: 1 / -1 !important; grid-row: span 2 !important; }
  .gallery-bento > .gallery-tile:last-child:nth-child(even) { grid-column: 1 / -1 !important; }
  .gallery-tile-label { opacity: 1; transform: none; }
  .lightbox-stage { padding: 0 8px; }
  .lightbox-stage img, .lightbox-stage video { max-height: 70dvh; }
  .lightbox-prev, .lightbox-next { width: 38px; height: 38px; margin-top: -19px; background: rgba(8,22,17,.55); }
  .lightbox-prev { left: 4px; } .lightbox-next { right: 4px; }
}
@media (prefers-reduced-motion: reduce) { .video-play::before { animation: none; } }

/* Government and technical partner cards */
.partner-section { background: #f2efe5; }
.partner-section-head { align-items: end; }
.partner-lead { max-width: 560px; margin-top: 14px; color: #69746b; font-size: 14px; line-height: 1.7; }
.partner-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.partner-card { position: relative; display: flex; min-height: 124px; align-items: flex-start; gap: 17px; padding: 23px; border: 1px solid #e2e0d6; border-radius: 10px; background: rgba(255,255,255,.78); color: var(--ink); transition: border-color .25s, transform .3s var(--ease-out), box-shadow .3s; }
.partner-card[href]:hover { transform: translateY(-3px); border-color: #c4d0be; box-shadow: 0 14px 34px rgba(29,48,36,.08); }
.partner-icon { display: grid; flex: 0 0 44px; width: 44px; height: 44px; place-items: center; border-radius: 50%; background: #e6eee2; color: #3c7251; }
.partner-icon svg { width: 23px; height: 23px; }
.partner-card-copy { display: grid; gap: 7px; padding: 2px 22px 0 0; }
.partner-card-copy strong { color: var(--pine); font-size: 15px; line-height: 1.4; }
.partner-card-copy > span { color: #69746b; font-size: 12px; line-height: 1.6; }
.partner-arrow { position: absolute; top: 24px; right: 21px; color: #a7643f; font-size: 14px; }
.partner-note { display: flex; align-items: center; gap: 8px; margin: 19px 0 0; color: #73776e; font-size: 11px; line-height: 1.5; }
.partner-note span { color: #a7643f; font-size: 15px; }
@media (max-width: 620px) {
  .partner-grid { grid-template-columns: 1fr; }
  .partner-card { min-height: 110px; padding: 19px; }
  .media-gallery-tools { width: 100%; justify-content: space-between; gap: 12px; }
  .media-tabs { max-width: calc(100% - 95px); }
  .media-tabs button { padding: 8px 12px; }
}
.page-hero.has-art .page-hero-mark:not(.page-hero-photo) { display: none; }

/* Hero: the active photo keeps drifting (slow zoom + pan) between cross-fades */
.hero-media.is-active img { animation: hero-drift 16s var(--ease-soft) both alternate infinite; will-change: transform; }
.hero-media:nth-child(even).is-active img { animation-name: hero-drift-alt; }
@keyframes hero-drift { from { transform: scale(1.04) translate3d(0, 0, 0); } to { transform: scale(1.16) translate3d(-2.5%, -1.5%, 0); } }
@keyframes hero-drift-alt { from { transform: scale(1.16) translate3d(2%, -1%, 0); } to { transform: scale(1.04) translate3d(0, 0, 0); } }
@media (prefers-reduced-motion: reduce) { .hero-media.is-active img { animation: none; } }

/* Hero: carousel controls sit on the bottom edge, level with the photo caption */
.hero-content { padding-bottom: 104px; }
.hero-content > .hero-carousel-controls { position: absolute; z-index: 2; left: 0; bottom: 17px; margin: 0; }
@media (max-width: 620px) {
  .hero-content > .hero-carousel-controls { bottom: 12px; }
  .hero-caption { bottom: 60px; }
}

/* ---------- Phones: no sideways scroll, readable text, thumb-sized targets ---------- */
.mobile-search { display: flex; align-items: center; height: 44px; margin: 6px 0 4px; border: 1px solid #e1e5de; border-radius: 8px; background: #fafaf7; }
.mobile-search input { flex: 1; min-width: 0; height: 100%; padding: 0 12px; border: 0; background: transparent; font-size: 16px; }
.mobile-nav .mobile-search button { width: 44px; height: 100%; padding: 0; border: 0; text-align: center; font-size: 18px; }
@media (max-width: 620px) {
  html, body { overflow-x: clip; }
  .header-actions .auth-trigger { display: none; }
  .header-actions .button-donate { min-height: 40px; font-size: 13px; }
  .topline .site-wrap span, .topline .site-wrap a { font-size: 11px; }
  .brand-copy span { font-size: 10px; }
  .hero-caption, .hero-slide-count { font-size: 11px; }
  .hero-arrow { width: 40px; height: 40px; }
  .hero-rotation-toggle { min-height: 40px; font-size: 12px; }
  .hero-under-inner, .hero-under-inner a { font-size: 13px; }
  .hero-under-inner a { display: inline-flex; align-items: center; min-height: 40px; }
  .card-category, .card-meta, .card-meta time, .fact-tile dt, .footer-bottom-inner, .footer-bottom-inner a { font-size: 12px; }
  .share-button { min-height: 40px; font-size: 12px; }
  .text-link { min-height: 40px; }
  .read-more > summary, .page-more-sections > summary { min-height: 44px; display: flex; align-items: center; }
  .qr-box { right: auto; left: 0; }
  .mobile-nav { padding-inline: 17px; }
  .mobile-nav a, .mobile-nav button { min-height: 46px; font-size: 15px; }
}
@media (max-width: 620px) { .mobile-nav a.mobile-donate-link { padding-inline: 16px; } }
