/* ═══════════════════════════════════════════════════════════════
   מהדורת אור חיים — Or Chaim Edition
   Midnight & gold. Reverent luxury.
   ═══════════════════════════════════════════════════════════════ */

:root {
  --ink:        #0a0f1c;
  --ink-2:      #0e1526;
  --navy:       #131e35;
  --navy-soft:  #1a2745;
  --gold:       #c9a45c;
  --gold-bright:#ecd29a;
  --gold-deep:  #93753a;
  --ivory:      #f3ecdb;
  --ivory-dim:  #cfc7b2;
  --muted:      #9a937f;
  --font-serif: 'Frank Ruhl Libre', 'David Libre', serif;
  --font-sans:  'Heebo', sans-serif;
  --font-slab:  'Suez One', serif;
  --ease-lux:   cubic-bezier(.22, 1, .36, 1);
  --header-h:   76px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 12px);
}

body {
  background: var(--ink);
  color: var(--ivory);
  font-family: var(--font-serif);
  font-weight: 300;
  line-height: 1.75;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

/* grain overlay for the whole page */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  z-index: 3;
  pointer-events: none;
  opacity: .05;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='140' height='140'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2'/%3E%3C/filter%3E%3Crect width='140' height='140' filter='url(%23n)' opacity='1'/%3E%3C/svg%3E");
}

::selection { background: var(--gold); color: var(--ink); }

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }

.gold-hairline {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: 2px;
  z-index: 60;
  background: linear-gradient(90deg, transparent, var(--gold) 30%, var(--gold-bright) 50%, var(--gold) 70%, transparent);
}

/* ─────────────────────────── type ─────────────────────────── */

h1, h2, h3 { font-weight: 500; line-height: 1.25; }

h1 {
  font-size: clamp(2.4rem, 5.6vw, 4.4rem);
  font-weight: 700;
  letter-spacing: -0.01em;
}

h2 {
  font-size: clamp(1.9rem, 4vw, 3rem);
  font-weight: 700;
  color: var(--ivory);
}

h2.display {
  font-family: var(--font-slab);
  font-weight: 400;
  font-size: clamp(2.6rem, 7vw, 5.4rem);
  line-height: 1.1;
  background: linear-gradient(175deg, var(--gold-bright) 10%, var(--gold) 45%, var(--gold-deep) 90%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.overline {
  font-family: var(--font-sans);
  font-weight: 500;
  font-size: .78rem;
  letter-spacing: .35em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 1.1rem;
}
.overline.gold { color: var(--gold); }

.hineni {
  font-family: var(--font-slab);
  font-style: normal;
  font-size: 1.18em;
  background: linear-gradient(170deg, var(--gold-bright), var(--gold) 55%, var(--gold-deep));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  position: relative;
  display: inline-block;
  padding-bottom: .08em;
}
.hineni::after {
  content: '';
  position: absolute;
  right: 2%; left: 2%; bottom: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--gold), transparent);
}

/* ─────────────────────────── layout ─────────────────────────── */

.container { width: min(1160px, 92vw); margin-inline: auto; }
.container.narrow { width: min(760px, 92vw); }
.center { text-align: center; }

.section { position: relative; padding: clamp(5rem, 11vh, 8.5rem) 0; }

/* ornament: ─── ◆ ─── */
.ornament {
  display: flex;
  align-items: center;
  gap: 14px;
  color: var(--gold);
  margin: 1.6rem 0 2.2rem;
}
.ornament i {
  flex: 0 1 130px;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--gold-deep));
}
.ornament i:last-child { background: linear-gradient(90deg, var(--gold-deep), transparent); }
.center .ornament, .mahadura-head .ornament, .site-footer .ornament { justify-content: center; }

/* ─────────────────────────── buttons ─────────────────────────── */

.btn {
  display: inline-block;
  font-family: var(--font-sans);
  font-weight: 500;
  font-size: .95rem;
  letter-spacing: .06em;
  padding: .85em 2.1em;
  border-radius: 2px;
  border: 1px solid transparent;
  cursor: pointer;
  transition: all .45s var(--ease-lux);
  position: relative;
}

