/*
 * Plastic Evolution Initiative: shared styles, from the approved design (Brand Bible v1).
 *
 * Charcoal and white, with brand green used only on charcoal or as a fill, and a darker green for
 * text on white. Inter throughout. Each section block adds its own small stylesheet
 * (blocks/<name>/style.css) on top of this one.
 */

:root {
	--charcoal: #212121;
	--deep: #1A1A1A;
	--green: #5DBE2A;
	--green-hi: #79CF4A;
	--green-text: #2E6F10;
	--tint: #EDF6E6;
	--surface: #F3F4EF;
	--white: #FFFFFF;
	--ink: #212121;
	--body: #4A4A4A;
	--muted: #5C5C5C;
	--soft: #CCCCCC;
	--line: #DADBD4;
	--line-2: #C9CAC3;
	--field: #8A8B84;
	--sans: 'Inter', 'Helvetica Neue', Arial, sans-serif;
	--ease: cubic-bezier(.16, 1, .3, 1);
	--io: cubic-bezier(.76, 0, .24, 1);
	--spring: cubic-bezier(.34, 1.56, .64, 1);
	--fast: .2s;
	--gutter: clamp(20px, 4vw, 40px);
	--max: 1280px;
	--pad: clamp(72px, 9vw, 128px);
	--r: 4px;
	--r-card: 8px;
}
/* Big headings are set tight; on phones, where they wrap to two or three lines, they get a little more room. */
@media (max-width: 760px) { :root { --lh-head: 1.12; } }

/* Reset, kept small. */
*, *::before, *::after { box-sizing: border-box; }
html { color-scheme: only light; -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-padding-top: 24px; }
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }
body { margin: 0; background: var(--white); color: var(--ink); font-family: var(--sans); font-size: 16px; line-height: 1.6; -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; }
img, svg, video { display: block; max-width: 100%; }
img { height: auto; }
button, input, select, textarea { font: inherit; color: inherit; }
p, ul, ol, figure, blockquote, dl, dd { margin: 0; }
h1, h2, h3, h4 { margin: 0; }
a { color: var(--green-text); text-underline-offset: 4px; }
@media (hover: hover) { a:hover { color: var(--ink); } }
:focus-visible { outline: 3px solid var(--green-text); outline-offset: 3px; }
/* The focus ring keeps 3:1 against whatever it sits on: brand green on charcoal (header, footer, menu, dark
   cards and strips), dark green again on the white menu panels, and charcoal on the green band. */
:is(.on-dark, .sec--dark, .sec--deep, .card--dark, .masthead, .site-ft, .mm, .guide-strip) :focus-visible { outline-color: var(--green); }
.mega :focus-visible { outline-color: var(--green-text); }
.mega-card.is-dark :focus-visible { outline-color: var(--green); }
.sec--green :focus-visible { outline-color: var(--charcoal); }
[hidden] { display: none !important; }
main:focus { outline: none; }

