/* Lotus Buds — Soft & Hopeful Aesthetic
   Brand palette derived from the lotus illustration:
   - Petal pink, soft peach, cream, sage, ink */

:root {
  --cream: #FBF6EE;
  --cream-2: #F4ECDF;
  --petal: #F4B7C2;
  --petal-deep: #E58AA0;
  --peach: #F6C9A8;
  --sage: #B7C9A8;
  --sage-deep: #7E9A6A;
  --ink: #2C2A2A;
  --ink-soft: #5C544F;
  --gold: #D9A86B;
  --rose-bg: #FBE9EC;
  --sage-bg: #EAF0E2;

  --serif: "Fraunces", "Cormorant Garamond", Georgia, serif;
  --sans: "Plus Jakarta Sans", "Inter", system-ui, -apple-system, sans-serif;
  --arabic: "Noto Naskh Arabic", "Amiri", "Cairo", serif;
  --arabic-display: "Reem Kufi", "Amiri", serif;

  --radius: 22px;
  --radius-lg: 32px;
  --shadow-soft: 0 6px 24px -8px rgba(44, 42, 42, 0.18);
  --shadow-card: 0 24px 48px -24px rgba(44, 42, 42, 0.28);
  --max-w: 1200px;
}

* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }

html, body {
  margin: 0;
  padding: 0;
  font-family: var(--sans);
  color: var(--ink);
  background: var(--cream);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

[lang="ar"] { font-family: var(--arabic); }
[lang="ar"] .display,
[lang="ar"] h1,
[lang="ar"] h2,
[lang="ar"] h3 {
  font-family: var(--arabic-display);
  letter-spacing: 0;
}

/* ===== App shell ===== */
.app {
  width: 100%;
  min-height: 100vh;
  overflow-x: hidden;
  background: var(--cream);
  position: relative;
  scroll-behavior: smooth;
}

/* ===== Header ===== */
.app-header {
  position: sticky;
  top: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 14px 20px 12px;
  background: color-mix(in oklab, var(--cream) 88%, transparent);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  transition: background 0.3s ease, border-color 0.3s;
  border-bottom: 1px solid transparent;
}
.app-header.scrolled {
  border-bottom-color: color-mix(in oklab, var(--ink) 8%, transparent);
}
.header-inner {
  width: 100%;
  max-width: var(--max-w);
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--serif);
  font-weight: 500;
  font-size: 17px;
  letter-spacing: -0.01em;
  border: 0;
  background: transparent;
  padding: 0;
  cursor: pointer;
  color: var(--ink);
}
.brand-mark {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--rose-bg);
  display: grid;
  place-items: center;
  overflow: hidden;
  flex-shrink: 0;
}
.brand-mark img { width: 100%; height: 100%; object-fit: contain; }
.brand-text { white-space: nowrap; }

/* Lang pill */
.lang-pill {
  display: inline-flex;
  background: color-mix(in oklab, var(--ink) 6%, transparent);
  border-radius: 999px;
  padding: 3px;
  position: relative;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.04em;
  flex-shrink: 0;
}
.lang-pill button {
  border: 0;
  background: transparent;
  padding: 5px 10px;
  border-radius: 999px;
  cursor: pointer;
  color: var(--ink-soft);
  z-index: 1;
  position: relative;
  transition: color 0.3s;
  font: inherit;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.04em;
}
.lang-pill button.active { color: var(--ink); }
.lang-pill .pill-bg {
  position: absolute;
  top: 3px; bottom: 3px;
  background: var(--cream);
  border-radius: 999px;
  box-shadow: var(--shadow-soft);
  transition: all 0.4s cubic-bezier(0.6, 0, 0.2, 1);
}

/* Hamburger / nav links */
.menu-btn {
  width: 36px; height: 36px;
  border-radius: 50%;
  background: var(--ink);
  color: var(--cream);
  display: grid;
  place-items: center;
  border: 0;
  cursor: pointer;
  flex-shrink: 0;
}
.menu-btn svg { width: 16px; height: 16px; }

