/* Lehachzikom public site. Colours: deep navy with the logo's gold. */
:root {
  --navy-950: #12142a;
  --navy-900: #1b1d38;
  --navy-800: #25284a;
  --navy-700: #34375f;
  --gold-600: #b89d5a;
  --gold-500: #d1bb82;
  --gold-400: #e2d1a3;
  --gold-300: #f1e6c8;
  --gold-grad: linear-gradient(135deg, #f3e6c2 0%, #d1bb82 45%, #a8884a 100%);
  --cream: #faf6ec;
  --cream-2: #f3ebd8;
  --paper: #ffffff;
  --ink: #1f2033;
  --muted: #5d5f78;
  --line: #e7dec6;

  --font-display: "Suez One", "Frank Ruhl Libre", serif;   /* chunky headings, close to the logo's letters */
  --font-accent: "Noto Rashi Hebrew", "Frank Ruhl Libre", serif; /* Rashi script for small labels */
  --font-verse: "Frank Ruhl Libre", "Times New Roman", serif;  /* has proper nikud */
  --font-body: "Heebo", system-ui, sans-serif;

  --radius: 18px;
  --shadow-sm: 0 2px 8px rgb(27 29 56 / 0.06);
  --shadow: 0 18px 40px -12px rgb(27 29 56 / 0.18);
  --shadow-lg: 0 30px 70px -20px rgb(18 20 42 / 0.45);
  --wrap: 1160px;

}

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; scroll-padding-top: 84px; }

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 1.06rem;
  line-height: 1.7;
  color: var(--ink);
  background: var(--cream);
  -webkit-font-smoothing: antialiased;
  font-synthesis: none; /* Suez One has one weight: never fake a bold */
}

img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }

h1, h2, h3 { font-family: var(--font-display); line-height: 1.2; margin: 0 0 0.5em; font-weight: 400; }
h2 { font-size: clamp(2rem, 4.2vw, 2.9rem); color: var(--navy-800); }
p { margin: 0 0 1em; }

.wrap { width: 100%; max-width: var(--wrap); margin-inline: auto; padding-inline: 20px; }

.skip { position: absolute; inset-inline-start: -9999px; }
.skip:focus { inset-inline-start: 16px; top: 16px; z-index: 100; background: var(--paper); padding: 8px 12px; border-radius: 8px; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.5em;
  padding: 0.8em 1.6em; border-radius: 999px; border: 1.5px solid transparent;
  font: 700 1rem var(--font-body); text-decoration: none; cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}
.btn:hover { transform: translateY(-2px); }
.btn:focus-visible, .nav a:focus-visible, .footer-nav a:focus-visible { outline: 3px solid var(--gold-400); outline-offset: 3px; }
.btn-gold {
  background: var(--gold-grad); color: var(--navy-950);
  box-shadow: 0 10px 24px -8px rgb(209 187 130 / 0.7), inset 0 1px 0 rgb(255 255 255 / 0.5);
}
.btn-gold:hover { box-shadow: 0 14px 30px -8px rgb(209 187 130 / 0.85), inset 0 1px 0 rgb(255 255 255 / 0.5); }
.btn-ghost { border-color: rgb(226 209 163 / 0.5); color: var(--gold-300); background: rgb(255 255 255 / 0.03); }
.btn-ghost:hover { border-color: var(--gold-400); background: rgb(209 187 130 / 0.1); }
.btn-navy { background: var(--navy-800); color: var(--gold-300); box-shadow: var(--shadow); }
.btn-navy:hover { background: var(--navy-700); }
.btn-sm { padding: 0.5em 1.2em; font-size: 0.95rem; }
.btn-lg { font-size: 1.1rem; padding: 0.9em 2em; }
.btn-block { width: 100%; }

/* ---------- Header ---------- */
/* See-through over the hero; turns solid navy once the page scrolls (script.js sets .is-scrolled). */
.site-header {
  position: fixed; top: 0; inset-inline: 0; z-index: 50;
  background: transparent; border-bottom: 1px solid transparent;
  transition: box-shadow 0.3s ease, background-color 0.3s ease, border-color 0.3s ease, backdrop-filter 0.3s ease;
}
.site-header.is-scrolled {
  background: rgb(18 20 42 / 0.9); backdrop-filter: blur(12px) saturate(140%);
  border-bottom-color: rgb(209 187 130 / 0.18); box-shadow: 0 10px 30px -10px rgb(0 0 0 / 0.5);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; min-height: 76px; }
