:root {
  color-scheme: light;
  --paper: #f7f7ed;
  --cream: #eeefe2;
  --ink: #213a2e;
  --muted: #52604f;
  --green: #173b2c;
  --green-deep: #102d22;
  --lime: #d9ecad;
  --line: #d3d9c8;
  --control-line: #7a896f;
  --serif: Georgia, 'Times New Roman', serif;
  --sans: -apple-system, BlinkMacSystemFont, 'Segoe UI', Arial, sans-serif;
  --text-body: 1.125rem;
  --text-small: 1rem;
  --text-meta: .875rem;
  --text-heading: clamp(1.875rem, 2.7vw + .5rem, 2.75rem);
  --space-1: .25rem;
  --space-2: .5rem;
  --space-3: .75rem;
  --space-4: 1rem;
  --space-5: 1.5rem;
  --space-6: 2rem;
  --space-7: 3rem;
  --space-8: 4rem;
  --space-9: 6rem;
  --gutter: clamp(1rem, 4vw, 4rem);
  --max: 78rem;
  --header-h: 5rem;
}

/* Type uses rem units so browser text-size preferences remain effective. */
*, *::before, *::after { box-sizing: border-box; }
html { font-size: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--header-offset, var(--header-h)) + 1.5rem); -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--paper); color: var(--ink); font-family: var(--sans); font-size: var(--text-body); line-height: 1.7; -webkit-font-smoothing: antialiased; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; cursor: pointer; }
a, button { -webkit-tap-highlight-color: transparent; }
img, svg { display: block; max-width: 100%; }
[hidden] { display: none !important; }
button:focus-visible, a:focus-visible, summary:focus-visible { outline: 3px solid #3b642e; outline-offset: 4px; }
::selection { background: var(--lime); color: var(--green-deep); }
h1, h2, h3, h4, p, dd, span, a, summary { overflow-wrap: anywhere; }
p { max-width: 66ch; }
.container { width: min(calc(100% - var(--gutter) * 2), var(--max)); margin-inline: auto; }
.section { padding-block: clamp(4rem, 7vw, 6rem); }
.eyebrow, .section-label { font-size: var(--text-meta); line-height: 1.5; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; }
.eyebrow { display: flex; align-items: center; gap: var(--space-2); }
.eyebrow::before { content: ''; width: .375rem; height: .375rem; border-radius: 50%; background: currentColor; flex: 0 0 .375rem; }
.section-label { display: flex; align-items: baseline; gap: var(--space-3); color: var(--muted); }
.section-label span:first-child { color: #526744; flex-shrink: 0; }
.section-heading { font-family: var(--serif); font-size: var(--text-heading); line-height: 1.15; font-weight: 400; letter-spacing: -.025em; margin: var(--space-5) 0; }
.section-heading em { color: #526e3c; font-weight: 400; }
.intro { font-size: var(--text-body); line-height: 1.7; color: var(--muted); max-width: 60ch; margin: 0; }
.section-top { display: grid; gap: var(--space-5); margin-bottom: var(--space-7); }
.section-top .section-heading { margin-bottom: 0; }
.section-top .intro { max-width: 40ch; }
.arrow { width: 1.25rem; height: 1.25rem; flex: 0 0 1.25rem; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.pill { display: inline-flex; align-items: center; gap: var(--space-2); max-width: 100%; border: 1px solid var(--line); border-radius: 2rem; padding: .5rem .75rem; font-size: var(--text-meta); font-weight: 600; line-height: 1.5; }
.pill::before { content: ''; width: .375rem; height: .375rem; border-radius: 50%; background: currentColor; flex: 0 0 .375rem; }
.pill.complete { color: #355329; background: #edf2e2; border-color: #bdcba9; }
.text-link { display: inline-flex; align-items: center; justify-content: center; gap: var(--space-3); min-height: 2.75rem; padding: .5rem 0; border-bottom: 1px solid currentColor; font-size: var(--text-small); font-weight: 600; line-height: 1.5; }
.text-link .arrow { transition: transform .2s; }
.text-link:hover .arrow { transform: translate(2px, -2px); }
.button { display: inline-flex; align-items: center; justify-content: center; gap: var(--space-4); min-height: 3rem; border: 1px solid var(--green); border-radius: .25rem; background: var(--green); color: var(--paper); padding: .75rem 1.5rem; font-size: var(--text-small); font-weight: 600; line-height: 1.5; transition: background .2s; }
.button:hover { background: #2b5138; }
.skip-link { position: fixed; z-index: 200; top: 1rem; left: 1rem; min-height: 2.75rem; padding: .75rem 1rem; background: var(--green); color: white; transform: translateY(-200%); }
.skip-link:focus { transform: translateY(0); }

/* Navigation controls have a minimum 44 by 44 CSS pixel hit area. */
.site-header { position: sticky; top: 0; z-index: 50; background: var(--paper); border-bottom: 1px solid var(--line); }
.header-inner { position: relative; min-height: var(--header-h); display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; column-gap: .5rem; row-gap: .5rem; padding-block: .75rem; }
.wordmark { display: flex; align-items: center; gap: .5rem; min-height: 2.75rem; min-width: 0; }
.brand-mark { width: 1.75rem; height: 2.25rem; flex: 0 0 1.75rem; }
.brand-name { font-size: 1.125rem; font-weight: 750; line-height: 1.25; letter-spacing: -.025em; }
.brand-name small { display: none; }
.desktop-nav { display: none; }
.header-actions { display: flex; flex-wrap: wrap; align-items: center; gap: .5rem; min-width: 0; max-width: 100%; }
.languages { display: flex; align-items: center; gap: .25rem; font-size: var(--text-meta); line-height: 1.5; }
.languages span { display: none; }
.languages button { display: grid; place-items: center; min-width: 2.75rem; min-height: 2.75rem; padding: .5rem; border: 0; border-radius: .25rem; background: transparent; color: var(--muted); font-size: var(--text-meta); line-height: 1.5; }
.languages button[aria-pressed="true"] { background: var(--green); color: var(--paper); font-weight: 700; }
.header-contact { display: none; }
.menu-toggle { display: flex; align-items: center; justify-content: center; flex: 0 0 2.75rem; width: 2.75rem; height: 2.75rem; border: 1px solid var(--control-line); border-radius: .25rem; background: transparent; }
.menu-icon { position: relative; width: 1.125rem; height: .875rem; border-block: 1.5px solid currentColor; }
.menu-icon::after { content: ''; position: absolute; top: .3125rem; left: 0; width: 1.125rem; border-top: 1.5px solid currentColor; }
.mobile-nav { position: absolute; top: 100%; left: 0; right: 0; display: flex; flex-direction: column; gap: 0; max-height: calc(100dvh - var(--header-offset, var(--header-h))); min-height: min(36rem, calc(100dvh - var(--header-offset, var(--header-h)))); overflow-y: auto; overscroll-behavior: contain; padding: 1rem var(--gutter) 2rem; background: var(--paper); border-bottom: 1px solid var(--control-line); }
.mobile-nav a { display: flex; align-items: baseline; gap: 1rem; min-height: 3.5rem; padding: 1rem 0; border-bottom: 1px solid var(--line); font-family: var(--serif); font-size: 1.5rem; line-height: 1.5; }
.mobile-nav a small { flex: 0 0 1.5rem; font-family: var(--sans); font-size: var(--text-meta); color: var(--muted); }
.reading-progress { position: absolute; bottom: -1px; left: 0; width: 100%; height: 2px; background: var(--green); transform-origin: left; transform: scaleX(0); pointer-events: none; }

.hero { padding-top: var(--space-6); }
.hero-meta { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: baseline; gap: var(--space-4); margin-bottom: var(--space-6); }
.hero-meta .eyebrow { color: var(--muted); }
.project-code { font-size: var(--text-meta); line-height: 1.5; color: var(--muted); letter-spacing: 0; }
.hero-grid { display: grid; grid-template-columns: minmax(0,1fr); align-items: center; gap: var(--space-7); }
.hero-grid > * { min-width: 0; }
.hero-copy { padding: 0; }
.hero-title { font-family: var(--serif); font-size: clamp(2.5rem, 4vw, 3rem); line-height: 1.08; font-weight: 400; letter-spacing: -.035em; margin: 0 0 var(--space-6); }
.hero-title em { color: #526e3c; font-weight: 400; }
.hero-description { max-width: 48ch; margin: 0 0 var(--space-6); font-size: var(--text-body); line-height: 1.7; color: var(--muted); }
.hero-description strong { color: var(--ink); font-weight: 600; }
.hero-buttons { display: flex; flex-wrap: wrap; align-items: center; gap: var(--space-5); }
.hero-note { display: flex; align-items: baseline; gap: var(--space-3); margin-top: var(--space-5); font-size: var(--text-small); line-height: 1.6; color: var(--muted); }
.hero-note::before { content: ''; width: 1.5rem; border-top: 1px solid var(--control-line); flex: 0 0 1.5rem; }
.botanical { position: relative; isolation: isolate; width: 100%; min-height: 30rem; align-self: stretch; overflow: hidden; background: var(--green); border-radius: .5rem; }
.botanical::after { content: ''; position: absolute; inset: 0; z-index: 2; background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 180 180' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.88' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Cpath fill='%23fff' opacity='.15' filter='url(%23n)' d='M0 0h180v180H0z'/%3E%3C/svg%3E"); opacity: .18; pointer-events: none; }
.specimen-art { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; }
.specimen-top { position: absolute; top: 1.5rem; left: 1.5rem; right: 1.5rem; z-index: 3; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: .5rem 1rem; color: #e1ebd3; font-size: var(--text-meta); line-height: 1.5; letter-spacing: .02em; }
.specimen-top .cross { display: none; }
.specimen-index { display: none; }
.specimen-bottom { position: absolute; bottom: 1.5rem; left: 1.5rem; right: 1.5rem; z-index: 3; display: flex; align-items: end; justify-content: space-between; flex-wrap: wrap; gap: 1rem; }
.specimen-bottom p { margin: 0; color: #e1ebd3; font-size: var(--text-meta); line-height: 1.6; letter-spacing: .02em; }
.specimen-bottom strong { display: block; margin-top: .25rem; color: var(--paper); font-family: var(--serif); font-weight: 400; font-size: 1.75rem; line-height: 1.25; letter-spacing: -.02em; }
.trl-tag { display: inline-flex; align-items: center; gap: .75rem; padding: .5rem .75rem; border: 1px solid #8caa75; border-radius: 2rem; color: var(--lime); font-size: var(--text-meta); line-height: 1.5; }
.botanical-label { display: none; }
.hero-stats { display: grid; grid-template-columns: minmax(0,1fr); gap: 0; margin-top: var(--space-7); border-block: 1px solid var(--line); }
.hero-stat { min-width: 0; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1rem; padding: 1.5rem 0; border-bottom: 1px solid var(--line); }
.hero-stat:last-child { border: 0; }
.hero-stat strong { font-family: var(--serif); font-size: 2rem; line-height: 1.25; font-weight: 400; letter-spacing: -.025em; }
.hero-stat strong small { margin-left: .5rem; font-family: var(--sans); font-size: var(--text-meta); letter-spacing: 0; }
.hero-stat span { color: var(--muted); font-size: var(--text-small); line-height: 1.6; }
/* Official project identity leads the page, before the sticky navigation. */
.project-masthead { padding-top: var(--space-4); padding-bottom: var(--space-7); }
.partners { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); align-items: center; gap: .75rem; padding-block: var(--space-4); border-bottom: 1px solid var(--line); }
.partner { display: flex; align-items: center; justify-content: center; min-width: 0; }
.partner + .partner { border-left: 1px solid var(--line); }
.partner-logo { flex: 0 1 auto; min-width: 0; max-width: 100%; width: 6rem; height: 5rem; display: flex; align-items: center; justify-content: center; background: white; padding: .25rem; border-radius: .25rem; }
.partner-logo img { width: 100%; height: 100%; object-fit: contain; }
.aectra-logo { flex-direction: column; gap: .125rem; }
/* The supplied Aectra image places a printed caption below the mark. */
.aectra-mark { display: block; width: 100%; aspect-ratio: 366 / 265; overflow: hidden; }
.aectra-mark img { height: auto; }
.aectra-logo .aectra-mark { flex: none; max-width: 4.125rem; }
.aectra-caption { color: var(--ink); font-size: .5625rem; font-weight: 600; line-height: 1.1; text-align: center; }
.partner p { display: none; min-width: 0; margin: 0; color: var(--muted); font-size: var(--text-meta); line-height: 1.5; }
.partner strong { display: block; margin-block: .25rem; color: var(--ink); font-weight: 600; font-size: var(--text-small); }
.project-funding { max-width: 112ch; margin: var(--space-5) auto; color: var(--muted); font-size: var(--text-small); line-height: 1.65; text-align: center; }
.project-title { max-width: 46ch; margin: 0 auto; color: var(--green); font-family: var(--serif); font-size: var(--text-heading); font-weight: 400; line-height: 1.18; letter-spacing: -.025em; text-align: center; text-wrap: balance; }
.project-acronym { display: inline-block; color: #526e3c; font-size: .75em; font-weight: 400; letter-spacing: -.01em; white-space: nowrap; }

.about-grid { display: grid; grid-template-columns: minmax(0,1fr); gap: var(--space-7); }
.about-text .intro { margin-bottom: var(--space-5); }
.about-aside { min-width: 0; }
.project-name { font-size: 1.5rem; font-weight: 500; line-height: 1.5; letter-spacing: -.015em; margin: var(--space-5) 0; }
.project-name-en { font-family: var(--serif); font-style: italic; font-size: var(--text-body); line-height: 1.6; color: var(--muted); margin: 0 0 var(--space-6); }
.funding-breakdown { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: baseline; gap: .5rem 1rem; margin-top: var(--space-6); font-size: var(--text-small); }
.funding-breakdown strong { font-weight: 600; }
.funding-breakdown > span { color: var(--muted); }
.budget-bar { display: flex; gap: .25rem; height: .5rem; margin-top: var(--space-4); }
.budget-bar span:first-child { width: 90%; background: var(--green); border-radius: .25rem 0 0 .25rem; }
.budget-bar span:last-child { width: 10%; background: #88a15d; border-radius: 0 .25rem .25rem 0; }
.budget-legend { display: flex; flex-wrap: wrap; justify-content: space-between; gap: .75rem 1.5rem; margin: var(--space-4) 0 var(--space-6); }
.budget-legend span { color: var(--muted); font-size: var(--text-meta); line-height: 1.6; }
.budget-legend i { display: inline-block; width: .5rem; height: .5rem; margin-right: .5rem; background: var(--green); }
.budget-legend > span:last-child i { background: #88a15d; }
.project-details { margin-top: var(--space-5); border-block: 1px solid var(--line); }
.project-details summary { display: flex; align-items: center; justify-content: space-between; gap: 1rem; min-height: 3rem; padding: 1rem 0; font-size: var(--text-small); font-weight: 600; line-height: 1.5; list-style: none; cursor: pointer; }
.project-details summary::-webkit-details-marker, .deliverables summary::-webkit-details-marker { display: none; }
.project-details summary::after { content: '+'; font-size: 1.5rem; line-height: 1; flex: 0 0 1rem; }
.project-details[open] summary::after { content: '−'; }
.facts { margin: 0 0 1rem; font-size: var(--text-small); line-height: 1.6; }
.facts div { display: grid; grid-template-columns: minmax(0,1fr); gap: .5rem; padding: 1rem 0; border-top: 1px solid var(--line); }
.facts dt { color: var(--muted); }
.facts dd { margin: 0; min-width: 0; }
.method-note { display: flex; align-items: start; gap: 1rem; padding: 1.5rem; margin-top: var(--space-6); border-radius: .25rem; background: #e9eddb; }
.method-note svg { width: 2rem; height: 2rem; flex: 0 0 2rem; margin-top: .25rem; }
.method-note p { margin: 0; min-width: 0; font-size: var(--text-small); line-height: 1.7; color: var(--muted); }
.method-note strong { display: block; margin-bottom: .5rem; color: var(--ink); font-size: var(--text-small); font-weight: 600; }

.objectives { background: var(--cream); border-block: 1px solid var(--line); }
.objectives-subheading { margin: 0 0 var(--space-5); font-size: 1.25rem; font-weight: 600; }
.objective-grid { display: grid; grid-template-columns: minmax(0,1fr); gap: var(--space-7); }
.objective { position: relative; min-width: 0; border-top: 1px solid #a6b497; padding-top: var(--space-5); }
.objective::before { content: ''; position: absolute; top: -.25rem; left: 0; width: .5rem; height: .5rem; border-radius: 50%; background: var(--green); outline: .25rem solid var(--cream); }
.objective-step { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 1rem; color: var(--muted); font-size: var(--text-meta); line-height: 1.5; }
.trl { padding: .25rem .5rem; border: 1px solid #a6b497; border-radius: .25rem; font-size: var(--text-meta); }
.objective-icon { width: 2.75rem; height: 2.75rem; margin: 1.5rem 0; color: #426237; }
.objective h4 { font-family: var(--serif); font-size: 2rem; font-weight: 400; line-height: 1.2; letter-spacing: -.02em; margin: 0 0 1rem; }
.objective p { margin: 0; font-size: var(--text-body); line-height: 1.7; color: var(--muted); }
.objective small { display: block; margin-top: 1.5rem; color: var(--muted); font-size: var(--text-meta); line-height: 1.6; }
/* Results and PDF downloads */
.results-list { border-top: 1px solid var(--line); }
.result-row { display: grid; grid-template-columns: 2.25rem minmax(0,1fr); align-items: start; gap: .75rem 1rem; padding: var(--space-6) 0; border-bottom: 1px solid var(--line); }
.result-number { grid-column: 1; grid-row: 1 / 3; font-family: var(--serif); font-size: 1.75rem; line-height: 1.5; color: #526744; }
.result-body { grid-column: 2; grid-row: 2; min-width: 0; }
.result-status { grid-column: 2; grid-row: 1; justify-self: start; min-width: 0; max-width: 100%; }
.result-heading { margin: 0 0 .75rem; font-size: 1.5rem; font-weight: 600; line-height: 1.4; letter-spacing: -.015em; }
.result-copy { margin: 0; color: var(--muted); font-size: var(--text-body); line-height: 1.7; }
.deliverables { margin-top: var(--space-4); }
.deliverables summary { display: inline-flex; align-items: center; gap: .75rem; min-height: 2.75rem; padding: .5rem 0; color: #365a2c; font-size: var(--text-small); font-weight: 600; line-height: 1.5; list-style: none; cursor: pointer; }
.deliverables summary::before { content: '+'; flex: 0 0 .75rem; font-size: 1.25rem; }
.deliverables[open] summary::before { content: '−'; }
.report-list { list-style: none; margin: var(--space-4) 0 0; padding: 0; border-top: 1px solid var(--line); }
.report-list li { border-bottom: 1px solid var(--line); }
.report-list li:last-child { border-bottom: 0; }
.report-icon { width: 1.25rem; height: 1.5rem; flex: 0 0 1.25rem; margin-top: .25rem; fill: none; stroke: #5c7049; stroke-width: 1.2; }
.pdf-download { display: flex; align-items: start; gap: .75rem; padding-block: .75rem; font-size: var(--text-small); line-height: 1.6; }
.pdf-download > span { min-width: 0; }
.pdf-action { display: block; width: fit-content; margin-top: .25rem; color: #365a2c; font-size: var(--text-meta); font-weight: 600; text-decoration: underline; text-underline-offset: .2em; }
.pdf-download:hover .pdf-action { text-decoration-thickness: .125em; }
.results-footnote { display: grid; grid-template-columns: minmax(0,1fr); gap: 1.5rem; margin-top: var(--space-6); }
.result-note { display: grid; grid-template-columns: 1.5rem minmax(0,1fr); align-items: start; gap: 1rem; }
.result-note-icon { width: 1.5rem; height: 1.5rem; margin-top: .125rem; color: #426237; }
.result-note h3 { margin: 0 0 .35rem; font-size: var(--text-small); font-weight: 600; line-height: 1.5; }
.result-note p { margin: 0; font-size: var(--text-small); line-height: 1.7; color: var(--muted); }
.result-note p a { text-decoration: underline; text-underline-offset: .2em; }
.result-note .pdf-download { margin-top: 1rem; border-top: 1px solid var(--line); }

/* Research gallery */
.gallery-section { padding-top: 0; }
.gallery-heading { display: grid; gap: 1.5rem; margin-bottom: var(--space-6); }
.gallery-heading h2 { margin: 0; font-family: var(--serif); font-size: clamp(1.75rem,2.5vw + 1rem,2.5rem); line-height: 1.2; font-weight: 400; letter-spacing: -.02em; }
.gallery-heading p { margin: 1rem 0 0; font-size: var(--text-body); line-height: 1.7; color: var(--muted); }
.gallery-hint { display: inline-flex; align-items: center; gap: .75rem; font-size: var(--text-meta); line-height: 1.6; color: var(--muted); }
.gallery-grid { display: grid; grid-template-columns: minmax(0,1fr); gap: var(--space-6); }
.gallery-item { min-width: 0; margin: 0; }
.gallery-trigger { position: relative; display: block; width: 100%; padding: 0; border: 0; border-radius: .25rem; aspect-ratio: 1.5; overflow: hidden; background: #e8ebdf; }
.gallery-trigger img { width: 100%; height: 100%; object-fit: contain; transition: transform .4s; }
.gallery-trigger:hover img { transform: scale(1.025); }
.gallery-expand { position: absolute; bottom: .75rem; right: .75rem; display: grid; place-items: center; width: 2.75rem; height: 2.75rem; border: 1px solid var(--control-line); border-radius: 50%; background: var(--paper); color: var(--green); }
.gallery-expand svg { width: 1.25rem; height: 1.25rem; }
.gallery-groups { grid-column: 1 / -1; display: grid; gap: var(--space-6); }
.gallery-views { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: .75rem; }
.gallery-views .gallery-trigger { aspect-ratio: 16 / 9; }
.gallery-views--evaluation { grid-template-columns: repeat(3,minmax(0,1fr)); }
.gallery-views--evaluation .gallery-trigger { aspect-ratio: 3 / 4; }
.gallery-views .gallery-expand { bottom: .375rem; right: .375rem; width: 2rem; height: 2rem; }
.gallery-views .gallery-expand svg { width: 1rem; height: 1rem; }
.gallery-item figcaption { display: flex; align-items: baseline; gap: .75rem; margin-top: 1rem; font-size: var(--text-small); line-height: 1.65; color: var(--muted); }
.gallery-item figcaption > span:first-child { font-size: var(--text-meta); flex-shrink: 0; }
.gallery-item figcaption strong { display: block; margin-bottom: .5rem; color: var(--ink); font-size: var(--text-body); font-weight: 600; line-height: 1.5; }
.gallery-provenance { display: flex; align-items: baseline; gap: .75rem; margin: var(--space-6) 0 0; font-size: var(--text-meta); line-height: 1.6; color: var(--muted); }
.gallery-provenance::before { content: ''; width: .375rem; height: .375rem; border-radius: 50%; background: #61784d; flex: 0 0 .375rem; }
.lightbox { width: min(64rem,calc(100% - 2rem)); max-height: calc(100dvh - 2rem); padding: 1rem; overflow: auto; border: 1px solid #8da07c; border-radius: .5rem; background: var(--green-deep); color: var(--paper); }
.lightbox::backdrop { background: rgba(10,24,17,.9); backdrop-filter: blur(6px); }
/* Contain modal gestures without changing the page's scroll container. */
dialog:modal { overscroll-behavior: contain; }
dialog:modal::backdrop { overflow: hidden; overscroll-behavior: contain; }
.lightbox :focus-visible { outline-color: var(--lime); }
.lightbox-toolbar { display: flex; justify-content: space-between; align-items: center; gap: 1rem; margin-bottom: 1rem; }
.lightbox-count { font-size: var(--text-small); color: #d7e0cc; }
.icon-button { display: grid; place-items: center; flex: 0 0 2.75rem; width: 2.75rem; height: 2.75rem; border: 1px solid #8da07c; border-radius: 50%; background: transparent; color: var(--paper); }
.icon-button:hover { background: #2b4b33; }
.lightbox-image { width: 100%; height: auto; max-height: 62dvh; object-fit: contain; }
.lightbox-footer { display: flex; justify-content: space-between; align-items: start; flex-wrap: wrap; gap: 1.5rem; margin-top: 1.5rem; }
.lightbox-caption { min-width: 0; flex: 1 1 18rem; margin: 0; max-width: 58ch; font-size: var(--text-small); line-height: 1.7; color: #e1ebd3; }
.lightbox-arrows { display: flex; gap: .75rem; flex-shrink: 0; margin-left: auto; }

.impact { position: relative; overflow: hidden; background: var(--green); color: var(--paper); }
.impact::before { content: ''; position: absolute; top: -14rem; right: -14rem; width: 40rem; height: 40rem; border: 1px solid #6f84593b; border-radius: 50%; box-shadow: 0 0 0 4rem #6f845912,0 0 0 8rem #6f845909; pointer-events: none; }
.impact .section-label, .impact .section-label span:first-child { color: #c4d4b2; }
.impact .section-heading em { color: var(--lime); }
.impact .intro { color: #d3dfc6; }
.impact-grid { position: relative; display: grid; grid-template-columns: minmax(0,1fr); gap: var(--space-6); margin-top: var(--space-7); }
.impact-stat { min-width: 0; border-top: 1px solid #8da07c; padding-top: var(--space-5); }
.impact-stat strong { display: block; font-family: var(--serif); font-size: 3.5rem; font-weight: 400; line-height: 1.2; letter-spacing: -.03em; color: var(--lime); }
.impact-stat strong span { font-size: .65em; }
.impact-stat h3 { margin: 1rem 0 .75rem; font-size: var(--text-body); font-weight: 600; line-height: 1.5; }
.impact-stat p { margin: 0; color: #d3dfc6; font-size: var(--text-small); line-height: 1.7; }
.impact-disclaimer { margin: var(--space-6) 0 0; max-width: 85ch; color: #c4d4b2; font-size: var(--text-meta); line-height: 1.7; }
.impact-bottom { position: relative; display: grid; grid-template-columns: minmax(0,1fr); gap: var(--space-6); margin-top: var(--space-6); padding-top: var(--space-6); border-top: 1px solid #8da07c; }
.impact-bottom h3 { margin: 0 0 .75rem; font-size: var(--text-body); font-weight: 600; line-height: 1.5; }
.impact-bottom p { margin: 0; font-size: var(--text-small); line-height: 1.7; color: #d3dfc6; }
.teams-grid { display: grid; grid-template-columns: minmax(0,1fr); gap: var(--space-7); }
.team-panel { min-width: 0; border-top: 1px solid var(--line); padding-top: var(--space-5); }
.team-institution { display: flex; align-items: center; flex-wrap: wrap; gap: 1.5rem; min-height: 6rem; margin-bottom: var(--space-5); }
.team-institution > div { flex: 1 1 12rem; min-width: 0; }
.team-institution > img { width: 6rem; height: 5rem; object-fit: contain; background: white; padding: .25rem; border-radius: .25rem; }
.team-institution h3 { margin: 0; font-size: 1.25rem; font-weight: 600; line-height: 1.5; }
.team-institution p { margin: .5rem 0 0; color: var(--muted); font-size: var(--text-small); line-height: 1.6; }
.team-members { list-style: none; margin: 0; padding: 0; }
.team-members li { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: var(--space-5) 0; border-top: 1px solid var(--line); }
.team-person { min-width: 0; font-size: var(--text-body); line-height: 1.6; }
.team-person small { display: block; margin-top: .5rem; font-size: var(--text-small); line-height: 1.6; color: var(--muted); }
.team-initial { display: grid; place-items: center; flex: 0 0 2.75rem; width: 2.75rem; height: 2.75rem; border: 1px solid #a6b497; border-radius: 50%; color: #426237; font-size: var(--text-meta); }
.team-note { margin: var(--space-5) 0 0; padding: var(--space-5); border-radius: .25rem; background: #e9eddb; color: #426237; font-family: var(--serif); font-size: 1.5rem; font-weight: 400; line-height: 1.5; letter-spacing: -.015em; }
.contact-wrap { padding-bottom: var(--space-8); }
.contact { padding: 1.5rem; border: 1px solid #c7d1b7; border-radius: .5rem; background: #e9eddb; }
.contact-top { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding-bottom: var(--space-6); border-bottom: 1px solid #b8c5a5; }
.contact-top .section-heading { margin: 1rem 0 0; }
.contact-symbol { display: none; }
.contact-grid { display: grid; grid-template-columns: minmax(0,1fr); gap: var(--space-6); padding-top: var(--space-6); }
.contact-card { min-width: 0; }
.contact-card + .contact-card { padding-top: var(--space-6); border-top: 1px solid #b8c5a5; }
.contact-card h3 { margin: 0 0 .75rem; font-size: 1.25rem; line-height: 1.5; font-weight: 600; }
.contact-card > p { margin: 0; color: var(--muted); font-size: var(--text-small); line-height: 1.6; }
.contact-email { display: flex; align-items: center; gap: .75rem; width: fit-content; max-width: 100%; min-height: 2.75rem; margin: 1.5rem 0 1rem; font-family: var(--serif); font-size: clamp(1.125rem,2vw + .5rem,1.75rem); line-height: 1.4; letter-spacing: -.015em; }
.email-address { min-width: 0; }
.contact-email:hover { color: #365a2c; }
.contact-details { color: var(--muted); font-size: var(--text-small); line-height: 1.7; }
.contact-details > span { display: block; margin-bottom: .5rem; }
.contact-details a { display: inline-block; min-height: 2.75rem; padding-block: .5rem; text-decoration: underline; text-underline-offset: .25rem; text-decoration-thickness: 1px; }
.contact-card .contact-person { margin-top: 1rem; font-size: var(--text-meta); line-height: 1.7; }
.site-footer { padding-bottom: var(--space-6); }
.funding-footer { display: flex; align-items: start; flex-wrap: wrap; gap: 1.5rem; padding-top: var(--space-6); border-top: 1px solid var(--line); }
.funding-footer img { width: 5rem; height: 4.5rem; flex: 0 0 5rem; object-fit: contain; background: white; padding: .25rem; }
.funding-footer p { flex: 1 1 24rem; min-width: 0; max-width: 85ch; margin: 0; color: var(--muted); font-size: var(--text-small); line-height: 1.7; }
.footer-bottom { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 1rem 1.5rem; margin-top: var(--space-6); padding-top: var(--space-5); border-top: 1px solid var(--line); color: var(--muted); font-size: var(--text-meta); line-height: 1.6; }
.footer-bottom a { display: inline-flex; align-items: center; gap: .75rem; min-height: 2.75rem; font-size: var(--text-small); }
.reveal { opacity: 1; transform: none; }
.js-animate .reveal.pending { opacity: 0; transform: translateY(1rem); }
.js-animate .reveal { transition: opacity .5s, transform .5s; }

@media (max-width: 23rem) {
  .project-masthead { padding-bottom: var(--space-6); }
  .project-title { font-size: 1.625rem; line-height: 1.25; }
  .brand-mark { display: none; }
  .brand-name { font-size: 1rem; }
  .wordmark { gap: 0; }
}
@media (min-width: 40rem) {
  .header-inner { column-gap: 1.5rem; }
  .brand-mark { width: 2.25rem; height: 2.75rem; flex-basis: 2.25rem; }
  .brand-name { font-size: 1.25rem; }
  .brand-name small { display: block; margin-top: .25rem; font-size: var(--text-meta); line-height: 1.4; letter-spacing: .02em; font-weight: 500; }
  .header-actions { gap: 1rem; }
  .botanical { min-height: 36rem; }
  .hero-stats { grid-template-columns: repeat(3,minmax(0,1fr)); gap: 1.5rem; }
  .hero-stat { display: block; margin-block: 1.5rem; padding: 0 1.5rem 0 0; border-bottom: 0; border-right: 1px solid var(--line); }
  .hero-stat > span { display: block; margin-top: .75rem; }
  .hero-stat:last-child { border: 0; }
  .facts div { grid-template-columns: minmax(7.5rem,.7fr) minmax(0,1.3fr); gap: 1rem; }
  .impact-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .contact { padding: var(--space-7); }
  .contact-symbol { display: block; width: 3.5rem; height: 3.5rem; flex: 0 0 3.5rem; fill: none; stroke: #526e3c; stroke-width: 1; }
  .lightbox { padding: 1.5rem; }
}
@media (min-width: 48rem) {
  .gallery-grid, .results-footnote { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .gallery-groups { grid-template-columns: minmax(0,1.55fr) minmax(0,1fr); }
  .gallery-heading { grid-template-columns: minmax(0,1fr) minmax(0,.6fr); align-items: end; gap: 2rem; }
  .gallery-hint { justify-self: end; max-width: 24ch; }
}
@media (min-width: 56rem) {
  .hero { padding-top: var(--space-7); }
  .hero-grid { grid-template-columns: minmax(0,1fr) minmax(0,1fr); gap: var(--space-7); }
  .botanical { min-height: 37.5rem; }
  .hero-title { font-size: var(--text-heading); }
  .partners { align-items: stretch; gap: var(--space-5); padding-block: var(--space-5); }
  .partner { flex-direction: column; justify-content: flex-start; gap: var(--space-4); text-align: center; }
  .partner + .partner { padding-left: var(--space-5); }
  .partner p { display: block; }
  .partners .partner-logo { flex: 0 0 auto; width: 9rem; height: 7.5rem; }
  .aectra-logo .aectra-mark { max-width: none; }
  .aectra-caption { display: none; }
  .project-acronym { font-size: 1em; }
  .teams-grid, .contact-grid { grid-template-columns: repeat(2,minmax(0,1fr)); gap: var(--space-7); }
  .contact-card + .contact-card { border-top: 0; padding-top: 0; }
}
@media (min-width: 64rem) {
  :root { --header-h: 6rem; }
  .header-inner { flex-wrap: wrap; }
  .desktop-nav { display: flex; flex-wrap: wrap; max-width: 100%; align-items: center; justify-content: end; gap: 1.5rem; margin-left: auto; }
  .desktop-nav a { display: inline-flex; align-items: center; min-width: 2.75rem; min-height: 2.75rem; color: var(--muted); font-size: var(--text-small); line-height: 1.5; text-underline-offset: .5rem; }
  .desktop-nav a:hover, .desktop-nav a[aria-current="location"] { color: var(--green); text-decoration: underline; }
  .menu-toggle, .mobile-nav { display: none; }
  .section-top { grid-template-columns: minmax(0,1.35fr) minmax(0,.8fr); align-items: end; gap: var(--space-7); }
  .section-top .intro { justify-self: end; }
  .about-grid { grid-template-columns: repeat(2,minmax(0,1fr)); gap: var(--space-7); }
  .objective-grid { grid-template-columns: repeat(3,minmax(0,1fr)); gap: var(--space-6); }
  .result-row { grid-template-columns: 2.5rem minmax(0,1fr) minmax(0,17rem); column-gap: var(--space-5); }
  .result-number { grid-row: 1; font-size: 2rem; }
  .result-body { grid-column: 2; grid-row: 1; }
  .result-status { grid-column: 3; grid-row: 1; justify-self: end; }
  .gallery-grid { grid-template-columns: repeat(4,minmax(0,1fr)); }
  .impact-grid { grid-template-columns: repeat(4,minmax(0,1fr)); }
  .impact-bottom { grid-template-columns: repeat(3,minmax(0,1fr)); }
}
@media (min-width: 75rem) {
  .partner { flex-direction: row; align-items: center; text-align: left; }
  .header-contact { display: inline-flex; align-items: center; gap: 1rem; min-height: 2.75rem; padding: .5rem 1rem; border: 1px solid var(--control-line); border-radius: .25rem; color: var(--green); font-size: var(--text-small); line-height: 1.5; }
  .header-contact:hover { background: var(--green); color: var(--paper); }
  .hero-grid { gap: var(--space-8); }
  .about-grid { gap: var(--space-8); }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; animation: none !important; }
  .js-animate .reveal.pending { opacity: 1; transform: none; }
}
@media print {
  .site-header, .hero-buttons, .hero-note, .gallery-expand, .gallery-hint, .lightbox, .footer-bottom a { display: none !important; }
  body { font-size: 12pt; color: #172a20; background: white; }
  .container { width: 100%; }
  .section { padding-block: 24pt; }
  .hero { padding-top: 0; }
  .project-title { font-size: 24pt; }
  .project-funding { font-size: 10pt; }
  .hero-title { font-size: 28pt; }
  .section-heading { font-size: 24pt; }
  .eyebrow, .section-label, .project-code, .pill, .pdf-action { font-size: 10pt; }
  .botanical { min-height: 340pt; }
  .impact, .contact, .botanical { print-color-adjust: exact; -webkit-print-color-adjust: exact; }
  .gallery-item, .team-members li { break-inside: avoid; }
  .reveal { opacity: 1 !important; transform: none !important; }
}
/* Native sharing with an accessible copy-link fallback. */
.footer-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 1rem 1.5rem; }
.share-button { display: inline-flex; align-items: center; justify-content: center; gap: .75rem; min-height: 2.75rem; padding: .5rem .75rem; background: transparent; border: 1px solid var(--control-line); border-radius: .25rem; color: var(--green); font-size: var(--text-small); line-height: 1.5; }
.share-button:hover { background: var(--cream); }
.share-dialog { width: min(34rem,calc(100% - 2rem)); max-height: calc(100dvh - 2rem); overflow: auto; margin: auto; padding: 1.5rem; border: 1px solid var(--control-line); border-radius: .5rem; background: var(--paper); color: var(--ink); }
.share-dialog::backdrop { background: rgba(10,24,17,.8); }
.share-dialog-top { display: flex; align-items: start; justify-content: space-between; gap: 1rem; margin-bottom: 1rem; }
.share-dialog h2 { font: 400 2rem/1.25 var(--serif); margin: 0; }
.share-dialog .icon-button { color: var(--green); border-color: var(--control-line); }
.share-dialog p, .share-dialog label { font-size: var(--text-small); line-height: 1.7; }
.share-dialog label { display: block; font-weight: 600; margin-top: 1.5rem; }
.share-url { width: 100%; min-height: 3rem; padding: .75rem; margin: .5rem 0 1rem; border: 1px solid var(--control-line); border-radius: .25rem; background: white; color: var(--ink); font: 400 1rem/1.5 var(--sans); }
.share-url:focus-visible { outline: 3px solid #3b642e; outline-offset: 3px; }
.share-copy-status { min-height: 1.7em; margin: 1rem 0 0; color: var(--muted); }
@media print {
  .footer-actions, .share-dialog { display: none !important; }
}
