/*
 * Baruna Balarama Fantasi
 * One palette taken from the logo: navy ink + leaf green (the only accent), on a cool, slightly green paper.
 * Light and dark follow the visitor's system setting.
 * Radius rule: photos and large surfaces 20px, inner blocks 12px, buttons and toggles fully rounded.
 * Fonts (self-hosted, SIL OFL): Bricolage Grotesque for headings, Geist for text.
 */
@font-face { font-family: "Bricolage Grotesque"; font-style: normal; font-weight: 200 800; font-display: swap; src: url(../fonts/bricolage-latin.woff2) format("woff2"); }
@font-face { font-family: "Geist"; font-style: normal; font-weight: 100 900; font-display: swap; src: url(../fonts/geist-latin.woff2) format("woff2"); }
@font-face { font-family: "Geist"; font-style: italic; font-weight: 100 900; font-display: swap; src: url(../fonts/geist-latin-italic.woff2) format("woff2"); }

:root {
  --bg: #f2f5f1;
  --surface: #fbfcfa;
  --tint: #e6ede5;
  --ink: #14203d;
  --muted: #4f5b6b;
  --line: rgba(20, 32, 61, .13);
  --accent: #2d6a2a;
  --accent-hover: #245722;
  --on-accent: #ffffff;
  --accent-soft: #dbe8d6;
  --shadow: 0 18px 40px -18px rgba(20, 45, 30, .35);
  --r-lg: 20px;
  --r-md: 12px;
  --display: "Bricolage Grotesque", "Avenir Next", system-ui, sans-serif;
  --sans: "Geist", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --mono: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  --ease: cubic-bezier(.16, 1, .3, 1);
  --header-h: 68px;
  /* z-index scale */
  --z-header: 20;
  --z-fab: 30;
  --z-skip: 40;
  color-scheme: light dark;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0b1322;
    --surface: #101a2d;
    --tint: #142139;
    --ink: #e9eef0;
    --muted: #a6b1bd;
    --line: rgba(233, 238, 240, .13);
    --accent: #8cc97a;
    --accent-hover: #a3d694;
    --on-accent: #0b1322;
    --accent-soft: #1c3427;
    --shadow: 0 18px 40px -18px rgba(0, 0, 0, .7);
  }
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 16px); -webkit-text-size-adjust: 100%; }
body { margin: 0; font: 400 1.0625rem/1.65 var(--sans); color: var(--ink); background: var(--bg); -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; }
img { max-width: 100%; display: block; height: auto; }
picture { display: block; }
[hidden] { display: none !important; }
a { color: var(--accent); text-underline-offset: .2em; text-decoration-thickness: 1px; }
a:hover { text-decoration-thickness: 2px; }
h1, h2, h3 { font-family: var(--display); font-weight: 650; line-height: 1.08; letter-spacing: -.025em; margin: 0 0 .55em; color: var(--ink); text-wrap: balance; }
h1 { font-size: clamp(2.3rem, 4.6vw, 3.9rem); font-weight: 700; letter-spacing: -.035em; }
h2 { font-size: clamp(1.75rem, 3.2vw, 2.6rem); }
h3 { font-size: 1.22rem; letter-spacing: -.015em; line-height: 1.2; }
p { margin: 0 0 1em; text-wrap: pretty; }
strong { font-weight: 600; }
.container { width: min(1240px, 100% - 32px); margin-inline: auto; }
.section { padding-block: clamp(56px, 7vw, 96px) clamp(64px, 8vw, 108px); }
.section-tint { background: var(--tint); }
.muted { color: var(--muted); }
.small { font-size: .92rem; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.eyebrow { font: 600 .8rem/1.3 var(--sans); letter-spacing: .12em; text-transform: uppercase; color: var(--accent); margin-bottom: 1.1em; }
.lead { font-size: clamp(1.08rem, 1.4vw, 1.22rem); line-height: 1.55; max-width: 38em; color: var(--muted); }
.section-head { margin-bottom: clamp(28px, 4vw, 48px); max-width: 52rem; }
.section-head .lead { margin-bottom: 0; }
.section-head.center { text-align: center; margin-inline: auto; }
.icon { width: 1.2em; height: 1.2em; flex: none; }
.ico { display: inline-grid; place-items: center; width: 44px; height: 44px; border-radius: var(--r-md); background: var(--accent-soft); color: var(--accent); }
.ico .icon { width: 22px; height: 22px; }

.skip-link { position: absolute; left: -999px; top: 8px; background: var(--surface); color: var(--ink); padding: 10px 14px; border-radius: var(--r-md); z-index: var(--z-skip); }
.skip-link:focus { left: 8px; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; border-radius: 4px; }

/* ---------- Buttons ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: .55em; padding: .85em 1.5em; border-radius: 999px; border: 1.5px solid transparent; font: 600 1rem/1.2 var(--sans); text-decoration: none; white-space: nowrap; cursor: pointer; transition: transform .25s var(--ease), background-color .25s var(--ease), border-color .25s var(--ease), color .25s var(--ease); }
.btn:hover { transform: translateY(-2px); text-decoration: none; }
.btn:active { transform: translateY(0) scale(.98); }
.btn-accent { background: var(--accent); color: var(--on-accent); }
.btn-accent:hover { background: var(--accent-hover); }
.btn-outline { border-color: var(--line); color: var(--ink); background: transparent; }
.btn-outline:hover { border-color: var(--accent); color: var(--accent); }
.btn-quiet { color: var(--ink); background: var(--surface); border-color: var(--line); }
.btn-quiet:hover { border-color: var(--ink); }
.btn-link { padding: .3em 0; border-radius: 0; color: var(--accent); background: none; }
.btn-link .icon { transition: transform .25s var(--ease); }
.btn-link:hover { transform: none; }
.btn-link:hover .icon { transform: translateX(4px); }
.btn-sm { padding: .55em 1.1em; font-size: .92rem; }
.btn-block { width: 100%; }
.actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 20px; margin-top: 28px; }

/* ---------- Header ---------- */
.site-header { position: sticky; top: 0; z-index: var(--z-header); background: color-mix(in srgb, var(--bg) 86%, transparent); backdrop-filter: saturate(160%) blur(14px); -webkit-backdrop-filter: saturate(160%) blur(14px); border-bottom: 1px solid var(--line); }
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 24px; height: var(--header-h); }
.brand { display: flex; align-items: center; flex: none; }
.brand img { height: 44px; width: auto; }
.nav { display: flex; align-items: center; gap: 20px; }
.nav-links { display: flex; gap: 4px; }
.nav-links a { color: var(--ink); text-decoration: none; font-weight: 500; font-size: .95rem; white-space: nowrap; padding: 8px 12px; border-radius: 999px; transition: background-color .2s var(--ease); }
.nav-links a:hover { background: var(--tint); }
.nav-links a[aria-current="page"] { background: var(--accent-soft); color: var(--accent); }
.lang-switch { display: flex; gap: 2px; font: 600 .78rem var(--sans); letter-spacing: .04em; }
.lang-switch a { padding: 6px 7px; color: var(--muted); text-decoration: none; border-radius: 6px; }
.lang-switch a:hover { color: var(--ink); }
.lang-switch a[aria-current="true"] { color: var(--ink); text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 5px; }
.nav-toggle { display: none; width: 44px; height: 44px; background: none; border: 0; padding: 0; cursor: pointer; color: var(--ink); border-radius: var(--r-md); }
.nav-toggle .bars, .nav-toggle .bars::before, .nav-toggle .bars::after { display: block; width: 22px; height: 2px; background: currentColor; border-radius: 2px; transition: transform .3s var(--ease), opacity .2s; }
.nav-toggle .bars { position: relative; margin: auto; }
.nav-toggle .bars::before, .nav-toggle .bars::after { content: ""; position: absolute; left: 0; }
.nav-toggle .bars::before { top: -7px; }
.nav-toggle .bars::after { top: 7px; }
.nav-toggle[aria-expanded="true"] .bars { background: transparent; }
.nav-toggle[aria-expanded="true"] .bars::before { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] .bars::after { transform: translateY(-7px) rotate(-45deg); }
@media (max-width: 1180px) {
  .nav-toggle { display: block; }
  .nav { position: absolute; top: var(--header-h); left: 0; right: 0; flex-direction: column; align-items: stretch; gap: 16px; background: var(--bg); padding: 12px 16px 24px; border-bottom: 1px solid var(--line); box-shadow: var(--shadow); max-height: calc(100dvh - var(--header-h)); overflow-y: auto; }
  .js .nav { display: none; }
  .js .nav.open { display: flex; }
  .nav-links { flex-direction: column; }
  .nav-links a { padding: 14px 12px; font-size: 1.05rem; border-radius: var(--r-md); }
  .lang-switch { padding-inline: 6px; }
}