/* Desktop nav links (hidden on mobile) */
.desktop-nav {
  display: none;
  align-items: center;
  gap: 6px;
}
.desktop-nav a {
  font-size: 14px;
  font-weight: 500;
  color: var(--ink-soft);
  text-decoration: none;
  padding: 7px 14px;
  border-radius: 999px;
  transition: background 0.2s, color 0.2s;
  cursor: pointer;
}
.desktop-nav a:hover { background: color-mix(in oklab, var(--ink) 7%, transparent); color: var(--ink); }
.desktop-nav .btn-donate-nav {
  background: var(--ink);
  color: var(--cream);
  font-size: 13px;
  font-weight: 600;
  padding: 9px 18px;
}
.desktop-nav .btn-donate-nav:hover { background: #1c1b1b; }

@media (min-width: 768px) {
  .desktop-nav { display: flex; }
  .menu-btn { display: none; }
  .app-header { padding: 16px 28px; }
}

/* ===== Hero ===== */
.hero {
  position: relative;
  padding: 28px 20px 44px;
  overflow: hidden;
  max-width: 100%;
}
.hero > * { max-width: 100%; }

.hero-bg-image {
  min-height: 580px;
  padding-top: 64px;
  padding-bottom: 64px;
  display: flex;
  align-items: flex-end;
}
.hero-bg-photo {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  opacity: 0.36;
  filter: saturate(0.85);
  z-index: 0;
  transform: scale(1.04);
}
.hero-bg-image::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    180deg,
    color-mix(in oklab, var(--cream) 50%, transparent) 0%,
    color-mix(in oklab, var(--cream) 72%, transparent) 55%,
    var(--cream) 100%
  );
  z-index: 1;
}
.hero-content {
  position: relative;
  z-index: 2;
  width: 100%;
}

@media (min-width: 768px) {
  .hero-bg-image {
    min-height: 720px;
    padding-top: 100px;
    padding-bottom: 100px;
  }
  .hero-bg-photo { opacity: 0.28; }
  .hero { padding: 40px 48px 64px; }
  .hero-content { max-width: 620px; }
}
@media (min-width: 1100px) {
  .hero { padding: 56px 80px 80px; }
}

/* Splash overlay */
.splash {
  position: fixed;
  inset: 0;
  z-index: 200;
  overflow: hidden;
  background: var(--ink);
  pointer-events: auto;
  cursor: pointer;
}
.splash-img {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  opacity: 0;
  transform: scale(1.12);
  animation: splashIn 1.4s 0.1s cubic-bezier(0.2, 0.8, 0.2, 1) forwards,
             splashKen 12s 0.1s linear forwards;
}
.splash-img::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(28,26,26,0.45) 0%, rgba(28,26,26,0.25) 40%, rgba(28,26,26,0.85) 100%);
}
.splash-text {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  padding: 0 32px 100px;
  color: var(--cream);
  font-family: var(--serif);
  font-weight: 300;
  font-size: clamp(32px, 7vw, 56px);
  line-height: 1.08;
  letter-spacing: -0.02em;
  opacity: 0;
  transform: translateY(16px);
  animation: splashTextIn 1.2s 0.7s cubic-bezier(0.2, 0.8, 0.2, 1) forwards;
  text-wrap: balance;
}
.splash-text em { font-style: italic; color: var(--petal); }
.splash-text small {
  display: block;
  font-family: var(--sans);
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  margin-bottom: 16px;
  color: color-mix(in oklab, var(--cream) 70%, transparent);
  font-weight: 600;
}
.splash-enter {
  position: absolute;
  bottom: 32px; left: 50%; transform: translateX(-50%);
  background: rgba(255,255,255,0.95);
  color: var(--ink);
  border: 0;
  padding: 14px 28px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  cursor: pointer;
  opacity: 0;
  animation: splashTextIn 0.7s 1.4s forwards;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  white-space: nowrap;
}
[dir="rtl"] .splash-enter { transform: translateX(50%); }
@keyframes splashIn { to { opacity: 1; transform: scale(1.04); } }
@keyframes splashKen { from { transform: scale(1.04); } to { transform: scale(1.14) translate(-2%, -2%); } }
@keyframes splashTextIn { to { opacity: 1; transform: translateY(0); } }
.splash.dismiss { animation: splashOut 0.7s cubic-bezier(0.6, 0, 0.2, 1) forwards; pointer-events: none; }
@keyframes splashOut { to { opacity: 0; transform: translateY(-6%); visibility: hidden; } }

/* ===== Typography ===== */
.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--sage-deep);
  margin-bottom: 20px;
}
.hero-eyebrow::before {
  content: "";
  width: 22px; height: 1px;
  background: currentColor;
}
[dir="rtl"] .hero-eyebrow::before { display: none; }

.display {
  font-family: var(--serif);
  font-weight: 300;
  font-size: clamp(40px, 9vw, 72px);
  line-height: 1.04;
  letter-spacing: -0.025em;
  margin: 0;
  color: var(--ink);
  overflow-wrap: break-word;
  hyphens: auto;
}
.display em { font-style: italic; font-weight: 400; color: var(--petal-deep); }

.hero-sub {
  margin-top: 20px;
  font-size: 16px;
  line-height: 1.65;
  color: var(--ink-soft);
  max-width: 44ch;
}

.hero-ctas {
  display: flex;
  gap: 10px;
  margin-top: 28px;
  flex-wrap: wrap;
}

