:root {
  --void: #070604;
  --ink: #0c0b09;
  --panel: #14120e;
  --panel-2: #1b1812;
  --gold: #c9a84c;
  --gold-bright: #e4c878;
  --gold-deep: #8a7340;
  --parchment: #e8dcc8;
  --parchment-deep: #c9b896;
  --cream: #f3ead8;
  --muted: #9a8d74;
  --text: #e8e0d0;
  --line: rgba(201, 168, 76, 0.18);
  --serif: "Cormorant Garamond", "Times New Roman", serif;
  --display: "Cinzel", "Times New Roman", serif;
  --hebrew: "Frank Ruhl Libre", "Times New Roman", serif;
  --sans: "Outfit", system-ui, sans-serif;
  --header: 78px;
  --radius: 4px;
}

*,
*::before,
*::after { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: var(--header);
}

body {
  margin: 0;
  color: var(--text);
  background: var(--void);
  font-family: var(--sans);
  font-weight: 400;
  line-height: 1.65;
  overflow-x: hidden;
}

img { max-width: 100%; display: block; }
button, a { -webkit-tap-highlight-color: transparent; }

h1, h2, h3 {
  font-family: var(--display);
  font-weight: 500;
  line-height: 1.18;
  letter-spacing: 0.02em;
  color: var(--cream);
}

.loader {
  position: fixed;
  inset: 0;
  z-index: 200;
  background: #070604;
  display: grid;
  place-items: center;
  transition: opacity 0.7s ease, visibility 0.7s ease;
}
.loader.done {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}
.loader-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 22px;
}
.loader-mark {
  position: relative;
  width: 88px;
  height: 88px;
  display: grid;
  place-items: center;
}
.loader-ring {
  position: absolute;
  inset: 0;
  border: 1px solid rgba(201, 168, 76, 0.22);
  border-top-color: var(--gold-bright);
  border-right-color: var(--gold);
  border-radius: 50%;
  animation: loader-spin 1.1s linear infinite;
  box-shadow: 0 0 24px rgba(201, 168, 76, 0.18);
}
.loader-letter {
  font-family: var(--hebrew);
  font-size: 2.1rem;
  color: var(--gold);
  animation: loader-pulse 1.6s ease-in-out infinite;
}
.loader-word {
  margin: 0;
  font-family: var(--display);
  letter-spacing: 0.42em;
  text-transform: uppercase;
  font-size: 0.72rem;
  color: var(--gold-deep);
}

.grain {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 70;
  opacity: 0.07;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

.skip-link {
  position: absolute;
  left: 12px;
  top: -48px;
  background: var(--gold);
  color: var(--ink);
  padding: 8px 12px;
  z-index: 100;
  text-decoration: none;
}
.skip-link:focus { top: 12px; }

.scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  height: 2px;
  width: 0;
  background: linear-gradient(90deg, var(--gold-deep), var(--gold-bright));
  z-index: 80;
  box-shadow: 0 0 12px rgba(201, 168, 76, 0.45);
}

.wrap {
  width: min(1120px, calc(100% - 40px));
  margin: 0 auto;
}

.kicker {
  font-family: var(--sans);
  font-size: 0.7rem;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--gold);
  margin: 0 0 14px;
}

.idx {
  font-family: var(--display);
  color: var(--gold-deep);
  margin: 0 0 8px;
  font-size: 0.82rem;
  letter-spacing: 0.2em;
}

.section { padding: 120px 0; position: relative; }

.section-head { max-width: 740px; margin-bottom: 56px; }
.section-head h2 { font-size: clamp(2.1rem, 4.6vw, 3.7rem); margin: 0; }
.section-lead { color: var(--muted); font-size: 1.05rem; max-width: 58ch; font-family: var(--serif); font-size: 1.2rem; }