/* ---------- Home hero: full-width underwater photo, copy on the open water ---------- */
.hero { position: relative; isolation: isolate; overflow: hidden; background: #0a3540; color: #f0f7f6; }
.hero-bg, .hero-bg img { position: absolute; inset: 0; width: 100%; height: 100%; z-index: -2; }
.hero-bg img { object-fit: cover; object-position: 70% 50%; }
.hero::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(90deg, rgba(3, 28, 38, .72) 0%, rgba(3, 28, 38, .42) 42%, rgba(3, 28, 38, 0) 70%), linear-gradient(0deg, rgba(3, 28, 38, .4) 0%, rgba(3, 28, 38, 0) 35%); }
.hero-grid { display: grid; grid-template-columns: minmax(0, 47rem); align-items: center; min-height: min(760px, calc(100svh - var(--header-h))); padding-block: clamp(56px, 8vw, 112px); }
.hero h1 { color: #fff; font-size: clamp(2.4rem, 4.2vw, 3.7rem); line-height: 1.04; text-shadow: 0 2px 28px rgba(0, 20, 30, .3); }
.hero .eyebrow { color: #bfe8cc; }
.hero .lead { color: rgba(240, 247, 246, .92); max-width: 32em; }
.hero .btn-quiet { background: rgba(255, 255, 255, .12); color: #fff; border-color: rgba(255, 255, 255, .5); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); }
.hero .btn-quiet:hover { background: rgba(255, 255, 255, .22); border-color: #fff; }
.hero :focus-visible { outline-color: #fff; }
.impact { padding-top: clamp(28px, 4vw, 52px); }
@media (max-width: 760px) {
  /* phones: the photo sits on top and melts into the water colour, the copy starts below it */
  .hero-bg { bottom: auto; height: 210px; -webkit-mask-image: linear-gradient(180deg, #000 60%, transparent 100%); mask-image: linear-gradient(180deg, #000 60%, transparent 100%); }
  .hero-bg img { object-position: 96% 100%; }
  .hero::after { background: linear-gradient(180deg, rgba(7, 42, 51, 0) 45%, #072a33 100%); }
  .hero-grid { min-height: 0; align-items: end; padding-block: 120px 44px; }
}
}

/* ---------- Inner page hero ---------- */
.page-hero { padding-block: clamp(24px, 4vw, 56px) clamp(48px, 6vw, 88px); }
.page-hero-grid { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: clamp(32px, 5vw, 72px); align-items: center; }
.page-hero-copy .lead { margin-bottom: 0; }
.page-hero-media { margin: 0; }
.page-hero-media img { width: 100%; aspect-ratio: 5 / 4; object-fit: cover; border-radius: var(--r-lg); }
@media (max-width: 860px) {
  .page-hero-grid { grid-template-columns: 1fr; }
  .page-hero-media { order: -1; }
  .page-hero-media img { aspect-ratio: 16 / 10; }
}
.crumbs { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; font-size: .9rem; margin-bottom: 24px; color: var(--muted); }
.crumbs a { color: inherit; }
.crumbs .icon { width: .9em; height: .9em; opacity: .6; }

/* ---------- Impact numbers ---------- */
.impact { padding-bottom: clamp(48px, 6vw, 80px); }
.stats { display: grid; grid-template-columns: repeat(4, 1fr); border-top: 1px solid var(--line); }
.stat { padding: 28px 24px 0 0; }
.stat + .stat { padding-left: 24px; border-left: 1px solid var(--line); }
.stat strong { display: block; font: 650 clamp(2.2rem, 4.2vw, 3.5rem)/1 var(--display); letter-spacing: -.04em; font-variant-numeric: tabular-nums; margin-bottom: 10px; }
.stat span { color: var(--muted); font-size: .98rem; display: block; max-width: 14em; }
@media (max-width: 760px) {
  .stats { grid-template-columns: 1fr 1fr; }
  .stat:nth-child(3) { padding-left: 0; border-left: 0; }
  .stat { padding-bottom: 8px; }
}

/* ---------- Intro (home) ---------- */
.intro { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, .75fr); gap: clamp(40px, 7vw, 112px); align-items: end; }
.intro-lead { font: 500 clamp(1.25rem, 2vw, 1.6rem)/1.45 var(--display); letter-spacing: -.012em; }
.intro-copy p:not(.intro-lead) { color: var(--muted); max-width: 40em; }
.intro-photo img { aspect-ratio: 3 / 4; }
@media (max-width: 860px) { .intro { grid-template-columns: 1fr; } .intro-photo img { aspect-ratio: 4 / 3; } }

/* ---------- Photos ---------- */
.photo { margin: 0; }
.photo img { border-radius: var(--r-lg); aspect-ratio: 4 / 3; object-fit: cover; width: 100%; }
.photo-tall img { aspect-ratio: 4 / 5; }

/* ---------- Split layouts ---------- */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(36px, 6vw, 88px); align-items: center; }
.split-top { align-items: start; }
.split > * { min-width: 0; }
@media (max-width: 860px) { .split { grid-template-columns: 1fr; } }

/* Feature: tall photo + copy, with an optional secondary item */
.feature { display: grid; grid-template-columns: minmax(0, .85fr) minmax(0, 1fr); gap: clamp(36px, 6vw, 96px); align-items: center; }
.feature-sub { display: grid; grid-template-columns: 120px 1fr; gap: 20px; align-items: start; margin-top: 48px; padding-top: 32px; border-top: 1px solid var(--line); }
.feature-sub img { border-radius: var(--r-md); aspect-ratio: 1; object-fit: cover; width: 100%; }
.feature-sub h3 { margin-bottom: .3em; }
.feature-sub p { color: var(--muted); margin-bottom: .4em; }
@media (max-width: 860px) { .feature { grid-template-columns: 1fr; } .feature .photo-tall img { aspect-ratio: 4 / 3; } }
@media (max-width: 480px) { .feature-sub { grid-template-columns: 1fr; } .feature-sub img { width: 120px; } }

/* ---------- Key facts ---------- */
.facts { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); padding: clamp(24px, 3vw, 36px); }
.section-tint .facts { border-color: transparent; }
.facts-title { font: 650 1.3rem var(--display); letter-spacing: -.015em; margin-bottom: 18px; }
.facts ul { list-style: none; margin: 0; padding: 0; display: grid; }
.facts li { padding: 12px 0 12px 28px; position: relative; border-top: 1px solid var(--line); }
.facts li:first-child { border-top: 0; padding-top: 0; }
.facts li::before { content: ""; position: absolute; left: 4px; top: 1.05em; width: 10px; height: 2px; background: var(--accent); }
.facts li:first-child::before { top: .55em; }

/* ---------- Ruled grids (instead of boxed cards) ---------- */
.ruled { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 40px clamp(28px, 4vw, 56px); }
.ruled-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.ruled-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.ruled article { border-top: 1px solid var(--line); padding-top: 24px; }
.ruled .ico { margin-bottom: 18px; }
.ruled p { color: var(--muted); margin: 0; max-width: 34em; }
.ruled-compact { grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 32px; }
.ruled-compact .ico { width: 36px; height: 36px; background: none; justify-content: start; margin-bottom: 8px; }
@media (max-width: 860px) { .ruled-2, .ruled-3 { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .ruled-2, .ruled-3, .ruled { grid-template-columns: 1fr; } }

/* Two large blocks side by side (visit page) */
.duo { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 5vw, 72px); }
.duo h2 { font-size: clamp(1.4rem, 2.2vw, 1.8rem); margin-top: 20px; }
.duo p { color: var(--muted); }
@media (max-width: 760px) { .duo { grid-template-columns: 1fr; } }

/* ---------- Home: pillars ---------- */
.pillars { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); gap: 20px; }
.pillar { position: relative; display: block; border-radius: var(--r-lg); overflow: hidden; color: #f4f7f5; text-decoration: none; isolation: isolate; min-height: 520px; }
.pillar picture, .pillar img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; transition: transform .8s var(--ease); }
.pillar::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgba(8, 18, 34, 0) 30%, rgba(8, 18, 34, .88) 100%); }
.pillar:hover img { transform: scale(1.04); }
.pillar-copy { position: absolute; left: 0; right: 0; bottom: 0; padding: clamp(24px, 3vw, 36px); }
.pillar h3 { color: #fff; font-size: clamp(1.5rem, 2.4vw, 2rem); }
.pillar p { color: rgba(244, 247, 245, .88); max-width: 30em; }
.more { display: inline-flex; align-items: center; gap: 8px; font-weight: 600; }
.pillar .more .icon { transition: transform .25s var(--ease); }
.pillar:hover .more .icon { transform: translateX(4px); }
@media (max-width: 760px) { .pillars { grid-template-columns: 1fr; } .pillar { min-height: 420px; } }

/* ---------- Home: things to do (index rows) ---------- */
.services-layout { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: clamp(32px, 6vw, 96px); align-items: start; }
.services-layout .section-head { position: sticky; top: calc(var(--header-h) + 32px); }
.services { display: grid; border-top: 1px solid var(--line); }
.service { display: grid; grid-template-columns: auto 1fr auto; gap: 20px; align-items: center; padding: 26px 8px; border-bottom: 1px solid var(--line); text-decoration: none; color: var(--ink); transition: background-color .3s var(--ease), padding .3s var(--ease); }
.service h3 { margin: 0 0 .2em; }
.service p { margin: 0; color: var(--muted); }
.service-arrow { color: var(--muted); transition: transform .3s var(--ease), color .3s var(--ease); }
.service:hover { background: var(--surface); padding-inline: 20px; }
.service:hover .service-arrow { color: var(--accent); transform: translateX(4px); }
@media (max-width: 860px) { .services-layout { grid-template-columns: 1fr; } .services-layout .section-head { position: static; } }
@media (max-width: 480px) { .service { grid-template-columns: auto 1fr; } .service-arrow { display: none; } }

/* ---------- Band (call to action) ---------- */
.section-band { padding-block: 0; }
.band { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 32px 64px; align-items: end; background: var(--accent-soft); border-radius: var(--r-lg); padding: clamp(32px, 6vw, 72px); }
.band h2 { max-width: 20em; }
.band p { color: var(--muted); margin: 0; max-width: 40em; }
@media (prefers-color-scheme: dark) { .band p { color: var(--ink); opacity: .85; } }
@media (max-width: 760px) { .band { grid-template-columns: 1fr; align-items: start; } }
.section-band + .section { padding-top: clamp(64px, 8vw, 108px); }
.section + .section-band { padding-bottom: 0; }

/* ---------- Bento galleries ---------- */
.bento { display: grid; grid-template-columns: repeat(4, 1fr); grid-auto-rows: clamp(160px, 18vw, 260px); gap: 14px; }
.bento figure { margin: 0; border-radius: var(--r-lg); overflow: hidden; }
.bento picture, .bento img { width: 100%; height: 100%; object-fit: cover; }
.bento img { transition: transform .8s var(--ease); }
.bento figure:hover img { transform: scale(1.04); }
.bento .bento-a { grid-column: span 2; grid-row: span 2; }
.bento .bento-d { grid-column: span 2; }
.bento-6 { grid-template-columns: repeat(3, 1fr); }
.bento-6 .bento-a { grid-column: span 1; grid-row: span 2; }
.bento-6 .bento-wide { grid-column: span 2; }
@media (max-width: 640px) {
  .bento, .bento-6 { grid-template-columns: 1fr 1fr; grid-auto-rows: 180px; }
  .bento .bento-a { grid-column: span 2; grid-row: span 1; }
  .bento-6 .bento-a { grid-column: span 1; grid-row: span 2; }
}

/* ---------- Activities timeline ---------- */
.timeline { list-style: none; padding: 0; margin: 0; display: grid; }
.timeline li { display: grid; grid-template-columns: 9.5em 1fr; gap: 20px; padding: 18px 0; border-top: 1px solid var(--line); }
.timeline li:last-child { border-bottom: 1px solid var(--line); }
.timeline time { font: 500 .92rem/1.6 var(--sans); color: var(--muted); font-variant-numeric: tabular-nums; }
.timeline p { margin: 0; font-weight: 500; }
@media (max-width: 480px) { .timeline li { grid-template-columns: 1fr; gap: 2px; } }
.partners { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.partners li { background: var(--tint); font-weight: 500; font-size: .92rem; padding: 7px 14px; border-radius: 999px; }

/* ---------- Turtle species ---------- */
.specimens { display: grid; }
.specimen { display: grid; grid-template-columns: minmax(0, 1fr) auto minmax(0, 1.6fr); gap: 16px 40px; align-items: baseline; padding: 32px 0; border-top: 1px solid var(--line); }
.specimen:last-child { border-bottom: 1px solid var(--line); }
.specimen h3 { font-size: clamp(1.4rem, 2.4vw, 2rem); margin-bottom: .15em; }
.specimen p { margin: 0; color: var(--muted); }
.specimen .latin { font-style: italic; }
.source { font-size: .85rem; white-space: nowrap; }
@media (max-width: 860px) { .specimen { grid-template-columns: 1fr; gap: 10px; } .specimen .status { justify-self: start; } }
.status { display: inline-block; font-size: .8rem; font-weight: 600; padding: 4px 12px; border-radius: 999px; white-space: nowrap; }
.status-cr { background: #f8ddd6; color: #8a2a12; }
.status-en { background: #f8e6cd; color: #7a4308; }
.status-vu { background: #f3ecc4; color: #5c4c04; }
.status-lc { background: var(--accent-soft); color: var(--accent); }
@media (prefers-color-scheme: dark) {
  .status-cr { background: #4a2219; color: #f7c3b5; }
  .status-en { background: #46301a; color: #f5d2a4; }
  .status-vu { background: #3f3a19; color: #ecdf9a; }
}

/* Mangrove species index */
.index-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: clamp(32px, 5vw, 80px); }
.index-list article { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.3fr); gap: 4px 24px; padding: 22px 0; border-top: 1px solid var(--line); }
.index-list h3 { font: 500 1.12rem/1.3 var(--sans); letter-spacing: 0; margin: 0; }
.index-list .common { color: var(--accent); font-weight: 500; margin: 0; grid-column: 1; font-size: .95rem; }
.index-list p:last-child { grid-column: 2; grid-row: 1 / span 2; color: var(--muted); margin: 0; font-size: .97rem; }
@media (max-width: 960px) { .index-list { grid-template-columns: 1fr; } }
@media (max-width: 520px) { .index-list article { grid-template-columns: 1fr; } .index-list p:last-child { grid-column: 1; grid-row: auto; margin-top: 6px; } }

/* ---------- Ordered steps (real sequences only) ---------- */
.steps { list-style: none; counter-reset: step; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 32px 24px; }
.steps li { counter-increment: step; position: relative; padding-top: 64px; }
.steps li::before { content: counter(step); position: absolute; top: 0; left: 0; width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; background: var(--accent); color: var(--on-accent); font: 650 1.05rem var(--display); }
.steps li::after { content: ""; position: absolute; top: 22px; left: 56px; right: -12px; height: 1px; background: var(--line); }
.steps li:last-child::after { display: none; }
.steps p { color: var(--muted); margin: 0; }
@media (max-width: 640px) { .steps li::after { display: none; } }

/* ---------- Checklists ---------- */
.checks { list-style: none; padding: 0; margin: 0 0 8px; display: grid; gap: 12px; }
.checks li { display: flex; gap: 12px; align-items: flex-start; }
.checks .icon { color: var(--accent); margin-top: .22em; }

/* ---------- Practical info panel ---------- */
.panel { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); padding: clamp(24px, 3vw, 36px); display: grid; gap: 4px; }
.section-tint .panel { border-color: transparent; }
.panel .section-head { margin-bottom: 12px; }
.panel h2 { font-size: 1.5rem; }
.panel > .btn { justify-self: start; margin-top: 8px; }
.info { margin: 0 0 16px; display: grid; }
.info > div { display: grid; grid-template-columns: 9em 1fr; gap: 12px; padding: 14px 0; border-top: 1px solid var(--line); }
.info dt { color: var(--muted); font-size: .94rem; }
.info dd { margin: 0; font-weight: 500; min-width: 0; overflow-wrap: anywhere; }
@media (max-width: 420px) { .info > div { grid-template-columns: 1fr; gap: 2px; } }

/* ---------- FAQ (all answers visible) ---------- */
.faq-layout { display: grid; grid-template-columns: minmax(0, .7fr) minmax(0, 1.3fr); gap: clamp(32px, 6vw, 96px); align-items: start; }
.faq-side { position: sticky; top: calc(var(--header-h) + 32px); }
.faq { display: grid; }
.qa { padding: 26px 0; border-top: 1px solid var(--line); }
.qa:last-child { border-bottom: 1px solid var(--line); }
.qa h3 { font: 600 1.1rem/1.4 var(--sans); letter-spacing: -.01em; margin: 0 0 .5em; }
.qa p { margin: 0; color: var(--muted); max-width: 44em; }
@media (max-width: 860px) { .faq-layout { grid-template-columns: 1fr; } .faq-side { position: static; } }

/* ---------- Contact ---------- */
.contact-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); gap: clamp(36px, 6vw, 88px); align-items: center; }
.contact-list { font-style: normal; display: grid; gap: 4px; }
.contact-list > * { display: flex; gap: 14px; align-items: flex-start; margin: 0; padding: 12px 0; color: var(--ink); text-decoration: none; border-top: 1px solid var(--line); }
.contact-list a:hover span { text-decoration: underline; text-underline-offset: .2em; }
.contact-list .icon { color: var(--accent); margin-top: .2em; }
.map-card { position: relative; display: block; border-radius: var(--r-lg); overflow: hidden; }
.map-card img { aspect-ratio: 4 / 3; object-fit: cover; width: 100%; transition: transform .8s var(--ease); }
.map-card:hover img { transform: scale(1.03); }
.map-label { position: absolute; left: 16px; bottom: 16px; display: inline-flex; align-items: center; gap: 8px; background: var(--surface); color: var(--ink); font-weight: 600; padding: 12px 18px; border-radius: 999px; box-shadow: var(--shadow); }
@media (max-width: 860px) { .contact-grid { grid-template-columns: 1fr; } }

/* ---------- Adoptions ---------- */
.adopts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; align-items: stretch; margin-bottom: 20px; }
.adopt { position: relative; display: flex; flex-direction: column; border: 1px solid var(--line); border-radius: var(--r-lg); padding: clamp(24px, 3vw, 32px); background: var(--surface); }
.adopt.featured { background: var(--accent-soft); border-color: transparent; }
.adopt .ico { margin-bottom: 20px; }
.adopt.featured .ico { background: var(--surface); }
.adopt .checks { flex: 1; align-content: start; margin-bottom: 24px; font-size: .97rem; }
.adopt-price { font: 650 2.4rem/1 var(--display); letter-spacing: -.03em; margin: 4px 0 14px; font-variant-numeric: tabular-nums; }
.adopt > p:not(.adopt-price):not(.perks-title):not(.badge) { color: var(--muted); }
.perks-title { font-weight: 600; font-size: .92rem; margin: 4px 0 10px; }
.badge { position: absolute; top: 24px; right: 24px; margin: 0; font-size: .8rem; font-weight: 600; color: var(--accent); }
@media (max-width: 900px) { .adopts { grid-template-columns: 1fr; max-width: 560px; } }

/* ---------- Donation form ---------- */
.donate-grid { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: clamp(36px, 6vw, 88px); align-items: start; }
@media (max-width: 860px) { .donate-grid { grid-template-columns: 1fr; } }
.impact-title { font-weight: 600; margin: 8px 0 14px; }
.impact-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 4px; }
.impact-list li { display: flex; gap: 16px; align-items: center; padding: 12px 0; border-top: 1px solid var(--line); }
.impact-list li > span:last-child { color: var(--muted); }
.impact-list strong { color: var(--ink); }
.donate-box { background: var(--surface); color: var(--ink); border-radius: var(--r-lg); padding: clamp(24px, 3vw, 36px); box-shadow: var(--shadow); display: grid; gap: 16px; }
.freq { display: grid; grid-template-columns: 1fr 1fr; background: var(--tint); border-radius: 999px; padding: 4px; border: 0; margin: 0; }
.freq label { position: relative; }
.freq input { position: absolute; opacity: 0; }
.freq span { display: block; text-align: center; padding: 10px; border-radius: 999px; font-weight: 600; cursor: pointer; color: var(--muted); transition: background-color .25s var(--ease), color .25s var(--ease); }
.freq input:checked + span { background: var(--surface); color: var(--ink); box-shadow: 0 1px 3px rgba(20, 32, 61, .15); }
.freq input:focus-visible + span { outline: 3px solid var(--accent); }
.amounts { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; }
.amount { border: 1.5px solid var(--line); background: transparent; border-radius: var(--r-md); padding: 14px 4px; font: 600 1.05rem var(--sans); color: var(--ink); cursor: pointer; font-variant-numeric: tabular-nums; transition: border-color .2s var(--ease), background-color .2s var(--ease), transform .15s var(--ease); }
.amount:hover { border-color: var(--accent); }
.amount:active { transform: scale(.97); }
.amount[aria-pressed="true"] { border-color: var(--accent); background: var(--accent-soft); color: var(--accent); }
.field { display: grid; gap: 8px; }
.field label { font-size: .94rem; font-weight: 500; }
.input-wrap { display: flex; align-items: center; border: 1.5px solid var(--line); border-radius: var(--r-md); padding: 0 14px; transition: border-color .2s var(--ease); }
.input-wrap:focus-within { border-color: var(--accent); }
.input-wrap[data-invalid] { border-color: #b3321b; }
.currency { font-weight: 600; color: var(--muted); }
.input-wrap input { border: 0; outline: 0; padding: 13px 8px; font: 500 1rem var(--sans); width: 100%; background: transparent; color: var(--ink); }
.form-note { margin: 0; font-size: .94rem; color: var(--ink); background: var(--tint); padding: 12px 14px; border-radius: var(--r-md); }
.form-note.is-error { color: #8a2a12; background: #f8ddd6; }
@media (prefers-color-scheme: dark) { .form-note.is-error { color: #f7c3b5; background: #4a2219; } .input-wrap[data-invalid] { border-color: #f08b72; } }
.form-note:empty { display: none; }
.other-methods { border-top: 1px solid var(--line); padding-top: 12px; }
.other-methods summary { cursor: pointer; font-weight: 600; }
.other-methods img { margin: 12px auto 0; }
.bank { border-top: 1px solid var(--line); padding-top: 16px; }
.bank-title { display: flex; align-items: center; gap: 8px; font-weight: 600; margin-bottom: 4px; }
.bank-title .icon { color: var(--accent); }
.bank .info { margin: 0; }
.mono { font-family: var(--mono); letter-spacing: .02em; }

/* ---------- Photo placeholders (until the foundation sends the pictures) ---------- */
.placeholder { margin: 0; display: grid; place-content: center; justify-items: center; gap: 10px; text-align: center; aspect-ratio: 4 / 3; padding: 24px; border-radius: var(--r-lg); border: 1.5px dashed color-mix(in srgb, var(--accent) 45%, transparent); background: var(--accent-soft); color: var(--accent); }
.placeholder .icon { width: 32px; height: 32px; opacity: .8; }
.placeholder figcaption { font-size: .9rem; font-weight: 600; line-height: 1.4; }
.placeholder figcaption span { font-weight: 400; color: var(--muted); }
.placeholder-portrait { aspect-ratio: 4 / 5; }

/* ---------- About: team ---------- */
.team { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 32px 24px; align-items: start; }
.member picture img, .member > .placeholder { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; border-radius: var(--r-lg); margin-bottom: 18px; }
.member h3 { margin-bottom: .25em; }
.member-role { color: var(--accent); font-weight: 500; margin-bottom: .6em; }
.member p:last-child { color: var(--muted); margin: 0; }
.team .placeholder-wide { grid-column: span 2; aspect-ratio: auto; height: 100%; min-height: 260px; }
@media (max-width: 560px) { .team .placeholder-wide { grid-column: auto; min-height: 220px; } }

/* ---------- News ---------- */
.posts { display: grid; }
.post { display: grid; grid-template-columns: 11em minmax(0, 1fr) minmax(0, .8fr); gap: 20px clamp(24px, 4vw, 56px); padding: clamp(28px, 4vw, 44px) 0; border-top: 1px solid var(--line); align-items: start; scroll-margin-top: calc(var(--header-h) + 16px); }
.post:last-child { border-bottom: 1px solid var(--line); }
.post-meta { display: grid; gap: 10px; justify-items: start; }
.post-meta time { font-weight: 500; color: var(--muted); font-variant-numeric: tabular-nums; }
.tag { font-size: .8rem; font-weight: 600; color: var(--accent); background: var(--accent-soft); padding: 4px 10px; border-radius: 999px; }
.post h2 { font-size: clamp(1.35rem, 2.2vw, 1.75rem); }
.post-body p { color: var(--muted); max-width: 40em; }
.post .placeholder, .post .photo img { aspect-ratio: 3 / 2; }
@media (max-width: 960px) { .post { grid-template-columns: minmax(0, 1fr) minmax(0, .8fr); } .post-meta { grid-column: 1 / -1; display: flex; align-items: center; gap: 14px; } }
@media (max-width: 640px) { .post { grid-template-columns: 1fr; } }

/* ---------- Guide: short answer + calendar ---------- */
.answer { background: var(--surface); border: 1px solid var(--line); border-left: 4px solid var(--accent); border-radius: var(--r-md); padding: clamp(24px, 3vw, 36px); max-width: 52rem; }
.answer h2 { font-size: 1.5rem; }
.answer ul { margin: 0; padding-left: 1.1em; display: grid; gap: 10px; }
.answer li::marker { color: var(--accent); }
.calendar { overflow-x: auto; border-radius: var(--r-md); background: var(--surface); padding: 20px; margin-bottom: 14px; }
.calendar table { width: 100%; min-width: 640px; border-collapse: separate; border-spacing: 4px; table-layout: fixed; }
.calendar th { font-size: .82rem; font-weight: 600; color: var(--muted); text-align: center; padding: 4px 0; }
.calendar thead th { text-transform: capitalize; }
.calendar thead td { background: none; height: auto; }
.calendar tbody th { text-align: left; color: var(--ink); width: 11em; padding-right: 10px; font-size: .9rem; }
.calendar td { height: 34px; border-radius: 6px; background: var(--tint); }
.calendar td.on-nest { background: var(--accent); }
.calendar td.on-hatch { background: color-mix(in srgb, var(--accent) 55%, var(--surface)); }
.calendar td.on-open { background: var(--accent-soft); }

/* ---------- Prose pages, 404, last update ---------- */
.prose { max-width: 760px; }
.prose h1 { font-size: clamp(2.1rem, 4vw, 3rem); }
.prose h2 { font-size: 1.5rem; margin-top: 1.4em; }
.notfound { text-align: center; }
.notfound .prose { margin-inline: auto; }
.notfound-links { list-style: none; padding: 0; margin: 40px 0 0; display: flex; flex-wrap: wrap; justify-content: center; gap: 8px 24px; }
.updated { padding-bottom: 40px; color: var(--muted); font-size: .88rem; }
.updated p { margin: 0; }

/* ---------- Footer ---------- */
.site-footer { background: var(--tint); color: var(--muted); padding-block: clamp(48px, 6vw, 80px) 28px; font-size: .96rem; }
.site-footer a { color: var(--ink); text-decoration: none; }
.site-footer a:hover { text-decoration: underline; }
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1.3fr; gap: 40px; }
.footer-grid > * { min-width: 0; }
.footer-grid ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.footer-logo { height: 36px; width: auto; margin-bottom: 18px; }
.footer-about p { max-width: 30em; }
.footer-title { font-weight: 600; color: var(--ink); }
.footer-social { display: flex; gap: 8px; }
.footer-social a { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; border: 1px solid var(--line); }
.footer-social a:hover { border-color: var(--accent); color: var(--accent); }
.footer-bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px; border-top: 1px solid var(--line); margin-top: 48px; padding-top: 22px; font-size: .88rem; }
.footer-bottom p { margin: 0; }
@media (max-width: 860px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 480px) { .footer-grid { grid-template-columns: 1fr; } .footer-bottom { flex-direction: column; padding-bottom: 72px; } }

/* ---------- WhatsApp button ---------- */
.whatsapp-fab { position: fixed; right: 18px; bottom: max(18px, env(safe-area-inset-bottom)); z-index: var(--z-fab); width: 54px; height: 54px; border-radius: 50%; display: grid; place-items: center; background: var(--accent); color: var(--on-accent); box-shadow: var(--shadow); transition: transform .25s var(--ease); }
.whatsapp-fab .icon { width: 28px; height: 28px; }
.whatsapp-fab:hover { transform: translateY(-3px); }

/* ---------- Scroll reveal (JS adds .js and .is-in; without JS everything is visible) ---------- */
@media (prefers-reduced-motion: no-preference) {
  .js [data-reveal], .js [data-reveal-group] > * { opacity: 0; transform: translateY(18px); transition: opacity .8s var(--ease), transform .8s var(--ease); }
  .js [data-reveal-group] > * { transition-delay: calc(var(--i, 0) * 70ms); }
  .js [data-reveal].is-in, .js [data-reveal-group].is-in > * { opacity: 1; transform: none; }
  .hero-copy > *, .page-hero-copy > * { animation: rise .9s var(--ease) both; }
  .hero-copy > :nth-child(2), .page-hero-copy > :nth-child(2) { animation-delay: .06s; }
  .hero-copy > :nth-child(3), .page-hero-copy > :nth-child(3) { animation-delay: .12s; }
  .hero-copy > :nth-child(4), .page-hero-copy > :nth-child(4) { animation-delay: .18s; }
}
@keyframes rise { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: .01ms !important; animation-duration: .01ms !important; }
}
@media print {
  .site-header, .whatsapp-fab, .site-footer { display: none; }
}

.section-band + .updated { padding-top: 32px; }

/* ==========================================================================
   Turtle and mangrove animations (decorative, aria-hidden, transform/opacity only).
   Loops run only while visible ([data-loop].is-playing, set by main.js) and
   everything is switched off for visitors who ask for reduced motion.
   ========================================================================== */
.turtle { display: block; fill: var(--ink); overflow: visible; }
.turtle .t-shell { fill: none; stroke: var(--bg); stroke-width: 1.3; stroke-linecap: round; stroke-linejoin: round; opacity: .55; }
.turtle g { transform-box: view-box; }
.turtle .t-fl { transform-origin: 35px 16px; }
.turtle .t-fr { transform-origin: 35px 32px; }
.turtle .t-bl { transform-origin: 21px 18px; }
.turtle .t-br { transform-origin: 21px 30px; }
@keyframes paddle-l { from { transform: rotate(8deg); } to { transform: rotate(-24deg); } }
@keyframes paddle-r { from { transform: rotate(-8deg); } to { transform: rotate(24deg); } }

/* Hatchling groups: three staggered crawlers, the first one the biggest */
.crawler { position: absolute; left: 0; display: block; }
.crawler .turtle { width: 100%; height: 100%; }
.crawler.c1 { width: 60px; height: 45px; }
.crawler.c2 { width: 48px; height: 36px; }
.crawler.c3 { width: 42px; height: 32px; }

/* Home: hatchlings crawl along the impact numbers, now and then */
.stats-wrap { position: relative; }
.stats-lane { position: relative; height: 64px; margin-bottom: -2px; container-type: inline-size; pointer-events: none; }
.stats-lane .crawler { opacity: 0; }
.stats-lane .c1 { bottom: 4px; }
.stats-lane .c2 { bottom: 26px; }
.stats-lane .c3 { bottom: 2px; }

/* Release page: from the sand to the sea */
.beach { position: relative; display: flex; align-items: center; gap: 12px; margin: -8px 0 36px; height: 84px; }
.beach::before { content: ""; position: absolute; left: 0; right: 68px; top: 50%; border-top: 2px dotted color-mix(in srgb, var(--ink) 25%, transparent); }
.beach-lane { position: relative; flex: 1; height: 100%; container-type: inline-size; }
.beach-lane .c1 { top: 20px; }
.beach-lane .c2 { top: 0; }
.beach-lane .c3 { top: 50px; }
.beach-sea { display: grid; place-items: center; width: 56px; height: 56px; border-radius: 50%; background: var(--accent-soft); color: var(--accent); flex: none; }
.beach-sea .icon { width: 30px; height: 30px; }

/* Mangrove page: leaves around the hero photo */
.page-hero-media { position: relative; }
.leaves { position: absolute; inset: 0; pointer-events: none; }
.leaf { position: absolute; color: var(--accent); filter: drop-shadow(0 4px 8px rgba(20, 45, 30, .25)); }
.leaf .icon { width: 100%; height: 100%; }
.leaf-1 { width: 54px; height: 54px; top: -20px; left: -18px; transform: rotate(-30deg); }
.leaf-2 { width: 38px; height: 38px; top: 18%; right: -16px; transform: rotate(40deg); }
.leaf-3 { width: 46px; height: 46px; bottom: -14px; right: 14%; transform: rotate(160deg); }
.leaf-4 { width: 30px; height: 30px; bottom: 22%; left: -12px; transform: rotate(-120deg); }
@keyframes sway { from { rotate: -9deg; } to { rotate: 9deg; } }

/* Planting band: a seedling grows */
.band-deco { position: relative; overflow: hidden; }
.seedling { position: absolute; right: clamp(16px, 4vw, 48px); top: 12px; width: clamp(64px, 9vw, 110px); height: clamp(64px, 9vw, 110px); color: var(--accent); opacity: .22; pointer-events: none; transform-origin: 50% 100%; }
.seedling .icon { width: 100%; height: 100%; }
@media (max-width: 760px) { .seedling { top: auto; bottom: 8px; } }

/* Waves above the footer, with a turtle swimming by */
.waves { position: relative; height: 100px; margin-top: 24px; overflow: hidden; color: var(--tint); pointer-events: none; }
.wave { position: absolute; bottom: -1px; left: 0; width: 200%; height: 100%; }
.wave path { fill: currentColor; }
.wave-back { color: var(--accent-soft); }
.waves .swimmer { position: absolute; left: 0; bottom: 8px; width: 100%; container-type: inline-size; }
.waves .swimmer .turtle { width: 50px; height: 38px; opacity: 0; }
.waves .swimmer-2 { bottom: 34px; }
.waves .swimmer-2 .turtle { width: 36px; height: 27px; }

/* Hero: bubbles rising through the water around the turtle */
.bubbles { position: absolute; inset: 0; z-index: -1; overflow: hidden; pointer-events: none; }
.bubbles span { position: absolute; bottom: -24px; left: var(--x); width: calc(var(--s) * 1.5); height: calc(var(--s) * 1.5); border-radius: 50%; border: 1px solid rgba(255, 255, 255, .6); background: radial-gradient(circle at 32% 30%, rgba(255, 255, 255, .6), rgba(255, 255, 255, .06) 62%); opacity: 0; }
@media (max-width: 760px) { .bubbles { bottom: auto; height: 340px; } }

/* 404 */
.notfound { position: relative; overflow: hidden; }
.notfound-sea { position: absolute; left: 0; right: 0; top: 24px; container-type: inline-size; pointer-events: none; }
.notfound-sea .turtle { width: 48px; height: 36px; opacity: .5; }

@media (prefers-reduced-motion: no-preference) {
  /* paddling flippers */
  .turtle.swim .t-fl, .turtle.swim .t-bl { animation: paddle-l 1.1s ease-in-out infinite alternate; }
  .turtle.swim .t-fr, .turtle.swim .t-br { animation: paddle-r 1.1s ease-in-out infinite alternate; }
  .turtle.crawl .t-fl, .turtle.crawl .t-br { animation: paddle-l .45s ease-in-out infinite alternate; }
  .turtle.crawl .t-fr, .turtle.crawl .t-bl { animation: paddle-r .45s ease-in-out infinite alternate; }

  /* home lane: a crossing every 16 s while the numbers are on screen */
  @keyframes lane-crawl { 0% { transform: translateX(-20px); opacity: 0; } 5% { opacity: .9; } 48% { opacity: .9; } 52% { transform: translateX(calc(100cqw - 40px)); opacity: 0; } 100% { transform: translateX(calc(100cqw - 40px)); opacity: 0; } }
  .js .stats-lane.is-in { opacity: 1; transform: none; }
  .stats-lane.is-in.is-playing .crawler { animation: lane-crawl 16s cubic-bezier(.45, .05, .55, .95) infinite; }
  .stats-lane.is-in.is-playing .c1 { animation-delay: .3s; }
  .stats-lane.is-in.is-playing .c2 { animation-delay: 1.2s; }
  .stats-lane.is-in.is-playing .c3 { animation-delay: 2.1s; }

  /* release lane: tied to scroll where supported, otherwise plays once in view */
  @keyframes beach-crawl { from { transform: translateX(0); } to { transform: translateX(calc(100cqw - 66px)); } }
  .js .beach-lane .crawler { transition: transform 5s cubic-bezier(.45, .05, .55, .95); }
  .js .beach-lane .c2 { transition-duration: 4.2s; }
  .js .beach-lane .c3 { transition-duration: 5.8s; }
  .js .section-release-steps .beach.is-in .crawler { transform: translateX(calc(100cqw - 66px)); }
  @supports (animation-timeline: view()) {
    .js .beach-lane .crawler { transition: none; animation: beach-crawl linear both; animation-timeline: view(); animation-range: entry 10% cover 70%; }
    .js .beach-lane .c2 { animation-range: entry 0% cover 58%; }
    .js .beach-lane .c3 { animation-range: entry 20% cover 82%; }
  }

  /* mangrove leaves */
  .leaves.is-playing .leaf { animation: sway 3.2s ease-in-out infinite alternate; }
  .leaves.is-playing .leaf-2 { animation-duration: 2.6s; animation-delay: -.8s; }
  .leaves.is-playing .leaf-3 { animation-duration: 3.8s; animation-delay: -1.6s; }
  .leaves.is-playing .leaf-4 { animation-duration: 2.9s; animation-delay: -.4s; }

  /* seedling */
  @keyframes grow { 0% { transform: scale(.2, 0); } 60% { transform: scale(1.05, 1.08); } 100% { transform: none; } }
  .js .band-deco .seedling { transform: scale(.2, 0); }
  .band-deco.is-in .seedling { animation: grow 1.4s var(--ease) .2s both; }

  /* waves and swimmer */
  @keyframes drift { to { transform: translateX(-50%); } }
  @keyframes swim-across { 0% { transform: translateX(-60px) translateY(0); opacity: 0; } 4% { opacity: .7; } 50% { transform: translateX(50cqw) translateY(-6px); } 96% { opacity: .7; } 100% { transform: translateX(calc(100cqw + 20px)) translateY(0); opacity: 0; } }
  .waves.is-playing .wave-front { animation: drift 26s linear infinite; }
  .waves.is-playing .wave-back { animation: drift 40s linear infinite reverse; }
  .waves.is-playing .swimmer .turtle { animation: swim-across 18s linear 1s infinite; }
  .waves.is-playing .swimmer-2 .turtle { animation-duration: 24s; animation-delay: -9s; }

  /* hero bubbles */
  @keyframes bubble-rise { 0% { transform: translate(0, 0) scale(.6); opacity: 0; } 12% { opacity: .85; } 80% { opacity: .5; } 100% { transform: translate(14px, -820px) scale(1); opacity: 0; } }
  .bubbles.is-playing span { animation: bubble-rise var(--d) linear var(--delay) infinite; }

  /* 404 */
  @keyframes swim-away { from { transform: translateX(-60px); } to { transform: translateX(calc(100cqw + 60px)); } }
  .notfound-sea .turtle { animation: swim-away 9s linear infinite; }

  /* calendar fills month by month */
  .js .calendar td[class] { transform: scaleX(0); transform-origin: 0 50%; transition: transform .45s var(--ease); transition-delay: calc(var(--m) * 60ms); }
  .js .calendar.is-in td[class] { transform: none; }
}
@media (prefers-reduced-motion: reduce) {
  .stats-lane, .beach-lane .crawler, .waves .swimmer, .notfound-sea, .bubbles { display: none; }
  .waves .wave, .leaf, .turtle g { animation: none !important; }
}
.photo-wide { margin-bottom: clamp(32px, 4vw, 56px); }
.photo-wide img { aspect-ratio: 21 / 8; }
@media (max-width: 640px) { .photo-wide img { aspect-ratio: 16 / 10; } }
