/* =========================================================
   Cheder Menachem of Inverrary — Site Styles
   Traditional / dignified Chabad mosad
   ========================================================= */

:root {
  /* Brand colors */
  --cream:        #f4ecdc;
  --cream-soft:   #f9f2e3;
  --cream-deep:   #e9dec5;
  --navy:         #16344f;
  --navy-deep:    #0d2238;
  --navy-ink:     #07172a;
  --burgundy:     #6e1a26;
  --burgundy-deep:#511019;
  --gold:         #b88a2a;
  --gold-soft:    #d4a94a;
  --gold-deep:    #8c6816;

  --ink:          #1d1a14;
  --ink-soft:     #4a4438;
  --ink-mute:     #7a7464;
  --rule:         rgba(26, 58, 92, 0.18);
  --rule-soft:    rgba(26, 58, 92, 0.10);

  /* Surfaces */
  --bg:           var(--cream);
  --bg-alt:       var(--cream-soft);
  --bg-deep:      var(--cream-deep);
  --surface:      #fffaf0;

  /* Type */
  --ff-display:   "Cormorant Garamond", "Cormorant", "EB Garamond", Georgia, serif;
  --ff-body:      "Source Sans 3", "Source Sans Pro", -apple-system, "Helvetica Neue", Arial, sans-serif;
  --ff-hebrew:    "Frank Ruhl Libre", "David Libre", "Cormorant Garamond", serif;

  /* Spacing */
  --s-1: 4px;
  --s-2: 8px;
  --s-3: 12px;
  --s-4: 16px;
  --s-5: 24px;
  --s-6: 32px;
  --s-7: 48px;
  --s-8: 64px;
  --s-9: 96px;
  --s-10: 128px;

  --max-w:       1240px;
  --max-w-read:  680px;
  --max-w-mid:   880px;

  --radius-sm: 2px;
  --radius:    4px;
  --radius-lg: 8px;

  --shadow-soft: 0 1px 2px rgba(15, 37, 64, 0.06), 0 8px 24px rgba(15, 37, 64, 0.05);
  --shadow-card: 0 1px 2px rgba(15, 37, 64, 0.08), 0 18px 40px rgba(15, 37, 64, 0.08);
}

/* ---------- Dark mode ---------- */
[data-theme="dark"] {
  --cream:        #131a23;
  --cream-soft:   #0e141c;
  --cream-deep:   #1a2230;
  --navy:         #d9c79a;          /* swap navy headlines to warm parchment */
  --navy-deep:    #ece4d2;
  --navy-ink:     #ffffff;
  --burgundy:     #d18c8c;
  --burgundy-deep:#e9a6a6;
  --gold:         #d4b56a;
  --gold-soft:    #e2c789;
  --gold-deep:    #b89346;
  --ink:          #ece4d2;
  --ink-soft:     #c4b89a;
  --ink-mute:     #8c8470;
  --rule:         rgba(217, 199, 154, 0.22);
  --rule-soft:    rgba(217, 199, 154, 0.10);
  --bg:           #0d141c;
  --bg-alt:       #131a23;
  --bg-deep:      #1a2230;
  --surface:      #18212e;
  --shadow-soft: 0 1px 2px rgba(0,0,0,0.4), 0 8px 24px rgba(0,0,0,0.35);
  --shadow-card: 0 1px 2px rgba(0,0,0,0.5), 0 18px 40px rgba(0,0,0,0.45);
}

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

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  background-image:
    radial-gradient(circle at 20% 30%, rgba(184, 138, 42, 0.025) 0%, transparent 50%),
    radial-gradient(circle at 80% 70%, rgba(110, 26, 38, 0.022) 0%, transparent 55%),
    url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='240' height='240'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2' seed='3'/><feColorMatrix values='0 0 0 0 0.1, 0 0 0 0 0.08, 0 0 0 0 0.04, 0 0 0 0.06 0'/></filter><rect width='100%' height='100%' filter='url(%23n)' opacity='0.85'/></svg>");
  color: var(--ink);
  font-family: var(--ff-body);
  font-size: 17px;
  line-height: 1.6;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
[data-theme="dark"] body {
  background-image:
    radial-gradient(circle at 20% 30%, rgba(212, 169, 74, 0.04) 0%, transparent 50%),
    radial-gradient(circle at 80% 70%, rgba(209, 140, 140, 0.04) 0%, transparent 55%);
}

img { max-width: 100%; display: block; }

a {
  color: var(--burgundy);
  text-decoration: none;
  border-bottom: 1px solid rgba(122, 31, 43, 0.35);
  transition: color 0.18s ease, border-color 0.18s ease;
}
a:hover { color: var(--burgundy-deep); border-bottom-color: var(--burgundy-deep); }
[data-theme="dark"] a { color: var(--burgundy); border-bottom-color: rgba(209, 140, 140, 0.4); }
[data-theme="dark"] a:hover { color: var(--burgundy-deep); }

h1, h2, h3, h4 {
  font-family: var(--ff-display);
  color: var(--navy);
  font-weight: 500;
  letter-spacing: -0.005em;
  margin: 0 0 var(--s-4);
  line-height: 1.15;
  text-wrap: balance;
}

h1 { font-size: clamp(40px, 5.4vw, 68px); font-weight: 500; letter-spacing: -0.012em; }
h2 { font-size: clamp(30px, 3.4vw, 44px); }
h3 { font-size: clamp(22px, 2.0vw, 28px); }
h4 { font-size: 19px; font-family: var(--ff-body); font-weight: 600; color: var(--navy-deep); letter-spacing: 0.02em; text-transform: uppercase; }

p { margin: 0 0 var(--s-4); text-wrap: pretty; }
p:last-child { margin-bottom: 0; }

.heb {
  font-family: var(--ff-hebrew);
  font-weight: 500;
  direction: rtl;
  unicode-bidi: isolate;
}

/* ---------- Layout ---------- */
.container {
  width: 100%;
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 var(--s-6);
}
.container-narrow {
  max-width: var(--max-w-read);
  margin: 0 auto;
  padding: 0 var(--s-6);
}
.container-mid {
  max-width: var(--max-w-mid);
  margin: 0 auto;
  padding: 0 var(--s-6);
}

section { padding: var(--s-9) 0; }
section.tight { padding: var(--s-7) 0; }

/* ---------- Top utility strip ---------- */
.utility-bar {
  background: var(--navy-deep);
  color: var(--cream);
  font-size: 13px;
  letter-spacing: 0.04em;
}
[data-theme="dark"] .utility-bar { background: #08101a; color: var(--cream); }
.utility-bar .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 8px;
  padding-bottom: 8px;
  gap: var(--s-5);
}
.utility-bar a {
  color: var(--cream);
  border-bottom: none;
  opacity: 0.9;
}
.utility-bar a:hover { color: var(--gold-soft); opacity: 1; }
.utility-bar .heb {
  color: var(--gold-soft);
  font-size: 14px;
  letter-spacing: 0;
}

