/* Bicol Food Security Network — site styles
   Colours and type follow the BFSN brand (Poppins; dark green, lime, cream). */

:root {
  --green-900: #0F2E25;
  --green-800: #1C4D3F;
  --green-700: #245C4B;
  --green-600: #2B6A55;
  --lime-600: #7AA326;
  --lime-500: #8AB42F;
  --lime-450: #9DC43F;
  --lime-300: #B5D65A;
  --lime-200: #CFE3A0;
  --lime-100: #D4EB8A;
  --lime-50: #EEF4DC;
  --olive: #5E8A1E;
  --olive-deep: #52791A;
  --cream: #FBFAF5;
  --sand: #F4F1E6;
  --sand-2: #F0EDE0;
  --line: #DCE2D2;
  --line-2: #E6EADF;
  --field: #D5DEC4;
  --ink: #1C4D3F;
  --ink-deep: #14372D;
  --body: #3E5A50;
  --muted: #4A6358;
  --muted-2: #5A7166;
  --on-dark: #DCE8E1;
  --on-dark-2: #E3EDE7;
  --radius-sm: 14px;
  --radius: 22px;
  --radius-lg: 26px;
  --radius-xl: 30px;
  --corner: clamp(48px, 8vw, 110px);
  --gutter: clamp(20px, 5vw, 80px);
  --shadow-sm: 0 10px 26px rgba(28, 77, 63, .07);
  --shadow: 0 16px 38px rgba(28, 77, 63, .09);
  --shadow-dark: 0 20px 44px rgba(28, 77, 63, .24);
  --ease: cubic-bezier(.2, .7, .2, 1);
  color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: 'Poppins', system-ui, -apple-system, 'Segoe UI', sans-serif;
  font-size: 16px;
  line-height: 1.6;
  color: var(--ink);
  background: var(--cream);
  overflow-x: hidden;
}
img { max-width: 100%; height: auto; display: block; }
[hidden] { display: none !important; }
svg { fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
a { color: var(--ink); }
a:hover { color: var(--olive); }
h1, h2, h3 { margin: 0; text-wrap: balance; }
p { margin: 0; }
:focus-visible { outline: 3px solid var(--lime-450); outline-offset: 3px; border-radius: 6px; }
.skip { position: absolute; left: -999px; top: 8px; z-index: 100; padding: 10px 16px; background: var(--ink); color: #fff; border-radius: 10px; }
.skip:focus { left: 12px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ---------- Layout ---------- */
.wrap { position: relative; width: 100%; max-width: 1440px; margin: 0 auto; padding-inline: var(--gutter); }
.sec { position: relative; overflow: hidden; padding-block: clamp(64px, 8vw, 116px); }
.sec--flush-top { padding-top: clamp(20px, 3vw, 40px); }
.sec--flush-bottom { padding-bottom: clamp(24px, 3vw, 48px); }
.sec--cream { background: linear-gradient(175deg, var(--cream) 0%, var(--sand) 100%); }
.sec--sand { background: var(--sand); }
.sec--sand2 { background: var(--sand-2); }
.sec--dark { background: linear-gradient(155deg, var(--green-600) 0%, var(--green-800) 45%, var(--green-900) 100%); color: #fff; }
.stack { display: flex; flex-direction: column; gap: 22px; }
.stack-sm { display: flex; flex-direction: column; gap: 12px; }
.row { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
.split { display: flex; align-items: center; gap: clamp(36px, 6vw, 88px); }
.split > .grow { flex: 1 1 0; min-width: 0; }
.split--top { align-items: flex-start; }
.head-row { display: flex; align-items: flex-end; justify-content: space-between; gap: 32px; flex-wrap: wrap; margin-bottom: clamp(32px, 4vw, 52px); }
.head-row > p { max-width: 470px; }
.center { text-align: center; margin-inline: auto; align-items: center; }
.grid { display: grid; gap: 22px; }
.g2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.g3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.g4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.g5 { grid-template-columns: repeat(5, minmax(0, 1fr)); }

/* Dark band with one large rounded corner, sitting on a light section */
.band-host { position: relative; background: var(--sand); }
.band { position: relative; overflow: hidden; color: #fff; padding-block: clamp(64px, 8vw, 110px); background: linear-gradient(150deg, var(--green-600) 0%, var(--green-800) 50%, var(--green-900) 100%); border-top-left-radius: var(--corner); }
.band--right { border-top-left-radius: 0; border-top-right-radius: var(--corner); }

/* Decorative layers */
.glow { position: absolute; border-radius: 50%; pointer-events: none; background: radial-gradient(circle, rgba(138, 180, 47, .26) 0%, rgba(138, 180, 47, 0) 68%); }
.glow--soft { background: radial-gradient(circle, rgba(138, 180, 47, .18) 0%, rgba(138, 180, 47, 0) 68%); }
.wm { position: absolute; pointer-events: none; user-select: none; height: auto; }

/* ---------- Type ---------- */
.eyebrow { display: flex; align-items: center; gap: 16px; font-size: 15px; font-weight: 600; letter-spacing: 6px; text-transform: uppercase; color: var(--olive-deep); }
.eyebrow::before { content: ""; width: 48px; height: 3px; border-radius: 2px; background: linear-gradient(90deg, var(--lime-500), var(--lime-300)); flex-shrink: 0; }
.eyebrow--light { color: var(--lime-300); }
.eyebrow--light::before { background: linear-gradient(90deg, var(--lime-500), #C9E27A); }
.eyebrow--center { justify-content: center; }
.eyebrow--center::after { content: ""; width: 40px; height: 3px; border-radius: 2px; background: linear-gradient(90deg, var(--lime-500), rgba(138, 180, 47, 0)); }
.eyebrow--center::before { width: 40px; background: linear-gradient(90deg, rgba(138, 180, 47, 0), var(--lime-500)); }
.display { font-size: clamp(44px, 6.4vw, 84px); font-weight: 600; line-height: 1.02; letter-spacing: -0.035em; }
.title { font-size: clamp(34px, 4.1vw, 56px); font-weight: 600; line-height: 1.06; letter-spacing: -0.035em; }
.title--sm { font-size: clamp(30px, 3.4vw, 48px); }
.lead { font-size: clamp(17px, 1.6vw, 21px); line-height: 1.6; color: var(--body); max-width: 640px; }
.sec--dark .lead, .band .lead, .on-dark .lead, .hero--dark .lead { color: var(--on-dark); font-weight: 300; }
.body { font-size: 17px; line-height: 1.7; color: var(--body); }
.small { font-size: 15px; line-height: 1.6; color: var(--muted); }
.label { font-size: 13px; font-weight: 600; letter-spacing: 4px; text-transform: uppercase; color: var(--olive-deep); }
.label--light { color: var(--lime-300); }
.grad { background: linear-gradient(90deg, var(--lime-450) 0%, var(--lime-100) 100%); -webkit-background-clip: text; background-clip: text; color: transparent; }
.olive { color: var(--olive); }
.white { color: #fff; }

/* ---------- Buttons ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 9px; min-height: 48px; padding: 13px 26px; border-radius: 999px; border: 1.5px solid transparent; font: inherit; font-size: 16px; font-weight: 600; line-height: 1.2; text-decoration: none; cursor: pointer; transition: transform .25s var(--ease), box-shadow .25s var(--ease), filter .25s ease, background-color .25s ease; }
.btn:hover { transform: translateY(-2px); filter: brightness(1.06); }
.btn svg { width: 18px; height: 18px; flex-shrink: 0; stroke-width: 2; }
.btn--dark svg { stroke: var(--lime-300); }
.btn--outline svg { stroke: var(--olive); }
.btn--lime svg { stroke: var(--green-800); }
.btn--dark { background: var(--green-800); color: #fff; box-shadow: 0 10px 24px rgba(28, 77, 63, .2); }
.btn--dark:hover { color: #fff; box-shadow: 0 14px 30px rgba(28, 77, 63, .3); }
.btn--lime { background: var(--lime-300); color: var(--ink-deep); box-shadow: 0 12px 28px rgba(5, 25, 19, .28); }
.btn--lime:hover { color: var(--ink-deep); }
.btn--outline { border-color: var(--green-800); color: var(--green-800); background: transparent; }
.btn--outline:hover { color: var(--green-800); background: rgba(28, 77, 63, .05); }
.btn--ghost { border-color: rgba(255, 255, 255, .45); color: #fff; background: transparent; }
.btn--ghost:hover { color: #fff; background: rgba(255, 255, 255, .08); }
.btn--sm { min-height: 42px; padding: 10px 20px; font-size: 14px; }
.btn[disabled] { background: #DCE2D2; color: var(--muted); box-shadow: none; cursor: not-allowed; transform: none; filter: none; }
.link-arrow { display: inline-flex; align-items: center; gap: 10px; font-size: 17px; font-weight: 600; color: var(--ink); text-decoration: none; }
.link-arrow svg { width: 18px; height: 18px; stroke: var(--olive); transition: transform .25s var(--ease); }
.link-arrow:hover svg { transform: translateX(5px); }
.on-dark .link-arrow, .link-arrow--light { color: var(--lime-300); }
.link-arrow--light svg { stroke: var(--lime-300); }

/* ---------- Cards ---------- */
.card { position: relative; overflow: hidden; display: flex; flex-direction: column; gap: 14px; padding: clamp(26px, 2.6vw, 36px); border-radius: var(--radius); background: #fff; box-shadow: var(--shadow-sm); color: var(--ink); text-decoration: none; }
.card h3 { font-size: 20px; font-weight: 600; line-height: 1.3; }
.card p { font-size: 15px; line-height: 1.65; color: var(--muted); }
.card--lg { border-radius: var(--radius-lg); }
.card--dark { background: linear-gradient(155deg, var(--green-600) 0%, var(--green-800) 60%, var(--green-900) 100%); color: #fff; box-shadow: var(--shadow-dark); }
.card--dark p { color: var(--on-dark); font-weight: 300; }
.card--lime { background: linear-gradient(155deg, var(--lime-200) 0%, var(--lime-300) 100%); color: var(--ink-deep); box-shadow: 0 16px 38px rgba(122, 163, 38, .2); }
.card--lime p { color: #1F4236; }
.card--glass { background: rgba(255, 255, 255, .08); border: 1px solid rgba(255, 255, 255, .15); box-shadow: none; color: #fff; }
.card--glass p { color: var(--on-dark); font-weight: 300; }
.card .foot { margin-top: auto; padding-top: 6px; }
a.card:hover { color: inherit; }
.lift { transition: transform .4s var(--ease), box-shadow .4s ease; }
.lift:hover { transform: translateY(-6px); box-shadow: 0 28px 56px rgba(28, 77, 63, .18); }
.big-num { font-size: 34px; font-weight: 600; line-height: 1; color: #DDE6CB; }
.card--dark .big-num { color: rgba(181, 214, 90, .35); }
.card--lime .big-num { color: rgba(28, 77, 63, .25); }
.spread { display: flex; align-items: center; justify-content: space-between; gap: 12px; }

/* Icon tiles */
.ico { width: 52px; height: 52px; flex-shrink: 0; border-radius: 16px; display: grid; place-items: center; background: linear-gradient(145deg, var(--green-600), var(--green-800)); }
.ico svg { width: 26px; height: 26px; stroke: var(--lime-300); fill: none; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.ico--lime { background: linear-gradient(145deg, var(--lime-450), var(--lime-600)); }
.ico--lime svg { stroke: #fff; }
.ico--soft { background: rgba(181, 214, 90, .2); }
.ico--ink { background: var(--green-800); }
.ico--sm { width: 44px; height: 44px; border-radius: 13px; }
.ico--sm svg { width: 22px; height: 22px; }

/* Pills and status tags */
.pills { display: flex; flex-wrap: wrap; gap: 10px; }
.pill { padding: 8px 18px; border-radius: 999px; background: #fff; border: 1px solid var(--field); font-size: 14px; font-weight: 500; color: var(--ink); }
.pill--glass { background: rgba(255, 255, 255, .08); border-color: rgba(181, 214, 90, .55); color: #fff; }
.status { align-self: flex-start; display: inline-block; padding: 4px 12px; border-radius: 999px; font-size: 12px; font-weight: 600; letter-spacing: 1px; text-transform: uppercase; border: 1px solid #C9D3B6; color: var(--muted); }
.status--pilot { background: var(--lime-300); border-color: var(--lime-300); color: var(--ink-deep); }
.on-dark .status:not(.status--pilot), .band .status:not(.status--pilot) { border-color: rgba(255, 255, 255, .45); color: #fff; }
.tag { display: inline-block; padding: 7px 16px; border-radius: 999px; font-size: 13px; font-weight: 600; background: var(--lime-50); color: #3F6212; white-space: nowrap; }
.tag--muted { background: var(--sand-2); color: var(--muted); }
.live { align-self: flex-start; display: inline-flex; align-items: center; gap: 10px; padding: 8px 18px 8px 12px; border-radius: 999px; background: rgba(255, 255, 255, .09); border: 1px solid rgba(181, 214, 90, .45); font-size: 14px; font-weight: 500; color: var(--on-dark-2); }
.dot { width: 10px; height: 10px; border-radius: 50%; background: var(--lime-300); flex-shrink: 0; }

/* Photo frames (swap the frame for a real <img> when photos are ready) */
.photo { position: relative; overflow: hidden; display: flex; align-items: flex-end; border-radius: var(--radius-lg); background: linear-gradient(150deg, #7FA36A 0%, #5E8A4A 55%, #3F6E4A 100%); box-shadow: 0 24px 50px rgba(28, 77, 63, .16); aspect-ratio: 4 / 3; max-width: 100%; }
.photo > img.photo__img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform 1s var(--ease); }
.photo .photo__mark { position: absolute; left: 50%; top: 46%; width: 42%; transform: translate(-50%, -50%); opacity: .16; transition: transform 1s var(--ease); }
.photo:hover > img.photo__img { transform: scale(1.05); }
.photo:hover .photo__mark { transform: translate(-50%, -50%) scale(1.06); }
.photo__tag { position: relative; margin: 18px; display: inline-flex; align-items: center; gap: 8px; padding: 8px 14px; border-radius: 999px; background: rgba(255, 255, 255, .9); font-size: 12px; font-weight: 600; color: var(--ink); }
.photo__tag svg { width: 16px; height: 16px; stroke: var(--olive); fill: none; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.photo--corner { border-radius: var(--corner) var(--radius-lg) var(--radius-lg) var(--radius-lg); }
.photo--corner-r { border-radius: var(--radius-lg) var(--corner) var(--radius-lg) var(--radius-lg); }
.photo--wide { aspect-ratio: 16 / 9; }
.photo--tall { aspect-ratio: 5 / 6; }
.photo--teal { background: linear-gradient(150deg, #7FA3A0 0%, #4E7A72 100%); }
.photo--lime { background: linear-gradient(150deg, #C9D98E 0%, #8FB25A 100%); }
.photo--sage { background: linear-gradient(150deg, #A9C48A 0%, #6F9A5C 100%); }

/* Check list */
.checks { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 16px; }
.checks li { display: flex; gap: 16px; align-items: flex-start; font-size: 18px; color: var(--body); }
.checks .tick { width: 34px; height: 34px; flex-shrink: 0; border-radius: 50%; display: grid; place-items: center; background: var(--green-800); }
.checks .tick svg { width: 17px; height: 17px; stroke: var(--lime-300); fill: none; stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; }
.ticks { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.ticks li { display: flex; gap: 12px; align-items: flex-start; font-size: 16px; }
.ticks svg { width: 18px; height: 18px; margin-top: 3px; flex-shrink: 0; fill: none; stroke: var(--olive); stroke-width: 2.6; stroke-linecap: round; stroke-linejoin: round; }
.on-dark .ticks svg, .band .ticks svg { stroke: var(--lime-300); }

/* Divided list rows */
.rows { display: flex; flex-direction: column; }
.rows > * { display: flex; align-items: center; gap: 18px; padding: 18px 0; border-bottom: 1px solid var(--line); }
.rows > *:last-child { border-bottom: 0; }
.rows strong { display: block; font-size: 17px; font-weight: 600; color: var(--ink); }
.rows span.sub { display: block; font-size: 14px; color: var(--muted-2); }
.rows--dark > * { border-color: rgba(255, 255, 255, .14); }
.rows .grow { flex: 1 1 auto; min-width: 0; }

/* ---------- Header ---------- */
.site-header { position: sticky; top: 0; z-index: 50; background: rgba(251, 250, 245, .94); backdrop-filter: saturate(160%) blur(10px); -webkit-backdrop-filter: saturate(160%) blur(10px); border-bottom: 1px solid #E4E4D6; }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 24px; min-height: 88px; padding-inline: clamp(20px, 4.4vw, 64px); }
.brand img { height: 54px; width: auto; }
.nav { display: flex; align-items: center; gap: 26px; }
.nav a.nav-link { padding: 6px 0 4px; border-bottom: 2px solid transparent; font-size: 15px; font-weight: 500; color: var(--ink); text-decoration: none; transition: color .2s ease, border-color .2s ease; }
.nav a.nav-link:hover { color: var(--olive); border-bottom-color: var(--lime-300); }
.nav a.nav-link[aria-current="page"] { color: var(--olive); font-weight: 600; border-bottom-color: var(--lime-500); }
.nav-cta { display: flex; gap: 10px; margin-left: 8px; }
.nav-cta .btn { min-height: 44px; padding: 10px 20px; font-size: 15px; }
.nav-toggle { display: none; width: 48px; height: 48px; border: 1px solid var(--field); border-radius: 14px; background: #fff; cursor: pointer; place-items: center; }
.nav-toggle svg { width: 24px; height: 24px; stroke: var(--ink); fill: none; stroke-width: 2; stroke-linecap: round; }

/* ---------- Footer ---------- */
.site-footer { position: relative; overflow: hidden; color: #fff; background: linear-gradient(155deg, var(--green-600) 0%, var(--green-800) 45%, var(--green-900) 100%); padding-block: clamp(56px, 6vw, 80px) 32px; }
.footer-grid { position: relative; display: grid; grid-template-columns: 1.3fr repeat(4, minmax(0, 1fr)); gap: 40px; }
.footer-logo { align-self: flex-start; display: inline-block; padding: 14px 22px; background: #fff; border-radius: 18px; box-shadow: 0 14px 34px rgba(5, 25, 19, .35); }
.footer-logo img { height: 52px; width: auto; }
.site-footer h2 { font-size: 13px; font-weight: 600; letter-spacing: 3px; text-transform: uppercase; color: var(--lime-300); margin-bottom: 4px; }
.site-footer ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.site-footer a { color: #fff; text-decoration: none; font-size: 15px; transition: color .2s ease; }
.site-footer a:hover { color: var(--lime-100); }
.site-footer p { font-size: 15px; font-weight: 300; line-height: 1.65; color: var(--on-dark-2); }
.site-footer .fine { font-size: 14px; color: #B9CCC2; }
.social { display: flex; gap: 12px; }
.social a { width: 44px; height: 44px; border-radius: 14px; display: grid; place-items: center; background: rgba(255, 255, 255, .1); border: 1px solid rgba(255, 255, 255, .18); transition: transform .25s var(--ease), background-color .25s ease; }
.social a:hover { transform: translateY(-2px); background: rgba(255, 255, 255, .16); }
.social svg { width: 21px; height: 21px; stroke: var(--lime-300); fill: none; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.footer-base { position: relative; margin-top: 48px; padding-top: 22px; border-top: 1px solid rgba(255, 255, 255, .14); display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; font-size: 14px; font-weight: 300; color: #B9CCC2; }
.footer-base .dm { font-weight: 500; color: var(--lime-300); }

/* ---------- Heroes ---------- */
.hero { position: relative; overflow: hidden; padding-block: clamp(64px, 8vw, 110px); }
.hero--dark { color: #fff; background: linear-gradient(155deg, var(--green-600) 0%, var(--green-800) 45%, var(--green-900) 100%); }
.hero--cream { background: linear-gradient(165deg, var(--cream) 0%, var(--sand-2) 100%); }
.hero .display + .lead { margin-top: 0; }
.hero-media { position: relative; width: min(540px, 42%); flex-shrink: 0; }
.hero-media .photo { width: 92%; margin-left: auto; aspect-ratio: 9 / 10; box-shadow: 0 30px 60px rgba(5, 25, 19, .45); }
.float-card { position: absolute; left: 0; bottom: -24px; width: min(330px, 70%); padding: 24px; background: #fff; border-radius: var(--radius); box-shadow: 0 24px 50px rgba(5, 25, 19, .35); color: var(--ink); display: flex; flex-direction: column; gap: 10px; }
.float-card p { font-size: 16px; font-weight: 500; line-height: 1.55; }
.side-card { width: min(430px, 100%); flex-shrink: 0; }
.kv { display: flex; flex-direction: column; }
.kv > div { padding: 14px 0; border-bottom: 1px solid var(--line-2); }
.kv > div:last-child { border-bottom: 0; padding-bottom: 0; }
.kv dt { font-size: 14px; color: var(--muted-2); }
.kv dd { margin: 0; font-size: 17px; font-weight: 600; }

/* ---------- Forms ---------- */
.form { display: flex; flex-direction: column; gap: 20px; padding: clamp(28px, 3.2vw, 44px); border-radius: var(--radius-lg); background: #fff; box-shadow: 0 20px 50px rgba(28, 77, 63, .1); }
.form h2 { font-size: 28px; font-weight: 600; letter-spacing: -0.02em; }
.form .row2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.form .row3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.field { display: flex; flex-direction: column; gap: 8px; font-size: 15px; font-weight: 500; color: var(--ink); }
.field input, .field select, .field textarea { width: 100%; min-height: 52px; padding: 12px 18px; border: 1px solid var(--field); border-radius: var(--radius-sm); background: var(--cream); font: inherit; font-size: 16px; font-weight: 400; color: var(--ink); transition: border-color .2s ease, box-shadow .2s ease, background-color .2s ease; }
.field textarea { resize: vertical; min-height: 110px; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--lime-500); background: #fff; box-shadow: 0 0 0 4px rgba(138, 180, 47, .18); }
.chips { border: 0; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 10px; }
.chips legend { padding: 0 0 10px; font-size: 15px; font-weight: 500; color: var(--ink); }
.chip { display: inline-flex; align-items: center; gap: 10px; padding: 10px 16px; border: 1px solid var(--field); border-radius: 999px; background: var(--cream); font-size: 14px; cursor: pointer; }
.chip input, .consent input { width: 18px; height: 18px; margin: 0; accent-color: var(--olive); flex-shrink: 0; }
.consent { display: flex; align-items: flex-start; gap: 12px; font-size: 14px; line-height: 1.55; color: var(--muted); }
.consent input { margin-top: 2px; }
.anon { display: flex; align-items: center; gap: 12px; padding: 14px 18px; border-radius: var(--radius-sm); background: var(--lime-50); font-size: 15px; font-weight: 500; }
.anon input { width: 18px; height: 18px; accent-color: var(--olive); }
.hp { display: none; }
.form-note { padding: 16px 18px; border-radius: 16px; background: var(--sand); border: 1px dashed #C9D3B6; font-size: 15px; font-weight: 500; color: var(--body); }

/* Donations switch: set data-donations="open" on <main> to take donations */
[data-donations="closed"] .when-open { display: none !important; }
[data-donations="open"] .when-closed { display: none !important; }

/* ---------- Timeline (complaints) ---------- */
.timeline { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; }
.timeline li { display: flex; gap: 20px; }
.timeline .rail { display: flex; flex-direction: column; align-items: center; }
.timeline .num { width: 40px; height: 40px; flex-shrink: 0; border-radius: 50%; display: grid; place-items: center; background: var(--lime-300); font-size: 15px; font-weight: 600; color: var(--ink-deep); }
.timeline .line { width: 2px; flex-grow: 1; background: rgba(181, 214, 90, .35); }
.timeline .txt { padding-bottom: 26px; }
.timeline li:last-child .txt { padding-bottom: 0; }
.timeline strong { display: block; font-size: 17px; font-weight: 600; }
.timeline span { font-size: 15px; font-weight: 300; color: var(--on-dark); }

/* ---------- Officers ---------- */
.person { align-items: center; text-align: center; }
.avatar { width: 96px; height: 96px; border-radius: 50%; display: grid; place-items: center; font-size: 30px; font-weight: 600; background: linear-gradient(145deg, var(--green-600), var(--green-800)); color: var(--lime-300); }
.avatar--lime { background: linear-gradient(145deg, var(--lime-300), var(--lime-500)); color: var(--ink-deep); }
.person .role { font-size: 15px; color: var(--olive-deep); line-height: 1.45; }

/* ---------- Article (blog post) ---------- */
.article { max-width: 760px; margin-inline: auto; }
.article p, .article li { font-size: 18px; line-height: 1.8; color: var(--body); }
.article h2 { font-size: clamp(26px, 2.6vw, 32px); font-weight: 600; letter-spacing: -0.02em; margin-top: 44px; margin-bottom: 14px; }
.article p + p { margin-top: 18px; }
.article ul { padding-left: 22px; margin: 16px 0 0; }

/* ---------- Motion ---------- */
@keyframes fadeUp { from { opacity: 0; transform: translateY(26px); } to { opacity: 1; transform: none; } }
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
@keyframes floaty { 0%, 100% { transform: translateY(0) rotate(var(--r, 0deg)); } 50% { transform: translateY(-16px) rotate(var(--r, 0deg)); } }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 rgba(181, 214, 90, .65); } 70% { box-shadow: 0 0 0 12px rgba(181, 214, 90, 0); } 100% { box-shadow: 0 0 0 0 rgba(181, 214, 90, 0); } }
@keyframes breathe { 0%, 100% { opacity: 1; transform: scale(1); } 50% { opacity: .75; transform: scale(1.06); } }
.fx-up { animation: fadeUp .9s var(--ease) both; }
.fx-in { animation: fadeIn 1.2s ease both; }
.d1 { animation-delay: .12s; } .d2 { animation-delay: .24s; } .d3 { animation-delay: .36s; } .d4 { animation-delay: .48s; } .d5 { animation-delay: .6s; }
.float { animation: floaty 8s ease-in-out infinite; transform: rotate(var(--r, 0deg)); }
.float-slow { animation: floaty 12s ease-in-out infinite; transform: rotate(var(--r, 0deg)); }
.breathe { animation: breathe 9s ease-in-out infinite; }
.pulse { animation: pulse 2.2s ease-out infinite; }
/* Scroll reveal: only hidden once JavaScript is running, so content is always visible without it */
.js .reveal { opacity: 0; transform: translateY(28px); transition: opacity .8s var(--ease), transform .8s var(--ease); }
.js .reveal.is-in { opacity: 1; transform: none; }
.js .reveal-group > * { opacity: 0; transform: translateY(24px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
.js .reveal-group.is-in > * { opacity: 1; transform: none; }
.js .reveal-group.is-in > *:nth-child(2) { transition-delay: .08s; }
.js .reveal-group.is-in > *:nth-child(3) { transition-delay: .16s; }
.js .reveal-group.is-in > *:nth-child(4) { transition-delay: .24s; }
.js .reveal-group.is-in > *:nth-child(5) { transition-delay: .32s; }
.js .reveal-group.is-in > *:nth-child(6) { transition-delay: .4s; }
.js .reveal-group.is-in > *:nth-child(n+7) { transition-delay: .48s; }
@media (prefers-reduced-motion: reduce) {
  /* Keep gentle fades and colour changes; remove movement */
  html { scroll-behavior: auto; }
  .fx-up, .fx-in { animation-name: fadeIn; }
  .float, .float-slow, .breathe, .pulse { animation: none; }
  .js .reveal, .js .reveal-group > * { transform: none; filter: none; }
  .lift:hover, .btn:hover { transform: none; }
  .photo > img.photo__img, .photo .photo__mark { transition: none; }
}

/* ---------- Responsive ---------- */
@media (max-width: 1180px) {
  .nav { gap: 20px; }
  .nav a.nav-link { font-size: 14px; }
  .g5 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .footer-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .footer-grid > :first-child { grid-column: 1 / -1; }
}
@media (max-width: 1080px) {
  .nav-toggle { display: grid; }
  .nav { position: absolute; left: 0; right: 0; top: 100%; flex-direction: column; align-items: stretch; gap: 0; padding: 12px clamp(20px, 5vw, 64px) 24px; background: var(--cream); border-bottom: 1px solid #E4E4D6; box-shadow: 0 24px 40px rgba(28, 77, 63, .12); display: none; }
  .nav.is-open { display: flex; }
  .nav a.nav-link { padding: 14px 0; font-size: 17px; border-bottom: 1px solid var(--line-2); }
  .nav a.nav-link[aria-current="page"] { border-bottom-color: var(--line-2); }
  .nav-cta { margin: 16px 0 0; }
  .nav-cta .btn { flex: 1 1 0; }
  .g4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 960px) {
  .split { flex-direction: column; align-items: stretch; }
  .split > * { flex: 0 0 auto !important; width: 100% !important; max-width: 100%; }
  .split--rev { flex-direction: column-reverse; }
  .hero-media, .side-card { width: 100% !important; max-width: 560px; }
  .hero-media { margin-bottom: 24px; }
  .g3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .split > .panel { width: 100% !important; flex: 1 1 auto !important; border-radius: 0 !important; }
}
@media (max-width: 680px) {
  body { font-size: 15px; }
  .brand img { height: 44px; }
  .site-header .wrap { min-height: 72px; }
  .g2, .g3, .g4, .g5 { grid-template-columns: minmax(0, 1fr); }
  .form .row2, .form .row3 { grid-template-columns: minmax(0, 1fr); }
  .footer-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 32px; }
  .checks li { font-size: 16px; }
  .rows > * { align-items: flex-start; flex-wrap: wrap; }
  .float-card { position: relative; bottom: auto; width: 100%; margin-top: 16px; }
  .hero-media .photo { width: 100%; }
  .eyebrow { font-size: 13px; letter-spacing: 4px; }
  .eyebrow::before { width: 32px; }
}
@media (max-width: 420px) {
  .footer-grid { grid-template-columns: minmax(0, 1fr); }
}

/* =========================================================
   Motion v2 — transitions and hover effects
   ========================================================= */

/* Page-to-page transitions (Chrome, Edge, Safari 18.2+) */
@view-transition { navigation: auto; }
::view-transition-old(root) { animation: vtOut .35s var(--ease) both; }
::view-transition-new(root) { animation: vtIn .55s var(--ease) both; }
@keyframes vtOut { to { opacity: 0; transform: translateY(-12px); } }
@keyframes vtIn { from { opacity: 0; transform: translateY(18px); } }
.site-header { view-transition-name: site-header; }
main { animation: pageIn .7s var(--ease) both; }
@keyframes pageIn { from { opacity: 0; } to { opacity: 1; } }

/* Scroll progress bar */
.progress { position: absolute; left: 0; right: 0; bottom: -1px; height: 3px; transform-origin: 0 50%; transform: scaleX(var(--p, 0)); background: linear-gradient(90deg, var(--lime-500), var(--lime-300), var(--lime-100)); pointer-events: none; }

/* Smart header: compacts on scroll, tucks away when scrolling down, returns when scrolling up */
.site-header { transition: transform .45s var(--ease), box-shadow .3s ease, background-color .3s ease; }
.site-header .wrap { transition: min-height .35s var(--ease); }
.site-header .brand img { transition: height .35s var(--ease), transform .35s var(--ease); }
.site-header.is-scrolled { background: rgba(251, 250, 245, .88); box-shadow: 0 10px 30px rgba(28, 77, 63, .10); }
.site-header.is-scrolled .wrap { min-height: 72px; }
.site-header.is-scrolled .brand img { height: 46px; }
.site-header.is-hidden { transform: translateY(-105%); }
.brand:hover img { transform: scale(1.04); }

/* Nav links: underline grows from the left */
.nav a.nav-link { position: relative; border-bottom: 0 !important; padding: 6px 0; }
.nav a.nav-link::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 2px; border-radius: 2px; background: var(--lime-500); transform: scaleX(0); transform-origin: 0 50%; transition: transform .35s var(--ease); }
.nav a.nav-link:hover::after, .nav a.nav-link[aria-current="page"]::after { transform: scaleX(1); }
@media (max-width: 1080px) {
  .nav a.nav-link { padding: 14px 0; border-bottom: 1px solid var(--line-2) !important; }
  .nav a.nav-link::after { bottom: -1px; }
  .nav.is-open { animation: menuIn .35s var(--ease) both; }
  .nav.is-open > * { animation: fadeUp .45s var(--ease) both; }
  .nav.is-open > *:nth-child(2) { animation-delay: .04s; } .nav.is-open > *:nth-child(3) { animation-delay: .08s; }
  .nav.is-open > *:nth-child(4) { animation-delay: .12s; } .nav.is-open > *:nth-child(5) { animation-delay: .16s; }
  .nav.is-open > *:nth-child(6) { animation-delay: .2s; } .nav.is-open > *:nth-child(7) { animation-delay: .24s; }
}
@keyframes menuIn { from { opacity: 0; transform: translateY(-10px); } to { opacity: 1; transform: none; } }
.nav-toggle svg path { transition: transform .3s var(--ease), opacity .2s ease; transform-origin: 12px 12px; }
.nav-toggle[aria-expanded="true"] svg path:nth-child(1) { transform: translateY(5px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] svg path:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] svg path:nth-child(3) { transform: translateY(-5px) rotate(-45deg); }

/* Buttons: light sweep, press feedback, icon nudge */
.btn { position: relative; overflow: hidden; isolation: isolate; }
.btn::after { content: ""; position: absolute; top: 0; bottom: 0; left: -60%; width: 45%; z-index: -1; background: linear-gradient(100deg, transparent, rgba(255, 255, 255, .45), transparent); transform: skewX(-20deg); transition: left .7s var(--ease); pointer-events: none; }
.btn:hover::after { left: 120%; }
.btn:active { transform: translateY(0) scale(.97); }
.btn svg { transition: transform .35s var(--ease); }
.btn:hover svg { transform: scale(1.15) rotate(-6deg); }
.btn--outline::after, .btn--ghost::after { background: linear-gradient(100deg, transparent, rgba(138, 180, 47, .25), transparent); }
.btn[disabled]::after { display: none; }

/* Cards: spotlight that follows the pointer, gentle 3D tilt, icon pop */
.card { --mx: 50%; --my: 50%; transform-style: preserve-3d; }
.card::before { content: ""; position: absolute; inset: 0; z-index: 0; border-radius: inherit; pointer-events: none; opacity: 0; transition: opacity .35s ease; background: radial-gradient(360px circle at var(--mx) var(--my), rgba(181, 214, 90, .20), transparent 60%); }
.card--dark::before, .card--glass::before { background: radial-gradient(360px circle at var(--mx) var(--my), rgba(212, 235, 138, .18), transparent 60%); }
.card:hover::before { opacity: 1; }
.card > * { position: relative; z-index: 1; }
.card > .wm, .card > .glow { position: absolute; z-index: 0; }
.lift { transition: transform .5s var(--ease), box-shadow .5s ease; will-change: transform; }
.lift.is-tilting { transition: transform .12s linear, box-shadow .4s ease; }
.lift:hover { box-shadow: 0 30px 60px rgba(28, 77, 63, .18); }
.ico { transition: transform .45s var(--ease), box-shadow .45s ease; }
.card:hover .ico, .rows > *:hover .ico { transform: translateY(-3px) rotate(-6deg) scale(1.06); box-shadow: 0 10px 22px rgba(28, 77, 63, .22); }
.card--glass { transition: background-color .35s ease, border-color .35s ease, transform .5s var(--ease); }
.card--glass:hover { background: rgba(255, 255, 255, .12); border-color: rgba(181, 214, 90, .45); }
.avatar { transition: transform .5s var(--ease); }
.person:hover .avatar { transform: scale(1.07) rotate(-4deg); }

/* Pills and tags */
.pill { transition: transform .3s var(--ease), background-color .3s ease, border-color .3s ease, color .3s ease; }
.pill:hover { transform: translateY(-2px); border-color: var(--lime-500); background: var(--lime-50); }
.pill--glass:hover { background: rgba(181, 214, 90, .22); border-color: var(--lime-300); color: #fff; }

/* Divided rows slide slightly on hover */
.rows > * { transition: transform .35s var(--ease), background-color .35s ease; }
.rows > *:hover { transform: translateX(6px); }

/* Photo frames: parallax mark and a soft sheen on hover */
.photo .photo__mark { translate: 0 var(--py, 0px); }
.photo::after { content: ""; position: absolute; inset: 0; pointer-events: none; background: linear-gradient(120deg, transparent 30%, rgba(255, 255, 255, .18) 50%, transparent 70%); transform: translateX(-120%); transition: transform 1.1s var(--ease); }
.photo:hover::after { transform: translateX(120%); }

/* Watermarks and glows drift with scroll */
.wm, .glow { translate: 0 var(--py, 0px); }

/* Headline words rise in one by one */
.display .w { display: inline-block; overflow: hidden; vertical-align: top; padding-bottom: .08em; margin-bottom: -.08em; }
.display .w > span { display: inline-block; transform: translateY(105%); animation: wordUp .9s var(--ease) forwards; animation-delay: calc(var(--i) * 70ms + 120ms); }
@keyframes wordUp { to { transform: none; } }
.grad { background-size: 200% 100%; animation: gradShift 8s ease-in-out infinite; }
@keyframes gradShift { 0%, 100% { background-position: 0% 50%; } 50% { background-position: 100% 50%; } }

/* Reveal on scroll: rise, un-blur and fade */
.js .reveal { filter: blur(6px); transition: opacity .9s var(--ease), transform .9s var(--ease), filter .9s var(--ease); }
.js .reveal.is-in { filter: none; }
.js .reveal-group > * { filter: blur(4px); transition: opacity .8s var(--ease), transform .8s var(--ease), filter .8s var(--ease); }
.js .reveal-group.is-in > * { filter: none; }

/* Eyebrow line draws in */
.js .eyebrow::before { transform: scaleX(0); transform-origin: 0 50%; transition: transform .9s var(--ease) .15s; }
.js .eyebrow--center::before { transform-origin: 100% 50%; }
.js .eyebrow::after { transform: scaleX(0); transform-origin: 0 50%; transition: transform .9s var(--ease) .15s; }
.js .eyebrow.is-in::before, .js .eyebrow.is-in::after { transform: none; }

/* Link arrows and footer links */
.link-arrow { position: relative; }
.link-arrow::after { content: ""; position: absolute; left: 0; right: 28px; bottom: -4px; height: 2px; border-radius: 2px; background: var(--lime-500); transform: scaleX(0); transform-origin: 0 50%; transition: transform .4s var(--ease); }
.link-arrow:hover::after, a:hover > .link-arrow::after, .card:hover .link-arrow::after { transform: scaleX(1); }
.card:hover .link-arrow svg { transform: translateX(5px); }
.site-footer ul a { position: relative; display: inline-block; transition: color .25s ease, transform .3s var(--ease); }
.site-footer ul a:hover { transform: translateX(4px); }

/* Form fields: label lights up while typing */
.field { transition: color .25s ease; }
.field:focus-within { color: var(--olive); }
.chip { transition: border-color .25s ease, background-color .25s ease, transform .25s var(--ease); }
.chip:hover { transform: translateY(-2px); border-color: var(--lime-500); }
.chip:has(input:checked) { background: var(--lime-50); border-color: var(--lime-500); color: var(--ink); font-weight: 500; }

/* Back to top */
.to-top { position: fixed; right: 20px; bottom: calc(20px + env(safe-area-inset-bottom, 0px)); z-index: 60; width: 50px; height: 50px; border: 0; border-radius: 50%; display: grid; place-items: center; cursor: pointer; background: var(--green-800); color: var(--lime-300); box-shadow: 0 12px 28px rgba(15, 46, 37, .35); opacity: 0; transform: translateY(16px) scale(.9); pointer-events: none; transition: opacity .35s ease, transform .45s var(--ease), background-color .25s ease; }
.to-top.is-shown { opacity: 1; transform: none; pointer-events: auto; }
.to-top:hover { background: var(--green-600); transform: translateY(-3px); }
.to-top svg { width: 22px; height: 22px; stroke-width: 2.2; }

/* Pulsing ring on the live badge */
.live { transition: background-color .3s ease, border-color .3s ease; }
.live:hover { background: rgba(255, 255, 255, .14); border-color: var(--lime-300); }

@media (prefers-reduced-motion: reduce) {
  ::view-transition-old(root), ::view-transition-new(root) { animation-name: fadeIn; animation-duration: .3s; }
  ::view-transition-old(root) { animation-direction: reverse; }
  .display .w > span { transform: none; animation: fadeIn .8s ease both; animation-delay: calc(var(--i) * 50ms); }
  .grad { animation: none; }
  .wm, .glow, .photo .photo__mark { translate: none; }
  .site-header.is-hidden { transform: none; }
  .rows > *:hover, .pill:hover, .chip:hover, .site-footer ul a:hover, .card:hover .ico, .person:hover .avatar, .brand:hover img { transform: none; }
  .btn::after, .photo::after { display: none; }
  .js .reveal, .js .reveal-group > * { filter: none; }
}

/* Tagline */
.tagline { font-size: clamp(21px, 2.1vw, 28px); font-weight: 600; line-height: 1.3; letter-spacing: -0.01em; color: var(--lime-300); }
.hero--cream .tagline, .sec--cream .tagline { color: var(--olive); }
.footer-tagline { font-size: 17px; font-weight: 300; line-height: 1.65; color: var(--on-dark); }
.mail-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.mail-list a { display: flex; flex-direction: column; gap: 1px; padding: 14px 16px; border-radius: 16px; background: rgba(255, 255, 255, .08); border: 1px solid rgba(255, 255, 255, .15); text-decoration: none; color: #fff; font-size: 14px; transition: background-color .3s ease, border-color .3s ease, transform .35s var(--ease); }
.mail-list a:hover { background: rgba(255, 255, 255, .13); border-color: rgba(181, 214, 90, .5); transform: translateY(-2px); color: #fff; }
.mail-list span { font-size: 12px; font-weight: 500; letter-spacing: .5px; color: var(--lime-300); }
@media (max-width: 420px) { .mail-list { grid-template-columns: minmax(0, 1fr); } }
.mail-note { display: flex; align-items: center; gap: 12px; font-size: 15px; color: var(--muted); }
.mail-note svg { width: 20px; height: 20px; stroke: var(--olive); flex-shrink: 0; }
.mail-note a { font-weight: 600; }
.card--dark .mail-note, .band .mail-note { color: var(--on-dark); }
.card--dark .mail-note svg { stroke: var(--lime-300); }
.card--dark .mail-note a { color: var(--lime-100); }

/* File upload */
.field input[type="file"] { padding: 10px 12px; cursor: pointer; }
.field input[type="file"]::file-selector-button { margin-right: 14px; padding: 9px 18px; border: 0; border-radius: 999px; background: var(--green-800); color: #fff; font: inherit; font-size: 14px; font-weight: 600; cursor: pointer; transition: background-color .2s ease; }
.field input[type="file"]::file-selector-button:hover { background: var(--olive); }
.card--dark .status:not(.status--pilot) { border-color: rgba(255, 255, 255, .45); color: #fff; }

/* Registered tag and document viewer */
.tag--done { background: var(--green-800); color: #fff; text-decoration: none; }
a.tag { text-decoration: none; transition: background-color .2s ease, color .2s ease; }
a.tag:hover { background: var(--lime-300); color: var(--ink-deep); }
.docview { background: #fff; border: 1px solid var(--field); border-radius: var(--radius-lg); overflow: hidden; box-shadow: 0 18px 40px rgba(15, 46, 37, .08); }
.docview__tabs { display: flex; flex-wrap: wrap; gap: 8px; padding: 14px; background: var(--sand-2); border-bottom: 1px solid var(--field); }
.docview__tab { display: inline-flex; align-items: center; gap: 8px; padding: 10px 18px; border: 1px solid transparent; border-radius: 999px; background: transparent; font: inherit; font-size: 14px; font-weight: 600; color: var(--ink); cursor: pointer; transition: background-color .2s ease, color .2s ease, border-color .2s ease; }
.docview__tab svg { width: 17px; height: 17px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.docview__tab:hover { border-color: var(--field); background: #fff; }
.docview__tab.is-active { background: var(--green-800); color: #fff; }
.docview__frame { background: #E9E6DA; }
.docview__pages { display: flex; flex-direction: column; align-items: center; gap: 18px; max-height: min(82vh, 920px); overflow-y: auto; padding: 22px 18px; overscroll-behavior: contain; }
.docview__pages img { display: block; width: min(100%, 820px); height: auto; border-radius: 6px; background: #fff; box-shadow: 0 10px 28px rgba(15, 46, 37, .18); }
.docview__pages:focus-visible { outline: 3px solid var(--lime-500); outline-offset: -3px; }
.docview__bar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 14px 24px; padding: 16px 20px; border-top: 1px solid var(--field); }
.docview__bar .small { flex: 1 1 320px; margin: 0; }
@media (max-width: 760px) {
  .docview__pages { max-height: 70vh; padding: 14px 12px; gap: 12px; }
  .docview__tab { flex: 1 1 100%; justify-content: center; }
}
