/* ============================================================================
   תהל שרה באבאייב · הדרכת כלות
   VOICE   אינטימי, עדין, בטוח בעצמו. מעט מילים, הרבה אוויר.
   IDEA    "בית נבנה כמו פנינה": שכבה אחר שכבה, מבפנים. האתר כספר בפרקים.
   PICTURE פנינה חיה (WebGL) על קטיפה, טבעות אם-הפנינה, שזירת חוטים, קווי יד.
   COLOUR  קטיפה סגולה-עמוקה · קנבס Cloud Dancer · עלה כותרת · נגיעת יין לקווי יד.
   TYPE    Noto Serif Hebrew (תצוגה, משקלים דקים) + IBM Plex Sans Hebrew (טקסט).
   ========================================================================== */

:root {
  --velvet: #24161B;
  --velvet-2: #2F1D24;
  --plum: #4A2C37;
  --canvas: #F0EEE9;
  --paper: #F7F4EF;
  --petal: #EBD4CB;
  --petal-2: #E2BFB3;
  --wine: #8E3349;
  --ink: #2A1A1F;
  --ink-soft: #66545A;
  --mist: #BCAAB0;
  --cloud: #F0EEE9;
  --hair-dark: rgba(240, 238, 233, .16);
  --hair-light: rgba(42, 26, 31, .14);
  --nacre: linear-gradient(115deg, #F1DCE3 0%, #DCE9E8 34%, #F0E8D4 62%, #E3D9EF 100%);

  --serif: 'Noto Serif Hebrew', 'Frank Ruhl Libre', 'David', serif;
  --sans: 'IBM Plex Sans Hebrew', 'Heebo', 'Segoe UI', Arial, sans-serif;

  --gutter: clamp(20px, 5vw, 72px);
  --ease: cubic-bezier(.22, .61, .36, 1);
  --ease-out: cubic-bezier(.16, 1, .3, 1);
  --hdr: 76px;
}

*, *::before, *::after { box-sizing: border-box; }
html { background: var(--velvet); -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-padding-top: 80px; }
body {
  margin: 0; background: var(--canvas); color: var(--ink);
  font: 300 1.0625rem/1.75 var(--sans);
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
  overflow-x: clip;
}
img, svg, canvas { display: block; max-width: 100%; }
h1, h2, h3, p, ol, ul, figure, blockquote { margin: 0; }
ol, ul { padding: 0; list-style: none; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
strong { font-weight: 500; }
::selection { background: var(--petal-2); color: var(--ink); }
:focus-visible { outline: 2px solid currentColor; outline-offset: 4px; border-radius: 4px; }

.sr-only, .visually-tag { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.defs { position: absolute; width: 0; height: 0; overflow: hidden; }
.skip { position: fixed; top: 12px; right: 12px; z-index: 200; padding: .7rem 1.2rem; border-radius: 99px; background: var(--cloud); color: var(--ink); font-weight: 500; transform: translateY(-200%); transition: transform .3s; }
.skip:focus { transform: none; }

.wrap { width: 100%; max-width: 1360px; margin-inline: auto; padding-inline: var(--gutter); }

/* ---------- טיפוגרפיה ---------- */
.kicker {
  display: flex; align-items: center; gap: .9rem;
  font: 500 .8rem/1.3 var(--sans); letter-spacing: .08em;
  color: var(--ink-soft); margin-bottom: 1.6rem;
}
.kicker::before { content: ""; width: 34px; height: 1px; background: currentColor; opacity: .6; }
.h2 {
  font: 200 clamp(2.5rem, 5.6vw, 5.2rem)/1.04 var(--serif);
  letter-spacing: -.02em; text-wrap: balance;
  margin-bottom: 1.8rem;
}
.body-lg { font-size: clamp(1.18rem, 1.6vw, 1.36rem); line-height: 1.65; font-weight: 300; margin-bottom: 1.2rem; }
p + p { margin-top: .9rem; }

/* ---------- כפתורים ---------- */
.btn {
  position: relative; isolation: isolate; overflow: hidden;
  display: inline-flex; align-items: center; justify-content: center; gap: .65rem;
  min-height: 56px; padding: .95rem 1.7rem; border-radius: 999px;
  font: 500 1.02rem/1 var(--sans); white-space: nowrap;
  transition: transform .5s var(--ease-out), color .4s, background-color .4s, border-color .4s;
}
.btn svg { width: 1.2em; height: 1.2em; }
.btn::before { /* מילוי אם-הפנינה בריחוף */
  content: ""; position: absolute; inset: 0; z-index: -1; border-radius: inherit;
  background: var(--nacre); transform: translateY(101%); transition: transform .6s var(--ease-out);
}
.btn:hover::before { transform: none; }
.btn--light { background: var(--cloud); color: var(--ink); }
.btn--dark { background: var(--ink); color: var(--cloud); }
.btn--dark:hover { color: var(--ink); }
.btn--ghost { border: 1px solid var(--hair-dark); color: var(--cloud); }
.btn--ghost:hover { color: var(--ink); border-color: transparent; }
.btn--block { width: 100%; }

.pill {
  position: relative; overflow: hidden; isolation: isolate;
  display: inline-flex; align-items: center; gap: .5rem;
  height: 42px; padding: 0 1.1rem; border-radius: 999px;
  font: 500 .92rem/1 var(--sans);
  border: 1px solid currentColor;
  transition: color .4s, border-color .4s;
}
.pill svg { width: 1.05rem; height: 1.05rem; }
.pill::before { content: ""; position: absolute; inset: 0; z-index: -1; background: var(--nacre); transform: scaleX(0); transform-origin: right; transition: transform .6s var(--ease-out); }
.pill:hover { color: var(--ink); border-color: transparent; }
.pill:hover::before { transform: scaleX(1); }

.round-btn {
  width: 42px; height: 42px; border-radius: 50%; display: grid; place-items: center;
  border: 1px solid currentColor; opacity: .9; transition: opacity .3s, transform .3s;
}
.round-btn:hover { transform: rotate(-8deg); }
.round-btn svg { width: 20px; height: 20px; }

.link-quiet {
  display: inline-flex; align-items: center; gap: .45rem;
  font: 500 .98rem/1.4 var(--sans); padding-block: .3rem;
  background: linear-gradient(currentColor, currentColor) right bottom / 100% 1px no-repeat;
  transition: background-size .5s var(--ease-out);
}
.link-quiet:hover { background-size: 0 1px; }
.link-quiet svg { width: 1.05em; height: 1.05em; }

/* ---------- קווי יד ---------- */
.doodle { position: absolute; pointer-events: none; overflow: visible; }
.doodle path { fill: none; stroke: var(--wine); stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; vector-effect: non-scaling-stroke; }
.doodle--circle { inset: -32% -14% -30% -12%; width: 126%; height: 162%; }
.doodle--line { inset-inline: 0; bottom: -.12em; width: 100%; height: .3em; }
.doodle--swash { inset-inline: -4%; bottom: -.22em; width: 108%; height: .45em; }
.doodle--heart { width: .5em; height: .45em; top: -.08em; inset-inline-end: -.42em; }
.doodled { position: relative; display: inline-block; white-space: nowrap; }

/* ============================================================================
   כותרת
   ========================================================================== */
.hdr {
  position: fixed; inset: 0 0 auto; z-index: 60; height: var(--hdr);
  display: flex; justify-content: space-between; align-items: center; gap: 1rem;
  padding-inline: var(--gutter); color: var(--cloud);
  transition: color .5s var(--ease), transform .6s var(--ease-out), background-color .5s, backdrop-filter .5s;
}
.hdr.is-solid { background: rgba(36, 22, 27, .72); -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px); }
.hdr.is-solid[data-tone="light"] { background: rgba(240, 238, 233, .78); }
.hdr[data-tone="light"] { color: var(--ink); }
.hdr.is-hidden { transform: translateY(-110%); }
.hdr-brand { display: inline-flex; align-items: center; gap: .6rem; min-width: 0; }
.hdr-mark { width: 30px; height: 30px; color: currentColor; }
.hdr-name { font: 300 1.22rem/1 var(--serif); letter-spacing: -.01em; }
.hdr-chapter { display: none; position: absolute; left: 50%; translate: -50% 0; align-items: center; gap: .8rem; font: 500 .78rem/1 var(--sans); letter-spacing: .08em; opacity: .85; white-space: nowrap; }
.hdr-chapter-sep { width: 22px; height: 1px; background: currentColor; opacity: .5; }
.hdr-actions { justify-self: end; display: flex; align-items: center; gap: .6rem; }
.hdr-cta { display: none; }
.menu-btn { display: inline-flex; align-items: center; gap: .65rem; height: 42px; padding-inline: .9rem .2rem; font: 500 .92rem/1 var(--sans); }
.menu-btn-lines { display: grid; gap: 6px; width: 24px; }
.menu-btn-lines i { display: block; height: 1.3px; background: currentColor; transition: transform .4s var(--ease-out); }
.menu-btn-lines i:last-child { width: 62%; justify-self: end; }
.menu-btn:hover .menu-btn-lines i:last-child { transform: scaleX(1.6); transform-origin: left; }
@media (max-width: 640px) { .menu-btn-label { display: none; } .hdr-name { font-size: 1.02rem; white-space: nowrap; } .hdr-mark { width: 26px; height: 26px; } }
@media (max-width: 899px) { .noise-words span:nth-child(3n) { display: none; } .noise-words span { opacity: calc(.08 + var(--d) * .16); } }
@media (min-width: 900px) { .hdr-cta { display: inline-flex; } }
@media (min-width: 1180px) { .hdr-chapter { display: inline-flex; } }

/* תפריט */
.menu {
  border: 0; padding: 0; margin: 0; width: 100%; max-width: none; height: 100%; max-height: none; height: 100dvh;
  background: var(--velvet); color: var(--cloud);
  overflow-y: auto; overscroll-behavior: contain;
}
.menu::backdrop { background: var(--velvet); }
.menu[open] { animation: menu-in .7s var(--ease-out); }
@keyframes menu-in { from { clip-path: inset(0 0 100% 0); } to { clip-path: inset(0 0 0 0); } }
.menu-inner { min-height: 100%; display: flex; flex-direction: column; padding: 18px var(--gutter) 28px; }
.menu-top { display: flex; justify-content: space-between; align-items: center; height: 58px; }
.menu-label { font: 500 .8rem/1 var(--sans); letter-spacing: .08em; opacity: .7; }
.menu-inner > nav { margin-block: auto; } /* centers the chapters; the contact row stays at the bottom */
.menu-list { padding-block: clamp(1rem, 4vh, 2rem); counter-reset: m; }
/* the size follows the width and the height, so all ten chapters fit on the screen */
.menu-list a {
  display: flex; align-items: baseline; gap: 1.2rem; padding-block: .35rem;
  font: 200 clamp(1.5rem, min(max(5.4vw, 1.9rem), calc((100vh - 345px) / 11.5)), 3.6rem)/1.15 var(--serif); letter-spacing: -.015em;
  font-size: clamp(1.5rem, min(max(5.4vw, 1.9rem), calc((100dvh - 345px) / 11.5)), 3.6rem);
  transition: transform .5s var(--ease-out), color .3s;
}
/* wide screens: two columns, like the contents page of a book (א–ה, ו–י) */
@media (min-width: 900px), (min-width: 600px) and (orientation: landscape) {
  .menu-list { display: grid; grid-template-rows: repeat(5, auto); grid-auto-flow: column; grid-auto-columns: minmax(0, 1fr); column-gap: 5vw; }
  .menu-list a {
    font-size: clamp(1.5rem, min(3.1vw, calc((100vh - 300px) / 6.5)), 3.1rem);
    font-size: clamp(1.5rem, min(3.1vw, calc((100dvh - 300px) / 6.5)), 3.1rem);
  }
}
.menu-list a small { font: 500 .78rem/1 var(--sans); opacity: .5; min-width: 1.6rem; }
.menu-list a:hover { transform: translateX(-12px); color: #fff; }
.menu[open] .menu-list li { animation: rise .8s var(--ease-out) both; }
.menu[open] .menu-list li:nth-child(n) { animation-delay: calc(var(--i, 0) * 1ms); }
.menu-foot { display: flex; flex-wrap: wrap; gap: .8rem 2rem; border-top: 1px solid var(--hair-dark); padding-top: 1.2rem; font: 400 .98rem/1.4 var(--sans); }
.menu-foot a { display: inline-flex; align-items: center; gap: .5rem; }
.menu-foot svg { width: 18px; height: 18px; }
@keyframes rise { from { opacity: 0; transform: translateY(24px); } }

/* ============================================================================
   פתיחה
   ========================================================================== */
.hero {
  position: relative; isolation: isolate; overflow: hidden;
  min-height: 100svh; color: var(--cloud);
  background:
    radial-gradient(60% 55% at 34% 50%, rgba(122, 72, 92, .42), transparent 70%),
    radial-gradient(40% 40% at 90% 10%, rgba(74, 44, 55, .6), transparent 70%),
    var(--velvet);
}
.hero-pearl { position: absolute; inset: 0; width: 100%; height: 100%; z-index: -1; }
.hero-grid {
  position: relative; min-height: 100svh;
  display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); grid-template-rows: auto 1fr auto auto;
  column-gap: 20px; padding: calc(var(--hdr) + 3vh) var(--gutter) 5vh;
}
.hero-bsd { position: absolute; top: calc(var(--hdr) + 4px); inset-inline-start: var(--gutter); font: 400 .8rem/1 var(--sans); opacity: .7; }
.hero-meta { grid-row: 1; grid-column: 1 / 8; margin-top: 1.6rem; }
.hero-meta { grid-column: 1 / -1; display: flex; gap: 1.2rem; font: 500 .8rem/1 var(--sans); letter-spacing: .08em; opacity: .8; }
.hero-meta span + span::before { content: ""; display: inline-block; width: 26px; height: 1px; background: currentColor; vertical-align: middle; margin-inline-end: 1.2rem; opacity: .6; }
.hero-title {
  grid-column: 1 / -1; grid-row: 2; align-self: center; position: relative; z-index: 1;
  font: 200 clamp(4rem, 10.6vw, 11.8rem)/.92 var(--serif); letter-spacing: -.035em;
  display: grid; padding-block: 3vh;
}
.ht-line { display: block; }
.ht-2 { justify-self: start; padding-inline-start: 11vw; }
.hero-slot { grid-column: 8 / -1; grid-row: 1 / 3; align-self: center; justify-self: center; width: min(32vw, 56vh); aspect-ratio: 1; pointer-events: none; transform: translateY(4vh); }
@media (max-width: 759px) {
  .hero-grid { grid-template-rows: auto auto auto auto auto; row-gap: 0; padding-bottom: 7vh; }
  .hero-slot { grid-column: 1 / -1; grid-row: 2; width: min(78vw, 46vh); margin-block: 2vh 1vh; }
  .hero-title { grid-row: 3; padding-block: 0 3vh; font-size: clamp(3.4rem, 17vw, 5.4rem); }
  .hero-aside { grid-column: 1 / -1 !important; grid-row: 4 !important; max-width: none; }
  .hero-sign { grid-column: 1 / -1 !important; grid-row: 5 !important; justify-self: start !important; text-align: start !important; margin-top: 2.2rem; }
  .hero-verse, .hero-scroll { display: none; }
}
.hero-aside { grid-column: 1 / span 5; grid-row: 3; align-self: end; max-width: 440px; }
.hero-lede { font-size: clamp(1.08rem, 1.35vw, 1.22rem); line-height: 1.65; color: rgba(240, 238, 233, .86); margin-bottom: 1.6rem; }
.hero-cta { display: flex; flex-wrap: wrap; align-items: center; gap: 1rem 1.6rem; }
.hero-sign { grid-column: 8 / -1; grid-row: 3; align-self: end; justify-self: end; text-align: end; display: grid; gap: .35rem; font: 400 .88rem/1.5 var(--sans); color: rgba(240, 238, 233, .72); }
.hero-sign-name { font: 300 1.5rem/1.2 var(--serif); color: var(--cloud); }
.hero-verse { grid-column: 1 / -1; grid-row: 4; margin-top: 3vh; display: flex; align-items: baseline; gap: 1rem; border-top: 1px solid var(--hair-dark); padding-top: 1.1rem; }
.hero-verse p { font: 300 1.15rem/1.4 var(--serif); }
.hero-verse cite { font: 400 .8rem/1 var(--sans); font-style: normal; opacity: .6; }
.hero-scroll { position: absolute; bottom: 4.6vh; left: 50%; translate: -50% 0; display: grid; justify-items: center; gap: .6rem; font: 500 .72rem/1 var(--sans); letter-spacing: .08em; opacity: .7; }
.hero-scroll i { width: 1px; height: 48px; background: linear-gradient(currentColor, transparent); animation: drip 2.4s var(--ease) infinite; transform-origin: top; }
@keyframes drip { 0% { transform: scaleY(0); } 50% { transform: scaleY(1); } 100% { transform: scaleY(1); opacity: 0; } }

@media (max-width: 759px) {
  .hero-verse { display: none; }
  .ht-2 { padding-inline-start: 0; justify-self: end; }
  .hero-meta { grid-column: 1 / -1; margin-top: .6rem; }
}

/* ============================================================================
   א · הרעש
   ========================================================================== */
.noise { position: relative; background: var(--canvas); }
.noise-stage { position: relative; min-height: 100svh; overflow: hidden; display: grid; place-items: center; }
.noise-words span {
  position: absolute; left: var(--x); top: var(--y);
  font: 300 calc(var(--s) * clamp(1.2rem, 2.3vw, 2.3rem))/1 var(--serif);
  color: var(--ink); opacity: calc(.12 + var(--d) * .3);
  white-space: nowrap; will-change: transform, opacity, filter;
}
.noise-copy { position: relative; max-width: 900px; padding: 18vh var(--gutter); text-align: center; }
.noise-copy .kicker { justify-content: center; }
.noise-line { font: 200 clamp(2rem, 4.6vw, 4.3rem)/1.12 var(--serif); letter-spacing: -.02em; text-wrap: balance; }
.noise-2 { font: 300 clamp(1.2rem, 1.9vw, 1.6rem)/1.6 var(--sans); max-width: 680px; margin: 1.6rem auto 0; color: var(--ink-soft); }
.noise-3 { margin-top: 2.2rem; }
/* phones: pinned like on desktop. The words fill the screen first and clear away before the lines
   come in, so they never sit on top of the text. The lines sit between the header and the bottom buttons. */
@media (max-width: 899px) {
  .noise-copy { padding: calc(var(--hdr) + 8px) var(--gutter) calc(80px + env(safe-area-inset-bottom)); }
  .motion .noise-words span { opacity: calc(.16 + var(--d) * .3); }
  .motion .noise-copy .kicker, .motion .noise-line { opacity: 0; }
  html:not(.motion) .noise-words { display: none; }
}

/* ============================================================================
   ב · הפנינה
   ========================================================================== */
.pearl-ch { background: var(--canvas); padding: clamp(5rem, 14vh, 10rem) 0 clamp(6rem, 16vh, 12rem); }
.pearl-grid { display: grid; gap: 3rem; align-items: center; max-width: 1360px; margin-inline: auto; padding-inline: var(--gutter); }
@media (min-width: 960px) { .pearl-grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 6vw; } }
.layers { position: relative; width: min(100%, 520px); justify-self: center; }
.layers svg { width: 100%; height: auto; overflow: visible; }
.layers-rings circle { stroke-width: 1.4; }
.layers-core { filter: drop-shadow(0 6px 10px rgba(74, 44, 55, .25)); }
.layers-you { font: 400 15px/1 var(--sans); fill: var(--ink); }
.layers-words { display: flex; flex-wrap: wrap; justify-content: center; gap: .5rem 1.3rem; margin-top: 1.4rem; }
.layers-words li { font: 300 1.05rem/1.2 var(--serif); white-space: nowrap; color: var(--ink-soft); transition: color .4s, transform .4s var(--ease-out); }
.layers-words li.is-on { color: var(--ink); transform: translateX(-6px); }
.layers-words li::before { content: ""; display: inline-block; width: 14px; height: 1px; background: currentColor; vertical-align: middle; margin-inline-end: .6rem; }
@media (min-width: 1200px) {
  .layers { margin-inline-end: 140px; }
  .layers-words { position: absolute; inset-block: 0; inset-inline-start: 100%; margin: 0; flex-direction: column; flex-wrap: nowrap; justify-content: center; gap: .6rem; padding-inline-start: 1rem; }
}
.layers-words--inline { position: static; display: flex; flex-wrap: wrap; justify-content: center; gap: .4rem 1.2rem; margin-top: 1.4rem; }
.pearl-copy { max-width: 560px; }
.verse { margin-top: 2.6rem; padding-top: 1.6rem; border-top: 1px solid var(--hair-light); }
.verse p { font: 300 clamp(1.5rem, 2.4vw, 2.1rem)/1.45 var(--serif); }
.verse cite { display: block; margin-top: .8rem; font: 400 .86rem/1.6 var(--sans); font-style: normal; color: var(--ink-soft); }

/* ============================================================================
   ג · שלושה חוטים
   ========================================================================== */
.threads { background: var(--petal); padding: clamp(5rem, 13vh, 9rem) 0; }
.ch-head { max-width: 900px; margin-bottom: clamp(2.5rem, 7vh, 5rem); }
.ch-head--split { max-width: none; display: grid; gap: 1rem 4rem; align-items: end; }
@media (min-width: 960px) { .ch-head--split { grid-template-columns: 1fr minmax(0, 360px); } }
.ch-note { color: inherit; opacity: .78; padding-bottom: 2.2rem; }
.triptych { display: grid; border-top: 1px solid var(--hair-light); }
@media (min-width: 900px) { .triptych { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.thread { padding: 2.2rem 0 2.4rem; border-bottom: 1px solid var(--hair-light); }
@media (min-width: 900px) {
  .thread { padding: 2.6rem 2.4vw 1rem; border-bottom: 0; }
  .thread + .thread { border-inline-start: 1px solid var(--hair-light); }
  .thread:first-child { padding-inline-start: 0; }
}
.thread-word { position: relative; display: inline-block; font: 200 clamp(3.4rem, 6.6vw, 6.4rem)/1 var(--serif); letter-spacing: -.03em; margin-bottom: 1.2rem; }
.thread-sub { font: 500 .82rem/1.4 var(--sans); letter-spacing: .06em; color: var(--wine); margin-bottom: .8rem; }
.thread p:last-child { max-width: 34ch; }

/* ============================================================================
   ד · מה נלמד
   ========================================================================== */
.learn { background: var(--velvet); color: var(--cloud); padding: clamp(5rem, 14vh, 10rem) 0; }
.learn .kicker, .two .kicker, .begin .kicker { color: var(--mist); }
.index { border-top: 1px solid var(--hair-dark); }
.index-row { border-bottom: 1px solid var(--hair-dark); }
.index-btn {
  position: relative; isolation: isolate; width: 100%;
  display: grid; grid-template-columns: 2.2rem minmax(0, 1fr) auto; align-items: center; gap: .8rem 1.4rem;
  padding: 1.5rem .4rem; text-align: start;
}
.index-btn::before { content: ""; position: absolute; inset: 0; z-index: -1; background: var(--nacre); opacity: 0; transform: scaleY(.3); transition: opacity .5s, transform .6s var(--ease-out); }
.index-btn:hover::before { opacity: .09; transform: none; }
.index-n { font: 500 .8rem/1 var(--sans); color: var(--mist); }
.index-title { font: 200 clamp(1.9rem, 4.4vw, 3.9rem)/1.05 var(--serif); letter-spacing: -.02em; transition: transform .6s var(--ease-out); }
.index-btn:hover .index-title { transform: translateX(-10px); }
.index-teaser { display: none; font: 400 .95rem/1.4 var(--sans); color: var(--mist); }
.index-ic { width: 26px; height: 26px; transition: transform .5s var(--ease-out); }
.index-btn[aria-expanded="true"] .index-ic { transform: rotate(45deg); }
@media (min-width: 760px) { .index-btn { grid-template-columns: 3rem minmax(0, 1fr) auto 26px; } .index-teaser { display: block; } }
.index-more { overflow: hidden; height: 0; }
.index-more p { max-width: 640px; padding: 0 3.6rem 1.8rem .4rem; font-size: 1.12rem; color: rgba(240, 238, 233, .86); }
@media (max-width: 759px) { .index-more p { padding-inline-start: 2.6rem; } }

/* ============================================================================
   ה · תהל שרה
   ========================================================================== */
.tahel { background: var(--canvas); padding: clamp(5rem, 14vh, 10rem) 0; }
.tahel-grid { display: grid; gap: 3rem; align-items: start; }
@media (min-width: 960px) { .tahel-grid { grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: 7vw; align-items: center; } }
.artwork { margin: 0; }
.artwork-canvas { width: 100%; aspect-ratio: 4 / 5; background: #EAE4DD; box-shadow: 0 1px 0 rgba(255, 255, 255, .6) inset, 0 40px 80px -40px rgba(42, 26, 31, .45), 0 2px 6px rgba(42, 26, 31, .08); }
.artwork figcaption { display: flex; justify-content: space-between; align-items: center; gap: 1rem; margin-top: 1rem; font: 400 .86rem/1.5 var(--sans); color: var(--ink-soft); }
.creds { border-top: 1px solid var(--hair-light); margin-bottom: 2rem; }
.creds li { display: grid; grid-template-columns: 6.5rem minmax(0, 1fr); gap: 1rem; align-items: baseline; padding: .95rem 0; border-bottom: 1px solid var(--hair-light); font: 300 clamp(1.15rem, 1.7vw, 1.45rem)/1.3 var(--serif); }
.creds span { font: 500 .76rem/1 var(--sans); letter-spacing: .08em; color: var(--ink-soft); }
.signature { position: relative; display: inline-block; margin-top: 1.8rem; font: 200 2.6rem/1 var(--serif); }

/* ============================================================================
   ו · הדרך
   ========================================================================== */
.path { background: var(--paper); overflow: hidden; }
.path-pin { padding: clamp(5rem, 12vh, 8rem) 0; }
.path-head { margin-bottom: 4vh; }
.path-track { position: relative; }
.path-line { display: none; }
.steps { display: grid; gap: 0; padding-inline: var(--gutter); }
.step { padding: 2rem 0; border-top: 1px solid var(--hair-light); }
.step-n { font: 500 .78rem/1 var(--sans); letter-spacing: .08em; color: var(--wine); }
.step h3 { font: 200 clamp(2.6rem, 6vw, 5.6rem)/1 var(--serif); letter-spacing: -.03em; margin: .8rem 0 1rem; }
.step p { max-width: 38ch; color: var(--ink-soft); }
@media (min-width: 1000px) {
  .path-pin { height: 100vh; padding: 0; display: flex; flex-direction: column; justify-content: center; }
  .path-track { width: max-content; }
  .path-line { display: block; position: absolute; inset-inline: 0; top: 74%; width: 100%; height: 18vh; }
  .path-line path { fill: none; stroke: var(--wine); stroke-width: 1.6; vector-effect: non-scaling-stroke; }
  .steps { grid-auto-flow: column; grid-auto-columns: 34vw; gap: 0; padding-inline: var(--gutter) 30vw; }
  .step { border-top: 0; border-inline-start: 1px solid var(--hair-light); padding: 0 2.6vw 0; min-height: 44vh; display: flex; flex-direction: column; justify-content: flex-start; }
  .step h3 { margin-top: 1.2rem; }
}

/* ============================================================================
   ז · שניים
   ========================================================================== */
.two { background: var(--velvet-2); color: var(--cloud); padding: clamp(5rem, 14vh, 10rem) 0; overflow: hidden; }
.two-grid { display: grid; gap: 3rem; align-items: center; }
@media (min-width: 960px) { .two-grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); gap: 6vw; } }
.two-copy .body-lg { color: rgba(240, 238, 233, .86); }
.two-list { margin: 1.6rem 0 2.4rem; border-top: 1px solid var(--hair-dark); }
.two-list li { padding: .8rem 0; border-bottom: 1px solid var(--hair-dark); font: 300 1.2rem/1.4 var(--serif); }
.braid { margin: 0; }
.braid svg { width: 100%; height: auto; overflow: visible; }
.braid path { fill: none; stroke-width: 5; stroke-linecap: round; }
.braid-a { stroke: var(--petal-2); }
.braid-b { stroke: var(--cloud); opacity: .9; }
.braid-c { stroke: url(#g-nacre); stroke-width: 6; }
.braid figcaption { margin-top: 1.6rem; text-align: center; }
.braid-verse { display: block; font: 300 clamp(1.4rem, 2.4vw, 2rem)/1.4 var(--serif); }
.braid cite { font: 400 .82rem/1 var(--sans); font-style: normal; color: var(--mist); }

/* ============================================================================
   ח · מתי מתחילים
   ========================================================================== */
.when { background: var(--petal); padding: clamp(5rem, 14vh, 10rem) 0; overflow: hidden; }
.when-grid { display: grid; gap: 3.5rem; align-items: center; }
@media (min-width: 960px) { .when-grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 6vw; } }
.when .h2 { font-size: clamp(2.2rem, 4.4vw, 4.1rem); }
.when-form { margin-top: 2.2rem; display: grid; gap: 1.2rem; max-width: 460px; }
.field { display: grid; gap: .35rem; }
.field-label { font: 500 .8rem/1.3 var(--sans); letter-spacing: .06em; color: var(--ink-soft); }
.field-label em { font-style: normal; font-weight: 400; }
.field-input {
  width: 100%; min-height: 52px; padding: .5rem 0; border: 0; border-bottom: 1px solid rgba(42, 26, 31, .35); border-radius: 0;
  background: transparent; color: inherit; font: 300 1.35rem/1.3 var(--serif);
  transition: border-color .3s;
  -webkit-appearance: none; appearance: none;
}
.field-input:focus { outline: none; border-bottom-color: currentColor; box-shadow: 0 1px 0 currentColor; }
input[type="date"].field-input { direction: rtl; text-align: right; min-width: 0; }
input[type="date"]::-webkit-calendar-picker-indicator { opacity: .55; cursor: pointer; }
.when-form .link-quiet { justify-self: start; margin-top: .4rem; }

.invite-wrap { perspective: 1400px; display: grid; place-items: center; }
.invite {
  position: relative; width: min(100%, 440px); aspect-ratio: 5 / 7;
  padding: 2.4rem 2rem; background: #FBF9F5; color: var(--ink);
  display: flex; flex-direction: column; align-items: center; text-align: center;
  box-shadow: 0 50px 90px -40px rgba(74, 44, 55, .6), 0 2px 8px rgba(74, 44, 55, .08);
  transform: rotate(-2.2deg); transform-style: preserve-3d;
}
.invite::before { content: ""; position: absolute; inset: 12px; border: 1px solid rgba(142, 51, 73, .35); pointer-events: none; }
.invite::after { content: ""; position: absolute; inset: 17px; border: 1px solid rgba(142, 51, 73, .16); pointer-events: none; }
.invite-mark { width: 40px; height: 40px; color: var(--wine); }
.invite-bsd { position: absolute; top: 26px; inset-inline-end: 30px; font: 400 .72rem/1 var(--sans); color: var(--ink-soft); }
.invite-body { flex: 1; display: flex; flex-direction: column; justify-content: center; align-items: center; gap: .55rem; width: 100%; }
.invite-small { font: 400 .86rem/1.5 var(--sans); color: var(--ink-soft); }
.invite-big { font: 200 clamp(1.9rem, 3.4vw, 2.6rem)/1.15 var(--serif); letter-spacing: -.01em; }
.invite-name { font: 300 1.3rem/1.2 var(--serif); color: var(--wine); }
.invite-count { font: 500 .8rem/1 var(--sans); letter-spacing: .08em; color: var(--wine); margin-top: .3rem; }
.invite-rule { width: 48px; height: 1px; background: rgba(142, 51, 73, .5); margin: .7rem 0; }
.invite-steps { width: 100%; max-width: 290px; text-align: start; border-top: 1px solid var(--hair-light); margin-top: .4rem; }
.invite-steps li { display: flex; justify-content: space-between; gap: 1rem; padding: .55rem 0; border-bottom: 1px solid var(--hair-light); font: 400 .9rem/1.35 var(--sans); }
.invite-steps b { font-weight: 500; }
.invite-steps span { color: var(--ink-soft); white-space: nowrap; }
.invite-send { margin-top: 1.2rem; }
.invite .btn { min-height: 48px; padding: .8rem 1.3rem; font-size: .95rem; }

/* ============================================================================
   ט · שאלות
   ========================================================================== */
.faq { background: var(--canvas); padding: clamp(5rem, 14vh, 10rem) 0; }
.faq-grid { display: grid; gap: 2.5rem; }
@media (min-width: 960px) { .faq-grid { grid-template-columns: minmax(0, 4fr) minmax(0, 7fr); gap: 6vw; align-items: start; } .faq-head { position: sticky; top: 120px; } }
.faq-head p { color: var(--ink-soft); margin-bottom: 1.2rem; }
.faq-list { border-top: 1px solid var(--hair-light); }
.qa { border-bottom: 1px solid var(--hair-light); }
.qa summary {
  list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 1.4rem;
  padding: 1.5rem 0; font: 300 clamp(1.3rem, 2vw, 1.7rem)/1.35 var(--serif);
}
.qa summary::-webkit-details-marker { display: none; }
.qa summary svg { flex: none; width: 26px; height: 26px; transition: transform .5s var(--ease-out); }
.qa[open] summary svg { transform: rotate(45deg); }
.qa p { padding: 0 0 1.6rem; max-width: 62ch; color: var(--ink-soft); font-size: 1.08rem; }

/* ============================================================================
   י · בואי נתחיל
   ========================================================================== */
.begin {
  position: relative; isolation: isolate; overflow: hidden; color: var(--cloud);
  padding: clamp(6rem, 18vh, 12rem) 0 clamp(5rem, 12vh, 8rem);
  background: radial-gradient(50% 60% at 20% 30%, rgba(122, 72, 92, .35), transparent 70%), var(--velvet);
}
.begin-pearl { position: absolute; inset: 0; width: 100%; height: 100%; z-index: -1; }
.begin-slot { position: absolute; top: 12%; left: 6%; width: min(26vw, 340px); aspect-ratio: 1; pointer-events: none; }
@media (max-width: 999px) { .begin-slot { top: 3%; left: auto; right: -14vw; width: 52vw; opacity: 1; } }
.begin-grid { display: grid; gap: 3.5rem; }
@media (min-width: 1000px) { .begin-grid { grid-template-columns: minmax(0, 1.2fr) minmax(0, .8fr); gap: 7vw; align-items: end; } }
.begin-title { font: 200 clamp(2.8rem, 7vw, 7rem)/1 var(--serif); letter-spacing: -.03em; margin-bottom: 2rem; text-wrap: balance; }
.begin-copy .body-lg { color: rgba(240, 238, 233, .86); max-width: 520px; }
.begin-actions { display: flex; flex-wrap: wrap; gap: .9rem; margin-top: 2rem; }
.begin-form { display: grid; gap: 1.3rem; padding: 2rem; border: 1px solid var(--hair-dark); border-radius: 4px; background: rgba(240, 238, 233, .03); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); }
.begin-form-title { font: 300 1.3rem/1.35 var(--serif); }
.field--dark .field-label { color: var(--mist); }
.field--dark .field-input { border-bottom-color: rgba(240, 238, 233, .35); color: var(--cloud); }
.field--dark input[type="date"]::-webkit-calendar-picker-indicator { filter: invert(1); }
.chips { border: 0; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: .5rem; }
.chips legend { width: 100%; margin-bottom: .6rem; color: var(--mist); }
.chips label { position: relative; }
.chips input { position: absolute; inset: 0; opacity: 0; cursor: pointer; margin: 0; }
.chips span { display: inline-flex; align-items: center; min-height: 42px; padding: .4rem 1rem; border: 1px solid rgba(240, 238, 233, .3); border-radius: 99px; font: 400 .95rem/1 var(--sans); transition: background-color .3s, color .3s, border-color .3s; }
.chips input:checked + span { background: var(--cloud); color: var(--ink); border-color: var(--cloud); }
.chips input:focus-visible + span { outline: 2px solid var(--cloud); outline-offset: 3px; }
.field-error { color: #F3B9C4; font-size: .95rem; }
.form-note { font-size: .86rem; color: var(--mist); line-height: 1.6; }
.form-done { padding: .9rem 1rem; border: 1px solid var(--hair-dark); font-size: 1rem; }
.form-done a { text-decoration: underline; text-underline-offset: .2em; }

/* ============================================================================
   תחתית, דוק, סמן, גרעיניות
   ========================================================================== */
.foot { position: relative; isolation: isolate; background: var(--velvet); color: var(--cloud); padding: 4rem 0 calc(2.2rem + env(safe-area-inset-bottom)); overflow: hidden; }
.foot-pearl { position: absolute; inset: 0; width: 100%; height: 100%; z-index: -1; pointer-events: none; }
.foot-dot { display: inline-block; width: .2em; height: .2em; margin-inline-start: .06em; vertical-align: baseline; }
.foot-word { font: 200 clamp(5rem, 22vw, 22rem)/.86 var(--serif); letter-spacing: -.05em; margin-bottom: 3rem; color: rgba(240, 238, 233, .94); white-space: nowrap; }
.foot-row { display: flex; flex-wrap: wrap; justify-content: space-between; gap: .8rem 2rem; padding: 1.1rem 0; border-top: 1px solid var(--hair-dark); font: 400 .95rem/1.5 var(--sans); }
.foot-row a:hover { text-decoration: underline; text-underline-offset: .2em; }
.foot-row--small { font-size: .85rem; color: var(--mist); }
@media (max-width: 899px) { .foot { padding-bottom: calc(6.5rem + env(safe-area-inset-bottom)); } }

.dock {
  position: fixed; inset-inline: 14px; bottom: calc(14px + env(safe-area-inset-bottom)); z-index: 55;
  display: flex; gap: .5rem; transform: translateY(160%); transition: transform .7s var(--ease-out);
}
.dock.is-on { transform: none; }
.dock a { display: inline-flex; align-items: center; justify-content: center; gap: .55rem; height: 54px; border-radius: 99px; font: 500 1rem/1 var(--sans); box-shadow: 0 18px 40px -18px rgba(36, 22, 27, .7); }
.dock-wa { flex: 1; background: var(--ink); color: var(--cloud); }
.dock-call { width: 54px; background: var(--cloud); color: var(--ink); border: 1px solid var(--hair-light); }
.dock svg { width: 20px; height: 20px; }
@media (min-width: 900px) { .dock { display: none; } }

.cursor { position: fixed; top: 0; left: 0; z-index: 90; pointer-events: none; display: none; mix-blend-mode: difference; opacity: 0; transition: opacity .4s; }
.cursor.is-live { opacity: 1; }
.cursor i { display: block; width: 14px; height: 14px; margin: -7px 0 0 -7px; border-radius: 50%; background: #fff; transition: transform .35s var(--ease-out); }
.cursor.is-big i { transform: scale(3.2); }
@media (hover: hover) and (pointer: fine) { .has-cursor .cursor { display: block; } }

.grain {
  position: fixed; inset: 0; z-index: 80; pointer-events: none; opacity: .07;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='220' height='220'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 .9 0'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>");
}

/* ---------- דיאלוג נגישות ---------- */
.a11y { border: 0; border-radius: 6px; padding: 1.6rem; width: min(92vw, 400px); margin: auto; background: var(--paper); color: var(--ink); box-shadow: 0 40px 90px -30px rgba(36, 22, 27, .6); }
.a11y::backdrop { background: rgba(36, 22, 27, .55); }
.a11y-top { display: flex; justify-content: space-between; align-items: center; margin-bottom: 1.2rem; }
.a11y h2 { font: 300 1.7rem/1 var(--serif); }
.a11y-font { display: flex; justify-content: space-between; align-items: center; padding: .9rem 0; border-block: 1px solid var(--hair-light); margin-bottom: 1rem; font-weight: 500; }
.a11y-steps { display: flex; align-items: center; gap: .6rem; }
.a11y-steps button { width: 44px; height: 44px; border: 1px solid var(--hair-light); border-radius: 50%; font-weight: 500; }
.a11y-grid { display: grid; grid-template-columns: 1fr 1fr; gap: .6rem; }
.a11y-grid button { min-height: 54px; border: 1px solid var(--hair-light); border-radius: 4px; font-weight: 500; padding: .5rem; }
.a11y-grid button[aria-pressed="true"] { background: var(--ink); color: var(--cloud); }
.a11y-link { display: inline-block; margin-top: 1rem; text-decoration: underline; text-underline-offset: .2em; }

/* ---------- 🎁 הפתעה ---------- */
.gift { border: 0; padding: 0; margin: 0; width: 100%; max-width: none; height: 100%; max-height: none; height: 100dvh; background: var(--velvet); color: var(--cloud); overflow: auto; }
.gift::backdrop { background: var(--velvet); }
.gift-stage { min-height: 100%; display: grid; place-content: center; justify-items: center; text-align: center; padding: 3rem var(--gutter); gap: 1.2rem; }
.gift-stage[hidden] { display: none; }
.gift-pearl { width: min(46vw, 220px); aspect-ratio: 1; border-radius: 50%; margin-bottom: 1rem;
  background: radial-gradient(circle at 34% 28%, #fff 0 6%, rgba(255,255,255,0) 22%), radial-gradient(circle at 70% 75%, rgba(220, 190, 210, .6), transparent 50%), radial-gradient(circle at 40% 38%, #FBF7F4 0%, #EDE3E4 40%, #CFC0C8 75%, #9F8A97 100%);
  box-shadow: 0 30px 80px -20px rgba(240, 200, 215, .35), inset -10px -14px 30px rgba(74, 44, 55, .35);
  animation: breathe 4s ease-in-out infinite; }
@keyframes breathe { 50% { transform: scale(1.04); } }
.gift.is-opening .gift-pearl { animation: bloom 1s var(--ease-out) forwards; }
@keyframes bloom { to { transform: scale(9); opacity: 0; } }
.gift-kicker { font: 500 .8rem/1 var(--sans); opacity: .7; }
.gift-title { font: 200 clamp(2.4rem, 7vw, 4.6rem)/1.05 var(--serif); letter-spacing: -.02em; margin-bottom: 1rem; }
.gift-letter { background: var(--canvas); color: var(--ink); text-align: center; max-width: none; }
.gift-letter p { max-width: 34ch; font: 300 clamp(1.15rem, 2.4vw, 1.45rem)/1.7 var(--serif); }
.gift-to { font: 200 clamp(2.4rem, 7vw, 4rem)/1.1 var(--serif) !important; margin-bottom: .6rem; }
.gift-sign { font-weight: 400 !important; color: var(--wine); margin: 1rem 0 1.4rem; }
.gift-letter .btn svg { transform: none; }

/* ============================================================================
   מצבי תנועה: האנימציות פועלות רק כשהספריות נטענו (html.motion)
   ========================================================================== */
.motion [data-fade] { opacity: 0; transform: translateY(26px); }
.motion [data-split] { visibility: hidden; }
.motion [data-split].is-split { visibility: visible; }
.motion .doodle path { stroke-dasharray: 1; stroke-dashoffset: 1; }
.motion .layers-rings circle { stroke-dasharray: 1; stroke-dashoffset: 1; }
.motion .braid path { stroke-dasharray: 1; stroke-dashoffset: 1; }
.motion .path-line path { stroke-dasharray: 1; stroke-dashoffset: 1; }
.no-motion-fallback [data-fade], .no-motion-fallback [data-split], .no-motion-fallback .noise-line, .no-motion-fallback .noise-copy .kicker { opacity: 1 !important; transform: none !important; visibility: visible !important; }
.no-motion-fallback .doodle path, .no-motion-fallback .layers-rings circle, .no-motion-fallback .braid path, .no-motion-fallback .path-line path { stroke-dashoffset: 0 !important; }

/* ---------- התאמות נגישות ---------- */
html.a11y-font-1 { font-size: 112.5%; }
html.a11y-font-2 { font-size: 125%; }
html.a11y-font-3 { font-size: 137.5%; }
html.a11y-links a { text-decoration: underline !important; text-underline-offset: .2em; }
html.a11y-contrast { --canvas: #fff; --paper: #fff; --petal: #fff; --velvet: #000; --velvet-2: #000; --ink: #000; --ink-soft: #000; --mist: #fff; --cloud: #fff; --hair-light: #000; --hair-dark: #fff; }
html.a11y-contrast .grain, html.a11y-contrast .hero-pearl, html.a11y-contrast .begin-pearl { display: none; }
html.a11y-contrast .hero, html.a11y-contrast .begin { background: #000; }
html.a11y-no-motion *, html.a11y-no-motion *::before, html.a11y-no-motion *::after { animation: none !important; transition: none !important; }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; }
}

/* ============================================================================
   עמודים משניים
   ========================================================================== */
.doc { background: var(--canvas); }
.doc-hdr { display: flex; justify-content: space-between; align-items: center; padding: 22px var(--gutter); }
.doc-hdr a { display: inline-flex; align-items: center; gap: .6rem; }
.doc-hdr .hdr-mark { width: 28px; height: 28px; }
.doc-main { max-width: 820px; margin-inline: auto; padding: 6vh var(--gutter) 12vh; }
.doc-main h1 { font: 200 clamp(2.8rem, 7vw, 5.4rem)/1 var(--serif); letter-spacing: -.03em; margin-bottom: 2.2rem; }
.doc-main h2 { font: 300 1.7rem/1.2 var(--serif); margin: 2.6rem 0 .9rem; }
.doc-main p, .doc-main li { color: var(--ink-soft); }
.doc-main ul { list-style: none; border-top: 1px solid var(--hair-light); }
.doc-main li { padding: .7rem 0; border-bottom: 1px solid var(--hair-light); }
.doc-main a { text-decoration: underline; text-underline-offset: .2em; color: var(--ink); }
.doc-meta { margin-top: 3rem; font-size: .9rem; }
.doc-404 { min-height: 100svh; display: grid; place-content: center; text-align: center; background: var(--velvet); color: var(--cloud); padding: 2rem; }
.doc-404 h1 { font: 200 clamp(3rem, 9vw, 7rem)/1 var(--serif); letter-spacing: -.03em; margin: 1.4rem 0; }
.doc-404 p { color: var(--mist); margin-bottom: 2rem; }
.doc-404 .pearl-css { width: 120px; aspect-ratio: 1; border-radius: 50%; margin-inline: auto;
  background: radial-gradient(circle at 34% 28%, #fff 0 6%, rgba(255,255,255,0) 22%), radial-gradient(circle at 70% 75%, rgba(220,190,210,.6), transparent 50%), radial-gradient(circle at 40% 38%, #FBF7F4 0%, #EDE3E4 40%, #CFC0C8 75%, #9F8A97 100%);
  box-shadow: 0 30px 70px -20px rgba(240, 200, 215, .3); }
.artwork figcaption .link-quiet { white-space: nowrap; flex: none; }
