/* ===================================================================
   RY Chabad — warm paper, deep navy, one gold.
   =================================================================== */

:root {
  --navy:      #013d55;
  --navy-deep: #092032;
  --navy-ink:  #0b2b3e;
  --navy-soft: #1d5a75;

  --gold:      #c9a227;
  --gold-deep: #a8851b;
  --gold-soft: #e6cf7a;
  --gold-pale: #fff3cf;

  --paper:     #f9f6f0;
  --paper-2:   #f4eee2;
  --card:      #fffdf9;

  --ink:       #1a1f28;
  --ink-dim:   #5a626e;
  --hairline:  #e7dfd0;

  --shadow:    0 24px 48px -24px rgba(9, 32, 50, .38);
  --shadow-sm: 0 10px 24px -14px rgba(9, 32, 50, .3);
  --ease:      cubic-bezier(.16, 1, .3, 1);

  --display: "Fraunces", Georgia, serif;
  --body:    "Figtree", -apple-system, system-ui, sans-serif;
  --hebrew:  "Frank Ruhl Libre", "David Libre", serif;

  --wrap:   1160px;
  --narrow: 700px;
  --pad:    clamp(88px, 11vw, 144px);

  --grain: 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='.9' numOctaves='2'/%3E%3C/filter%3E%3Crect width='240' height='240' filter='url(%23n)' opacity='.55'/%3E%3C/svg%3E");
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--body);
  font-size: 17px;
  line-height: 1.68;
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

h1, h2, h3 {
  font-family: var(--display);
  font-weight: 600;
  line-height: 1.06;
  letter-spacing: -.022em;
  color: var(--navy);
  margin: 0 0 .45em;
}
h1 { font-size: clamp(3rem, 7vw, 5.6rem); line-height: 1.0; }
h2 { font-size: clamp(2.1rem, 4.2vw, 3.4rem); line-height: 1.08; }
h3 { font-size: 1.35rem; }
p  { margin: 0 0 1.15em; }
a  { color: var(--navy); }

.em { font-style: italic; font-weight: 500; color: var(--gold-deep); }
.on-dark .em { color: var(--gold-soft); }

.hebrew {
  font-family: var(--hebrew); font-weight: 500;
  direction: rtl; unicode-bidi: isolate;
  color: var(--gold-deep); line-height: 1.5;
}
.on-dark .hebrew { color: var(--gold-soft); }

.eyebrow {
  font-weight: 600; font-size: .76rem;
  text-transform: uppercase; letter-spacing: .18em;
  color: var(--gold-deep); margin: 0 0 1.2em;
  display: inline-flex; align-items: center; gap: 12px;
}
.eyebrow::before { content: ""; width: 22px; height: 1px; background: var(--gold); }
.on-dark .eyebrow { color: var(--gold-soft); }
.on-dark .eyebrow::before { background: var(--gold-soft); }

.wrap   { max-width: var(--wrap); margin: 0 auto; padding: 0 28px; position: relative; }
.narrow { max-width: var(--narrow); }
.center { text-align: center; }
.center .eyebrow { justify-content: center; }

.lede { font-size: clamp(1.1rem, 1.6vw, 1.25rem); color: var(--ink-dim); line-height: 1.6; }
.on-dark .lede { color: rgba(255,255,255,.78); }