.ornament {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 20px 0 22px;
  width: 180px;
}
.ornament span {
  flex: 1;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--gold), transparent);
}
.ornament i {
  width: 7px;
  height: 7px;
  border: 1px solid var(--gold);
  transform: rotate(45deg);
}

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 50;
  transition: background 0.35s, box-shadow 0.35s, border-color 0.35s;
  border-bottom: 1px solid transparent;
}
.site-header.scrolled {
  background: rgba(7, 6, 4, 0.78);
  backdrop-filter: blur(18px);
  border-bottom-color: var(--line);
}
.header-inner {
  width: min(1180px, calc(100% - 36px));
  margin: 0 auto;
  height: var(--header);
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.logo {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: var(--cream);
}
.logo-mark {
  width: 36px;
  height: 36px;
  border: 1px solid var(--gold);
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-family: var(--hebrew);
  font-size: 1.15rem;
  color: var(--gold);
}
.logo-text { display: flex; flex-direction: column; line-height: 1.15; }
.logo-text strong {
  font-family: var(--display);
  font-weight: 500;
  font-size: 0.86rem;
  letter-spacing: 0.08em;
}
.logo-text small {
  color: var(--muted);
  font-size: 0.68rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}
.nav { display: flex; align-items: center; gap: 26px; }
.nav a {
  text-decoration: none;
  color: var(--parchment-deep);
  font-size: 0.84rem;
  letter-spacing: 0.06em;
  position: relative;
}
.nav a:not(.nav-cta)::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -6px;
  width: 0;
  height: 1px;
  background: var(--gold);
  transition: width 0.3s;
}
.nav a:not(.nav-cta):hover::after,
.nav a.active::after { width: 100%; }
.nav-cta {
  border: 1px solid var(--gold);
  padding: 8px 16px;
  color: var(--gold) !important;
}
.nav-cta:hover { background: rgba(201, 168, 76, 0.1); }

.menu-btn {
  display: none;
  width: 42px;
  height: 42px;
  border: 0;
  background: none;
  cursor: pointer;
  flex-direction: column;
  justify-content: center;
  gap: 6px;
}
.menu-btn span {
  display: block;
  height: 1.5px;
  width: 22px;
  background: var(--gold);
  transition: transform 0.3s, opacity 0.3s;
}
.menu-btn.open span:nth-child(1) { transform: translateY(7.5px) rotate(45deg); }
.menu-btn.open span:nth-child(2) { opacity: 0; }
.menu-btn.open span:nth-child(3) { transform: translateY(-7.5px) rotate(-45deg); }