.btn-gold {
  background: linear-gradient(160deg, var(--gold-bright), var(--gold) 55%, var(--gold-deep));
  color: #221806;
  box-shadow: 0 8px 30px -8px rgba(201, 164, 92, .55);
}
.btn-gold:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 40px -8px rgba(201, 164, 92, .7);
}

.btn-ghost {
  border-color: rgba(243, 236, 219, .25);
  color: var(--ivory);
}
.btn-ghost:hover { border-color: var(--gold); color: var(--gold-bright); }

.btn-outline {
  border-color: var(--gold-deep);
  color: var(--gold-bright);
}
.btn-outline:hover { background: rgba(201, 164, 92, .12); }

.btn-small { padding: .55em 1.4em; font-size: .82rem; }
.btn-big { padding: 1.05em 3em; font-size: 1.05rem; }

/* ─────────────────────────── header ─────────────────────────── */

.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 50;
  transition: background .5s, box-shadow .5s, backdrop-filter .5s;
}
.site-header.scrolled {
  background: rgba(10, 15, 28, .82);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  box-shadow: 0 1px 0 rgba(201, 164, 92, .18), 0 10px 40px -20px rgba(0,0,0,.8);
}

.header-inner {
  width: min(1240px, 94vw);
  margin-inline: auto;
  height: var(--header-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
}

.brand { display: flex; align-items: center; gap: .8rem; }
.brand-seal {
  width: 44px; height: 44px;
  border-radius: 50%;
  border: 1px solid var(--gold-deep);
  display: grid;
  place-items: center;
  font-family: var(--font-slab);
  font-size: .8rem;
  color: var(--gold-bright);
  background:
    radial-gradient(circle at 32% 28%, rgba(236, 210, 154, .22), transparent 60%),
    var(--navy);
  box-shadow: inset 0 0 0 3px var(--ink), inset 0 0 0 4px rgba(201,164,92,.4);
}
.brand-text strong {
  display: block;
  font-family: var(--font-serif);
  font-weight: 700;
  font-size: 1.02rem;
  color: var(--ivory);
  line-height: 1.2;
}
.brand-text small {
  font-family: var(--font-sans);
  font-weight: 300;
  font-size: .68rem;
  letter-spacing: .22em;
  color: var(--muted);
}

.main-nav { display: flex; gap: 2.2rem; }
.main-nav a {
  font-family: var(--font-sans);
  font-weight: 400;
  font-size: .9rem;
  letter-spacing: .08em;
  color: var(--ivory-dim);
  position: relative;
  padding: .3em 0;
  transition: color .3s;
}
.main-nav a::after {
  content: '';
  position: absolute;
  bottom: 0; right: 0;
  width: 0; height: 1px;
  background: var(--gold);
  transition: width .4s var(--ease-lux);
}
.main-nav a:hover { color: var(--gold-bright); }
.main-nav a:hover::after { width: 100%; }

@media (max-width: 720px) {
  .main-nav { display: none; }
  .brand-text small { display: none; }
}

/* ─────────────────────────── hero ─────────────────────────── */

.hero {
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  position: relative;
  padding: calc(var(--header-h) + 4vh) 0 6vh;
  background:
    radial-gradient(ellipse 90% 60% at 75% 8%, rgba(26, 39, 69, .8), transparent),
    radial-gradient(ellipse 60% 50% at 12% 90%, rgba(19, 30, 53, .9), transparent),
    var(--ink);
  overflow: hidden;
}

.hero-atmosphere { position: absolute; inset: 0; pointer-events: none; }

.glow {
  position: absolute;
  border-radius: 50%;
  filter: blur(90px);
}
.glow-a {
  width: 520px; height: 520px;
  left: 6%; top: 16%;
  background: radial-gradient(circle, rgba(201, 164, 92, .16), transparent 65%);
  animation: breathe 9s ease-in-out infinite;
}
.glow-b {
  width: 420px; height: 420px;
  right: -6%; bottom: -8%;
  background: radial-gradient(circle, rgba(38, 58, 100, .55), transparent 65%);
  animation: breathe 12s ease-in-out infinite reverse;
}
@keyframes breathe {
  0%, 100% { opacity: .7; transform: scale(1); }
  50%      { opacity: 1;  transform: scale(1.12); }
}

/* giant outlined הנני behind everything */
.watermark {
  position: absolute;
  left: -2%;
  bottom: -6%;
  font-family: var(--font-slab);
  font-size: clamp(11rem, 30vw, 26rem);
  line-height: 1;
  color: transparent;
  -webkit-text-stroke: 1px rgba(201, 164, 92, .1);
  user-select: none;
}

/* floating gold dust */
.particles { position: absolute; inset: 0; overflow: hidden; }
.particles b {
  position: absolute;
  bottom: -8px;
  border-radius: 50%;
  background: var(--gold-bright);
  opacity: 0;
  animation: rise linear infinite;
}
@keyframes rise {
  0%   { transform: translateY(0) translateX(0);   opacity: 0; }
  8%   { opacity: var(--o, .5); }
  85%  { opacity: var(--o, .5); }
  100% { transform: translateY(-105vh) translateX(var(--sway, 20px)); opacity: 0; }
}

.hero-inner {
  position: relative;
  z-index: 2;
  width: min(1160px, 92vw);
  margin-inline: auto;
  display: grid;
  grid-template-columns: 1.15fr .85fr;
  align-items: center;
  gap: clamp(2rem, 6vw, 5rem);
}

.hero-copy .lead {
  font-size: clamp(1.05rem, 1.6vw, 1.25rem);
  color: var(--ivory-dim);
  max-width: 34em;
  margin-top: 1.6rem;
}

.hero-actions { display: flex; gap: 1rem; margin-top: 2.4rem; flex-wrap: wrap; }

/* portrait in gold arch */
.portrait-wrap { justify-self: center; }

.portrait {
  --arch: 46% 46% 6px 6px / 38% 38% 6px 6px;
  position: relative;
  width: min(380px, 78vw);
  aspect-ratio: 4 / 5.1;
  border-radius: var(--arch);
  overflow: hidden;
  cursor: pointer;
  box-shadow:
    0 0 0 1px var(--gold-deep),
    0 0 0 7px var(--ink),
    0 0 0 8px rgba(201, 164, 92, .45),
    0 40px 80px -30px rgba(0, 0, 0, .9),
    0 0 90px -20px rgba(201, 164, 92, .28);
  transition: transform .8s var(--ease-lux), box-shadow .8s var(--ease-lux);
}
.portrait:hover, .portrait:focus-visible {
  transform: translateY(-6px);
  box-shadow:
    0 0 0 1px var(--gold),
    0 0 0 7px var(--ink),
    0 0 0 8px var(--gold),
    0 55px 100px -30px rgba(0, 0, 0, .95),
    0 0 130px -20px rgba(201, 164, 92, .45);
}
.portrait img {
  width: 100%; height: 100%;
  object-fit: cover;
  transform: scale(1.02);
  transition: transform 6s var(--ease-lux);
}
.portrait:hover img { transform: scale(1.09); }

.portrait-veil {
  position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(10, 15, 28, .55), transparent 45%);
}

