/* Canopy Partners. One idea: the canopy over everything, seen from below. */
.page-canopy { background: var(--canvas); }

/* What a partner brings: a list of lines, each with a photograph */
.cn-gives { padding: var(--sect) 0; }
.cn-gives-grid { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: clamp(40px, 6vw, 110px); align-items: start; }
.cn-gives-side { position: sticky; top: calc(var(--header-h) + 40px); }
.cn-gives-side h2 { font-size: var(--t-48); color: var(--forest); max-width: 14ch; }
.cn-gives-side p { margin-top: 22px; font-size: var(--t-18); line-height: 1.6; color: var(--ink); max-width: 28em; }
.cn-lines { list-style: none; padding: 0; border-top: 1.5px solid var(--forest); }
.cn-line { display: grid; grid-template-columns: 96px 1fr; gap: 24px; align-items: center; padding: 18px 0; border-bottom: 1px solid var(--line-strong); }
.cn-line-pic { width: 96px; height: 96px; border-radius: 50%; overflow: hidden; box-shadow: 0 0 0 4px var(--canvas), 0 0 0 5.5px var(--sprout); transition: border-radius .6s var(--ease); }
.cn-line-pic img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s var(--ease); }
.cn-line:hover .cn-line-pic { border-radius: 22px; }
.cn-line:hover .cn-line-pic img { transform: scale(1.08); }
.cn-line-txt { display: grid; gap: 6px; }
.cn-line-txt b { font-size: var(--t-28); line-height: 1.08; color: var(--forest); font-weight: 500; }
.cn-line-txt span { font-size: 16px; line-height: 1.5; color: var(--stone); max-width: 34em; }

/* The canopy of change: looking up into the trees */
.cn-change { position: relative; isolation: isolate; overflow: hidden; color: #fff; padding: clamp(96px, 12vw, 180px) 0; }
.cn-change-bg { position: absolute; inset: -12% 0; z-index: -2; }
.cn-change-bg img { width: 100%; height: 100%; object-fit: cover; will-change: transform; }
.cn-change::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(100deg, rgba(6,18,12,.88) 0%, rgba(6,18,12,.62) 45%, rgba(6,18,12,.2) 100%); }
.cn-change h2 { font-size: var(--t-64); max-width: 12ch; }
.cn-change-lede { margin-top: 20px; font-size: var(--t-22); line-height: 1.5; color: rgba(255,255,255,.88); max-width: 30em; }
.cn-ones { list-style: none; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0; margin-top: clamp(48px, 7vw, 96px); padding: 0; max-width: 1040px; border-top: 1px solid rgba(255,255,255,.3); }
.cn-ones li { display: grid; gap: 10px; align-content: start; padding: 26px 28px 0 0; }
.cn-ones li + li { padding-left: 28px; border-left: 1px solid rgba(255,255,255,.18); }
.cn-ones-mark svg { width: 44px; height: 22px; overflow: visible; }
.cn-ones-mark .f { fill: var(--sprout); }
.cn-ones-mark .r { fill: none; stroke: var(--sprout); stroke-width: 2; }
.cn-ones-mark .l { stroke: var(--sprout); stroke-width: 1.6; stroke-dasharray: 1.4 3; stroke-linecap: round; }
.cn-ones-mark .l2 { fill: none; stroke: var(--sprout); stroke-width: 1.2; }
.cn-ones b { font-size: var(--t-36); font-weight: 500; line-height: 1; }
.cn-ones span:last-child { font-size: 16px; color: rgba(255,255,255,.8); }