.hero {
  min-height: 100vh;
  position: relative;
  display: grid;
  place-items: center;
  overflow: hidden;
  padding: calc(var(--header) + 24px) 0 88px;
  background:
    radial-gradient(900px 520px at 78% 28%, rgba(201, 168, 76, 0.1), transparent 58%),
    radial-gradient(700px 480px at 12% 88%, rgba(138, 115, 64, 0.1), transparent 50%),
    linear-gradient(180deg, #050403 0%, #0b0a08 55%, #070604 100%);
}
#dust {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  opacity: 0.7;
}
.hero-watermark {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  margin: 0;
  font-family: var(--hebrew);
  font-size: clamp(7rem, 22vw, 18rem);
  color: rgba(201, 168, 76, 0.045);
  pointer-events: none;
  z-index: 0;
  letter-spacing: 0.08em;
}
.hero-glow {
  position: absolute;
  width: 420px;
  height: 420px;
  right: 12%;
  top: 28%;
  background: radial-gradient(circle, rgba(201, 168, 76, 0.16), transparent 68%);
  filter: blur(10px);
  pointer-events: none;
  z-index: 1;
  animation: pulse-glow 7s ease-in-out infinite;
}
.hero-inner {
  width: min(1180px, calc(100% - 40px));
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 36px;
  align-items: center;
  position: relative;
  z-index: 2;
}
.hero h1 {
  font-size: clamp(3.2rem, 8vw, 6.2rem);
  margin: 0;
  color: var(--gold-bright);
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  text-shadow: 0 0 40px rgba(201, 168, 76, 0.18);
}
.subtitle {
  font-family: var(--display);
  font-size: clamp(1.1rem, 2vw, 1.45rem);
  letter-spacing: 0.38em;
  text-transform: uppercase;
  color: var(--parchment-deep);
  margin: 8px 0 0;
}
.lede {
  color: var(--muted);
  max-width: 46ch;
  font-family: var(--serif);
  font-size: 1.22rem;
  line-height: 1.7;
}
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; margin: 28px 0 16px; }
.hero-meta {
  margin: 0;
  font-size: 0.75rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--gold-deep);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  padding: 13px 22px;
  font-size: 0.86rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  border: 0;
  cursor: pointer;
  font-family: var(--sans);
  transition: transform 0.25s, box-shadow 0.25s, background 0.25s;
}
.btn-gold {
  background: linear-gradient(180deg, #e0c36a, var(--gold));
  color: var(--ink);
  box-shadow: 0 10px 28px rgba(201, 168, 76, 0.22);
}
.btn-gold:hover { transform: translateY(-2px); box-shadow: 0 16px 32px rgba(201, 168, 76, 0.34); }
.btn-ghost {
  border: 1px solid var(--gold-deep);
  color: var(--parchment);
  background: transparent;
}
.btn-ghost:hover { border-color: var(--gold); color: var(--gold-bright); }

.book-stage {
  perspective: 1200px;
  position: relative;
  display: grid;
  place-items: center;
}
.book-img {
  width: min(460px, 100%);
  filter: drop-shadow(0 30px 50px rgba(0, 0, 0, 0.65));
  transform: rotateY(-12deg) rotateX(4deg);
  animation: book-float 7s ease-in-out infinite;
  transform-style: preserve-3d;
}
.book-light {
  position: absolute;
  bottom: 6%;
  width: 58%;
  height: 40px;
  background: radial-gradient(ellipse, rgba(201, 168, 76, 0.28), transparent 70%);
  filter: blur(8px);
}

.scroll-hint {
  position: absolute;
  bottom: 28px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 3;
  color: var(--muted);
  text-decoration: none;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  font-size: 0.68rem;
  letter-spacing: 0.28em;
  text-transform: uppercase;
}
.scroll-hint b {
  width: 1px;
  height: 36px;
  background: linear-gradient(180deg, var(--gold), transparent);
  animation: drip 2.2s ease-in-out infinite;
}

.marquee {
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  overflow: hidden;
  background: #0a0907;
  padding: 14px 0;
}
.marquee-track {
  display: flex;
  gap: 48px;
  width: max-content;
  animation: marquee 36s linear infinite;
  color: var(--gold-deep);
  letter-spacing: 0.22em;
  text-transform: uppercase;
  font-size: 0.74rem;
}
.marquee-track span { white-space: nowrap; }

.book-layout {
  display: grid;
  grid-template-columns: 0.82fr 1.18fr;
  gap: 56px;
  align-items: start;
}
.cover-card {
  margin: 0;
  background: var(--panel);
  padding: 16px;
  border: 1px solid var(--line);
}
.cover-card img { width: 100%; }
.cover-card figcaption {
  margin-top: 12px;
  font-size: 0.75rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
  text-align: center;
}
.book-prose p {
  font-family: var(--serif);
  font-size: 1.22rem;
  color: #d8d0c0;
}
.book-prose blockquote {
  margin: 28px 0;
  padding: 8px 0 8px 22px;
  border-left: 1px solid var(--gold);
  font-family: var(--serif);
  font-style: italic;
  font-size: 1.35rem;
  color: var(--gold-bright);
}

.method-section {
  background:
    radial-gradient(800px 400px at 50% 0%, rgba(201, 168, 76, 0.06), transparent 60%),
    var(--ink);
}
.method-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}
.method-card {
  background: var(--panel);
  border: 1px solid var(--line);
  padding: 32px 28px 36px;
  min-height: 260px;
  transition: transform 0.35s, border-color 0.35s, box-shadow 0.35s;
}
.method-card:hover {
  transform: translateY(-6px);
  border-color: rgba(201, 168, 76, 0.4);
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.35);
}
.method-num {
  display: block;
  font-family: var(--display);
  color: var(--gold);
  letter-spacing: 0.16em;
  margin-bottom: 18px;
}
.method-card h3 { margin: 0 0 12px; font-size: 1.25rem; }
.method-card p { margin: 0; color: var(--muted); font-family: var(--serif); font-size: 1.12rem; }