/* ---------- Header / Nav ---------- */
.site-header {
  background: var(--bg);
  border-bottom: 1px solid var(--rule);
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: blur(8px);
}
.site-header::after {
  content: "";
  display: block;
  height: 2px;
  background: linear-gradient(90deg,
    transparent 0%,
    var(--gold) 20%,
    var(--gold) 80%,
    transparent 100%);
  opacity: 0.55;
}
.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: var(--s-4) var(--s-6);
  max-width: var(--max-w);
  margin: 0 auto;
  gap: var(--s-5);
}

.brand {
  display: flex;
  align-items: center;
  gap: var(--s-4);
  border: none;
  color: var(--navy);
}
.brand:hover { color: var(--navy-ink); border: none; }
.brand-mark {
  width: 44px; height: 44px;
  border: 1.5px solid var(--gold);
  display: grid; place-items: center;
  font-family: var(--ff-hebrew);
  font-size: 22px;
  color: var(--burgundy);
  background: var(--surface);
  flex-shrink: 0;
  position: relative;
}
.brand-mark::before, .brand-mark::after {
  content: "";
  position: absolute;
  width: 5px; height: 5px;
  background: var(--gold);
  border-radius: 50%;
}
.brand-mark::before { top: -3px; left: -3px; }
.brand-mark::after  { bottom: -3px; right: -3px; }

.brand-text {
  display: flex;
  flex-direction: column;
  line-height: 1.1;
}
.brand-name {
  font-family: var(--ff-display);
  font-size: 22px;
  font-weight: 600;
  color: var(--navy);
  letter-spacing: 0.005em;
}
.brand-sub {
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink-mute);
  margin-top: 3px;
}

.main-nav {
  display: flex;
  align-items: center;
  gap: var(--s-6);
}
.main-nav a {
  border: none;
  color: var(--navy-deep);
  font-family: var(--ff-body);
  font-size: 14.5px;
  letter-spacing: 0.02em;
  font-weight: 500;
  padding: 6px 2px;
  position: relative;
}
.main-nav a::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 2px;
  background: var(--gold);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.22s ease;
}
.main-nav a:hover { color: var(--burgundy); }
.main-nav a:hover::after { transform: scaleX(1); }
.main-nav a.is-active { color: var(--burgundy); }
.main-nav a.is-active::after { transform: scaleX(1); background: var(--burgundy); }

.nav-cta {
  background: var(--burgundy);
  color: var(--cream-soft);
  padding: 9px 18px;
  border: none;
  font-size: 14px;
  letter-spacing: 0.04em;
  font-weight: 500;
  text-transform: uppercase;
  border-radius: var(--radius);
  transition: background 0.18s ease;
}
.nav-cta:hover {
  background: var(--burgundy-deep);
  color: var(--cream-soft);
}
.nav-cta::after { display: none; }

.theme-toggle {
  background: transparent;
  border: 1px solid var(--rule);
  color: var(--navy-deep);
  width: 36px; height: 36px;
  display: grid; place-items: center;
  border-radius: 50%;
  cursor: pointer;
  transition: background 0.18s ease, border-color 0.18s ease;
}
.theme-toggle:hover { background: var(--bg-deep); border-color: var(--gold); }
.theme-toggle svg { width: 16px; height: 16px; }

.nav-toggle {
  display: none;
  background: transparent;
  border: 1px solid var(--rule);
  width: 36px; height: 36px;
  border-radius: var(--radius);
  cursor: pointer;
  color: var(--navy);
}
.nav-toggle svg { width: 20px; height: 20px; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 28px;
  font-family: var(--ff-body);
  font-size: 14.5px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-weight: 500;
  border-radius: var(--radius);
  border: none;
  cursor: pointer;
  transition: all 0.18s ease;
}
.btn-primary {
  background: var(--burgundy);
  color: var(--cream-soft);
}
.btn-primary:hover { background: var(--burgundy-deep); color: var(--cream-soft); }

.btn-secondary {
  background: transparent;
  color: var(--navy);
  border: 1px solid var(--navy);
}
.btn-secondary:hover { background: var(--navy); color: var(--cream-soft); border-color: var(--navy); }

.btn-ghost {
  background: transparent;
  color: var(--navy-deep);
  border: 1px solid var(--rule);
}
.btn-ghost:hover { border-color: var(--gold); color: var(--burgundy); }

.btn .arrow { transition: transform 0.2s ease; }
.btn:hover .arrow { transform: translateX(3px); }

/* Larger CTA variant */
.btn-xl {
  padding: 20px 40px;
  font-size: 16.5px;
  letter-spacing: 0.1em;
  font-weight: 600;
  gap: 14px;
}
.btn-xl .arrow { font-size: 20px; }

/* ---------- Ornamental rule ---------- */
.rule-ornament {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--s-4);
  color: var(--gold);
  margin: var(--s-6) 0;
}
.rule-ornament::before,
.rule-ornament::after {
  content: "";
  flex: 1;
  max-width: 120px;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--gold), transparent);
}
.rule-ornament svg { width: 14px; height: 14px; }

.eyebrow {
  font-family: var(--ff-body);
  font-size: 12.5px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--burgundy);
  font-weight: 600;
  margin-bottom: var(--s-4);
  display: inline-flex;
  align-items: center;
  gap: var(--s-3);
}
.eyebrow::before {
  content: "";
  width: 24px; height: 1px;
  background: var(--gold);
  display: inline-block;
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  padding: var(--s-9) 0 var(--s-10);
  background: var(--bg);
  overflow: hidden;
}
.hero-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--s-8);
  align-items: center;
}
.hero-content { padding-right: var(--s-5); }
.hero h1 {
  margin-bottom: var(--s-5);
}
.hero-tag {
  font-family: var(--ff-hebrew);
  font-size: 22px;
  color: var(--burgundy);
  margin: 0 0 var(--s-5);
  letter-spacing: 0.02em;
}
.hero-lede {
  font-size: 19px;
  line-height: 1.55;
  color: var(--ink-soft);
  max-width: 28em;
  margin-bottom: var(--s-6);
}
.hero-ctas { display: flex; gap: var(--s-4); flex-wrap: wrap; }

.hero-image {
  position: relative;
  aspect-ratio: 4 / 5;
  background: var(--bg-deep);
}
.hero-image image-slot {
  width: 100%; height: 100%;
}
.hero-image::before {
  content: "";
  position: absolute;
  inset: -14px -14px 14px 14px;
  border: 1px solid var(--gold);
  pointer-events: none;
  z-index: -1;
}

