:root {
  --ink: #102d34;
  --ink-deep: #09232b;
  --teal: #124b57;
  --teal-light: #2b6c73;
  --gold: #d7a94b;
  --gold-light: #edcc80;
  --sand: #f4f0e7;
  --cream: #faf8f2;
  --paper: #fffefb;
  --muted: #66777a;
  --white: #ffffff;
  --line: rgba(16, 45, 52, 0.16);
  --shadow: 0 22px 55px rgba(7, 31, 38, 0.13);
  --display: Georgia, "Times New Roman", serif;
  --sans: Inter, Avenir, "Segoe UI", Arial, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 92px; }
body { margin: 0; color: var(--ink); background: var(--cream); font-family: var(--sans); font-size: 16px; line-height: 1.65; -webkit-font-smoothing: antialiased; }
body.menu-open { overflow: hidden; }
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button, input, textarea { font: inherit; }
button { color: inherit; }
svg { fill: currentColor; }
.container { width: min(1180px, calc(100% - 48px)); margin-inline: auto; }
.section { padding: 112px 0; }
.section-sand { background: var(--sand); }
.skip-link { position: fixed; z-index: 9999; top: 8px; left: 8px; padding: 10px 16px; background: var(--gold); color: var(--ink-deep); transform: translateY(-150%); transition: transform .2s; }
.skip-link:focus { transform: translateY(0); }

.eyebrow { margin: 0 0 15px; color: var(--teal-light); font-size: .74rem; font-weight: 800; letter-spacing: .19em; text-transform: uppercase; }
.eyebrow.light { color: var(--gold-light); }
h1, h2, h3, p { margin-top: 0; }
h1, h2 { font-family: var(--display); font-weight: 400; letter-spacing: -.035em; line-height: 1.04; }
h2 { margin-bottom: 24px; font-size: clamp(2.8rem, 5vw, 4.7rem); }
h3 { line-height: 1.25; }
.gold-rule { width: 72px; height: 3px; background: var(--gold); }
.center { margin-top: 48px; text-align: center; }

.button { display: inline-flex; min-height: 54px; align-items: center; justify-content: center; gap: 14px; padding: 0 25px; border: 1px solid transparent; border-radius: 2px; font-size: .78rem; font-weight: 800; letter-spacing: .08em; line-height: 1.1; text-transform: uppercase; transition: transform .25s, background .25s, color .25s, border-color .25s, box-shadow .25s; }
.button:hover { transform: translateY(-2px); }
.button:focus-visible, a:focus-visible, button:focus-visible, input:focus-visible, textarea:focus-visible { outline: 3px solid var(--gold-light); outline-offset: 3px; }
.button svg { width: 18px; fill: none; stroke: currentColor; stroke-width: 2; }
.button-small { min-height: 42px; padding: 0 18px; font-size: .7rem; }
.button-gold { color: var(--ink-deep); background: var(--gold); box-shadow: 0 8px 22px rgba(215, 169, 75, .2); }
.button-gold:hover { background: var(--gold-light); box-shadow: 0 12px 28px rgba(215, 169, 75, .3); }
.button-ghost { color: var(--white); border-color: rgba(255,255,255,.55); background: rgba(255,255,255,.06); backdrop-filter: blur(4px); }
.button-ghost:hover { color: var(--ink-deep); background: var(--white); border-color: var(--white); }
.button-outline { color: var(--ink); border-color: var(--ink); }
.button-outline:hover { color: var(--white); background: var(--ink); }
.button-dark { color: var(--white); background: var(--ink); }
.button-dark:hover { background: var(--teal); }
.text-link { display: inline-flex; gap: 24px; align-items: center; padding-bottom: 3px; border-bottom: 1px solid var(--gold); color: var(--ink); font-size: .76rem; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; transition: gap .25s; }
.text-link:hover { gap: 32px; }