.portrait-wrap figcaption {
  margin-top: 1.3rem;
  text-align: center;
  font-family: var(--font-sans);
  font-weight: 300;
  font-size: .8rem;
  letter-spacing: .25em;
  color: var(--muted);
}

/* video layer inside the arch */
.video-layer {
  position: absolute; inset: 0;
  opacity: 0;
  pointer-events: none;
  transition: opacity .8s ease;
  background: #000;
}
.video-layer iframe {
  width: 100%; height: 100%;
  border: 0;
}
.portrait.playing .video-layer { opacity: 1; pointer-events: auto; }
.portrait.playing .play-hint { opacity: 0; }
.portrait.playing { cursor: default; }

.video-close {
  position: absolute;
  top: 14px; left: 50%;
  transform: translateX(-50%);
  z-index: 5;
  width: 34px; height: 34px;
  border-radius: 50%;
  border: 1px solid rgba(243, 236, 219, .4);
  background: rgba(10, 15, 28, .55);
  color: var(--ivory);
  font-size: .8rem;
  cursor: pointer;
  opacity: 0;
  pointer-events: none;
  transition: opacity .4s, background .3s;
}
.portrait.playing .video-close { opacity: 1; pointer-events: auto; }
.video-close:hover { background: rgba(201, 164, 92, .3); }