.hero-watermark {
  font-family: var(--ff-hebrew);
  position: absolute;
  font-size: 360px;
  color: var(--gold);
  opacity: 0;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  pointer-events: none;
  z-index: 0;
  line-height: 1;
  user-select: none;
  transition: opacity 0.4s ease;
}
.hero .hero-grid { position: relative; z-index: 1; }

/* Hero variant: full-bleed overlay (image as background) */
.hero.hero-overlay {
  padding: 0;
  background: var(--navy-ink);
  min-height: 660px;
  display: grid;
}
.hero.hero-overlay .container {
  position: relative;
  display: grid;
  place-items: center;
  width: 100%;
  max-width: 100%;
  padding: 0;
}
.hero.hero-overlay .hero-grid {
  grid-template-columns: 1fr;
  min-height: 660px;
  align-items: center;
  justify-items: center;
  text-align: center;
  max-width: 820px;
  padding: var(--s-9) var(--s-6);
}
.hero.hero-overlay .hero-content { padding-right: 0; max-width: 100%; }
.hero.hero-overlay .hero-image {
  position: absolute;
  inset: 0;
  z-index: 0;
  aspect-ratio: auto;
}
.hero.hero-overlay .hero-image::before { display: none; }
.hero.hero-overlay .hero-image::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg,
    rgba(10, 26, 46, 0.55) 0%,
    rgba(10, 26, 46, 0.60) 40%,
    rgba(10, 26, 46, 0.78) 100%);
  pointer-events: none;
}
.hero.hero-overlay .hero-content { color: var(--cream-soft); }
.hero.hero-overlay h1 { color: var(--cream-soft); }
.hero.hero-overlay .eyebrow { color: var(--gold-soft); }
.hero.hero-overlay .eyebrow::before { background: var(--gold-soft); }
.hero.hero-overlay .hero-tag { color: var(--gold-soft); }
.hero.hero-overlay .hero-lede { color: rgba(245, 239, 228, 0.88); margin-left: auto; margin-right: auto; }
.hero.hero-overlay .hero-ctas { justify-content: center; }
.hero.hero-overlay .btn-secondary {
  color: var(--cream-soft);
  border-color: rgba(245, 239, 228, 0.5);
}
.hero.hero-overlay .btn-secondary:hover { background: var(--cream-soft); color: var(--navy-ink); border-color: var(--cream-soft); }

/* Hero variant: typographic (no image, centered, watermark) */
.hero.hero-typographic .hero-grid {
  grid-template-columns: 1fr;
  text-align: center;
  max-width: 920px;
  margin: 0 auto;
}
.hero.hero-typographic .hero-content { padding-right: 0; max-width: 100%; }
.hero.hero-typographic .hero-image { display: none; }
.hero.hero-typographic .hero-lede { margin-left: auto; margin-right: auto; }
.hero.hero-typographic .hero-ctas { justify-content: center; }
.hero.hero-typographic .hero-watermark { opacity: 0.07; }

/* ---------- Page header (interior) ---------- */
.page-header {
  background: var(--bg-alt);
  border-bottom: 1px solid var(--rule);
  padding: var(--s-9) 0 var(--s-8);
  position: relative;
  overflow: hidden;
}
.page-header .container { position: relative; z-index: 2; }
.page-header .eyebrow { color: var(--burgundy); }
.page-header h1 { margin-bottom: var(--s-4); }
.page-header .heb {
  font-size: 22px;
  color: var(--gold-deep);
  margin-bottom: var(--s-4);
  display: block;
}
.page-header .lede {
  font-size: 20px;
  color: var(--ink-soft);
  max-width: 36em;
  line-height: 1.55;
}
.page-header-watermark {
  position: absolute;
  right: -40px;
  top: 50%;
  transform: translateY(-50%);
  font-family: var(--ff-hebrew);
  font-size: 280px;
  color: var(--gold);
  opacity: 0.08;
  line-height: 1;
  pointer-events: none;
  z-index: 1;
}

/* ---------- Content sections ---------- */
.section-head {
  text-align: center;
  margin-bottom: var(--s-8);
}
.section-head .eyebrow { justify-content: center; display: inline-flex; }
.section-head h2 { margin: 0 auto var(--s-3); max-width: 18em; }
.section-head .heb {
  font-family: var(--ff-hebrew);
  font-size: 22px;
  color: var(--gold-deep);
}
.section-head .lede {
  font-size: 19px;
  color: var(--ink-soft);
  max-width: 36em;
  margin: var(--s-4) auto 0;
}

.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--s-8);
  align-items: start;
}
.split.image-left { direction: rtl; }
.split.image-left > * { direction: ltr; }
.split .copy h2 { margin-bottom: var(--s-5); }
.split .copy p + p { margin-top: var(--s-4); }

.figure-frame {
  position: relative;
  aspect-ratio: 4 / 5;
}
.figure-frame.landscape { aspect-ratio: 5 / 4; }
.figure-frame.square    { aspect-ratio: 1 / 1; }
.figure-frame image-slot { width: 100%; height: 100%; }
.figure-frame::after {
  content: "";
  position: absolute;
  inset: 12px 12px -12px -12px;
  border: 1px solid var(--gold);
  pointer-events: none;
  z-index: -1;
}
.figure-frame.frame-right::after {
  inset: 12px -12px -12px 12px;
}

/* Pillar cards */
.pillars {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--s-6);
}
.pillar {
  background: var(--surface);
  border: 1px solid var(--rule);
  padding: var(--s-7) var(--s-6);
  text-align: center;
  position: relative;
  transition: border-color 0.2s ease, transform 0.2s ease;
}
.pillar:hover { border-color: var(--gold); transform: translateY(-2px); }
.pillar::before {
  content: "";
  position: absolute;
  top: 0; left: 50%; transform: translateX(-50%);
  width: 36px; height: 3px;
  background: var(--gold);
}
.pillar .heb {
  font-size: 38px;
  color: var(--burgundy);
  margin-bottom: var(--s-3);
  line-height: 1;
}
.pillar h3 {
  font-size: 22px;
  margin-bottom: var(--s-3);
}
.pillar p {
  color: var(--ink-soft);
  font-size: 15.5px;
  line-height: 1.6;
}

/* Feature list (checkmark or bullet) */
.feature-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: var(--s-3);
}
.feature-list li {
  padding-left: 28px;
  position: relative;
  line-height: 1.55;
}
.feature-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.55em;
  width: 14px; height: 1px;
  background: var(--gold);
}

.feature-list.check li::before {
  content: "✓";
  background: none;
  top: 0;
  left: 0;
  width: auto;
  color: var(--burgundy);
  font-weight: 600;
}

