@font-face { font-family: "DM Sans"; font-weight: 300 600; font-display: swap; src: url(assets/fonts/dm-sans.woff2) format("woff2"); }
@font-face { font-family: "Instrument Serif"; font-display: swap; src: url(assets/fonts/instrument-serif.woff2) format("woff2"); }

:root {
  --green: #073f32;
  --ink: #18262b;
  --cream: #f7f3ec;
  --sand: #e5ded1;
  --sage: #c6dbcf;
  --pine: #043f2c;
  --forest: #052f27;
  --accent: #dc8f7f; /* 4.7:1 on the green, enough for small text */
  --serif: "Instrument Serif", serif;
  --spacing-xs: 5px;
  --spacing-sm: 10px;
  --spacing-md: 20px;
  --spacing-lg: 40px;
  --line-height-heading: .96;
  --header-height: 80px; /* tablet and phone set their own below; the mobile menu starts right under it */
}
html { scroll-padding-top: var(--header-height); } /* links to a spot on the page (#form, #team) land below the sticky header, not under it */

* { box-sizing: border-box; margin: 0; padding: 0; }
body { font-family: "DM Sans", sans-serif; color: var(--sage); background: var(--green); }
/* On pages shorter than the screen the last section grows, so the footer sits at the bottom instead of the body's green showing under it */
body { display: flex; flex-direction: column; min-height: 100vh; min-height: 100svh; }
main, main > :last-child { flex: 1; }
main { display: flex; flex-direction: column; }
a { color: inherit; text-decoration: none; }
p a { text-decoration: underline; text-underline-offset: .2em; } /* links inside running text */
img { display: block; max-width: 100%; height: auto; }
ul { list-style: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
h1, h2, h3 { font-family: var(--serif); font-weight: 400; line-height: var(--line-height-heading); text-wrap: balance; color: var(--cream); }
h1, h2 { font-size: max(42px, 16px + 3vw); letter-spacing: -.035em; word-spacing: .1em; }
p { font-size: calc(16px + .1vw); line-height: 1.55; }

.skip { position: absolute; top: -100px; left: var(--spacing-md); z-index: 11; padding: var(--spacing-sm) var(--spacing-md); background: var(--cream); color: var(--green); }
.skip:focus { top: var(--spacing-md); }
.text > :not(:last-child) { padding-bottom: var(--spacing-md); }
.label { font-size: 11.34px; line-height: 1.6; letter-spacing: .23em; text-transform: uppercase; color: var(--accent); }
.sage { color: var(--sage); }
.ink { background: var(--ink); }
.pine { background: var(--pine); }
.forest { background: var(--forest); }
.buttons { display: flex; flex-wrap: wrap; gap: var(--spacing-md); }
.small { font-size: 12.6px; line-height: 1.2; }
/* Photos: the box takes its size from the layout and the image fills it, cropped to fit, so a photo never stretches its section */
.photo { position: relative; }
.photo img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.btn { display: inline-flex; align-items: center; gap: var(--spacing-sm); padding: var(--spacing-sm) 0; font-size: 14px; line-height: 1.2; letter-spacing: .12em; text-transform: uppercase; color: var(--cream); }
.btn::after { content: "↗"; content: "↗" / ""; font-size: 20px; line-height: 1; } /* the second one keeps screen readers from reading the arrow */
.btn:hover { color: var(--sand); }

/* Lines: the sides listed in data-line draw in over 1.8s once the element is shown (a ::before over the element, so they sit above its content).
   index.js keeps the element .away, its lines hidden, until it's shown; switching back to "draw" starts it over. Each side's size is a variable, reset on every element so nested ones don't inherit it.
   With animations off (reduced motion, the before-and-after screenshots) they're simply drawn */
[data-line] { position: relative; --top: 0 0; --right: 0 0; --bottom: 0 0; --left: 0 0; }
[data-line~="top"] { --top: 100% .5px; }
[data-line~="right"] { --right: .5px 100%; }
[data-line~="bottom"] { --bottom: 100% .5px; }
[data-line~="left"] { --left: .5px 100%; }
[data-line]::before { content: ""; position: absolute; inset: 0; pointer-events: none; background: linear-gradient(var(--accent) 0 0) top left / var(--top), linear-gradient(var(--accent) 0 0) top right / var(--right), linear-gradient(var(--accent) 0 0) bottom left / var(--bottom), linear-gradient(var(--accent) 0 0) top left / var(--left); background-repeat: no-repeat; animation: draw 1.8s both; }
[data-line].away::before { animation-name: hide; }
@keyframes draw { from { background-size: 0 .5px, .5px 0, 0 .5px, .5px 0; } } /* across and down from the top left, like reading */
@keyframes hide { from, to { background-size: 0 .5px, .5px 0, 0 .5px, .5px 0; } }

/* Header */
/* Sticky: scrolls with the page until it reaches the top, stays there, and goes back to its place when you scroll up */
header { position: sticky; top: 0; z-index: 9; display: flex; align-items: center; justify-content: space-between; height: var(--header-height); padding: 0 calc(3% + var(--spacing-md)); border-bottom: 1px solid rgb(247 243 236 / .2); background: var(--green); }
nav ul { display: flex; align-items: baseline; gap: var(--spacing-md); }
nav a { display: block; padding-bottom: var(--spacing-xs); border-bottom: 1px solid transparent; font-size: 10px; font-weight: 600; line-height: 1.4; letter-spacing: .12em; text-transform: uppercase; white-space: nowrap; color: var(--cream); }
nav a:hover { color: var(--sand); border-bottom-color: var(--accent); }
nav a[aria-current] { border-bottom-color: var(--accent); } /* the page you're on */
nav .cta { padding: var(--spacing-sm); border: 1px solid rgb(247 243 236 / .2); }
/* Burger: three thin bars, the middle one shorter (it fills out on hover); the outer two cross into an × while the menu is open */
.burger { display: none; position: relative; z-index: 11; flex-direction: column; align-items: end; justify-content: center; gap: var(--spacing-xs); width: 44px; height: 44px; padding: var(--spacing-sm); color: var(--cream); }
.burger::before, .burger span, .burger::after { content: ""; width: 100%; height: 1.5px; background: currentColor; transition: transform .4s ease, opacity .3s, width .3s; }
.burger span { width: 60%; }
@media (hover: hover) { .burger:hover span { width: 100%; } } /* mouse only: a tap leaves touch screens in :hover */
.open .burger::before { transform: translateY(calc(var(--spacing-xs) + 1.5px)) rotate(45deg); }
.open .burger span { opacity: 0; }
.open .burger::after { transform: translateY(calc(-1 * (var(--spacing-xs) + 1.5px))) rotate(-45deg); }

/* Hero */
.hero { display: grid; grid-template-columns: 55% 45%; }
.hero .text { padding: calc(8% + var(--spacing-sm)) var(--spacing-md) calc(8% + var(--spacing-sm)) calc(7% + var(--spacing-md)); }
.hero h1 { font-size: calc(16px + 6.7vw); letter-spacing: -.043em; }
.hero em { color: var(--sage); }
.hero .text > .buttons { padding-bottom: var(--spacing-sm); }
.hero .btn { font-size: calc(16px + .01vw); }
.hero .photo { min-height: calc(70vh - 33px); }
.eyebrow { display: flex; align-items: center; gap: var(--spacing-sm); font-size: 11.34px; line-height: 1; text-transform: uppercase; }
.eyebrow::before { content: ""; width: 32px; height: 1px; background: var(--accent); }
.tagline { font-size: 11.34px; font-weight: 300; line-height: 1; letter-spacing: .24em; text-transform: uppercase; padding-top: var(--spacing-sm); }
/* Company pages' hero: added next to .hero, it only changes that page's hero. No intro text, so a lower photo and a regular-size title */
.portfolio-hero-template .photo { min-height: 320px; }
.portfolio-hero-template h1 { font-size: max(42px, 16px + 3vw); }
.btn.solid { padding: var(--spacing-sm) var(--spacing-md); background: var(--cream); color: var(--green); }
.btn.solid:hover { background: var(--sand); }

/* What we look for */
.look { display: grid; grid-template-columns: 44% 56%; padding: 6% 0; }
.look .text { padding: var(--spacing-md) var(--spacing-lg) 0 calc(8% + var(--spacing-md)); }
.look .list { padding: 0 calc(8% + var(--spacing-md)) 0 var(--spacing-lg); }
.look .item { display: flex; gap: var(--spacing-lg); padding: var(--spacing-md) 0; }
.look h3 { padding-bottom: var(--spacing-xs); font: calc(16px + .2vw)/1.4 "DM Sans", sans-serif; }
/* Focus areas (FAQs page): the same list with short serif titles and no descriptions */
.areas { padding-top: var(--spacing-lg); }
.areas .text { padding-top: 0; }
.areas .label { padding-bottom: 0; }
.areas h3 { padding-bottom: 0; font: calc(16px + 1.2vw)/var(--line-height-heading) var(--serif); }

/* Portfolio */
.portfolio { padding: 4% 0; background: var(--forest); }
.portfolio > .text, .work > .text { padding: var(--spacing-md) calc(4% + var(--spacing-md)) var(--spacing-sm); }
.tabs { display: grid; grid-template-columns: 35% 65%; grid-template-rows: repeat(4, auto) 1fr; padding: calc(1% + var(--spacing-md)) calc(4% + var(--spacing-md)) var(--spacing-md); }
.tab { grid-column: 1; display: flex; align-items: baseline; gap: 1em; width: 100%; padding: var(--spacing-lg) var(--spacing-md) var(--spacing-lg) var(--spacing-xs); font: calc(16px + 1.4vw)/var(--line-height-heading) var(--serif); text-align: left; }
.tab span { font: 12px "DM Sans", sans-serif; color: var(--accent); }
.tab:hover, .tab[aria-expanded="true"] { background: rgb(255 255 255 / .05); color: var(--cream); }
.panel { grid-area: 1 / 2 / -1; display: none; overflow: hidden; }
.tab[aria-expanded="true"] + .panel { display: grid; animation: fade .7s; } /* desktop: the new panel fades in */
/* The photo is darkened top and bottom so the text reads */
.body { display: flex; flex-direction: column; justify-content: space-between; align-items: start; min-height: 500px; padding: var(--spacing-lg); background: linear-gradient(rgb(24 38 43 / .8), #0000 55%, var(--ink)), var(--img) center / cover; color: var(--sand); }
.body > div { padding-bottom: var(--spacing-lg); }
.panel .label { font-size: 10px; }
.panel h3 { padding: var(--spacing-md) 0; font-size: 60px; }
.panel h3 + p { font-size: 15px; line-height: 1.6; }
.panel .btn { letter-spacing: normal; }
@keyframes fade { from { opacity: 0; } }

/* Work with Vinea */
.work { padding: 4% 0; }
.cards { display: grid; grid-template-columns: repeat(3, 1fr); padding: calc(1.5% + var(--spacing-md)) calc(4% + var(--spacing-md)) var(--spacing-md); }
.cards > li { display: flex; flex-direction: column; justify-content: space-between; align-items: start; padding: var(--spacing-lg); container-type: inline-size; }
.cards .label { white-space: nowrap; font-size: 9.5px; font-size: min(11.34px, 4.4cqi); } /* shrinks only when the card is too narrow; browsers without container units get 9.5px */
.cards > li > div { padding-bottom: var(--spacing-lg); }
.cards h3 { padding: var(--spacing-md) 0 var(--spacing-sm); }
.cards h3, .people h3, .companies h3, .grants h3 { font-size: calc(16px + 1.7vw); } /* card titles and section subheadings, same size */
.cards a { font-size: calc(16px + .01vw); font-weight: 600; line-height: 1.2; }
.more { padding: var(--spacing-sm) calc(4% + var(--spacing-md)) var(--spacing-md); }
.more .btn { border-bottom: 1px solid; }

/* Founder */
.founder { --accent: #a1503f; display: grid; grid-template-columns: 45% 55%; background: var(--cream); color: var(--ink); } /* darker accent for the cream background, 5:1 */
.founder .text { padding: calc(6% + var(--spacing-md)) calc(4% + var(--spacing-lg)) 6% calc(7% + var(--spacing-md)); }
.founder h2 { color: var(--ink); }
.founder .text > h2 + p { padding-bottom: var(--spacing-sm); }
.founder .btn { color: var(--ink); }
.founder .btn:hover { color: var(--green); }

/* Split: text on the left; a paragraph, a second block of text or a photo on the right */
.split { display: grid; grid-template-columns: 1fr 1fr; }
.split .text { padding: calc(6% + var(--spacing-md)) var(--spacing-lg) calc(8% + var(--spacing-md)) calc(7% + var(--spacing-md)); }
.split > p, .split > .text + .text { align-self: center; padding: var(--spacing-lg) calc(7% + var(--spacing-md)) var(--spacing-lg) var(--spacing-lg); }
.split .photo { min-height: 400px; }
.partner-logo { display: inline-block; width: 280px; } /* inline, so it centres with the text on phones */

/* Team and portfolio companies: framed cards with the photo on top */
.team, .sector, .supporters { padding: 6% calc(7% + var(--spacing-md)); }
.people, .companies { display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--spacing-lg) var(--spacing-md); padding-top: var(--spacing-lg); }
.people li, .companies li { padding: var(--spacing-md); }
.people img, .companies img { width: 100%; aspect-ratio: 1; object-fit: cover; }
.people h3, .companies h3 { padding: var(--spacing-md) 0 var(--spacing-xs); }
/* Companies: three to a row; the text grows to fill the card, so the link always sits at its bottom */
.companies { grid-template-columns: repeat(3, 1fr); }
.companies li { display: flex; flex-direction: column; align-items: start; }
.companies img { aspect-ratio: 8 / 5; }
.companies li > div { flex: 1; padding: var(--spacing-md) 0; }
.companies h3 { padding: var(--spacing-sm) 0; }
.companies .btn { padding: 0; } /* the card's padding spaces it */

/* Company page and the foundation's grants: one column, kept to a readable width */
.company, .grants { padding: 6% calc(7% + var(--spacing-md)); }
.grants, .supporters { padding-inline: calc(3.5% + var(--spacing-md)); } /* foundation: line up with the mission .split column (7% of half the width) */
.company .text, .grants .text { max-width: 760px; }
.grants h3 { padding-top: var(--spacing-md); }

/* Who we support: the grantees' logos scroll by. The list is doubled so the loop is seamless; it pauses on hover and sits still for reduced motion */
.marquee { display: flex; overflow: hidden; padding-top: var(--spacing-lg); }
.logos { display: flex; flex-shrink: 0; align-items: center; animation: marquee 80s linear infinite; }
.marquee:hover .logos { animation-play-state: paused; }
.logos li { padding: 0 var(--spacing-lg); }
.logos img { height: var(--h); width: auto; max-width: none; }
@keyframes marquee { to { transform: translateX(-100%); } }
@media (prefers-reduced-motion: reduce) {
  .logos { flex-wrap: wrap; flex-shrink: 1; justify-content: center; gap: var(--spacing-lg) 0; animation: none; }
  .logos[aria-hidden] { display: none; }
}

/* Statement: one large line, centred on its band */
.statement { padding: 4% calc(7% + var(--spacing-md)); text-align: center; }
.statement p { font: calc(16px + 2vw)/var(--line-height-heading) var(--serif); text-wrap: balance; color: var(--cream); }

/* Quote, set off by a rule */
blockquote { padding-left: var(--spacing-md); border-left: 1px solid var(--accent); font-style: italic; }
figure { padding-top: var(--spacing-md); }
figcaption { padding-top: var(--spacing-md); }

/* Grant FAQs: each answer's row grows from 0 to its natural height, then its text fades in, like the homepage accordion.
   A closed answer is also hidden from screen readers (visibility waits for the close to finish) */
.faqs { display: flex; flex-direction: column; align-items: center; padding: 6% var(--spacing-md); background: var(--cream); color: var(--ink); --accent: #a1503f; } /* darker accent on cream, 5:1 */
.faqs .text, .faq { width: 100%; max-width: 1100px; }
.faqs .text { padding-bottom: var(--spacing-lg); text-align: center; }
.faqs h2 { color: var(--ink); }
.faq { display: flex; flex-direction: column; gap: var(--spacing-md); }
.faq > li { border: 1px solid var(--ink); }
.faq button { display: flex; align-items: center; justify-content: space-between; gap: var(--spacing-md); width: 100%; padding: var(--spacing-md); font: calc(16px + 1.4vw)/1.1 var(--serif); text-align: left; color: var(--green); }
.faq button:hover, .faq button[aria-expanded="true"] { background: var(--sand); }
.faq button::after { content: "+"; content: "+" / ""; font: 28px/1 "DM Sans", sans-serif; color: var(--ink); }
.faq button[aria-expanded="true"]::after { content: "−"; content: "−" / ""; }
.answer { display: grid; grid-template-rows: minmax(0, 0fr); overflow: hidden; visibility: hidden; transition: grid-template-rows .3s ease, visibility .3s; }
[aria-expanded="true"] + .answer { grid-template-rows: minmax(0, 1fr); visibility: visible; }
.answer > div { min-height: 0; padding: var(--spacing-md); }
[aria-expanded="true"] + .answer > div > * { animation: fade .3s .3s backwards; }
.answer > div > :not(:last-child) { padding-bottom: var(--spacing-sm); }
.answer ul { padding-left: var(--spacing-md); list-style: disc; }
.answer li + li { padding-top: var(--spacing-xs); }

/* Contact form: labels above their fields, names and contact details two to a row. The submit button is green, since the section is cream */
.contact { display: grid; grid-template-columns: 1fr 1fr; gap: var(--spacing-md); padding-top: var(--spacing-sm); text-align: left; }
.contact label { display: flex; flex-direction: column; gap: var(--spacing-xs); font-size: 14px; }
.contact .wide { grid-column: 1 / -1; }
.contact input, .contact select, .contact textarea { width: 100%; padding: var(--spacing-sm); border: 1px solid var(--ink); border-radius: 0; background: none; font: inherit; font-size: 16px; color: var(--ink); } /* 16px keeps iOS from zooming in */
/* Dropdowns draw their own chevron: the native one sits flush against the border in Chrome */
.contact select { -webkit-appearance: none; appearance: none; padding-right: calc(var(--spacing-md) + 12px); background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' fill='none' stroke='%2318262b' stroke-width='1.5'%3E%3Cpath d='M1 1l5 5 5-5'/%3E%3C/svg%3E") right var(--spacing-sm) center no-repeat; }
.contact .detail { animation: fade .3s; } /* fades in when "Something else" reveals it */
.contact [hidden] { display: none; }
.contact .trap { position: absolute; left: -9999px; } /* the honeypot: off screen, only bots fill it in */
.contact .cf-turnstile { min-height: 65px; } /* the Turnstile check's height, held before its script loads so the button doesn't jump */
.contact .btn { justify-self: start; padding: var(--spacing-sm) var(--spacing-md); background: var(--green); color: var(--cream); }
.contact .btn:hover { background: var(--ink); color: var(--cream); }

/* Thank-you page: the message centred on the screen */
.thanks { display: grid; place-items: center; }
.thanks .text { max-width: 760px; }

/* Closing call to action */
.closing { padding: 6% var(--spacing-md); text-align: center; background: var(--ink); }
.closing .buttons { justify-content: center; }

/* Footer */
footer { display: grid; grid-template-columns: repeat(3, 1fr); align-items: center; padding: .5% 3%; color: var(--sand); }
footer p { font-size: 14px; line-height: 1.2; text-align: center; }

@media (min-width: 993px) {
  .show-md-and-down { display: none; }
  .hero > .text { padding: calc(8% + var(--spacing-sm)) var(--spacing-lg) calc(8% + var(--spacing-sm)) calc(7% + var(--spacing-md)); }
}

@media (max-width: 992px) {
  :root { --header-height: 70px; }
  header { padding: 0 var(--spacing-md); }
  header img { width: 150px; }
  footer { padding-block: var(--spacing-sm); }

  /* Menu: a full-screen panel that fades in and out, its links starting right under the header; the logo and burger stay on top of it */
  header > a { position: relative; z-index: 11; }
  .burger { display: flex; }
  nav { position: fixed; inset: 0; z-index: 10; display: flex; flex-direction: column; align-items: center; padding: calc(var(--header-height) + var(--spacing-md)) var(--spacing-md) var(--spacing-lg); overflow-y: auto; background: var(--green); opacity: 0; visibility: hidden; transition: opacity .4s, visibility .4s; }
  .open nav { opacity: 1; visibility: visible; }
  nav ul { flex-direction: column; align-items: stretch; gap: 0; width: 100%; max-width: 600px; counter-reset: menu; }
  /* Each page is a ruled row, numbered like the portfolio tabs and ending in an arrow; the rule turns accent under the page you're on. The rows rise in one after another */
  nav li { opacity: 0; transform: translateY(var(--spacing-md)); transition: opacity .4s, transform .4s ease; }
  .open nav li { opacity: 1; transform: none; }
  .open nav li:nth-child(2) { transition-delay: .06s; }
  .open nav li:nth-child(3) { transition-delay: .12s; }
  .open nav li:nth-child(4) { transition-delay: .18s; }
  nav a { display: flex; align-items: baseline; gap: var(--spacing-md); padding: var(--spacing-md) 0; border-bottom-color: rgb(247 243 236 / .2); font: 36px/var(--line-height-heading) var(--serif); letter-spacing: -.02em; text-transform: none; }
  nav li:first-child a { border-top: 1px solid rgb(247 243 236 / .2); }
  nav a::before { counter-increment: menu; content: counter(menu, decimal-leading-zero); font: 12px "DM Sans", sans-serif; letter-spacing: normal; color: var(--accent); }
  nav a::after { content: "↗"; content: "↗" / ""; flex: 1; text-align: right; font: 20px/1 "DM Sans", sans-serif; color: var(--accent); }
  nav li:last-child { padding-top: var(--spacing-lg); }
  nav .cta { display: block; padding: var(--spacing-md); text-align: center; font: 600 14px/1.2 "DM Sans", sans-serif; letter-spacing: .12em; text-transform: uppercase; }
  nav .cta::before, nav .cta::after { content: none; }
  .hero, .look, .founder { grid-template-columns: 1fr; }
  .hero .text, .look .text, .portfolio > .text, .work > .text, .founder .text, .tabs, .cards, .more { padding-inline: var(--spacing-md); }
  .look .list { padding: var(--spacing-md) var(--spacing-md) 0; }
  .look .item { gap: var(--spacing-md); }
  .tab { font-size: 26px; }
  .cards > li { padding: var(--spacing-md); }
  .cards h3, .people h3, .companies h3, .grants h3 { font-size: 37px; }
  .founder .photo { min-height: 400px; }
  .split { grid-template-columns: 1fr; }
  .split .text, .split > p, .split > .text + .text, .team, .sector, .supporters, .statement { padding-inline: var(--spacing-md); }
  .split > p, .split > .text + .text { padding-top: 0; }
  .split .photo { min-height: 300px; }
  .people { grid-template-columns: repeat(3, 1fr); }
  .companies { grid-template-columns: repeat(2, 1fr); }
  .company, .grants { padding-inline: var(--spacing-md); }
  .show-lg { display: none; }
}

@media (max-width: 768px) {
  br { display: none; }

  :root { --header-height: 86px; }
  header { padding: 0 var(--spacing-xs) 0 var(--spacing-sm); }
  header img { width: 200px; }

  .hero h1 { font-size: 55px; }
  .text { text-align: center; }
  .eyebrow, .buttons { justify-content: center; }
  .look, .work { padding: var(--spacing-lg) 0; }
  .portfolio { padding-top: var(--spacing-lg); }
  .look .text, .portfolio > .text, .work > .text { padding-top: 0; }
  .hero .text { padding: var(--spacing-lg) var(--spacing-md) calc(8% + var(--spacing-md)); }
  .hero .photo { min-height: 300px; }

  .tabs { display: block; }
  .tab { display: grid; grid-template-columns: auto 1fr auto; padding: var(--spacing-md); font-size: 28px; }
  .tab::after { content: ""; align-self: center; width: 8px; height: 8px; border: solid; border-width: 0 2px 2px 0; transform: rotate(45deg); }
  .tab[aria-expanded="true"]::after { transform: rotate(225deg); }
  /* Accordion: every panel stays in the layout and its row grows from 0 to its natural height */
  .panel { display: grid; grid-template-rows: minmax(0, 0fr); transition: grid-template-rows .3s ease; }
  .tab[aria-expanded="true"] + .panel { grid-template-rows: minmax(0, 1fr); animation: none; }
  .body { min-height: 350px; }
  .panel h3 { font-size: 42px; }
  .tab[aria-expanded="true"] + .panel .body > * { animation: fade .3s .3s backwards; } /* text fades in once the panel is open */

  .cards { grid-template-columns: 1fr; }
  .cards h3, .people h3, .companies h3, .grants h3 { font-size: 32px; }
  .cards > li { --right: 0 0; } /* stacked cards: no side lines, and each card's top line is the bottom of the one above */
  .cards > :not(:last-child) { --bottom: 0 0; }

  .founder .photo { min-height: 300px; }
  .founder .text { padding: var(--spacing-lg) var(--spacing-md); }

  .split > p { text-align: center; }
  .people, .companies { grid-template-columns: 1fr; }
  .contact { grid-template-columns: 1fr; }
  .logos li { padding: 0 var(--spacing-md); }
  .logos img { height: calc(var(--h) * .66); }
  .team, .sector, .supporters, .company, .grants, .statement, .closing { padding-block: var(--spacing-lg); }

  footer { grid-template-columns: 1fr; justify-items: center; gap: var(--spacing-sm); padding: var(--spacing-lg) 3%; }
}

@media (prefers-reduced-motion: reduce) {
  *, ::before, ::after { transition: none !important; animation: none !important; }
}