/* ---------------- buttons ---------------- */
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 15px 30px; border: 0; border-radius: 999px;
  font-family: var(--body); font-weight: 600; font-size: .95rem; letter-spacing: .01em;
  text-decoration: none; cursor: pointer; white-space: nowrap;
  transition: background .25s var(--ease), transform .25s var(--ease),
              box-shadow .25s var(--ease), border-color .25s var(--ease), color .25s var(--ease);
}
.btn svg { width: 16px; height: 16px; transition: transform .25s var(--ease); }
.btn:hover svg { transform: translateX(3px); }
.btn-gold { background: var(--gold); color: var(--navy-deep); }
.btn-gold:hover { background: #d6b13a; transform: translateY(-2px); box-shadow: 0 14px 30px -12px rgba(201,162,39,.7); }
.btn-navy { background: var(--navy); color: #fff; }
.btn-navy:hover { background: var(--navy-soft); transform: translateY(-2px); box-shadow: 0 14px 30px -14px rgba(1,61,85,.6); }
.btn-outline { background: transparent; border: 1px solid rgba(1,61,85,.35); color: var(--navy); }
.btn-outline:hover { border-color: var(--navy); background: rgba(1,61,85,.05); transform: translateY(-2px); }
.btn-outline-light { background: transparent; border: 1px solid rgba(255,255,255,.35); color: #fff; }
.btn-outline-light:hover { border-color: var(--gold-soft); color: var(--gold-soft); transform: translateY(-2px); }
.btn-block { display: flex; justify-content: center; width: 100%; }

/* ---------------- header ---------------- */
.site-header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 80;
  transition: background .4s var(--ease), box-shadow .4s var(--ease), border-color .4s var(--ease);
  border-bottom: 1px solid transparent;
}
.site-header.scrolled {
  background: rgba(249,246,240,.86);
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  border-color: var(--hairline);
}
.site-header::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -1px; height: 1px;
  background: linear-gradient(90deg, transparent 0%, var(--gold) 50%, transparent 100%);
  opacity: 0; transition: opacity .4s var(--ease);
}
.site-header.scrolled::after { opacity: .7; }
.site-header.on-dark-hero:not(.scrolled) .nav a:not(.btn) { color: rgba(255,255,255,.85); }
.site-header.on-dark-hero:not(.scrolled) .brand-text { color: #fff; }

.header-inner {
  max-width: var(--wrap); margin: 0 auto;
  display: flex; align-items: center; justify-content: space-between;
  gap: 22px; padding: 16px 28px; min-height: 72px;
}
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; }
.brand-mark { width: 30px; height: 30px; color: var(--gold); flex: none; }
.brand-text {
  font-family: var(--display); font-weight: 600; font-size: 1.35rem;
  color: var(--navy); letter-spacing: -.01em; transition: color .4s var(--ease);
}
.nav { display: flex; align-items: center; gap: 30px; }
.nav a { position: relative; color: var(--ink); text-decoration: none; font-size: .95rem; font-weight: 500; transition: color .4s var(--ease); }
.nav a:not(.btn)::after {
  content: ""; position: absolute; left: 0; bottom: -6px; height: 1.5px; width: 0;
  background: var(--gold); transition: width .4s var(--ease);
}
.nav a:not(.btn):hover::after { width: 100%; }
.nav .btn { padding: 11px 22px; font-size: .9rem; }

/* ---------------- hero ---------------- */
.hero {
  position: relative; min-height: 100vh; min-height: 100svh;
  display: flex; flex-direction: column; justify-content: center;
  padding: 140px 0 80px; text-align: center; overflow: hidden;
  background:
    radial-gradient(ellipse 70% 50% at 50% 0%, #fff6dc 0%, rgba(255,246,220,0) 62%),
    radial-gradient(ellipse 45% 40% at 85% 85%, #f3e7c9 0%, rgba(243,231,201,0) 60%),
    radial-gradient(ellipse 40% 35% at 10% 75%, #f2ece0 0%, rgba(242,236,224,0) 60%),
    var(--paper);
}
.hero::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background-image: var(--grain); opacity: .05; mix-blend-mode: multiply;
}
.hero-watermark {
  position: absolute; right: -2vw; bottom: -18vw; z-index: 0;
  font-family: var(--hebrew); font-weight: 500; font-size: 60vw; line-height: 1;
  color: var(--gold); opacity: .055; pointer-events: none; user-select: none;
  transform: translateY(var(--parallax, 0)); will-change: transform;
}
.hero .wrap { z-index: 1; }
.hero .hebrew { font-size: clamp(1.5rem, 3vw, 2.3rem); margin-bottom: 22px; }
.hero h1 { margin-bottom: .3em; }
.hero .lede { max-width: 640px; margin: 0 auto 2.4em; }
.hero-actions { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; }

.scroll-cue {
  position: absolute; left: 50%; bottom: 34px; transform: translateX(-50%);
  width: 1px; height: 56px; overflow: hidden; z-index: 1;
}
.scroll-cue::after {
  content: ""; position: absolute; left: 0; top: -100%; width: 1px; height: 100%;
  background: linear-gradient(to bottom, transparent, var(--gold));
  animation: cue 2.2s var(--ease) infinite;
}
@keyframes cue { 0% { top: -100%; } 60%, 100% { top: 100%; } }

/* staggered entrance */
.rise { opacity: 0; transform: translateY(26px); animation: rise .9s var(--ease) forwards; }
.rise:nth-child(1) { animation-delay: .05s; }
.rise:nth-child(2) { animation-delay: .18s; }
.rise:nth-child(3) { animation-delay: .32s; }
.rise:nth-child(4) { animation-delay: .46s; }
@keyframes rise { to { opacity: 1; transform: none; } }

/* ---------------- marquee strip ---------------- */
.marquee {
  background: var(--navy-deep); color: rgba(255,255,255,.82);
  overflow: hidden; padding: 20px 0; position: relative;
  border-top: 1px solid rgba(201,162,39,.35); border-bottom: 1px solid rgba(201,162,39,.35);
}
.marquee-track {
  display: flex; gap: 0; width: max-content;
  animation: marquee 48s linear infinite;
}
.marquee:hover .marquee-track { animation-play-state: paused; }
.marquee span {
  font-family: var(--display); font-weight: 500; font-size: 1.15rem; letter-spacing: .01em;
  padding: 0 28px; display: inline-flex; align-items: center; gap: 28px; white-space: nowrap;
}
.marquee span::after { content: ""; width: 5px; height: 5px; border-radius: 50%; background: var(--gold); }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ---------------- sections ---------------- */
section { padding: var(--pad) 0; position: relative; }
.alt { background: var(--paper-2); }
.on-dark { background: var(--navy-deep); color: rgba(255,255,255,.8); }
.on-dark h1, .on-dark h2, .on-dark h3 { color: #fff; }
.on-dark p { color: rgba(255,255,255,.78); }
.on-dark a:not(.btn) { color: var(--gold-soft); }
.gold-top::before, .gold-bottom::after {
  content: ""; position: absolute; left: 0; right: 0; height: 1px;
  background: linear-gradient(90deg, transparent, var(--gold), transparent);
}
.gold-top::before { top: 0; } .gold-bottom::after { bottom: 0; }

.section-head { margin-bottom: 56px; }
.section-head p { color: var(--ink-dim); max-width: 580px; }
.center .section-head p { margin: 0 auto; }

/* ---------------- idea: 2-col ---------------- */
.idea-grid {
  display: grid; grid-template-columns: 1fr 1.15fr; gap: clamp(40px, 7vw, 96px); align-items: center;
}
.idea-quote {
  position: relative; padding: 48px 40px;
  background: var(--card); border: 1px solid var(--hairline); border-radius: 18px;
  box-shadow: var(--shadow);
}
.idea-quote::before {
  content: ""; position: absolute; inset: -1px; border-radius: 19px; padding: 1px;
  background: linear-gradient(135deg, rgba(201,162,39,.55), rgba(201,162,39,0) 45%, rgba(201,162,39,0) 60%, rgba(201,162,39,.35));
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor; mask-composite: exclude; pointer-events: none;
}
.idea-quote .hebrew { font-size: clamp(2rem, 3.6vw, 2.9rem); margin: 0 0 14px; }
.idea-quote .trans {
  font-family: var(--display); font-style: italic; font-weight: 500;
  font-size: 1.3rem; color: var(--navy); margin: 0 0 8px;
}
.idea-quote .attr { font-size: .8rem; letter-spacing: .14em; text-transform: uppercase; color: var(--ink-dim); margin: 0; }
.idea-quote .ill { width: 100%; max-width: 260px; margin: 28px auto 0; display: block; color: var(--gold); }

.idea-text p { font-size: 1.06rem; }
.idea-text .big { font-family: var(--display); font-weight: 500; font-size: 1.45rem; line-height: 1.35; color: var(--navy); }

/* ---------------- manifesto (dark, stacked statements) ---------------- */
.manifesto-lines { list-style: none; margin: 0 0 40px; padding: 0; }
.manifesto-lines li {
  font-family: var(--display); font-weight: 600; letter-spacing: -.02em;
  font-size: clamp(2rem, 5vw, 4.2rem); line-height: 1.1;
  color: rgba(255,255,255,.28); transition: color .6s var(--ease);
  padding: 6px 0;
}
.manifesto-lines li.lit { color: #fff; }
.manifesto-lines li.lit.gold { color: var(--gold-soft); }
.manifesto-lines li.gold em { font-style: italic; font-weight: 500; }

/* ---------------- numbers ---------------- */
.numbers { display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px; text-align: center; }
.number { padding: 36px 20px; border-top: 1px solid var(--hairline); }
.number .num {
  display: block; font-family: var(--display); font-weight: 600; letter-spacing: -.03em;
  font-size: clamp(3rem, 6vw, 4.6rem); line-height: 1; color: var(--navy); margin-bottom: 12px;
}
.number .num sup { font-size: .5em; color: var(--gold-deep); vertical-align: top; top: .2em; position: relative; }
.number .lbl { display: block; font-size: .95rem; color: var(--ink-dim); max-width: 220px; margin: 0 auto; }

/* ---------------- illustrated scene ---------------- */
.scene { text-align: center; }
.scene svg { width: min(720px, 92%); height: auto; color: var(--gold); display: block; margin: 0 auto 36px; }
.scene .flame { transform-origin: center bottom; animation: flicker 2.6s ease-in-out infinite; }
.scene .flame.b { animation-delay: -1.1s; animation-duration: 3.1s; }
@keyframes flicker { 0%,100% { transform: scale(1) } 35% { transform: scale(1.06,.94) } 70% { transform: scale(.95,1.07) } }
.scene h2 { font-weight: 500; max-width: 720px; margin: 0 auto .4em; }
.scene p { max-width: 560px; margin: 0 auto; color: var(--ink-dim); }

/* ---------------- cta band ---------------- */
.cta-band { text-align: center; overflow: hidden; }
.cta-band::after {
  content: ""; position: absolute; left: 50%; top: 50%; width: 900px; height: 900px;
  transform: translate(-50%, -50%);
  background: radial-gradient(circle, rgba(201,162,39,.18) 0%, rgba(201,162,39,0) 60%);
  pointer-events: none;
}
.cta-band .wrap { z-index: 1; }
.cta-band .hebrew { font-size: 1.4rem; margin-bottom: 18px; }
.cta-band p { max-width: 560px; margin: 0 auto 2.2em; }
.cta-actions { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; }

/* ---------------- contact ---------------- */
.contact-grid { display: grid; grid-template-columns: 1fr 1.2fr; gap: clamp(40px, 7vw, 96px); align-items: start; }
.contact-side h2 { margin-bottom: .5em; }
.contact-side p { color: var(--ink-dim); }
.contact-side a { color: var(--navy); text-decoration: none; border-bottom: 1px solid var(--gold); }
.contact-card {
  background: var(--card); border: 1px solid var(--hairline); border-radius: 18px;
  padding: 36px; box-shadow: var(--shadow);
}
.form-grid { display: grid; gap: 16px; }
label { display: block; font-size: .82rem; font-weight: 600; margin-bottom: 6px; letter-spacing: .02em; }
input, textarea {
  width: 100%; padding: 14px 16px;
  border: 1px solid var(--hairline); border-radius: 10px;
  font: inherit; font-size: .96rem; background: var(--paper); color: var(--ink);
  transition: border-color .2s, box-shadow .2s;
}
input:focus, textarea:focus { outline: none; border-color: var(--navy); box-shadow: 0 0 0 3px rgba(1,61,85,.08); }
textarea { min-height: 140px; resize: vertical; }
.hp { position: absolute; left: -9999px; }

/* ---------------- donate ---------------- */
.hero-give {
  position: relative; overflow: hidden; text-align: center;
  padding: 170px 0 170px;
  background:
    radial-gradient(ellipse 60% 50% at 50% 0%, rgba(201,162,39,.18) 0%, rgba(201,162,39,0) 60%),
    var(--navy-deep);
}
.hero-give::before { content: ""; position: absolute; inset: 0; background-image: var(--grain); opacity: .07; pointer-events: none; }
.hero-give .hero-watermark { color: var(--gold-soft); opacity: .06; }
.hero-give .hebrew { font-size: clamp(1.4rem, 2.6vw, 2rem); margin-bottom: 18px; }
.hero-give h1 { font-size: clamp(2.6rem, 6vw, 4.8rem); }
.hero-give .lede { max-width: 560px; margin: 0 auto 1.8em; }
.badge {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 8px 18px; border-radius: 999px;
  border: 1px solid rgba(230,207,122,.4); color: var(--gold-soft);
  font-size: .82rem; font-weight: 500; letter-spacing: .03em;
}
.badge svg { width: 14px; height: 14px; }

.give-card {
  max-width: 680px; margin: -120px auto 0; position: relative; z-index: 2;
  background: var(--card); border: 1px solid var(--hairline); border-radius: 20px;
  box-shadow: var(--shadow); padding: 40px; overflow: hidden;
}
.give-card::before {
  content: ""; position: absolute; left: 0; right: 0; top: 0; height: 3px;
  background: linear-gradient(90deg, var(--gold-deep), var(--gold-soft), var(--gold-deep));
}
.give-card .helper { text-align: center; font-size: .9rem; color: var(--ink-dim); margin: 16px 0 0; }
.trust-row {
  display: flex; align-items: center; justify-content: center; gap: 10px; flex-wrap: wrap;
  margin-top: 26px; padding-top: 22px; border-top: 1px solid var(--hairline);
  font-size: .85rem; color: var(--ink-dim); text-align: center;
}
.trust-row svg { width: 14px; height: 14px; color: var(--gold-deep); }

.placeholder {
  border: 1px dashed rgba(201,162,39,.7); border-radius: 12px;
  background: var(--gold-pale); padding: 34px 26px; text-align: center;
  color: #6b5720; font-size: .92rem; line-height: 1.6;
}
.placeholder strong { display: block; font-family: var(--display); font-weight: 600; font-size: 1.15rem; color: var(--navy); margin-bottom: .4em; }
.placeholder code { background: rgba(201,162,39,.18); padding: 2px 6px; border-radius: 4px; font-size: .86em; }

/* editorial numbered list */
.builds { list-style: none; margin: 0; padding: 0; max-width: 820px; margin-inline: auto; }
.builds li {
  display: grid; grid-template-columns: 72px 1fr; gap: 24px; align-items: baseline;
  padding: 30px 0; border-top: 1px solid var(--hairline);
}
.builds li:last-child { border-bottom: 1px solid var(--hairline); }
.builds .n { font-family: var(--display); font-weight: 500; font-style: italic; font-size: 1.5rem; color: var(--gold-deep); }
.builds .t { font-family: var(--display); font-weight: 500; font-size: clamp(1.4rem, 2.6vw, 2rem); line-height: 1.25; color: var(--navy); }

.give-rows { max-width: 760px; margin: 0 auto; }
.give-row {
  display: grid; grid-template-columns: 180px 1fr; gap: 24px;
  padding: 26px 0; border-bottom: 1px solid var(--hairline);
}
.give-row:first-child { border-top: 1px solid var(--hairline); }
.give-row .k { font-weight: 600; font-size: .74rem; text-transform: uppercase; letter-spacing: .16em; color: var(--gold-deep); padding-top: 4px; }
.give-row .v { color: var(--ink-dim); font-size: .98rem; }
.give-row .v p:last-child { margin-bottom: 0; }

.faq { max-width: 760px; margin: 0 auto; }
.faq details { border-bottom: 1px solid var(--hairline); }
.faq details:first-child { border-top: 1px solid var(--hairline); }
.faq summary {
  cursor: pointer; list-style: none; padding: 22px 40px 22px 0; position: relative;
  font-family: var(--display); font-weight: 500; font-size: 1.2rem; color: var(--navy);
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+"; position: absolute; right: 4px; top: 50%; transform: translateY(-50%);
  color: var(--gold-deep); font-size: 1.5rem; font-weight: 300; transition: transform .3s var(--ease);
}
.faq details[open] summary::after { transform: translateY(-50%) rotate(45deg); }
.faq .a { padding: 0 0 24px; color: var(--ink-dim); font-size: .98rem; max-width: 640px; }
.faq .a p:last-child { margin-bottom: 0; }

/* ---------------- footer ---------------- */
.site-footer { background: var(--navy-deep); color: rgba(255,255,255,.62); padding: 72px 0 32px; font-size: .92rem; position: relative; }
.site-footer::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 1px; background: linear-gradient(90deg, transparent, var(--gold), transparent); opacity: .6; }
.site-footer h3 { color: #fff; font-size: 1.5rem; margin-bottom: .35em; }
.site-footer .hebrew { font-size: 1.15rem; color: var(--gold-soft); margin: 0 0 14px; direction: rtl; text-align: left; }
.site-footer .col-head { font-weight: 600; font-size: .74rem; text-transform: uppercase; letter-spacing: .18em; color: var(--gold-soft); margin: 0 0 1.1em; }
.site-footer a { color: rgba(255,255,255,.75); text-decoration: none; transition: color .2s; }
.site-footer a:hover { color: var(--gold-soft); }
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer li { margin-bottom: 9px; }
.footer-inner { display: grid; gap: 44px; grid-template-columns: 1.5fr 1fr 1fr; }
.footer-bottom {
  margin-top: 52px; padding-top: 24px; border-top: 1px solid rgba(255,255,255,.12);
  display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap;
  font-size: .82rem; color: rgba(255,255,255,.42);
}

/* ---------------- motion ---------------- */
@media (prefers-reduced-motion: no-preference) {
  .reveal { opacity: 0; transform: translateY(28px); transition: opacity .9s var(--ease), transform .9s var(--ease); }
  .reveal.revealed { opacity: 1; transform: none; }
  .reveal[data-delay="1"] { transition-delay: .12s; }
  .reveal[data-delay="2"] { transition-delay: .24s; }
  .reveal[data-delay="3"] { transition-delay: .36s; }
}
@media (prefers-reduced-motion: reduce) {
  .rise { opacity: 1; transform: none; animation: none; }
  .marquee-track { animation: none; }
  .scene .flame { animation: none; }
  .manifesto-lines li { color: #fff; }
}

/* ---------------- responsive ---------------- */
@media (max-width: 960px) {
  .idea-grid, .contact-grid { grid-template-columns: 1fr; }
  .footer-inner { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 720px) {
  .nav { gap: 16px; }
  .nav a:not(.btn) { display: none; }
  .numbers { grid-template-columns: 1fr; gap: 0; }
  .number { padding: 28px 10px; }
  .footer-inner { grid-template-columns: 1fr; gap: 32px; }
  .give-card { margin-top: -90px; padding: 28px 20px; }
  .give-row { grid-template-columns: 1fr; gap: 6px; }
  .builds li { grid-template-columns: 48px 1fr; gap: 14px; }
  .hero-actions, .cta-actions { flex-direction: column; align-items: stretch; }
  .hero-actions .btn, .cta-actions .btn { justify-content: center; }
  .hero { padding-top: 120px; }
  .hero-give { padding: 140px 0 150px; }
  .idea-quote { padding: 34px 26px; }
  .contact-card { padding: 26px 20px; }
}

/* ===================================================================
   BACKGROUND TEXTURE — paper fibre over the whole page + a faint
   "seviva" ring motif (concentric surroundings) behind the heroes.
   =================================================================== */
body::before {
  content: ""; position: fixed; inset: 0; z-index: 0; pointer-events: none;
  background-image: var(--grain); opacity: .035; mix-blend-mode: multiply;
}
body > * { position: relative; z-index: 1; }

.rings {
  position: absolute; inset: 0; z-index: 0; pointer-events: none; overflow: hidden;
}
.rings svg { position: absolute; width: 140vmax; height: 140vmax; left: 50%; top: 42%; transform: translate(-50%, -50%); color: var(--gold); opacity: .16; }
.on-dark .rings svg, .hero-give .rings svg { color: var(--gold-soft); opacity: .10; }
@media (prefers-reduced-motion: no-preference) {
  .rings svg { animation: ringspin 240s linear infinite; }
}
@keyframes ringspin { to { transform: translate(-50%, -50%) rotate(360deg); } }

/* ===================================================================
   THEMES — flip with data-theme on <html>. Variable names keep their
   original "navy/gold" labels; read them as primary / accent.
   =================================================================== */
[data-theme="wine"] {
  --navy: #6e1f2e; --navy-deep: #3a1119; --navy-ink: #4a1620; --navy-soft: #8a2f40;
  --gold: #d4a24c; --gold-deep: #a67c2e; --gold-soft: #e8cc8f; --gold-pale: #fbf0d8;
  --paper: #f8f3ea; --paper-2: #f1e8d9; --card: #fffdf9;
  --shadow: 0 24px 48px -24px rgba(58,17,25,.38); --shadow-sm: 0 10px 24px -14px rgba(58,17,25,.3);
}
[data-theme="dusk"] {
  --navy: #2b1d2e; --navy-deep: #1c1320; --navy-ink: #241a28; --navy-soft: #4a3350;
  --gold: #e29a5e; --gold-deep: #b3703a; --gold-soft: #f0bf8f; --gold-pale: #fbeadb;
  --paper: #f6f1ea; --paper-2: #efe6da; --card: #fffcf8;
  --shadow: 0 24px 48px -24px rgba(28,19,32,.4); --shadow-sm: 0 10px 24px -14px rgba(28,19,32,.3);
}
[data-theme="olive"] {
  --navy: #46552f; --navy-deep: #26301c; --navy-ink: #303d22; --navy-soft: #63754a;
  --gold: #c4623d; --gold-deep: #9d4c2b; --gold-soft: #e2a98d; --gold-pale: #f7e6dc;
  --paper: #f0eadc; --paper-2: #e8e0cf; --card: #fbf8f1;
  --shadow: 0 24px 48px -24px rgba(38,48,28,.4); --shadow-sm: 0 10px 24px -14px rgba(38,48,28,.3);
}
[data-theme="slate"] {
  --navy: #2f3e4e; --navy-deep: #1a242d; --navy-ink: #26323f; --navy-soft: #4a5d70;
  --gold: #b8964f; --gold-deep: #8f7236; --gold-soft: #dcc48a; --gold-pale: #f6efdc;
  --paper: #f5f2ec; --paper-2: #ebe6dc; --card: #fdfbf7;
  --shadow: 0 24px 48px -24px rgba(26,36,45,.4); --shadow-sm: 0 10px 24px -14px rgba(26,36,45,.3);
}

/* dev-only theme switcher (removed before deploy) */
.theme-switch {
  position: fixed; right: 18px; bottom: 18px; z-index: 999;
  display: flex; gap: 6px; padding: 6px; border-radius: 999px;
  background: rgba(20,20,20,.82); backdrop-filter: blur(8px);
  box-shadow: 0 10px 30px rgba(0,0,0,.3);
}
.theme-switch button {
  border: 0; cursor: pointer; padding: 7px 12px; border-radius: 999px;
  font: 600 .74rem/1 var(--body); letter-spacing: .04em; color: rgba(255,255,255,.75); background: transparent;
}
.theme-switch button.active { background: #fff; color: #111; }

/* dev: ?shot=1 neutralises viewport-height + entrance motion for full-page captures */
html[data-shot] .hero { min-height: 0; padding: 150px 0 110px; }
html[data-shot] .reveal, html[data-shot] .rise { opacity: 1 !important; transform: none !important; animation: none !important; transition: none !important; }
html[data-shot] .manifesto-lines li { color: #fff; }
html[data-shot] .manifesto-lines li.gold { color: var(--gold-soft); }
html[data-shot] .theme-switch { display: none; }
.builds { text-align: left; }

/* ===================================================================
   LIVE HERO — video layer + ember canvas (both optional, both light)
   =================================================================== */
.hero-media { position: absolute; inset: 0; z-index: 0; overflow: hidden; }
.hero-media video {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover;
  opacity: 0; transition: opacity 1.6s var(--ease);
}
.hero-media video.ready { opacity: .28; }
.hero-media::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(249,246,240,.55) 0%, rgba(249,246,240,.35) 45%, var(--paper) 100%);
  pointer-events: none;
}
[data-theme] .hero-media::after { background: linear-gradient(180deg, rgba(0,0,0,0) 0%, rgba(0,0,0,0) 45%, var(--paper) 100%); }
.embers { position: absolute; inset: 0; width: 100%; height: 100%; z-index: 0; pointer-events: none; }

/* ===================================================================
   OFFERINGS — ClickCo "departments" style: circle icon, title, blurb
   =================================================================== */
.offers { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.offer {
  position: relative; padding: 34px 30px 30px;
  background: var(--card); border: 1px solid var(--hairline); border-radius: 16px;
  text-decoration: none; color: inherit; display: block;
  transition: transform .3s var(--ease), box-shadow .3s var(--ease), border-color .3s var(--ease);
}
.offer:hover { transform: translateY(-4px); box-shadow: var(--shadow); border-color: rgba(201,162,39,.45); }
.offer-icon {
  width: 58px; height: 58px; border-radius: 50%;
  display: grid; place-items: center; margin-bottom: 20px;
  background: var(--gold-pale); color: var(--gold-deep);
  border: 1px solid rgba(201,162,39,.35);
  transition: background .3s var(--ease), color .3s var(--ease);
}
.offer:hover .offer-icon { background: var(--gold); color: var(--navy-deep); }
.offer-icon svg { width: 26px; height: 26px; }
.offer h3 { font-size: 1.28rem; margin-bottom: .4em; }
.offer p { color: var(--ink-dim); font-size: .95rem; margin: 0 0 14px; }
.offer .more { font-size: .84rem; font-weight: 600; color: var(--gold-deep); display: inline-flex; align-items: center; gap: 6px; }
.offer .more svg { width: 14px; height: 14px; transition: transform .3s var(--ease); }
.offer:hover .more svg { transform: translateX(3px); }

/* ===================================================================
   CANDLE LIGHTING — live from Hebcal
   =================================================================== */
.candle-wrap { display: grid; grid-template-columns: 1.1fr .9fr; gap: clamp(40px, 7vw, 96px); align-items: center; }
.candle-card {
  position: relative; overflow: hidden;
  background: var(--navy-deep); color: rgba(255,255,255,.8);
  border-radius: 20px; padding: 40px; box-shadow: var(--shadow);
}
.candle-card::before {
  content: ""; position: absolute; inset: 0;
  background: radial-gradient(ellipse 70% 60% at 50% 110%, rgba(201,162,39,.32) 0%, rgba(201,162,39,0) 65%);
}
.candle-card > * { position: relative; }
.candle-card .eyebrow { color: var(--gold-soft); }
.candle-card .eyebrow::before { background: var(--gold-soft); }
.candle-card h3 { color: #fff; font-size: 1.7rem; margin-bottom: 4px; }
.candle-card .parsha { color: var(--gold-soft); font-family: var(--display); font-style: italic; font-size: 1.15rem; margin: 0 0 24px; }
.candle-times { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.candle-time { padding: 18px 20px; border: 1px solid rgba(255,255,255,.12); border-radius: 12px; background: rgba(255,255,255,.04); }
.candle-time .k { display: block; font-size: .72rem; letter-spacing: .16em; text-transform: uppercase; color: rgba(255,255,255,.55); margin-bottom: 6px; }
.candle-time .v { display: block; font-family: var(--display); font-weight: 600; font-size: 2rem; color: #fff; line-height: 1; }
.candle-time .d { display: block; font-size: .82rem; color: rgba(255,255,255,.6); margin-top: 6px; }
.candle-card .loc { font-size: .82rem; color: rgba(255,255,255,.5); margin: 20px 0 0; }
.candle-flames { position: absolute; right: 30px; top: 30px; width: 54px; height: auto; color: var(--gold-soft); opacity: .9; }
.candle-flames .flame { transform-box: fill-box; transform-origin: center bottom; animation: flicker 2.6s ease-in-out infinite; }
.candle-flames .flame.b { animation-delay: -1.2s; animation-duration: 3.2s; }

@media (max-width: 960px) { .offers { grid-template-columns: 1fr 1fr; } .candle-wrap { grid-template-columns: 1fr; } }
@media (max-width: 640px) { .offers { grid-template-columns: 1fr; } .candle-times { grid-template-columns: 1fr; } .candle-card { padding: 28px 22px; } }

/* ===================================================================
   CLICKCO ADDITIONS — about, events, testimonials, highlights, Aa
   =================================================================== */
:root { --btn: var(--gold); --btn-ink: var(--navy-deep); }
.btn-gold { background: var(--btn); color: var(--btn-ink); }
[data-theme="clickco"] {
  --navy: #013d55; --navy-deep: #092032; --navy-soft: #1d5a75;
  --gold: #cbad53; --gold-deep: #9c8330; --gold-soft: #e6d38a; --gold-pale: #f7f0d4;
  --paper: #f9f6f0; --paper-2: #f4eee2; --card: #fcfaf7;
  --btn: #45a49c; --btn-ink: #ffffff;
}
[data-theme="clickco"] .btn-gold:hover { background: #3b948c; }
html.big { font-size: 112.5%; }
.aa-toggle {
  border: 1px solid var(--hairline); background: transparent; cursor: pointer;
  font: 600 .8rem/1 var(--body); color: var(--ink-dim); padding: 8px 10px; border-radius: 999px;
  letter-spacing: .02em; transition: color .2s, border-color .2s;
}
.aa-toggle:hover { color: var(--navy); border-color: var(--navy); }
.site-header.on-dark-hero:not(.scrolled) .aa-toggle { color: rgba(255,255,255,.8); border-color: rgba(255,255,255,.3); }

/* about */
.about-grid { display: grid; grid-template-columns: .95fr 1.05fr; gap: clamp(40px, 7vw, 96px); align-items: center; }
.about-photo {
  aspect-ratio: 6 / 5; border-radius: 16px; overflow: hidden; position: relative;
  background:
    radial-gradient(ellipse 60% 50% at 30% 30%, rgba(201,162,39,.35), transparent 60%),
    radial-gradient(ellipse 60% 60% at 80% 80%, rgba(1,61,85,.35), transparent 60%),
    var(--paper-2);
  box-shadow: var(--shadow); border: 1px solid var(--hairline);
}
.about-photo img { width: 100%; height: 100%; object-fit: cover; display: block; }
.about-photo .ph { position: absolute; inset: 0; display: grid; place-items: center; text-align: center; padding: 30px; color: var(--ink-dim); font-size: .9rem; }
.about-photo .ph strong { display: block; font-family: var(--display); font-size: 1.2rem; color: var(--navy); margin-bottom: 6px; }
.about-text .actions { display: flex; gap: 14px; flex-wrap: wrap; margin-top: 8px; }

/* events */
.events { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.event {
  display: grid; grid-template-columns: 84px 1fr; gap: 0; overflow: hidden;
  background: var(--card); border: 1px solid var(--hairline); border-radius: 14px;
  transition: transform .3s var(--ease), box-shadow .3s var(--ease);
}
.event:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.event .date {
  background: var(--navy); color: #fff; display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 18px 8px;
}
.event .date .d { font-family: var(--display); font-weight: 600; font-size: 2rem; line-height: 1; }
.event .date .m { font-size: .72rem; letter-spacing: .16em; text-transform: uppercase; color: var(--gold-soft); margin-top: 6px; }
.event .body { padding: 22px 22px 20px; }
.event .tag { font-size: .7rem; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--gold-deep); }
.event h3 { font-size: 1.15rem; margin: 6px 0 6px; }
.event p { font-size: .9rem; color: var(--ink-dim); margin: 0 0 10px; }
.event .when { font-size: .82rem; color: var(--ink-dim); display: flex; align-items: center; gap: 6px; }
.event .when svg { width: 13px; height: 13px; color: var(--gold-deep); }
.events-note { text-align: center; margin-top: 30px; color: var(--ink-dim); font-size: .92rem; }

/* testimonials */
.quotes { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.quote-card { background: var(--card); border: 1px solid var(--hairline); border-radius: 14px; padding: 30px 28px; }
.quote-card .mark { font-family: var(--display); font-size: 3rem; line-height: .6; color: var(--gold); margin-bottom: 14px; }
.quote-card p { font-family: var(--display); font-weight: 500; font-size: 1.12rem; line-height: 1.45; color: var(--navy); margin: 0 0 18px; }
.quote-card .who { display: flex; align-items: center; gap: 12px; font-size: .86rem; color: var(--ink-dim); }
.quote-card .who .av { width: 40px; height: 40px; border-radius: 50%; background: var(--gold-pale); border: 1px solid rgba(201,162,39,.35); display: grid; place-items: center; font-family: var(--display); font-weight: 600; color: var(--gold-deep); }

/* highlights */
.highlights-wrap { padding: 0 0 var(--pad); }
.highlights { display: grid; grid-template-columns: repeat(6, 1fr); gap: 10px; }
.highlights .tile { aspect-ratio: 3 / 4; border-radius: 10px; overflow: hidden; background: var(--paper-2); border: 1px solid var(--hairline); position: relative; }
.highlights .tile img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .6s var(--ease); }
.highlights .tile:hover img { transform: scale(1.04); }
.highlights .tile .ph { position: absolute; inset: 0; display: grid; place-items: center; color: var(--ink-dim); font-size: .72rem; letter-spacing: .12em; text-transform: uppercase; }

@media (max-width: 960px) { .about-grid { grid-template-columns: 1fr; } .events, .quotes { grid-template-columns: 1fr 1fr; } .highlights { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 640px) { .events, .quotes { grid-template-columns: 1fr; } .highlights { grid-template-columns: repeat(2, 1fr); } }
.zip-form { margin-top: 14px; }
.zip-toggle, .zip-reset { background: none; border: 0; padding: 0; cursor: pointer; font: 500 .82rem var(--body); color: var(--gold-soft); text-decoration: underline; text-underline-offset: 3px; }
.zip-toggle:hover, .zip-reset:hover { color: #fff; }
.zip-row { display: flex; gap: 10px; align-items: center; margin-top: 12px; flex-wrap: wrap; }
.zip-row input { width: 130px; padding: 11px 14px; border-radius: 999px; border: 1px solid rgba(255,255,255,.25); background: rgba(255,255,255,.06); color: #fff; font-size: .95rem; }
.zip-row input:focus { outline: none; border-color: var(--gold-soft); box-shadow: none; }
.zip-row .btn { padding: 11px 20px; font-size: .85rem; }

/* ===================================================================
   PHOTO HERO (ClickCo / CKids pattern) — photo behind, navy wash, light type
   =================================================================== */
.hero.has-photo { color: #fff; }
.hero.has-photo .hero-photo {
  position: absolute; inset: 0; z-index: 0;
  background: url("../images/hero.jpg") center 40% / cover no-repeat;
  transform: scale(1.04); animation: kenburns 28s ease-in-out infinite alternate;
}
@keyframes kenburns { to { transform: scale(1.12) translateY(-1.5%); } }
.hero.has-photo .hero-photo::after {
  content: ""; position: absolute; inset: 0;
  background:
    linear-gradient(180deg, rgba(9,32,50,.55) 0%, rgba(9,32,50,.5) 50%, rgba(9,32,50,.82) 100%),
    radial-gradient(ellipse 60% 50% at 50% 60%, rgba(9,32,50,0) 0%, rgba(9,32,50,.35) 100%);
}
.hero.has-photo .hero-media::after { display: none; }
.hero.has-photo .rings svg { color: var(--gold-soft); opacity: .12; }
.hero.has-photo .hero-watermark { color: var(--gold-soft); opacity: .06; }
.hero.has-photo h1 { color: #fff; }
.hero.has-photo .em { color: var(--gold-soft); }
.hero.has-photo .hebrew { color: var(--gold-soft); }
.hero.has-photo .lede { color: rgba(255,255,255,.85); }
.hero.has-photo .btn-outline { border-color: rgba(255,255,255,.4); color: #fff; }
.hero.has-photo .btn-outline:hover { background: rgba(255,255,255,.12); border-color: #fff; }
.hero.has-photo .scroll-cue::after { background: linear-gradient(to bottom, transparent, #fff); }
.site-header.over-photo:not(.scrolled) .nav a:not(.btn), .site-header.over-photo:not(.scrolled) .brand-text, .site-header.over-photo:not(.scrolled) .aa-toggle { color: #fff; }
.site-header.over-photo:not(.scrolled) .aa-toggle { border-color: rgba(255,255,255,.35); }
.hero-pill {
  display: inline-flex; align-items: center; gap: 8px; margin-bottom: 22px;
  padding: 7px 16px; border-radius: 999px; border: 1px solid rgba(230,207,122,.45);
  color: var(--gold-soft); font-size: .78rem; font-weight: 600; letter-spacing: .14em; text-transform: uppercase;
}
.hero-pill::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--gold); }

/* ---- logo A in the header ---- */
.brand-mark { width: 44px; height: 44px; }
.brand-mark .flame-fill { fill: var(--navy); transition: fill .4s var(--ease); }
.site-header.over-photo:not(.scrolled) .brand-mark .flame-fill, .site-header.on-dark-hero:not(.scrolled) .brand-mark .flame-fill { fill: var(--gold-soft); }
.brand-words { display: flex; flex-direction: column; line-height: 1; }
.brand-text { font-size: 1.45rem; }
.brand-tag { font-family: var(--hebrew); font-weight: 500; font-size: .74rem; color: var(--gold-deep); direction: rtl; text-align: left; margin-top: 4px; letter-spacing: .01em; transition: color .4s var(--ease); }
.site-header.over-photo:not(.scrolled) .brand-tag, .site-header.on-dark-hero:not(.scrolled) .brand-tag { color: var(--gold-soft); }
@media (max-width: 480px) { .brand-tag { display: none; } }

/* ---- candle card: upcoming list ---- */
.c-more { margin-top: 20px; padding-top: 16px; border-top: 1px solid rgba(255,255,255,.12); }
.c-more-k { font-size: .7rem; letter-spacing: .16em; text-transform: uppercase; color: rgba(255,255,255,.5); margin: 0 0 8px; }
.c-upcoming { list-style: none; margin: 0; padding: 0; }
.c-upcoming li { display: grid; grid-template-columns: 88px 1fr auto; gap: 12px; align-items: baseline; padding: 7px 0; border-bottom: 1px dashed rgba(255,255,255,.08); font-size: .88rem; }
.c-upcoming li:last-child { border-bottom: 0; }
.c-upcoming .d { color: rgba(255,255,255,.6); }
.c-upcoming .l { color: rgba(255,255,255,.88); }
.c-upcoming .t { font-family: var(--display); font-weight: 600; color: var(--gold-soft); font-size: 1rem; }