.site-header { position: absolute; z-index: 100; top: 0; right: 0; left: 0; color: var(--white); }
.utility-bar { height: 38px; border-bottom: 1px solid rgba(255,255,255,.18); background: rgba(6, 29, 36, .5); }
.utility-inner { height: 100%; display: flex; align-items: center; justify-content: space-between; }
.utility-inner p { display: flex; align-items: center; gap: 8px; margin: 0; font-size: .7rem; font-weight: 600; letter-spacing: .05em; }
.utility-inner svg { width: 15px; }
.nav-shell { transition: background .3s, box-shadow .3s, transform .3s; }
.nav-inner { height: 82px; display: flex; align-items: center; justify-content: space-between; }
.site-header.scrolled { position: fixed; color: var(--ink); animation: header-down .35s both; }
.site-header.scrolled .utility-bar { display: none; }
.site-header.scrolled .nav-shell { background: rgba(250,248,242,.96); box-shadow: 0 9px 30px rgba(7,31,38,.1); backdrop-filter: blur(10px); }
@keyframes header-down { from { transform: translateY(-100%); } }
.brand { display: flex; align-items: center; gap: 12px; }
.brand-mark { width: 48px; height: 48px; flex: 0 0 auto; border-radius: 50%; object-fit: contain; }
.brand span { display: flex; flex-direction: column; }
.brand b { font-family: var(--display); font-size: 1.65rem; font-weight: 400; letter-spacing: .01em; line-height: 1; }
.brand small { margin-top: 5px; font-size: .53rem; font-weight: 800; letter-spacing: .2em; text-transform: uppercase; }
.primary-nav { display: flex; align-items: center; gap: 32px; }
.mobile-nav-only { display: none; }
.primary-nav a { position: relative; font-size: .75rem; font-weight: 750; letter-spacing: .06em; }
.primary-nav a::after { position: absolute; bottom: -9px; left: 0; width: 100%; height: 2px; background: var(--gold); content: ""; transform: scaleX(0); transform-origin: right; transition: transform .25s; }
.primary-nav a:hover::after, .primary-nav a.active::after { transform: scaleX(1); transform-origin: left; }
.nav-actions { display: flex; align-items: center; gap: 14px; }
.language-link { display: inline-flex; min-height: 42px; align-items: center; gap: 7px; padding: 0 7px; border-bottom: 1px solid transparent; font-size: .72rem; font-weight: 800; transition: color .2s, border-color .2s; }
.language-link:hover { color: var(--gold-light); border-bottom-color: var(--gold); }
.site-header.scrolled .language-link:hover { color: var(--teal); }
.language-link svg { width: 19px; fill: none; stroke: currentColor; stroke-width: 1.5; }
.language-menu { position: relative; }
.language-button { display: flex; height: 42px; align-items: center; gap: 7px; border: 0; background: transparent; cursor: pointer; font-size: .72rem; font-weight: 800; }
.language-button > svg:first-child { width: 19px; fill: none; stroke: currentColor; stroke-width: 1.5; }
.language-button .chevron { width: 13px; fill: none; stroke: currentColor; stroke-width: 1.6; transition: transform .2s; }
.language-button[aria-expanded="true"] .chevron { transform: rotate(180deg); }
.language-list { position: absolute; top: calc(100% + 12px); right: 0; width: 190px; padding: 9px; color: var(--ink); background: var(--paper); box-shadow: var(--shadow); }
.language-list a { display: flex; justify-content: space-between; padding: 8px 10px; font-size: .76rem; }
.language-list a:hover { background: var(--sand); }
.language-list span { color: var(--muted); font-size: .66rem; font-weight: 800; }
.menu-toggle { display: none; width: 44px; height: 42px; flex-direction: column; align-items: center; justify-content: center; gap: 5px; border: 0; background: transparent; cursor: pointer; }
.menu-toggle span { width: 23px; height: 2px; background: currentColor; transition: transform .25s, opacity .25s; }

.hero { position: relative; min-height: 790px; height: 100svh; max-height: 980px; display: flex; align-items: center; overflow: hidden; color: var(--white); background: var(--ink-deep); }
.hero-image { position: absolute; inset: 0; background: url("assets/tiberias.jpg") center 43% / cover no-repeat; animation: hero-scale 18s ease-out both; }
@keyframes hero-scale { from { transform: scale(1.08); } to { transform: scale(1); } }
.hero-wash { position: absolute; inset: 0; background: linear-gradient(90deg, rgba(5,29,36,.9) 0%, rgba(5,29,36,.65) 45%, rgba(5,29,36,.1) 78%), linear-gradient(0deg, rgba(5,29,36,.72) 0%, transparent 45%); }
.hero-content { position: relative; z-index: 1; padding-top: 92px; }
.hero-content h1 { max-width: 770px; margin-bottom: 27px; font-size: clamp(4.1rem, 8vw, 7.5rem); color: var(--white); }
.hero-content h1 em { color: var(--gold-light); font-weight: 400; }
.hero-copy { max-width: 600px; margin-bottom: 38px; color: rgba(255,255,255,.88); font-size: 1.08rem; line-height: 1.75; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 13px; }
.hero-verse { position: absolute; right: max(36px, calc((100vw - 1180px)/2)); bottom: 88px; width: 340px; margin: 0; padding-left: 25px; border-left: 2px solid var(--gold); color: rgba(255,255,255,.83); font-family: var(--display); font-size: 1.07rem; font-style: italic; line-height: 1.55; }
.hero-verse cite { display: block; margin-top: 8px; color: var(--gold-light); font-family: var(--sans); font-size: .65rem; font-style: normal; font-weight: 800; letter-spacing: .15em; text-transform: uppercase; }
.scroll-cue { position: absolute; bottom: 23px; left: 50%; display: flex; align-items: center; gap: 6px; transform: translateX(-50%); font-size: .61rem; font-weight: 800; letter-spacing: .16em; text-transform: uppercase; }
.scroll-cue svg { width: 18px; fill: none; stroke: currentColor; stroke-width: 1.6; animation: cue 1.8s infinite; }
@keyframes cue { 50% { transform: translateY(5px); } }

