/* חסד יסובבנו — royal edition: night, ivory, gold */

/* ---------- fonts ---------- */
@font-face { font-family: 'Frank Ruhl Libre'; font-style: normal; font-weight: 400; font-display: swap; src: url(../fonts/frank-ruhl-libre-hebrew-400-normal.woff2) format('woff2'); unicode-range: U+0307-0308, U+0590-05FF, U+200C-2010, U+20AA, U+25CC, U+FB1D-FB4F; }
@font-face { font-family: 'Frank Ruhl Libre'; font-style: normal; font-weight: 400; font-display: swap; src: url(../fonts/frank-ruhl-libre-latin-400-normal.woff2) format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'Frank Ruhl Libre'; font-style: normal; font-weight: 500; font-display: swap; src: url(../fonts/frank-ruhl-libre-hebrew-500-normal.woff2) format('woff2'); unicode-range: U+0307-0308, U+0590-05FF, U+200C-2010, U+20AA, U+25CC, U+FB1D-FB4F; }
@font-face { font-family: 'Frank Ruhl Libre'; font-style: normal; font-weight: 500; font-display: swap; src: url(../fonts/frank-ruhl-libre-latin-500-normal.woff2) format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'Assistant'; font-style: normal; font-weight: 400; font-display: swap; src: url(../fonts/assistant-hebrew-400-normal.woff2) format('woff2'); unicode-range: U+0307-0308, U+0590-05FF, U+200C-2010, U+20AA, U+25CC, U+FB1D-FB4F; }
@font-face { font-family: 'Assistant'; font-style: normal; font-weight: 400; font-display: swap; src: url(../fonts/assistant-latin-400-normal.woff2) format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'Assistant'; font-style: normal; font-weight: 600; font-display: swap; src: url(../fonts/assistant-hebrew-600-normal.woff2) format('woff2'); unicode-range: U+0307-0308, U+0590-05FF, U+200C-2010, U+20AA, U+25CC, U+FB1D-FB4F; }
@font-face { font-family: 'Assistant'; font-style: normal; font-weight: 600; font-display: swap; src: url(../fonts/assistant-latin-600-normal.woff2) format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }

/* ---------- palettes: 3 palettes × light / dark. "night" = the band surfaces (hero, pillars, footer) ---------- */
/* every text pair here is checked to WCAG 2.2 AA by tools/contrast-check.cjs */

/* 1 · כחול עדין — powder blue, ivory, gold */
:root, :root[data-palette="sky"] {
  color-scheme: light;
  --ivory: #F8F6F0; --ivory-2: #EEF2F6; --paper: #FFFEFB;
  --ink: #1E2A3B; --ink-2: #46546A; --ink-3: #5B6779;
  --night: #DCE6F0; --night-2: #E6EDF5; --night-3: #F1F5F9; --night-rgb: 220 230 240;
  --on-night: #1E2A3B; --on-night-2: #3E4C61;
  --band-card-1: #F7FAFC; --band-card-2: #EBF1F7;
  --medal-1: #FFFFFF; --medal-2: #EEF2F6; --bmedal-1: #FFFFFF; --bmedal-2: #E6EDF5;
  --gold: #B8913F; --gold-lo: #8E6B24; --gold-ink: #7A5A17; --gold-hi: #74561A; --gold-rgb: 184 145 63;
  --g1: #F1DDA4; --g2: #D4AE5B; --g3: #B48A36; --g4: #E8CC86; --on-gold: #2A1E05;
  --title-1: #1E2A3B; --title-2: #6E5418;
  --field-bg: #F8F6F0; --field-border: #7D8899;
  --ok: #2F6B3F; --danger: #B3263A;
  --shadow-rgb: 30 42 59; --sheen: rgb(255 255 255 / .9);
  --dust: #B08A3E;
}
:root[data-palette="sky"][data-mode="dark"] {
  color-scheme: dark;
  --ivory: #151B26; --ivory-2: #1A2130; --paper: #1F2838;
  --ink: #EEF1F5; --ink-2: #C5CCD7; --ink-3: #A3ADBC;
  --night: #263346; --night-2: #2C3A50; --night-3: #34455F; --night-rgb: 38 51 70;
  --on-night: #F5F2EA; --on-night-2: #CDD4DF;
  --band-card-1: #31405A; --band-card-2: #2A374D;
  --medal-1: #2A3549; --medal-2: #1F2838; --bmedal-1: #3A4B68; --bmedal-2: #2A374D;
  --gold: #CBA65A; --gold-lo: #D9B970; --gold-ink: #E3C887; --gold-hi: #E8D29C; --gold-rgb: 203 166 90;
  --title-1: #FFFFFF; --title-2: #E2C47E;
  --field-bg: #151B26; --field-border: #6F7B8E;
  --ok: #8FD3A0; --danger: #FF9AA6;
  --shadow-rgb: 0 0 0; --sheen: rgb(255 255 255 / .05);
  --dust: #F0D58E;
}

/* 2 · ירוק מרווה — sage, linen, brass */
:root[data-palette="sage"] {
  color-scheme: light;
  --ivory: #F7F6EF; --ivory-2: #EDF2EC; --paper: #FFFEFA;
  --ink: #1F2B25; --ink-2: #46554C; --ink-3: #5A6A60;
  --night: #DCE7DD; --night-2: #E6EEE6; --night-3: #F1F6F0; --night-rgb: 220 231 221;
  --on-night: #1F2B25; --on-night-2: #3F5046;
  --band-card-1: #F7FAF6; --band-card-2: #EBF2EB;
  --medal-1: #FFFFFF; --medal-2: #EDF2EC; --bmedal-1: #FFFFFF; --bmedal-2: #E6EEE6;
  --gold: #A88A3E; --gold-lo: #83681F; --gold-ink: #6F5714; --gold-hi: #6A5313; --gold-rgb: 168 138 62;
  --g1: #EFE2AE; --g2: #CDB062; --g3: #A98C3A; --g4: #E2CF8A; --on-gold: #261D06;
  --title-1: #1F2B25; --title-2: #66501A;
  --field-bg: #F7F6EF; --field-border: #7B887F;
  --ok: #2F6B3F; --danger: #B3263A;
  --shadow-rgb: 31 43 37; --sheen: rgb(255 255 255 / .9);
  --dust: #A88A3E;
}
/* dark: every palette shares one night; the palette lives in its stone — emerald (ברקת) set in brass */
:root[data-palette="sage"][data-mode="dark"] {
  color-scheme: dark;
  --ivory: #151B26; --ivory-2: #1A2130; --paper: #1F2838;
  --ink: #EEF1F5; --ink-2: #C5CCD7; --ink-3: #A3ADBC;
  --night: #263346; --night-2: #2C3A50; --night-3: #34455F; --night-rgb: 38 51 70;
  --on-night: #F5F2EA; --on-night-2: #CDD4DF;
  --band-card-1: #31405A; --band-card-2: #2A374D;
  --medal-1: #2A3549; --medal-2: #1F2838; --bmedal-1: #3A4B68; --bmedal-2: #2A374D;
  --gold: #4CC596; --gold-lo: #5FD3A5; --gold-ink: #7FDDB5; --gold-hi: #9BE6C6; --gold-rgb: 76 197 150;
  --title-1: #FFFFFF; --title-2: #A8E8CB;
  --field-bg: #151B26; --field-border: #6F7B8E;
  --ok: #8FD3A0; --danger: #FF9AA6;
  --shadow-rgb: 0 0 0; --sheen: rgb(255 255 255 / .05);
  --dust: #9BE6C6;
}

