/* Gharial Ecology Project — site styles */
:root {
  --navy: #1b2a31;
  --navy-2: #24363e;
  --ink: #26333a;
  --muted: #5d6a70;
  --bg: #f7f4ee;
  --paper: #ffffff;
  --sand: #ece4d6;
  --accent: #a8623c;
  --green: #3c7a5b;
  --green-dark: #2f6449;
  --line: #e2dbcf;
  --radius: 22px;
  --serif: "EB Garamond", Georgia, "Times New Roman", serif;
  --sans: "Outfit", "Helvetica Neue", Arial, sans-serif;
  --wrap: 1180px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 96px; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--serif);
  font-size: 19px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: var(--green-dark); }
h1, h2, h3, h4 { font-family: var(--sans); font-weight: 500; line-height: 1.2; color: var(--navy); margin: 0 0 .5em; }
p { margin: 0 0 1em; }
.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 24px; }
.narrow { max-width: 820px; margin: 0 auto; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: var(--navy);
  color: #fff;
}
.site-header .wrap { display: flex; align-items: center; gap: 32px; min-height: 84px; }
.brand { display: flex; align-items: center; gap: 12px; color: #fff; text-decoration: none; flex-shrink: 0; }
.brand svg { width: 46px; height: 46px; }
.brand-text { font-family: var(--sans); line-height: 1.05; }
.brand-text b { display: block; font-weight: 600; font-size: 19px; letter-spacing: .2px; }
.brand-text small { display: block; font-size: 11.5px; opacity: .7; letter-spacing: .6px; text-transform: uppercase; margin-top: 4px; }

.nav { display: flex; align-items: center; gap: 4px; margin-left: auto; font-family: var(--sans); font-size: 15.5px; }
.nav > li { position: relative; list-style: none; }
.nav ul { list-style: none; margin: 0; padding: 0; }
.nav a { color: #fff; text-decoration: none; display: block; padding: 10px 12px; border-radius: 8px; }
.nav > li > a:hover, .nav > li > a[aria-current="page"] { background: rgba(255,255,255,.08); }
.nav .has-sub > a::after { content: ""; display: inline-block; width: 6px; height: 6px; border-right: 1.5px solid currentColor; border-bottom: 1.5px solid currentColor; transform: rotate(45deg) translateY(-3px); margin-left: 8px; opacity: .8; }
.nav .sub {
  position: absolute; top: 100%; left: 0; min-width: 240px;
  background: var(--paper); border-radius: 14px; padding: 8px;
  box-shadow: 0 16px 40px rgba(0,0,0,.18);
  opacity: 0; visibility: hidden; transform: translateY(6px); transition: .18s ease;
}
.nav .has-sub:hover .sub, .nav .has-sub:focus-within .sub { opacity: 1; visibility: visible; transform: none; }
.nav .sub a { color: var(--ink); padding: 9px 14px; font-size: 15px; }
.nav .sub a:hover { background: var(--bg); color: var(--green-dark); }
.nav .btn-donate { background: var(--green); margin-left: 8px; padding: 10px 20px; border-radius: 999px; }
.nav .btn-donate:hover { background: var(--green-dark) !important; }
.menu-toggle { display: none; margin-left: auto; background: none; border: 0; color: #fff; padding: 8px; cursor: pointer; }
.menu-toggle svg { width: 28px; height: 28px; }

/* Vertical "Support us" tab, as on wcsindia.org */
.support-tab {
  position: fixed; right: 18px; top: 0; z-index: 60;
  background: var(--green); color: #fff; text-decoration: none;
  font-family: var(--sans); font-size: 13px; letter-spacing: 3px; text-transform: uppercase;
  writing-mode: vertical-rl; text-orientation: upright;
  padding: 18px 12px; border-radius: 0 0 20px 20px;
  box-shadow: 0 6px 18px rgba(0,0,0,.2);
}
.support-tab:hover { background: var(--green-dark); }

/* ---------- Hero ---------- */
.hero { position: relative; height: min(88vh, 820px); min-height: 520px; overflow: hidden; background: #111; color: #fff; }
.hero .slide { position: absolute; inset: 0; background-size: cover; background-position: center; opacity: 0; transition: opacity 1.6s ease; transform: scale(1.04); }
.hero .slide.on { opacity: 1; animation: kb 9s ease-out forwards; }
@keyframes kb { to { transform: scale(1); } }
.hero::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(10,20,25,.15) 30%, rgba(10,20,25,.78) 100%); }
.hero-content { position: absolute; z-index: 2; left: 0; right: 0; bottom: 64px; }
.hero h1 { color: #fff; font-size: clamp(36px, 5.4vw, 66px); font-weight: 500; max-width: 15ch; margin-bottom: 18px; }
.hero p { font-size: clamp(18px, 1.6vw, 22px); max-width: 640px; opacity: .92; }
.hero .actions { display: flex; gap: 14px; flex-wrap: wrap; margin-top: 26px; }
.hero-credit { position: absolute; z-index: 2; right: 70px; bottom: 16px; font-family: var(--sans); font-size: 12px; opacity: .6; }

.page-hero { position: relative; height: 420px; background-size: cover; background-position: center; color: #fff; }
.page-hero::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(10,20,25,.1), rgba(10,20,25,.7)); }
.page-hero .wrap { position: relative; z-index: 2; height: 100%; display: flex; flex-direction: column; justify-content: flex-end; padding-bottom: 48px; }
.page-hero h1 { color: #fff; font-size: clamp(34px, 4.6vw, 56px); margin: 0; }
.page-hero .crumb { font-family: var(--sans); font-size: 14px; letter-spacing: 2px; text-transform: uppercase; opacity: .8; margin-bottom: 10px; }

/* ---------- Buttons ---------- */
.btn { display: inline-flex; align-items: center; gap: 10px; font-family: var(--sans); font-size: 15.5px; font-weight: 500; text-decoration: none; padding: 13px 26px; border-radius: 999px; background: var(--green); color: #fff; border: 1.5px solid var(--green); transition: .15s; cursor: pointer; }
.btn:hover { background: var(--green-dark); border-color: var(--green-dark); }
.btn.ghost { background: transparent; border-color: rgba(255,255,255,.7); color: #fff; }
.btn.ghost:hover { background: rgba(255,255,255,.12); }
.btn.outline { background: transparent; color: var(--green-dark); border-color: var(--green); }
.btn.outline:hover { background: var(--green); color: #fff; }
.btn.small { padding: 8px 18px; font-size: 14px; }
.arrow::after { content: "→"; }

/* ---------- Sections ---------- */
section { padding: 88px 0; }
section.tight { padding: 56px 0; }
section.alt { background: var(--paper); }
section.sand { background: var(--sand); }
.eyebrow { display: block; text-align: center; font-family: var(--sans); font-weight: 600; color: var(--accent); font-size: 17px; letter-spacing: .3px; margin-bottom: 36px; }
.eyebrow::before { content: ""; display: block; width: 64px; height: 2px; background: var(--accent); opacity: .55; margin: 0 auto 18px; }
.eyebrow.left { text-align: left; }
.eyebrow.left::before { margin-left: 0; }
.section-title { text-align: center; font-size: clamp(28px, 3.2vw, 40px); margin-bottom: 14px; }
.lede { text-align: center; max-width: 760px; margin: 0 auto 48px; color: var(--muted); font-size: 20px; }

.split { display: grid; grid-template-columns: 1.05fr .95fr; gap: 56px; align-items: center; }
.split.flip > :first-child { order: 2; }
.rounded { border-radius: var(--radius); overflow: hidden; }
.rounded img { width: 100%; height: 100%; object-fit: cover; }
.caption { font-family: var(--sans); font-size: 13px; color: var(--muted); margin-top: 10px; }

/* Image cards with overlay (WCS "Our Work" style) */
.cards { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; }
.cards.three { grid-template-columns: repeat(3, 1fr); }
.card-img {
  position: relative; display: flex; flex-direction: column; justify-content: flex-end;
  min-height: 420px; border-radius: var(--radius); overflow: hidden; color: #fff; text-decoration: none;
  background-size: cover; background-position: center; padding: 26px;
  isolation: isolate;
}
.card-img::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgba(10,20,25,0) 25%, rgba(10,20,25,.88) 100%); transition: .3s; }
.card-img:hover::before { background: linear-gradient(180deg, rgba(10,20,25,.2) 0%, rgba(10,20,25,.92) 100%); }
.card-img .tag { font-family: var(--sans); font-size: 12.5px; letter-spacing: 1.6px; text-transform: uppercase; opacity: .85; }
.card-img h3 { color: #fff; font-size: 25px; margin: 6px 0 10px; }
.card-img p { font-size: 16.5px; line-height: 1.5; opacity: .9; margin-bottom: 16px; }
.card-img .btn { align-self: flex-start; }

/* Stats strip */
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; text-align: center; }
.stat b { display: block; font-family: var(--sans); font-weight: 500; font-size: 46px; color: var(--green-dark); line-height: 1; margin-bottom: 10px; }
.stat span { font-size: 17px; color: var(--muted); line-height: 1.4; display: block; }

/* News cards */
.news-card { background: var(--paper); border-radius: var(--radius); overflow: hidden; display: flex; flex-direction: column; text-decoration: none; color: inherit; border: 1px solid var(--line); transition: .2s; }
.news-card:hover { transform: translateY(-3px); box-shadow: 0 14px 30px rgba(0,0,0,.08); }
.news-card .thumb { aspect-ratio: 16/10; background-size: cover; background-position: center; }
.news-card .body { padding: 22px 24px 26px; }
.meta { font-family: var(--sans); font-size: 13px; color: var(--accent); letter-spacing: .8px; text-transform: uppercase; margin-bottom: 8px; }
.news-card h3 { font-size: 21px; margin-bottom: 8px; }
.news-card p { font-size: 16.5px; color: var(--muted); margin: 0; }

/* Partners */
.logos { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 28px 48px; }
.logos img { height: 74px; width: auto; object-fit: contain; filter: grayscale(1); opacity: .75; transition: .2s; mix-blend-mode: multiply; }
.logos img:hover { filter: none; opacity: 1; }

/* People */
.people { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.person { background: var(--paper); border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); display: flex; flex-direction: column; }
.person .photo { aspect-ratio: 4/4.2; background: var(--sand) center/cover no-repeat; position: relative; }
.person .photo .initials { position: absolute; inset: 0; display: grid; place-items: center; font-family: var(--sans); font-size: 64px; font-weight: 300; color: var(--accent); opacity: .7; }
.person .photo .ph-note { position: absolute; left: 12px; bottom: 12px; font-family: var(--sans); font-size: 11px; background: rgba(255,255,255,.85); color: var(--muted); padding: 3px 9px; border-radius: 99px; }
.person .body { padding: 22px 24px 24px; display: flex; flex-direction: column; flex: 1; }
.person h3 { font-size: 22px; margin-bottom: 2px; }
.person .role { font-family: var(--sans); font-size: 14px; color: var(--accent); margin-bottom: 14px; }
.person .bio { font-size: 16.5px; line-height: 1.6; color: var(--ink); display: -webkit-box; -webkit-line-clamp: 5; -webkit-box-orient: vertical; overflow: hidden; }
.person.open .bio { -webkit-line-clamp: unset; display: block; }
.person .row { display: flex; gap: 10px; flex-wrap: wrap; margin-top: auto; padding-top: 16px; }
.linkbtn { background: none; border: 0; padding: 0; font-family: var(--sans); font-size: 14px; color: var(--green-dark); cursor: pointer; text-decoration: underline; text-underline-offset: 3px; }
.person .row a { font-family: var(--sans); font-size: 14px; }

/* Initiative detail blocks */
.initiative { padding: 72px 0; border-top: 1px solid var(--line); }
.initiative:first-of-type { border-top: 0; }
.initiative .num { font-family: var(--sans); color: var(--accent); font-size: 14px; letter-spacing: 2px; text-transform: uppercase; margin-bottom: 10px; }
.initiative h2 { font-size: clamp(28px, 3vw, 38px); }
.initiative h4 { font-size: 15px; letter-spacing: 1.4px; text-transform: uppercase; color: var(--muted); margin: 26px 0 12px; }
.checks { list-style: none; padding: 0; margin: 0 0 22px; }
.checks li { position: relative; padding: 12px 0 12px 38px; border-bottom: 1px dashed var(--line); font-size: 18px; line-height: 1.5; }
.checks li::before { content: ""; position: absolute; left: 4px; top: 18px; width: 18px; height: 18px; border-radius: 50%; background: var(--green); -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Ccircle cx='10' cy='10' r='10'/%3E%3C/svg%3E"); }
.checks li::after { content: ""; position: absolute; left: 10px; top: 22px; width: 5px; height: 9px; border-right: 2px solid #fff; border-bottom: 2px solid #fff; transform: rotate(45deg); }
.initiative .links { display: flex; gap: 12px; flex-wrap: wrap; }
.initiative .media { position: sticky; top: 110px; }

/* Sub-nav pills on long pages */
.subnav { position: sticky; top: 84px; z-index: 20; background: rgba(247,244,238,.94); backdrop-filter: blur(6px); border-bottom: 1px solid var(--line); }
.subnav .wrap { display: flex; gap: 8px; overflow-x: auto; padding-top: 12px; padding-bottom: 12px; }
.subnav a { white-space: nowrap; font-family: var(--sans); font-size: 14.5px; text-decoration: none; color: var(--ink); padding: 7px 16px; border-radius: 99px; border: 1px solid var(--line); background: var(--paper); }
.subnav a:hover { border-color: var(--green); color: var(--green-dark); }

/* Timeline */
.timeline { list-style: none; padding: 0; margin: 0; border-left: 2px solid var(--line); }
.timeline li { position: relative; padding: 0 0 28px 28px; }
.timeline li::before { content: ""; position: absolute; left: -8px; top: 8px; width: 14px; height: 14px; border-radius: 50%; background: var(--paper); border: 3px solid var(--accent); }
.timeline b { font-family: var(--sans); font-weight: 600; color: var(--accent); display: block; font-size: 15px; letter-spacing: .5px; }

/* Resources */
.res-list { display: grid; gap: 18px; }
.res-item { background: var(--paper); border: 1px solid var(--line); border-radius: 18px; padding: 24px 28px; display: grid; grid-template-columns: 1fr auto; gap: 18px; align-items: center; }
.res-item h3 { font-size: 20px; margin-bottom: 6px; }
.res-item p { margin: 0; font-size: 16.5px; color: var(--muted); }
.res-item .authors { color: var(--ink); }
.report { display: grid; grid-template-columns: 120px 1fr auto; gap: 24px; align-items: center; }
.report .cover { width: 120px; aspect-ratio: 3/4; border-radius: 10px; background: var(--sand) center/cover; }
.badge { display: inline-block; font-family: var(--sans); font-size: 11.5px; letter-spacing: .6px; text-transform: uppercase; background: #fbeee0; color: var(--accent); padding: 3px 10px; border-radius: 99px; margin-left: 8px; vertical-align: middle; }

.gallery { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.gallery div { aspect-ratio: 1; border-radius: 14px; background: center/cover; }
.gallery div:nth-child(1) { grid-column: span 2; grid-row: span 2; }

/* Contact / Donate */
.panel { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); padding: 36px 40px; }
.kv { display: grid; grid-template-columns: 180px 1fr; gap: 10px 20px; font-size: 17.5px; }
.kv dt { font-family: var(--sans); font-size: 14px; color: var(--muted); text-transform: uppercase; letter-spacing: 1px; padding-top: 3px; }
.kv dd { margin: 0; }
.note { font-family: var(--sans); font-size: 13.5px; color: var(--accent); background: #fbeee0; border-radius: 10px; padding: 10px 14px; margin-top: 18px; }

/* CTA band */
.cta-band { background: var(--navy); color: #fff; text-align: center; }
.cta-band h2 { color: #fff; font-size: clamp(28px, 3.4vw, 42px); max-width: 22ch; margin: 0 auto 16px; }
.cta-band p { max-width: 640px; margin: 0 auto 28px; opacity: .85; }

/* ---------- Footer ---------- */
.foot-social { background: var(--green); color: #fff; }
.foot-social .wrap { display: flex; align-items: center; justify-content: space-between; gap: 24px; padding-top: 26px; padding-bottom: 26px; flex-wrap: wrap; }
.social { display: flex; gap: 22px; }
.social a { color: #fff; opacity: .95; }
.social svg { width: 28px; height: 28px; }
.foot-links { display: flex; gap: 22px; font-family: var(--sans); font-size: 15px; flex-wrap: wrap; }
.foot-links a { color: #fff; text-decoration: none; }
.foot-main { background: var(--navy); color: rgba(255,255,255,.78); font-family: var(--sans); font-size: 14px; }
.foot-main .wrap { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 32px; padding-top: 48px; padding-bottom: 36px; }
.foot-main h4 { color: #fff; font-size: 14px; letter-spacing: 1.4px; text-transform: uppercase; margin-bottom: 14px; }
.foot-main ul { list-style: none; padding: 0; margin: 0; }
.foot-main li { margin-bottom: 8px; }
.foot-main a { color: rgba(255,255,255,.78); text-decoration: none; }
.foot-main a:hover { color: #fff; }
.foot-bottom { background: #142026; color: rgba(255,255,255,.55); font-family: var(--sans); font-size: 12.5px; text-align: center; padding: 16px 24px; }

/* Draft banner */
.draft { background: #fbeee0; color: var(--accent); font-family: var(--sans); font-size: 13px; text-align: center; padding: 7px 16px; }

/* ---------- Responsive ---------- */
@media (max-width: 1100px) {
  .cards { grid-template-columns: repeat(2, 1fr); }
  .people { grid-template-columns: repeat(2, 1fr); }
  .foot-main .wrap { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 960px) {
  .menu-toggle { display: block; }
  .nav { display: none; position: absolute; top: 84px; left: 0; right: 0; flex-direction: column; align-items: stretch; background: var(--navy); padding: 8px 16px 20px; margin: 0; max-height: calc(100vh - 84px); overflow-y: auto; }
  .nav.open { display: flex; }
  .nav .sub { position: static; opacity: 1; visibility: visible; transform: none; box-shadow: none; background: transparent; padding: 0 0 6px 14px; min-width: 0; }
  .nav .sub a { color: rgba(255,255,255,.75); padding: 6px 12px; }
  .nav .sub a:hover { background: transparent; color: #fff; }
  .nav .has-sub > a::after { display: none; }
  .nav .btn-donate { margin: 10px 0 0; text-align: center; }
  .support-tab { display: none; }
  .split, .split.flip { grid-template-columns: 1fr; gap: 32px; }
  .split.flip > :first-child { order: 0; }
  .initiative .media { position: static; }
  .stats { grid-template-columns: repeat(2, 1fr); row-gap: 36px; }
  .cards.three { grid-template-columns: 1fr 1fr; }
  .subnav { top: 84px; }
}
@media (max-width: 640px) {
  body { font-size: 18px; }
  .wrap { padding: 0 16px; }
  section { padding: 60px 0; }
  .cards, .cards.three, .people { grid-template-columns: 1fr; }
  .card-img { min-height: 360px; }
  .hero-content { bottom: 40px; }
  .hero-credit { right: 16px; }
  .brand-text b { font-size: 16px; }
  .brand-text small { font-size: 10px; }
  .report { grid-template-columns: 80px 1fr; }
  .report .cover { width: 80px; }
  .report .btn { grid-column: 1 / -1; justify-self: start; }
  .res-item { grid-template-columns: 1fr; }
  .kv { grid-template-columns: 1fr; gap: 2px; }
  .kv dd { margin-bottom: 10px; }
  .panel { padding: 26px 22px; }
  .gallery { grid-template-columns: repeat(2, 1fr); }
  .foot-main .wrap { grid-template-columns: 1fr; }
  .page-hero { height: 320px; }
  .person .photo { aspect-ratio: 4/3.3; background-position: center 25%; }
}

/* Captioned photo strips */
.strip { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-top: 36px; }
.strip.four { grid-template-columns: repeat(4, 1fr); }
.strip figure { margin: 0; }
.strip .rounded { aspect-ratio: 4/3; border-radius: 16px; }
.strip figcaption { font-family: var(--sans); font-size: 13.5px; line-height: 1.45; color: var(--muted); margin-top: 10px; }
.gallery { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 960px) { .strip, .strip.four { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px) { .strip, .strip.four { grid-template-columns: 1fr; } }

/* Lightbox */
.zoomable { cursor: zoom-in; transition: filter .2s, transform .3s; }
.rounded img.zoomable:hover, .strip img.zoomable:hover { transform: scale(1.03); }
.gallery > div.zoomable:hover, .person .photo.zoomable:hover { filter: brightness(1.06); }
.lightbox { position: fixed; inset: 0; z-index: 200; background: rgba(10,16,20,.94); display: none; align-items: center; justify-content: center; padding: 56px 72px; }
.lightbox.open { display: flex; }
.lightbox figure { margin: 0; max-width: 100%; max-height: 100%; display: flex; flex-direction: column; align-items: center; cursor: zoom-out; }
.lightbox img { max-width: 100%; max-height: calc(100vh - 150px); object-fit: contain; border-radius: 6px; box-shadow: 0 20px 60px rgba(0,0,0,.5); cursor: default; }
.lightbox figcaption { color: rgba(255,255,255,.85); font-family: var(--sans); font-size: 15px; line-height: 1.5; text-align: center; max-width: 760px; margin-top: 16px; }
.lightbox button { position: absolute; background: rgba(255,255,255,.1); color: #fff; border: 0; cursor: pointer; border-radius: 50%; width: 48px; height: 48px; font-size: 32px; line-height: 1; display: grid; place-items: center; transition: background .15s; }
.lightbox button:hover { background: rgba(255,255,255,.22); }
.lb-close { top: 16px; right: 16px; }
.lb-prev { left: 16px; top: 50%; transform: translateY(-50%); }
.lb-next { right: 16px; top: 50%; transform: translateY(-50%); }
@media (max-width: 640px) {
  .lightbox { padding: 56px 8px 24px; }
  .lb-prev, .lb-next { top: auto; bottom: 16px; transform: none; }
  .lightbox img { max-height: calc(100vh - 190px); }
}
.logos img.wide { height: 40px; }

/* Story pop-up */
.news-card { cursor: pointer; }
.read-story { display: inline-block; margin-top: 14px; font-family: var(--sans); font-size: 14px; color: var(--green-dark); }
.news-card:hover .read-story { text-decoration: underline; text-underline-offset: 3px; }
.story-modal { position: fixed; inset: 0; z-index: 210; background: rgba(10,16,20,.72); display: none; align-items: center; justify-content: center; padding: 24px; }
.story-modal.open { display: flex; }
.story-panel { position: relative; background: var(--paper); border-radius: 20px; width: min(980px, 100%); max-height: calc(100vh - 48px); overflow: auto; display: grid; grid-template-columns: 1.05fr 1fr; box-shadow: 0 30px 80px rgba(0,0,0,.35); }
.story-img { background: #111; display: flex; align-items: center; justify-content: center; min-height: 100%; }
.story-img img { width: 100%; height: 100%; max-height: calc(100vh - 48px); object-fit: contain; }
.story-text { padding: 40px 36px 36px; }
.story-text h2 { font-size: 28px; margin-bottom: 18px; }
.story-body p { font-size: 17.5px; line-height: 1.65; }
.story-close { position: absolute; top: 12px; right: 12px; z-index: 2; width: 42px; height: 42px; border-radius: 50%; border: 0; background: rgba(255,255,255,.92); color: var(--ink); font-size: 28px; line-height: 1; cursor: pointer; box-shadow: 0 2px 10px rgba(0,0,0,.15); }
.story-close:hover { background: #fff; }
@media (max-width: 760px) {
  .story-modal { padding: 0; align-items: flex-end; }
  .story-panel { grid-template-columns: 1fr; border-radius: 20px 20px 0 0; max-height: 92vh; }
  .story-img img { max-height: 46vh; }
  .story-text { padding: 26px 20px 30px; }
  .story-text h2 { font-size: 23px; }
}

/* ---------- v3 additions ---------- */
.brand-logo { width: 40px; height: auto; display: block; }
.hero video.slide { width: 100%; height: 100%; object-fit: cover; }
.rounded video, .strip video { width: 100%; height: 100%; object-fit: cover; display: block; background: #0d1418; }

/* Five conservation actions on the home page */
.cards.five { grid-template-columns: repeat(5, 1fr); gap: 18px; }
.cards.five .card-img { min-height: 380px; padding: 22px; }
.cards.five .card-img h3 { font-size: 21px; }
.cards.five .card-img p { font-size: 15.5px; }

/* Partner logos in rows */
.logo-rows { display: grid; gap: 34px; }
.logo-rows .logos { gap: 24px 52px; }
.logo-text { font-family: var(--sans); font-weight: 700; font-size: 26px; letter-spacing: .5px; color: #6b6b6b; line-height: 74px; }

/* Portrait strip */
.strip.portraits .rounded { aspect-ratio: 3/4; }

/* Banner with call to action */
.banner-cta { position: relative; padding: 140px 0; background-size: cover; background-position: center; color: #fff; text-align: center; isolation: isolate; }
.banner-cta::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgba(10,20,25,.35), rgba(10,20,25,.7)); }
.banner-cta h2 { color: #fff; font-size: clamp(28px, 3.4vw, 42px); margin-bottom: 10px; }
.banner-cta p { opacity: .9; margin-bottom: 26px; }

/* Film cards */
.video-card { background: var(--paper); border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); text-decoration: none; color: inherit; transition: .2s; display: flex; flex-direction: column; }
.video-card:hover { transform: translateY(-3px); box-shadow: 0 14px 30px rgba(0,0,0,.08); }
.video-card .thumb { position: relative; aspect-ratio: 16/9; background: #111 center/cover; }
.video-card .play { position: absolute; left: 50%; top: 50%; width: 64px; height: 64px; margin: -32px 0 0 -32px; border-radius: 50%; background: rgba(0,0,0,.6); }
.video-card .play::after { content: ""; position: absolute; left: 26px; top: 20px; border-left: 20px solid #fff; border-top: 12px solid transparent; border-bottom: 12px solid transparent; }
.video-card:hover .play { background: var(--green); }
.video-card .body { padding: 18px 22px 22px; }
.video-card h3 { font-size: 19px; margin-bottom: 6px; }
.video-card p { margin: 0; font-size: 15.5px; color: var(--muted); }

@media (max-width: 1100px) {
  .cards.five { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 760px) {
  .cards.five { grid-template-columns: 1fr 1fr; }
  .logo-rows .logos { gap: 18px 30px; }
  .logos img { height: 54px; }
  .logos img.wide { height: 30px; }
  .logo-text { font-size: 20px; line-height: 54px; }
  .banner-cta { padding: 90px 0; }
}
@media (max-width: 520px) {
  .cards.five { grid-template-columns: 1fr; }
}

/* ---------- v4 additions ---------- */
/* Partner logos in full colour */
.logos img { filter: none; opacity: 1; mix-blend-mode: normal; }

/* Hero sound toggle */
.sound-toggle { position: absolute; z-index: 3; right: 24px; bottom: 24px; display: inline-flex; align-items: center; gap: 8px; font-family: var(--sans); font-size: 14px; color: #fff; background: rgba(10,20,25,.55); border: 1px solid rgba(255,255,255,.5); border-radius: 999px; padding: 9px 16px; cursor: pointer; backdrop-filter: blur(4px); }
.sound-toggle:hover { background: rgba(10,20,25,.75); }
.sound-toggle[hidden] { display: none; }
.sound-toggle .icon { width: 16px; height: 16px; background: currentColor; -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M3 9v6h4l5 5V4L7 9H3z'/%3E%3Cpath d='M16 8l6 8M22 8l-6 8' stroke='black' stroke-width='2'/%3E%3C/svg%3E") center/contain no-repeat; mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M3 9v6h4l5 5V4L7 9H3z'/%3E%3Cpath d='M16 8l6 8M22 8l-6 8' stroke='black' stroke-width='2'/%3E%3C/svg%3E") center/contain no-repeat; }
.sound-toggle.on .icon { -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M3 9v6h4l5 5V4L7 9H3z'/%3E%3Cpath d='M15.5 8.5a5 5 0 010 7M18.5 5.5a9 9 0 010 13' fill='none' stroke='black' stroke-width='2'/%3E%3C/svg%3E"); mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M3 9v6h4l5 5V4L7 9H3z'/%3E%3Cpath d='M15.5 8.5a5 5 0 010 7M18.5 5.5a9 9 0 010 13' fill='none' stroke='black' stroke-width='2'/%3E%3C/svg%3E"); }

/* Reports grid */
.report-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 22px; }
.report-card { display: flex; flex-direction: column; text-decoration: none; color: inherit; background: var(--paper); border: 1px solid var(--line); border-radius: 16px; overflow: hidden; transition: .2s; }
.report-card:hover { transform: translateY(-3px); box-shadow: 0 14px 30px rgba(0,0,0,.08); }
.report-card .cover { aspect-ratio: 3/4; background: var(--sand) center top/cover; border-bottom: 1px solid var(--line); }
.report-card .body { padding: 14px 16px 16px; display: flex; flex-direction: column; gap: 4px; }
.report-card b { font-family: var(--sans); font-weight: 600; font-size: 19px; color: var(--accent); }
.report-card span { font-family: var(--sans); font-size: 14.5px; line-height: 1.35; }
.report-card small { font-family: var(--sans); font-size: 12.5px; color: var(--muted); margin-top: 4px; }
.pub-links { display: flex; gap: 8px; flex-wrap: wrap; justify-content: flex-end; }
.res-item.learning { text-decoration: none; color: inherit; }
.res-item.learning:hover { border-color: var(--green); }

/* Newsroom coming soon */
.coming-soon { text-align: center; margin: 0 auto 40px; max-width: 620px; }
.coming-soon span { display: inline-block; font-family: var(--sans); font-weight: 600; letter-spacing: 2px; text-transform: uppercase; font-size: 15px; color: #fff; background: var(--accent); padding: 8px 20px; border-radius: 99px; margin-bottom: 16px; }
.coming-soon p { color: var(--muted); }
.cards.greyed { filter: grayscale(1); opacity: .38; pointer-events: none; user-select: none; }
.nav a[href="news.html"]::after { content: "Soon"; font-size: 10px; letter-spacing: .8px; text-transform: uppercase; margin-left: 6px; padding: 2px 6px; border-radius: 99px; background: rgba(255,255,255,.14); vertical-align: 2px; }

@media (max-width: 1100px) { .report-grid { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 640px) {
  .report-grid { grid-template-columns: 1fr 1fr; gap: 14px; }
  .pub-links { justify-content: flex-start; }
  .sound-toggle { right: 16px; bottom: 16px; }
}

/* Flipbook cards (Conservation Learning Resources) */
.flipbooks { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; }
.flipbook-card { display: grid; grid-template-columns: 150px 1fr; gap: 22px; align-items: center; background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; text-decoration: none; color: inherit; transition: .2s; }
.flipbook-card:hover { transform: translateY(-3px); box-shadow: 0 14px 30px rgba(0,0,0,.08); border-color: var(--green); }
.flipbook-card .cover { aspect-ratio: 5/7; border-radius: 10px; background: var(--sand) center/cover; box-shadow: 0 6px 16px rgba(0,0,0,.15); }
.flipbook-card small { font-family: var(--sans); font-size: 12.5px; letter-spacing: 1.2px; text-transform: uppercase; color: var(--accent); }
.flipbook-card h3 { font-size: 22px; margin: 6px 0 4px; }
.flipbook-card p { font-size: 16px; color: var(--muted); margin-bottom: 16px; }
@media (max-width: 760px) { .flipbooks { grid-template-columns: 1fr; } .flipbook-card { grid-template-columns: 110px 1fr; } }
.flipbook-card { grid-template-columns: 130px 1fr; }
.flipbook-card .btn { white-space: nowrap; }