/* Stat row */
.stat-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
  border-top: 1px solid var(--rule);
  border-bottom: 1px solid var(--rule);
}
.stat {
  padding: var(--s-7) var(--s-5);
  text-align: center;
  border-right: 1px solid var(--rule);
}
.stat:last-child { border-right: none; }
.stat .num {
  font-family: var(--ff-display);
  font-size: 56px;
  color: var(--navy);
  line-height: 1;
  font-weight: 500;
}
.stat .label {
  font-size: 13px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink-mute);
  margin-top: var(--s-3);
}

/* Quote block / verse */
.verse {
  text-align: center;
  padding: var(--s-7) var(--s-5);
  position: relative;
  max-width: 760px;
  margin: 0 auto;
}
.verse::before, .verse::after {
  content: "";
  display: block;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--gold), transparent);
  margin: 0 auto;
  max-width: 200px;
}
.verse::before { margin-bottom: var(--s-5); }
.verse::after  { margin-top: var(--s-5); }
.verse .heb {
  font-size: clamp(28px, 3.5vw, 38px);
  color: var(--navy);
  line-height: 1.4;
  margin-bottom: var(--s-4);
  display: block;
}
.verse .translation {
  font-family: var(--ff-display);
  font-style: italic;
  font-size: 20px;
  color: var(--ink-soft);
}
.verse cite {
  display: block;
  margin-top: var(--s-3);
  font-style: normal;
  font-size: 13px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink-mute);
}

/* Staff cards */
.staff-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--s-7);
}
.staff-card {
  display: grid;
  grid-template-columns: 180px 1fr;
  gap: var(--s-5);
  align-items: start;
}
.staff-portrait {
  aspect-ratio: 4 / 5;
  background: var(--bg-deep);
  position: relative;
}
.staff-portrait image-slot { width: 100%; height: 100%; }
.staff-portrait::after {
  content: "";
  position: absolute;
  inset: 8px 8px -8px -8px;
  border: 1px solid var(--gold);
  z-index: -1;
}
.staff-card .name {
  font-family: var(--ff-display);
  font-size: 26px;
  color: var(--navy);
  margin: 0 0 var(--s-2);
  line-height: 1.15;
}
.staff-card .role {
  font-size: 12.5px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--burgundy);
  margin: 0 0 var(--s-4);
  font-weight: 600;
}
.staff-card p {
  color: var(--ink-soft);
  font-size: 15.5px;
}

/* Schedule block */
.schedule {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: var(--s-3) var(--s-6);
  border-top: 1px solid var(--rule);
  padding-top: var(--s-5);
}
.schedule dt {
  font-family: var(--ff-display);
  font-size: 20px;
  color: var(--burgundy);
  font-weight: 500;
  white-space: nowrap;
}
.schedule dd {
  margin: 0;
  font-size: 16px;
  color: var(--ink);
  padding-bottom: var(--s-3);
  border-bottom: 1px dashed var(--rule-soft);
}
.schedule dt:last-of-type + dd { border-bottom: none; padding-bottom: 0; }

/* FAQ accordion */
.faq-list { display: flex; flex-direction: column; }
.faq-item {
  border-top: 1px solid var(--rule);
}
.faq-item:last-child { border-bottom: 1px solid var(--rule); }
.faq-q {
  width: 100%;
  background: transparent;
  border: none;
  padding: var(--s-6) 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: var(--s-5);
  cursor: pointer;
  text-align: left;
  font-family: var(--ff-display);
  font-size: 22px;
  color: var(--navy);
  font-weight: 500;
  line-height: 1.3;
  transition: color 0.18s ease;
}
.faq-q:hover { color: var(--burgundy); }
.faq-q .marker {
  flex-shrink: 0;
  width: 28px; height: 28px;
  border: 1px solid var(--gold);
  display: grid; place-items: center;
  color: var(--burgundy);
  font-family: var(--ff-body);
  font-size: 16px;
  font-weight: 400;
  transition: transform 0.25s ease, background 0.2s ease;
}
.faq-item[data-open="true"] .faq-q .marker {
  transform: rotate(45deg);
  background: var(--burgundy);
  color: var(--cream-soft);
  border-color: var(--burgundy);
}
.faq-a {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.35s ease;
}
.faq-item[data-open="true"] .faq-a {
  max-height: 600px;
}
.faq-a-inner {
  padding: 0 0 var(--s-6) 0;
  color: var(--ink-soft);
  font-size: 16.5px;
  line-height: 1.65;
  max-width: 56em;
}

/* Enrollment / process steps */
.steps {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 0;
  counter-reset: step;
  position: relative;
}
.steps::before {
  content: "";
  position: absolute;
  top: 22px;
  left: 10%;
  right: 10%;
  height: 1px;
  background: var(--rule);
  z-index: 0;
}
.step {
  text-align: center;
  position: relative;
  padding: 0 var(--s-3);
  counter-increment: step;
}
.step-num {
  width: 44px; height: 44px;
  margin: 0 auto var(--s-4);
  border-radius: 50%;
  background: var(--bg);
  border: 1.5px solid var(--gold);
  color: var(--burgundy);
  font-family: var(--ff-display);
  font-size: 22px;
  display: grid;
  place-items: center;
  position: relative;
  z-index: 1;
}
.step h4 {
  font-family: var(--ff-display);
  font-size: 18px;
  color: var(--navy);
  font-weight: 600;
  text-transform: none;
  letter-spacing: 0;
  margin-bottom: var(--s-2);
}
.step p { font-size: 14.5px; color: var(--ink-soft); margin: 0; }

/* Tuition card */
.tuition-card {
  background: var(--surface);
  border: 1px solid var(--rule);
  padding: var(--s-8) var(--s-7);
  text-align: center;
  position: relative;
}
.tuition-card::before, .tuition-card::after {
  content: "";
  position: absolute;
  width: 20px; height: 20px;
  border: 1px solid var(--gold);
}
.tuition-card::before { top: 14px; left: 14px; border-right: none; border-bottom: none; }
.tuition-card::after { bottom: 14px; right: 14px; border-left: none; border-top: none; }
.tuition-card .amount {
  font-family: var(--ff-display);
  font-size: 64px;
  color: var(--navy);
  line-height: 1;
  margin: var(--s-3) 0;
  font-weight: 500;
}
.tuition-card .inclusive {
  font-size: 13px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--burgundy);
  margin-bottom: var(--s-5);
}
.tuition-card .deposit {
  color: var(--ink-soft);
  font-size: 15.5px;
  margin: 0 auto;
  max-width: 32em;
}