/* ===== Buttons ===== */
.btn {
  font: inherit;
  font-size: 14px;
  font-weight: 600;
  border: 0;
  border-radius: 999px;
  padding: 14px 24px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: transform 0.2s, background 0.2s;
  text-decoration: none;
  white-space: nowrap;
}
.btn:active { transform: scale(0.97); }
.btn-primary { background: var(--ink); color: var(--cream); }
.btn-primary:hover { background: #1c1b1b; }
.btn-secondary { background: transparent; color: var(--ink); border: 1.5px solid color-mix(in oklab, var(--ink) 20%, transparent); }
.btn-secondary:hover { border-color: color-mix(in oklab, var(--ink) 40%, transparent); }
.btn-petal { background: var(--petal-deep); color: white; }
.btn-arrow {
  width: 24px; height: 24px;
  border-radius: 50%;
  background: color-mix(in oklab, currentColor 14%, transparent);
  display: inline-grid;
  place-items: center;
  flex-shrink: 0;
}

/* ===== Hero visual ===== */
.hero-visual {
  margin-top: 32px;
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  aspect-ratio: 4/3;
  background: var(--rose-bg);
  box-shadow: var(--shadow-card);
}
.hero-visual img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s cubic-bezier(0.2, 0.8, 0.2, 1); transform: scale(1.05); }
.hero-visual.in-view img { transform: scale(1); }
.hero-blob { position: absolute; border-radius: 50%; filter: blur(50px); opacity: 0.65; pointer-events: none; }
.hero-blob.b1 { width: 260px; height: 260px; background: var(--petal); top: -80px; right: -80px; }
.hero-blob.b2 { width: 200px; height: 200px; background: var(--sage); bottom: 100px; left: -60px; }
[dir="rtl"] .hero-blob.b1 { right: auto; left: -80px; }
[dir="rtl"] .hero-blob.b2 { left: auto; right: -60px; }

/* Collage hero */
.hero-collage {
  margin-top: 32px;
  display: grid;
  grid-template-columns: 1.3fr 1fr;
  grid-template-rows: 220px 160px;
  gap: 10px;
}
.hero-collage > div { border-radius: var(--radius); overflow: hidden; background: var(--rose-bg); }
.hero-collage > div img { width: 100%; height: 100%; object-fit: cover; }
.hero-collage .c1 { grid-row: span 2; }

/* ===== Sections ===== */
section {
  padding: 60px 20px;
  position: relative;
}
section.tight { padding: 40px 20px; }
section.bleed { padding-left: 0; padding-right: 0; }

.section-inner {
  max-width: var(--max-w);
  margin: 0 auto;
}

@media (min-width: 768px) {
  section { padding: 80px 48px; }
  section.tight { padding: 52px 48px; }
}
@media (min-width: 1100px) {
  section { padding: 96px 80px; }
}

.section-eyebrow {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink-soft);
  margin-bottom: 14px;
  display: flex;
  align-items: center;
  gap: 10px;
}
.section-eyebrow .dot {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--petal-deep);
  flex-shrink: 0;
}
.section-title {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(28px, 5vw, 44px);
  line-height: 1.05;
  letter-spacing: -0.02em;
  margin: 0;
  text-wrap: balance;
  overflow-wrap: break-word;
}
.section-title em { font-style: italic; color: var(--petal-deep); }
.section-lede {
  margin-top: 18px;
  font-size: 15px;
  line-height: 1.7;
  color: var(--ink-soft);
  max-width: 52ch;
}