.play-hint {
  position: absolute;
  inset-inline: 0;
  bottom: 20px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: .6rem;
  transition: opacity .5s;
  pointer-events: none;
}
.play-ring {
  width: 56px; height: 56px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  color: var(--ink);
  background: linear-gradient(160deg, var(--gold-bright), var(--gold));
  box-shadow: 0 6px 24px -6px rgba(201, 164, 92, .8);
  animation: pulse 2.6s ease-in-out infinite;
}
.play-ring svg { margin-right: 2px; transform: scaleX(-1); }
@keyframes pulse {
  0%, 100% { box-shadow: 0 6px 24px -6px rgba(201,164,92,.8), 0 0 0 0 rgba(201,164,92,.5); }
  55%      { box-shadow: 0 6px 24px -6px rgba(201,164,92,.8), 0 0 0 16px rgba(201,164,92,0); }
}
.play-text {
  font-family: var(--font-sans);
  font-size: .78rem;
  font-weight: 400;
  letter-spacing: .2em;
  color: var(--ivory);
  text-shadow: 0 2px 10px rgba(0,0,0,.8);
}

.scroll-cue {
  position: absolute;
  bottom: 26px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
  width: 26px; height: 44px;
  border: 1px solid rgba(201, 164, 92, .5);
  border-radius: 20px;
  display: flex;
  justify-content: center;
  padding-top: 8px;
}
.scroll-cue span {
  width: 3px; height: 8px;
  border-radius: 3px;
  background: var(--gold);
  animation: cue 2.2s ease-in-out infinite;
}
@keyframes cue {
  0%   { transform: translateY(0); opacity: 1; }
  70%  { transform: translateY(16px); opacity: 0; }
  100% { transform: translateY(0); opacity: 0; }
}

@media (max-width: 900px) {
  .hero { min-height: auto; padding-top: calc(var(--header-h) + 7vh); }
  .hero-inner { grid-template-columns: 1fr; }
  .portrait-wrap { order: -1; }
  .portrait { width: min(300px, 74vw); }
  .hero-copy { text-align: center; }
  .hero-copy .lead { margin-inline: auto; }
  .hero-actions { justify-content: center; }
  .watermark { left: auto; right: -8%; bottom: 40%; opacity: .6; }
  .scroll-cue { display: none; }
}

/* ─────────────────────────── section: harav ─────────────────────────── */

.section-harav {
  background:
    radial-gradient(ellipse 70% 45% at 50% 0%, rgba(19, 30, 53, .55), transparent),
    var(--ink-2);
}

.prose p {
  font-size: clamp(1.05rem, 1.5vw, 1.2rem);
  color: var(--ivory-dim);
  margin-bottom: 1.5em;
  max-width: 62ch;
}
.prose strong { color: var(--gold-bright); font-weight: 500; }

.prose .drop {
  font-size: clamp(1.3rem, 2.2vw, 1.65rem);
  font-weight: 400;
  color: var(--ivory);
  line-height: 1.6;
}
.prose .drop::first-letter {
  font-family: var(--font-slab);
  font-size: 2.6em;
  color: var(--gold);
  float: right;
  line-height: .85;
  margin-left: .18em;
  margin-top: .06em;
}

