/* Mangrove Planting Program — reviewed, consolidated stylesheet
   Layout, Impact interactions, and 8-photo gallery preserved.
   Source: latest user-uploaded mangrove-project.css, 2026-11-05. */


/* Foundation */
:root {
    --forest: #0c352b;
    --paper: #fcfdf8;
    --line: #dce9dd;
    --display: "Poppins",sans-serif;
    --body: "DM Sans",Arial,sans-serif;
}
*,*::before,*::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 80px; }
body {
    margin: 0;
    background: var(--paper);
    font-family: var(--body);
    color: var(--forest);
    -webkit-font-smoothing: antialiased;
}
button,a,input { font: inherit; }
a { color: inherit; }
button { cursor: pointer; }
img { max-width: 100%; }
::selection { background: #acd85b; color: #0c352b; }
.icon {
    width: 1em;
    height: 1em;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
    flex: none;
}
.svg-symbols { position: absolute; width: 0; height: 0; overflow: hidden; pointer-events: none; }
.site-container { width: min(100% - 96px,1400px); margin-inline: auto; }
.skip-link { position: absolute; top: -100px; left: 16px; padding: 12px 18px; background: #fff; z-index: 1000; }
.skip-link:focus { top: 10px; }

/* Navigation */
.site-header { position: absolute; top: 0; left: 0; right: 0; z-index: 30; height: 94px; }
.nav-shell { height: 100%; display: flex; align-items: center; justify-content: space-between; gap: 26px; }
.brand {
    display: flex;
    align-items: center;
    gap: 11px;
    font-family: var(--display);
    font-size: 13px;
    font-weight: 700;
    line-height: 1.22;
    letter-spacing: -.025em;
    text-decoration: none;
    color: #0b3b30;
    white-space: nowrap;
}
.brand strong { font-weight: 800; }
.brand-symbol { height: 39px; width: 39px; position: relative; display: grid; place-items: center; color: #397f3a; }
.brand-symbol>.icon { height: 38px; width: 38px; fill: #6bbf39; stroke: #2c793c; transform: rotate(-12deg); }
.brand-symbol i {
    position: absolute;
    bottom: 3px;
    left: 5px;
    width: 3px;
    height: 20px;
    border-radius: 3px;
    background: #175e3a;
    transform: rotate(-39deg);
}
.primary-nav { display: flex; align-items: center; gap: 42px; margin-left: auto; margin-right: auto; }
.nav-link { position: relative; color: #12382f; text-decoration: none; font-size: 13px; font-weight: 700; padding: 8px 0; }
.nav-link:hover,.nav-link.is-active { color: #075a36; }
.nav-link.is-active::after,.nav-link:hover::after {
    content: "";
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 100%;
    height: 3px;
    border-radius: 2px;
    background: #2b9b59;
}
.nav-cta {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    background: linear-gradient(110deg,#0e553b,#075332);
    border-radius: 50px;
    color: #fff;
    padding: 12px 19px;
    text-decoration: none;
    font-size: 12px;
    font-weight: 800;
    white-space: nowrap;
    box-shadow: 0 6px 16px #0b51301c;
}
.nav-cta .icon { font-size: 15px; fill: #fff8; }
.nav-cta:hover { background: #0b3d2a; transform: translateY(-2px); }
.mobile-menu { display: none; border: 0; background: #fff9; color: #0c553a; border-radius: 12px; padding: 10px; }
.mobile-menu .icon { width: 23px; height: 23px; }

/* Hero */
.hero { height: 700px; min-height: 580px; position: relative; isolation: isolate; overflow: hidden; background: #cce7ed; }
.hero-picture {
    position: absolute;
    inset: 0;
    background-image: url("../project/01-hero-mangrove-coastt.jpg");
    background-size: cover;
    background-position: center 42%;
    transform: scale(1.025);
    z-index: -3;
}
.hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg,rgba(235,249,252,.95) 0%,rgba(234,247,250,.88) 29%,rgba(224,240,241,.45) 49%,rgba(240,249,241,0) 76%),linear-gradient(0deg,rgba(8,58,51,.25),transparent 29%);
    z-index: -2;
}
.hero-content { height: 100%; display: flex; align-items: center; padding-top: 62px; padding-bottom: 72px; }
.hero-copy { max-width: 610px; margin-top: 38px; }
.eyebrow {
    margin: 0;
    font-size: 12px;
    letter-spacing: .16em;
    text-transform: uppercase;
    font-weight: 800;
    font-family: var(--display);
}
.hero-eyebrow { color: #1c713d; letter-spacing: .145em; margin-bottom: 18px; }
h1,h2,h3,p { overflow-wrap: break-word; }
.hero h1 {
    font-family: var(--display);
    color: #0a392f;
    font-size: clamp(43px,5.5vw,83px);
    font-weight: 800;
    line-height: 1.08;
    letter-spacing: -.065em;
    margin: 0 0 24px;
}
.hero h1 em { font-style: normal; }
.hero-lead {
    color: #1b4039;
    font-size: clamp(16px,1.45vw,21px);
    line-height: 1.5;
    max-width: 580px;
    font-weight: 500;
    margin: 0 0 27px;
}
.hero-actions { display: flex; gap: 14px; align-items: center; flex-wrap: wrap; }
.button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    min-height: 46px;
    padding: 11px 22px;
    border-radius: 999px;
    text-decoration: none;
    font-size: 13px;
    font-weight: 800;
    transition: transform .18s,background .18s,box-shadow .18s;
}
.button:hover { transform: translateY(-2px); }
.button .icon { font-size: 17px; }
.button-primary { background: linear-gradient(135deg,#176742,#0e4e35); color: #fff; box-shadow: 0 7px 20px #125b3633; }
.button-primary:hover { background: #0f472e; }
.button-outline { color: #135337; border: 1.7px solid #185f3e; background: #f4fbf4be; }
.button-outline:hover { background: #fff; }
.hero-location {
    display: inline-flex;
    align-items: center;
    gap: 13px;
    padding: 12px 20px;
    margin-top: 38px;
    background: rgba(244,251,251,.79);
    backdrop-filter: blur(8px);
    border: 1px solid #ffffff90;
    border-radius: 40px;
    box-shadow: 0 8px 25px #133b2c12;
    text-decoration: none;
    color: inherit;
    cursor: pointer;
    transition: transform .2s ease, box-shadow .2s ease;
}
.hero-location:hover { transform:translateY(-3px);box-shadow:0 10px 28px rgba(0,0,0,.12); }
.hero-location:focus-visible {outline:3px solid #68b866;outline-offset:4px;}
.hero-location .icon { color: #72ae3a; font-size: 26px; fill: #73b84935; }
.hero-location span { display: flex; flex-direction: column; gap: 1px; }
.hero-location small { font-size: 10px; color: #45645a; font-weight: 800; letter-spacing: .08em; }
.hero-location strong { font-size: 14px; line-height: 1.35; }
.hero-wave,.impact-wave { position: absolute; left: -1px; right: -1px; bottom: -1px; line-height: 0; pointer-events: none; }
.hero-wave svg { height: 85px; width: 100%; display: block; fill: var(--paper); }

/* Project overview */
.overview { position: relative; padding: 77px 0 88px; background: var(--paper); overflow: hidden; }
.overview-layout {
    display: grid;
    grid-template-columns: minmax(220px, .87fr) minmax(0,2.45fr);
    gap: 58px;
    align-items: center;
    position: relative;
    z-index: 1;
}
.eyebrow.green { color: #237a47; }
.overview-intro h2 {
    font-family: var(--display);
    font-size: clamp(27px,3.2vw,47px);
    font-weight: 800;
    line-height: 1.17;
    letter-spacing: -.06em;
    margin: 12px 0 18px;
}
.overview-intro h2 span { display: block; }
.overview-intro p:not(.eyebrow) { font-size: 14px; line-height: 1.65; max-width: 330px; color: #2b4d41; margin: 0; }
.small-line { width: 58px; height: 4px; border-radius: 4px; background: #90cf3a; margin-top: 23px; }
.stats-row { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); align-items: start; padding-bottom: 22px; }
.stat-item {
    display: grid;
    grid-template-columns: auto minmax(0,1fr);
    gap: 12px;
    align-items: start;
    min-width: 0;
    padding: 6px 18px 12px;
}
.stat-item:first-child { padding-left: 0; }
.stat-item + .stat-item { border-left: 1px solid #dde6dc; }
.stat-icon { display: block; font-size: 45px; color: #318442; line-height: 1; }
.stat-icon .icon { stroke-width: 1.6; }
.stat-copy { display: flex; flex-direction: column; min-width: 0; }
.stat-item p.stat-eyebrow {
    margin: 1px 0 4px;
    font-size: 13px;
    font-weight: 800;
    line-height: 1.3;
    letter-spacing: 0;
    color: #294c3d;
    white-space: normal;
}
.stat-context { display: block; min-height: 2em; margin: 0 0 8px; font-size: 11px; line-height: 1.4; color: #73877a; }
.stat-item strong {
    font-family: var(--display);
    display: block;
    margin: 0 0 6px;
    font-size: clamp(30px,3.1vw,48px);
    letter-spacing: -.05em;
    line-height: 1.05;
    color: #176f45;
    font-weight: 800;
    white-space: nowrap;
}
.stat-item strong span { font-size: .68em; }
.stat-note { font-size: 11px; display: block; line-height: 1.5; color: #617667; }
.progress-section { padding: 18px 9px 0 0; }
.progress-heading {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 15px;
    margin-bottom: 13px;
    font-size: 16px;
    color: #185b39;
}
.progress-heading strong { font-weight: 800; }
.progress-heading span { color: #1b3c2f; font-size: 15px; }
.progress-heading b { font-weight: 800; }
.progress-track {
    position: relative;
    background: #d7e8d5;
    border-radius: 100px;
    height: 29px;
    overflow: hidden;
    box-shadow: inset 0 1px 2px #508a4622;
}
.progress-fill {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100%;
    min-width: 0;
    border-radius: 50px;
    background: linear-gradient(90deg,#0f7543,#1c7541);
    transition: width .7s ease;
}
.progress-fill b { font-size: 14px; color: #fff; font-weight: 800; line-height: 1; white-space: nowrap; }
.progress-foot { color: #697e6b; font-size: 11px; margin: 9px 0 0; }
.overview-decoration {
    position: absolute;
    right: -48px;
    bottom: -61px;
    font-size: 220px;
    color: #c9dfbe;
    opacity: .32;
    transform: rotate(-24deg);
}

/* Interactive impact */
.impact { position: relative; color: #fff; isolation: isolate; min-height: 328px; overflow: hidden; }
.impact-bg {
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg,rgba(7,60,39,.64),rgba(11,69,48,.89) 31%,rgba(8,70,48,.83)),url("../project/02-hasil-penanaman.JPG") center center/cover;
    z-index: -1;
}
.impact-layout {
    display: grid;
    grid-template-columns: minmax(230px,.72fr) minmax(0,2.48fr);
    gap: clamp(24px,3vw,46px);
    align-items: center;
    min-height: 348px;
    padding: 42px 0 72px;
}
.impact-main { display: flex; flex-direction: column; min-width: 0; gap: 20px; }
.impact-hint {
    display: inline-flex;
    align-items: center;
    align-self: center;
    justify-content: center;
    gap: 10px;
    max-width: 100%;
    width: fit-content;
    padding: 11px 20px;
    border: 1px solid rgba(228,244,230,.34);
    border-radius: 999px;
    background: rgba(255,255,255,.09);
    backdrop-filter: blur(8px);
    box-shadow: 0 10px 24px rgba(0,0,0,.12);
    color: #fff;
    font-size: 12px;
    font-weight: 800;
    line-height: 1.3;
    text-align: center;
}
.impact-hint-dot {
    display: block;
    flex: 0 0 10px;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: #a6ed5e;
    animation: impact-pulse 1.8s infinite;
}
.impact-list { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); gap: 16px; align-items: stretch; min-width: 0; }
.impact-list .impact-item {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    min-width: 0;
    min-height: 224px;
    padding: 22px 10px 20px;
    text-align: center;
    color: #fff;
    font: inherit;
    background: rgba(255,255,255,.07);
    border: 1px solid rgba(255,255,255,.16);
    border-radius: 20px;
    backdrop-filter: blur(6px);
    cursor: pointer;
    -webkit-tap-highlight-color: transparent;
    transition: transform .25s ease,background-color .25s ease,border-color .25s ease,box-shadow .25s ease;
}
.impact-list .impact-item:hover,.impact-list .impact-item.is-expanded {
    background: rgba(255,255,255,.13);
    border-color: rgba(171,233,97,.65);
    box-shadow: 0 16px 30px rgba(0,0,0,.14),inset 0 0 0 1px rgba(171,233,97,.10);
}
.impact-list .impact-item:hover { transform: translateY(-4px); }
.impact-list .impact-item:focus-visible { outline: 3px solid #c1ff82; outline-offset: 4px; }
.impact-list .impact-item.is-expanded::after {
    content: "";
    position: absolute;
    left: 30%;
    right: 30%;
    bottom: -9px;
    height: 4px;
    border-radius: 100px;
    background: #a6ed5e;
    box-shadow: 0 0 18px rgba(171,233,97,.55);
}
.impact-list .impact-item>.icon { font-size: clamp(39px,3.25vw,54px); stroke-width: 1.4; margin: 0 0 15px; transition: transform .25s ease; }
.impact-list .impact-item:hover>.icon,.impact-list .impact-item.is-expanded>.icon { transform: translateY(-3px) scale(1.04); }
.impact-list .impact-item p { min-height: 2.9em; margin: 0; font-size: clamp(11px,1.03vw,14px); line-height: 1.4; font-weight: 600; }
.impact-explore {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 auto;
    gap: 6px;
    margin-top: 13px;
    padding: 11px 12px;
    border-radius: 999px;
    background: rgba(223,246,206,.96);
    color: #0f5a39;
    font-size: 11.5px;
    font-weight: 800;
    line-height: 1;
    white-space: nowrap;
    box-shadow: 0 7px 18px rgba(6,43,29,.14);
    transition: transform .2s ease,background .2s ease,box-shadow .2s ease;
}
.impact-explore .icon { font-size: 13px; transition: transform .2s ease; }
.impact-list .impact-item:hover .impact-explore,.impact-list .impact-item.is-expanded .impact-explore { background: #c8f46d; box-shadow: 0 11px 23px rgba(6,43,29,.18); }
.impact-list .impact-item:hover .impact-explore .icon,.impact-list .impact-item.is-expanded .impact-explore .icon { transform: translateX(2px); }
.eyebrow.light { color: #a9d797; }
.impact-title h2 {
    font-family: var(--display);
    font-size: clamp(32px,3.8vw,55px);
    line-height: 1.07;
    letter-spacing: -.055em;
    margin: 11px 0 0;
    font-weight: 800;
}
.impact-title h2 i { font-style: normal; }
.impact-title .small-line { margin-top: 21px; }
.impact-wave svg { height: 64px; width: 100%; display: block; fill: var(--paper); }

/* Documentation gallery */
.documentation { background: var(--paper); padding: 72px 0 104px; text-align: center; }
.section-heading { margin-bottom: 20px; }
.section-heading h2 {
    font-family: var(--display);
    font-size: clamp(27px,3.2vw,47px);
    line-height: 1.2;
    letter-spacing: -.06em;
    font-weight: 800;
    margin: 10px 0 7px;
}
.section-heading>p:last-child { font-size: 14px; color: #718578; margin: 0; }
.media-tabs {
    display: inline-flex;
    background: #fff;
    box-shadow: 0 3px 12px #0c402326;
    border: 1px solid #e5eae5;
    border-radius: 60px;
    padding: 4px;
    margin: 7px 0 25px;
}
.media-tab {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
    padding: 10px 28px;
    border-radius: 50px;
    border: 0;
    background: transparent;
    color: #15543a;
    font-size: 13px;
    font-weight: 800;
    min-width: 143px;
}
.media-tab .icon { font-size: 17px; }
.media-tab.is-selected { color: #fff; background: #125e3f; box-shadow: 0 4px 9px #10452d22; }
.media-panel[hidden] { display: none !important; }
.gallery-shell { position: relative; padding: 0 5px; }
.gallery-track {
    display: flex;
    gap: 0;
    overflow-x: auto;
    scroll-behavior: smooth;
    scroll-snap-type: x mandatory;
    overscroll-behavior-x: contain;
    scrollbar-width: none;
    padding: 0 1px 4px;
}
.gallery-page {
    flex: 0 0 100%;
    min-width: 0;
    display: grid;
    grid-template-columns: repeat(4,minmax(0,1fr));
    grid-template-rows: repeat(2,auto);
    gap: 16px;
    align-content: start;
    scroll-snap-align: start;
    scroll-snap-stop: always;
}
.gallery-track::-webkit-scrollbar { display: none; }
.gallery-card {
    position: relative;
    display: block;
    min-width: 0;
    aspect-ratio: 1.02/1;
    border: 0;
    padding: 0;
    overflow: hidden;
    border-radius: 17px;
    background: #d4e7cf;
    scroll-snap-align: start;
    text-align: left;
    box-shadow: 0 6px 12px #1c53330c;
}
.gallery-card img { display: block; width: 100%; height: 100%; object-fit: cover; transition: transform .38s ease; }
.gallery-card:hover img { transform: scale(1.07); }
.gallery-card-shade { position: absolute; inset: 42% 0 0; background: linear-gradient(0deg,#102e2be0,transparent); opacity: .94; }
.gallery-label {
    position: absolute;
    left: 18px;
    right: 34px;
    bottom: 15px;
    color: #fff;
    display: flex;
    flex-direction: column;
    gap: 2px;
}
.gallery-label b { font-size: 14px; font-weight: 800; }
.gallery-label small { color: #e8f5e0e8; font-size: 11px; }
.gallery-zoom {
    position: absolute;
    right: 14px;
    bottom: 19px;
    color: #fff;
    background: #fff3;
    border: 1px solid #fff6;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    display: grid;
    place-items: center;
}
.gallery-zoom .icon { font-size: 14px; }
.gallery-arrow {
    position: absolute;
    z-index: 2;
    top: 50%;
    transform: translateY(-50%);
    width: 43px;
    height: 43px;
    border: 1px solid #e0e9e2;
    border-radius: 50%;
    background: #fff;
    color: #197241;
    display: grid;
    place-items: center;
    box-shadow: 0 5px 14px #0002;
}
.gallery-arrow[hidden] { display: none; }
.gallery-arrow .icon { width: 23px; height: 23px; stroke-width: 2.4; }
.gallery-arrow:hover:not(:disabled) { background: #eaf7ed; }
.gallery-arrow:disabled { opacity: .38; cursor: default; }
.gallery-arrow.prev { left: -17px; }
.gallery-arrow.next { right: -17px; }
.gallery-dots { display: flex; gap: 8px; justify-content: center; margin-top: 20px; }
.gallery-dots[hidden] { display: none; }
.gallery-dot {
    width: 9px;
    height: 9px;
    padding: 0;
    border: 0;
    border-radius: 20px;
    background: #cbd1cc;
    transition: width .25s ease,background .2s ease;
}
.gallery-dot.is-active { width: 25px; background: #16653f; }
.gallery-disclaimer {
    color: #829184;
    font-size: 10px;
    display: flex;
    justify-content: center;
    gap: 7px;
    align-items: center;
    margin: 14px auto 0;
}
.gallery-disclaimer .icon { font-size: 12px; }
.video-empty {
    width: min(100%,800px);
    margin: 5px auto 0;
    min-height: 230px;
    border: 1px dashed #b7d7bc;
    background: #f4faf4;
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: 10px;
    padding: 28px;
    text-align: center;
}
.video-empty>.icon { font-size: 42px; color: #31855d; }
.video-empty h3 { font: 800 20px var(--display); margin: 0 0 5px; }
.video-empty p { max-width: 500px; font-size: 13px; color: #668070; line-height: 1.5; margin: 0; }
.video-grid { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 20px; text-align: left; }
.video-card {
    background: #fff;
    border: 1px solid var(--line);
    padding: 0;
    border-radius: 15px;
    overflow: hidden;
    position: relative;
    min-height: 210px;
    text-align: left;
}
.video-card img { width: 100%; height: 210px; display: block; object-fit: cover; }
.video-card strong { display: block; padding: 12px 15px; font-size: 13px; }
.video-play {
    position: absolute;
    top: 85px;
    left: calc(50% - 27px);
    width: 54px;
    height: 54px;
    border-radius: 100%;
    background: #155e41ef;
    color: #fff;
    display: grid;
    place-items: center;
}
.video-play .icon { font-size: 26px; }

/* Closing section */
.closing {
    position: relative;
    isolation: isolate;
    color: #fff;
    min-height: 355px;
    display: flex;
    align-items: center;
    overflow: hidden;
    background: #15553c;
}
.closing-bg {
    position: absolute;
    inset: 0;
    background-image: linear-gradient(90deg,rgba(10,84,64,.98) 0%,rgba(15,85,66,.93) 28%,rgba(17,83,66,.65) 58%,rgba(15,83,62,.23) 100%),url("../project/00-Background.JPG");
    background-size: cover;
    background-position: center 55%;
    z-index: -1;
}
.closing-layout { display: flex; align-items: center; justify-content: space-between; gap: 65px; padding: 70px 0; }
.closing-text { max-width: 740px; position: relative; padding-left: 85px; }
.closing-icon { position: absolute; left: 0; top: 9px; color: #b0f04f; font-size: 62px; }
.closing-icon .icon { stroke-width: 1.2; }
.closing h2 { font: 800 clamp(26px,3.2vw,46px)/1.2 var(--display); letter-spacing: -.06em; margin: 0 0 18px; }
.closing h2 em { font-style: italic; color: #b9f26a; font-size: 1.1em; letter-spacing: -.04em; }
.closing p { max-width: 680px; font-size: 16px; line-height: 1.57; margin: 0; color: #f0fff3; }
.closing-button {
    flex: none;
    background: #ddffa4;
    color: #155138;
    min-height: 56px;
    padding: 15px 27px;
    box-shadow: 0 5px 20px #122c241e;
}
.closing-button:hover { background: #f0ffcd; }
.closing-button .icon:last-child { font-size: 17px; }
.site-footer { background: #0a3027; color: #d0e9da; font-size: 11px; }
.footer-layout { min-height: 72px; display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.footer-layout span:first-child { display: flex; align-items: center; gap: 8px; font-weight: 800; }
.footer-layout .icon { font-size: 16px; }
.footer-layout a { display: inline-flex; align-items: center; gap: 6px; text-decoration: none; color: #d6f09e; }

/* Media lightbox */
.lightbox { background: transparent; border: 0; padding: 18px; max-width: min(100%,1050px); max-height: 95vh; overflow: visible; }
.lightbox::backdrop { background: #071a14e8; backdrop-filter: blur(5px); }
.lightbox-inner { position: relative; background: #0b211b; border-radius: 15px; overflow: hidden; min-width: min(80vw,420px); }
.lightbox-image,.lightbox-video { display: block; width: 100%; max-height: 75vh; object-fit: contain; background: #0b211b; }
.lightbox-image[hidden],.lightbox-video[hidden] { display: none; }
.lightbox-close {
    position: absolute;
    right: 13px;
    top: 13px;
    z-index: 5;
    width: 38px;
    height: 38px;
    border-radius: 50%;
    border: 1px solid #ffffff55;
    background: #082d27ba;
    color: #fff;
    display: grid;
    place-items: center;
}
.lightbox-close .icon { font-size: 22px; }
.lightbox-info {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
    background: #fff;
    padding: 13px 16px;
    color: #143c31;
}
.lightbox-info strong { font-size: 13px; }
.lightbox-info span { font-size: 11px; color: #56756b; }

/* Expanded impact story panels */
.impact-expansion { position: relative; z-index: 2; padding: 4px 0 95px; }
.impact-expansion[hidden],.impact-detail[hidden] { display: none !important; }
.impact-detail {
    display: grid;
    grid-template-columns: minmax(0,1.03fr) minmax(0,1fr);
    gap: clamp(22px,3vw,47px);
    align-items: stretch;
    border: 1px solid rgba(222,242,225,.85);
    border-radius: 24px;
    padding: clamp(16px,2.6vw,34px);
    color: #163f31;
    background: linear-gradient(135deg,#ffffff 0%,#f8fcf7 100%);
    box-shadow: 0 24px 65px rgba(0,31,23,.23);
    animation: impact-reveal .32s ease both;
}
@keyframes impact-reveal {
    from { opacity: 0; transform: translateY(-12px); }
    to { opacity: 1; transform: translateY(0); }
}
.impact-visual-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 13px; min-width: 0; align-self: stretch; }
.impact-figure {
    margin: 0;
    min-width: 0;
    position: relative;
    overflow: hidden;
    border-radius: 17px;
    background: #d5e6da;
    min-height: 310px;
}
.impact-figure img { display: block; width: 100%; height: 100%; min-height: 310px; object-fit: cover; }
.impact-figure figcaption {
    position: absolute;
    bottom: 11px;
    left: 11px;
    right: 11px;
    display: flex;
    flex-direction: column;
    gap: 3px;
    padding: 10px 12px;
    border-radius: 12px;
    background: rgba(7,50,36,.87);
    border: 1px solid rgba(255,255,255,.18);
    color: #fff;
    backdrop-filter: blur(8px);
}
.impact-figure figcaption strong { font: 800 15px var(--display); }
.impact-figure figcaption span { font-size: 10px; line-height: 1.45; color: #d6f4e5; }
.impact-detail-copy { display: flex; flex-direction: column; min-width: 0; }
.impact-detail-topline { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.impact-detail-kicker { font: 800 10px var(--display); letter-spacing: .11em; color: #438a4e; }
.impact-detail-close {
    display: grid;
    place-items: center;
    width: 32px;
    height: 32px;
    flex: none;
    border: 1px solid #d8e9dc;
    border-radius: 50%;
    background: #f0f7f0;
    color: #315a40;
    cursor: pointer;
}
.impact-detail-close:hover { background: #e1f1e1; }
.impact-detail-close:focus-visible { outline: 3px solid #367c45; outline-offset: 3px; }
.impact-detail-close .icon { font-size: 16px; }
.impact-detail-copy h3 { font: 800 clamp(20px,2.2vw,29px)/1.25 var(--display); letter-spacing: -.04em; color: #113c2d; margin: 10px 0 10px; }
.impact-detail-description { margin: 0; color: #496657; font-size: 13px; line-height: 1.75; }
.impact-benefit-list { list-style: none; margin: 17px 0 20px; padding: 0; display: grid; gap: 9px; }
.impact-benefit-list li { display: flex; align-items: flex-start; gap: 9px; color: #244c39; font-size: 12px; line-height: 1.5; font-weight: 600; }
.impact-benefit-list li>.icon {
    color: #208451;
    background: #e4f3e6;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    padding: 4px;
    margin-top: 1px;
    flex: 0 0 20px;
}
.impact-detail-bottom { border-top: 1px solid #dfecdf; margin-top: auto; padding-top: 12px; display: flex; flex-direction: column; gap: 8px; }
.impact-detail-bottom small { font-size: 10px; line-height: 1.55; color: #708573; }
.impact-detail-bottom a {
    color: #16734b;
    text-decoration: none;
    font-size: 10.5px;
    font-weight: 800;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    width: fit-content;
}
.impact-detail-bottom a:hover { text-decoration: underline; }
.impact-detail-bottom a .icon { font-size: 13px; }

@keyframes impact-pulse {
    0% {box-shadow:0 0 0 0 rgba(166,237,94,.7);}
    70% {box-shadow:0 0 0 12px rgba(166,237,94,0);}
    100% {box-shadow:0 0 0 0 rgba(166,237,94,0);}
}

/* Responsive rules consolidated by breakpoint */

@media (max-width:1250px) {
    .site-container { width: min(100% - 64px,1400px); }
    .primary-nav { gap: 22px; }
    .overview-layout { grid-template-columns: .9fr 2.35fr; gap: 30px; }
    .stat-icon { font-size: 42px; }
    /* Updated Impact and overview layouts */
    .impact-layout { gap: 28px; }
    .stat-item { gap: 10px; padding-left: 13px; padding-right: 13px; }
    .stat-item:first-child { padding-left: 0; }
    .stat-item p.stat-eyebrow { font-size: 12px; }
    .impact-list { gap: 13px; }
    .impact-list .impact-item { min-height: 210px; padding: 18px 8px; }
    .impact-explore { font-size: 11px; padding: 10px 11px; }
}

@media (max-width:1120px) {
    /* Updated Impact and overview layouts */
    .impact-layout { grid-template-columns: 1fr; gap: 26px; padding: 55px 0 75px; }
    .impact-main { gap: 18px; }
    .impact-list { gap: 16px; }
    .impact-list .impact-item { min-height: 195px; }
    .impact-list .impact-item p { font-size: 13px; }
}

@media (max-width:1100px) {
    .impact-detail { grid-template-columns: minmax(0,.95fr) minmax(0,1fr); gap: 20px; }
    .impact-figure,.impact-figure img { min-height: 270px; }
}

@media (max-width:980px) {
    .site-header { height: 80px; }
    .primary-nav { gap: 17px; }
    .nav-cta { display: none; }
    .hero { height: 650px; }
    .hero-overlay { background: linear-gradient(90deg,#e5f3f7ed 0%,#e5f5f5c7 55%,#e5f2ef3d 100%); }
    .hero h1 { font-size: clamp(50px,7vw,74px); }
    .overview-layout { display: block; }
    .overview-intro { margin-bottom: 30px; }
    .overview-intro h2 span { display: inline; }
    .overview-intro p:not(.eyebrow) { max-width: 660px; }
    .gallery-page { grid-template-columns: repeat(2,minmax(0,1fr)); grid-template-rows: repeat(4,auto); }
    .closing-layout { gap: 25px; }
    .closing-text { padding-left: 65px; }
    .closing-icon { font-size: 49px; }
    .closing p { font-size: 14px; }
    /* Updated Impact and overview layouts */
    .impact-title { margin-bottom: 0; }
    .impact-list { margin: 0; }
}

@media (max-width:800px) {
    .impact-detail { grid-template-columns: 1fr; }
    .impact-figure,.impact-figure img { min-height: 245px; max-height: 300px; }
    .impact-expansion { padding-bottom: 74px; }
    /* Updated Impact and overview layouts */
    .impact-list { grid-template-columns: repeat(2,minmax(0,1fr)); gap: 14px; }
    .impact-list .impact-item { min-height: 185px; padding: 19px 12px; }
    .impact-list .impact-item p { font-size: 13px; }
    .impact-explore { font-size: 11.5px; }
}

@media (max-width:720px) {
    .site-container { width: min(100% - 34px,1400px); }
    .site-header { height: 76px; }
    .brand { font-size: 11px; }
    .brand-symbol { height: 34px; width: 34px; }
    .brand-symbol>.icon { width: 34px; height: 34px; }
    .mobile-menu { display: grid; }
    .primary-nav {
        display: none;
        position: absolute;
        top: 68px;
        left: 17px;
        right: 17px;
        background: #fffffff5;
        backdrop-filter: blur(12px);
        box-shadow: 0 12px 32px #153c2d33;
        border: 1px solid #cfdfd5;
        border-radius: 17px;
        padding: 13px;
        gap: 0;
        flex-direction: column;
        align-items: stretch;
        margin: 0;
    }
    .primary-nav.is-open { display: flex; }
    .nav-link { padding: 12px; }
    .nav-link.is-active::after,.nav-link:hover::after { display: none; }
    .hero { height: auto; min-height: 660px; }
    .hero-content { min-height: 660px; padding-top: 115px; padding-bottom: 85px; align-items: flex-start; }
    .hero-copy { margin-top: 12px; }
    .hero-picture { background-position: 58% center; }
    .hero-overlay { background: linear-gradient(90deg,#e9f9f6f2,#eaf8f2b0 74%,#eaf8f233),linear-gradient(0deg,#0e624a22,transparent 60%); }
    .hero-eyebrow { font-size: 10px; }
    .hero h1 { font-size: clamp(40px,11vw,60px); line-height: 1.1; margin-bottom: 18px; }
    .hero-lead { font-size: 16px; max-width: 440px; }
    .button { font-size: 12px; padding: 11px 16px; }
    .hero-location { margin-top: 30px; max-width: 100%; padding: 12px 14px; }
    .hero-location strong { font-size: 11px; }
    .hero-location small { font-size: 8px; }
    .hero-wave svg { height: 50px; }
    .overview { padding: 48px 0 62px; }
    .overview-intro h2 { font-size: 32px; }
    .overview-intro p:not(.eyebrow) { font-size: 13px; }
    .stat-icon { font-size: 37px; }
    .progress-section { padding: 25px 0 0; }
    .progress-heading { font-size: 13px; }
    .progress-heading span { font-size: 12px; }
    .progress-track { height: 27px; }
    .impact-title h2 { font-size: 38px; }
    .impact-wave svg { height: 41px; }
    .documentation { padding: 45px 0 75px; }
    .section-heading h2 { font-size: 27px; }
    .section-heading>p:last-child { font-size: 12px; }
    .gallery-page { gap: 12px; }
    .gallery-card { border-radius: 13px; }
    .gallery-label { left: 12px; bottom: 11px; }
    .gallery-label b { font-size: 12px; }
    .gallery-label small { font-size: 9px; }
    .gallery-zoom { display: none; }
    .gallery-arrow { width: 35px; height: 35px; }
    .gallery-arrow.prev { left: -9px; }
    .gallery-arrow.next { right: -9px; }
    .gallery-disclaimer { font-size: 9px; line-height: 1.5; }
    .closing { min-height: 360px; }
    .closing-layout { display: block; padding: 60px 0; }
    .closing-text { padding-left: 0; padding-top: 55px; }
    .closing-icon { top: -3px; left: 0; font-size: 49px; }
    .closing h2 { font-size: 28px; }
    .closing p { font-size: 13px; margin-bottom: 23px; }
    .closing-button { min-height: 46px; }
    .footer-layout { padding: 20px 0; justify-content: center; flex-direction: column; gap: 8px; text-align: center; }
    .video-grid { grid-template-columns: 1fr; }
    .impact-list .impact-item:nth-child(3) { border-left: 0; }
    .impact-list .impact-item { padding: 14px 5px; min-height: 142px; }
    .impact-explore { font-size: 9px; margin-top: 9px; }
    .impact-detail { border-radius: 18px; padding: 14px; gap: 18px; }
    .impact-visual-grid { gap: 9px; }
    .impact-figure,.impact-figure img { min-height: 210px; max-height: 250px; }
    .impact-figure { border-radius: 12px; }
    .impact-figure figcaption { padding: 8px; left: 7px; right: 7px; bottom: 7px; }
    .impact-figure figcaption strong { font-size: 12px; }
    .impact-figure figcaption span { font-size: 9px; }
    .impact-detail-copy h3 { font-size: 22px; }
    .impact-detail-description { font-size: 12px; }
    /* Updated Impact and overview layouts */
    .stats-row { grid-template-columns: repeat(2,minmax(0,1fr)); gap: 18px 0; }
    .stat-item { gap: 10px; padding: 0 12px 10px; }
    .stat-item:first-child { padding-left: 0; }
    .stat-item:nth-child(3) { grid-column: 1/-1; border-left: 0; border-top: 1px solid #dde6dc; padding: 18px 0 0; }
    .stat-icon { font-size: 37px; }
    .stat-item p.stat-eyebrow { font-size: 11px; }
    .stat-context { font-size: 10px; min-height: 1.3em; }
    .stat-item strong { font-size: clamp(27px,6vw,39px); }
    .stat-note { font-size: 10px; }
    .impact-layout { padding: 48px 0 70px; }
    .impact-title h2 { font-size: 38px; }
    .impact-main { gap: 16px; }
    .impact-hint { font-size: 10px; padding: 9px 14px; }
    .impact-list { grid-template-columns: repeat(2,minmax(0,1fr)); gap: 12px; }
    .impact-list .impact-item { min-height: 174px; padding: 15px 8px 14px; border-radius: 16px; }
    .impact-list .impact-item>.icon { font-size: 43px; margin-bottom: 10px; }
    .impact-list .impact-item p { font-size: 11px; min-height: 2.9em; }
    .impact-explore { margin-top: 10px; padding: 9px 10px; font-size: 10px; gap: 5px; }
}

@media (max-width:430px) {
    .hero { min-height: 635px; }
    .hero-content { min-height: 635px; }
    .hero h1 { font-size: 43px; }
    .hero-actions { gap: 8px; }
    .button { font-size: 11px; min-height: 42px; padding: 9px 12px; gap: 6px; }
    .hero-location { border-radius: 16px; }
    .gallery-page { grid-template-columns: repeat(2,minmax(0,1fr)); }
    .gallery-card { aspect-ratio: 1.02/1; }
    .media-tab { min-width: 117px; padding: 10px 18px; }
    .documentation { padding-bottom: 60px; }
    .impact-figure,.impact-figure img { min-height: 172px; max-height: 205px; }
    .impact-explore { font-size: 8px; }
    /* Updated Impact and overview layouts */
    .stats-row { column-gap: 6px; }
    .stat-item { grid-template-columns: 1fr; gap: 5px; }
    .stat-item:nth-child(3) { grid-template-columns: auto minmax(0,1fr); gap: 12px; }
    .stat-item strong { font-size: 34px; }
    .impact-hint { width: 100%; justify-content: center; text-align: center; }
    .impact-list { gap: 10px; }
    .impact-list .impact-item { padding: 14px 5px; min-height: 170px; }
    .impact-list .impact-item>.icon { font-size: 39px; }
    .impact-list .impact-item p { font-size: 10.5px; }
    .impact-explore { font-size: 9.5px; padding: 8px 8px; gap: 4px; }
    .impact-explore .icon { font-size: 11px; }
}

@media (prefers-reduced-motion:reduce) {
    html,.gallery-track { scroll-behavior: auto; }
    *,*::before,*::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
    .impact-detail { animation: none; }
    /* Updated Impact and overview layouts */
    .impact-detail { animation: none; }
    .impact-hint-dot { animation: none; }
}

/* =========================================================
   MANGROVE SPECIES - TWO SPECIES, ONE RESTORATION MISSION
   ========================================================= */
.species {
    position: relative;
    padding: 66px 0 86px;
    background: linear-gradient(180deg, #f6faf1 0%, #edf6ea 100%);
}
.species-heading {
    display: flex;
    justify-content: space-between;
    align-items: end;
    gap: 28px;
    margin-bottom: 30px;
}
.species-heading-copy { max-width: 780px; }
.species-heading h2 {
    margin: 12px 0 13px;
    color: #0c352b;
    font-family: var(--display);
    font-size: clamp(28px, 3vw, 45px);
    font-weight: 800;
    line-height: 1.15;
    letter-spacing: -.055em;
}
.species-heading h2 span { color: #257c49; }
.species-heading-copy > p:last-child {
    max-width: 710px;
    margin: 0;
    color: #547466;
    font-size: 14px;
    line-height: 1.75;
}
.species-count {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 15px 19px;
    flex: 0 0 auto;
    background: #fff;
    border: 1px solid #dcebd8;
    border-radius: 18px;
    box-shadow: 0 12px 30px rgba(26, 80, 45, .07);
}
.species-count strong {
    color: #177144;
    font: 800 40px/1 var(--display);
    letter-spacing: -.06em;
}
.species-count span {
    color: #4d725d;
    font-size: 12px;
    line-height: 1.5;
    font-weight: 700;
}
.species-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 24px;
}
.species-card {
    position: relative;
    isolation: isolate;
    overflow: hidden;
    min-width: 0;
    min-height: 335px;
    padding: clamp(24px, 3vw, 37px);
    border-radius: 25px;
    border: 1px solid rgba(28, 112, 66, .20);
    background: linear-gradient(135deg, #ffffff 12%, #e8f4e4 100%);
    box-shadow: 0 16px 35px rgba(11, 56, 36, .06);
    transition: transform .25s ease, box-shadow .25s ease;
}
.species-card:nth-child(2n) {
    background: linear-gradient(135deg, #12553d 0%, #073d31 100%);
    border-color: rgba(9, 73, 48, .8);
    color: #fff;
}
.species-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 21px 44px rgba(11, 56, 36, .13);
}
.species-card-watermark {
    position: absolute;
    top: 24px;
    right: -18px;
    z-index: -1;
    color: #b2dbac;
    opacity: .32;
    font-size: 230px;
    line-height: 1;
    transform: rotate(-15deg);
    pointer-events: none;
}
.species-card:nth-child(2n) .species-card-watermark { color: #6bb67d; opacity: .24; }
.species-card-top {
    position: relative;
    display: flex;
    justify-content: space-between;
    gap: 12px;
    align-items: center;
    margin-bottom: 27px;
}
.species-number {
    color: #207b4c;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: .13em;
}
.species-family {
    font-size: 10px;
    font-weight: 800;
    letter-spacing: .08em;
    color: #6d9674;
}
.species-card:nth-child(2n) .species-number,
.species-card:nth-child(2n) .species-family { color: #b4ec9b; }
.species-card-body { position: relative; max-width: 490px; }
.species-icon {
    display: grid;
    place-items: center;
    width: 51px;
    height: 51px;
    margin-bottom: 16px;
    border-radius: 15px;
    background: #dff2df;
    color: #258b4d;
    font-size: 31px;
}
.species-card:nth-child(2n) .species-icon {
    color: #c9f8a8;
    background: rgba(255, 255, 255, .14);
}
.species-local {
    display: block;
    margin-bottom: 5px;
    color: #548667;
    font-size: 12px;
    font-weight: 700;
}
.species-card:nth-child(2n) .species-local { color: #bfebbd; }
.species-card h3 {
    margin: 0 0 10px;
    color: #113d2b;
    font: 800 clamp(22px, 2.25vw, 31px)/1.24 var(--display);
    letter-spacing: -.04em;
}
.species-card h3 em { font-style: italic; }
.species-card:nth-child(2n) h3 { color: #fff; }
.species-card-body > p {
    max-width: 435px;
    margin: 0 0 22px;
    color: #4d705c;
    font-size: 13px;
    line-height: 1.7;
}
.species-card:nth-child(2n) .species-card-body > p { color: #e0f3e6; }
.species-feature {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    border-radius: 999px;
    padding: 9px 13px;
    background: #dbefd8;
    color: #1c6c42;
    font-size: 11px;
    font-weight: 800;
}
.species-card:nth-child(2n) .species-feature {
    background: rgba(205, 249, 179, .15);
    color: #cefab2;
}
.species-feature .icon { font-size: 16px; }
@media (max-width: 800px) {
    .species { padding: 55px 0 66px; }
    .species-heading { align-items: start; }
    .species-grid { gap: 16px; }
    .species-card { padding: 23px; }
}
@media (max-width: 620px) {
    .species-heading { flex-direction: column; align-items: start; }
    .species-count { padding: 10px 14px; }
    .species-count strong { font-size: 30px; }
    .species-grid { grid-template-columns: 1fr; }
    .species-card { min-height: 0; padding: 23px; }
    .species-card-top { margin-bottom: 15px; }
    .species-card-watermark { font-size: 170px; }
    .species-card h3 { font-size: 24px; }
}
@media (prefers-reduced-motion: reduce) {
    .species-card { transition: none; }
}