/* ===== Pillars ===== */
.pillars {
  display: grid;
  gap: 12px;
  margin-top: 32px;
}
@media (min-width: 640px) { .pillars { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1000px) { .pillars { grid-template-columns: repeat(4, 1fr); } }

.pillar {
  background: white;
  border-radius: var(--radius);
  padding: 24px;
  box-shadow: var(--shadow-soft);
  position: relative;
  overflow: hidden;
  transition: transform 0.4s, box-shadow 0.4s;
}
.pillar:hover { transform: translateY(-3px); box-shadow: var(--shadow-card); }
.pillar-num { font-family: var(--serif); font-style: italic; font-size: 14px; color: var(--petal-deep); margin-bottom: 12px; }
.pillar-title { font-family: var(--serif); font-weight: 400; font-size: 22px; letter-spacing: -0.01em; margin: 0 0 8px; }
.pillar-body { font-size: 14px; color: var(--ink-soft); line-height: 1.6; margin: 0; }
.pillar-icon { width: 44px; height: 44px; border-radius: 14px; display: grid; place-items: center; margin-bottom: 14px; font-size: 22px; }
.pillar:nth-child(1) .pillar-icon { background: var(--rose-bg); }
.pillar:nth-child(2) .pillar-icon { background: var(--sage-bg); }
.pillar:nth-child(3) .pillar-icon { background: #FAEFD9; }
.pillar:nth-child(4) .pillar-icon { background: #E8E1F2; }

/* ===== Numbers ===== */
.numbers-section {
  background: var(--ink);
  color: var(--cream);
  border-radius: var(--radius-lg);
  margin: 24px 20px;
  padding: 52px 32px;
  position: relative;
  overflow: hidden;
}
@media (min-width: 768px) {
  .numbers-section { margin: 32px 48px; padding: 64px 56px; }
}
@media (min-width: 1100px) {
  .numbers-section { margin: 32px 80px; }
}
.numbers-section .section-title { color: var(--cream); }
.numbers-section .section-lede { color: color-mix(in oklab, var(--cream) 72%, transparent); }
.numbers-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px 24px;
  margin-top: 36px;
}
@media (min-width: 768px) {
  .numbers-grid { grid-template-columns: repeat(4, 1fr); }
}
.number { border-top: 1px solid color-mix(in oklab, var(--cream) 18%, transparent); padding-top: 16px; }
.number-value { font-family: var(--serif); font-weight: 300; font-size: clamp(40px, 6vw, 56px); line-height: 1; letter-spacing: -0.02em; }
.number-value sup { font-size: 20px; vertical-align: top; color: var(--petal); margin-left: 2px; }
.number-label { margin-top: 10px; font-size: 13px; color: color-mix(in oklab, var(--cream) 68%, transparent); line-height: 1.45; }

/* ===== Carousel ===== */
.carousel {
  margin-top: 28px;
  padding: 0 20px;
  position: relative;
  overflow: hidden;
}
@media (min-width: 768px) { .carousel { padding: 0 48px; } }
@media (min-width: 1100px) { .carousel { padding: 0 80px; } }

.carousel-track {
  display: flex;
  gap: 14px;
  transition: transform 0.55s cubic-bezier(0.6, 0, 0.2, 1);
  will-change: transform;
  cursor: grab;
}
.carousel-track:active { cursor: grabbing; }
.carousel-card {
  flex: 0 0 calc(86% - 7px);
  background: white;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-soft);
  transition: opacity 0.5s, transform 0.5s;
}
@media (min-width: 640px) { .carousel-card { flex: 0 0 calc(46% - 7px); } }
@media (min-width: 1000px) { .carousel-card { flex: 0 0 calc(24% - 10.5px); } }

.carousel-img { aspect-ratio: 4/3; overflow: hidden; background: var(--rose-bg); }
.carousel-img img, .carousel-img .img-placeholder { width: 100%; height: 100%; object-fit: cover; }
.carousel-body { padding: 18px 20px 22px; }
.carousel-body h4 { font-family: var(--serif); font-weight: 400; font-size: 18px; margin: 0 0 4px; }
.carousel-loc { font-size: 12px; color: var(--ink-soft); letter-spacing: 0.08em; }

/* Full-bleed carousel */
.carousel-full {
  margin-top: 28px;
  padding: 0 20px;
  position: relative;
}
@media (min-width: 768px) { .carousel-full { padding: 0 48px; } }
@media (min-width: 1100px) { .carousel-full { padding: 0 80px; } }

/* Clip layer: rounds corners + hides translated slides.
   Crucially, this is NOT the flex container — clipping the flex container
   would clip its own children that overflow horizontally. */
.carousel-clip {
  border-radius: var(--radius-lg);
  overflow: hidden;
  position: relative;
  cursor: grab;
}
.carousel-clip:active { cursor: grabbing; }

/* The flex container that gets translated. Must NOT have overflow:hidden. */
.carousel-track-full {
  display: flex;
  transition: transform 0.5s cubic-bezier(0.55, 0, 0.2, 1);
  will-change: transform;
}
.carousel-full-slide {
  flex: 0 0 100%;
  min-width: 0;
  aspect-ratio: 4/3;
  position: relative;
  overflow: hidden;
  background: var(--rose-bg);
  user-select: none;
  -webkit-user-select: none;
}
@media (min-width: 768px) { .carousel-full-slide { aspect-ratio: 16/7; } }
.carousel-full-slide img { width: 100%; height: 100%; object-fit: cover; display: block; }
.carousel-arrow {
  width: 38px; height: 38px;
  border-radius: 50%;
  border: 1.5px solid rgba(255,255,255,0.35);
  background: rgba(0,0,0,0.3);
  backdrop-filter: blur(6px);
  display: grid;
  place-items: center;
  cursor: pointer;
}
.carousel-arrow:hover { background: rgba(0,0,0,0.5); }

/* ===== Quote ===== */
.quote {
  font-family: var(--serif);
  font-style: italic;
  font-weight: 300;
  font-size: clamp(22px, 4vw, 32px);
  line-height: 1.3;
  letter-spacing: -0.01em;
  text-wrap: balance;
  max-width: 48ch;
}
.quote::before { content: "\201C"; color: var(--petal-deep); font-size: 1.2em; line-height: 0; vertical-align: -0.3em; margin-right: 4px; }
[dir="rtl"] .quote::before { content: "\201D"; margin-right: 0; margin-left: 4px; }
.quote-by { margin-top: 18px; font-size: 12px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--ink-soft); }