.welcome { position: relative; overflow: hidden; background: var(--cream); }
.welcome::after { position: absolute; right: -110px; bottom: -160px; width: 450px; height: 450px; border: 1px solid rgba(215,169,75,.22); border-radius: 50%; box-shadow: 0 0 0 40px transparent, 0 0 0 41px rgba(215,169,75,.1), 0 0 0 90px transparent, 0 0 0 91px rgba(215,169,75,.07); content: ""; }
.welcome-grid { position: relative; z-index: 1; display: grid; grid-template-columns: .9fr 1.25fr; gap: 80px 110px; }
.welcome-intro h2 { margin-bottom: 32px; }
.welcome-copy { padding-top: 29px; color: #4d6266; }
.welcome-copy .lead { color: var(--ink); font-family: var(--display); font-size: 1.5rem; line-height: 1.45; }
.welcome-copy .text-link { margin-top: 16px; }
.welcome-symbol { grid-column: 1 / -1; display: flex; align-items: center; justify-content: center; gap: 34px; color: var(--muted); font-size: .66rem; font-weight: 800; letter-spacing: .22em; text-transform: uppercase; }
.welcome-symbol::before, .welcome-symbol::after { width: 17%; height: 1px; background: var(--line); content: ""; }
.welcome-symbol .hebrew { color: var(--gold); font-family: var(--display); font-size: 2rem; font-weight: 400; letter-spacing: .05em; }

.section-heading { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; margin-bottom: 49px; }
.section-heading h2 { margin-bottom: 0; }
.section-heading.centered { display: block; max-width: 710px; margin-right: auto; margin-left: auto; text-align: center; }
.section-heading.centered p:last-child { max-width: 600px; margin: 20px auto 0; color: var(--muted); }
.message-filter { display: flex; padding-bottom: 9px; border-bottom: 1px solid rgba(16,45,52,.18); }
.filter-button { padding: 7px 14px; border: 0; color: var(--muted); background: transparent; cursor: pointer; font-size: .7rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }
.filter-button.active { color: var(--ink); }
.message-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 22px; }
.message-card { min-width: 0; background: var(--paper); box-shadow: 0 14px 40px rgba(7,31,38,.07); transition: opacity .3s, transform .3s; }
.message-card.filtered-out { display: none; }
.card-image { position: relative; height: 218px; display: block; overflow: hidden; background: var(--teal); }
.message-card-featured .card-image { height: 340px; }
.card-image img { width: 100%; height: 100%; object-fit: cover; transition: transform .55s; }
.card-image::after { position: absolute; inset: 0; background: linear-gradient(0deg, rgba(5,29,36,.46), transparent 60%); content: ""; }
.card-image:hover img { transform: scale(1.04); }
.sermon-image { background: linear-gradient(135deg, rgba(6,40,47,.25), rgba(6,40,47,.62)), url("assets/marathon.jpg") center / cover no-repeat; }
.sermon-image::before { position: absolute; inset: 0; background-image: radial-gradient(circle at 82% 16%, rgba(237,204,128,.42), transparent 18%); content: ""; }
.article-image img { filter: saturate(.75) contrast(1.05); }
.card-label { position: absolute; z-index: 2; top: 18px; left: 18px; padding: 8px 11px; color: var(--ink-deep); background: var(--gold-light); font-size: .61rem; font-weight: 900; letter-spacing: .1em; text-transform: uppercase; }
.play-button { position: absolute; z-index: 2; top: 50%; left: 50%; width: 64px; height: 64px; display: grid; place-items: center; border: 1px solid rgba(255,255,255,.65); border-radius: 50%; color: var(--white); background: rgba(8,35,43,.45); transform: translate(-50%,-50%); backdrop-filter: blur(3px); transition: color .25s, background .25s, transform .25s; }
.play-button svg { width: 28px; }
.play-button.small { width: 50px; height: 50px; }
.card-image:hover .play-button { color: var(--ink-deep); background: var(--gold); transform: translate(-50%,-50%) scale(1.08); }
.card-body { padding: 25px 25px 28px; }
.card-meta { margin-bottom: 13px; color: var(--muted); font-size: .65rem; font-weight: 700; letter-spacing: .07em; text-transform: uppercase; }
.card-meta span { margin-right: 8px; color: var(--teal-light); }
.card-meta span::after { margin-left: 8px; color: var(--gold); content: "•"; }
.card-body h3 { margin-bottom: 20px; font-family: var(--display); font-size: 1.35rem; font-weight: 400; }
.message-card-featured h3 { font-size: 1.65rem; }
.card-body h3 a { background-image: linear-gradient(var(--gold), var(--gold)); background-repeat: no-repeat; background-position: 0 100%; background-size: 0 1px; transition: background-size .3s; }
.card-body h3 a:hover { background-size: 100% 1px; }
.speaker { margin: 0; color: var(--muted); font-size: .72rem; }

.worship-section { min-height: 700px; display: grid; grid-template-columns: 1.08fr .92fr; background: var(--ink-deep); }
.worship-photo { min-height: 650px; background: linear-gradient(90deg, transparent 60%, rgba(9,35,43,.78)), url("assets/worship.jpg") center / cover no-repeat; }
.worship-panel { display: flex; flex-direction: column; align-items: flex-start; justify-content: center; padding: 80px clamp(48px, 7vw, 110px) 80px clamp(45px, 6vw, 90px); color: rgba(255,255,255,.8); }
.worship-panel h2 { max-width: 570px; color: var(--white); }
.worship-panel > p:not(.eyebrow) { max-width: 530px; }
.worship-panel blockquote { max-width: 480px; margin: 28px 0 38px; padding: 20px 0 20px 24px; border-left: 2px solid var(--gold); color: var(--gold-light); font-family: var(--display); font-size: 1.17rem; font-style: italic; }
.worship-panel cite { display: block; margin-top: 8px; color: rgba(255,255,255,.62); font-family: var(--sans); font-size: .65rem; font-style: normal; letter-spacing: .1em; text-transform: uppercase; }
.worship-actions { display: flex; align-items: center; flex-wrap: wrap; gap: 30px; }
.light-link { color: var(--white); }