.brand { display: block; }
/* The logo in one gold colour (symbols in index.html) */
.mark { display: block; fill: url(#gold-mark); fill-rule: evenodd; }
.mark .mark-shine { fill: url(#mark-shine); }
.brand .mark { width: 76px; height: auto; transition: transform 0.3s ease; filter: drop-shadow(0 2px 6px rgb(0 0 0 / 0.35)); }
.brand:hover .mark { transform: scale(1.04); }
.nav { display: flex; align-items: center; gap: 32px; }
.nav a:not(.btn) {
  position: relative; color: rgb(255 255 255 / 0.88); text-decoration: none; font-weight: 500; padding: 6px 0;
}
.nav a:not(.btn)::after {
  content: ""; position: absolute; inset-inline: 0; bottom: 0; height: 2px; border-radius: 2px;
  background: var(--gold-500); transform: scaleX(0); transition: transform 0.25s ease;
}
.nav a:not(.btn):hover { color: var(--gold-300); }
.nav a:not(.btn):hover::after { transform: scaleX(1); }
.nav-toggle { display: none; }
.header-end { display: flex; align-items: center; gap: 28px; }
/* Language switch: a gold globe with the other language's name, set off from the menu by a thin gold line */
.lang-switch {
  position: relative; display: inline-flex; align-items: center; gap: 7px; padding: 6px 2px;
  color: rgb(255 255 255 / 0.85); text-decoration: none; font: 500 0.95rem var(--font-body);
  transition: color 0.2s ease;
}
.lang-switch::before {
  content: ""; position: absolute; inset-inline-start: -15px; top: 50%; width: 1px; height: 22px; transform: translateY(-50%);
  background: rgb(209 187 130 / 0.35);
}
.lang-globe { width: 18px; height: 18px; fill: none; stroke: var(--gold-500); stroke-width: 1.6; transition: transform 0.4s ease; }
.lang-switch:hover { color: var(--gold-300); }
.lang-switch:hover .lang-globe { transform: rotate(20deg); }
.lang-switch:focus-visible { outline: 3px solid var(--gold-400); outline-offset: 3px; border-radius: 6px; }
/* English page: Rashi script has no Latin letters, so its small labels use the body font */
:lang(en) .kicker { font-family: var(--font-body); font-size: 0.85rem; letter-spacing: 0.12em; text-transform: uppercase; }

/* ---------- Hero ---------- */
.hero {
  position: relative; overflow: hidden; isolation: isolate;
  --hero-photo: url("img/hero.webp");
  --photo-h: 56.25vw;            /* the photo is 16:9 and spans the full width */
  --photo-size: 100% auto;
  min-height: max(640px, min(100svh, 56.25vw));   /* about the photo's own height, so the whole table shows */
  background: var(--navy-950);
  color: #fff;
  padding: 150px 0 140px;
}
/* Shabbat-table photo along the bottom, fading up into the navy, under a veil that is darkest behind the text */
.hero::after {
  content: ""; position: absolute; inset: 0; z-index: -2;
  background:
    radial-gradient(ellipse 48% 42% at 50% 30%, rgb(18 20 42 / 0.75), transparent 75%),
    linear-gradient(180deg, rgb(18 20 42 / 0.55) 0%, rgb(18 20 42 / 0.2) 55%, rgb(18 20 42 / 0.55) 100%),
    var(--hero-photo) center bottom / var(--photo-size) no-repeat;
  -webkit-mask-image: linear-gradient(to top, #000 calc(var(--photo-h) * 0.6), transparent var(--photo-h));
  mask-image: linear-gradient(to top, #000 calc(var(--photo-h) * 0.6), transparent var(--photo-h));
  transform-origin: 50% 100%;
  animation: hero-photo 2.6s cubic-bezier(0.2, 0.7, 0.2, 1) both;
}
.hero-glow {
  position: absolute; z-index: -1; width: 760px; height: 420px; border-radius: 50%;
  left: 50%; top: 90px; transform: translateX(-50%);
  background: radial-gradient(ellipse, rgb(209 187 130 / 0.14), transparent 65%);
  filter: blur(10px);
  animation: glow-in 2s ease 0.6s both;
}
.hero-inner { display: flex; flex-direction: column; align-items: center; text-align: center; }
.nowrap { white-space: nowrap; }
.hero h1 {
  font-size: clamp(2.6rem, 6.4vw, 5.6rem); font-weight: 400; line-height: 1.05; margin-bottom: 0;
  color: #fff;
}
.hero h1 .line, .hero h1 em { display: block; }
.hero h1 em {
  font-style: normal; padding-bottom: 0.08em;
  background: linear-gradient(100deg, #b89d5a 0%, #e2d1a3 30%, #fff8e4 45%, #e2d1a3 60%, #b89d5a 100%) 100% 0 / 250% 100%;
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.hero-rule {
  display: block; width: 120px; height: 1.5px; margin: 26px auto 22px;
  background: linear-gradient(90deg, transparent, var(--gold-500), transparent);
}
.sub { font-size: clamp(1.1rem, 2vw, 1.3rem); color: rgb(255 255 255 / 0.74); max-width: 48ch; margin-inline: auto; }
.hero-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 14px; margin-top: 36px; }
.hero-edge { position: absolute; bottom: -1px; inset-inline: 0; width: 100%; height: 80px; fill: var(--cream); }

/* Entrance on load: the photo settles in from a slow zoom, the headline rises out of a soft blur line by line,
   a gold rule draws across, then a shine passes over the gold words; the header slides down last. */
.hero h1 .line { animation: rise 1.1s cubic-bezier(0.2, 0.7, 0.2, 1) 0.25s both; }
.hero h1 em {
  animation: rise 1.1s cubic-bezier(0.2, 0.7, 0.2, 1) 0.45s both, shine 1.8s ease-in-out 1.5s both;
}
.hero-rule { animation: draw-rule 1s cubic-bezier(0.6, 0, 0.2, 1) 0.9s both; }
.hero .sub { animation: rise 1s cubic-bezier(0.2, 0.7, 0.2, 1) 1.05s both; }
.hero-actions { animation: rise 1s cubic-bezier(0.2, 0.7, 0.2, 1) 1.25s both; }
.site-header { animation: drop 0.9s cubic-bezier(0.2, 0.7, 0.2, 1) 1.4s both; }

@keyframes hero-photo { from { opacity: 0; transform: scale(1.08); } }
@keyframes rise { from { opacity: 0; transform: translateY(26px); filter: blur(10px); } }
@keyframes draw-rule { from { transform: scaleX(0); opacity: 0; } }
@keyframes shine { from { background-position: 100% 0; } to { background-position: 0 0; } }
@keyframes drop { from { opacity: 0; transform: translateY(-100%); } }
@keyframes glow-in { from { opacity: 0; } }

/* The logo as gold line art (index.html). Strokes draw in one after another, then keep a little life. */
.logo-art[hidden] { display: none; }
.logo-art { width: min(90vw, 540px); height: auto; margin-top: 56px; overflow: visible; }
/* Units here are the logo's own (1593 wide), so strokes look about 1.5px on screen */
.logo-art .draw, .logo-art .run { fill: none; stroke: var(--gold-500); stroke-width: 5; stroke-linecap: round; stroke-linejoin: round; }
.logo-art .thin { stroke-width: 3.5; stroke: rgb(209 187 130 / 0.6); }
.logo-art .draw { stroke-dasharray: 1; stroke-dashoffset: 1; animation: draw 2.2s ease forwards; }
.logo-art .draw-2 { animation-delay: 0.5s; }
.logo-art .name {
  fill: transparent; stroke: url(#shine); stroke-width: 4.5; stroke-linejoin: round;
  stroke-dasharray: 1; stroke-dashoffset: 1;
  animation: draw 2.6s ease 0.7s forwards, fill-name 1.2s ease 2.8s forwards;
}
.logo-art .tagline {
  fill: var(--gold-400); fill-rule: evenodd; opacity: 0; animation: fade-in 1s ease 2.4s forwards;
}
.logo-art .run {
  stroke: #fff8e4; stroke-width: 7; stroke-dasharray: 0.08 0.92; stroke-dashoffset: 0;
  opacity: 0; animation: fade-in 0.6s ease 2.6s forwards, run 7s linear 2.6s infinite;
}
/* Hold the drawing until the logo scrolls into view (script.js adds .is-drawn) */
.js .logo-art:not(.is-drawn) * { animation-play-state: paused; }

@keyframes draw { to { stroke-dashoffset: 0; } }
@keyframes fill-name { to { fill: rgb(209 187 130 / 0.1); } }
@keyframes fade-in { to { opacity: 1; } }
@keyframes run { to { stroke-dashoffset: -1; } }

.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden;
  clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

/* ---------- Section heads ---------- */
.section-head { text-align: center; max-width: 680px; margin: 0 auto 56px; }
.kicker {
  display: inline-block; margin-bottom: 0.8em; padding: 0.3em 1em; border-radius: 999px;
  font: 700 1.2rem/1.4 var(--font-accent);
  color: var(--gold-600); background: rgb(209 187 130 / 0.16); border: 1px solid rgb(209 187 130 / 0.35);
}
.divider { display: block; width: 200px; height: 20px; margin: 4px auto 20px; color: var(--gold-500); }
.section-lead { color: var(--muted); font-size: 1.15rem; }
.section-head.on-dark h2 { color: #fff; }
.section-head.on-dark .kicker { color: var(--gold-400); background: rgb(209 187 130 / 0.1); }

/* ---------- About ---------- */
.about { padding: 88px 0 112px; }
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.card {
  position: relative; overflow: hidden; isolation: isolate; text-align: center;
  padding: 52px 34px 44px; border-radius: calc(var(--radius) * 1.3);
  background: linear-gradient(180deg, #fff 0%, #fffcf5 100%);
  border: 1px solid var(--line); box-shadow: var(--shadow-sm);
  transition: transform 0.4s cubic-bezier(0.2, 0.7, 0.2, 1), box-shadow 0.4s ease, border-color 0.4s ease;
}
/* soft gold light from the top, and a thin gold edge that widens on hover */
.card::before {
  content: ""; position: absolute; inset: 0 0 auto; height: 160px; z-index: -1;
  background: radial-gradient(ellipse 70% 100% at 50% 0%, rgb(209 187 130 / 0.16), transparent 70%);
}
/* a gold line of light on the top edge, fading out at both ends; it stretches on hover */
.card::after {
  content: ""; position: absolute; top: 0; left: 50%; width: 120px; height: 2px; transform: translateX(-50%);
  background: linear-gradient(90deg, transparent, var(--gold-500) 30%, var(--gold-600) 50%, var(--gold-500) 70%, transparent);
  box-shadow: 0 0 10px 1px rgb(209 187 130 / 0.45);
  transition: width 0.6s cubic-bezier(0.2, 0.7, 0.2, 1);
}
.card:hover { transform: translateY(-8px); box-shadow: var(--shadow); border-color: rgb(209 187 130 / 0.7); }
.card:hover::after { width: 85%; }
/* Photo across the top of the card, fading into it; the icon medallion overlaps its lower edge.
   (.is-empty: a navy-and-gold stand-in for a card without a photo.) */
.card-photo {
  position: relative; margin: -52px -34px 0; aspect-ratio: 16 / 10; overflow: hidden;
  background: radial-gradient(ellipse 70% 60% at 50% 80%, rgb(209 187 130 / 0.28), transparent 70%), linear-gradient(160deg, var(--navy-800), var(--navy-950));
}
.card-photo img {
  width: 100%; height: 100%; object-fit: cover; object-position: 50% 70%;
  transition: transform 1.2s cubic-bezier(0.2, 0.7, 0.2, 1);
}
.card-photo::after {
  content: ""; position: absolute; inset: auto 0 0; height: 45%;
  background: linear-gradient(180deg, transparent, rgb(18 20 42 / 0.35));
}
.card:hover .card-photo img { transform: scale(1.06); }
.card-photo + .card-icon { position: relative; margin-top: -42px; }
.card-icon {
  width: 84px; height: 84px; margin: 0 auto 26px; border-radius: 50%; display: grid; place-items: center;
  background: linear-gradient(150deg, var(--navy-700), var(--navy-950));
  box-shadow: 0 0 0 7px #fff, 0 0 0 8px rgb(209 187 130 / 0.55), 0 16px 30px -10px rgb(27 29 56 / 0.55);
  transition: transform 0.5s cubic-bezier(0.2, 0.7, 0.2, 1), box-shadow 0.4s ease;
}
.card-icon svg { width: 34px; height: 34px; fill: none; stroke: var(--gold-400); stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.card:hover .card-icon {
  transform: scale(1.06);
  box-shadow: 0 0 0 7px #fff, 0 0 0 8px var(--gold-500), 0 0 30px 4px rgb(209 187 130 / 0.35), 0 16px 30px -10px rgb(27 29 56 / 0.55);
}
.card h3 { color: var(--navy-800); font-size: 1.75rem; margin-bottom: 0; }
.card-rule { display: block; width: 36px; height: 2px; margin: 16px auto; border-radius: 2px; background: var(--gold-500); opacity: 0.7; }
.card p { color: var(--muted); margin: 0 auto; max-width: 26ch; }

/* ---------- Verse ---------- */
.verse { padding: 0 0 104px; }
.verse .wrap { position: relative; }
/* Parchment photo with gold flourishes at the sides and light from the top, under a soft cream wash so the verse stays crisp */
.verse blockquote {
  --verse-photo: url("img/verse.webp");
  margin: 0; padding: 76px 40px 68px; text-align: center; border-radius: var(--radius);
  background:
    radial-gradient(ellipse 60% 70% at 50% 55%, rgb(250 246 236 / 0.55), transparent 75%),
    var(--verse-photo) center / cover no-repeat,
    var(--cream-2);
  border: 1px solid rgb(209 187 130 / 0.45);
  box-shadow: var(--shadow-sm);
}
.verse blockquote p {
  font: 500 clamp(1.6rem, 3.6vw, 2.5rem)/1.5 var(--font-verse); color: var(--navy-800); margin: 0 0 0.6em;
}
.verse strong {
  font-weight: 700; background: var(--gold-grad); -webkit-background-clip: text; background-clip: text; color: transparent;
  background-image: linear-gradient(135deg, #b89d5a, #8a6c2f);
}
.verse cite { font: 500 1.1rem var(--font-accent); color: var(--muted); }
.corner { position: absolute; width: 56px; height: 56px; color: var(--gold-500); }
/* The ornament is drawn for a top-left corner; mirror it to fit the top-right and bottom-left corners of the box
   (the box sits 20px inside .wrap, 16px on phones; the ornament hangs 8px outside it) */
.corner-tr { top: -8px; right: 12px; transform: scaleX(-1); }
.corner-bl { bottom: -8px; left: 12px; transform: scaleY(-1); }

/* ---------- Impact ---------- */
/* The Shabbat-table photo from the hero, blurred and darkened, so candlelight glows behind the numbers.
   Four large gold numbers in a row, split by thin gold lines; an icon in a fine gold ring above each. */
.impact { position: relative; overflow: hidden; isolation: isolate; color: #fff; padding: 120px 0 128px; background: var(--navy-950); }
.impact::before {
  content: ""; position: absolute; inset: -40px; z-index: -2;
  background: url("img/hero-sm.webp") center 70% / cover no-repeat;
  filter: blur(18px) saturate(1.1); opacity: 0.55;
}
.impact::after {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background:
    radial-gradient(ellipse 60% 55% at 50% 60%, rgb(209 187 130 / 0.12), transparent 70%),
    linear-gradient(180deg, rgb(18 20 42 / 0.92) 0%, rgb(18 20 42 / 0.7) 45%, rgb(18 20 42 / 0.88) 100%);
}
.stats {
  display: grid; grid-template-columns: repeat(4, 1fr); margin-top: 8px;
  border-block: 1px solid rgb(209 187 130 / 0.18);
}
.stat { position: relative; text-align: center; padding: 48px 16px 44px; }
.stat + .stat::before {
  content: ""; position: absolute; inset-inline-start: 0; top: 22%; bottom: 22%; width: 1px;
  background: linear-gradient(180deg, transparent, rgb(209 187 130 / 0.55), transparent);
}
.stat-icon {
  width: 50px; height: 50px; margin: 0 auto 20px; border-radius: 50%; display: grid; place-items: center;
  border: 1px solid rgb(209 187 130 / 0.5); background: rgb(209 187 130 / 0.06);
  box-shadow: 0 0 24px rgb(209 187 130 / 0.18);
  transition: transform 0.5s cubic-bezier(0.2, 0.7, 0.2, 1), background-color 0.4s ease;
}
.stat-icon svg { width: 22px; height: 22px; fill: none; stroke: var(--gold-300); stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.stat:hover .stat-icon { transform: translateY(-4px); background: rgb(209 187 130 / 0.16); }
/* Heebo for the digits: straight, even figures that read cleanly */
.num {
  display: block; direction: ltr; font: 700 clamp(3rem, 6vw, 4.8rem) / 1 var(--font-body);
  letter-spacing: -0.03em; font-variant-numeric: tabular-nums lining-nums;
  background: linear-gradient(180deg, #fff3d6 0%, #e2d1a3 45%, #b89d5a 100%); -webkit-background-clip: text; background-clip: text; color: transparent;
  filter: drop-shadow(0 0 22px rgb(209 187 130 / 0.35));
}
.label { display: block; margin-top: 14px; color: var(--gold-300); font-weight: 500; font-size: 1.08rem; letter-spacing: 0.02em; }

/* ---------- Donate ---------- */
.donate { padding: 96px 0 104px; }
/* A split panel: the story on navy, the action on a smaller plaque of polished gold. Its button opens Donorbox. */
.donate-card {
  display: grid; grid-template-columns: 1fr 1fr; overflow: hidden;
  border-radius: calc(var(--radius) * 1.4); box-shadow: var(--shadow-lg);
  border: 1px solid rgb(209 187 130 / 0.35);
}
.donate-main {
  position: relative; isolation: isolate; padding: 60px 56px; color: #fff;
  background:
    radial-gradient(ellipse 70% 80% at 100% 0%, rgb(209 187 130 / 0.16), transparent 65%),
    linear-gradient(160deg, var(--navy-800), var(--navy-950));
}
.donate-main h2 { color: #fff; font-size: clamp(2rem, 3.6vw, 2.7rem); margin-bottom: 0.35em; }
.donate-main p { color: rgb(255 255 255 / 0.78); font-size: 1.12rem; margin: 0; }
.donate-main .kicker { color: var(--gold-400); background: rgb(209 187 130 / 0.1); }
.donate-action {
  position: relative; isolation: isolate; overflow: hidden; padding: 48px 40px;
  display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; color: #17162b;
  background:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='240' height='240'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 0.35 0 0 0 0 0.27 0 0 0 0 0.1 0 0 0 0.25 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E"),
    radial-gradient(ellipse 90% 80% at 30% 10%, rgb(255 246 214 / 0.8), transparent 60%),
    linear-gradient(140deg, #ead7a4 0%, #d4b874 50%, #bf9d57 100%);
  background-size: 240px, auto, auto;
  box-shadow: inset 1px 0 0 rgb(255 250 230 / 0.5);
}
/* a soft light sweeps across the gold now and then */
.donate-action::after {
  content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background: linear-gradient(105deg, transparent 40%, rgb(255 252 235 / 0.45) 50%, transparent 60%) -150% 0 / 60% 100% no-repeat;
  animation: card-sheen 9s ease-in-out 1.5s infinite;
}
@keyframes card-sheen { 0% { background-position: -150% 0; } 30%, 100% { background-position: 250% 0; } }
.action-line { margin: 0; font-weight: 700; font-size: 1.02rem; color: rgb(23 22 43 / 0.75); }
.action-big { margin: 4px 0 26px; font: 400 clamp(2.4rem, 4.4vw, 3.4rem) / 1.1 var(--font-display); color: #17162b; text-shadow: 0 1px 0 rgb(255 248 220 / 0.6); }
.donate-action .btn { min-width: 210px; }
.donate-action .btn-navy {
  background: linear-gradient(180deg, var(--navy-800), var(--navy-950)); color: var(--gold-300);
  box-shadow: 0 12px 26px -10px rgb(18 20 42 / 0.75), inset 0 1px 0 rgb(255 255 255 / 0.12);
}
.donate-action .btn-navy:hover { background: linear-gradient(180deg, var(--navy-700), var(--navy-900)); }
.checks { list-style: none; padding: 0; margin: 26px 0 0; display: grid; gap: 12px; }
.checks li { position: relative; display: flex; align-items: center; gap: 12px; font-weight: 500; color: rgb(255 255 255 / 0.92); }
.checks li::before { content: ""; flex: none; width: 24px; height: 24px; border-radius: 50%; background: var(--gold-grad); }
.checks li::after {
  content: ""; position: absolute; inset-inline-start: 8px; top: 50%; width: 5px; height: 10px; margin-top: -7px;
  border: solid var(--navy-900); border-width: 0 2px 2px 0; transform: rotate(45deg);
}
/* The Donorbox popup lives at the end of the page; only its popup is ever seen */
dbox-widget.donorbox { position: fixed; inset-inline-start: 0; bottom: 0; z-index: 100; }
dbox-widget.donorbox:not(.is-ready) { visibility: hidden; } /* until script.js has hidden its own button */
.js-donate.is-loading { cursor: progress; opacity: 0.8; }

/* ---------- Contact ---------- */
/* Centred: heading, then the email address as one large gold-edged link, then the two notes in a row */
.contact { position: relative; padding: 104px 0 112px; background: linear-gradient(180deg, var(--cream), var(--cream-2)); }
.contact-inner { display: flex; flex-direction: column; align-items: center; text-align: center; }
.contact-inner h2 { margin-bottom: 0; }
.contact-inner .divider { margin: 18px auto 20px; }
.contact-lead { color: var(--muted); font-size: 1.15rem; max-width: 44ch; }
.email-link {
  display: inline-flex; align-items: center; gap: 18px; margin-top: 18px; padding: 18px 34px 18px 22px;
  border-radius: 999px; text-decoration: none; direction: ltr;
  background: var(--paper); border: 1px solid rgb(209 187 130 / 0.55);
  box-shadow: var(--shadow), inset 0 1px 0 #fff;
  transition: transform 0.35s cubic-bezier(0.2, 0.7, 0.2, 1), box-shadow 0.35s ease, border-color 0.35s ease;
}
.email-link:hover { transform: translateY(-4px); border-color: var(--gold-500); box-shadow: var(--shadow-lg), 0 0 0 4px rgb(209 187 130 / 0.18); }
.email-link:focus-visible { outline: 3px solid var(--gold-400); outline-offset: 4px; }
.email-icon {
  flex: none; width: 54px; height: 54px; border-radius: 50%; display: grid; place-items: center;
  background: linear-gradient(150deg, var(--navy-700), var(--navy-950));
  box-shadow: 0 8px 18px -8px rgb(27 29 56 / 0.6);
}
.email-icon svg { width: 24px; height: 24px; fill: none; stroke: var(--gold-400); stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.email-address { font: 700 clamp(1.2rem, 2.6vw, 1.7rem) var(--font-body); color: var(--navy-800); letter-spacing: 0.01em; }
/* Location and privacy notes: quiet text with small gold icons */
.info-list { list-style: none; padding: 0; margin: 30px 0 0; display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 10px 36px; }
.info-list li { display: flex; align-items: center; gap: 8px; color: var(--muted); font-size: 0.98rem; }
.info-icon { flex: none; display: grid; place-items: center; }
.info-icon svg { width: 17px; height: 17px; fill: none; stroke: var(--gold-600); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }

/* ---------- Footer ---------- */
.site-footer {
  position: relative; isolation: isolate; overflow: hidden;
  background: var(--navy-950); color: rgb(255 255 255 / 0.6); padding: 64px 0 40px; font-size: 0.95rem;
}
/* The gold logo as a small, faint, tilted pattern that fades out towards the middle, with a soft gold glow above */
.site-footer::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: radial-gradient(ellipse 50% 70% at 50% 0%, rgb(209 187 130 / 0.1), transparent 70%);
}
.footer-pattern {
  position: absolute; inset: 0; z-index: -1; width: 100%; height: 100%; pointer-events: none;
  fill: var(--gold-500); fill-rule: evenodd; opacity: 0.06;
  -webkit-mask-image: radial-gradient(ellipse 45% 70% at 50% 45%, transparent 30%, #000 85%);
  mask-image: radial-gradient(ellipse 45% 70% at 50% 45%, transparent 30%, #000 85%);
}
.footer-inner { display: grid; justify-items: center; gap: 22px; text-align: center; }
.mark-footer { width: 130px; height: auto; }
.footer-email { color: var(--gold-400); text-decoration: none; font-weight: 500; direction: ltr; }
.footer-email:hover { color: var(--gold-300); text-decoration: underline; }
.footer-inner p { margin: 0; }
.footer-nav { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px 32px; }
.footer-nav a { color: rgb(255 255 255 / 0.85); text-decoration: none; font-weight: 500; }
.footer-nav a:hover { color: var(--gold-400); }
.site-footer .divider { margin: 0 auto; width: 160px; color: rgb(209 187 130 / 0.6); }

/* ---------- Scroll animations (only when JS runs; script.js adds .is-visible as each part comes into view) ----------
   Animations use fill "backwards": they start hidden and, once finished, hand back to the normal styles,
   so hover effects keep working afterwards. */
.js .reveal:not(.is-visible) { opacity: 0; }
.js .reveal.is-visible { animation: sr-rise 0.9s cubic-bezier(0.2, 0.7, 0.2, 1) backwards; }

/* Section headings and the contact block: their parts arrive one after another; the gold ornament draws out */
.js .section-head.reveal.is-visible, .js .contact-inner.reveal.is-visible { animation: none; }
.js .section-head.reveal.is-visible > *, .js .contact-inner.reveal.is-visible > * {
  animation: sr-soft-rise 0.8s cubic-bezier(0.2, 0.7, 0.2, 1) backwards;
}
.js .reveal.is-visible > :nth-child(2) { animation-delay: 0.12s; }
.js .reveal.is-visible > :nth-child(3) { animation-delay: 0.24s; }
.js .reveal.is-visible > :nth-child(4) { animation-delay: 0.36s; }
.js .reveal.is-visible > :nth-child(5) { animation-delay: 0.48s; }
.js .reveal.is-visible > :nth-child(6) { animation-delay: 0.6s; }
.js .reveal.is-visible > .divider { animation-name: sr-draw-out; animation-duration: 1s; }
.js .contact-inner.reveal.is-visible > .email-link { animation-name: sr-pop-in; }

/* Cards rise in turn; each photo settles from a slight zoom */
.js .cards .reveal:nth-child(2), .js .cards .reveal:nth-child(2) .card-photo img { animation-delay: 0.12s; }
.js .cards .reveal:nth-child(3), .js .cards .reveal:nth-child(3) .card-photo img { animation-delay: 0.24s; }
.js .card.reveal.is-visible .card-photo img { animation: sr-photo-settle 1.8s cubic-bezier(0.2, 0.7, 0.2, 1) backwards; }

/* Verse: the parchment grows in gently, then the two lines and the source rise out of a soft blur */
.js .verse .reveal.is-visible { animation: sr-zoom-in 1.1s cubic-bezier(0.2, 0.7, 0.2, 1) backwards; }
.js .verse .reveal.is-visible blockquote p { animation: sr-soft-rise 1s cubic-bezier(0.2, 0.7, 0.2, 1) 0.3s backwards; }
.js .verse .reveal.is-visible blockquote cite { animation: sr-soft-rise 1s cubic-bezier(0.2, 0.7, 0.2, 1) 0.55s backwards; }
.js .verse .reveal.is-visible .corner { animation: sr-fade 1.2s ease 0.5s backwards; }

/* Numbers rise in turn and the gold lines between them grow from the middle */
.js .stats .reveal:nth-child(2) { animation-delay: 0.12s; }
.js .stats .reveal:nth-child(3) { animation-delay: 0.24s; }
.js .stats .reveal:nth-child(4) { animation-delay: 0.36s; }
.js .stat.reveal.is-visible::before { animation: sr-grow-y 1.1s cubic-bezier(0.2, 0.7, 0.2, 1) 0.4s backwards; }

/* Donation: the card rises in as one piece, then its contents arrive in reading order, navy side first */
.js .donate-card.reveal.is-visible :is(.donate-main, .donate-action) > * { animation: sr-soft-rise 0.8s cubic-bezier(0.2, 0.7, 0.2, 1) backwards; }
.js .donate-card.reveal.is-visible .donate-main > :nth-child(1) { animation-delay: 0.25s; }
.js .donate-card.reveal.is-visible .donate-main > :nth-child(2) { animation-delay: 0.35s; }
.js .donate-card.reveal.is-visible .donate-main > :nth-child(3) { animation-delay: 0.45s; }
.js .donate-card.reveal.is-visible .donate-main > :nth-child(4) { animation-delay: 0.55s; }
.js .donate-card.reveal.is-visible .donate-action > :nth-child(1) { animation-delay: 0.7s; }
.js .donate-card.reveal.is-visible .donate-action > :nth-child(2) { animation-delay: 0.8s; }
.js .donate-card.reveal.is-visible .donate-action > :nth-child(3) { animation-delay: 0.95s; }

@keyframes sr-rise { from { opacity: 0; transform: translateY(32px); } }
@keyframes sr-soft-rise { from { opacity: 0; transform: translateY(18px); filter: blur(6px); } }
@keyframes sr-draw-out { from { opacity: 0; transform: scaleX(0); } }
@keyframes sr-pop-in { from { opacity: 0; transform: scale(0.9); } }
@keyframes sr-photo-settle { from { transform: scale(1.18); } }
@keyframes sr-zoom-in { from { opacity: 0; transform: scale(0.95); } }
@keyframes sr-grow-y { from { transform: scaleY(0); } }
@keyframes sr-fade { from { opacity: 0; } }

/* Hero parallax as you scroll away (script.js sets --hero-shift to the scroll distance):
   the photo moves slower than the page, the headline drifts and fades */
.hero::after { translate: 0 calc(var(--hero-shift, 0) * 0.35px); }
.hero-inner { translate: 0 calc(var(--hero-shift, 0) * 0.22px); opacity: calc(1 - var(--hero-shift, 0) / 750); }

/* ---------- Small screens ---------- */
@media (max-width: 900px) {
  .header-end { gap: 10px; }
  .lang-switch { width: 38px; height: 38px; padding: 0; justify-content: center; border-radius: 50%; border: 1px solid rgb(209 187 130 / 0.45); }
  .lang-switch::before { display: none; }
  .lang-switch span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
  .header-end .btn-sm { padding: 0.45em 1em; font-size: 0.9rem; }
  .hero { padding: 112px 0 250px; min-height: 0; --hero-photo: url("img/hero-sm.webp"); --photo-h: 420px; --photo-size: auto 420px; }
  .hero-glow { width: 520px; height: 520px; }
  .logo-art { margin-top: 44px; }
  .cards { grid-template-columns: 1fr; max-width: 440px; margin-inline: auto; }
  .stats { grid-template-columns: repeat(2, 1fr); }
  .stat:nth-child(3)::before { display: none; }
  .stat:nth-child(n + 3) { border-top: 1px solid rgb(209 187 130 / 0.18); }
  .donate-card { grid-template-columns: 1fr; }
  .donate-main { padding: 40px 26px; }
  .donate-action { padding: 36px 24px 40px; box-shadow: inset 0 1px 0 rgb(255 250 230 / 0.5); }

  .nav-toggle {
    display: grid; gap: 5px; padding: 10px; background: none; border: 0; cursor: pointer;
  }
  .nav-toggle span { width: 24px; height: 2px; background: var(--gold-300); border-radius: 2px; transition: transform 0.25s ease, opacity 0.25s ease; }
  .nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
  .nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
  .nav {
    position: absolute; inset-inline: 0; top: 100%;
    flex-direction: column; align-items: stretch; gap: 0;
    background: var(--navy-950); padding: 8px 20px 24px;
    border-bottom: 1px solid rgb(209 187 130 / 0.2);
    display: none;
  }
  .nav.is-open { display: flex; }
  .nav a:not(.btn) { padding: 14px 0; border-bottom: 1px solid rgb(255 255 255 / 0.08); }
  .nav a:not(.btn)::after { display: none; }
}

@media (max-width: 560px) {
  .corner-tr { right: 8px; }
  .corner-bl { left: 8px; }
  .wrap { padding-inline: 16px; }
  .email-link { gap: 12px; padding: 12px 22px 12px 12px; }
  .email-icon { width: 44px; height: 44px; }
  .info-list { flex-direction: column; }
  .verse blockquote { padding: 56px 20px 48px; --verse-photo: url("img/verse-sm.webp"); }
  .stat { padding: 32px 8px 28px; }
  .stat-icon { width: 42px; height: 42px; margin-bottom: 14px; }
  .hero-actions .btn { flex: 1 1 100%; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .js .reveal:not(.is-visible) { opacity: 1; }
  .hero::after, .hero-inner { translate: none; opacity: 1; }
  /* Line-art logo: show it finished, without the running light */
  .logo-art .draw, .logo-art .name { stroke-dashoffset: 0; }
  .logo-art .name { fill: rgb(209 187 130 / 0.1); }
  .logo-art .tagline { opacity: 1; }
  .logo-art .run { display: none; }
}