/* ===== Donate card ===== */
.donate-card {
  background: linear-gradient(140deg, var(--petal) 0%, var(--peach) 100%);
  border-radius: var(--radius-lg);
  padding: 40px 32px;
  margin: 0 20px;
  position: relative;
  overflow: hidden;
}
@media (min-width: 768px) {
  .donate-card { margin: 0 48px; padding: 56px 56px; display: flex; align-items: center; justify-content: space-between; gap: 40px; }
  .donate-card .donate-card-text { flex: 1; }
  .donate-card .donate-card-action { flex-shrink: 0; }
}
@media (min-width: 1100px) { .donate-card { margin: 0 80px; } }
.donate-card::after {
  content: "";
  position: absolute;
  width: 300px; height: 300px;
  border-radius: 50%;
  background: rgba(255,255,255,0.18);
  bottom: -150px; right: -100px;
  pointer-events: none;
}
.donate-card .display { font-size: clamp(28px, 5vw, 40px); position: relative; }
.donate-card .btn { margin-top: 24px; position: relative; }
@media (min-width: 768px) { .donate-card .btn { margin-top: 0; } }

/* ===== Footer ===== */
.app-footer {
  background: var(--ink);
  color: var(--cream);
  padding: 56px 20px 36px;
  margin-top: 32px;
}
@media (min-width: 768px) { .app-footer { padding: 72px 48px 44px; } }
@media (min-width: 1100px) { .app-footer { padding: 80px 80px 48px; } }
.app-footer .footer-inner { max-width: var(--max-w); margin: 0 auto; }
.app-footer h4 { font-family: var(--serif); font-weight: 400; font-size: 28px; margin: 0 0 14px; line-height: 1.1; }
.app-footer .links {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 28px 20px;
  margin-top: 32px;
  padding-top: 28px;
  border-top: 1px solid color-mix(in oklab, var(--cream) 12%, transparent);
}
@media (min-width: 768px) { .app-footer .links { grid-template-columns: repeat(3, 1fr); } }
.app-footer .links h5 { font-size: 11px; font-weight: 700; letter-spacing: 0.16em; text-transform: uppercase; color: color-mix(in oklab, var(--cream) 55%, transparent); margin: 0 0 10px; }
.app-footer .links a { display: block; color: var(--cream); text-decoration: none; font-size: 14px; padding: 4px 0; opacity: 0.82; transition: opacity 0.2s; }
.app-footer .links a:hover { opacity: 1; }
.app-footer .copy { margin-top: 32px; font-size: 11px; letter-spacing: 0.08em; color: color-mix(in oklab, var(--cream) 45%, transparent); }

/* Newsletter */
.newsletter {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  background: color-mix(in oklab, var(--cream) 10%, transparent);
  border-radius: 999px;
  padding: 4px;
  margin-top: 18px;
  max-width: 440px;
}
.newsletter input {
  flex: 1 1 140px;
  min-width: 0;
  background: transparent;
  border: 0;
  padding: 12px 18px;
  color: var(--cream);
  font: inherit;
  font-size: 14px;
  outline: none;
}
.newsletter input::placeholder { color: color-mix(in oklab, var(--cream) 48%, transparent); }
.newsletter button {
  flex-shrink: 0;
  background: var(--petal-deep);
  color: white;
  border: 0;
  border-radius: 999px;
  padding: 12px 22px;
  font: inherit;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  white-space: nowrap;
}

/* Sticky donate */
.sticky-donate {
  position: fixed;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%) translateY(20px);
  z-index: 100;
  background: var(--ink);
  color: var(--cream);
  border-radius: 999px;
  padding: 12px 8px 12px 24px;
  display: inline-flex;
  align-items: center;
  gap: 14px;
  box-shadow: var(--shadow-card);
  opacity: 0;
  transition: opacity 0.4s, transform 0.4s;
  pointer-events: none;
  white-space: nowrap;
  cursor: pointer;
}
[dir="rtl"] .sticky-donate { padding: 12px 24px 12px 8px; }
.sticky-donate.visible { opacity: 1; transform: translateX(-50%) translateY(0); pointer-events: auto; }
.sticky-donate .label { font-size: 13px; font-weight: 500; }
.sticky-donate .label small { display: block; font-size: 10px; letter-spacing: 0.1em; text-transform: uppercase; color: color-mix(in oklab, var(--cream) 55%, transparent); margin-bottom: 2px; }
.sticky-donate button { background: var(--petal-deep); color: white; border: 0; border-radius: 999px; padding: 10px 20px; font: inherit; font-size: 13px; font-weight: 600; cursor: pointer; }