/* CTA banner */
.cta-banner {
  background: var(--navy-deep);
  color: var(--cream-soft);
  padding: var(--s-9) 0;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.cta-banner::before {
  content: "";
  position: absolute;
  inset: 14px;
  border: 1px solid rgba(201, 164, 73, 0.35);
  pointer-events: none;
}
.cta-banner h2 { color: var(--cream-soft); margin-bottom: var(--s-4); }
.cta-banner .heb { color: var(--gold-soft); margin-bottom: var(--s-4); display: block; font-size: 22px; }
.cta-banner p { color: rgba(245, 239, 228, 0.78); font-size: 18px; max-width: 32em; margin: 0 auto var(--s-6); }
.cta-banner .btn-secondary {
  color: var(--cream-soft);
  border-color: var(--gold-soft);
}
.cta-banner .btn-secondary:hover {
  background: var(--gold-soft);
  color: var(--navy-ink);
  border-color: var(--gold-soft);
}

/* Form */
.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--s-5);
}
.field { display: flex; flex-direction: column; gap: 6px; }
.field.full { grid-column: 1 / -1; }
.field label {
  font-size: 12.5px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-soft);
  font-weight: 600;
}
.field input, .field textarea, .field select {
  background: var(--surface);
  border: 1px solid var(--rule);
  padding: 12px 14px;
  font-family: var(--ff-body);
  font-size: 15.5px;
  color: var(--ink);
  border-radius: var(--radius-sm);
  transition: border-color 0.18s ease;
}
.field input:focus, .field textarea:focus, .field select:focus {
  outline: none;
  border-color: var(--gold);
  background: var(--bg-alt);
}
.field textarea { resize: vertical; min-height: 110px; }

/* Contact tiles */
.contact-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--s-5);
}
.contact-card {
  background: var(--surface);
  border: 1px solid var(--rule);
  padding: var(--s-6);
  text-align: center;
}
.contact-card .icon {
  width: 44px; height: 44px;
  margin: 0 auto var(--s-4);
  border: 1px solid var(--gold);
  display: grid; place-items: center;
  color: var(--burgundy);
  border-radius: 50%;
}
.contact-card .icon svg { width: 18px; height: 18px; }
.contact-card h4 {
  font-family: var(--ff-body);
  font-size: 12.5px;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: var(--ink-mute);
  margin-bottom: var(--s-3);
  font-weight: 600;
}
.contact-card .detail {
  font-family: var(--ff-display);
  font-size: 20px;
  color: var(--navy);
  word-break: break-word;
}
.contact-card a { color: var(--navy); border-bottom-color: transparent; }
.contact-card a:hover { color: var(--burgundy); }

/* ---------- Footer ---------- */
.site-footer {
  background: var(--navy-ink);
  color: rgba(245, 239, 228, 0.7);
  padding: var(--s-8) 0 var(--s-5);
  font-size: 14.5px;
}
.site-footer::before {
  content: "";
  display: block;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--gold), transparent);
  margin-bottom: var(--s-8);
  opacity: 0.5;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: var(--s-7);
  margin-bottom: var(--s-7);
}
.footer-brand .heb {
  display: block;
  color: var(--gold-soft);
  font-size: 20px;
  margin-top: var(--s-3);
}
.footer-brand p {
  margin-top: var(--s-3);
  color: rgba(245, 239, 228, 0.6);
  font-size: 14.5px;
  max-width: 26em;
}
.footer-brand .brand-name { color: var(--cream-soft); }
.footer-brand .brand-sub { color: var(--gold-soft); }

.site-footer h4 {
  color: var(--cream-soft);
  font-family: var(--ff-body);
  font-size: 12.5px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  margin-bottom: var(--s-4);
  font-weight: 600;
}
.site-footer ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: var(--s-2);
}
.site-footer a {
  color: rgba(245, 239, 228, 0.7);
  border-bottom: none;
}
.site-footer a:hover { color: var(--gold-soft); }

.footer-bottom {
  border-top: 1px solid rgba(201, 164, 73, 0.18);
  padding-top: var(--s-5);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: var(--s-4);
  font-size: 13px;
  color: rgba(245, 239, 228, 0.45);
}

/* ---------- Tweaks panel ---------- */
.tweaks {
  position: fixed;
  bottom: 24px;
  right: 24px;
  width: 280px;
  background: var(--surface);
  border: 1px solid var(--rule);
  box-shadow: var(--shadow-card);
  padding: var(--s-5);
  z-index: 100;
  display: none;
  font-family: var(--ff-body);
  border-radius: var(--radius);
}
.tweaks[data-open="true"] { display: block; }
.tweaks-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: var(--s-4);
  padding-bottom: var(--s-3);
  border-bottom: 1px solid var(--rule);
}
.tweaks-title {
  font-family: var(--ff-display);
  font-size: 18px;
  color: var(--navy);
  font-weight: 600;
}
.tweaks-close {
  background: transparent;
  border: none;
  width: 24px; height: 24px;
  cursor: pointer;
  color: var(--ink-mute);
  font-size: 18px;
  line-height: 1;
}
.tweaks-group {
  margin-bottom: var(--s-5);
}
.tweaks-group:last-child { margin-bottom: 0; }
.tweaks-label {
  font-size: 11.5px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink-mute);
  font-weight: 600;
  margin-bottom: var(--s-3);
}
.tweaks-segmented {
  display: grid;
  grid-template-columns: 1fr 1fr;
  border: 1px solid var(--rule);
  border-radius: var(--radius-sm);
  overflow: hidden;
}
.tweaks-segmented button {
  background: transparent;
  border: none;
  padding: 10px;
  font-family: var(--ff-body);
  font-size: 13px;
  color: var(--ink-soft);
  cursor: pointer;
  transition: all 0.18s ease;
  letter-spacing: 0.04em;
}
.tweaks-segmented button:not(:last-child) { border-right: 1px solid var(--rule); }
.tweaks-segmented button.active {
  background: var(--navy);
  color: var(--cream-soft);
}

.tweaks-segmented.three { grid-template-columns: repeat(3, 1fr); }

/* ---------- Responsive ---------- */
@media (max-width: 960px) {
  .nav-toggle { display: grid; place-items: center; }
  .main-nav {
    position: absolute;
    top: 100%; left: 0; right: 0;
    background: var(--bg);
    border-bottom: 1px solid var(--rule);
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: var(--s-3) 0;
    display: none;
  }
  .main-nav[data-open="true"] { display: flex; }
  .main-nav a {
    padding: 14px var(--s-6);
    border-bottom: 1px solid var(--rule-soft);
  }
  .main-nav a::after { display: none; }
  .nav-cta { margin: var(--s-3) var(--s-6); text-align: center; justify-content: center; }
  .hero-grid, .split { grid-template-columns: 1fr; gap: var(--s-7); }
  .hero-image { max-width: 480px; margin: 0 auto; }
  .pillars { grid-template-columns: 1fr; }
  .stat-row { grid-template-columns: 1fr; }
  .stat { border-right: none; border-bottom: 1px solid var(--rule); }
  .stat:last-child { border-bottom: none; }
  .staff-grid { grid-template-columns: 1fr; }
  .staff-card { grid-template-columns: 140px 1fr; gap: var(--s-4); }
  .steps { grid-template-columns: repeat(2, 1fr); gap: var(--s-6); }
  .steps::before { display: none; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: var(--s-5); }
  .contact-grid { grid-template-columns: 1fr; }
  .form-grid { grid-template-columns: 1fr; }
}
@media (max-width: 560px) {
  .container, .container-narrow, .container-mid { padding: 0 var(--s-4); }
  section { padding: var(--s-8) 0; }
  .brand-sub { display: none; }
  .footer-grid { grid-template-columns: 1fr; }
  .footer-bottom { flex-direction: column; text-align: center; }
  .steps { grid-template-columns: 1fr; }
  .staff-card { grid-template-columns: 1fr; }
}

