:root {
  --ink: #141414;
  --ink-2: #2a2a2a;
  --bone: #f2efe9;
  --bone-2: #e6e1d7;
  --ember: #e8641b;
  --ember-dark: #c2500f;
  --ash: #8c8880;
  --ash-dark: #5a5750;
  --white: #ffffff;
  --display: "Archivo", "Helvetica Neue", Arial, sans-serif;
  --body: "IBM Plex Sans", "Helvetica Neue", Arial, sans-serif;
  --max: 1280px;
  --pad: clamp(20px, 5vw, 64px);
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--body);
  font-size: 17px;
  line-height: 1.55;
  color: var(--ink);
  background: var(--bone);
}
img { max-width: 100%; display: block; }
a { color: inherit; }
h1, h2, h3, h4 { font-family: var(--display); font-weight: 800; text-transform: uppercase; letter-spacing: -0.01em; line-height: 1.02; margin: 0; }
h1 { font-size: clamp(38px, 6.2vw, 72px); letter-spacing: -0.02em; }
h2 { font-size: clamp(30px, 4vw, 48px); }
h3 { font-size: clamp(20px, 2vw, 26px); }
p { margin: 0 0 1em; }
.wrap { max-width: var(--max); margin: 0 auto; padding-left: var(--pad); padding-right: var(--pad); }
.label { font-size: 12px; letter-spacing: 0.3em; text-transform: uppercase; font-weight: 600; color: var(--ember); }
.label.ash { color: var(--ash-dark); }
.rule { width: 56px; height: 4px; background: var(--ink); margin: 18px 0 24px; }
.rule.ember { background: var(--ember); }
.lede { font-size: clamp(18px, 1.6vw, 22px); line-height: 1.45; color: var(--ink-2); max-width: 760px; }
.muted { color: var(--ash-dark); }
.accent { color: var(--ember); }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; padding: 16px 28px; font-family: var(--body); font-weight: 600; font-size: 16px; text-decoration: none; border-radius: 2px; border: 2px solid transparent; cursor: pointer; line-height: 1; min-height: 48px; }
.btn.primary { background: var(--ember); color: var(--white); border-color: var(--ember); }
.btn.primary:hover { background: var(--ember-dark); border-color: var(--ember-dark); }
.btn.ghost { background: transparent; color: var(--white); border-color: var(--white); }
.btn.ghost:hover { background: rgba(255,255,255,0.12); }
.btn.dark { background: var(--ink); color: var(--white); border-color: var(--ink); }
.btn.dark:hover { background: var(--ink-2); }
.btn.outline { background: transparent; color: var(--ink); border-color: var(--ink); }
.btn.outline:hover { background: var(--ink); color: var(--white); }
.btn[disabled] { opacity: 0.6; cursor: default; }