.study-section { background: #080706; }
.scroll-panel {
  background:
    linear-gradient(180deg, #f4ead4 0%, #e6d6b8 100%);
  color: #2a2418;
  padding: 48px 44px 40px;
  border: 1px solid #c4b089;
  box-shadow: 0 30px 70px rgba(0, 0, 0, 0.45);
  position: relative;
}
.scroll-top {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 8px;
  background: repeating-linear-gradient(
    90deg,
    #c9a84c 0 12px,
    #8a7340 12px 16px,
    #d8c48a 16px 28px
  );
}
.verse-ref {
  margin: 0 0 22px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  font-size: 0.74rem;
  color: #6e5c38;
}
.hebrew-line {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  margin-bottom: 22px;
  font-family: var(--hebrew);
  font-size: clamp(1.8rem, 4vw, 2.7rem);
}
.he-word {
  appearance: none;
  border: 0;
  background: transparent;
  font: inherit;
  color: #2a2418;
  cursor: pointer;
  padding: 4px 8px;
  border-bottom: 1px solid transparent;
  transition: color 0.25s, border-color 0.25s, background 0.25s;
}
.he-word:hover,
.he-word.active {
  color: #7a5b12;
  border-bottom-color: #c9a84c;
  background: rgba(201, 168, 76, 0.12);
}
.english-line {
  text-align: center;
  font-family: var(--serif);
  font-style: italic;
  font-size: 1.25rem;
  color: #4a4030;
  margin: 0 0 28px;
}
.lex-card {
  background: rgba(255, 255, 255, 0.38);
  border: 1px solid rgba(138, 115, 64, 0.25);
  padding: 22px 24px;
  min-height: 132px;
}
.lex-hint { margin: 0; color: #6e5c38; font-family: var(--serif); font-size: 1.15rem; }
.lex-top {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: baseline;
  flex-wrap: wrap;
}
.lex-he {
  font-family: var(--hebrew);
  font-size: 2rem;
  margin: 0;
}
.lex-strong {
  font-family: var(--display);
  letter-spacing: 0.16em;
  color: #7a5b12;
  margin: 0;
}
.lex-meta { margin: 8px 0 0; color: #5c4e36; font-size: 0.92rem; }
.lex-gloss {
  margin: 12px 0 0;
  font-family: var(--serif);
  font-size: 1.2rem;
}

.cover-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}
.shot {
  appearance: none;
  border: 1px solid var(--line);
  background: var(--panel);
  padding: 10px;
  cursor: pointer;
  color: var(--muted);
  transition: transform 0.35s, border-color 0.35s;
}
.shot img {
  width: 100%;
  aspect-ratio: 2 / 3;
  object-fit: cover;
  object-position: center top;
}
.shot-wide {
  grid-column: 1 / -1;
}
.shot-wide img {
  aspect-ratio: 16 / 7;
  object-fit: contain;
  background: #0a0907;
}
.shot span {
  display: block;
  margin-top: 10px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  font-size: 0.7rem;
}
.shot:hover {
  transform: translateY(-6px);
  border-color: var(--gold);
  color: var(--gold-bright);
}

.author-section { background: var(--ink); }
.author-grid {
  display: grid;
  grid-template-columns: 0.7fr 1.3fr;
  gap: 48px;
  align-items: center;
}
.author-mark {
  aspect-ratio: 1;
  border: 1px solid var(--line);
  display: grid;
  place-items: center;
  text-align: center;
  background:
    radial-gradient(circle at 50% 40%, rgba(201, 168, 76, 0.1), transparent 62%),
    var(--panel);
}
.author-he {
  font-family: var(--hebrew);
  font-size: clamp(4rem, 8vw, 6rem);
  color: var(--gold);
  line-height: 1;
}
.author-mark p {
  margin: 8px 0 0;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  font-size: 0.7rem;
  color: var(--muted);
}
.author-prose p {
  font-family: var(--serif);
  font-size: 1.25rem;
  color: #d8d0c0;
}

.quote-band {
  padding: 100px 0;
  text-align: center;
  background:
    radial-gradient(700px 280px at 50% 50%, rgba(201, 168, 76, 0.08), transparent 70%),
    #050403;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.quote-label {
  font-family: var(--hebrew);
  font-size: 2rem;
  color: var(--gold);
  margin: 0 0 12px;
}
.quote-band blockquote {
  margin: 0;
  font-family: var(--display);
  font-size: clamp(1.8rem, 4vw, 3rem);
  color: var(--cream);
  font-weight: 500;
}
.quote-author {
  color: var(--muted);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-size: 0.72rem;
}

.contact-form {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px 20px;
  width: 100%;
}
.field { display: flex; flex-direction: column; gap: 8px; }
.field-full { grid-column: 1 / -1; }
.field label {
  font-size: 0.72rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gold-deep);
}
.field input,
.field textarea {
  background: var(--panel);
  border: 1px solid var(--line);
  color: var(--cream);
  padding: 12px 14px;
  font: inherit;
  outline: none;
  transition: border-color 0.25s;
}
.field input:focus,
.field textarea:focus { border-color: var(--gold); }
.form-row {
  grid-column: 1 / -1;
  display: flex;
  align-items: center;
  gap: 18px;
  flex-wrap: wrap;
}
.form-status { margin: 0; color: var(--gold-bright); font-family: var(--serif); font-size: 1.1rem; }

.site-footer {
  padding: 40px 0 48px;
  border-top: 1px solid var(--line);
  background: #050403;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr auto;
  gap: 24px;
  align-items: end;
}
.footer-title {
  font-family: var(--display);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin: 0 0 6px;
}
.footer-title em { font-style: normal; color: var(--gold); }
.footer-sub, .copyright { margin: 0; color: var(--muted); font-size: 0.86rem; }
.site-footer nav { display: flex; gap: 18px; flex-wrap: wrap; }
.site-footer a {
  color: var(--parchment-deep);
  text-decoration: none;
  font-size: 0.84rem;
}
.site-footer a:hover { color: var(--gold); }

.lightbox {
  position: fixed;
  inset: 0;
  background: rgba(5, 4, 3, 0.92);
  z-index: 90;
  display: grid;
  place-items: center;
  padding: 40px;
}
.lightbox[hidden] { display: none; }
.lightbox img {
  max-height: 88vh;
  max-width: min(920px, 100%);
  box-shadow: 0 20px 80px rgba(0, 0, 0, 0.6);
}
.lightbox-close {
  position: absolute;
  top: 18px;
  right: 22px;
  background: none;
  border: 0;
  color: var(--gold);
  font-size: 2rem;
  cursor: pointer;
}

.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}
.reveal.in { opacity: 1; transform: none; }
.delay-1 { transition-delay: 0.12s; }
.delay-2 { transition-delay: 0.22s; }
.delay-3 { transition-delay: 0.32s; }

@keyframes book-float {
  0%, 100% { transform: rotateY(-12deg) rotateX(4deg) translateY(0); }
  50% { transform: rotateY(-8deg) rotateX(2deg) translateY(-10px); }
}
@keyframes pulse-glow {
  0%, 100% { opacity: 0.7; transform: scale(1); }
  50% { opacity: 1; transform: scale(1.08); }
}
@keyframes drip {
  0%, 100% { transform: scaleY(0.4); opacity: 0.3; }
  50% { transform: scaleY(1); opacity: 1; }
}
@keyframes marquee {
  to { transform: translateX(-50%); }
}
@keyframes loader-spin {
  to { transform: rotate(360deg); }
}
@keyframes loader-pulse {
  0%, 100% { opacity: 0.45; }
  50% { opacity: 1; }
}

@media (max-width: 960px) {
  .hero-inner,
  .book-layout,
  .method-grid,
  .author-grid,
  .cover-grid,
  .footer-grid {
    grid-template-columns: 1fr;
  }
  .hero { min-height: auto; padding-bottom: 72px; }
  .book-img { width: min(360px, 86vw); margin: 0 auto; }
  .nav {
    display: none;
    position: absolute;
    top: var(--header);
    left: 0;
    right: 0;
    background: rgba(7, 6, 4, 0.96);
    flex-direction: column;
    padding: 20px 24px 28px;
    gap: 16px;
    border-bottom: 1px solid var(--line);
  }
  .nav.open { display: flex; }
  .menu-btn { display: flex; }
  .contact-form { grid-template-columns: 1fr; }
  .scroll-panel { padding: 36px 20px 28px; }
  .shot img { aspect-ratio: 3 / 4; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .book-img, .hero-glow, .marquee-track, .scroll-hint b,
  .loader-ring, .loader-letter { animation: none; }
}