/* =========================================================
   EDITORIAL / MOSAD aesthetic — added layer
   ========================================================= */

/* --- Hero: layered "title page" --- */
.hero-mosad {
  position: relative;
  padding: clamp(48px, 8vw, 110px) 0 clamp(40px, 6vw, 80px);
  background: var(--bg);
  overflow: hidden;
}
.hero-mosad::before {
  /* faint engraved hairline frame on the section */
  content: "";
  position: absolute;
  inset: 24px;
  border: 1px solid var(--rule);
  pointer-events: none;
}
.hero-mosad .hero-mosad-grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: clamp(40px, 6vw, 96px);
  align-items: center;
  position: relative;
  z-index: 2;
}
.hero-mosad .hero-eye {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: var(--s-5);
  color: var(--burgundy);
  font-size: 12.5px;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  font-weight: 600;
}
.hero-mosad .hero-eye::before,
.hero-mosad .hero-eye::after {
  content: "";
  width: 32px; height: 1px;
  background: var(--gold);
  flex-shrink: 0;
}
.hero-mosad h1 {
  font-family: var(--ff-display);
  font-weight: 500;
  font-size: clamp(48px, 6.4vw, 96px);
  line-height: 0.96;
  letter-spacing: -0.018em;
  margin: 0 0 var(--s-5);
  color: var(--navy);
}
.hero-mosad h1 .word-italic {
  font-style: italic;
  color: var(--burgundy);
  font-weight: 500;
}
.hero-mosad h1 .word-script {
  font-family: var(--ff-display);
  font-style: italic;
  font-weight: 400;
}
.hero-mosad .hero-tag-heb {
  font-family: var(--ff-hebrew);
  font-size: clamp(20px, 2vw, 26px);
  color: var(--burgundy);
  margin: var(--s-3) 0 var(--s-5);
  letter-spacing: 0.01em;
  display: block;
}
.hero-mosad .hero-lede {
  font-family: var(--ff-display);
  font-style: italic;
  font-size: clamp(19px, 1.6vw, 22px);
  line-height: 1.55;
  color: var(--ink-soft);
  max-width: 30em;
  margin-bottom: var(--s-6);
  font-weight: 400;
}
.hero-mosad .hero-meta {
  display: flex;
  align-items: center;
  gap: var(--s-5);
  margin-top: var(--s-6);
  padding-top: var(--s-5);
  border-top: 1px solid var(--rule);
}
.hero-mosad .hero-meta-item {
  font-size: 13px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-mute);
}
.hero-mosad .hero-meta-item strong {
  display: block;
  font-family: var(--ff-display);
  font-style: italic;
  font-size: 20px;
  text-transform: none;
  letter-spacing: 0;
  color: var(--navy);
  font-weight: 500;
  margin-top: 2px;
}

/* Image plate — framed, with offset gold border and oversized Hebrew letter */
.hero-plate {
  position: relative;
  aspect-ratio: 4 / 5;
  background: var(--bg-deep);
  isolation: isolate;
}
.hero-plate image-slot { width: 100%; height: 100%; }
.hero-plate::before {
  /* Outer gold frame, offset down-right */
  content: "";
  position: absolute;
  inset: 18px -18px -18px 18px;
  border: 1px solid var(--gold);
  z-index: -1;
}
.hero-plate::after {
  /* Inner hairline */
  content: "";
  position: absolute;
  inset: 10px;
  border: 1px solid rgba(244, 236, 220, 0.45);
  pointer-events: none;
}
.hero-plate-badge {
  position: absolute;
  bottom: -34px;
  left: -34px;
  width: 110px; height: 110px;
  background: var(--cream-soft);
  border: 1px solid var(--gold);
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-family: var(--ff-hebrew);
  font-size: 56px;
  color: var(--burgundy);
  z-index: 3;
  box-shadow: 0 4px 14px rgba(13, 34, 56, 0.12);
}
.hero-plate-badge::before {
  content: "";
  position: absolute;
  inset: 6px;
  border: 1px dashed var(--gold);
  border-radius: 50%;
  opacity: 0.6;
}

/* Big Hebrew watermark behind hero text */
.hero-mosad .hero-letter {
  position: absolute;
  font-family: var(--ff-hebrew);
  font-size: clamp(280px, 32vw, 480px);
  color: var(--gold);
  opacity: 0.055;
  line-height: 0.85;
  top: 50%;
  left: 8%;
  transform: translateY(-50%);
  pointer-events: none;
  z-index: 1;
  user-select: none;
}

/* Hero CTAs row in mosad hero */
.hero-mosad .hero-ctas { display: flex; gap: var(--s-4); flex-wrap: wrap; margin-top: var(--s-2); }

@media (max-width: 960px) {
  .hero-mosad::before { inset: 14px; }
  .hero-mosad .hero-mosad-grid { grid-template-columns: 1fr; gap: var(--s-7); }
  .hero-plate { max-width: 480px; margin: 0 auto; }
  .hero-plate-badge { width: 80px; height: 80px; font-size: 40px; bottom: -24px; left: -16px; }
}

/* --- Ornamental corner SVG container --- */
.frame-ornate {
  position: relative;
  padding: var(--s-7) var(--s-5);
}
.frame-ornate::before,
.frame-ornate::after {
  content: "";
  position: absolute;
  width: 56px; height: 56px;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 56 56' fill='none' stroke='%23b88a2a' stroke-width='0.9'><path d='M1 1 L1 28 M1 1 L28 1'/><path d='M6 6 Q14 6 14 14 Q22 14 22 22' opacity='0.6'/><circle cx='6' cy='6' r='2' fill='%23b88a2a'/></svg>");
  background-size: contain;
  background-repeat: no-repeat;
}
.frame-ornate::before { top: 0; left: 0; }
.frame-ornate::after  { bottom: 0; right: 0; transform: rotate(180deg); }

