/* =========================================================
   Khartoum Is Green — main stylesheet
   Mobile-first · RTL/LTR via logical properties · soft neumorphism
   ========================================================= */

:root {
  --green: #176B3A;
  --green-deep: #0D3B24;
  --leaf: #63B82E;
  --lime: #8BD329;
  --lime-bright: #A6E33A;
  --bg: #F7F8F2;
  --surface: #EEF2E8;
  --white: #FFFFFF;
  --surface-green: #F0F5E9;
  --text: #163A27;
  --text-2: #526457;
  --muted: #7C887E;
  --border: #E3E9DE;
  --shadow-raised: 8px 8px 20px rgba(39, 65, 45, 0.08), -6px -6px 18px rgba(255, 255, 255, 0.85);
  --shadow-raised-hover: 12px 12px 28px rgba(39, 65, 45, 0.12), -8px -8px 22px rgba(255, 255, 255, 0.9);
  --shadow-inset: inset 3px 3px 8px rgba(39, 65, 45, 0.06), inset -3px -3px 8px rgba(255, 255, 255, 0.9);
  --shadow-soft: 0 10px 30px rgba(39, 65, 45, 0.08);
  --radius: 24px;
  --radius-sm: 14px;
  --radius-lg: 32px;
  --font-ar: 'Tajawal', 'Inter', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --font-en: 'Inter', 'Tajawal', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --font: var(--font-ar);
  --header-h: 72px;
  --container: 1200px;
  --ease: cubic-bezier(.22, .61, .36, 1);
}
html[lang="en"] { --font: var(--font-en); }

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 12px); -webkit-text-size-adjust: 100%; overflow-x: hidden; overflow-x: clip; }
body {
  margin: 0; font-family: var(--font); background: var(--bg); color: var(--text);
  font-size: 16px; line-height: 1.7; overflow-x: hidden; overflow-x: clip; -webkit-font-smoothing: antialiased;
}
html[lang="ar"] body { font-size: 17px; }
@media (min-width: 900px) { body { font-size: 17px; } html[lang="ar"] body { font-size: 18px; } }
img, svg, video { max-width: 100%; display: block; }
img { height: auto; }
a { color: var(--green); text-decoration: none; }
a:hover { color: var(--green-deep); }
button { font: inherit; cursor: pointer; }
h1, h2, h3, h4 { margin: 0; line-height: 1.25; font-weight: 700; color: var(--text); letter-spacing: -0.01em; }
html[lang="ar"] h1, html[lang="ar"] h2, html[lang="ar"] h3, html[lang="ar"] h4 { letter-spacing: 0; line-height: 1.35; font-weight: 800; }
p { margin: 0 0 1em; }
ul, ol { padding-inline-start: 1.3em; margin: 0 0 1em; }
:focus-visible { outline: 3px solid var(--lime); outline-offset: 3px; border-radius: 6px; }
.ico { width: 1.25em; height: 1.25em; flex: none; }
.skip-link { position: absolute; inset-inline-start: 8px; top: -60px; background: var(--green); color: #fff; padding: 10px 16px; border-radius: 10px; z-index: 1000; }
.skip-link:focus { top: 8px; }
[hidden] { display: none !important; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ---------- layout ---------- */
.container { width: 100%; max-width: var(--container); margin-inline: auto; padding-inline: 20px; }
@media (min-width: 720px) { .container { padding-inline: 32px; } }
.section { padding-block: 56px; position: relative; }
@media (min-width: 900px) { .section { padding-block: 88px; } }
.section-soft { background: var(--surface-green); }
.section-head { max-width: 720px; margin: 0 auto 36px; text-align: center; }
@media (min-width: 900px) { .section-head { margin-bottom: 52px; } }
.section-head.start { text-align: start; margin-inline: 0; }
.eyebrow { display: inline-flex; align-items: center; gap: 8px; color: var(--leaf); font-weight: 700; font-size: .85rem; letter-spacing: .04em; text-transform: uppercase; margin-bottom: 12px; }
html[lang="ar"] .eyebrow { letter-spacing: 0; font-size: .95rem; text-transform: none; }
.eyebrow .ico { width: 1.1em; height: 1.1em; }
.section-title { font-size: clamp(1.7rem, 4vw, 2.5rem); margin-bottom: 12px; }
.section-sub { color: var(--text-2); font-size: 1.05em; margin: 0; }
.lead { font-size: 1.15em; color: var(--text-2); }
.center { text-align: center; }
.mt { margin-top: 32px; }

/* ---------- buttons ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 13px 22px; border-radius: var(--radius-sm); font-weight: 700; border: 1.5px solid transparent; transition: transform .25s var(--ease), box-shadow .25s var(--ease), background .25s, color .25s; line-height: 1.2; white-space: nowrap; }
.btn .ico { width: 1.15em; height: 1.15em; }
.btn-primary { background: var(--leaf); color: #fff; box-shadow: 0 6px 16px rgba(99, 184, 46, .28); }
.btn-primary:hover { background: #58A827; color: #fff; transform: translateY(-2px); box-shadow: 0 10px 22px rgba(99, 184, 46, .35); }
.btn-secondary { background: var(--white); color: var(--green); border-color: var(--green); }
.btn-secondary:hover { background: var(--surface-green); transform: translateY(-2px); box-shadow: var(--shadow-soft); }
.btn-ghost { background: transparent; color: var(--green); padding-inline: 6px; }
.btn-ghost:hover { color: var(--green-deep); gap: 12px; }
.btn-light { background: #fff; color: var(--green-deep); }
.btn-light:hover { background: var(--surface-green); transform: translateY(-2px); }
.btn-outline-light { background: transparent; color: #fff; border-color: rgba(255,255,255,.7); }
.btn-outline-light:hover { background: rgba(255,255,255,.12); color: #fff; transform: translateY(-2px); }
.btn-sm { padding: 10px 16px; font-size: .92em; }
.btn-lg { padding: 16px 28px; font-size: 1.05em; border-radius: 16px; }
.btn-block { width: 100%; }
.ico.dir { transition: transform .25s; }
html[dir="rtl"] .ico.dir, html[dir="rtl"] .btn .ico.arrow { transform: scaleX(-1); }

/* ---------- cards ---------- */
.card { background: var(--white); border: 1px solid var(--border); border-radius: var(--radius); box-shadow: var(--shadow-raised); padding: 28px; transition: transform .3s var(--ease), box-shadow .3s var(--ease); }
.card-hover:hover { transform: translateY(-5px); box-shadow: var(--shadow-raised-hover); }
.card-soft { background: var(--surface-green); border: 1px solid var(--border); border-radius: var(--radius); padding: 28px; }
.inset { box-shadow: var(--shadow-inset); background: var(--surface); border-radius: 999px; }
.badge { display: inline-flex; align-items: center; gap: 6px; padding: 4px 12px; border-radius: 999px; font-size: .8em; font-weight: 700; line-height: 1.4; }
.badge-completed { background: #E4F4D8; color: #2E7A14; }
.badge-in_progress { background: #FBF0D2; color: #8A6300; }
.badge-planned { background: #E8EEF5; color: #3A5678; }
.badge-type { background: var(--surface); color: var(--text-2); }
.chip { display: inline-flex; align-items: center; gap: 6px; padding: 8px 14px; border-radius: 999px; background: var(--surface); color: var(--text-2); font-size: .9em; font-weight: 600; }

/* ---------- header ---------- */
.site-header { position: sticky; top: 0; z-index: 100; background: rgba(247, 248, 242, .78); backdrop-filter: saturate(150%) blur(12px); -webkit-backdrop-filter: saturate(150%) blur(12px); transition: box-shadow .3s, background .3s; }
.site-header.is-scrolled { background: rgba(247, 248, 242, .94); box-shadow: 0 6px 24px rgba(39, 65, 45, .08); }
.nav { display: flex; align-items: center; justify-content: space-between; gap: 16px; height: var(--header-h); }
.brand { display: inline-flex; align-items: center; gap: 10px; color: var(--text); }
.brand-logo { width: 42px; height: 46px; object-fit: contain; }
.brand-text { display: flex; flex-direction: column; line-height: 1.15; }
.brand-main { font-weight: 800; font-size: 1.1rem; color: var(--green-deep); white-space: nowrap; }
.brand-sub { font-size: .66rem; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); font-family: var(--font-en); font-weight: 600; white-space: nowrap; }
html[lang="en"] .brand-sub { font-family: var(--font-ar); letter-spacing: 0; text-transform: none; font-size: .8rem; }
.nav-links { display: none; align-items: center; gap: 4px; }
.nav-links a { padding: 8px 11px; border-radius: 10px; color: var(--text-2); font-weight: 600; font-size: .95em; position: relative; transition: color .2s; white-space: nowrap; }
.nav-links a:hover { color: var(--green); }
.nav-links a.is-active { color: var(--green-deep); }
.nav-links a.is-active::after { content: ""; position: absolute; inset-inline: 12px; bottom: 2px; height: 3px; border-radius: 3px; background: var(--lime); }
.nav-actions { display: flex; align-items: center; gap: 10px; }
.lang-switch { display: inline-flex; align-items: center; gap: 6px; padding: 8px 14px; font-family: var(--font-en); font-weight: 700; font-size: .8rem; color: var(--muted); letter-spacing: .04em; }
.lang-switch .on { color: var(--green-deep); }
.lang-switch .sep { color: var(--border); }
.nav-cta { display: none; }
.burger { display: inline-flex; align-items: center; justify-content: center; width: 44px; height: 44px; border: 1px solid var(--border); background: #fff; border-radius: 12px; color: var(--green-deep); }
.burger .ico { width: 22px; height: 22px; }
/* positioned relative to the sticky header (its backdrop-filter makes it the containing block) */
.mobile-menu { position: absolute; top: 100%; left: 0; right: 0; height: calc(100vh - var(--header-h)); height: calc(100dvh - var(--header-h)); background: var(--bg); z-index: 99; overflow-y: auto; animation: fadeIn .25s var(--ease); border-top: 1px solid var(--border); }
.mobile-menu-inner { padding: 20px; display: flex; flex-direction: column; gap: 4px; }
.mobile-menu-inner > a:not(.btn) { display: flex; align-items: center; justify-content: space-between; padding: 16px 14px; border-radius: 14px; font-weight: 700; font-size: 1.1em; color: var(--text); border-bottom: 1px solid var(--border); }
.mobile-menu-inner > a.is-active { color: var(--green); background: var(--surface-green); }
.mobile-menu-inner .btn { margin-top: 16px; }
.mobile-lang { justify-content: center !important; color: var(--text-2) !important; border: 0 !important; gap: 8px; }
body.menu-open { overflow: hidden; }
@media (min-width: 1060px) {
  .nav-links { display: flex; }
  .burger, .mobile-menu { display: none !important; }
  .nav-cta { display: inline-flex; }
}
@media (min-width: 1060px) and (max-width: 1260px) { .nav-links a { padding-inline: 7px; font-size: .88em; } .nav-cta { display: none; } }

/* ---------- botanical decorations ---------- */
.leaf { position: absolute; width: var(--s, 34px); height: var(--s, 34px); background: url('../img/leaf.svg') no-repeat center / contain; opacity: var(--o, .55); pointer-events: none; transform: rotate(var(--r, 0deg)); animation: floatLeaf var(--d, 12s) ease-in-out infinite alternate; animation-delay: var(--delay, 0s); will-change: transform; z-index: 0; }
@keyframes floatLeaf {
  0% { transform: translate(0, 0) rotate(var(--r, 0deg)); }
  100% { transform: translate(var(--dx, 10px), var(--dy, -14px)) rotate(calc(var(--r, 0deg) + 6deg)); }
}
.branch { position: absolute; width: 260px; max-width: 40vw; opacity: .7; pointer-events: none; z-index: 0; }
.branch.tl { top: 0; inset-inline-start: -30px; transform: scaleX(-1) rotate(170deg); }
html[dir="rtl"] .branch.tl { transform: rotate(170deg); }
.branch.br { bottom: -20px; inset-inline-end: -30px; transform: rotate(-10deg); }
html[dir="rtl"] .branch.br { transform: scaleX(-1) rotate(-10deg); }
@media (min-width: 900px) { .branch { width: 340px; } }

/* ---------- reveal ---------- */
[data-reveal] { opacity: 0; transform: translateY(18px); transition: opacity .7s var(--ease), transform .7s var(--ease); transition-delay: var(--rd, 0s); }
[data-reveal].is-visible { opacity: 1; transform: none; }
@keyframes fadeIn { from { opacity: 0 } to { opacity: 1 } }
@keyframes riseIn { from { opacity: 0; transform: translateY(16px) } to { opacity: 1; transform: none } }

/* ---------- hero ---------- */
.hero { position: relative; overflow: hidden; padding-block: 36px 64px; background: radial-gradient(1200px 600px at 85% -10%, #EAF2DF 0%, transparent 60%), radial-gradient(800px 500px at -10% 90%, #F0F5E9 0%, transparent 60%), var(--bg); }
.hero-grid { display: grid; gap: 36px; align-items: center; position: relative; z-index: 1; }
.hero-badge { display: inline-flex; align-items: center; gap: 8px; padding: 7px 14px; border-radius: 999px; background: #fff; border: 1px solid var(--border); color: var(--text-2); font-size: .85em; font-weight: 600; margin-bottom: 22px; animation: riseIn .7s var(--ease) both; }
.hero-badge .ico { color: var(--leaf); }
.hero-title { font-size: clamp(2.5rem, 9vw, 4.6rem); color: var(--green-deep); animation: riseIn .8s var(--ease) .1s both; }
html[lang="en"] .hero-title { font-size: clamp(2rem, 7vw, 3.3rem); letter-spacing: -0.02em; }
.hero-title-alt { display: block; font-size: clamp(1.3rem, 4vw, 2rem); font-weight: 600; color: var(--green); margin-top: 6px; font-family: var(--font-en); letter-spacing: -0.01em; }
html[lang="en"] .hero-title-alt { font-family: var(--font-ar); font-weight: 700; }
.hero-tagline { font-size: clamp(1.15rem, 3vw, 1.5rem); font-weight: 700; color: var(--green); margin: 22px 0 12px; animation: riseIn .8s var(--ease) .2s both; }
.hero-text { color: var(--text-2); font-size: 1.05em; max-width: 520px; margin-bottom: 28px; animation: riseIn .8s var(--ease) .3s both; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; animation: riseIn .8s var(--ease) .4s both; }
.hero-media { position: relative; animation: fadeIn 1.2s var(--ease) .2s both; }
.hero-media::before { content: ""; position: absolute; inset: 8% -4% -6% 6%; border-radius: 62% 38% 55% 45% / 48% 58% 42% 52%; background: linear-gradient(135deg, #DCEBCB, #EAF2DF); z-index: 0; transition: transform .4s var(--ease); }
.hero-photo { position: relative; z-index: 1; aspect-ratio: 5 / 4; border-radius: 58% 42% 46% 54% / 52% 44% 56% 48%; overflow: hidden; box-shadow: 0 30px 60px rgba(13, 59, 36, .18); }
.hero-photo img { width: 100%; height: 100%; object-fit: cover; transform: scale(1.04); transition: transform .8s var(--ease); }
.hero-float { position: absolute; z-index: 2; background: #fff; border: 1px solid var(--border); border-radius: 18px; padding: 12px 16px; box-shadow: var(--shadow-raised); display: flex; align-items: center; gap: 12px; animation: riseIn .8s var(--ease) .6s both; }
.hero-float .ico { width: 36px; height: 36px; padding: 8px; background: var(--surface-green); border-radius: 12px; color: var(--leaf); }
.hero-float strong { display: block; font-size: 1.1em; color: var(--green-deep); line-height: 1.1; }
.hero-float span { font-size: .8em; color: var(--muted); }
.hero-float.one { bottom: 6%; inset-inline-start: -6px; }
.hero-float.two { top: 8%; inset-inline-end: -6px; }
.hero-scroll { display: none; }
@media (min-width: 900px) {
  .hero { padding-block: 48px 110px; min-height: calc(100vh - var(--header-h)); display: flex; align-items: center; }
  .hero-grid { grid-template-columns: 1.05fr 1fr; gap: 56px; }
  .hero-text { font-size: 1.1em; }
  .hero-float.one { inset-inline-start: -24px; } .hero-float.two { inset-inline-end: -24px; }
  .hero-scroll { display: inline-flex; position: absolute; bottom: 28px; inset-inline-start: 50%; transform: translateX(-50%); flex-direction: column; align-items: center; gap: 6px; color: var(--muted); font-size: .8em; font-weight: 600; z-index: 2; }
  html[dir="rtl"] .hero-scroll { transform: translateX(50%); }
  .hero-scroll .ico { animation: bob 1.8s ease-in-out infinite; transform: rotate(90deg); }
  @keyframes bob { 0%, 100% { translate: 0 0 } 50% { translate: 0 5px } }
}

/* ---------- stats ---------- */
.stats { position: relative; z-index: 2; margin-top: -36px; }
@media (min-width: 900px) { .stats { margin-top: -70px; } }
.stats-card { background: var(--white); border: 1px solid var(--border); border-radius: var(--radius-lg); box-shadow: var(--shadow-raised); padding: 20px 12px; display: grid; grid-template-columns: repeat(2, 1fr); gap: 8px; }
@media (min-width: 900px) { .stats-card { grid-template-columns: repeat(4, 1fr); padding: 34px 24px; } }
.stat { text-align: center; padding: 14px 8px; position: relative; }
@media (min-width: 900px) { .stat + .stat::before { content: ""; position: absolute; inset-inline-start: 0; top: 15%; height: 70%; width: 1px; background: var(--border); } }
.stat .ico { width: 30px; height: 30px; color: var(--leaf); margin: 0 auto 8px; transform: scale(.95); transition: transform .6s var(--ease); }
.stat.is-visible .ico { transform: scale(1); }
.stat-num { font-size: clamp(1.9rem, 5vw, 2.6rem); font-weight: 800; color: var(--green-deep); line-height: 1.1; font-family: var(--font-en); font-variant-numeric: tabular-nums; }
.stat-label { color: var(--text-2); font-weight: 600; font-size: .95em; margin-top: 4px; }

/* ---------- features (what we do) ---------- */
.features { display: grid; gap: 16px; grid-template-columns: 1fr; }
@media (min-width: 600px) { .features { grid-template-columns: repeat(2, 1fr); gap: 20px; } }
@media (min-width: 1000px) { .features { grid-template-columns: repeat(4, 1fr); } }
.feature { display: flex; flex-direction: column; gap: 12px; }
.feature-icon { width: 64px; height: 64px; border-radius: 20px; background: var(--surface-green); color: var(--green); display: grid; place-items: center; box-shadow: var(--shadow-inset); transition: box-shadow .3s, color .3s; }
.feature-icon .ico { width: 30px; height: 30px; }
.feature:hover .feature-icon { color: var(--leaf); box-shadow: var(--shadow-inset), 0 0 0 6px rgba(139, 211, 41, .15); }
.feature h3 { font-size: 1.2em; }
.feature p { color: var(--text-2); margin: 0; flex: 1; font-size: .97em; }
.feature .btn-ghost { align-self: flex-start; padding-inline: 0; }

/* ---------- why ---------- */
.why-grid { display: grid; gap: 32px; align-items: center; }
@media (min-width: 900px) { .why-grid { grid-template-columns: 1fr 1fr; gap: 64px; } }
.why-media { position: relative; }
.why-media img { border-radius: var(--radius-lg); aspect-ratio: 4 / 3.4; object-fit: cover; width: 100%; box-shadow: var(--shadow-soft); }
.why-media::after { content: ""; position: absolute; inset: auto -14px -14px auto; width: 55%; height: 55%; border-radius: var(--radius-lg); background: var(--surface-green); z-index: -1; }
html[dir="rtl"] .why-media::after { inset: auto auto -14px -14px; }
.why-statement { font-size: clamp(1.35rem, 3.2vw, 1.9rem); color: var(--green-deep); margin-bottom: 18px; }
.why-points { list-style: none; padding: 0; margin: 22px 0 28px; display: grid; gap: 10px; }
.why-points li { display: flex; align-items: center; gap: 12px; font-weight: 600; color: var(--text); }
.why-points .ico { width: 34px; height: 34px; padding: 7px; border-radius: 10px; background: #fff; color: var(--leaf); box-shadow: var(--shadow-raised); }

/* ---------- journey timeline ---------- */
.timeline { position: relative; list-style: none; padding: 0; margin: 0; display: grid; gap: 28px; }
.timeline::before { content: ""; position: absolute; inset-inline-start: 19px; top: 16px; bottom: 16px; width: 3px; border-radius: 3px; background: linear-gradient(to bottom, var(--lime), var(--green)); }
.tl-item { position: relative; padding-inline-start: 58px; }
.tl-node { position: absolute; inset-inline-start: 6px; top: 6px; width: 30px; height: 30px; border-radius: 50%; background: #fff; border: 3px solid var(--leaf); display: grid; place-items: center; color: var(--leaf); box-shadow: 0 0 0 6px var(--bg); }
.tl-node .ico { width: 15px; height: 15px; }
.tl-card { display: grid; gap: 14px; }
.tl-card img { border-radius: 18px; aspect-ratio: 16 / 10; object-fit: cover; width: 100%; }
.tl-label { color: var(--leaf); font-weight: 700; font-size: .85em; font-family: var(--font-en); }
.tl-card h3 { font-size: 1.2em; margin-bottom: 4px; }
.tl-card p { color: var(--text-2); margin: 0; font-size: .97em; }
@media (min-width: 900px) {
  .timeline { grid-template-columns: repeat(3, 1fr); gap: 28px; padding-top: 40px; }
  .timeline::before { inset-inline: 40px; top: 14px; bottom: auto; width: auto; height: 3px; background: linear-gradient(to var(--grad-end, right), var(--lime), var(--green)); }
  html[dir="rtl"] .timeline::before { --grad-end: left; }
  .tl-item { padding-inline-start: 0; padding-top: 10px; }
  .tl-node { top: -14px; inset-inline-start: 24px; }
  .tl-card { padding-top: 18px; }
}
@media (min-width: 1100px) { .timeline { grid-template-columns: repeat(6, 1fr); gap: 20px; } .tl-card h3 { font-size: 1.05em; } .tl-card p { font-size: .9em; } }

/* ---------- growing plant ---------- */
.grow { overflow: hidden; }
.grow-grid { display: grid; gap: 32px; align-items: center; }
@media (min-width: 900px) { .grow-grid { grid-template-columns: 1fr 1fr; gap: 64px; } }
.grow-stage { display: grid; place-items: center; }
.grow-svg { width: min(100%, 360px); height: auto; }
.grow-svg .stroke { stroke: var(--green); stroke-width: 5; fill: none; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: var(--len, 400); stroke-dashoffset: var(--len, 400); transition: stroke-dashoffset .15s linear; }
.grow-svg .leaf-fill { fill: var(--lime); opacity: 0; transform-origin: var(--ox) var(--oy); transform: scale(.2); transition: opacity .35s var(--ease), transform .5s var(--ease); }
.grow-svg .seed { fill: #7A5A3A; transition: transform .5s var(--ease); transform-origin: center; }
.grow-svg .soil { fill: #D9E6CC; }
.grow-svg.is-done .leaf-fill { opacity: 1; transform: scale(1); }
.grow-steps { display: flex; justify-content: space-between; gap: 6px; list-style: none; padding: 0; margin: 24px 0 0; }
.grow-steps li { flex: 1; text-align: center; font-size: .8em; font-weight: 700; color: var(--muted); padding-top: 12px; position: relative; transition: color .3s; }
.grow-steps li::before { content: ""; position: absolute; top: 0; inset-inline: 0; height: 4px; border-radius: 4px; background: var(--border); transition: background .3s; }
.grow-steps li.on { color: var(--green); } .grow-steps li.on::before { background: var(--lime); }

/* ---------- projects ---------- */
.projects-layout { display: grid; gap: 24px; }
@media (min-width: 1000px) { .projects-layout { grid-template-columns: 1fr 1.2fr; gap: 28px; align-items: start; } }
.project-list { display: grid; gap: 12px; }
.project-item { display: grid; grid-template-columns: 92px 1fr; gap: 14px; align-items: center; background: #fff; border: 1px solid var(--border); border-radius: 20px; padding: 12px; box-shadow: var(--shadow-raised); transition: transform .3s var(--ease), box-shadow .3s var(--ease), border-color .3s; color: var(--text); }
.project-item:hover, .project-item.is-hl { transform: translateY(-3px); box-shadow: var(--shadow-raised-hover); border-color: #CFE3B8; }
.project-item img { width: 92px; height: 78px; object-fit: cover; border-radius: 14px; }
.project-item h3 { font-size: 1.05em; margin-bottom: 4px; }
.project-item .meta { display: flex; flex-wrap: wrap; gap: 6px 14px; font-size: .85em; color: var(--text-2); }
.project-item .meta span { display: inline-flex; align-items: center; gap: 4px; }
.project-item .meta .ico { width: 1em; height: 1em; color: var(--leaf); }
.project-item .badge { justify-self: start; }
.project-map { position: relative; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); box-shadow: var(--shadow-raised); overflow: hidden; min-height: 340px; }
@media (min-width: 1000px) { .project-map { position: sticky; top: calc(var(--header-h) + 16px); min-height: 520px; } }
.project-map .map { position: absolute; inset: 0; z-index: 0; }
.map-placeholder { position: absolute; inset: 0; display: grid; place-items: center; color: var(--muted); font-size: .9em; }
.kig-pin { width: 30px; height: 30px; display: grid; place-items: center; color: var(--leaf); filter: drop-shadow(0 4px 6px rgba(13, 59, 36, .3)); transition: transform .25s var(--ease), color .25s; }
.kig-pin svg { width: 30px; height: 30px; fill: currentColor; }
.kig-pin.is-hl, .kig-pin:hover { transform: scale(1.25) translateY(-3px); color: var(--green); }
.leaflet-popup-content-wrapper { border-radius: 18px !important; box-shadow: var(--shadow-raised) !important; border: 1px solid var(--border); font-family: var(--font); }
.leaflet-popup-content { margin: 12px 14px !important; line-height: 1.5; width: 230px !important; }
.leaflet-popup-tip { box-shadow: none !important; }
.map-popup img { width: 100%; height: 110px; object-fit: cover; border-radius: 12px; margin-bottom: 8px; }
.map-popup strong { display: block; font-size: 1.02em; color: var(--green-deep); margin-bottom: 4px; }
.map-popup .meta { font-size: .82em; color: var(--text-2); display: flex; gap: 10px; flex-wrap: wrap; margin: 4px 0 8px; }
.map-popup a.btn { width: 100%; }
.leaflet-container { font: inherit !important; }
.leaflet-control-attribution { font-size: 10px !important; background: rgba(255,255,255,.7) !important; }

.project-cards { display: grid; gap: 20px; }
@media (min-width: 640px) { .project-cards { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1000px) { .project-cards { grid-template-columns: repeat(3, 1fr); gap: 24px; } }
.project-card { display: flex; flex-direction: column; background: #fff; border: 1px solid var(--border); border-radius: var(--radius); box-shadow: var(--shadow-raised); overflow: hidden; color: var(--text); transition: transform .3s var(--ease), box-shadow .3s var(--ease); }
.project-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-raised-hover); }
.project-card .cover { position: relative; aspect-ratio: 16 / 10; overflow: hidden; }
.project-card .cover img { width: 100%; height: 100%; object-fit: cover; transition: transform .7s var(--ease); }
.project-card:hover .cover img { transform: scale(1.05); }
.project-card .cover .badge { position: absolute; top: 12px; inset-inline-start: 12px; }
.project-card .body { padding: 20px 22px 22px; display: flex; flex-direction: column; gap: 10px; flex: 1; }
.project-card h3 { font-size: 1.15em; }
.project-card .loc { color: var(--muted); font-size: .88em; display: flex; align-items: center; gap: 4px; }
.project-card .loc .ico { width: 1em; height: 1em; }
.project-card p { color: var(--text-2); font-size: .95em; margin: 0; flex: 1; }
.project-card .meta { display: flex; gap: 14px; flex-wrap: wrap; font-size: .88em; color: var(--text-2); padding-top: 10px; border-top: 1px solid var(--border); }
.project-card .meta span { display: inline-flex; align-items: center; gap: 5px; }
.project-card .meta .ico { width: 1.05em; height: 1.05em; color: var(--leaf); }
.filters { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; margin-bottom: 28px; }
.filters a, .filters button { padding: 8px 16px; border-radius: 999px; border: 1px solid var(--border); background: #fff; color: var(--text-2); font-weight: 600; font-size: .9em; transition: all .2s; }
.filters .is-active, .filters a:hover { background: var(--green); color: #fff; border-color: var(--green); }

/* project detail */
.detail-hero { position: relative; }
.detail-cover { border-radius: var(--radius-lg); overflow: hidden; aspect-ratio: 16 / 8; box-shadow: var(--shadow-soft); }
@media (max-width: 640px) { .detail-cover { aspect-ratio: 4 / 3; } }
.detail-cover img { width: 100%; height: 100%; object-fit: cover; }
.detail-grid { display: grid; gap: 28px; margin-top: 28px; }
@media (min-width: 900px) { .detail-grid { grid-template-columns: 1.6fr 1fr; gap: 40px; } }
.detail-facts { display: grid; gap: 10px; }
.fact { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 14px; border-radius: 14px; background: var(--surface-green); font-size: .95em; }
.fact span:first-child { color: var(--text-2); display: inline-flex; align-items: center; gap: 8px; }
.fact .ico { color: var(--leaf); }
.fact strong { color: var(--green-deep); }
.numbers { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-bottom: 16px; }
.numbers div { text-align: center; background: #fff; border: 1px solid var(--border); border-radius: 16px; padding: 14px 6px; box-shadow: var(--shadow-raised); }
.numbers strong { display: block; font-size: 1.6em; font-family: var(--font-en); color: var(--green-deep); line-height: 1.1; }
.numbers span { font-size: .8em; color: var(--text-2); }
.progress { height: 10px; border-radius: 10px; background: var(--surface); box-shadow: var(--shadow-inset); overflow: hidden; }
.progress i { display: block; height: 100%; border-radius: 10px; background: linear-gradient(90deg, var(--leaf), var(--lime-bright)); width: var(--p, 0%); transition: width 1.2s var(--ease); }
.prose { color: var(--text-2); font-size: 1.03em; }
.prose h2, .prose h3, .prose h4 { color: var(--text); margin: 1.4em 0 .5em; }
.prose h2 { font-size: 1.4em; } .prose h3 { font-size: 1.2em; }
.prose blockquote { margin: 1.2em 0; padding: 14px 20px; border-inline-start: 4px solid var(--lime); background: var(--surface-green); border-radius: 12px; }
.prose ul li, .prose ol li { margin-bottom: .35em; }
.prose a { text-decoration: underline; text-underline-offset: 3px; }

/* ---------- before / after ---------- */
.ba-grid { display: grid; gap: 28px; align-items: center; }
@media (min-width: 1000px) { .ba-grid { grid-template-columns: 1.5fr 1fr; gap: 56px; } }
.ba-compare { position: relative; border-radius: var(--radius-lg); overflow: hidden; aspect-ratio: 16 / 10; box-shadow: var(--shadow-soft); user-select: none; touch-action: pan-y; isolation: isolate; background: var(--surface); }
.ba-compare img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; pointer-events: none; }
.ba-compare .ba-after { clip-path: inset(0 0 0 var(--x, 50%)); }
.ba-compare .ba-label { position: absolute; top: 14px; padding: 6px 14px; border-radius: 999px; background: rgba(13, 59, 36, .6); color: #fff; font-weight: 700; font-size: .85em; backdrop-filter: blur(6px); z-index: 2; }
.ba-compare .ba-label.before { left: 14px; } .ba-compare .ba-label.after { right: 14px; }
.ba-line { position: absolute; top: 0; bottom: 0; left: var(--x, 50%); width: 3px; background: #fff; transform: translateX(-50%); z-index: 2; box-shadow: 0 0 12px rgba(0,0,0,.25); }
.ba-handle { position: absolute; top: 50%; left: var(--x, 50%); width: 48px; height: 48px; transform: translate(-50%, -50%); border-radius: 50%; background: #fff; box-shadow: var(--shadow-raised); display: grid; place-items: center; color: var(--green); z-index: 3; pointer-events: none; }
.ba-handle .ico { width: 20px; height: 20px; }
.ba-range { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; margin: 0; cursor: ew-resize; z-index: 4; -webkit-appearance: none; appearance: none; }
.ba-range::-webkit-slider-thumb { -webkit-appearance: none; width: 60px; height: 100%; }
.ba-range::-moz-range-thumb { width: 60px; height: 100%; border: 0; }
.ba-hint { text-align: center; color: var(--muted); font-size: .85em; margin-top: 10px; }
.ba-cards { display: grid; gap: 28px; }
@media (min-width: 800px) { .ba-cards { grid-template-columns: repeat(2, 1fr); } }

/* ---------- gallery ---------- */
.gallery-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; }
@media (min-width: 700px) { .gallery-grid { grid-template-columns: repeat(3, 1fr); gap: 14px; } }
@media (min-width: 1000px) { .gallery-grid { grid-template-columns: repeat(4, 1fr); grid-auto-rows: 220px; grid-auto-flow: dense; } .gallery-item.tall { grid-row: span 2; } .gallery-item.wide { grid-column: span 2; } }
.gallery-item { position: relative; border-radius: 18px; overflow: hidden; aspect-ratio: 1; background: var(--surface); border: 0; padding: 0; cursor: zoom-in; display: block; width: 100%; }
@media (min-width: 1000px) { .gallery-item { aspect-ratio: auto; height: 100%; } }
.gallery-item img { width: 100%; height: 100%; object-fit: cover; transition: transform .7s var(--ease); }
.gallery-item:hover img { transform: scale(1.05); }
.gallery-item figcaption { position: absolute; inset: auto 0 0 0; padding: 40px 14px 12px; background: linear-gradient(to top, rgba(13, 59, 36, .75), transparent); color: #fff; font-size: .85em; font-weight: 600; opacity: 0; transform: translateY(6px); transition: all .35s var(--ease); text-align: start; }
.gallery-item:hover figcaption, .gallery-item:focus-visible figcaption { opacity: 1; transform: none; }
.lightbox { position: fixed; inset: 0; background: rgba(13, 59, 36, .92); z-index: 300; display: grid; place-items: center; padding: 20px; animation: fadeIn .25s; }
.lightbox figure { margin: 0; max-width: min(1100px, 100%); max-height: 100%; display: grid; gap: 10px; }
.lightbox img { max-height: 80vh; width: auto; max-width: 100%; margin: 0 auto; border-radius: 14px; object-fit: contain; }
.lightbox figcaption { color: #fff; text-align: center; font-size: .95em; }
.lightbox-close, .lightbox-nav { position: absolute; width: 48px; height: 48px; border-radius: 50%; background: rgba(255,255,255,.12); color: #fff; border: 1px solid rgba(255,255,255,.2); display: grid; place-items: center; }
.lightbox-close { top: 16px; inset-inline-end: 16px; }
.lightbox-nav { top: 50%; transform: translateY(-50%); }
.lightbox-prev { left: 12px; } .lightbox-prev .ico { transform: rotate(180deg); }
.lightbox-next { right: 12px; }
.lightbox-close:hover, .lightbox-nav:hover { background: rgba(255,255,255,.25); }

/* ---------- CTA band ---------- */
.cta-band { position: relative; border-radius: var(--radius-lg); overflow: hidden; padding: 56px 24px; text-align: center; color: #fff; isolation: isolate; }
@media (min-width: 900px) { .cta-band { padding: 96px 48px; } }
.cta-band img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; }
.cta-band::before { content: ""; position: absolute; inset: 0; background: linear-gradient(135deg, rgba(13, 59, 36, .86), rgba(23, 107, 58, .72)); z-index: -1; }
.cta-band h2 { color: #fff; font-size: clamp(1.8rem, 4.5vw, 2.8rem); margin-bottom: 14px; }
.cta-band p { max-width: 600px; margin: 0 auto 28px; color: rgba(255,255,255,.9); font-size: 1.1em; }
.cta-band .actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; }

/* ---------- support cards ---------- */
.support-cards { display: grid; gap: 20px; }
@media (min-width: 800px) { .support-cards { grid-template-columns: repeat(3, 1fr); } }
.support-card { text-align: center; display: flex; flex-direction: column; align-items: center; gap: 12px; }
.support-card .feature-icon { width: 72px; height: 72px; border-radius: 50%; }
.support-card p { color: var(--text-2); margin: 0; flex: 1; }
.note { display: flex; gap: 12px; align-items: flex-start; padding: 16px 18px; border-radius: 16px; background: var(--surface-green); border: 1px dashed #CFE3B8; color: var(--text-2); font-size: .95em; }
.note .ico { color: var(--leaf); flex: none; margin-top: 2px; }

/* ---------- credibility ---------- */
.cred-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; }
@media (min-width: 800px) { .cred-grid { grid-template-columns: repeat(4, 1fr); gap: 16px; } }
.cred-item { background: #fff; border: 1px solid var(--border); border-radius: 20px; padding: 20px 14px; text-align: center; box-shadow: var(--shadow-raised); }
.cred-item .ico { color: var(--leaf); width: 26px; height: 26px; margin: 0 auto 6px; }
.cred-item strong { display: block; font-family: var(--font-en); font-size: 1.8em; color: var(--green-deep); line-height: 1.1; }
.cred-item span { color: var(--text-2); font-size: .9em; font-weight: 600; }
.cred-actions { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; margin-top: 28px; }

/* ---------- partners ---------- */
.partner-logos { display: flex; flex-wrap: wrap; justify-content: center; gap: 16px; }
.partner-logo { width: 160px; height: 90px; display: grid; place-items: center; background: #fff; border: 1px solid var(--border); border-radius: 18px; padding: 16px; filter: grayscale(1) opacity(.7); transition: filter .3s, transform .3s; }
.partner-logo:hover { filter: none; transform: translateY(-3px); }
.partner-logo img { max-height: 56px; width: auto; object-fit: contain; }
.partner-logo span { font-weight: 700; color: var(--text-2); font-size: .9em; text-align: center; }
.partners-empty { max-width: 560px; margin: 0 auto; text-align: center; }

/* ---------- news ---------- */
.news-grid { display: grid; gap: 20px; }
@media (min-width: 640px) { .news-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1000px) { .news-grid { grid-template-columns: repeat(3, 1fr); gap: 24px; } }
.news-card { display: flex; flex-direction: column; background: #fff; border: 1px solid var(--border); border-radius: var(--radius); box-shadow: var(--shadow-raised); overflow: hidden; color: var(--text); transition: transform .3s var(--ease), box-shadow .3s var(--ease); }
.news-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-raised-hover); }
.news-card .cover { aspect-ratio: 16 / 9; overflow: hidden; }
.news-card .cover img { width: 100%; height: 100%; object-fit: cover; transition: transform .7s var(--ease); }
.news-card:hover .cover img { transform: scale(1.05); }
.news-card .body { padding: 20px 22px 22px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.news-card time { color: var(--leaf); font-weight: 700; font-size: .82em; }
.news-card h3 { font-size: 1.12em; }
.news-card p { color: var(--text-2); font-size: .95em; margin: 0; flex: 1; }
.article { max-width: 780px; margin-inline: auto; }
.article-cover { border-radius: var(--radius-lg); overflow: hidden; aspect-ratio: 16 / 9; margin-bottom: 28px; box-shadow: var(--shadow-soft); }
.article-cover img { width: 100%; height: 100%; object-fit: cover; }
.article-meta { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; color: var(--muted); font-size: .9em; margin-bottom: 16px; }
.share { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; margin-top: 28px; padding-top: 20px; border-top: 1px solid var(--border); }
.share a, .share button { display: inline-flex; align-items: center; gap: 6px; padding: 8px 14px; border-radius: 999px; border: 1px solid var(--border); background: #fff; color: var(--text-2); font-size: .88em; font-weight: 600; }
.share a:hover { color: var(--green); border-color: var(--green); }

/* ---------- page hero (inner pages) ---------- */
.page-hero { position: relative; overflow: hidden; padding-block: 48px 40px; background: radial-gradient(900px 400px at 90% -20%, #EAF2DF 0%, transparent 60%), var(--bg); }
@media (min-width: 900px) { .page-hero { padding-block: 72px 56px; } }
.page-hero h1 { font-size: clamp(2rem, 5vw, 3.2rem); color: var(--green-deep); margin-bottom: 12px; }
.page-hero .lead { max-width: 680px; margin: 0; }
.breadcrumb { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; font-size: .85em; color: var(--muted); margin-bottom: 16px; list-style: none; padding: 0; }
.breadcrumb li + li::before { content: "/"; margin-inline-end: 6px; color: var(--border); }
.breadcrumb a { color: var(--text-2); }

/* ---------- about ---------- */
.about-grid { display: grid; gap: 24px; }
@media (min-width: 900px) { .about-grid { grid-template-columns: repeat(2, 1fr); } }
.about-block h2 { display: flex; align-items: center; gap: 10px; font-size: 1.4em; margin-bottom: 12px; }
.about-block h2 .ico { color: var(--leaf); }
.values { display: flex; flex-wrap: wrap; gap: 10px; list-style: none; padding: 0; margin: 0; }
.team-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; }
@media (min-width: 800px) { .team-grid { grid-template-columns: repeat(4, 1fr); gap: 20px; } }
.member { text-align: center; padding: 22px 16px; }
.member .avatar { width: 96px; height: 96px; border-radius: 50%; margin: 0 auto 14px; object-fit: cover; background: var(--surface-green); box-shadow: var(--shadow-inset); display: grid; place-items: center; color: var(--leaf); }
.member .avatar .ico { width: 40px; height: 40px; }
.member h3 { font-size: 1.05em; } .member p { color: var(--muted); font-size: .88em; margin: 2px 0 0; }

/* ---------- steps ---------- */
.steps { display: grid; gap: 16px; counter-reset: step; }
@media (min-width: 800px) { .steps { grid-template-columns: repeat(3, 1fr); } }
.step { position: relative; padding-top: 32px; }
.step::before { counter-increment: step; content: counter(step); position: absolute; top: -18px; inset-inline-start: 24px; width: 44px; height: 44px; border-radius: 14px; background: var(--leaf); color: #fff; font-weight: 800; display: grid; place-items: center; font-family: var(--font-en); box-shadow: 0 6px 14px rgba(99, 184, 46, .35); }
.step h3 { font-size: 1.1em; margin-bottom: 6px; } .step p { color: var(--text-2); margin: 0; font-size: .95em; }

/* ---------- forms ---------- */
.form-grid { display: grid; gap: 16px; }
@media (min-width: 640px) { .form-grid { grid-template-columns: repeat(2, 1fr); } .form-grid .full { grid-column: 1 / -1; } }
.field label { display: block; font-weight: 700; font-size: .92em; margin-bottom: 6px; }
.field label small { color: var(--muted); font-weight: 500; }
.input, .textarea, .select { width: 100%; padding: 13px 16px; border-radius: 14px; border: 1px solid var(--border); background: var(--surface); box-shadow: var(--shadow-inset); font: inherit; color: var(--text); transition: border-color .2s, box-shadow .2s; }
.input:focus, .textarea:focus, .select:focus { outline: none; border-color: var(--leaf); box-shadow: var(--shadow-inset), 0 0 0 4px rgba(139, 211, 41, .18); }
.textarea { min-height: 140px; resize: vertical; }
.select { appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23526457' stroke-width='2'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-size: 18px; background-position: right 14px center; padding-inline-end: 40px; }
html[dir="rtl"] .select { background-position: left 14px center; }
.form-foot { display: flex; flex-wrap: wrap; gap: 14px; align-items: center; justify-content: space-between; margin-top: 8px; }
.form-foot small { color: var(--muted); }
.alert { padding: 14px 18px; border-radius: 14px; margin-bottom: 18px; font-weight: 600; display: flex; gap: 10px; align-items: flex-start; }
.alert .ico { flex: none; margin-top: 2px; }
.alert-success { background: #E4F4D8; color: #2E7A14; }
.alert-error { background: #FDE8E8; color: #B3261E; }
.hp { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); opacity: 0; pointer-events: none; }

/* ---------- contact ---------- */
.contact-grid { display: grid; gap: 28px; }
.contact-grid > *, .two-col > *, .why-grid > *, .ba-grid > *, .grow-grid > *, .hero-grid > *, .detail-grid > * { min-width: 0; }
.support-card .btn { white-space: normal; text-align: center; }
@media (min-width: 900px) { .contact-grid { grid-template-columns: 1fr 1.4fr; gap: 40px; align-items: start; } }
.contact-list { display: grid; gap: 12px; margin-bottom: 24px; }
.contact-list > a, .contact-list > div { display: flex; align-items: center; gap: 14px; padding: 14px 16px; border-radius: 16px; background: #fff; border: 1px solid var(--border); box-shadow: var(--shadow-raised); color: var(--text); min-width: 0; }
.contact-list > * > div { min-width: 0; overflow-wrap: anywhere; }
.contact-list .ico { width: 40px; height: 40px; padding: 9px; border-radius: 12px; background: var(--surface-green); color: var(--leaf); }
.contact-list small { display: block; color: var(--muted); font-size: .8em; }
.contact-list b { font-weight: 700; }
.social { display: flex; gap: 8px; flex-wrap: wrap; }
.social a { width: 42px; height: 42px; border-radius: 12px; display: grid; place-items: center; background: #fff; border: 1px solid var(--border); color: var(--text-2); transition: all .2s; }
.social a:hover { color: #fff; background: var(--green); border-color: var(--green); transform: translateY(-2px); }

/* ---------- FAQ ---------- */
.faq { display: grid; gap: 10px; max-width: 820px; margin-inline: auto; }
.faq details { background: #fff; border: 1px solid var(--border); border-radius: 18px; box-shadow: var(--shadow-raised); overflow: hidden; }
.faq summary { list-style: none; cursor: pointer; padding: 18px 22px; font-weight: 700; display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary .ico { flex: none; transition: transform .3s; color: var(--leaf); }
.faq details[open] summary .ico { transform: rotate(45deg); }
.faq .answer { padding: 0 22px 18px; color: var(--text-2); }

/* ---------- footer ---------- */
.site-footer { background: var(--surface-green); border-top: 1px solid var(--border); padding: 48px 0 24px; margin-top: 24px; }
.footer-grid { display: grid; gap: 28px; }
@media (min-width: 640px) { .footer-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1000px) { .footer-grid { grid-template-columns: 1.6fr repeat(4, 1fr); gap: 32px; } }
.footer-brand .brand { margin-bottom: 14px; }
.footer-mission { color: var(--text-2); max-width: 320px; }
.footer-col { display: flex; flex-direction: column; gap: 8px; }
.footer-col h3 { font-size: 1em; margin-bottom: 6px; color: var(--green-deep); }
.footer-col a, .footer-col span { color: var(--text-2); font-size: .95em; display: inline-flex; align-items: center; gap: 8px; }
.footer-col a:hover { color: var(--green); }
.footer-col .ico { width: 1.1em; height: 1.1em; color: var(--leaf); }
.footer-bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px; margin-top: 36px; padding-top: 20px; border-top: 1px solid var(--border); color: var(--muted); font-size: .85em; }
.footer-admin { color: var(--muted); }
.back-top { position: fixed; bottom: 22px; inset-inline-end: 22px; width: 46px; height: 46px; border-radius: 50%; border: 0; background: var(--leaf); color: #fff; box-shadow: 0 8px 20px rgba(99, 184, 46, .4); display: grid; place-items: center; opacity: 0; pointer-events: none; transform: translateY(10px); transition: all .3s var(--ease); z-index: 90; }
.back-top.is-visible { opacity: 1; pointer-events: auto; transform: none; }
.back-top .ico { width: 20px; height: 20px; }

/* ---------- 404 ---------- */
.page-404 { text-align: center; padding-block: 80px; }
.page-404 h1 { font-size: clamp(2rem, 6vw, 3.5rem); margin-bottom: 12px; }

/* ---------- misc ---------- */
.placeholder-note { text-align: center; color: var(--muted); font-size: .82em; margin-top: 20px; }
.two-col { display: grid; gap: 24px; }
@media (min-width: 900px) { .two-col { grid-template-columns: 1fr 1fr; gap: 40px; } }
.impact-types { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; }
@media (min-width: 800px) { .impact-types { grid-template-columns: repeat(4, 1fr); } }
.impact-type { padding: 18px; border-radius: 18px; background: #fff; border: 1px solid var(--border); display: flex; align-items: center; gap: 12px; }
.impact-type .ico { width: 40px; height: 40px; padding: 9px; border-radius: 12px; background: var(--surface-green); color: var(--leaf); }
.impact-type strong { display: block; font-family: var(--font-en); font-size: 1.4em; line-height: 1; color: var(--green-deep); }
.impact-type span { font-size: .85em; color: var(--text-2); }

/* numbers always read left-to-right (e.g. "1,200+") */
.stat-num, .hero-float strong, .cred-item strong, .numbers strong, .impact-type strong, .kpi strong { direction: ltr; unicode-bidi: isolate; }

/* =========================================================
   v2 refinements: header layout, soft neumorphism, justified text,
   mobile footer & type sizes
   ========================================================= */

/* header: brand | links | actions — links can never overlap the brand */
.nav { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 28px; }
.nav-links { justify-content: center; gap: 0; padding-inline: 12px; }
.nav-links a { padding: 8px 9px; font-size: .9em; }
.brand { flex: none; grid-column: 1; }
.nav-links { grid-column: 2; }
.nav-actions { grid-column: 3; justify-self: end; }
html[lang="en"] .brand-main { font-size: .98rem; }
html[lang="en"] .brand-sub { font-size: .72rem; }
.nav-actions { flex: none; }
@media (min-width: 1060px) and (max-width: 1199px) { .nav { gap: 18px; } .nav-links a { padding-inline: 6px; font-size: .84em; } .nav-links { padding-inline: 4px; } }
@media (min-width: 1060px) and (max-width: 1399px) { .nav-cta { display: none !important; } }
@media (min-width: 1200px) and (max-width: 1399px) { .nav-links a { padding-inline: 8px; font-size: .88em; } }
@media (min-width: 1400px) { .nav-cta { display: inline-flex !important; } }
/* phones / tablets: clear gap between the language switch and the menu button */
@media (max-width: 1059px) {
  .nav-actions { gap: 14px; margin-inline-end: 0; }
  .burger { width: 42px; height: 42px; }
}

/* --- sticky header + mobile menu robustness ---
   Only <html> carries overflow-x (it propagates to the viewport); putting it on <body> too
   turns body into a scroll container and breaks position: sticky on some mobile browsers. */
html { overflow-x: hidden; }
body { overflow-x: visible; }
/* The blur lives on a pseudo-element so the header itself no longer becomes the containing
   block for fixed elements; the mobile menu can then be fixed to the viewport. */
.site-header { background: transparent; backdrop-filter: none; -webkit-backdrop-filter: none; }
.site-header::before { content: ""; position: absolute; inset: 0; z-index: -1; background: rgba(247, 248, 242, .8); backdrop-filter: saturate(150%) blur(12px); -webkit-backdrop-filter: saturate(150%) blur(12px); transition: background .3s; }
.site-header.is-scrolled::before { background: rgba(247, 248, 242, .95); }
.mobile-menu { position: fixed; top: var(--header-h); left: 0; right: 0; bottom: 0; height: auto; }
@media (max-width: 479px) {
  .brand-logo { width: 36px; height: 40px; }
  .brand-main { font-size: .98rem; }
  html[lang="en"] .brand-main { font-size: .9rem; }
  .brand-sub { font-size: .58rem; }
  html[lang="en"] .brand-sub { font-size: .66rem; }
  .lang-switch { padding: 7px 9px; font-size: .72rem; gap: 4px; }
  .nav { gap: 8px; }
  .nav-actions { gap: 10px; margin-inline-end: 0; }
}

/* soft neumorphism — same colours, tactile surfaces */
.btn { box-shadow: 5px 5px 12px rgba(39, 65, 45, .10), -4px -4px 10px rgba(255, 255, 255, .85); }
.btn:active { transform: translateY(0) scale(.99); box-shadow: var(--shadow-inset); }
.btn-primary { box-shadow: 6px 6px 14px rgba(39, 65, 45, .16), -4px -4px 12px rgba(255, 255, 255, .75), inset 0 1px 0 rgba(255, 255, 255, .25); }
.btn-primary:hover { box-shadow: 8px 8px 18px rgba(39, 65, 45, .2), -5px -5px 14px rgba(255, 255, 255, .8); }
.btn-secondary { background: var(--bg); border-color: transparent; color: var(--green); box-shadow: 6px 6px 14px rgba(39, 65, 45, .10), -5px -5px 12px rgba(255, 255, 255, .95), inset 0 0 0 1.5px rgba(23, 107, 58, .35); }
.btn-secondary:hover { background: var(--white); box-shadow: 8px 8px 18px rgba(39, 65, 45, .13), -6px -6px 14px rgba(255, 255, 255, 1), inset 0 0 0 1.5px var(--green); }
.btn-ghost, .btn-light, .btn-outline-light { box-shadow: none; }
.btn-light { box-shadow: 6px 6px 16px rgba(0, 0, 0, .18); }
.card { box-shadow: 9px 9px 22px rgba(39, 65, 45, .09), -7px -7px 20px rgba(255, 255, 255, .9), inset 0 1px 0 rgba(255, 255, 255, .8); }
.card-hover:hover { box-shadow: 13px 13px 30px rgba(39, 65, 45, .13), -9px -9px 24px rgba(255, 255, 255, .95); }
.badge { box-shadow: 3px 3px 7px rgba(39, 65, 45, .10), -2px -2px 6px rgba(255, 255, 255, .9); }
.chip { box-shadow: 4px 4px 9px rgba(39, 65, 45, .09), -3px -3px 8px rgba(255, 255, 255, .95); background: var(--bg); }
.eyebrow { padding: 6px 14px; border-radius: 999px; background: var(--surface); box-shadow: var(--shadow-inset); }
.hero-badge { box-shadow: var(--shadow-raised); border-color: transparent; }
.filters a, .filters button { box-shadow: 4px 4px 10px rgba(39, 65, 45, .09), -3px -3px 8px rgba(255, 255, 255, .95); border-color: transparent; background: var(--bg); }
.filters .is-active { box-shadow: var(--shadow-inset), 0 0 0 1.5px var(--green) inset; }
.stat .ico, .cred-item .ico { width: 44px; height: 44px; padding: 9px; border-radius: 14px; background: var(--surface-green); box-shadow: var(--shadow-inset); }
.project-item, .project-card, .news-card, .faq details, .contact-list > a, .contact-list > div, .cred-item, .impact-type, .member { box-shadow: 8px 8px 20px rgba(39, 65, 45, .09), -6px -6px 18px rgba(255, 255, 255, .9); }
.tl-node { box-shadow: 0 0 0 6px var(--bg), 4px 4px 10px rgba(39, 65, 45, .12); }
.burger { box-shadow: 4px 4px 10px rgba(39, 65, 45, .10), -3px -3px 8px rgba(255, 255, 255, .95); border-color: transparent; }
.back-top { box-shadow: 6px 6px 16px rgba(39, 65, 45, .22), -3px -3px 8px rgba(255, 255, 255, .5); }
.social a { box-shadow: 4px 4px 10px rgba(39, 65, 45, .08), -3px -3px 8px rgba(255, 255, 255, .95); border-color: transparent; }
.field label, .form-foot small { color: var(--text-2); }

/* justified paragraphs (even line endings) for running text, in both languages */
/* only for wide running text — narrow card blurbs stay ragged to avoid word gaps */
.prose p, .prose li, .lead, .hero-text, .why-grid p, .about-block p, .answer, .answer p, .note span, .article .lead,
.volunteer-intro p, .contact-grid .card-soft p { text-align: justify; text-align-last: start; hyphens: auto; -webkit-hyphens: auto; }
.center .lead, .section-head .section-sub, .cta-band p, .partners-empty { text-align: center; text-align-last: center; }
@media (max-width: 479px) { .lead, .hero-text, .why-grid p, .about-block p { text-align: start; } }

/* footer on small screens */
@media (max-width: 639px) {
  .site-footer { padding-top: 36px; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 22px 16px; }
  .footer-brand, .footer-contact { grid-column: 1 / -1; }
  .footer-brand .brand { margin-bottom: 10px; }
  .footer-col h3 { margin-bottom: 2px; }
  .footer-contact a, .footer-contact span { font-size: .92em; }
  .footer-bottom { flex-direction: column; align-items: center; text-align: center; gap: 8px; }
}
.footer-legal { display: inline-flex; flex-wrap: wrap; gap: 14px; justify-content: center; }
.footer-legal a { color: var(--muted); }
.footer-legal a:hover { color: var(--green); }

/* mobile type scale */
@media (max-width: 639px) {
  html[lang="ar"] body { font-size: 16px; }
  body { font-size: 15.5px; }
  .hero-title { font-size: clamp(2.35rem, 10.5vw, 2.9rem); }
  html[lang="en"] .hero-title { font-size: clamp(1.9rem, 8.5vw, 2.3rem); }
  .hero-title-alt { font-size: clamp(1.1rem, 4.5vw, 1.4rem); }
  .hero-tagline { font-size: 1.15rem; margin-top: 16px; }
  .hero-text { font-size: 1em; }
  .section-title { font-size: clamp(1.55rem, 6.5vw, 1.9rem); }
  .section-sub, .lead { font-size: 1em; }
  .page-hero h1 { font-size: clamp(1.8rem, 8vw, 2.3rem); }
  .stat-num { font-size: 1.8rem; }
  .cta-band h2 { font-size: 1.7rem; }
  .btn-lg { padding: 14px 22px; font-size: 1em; }
  .card { padding: 22px; }
}

/* ---------- reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
  .leaf { animation: none; }
  [data-reveal] { opacity: 1; transform: none; }
  .grow-svg .stroke { stroke-dashoffset: 0 !important; }
  .grow-svg .leaf-fill { opacity: 1 !important; transform: none !important; }
}

/* ---------- print ---------- */
@media print { .site-header, .site-footer, .back-top, .leaf, .branch, .hero-scroll { display: none !important; } }

/* =========================================================
   v3 — 3D story, display typography, scroll-driven motion
   ========================================================= */
:root { --font-display: 'Readex Pro', var(--font); }
.section-title, .page-hero h1, .cta-band h2, .story-title, .chapter-title, .why-statement, .stat-num, .cred-item strong { font-family: var(--font-display); }
.section-title, .page-hero h1, .story-title, .chapter-title { font-weight: 700; letter-spacing: -0.015em; }
html[lang="ar"] .section-title, html[lang="ar"] .page-hero h1, html[lang="ar"] .story-title, html[lang="ar"] .chapter-title { letter-spacing: 0; line-height: 1.3; }

/* smooth scrolling (Lenis) */
html.lenis, html.lenis body { height: auto; }
html.lenis { scroll-behavior: auto !important; }
.lenis.lenis-smooth [data-lenis-prevent] { overscroll-behavior: contain; }
.lenis.lenis-stopped { overflow: hidden; }

/* scroll progress */
.scroll-progress { position: fixed; top: 0; left: 0; right: 0; height: 3px; z-index: 250; pointer-events: none; background: linear-gradient(90deg, var(--leaf), var(--lime-bright)); transform-origin: 0 50%; transform: scaleX(0); }
html[dir="rtl"] .scroll-progress { transform-origin: 100% 50%; background: linear-gradient(270deg, var(--leaf), var(--lime-bright)); }

/* word-by-word reveal (words only; Arabic letters stay joined) */
.w { display: inline-block; overflow: hidden; vertical-align: top; padding-block: .14em; margin-block: -.14em; }
.wi { display: inline-block; }

/* ---------- the story ---------- */
.story { position: relative; margin-top: calc(-1 * var(--header-h)); isolation: isolate; }
.story-stage { position: sticky; top: 0; height: 100vh; height: 100svh; margin-bottom: -100vh; margin-bottom: -100svh; overflow: hidden; z-index: 0; background: #efe2c4; }
.story-poster, .story-canvas { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.story-poster { object-fit: cover; transition: opacity 1.4s var(--ease); }
.story-canvas { opacity: 0; transition: opacity 1.6s var(--ease); pointer-events: none; }
.story.is-3d .story-canvas { opacity: 1; }
.story.is-3d .story-poster { opacity: 0; }
.story-scrim { position: absolute; inset: 0; pointer-events: none; background: linear-gradient(90deg, rgba(247, 248, 242, .94) 0%, rgba(247, 248, 242, .62) 34%, rgba(247, 248, 242, 0) 60%); }
html[dir="rtl"] .story-scrim { background: linear-gradient(270deg, rgba(247, 248, 242, .94) 0%, rgba(247, 248, 242, .62) 34%, rgba(247, 248, 242, 0) 60%); }
.story-scrim::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(247, 248, 242, .75) 0, rgba(247, 248, 242, 0) 140px), linear-gradient(0deg, rgba(247, 248, 242, .9) 0, rgba(247, 248, 242, 0) 90px); }

.story-dots { position: absolute; top: 50%; inset-inline-end: 26px; transform: translateY(-50%); display: flex; flex-direction: column; gap: 12px; z-index: 3; }
.story-dots button { width: 10px; height: 10px; padding: 0; border: 0; border-radius: 6px; background: rgba(23, 107, 58, .28); box-shadow: 2px 2px 5px rgba(39, 65, 45, .15), -2px -2px 5px rgba(255, 255, 255, .7); transition: height .35s var(--ease), background .35s; cursor: pointer; }
.story-dots button.on { height: 30px; background: var(--leaf); }

.chapter { position: relative; z-index: 1; min-height: 100vh; min-height: 100svh; display: flex; align-items: center; pointer-events: none; }
.chapter:not(.chapter-0) { min-height: 118vh; min-height: 118svh; }
.chapter-0 { padding-top: var(--header-h); }
.chapter > .container { width: 100%; }
.chapter-inner, .story-hint { pointer-events: auto; }
.chapter-inner { max-width: 560px; will-change: transform, opacity; }

.story-title { font-size: clamp(2.8rem, 7.4vw, 5.6rem); line-height: 1.08; color: var(--green-deep); margin: 0; }
html[lang="en"] .story-title { font-size: clamp(2.5rem, 6vw, 4.6rem); letter-spacing: -0.035em; }
.story-title-main, .story-title-alt { display: block; }
.story-title-alt { font-size: .4em; font-weight: 600; color: var(--green); margin-top: .45em; letter-spacing: 0; font-family: var(--font-en); }
html[lang="en"] .story-title-alt { font-family: var(--font-ar); }
.chapter-hero .hero-badge { margin-bottom: 18px; }
.chapter-hero .hero-tagline { margin: 18px 0 10px; }
.chapter-hero .hero-text { margin-bottom: 26px; }

.chapter-card { position: relative; background: rgba(250, 251, 246, .8); -webkit-backdrop-filter: blur(16px) saturate(140%); backdrop-filter: blur(16px) saturate(140%); border: 1px solid rgba(255, 255, 255, .75); border-radius: 28px; padding: 30px 32px 32px; box-shadow: 14px 14px 34px rgba(39, 65, 45, .13), -8px -8px 24px rgba(255, 255, 255, .55), inset 0 1px 0 rgba(255, 255, 255, .9); }
.chapter-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.chapter-num { font-family: var(--font-display); font-size: 3.6rem; font-weight: 700; line-height: .9; color: transparent; -webkit-text-stroke: 1.6px rgba(23, 107, 58, .38); }
.chapter-card .eyebrow { margin: 0; }
.chapter-title { font-size: clamp(1.8rem, 3.4vw, 2.7rem); color: var(--green-deep); margin: 14px 0 12px; }
.chapter-card p { color: var(--text-2); font-size: 1.07em; margin: 0; text-align: justify; text-align-last: start; }
.chapter-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin: 22px 0 22px; }
.chapter-stats > div { background: var(--surface); border-radius: 16px; padding: 12px 10px; text-align: center; box-shadow: var(--shadow-inset); }
.chapter-stats strong { display: block; font-family: var(--font-display); font-size: 1.55rem; color: var(--green-deep); direction: ltr; unicode-bidi: isolate; line-height: 1.2; }
.chapter-stats span { font-size: .78em; color: var(--text-2); font-weight: 600; }
.chapter-card .hero-actions { animation: none; }

.story-hint { position: absolute; left: 50%; bottom: 30px; transform: translateX(-50%); display: flex; flex-direction: column; align-items: center; gap: 8px; color: var(--text-2); font-size: .82em; font-weight: 600; white-space: nowrap; }
.story-hint .mouse { width: 24px; height: 38px; border: 2px solid currentColor; border-radius: 14px; position: relative; opacity: .75; }
.story-hint .mouse::after { content: ""; position: absolute; left: 50%; top: 7px; width: 4px; height: 8px; margin-left: -2px; border-radius: 2px; background: var(--leaf); animation: kig-wheel 1.8s ease-in-out infinite; }
@keyframes kig-wheel { 0% { transform: translateY(0); opacity: 1; } 70% { transform: translateY(12px); opacity: 0; } 100% { opacity: 0; } }

/* stats card overlaps the end of the story */
.stats { margin-top: -60px; }

@media (max-width: 899px) {
  .story-scrim, html[dir="rtl"] .story-scrim { background: linear-gradient(0deg, rgba(247, 248, 242, .96) 0%, rgba(247, 248, 242, .8) 36%, rgba(247, 248, 242, 0) 62%); }
  .story-dots { display: none; }
  .chapter { align-items: flex-end; padding-bottom: 28px; }
  /* chapters are 118% of the screen: lift cards by the extra 9% so they sit fully on screen mid-chapter */
  .chapter:not(.chapter-0) { padding-bottom: calc(9vh + 24px); padding-bottom: calc(9svh + 24px); }
  .chapter-0 { padding-bottom: 92px; }
  .chapter-inner { max-width: none; }
  .chapter-card { padding: 22px 20px 24px; border-radius: 22px; }
  .chapter-num { font-size: 2.6rem; }
  .chapter-title { font-size: clamp(1.55rem, 7vw, 1.9rem); margin: 10px 0 8px; }
  .chapter-card p { font-size: 1em; text-align: start; }
  .story-title { font-size: clamp(2.5rem, 11.5vw, 3.3rem); }
  html[lang="en"] .story-title { font-size: clamp(2.1rem, 9.5vw, 2.7rem); }
  .chapter-hero .hero-text { text-align: start; }
  .chapter-stats strong { font-size: 1.25rem; }
  .story-hint { bottom: 22px; font-size: .76em; }
  .stats { margin-top: -30px; }
}

/* journey stem is drawn by scrolling (--draw is animated by GSAP; defaults to fully drawn) */
.timeline::before { transform-origin: 50% 0; transform: scaleY(var(--draw, 1)); }
@media (min-width: 900px) {
  .timeline::before { transform-origin: 0 50%; transform: scaleX(var(--draw, 1)); }
  html[dir="rtl"] .timeline::before { transform-origin: 100% 50%; }
}

/* card tilt needs a quick response */
@media (pointer: fine) { .card-hover, .project-card, .news-card { transition: transform .18s ease-out, box-shadow .3s var(--ease); transform-style: preserve-3d; } }

@media (prefers-reduced-motion: reduce) {
  .story-hint .mouse::after { animation: none; }
  .story-canvas { display: none; }
}
@media print { .story-stage, .story-dots, .story-hint, .scroll-progress { display: none !important; } .chapter { min-height: 0 !important; } }

/* the story has its own navigation; keep back-to-top out of the way there */
body.in-story .back-top { opacity: 0; pointer-events: none; transform: translateY(10px); }

/* =========================================================
   v4.1 — calmer depth: soft drop shadows, no white halos
   (the old white "highlight" shadows read as a glow, especially over the 3D scene)
   ========================================================= */
:root {
  --shadow-raised: 0 1px 2px rgba(39, 65, 45, .05), 0 8px 24px rgba(39, 65, 45, .08);
  --shadow-raised-hover: 0 2px 4px rgba(39, 65, 45, .06), 0 16px 36px rgba(39, 65, 45, .12);
  --edge-light: inset 0 1px 0 rgba(255, 255, 255, .7);
}
.card, .stats-card, .project-item, .project-card, .news-card, .faq details, .contact-list > a, .contact-list > div,
.cred-item, .impact-type, .member, .numbers div, .project-map, .partner-logo { box-shadow: var(--shadow-raised), var(--edge-light); }
.card-hover:hover, .project-item:hover, .project-item.is-hl, .project-card:hover, .news-card:hover { box-shadow: var(--shadow-raised-hover), var(--edge-light); }

.btn { box-shadow: 0 1px 2px rgba(39, 65, 45, .06), 0 4px 12px rgba(39, 65, 45, .07); }
.btn:active { box-shadow: inset 0 2px 5px rgba(39, 65, 45, .14); }
.btn-primary { box-shadow: 0 2px 4px rgba(46, 122, 20, .16), 0 8px 18px rgba(99, 184, 46, .22), inset 0 1px 0 rgba(255, 255, 255, .2); }
.btn-primary:hover { box-shadow: 0 3px 6px rgba(46, 122, 20, .18), 0 12px 24px rgba(99, 184, 46, .28), inset 0 1px 0 rgba(255, 255, 255, .2); }
.btn-secondary { background: var(--white); box-shadow: 0 1px 2px rgba(39, 65, 45, .05), 0 5px 14px rgba(39, 65, 45, .07), inset 0 0 0 1.5px rgba(23, 107, 58, .4); }
.btn-secondary:hover { background: var(--white); box-shadow: 0 2px 4px rgba(39, 65, 45, .06), 0 10px 22px rgba(39, 65, 45, .1), inset 0 0 0 1.5px var(--green); }
.btn-ghost, .btn-outline-light { box-shadow: none; }
.btn-light { box-shadow: 0 6px 18px rgba(0, 0, 0, .16); }

.badge, .chip, .filters a, .filters button, .social a, .burger, .story-dots button, .why-points .ico {
  box-shadow: 0 1px 2px rgba(39, 65, 45, .06), 0 3px 8px rgba(39, 65, 45, .06);
}
.filters .is-active { box-shadow: 0 2px 6px rgba(23, 107, 58, .2); }
.hero-badge { box-shadow: 0 1px 2px rgba(39, 65, 45, .05), 0 6px 16px rgba(39, 65, 45, .08); border-color: var(--border); }
.tl-node { box-shadow: 0 0 0 6px var(--bg), 0 3px 8px rgba(39, 65, 45, .12); }
.back-top { box-shadow: 0 6px 16px rgba(46, 122, 20, .3); }

/* over the 3D scene: glass cards with a plain shadow, no bright rim */
.chapter-card { border-color: rgba(255, 255, 255, .55); box-shadow: 0 2px 6px rgba(13, 59, 36, .06), 0 18px 40px rgba(13, 59, 36, .13), inset 0 1px 0 rgba(255, 255, 255, .8); }
.chapter-stats > div { box-shadow: inset 0 1px 3px rgba(39, 65, 45, .08); }

/* v4.2 — the 3D backdrop must stop exactly where the story ends.
   (A negative margin on a sticky element lets it overhang its container by that margin,
    so the chapters are pulled up over the backdrop instead.) */
.story-stage { margin-bottom: 0; }
.chapter-0 { margin-top: -100vh; margin-top: -100svh; }
@media (max-width: 899px) {
  /* lighter fade on phones: enough behind the text, no empty cream band */
  .story-scrim, html[dir="rtl"] .story-scrim { background: linear-gradient(0deg, rgba(247, 248, 242, .88) 0%, rgba(247, 248, 242, .55) 26%, rgba(247, 248, 242, 0) 48%); }
}

/* opt-in button shown when the 3D view is skipped by a device preference */
.story-enable3d { margin-top: 18px; }

/* Photo fallback (3D off): soften the picture so the story text stays readable over it */
.story:not(.is-3d) .story-poster { opacity: .42; }
.story:not(.is-3d) .story-stage { background: #eef0e6; }

/* illustrated (SVG) version of the story — used wherever WebGL is unavailable or switched off */
.story-svg { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.story.is-2d .story-poster { opacity: 0; }
.story.is-2d .story-canvas { display: none; }
.story-leaves { pointer-events: none; }

/* v4.3 — hero buttons on phones: full width, equal height, clear hierarchy */
@media (max-width: 560px) {
  .chapter-hero .hero-actions,
  .chapter-card .hero-actions { display: grid; grid-template-columns: 1fr; gap: 10px; width: 100%; }
  .chapter-hero .hero-actions .btn,
  .chapter-card .hero-actions .btn { width: 100%; min-height: 52px; padding: 14px 18px; font-size: 1.02em; border-radius: 16px; }
  .story-enable3d { width: 100%; justify-content: center; }
  .story-hint { bottom: 14px; }
}
@media (min-width: 561px) and (max-width: 899px) {
  .chapter-hero .hero-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
  .chapter-hero .hero-actions .btn { width: 100%; min-height: 52px; }
}