.resource-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.resource-card { position: relative; min-height: 460px; overflow: hidden; color: var(--white); }
.resource-card img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .6s; }
.resource-shade { position: absolute; inset: 0; background: linear-gradient(0deg, rgba(5,29,36,.9), rgba(5,29,36,.05) 70%); transition: background .3s; }
.resource-number { position: absolute; top: 22px; right: 24px; color: rgba(255,255,255,.7); font-family: var(--display); font-size: .85rem; }
.resource-content { position: absolute; right: 28px; bottom: 30px; left: 28px; display: flex; flex-direction: column; }
.resource-content small { color: var(--gold-light); font-size: .65rem; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; }
.resource-content b { margin: 5px 0 15px; font-family: var(--display); font-size: 2rem; font-weight: 400; }
.resource-content em { font-size: .7rem; font-style: normal; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; opacity: 0; transform: translateY(8px); transition: opacity .3s, transform .3s; }
.resource-content em span { margin-left: 12px; }
.resource-card:hover img { transform: scale(1.06); }
.resource-card:hover .resource-shade { background: linear-gradient(0deg, rgba(5,29,36,.94), rgba(5,29,36,.18) 75%); }
.resource-card:hover em { opacity: 1; transform: translateY(0); }
.article-strip { margin-top: 82px; padding: 46px 48px; display: grid; grid-template-columns: .65fr 1.35fr; gap: 70px; background: var(--sand); }
.article-strip h3 { margin: 0; font-family: var(--display); font-size: 2.15rem; font-weight: 400; }
.article-links a { display: grid; grid-template-columns: 1fr 150px 20px; gap: 18px; align-items: center; padding: 14px 0; border-bottom: 1px solid var(--line); font-family: var(--display); font-size: 1.08rem; }
.article-links a:first-child { padding-top: 0; }
.article-links a:hover { color: var(--teal-light); }
.article-links small { color: var(--muted); font-family: var(--sans); font-size: .7rem; }
.article-links b { color: var(--gold); font-family: var(--sans); }

.story { background: var(--sand); }
.story-grid { display: grid; grid-template-columns: 1fr .9fr; gap: clamp(60px, 10vw, 130px); align-items: center; }
.story-art { position: relative; padding: 0 0 34px 34px; }
.story-art::before { position: absolute; top: 34px; right: 34px; bottom: 0; left: 0; border: 1px solid var(--gold); content: ""; }
.story-image { position: relative; height: 560px; overflow: hidden; }
.story-image img { width: 100%; height: 100%; object-fit: cover; object-position: 22% center; transform: scale(1.55); }
.story-caption { position: relative; display: flex; justify-content: space-between; margin: 14px 0 0; color: var(--muted); font-size: .62rem; font-weight: 800; letter-spacing: .14em; }
.story-content blockquote { margin: 32px 0; padding: 0 0 0 25px; border-left: 2px solid var(--gold); color: var(--teal); font-family: var(--display); font-size: 1.38rem; font-style: italic; line-height: 1.55; }
.story-content cite { display: block; margin-top: 12px; color: var(--muted); font-family: var(--sans); font-size: .64rem; font-style: normal; font-weight: 800; letter-spacing: .13em; text-transform: uppercase; }
.story-content > p:last-of-type { color: var(--muted); }
.story-values { display: flex; gap: 28px; margin-top: 35px; padding-top: 22px; border-top: 1px solid var(--line); }
.story-values span { font-family: var(--display); font-size: 1rem; }
.story-values b { display: block; color: var(--gold); font-family: var(--sans); font-size: .59rem; letter-spacing: .14em; }

.visit { position: relative; overflow: hidden; color: var(--white); background: var(--teal); }
.visit-background { position: absolute; inset: 0; opacity: .12; background: radial-gradient(circle at 20% 20%, var(--gold-light), transparent 29%), repeating-linear-gradient(115deg, transparent 0 38px, rgba(255,255,255,.1) 39px 40px); }
.visit-grid { position: relative; display: grid; grid-template-columns: .85fr 1fr; gap: 100px; align-items: center; }
.visit-heading h2 { color: var(--white); }
.visit-heading > p:last-child { max-width: 500px; color: rgba(255,255,255,.76); }
.visit-card { padding: 42px 45px; color: var(--ink); background: var(--paper); box-shadow: var(--shadow); }
.visit-item { display: flex; gap: 18px; padding: 20px 0; border-bottom: 1px solid var(--line); }
.visit-item:first-child { padding-top: 0; }
.visit-item svg { width: 24px; flex: 0 0 auto; color: var(--gold); }
.visit-item div { min-width: 0; display: flex; flex-direction: column; }
.visit-item small { color: var(--muted); font-size: .61rem; font-weight: 800; letter-spacing: .13em; text-transform: uppercase; }
.visit-item strong { margin: 2px 0; font-family: var(--display); font-size: 1.16rem; font-weight: 400; overflow-wrap: anywhere; }
.visit-item span { color: var(--muted); font-size: .78rem; }
.visit-card .button { width: 100%; margin-top: 28px; }

.connect { background: var(--paper); }
.connect-grid { display: grid; grid-template-columns: .8fr 1.2fr; gap: 110px; }
.connect-content > p:not(.eyebrow) { max-width: 480px; color: var(--muted); }
.contact-email { display: inline-flex; gap: 16px; margin-top: 18px; padding-bottom: 5px; border-bottom: 1px solid var(--gold); font-family: var(--display); font-size: 1.14rem; }
.contact-form { padding: 38px 42px; background: var(--sand); }
.contact-form label { display: block; margin-bottom: 20px; }
.contact-form label span { display: block; margin-bottom: 6px; color: var(--muted); font-size: .64rem; font-weight: 800; letter-spacing: .11em; text-transform: uppercase; }
.contact-form input, .contact-form textarea { width: 100%; border: 0; border-bottom: 1px solid rgba(16,45,52,.32); border-radius: 0; color: var(--ink); background: transparent; outline: none; transition: border .2s; }
.contact-form input { height: 42px; }
.contact-form textarea { resize: vertical; }
.contact-form input:focus, .contact-form textarea:focus { border-color: var(--gold); }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.form-footer { display: flex; align-items: center; gap: 20px; }
.form-status { margin: 0; color: var(--teal-light); font-size: .74rem; }