/* --- Drop cap --- */
.dropcap::first-letter {
  font-family: var(--ff-display);
  font-weight: 500;
  font-size: 5.2em;
  float: left;
  line-height: 0.88;
  padding: 0.05em 0.12em 0 0;
  margin: 0.02em 0.08em 0 0;
  color: var(--burgundy);
  font-style: italic;
}

/* --- Section title: editorial style --- */
.section-titleblock {
  text-align: center;
  margin-bottom: var(--s-8);
  position: relative;
}
.section-titleblock .roman {
  font-family: var(--ff-display);
  font-style: italic;
  font-size: 16px;
  color: var(--gold-deep);
  letter-spacing: 0.32em;
  display: block;
  margin-bottom: var(--s-4);
}
.section-titleblock h2 {
  font-size: clamp(34px, 4vw, 52px);
  margin: 0 auto var(--s-3);
  max-width: 18em;
  font-weight: 500;
}
.section-titleblock .heb-sub {
  font-family: var(--ff-hebrew);
  font-size: 24px;
  color: var(--burgundy);
  display: block;
  margin-bottom: var(--s-4);
}
.section-titleblock .lede {
  font-family: var(--ff-display);
  font-style: italic;
  font-size: 21px;
  color: var(--ink-soft);
  max-width: 32em;
  margin: 0 auto;
  line-height: 1.5;
}
.section-titleblock .fleuron {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--s-3);
  color: var(--gold);
  margin-bottom: var(--s-4);
}
.section-titleblock .fleuron::before,
.section-titleblock .fleuron::after {
  content: "";
  width: 60px; height: 1px;
  background: linear-gradient(90deg, transparent, var(--gold), transparent);
}

/* --- Numbered pillars (editorial) --- */
.numbered-pillars {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
  border-top: 1px solid var(--rule);
  border-bottom: 1px solid var(--rule);
}
.numbered-pillars .np {
  padding: var(--s-8) var(--s-6);
  border-right: 1px solid var(--rule);
  position: relative;
}
.numbered-pillars .np:last-child { border-right: none; }
.numbered-pillars .np-num {
  font-family: var(--ff-display);
  font-style: italic;
  font-size: 14px;
  letter-spacing: 0.24em;
  color: var(--gold-deep);
  margin-bottom: var(--s-4);
}
.numbered-pillars .np-heb {
  font-family: var(--ff-hebrew);
  font-size: 44px;
  color: var(--burgundy);
  line-height: 1;
  margin-bottom: var(--s-3);
}
.numbered-pillars .np h3 {
  font-family: var(--ff-display);
  font-size: 26px;
  margin-bottom: var(--s-3);
  font-style: italic;
  font-weight: 500;
}
.numbered-pillars .np p {
  color: var(--ink-soft);
  font-size: 15.5px;
  line-height: 1.65;
}
@media (max-width: 960px) {
  .numbered-pillars { grid-template-columns: 1fr; }
  .numbered-pillars .np { border-right: none; border-bottom: 1px solid var(--rule); }
  .numbered-pillars .np:last-child { border-bottom: none; }
}

/* --- Pull quote --- */
.pullquote {
  font-family: var(--ff-display);
  font-style: italic;
  font-weight: 400;
  font-size: clamp(28px, 3.2vw, 40px);
  line-height: 1.32;
  color: var(--navy);
  text-align: center;
  max-width: 22em;
  margin: 0 auto;
  position: relative;
  padding: 0 var(--s-7);
}
.pullquote::before,
.pullquote::after {
  font-family: var(--ff-display);
  font-style: italic;
  font-size: 5em;
  color: var(--gold);
  position: absolute;
  line-height: 0.6;
  opacity: 0.5;
}
.pullquote::before { content: "“"; top: 0.05em; left: 0; }
.pullquote::after  { content: "”"; bottom: -0.15em; right: 0; }
.pullquote-attribution {
  display: block;
  margin-top: var(--s-5);
  font-family: var(--ff-body);
  font-style: normal;
  font-size: 12.5px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--gold-deep);
}

/* --- "By the numbers" engraved row --- */
.engraved-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  border-top: 1px solid var(--gold);
  border-bottom: 1px solid var(--gold);
  background: var(--cream-soft);
  position: relative;
}
.engraved-row::before, .engraved-row::after {
  content: "";
  position: absolute;
  left: 0; right: 0;
  height: 1px;
  background: var(--gold);
  opacity: 0.35;
}
.engraved-row::before { top: 4px; }
.engraved-row::after  { bottom: 4px; }
.engraved-row .er {
  padding: var(--s-7) var(--s-4);
  text-align: center;
  border-right: 1px dashed rgba(184, 138, 42, 0.4);
}
.engraved-row .er:last-child { border-right: none; }
.engraved-row .er-num {
  font-family: var(--ff-display);
  font-style: italic;
  font-size: clamp(48px, 5vw, 68px);
  color: var(--navy);
  line-height: 1;
  font-weight: 500;
}
.engraved-row .er-label {
  font-size: 12px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--ink-mute);
  margin-top: var(--s-3);
}
.engraved-row .er-heb {
  font-family: var(--ff-hebrew);
  font-size: 14px;
  color: var(--burgundy);
  margin-top: 4px;
}
@media (max-width: 720px) {
  .engraved-row { grid-template-columns: repeat(2, 1fr); }
  .engraved-row .er { border-bottom: 1px dashed rgba(184, 138, 42, 0.4); }
  .engraved-row .er:nth-child(odd) { border-right: 1px dashed rgba(184, 138, 42, 0.4); }
  .engraved-row .er:nth-child(even) { border-right: none; }
  .engraved-row .er:nth-last-child(-n+2) { border-bottom: none; }
}

/* --- Title-page verse (real letterpress feel) --- */
.title-verse {
  text-align: center;
  max-width: 760px;
  margin: 0 auto;
  position: relative;
  padding: var(--s-8) var(--s-6);
}
.title-verse .crest {
  width: 64px;
  height: 64px;
  margin: 0 auto var(--s-5);
  color: var(--gold);
}
.title-verse .heb-large {
  font-family: var(--ff-hebrew);
  font-size: clamp(32px, 4vw, 44px);
  color: var(--navy);
  line-height: 1.5;
  margin-bottom: var(--s-5);
  font-weight: 500;
  letter-spacing: 0.005em;
}
.title-verse .english {
  font-family: var(--ff-display);
  font-style: italic;
  font-size: clamp(20px, 2vw, 24px);
  color: var(--ink-soft);
  line-height: 1.5;
  max-width: 28em;
  margin: 0 auto;
}
.title-verse cite {
  display: inline-block;
  margin-top: var(--s-5);
  padding: 4px 16px;
  font-style: normal;
  font-size: 12px;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--gold-deep);
  border-top: 1px solid var(--gold);
  border-bottom: 1px solid var(--gold);
}