/* nav */
.nav { background: var(--ink); color: var(--white); position: sticky; top: 0; z-index: 20; }
.nav .wrap { display: flex; align-items: center; justify-content: space-between; gap: 24px; min-height: 76px; }
.brand { display: flex; align-items: center; gap: 14px; text-decoration: none; color: var(--white); }
.brand img { width: 44px; height: 44px; object-fit: contain; }
.brand .name { font-family: var(--display); font-weight: 800; font-size: 15px; letter-spacing: 0.1em; text-transform: uppercase; line-height: 1.1; }
.brand .tag { font-size: 10px; letter-spacing: 0.3em; color: var(--ash); }
.menu { display: flex; align-items: center; gap: 28px; list-style: none; margin: 0; padding: 0; }
.menu a { color: var(--white); text-decoration: none; font-size: 15px; font-weight: 500; }
.menu a:hover, .menu a[aria-current="page"] { color: var(--ember); }
.menu .btn { padding: 12px 22px; min-height: 44px; }
.menu .btn:hover { color: var(--white); }
.burger { display: none; background: none; border: 0; color: var(--white); width: 44px; height: 44px; cursor: pointer; }
@media (max-width: 860px) {
  .burger { display: inline-flex; align-items: center; justify-content: center; }
  .menu { display: none; position: absolute; left: 0; right: 0; top: 76px; background: var(--ink); flex-direction: column; align-items: stretch; gap: 0; padding: 8px 0 16px; border-top: 1px solid #2a2a2a; }
  .menu.open { display: flex; }
  .menu li a { display: block; padding: 14px var(--pad); }
  .menu li .btn { margin: 8px var(--pad) 0; }
  .brand .tag { display: none; }
}

/* hero */
.hero { position: relative; background: var(--ink); color: var(--white); overflow: hidden; }
.hero img.bg, .hero video.bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.hero .shade { position: absolute; inset: 0; background: linear-gradient(90deg, rgba(20,20,20,0.96) 0%, rgba(20,20,20,0.82) 38%, rgba(20,20,20,0.35) 68%, rgba(20,20,20,0.15) 100%); }
.hero .wrap { position: relative; min-height: clamp(520px, 72vh, 760px); display: flex; flex-direction: column; justify-content: center; padding-top: 72px; padding-bottom: 72px; }
.hero .inner { max-width: 680px; display: flex; flex-direction: column; gap: 22px; }
.hero p { color: #d9d5cd; font-size: clamp(17px, 1.5vw, 20px); max-width: 540px; }
.hero .actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 6px; }
.hero.short .wrap { min-height: clamp(360px, 48vh, 520px); }
@media (max-width: 700px) { .hero .shade { background: linear-gradient(180deg, rgba(20,20,20,0.55) 0%, rgba(20,20,20,0.92) 60%); } }

/* stats */
.stats { background: var(--bone); border-bottom: 1px solid var(--bone-2); }
.stats .wrap { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 32px; padding-top: 36px; padding-bottom: 36px; }
.stat { border-left: 3px solid var(--ember); padding-left: 16px; }
.stat b { display: block; font-family: var(--display); font-weight: 800; font-size: clamp(34px, 3.4vw, 46px); line-height: 1; margin-bottom: 6px; }
.stat span { font-size: 14px; color: var(--ash-dark); }
.stats.dark { background: var(--ink); color: var(--white); border: 0; }
.stats.dark .stat span { color: #bdb8ae; }
@media (max-width: 900px) { .stats .wrap { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

/* sections */
.section { padding: clamp(56px, 7vw, 96px) 0; }
.section.ink { background: var(--ink); color: var(--white); }
.section.ink .lede { color: #d9d5cd; }
.section.ink .rule { background: var(--white); }
.section.ink .muted { color: #bdb8ae; }
.section.white { background: var(--white); }
.section.ember { background: var(--ember); color: var(--ink); }
.split { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 6fr); gap: clamp(32px, 5vw, 72px); align-items: start; }
.split.rev { grid-template-columns: minmax(0, 6fr) minmax(0, 7fr); }
@media (max-width: 900px) { .split, .split.rev { grid-template-columns: 1fr; } }
.steps { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px 28px; margin-top: 28px; }
.step .n { width: 40px; height: 40px; background: var(--ink); color: var(--white); font-family: var(--display); font-weight: 800; display: flex; align-items: center; justify-content: center; margin-bottom: 10px; }
.section.ink .step .n { background: var(--ember); color: var(--ink); }
.step h4 { font-size: 15px; letter-spacing: 0.04em; margin-bottom: 6px; }
.step p { font-size: 15px; color: var(--ash-dark); margin: 0; }
.section.ink .step p { color: #bdb8ae; }
@media (max-width: 560px) { .steps { grid-template-columns: 1fr; } }
.photo { width: 100%; height: 100%; object-fit: cover; border-radius: 2px; }
.mosaic { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); grid-auto-rows: minmax(240px, auto); gap: 16px; }
.mosaic .photo { min-height: 240px; }
@media (max-width: 560px) { .mosaic { grid-template-columns: 1fr; grid-auto-rows: auto; } .mosaic .photo { aspect-ratio: 4 / 3; min-height: 0; } }
.mosaic .wide { grid-column: 1 / -1; }
.card { background: var(--ink); color: var(--white); padding: 28px; font-size: 15px; border-radius: 2px; display: flex; flex-direction: column; justify-content: space-between; gap: 16px; }
.card a { color: var(--ember); font-weight: 600; text-decoration: none; }
.card.bone { background: var(--bone); color: var(--ink); }
.card.bone a { color: var(--ember-dark); }
.card.ember { background: var(--ember); color: var(--ink); }
.card.ember a { color: var(--ink); }

/* grid of cases */
.cases { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 24px; }
.case img { aspect-ratio: 4 / 3; width: 100%; object-fit: cover; border-radius: 2px; margin-bottom: 16px; }
.case h3 { font-size: 18px; margin-bottom: 10px; }
.case p { font-size: 15px; color: var(--ash-dark); }
@media (max-width: 1000px) { .cases { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) { .cases { grid-template-columns: 1fr; } }

/* band */
.band { position: relative; background: var(--ember); color: var(--ink); overflow: hidden; }
.band .wrap { position: relative; display: flex; align-items: center; justify-content: space-between; gap: 40px; padding-top: 56px; padding-bottom: 56px; flex-wrap: wrap; }
.band .quote { border-left: 5px solid var(--ink); padding-left: 24px; max-width: 760px; }
.band .quote h2 { font-size: clamp(24px, 3vw, 36px); }
.band .quote p { margin: 12px 0 0; color: #3a1a08; }
.band.dark { background: var(--ink); color: var(--white); }
.band.dark .quote { border-color: var(--ember); }
.band.dark .quote p { color: #d9d5cd; }
.band.dark img.bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0.35; }

/* timeline */
.timeline { display: grid; grid-template-columns: repeat(8, minmax(0, 1fr)); gap: 16px; position: relative; margin-top: 32px; }
.timeline::before { content: ""; position: absolute; left: 0; right: 0; top: 7px; height: 2px; background: #3a3a3a; }
.tl { position: relative; padding-top: 24px; font-size: 13px; color: #bdb8ae; }
.tl::before { content: ""; position: absolute; left: 0; top: 0; width: 16px; height: 16px; border-radius: 50%; background: var(--ember); }
.tl.next::before { background: var(--ink); border: 3px solid var(--white); box-sizing: border-box; }
.tl b { display: block; color: var(--white); font-family: var(--display); font-size: 16px; margin-bottom: 4px; }
@media (max-width: 1000px) { .timeline { grid-template-columns: repeat(4, minmax(0, 1fr)); } .timeline::before { display: none; } }
@media (max-width: 560px) { .timeline { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

/* team */
.team { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 32px 28px; }
.member img { aspect-ratio: 1 / 1; width: 100%; object-fit: cover; border-radius: 2px; margin-bottom: 14px; filter: grayscale(100%) contrast(1.05); transition: filter 0.3s; }
.member:hover img { filter: none; }
.member h3 { font-size: 18px; }
.member .role { color: var(--ember); font-weight: 600; font-size: 14px; margin: 4px 0 8px; }
.member p { font-size: 15px; color: var(--ash-dark); margin: 0; }
@media (max-width: 900px) { .team { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 520px) { .team { grid-template-columns: 1fr; } }
.partners { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
.partners div { border-top: 3px solid var(--ember); padding-top: 14px; font-size: 15px; }
.partners b { display: block; font-size: 16px; margin-bottom: 4px; }
@media (max-width: 700px) { .partners { grid-template-columns: 1fr; } }

/* pubs */
.pub { border-top: 1px solid var(--bone-2); padding: 28px 0; display: grid; grid-template-columns: 140px minmax(0, 1fr); gap: 24px; }
.pub .year { font-family: var(--display); font-weight: 800; font-size: 28px; color: var(--ember); }
.pub h3 { font-size: 20px; text-transform: none; letter-spacing: 0; line-height: 1.25; margin-bottom: 8px; }
.pub p { font-size: 15px; color: var(--ash-dark); }
.pub .cite { font-size: 13px; color: var(--ash-dark); font-style: italic; }
@media (max-width: 600px) { .pub { grid-template-columns: 1fr; gap: 6px; } }

/* tiers */
.tiers { width: 100%; border-collapse: collapse; font-size: 15px; }
.tiers th { text-align: left; font-size: 12px; letter-spacing: 0.2em; text-transform: uppercase; color: var(--ash-dark); padding: 0 12px 12px 0; border-bottom: 2px solid var(--ink); }
.tiers td { padding: 16px 12px 16px 0; border-bottom: 1px solid var(--bone-2); vertical-align: top; }
.tiers td:first-child { font-weight: 600; white-space: nowrap; }
.tiers .amt { color: var(--ember); font-weight: 700; white-space: nowrap; }
@media (max-width: 700px) { .tiers thead { display: none; } .tiers tr { display: block; padding: 12px 0; border-bottom: 1px solid var(--bone-2); } .tiers td { display: block; border: 0; padding: 4px 0; } }

/* forms */
.field { display: flex; flex-direction: column; gap: 6px; margin-bottom: 18px; }
.field label { font-size: 13px; font-weight: 600; letter-spacing: 0.04em; }
.field input, .field select, .field textarea { font: inherit; font-size: 16px; padding: 12px 14px; border: 2px solid var(--ink); background: var(--white); color: var(--ink); border-radius: 2px; width: 100%; }
.field input:focus, .field select:focus, .field textarea:focus { outline: 3px solid var(--ember); outline-offset: 1px; }
.field textarea { min-height: 140px; resize: vertical; }
.field .err { color: #b3360c; font-size: 14px; }
.field .help { font-size: 13px; color: var(--ash-dark); }
.form-error { background: #fde8dc; color: #7a2a08; padding: 12px 16px; border-radius: 2px; margin-bottom: 16px; }
.form-ok { background: var(--ink); color: var(--white); padding: 24px; border-radius: 2px; }
.skeleton { height: 48px; background: var(--bone-2); border-radius: 2px; margin-bottom: 18px; animation: pulse 1.2s infinite; }
@keyframes pulse { 50% { opacity: 0.5; } }

/* donate form */
.donate-box { background: var(--white); border: 2px solid var(--ink); padding: 28px; border-radius: 2px; position: sticky; top: 96px; }
.seg { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0; border: 2px solid var(--ink); border-radius: 2px; overflow: hidden; margin-bottom: 18px; }
.seg button { font: inherit; font-weight: 600; padding: 12px; background: var(--white); color: var(--ink); border: 0; cursor: pointer; min-height: 48px; }
.seg button[aria-pressed="true"] { background: var(--ink); color: var(--white); }
.amounts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; margin-bottom: 14px; }
.amounts button { font: inherit; text-align: left; padding: 12px 14px; background: var(--bone); border: 2px solid var(--bone-2); border-radius: 2px; cursor: pointer; min-height: 48px; color: var(--ink); }
.amounts button b { display: block; font-family: var(--display); font-size: 20px; }
.amounts button small { display: block; font-size: 12px; color: var(--ash-dark); line-height: 1.3; }
.amounts button[aria-pressed="true"] { border-color: var(--ember); background: #fdeadd; }
.amounts button.other { grid-column: 1 / -1; }
.check { display: flex; gap: 10px; align-items: flex-start; font-size: 14px; margin-bottom: 14px; }
.check input { width: 20px; height: 20px; margin-top: 2px; accent-color: var(--ember); }
.donate-box .btn { width: 100%; margin-top: 6px; }
.note { font-size: 13px; color: var(--ash-dark); margin-top: 12px; }
@media (max-width: 900px) { .donate-box { position: static; } }

/* footer */
footer { background: var(--ink); color: var(--ash); font-size: 14px; }
footer .wrap { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 32px; padding-top: 56px; padding-bottom: 40px; }
footer h4 { color: var(--white); font-size: 13px; letter-spacing: 0.2em; margin-bottom: 14px; }
footer a { color: #d9d5cd; text-decoration: none; display: block; margin-bottom: 8px; }
footer a:hover { color: var(--ember); }
footer .fine { border-top: 1px solid #2a2a2a; }
footer .fine .wrap { display: flex; justify-content: space-between; gap: 16px; padding: 20px var(--pad); flex-wrap: wrap; font-size: 13px; }
@media (max-width: 700px) { footer .wrap { grid-template-columns: 1fr; } }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
/* site legend */
.legend { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px 28px; }
.legend li { display: flex; gap: 14px; align-items: flex-start; }
.legend .n { flex: 0 0 34px; width: 34px; height: 34px; border-radius: 50%; background: var(--ink); color: var(--white); font-family: var(--display); font-weight: 800; font-size: 15px; display: flex; align-items: center; justify-content: center; }
.legend b { display: block; font-size: 16px; line-height: 1.3; padding-top: 6px; }
.legend small { display: block; color: var(--ember-dark); font-weight: 600; font-size: 13px; margin-top: 3px; }
@media (max-width: 600px) { .legend { grid-template-columns: 1fr; } }

/* image pair that stretches to the text column */
.pair { display: grid; gap: 16px; }
@media (min-width: 901px) {
  .split.level { align-items: stretch; }
  .pair { height: 100%; grid-template-rows: 1fr 1fr; }
  .pair img { aspect-ratio: auto; height: 100%; min-height: 0; }
}

/* SCOUT cycle */
.cycle { display: grid; grid-template-columns: minmax(0, 1fr) 420px minmax(0, 1fr); grid-template-rows: auto auto; gap: 24px 40px; align-items: center; margin-top: 40px; }
.cycle .centre { grid-column: 2; grid-row: 1 / span 2; position: relative; aspect-ratio: 1 / 1; display: flex; align-items: center; justify-content: center; }
.cycle .centre svg { position: absolute; inset: 0; width: 100%; height: 100%; }
.cycle .people { position: relative; display: flex; align-items: flex-end; gap: 10px; height: 52%; transform: translateY(-8%); }
.cycle .people img { height: 100%; width: auto; }
.cycle .centre .label { position: absolute; bottom: 11%; left: 0; right: 0; text-align: center; }
.cycle .s1 { grid-column: 1; grid-row: 1; } .cycle .s2 { grid-column: 3; grid-row: 1; }
.cycle .s4 { grid-column: 1; grid-row: 2; } .cycle .s3 { grid-column: 3; grid-row: 2; }
.cstep .n { width: 40px; height: 40px; background: var(--ember); color: var(--ink); font-family: var(--display); font-weight: 800; display: flex; align-items: center; justify-content: center; margin-bottom: 14px; }
.cstep .pict { display: flex; align-items: flex-end; gap: 14px; height: 80px; margin-bottom: 14px; }
.cstep .pict img { width: auto; }
.cstep h4 { font-size: 15px; letter-spacing: 0.04em; margin-bottom: 6px; color: var(--white); }
.cstep p { font-size: 15px; color: #bdb8ae; margin: 0; }
.cycle .s2, .cycle .s3 { text-align: left; }
@media (max-width: 1000px) {
  .cycle { grid-template-columns: 1fr 1fr; grid-template-rows: auto auto auto; }
  .cycle .centre { grid-column: 1 / -1; grid-row: 2; max-width: 360px; margin: 0 auto; width: 100%; }
  .cycle .s1 { grid-column: 1; grid-row: 1; } .cycle .s2 { grid-column: 2; grid-row: 1; }
  .cycle .s4 { grid-column: 1; grid-row: 3; } .cycle .s3 { grid-column: 2; grid-row: 3; }
}
@media (max-width: 600px) { .cycle { grid-template-columns: 1fr; grid-template-rows: auto; } .cycle .s1, .cycle .s2, .cycle .s3, .cycle .s4, .cycle .centre { grid-column: 1; grid-row: auto; } }
/* publication logos */
.pub { grid-template-columns: 140px minmax(0, 1fr) 190px; align-items: start; }
.pub .logos { display: flex; justify-content: center; align-items: center; align-self: center; padding-left: 24px; opacity: 0.7; }
.pub .logos img { width: 150px; height: 64px; object-fit: contain; }
.pub .logos img.tall { height: 110px; }
.pub .cite { font-style: normal; }
.pub .cite a { color: var(--ember-dark); font-weight: 600; text-decoration: none; }
.pub .cite a:hover { text-decoration: underline; }
@media (max-width: 760px) { .pub { grid-template-columns: 1fr; } .pub .logos { justify-content: flex-start; padding-left: 0; } .pub .logos img { width: 130px; height: 50px; object-position: left center; } .pub .logos img.tall { height: 80px; } }

/* home SCOUT section */
.scout-home { display:grid; grid-template-columns:minmax(0,6fr) minmax(0,7fr); gap:clamp(32px,5vw,72px); align-items:start; }
.scout-home .figure { display:flex; align-items:center; gap:28px; margin-top:32px; }
.scout-home .figure .people { display:flex; align-items:flex-end; gap:12px; height:300px; }
.scout-home .figure .people img { height:100%; width:auto; }
.scout-home .figure ol { list-style:none; margin:0; padding:0; display:flex; flex-direction:column; gap:18px; }
.scout-home .figure li { display:flex; align-items:center; gap:14px; font-family:var(--display); font-weight:800; font-size:15px; letter-spacing:0.04em; text-transform:uppercase; color:#fff; }
.scout-home .figure li .n { width:40px; height:40px; background:var(--ember); color:var(--ink); display:flex; align-items:center; justify-content:center; flex:0 0 40px; }
.stack4 { display:grid; grid-template-columns:1fr 1fr; gap:16px; }
.stack4 img { width:100%; height:100%; object-fit:cover; border-radius:2px; }
.stack4 .wide { grid-column:1/-1; aspect-ratio:2/1; }
.stack4 .sq { aspect-ratio:1/1; }
@media (max-width:900px) { .scout-home { grid-template-columns:1fr; } }
@media (max-width:480px) { .scout-home .figure { gap:18px; } .scout-home .figure .people { height:220px; } .scout-home .figure li { font-size:13px; } }

/* ---- Home: local science on the frontlines (map + partners) ---- */
.frontlines { padding-bottom: 0; }
.fl-grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(32px, 4.5vw, 64px); align-items: center; }
.fl-strap { font-weight: 600; color: var(--ink); }
.fl-map { position: relative; margin: 0; }
.fl-canvas { position: relative; aspect-ratio: 1400 / 1018; border-radius: 3px; overflow: hidden; background: #2a3324; }
.fl-map .fl-base { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.fl-link { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; }
.fl-link line { stroke: var(--bone); stroke-width: 1.5; stroke-dasharray: 4 3; vector-effect: non-scaling-stroke; }
.fl-box { position: absolute; left: 51.5%; top: 58.8%; width: 3.4%; height: 4.4%; border: 2px solid var(--bone); }
.fl-park { position: absolute; left: 64%; top: 50%; font-family: var(--display); font-weight: 800; font-size: 15px; letter-spacing: 0.3em; text-transform: uppercase; color: var(--bone); text-shadow: 0 1px 6px rgba(0,0,0,0.55); }
.fl-map .paw { position: absolute; width: 26px; height: 26px; padding: 5px; transform: translate(-50%, -50%); border-radius: 50%; background: var(--bone); fill: var(--ink); box-shadow: 0 2px 8px rgba(0,0,0,0.45); }
.fl-inset { position: absolute; border: 1.5px solid var(--bone); box-shadow: 0 10px 30px rgba(0,0,0,0.35); overflow: hidden; background: #333; }
.fl-inset img { width: 100%; height: 100%; object-fit: cover; }
.fl-conflict { left: 2.5%; top: 3%; width: 44%; aspect-ratio: 16 / 9; }
.fl-cows { left: 2.5%; top: 41%; width: 30%; aspect-ratio: 713 / 666; }
.fl-cam { right: 3%; bottom: 4%; width: 15%; aspect-ratio: 5 / 6; }
.fl-conflict .ev { position: absolute; width: 14px; height: 14px; border-radius: 50%; background: var(--ember); box-shadow: 0 0 0 2px rgba(255,255,255,0.85); opacity: 0; animation: fl-pulse var(--t, 6s) ease-in-out var(--d, 0s) infinite; }
.fl-conflict .ev::after { content: ""; position: absolute; inset: 0; border-radius: 50%; border: 2px solid var(--ember); animation: fl-ring var(--t, 6s) ease-out var(--d, 0s) infinite; }
@keyframes fl-pulse { 0%, 100% { opacity: 0; transform: translate(-50%, -50%) scale(0.4); } 12%, 55% { opacity: 1; transform: translate(-50%, -50%) scale(1); } 75% { opacity: 0; transform: translate(-50%, -50%) scale(1.6); } }
@keyframes fl-ring { 0% { opacity: 0.8; transform: scale(0.6); } 60%, 100% { opacity: 0; transform: scale(2.6); } }
.fl-tag { position: absolute; left: 10px; bottom: 10px; display: flex; align-items: center; gap: 8px; background: rgba(20,20,20,0.82); color: var(--bone); font-size: 11px; font-weight: 600; letter-spacing: 0.16em; text-transform: uppercase; padding: 7px 10px; line-height: 1.2; white-space: nowrap; }
.fl-tag i { width: 8px; height: 8px; border-radius: 50%; background: var(--ember); flex: none; }
.fl-legend { position: absolute; right: 4%; top: 6%; display: grid; justify-items: end; gap: 6px; color: var(--bone); font-size: 12px; font-weight: 500; text-align: right; text-shadow: 0 1px 6px rgba(0,0,0,0.55); }
.fl-legend b { font-family: var(--display); font-weight: 800; font-size: 13px; letter-spacing: 0.22em; text-transform: uppercase; margin-bottom: 2px; }
.fl-legend span { display: flex; align-items: center; gap: 8px; }
.fl-legend .k-line { width: 26px; height: 3px; background: var(--ember); }
.fl-legend .k-dot { width: 10px; height: 10px; border-radius: 50%; background: var(--ember); box-shadow: 0 0 0 2px var(--bone); }
.fl-legend .k-paw { width: 18px; height: 18px; padding: 3px; border-radius: 50%; background: var(--bone); }
.fl-legend .k-paw svg { width: 12px; height: 12px; display: block; fill: var(--ink); }
.fl-partners { margin-top: clamp(48px, 6vw, 80px); border-top: 1px solid var(--bone-2); display: grid; grid-template-columns: max-content minmax(0, 1fr); align-items: center; min-height: 132px; }
.fl-partners-head { display: grid; gap: 6px; padding: 24px 40px 24px max(var(--pad), calc((100vw - var(--max)) / 2 + var(--pad))); font-size: 14px; line-height: 1.4; }
.fl-partners-head .label { white-space: nowrap; }
.fl-partners-head .muted { max-width: 230px; }
.fl-ticker { overflow: hidden; background: var(--bone); -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); }
.fl-track { display: flex; align-items: center; width: max-content; margin: 0; padding: 0; list-style: none; background: var(--bone); animation: fl-tick 52s linear infinite; }
.fl-ticker:hover .fl-track { animation-play-state: paused; }
.fl-track li { flex: none; display: flex; align-items: center; height: 96px; padding-right: 64px; }
.fl-track .logo { width: auto; height: calc(var(--h) * 1px); filter: grayscale(1) contrast(1.4); mix-blend-mode: multiply; opacity: 0.55; transition: filter 0.3s, opacity 0.3s; }
.fl-track .logo.keep { filter: none; mix-blend-mode: normal; opacity: 1; }
.fl-track .logo:hover { filter: none; opacity: 1; }
@keyframes fl-tick { from { transform: translateX(0); } to { transform: translateX(-50%); } }
@media (max-width: 900px) {
  .fl-grid { grid-template-columns: 1fr; }
  .fl-partners { grid-template-columns: 1fr; }
  .fl-partners-head { padding: 24px var(--pad) 0; }
  .fl-partners-head .muted { max-width: none; }
  .fl-track li { height: 84px; padding-right: 44px; }
  .fl-track .logo { height: calc(var(--h) * 0.8px); }
}
@media (max-width: 560px) {
  .fl-conflict { width: 58%; }
  .fl-cows { top: 52%; width: 34%; }
  .fl-cam { width: 22%; }
  .fl-tag { font-size: 9px; letter-spacing: 0.1em; padding: 5px 7px; left: 6px; bottom: 6px; }
  .fl-conflict .ev { width: 10px; height: 10px; }
  .fl-legend { position: static; display: flex; flex-wrap: wrap; justify-items: start; gap: 8px 16px; margin-top: 12px; color: var(--ink); text-shadow: none; text-align: left; }
  .fl-legend b { width: 100%; font-size: 11px; margin: 0; }
  .fl-legend .k-dot { box-shadow: none; }
  .fl-legend .k-paw { background: var(--ink); }
  .fl-legend .k-paw svg { fill: var(--bone); }
  .fl-park { font-size: 11px; }
  .fl-map .paw { width: 20px; height: 20px; padding: 4px; }
}
@media (prefers-reduced-motion: reduce) {
  .fl-conflict .ev { animation: none; opacity: 1; transform: translate(-50%, -50%); }
  .fl-conflict .ev::after { animation: none; opacity: 0; }
  .fl-track { animation: none; }
  .fl-ticker { overflow-x: auto; }
}

/* ---- Team page: colour portraits and partner logo wall ---- */
.team.colour .member img, .team.colour .member:hover img { filter: none; }
.partners-wall .pw-head { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(32px, 5vw, 64px); align-items: start; }
.partners-wall .pw-copy { margin: 6px 0 0; font-size: clamp(17px, 1.4vw, 19px); line-height: 1.55; color: var(--ink-2); }
.pw-logos { list-style: none; margin: clamp(40px, 5vw, 64px) 0 0; padding: 0 24px; display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 32px 40px; min-height: 120px; }
.pw-logos li { display: flex; align-items: center; }
.pw-investors { justify-content: center; gap: 32px 96px; margin-top: 28px; min-height: 110px; }
.pl-logo { width: auto; height: calc(var(--h) * 1px); filter: grayscale(1) contrast(1.4); mix-blend-mode: multiply; opacity: 0.55; }
.pl-logo.keep { filter: none; mix-blend-mode: normal; opacity: 1; }
.pw-divider { display: flex; align-items: center; gap: 20px; margin-top: 40px; font-size: 12px; letter-spacing: 0.3em; text-transform: uppercase; font-weight: 600; color: var(--ash-dark); }
.pw-divider::before, .pw-divider::after { content: ""; flex: 1; height: 1px; background: #d9d3c7; }
@media (max-width: 900px) {
  .partners-wall .pw-head { grid-template-columns: 1fr; }
  .pw-logos { justify-content: center; padding: 0; gap: 28px 40px; }
  .pw-investors { gap: 28px 48px; }
  .pl-logo { height: calc(var(--h) * 0.75px); }
}
.team.colour .member img { height: auto; aspect-ratio: 8 / 7; object-position: 50% 25%; }

/* ---- SCOUT page: why SCOUT comparison and focal species ---- */
.ws-grid { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: clamp(32px, 4vw, 56px); align-items: stretch; }
.why-scout .lede { font-size: clamp(17px, 1.4vw, 19px); }
.cmp { margin-top: 36px; border-top: 2px solid var(--ink); }
.cmp-head, .cmp-row { display: grid; grid-template-columns: 150px minmax(0, 1fr) minmax(0, 1fr); gap: 24px; border-bottom: 1px solid #d9d3c7; }
.cmp-head { padding: 14px 0; font-size: 12px; letter-spacing: 0.3em; text-transform: uppercase; font-weight: 600; color: var(--ash-dark); }
.cmp-row { padding: 20px 0; align-items: baseline; font-size: 15px; }
.cmp-label { font-family: var(--display); font-weight: 800; text-transform: uppercase; line-height: 1.2; }
.cmp-usual { color: var(--ash-dark); }
.cmp-scout { font-weight: 600; }
.cmp-row i { display: none; }
.species { background: var(--ink); color: var(--white); padding: 36px 36px 32px; border-radius: 2px; display: flex; flex-direction: column; }
.sp-grid { flex: 1; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); align-content: space-evenly; gap: 24px 16px; margin-top: 24px; }
.sp { display: flex; flex-direction: column; align-items: center; text-align: center; padding: 8px 8px 4px; }
.sp-fig { height: 124px; width: 100%; display: flex; align-items: flex-end; justify-content: center; border-bottom: 1px solid #3a3936; max-width: 70%; padding-bottom: 2px; }
.sp-sil { display: block; max-width: 100%; background: var(--ash); -webkit-mask: var(--src) center bottom / contain no-repeat; mask: var(--src) center bottom / contain no-repeat; }
.sp b { margin-top: 14px; font-family: var(--display); font-weight: 800; text-transform: uppercase; font-size: 15px; line-height: 1.2; }
.sp em { font-size: 12px; color: #a39d92; }
.sp-tag { margin-top: 10px; font-size: 10px; letter-spacing: 0.12em; text-transform: uppercase; font-weight: 600; padding: 5px 9px; border-radius: 2px; border: 1px solid var(--ash-dark); color: #bdb8ae; }
.sp-tag.vu { border-color: var(--ember); color: #f0a06e; }
.sp-note { margin: 14px 0 0; font-size: 12px; color: var(--ash); }
@media (max-width: 900px) {
  .ws-grid { grid-template-columns: 1fr; }
}
@media (max-width: 600px) {
  .cmp-head { display: none; }
  .cmp-row { grid-template-columns: 1fr; gap: 8px; }
  .cmp-row i { display: block; font-style: normal; font-size: 11px; letter-spacing: 0.2em; text-transform: uppercase; font-weight: 600; color: var(--ash-dark); margin-bottom: 2px; }
  .cmp-scout i { color: var(--ember); }
  .species { padding: 28px 20px 24px; }
  .sp-sil { transform: scale(0.85); transform-origin: center bottom; }
}

/* ---- SCOUT page: focal species, large silhouettes on bone ---- */
.species-big { display: flex; flex-direction: column; --s: 1; }
.sb-grid { flex: 1; display: grid; grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr); align-content: center; gap: 28px 16px; margin-top: 20px; }
.sb { display: flex; flex-direction: column; align-items: center; text-align: center; }
.sb-fig { width: 100%; height: calc(var(--box) * var(--s) * 1px); display: flex; align-items: flex-end; justify-content: center; border-bottom: 1px solid #d9d3c7; }
.sb-sil { display: block; width: calc(var(--w) * var(--s) * 1px); height: calc(var(--h) * var(--s) * 1px); max-width: 100%; background: var(--ash-dark); -webkit-mask: var(--src) center bottom / contain no-repeat; mask: var(--src) center bottom / contain no-repeat; }
.sb b { margin-top: 14px; font-family: var(--display); font-weight: 800; text-transform: uppercase; font-size: 15px; line-height: 1.2; color: var(--ink); }
.sb em { font-size: 12px; color: var(--ash-dark); }
.sb-tag { margin-top: 10px; font-size: 10px; letter-spacing: 0.12em; text-transform: uppercase; font-weight: 600; padding: 5px 9px; border-radius: 2px; border: 1px solid var(--ash); color: var(--ash-dark); }
.sb-tag.vu { border-color: var(--ember); color: var(--ember-dark); }
.sb-note { margin: 20px 0 0; font-size: 12px; color: var(--ash); }
@media (max-width: 900px) { .species-big { margin-top: 16px; } }
@media (max-width: 600px) { .species-big { --s: 0.68; } .sb-grid { gap: 24px 12px; } }

/* ---- SCOUT cycle: number and title side by side, more space ---- */
.cycle { gap: 72px 56px; }
.cycle .cstep { align-self: start; }
.cstep .chead { display: flex; align-items: center; gap: 14px; margin-bottom: 18px; }
.cstep .chead .n { margin-bottom: 0; flex: none; }
.cstep .chead h4 { margin: 0; font-size: 16px; }
.cstep .pict { margin-bottom: 16px; }
.cstep p { max-width: 340px; }
@media (max-width: 600px) { .cycle { gap: 48px; } }

/* ---- Archivo for body text across the site; tighter logo lockup ---- */
:root { --body: var(--display); }
.brand > span { line-height: 1.15; }

/* ---- Donate page: Pledge It card ---- */
.pledge-card { background: var(--white); border: 2px solid var(--ink); border-radius: 2px; padding: 32px; position: sticky; top: 96px; }
.pledge-card h3 { margin: 10px 0 0; font-size: 26px; line-height: 1.05; }
.pc-copy { margin: 12px 0 0; font-size: 16px; color: var(--ink-2); }
.pc-logos { display: flex; align-items: center; gap: 22px; margin-top: 26px; padding: 20px 0; border-top: 1px solid var(--bone-2); border-bottom: 1px solid var(--bone-2); flex-wrap: wrap; }
.pc-fc { display: flex; align-items: center; gap: 12px; }
.pc-mark { display: block; width: 58px; height: 60px; background: var(--ink); -webkit-mask: url("https://static.wixstatic.com/media/82f375_0562ecc0df9949abb1a02a89c3c1157f~mv2.png") center / contain no-repeat; mask: url("https://static.wixstatic.com/media/82f375_0562ecc0df9949abb1a02a89c3c1157f~mv2.png") center / contain no-repeat; }
.pc-word { display: flex; flex-direction: column; line-height: 1.1; font-family: var(--display); text-transform: uppercase; }
.pc-word b { font-weight: 800; font-size: 16px; letter-spacing: 0.08em; }
.pc-word span { font-weight: 700; font-size: 11px; letter-spacing: 0.18em; }
.pc-word small { font-size: 8.5px; letter-spacing: 0.2em; color: var(--ash-dark); margin-top: 4px; }
.pc-div { width: 1px; align-self: stretch; background: #d9d3c7; }
.pc-logos img { height: 30px; width: auto; }
.pledge-btn { margin-top: 24px; display: flex; align-items: center; justify-content: space-between; gap: 16px; background: #26df96; color: #0f1d17; text-decoration: none; border-radius: 14px; padding: 20px 26px; font-family: var(--display); font-weight: 700; font-size: 21px; letter-spacing: -0.01em; box-shadow: 0 5px 0 #17a56c; transition: filter 0.15s, transform 0.08s, box-shadow 0.08s; -webkit-tap-highlight-color: transparent; }
.pledge-btn:hover { filter: brightness(1.05); transform: translateY(-1px); box-shadow: 0 6px 0 #17a56c; color: #0f1d17; }
.pledge-btn:active { transform: translateY(4px) scale(0.985); box-shadow: 0 1px 0 #17a56c; filter: brightness(0.97); }
.pledge-btn:focus-visible { outline: 3px solid var(--ink); outline-offset: 3px; }
.pledge-btn .arr { transition: transform 0.2s; flex: none; }
.pledge-btn:hover .arr { transform: translateX(3px); }
.pc-note { margin: 14px 0 0; font-size: 13px; color: var(--ash-dark); }
@media (max-width: 900px) { .pledge-card { position: static; } }
@media (max-width: 420px) { .pledge-card { padding: 24px 20px; } .pledge-btn { font-size: 18px; padding: 18px 20px; } .pc-div { display: none; } }

.pc-logos { flex-wrap: nowrap; gap: 18px; }
.pc-mark { width: 50px; height: 52px; flex: none; }
.pc-logos img { height: auto; width: 100%; max-width: 168px; min-width: 0; flex: 1 1 auto; object-fit: contain; }
@media (max-width: 420px) { .pc-logos { flex-wrap: wrap; } .pc-logos img { flex: none; width: 150px; } }
.pc-word small { white-space: nowrap; letter-spacing: 0.14em; }
.pc-fc { flex: none; }

.pledge-btn .pb-l { display: flex; align-items: center; gap: 14px; }
.pledge-btn .pi { width: 32px; height: 33px; flex: none; display: block; }
@media (max-width: 420px) { .pledge-btn .pi { width: 26px; height: 27px; } .pledge-btn .pb-l { gap: 10px; } }
.pledge-card { border: 0; }
.pledge-card { position: static; }

/* ---- Donate page: stats box under the map ---- */
#sites .stats .wrap { gap: 18px; padding: 24px 22px !important; }
#sites .stat { padding-left: 12px; }
#sites .stat b { font-size: clamp(26px, 2.4vw, 34px); }
#sites .stat span { font-size: 13px; line-height: 1.4; display: block; }

/* Hero video: no poster flash; fade in once playing */
.hero video.bg { opacity: 0; transition: opacity .6s ease; }
.hero video.bg.on { opacity: 1; }
/* Clickable partner logos */
.logo-link { display: flex; align-items: center; text-decoration: none; }
.logo-link:focus-visible { outline: 2px solid var(--ember); outline-offset: 6px; }
.fl-track .logo-link:hover .logo { filter: none; opacity: 1; }
/* Pledge It button in site orange, darker ledge behind */
.pledge-btn { background: var(--ember); color: #fff; box-shadow: 0 5px 0 #9c3d08; }
.pledge-btn:hover { color: #fff; box-shadow: 0 6px 0 #9c3d08; }
.pledge-btn:active { box-shadow: 0 1px 0 #9c3d08; }
/* DJI: grey at rest, solid black on hover */
.fl-track .logo.dk:hover, .fl-track .logo-link:hover .logo.dk { filter: brightness(0); opacity: 1; }

/* Carnassials: darker grey at rest so the yellow wordmark stays readable */
.fl-track .logo.cg { filter: grayscale(1) brightness(0.6) contrast(1.25); }
.fl-track .logo.cg:hover { filter: none; opacity: 1; }

/* Team page partner logos: colour on hover, like the home ticker */
.pl-logo { transition: filter 0.3s, opacity 0.3s; }
.pl-logo:hover, .logo-link:hover .pl-logo, .logo-link:focus-visible .pl-logo { filter: none; opacity: 1; }

/* SCOUT cycle: lift the "Community scientists" caption ~1cm */
.cycle .centre .label { transform: translateY(-38px); }

/* Contact form: borderless white fields */
.field input, .field select, .field textarea { border-color: transparent; }

/* Copy additions: SCOUT mandate paragraph, Donate shoebill note */
.ws-mandate { margin-top: 18px; color: var(--ash-dark); }
.shoebill-note { margin-top: 28px; padding-top: 22px; border-top: 1px solid var(--bone-2); }
.shoebill-note p { margin: 10px 0 0; font-size: 15px; }

/* Publications: new Communications Biology wordmark, sized to match Global Ecology and Conservation */
.pub .logos img.commsbio { width: 190px; height: 64px; mix-blend-mode: multiply; }
@media (max-width: 760px) { .pub .logos img.commsbio { width: 160px; height: 50px; } }

/* Communications Biology logo: same neutral near-black as the other journal logo */
.pub .logos img.commsbio { filter: grayscale(1) brightness(0.798) contrast(1.677); }

/* Let the Communications Biology logo's white background blend into the page */
.pub .logos:has(img.commsbio) { mix-blend-mode: multiply; }

/* Publications: journal logos left-aligned in one column; Comms Bio 15% smaller */
@media (min-width: 761px) {
  .pub .logos { justify-content: flex-start; }
  .pub .logos img { object-position: left center; }
  .pub .logos img.commsbio { width: 162px; height: 54px; margin-left: 7px; }
}

/* Why SCOUT: align the two labels, larger focal species */
.why-scout .ws-grid > div > .label, .why-scout .species-big > .label { display: block; line-height: 1.4; margin: 0; }
@media (min-width: 901px) {
  .species-big { --s: 1.2; }
  .species-big .sb-grid { gap: 56px 24px; align-content: space-evenly; align-items: end; margin-top: 0; }
  .species-big .sb-note { margin-top: 18px; }
  .species-big .sb-fig { height: auto; }
  .species-big .sb-sil { width: min(calc(var(--w) * var(--s) * 1px), 100%); height: auto; aspect-ratio: var(--w) / var(--h); }
  .species-big .sb b { font-size: 18px; margin-top: 16px; }
  .species-big .sb em { font-size: 14px; }
  .species-big .sb-tag { font-size: 12px; padding: 7px 12px; margin-top: 12px; }
}