/* Two ways in: the tickets over their photographs */
.cn-ways { padding: var(--sect) 0; background: var(--mist); }
.cn-ways-h { font-size: var(--t-48); color: var(--forest); max-width: 18ch; margin-bottom: clamp(40px, 5vw, 64px); }
.cn-ways-grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(28px, 4vw, 56px); }
.cn-way { position: relative; display: grid; padding-top: 140px; }
.cn-way-photo { position: absolute; inset: 0 0 auto 0; height: 300px; margin: 0; border-radius: 22px; overflow: hidden; }
.cn-way-photo img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--ease); }
.cn-way:hover .cn-way-photo img { transform: scale(1.05); }
.cn-ticket { position: relative; margin: 0 clamp(16px, 2.4vw, 32px); rotate: -.8deg; }
.cn-way-key .cn-ticket { rotate: .8deg; }
.cn-ticket .pt-ticket-title { max-width: 14ch; }
.cn-ticket .pt-ticket-title small { display: block; margin-top: 6px; font: 400 14px/1.3 var(--sans); letter-spacing: 0; color: var(--stone); }
.cn-ticket-for { padding: 16px 14px 4px; font-size: 15px; line-height: 1.5; color: var(--ink); }
.cn-ticket-for b { font-weight: 600; color: var(--forest); }
.cn-ticket-btn { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin: 8px 6px 6px; height: 54px; padding: 0 18px; background: var(--forest); color: #fff; font-weight: 500; transition: background-color .3s; }
.cn-ticket-btn:hover { background: var(--moss); }
.cn-ticket-btn .arrow { width: 16px; height: 16px; }
/* gold belongs to the supporter tier only */
.cn-ticket-gold { border-color: #6d5420; }
.cn-ticket-gold .pt-ticket-head { border-color: #6d5420; }
.cn-ticket-gold .pt-ticket-title { color: #5a4419; }
.cn-ticket-gold .pt-stamp { color: var(--gold); }
.cn-ticket-gold .pt-check { stroke: var(--gold); }
.cn-ticket-gold .cn-ticket-for b { color: #5a4419; }
.cn-ticket-gold .cn-ticket-btn { background: #5a4419; }
.cn-ticket-gold .cn-ticket-btn:hover { background: #6d5420; }

/* What partners enable: five photographs, their tops tracing a crown */
.cn-enable { padding: var(--sect) 0; overflow: hidden; }
.cn-enable-head { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 24px clamp(32px, 6vw, 96px); align-items: end; }
.cn-enable-head h2 { font-size: var(--t-48); color: var(--forest); max-width: 13ch; }
.cn-enable-quote { font-size: var(--t-22); line-height: 1.3; color: var(--moss); max-width: 28ch; }
.cn-crown { --lift: 0px; list-style: none; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: clamp(10px, 1.4vw, 20px); align-items: end; margin-top: clamp(48px, 6vw, 80px); padding: 0; }
.cn-crown-item figure { margin: 0; display: grid; gap: 16px; }
.cn-crown-pic { display: block; overflow: hidden; border-radius: 999px 999px 18px 18px; transition: border-radius .7s var(--ease); }
.cn-crown-item:nth-child(1) .cn-crown-pic { height: clamp(220px, 22vw, 320px); }
.cn-crown-item:nth-child(2) .cn-crown-pic { height: clamp(280px, 29vw, 410px); }
.cn-crown-item:nth-child(3) .cn-crown-pic { height: clamp(320px, 33vw, 470px); }
.cn-crown-item:nth-child(4) .cn-crown-pic { height: clamp(280px, 29vw, 410px); }
.cn-crown-item:nth-child(5) .cn-crown-pic { height: clamp(220px, 22vw, 320px); }
.cn-crown-pic img { width: 100%; height: 100%; object-fit: cover; transition: transform 1s var(--ease); }
.cn-crown-item:hover .cn-crown-pic { border-radius: 18px; }
.cn-crown-item:hover .cn-crown-pic img { transform: scale(1.06); }
.cn-crown-item figcaption { display: grid; gap: 6px; min-height: 7.5em; }
.cn-crown-item figcaption b { font-size: var(--t-22); line-height: 1.1; color: var(--forest); font-weight: 500; }
.cn-crown-item figcaption span { font-size: 14px; line-height: 1.5; color: var(--stone); }
.cn-crown-item { opacity: 0; transform: translateY(40px); transition: opacity .9s var(--ease), transform 1.1s var(--ease); transition-delay: calc(var(--i) * .09s); }
.cn-crown.in .cn-crown-item, .no-js .cn-crown-item { opacity: 1; transform: none; }

@media (max-width: 1000px) {
  .cn-ways-grid { grid-template-columns: 1fr; gap: 64px; }
  .cn-crown { grid-template-columns: repeat(5, 72%); overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: 12px; margin-right: calc(-1 * var(--gutter)); scrollbar-width: none; }
  .cn-crown::-webkit-scrollbar { display: none; }
  .cn-crown-item { scroll-snap-align: start; }
}
@media (max-width: 900px) {
  .cn-gives-grid, .cn-enable-head { grid-template-columns: 1fr; }
  .cn-gives-side { position: static; }
  .cn-line { grid-template-columns: 68px 1fr; gap: 16px; }
  .cn-line-pic { width: 68px; height: 68px; }
  .cn-line-txt b { font-size: 21px; }
  .cn-line-txt span { font-size: 14.5px; }
  .cn-ones { grid-template-columns: 1fr; }
  .cn-ones li, .cn-ones li + li { padding: 22px 0; border-left: 0; border-bottom: 1px solid rgba(255,255,255,.18); }
  .cn-way { padding-top: 110px; }
  .cn-way-photo { height: 220px; }
  .cn-ticket { margin: 0 8px; }
}
@media (prefers-reduced-motion: reduce) { .cn-crown-item { opacity: 1; transform: none; transition: none; } }
.cn-explore { display: inline-flex; align-items: center; gap: 10px; margin-top: 18px; height: 46px; padding: 0 18px; border-radius: 12px; font-weight: 500; color: var(--forest); background: rgba(255,255,255,.6); box-shadow: inset 0 0 0 1px var(--line-strong); transition: background-color .3s, box-shadow .3s; }
.cn-explore:hover { background: #fff; box-shadow: inset 0 0 0 1px var(--forest); }
.cn-explore .arrow { width: 15px; height: 15px; }

/* ---------- Where nature meets opportunity ----------
   Two doors, funders and projects, meet on a seam that carries the MaP mark. Each door opens its
   own enquiry plate (the house ticket, unrotated so the form is easy to fill). */
.cn-meet { padding: var(--sect) 0 calc(var(--sect) * .35); scroll-margin-top: var(--header-h); }
.cn-meet-head { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: 24px clamp(40px, 6vw, 110px); align-items: start; }
.cn-meet-head h2 { font-size: var(--t-64); color: var(--forest); text-wrap: balance; }
@media (max-width: 560px) { .cn-meet-head h2 { font-size: clamp(30px, 9.2vw, 38px); } }
.cn-meet-intro p { font-size: var(--t-18); line-height: 1.6; color: var(--ink); max-width: 36em; }
.cn-meet-intro p + p { margin-top: 16px; }
.cn-meet-intro .cn-meet-gap { font-size: var(--t-28); line-height: 1.2; font-style: italic; font-weight: 500; color: var(--moss); margin-top: 22px; }
.cn-meet-intro .cn-meet-gap + p { margin-top: 18px; }

.cn-meet-stage { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); margin-top: clamp(48px, 6vw, 84px); }
.cn-door { position: relative; grid-row: 1; display: flex; align-items: flex-end; min-height: clamp(470px, 40vw, 580px); color: #fff; isolation: isolate; }
.cn-door-funder { grid-column: 1; }
.cn-door-project { grid-column: 2; }
.cn-door-media { position: absolute; inset: 0; z-index: -1; overflow: hidden; background: var(--forest); }
.cn-door-funder .cn-door-media { border-radius: 22px 0 0 22px; }
.cn-door-project .cn-door-media { border-radius: 0 22px 22px 0; }
.cn-door-media img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.4s var(--ease); }
.cn-door-funder .cn-door-media img { object-position: 50% 62%; }
.cn-door-project .cn-door-media img { object-position: 50% 40%; }
.cn-door-media::after { content: ""; position: absolute; inset: 0; background-image: linear-gradient(180deg, rgba(6,18,12,.04) 22%, rgba(6,18,12,.84) 84%); transition: background-color .6s var(--ease); }
.cn-door:hover .cn-door-media img { transform: scale(1.04); }
/* once a side is chosen the other one steps back */
.cn-meet.has-choice .cn-door:not(.is-on) .cn-door-media::after { background-color: rgba(6,18,12,.42); }
.cn-door-txt { padding: clamp(26px, 3.4vw, 52px); max-width: 34em; }
.cn-door-funder .cn-door-txt { padding-right: clamp(56px, 5vw, 80px); }
.cn-door-project .cn-door-txt { padding-left: clamp(56px, 5vw, 80px); }
.cn-door-for { font-size: var(--t-16); font-weight: 500; color: var(--sprout); }
.cn-door h3 { margin-top: 8px; font-size: var(--t-36); line-height: 1.05; max-width: 16ch; text-wrap: balance; }
.cn-door-txt > p:not(.cn-door-for) { margin-top: 14px; font-size: var(--t-16); line-height: 1.55; color: rgba(255,255,255,.88); max-width: 30em; }
.cn-door-btn { display: inline-flex; align-items: center; gap: 12px; margin-top: 24px; height: 52px; padding: 0 22px; border-radius: 8px; background: #fff; color: var(--forest); font-weight: 500; white-space: nowrap; transition: background-color .3s, color .3s; }
.cn-door-btn:hover { background: var(--sprout); }
.cn-door-btn:focus-visible { outline: 2px solid #fff; outline-offset: 3px; }
.cn-door-btn .arrow { width: 16px; height: 16px; transition: transform .5s var(--ease); }
.cn-door-btn:hover .arrow { transform: translateX(3px); }
.cn-door.is-on .cn-door-btn { background: var(--sprout); }
.cn-door.is-on .cn-door-btn .arrow { transform: rotate(90deg); }
/* the mark sits on the seam between the doors */
.cn-seam { position: absolute; z-index: 2; left: 0; top: 50%; transform: translate(-50%, -50%); display: grid; place-items: center; width: 88px; height: 88px; border-radius: 50%; background: var(--canvas); color: var(--forest); box-shadow: 0 0 0 6px rgba(251,252,249,.28); }
.cn-seam .logo__svg { height: 38px; --mark-stroke: 2.6; }

.cn-plate { position: relative; grid-column: 1 / -1; grid-row: 2; margin-top: 30px; padding: clamp(24px, 3.2vw, 48px); background: #fff; border: 1.5px solid var(--forest); box-shadow: 10px 10px 0 rgba(18, 56, 42, .12); scroll-margin-top: calc(var(--header-h) + 16px); }
.cn-plate[hidden] { display: none; }
.cn-plate:not([hidden]) { animation: cn-plate-in .55s var(--ease); }
@keyframes cn-plate-in { from { opacity: 0; transform: translateY(14px); } }
/* a notch points back up at the door it belongs to */
.cn-plate::before { content: ""; position: absolute; top: -10px; left: 25%; width: 18px; height: 18px; margin-left: -9px; background: #fff; border-top: 1.5px solid var(--forest); border-left: 1.5px solid var(--forest); transform: rotate(45deg); }
.cn-plate[data-plate="project"]::before { left: 75%; }
.cn-plate-head { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 10px 24px; padding-bottom: 22px; border-bottom: 1px dotted var(--line-strong); }
.cn-plate-head h3 { font-size: var(--t-36); color: var(--forest); }
.cn-plate-head p { grid-column: 1; font-size: var(--t-14); line-height: 1.55; color: var(--stone); max-width: 62ch; }
.cn-plate-close { grid-column: 2; grid-row: 1 / span 2; align-self: start; display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; color: var(--forest); box-shadow: inset 0 0 0 1px var(--line-strong); transition: box-shadow .3s, background-color .3s; }
.cn-plate-close:hover { background: var(--mist); box-shadow: inset 0 0 0 1px var(--forest); }
.cn-plate-close svg { width: 16px; height: 16px; }
.no-js .cn-plate-close { display: none; }
.no-js .cn-plate { grid-row: auto; }

.cn-form { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 20px 24px; margin-top: 26px; }
.cn-span { grid-column: 1 / -1; }
.cn-form textarea.input { height: auto; padding: 14px 16px; resize: vertical; }
.cn-form select.input { appearance: none; padding-right: 44px; background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='none' stroke='%2312382A' stroke-width='1.6'%3E%3Cpath d='M4 6l4 4 4-4'/%3E%3C/svg%3E") no-repeat right 16px center / 16px; }
.cn-form ::placeholder { color: #8a978f; }
.cn-checks { border: 0; margin: 0; padding: 0; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 12px 24px; min-width: 0; }
.cn-checks legend { padding: 0; margin-bottom: 12px; font-weight: 500; font-size: 15px; }
.cn-checks .check-field { color: var(--ink); }
.cn-opt { font-weight: 400; font-size: 13px; color: var(--stone); }
.cn-form .check-field a { color: var(--moss); text-decoration: underline; text-underline-offset: 3px; }
.cn-form-foot { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 22px; margin-top: 4px; }
.cn-form-foot [data-form-status] { flex: 1 1 260px; }
.cn-form.is-sent .cn-form-foot { display: block !important; }

@media (max-width: 900px) {
  .cn-meet-head { grid-template-columns: 1fr; }
}
@media (max-width: 900px) {
  .cn-meet-stage { grid-template-columns: minmax(0, 1fr); }
  .cn-door, .cn-door-funder, .cn-door-project, .cn-plate { grid-column: 1; grid-row: auto; }
  .cn-door { min-height: 440px; }
  .cn-door-funder .cn-door-media, .cn-door-project .cn-door-media { border-radius: 18px; }
  .cn-door-project { margin-top: 14px; }
  .cn-door-funder .cn-door-txt, .cn-door-project .cn-door-txt { padding: 24px 22px 26px; }
  .cn-seam { left: 50%; top: 0; width: 76px; height: 76px; transform: translate(-50%, -50%); }
  .cn-seam .logo__svg { height: 33px; }
  .cn-plate { margin: 26px 0 54px; padding: 22px 18px 24px; box-shadow: 6px 6px 0 rgba(18, 56, 42, .12); }
  .cn-plate::before, .cn-plate[data-plate="project"]::before { left: 50%; }
  .cn-form, .cn-checks { grid-template-columns: minmax(0, 1fr); }
  .cn-form .field, .cn-form fieldset { grid-column: 1; }
  .cn-door-btn { white-space: normal; height: auto; min-height: 52px; padding: 12px 20px; }
  .cn-door-media::after { background-image: linear-gradient(180deg, rgba(6,18,12,.1) 0%, rgba(6,18,12,.5) 34%, rgba(6,18,12,.88) 70%); }
}
@media (prefers-reduced-motion: reduce) { .cn-plate:not([hidden]) { animation: none; } }