/* --- Editorial split with annotated label column --- */
.editorial-split {
  display: grid;
  grid-template-columns: 200px 1fr 1fr;
  gap: var(--s-8);
  align-items: start;
}
.editorial-split .anno {
  border-top: 2px solid var(--burgundy);
  padding-top: var(--s-4);
  position: sticky;
  top: 100px;
}
.editorial-split .anno-num {
  font-family: var(--ff-display);
  font-style: italic;
  font-size: 56px;
  color: var(--gold);
  line-height: 1;
  margin-bottom: var(--s-3);
}
.editorial-split .anno-label {
  font-size: 11.5px;
  letter-spacing: 0.26em;
  text-transform: uppercase;
  color: var(--ink-mute);
  font-weight: 600;
}
.editorial-split .anno-heb {
  font-family: var(--ff-hebrew);
  font-size: 18px;
  color: var(--burgundy);
  margin-top: var(--s-2);
  display: block;
}
.editorial-split .copy h2 {
  font-size: clamp(30px, 3.2vw, 42px);
  margin-bottom: var(--s-5);
}
.editorial-split .copy h2 em {
  color: var(--burgundy);
  font-style: italic;
  font-weight: 400;
}
.editorial-split .figure-frame { margin-top: var(--s-2); }
@media (max-width: 960px) {
  .editorial-split { grid-template-columns: 1fr; gap: var(--s-6); }
  .editorial-split .anno { position: static; }
}

/* --- Staff card refined (portrait + caption block) --- */
.staff-refined { display: grid; grid-template-columns: 1fr 1fr; gap: var(--s-8); }
.staff-refined .sr-card {
  text-align: center;
}
.staff-refined .sr-portrait {
  aspect-ratio: 4 / 5;
  background: var(--bg-deep);
  position: relative;
  margin-bottom: var(--s-5);
  max-width: 360px;
  margin-left: auto; margin-right: auto;
}
.staff-refined .sr-portrait::before {
  content: "";
  position: absolute;
  inset: 10px -10px -10px 10px;
  border: 1px solid var(--gold);
  z-index: -1;
}
.staff-refined .sr-portrait::after {
  content: "";
  position: absolute;
  inset: 8px;
  border: 1px solid rgba(244, 236, 220, 0.5);
  pointer-events: none;
}
.staff-refined .sr-portrait image-slot { width: 100%; height: 100%; }
.staff-refined .sr-role {
  font-family: var(--ff-display);
  font-style: italic;
  font-size: 14.5px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gold-deep);
  margin: 0 0 var(--s-3);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--s-3);
}
.staff-refined .sr-role::before,
.staff-refined .sr-role::after {
  content: "";
  width: 20px; height: 1px;
  background: var(--gold);
}
.staff-refined .sr-name {
  font-family: var(--ff-display);
  font-size: 32px;
  color: var(--navy);
  margin: 0 0 var(--s-4);
  font-weight: 500;
  line-height: 1.15;
}
.staff-refined .sr-bio {
  color: var(--ink-soft);
  max-width: 30em;
  margin: 0 auto;
  font-size: 15.5px;
}
@media (max-width: 760px) {
  .staff-refined { grid-template-columns: 1fr; gap: var(--s-7); }
}

/* --- Invitation-style CTA --- */
.cta-invitation {
  position: relative;
  padding: clamp(60px, 8vw, 120px) 0;
  background: var(--navy-ink);
  color: var(--cream-soft);
  overflow: hidden;
}
.cta-invitation::before {
  content: "";
  position: absolute;
  inset: 22px;
  border: 1px solid rgba(184, 138, 42, 0.5);
  pointer-events: none;
}
.cta-invitation::after {
  content: "";
  position: absolute;
  inset: 30px;
  border: 1px solid rgba(184, 138, 42, 0.2);
  pointer-events: none;
}
.cta-invitation .crest-mark {
  width: 56px;
  height: 56px;
  margin: 0 auto var(--s-5);
  color: var(--gold-soft);
}
.cta-invitation .invitation-heb {
  font-family: var(--ff-hebrew);
  font-size: 26px;
  color: var(--gold-soft);
  margin-bottom: var(--s-4);
  display: block;
}
.cta-invitation .invitation-eyebrow {
  font-family: var(--ff-display);
  font-style: italic;
  font-size: 16px;
  letter-spacing: 0.26em;
  text-transform: uppercase;
  color: var(--gold-soft);
  display: inline-flex;
  align-items: center;
  gap: var(--s-3);
  margin-bottom: var(--s-5);
}
.cta-invitation .invitation-eyebrow::before,
.cta-invitation .invitation-eyebrow::after {
  content: "";
  width: 24px; height: 1px;
  background: var(--gold-soft);
}
.cta-invitation h2 {
  color: var(--cream-soft);
  font-size: clamp(36px, 4.4vw, 60px);
  margin-bottom: var(--s-4);
  line-height: 1.1;
}
.cta-invitation h2 em {
  font-style: italic;
  color: var(--gold-soft);
  font-weight: 400;
}
.cta-invitation p {
  color: rgba(244, 236, 220, 0.78);
  font-family: var(--ff-display);
  font-style: italic;
  font-size: 20px;
  max-width: 30em;
  margin: 0 auto var(--s-7);
}
.cta-invitation .btn-primary {
  background: var(--gold);
  color: var(--navy-ink);
}
.cta-invitation .btn-primary:hover { background: var(--gold-soft); color: var(--navy-ink); }
.cta-invitation .btn-secondary {
  color: var(--cream-soft);
  border-color: rgba(244, 236, 220, 0.5);
}
.cta-invitation .btn-secondary:hover { background: var(--cream-soft); color: var(--navy-ink); border-color: var(--cream-soft); }

/* --- Brand crest SVG (reusable) --- */
.crest-icon {
  display: inline-block;
  vertical-align: middle;
}

/* --- Marquee strip with Hebrew terms (subtle moving banner) --- */
.term-strip {
  background: var(--bg-alt);
  border-top: 1px solid var(--rule);
  border-bottom: 1px solid var(--rule);
  overflow: hidden;
  padding: var(--s-4) 0;
}
.term-strip-inner {
  display: flex;
  gap: var(--s-7);
  white-space: nowrap;
  animation: term-scroll 60s linear infinite;
  width: max-content;
}
@keyframes term-scroll {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}
.term {
  display: inline-flex;
  align-items: center;
  gap: var(--s-3);
  font-family: var(--ff-display);
  font-style: italic;
  font-size: 22px;
  color: var(--ink-soft);
}
.term-heb {
  font-family: var(--ff-hebrew);
  font-style: normal;
  color: var(--burgundy);
  font-size: 24px;
}
.term-dot {
  width: 6px; height: 6px;
  background: var(--gold);
  border-radius: 50%;
  display: inline-block;
}