/* 3 · סגול ערב — dusk mauve, pearl, rose gold */
:root[data-palette="dusk"] {
  color-scheme: light;
  --ivory: #F8F5F3; --ivory-2: #F1ECF2; --paper: #FFFEFC;
  --ink: #2A2230; --ink-2: #54485C; --ink-3: #685C70;
  --night: #E6DEEA; --night-2: #EEE8F1; --night-3: #F6F2F8; --night-rgb: 230 222 234;
  --on-night: #2A2230; --on-night-2: #4A3F52;
  --band-card-1: #FBF8FC; --band-card-2: #F1EBF4;
  --medal-1: #FFFFFF; --medal-2: #F1ECF2; --bmedal-1: #FFFFFF; --bmedal-2: #EEE8F1;
  --gold: #B4806A; --gold-lo: #935F4A; --gold-ink: #844F3B; --gold-hi: #7E4B37; --gold-rgb: 180 128 106;
  --g1: #F3D6C7; --g2: #DBA88F; --g3: #BE8269; --g4: #ECC6B2; --on-gold: #2E160C;
  --title-1: #2A2230; --title-2: #7E4B37;
  --field-bg: #F8F5F3; --field-border: #887C8F;
  --ok: #2F6B3F; --danger: #B3263A;
  --shadow-rgb: 42 34 48; --sheen: rgb(255 255 255 / .9);
  --dust: #B4806A;
}
/* dark: the shared night, with amethyst (אחלמה) set in rose gold */
:root[data-palette="dusk"][data-mode="dark"] {
  color-scheme: dark;
  --ivory: #151B26; --ivory-2: #1A2130; --paper: #1F2838;
  --ink: #EEF1F5; --ink-2: #C5CCD7; --ink-3: #A3ADBC;
  --night: #263346; --night-2: #2C3A50; --night-3: #34455F; --night-rgb: 38 51 70;
  --on-night: #F5F2EA; --on-night-2: #CDD4DF;
  --band-card-1: #31405A; --band-card-2: #2A374D;
  --medal-1: #2A3549; --medal-2: #1F2838; --bmedal-1: #3A4B68; --bmedal-2: #2A374D;
  --gold: #A77BE0; --gold-lo: #BC9AF0; --gold-ink: #CDB2F5; --gold-hi: #DCC8FA; --gold-rgb: 167 123 224;
  --title-1: #FFFFFF; --title-2: #D9C3F7;
  --field-bg: #151B26; --field-border: #6F7B8E;
  --ok: #8FD3A0; --danger: #FF9AA6;
  --shadow-rgb: 0 0 0; --sheen: rgb(255 255 255 / .05);
  --dust: #D7C2F7;
}

/* ---------- tokens ---------- */
:root {
  --gold-grad: linear-gradient(135deg, var(--g1) 0%, var(--g2) 38%, var(--g3) 62%, var(--g4) 100%);
  --focus: var(--gold-ink);

  --font-display: 'Frank Ruhl Libre', 'Times New Roman', serif;
  --font-body: 'Assistant', system-ui, -apple-system, 'Segoe UI', Arial, sans-serif;

  --gutter: max(20px, env(safe-area-inset-left), env(safe-area-inset-right));
  --radius: 22px;
  --header-h: 72px;
  --hair: 1px solid rgb(var(--gold-rgb) / .38);
  --lift:
    0 1px 0 var(--sheen) inset,
    0 1px 2px rgb(var(--shadow-rgb) / .06),
    0 18px 40px -22px rgb(var(--shadow-rgb) / .28),
    0 50px 90px -60px rgb(var(--shadow-rgb) / .35);
  --lift-hi:
    0 1px 0 var(--sheen) inset,
    0 2px 4px rgb(var(--shadow-rgb) / .06),
    0 28px 56px -24px rgb(var(--shadow-rgb) / .34),
    0 70px 120px -70px rgb(var(--shadow-rgb) / .4);
  --ease: cubic-bezier(.22, .61, .36, 1);
}
html { transition: background-color .4s var(--ease); }