/* Accessibility helpers. */
.sr-only { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
.skip { position: absolute; left: 16px; top: -100px; z-index: 1000; padding: 12px 20px; border-radius: var(--r); background: var(--green); color: var(--charcoal); font-weight: 700; font-size: 15px; text-decoration: none; }
.skip:focus { top: 12px; color: var(--charcoal); }

/* Layout. */
.wrap { width: 100%; max-width: var(--max); margin: 0 auto; padding-left: var(--gutter); padding-right: var(--gutter); }
.wrap--narrow { max-width: 1080px; }
.wrap--text { max-width: 820px; }
.sec { padding-top: var(--pad); padding-bottom: var(--pad); }
.sec--tight { padding-top: clamp(48px, 6vw, 80px); padding-bottom: clamp(48px, 6vw, 80px); }
.sec--flush-top { padding-top: 0; }
.sec--flush-bottom { padding-bottom: 0; }
.sec--surface { background: var(--surface); }
.sec--tint { background: var(--tint); }
.sec--dark { background: var(--charcoal); color: var(--white); }
.sec--deep { background: var(--deep); color: var(--white); }
/* Watermark: the PEI mark, faint brand green, rising from the bottom-right corner of charcoal sections
   and the footer. A background layer (no extra element), so it never catches taps. "body" outranks
   components that reset the background, such as the footer. Sizes and offsets are set so the mark stays
   clear of text: checked on every page at 14 widths from 320 to 1920px. */
body :is(.sec--dark, .site-ft) {
	--wm: 260px;
	background-image: url(../img/watermark.webp);
	background-repeat: no-repeat;
	background-size: var(--wm) auto;
	background-position: right calc(var(--wm) * -0.1) bottom calc(var(--wm) * -0.74);
}
/* The footer's columns and legal links reach its bottom-right corner, so there the mark hangs from the top. */
body .site-ft {
	--wm: 260px;
	background-position: right calc(var(--wm) * -0.25) top calc(var(--wm) * -0.62);
}
/* Pages that end on a charcoal section (About, Impact, Contact, 404): a hairline marks where the footer
   starts, and on wider screens only that section keeps its mark, rising from the line. Two half marks would
   otherwise meet at the join, and they cannot line up without crossing the footer's contact column. */
main:has(> .sec--dark:last-child) + .site-ft { border-top: 1px solid rgba(255, 255, 255, .12); }
@media (min-width: 761px) {
	main:has(> .sec--dark:last-child) + .site-ft { background-image: none; }
}
/* Phones: smaller, half below the bottom edge, in the space under the last line of text. */
@media (max-width: 760px) {
	body :is(.sec--dark, .site-ft) {
		--wm: 140px;
		background-position: right calc(var(--wm) * -0.3) bottom calc(var(--wm) * -0.55);
	}
}
.sec--green { background: var(--green); color: var(--charcoal); }
.sec--line { border-top: 1px solid var(--line); }
.sec--dark a:not(.btn), .sec--deep a:not(.btn) { color: var(--white); }
.stack > * + * { margin-top: var(--gap, 20px); }
.row { display: flex; flex-wrap: wrap; gap: var(--gap, 24px); align-items: center; }
.grid { display: grid; gap: var(--gap, 16px); grid-template-columns: repeat(auto-fit, minmax(var(--min, 240px), 1fr)); }
.split { display: flex; flex-wrap: wrap; gap: clamp(40px, 5vw, 72px); align-items: center; }
.split > * { flex: 1 1 440px; min-width: 0; }

/* Type. Hero 63 to 35, page hero 57 to 34, section 43 to 29. Headings are Inter ExtraBold. */
.display { font-weight: 800; font-size: clamp(35px, 4.65vw, 63px); line-height: max(1.02, var(--lh-head, 0)); letter-spacing: -.035em; }
.h1 { font-weight: 800; font-size: clamp(34px, 4.2vw, 57px); line-height: max(1.04, var(--lh-head, 0)); letter-spacing: -.035em; }
.h2 { font-weight: 800; font-size: clamp(29px, 3.19vw, 43px); line-height: max(1.06, var(--lh-head, 0)); letter-spacing: -.03em; }
.h3 { font-weight: 800; font-size: clamp(20px, 1.7vw, 24px); line-height: 1.2; letter-spacing: -.015em; }
.h4 { font-weight: 800; font-size: 18px; line-height: 1.3; }
.caps { font-weight: 800; font-size: 18px; letter-spacing: .08em; text-transform: uppercase; }
.accent { color: var(--green-text); }
.sec--dark .accent, .sec--deep .accent, .on-dark .accent { color: var(--green); }
.sec--green .accent { color: var(--charcoal); }
.lead { font-size: clamp(16px, 1.35vw, 18px); line-height: 1.6; color: var(--body); }
.sec--dark .lead, .sec--deep .lead, .on-dark .lead { color: var(--soft); }
.body { font-size: 16px; line-height: 1.65; color: var(--body); }
.sec--dark .body, .sec--deep .body { color: var(--soft); }
.small { font-size: 15px; line-height: 1.55; }
.measure { max-width: 62ch; }
.eyebrow { font-size: 13px; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; color: var(--green-text); line-height: 1.5; }
.sec--dark .eyebrow, .sec--deep .eyebrow, .on-dark .eyebrow, .card--dark .eyebrow { color: var(--green); }
.sec--green .eyebrow { color: var(--charcoal); }
.eyebrow--dash { display: flex; align-items: center; gap: 12px; color: var(--soft); }
.sec--dark .eyebrow--dash, .sec--deep .eyebrow--dash, .on-dark .eyebrow--dash { color: var(--soft); }
.eyebrow--dash::before { content: ""; width: 28px; height: 2px; background: var(--green); flex: none; }
.hd { display: grid; gap: 16px; max-width: 760px; }
.hd--center { margin-left: auto; margin-right: auto; text-align: center; justify-items: center; }
.hd-row { display: flex; flex-wrap: wrap; gap: 24px 64px; align-items: flex-end; justify-content: space-between; }
.hd-row > .hd { flex: 1 1 520px; min-width: 0; }
.hd-row > .lead { flex: 1 1 360px; min-width: 0; max-width: 460px; }
.prose { color: var(--body); line-height: 1.7; }
.prose > * + * { margin-top: 1em; }
.prose h2 { font-weight: 800; font-size: clamp(24px, 2.2vw, 30px); line-height: 1.15; letter-spacing: -.02em; color: var(--ink); margin-top: 1.6em; }
.prose h3 { font-weight: 800; font-size: 20px; color: var(--ink); margin-top: 1.4em; }
.prose ul, .prose ol { padding-left: 1.3em; }
.prose li + li { margin-top: .4em; }
.prose a { color: var(--green-text); }
.prose strong { color: var(--ink); }
.prose table { width: 100%; border-collapse: collapse; font-size: 15px; }
.prose th, .prose td { text-align: left; vertical-align: top; padding: 12px 14px; border-bottom: 1px solid var(--line); }
.prose th { background: var(--surface); font-weight: 700; color: var(--ink); }
.draft { display: inline-flex; align-items: center; padding: 4px 10px; border: 1px dashed var(--line-2); border-radius: var(--r); background: var(--surface); color: var(--muted); font-size: 12px; font-weight: 700; letter-spacing: .04em; }

/* Buttons: green on charcoal, charcoal on white, outlines for the second action. */
.btn { position: relative; overflow: hidden; isolation: isolate; display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 52px; padding: 0 26px; border-radius: var(--r); border: 1.5px solid var(--green); background: var(--green); color: var(--charcoal); font-weight: 700; font-size: 16px; line-height: 1.2; text-decoration: none; cursor: pointer; }
@media (hover: hover) { .btn:hover { background: var(--green-hi); border-color: var(--green-hi); color: var(--charcoal); } }
.btn--dark { background: var(--charcoal); border-color: var(--charcoal); color: var(--white); }
@media (hover: hover) { .btn--dark:hover { background: #000; border-color: #000; color: var(--white); } }
.btn--ghost { background: transparent; border-color: rgba(255, 255, 255, .45); color: var(--white); font-weight: 600; }
@media (hover: hover) { .btn--ghost:hover { background: rgba(255, 255, 255, .08); border-color: var(--white); color: var(--white); } }
.btn--line { background: transparent; border-color: var(--charcoal); color: var(--charcoal); font-weight: 600; }
@media (hover: hover) { .btn--line:hover { background: var(--charcoal); color: var(--white); } }
.btn--sm { min-height: 44px; padding: 0 18px; font-size: 15px; }
.btn--block { width: 100%; }
.btn svg { width: 18px; height: 18px; flex: none; }
.btn::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(110deg, rgba(255, 255, 255, 0) 35%, rgba(255, 255, 255, .34) 50%, rgba(255, 255, 255, 0) 65%); translate: -101% 0; pointer-events: none; }
.btn--ghost::after, .btn--line::after { content: none; }
.btns { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }

/* Text link with an arrow. */
.tlink { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; font-weight: 700; font-size: 16px; color: var(--ink); text-decoration: underline; text-underline-offset: 4px; text-decoration-thickness: 1px; }
@media (hover: hover) { .tlink:hover { color: var(--green-text); } }
.tlink svg { flex: none; }
.sec--dark .tlink, .sec--deep .tlink, .on-dark .tlink { color: var(--white); }
@media (hover: hover) { .sec--dark .tlink:hover, .sec--deep .tlink:hover, .on-dark .tlink:hover { color: var(--green); } }

/* Tags and filter chips. */
.tag { display: inline-flex; align-items: center; min-height: 26px; padding: 0 10px; border-radius: 999px; background: var(--tint); color: var(--green-text); font-size: 12px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; }
.tag--solid { background: var(--green); color: var(--charcoal); }
.tag--line { background: transparent; border: 1px solid rgba(255, 255, 255, .3); color: var(--white); text-transform: none; letter-spacing: 0; font-weight: 600; font-size: 14px; }
.chip { display: inline-flex; align-items: center; justify-content: center; min-height: 44px; min-width: 44px; padding: 0 18px; border-radius: 999px; border: 1.5px solid var(--line-2); background: var(--white); color: var(--ink); font-size: 15px; font-weight: 600; cursor: pointer; text-decoration: none; }
@media (hover: hover) { .chip:hover { border-color: var(--charcoal); color: var(--ink); } }
.chip[aria-pressed="true"], .chip[aria-current] { background: var(--charcoal); border-color: var(--charcoal); color: var(--white); }

/* Photo frames. */
.ph { position: relative; overflow: hidden; background: #2C2C2C; border-radius: var(--r); }
.ph > img, .ph > video { width: 100%; height: 100%; object-fit: cover; }
.ph--43 { aspect-ratio: 4 / 3; }
.ph--1610 { aspect-ratio: 16 / 10; }
.ph--sq { aspect-ratio: 1; }
.ph--45 { aspect-ratio: 4 / 5; }
.cap { margin-top: 10px; font-size: 14px; color: var(--muted); line-height: 1.5; }

/* Cards: white, a fine border, a green bar that sweeps in on hover. */
.card { position: relative; overflow: hidden; display: flex; flex-direction: column; gap: 16px; border-radius: var(--r-card); border: 1px solid var(--line); background: var(--white); padding: 28px 26px; color: var(--ink); text-decoration: none; }
@media (hover: hover) { a.card:hover { color: var(--ink); } }
@media (hover: hover) { a.card--dark:hover { color: var(--white); } }
.card::before { content: ""; position: absolute; left: 0; top: 0; width: 100%; height: 3px; background: var(--green); transform: scaleX(0); transform-origin: left center; z-index: 1; pointer-events: none; }
.card--dark { background: rgba(255, 255, 255, .03); border-color: rgba(255, 255, 255, .14); color: var(--white); }
.card .num { font-size: 13px; font-weight: 700; color: var(--muted); }
.card .body { margin: 0; }
.card-top { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; }

/* Icon in a tinted square. */
.vicon { --s: 56px; width: var(--s); height: var(--s); flex: none; border-radius: 14px; background: var(--tint); color: var(--green-text); display: inline-flex; align-items: center; justify-content: center; }
.vicon svg { display: block; }
.vicon[data-anim="sway"] svg { transform-origin: 20% 90%; }

/* Lists with a green square, and numbered steps. */
.dots { list-style: none; padding: 0; display: grid; gap: 12px; }
.dots li { position: relative; padding-left: 22px; color: var(--body); }
.dots li::before { content: ""; position: absolute; left: 0; top: .6em; width: 8px; height: 8px; background: var(--green); }
.sec--dark .dots li, .sec--deep .dots li { color: var(--soft); }

/* Forms. Fields have their label above, their own error below, and a summary at the top. */
.form { display: grid; gap: 18px; grid-template-columns: repeat(2, minmax(0, 1fr)); }
.form > .full, .form > fieldset, .form > .check, .form > .form-summary, .form > .form-actions, .form > .form-note, .form > .field--full { grid-column: 1 / -1; }
.field { display: grid; gap: 8px; align-content: start; }
.field > label, .field > .lbl, .form legend { font-weight: 700; font-size: 15px; color: var(--ink); }
.field .opt { font-weight: 400; color: var(--muted); }
.field .hint { font-size: 15px; color: var(--muted); }
.form input[type="text"], .form input[type="email"], .form input[type="tel"], .form input[type="search"], .form select, .form textarea { width: 100%; min-height: 48px; padding: 0 14px; border-radius: var(--r); border: 1.5px solid var(--field); background: var(--white); color: var(--ink); font-size: 16px; }
.form textarea { min-height: 140px; padding: 12px 14px; resize: vertical; line-height: 1.6; }
.form select { appearance: none; padding-right: 42px; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23212121' stroke-width='2'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 12px center; background-size: 18px; }
/* Fields and checkboxes keep the site's solid focus ring (a faint halo alone is too weak to see). */
.form input:focus, .form select:focus, .form textarea:focus { border-color: var(--charcoal); }
.form :is(input, select, textarea):focus-visible { outline-offset: 2px; }
.form [aria-invalid="true"] { border-color: #B3261E; border-width: 2px; }
.form fieldset { border: 0; padding: 0; margin: 0; min-width: 0; display: grid; gap: 10px; }
.check { display: flex; gap: 12px; align-items: flex-start; font-size: 15px; line-height: 1.55; color: var(--body); }
.check input { flex: none; width: 22px; height: 22px; margin: 1px 0 0; accent-color: var(--green-text); }
.check label { cursor: pointer; }
.choices { display: flex; flex-wrap: wrap; gap: 10px; }
.choice { display: inline-flex; gap: 10px; align-items: center; min-height: 44px; padding: 0 16px; border-radius: 999px; border: 1.5px solid var(--line-2); background: var(--white); cursor: pointer; font-size: 15px; font-weight: 600; color: var(--ink); }
.choice input { flex: none; width: 18px; height: 18px; margin: 0; accent-color: var(--green); }
.choice:has(input:checked) { background: var(--charcoal); border-color: var(--charcoal); color: var(--white); }
.choice:has(input:focus-visible) { outline: 3px solid var(--green-text); outline-offset: 3px; }
.choice input:focus-visible { outline: none; } /* The ring goes round the whole pill instead. */
.er { display: block; font-size: 14px; font-weight: 600; color: #B3261E; }
.er::before { content: "! "; font-weight: 700; }
.form-summary { padding: 14px 18px; border-radius: var(--r); background: #FDECEA; border: 2px solid #B3261E; color: #8C1D18; font-weight: 600; font-size: 15px; }
.form-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 16px; }
.form-done { display: grid; gap: 8px; padding: 22px 24px; border-radius: var(--r-card); background: var(--tint); border: 1px solid #CFE6C1; color: var(--ink); }
.form-done strong { font-weight: 800; font-size: 20px; color: var(--green-text); }
.form-note { font-size: 15px; line-height: 1.6; color: var(--muted); }
.hp { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; overflow: hidden; }
@media (max-width: 640px) { .form { grid-template-columns: minmax(0, 1fr); } }
/* Forms on charcoal. */
.on-dark .field > label, .on-dark .form legend, .sec--dark .field > label, .sec--dark .form legend { color: var(--white); }
.on-dark .form input, .sec--dark .form input, .sec--dark .form select, .sec--dark .form textarea { border-color: rgba(255, 255, 255, .45); background: #2B2B2B; color: var(--white); }
.on-dark .check, .sec--dark .check { color: var(--soft); }
.on-dark .check input, .sec--dark .check input { accent-color: var(--green); }
.on-dark .er, .sec--dark .er { color: #FF8A80; }
.on-dark .form-summary, .sec--dark .form-summary { background: transparent; border-color: #FF8A80; color: var(--white); }
.on-dark .form-done, .sec--dark .form-done { background: rgba(93, 190, 42, .1); border-color: rgba(93, 190, 42, .4); color: var(--white); }
.on-dark .form-done strong, .sec--dark .form-done strong { color: var(--green); }

/* Breadcrumbs. */
.crumbs { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; list-style: none; margin: 0; padding: 0; font-size: 14px; color: var(--soft); }
.crumbs li + li::before { content: "/"; margin-right: 6px; color: rgba(255, 255, 255, .4); }
.crumbs a { color: var(--soft); display: inline-block; padding: 11px 4px; margin: -11px -4px; } /* 44px tap area, same layout */
@media (hover: hover) { .crumbs a:hover { color: var(--white); } }
.crumbs [aria-current] { color: var(--white); font-weight: 600; }

/* Editor notes shown only in the block editor when a section is empty. */
.pv-empty { padding: 28px; border: 2px dashed var(--line-2); border-radius: var(--r-card); color: var(--muted); font-size: 15px; text-align: center; background: var(--white); }

/* Reading progress along the top of the window. */
.progress { position: fixed; left: 0; top: 0; z-index: 1000; width: 100%; height: 3px; background: var(--green); transform-origin: 0 50%; scale: 0 1; pointer-events: none; }

/*
 * Motion. Reveals use the individual translate and scale properties and settle back to the
 * element's own styles, so they never fight a hover transform. Everything is still when someone
 * asks their device to reduce motion.
 */
@keyframes peiIn { from { opacity: 0; translate: 0 22px; filter: blur(6px); } }
@media (max-width: 760px) { @keyframes peiIn { from { opacity: 0; translate: 0 22px; } } } /* Phones: no blur, which is costly on their GPUs. */
@keyframes peiMask { from { clip-path: inset(0 0 100% 0); translate: 0 .45em; } }
@keyframes peiInk { from { color: #FFFFFF; } }
@keyframes peiGrow { from { scale: 0 1; } }
@keyframes peiPopIn { from { scale: 0; } }
@keyframes peiWipe { from { clip-path: inset(100% 0 0 0); } }
@keyframes peiZoom { from { scale: 1.22; } }
@keyframes peiGlow { from { opacity: 0; scale: .5; } }
@keyframes peiDrop { from { opacity: 0; translate: 0 -10px; } }
@keyframes peiSlide { from { opacity: 0; translate: -10px 0; } }
@keyframes peiFade { from { opacity: 0; } }
@keyframes peiProgress { from { scale: 0 1; } to { scale: 1 1; } }
@keyframes peiPar { to { translate: 0 -56px; } }
@keyframes peiParText { to { translate: 0 -28px; opacity: .25; } }
@keyframes icSpin { to { rotate: 360deg; } }
@keyframes icBob { 30% { translate: 0 -6px; } 55% { translate: 0 1px; } 75% { translate: 0 -2px; } }
@keyframes icToss { 35% { translate: 0 -8px; rotate: -16deg; } 70% { translate: 0 1px; rotate: 5deg; } }
@keyframes icShake { 18% { rotate: -16deg; } 36% { rotate: 12deg; } 54% { rotate: -8deg; } 72% { rotate: 4deg; } }
@keyframes icPop { 40% { scale: 1.3; } 70% { scale: .92; } }
@keyframes icSway { 30% { rotate: -16deg; } 65% { rotate: 10deg; } }
@media (prefers-reduced-motion: no-preference) {
	@view-transition { navigation: auto; }
	::view-transition-old(root) { animation: peiFade .22s cubic-bezier(.4, 0, 1, 1) reverse both; }
	::view-transition-new(root) { animation: peiIn .5s var(--ease) .05s both; }
	main { animation: peiFade .5s ease both; }
	a, button { transition: background-color var(--fast), color var(--fast), border-color var(--fast), box-shadow .3s var(--ease), transform .3s var(--ease); }

	/* Page hero: each line comes in turn, the heading unmasks, the green words ink in. */
	.hero-rise > * { animation: peiIn .95s var(--ease) both; }
	.hero-rise > :nth-child(2) { animation-delay: .09s; }
	.hero-rise > :nth-child(3) { animation-delay: .18s; }
	.hero-rise > :nth-child(4) { animation-delay: .27s; }
	.hero-rise > :nth-child(5) { animation-delay: .36s; }
	.hero-rise > :nth-child(n+6) { animation-delay: .45s; }
	.hero-rise > :is(h1, .display, .h1) { animation-name: peiMask; animation-duration: 1.05s; }
	.hero-rise .accent { animation: peiInk 1.1s ease .75s both; }
	.hero-rise .eyebrow--dash::before { transform-origin: left center; animation: peiGrow 1s var(--ease) .4s both; }
	.unveil { animation: peiWipe 1.25s var(--io) .1s both; }
	.unveil img { animation: peiZoom 1.9s var(--ease) .1s both; }
	.unveil:nth-child(2), .unveil:nth-child(2) img { animation-delay: .22s; }
	.unveil:nth-child(3), .unveil:nth-child(3) img { animation-delay: .34s; }
	.glow::after { content: ""; position: absolute; width: 680px; height: 680px; right: -220px; top: -280px; border-radius: 50%; background: radial-gradient(closest-side, rgba(93, 190, 42, .16), rgba(93, 190, 42, 0)); pointer-events: none; animation: peiGlow 2.8s var(--ease) .15s both; }

	/* Scrolling: things rise in as they enter the screen (set up by the site script). */
	.js .rv { opacity: 0; translate: 0 32px; transition: opacity .9s var(--ease), translate .9s var(--ease); transition-delay: var(--d, 0s); }
	.js .rv.in { opacity: 1; translate: 0 0; }
	.js .rv-wipe img { clip-path: inset(100% 0 0 0); scale: 1.15; transition: clip-path 1.2s var(--io), scale 1.6s var(--ease); transition-delay: var(--d, 0s); }
	.js .rv-wipe.in img { clip-path: inset(0 0 0 0); scale: 1; }
	@supports (animation-timeline: view()) {
		.progress { animation: peiProgress linear both; animation-timeline: scroll(root); }
		.par { animation: peiPar linear both; animation-timeline: view(); animation-range: exit 0% exit 100%; }
		.par-text { animation: peiParText linear both; animation-timeline: view(); animation-range: exit 0% exit 100%; }
	}

	/* Cards: lift, darker edge and the green bar; keyboard focus gets the same treatment. */
	.card, .lift { transition: transform .45s var(--ease), box-shadow .45s var(--ease), border-color .25s ease, background-color .25s ease; }
	.card::before { transition: transform .55s var(--ease); }
	:is(.card, .lift):is(:focus-visible, :has(:focus-visible)) { transform: translateY(-6px); box-shadow: 0 22px 44px rgba(33, 33, 33, .11), 0 3px 8px rgba(33, 33, 33, .06); border-color: var(--charcoal); }
	@media (hover: hover) { :is(.card, .lift):hover { transform: translateY(-6px); box-shadow: 0 22px 44px rgba(33, 33, 33, .11), 0 3px 8px rgba(33, 33, 33, .06); border-color: var(--charcoal); } }
	.card--dark:is(:focus-visible, :has(:focus-visible)) { border-color: var(--green); box-shadow: none; }
	@media (hover: hover) { .card--dark:hover { border-color: var(--green); box-shadow: none; } }
	.card:is(:focus-visible, :has(:focus-visible))::before { transform: scaleX(1); }
	@media (hover: hover) { .card:hover::before { transform: scaleX(1); } }
	.vicon { transition: background-color .3s ease, color .3s ease, transform .45s var(--ease); }
	:is(.card, .lift):is(:focus-visible, :has(:focus-visible)) .vicon { background: var(--green); color: var(--charcoal); transform: translateY(-2px); }
	@media (hover: hover) { :is(.card, .lift):hover .vicon { background: var(--green); color: var(--charcoal); transform: translateY(-2px); } }
	:is(.card, .lift):is(:focus-visible, :has(:focus-visible)) .vicon[data-anim="pop"] svg { animation: icPop .6s var(--ease); }
	@media (hover: hover) { :is(.card, .lift):hover .vicon[data-anim="pop"] svg { animation: icPop .6s var(--ease); } }
	:is(.card, .lift):is(:focus-visible, :has(:focus-visible)) .vicon[data-anim="spin"] svg { animation: icSpin .85s cubic-bezier(.65, 0, .35, 1); }
	@media (hover: hover) { :is(.card, .lift):hover .vicon[data-anim="spin"] svg { animation: icSpin .85s cubic-bezier(.65, 0, .35, 1); } }
	:is(.card, .lift):is(:focus-visible, :has(:focus-visible)) .vicon[data-anim="bob"] svg { animation: icBob .75s ease-in-out; }
	@media (hover: hover) { :is(.card, .lift):hover .vicon[data-anim="bob"] svg { animation: icBob .75s ease-in-out; } }
	:is(.card, .lift):is(:focus-visible, :has(:focus-visible)) .vicon[data-anim="toss"] svg { animation: icToss .75s var(--ease); }
	@media (hover: hover) { :is(.card, .lift):hover .vicon[data-anim="toss"] svg { animation: icToss .75s var(--ease); } }
	:is(.card, .lift):is(:focus-visible, :has(:focus-visible)) .vicon[data-anim="shake"] svg { animation: icShake .7s ease-in-out; }
	@media (hover: hover) { :is(.card, .lift):hover .vicon[data-anim="shake"] svg { animation: icShake .7s ease-in-out; } }
	:is(.card, .lift):is(:focus-visible, :has(:focus-visible)) .vicon[data-anim="sway"] svg { animation: icSway .85s ease-in-out; }
	@media (hover: hover) { :is(.card, .lift):hover .vicon[data-anim="sway"] svg { animation: icSway .85s ease-in-out; } }
	/* Touch screens have no hover, so each icon plays its gesture once as its card scrolls in. */
	@media (hover: none) {
		.rv.in .vicon[data-anim="pop"] svg { animation: icPop .6s var(--ease) .55s both; }
		.rv.in .vicon[data-anim="spin"] svg { animation: icSpin .85s cubic-bezier(.65, 0, .35, 1) .55s both; }
		.rv.in .vicon[data-anim="bob"] svg { animation: icBob .75s ease-in-out .55s both; }
		.rv.in .vicon[data-anim="toss"] svg { animation: icToss .75s var(--ease) .55s both; }
		.rv.in .vicon[data-anim="shake"] svg { animation: icShake .7s ease-in-out .55s both; }
		.rv.in .vicon[data-anim="sway"] svg { animation: icSway .85s ease-in-out .55s both; }
	}
	.zoom img, a .ph img { transition: transform .8s var(--ease); }
	@media (hover: hover) { .zoom:hover img, a:hover .ph img, .card:hover .ph img { transform: scale(1.06); } }

	/* Buttons: lift, light sweep, press, arrow glide. */
	.btn { transition: transform .3s var(--ease), background-color .25s ease, box-shadow .3s ease, border-color .25s ease, color .25s ease; }
	@media (hover: hover) { .btn:hover { transform: translateY(-2px); box-shadow: 0 12px 24px rgba(33, 33, 33, .18); } }
	@media (hover: hover) { .btn:hover::after { translate: 101% 0; transition: translate .85s var(--ease); } }
	.btn:active, .chip:active { transform: translateY(0) scale(.97); transition-duration: .08s; }
	.btn svg, .tlink svg { transition: translate .35s var(--ease); }
	@media (hover: hover) { .btn:hover svg, .tlink:hover svg { translate: 4px 0; } }
	.tlink { transition: text-underline-offset .25s var(--ease), color .2s ease; }
	@media (hover: hover) { .tlink:hover { text-underline-offset: 6px; } }
	@media (hover: hover) { .chip:hover { transform: translateY(-2px); } }
	input, select, textarea { transition: border-color .2s ease, box-shadow .25s var(--ease); }
	[role="status"]:not(:empty):not(.sr-only), .form-done { animation: peiDrop .45s var(--ease) both; }
	.acc-panel:not([hidden]) { animation: peiDrop .35s var(--ease) both; }
}

/* WordPress content inside articles and simple pages. */
.alignwide { max-width: 1100px; }
.alignfull { width: 100vw; margin-left: calc(50% - 50vw); }
.wp-caption-text, figcaption { margin-top: 10px; font-size: 14px; color: var(--muted); }
.wp-block-image img { border-radius: var(--r); }