.grand-quote {
  margin-top: 4rem;
  padding: 3rem 1rem;
  text-align: center;
  position: relative;
}
.grand-quote::before, .grand-quote::after {
  content: '';
  position: absolute;
  right: 20%; left: 20%;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(201, 164, 92, .5), transparent);
}
.grand-quote::before { top: 0; }
.grand-quote::after { bottom: 0; }
.grand-quote p {
  font-size: clamp(1.5rem, 3vw, 2.3rem);
  font-weight: 500;
  line-height: 1.5;
  background: linear-gradient(170deg, var(--ivory), var(--gold-bright));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

/* ─────────────────────────── section: sefer ─────────────────────────── */

.section-sefer { background: var(--ink); }

.split {
  display: grid;
  grid-template-columns: 1.1fr .9fr;
  gap: clamp(2.5rem, 6vw, 5.5rem);
  align-items: center;
}
@media (max-width: 880px) { .split { grid-template-columns: 1fr; } }

.hand-off {
  margin-top: 2.2rem;
  font-family: var(--font-sans);
  font-weight: 400;
  letter-spacing: .12em;
  color: var(--gold);
  font-size: .95rem;
}

.quote-card {
  position: relative;
  padding: clamp(2.2rem, 4vw, 3.2rem);
  background:
    radial-gradient(ellipse at 80% 0%, rgba(201, 164, 92, .1), transparent 55%),
    linear-gradient(160deg, var(--navy-soft), var(--navy) 60%, var(--ink-2));
  border: 1px solid rgba(201, 164, 92, .3);
  border-radius: 3px;
  box-shadow:
    inset 0 0 0 5px var(--ink),
    inset 0 0 0 6px rgba(201, 164, 92, .22),
    0 30px 70px -30px rgba(0, 0, 0, .85);
}
.quote-card .quote-mark {
  position: absolute;
  top: -.15em;
  right: .35em;
  font-family: var(--font-slab);
  font-size: 6rem;
  color: rgba(201, 164, 92, .3);
  line-height: 1;
}
.quote-card p {
  font-size: clamp(1.25rem, 2vw, 1.55rem);
  font-weight: 500;
  line-height: 1.8;
  color: var(--ivory);
}
.quote-card footer {
  margin-top: 1.6rem;
  font-family: var(--font-sans);
  font-weight: 300;
  font-size: .78rem;
  letter-spacing: .28em;
  color: var(--gold);
}

/* ─────────────────────────── section: mahadura ─────────────────────────── */

.section-mahadura {
  background:
    radial-gradient(ellipse 80% 50% at 50% 100%, rgba(19, 30, 53, .7), transparent),
    linear-gradient(180deg, var(--ink) 0%, #0b1122 50%, var(--ink) 100%);
  overflow: hidden;
}
.mahadura-atmosphere {
  position: absolute; inset: 0;
  background:
    radial-gradient(circle 2px at 18% 30%, rgba(236,210,154,.5) 40%, transparent 60%),
    radial-gradient(circle 1.6px at 82% 18%, rgba(236,210,154,.4) 40%, transparent 60%),
    radial-gradient(circle 1.4px at 68% 72%, rgba(236,210,154,.35) 40%, transparent 60%),
    radial-gradient(circle 2px at 8% 82%, rgba(236,210,154,.3) 40%, transparent 60%),
    radial-gradient(circle 1.3px at 42% 12%, rgba(236,210,154,.45) 40%, transparent 60%),
    radial-gradient(circle 1.5px at 92% 55%, rgba(236,210,154,.35) 40%, transparent 60%);
  pointer-events: none;
}

.mahadura-head { text-align: center; margin-bottom: clamp(3rem, 7vh, 5rem); position: relative; }

.mahadura-intro {
  font-size: clamp(1.1rem, 1.8vw, 1.35rem);
  color: var(--ivory-dim);
  max-width: 44em;
  margin-inline: auto;
}
.mahadura-intro strong { color: var(--gold-bright); font-weight: 500; }

.edition-stage {
  display: grid;
  grid-template-columns: minmax(300px, 460px) 1fr;
  gap: clamp(2.5rem, 6vw, 5rem);
  align-items: center;
  position: relative;
}
@media (max-width: 960px) {
  .edition-stage { grid-template-columns: 1fr; }
  .book-scene { margin-inline: auto; }
}

/* ── the book itself ── */

.book-scene {
  perspective: 1600px;
  padding: 2rem 1rem 3.5rem;
}

.book {
  position: relative;
  width: min(330px, 74vw);
  aspect-ratio: 5 / 7.1;
  margin-inline: auto;
  transform-style: preserve-3d;
  transform: rotateY(14deg) rotateX(4deg);
  transition: transform 1.2s var(--ease-lux);
  animation: levitate 7s ease-in-out infinite;
}
.book-scene:hover .book { transform: rotateY(5deg) rotateX(2deg); }

@keyframes levitate {
  0%, 100% { translate: 0 0; }
  50%      { translate: 0 -10px; }
}

.book-spine {
  position: absolute;
  top: 0; bottom: 0;
  right: -14px;
  width: 15px;
  background: linear-gradient(90deg, #2a3b63, var(--navy) 40%, #0d1526);
  border-radius: 2px 4px 4px 2px;
  transform: rotateY(55deg);
  transform-origin: left center;
  box-shadow: inset 0 0 12px rgba(0,0,0,.6);
}
.book-pages {
  position: absolute;
  top: 5px; bottom: 5px;
  left: -8px;
  width: 9px;
  background: repeating-linear-gradient(90deg, #e9e0c8 0 1.4px, #c9bfa4 1.4px 2.4px);
  border-radius: 1px 0 0 1px;
  transform: translateZ(-6px);
}

.book-cover {
  position: absolute;
  inset: 0;
  border-radius: 4px 10px 10px 4px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 11% 9% 9%;
  background:
    radial-gradient(circle 1.4px at 22% 34%, rgba(236,210,154,.6) 40%, transparent 60%),
    radial-gradient(circle 1px at 78% 22%, rgba(236,210,154,.5) 40%, transparent 60%),
    radial-gradient(circle 1.2px at 64% 58%, rgba(236,210,154,.4) 40%, transparent 60%),
    radial-gradient(circle 1px at 30% 78%, rgba(236,210,154,.45) 40%, transparent 60%),
    radial-gradient(circle 1.3px at 85% 88%, rgba(236,210,154,.4) 40%, transparent 60%),
    radial-gradient(ellipse 120% 70% at 50% -10%, #223252, transparent 60%),
    linear-gradient(165deg, #1b2946 0%, #121d36 45%, #0c1428 100%);
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,.08),
    inset 0 0 40px rgba(0,0,0,.5);
}

.cover-frame {
  position: absolute;
  inset: 4.5%;
  border: 1px solid rgba(201, 164, 92, .75);
  border-radius: 3px;
  box-shadow:
    inset 0 0 0 2.5px transparent,
    0 0 0 3px rgba(201, 164, 92, .0);
  outline: 1px solid rgba(201, 164, 92, .3);
  outline-offset: 3px;
  pointer-events: none;
}

.cover-seal {
  position: absolute;
  top: 6.5%;
  left: 8%;
  width: 64px; height: 64px;
  border-radius: 50%;
  border: 1px solid var(--gold);
  background: radial-gradient(circle at 35% 30%, #23345a, #101b33 70%);
  box-shadow: inset 0 0 0 3px #101b33, inset 0 0 0 4px rgba(201,164,92,.5), 0 4px 14px rgba(0,0,0,.5);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1px;
  z-index: 4;
}
.cover-seal small {
  font-family: var(--font-sans);
  font-size: .48rem;
  letter-spacing: .12em;
  color: var(--gold-bright);
}
.cover-seal b {
  font-family: var(--font-slab);
  font-size: 1.15rem;
  line-height: 1;
  color: var(--gold-bright);
}

.cover-arch {
  width: 74%;
  aspect-ratio: 4 / 3.4;
  border-radius: 45% 45% 4px 4px / 52% 52% 4px 4px;
  overflow: hidden;
  border: 1px solid rgba(201, 164, 92, .8);
  box-shadow: 0 0 0 3px #0c1428, 0 0 0 4px rgba(201,164,92,.35), 0 10px 30px rgba(0,0,0,.55);
  position: relative;
  z-index: 2;
}
.cover-arch img {
  width: 100%; height: 100%;
  object-fit: cover;
  object-position: 50% 12%;
  filter: sepia(.15) saturate(.9) brightness(.92);
}
.cover-arch::after {
  content: '';
  position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(12, 20, 40, .55), transparent 50%);
}

.cover-hineni {
  font-family: var(--font-slab);
  font-size: clamp(2.6rem, 9vw, 3.6rem);
  line-height: 1;
  margin-top: -0.48em;
  position: relative;
  z-index: 3;
  color: #0e1832;
  -webkit-text-stroke: 1px rgba(201, 164, 92, .65);
  text-shadow:
    0 1px 0 rgba(236, 210, 154, .35),
    0 3px 8px rgba(0, 0, 0, .75);
  letter-spacing: .04em;
}

.cover-title { text-align: center; margin-top: 4%; z-index: 2; }
.cover-title .t-haim {
  display: block;
  font-family: var(--font-slab);
  font-size: clamp(1.9rem, 6.4vw, 2.6rem);
  line-height: 1.05;
  background: linear-gradient(175deg, var(--gold-bright) 20%, var(--gold) 60%, var(--gold-deep));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.cover-title .t-sub {
  display: block;
  font-weight: 400;
  font-size: clamp(.95rem, 3vw, 1.2rem);
  letter-spacing: .12em;
  color: var(--ivory);
  margin-top: .2em;
}

.cover-ornament {
  display: flex;
  align-items: center;
  gap: 8px;
  width: 62%;
  margin-top: 6%;
}
.cover-ornament i { flex: 1; height: 1px; background: linear-gradient(90deg, transparent, var(--gold)); }
.cover-ornament i:last-child { background: linear-gradient(90deg, var(--gold), transparent); }
.cover-ornament b {
  width: 7px; height: 7px;
  border: 1px solid var(--gold);
  transform: rotate(45deg);
}

.cover-edition {
  margin-top: 5%;
  font-family: var(--font-sans);
  font-weight: 400;
  font-size: .72rem;
  letter-spacing: .42em;
  color: var(--gold);
}

.book-shadow {
  position: absolute;
  bottom: -3rem;
  left: 8%; right: 8%;
  height: 30px;
  border-radius: 50%;
  background: radial-gradient(ellipse, rgba(0, 0, 0, .65), transparent 70%);
  transform: translateZ(-40px);
  filter: blur(6px);
  animation: shadowPulse 7s ease-in-out infinite;
}
@keyframes shadowPulse {
  0%, 100% { opacity: 1; transform: translateZ(-40px) scale(1); }
  50%      { opacity: .7; transform: translateZ(-40px) scale(.94); }
}

/* ── features ── */

.features {
  list-style: none;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(1.4rem, 3vw, 2.4rem);
}
@media (max-width: 620px) { .features { grid-template-columns: 1fr; } }

.features li {
  padding: 1.8rem 1.6rem;
  border: 1px solid rgba(201, 164, 92, .16);
  border-radius: 3px;
  background: linear-gradient(170deg, rgba(26, 39, 69, .45), rgba(14, 21, 38, .3));
  transition: border-color .5s, transform .5s var(--ease-lux), background .5s;
}
.features li:hover {
  border-color: rgba(201, 164, 92, .55);
  transform: translateY(-4px);
  background: linear-gradient(170deg, rgba(26, 39, 69, .7), rgba(14, 21, 38, .5));
}

.f-icon {
  display: inline-grid;
  place-items: center;
  width: 52px; height: 52px;
  border-radius: 50%;
  color: var(--gold-bright);
  border: 1px solid rgba(201, 164, 92, .4);
  background: radial-gradient(circle at 35% 30%, rgba(201, 164, 92, .16), transparent 65%);
  margin-bottom: 1.1rem;
}
.f-icon svg { width: 26px; height: 26px; }

.features h3 {
  font-size: 1.18rem;
  font-weight: 700;
  color: var(--gold-bright);
  margin-bottom: .5rem;
}
.features p {
  font-size: .96rem;
  color: var(--ivory-dim);
  line-height: 1.8;
}

.edition-whisper {
  margin-top: clamp(3rem, 7vh, 4.5rem);
  text-align: center;
  font-size: clamp(1.2rem, 2.4vw, 1.7rem);
  font-weight: 400;
  color: var(--ivory);
}
.edition-whisper span { color: var(--gold-bright); }

/* ─────────────────────────── section: number ─────────────────────────── */

.section-number {
  background:
    radial-gradient(ellipse 60% 70% at 50% 50%, rgba(26, 39, 69, .55), transparent),
    var(--ink-2);
  text-align: center;
}

.plaque {
  position: relative;
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  gap: .3rem;
  padding: 2.8rem 4.5rem 2.5rem;
  margin-top: 1rem;
  background:
    radial-gradient(ellipse at 50% 0%, rgba(201, 164, 92, .1), transparent 60%),
    linear-gradient(170deg, var(--navy-soft), var(--ink-2) 80%);
  border: 1px solid rgba(201, 164, 92, .55);
  border-radius: 4px;
  box-shadow:
    inset 0 0 0 6px var(--ink-2),
    inset 0 0 0 7px rgba(201, 164, 92, .3),
    0 30px 80px -30px rgba(0, 0, 0, .9),
    0 0 70px -20px rgba(201, 164, 92, .25);
}
.plaque small {
  font-family: var(--font-sans);
  font-weight: 400;
  font-size: .8rem;
  letter-spacing: .4em;
  color: var(--gold);
}
.plaque-number {
  font-family: var(--font-slab);
  font-size: clamp(4.5rem, 12vw, 7rem);
  line-height: 1.05;
  background: linear-gradient(175deg, var(--gold-bright) 15%, var(--gold) 55%, var(--gold-deep));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  min-width: 2.2em;
  font-variant-numeric: tabular-nums;
}
.plaque .of { color: var(--ivory-dim); letter-spacing: .3em; }

.scarcity {
  margin-top: 2.8rem;
  font-size: clamp(1.05rem, 1.8vw, 1.3rem);
  color: var(--ivory-dim);
  line-height: 2;
}
.scarcity strong { color: var(--gold-bright); font-weight: 500; }

/* ─────────────────────────── section: contact ─────────────────────────── */

.section-contact {
  background:
    radial-gradient(ellipse 70% 55% at 50% 110%, rgba(201, 164, 92, .09), transparent),
    var(--ink);
}

.contact-lead {
  font-size: clamp(1.02rem, 1.6vw, 1.2rem);
  color: var(--ivory-dim);
  margin-top: 1.4rem;
  line-height: 2;
}

.contact-form {
  margin-top: 3rem;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.6rem 1.4rem;
  text-align: right;
}
@media (max-width: 620px) { .contact-form { grid-template-columns: 1fr; } }

.field { position: relative; }
.field-wide { grid-column: 1 / -1; }

.field input, .field textarea {
  width: 100%;
  background: rgba(26, 39, 69, .3);
  border: 1px solid rgba(201, 164, 92, .22);
  border-radius: 2px;
  padding: 1.15em 1.1em .7em;
  font-family: var(--font-serif);
  font-size: 1rem;
  color: var(--ivory);
  transition: border-color .4s, background .4s;
  resize: vertical;
}
.field input:focus, .field textarea:focus {
  outline: none;
  border-color: var(--gold);
  background: rgba(26, 39, 69, .5);
}
.field label {
  position: absolute;
  top: .95em; right: 1.1em;
  font-family: var(--font-sans);
  font-weight: 300;
  font-size: .92rem;
  color: var(--muted);
  pointer-events: none;
  transition: all .3s var(--ease-lux);
}
.field input:focus + label,
.field input:not(:placeholder-shown) + label,
.field textarea:focus + label,
.field textarea:not(:placeholder-shown) + label {
  top: .3em;
  font-size: .66rem;
  letter-spacing: .12em;
  color: var(--gold);
}

.contact-form .btn-big {
  grid-column: 1 / -1;
  justify-self: center;
  margin-top: .6rem;
}

.form-note {
  grid-column: 1 / -1;
  text-align: center;
  font-family: var(--font-sans);
  font-size: .85rem;
  color: var(--gold-bright);
  min-height: 1.4em;
}

/* ─────────────────────────── footer ─────────────────────────── */

.site-footer {
  padding: 4rem 1rem 3rem;
  text-align: center;
  border-top: 1px solid rgba(201, 164, 92, .14);
  background: #070b14;
}
.site-footer .ornament { margin: 0 auto 1.6rem; max-width: 340px; }
.footer-main {
  font-weight: 500;
  letter-spacing: .06em;
  color: var(--ivory);
}
.footer-sub {
  margin-top: .4rem;
  font-family: var(--font-sans);
  font-weight: 300;
  font-size: .8rem;
  letter-spacing: .22em;
  color: var(--muted);
}

/* ─────────────────────────── reveal on scroll ─────────────────────────── */

.reveal {
  opacity: 0;
  transform: translateY(26px);
  transition:
    opacity 1s var(--ease-lux) var(--d, 0s),
    transform 1s var(--ease-lux) var(--d, 0s);
}
.reveal.in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
  }
  .reveal { opacity: 1; transform: none; }
  html { scroll-behavior: auto; }
}