/* ---------- base ---------- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-padding-top: calc(var(--header-h) + 28px); overflow-x: hidden; overflow-x: clip; -webkit-tap-highlight-color: rgb(var(--gold-rgb) / .14); }
html:not(.lenis) { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html:not(.lenis) { scroll-behavior: auto; } }
body {
  min-height: 100svh; background: var(--ivory); color: var(--ink);
  font-family: var(--font-body); font-size: 1.125rem; line-height: 1.75;
  text-rendering: optimizeLegibility; -webkit-font-smoothing: antialiased; overflow-x: hidden; overflow-x: clip;
}
@media (min-width: 1024px) { body { font-size: 1.1875rem; } }
img, svg, canvas { display: block; max-width: 100%; }
a { color: inherit; }
ul, ol { list-style: none; padding: 0; }
button, input, select, textarea { font: inherit; color: inherit; }
strong { font-weight: 600; }
::selection { background: rgb(var(--gold-rgb) / .3); }
:focus-visible { outline: 2px solid var(--focus); outline-offset: 3px; border-radius: 8px; }
.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }
.sr-only { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip-link { position: fixed; top: 12px; inset-inline-start: 12px; z-index: 100; padding: 10px 18px; border-radius: 999px; background: var(--night); color: var(--gold-hi); text-decoration: none; transform: translateY(-160%); transition: transform .2s; }
.skip-link:focus { transform: none; }
.container { width: min(1160px, 100% - 2 * var(--gutter)); margin-inline: auto; }
.container.narrow { max-width: 880px; }
.section { --sec-bg: var(--ivory); position: relative; padding-block: clamp(80px, 11vw, 140px); }
.section--alt { --sec-bg: var(--ivory-2); background: var(--ivory-2); }
.section--night { background: radial-gradient(120% 90% at 50% 0%, var(--night-3), var(--night) 70%); color: var(--on-night); }
/* faint damask of the emblem grid behind ivory sections */
.section--alt::before, .section--ivory::before {
  content: ''; position: absolute; inset: 0; pointer-events: none; opacity: .5;
  background-image: radial-gradient(circle at 1px 1px, rgb(var(--gold-rgb) / .22) 1px, transparent 1.4px);
  background-size: 28px 28px;
  mask-image: linear-gradient(180deg, transparent, #000 20%, #000 80%, transparent);
}
.section > .container { position: relative; }

/* ---------- ornaments ---------- */
.orn { width: 160px; height: 14px; color: var(--gold); }
.section--night .orn { color: var(--gold-hi); }

/* ---------- section headings: no box — the title sits on a gold rule that fades out from two diamonds ---------- */
.cartouche {
  display: grid; justify-items: center; gap: 14px;
  width: min(100%, 820px); margin: 0 auto clamp(44px, 6vw, 72px); text-align: center;
}
.cartouche .title { display: grid; grid-template-columns: minmax(28px, 1fr) auto minmax(28px, 1fr); align-items: center; gap: clamp(16px, 3vw, 34px); width: 100%; }
.cartouche .title::before, .cartouche .title::after {
  content: ''; height: 9px; background: var(--gold);
  -webkit-mask-repeat: no-repeat; mask-repeat: no-repeat;
}
/* RTL grid: ::before is the right-hand rule, ::after the left-hand one; each diamond faces the title */
.cartouche .title::before {
  -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 10 10'%3E%3Cpath d='M5 0l5 5-5 5-5-5z'/%3E%3C/svg%3E"), linear-gradient(to left, transparent, #000 85%);
  mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 10 10'%3E%3Cpath d='M5 0l5 5-5 5-5-5z'/%3E%3C/svg%3E"), linear-gradient(to left, transparent, #000 85%);
  -webkit-mask-position: left center, right center; mask-position: left center, right center;
  -webkit-mask-size: 9px 9px, calc(100% - 14px) 1px; mask-size: 9px 9px, calc(100% - 14px) 1px;
}
.cartouche .title::after {
  -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 10 10'%3E%3Cpath d='M5 0l5 5-5 5-5-5z'/%3E%3C/svg%3E"), linear-gradient(to right, transparent, #000 85%);
  mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 10 10'%3E%3Cpath d='M5 0l5 5-5 5-5-5z'/%3E%3C/svg%3E"), linear-gradient(to right, transparent, #000 85%);
  -webkit-mask-position: right center, left center; mask-position: right center, left center;
  -webkit-mask-size: 9px 9px, calc(100% - 14px) 1px; mask-size: 9px 9px, calc(100% - 14px) 1px;
}
.section--night .cartouche .title::before, .section--night .cartouche .title::after { background: var(--gold-hi); }
.cartouche .kicker { display: inline-flex; align-items: center; gap: 10px; padding: 5px 16px; border-radius: 999px; border: 1px solid rgb(var(--gold-rgb) / .45); background: rgb(var(--gold-rgb) / .08); font-size: .88rem; letter-spacing: .08em; }
.section--night .cartouche .kicker { border-color: rgb(var(--gold-rgb) / .55); }
.cartouche .lede { max-width: 46ch; margin-top: 2px; }
.kicker { font-weight: 600; font-size: .9rem; letter-spacing: .22em; color: var(--gold-ink); }
.section--night .kicker { color: var(--gold-hi); }
.title { font-family: var(--font-display); font-weight: 500; font-size: clamp(2rem, 4vw, 3rem); line-height: 1.15; }
.lede { max-width: 50ch; color: var(--ink-2); font-size: 1.08rem; line-height: 1.65; }
.section--night .lede { color: var(--on-night-2); }

/* ---------- buttons ---------- */
.btn {
  position: relative; display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 52px; padding: 13px 32px; border: 0; border-radius: 999px;
  font-weight: 600; font-size: 1.0625rem; line-height: 1.2; letter-spacing: .01em;
  text-decoration: none; cursor: pointer; white-space: nowrap;
  color: var(--on-gold); background: var(--gold-grad); background-size: 200% 100%; background-position: 0 0;
  box-shadow: inset 0 1px 0 rgb(255 255 255 / .55), inset 0 -2px 0 rgb(0 0 0 / .12), 0 14px 30px -14px rgb(var(--gold-rgb) / .8);
  transition: transform .3s var(--ease), box-shadow .3s var(--ease), background-position .6s var(--ease);
}
/* touch screens keep :hover after a tap, so the lift only applies with a real pointer */
@media (hover: hover) { .btn:hover { transform: translateY(-2px); background-position: 100% 0; box-shadow: inset 0 1px 0 rgb(255 255 255 / .6), inset 0 -2px 0 rgb(0 0 0 / .12), 0 20px 40px -16px rgb(var(--gold-rgb) / .9); } }
.btn:active { transform: translateY(1px); }
.btn--line { color: var(--ink); background: transparent; box-shadow: inset 0 0 0 1px var(--gold-lo); }
.btn--line:hover { background: rgb(var(--gold-rgb) / .12); box-shadow: inset 0 0 0 1.5px var(--gold-lo); }
.section--night .btn--line, .hero .btn--line { color: var(--on-night); box-shadow: inset 0 0 0 1px var(--gold-hi); }
.btn--sm { min-height: 42px; padding: 8px 22px; font-size: .95rem; }
.btn--lg { min-height: 60px; padding: 16px 44px; font-size: 1.15rem; }
.btn--block { width: 100%; }
.btn svg { flex: none; }
.icon-btn { display: inline-grid; place-items: center; flex: none; width: 46px; height: 46px; border: 0; border-radius: 50%; background: transparent; color: var(--on-night); box-shadow: inset 0 0 0 1px rgb(var(--gold-rgb) / .5); cursor: pointer; }
.icon-btn--wa { color: #fff; background: #1FA855; box-shadow: 0 12px 26px -12px rgb(31 168 85 / .7); }

/* ---------- header ---------- */
/* separated from the first frame: soft veil + gold hairline; scrolling only deepens the veil */
.site-header { position: fixed; z-index: 50; top: 0; inset-inline: 0; background: rgb(var(--night-rgb) / .62); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); box-shadow: 0 1px 0 rgb(var(--gold-rgb) / .4), 0 10px 28px -22px rgb(var(--shadow-rgb) / .4); transition: background-color .4s var(--ease), box-shadow .4s var(--ease); }
/* three columns on every width: equal pills on the sides, nav (desktop) or menu (phones) exactly centred */
.header-bar { width: min(1160px, 100% - 2 * var(--gutter)); height: var(--header-h); margin-inline: auto; display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 12px; color: var(--on-night); }
.scrolled .site-header { background: rgb(var(--night-rgb) / .97); box-shadow: 0 1px 0 rgb(var(--gold-rgb) / .5), 0 14px 34px -22px rgb(var(--shadow-rgb) / .55); }
.head-pill { width: 128px; padding-inline: 12px; }
.head-pill--start { grid-column: 1; justify-self: start; }
.head-pill--end { grid-column: 3; justify-self: end; }
.nav, .menu-btn { grid-column: 2; grid-row: 1; }
.menu-btn { width: 52px; height: 52px; }
.nav { display: none; gap: 2px; }
.nav a { position: relative; padding: 8px 14px; text-decoration: none; font-weight: 600; font-size: .98rem; color: var(--on-night-2); transition: color .2s; }
.nav a::after { content: ''; position: absolute; bottom: 2px; left: 50%; width: 0; height: 1px; background: var(--gold-hi); transition: width .3s var(--ease), left .3s var(--ease); }
.nav a:hover, .nav a[aria-current="true"] { color: var(--on-night); }
.nav a:hover::after, .nav a[aria-current="true"]::after { left: 14px; width: calc(100% - 28px); }
@media (min-width: 1024px) { .nav { display: flex; } .menu-btn { display: none; } .header-bar { gap: 16px; } }
@media (max-width: 400px) { .head-pill { width: 116px; font-size: .9rem; } .menu-btn { width: 48px; height: 48px; } }
@media (max-width: 360px) { .header-bar { gap: 8px; } .head-pill { width: 104px; padding-inline: 8px; font-size: .85rem; } .menu-btn { width: 44px; height: 44px; } }
/* once scrolling, the bar slims down so it takes little of a phone screen */
.header-bar { transition: height .35s var(--ease); }
.head-pill { transition: min-height .35s var(--ease), padding .35s var(--ease), font-size .35s var(--ease), transform .3s var(--ease), box-shadow .3s var(--ease), background-position .6s var(--ease); }
.menu-btn, .menu-btn svg { transition: width .35s var(--ease), height .35s var(--ease); }
.scrolled .header-bar { height: 58px; }
.scrolled .head-pill { min-height: 36px; padding-block: 6px; }
.scrolled .menu-btn { width: 40px; height: 40px; }
.scrolled .menu-btn svg { width: 22px; height: 22px; }
@media (max-width: 767px) {
  .scrolled .header-bar { height: 50px; }
  .scrolled .head-pill { min-height: 34px; padding-block: 4px; font-size: .85rem; }
  .scrolled .menu-btn { width: 36px; height: 36px; }
  .scrolled .menu-btn svg { width: 20px; height: 20px; }
}

/* ---------- menu ---------- */
.menu { width: min(92vw, 420px); margin: auto; padding: 60px 28px 32px; border: var(--hair); border-radius: 26px; background: var(--night); color: var(--on-night); box-shadow: 0 40px 90px -30px rgb(var(--shadow-rgb) / .5); }
.menu::backdrop { background: rgb(var(--shadow-rgb) / .45); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); }
.menu-close { position: absolute; top: 14px; inset-inline-end: 14px; }
.menu-nav { display: grid; gap: 4px; text-align: center; }
.menu-nav a { padding: 10px 16px; text-decoration: none; font-family: var(--font-display); font-size: 1.55rem; }
.menu-nav a:hover { color: var(--gold-hi); }
.menu .orn { margin: 18px auto; }