/* ===== Page transitions ===== */
.page { animation: pageIn 0.5s cubic-bezier(0.2, 0.8, 0.2, 1); }
@keyframes pageIn { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: translateY(0); } }

/* ===== Scroll reveal ===== */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity 0.8s cubic-bezier(0.2, 0.8, 0.2, 1), transform 0.8s cubic-bezier(0.2, 0.8, 0.2, 1); }
.reveal.visible { opacity: 1; transform: translateY(0); }
.reveal.delay-1 { transition-delay: 0.08s; }
.reveal.delay-2 { transition-delay: 0.16s; }
.reveal.delay-3 { transition-delay: 0.24s; }
.reveal.delay-4 { transition-delay: 0.32s; }

/* ===== Parallax ===== */
.parallax-holder { overflow: hidden; }
.parallax-holder img { will-change: transform; }

/* ===== Image placeholder ===== */
.img-placeholder {
  background: repeating-linear-gradient(
    135deg,
    var(--rose-bg) 0, var(--rose-bg) 10px,
    color-mix(in oklab, var(--rose-bg) 75%, var(--petal)) 10px,
    color-mix(in oklab, var(--rose-bg) 75%, var(--petal)) 20px
  );
  display: grid;
  place-items: center;
  color: var(--ink-soft);
  font-family: ui-monospace, "SF Mono", monospace;
  font-size: 10px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  text-align: center;
  padding: 12px;
}

/* ===== Marquee ===== */
.marquee {
  overflow: hidden;
  margin: 28px 0;
  padding: 16px 0;
  border-top: 1px solid color-mix(in oklab, var(--ink) 10%, transparent);
  border-bottom: 1px solid color-mix(in oklab, var(--ink) 10%, transparent);
  background: var(--cream);
}
.marquee-track {
  display: flex;
  gap: 36px;
  animation: marquee 22s linear infinite;
  white-space: nowrap;
  width: max-content;
}
.marquee span { font-family: var(--serif); font-style: italic; font-size: 22px; color: var(--ink); }
.marquee span::after { content: "✿"; margin-left: 36px; color: var(--petal-deep); }
@keyframes marquee { to { transform: translateX(-50%); } }
[dir="rtl"] .marquee-track { animation-direction: reverse; }

/* ===== Featured story ===== */
.featured {
  display: grid;
  gap: 24px;
  margin-top: 28px;
}
@media (min-width: 768px) { .featured { grid-template-columns: 1fr 1fr; align-items: center; gap: 48px; } }

.featured .img { aspect-ratio: 5/3; border-radius: var(--radius); overflow: hidden; background: var(--rose-bg); }
.featured .img img { width: 100%; height: 100%; object-fit: cover; }
.featured .body h3 { font-family: var(--serif); font-weight: 400; font-size: clamp(22px, 3.5vw, 30px); letter-spacing: -0.01em; margin: 0 0 12px; line-height: 1.15; }
.featured .body p { font-size: 15px; color: var(--ink-soft); line-height: 1.65; margin: 0 0 16px; }