.give { padding: 78px 0; color: var(--white); background: var(--ink-deep); }
.give-inner { display: grid; grid-template-columns: 1fr .8fr auto; gap: 65px; align-items: center; }
.give h2 { max-width: 550px; margin: 0; color: var(--white); font-size: clamp(2.35rem, 4vw, 3.6rem); }
.give-inner > p { margin: 0; color: rgba(255,255,255,.68); }

.site-footer { padding-top: 75px; color: rgba(255,255,255,.67); background: #061b21; }
.footer-main { display: grid; grid-template-columns: 1.6fr .65fr .65fr .9fr; gap: 70px; padding-bottom: 62px; }
.footer-brand { color: var(--white); }
.footer-logo-crop { width: 200px; height: 200px; flex: 0 0 auto; overflow: hidden; border-radius: 50%; }
.footer-brand .brand-mark { width: 100%; height: 100%; max-width: none; border-radius: 0; object-fit: cover; transform: scale(1.015); }
.footer-main > div:first-child > p { max-width: 300px; margin: 23px 0 0; font-size: .78rem; }
.footer-main h3 { margin-bottom: 19px; color: var(--gold-light); font-size: .65rem; font-weight: 800; letter-spacing: .15em; text-transform: uppercase; }
.footer-links { display: flex; flex-direction: column; gap: 8px; }
.footer-links a { font-size: .78rem; transition: color .2s; }
.footer-links a:hover { color: var(--white); }
.footer-address address { font-size: .78rem; font-style: normal; }
.footer-bottom { min-height: 72px; display: flex; align-items: center; justify-content: space-between; gap: 24px; border-top: 1px solid rgba(255,255,255,.1); font-size: .63rem; font-weight: 700; letter-spacing: .06em; }
.footer-bottom p { margin: 0; }
.back-to-top { color: var(--gold-light); }

.reveal { opacity: 0; transform: translateY(22px); transition: opacity .7s ease, transform .7s ease; }
.reveal.visible { opacity: 1; transform: translateY(0); }
.message-card:nth-child(2), .resource-card:nth-child(2) { transition-delay: .1s; }
.message-card:nth-child(3), .resource-card:nth-child(3) { transition-delay: .2s; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
  .reveal { opacity: 1; transform: none; }
}

@media (max-width: 1050px) {
  .primary-nav { gap: 19px; }
  .nav-inner { width: calc(100% - 32px); }
  .hero-verse { display: none; }
  .message-grid { grid-template-columns: 1fr 1fr; }
  .message-card-featured { grid-row: span 2; }
  .message-card-featured .card-image { height: 360px; }
  .worship-section { grid-template-columns: 1fr 1fr; }
  .worship-panel { padding: 70px 45px; }
  .story-grid, .visit-grid, .connect-grid { gap: 60px; }
  .give-inner { grid-template-columns: 1fr auto; }
  .give-inner > p { grid-column: 1 / -1; grid-row: 2; max-width: 650px; }
}

@media (max-width: 820px) {
  .container { width: min(100% - 34px, 680px); }
  .section { padding: 82px 0; }
  .utility-bar { display: none; }
  .site-header { position: absolute; }
  .site-header.scrolled { animation: none; }
  .nav-inner { height: 74px; }
  .brand-mark { width: 42px; height: 42px; }
  .brand b { font-size: 1.42rem; }
  .nav-actions > .button, .nav-actions > .language-link, .language-menu { display: none; }
  .menu-toggle { display: flex; }
  .primary-nav { position: fixed; inset: 74px 0 0; height: calc(100dvh - 74px); display: flex; flex-direction: column; align-items: stretch; gap: 0; padding: 30px 28px; overflow-y: auto; color: var(--white); background: var(--ink-deep); opacity: 0; pointer-events: none; transform: translateX(100%); transition: opacity .25s, transform .3s; }
  .primary-nav a { padding: 16px 8px; border-bottom: 1px solid rgba(255,255,255,.12); font-family: var(--display); font-size: 1.7rem; font-weight: 400; }
  .primary-nav .mobile-nav-only { display: block; margin-top: 18px; padding: 14px 18px; border: 1px solid var(--gold); color: var(--gold-light); font-family: var(--sans); font-size: .75rem; font-weight: 800; letter-spacing: .12em; text-align: center; text-transform: uppercase; }
  .primary-nav .mobile-language-link { margin-top: 10px; border-color: rgba(255,255,255,.35); color: var(--white); text-transform: none; }
  .primary-nav a::after { display: none; }
  .menu-open .primary-nav { opacity: 1; pointer-events: auto; transform: translateX(0); }
  .menu-open .menu-toggle span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .menu-open .menu-toggle span:nth-child(2) { opacity: 0; }
  .menu-open .menu-toggle span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
  .site-header.scrolled .primary-nav { top: 74px; }
  .hero { min-height: 740px; max-height: none; }
  .hero-image { background-position: 58% center; }
  .hero-wash { background: linear-gradient(90deg, rgba(5,29,36,.9), rgba(5,29,36,.45)), linear-gradient(0deg, rgba(5,29,36,.72), transparent 50%); }
  .hero-content { padding-top: 70px; }
  .hero-content h1 { font-size: clamp(3.8rem, 14vw, 6rem); }
  .hero-copy { max-width: 520px; }
  .welcome-grid { grid-template-columns: 1fr; gap: 42px; }
  .welcome-copy { padding-top: 0; }
  .welcome-symbol { margin-top: 20px; }
  .message-grid { grid-template-columns: 1fr 1fr; }
  .message-card-featured { grid-column: 1 / -1; grid-row: auto; }
  .worship-section { min-height: 0; display: block; }
  .worship-photo { min-height: 420px; background-image: linear-gradient(0deg, rgba(9,35,43,.85), transparent 50%), url("assets/worship.jpg"); }
  .worship-panel { padding: 70px max(24px, calc((100vw - 680px)/2)); }
  .resource-grid { grid-template-columns: 1fr 1fr; }
  .resource-card:last-child { grid-column: 1 / -1; min-height: 380px; }
  .article-strip { grid-template-columns: 1fr; gap: 35px; padding: 38px 30px; }
  .story-grid, .visit-grid, .connect-grid { grid-template-columns: 1fr; }
  .story-content { order: -1; }
  .story-image { height: 480px; }
  .connect-grid { gap: 45px; }
  .give-inner { gap: 30px; }
  .footer-main { grid-template-columns: 1.4fr 1fr 1fr; gap: 45px; }
  .footer-address { grid-column: 1 / -1; }
}

/* Hebrew route: preserve the shared visual system while mirroring directional details. */
html[dir="rtl"] {
  --display: "Noto Serif Hebrew", "Times New Roman", Georgia, serif;
  --sans: "Noto Sans Hebrew", Arial, "Segoe UI", sans-serif;
}
html[dir="rtl"] body { direction: rtl; }
html[dir="rtl"] .skip-link { right: 8px; left: auto; }
html[dir="rtl"] .eyebrow,
html[dir="rtl"] .brand small,
html[dir="rtl"] .footer-main h3,
html[dir="rtl"] .visit-item small,
html[dir="rtl"] .story-content cite { letter-spacing: .08em; }
html[dir="rtl"] .primary-nav a::after { right: 0; left: auto; transform-origin: left; }
html[dir="rtl"] .primary-nav a:hover::after,
html[dir="rtl"] .primary-nav a.active::after { transform-origin: right; }
html[dir="rtl"] .hero-wash { background: linear-gradient(270deg, rgba(5,29,36,.9) 0%, rgba(5,29,36,.65) 45%, rgba(5,29,36,.1) 78%), linear-gradient(0deg, rgba(5,29,36,.72) 0%, transparent 45%); }
html[dir="rtl"] .hero-verse { right: auto; left: max(36px, calc((100vw - 1180px)/2)); padding-right: 25px; padding-left: 0; border-right: 2px solid var(--gold); border-left: 0; }
html[dir="rtl"] .welcome::after { right: auto; left: -110px; }
html[dir="rtl"] .story-art { padding: 0 34px 34px 0; }
html[dir="rtl"] .story-art::before { right: 0; left: 34px; }
html[dir="rtl"] .story-content blockquote { padding-right: 25px; padding-left: 0; border-right: 2px solid var(--gold); border-left: 0; }
html[dir="rtl"] .landing-page .connect::before { right: auto; left: -180px; }
html[dir="rtl"] .contact-form input,
html[dir="rtl"] .contact-form textarea { text-align: right; }
html[dir="rtl"] .contact-form input[dir="ltr"],
html[dir="rtl"] [dir="ltr"] { text-align: left; }
html[dir="rtl"] .dialog-close { float: left; margin: -43px 0 0 -43px; }
html[dir="rtl"] .article-shell blockquote { border-right: 3px solid var(--gold); border-left: 0; }
html[dir="rtl"] .footer-links button { text-align: right; }

@media (max-width: 820px) {
  html[dir="rtl"] .primary-nav { transform: translateX(-100%); }
  html[dir="rtl"] .menu-open .primary-nav { transform: translateX(0); }
  html[dir="rtl"] .hero-wash { background: linear-gradient(270deg, rgba(5,29,36,.9), rgba(5,29,36,.45)), linear-gradient(0deg, rgba(5,29,36,.72), transparent 50%); }
}

@media (max-width: 700px) {
  html[dir="rtl"] .dialog-close { margin: -39px 0 0 -11px; }
  html[dir="rtl"] .giving-options summary { padding-right: 5px; padding-left: 30px; }
  html[dir="rtl"] .giving-options summary::after { right: auto; left: 4px; }
}

@media (max-width: 560px) {
  html[dir="rtl"] .story-art { padding: 0 22px 22px 0; }
  html[dir="rtl"] .story-art::before { left: 22px; }
}

@media (max-width: 560px) {
  .container { width: calc(100% - 32px); }
  .section { padding: 70px 0; }
  h2 { font-size: clamp(2.55rem, 13vw, 3.7rem); }
  .brand small { display: none; }
  .hero { min-height: 720px; height: 100svh; }
  .hero-content h1 { margin-bottom: 22px; font-size: clamp(3.4rem, 17vw, 5.2rem); }
  .hero-copy { font-size: .95rem; }
  .hero-actions { align-items: stretch; flex-direction: column; max-width: 300px; }
  .hero-actions .button { width: 100%; }
  .scroll-cue { display: none; }
  .welcome-symbol { gap: 15px; }
  .welcome-symbol::before, .welcome-symbol::after { width: 8%; }
  .welcome-symbol > span:last-child { display: none; }
  .section-heading { align-items: flex-start; flex-direction: column; }
  .message-filter { width: 100%; }
  .message-grid { grid-template-columns: 1fr; }
  .message-card-featured { grid-column: auto; }
  .message-card-featured .card-image, .card-image { height: 250px; }
  .worship-photo { min-height: 300px; }
  .worship-panel { padding: 60px 24px; }
  .worship-actions { align-items: flex-start; flex-direction: column; }
  .resource-grid { grid-template-columns: 1fr; }
  .resource-card, .resource-card:last-child { grid-column: auto; min-height: 410px; }
  .resource-content em { opacity: 1; transform: none; }
  .article-strip { margin-top: 55px; }
  .article-links a { grid-template-columns: 1fr 20px; }
  .article-links small { grid-column: 1; grid-row: 2; }
  .article-links b { grid-column: 2; grid-row: 1 / span 2; }
  .story-art { padding: 0 0 22px 22px; }
  .story-image { height: 390px; }
  .story-values { gap: 18px; }
  .visit-card, .contact-form { padding: 30px 24px; }
  .field-row { grid-template-columns: 1fr; gap: 0; }
  .give { padding: 65px 0; }
  .give-inner { grid-template-columns: 1fr; }
  .give-inner > p { grid-column: auto; grid-row: auto; }
  .give-inner .button { justify-self: start; }
  .footer-main { grid-template-columns: 1fr 1fr; }
  .footer-main > div:first-child, .footer-address { grid-column: 1 / -1; }
  .footer-bottom { padding: 24px 0; align-items: flex-start; flex-direction: column; gap: 8px; }
  .footer-bottom p:nth-child(2) { display: none; }
}

/* Local media, article, resource, and giving experiences */
body.dialog-open { overflow: hidden; }
.card-image { width: 100%; padding: 0; border: 0; text-align: left; cursor: pointer; }
.card-title-button { display: inline; padding: 0; border: 0; color: inherit; background: transparent; font-family: inherit; font-size: inherit; line-height: inherit; text-align: left; cursor: pointer; background-image: linear-gradient(var(--gold), var(--gold)); background-repeat: no-repeat; background-position: 0 100%; background-size: 0 1px; transition: background-size .3s; }
.card-title-button:hover { background-size: 100% 1px; }
.text-link:is(button) { border-top: 0; border-right: 0; border-left: 0; background: transparent; cursor: pointer; }
.resource-card:is(button) { width: 100%; padding: 0; border: 0; font: inherit; text-align: left; cursor: pointer; }
.article-links button { width: 100%; display: grid; grid-template-columns: 1fr 150px 20px; gap: 18px; align-items: center; padding: 14px 0; border: 0; border-bottom: 1px solid var(--line); color: inherit; background: transparent; font-family: var(--display); font-size: 1.08rem; text-align: left; cursor: pointer; }
.article-links button:first-child { padding-top: 0; }
.article-links button:hover { color: var(--teal-light); }
.article-links button small { color: var(--muted); font-family: var(--sans); font-size: .7rem; }
.article-links button b { color: var(--gold); font-family: var(--sans); }
.footer-links button { padding: 0; border: 0; color: inherit; background: transparent; font-size: .78rem; text-align: left; cursor: pointer; transition: color .2s; }
.footer-links button:hover { color: var(--white); }

.site-dialog { width: min(1040px, calc(100% - 48px)); max-width: none; max-height: min(90vh, 880px); padding: 0; border: 0; color: var(--ink); background: var(--paper); box-shadow: 0 35px 100px rgba(3, 20, 25, .35); overflow: auto; }
.site-dialog::backdrop { background: rgba(3, 23, 29, .78); backdrop-filter: blur(5px); }
.dialog-shell { position: relative; min-height: 100%; padding: 64px; }
.dialog-close { position: sticky; z-index: 3; top: 18px; float: right; width: 46px; height: 46px; display: grid; place-items: center; margin: -43px -43px 0 0; border: 1px solid var(--line); border-radius: 50%; color: var(--ink); background: rgba(255,254,251,.94); cursor: pointer; font-family: var(--sans); font-size: 1.9rem; font-weight: 300; line-height: 1; transition: color .2s, background .2s, transform .2s; }
.dialog-close:hover { color: var(--white); background: var(--ink); transform: rotate(5deg); }
.dialog-heading { max-width: 720px; margin-bottom: 38px; }
.dialog-heading h2, .media-caption h2, .article-shell h2 { margin-bottom: 20px; font-size: clamp(2.5rem, 5vw, 4.5rem); }
.dialog-heading > p:last-child { max-width: 650px; color: var(--muted); }

.media-dialog { width: min(1120px, calc(100% - 48px)); background: var(--ink-deep); }
.media-shell { padding: 0; color: var(--white); }
.media-shell .dialog-close { position: absolute; top: 18px; right: 18px; float: none; margin: 0; color: var(--white); border-color: rgba(255,255,255,.35); background: rgba(5,29,36,.72); }
.video-frame { position: relative; aspect-ratio: 16 / 9; background: #020b0e; }
.video-frame iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.media-caption { padding: 36px 45px 40px; }
.media-caption h2 { max-width: 850px; margin-bottom: 8px; color: var(--white); font-size: clamp(2rem, 4vw, 3.5rem); }
.media-caption > p:last-child { margin: 0; color: rgba(255,255,255,.62); }

.library-search { display: block; margin-bottom: 10px; }
.library-search span { display: block; margin-bottom: 7px; color: var(--muted); font-size: .62rem; font-weight: 800; letter-spacing: .13em; text-transform: uppercase; }
.library-search input { width: 100%; height: 54px; padding: 0 18px; border: 1px solid var(--line); border-radius: 0; color: var(--ink); background: var(--sand); outline: none; }
.library-search input:focus { border-color: var(--gold); }
.message-library { border-top: 1px solid var(--line); }
.library-row { width: 100%; display: grid; grid-template-columns: 58px 1fr auto; gap: 23px; align-items: center; padding: 19px 6px; border: 0; border-bottom: 1px solid var(--line); color: inherit; background: transparent; text-align: left; cursor: pointer; transition: padding .2s, background .2s; }
.library-row[hidden] { display: none; }
.library-row:hover { padding-right: 13px; padding-left: 13px; background: var(--sand); }
.library-date { display: flex; flex-direction: column; align-items: center; justify-content: center; color: var(--teal); font-family: var(--display); font-size: 1.45rem; line-height: 1; }
.library-date small { margin-top: 5px; color: var(--gold); font-family: var(--sans); font-size: .55rem; font-weight: 900; letter-spacing: .13em; text-transform: uppercase; }
.library-row > span:nth-child(2) { display: flex; min-width: 0; flex-direction: column; }
.library-row b { font-family: var(--display); font-size: 1.08rem; font-weight: 400; }
.library-row span small { margin-top: 4px; color: var(--muted); font-size: .67rem; }
.library-row em { color: var(--teal); font-size: .65rem; font-style: normal; font-weight: 900; letter-spacing: .1em; text-transform: uppercase; }
.library-row i { margin-left: 8px; color: var(--gold); font-style: normal; }
.empty-library { padding: 35px 0; color: var(--muted); text-align: center; }

.song-library { border-top: 1px solid var(--line); }
.song-row { display: grid; grid-template-columns: 1fr 90px 100px; gap: 22px; align-items: center; padding: 19px 5px; border-bottom: 1px solid var(--line); }
.song-row > span { display: flex; flex-direction: column; }
.song-row b { font-family: var(--display); font-size: 1.1rem; font-weight: 400; }
.song-row small { color: var(--muted); font-size: .68rem; }
.song-play, .song-row a { padding: 8px 0; border: 0; color: var(--teal); background: transparent; cursor: pointer; font-size: .65rem; font-weight: 900; letter-spacing: .08em; text-align: center; text-transform: uppercase; }
.song-row a { color: #8d6a25; border-bottom: 1px solid var(--gold); }

.article-shell { max-width: 800px; margin: 0 auto; }
.article-shell article > .eyebrow { margin-top: 10px; }
.article-shell h3 { margin: 38px 0 12px; font-family: var(--display); font-size: 1.65rem; font-weight: 400; }
.article-shell p { color: #4f6468; }
.article-shell .article-lead { color: var(--teal); font-family: var(--display); font-size: 1.38rem; line-height: 1.5; }
.article-shell blockquote { margin: 32px 0; padding: 23px 28px; border-left: 3px solid var(--gold); color: var(--teal); background: var(--sand); font-family: var(--display); font-size: 1.2rem; font-style: italic; }
.article-shell .content-facts { display: grid; grid-template-columns: repeat(3,1fr); gap: 12px; margin: 30px 0; }
.content-facts span { padding: 18px; border: 1px solid var(--line); }
.content-facts small { display: block; color: var(--gold); font-size: .56rem; font-weight: 900; letter-spacing: .12em; text-transform: uppercase; }
.content-facts b { display: block; margin-top: 5px; font-family: var(--display); font-weight: 400; }
.article-shell .haggadah-steps { counter-reset: haggadah; display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-top: 28px; }
.haggadah-steps li { list-style: none; padding: 17px 18px; background: var(--sand); }
.haggadah-steps li::before { counter-increment: haggadah; content: counter(haggadah, decimal-leading-zero); display: block; color: var(--gold); font-size: .58rem; font-weight: 900; letter-spacing: .1em; }
.haggadah-steps b { font-family: var(--display); font-size: 1.08rem; font-weight: 400; }

.giving-options { border-top: 1px solid var(--line); }
.giving-options details { border-bottom: 1px solid var(--line); }
.giving-options summary { display: flex; align-items: center; justify-content: space-between; padding: 19px 5px; cursor: pointer; font-family: var(--display); font-size: 1.2rem; list-style: none; }
.giving-options summary::-webkit-details-marker { display: none; }
.giving-options summary::after { color: var(--gold); content: "+"; font-family: var(--sans); font-size: 1.35rem; }
.giving-options details[open] summary::after { content: "−"; }
.giving-options summary span { color: var(--teal-light); font-family: var(--sans); font-size: .62rem; font-weight: 900; letter-spacing: .11em; text-transform: uppercase; }
.giving-options details > div { padding: 0 5px 25px; color: var(--muted); }
.giving-options details > div p { max-width: 740px; }
.giving-options .button { margin: 6px 0 12px; }

@media (max-width: 700px) {
  .site-dialog { width: calc(100% - 20px); max-height: calc(100dvh - 20px); }
  .dialog-shell { padding: 50px 22px 32px; }
  .dialog-close { top: 11px; margin: -39px -11px 0 0; }
  .media-dialog { width: calc(100% - 12px); }
  .media-caption { padding: 27px 22px 30px; }
  .media-shell .dialog-close { top: 10px; right: 10px; }
  .dialog-heading { margin-bottom: 27px; }
  .dialog-heading h2, .article-shell h2 { font-size: 2.55rem; }
  .library-row { grid-template-columns: 46px 1fr; gap: 14px; padding: 17px 2px; }
  .library-row em { grid-column: 2; }
  .song-row { grid-template-columns: 1fr auto; gap: 10px 14px; }
  .song-row > span { grid-column: 1 / -1; }
  .song-play, .song-row a { text-align: left; }
  .article-links button { grid-template-columns: 1fr 20px; }
  .article-links button small { grid-column: 1; grid-row: 2; }
  .article-links button b { grid-column: 2; grid-row: 1 / span 2; }
  .article-shell .content-facts { grid-template-columns: 1fr; }
  .article-shell .haggadah-steps { grid-template-columns: 1fr; padding: 0; }
  .giving-options summary { align-items: flex-start; flex-direction: column; gap: 4px; padding-right: 30px; position: relative; }
  .giving-options summary::after { position: absolute; top: 17px; right: 4px; }
}