/* ---------- hero: real photos, a Jerusalem-stone plaque, and the essentials beside it ---------- */
/* the hero is always a dark photo band, in every palette and mode */
.hero { --veil: 13 21 35; position: relative; overflow: clip; color: #F5F2EA; background: rgb(var(--veil)); }
.hero-media { position: absolute; inset: 0; }
.hero-slide, .hero-slide img { position: absolute; inset: 0; width: 100%; height: 100%; }
.hero-slide img { object-fit: cover; object-position: 35% 45%; }
.hero-slide { opacity: 0; }
.hero-slide:first-child { opacity: 1; }
/* three photos cross-fade every 8s while slowly drawing back (Ken Burns) */
.motion .hero-slide { animation: hero-slide 24s linear infinite backwards; }
.motion .hero-slide:nth-child(1) { animation-delay: -1.6s; }
.motion .hero-slide:nth-child(2) { animation-delay: 6.4s; }
.motion .hero-slide:nth-child(3) { animation-delay: 14.4s; }
@keyframes hero-slide {
  0% { opacity: 0; transform: scale(1.14); }
  6% { opacity: 1; }
  33.3% { opacity: 1; }
  41% { opacity: 0; transform: scale(1); }
  100% { opacity: 0; transform: scale(1); }
}
.hero::before { content: ''; position: absolute; inset: 0; z-index: 1; pointer-events: none;
  background:
    linear-gradient(to left, rgb(var(--veil) / .94) 0%, rgb(var(--veil) / .82) 36%, rgb(var(--veil) / .3) 66%, rgb(var(--veil) / .08) 100%),
    linear-gradient(to top, rgb(var(--veil) / .75), transparent 42%); }
.hero-stage { position: relative; z-index: 2; width: min(1240px, 100% - 2 * var(--gutter)); min-height: 100svh; margin-inline: auto; display: grid; align-items: center; padding: calc(var(--header-h) + 40px) 0 110px; }
.hero-copy { width: min(100%, 540px); display: grid; justify-items: center; gap: 20px; text-align: center; }

/* the plaque: warm limestone with grain and veins, a chiselled inner rule, letters cut in and gilded */
.plaque {
  position: relative; isolation: isolate; overflow: hidden; width: 100%;
  padding: clamp(28px, 3.4vw, 40px) clamp(20px, 3vw, 40px) clamp(24px, 3vw, 34px); border-radius: 8px;
  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='.85' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 .42 0 0 0 0 .33 0 0 0 0 .2 0 0 0 .2 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url%28%23n%29'/%3E%3C/svg%3E"),
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='600' height='300'%3E%3Cfilter id='v'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.008 .03' numOctaves='4' seed='7'/%3E%3CfeColorMatrix values='0 0 0 0 .55 0 0 0 0 .45 0 0 0 0 .3 0 0 0 .35 -.05'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url%28%23v%29'/%3E%3C/svg%3E") center / cover,
    radial-gradient(130% 100% at 28% 18%, #F6EEDC 0%, #E8DABE 52%, #D6C29B 100%);
  box-shadow:
    inset 0 1px 0 rgb(255 255 255 / .75), inset 0 -3px 6px rgb(110 80 30 / .22),
    0 0 0 1px rgb(160 122 52 / .7), 0 0 0 5px rgb(245 235 210 / .14),
    0 40px 80px -28px rgb(0 0 0 / .8), 0 14px 28px -14px rgb(0 0 0 / .5);
}
.plaque::before { content: ''; position: absolute; inset: 11px; z-index: -1; border-radius: 4px; pointer-events: none; box-shadow: inset 0 1px 0 rgb(120 88 32 / .45), inset 0 -1px 0 rgb(255 255 255 / .7), 0 1px 0 rgb(255 255 255 / .6), 0 -1px 0 rgb(120 88 32 / .35); }
/* one slow light sweep across the stone */
.plaque::after { content: ''; position: absolute; inset: 0; pointer-events: none; opacity: 0; background: linear-gradient(110deg, transparent 38%, rgb(255 255 255 / .55) 50%, transparent 62%) 0 0 / 260% 100% no-repeat; mix-blend-mode: soft-light; }
.motion .plaque::after { animation: plaque-sheen 2.6s 1.2s var(--ease) both; }
@keyframes plaque-sheen { 0% { opacity: 1; background-position: 120% 0; } 85% { opacity: 1; } 100% { opacity: 0; background-position: -20% 0; } }
.hero-title {
  font-family: var(--font-display); font-weight: 500; font-size: clamp(3rem, 7vw, 5.4rem); line-height: 1.05; letter-spacing: -.005em;
  background: linear-gradient(180deg, #A07A2A 0%, #6B4C12 46%, #8A6820 54%, #553C0C 100%); -webkit-background-clip: text; background-clip: text; color: transparent;
  filter: drop-shadow(0 1.5px 0 rgb(255 250 236 / .9)) drop-shadow(0 -1px 0 rgb(60 42 10 / .35));
}
.hero-sub { margin-top: 8px; font-family: var(--font-display); font-size: clamp(1.25rem, 2.3vw, 1.6rem); color: #4E3B17; text-shadow: 0 1px 0 rgb(255 250 236 / .8); }
.hero-verse { font-family: var(--font-display); font-size: clamp(1.1rem, 1.8vw, 1.3rem); letter-spacing: .03em; color: #E9CF93; text-shadow: 0 2px 12px rgb(0 0 0 / .5); }
.hero-lead { font-family: var(--font-display); font-size: clamp(1.15rem, 2vw, 1.4rem); color: #F5F2EA; text-shadow: 0 2px 14px rgb(0 0 0 / .6); }
.hero-facts { display: grid; grid-template-columns: repeat(3, 1fr); width: 100%; padding-block: 14px; border-block: 1px solid rgb(233 207 147 / .35); }
.hero-facts li { display: grid; gap: 2px; }
.hero-facts li + li { border-inline-start: 1px solid rgb(233 207 147 / .3); }
.hero-facts b { font-family: var(--font-display); font-weight: 500; font-size: clamp(1.6rem, 3vw, 2.1rem); line-height: 1.1; color: #E9CF93; }
.hero-facts span { font-size: .95rem; color: rgb(245 242 234 / .88); }
.hero-ctas { display: flex; flex-wrap: wrap; justify-content: center; gap: 14px; margin-top: 4px; }
.hero .btn--line { color: #F5F2EA; box-shadow: inset 0 0 0 1px rgb(233 207 147 / .85); }
.hero .btn--line:hover { background: rgb(233 207 147 / .14); }
.motion .hero-copy > * { animation: rise 1.1s var(--ease) both; }
.motion .hero-copy > :nth-child(2) { animation-delay: .12s; } .motion .hero-copy > :nth-child(3) { animation-delay: .3s; }
.motion .hero-copy > :nth-child(4) { animation-delay: .42s; } .motion .hero-copy > :nth-child(5) { animation-delay: .54s; }
@keyframes rise { from { opacity: 0; transform: translateY(18px); } }
.scroll-cue { position: absolute; z-index: 2; bottom: 26px; left: 50%; translate: -50% 0; width: 1px; height: 54px; background: linear-gradient(180deg, transparent, #E9CF93); opacity: calc(.8 - var(--hero-p, 0) * 3); }
.motion .scroll-cue { animation: cue 2.4s ease-in-out infinite; transform-origin: top; }
@keyframes cue { 0% { transform: scaleY(0); } 50% { transform: scaleY(1); } 100% { transform: scaleY(1); opacity: 0; } }
@media (max-width: 767px) {
  .hero::before { background: linear-gradient(to top, rgb(var(--veil) / .96) 0%, rgb(var(--veil) / .86) 48%, rgb(var(--veil) / .35) 78%, rgb(var(--veil) / .25) 100%); }
  .hero-slide img { object-position: 30% 62%; }
  .hero-stage { align-items: end; padding: calc(var(--header-h) + 120px) 0 64px; }
  .hero-copy { width: 100%; gap: 16px; }
  .hero-ctas { width: 100%; }
  .hero-ctas .btn { flex: 1 1 100%; }
  .scroll-cue { display: none; }
}

/* ---------- photo band ---------- */
.band { position: relative; overflow: clip; display: grid; place-items: center; min-height: clamp(460px, 78vh, 760px); color: #F5F2EA; background: #0D1523; text-align: center; }
.band-photo { position: absolute; inset: -12% 0; }
.band-photo img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 40%; }
.band::before { content: ''; position: absolute; inset: 0; z-index: 1; background: radial-gradient(70% 80% at 50% 55%, rgb(13 21 35 / .5), rgb(13 21 35 / .85)); }
.band-copy { position: relative; z-index: 2; display: grid; justify-items: center; gap: 14px; padding: 80px var(--gutter); }
.band-verse { font-family: var(--font-display); font-weight: 500; font-size: clamp(2.6rem, 7vw, 5.2rem); line-height: 1.15; color: #F3DFAE; filter: drop-shadow(0 4px 22px rgb(0 0 0 / .55)); }
.band-src { font-size: .95rem; letter-spacing: .12em; color: rgb(245 242 234 / .8); }
.band .btn { margin-top: 12px; }

/* ---------- pillar photos ---------- */
.pillars-grid .pillar { padding-top: 0; overflow: hidden; }
.pillar::before { z-index: 1; }
.p-photo { justify-self: stretch; display: block; margin-inline: -22px; aspect-ratio: 3 / 2; overflow: hidden; }
.p-photo img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--ease); }
@media (hover: hover) { .pillar:hover .p-photo img { transform: scale(1.07); } }
.pillar .p-num { position: absolute; top: 14px; inset-inline-start: 18px; z-index: 1; padding: 2px 10px; border-radius: 999px; background: rgb(13 21 35 / .55); color: #F3DFAE; -webkit-backdrop-filter: blur(4px); backdrop-filter: blur(4px); }
.pillar .medal { position: relative; margin-top: -40px; }

/* ---------- section titles: rules draw in from the title, words rise one by one ---------- */
.motion .cartouche .title::before, .motion .cartouche .title::after { transform: scaleX(0); transition: transform 1.4s .25s var(--ease); }
.motion .cartouche .title::before { transform-origin: left center; }
.motion .cartouche .title::after { transform-origin: right center; }
.motion .cartouche.is-in .title::before, .motion .cartouche.is-in .title::after { transform: none; }

/* ---------- cards ---------- */
.card { position: relative; background: var(--paper); border-radius: var(--radius); border: 1px solid rgb(var(--gold-rgb) / .3); box-shadow: var(--lift); }
.card::before { content: ''; position: absolute; inset: 7px; border-radius: calc(var(--radius) - 6px); border: 1px solid rgb(var(--gold-rgb) / .16); pointer-events: none; }
.card--night { background: linear-gradient(180deg, var(--band-card-1), var(--band-card-2)); border-color: rgb(var(--gold-rgb) / .35); color: var(--on-night); box-shadow: 0 1px 0 var(--sheen) inset, 0 30px 70px -40px rgb(var(--shadow-rgb) / .55); }
.card--night::before { border-color: rgb(var(--gold-rgb) / .14); }
.lift { transition: transform .5s var(--ease), box-shadow .5s var(--ease); }
@media (hover: hover) { .lift:hover { transform: translateY(-6px); box-shadow: var(--lift-hi); } }

/* medallion icon */
.medal { display: inline-grid; place-items: center; flex: none; width: 64px; height: 64px; border-radius: 50%; background: radial-gradient(circle at 35% 30%, var(--medal-1), var(--medal-2) 70%); box-shadow: 0 0 0 1px rgb(var(--gold-rgb) / .6), 0 0 0 5px var(--paper), 0 0 0 6px rgb(var(--gold-rgb) / .35), 0 14px 26px -12px rgb(var(--shadow-rgb) / .35); }
.medal svg { color: var(--gold-lo); }
.card--night .medal, .section--night .medal { background: radial-gradient(circle at 35% 30%, var(--bmedal-1), var(--bmedal-2) 75%); box-shadow: 0 0 0 1px rgb(var(--gold-rgb) / .7), 0 0 0 5px var(--band-card-2), 0 0 0 6px rgb(var(--gold-rgb) / .3), 0 14px 26px -12px rgb(var(--shadow-rgb) / .45); }
.card--night .medal svg, .section--night .medal svg { color: var(--gold-hi); }
.medal--sm { width: 48px; height: 48px; }

/* ---------- stats ---------- */
.stats-grid { display: grid; grid-template-columns: repeat(4, 1fr); }
.stats-band { padding: 8px; }
.stat { position: relative; display: grid; justify-items: center; gap: 2px; padding: 26px 12px; text-align: center; }
.stat + .stat::before { content: ''; position: absolute; inset-block: 26%; inset-inline-start: 0; width: 1px; background: linear-gradient(180deg, transparent, rgb(var(--gold-rgb) / .5), transparent); }
.stat-num { font-family: var(--font-display); font-weight: 500; font-size: clamp(2.2rem, 4vw, 3rem); line-height: 1.05; color: var(--ink); }
.stat-label { font-weight: 600; font-size: .98rem; color: var(--ink-2); }
@media (max-width: 767px) {
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .stat:nth-child(3)::before { display: none; }
  .stat:nth-child(n+3) { border-top: 1px solid rgb(var(--gold-rgb) / .25); }
}

/* ---------- about ---------- */
.about-panel { display: grid; justify-items: center; gap: 18px; padding: clamp(36px, 5vw, 60px); text-align: center; }
.about-badge { padding: 6px 20px; border-radius: 999px; border: 1px solid var(--gold-lo); font-weight: 600; font-size: .95rem; letter-spacing: .04em; color: var(--gold-ink); }
.about-panel p { max-width: 62ch; color: var(--ink-2); }
.about-panel .lead { font-family: var(--font-display); font-size: clamp(1.25rem, 2vw, 1.45rem); line-height: 1.6; color: var(--ink); }
/* the full logo always sits on its own ivory plaque, so its dark lettering reads in every mode */
.logo-plaque { position: relative; width: min(100%, 330px); margin: 4px 0 8px; padding: 30px 30px 26px; border-radius: 6px; background: linear-gradient(180deg, #FFFEFA, #F7F1E3); box-shadow: 0 0 0 1px #C9A14A, 0 0 0 6px #FFFDF7, 0 0 0 7px rgb(201 161 74 / .55), 0 26px 50px -26px rgb(var(--shadow-rgb) / .5); }
[data-mode="dark"] .logo-plaque { box-shadow: 0 0 0 1px #C9A14A, 0 0 0 6px #FFFDF7, 0 0 0 7px rgb(201 161 74 / .55), 0 0 80px -24px rgb(var(--gold-rgb) / .55), 0 30px 60px -30px rgb(0 0 0 / .7); }
.logo-plaque img { display: block; width: 100%; height: auto; }
.lp-corner { position: absolute; z-index: 1; width: 10px; height: 10px; rotate: 45deg; background: #C9A14A; }
.lp-corner:nth-of-type(1) { top: -12px; inset-inline-start: -12px; }
.lp-corner:nth-of-type(2) { top: -12px; inset-inline-end: -12px; }
.lp-corner:nth-of-type(3) { bottom: -12px; inset-inline-start: -12px; }
.lp-corner:nth-of-type(4) { bottom: -12px; inset-inline-end: -12px; }
@media (max-width: 480px) { .logo-plaque { width: min(100%, 260px); padding: 24px 22px 20px; } }

/* ---------- pillars (night) ---------- */
.pillars-grid { display: flex; flex-wrap: wrap; justify-content: center; gap: 22px; }
.pillar { flex: 0 1 calc((100% - 66px) / 4); min-width: 236px; display: grid; justify-items: center; align-content: start; gap: 12px; padding: 36px 22px 30px; text-align: center; }
.pillar h3 { font-family: var(--font-display); font-weight: 500; font-size: 1.35rem; line-height: 1.25; }
.pillar p { color: var(--on-night-2); font-size: 1rem; line-height: 1.6; }
.pillar .medal { margin-bottom: 6px; }
.p-num { font-family: var(--font-display); font-size: 1rem; letter-spacing: .06em; color: var(--gold-hi); }
@media (hover: hover) { .pillar.lift:hover { box-shadow: 0 36px 80px -40px rgb(var(--shadow-rgb) / .6), 0 0 0 1px rgb(var(--gold-rgb) / .5); } }
@media (max-width: 1023px) { .pillar { flex-basis: calc((100% - 22px) / 2); } }
@media (max-width: 560px) { .pillar { flex-basis: 100%; min-width: 0; } }

/* ---------- timeline ---------- */
.tl { position: relative; display: grid; gap: 30px; padding-block: 8px; }
.tl::before { content: ''; position: absolute; top: 0; bottom: 0; left: 50%; width: 1px; background: rgb(var(--gold-rgb) / .3); }
.tl--draw::after { content: ''; position: absolute; top: 0; left: 50%; width: 2px; margin-left: -.5px; height: calc(var(--draw, 0) * 100%); background: linear-gradient(180deg, var(--gold-hi), var(--gold)); }
.tl-item { position: relative; display: grid; grid-template-columns: 1fr 72px 1fr; align-items: center; }
.tl-dot { grid-column: 2; grid-row: 1; z-index: 1; justify-self: center; width: 14px; height: 14px; rotate: 45deg; background: var(--gold); box-shadow: 0 0 0 5px var(--sec-bg), 0 0 0 6px rgb(var(--gold-rgb) / .5); }
.tl-card { grid-row: 1; display: grid; gap: 6px; padding: 26px 30px; }
.tl-item:nth-child(odd) .tl-card { grid-column: 1; }
.tl-item:nth-child(even) .tl-card { grid-column: 3; }
.tl-year { font-family: var(--font-display); font-weight: 500; font-size: 1.7rem; color: var(--gold-ink); line-height: 1.1; }
.tl-card p { color: var(--ink-2); font-size: 1.02rem; }
@media (max-width: 767px) {
  .tl::before, .tl--draw::after { left: auto; inset-inline-start: 14px; margin-left: 0; }
  .tl-item { grid-template-columns: 30px 1fr; gap: 14px; }
  .tl-dot { grid-column: 1; width: 12px; height: 12px; }
  .tl-item:nth-child(odd) .tl-card, .tl-item:nth-child(even) .tl-card { grid-column: 2; }
  .tl-card { padding: 22px 24px; }
}

/* ---------- thanks: letters ---------- */
.letters { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; align-items: stretch; }
.letter { position: relative; display: grid; grid-template-rows: 1fr auto; gap: 16px; padding: 44px 30px 28px; text-align: center; background: linear-gradient(180deg, var(--paper), var(--ivory)); }
.letter::after { content: ''; position: absolute; top: -17px; left: 50%; width: 34px; height: 34px; margin-left: -17px; border-radius: 50%; background: radial-gradient(circle at 35% 30%, var(--g1), var(--g2) 55%, var(--g3)); box-shadow: inset 0 0 0 4px rgb(255 255 255 / .18), 0 8px 16px -6px rgb(var(--gold-rgb) / .7); }
.letter p { font-family: var(--font-display); font-size: 1.2rem; line-height: 1.65; color: var(--ink); }
.letter footer { padding-top: 14px; border-top: 1px solid rgb(var(--gold-rgb) / .3); font-size: .92rem; color: var(--ink-3); }
@media (max-width: 899px) { .letters { grid-template-columns: 1fr; max-width: 560px; margin-inline: auto; gap: 36px; } }

/* ---------- donate ---------- */
.appeal { display: grid; justify-items: center; gap: 18px; padding: clamp(44px, 6vw, 72px) clamp(24px, 5vw, 64px); text-align: center; }
.appeal-title { font-family: var(--font-display); font-weight: 500; font-size: clamp(2.1rem, 4.6vw, 3.2rem); line-height: 1.15; }
.appeal-text { max-width: 46ch; color: var(--on-night-2); font-size: 1.12rem; }
.appeal-sub { font-size: .95rem; color: var(--on-night-2); }

/* ---------- contact ---------- */
.contact-grid { display: grid; grid-template-columns: 1.2fr .8fr; gap: 24px; align-items: start; }
.form { display: grid; gap: 18px; padding: clamp(28px, 4vw, 44px); }
.field { display: grid; gap: 6px; }
.field label { font-weight: 600; font-size: .95rem; color: var(--ink-2); }
.field input, .field select, .field textarea { width: 100%; min-height: 52px; padding: 12px 18px; border: 1px solid var(--field-border); border-radius: 14px; background: var(--field-bg); color: var(--ink); transition: border-color .2s, box-shadow .2s; }
.field textarea { min-height: 128px; resize: vertical; }
.field input::placeholder, .field textarea::placeholder { color: var(--ink-3); }
.field input:focus-visible, .field select:focus-visible, .field textarea:focus-visible { outline: 2px solid var(--focus); outline-offset: 1px; border-color: var(--gold-lo); }
.field [aria-invalid="true"] { border-color: var(--danger); box-shadow: 0 0 0 1px var(--danger); }
.select { position: relative; }
.select select { appearance: none; -webkit-appearance: none; padding-inline-end: 44px; cursor: pointer; }
.select::after { content: ''; position: absolute; top: 50%; inset-inline-end: 20px; width: 8px; height: 8px; border-right: 1.5px solid var(--gold-lo); border-bottom: 1.5px solid var(--gold-lo); transform: translateY(-65%) rotate(45deg); pointer-events: none; }
.form .btn.is-sent { color: var(--ok); background: transparent; box-shadow: inset 0 0 0 1px var(--ok); }
.contact-cards { display: grid; gap: 16px; }
.c-card { display: flex; align-items: center; gap: 16px; padding: 20px 22px; text-decoration: none; }
.c-label { display: block; font-size: .85rem; color: var(--ink-3); }
.c-val { display: block; font-weight: 600; }
.c-card [dir="ltr"] { text-align: right; }
.c-card--wa { justify-content: space-between; }
.wa-nums { display: flex; flex-wrap: wrap; align-items: center; gap: 2px 10px; }
.wa-nums a { text-decoration: none; }
.wa-nums a:hover { text-decoration: underline; text-underline-offset: 3px; }
.foot-wa { display: inline-flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 4px 8px; }
.foot-wa svg { color: var(--gold-hi); }
@media (max-width: 899px) { .contact-grid { grid-template-columns: 1fr; } }

/* ---------- footer ---------- */
.site-footer { padding: clamp(64px, 8vw, 96px) 0 110px; background: var(--night); color: var(--on-night-2); }
@media (min-width: 1024px) { .site-footer { padding-bottom: 56px; } }
.footer-top { display: grid; justify-items: center; gap: 14px; text-align: center; padding-bottom: 40px; border-bottom: 1px solid rgb(var(--gold-rgb) / .25); }
.footer-mark { width: 56px; height: auto; filter: drop-shadow(0 8px 16px rgb(var(--shadow-rgb) / .3)); }
.footer-name { font-family: var(--font-display); font-weight: 500; font-size: 1.8rem; color: var(--on-night); }
.footer-cols { display: grid; grid-template-columns: repeat(2, 1fr); gap: 28px; width: min(100%, 720px); margin-inline: auto; padding-top: 36px; text-align: center; }
.footer-col-title { font-weight: 600; font-size: .85rem; letter-spacing: .2em; color: var(--gold-hi); margin-bottom: 12px; }
.footer-cols ul { display: grid; gap: 6px; justify-items: center; }
.footer-cols a { text-decoration: none; }
.footer-cols a:hover { color: var(--gold-hi); }
.footer-cta { margin-top: 10px; }
.footer-tagline { max-width: 52ch; }
.foot-bottom { display: grid; justify-items: center; gap: 8px; margin-top: 40px; text-align: center; font-size: .92rem; }
.foot-verse { font-family: var(--font-display); color: var(--gold-hi); font-size: 1.1rem; }
@media (max-width: 767px) { .footer-cols { grid-template-columns: 1fr; } }

/* ---------- floating ---------- */
.fab-wa { position: fixed; z-index: 40; bottom: max(20px, env(safe-area-inset-bottom)); inset-inline-start: var(--gutter); width: 56px; height: 56px; display: none; }
.sticky-cta { position: fixed; z-index: 40; inset-inline: var(--gutter); bottom: max(12px, env(safe-area-inset-bottom)); display: flex; align-items: center; gap: 10px; padding: 8px; border-radius: 999px; background: rgb(var(--night-rgb) / .94); -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); box-shadow: 0 0 0 1px rgb(var(--gold-rgb) / .35), 0 20px 50px -20px rgb(var(--shadow-rgb) / .5); transform: translateY(150%); transition: transform .5s var(--ease); }
.sticky-cta .btn { flex: 1; }
.past-hero:not(.ui-hidden) .sticky-cta { transform: none; }
@media (min-width: 1024px) { .fab-wa { display: inline-grid; } .sticky-cta { display: none; } }

/* theme: light/dark switch + three palettes (dock on desktop, row in the menu on phones) */
.theme-dock { position: fixed; z-index: 40; bottom: max(20px, env(safe-area-inset-bottom)); inset-inline-end: var(--gutter); display: none; align-items: center; gap: 2px; padding: 5px; border-radius: 999px; color: var(--on-night); background: rgb(var(--night-rgb) / .92); -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); box-shadow: 0 0 0 1px rgb(var(--gold-rgb) / .4), 0 16px 40px -18px rgb(var(--shadow-rgb) / .5); }
@media (min-width: 1024px) { .theme-dock { display: flex; } }
.theme-row { display: flex; justify-content: center; align-items: center; gap: 2px; margin-top: 22px; }
.theme-swatches { display: flex; gap: 2px; }
.theme-sep { width: 1px; height: 22px; margin-inline: 4px; background: rgb(var(--gold-rgb) / .5); }
.mode-btn, .swatch { position: relative; display: inline-grid; place-items: center; width: 40px; height: 40px; padding: 0; border: 0; border-radius: 50%; background: transparent; color: inherit; cursor: pointer; }
.mode-btn:hover { background: rgb(var(--gold-rgb) / .14); }
.mode-btn .i-sun, [data-mode="dark"] .mode-btn .i-moon { display: none; }
[data-mode="dark"] .mode-btn .i-sun { display: block; }
.swatch::before { content: ''; width: 22px; height: 22px; border-radius: 50%; background: linear-gradient(135deg, var(--sw-a) 0 55%, var(--sw-b) 55% 100%); box-shadow: inset 0 0 0 1px rgb(0 0 0 / .18); transition: transform .25s var(--ease); }
.swatch:hover::before { transform: scale(1.1); }
.swatch[aria-checked="true"]::after { content: ''; position: absolute; inset: 5px; border-radius: 50%; border: 1.5px solid currentColor; }
.sw-sky { --sw-a: #A9C1DA; --sw-b: #C9A14A; }
.sw-sage { --sw-a: #A7C2AD; --sw-b: #B89A4E; }
.sw-dusk { --sw-a: #BCA9C7; --sw-b: #C48E76; }

/* ---------- reveal ---------- */
.motion .reveal { opacity: 0; transform: translateY(26px); transition: opacity .9s var(--ease), transform 1s var(--ease); }
.motion .reveal.is-in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation: none !important; transition-duration: .01ms !important; } }

/* ---------- hero → about: a cross-fade. The about section rises in pale and firms up to its natural look,
   while the photo does the opposite and pales away, so the two meet halfway with no seam ---------- */
/* eased: the photo holds its strength while the next section is still low, and pales only near the end */
.hero { position: sticky; top: var(--hero-stick, 0px); z-index: 0; opacity: calc(1 - var(--hero-p, 0) * var(--hero-p, 0)); }
.hero ~ * { position: relative; z-index: 1; }
.hero ~ .section:not(.section--night) { background-color: var(--sec-bg); }
.hero + .section { margin-top: -48px; border-radius: 48px 48px 0 0; opacity: calc(.18 + var(--hero-p, 0) * .82); }
.hero + .section::before { border-radius: inherit; }
/* the hero words leave a little ahead of the photo, so they never show through the incoming text */
.hero-stage { opacity: calc(1 - var(--hero-p, 0) * var(--hero-p, 0) * 3); }
@media (max-width: 767px) { .hero + .section { margin-top: -30px; border-radius: 30px 30px 0 0; } }

/* ---------- living plaque: a halo that breathes behind the stone, a light that wanders across it,
   a glint that runs through the gilded letters, and four twinkling rosettes in the corners ---------- */
.plaque-wrap { position: relative; isolation: isolate; width: 100%; }
.plaque-halo { position: absolute; inset: -22% -12%; z-index: -1; pointer-events: none; border-radius: 50%; background: radial-gradient(closest-side, rgb(246 214 146 / .55), rgb(246 214 146 / .32) 62%, transparent 88%); filter: blur(18px); opacity: .6; }
.motion .plaque-halo { animation: halo-breathe 6.5s ease-in-out infinite; }
@keyframes halo-breathe { 0%, 100% { opacity: .4; transform: scale(.96); } 50% { opacity: .9; transform: scale(1.04); } }
.plaque-light { position: absolute; z-index: 1; top: -55%; left: -35%; width: 75%; aspect-ratio: 1; border-radius: 50%; pointer-events: none; background: radial-gradient(closest-side, rgb(255 249 230 / .8), rgb(255 240 205 / .28) 50%, transparent 72%); mix-blend-mode: soft-light; }
.motion .plaque-light { animation: light-drift 18s ease-in-out infinite alternate; }
@keyframes light-drift { 0% { transform: translate(0, 0); } 35% { transform: translate(70%, 70%); } 70% { transform: translate(120%, 15%); } 100% { transform: translate(150%, 60%); } }
.hero-title { background:
    linear-gradient(105deg, transparent 42%, rgb(255 238 184 / .95) 50%, transparent 58%) 170% 0 / 260% 100% no-repeat,
    linear-gradient(180deg, #A07A2A 0%, #6B4C12 46%, #8A6820 54%, #553C0C 100%);
  -webkit-background-clip: text; background-clip: text; }
/* a slow, unhurried glint: about nine seconds to cross, then a long rest */
.motion .hero-title { animation: letter-glint 18s 2.6s ease-in-out infinite; }
@keyframes letter-glint { 0% { background-position: 170% 0, 0 0; } 50%, 100% { background-position: -70% 0, 0 0; } }
.pq-orn { position: absolute; z-index: 1; width: 20px; height: 20px; pointer-events: none;
  background: radial-gradient(circle at 38% 32%, rgb(255 255 255 / .9), rgb(255 255 255 / 0) 42%), #C4A6E6;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 0l2.3 7.2L19.6 2l-2.4 7L24 12l-6.8 3 2.4 7-5.3-5.2L12 24l-2.3-7.2L4.4 22l2.4-7L0 12l6.8-3-2.4-7 5.3 5.2z'/%3E%3C/svg%3E") center / contain no-repeat; mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 0l2.3 7.2L19.6 2l-2.4 7L24 12l-6.8 3 2.4 7-5.3-5.2L12 24l-2.3-7.2L4.4 22l2.4-7L0 12l6.8-3-2.4-7 5.3 5.2z'/%3E%3C/svg%3E") center / contain no-repeat;
  filter: drop-shadow(0 0 4px rgb(196 166 230 / .95)); }
.pq-orn:nth-of-type(1) { top: 1px; left: 1px; } .pq-orn:nth-of-type(2) { top: 1px; right: 1px; }
.pq-orn:nth-of-type(3) { bottom: 1px; left: 1px; } .pq-orn:nth-of-type(4) { bottom: 1px; right: 1px; }
/* each rosette glows like a gem, drifting slowly through violet, rose and green, each a step behind the last */
.motion .pq-orn { animation: twinkle 4.2s ease-in-out infinite, gem 18s ease-in-out infinite; }
.motion .pq-orn:nth-of-type(2) { animation-delay: 1.05s, -4.5s; } .motion .pq-orn:nth-of-type(3) { animation-delay: 3.15s, -9s; } .motion .pq-orn:nth-of-type(4) { animation-delay: 2.1s, -13.5s; }
@keyframes gem {
  0%, 100% { background-color: #C4A6E6; filter: drop-shadow(0 0 4px rgb(196 166 230 / .95)); }
  33% { background-color: #E6A0AE; filter: drop-shadow(0 0 4px rgb(230 160 174 / .95)); }
  66% { background-color: #8FD8B0; filter: drop-shadow(0 0 4px rgb(143 216 176 / .95)); }
}
@keyframes twinkle { 0%, 100% { opacity: .55; transform: scale(.82) rotate(0deg); } 50% { opacity: 1; transform: scale(1.12) rotate(45deg); } }
.plaque-kicker { display: flex; align-items: center; justify-content: center; gap: 12px; margin-bottom: 6px; font-family: var(--font-display); font-size: clamp(.95rem, 1.4vw, 1.12rem); letter-spacing: .3em; color: #6B4C12; text-shadow: 0 1px 0 rgb(255 250 236 / .85); }
.plaque-kicker::before, .plaque-kicker::after { content: ''; width: 38px; height: 1px; }
.plaque-kicker::before { background: linear-gradient(to right, transparent, #8E6B24); }
.plaque-kicker::after { background: linear-gradient(to left, transparent, #8E6B24); }