.text-link {
  font-size: 13px;
  font-weight: 600;
  color: var(--ink);
  text-decoration: none;
  border-bottom: 1.5px solid var(--ink);
  padding-bottom: 2px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

/* ===== About — founder card ===== */
.founder-card {
  background: var(--sage-bg);
  border-radius: var(--radius-lg);
  padding: 28px 28px 32px;
}
.founder-card .photo { aspect-ratio: 1; width: 100px; border-radius: 50%; overflow: hidden; background: var(--rose-bg); margin-bottom: 18px; }
.founder-card .photo img { width: 100%; height: 100%; object-fit: cover; }

/* ===== Donate amounts ===== */
.amount-grid {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 8px;
  margin-top: 20px;
}
@media (min-width: 768px) {
  .amount-grid { grid-template-columns: repeat(3, auto) 1fr; }
  .amount-grid .custom { grid-column: auto; }
}
.amount {
  background: white;
  border: 1.5px solid color-mix(in oklab, var(--ink) 8%, transparent);
  border-radius: 18px;
  padding: 18px 8px;
  font: inherit;
  cursor: pointer;
  transition: border-color 0.2s, background 0.2s;
  text-align: center;
}
.amount.selected { border-color: var(--ink); background: var(--ink); color: var(--cream); }
.amount strong { display: block; font-family: var(--serif); font-weight: 400; font-size: 26px; letter-spacing: -0.01em; }
.amount small { font-size: 10px; letter-spacing: 0.1em; text-transform: uppercase; opacity: 0.7; }
.amount-grid .custom { grid-column: span 3; padding: 16px 20px; text-align: left; font-size: 14px; color: var(--ink-soft); }

.frequency-toggle { display: flex; background: color-mix(in oklab, var(--ink) 6%, transparent); border-radius: 999px; padding: 3px; max-width: 280px; }
.frequency-toggle button { flex: 1; border: 0; background: transparent; padding: 11px; border-radius: 999px; font: inherit; font-size: 14px; font-weight: 600; cursor: pointer; color: var(--ink-soft); }
.frequency-toggle button.active { background: var(--cream); color: var(--ink); box-shadow: var(--shadow-soft); }

/* ===== Schedule ===== */
.schedule-grid { margin-top: 28px; display: grid; gap: 8px; }
@media (min-width: 640px) { .schedule-grid { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1000px) { .schedule-grid { grid-template-columns: repeat(5, 1fr); } }
.schedule-row {
  display: grid;
  grid-template-columns: 72px 1fr;
  gap: 16px;
  padding: 20px 22px;
  background: white;
  border-radius: var(--radius);
  box-shadow: var(--shadow-soft);
  align-items: center;
}
@media (min-width: 640px) { .schedule-row { grid-template-columns: 1fr; display: block; } }
.schedule-day { font-family: var(--serif); font-style: italic; font-size: 14px; color: var(--petal-deep); font-weight: 500; }
@media (min-width: 640px) { .schedule-day { margin-bottom: 8px; } }
.schedule-title { font-family: var(--serif); font-size: 18px; font-weight: 400; margin-bottom: 4px; }
.schedule-body { font-size: 13px; color: var(--ink-soft); }

/* ===== Where it goes bars ===== */
.where-item { padding: 18px 0; border-bottom: 1px solid color-mix(in oklab, var(--ink) 9%, transparent); }
.where-header { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 10px; }
.where-pct { font-family: var(--serif); font-size: 24px; font-weight: 400; }
.where-label { font-size: 13px; color: var(--ink-soft); text-align: end; max-width: 60%; }
.where-bar { height: 4px; background: color-mix(in oklab, var(--ink) 6%, transparent); border-radius: 999px; overflow: hidden; }
.where-bar-fill { height: 100%; border-radius: 999px; transition: width 1.2s 0.2s cubic-bezier(0.2, 0.8, 0.2, 1); }

/* ===== Menu drawer ===== */
.menu-drawer {
  position: fixed;
  inset: 0;
  background: var(--cream);
  z-index: 100;
  padding: 88px 36px 48px;
  display: flex;
  flex-direction: column;
  transform: translateY(100%);
  transition: transform 0.5s cubic-bezier(0.6, 0, 0.2, 1);
}
.menu-drawer.open { transform: translateY(0); }
.menu-drawer a {
  font-family: var(--serif);
  font-weight: 300;
  font-size: clamp(32px, 7vw, 46px);
  letter-spacing: -0.02em;
  color: var(--ink);
  text-decoration: none;
  padding: 14px 0;
  border-bottom: 1px solid color-mix(in oklab, var(--ink) 9%, transparent);
  display: flex;
  justify-content: space-between;
  align-items: center;
  cursor: pointer;
}
.menu-drawer a small { font-family: var(--sans); font-size: 11px; letter-spacing: 0.16em; text-transform: uppercase; color: var(--ink-soft); }
.menu-close {
  position: absolute;
  top: 20px; right: 20px;
  width: 38px; height: 38px;
  border-radius: 50%;
  background: var(--ink);
  color: var(--cream);
  border: 0;
  cursor: pointer;
  display: grid;
  place-items: center;
}
[dir="rtl"] .menu-close { right: auto; left: 20px; }
[dir="rtl"] .menu-drawer a { flex-direction: row-reverse; }

/* ===== RTL ===== */
[dir="rtl"] .btn-arrow svg { transform: scaleX(-1); }
[dir="rtl"] .text-link svg { transform: scaleX(-1); }
[dir="rtl"] .section-lede { max-width: none; }
[dir="rtl"] .hero-sub { max-width: none; }

/* Hide mobile lang pill on desktop (it's in the desktop nav) */
@media (min-width: 768px) { .mobile-lang-pill { display: none; } }

/* About page side-by-side sections (neighbourhood + team) */
.about-side-grid {
  display: flex;
  flex-direction: column;
  gap: 28px;
}
.about-side-grid > div:first-child {
  width: 100%;
  max-height: 280px;
  overflow: hidden;
  border-radius: var(--radius-lg);
}
.about-side-grid > div:first-child img,
.about-side-grid > div:first-child .img-placeholder {
  width: 100%;
  height: 280px;
  object-fit: cover;
  display: block;
}
@media (min-width: 768px) {
  .about-side-grid {
    flex-direction: row;
    align-items: flex-start;
    gap: 48px;
  }
  .about-side-grid > div:first-child {
    width: 380px;
    flex-shrink: 0;
    max-height: none;
  }
  .about-side-grid > div:first-child img,
  .about-side-grid > div:first-child .img-placeholder {
    height: 100%;
    min-height: 260px;
    max-height: 360px;
  }
  .about-side-grid--reverse {
    flex-direction: row-reverse;
  }
}

/* Founder two-column layout */
.founder-grid {
  display: flex;
  flex-direction: column;
  gap: 32px;
}
.founder-grid > div:first-child img {
  width: 100%;
  max-height: 420px;
  object-fit: cover;
  object-position: top center;
  border-radius: var(--radius-lg);
}
@media (min-width: 768px) {
  .founder-grid {
    flex-direction: row;
    align-items: flex-start;
    gap: 52px;
  }
  .founder-grid > div:first-child {
    width: 300px;
    flex-shrink: 0;
  }
  .founder-grid > div:first-child img {
    max-height: none;
    width: 100%;
    height: auto;
  }
}

/* Album masonry — CSS columns approach lets photos keep natural aspect ratio.
   2 columns on phones, scaling up to 4 on wide desktops. */
.album-masonry {
  column-count: 2;
  column-gap: 8px;
}
@media (min-width: 600px)  { .album-masonry { column-count: 3; column-gap: 10px; } }
@media (min-width: 1000px) { .album-masonry { column-count: 4; column-gap: 12px; } }

.album-tile {
  all: unset;
  display: block;
  cursor: pointer;
  break-inside: avoid;
  -webkit-column-break-inside: avoid;
  page-break-inside: avoid;
  margin-bottom: 8px;
  border-radius: 12px;
  overflow: hidden;
  background: color-mix(in oklab, var(--petal) 40%, white);
  position: relative;
  box-shadow: 0 2px 10px rgba(0,0,0,0.07);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  width: 100%;
}
@media (min-width: 600px)  { .album-tile { margin-bottom: 10px; } }
@media (min-width: 1000px) { .album-tile { margin-bottom: 12px; border-radius: 14px; } }
@media (hover: hover) {
  .album-tile:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(0,0,0,0.13);
  }
}
.album-tile:focus-visible {
  outline: 3px solid var(--petal-deep);
  outline-offset: 2px;
}
.album-tile-num {
  position: absolute;
  bottom: 6px; right: 6px;
  background: rgba(0,0,0,0.42);
  -webkit-backdrop-filter: blur(4px);
  backdrop-filter: blur(4px);
  color: #fff;
  font-size: 10px;
  font-weight: 700;
  padding: 2px 7px;
  border-radius: 999px;
}

/* Home mission section — text left, big lotus mark right */
.mission-grid {
  display: grid;
  gap: 32px;
  align-items: center;
}
.mission-mark {
  display: flex;
  justify-content: center;
}
.mission-mark img {
  width: 100%;
  max-width: 320px;
  height: auto;
  display: block;
  mix-blend-mode: multiply;   /* makes the image's white background blend out */
}
@media (min-width: 768px) {
  .mission-grid {
    grid-template-columns: 1.4fr 1fr;
    gap: 56px;
  }
  .mission-mark img {
    max-width: 420px;
  }
}
@media (min-width: 1100px) {
  .mission-mark img {
    max-width: 500px;
  }
}

/* Membership form + Newsletter side-by-side on the donate page */
.member-newsletter-grid {
  display: grid;
  gap: 32px;
}
.member-newsletter-divider {
  padding-top: 32px;
  border-top: 1px solid color-mix(in oklab, var(--ink) 12%, transparent);
}
@media (min-width: 768px) {
  .member-newsletter-grid {
    grid-template-columns: 1.2fr 1fr;
    gap: 56px;
  }
  .member-newsletter-divider {
    padding-top: 0;
    padding-left: 56px;
    border-top: 0;
    border-left: 1px solid color-mix(in oklab, var(--ink) 12%, transparent);
  }
  [dir="rtl"] .member-newsletter-divider {
    padding-left: 0;
    padding-right: 56px;
    border-left: 0;
    border-right: 1px solid color-mix(in oklab, var(--ink) 12%, transparent);
  }
}

/* ===== Lock layout direction so AR matches EN photo positions =====
   Flex/Grid layouts follow writing direction by default — in RTL, columns
   reverse and photos end up on the opposite side. Force these layout
   containers to LTR, then restore RTL on direct children so text inside
   still aligns correctly for Arabic. */
[dir="rtl"] .featured,
[dir="rtl"] .about-side-grid,
[dir="rtl"] .founder-grid {
  direction: ltr;
}
[dir="rtl"] .featured > *,
[dir="rtl"] .about-side-grid > *,
[dir="rtl"] .founder-grid > * {
  direction: rtl;
}
