:root {
  --beige: #e3d6c3;
  --ink: #111;
  --gold: #c9a35a;
  --gold-light: #ecd29a;
}

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

body {
  font-family: "Heebo", "Jost", sans-serif;
  font-weight: 300;
  color: var(--ink);
  background: var(--beige) url("assets/texture.jpg") center / cover fixed;
  min-height: 100vh;
}
body[lang-es] , html[lang="es"] body { font-family: "Jost", sans-serif; }
body.is-loading { overflow: hidden; }

/* ========== מסך כניסה ========== */
#loader {
  position: fixed; inset: 0; z-index: 100;
  display: grid; place-items: center;
  background: #0b0b0b;
}
/* חצי השנייה האחרונה: הלוגו מופיע בזהב על השחור והמצלמה טסה למקומה בלוגו */
#loader.landing .counter,
#loader.landing .gold-bar { opacity: 0; transition: opacity .25s ease; }
#loader.landing .loader-logo { opacity: 1; }
/* יציאה מהכניסה לדף הבית */
#loader.exit { opacity: 0; transition: opacity .9s ease; }
#loader.done { visibility: hidden; }

.loader-logo {
  position: absolute; top: 50%; left: 50%; z-index: 1;
  transform: translate(-50%, -50%);
  width: min(1100px, 88vw); aspect-ratio: 1490 / 160;
  /* הלוגו צבוע בזהב: צורת הלוגו משמשת כמסכה על רקע זהב */
  background: linear-gradient(100deg, #a87b2e 0%, #f3dca4 35%, #c9a35a 55%, #f3dca4 80%, #a87b2e 100%);
  -webkit-mask: url("assets/logo.png") center / contain no-repeat;
          mask: url("assets/logo.png") center / contain no-repeat;
  filter: drop-shadow(0 0 6px rgba(236, 210, 154, .3));
  opacity: 0; transition: opacity .5s ease .1s;
}

.loader-inner { position: relative; z-index: 2; display: flex; flex-direction: column; align-items: center; gap: 34px; }

.camera {
  width: 190px; height: auto; overflow: visible;
  filter: drop-shadow(0 0 6px rgba(236, 210, 154, .35));
}

/* קו הזהב מצטייר – ה-JS מעדכן את stroke-dashoffset לפי הספירה */
.draw { stroke-linecap: round; stroke-linejoin: round; }
.lens { transform-origin: 90px 75px; transform: scale(0); transition: transform .5s cubic-bezier(.3,1.6,.5,1); }
#loader.complete .lens { transform: scale(1); }

.counter {
  font-family: "Jost", sans-serif; font-weight: 200;
  font-size: 14px; letter-spacing: .4em; color: var(--gold-light);
  direction: ltr; min-width: 5ch; text-align: center;
}
.counter::after { content: "%"; }

.gold-bar { width: 160px; height: 1px; background: rgba(236,210,154,.15); overflow: hidden; direction: ltr; }
.gold-bar span {
  display: block; height: 100%; width: 0;
  background: linear-gradient(90deg, var(--gold), var(--gold-light), var(--gold));
}

/* נצנוצים שקו הזהב משאיר אחריו */
#sparkles { position: fixed; inset: 0; pointer-events: none; z-index: 3; }
.sparkle {
  position: absolute; width: var(--s); height: var(--s);
  margin: calc(var(--s) / -2) 0 0 calc(var(--s) / -2);
  background: radial-gradient(circle, #fff6dc 0%, #f3dca4 25%, rgba(201,163,90,0) 70%);
  clip-path: polygon(50% 0, 60% 40%, 100% 50%, 60% 60%, 50% 100%, 40% 60%, 0 50%, 40% 40%);
  animation: twinkle var(--d) ease-out forwards;
}
.sparkle.dot { clip-path: circle(50%); }
@keyframes twinkle {
  0%   { opacity: 0; transform: scale(.3) rotate(0deg); }
  15%  { opacity: 1; transform: scale(1.1) rotate(20deg); }
  50%  { opacity: .4; transform: translate(var(--dx), var(--dy)) scale(.7) rotate(45deg); }
  70%  { opacity: .9; }
  100% { opacity: 0; transform: translate(calc(var(--dx) * 2), calc(var(--dy) * 2)) scale(.2) rotate(90deg); }
}

/* שכבת הנצנוצים של העכבר – מעל הכול, לא חוסמת לחיצות */
.cursor-sparkles { position: fixed; inset: 0; z-index: 250; pointer-events: none; overflow: hidden; }

/* הבזק של מצלמה בסוף הספירה */
.flash { position: absolute; inset: 0; background: #fff; opacity: 0; pointer-events: none; }
#loader.shoot .flash { animation: flash .6s ease-out; }
@keyframes flash { 0% { opacity: 0; } 15% { opacity: .9; } 100% { opacity: 0; } }

/* ========== כותרת: תפריט משני הצדדים ולוגו באמצע ========== */
.site-header {
  --hc: #fff; /* צבע הכותרת – לבן מעל התמונה */
  position: fixed; top: 0; inset-inline: 0; z-index: 10;
  display: grid; grid-template-columns: 1fr auto 1fr; align-items: center;
  padding: 26px 48px;
  opacity: 0; transform: translateY(-10px);
  transition: opacity .8s ease .4s, transform .8s ease .4s, background-color .4s ease, padding .4s ease;
}
/* אחרי גלילה – פס בז' והכיתוב שחור */
.site-header.scrolled {
  --hc: var(--ink);
  background-color: rgba(227, 214, 195, .94);
  backdrop-filter: blur(6px);
  padding-block: 14px;
  box-shadow: 0 1px 0 rgba(201,163,90,.35);
}
.header-logo {
  display: block; width: 280px; aspect-ratio: 1490 / 160;
  background: var(--hc);
  -webkit-mask: url("assets/logo.png") center / contain no-repeat;
          mask: url("assets/logo.png") center / contain no-repeat;
  /* הלוגו נפתח מהאמצע החוצה */
  clip-path: inset(0 50% 0 50%);
  transition: background-color .4s ease, width .4s ease, clip-path 1.4s cubic-bezier(.7,0,.2,1) .4s;
}
body.ready .header-logo { clip-path: inset(0 0 0 0); }
.header-logo:hover { background: var(--gold-light); }
.site-header.scrolled .header-logo { width: 220px; }
/* מעל החלק השחור (שירותים) – התפריט כהה עם כיתוב בהיר */
.site-header.scrolled.dark {
  --hc: #f5ecdc;
  background-color: rgba(12,10,7,.82);
  box-shadow: 0 1px 0 rgba(201,163,90,.3);
}
.site-header.scrolled.dark .nav a { --roll: var(--gold-light); }
.site-header.scrolled .header-logo:hover { background: #a87b2e; }

.nav { display: flex; gap: 38px; align-items: center; }
.nav-end { justify-content: flex-end; }
.nav a {
  --roll: var(--gold-light);
  font-family: "Bellefair", serif; font-size: 18px; letter-spacing: .06em;
  color: var(--hc); text-decoration: none; transition: color .4s ease;
  position: relative; white-space: nowrap; padding-bottom: 4px;
  opacity: 0;
}
.site-header.scrolled .nav a { --roll: #a87b2e; }

/* כניסה מדורגת של פריטי התפריט – אחד אחרי השני */
body.ready .nav a, body.ready .lang {
  animation: navIn .9s cubic-bezier(.2,.8,.2,1) both;
  animation-delay: calc(.7s + var(--i, 0) * 110ms);
}
@keyframes navIn {
  from { opacity: 0; transform: translateY(-16px); filter: blur(4px); }
  to   { opacity: 1; transform: none; filter: none; }
}

/* במעבר עכבר המילה "מתגלגלת" למעלה ומתחלפת בגרסה זהובה */
.roll { display: inline-block; overflow: hidden; height: 1.3em; line-height: 1.3em; vertical-align: bottom; }
.roll > span { display: block; transition: transform .55s cubic-bezier(.7,0,.2,1); }
.roll > span:last-child { color: var(--roll); }
.nav a:hover .roll > span { transform: translateY(-100%); }

/* קו זהב שנמתח מהאמצע, ויהלום קטן מעליו */
.nav a::after {
  content: ""; position: absolute; inset-inline: 0; bottom: -2px; height: 1px;
  background: linear-gradient(90deg, transparent, var(--gold), transparent);
  transform: scaleX(0); transition: transform .5s cubic-bezier(.7,0,.2,1);
}
.nav a::before {
  content: ""; position: absolute; left: 50%; bottom: -5px; width: 5px; height: 5px;
  background: var(--gold); transform: translateX(-50%) rotate(45deg) scale(0);
  transition: transform .4s cubic-bezier(.3,1.6,.5,1) .15s;
}
.nav a:hover::after, .nav a.active::after { transform: scaleX(1); }
.nav a:hover::before, .nav a.active::before { transform: translateX(-50%) rotate(45deg) scale(1); }

.lang { display: flex; gap: 8px; align-items: center; font-family: "Jost", sans-serif; font-size: 13px; color: var(--hc); opacity: 0; }
.lang button {
  background: none; border: 0; cursor: pointer; font: inherit; color: var(--hc); opacity: .5;
  letter-spacing: .1em; padding: 4px 2px;
}
.lang button.active { opacity: 1; border-bottom: 1px solid var(--gold); }

/* ========== תמונה אחת גדולה ========== */
/* התמונה לאורך – במחשב היא מוצגת במלואה במרכז, והצדדים בצבע הרקע של התמונה */
/* ===== גלילה "נעוצה": החלק נשאר במקום בזמן שהתוכן שלו משתנה עם הגלילה ===== */
.pin { position: relative; }
.pin-stage { position: sticky; top: 0; height: 100vh; min-height: 520px; overflow: hidden; }

/* הפתיחה נעוצה לאורך 180vh: בזמן הגלילה התמונה נשארת בגודלה ו"נמסה" באור רך */
.hero { height: 180vh; }
.hero-frame {
  position: absolute; inset: 0; overflow: hidden;
  background:
    radial-gradient(ellipse at 70% 15%, rgba(110,100,85,.45), transparent 55%),
    linear-gradient(180deg, #37312a 0%, #30291f 60%, #261f16 100%);
}
/* ערפל אור בצבע ובמרקם של הרקע, שעולה מלמטה ומכסה את התמונה ברכות */
.hero-mist {
  position: absolute; inset: -10% 0 0; z-index: 2; pointer-events: none;
  background: var(--beige) url("assets/texture.jpg") center / cover fixed;
  -webkit-mask-image: linear-gradient(to top, #000 45%, rgba(0,0,0,.6) 70%, transparent 100%);
          mask-image: linear-gradient(to top, #000 45%, rgba(0,0,0,.6) 70%, transparent 100%);
  transform: translateY(calc((1 - var(--mist, 0)) * 100%));
  will-change: transform;
}
/* פרלקסה: התמונה זזה לאט יותר מהגלילה */
.hero-parallax { position: absolute; inset: 0; will-change: transform; }
.hero-img {
  position: absolute; top: 0; left: 50%; height: 100%; width: auto;
  transform: translateX(-50%) scale(1.06);
  transform-origin: center 55%;
  /* קצוות רכים שמתמזגים ברקע */
  -webkit-mask-image: linear-gradient(to right, transparent 0, #000 14%, #000 86%, transparent 100%);
          mask-image: linear-gradient(to right, transparent 0, #000 14%, #000 86%, transparent 100%);
  transition: transform 6s cubic-bezier(.2,.6,.2,1);
}
body.ready .hero-img { transform: translateX(-50%) scale(1); }
/* במסך צר (טלפון) התמונה ממלאת את כל המסך */
@media (max-aspect-ratio: 3/4) {
  .hero-img {
    left: 0; width: 100%; object-fit: cover; object-position: center 45%;
    transform: scale(1.06); -webkit-mask-image: none; mask-image: none;
  }
  body.ready .hero-img { transform: scale(1); }
}
/* הכהיה עדינה למעלה כדי שהתפריט הלבן ייקרא */
.hero-frame::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(to bottom, rgba(0,0,0,.38) 0%, rgba(0,0,0,0) 28%, rgba(0,0,0,0) 75%, rgba(0,0,0,.18) 100%);
}
/* ===== המשפט בצד התמונה ===== */
.hero-tagline {
  position: absolute; z-index: 2; top: 50%; left: 4.5vw;
  transform: translateY(-50%);
  color: #f5ecdc; will-change: transform;
}
.hero-tagline h1 {
  font-family: "Bellefair", serif; font-weight: 400;
  font-size: clamp(26px, 3vw, 52px); line-height: 1.3;
  letter-spacing: .02em;
  transition: letter-spacing 2.4s cubic-bezier(.2,.8,.2,1) 1.4s;
}
body.ready .hero-tagline h1 { letter-spacing: .16em; }
/* בעברית רווח קטן יותר בין האותיות */
html[lang="he"] body.ready .hero-tagline h1 { letter-spacing: .05em; }
html[lang="he"] .hero-tagline h1 { font-size: clamp(30px, 3.4vw, 58px); }
/* כל מילה בשורה משלה, עולה מתוך "חלון" */
.hero-tagline .w { display: block; padding-bottom: .06em; }
.hero-tagline .w > span { display: inline-block; }

/* ===== כל אות מופיעה לבד: מתוך טשטוש רך, קצת גדולה, ומתיישבת במקומה ===== */
.hero-tagline .ch {
  display: inline-block; color: #f5ecdc;
  opacity: 0; filter: blur(14px); transform: scale(1.6);
  transition: opacity 1s ease, filter 1.1s ease, transform 1.2s cubic-bezier(.2,.8,.2,1);
  transition-delay: calc(1.1s + var(--li) * 160ms + var(--ci) * 45ms);
}
/* השורה האמצעית בזהב */
.hero-tagline .w:nth-child(2) .ch { color: #e2bf7a; }
body.ready .hero-tagline .ch { opacity: 1; filter: blur(0); transform: none; }

/* בהחלפה: האותיות מופיעות מהר יותר */
body.ready .hero-tagline.cycling .ch { transition-delay: calc(var(--ci) * 40ms); }
/* יציאה: כל אות מתפזרת ונעלמת בטשטוש, בסדר אקראי */
body.ready .hero-tagline.out .ch {
  opacity: 0; filter: blur(12px); transform: translateY(-10px) scale(.85);
  transition-duration: .7s, .8s, .9s;
  transition-delay: var(--rd);
}
/* האותיות החדשות מתחילות שקופות, בלי אנימציה */
body.ready .hero-tagline.reset .ch { opacity: 0; filter: blur(14px); transform: scale(1.6); transition: none; }

/* גל של אור זהוב שעובר על האותיות, אחת אחרי השנייה, בלולאה */
body.ready .hero-tagline .ch {
  animation: glint 6s ease-in-out infinite;
  animation-delay: calc(3.5s + var(--ci) * 70ms);
}
@keyframes glint {
  0%, 12%, 100% { text-shadow: none; }
  5% { color: #fffaf0; text-shadow: 0 0 10px rgba(243,220,164,.9), 0 0 22px rgba(201,163,90,.6); }
}
/* כל המשפט "נושם" – תנועה עדינה למעלה ולמטה */
body.ready .hero-tagline h1 { animation: float 7s ease-in-out 3s infinite; }
@keyframes float { 50% { transform: translateY(-8px); } }

/* קו זהב קטן מעל המשפט, שנמתח ומתכווץ לאט */
.tl-line {
  display: block; width: 64px; height: 1px; margin-bottom: 24px;
  background: linear-gradient(90deg, var(--gold), var(--gold-light));
  transform: scaleX(0); transform-origin: left;
  transition: transform 1.2s cubic-bezier(.7,0,.2,1) .9s;
}
html[dir="rtl"] .tl-line { transform-origin: right; }
body.ready .tl-line { transform: scaleX(1); animation: breathe 4s ease-in-out 3s infinite; }
@keyframes breathe { 50% { transform: scaleX(.45); } }

/* בטלפון: המשפט בתחתית התמונה, באמצע */
@media (max-aspect-ratio: 3/4) {
  .hero-tagline { top: auto; bottom: 110px; left: 0; right: 0; transform: none; text-align: center; }
  .hero-tagline h1, html[lang="he"] .hero-tagline h1 { font-size: 30px; }
  .tl-line, html[dir] .tl-line { margin: 0 auto 16px; transform-origin: center; }
  .hero-frame::after {
    background: linear-gradient(to bottom, rgba(0,0,0,.4) 0%, rgba(0,0,0,0) 25%, rgba(0,0,0,0) 55%, rgba(0,0,0,.55) 100%);
  }
}

.scroll-hint {
  position: absolute; bottom: 28px; left: 50%; z-index: 1; transform: translateX(-50%);
  width: 1px; height: 56px; background: rgba(255,255,255,.35); overflow: hidden;
}
.scroll-hint span {
  position: absolute; inset-inline: 0; top: -40%; height: 40%;
  background: var(--gold-light); animation: drip 2s ease-in-out infinite;
}
@keyframes drip { to { top: 100%; } }

/* ========== קצת על הצלמת ========== */
/* טקסט בלבד, ממורכז */
/* האודות נעוץ לאורך 340vh: הטקסט מתחדד מילה אחרי מילה והתמונות ברקע מתחלפות – הכול לפי הגלילה */
.about { height: 340vh; text-align: center; }
.about .pin-stage { display: grid; place-items: center; padding: 120px 32px 60px; isolation: isolate; }
.about-text { position: relative; max-width: 900px; }
.about p { margin-inline: auto; }

/* תמונות חלשות שמתחלפות ברקע (השקיפות נקבעת מה-JS לפי הגלילה) */
.about-bg { position: absolute; inset: 0; z-index: -1; }
.about-bg img {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover;
  opacity: 0; filter: sepia(.25) saturate(.8);
  will-change: opacity, transform;
}

/* מילים מטושטשות שמתחדדות בגלילה */
.sw { display: inline-block; will-change: filter, opacity, transform; }
/* פס התקדמות זהוב דק בצד – כמה מהחלק כבר נקרא */
.about-progress {
  position: absolute; top: 50%; inset-inline-start: 5vw; width: 1px; height: 180px; margin-top: -90px;
  background: rgba(201,163,90,.25);
}
.about-progress span {
  position: absolute; top: 0; inset-inline: 0; height: calc(var(--ap, 0) * 100%);
  background: linear-gradient(var(--gold), var(--gold-light));
}
/* שכבה בצבע הרקע שמרככת את התמונות ומשאירה את הטקסט קריא */
.about-bg::after {
  content: ""; position: absolute; inset: 0;
  background: radial-gradient(ellipse at center, rgba(227,214,195,.75) 0%, rgba(227,214,195,.35) 60%, rgba(227,214,195,.15) 100%);
}
.about .gold-line { margin-inline: auto; }
.about h2 { font-family: "Bellefair", serif; font-weight: 400; }

.eyebrow {
  display: block; margin-bottom: 18px;
  font-size: 13px; letter-spacing: .3em; color: #9a7433;
}
/* פונט נוכח יותר: כותרת גדולה, וטקסט במשקל מלא */
.about h2 {
  font-size: clamp(42px, 6.2vw, 104px); line-height: 1.05;
  letter-spacing: .01em; margin-bottom: 34px; color: #17130e;
}
.about .eyebrow { font-size: 14px; font-weight: 400; }
.about p {
  font-weight: 400; font-size: clamp(20px, 1.75vw, 28px); line-height: 1.7;
  color: #1d1812; margin-bottom: 16px; max-width: 40ch;
}
html[lang="es"] .about p { font-family: "Jost", sans-serif; }
.gold-line { display: block; width: 70px; height: 1px; margin: 34px 0; background: linear-gradient(90deg, var(--gold), var(--gold-light)); }
/* כפתור: שחור שממלא מלמטה, וברק זהב שעובר עליו */
.btn {
  position: relative; overflow: hidden; isolation: isolate;
  display: inline-block; padding: 15px 38px;
  border: 1px solid var(--ink); color: var(--ink); text-decoration: none;
  font-family: "Bellefair", serif; font-size: 17px; letter-spacing: .14em;
  transition: color .45s ease, letter-spacing .45s ease;
}
.btn::before {
  content: ""; position: absolute; inset: 0; z-index: -1; background: var(--ink);
  transform: scaleY(0); transform-origin: bottom; transition: transform .5s cubic-bezier(.7,0,.2,1);
}
.btn::after {
  content: ""; position: absolute; top: 0; bottom: 0; width: 40%; left: -60%;
  background: linear-gradient(100deg, transparent, rgba(243,220,164,.55), transparent);
  transform: skewX(-20deg);
}
.btn:hover { color: var(--gold-light); letter-spacing: .2em; }
.btn:hover::before { transform: scaleY(1); }
.btn:hover::after { left: 130%; transition: left .9s ease .1s; }

/* ===== הופעה בזמן גלילה – כל חלק נכנס בתורו ===== */
.reveal > * { opacity: 0; transform: translateY(28px); transition: opacity 1s ease, transform 1s cubic-bezier(.2,.8,.2,1); }
.reveal.in > * { opacity: 1; transform: none; }
.reveal.in > :nth-child(1) { transition-delay: 0s; }
.reveal.in > :nth-child(2) { transition-delay: .1s; }
.reveal.in > :nth-child(3) { transition-delay: .55s; }
.reveal.in > :nth-child(4) { transition-delay: .7s; }
.reveal.in > :nth-child(5) { transition-delay: .9s; }
.reveal.in > :nth-child(6) { transition-delay: 1.05s; }

/* הכותרת הקטנה – רווח בין האותיות נפתח */
.eyebrow { transition: opacity 1s ease, transform 1s ease, letter-spacing 1.4s cubic-bezier(.2,.8,.2,1) !important; letter-spacing: .05em; }
.reveal.in .eyebrow { letter-spacing: .3em; }

/* הכותרת הגדולה – מילה אחרי מילה עולה מתוך "חלון" */
.split { transform: none !important; opacity: 1 !important; }
.split .w { display: inline-block; overflow: hidden; vertical-align: bottom; padding-bottom: .08em; }
.split .w > span {
  display: inline-block; transform: translateY(105%);
  transition: transform 1s cubic-bezier(.2,.8,.2,1);
  transition-delay: calc(.15s + var(--wi) * 90ms);
}
.reveal.in .split .w > span { transform: none; }

/* קו הזהב "נמתח" */
.gold-line { transform: scaleX(0) !important; opacity: 1 !important; transition: transform 1.2s cubic-bezier(.7,0,.2,1) .8s !important; }
.reveal.in .gold-line { transform: scaleX(1) !important; }

/* פס התקדמות זהוב דק בתחתית התפריט */
.site-header::after {
  content: ""; position: absolute; bottom: 0; inset-inline-start: 0; height: 1px;
  width: calc(var(--progress, 0) * 100%);
  background: linear-gradient(90deg, var(--gold), var(--gold-light));
}

body.ready .site-header { opacity: 1; transform: none; }

/* ===== כפתור תפריט (☰) – מופיע רק בנייד ===== */
.burger {
  display: none; position: relative; z-index: 2;
  width: 44px; height: 44px; align-items: center; justify-content: center;
  background: none; border: 0; cursor: pointer; padding: 0;
}
.burger span {
  position: absolute; left: 10px; right: 10px; height: 1px; background: var(--hc);
  transition: transform .5s cubic-bezier(.7,0,.2,1), background-color .4s ease, width .4s ease;
}
.burger span:nth-child(1) { transform: translateY(-5px); }
.burger span:nth-child(2) { transform: translateY(5px); left: 16px; }
/* פתוח: שני הקווים הופכים ל-X */
body.menu-open .burger span:nth-child(1) { transform: rotate(45deg); }
body.menu-open .burger span:nth-child(2) { transform: rotate(-45deg); left: 10px; }

/* כשהתפריט פתוח – הכותרת שקופה והכיתוב בהיר מעל הרקע הכהה */
body.menu-open .site-header {
  --hc: #f5ecdc; background-color: transparent !important; box-shadow: none !important;
  backdrop-filter: none !important;
}

/* ===== תפריט מסך מלא בנייד: נפתח כמו עדשה מכפתור התפריט ===== */
.m-menu {
  position: fixed; inset: 0; z-index: 9;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px;
  background: radial-gradient(ellipse at 50% 40%, #211b12 0%, #0c0a07 70%);
  clip-path: circle(0 at var(--mx, 90%) var(--my, 40px));
  visibility: hidden;
  transition: clip-path .8s cubic-bezier(.7,0,.2,1), visibility 0s linear .8s;
}
.m-menu.open {
  clip-path: circle(150% at var(--mx, 90%) var(--my, 40px)); visibility: visible;
  transition: clip-path .9s cubic-bezier(.7,0,.2,1), visibility 0s;
}
.m-menu a {
  display: flex; align-items: baseline; gap: 14px;
  font-family: "Bellefair", serif; font-size: 40px; line-height: 1.5; color: #f5ecdc; text-decoration: none;
  opacity: 0; filter: blur(10px); transform: translateY(30px);
  transition: opacity .6s ease, filter .6s ease, transform .7s cubic-bezier(.2,.8,.2,1), color .3s ease;
}
.m-menu a small { font-family: "Jost", sans-serif; font-size: 11px; letter-spacing: .3em; color: var(--gold-light); }
.m-menu a:active { color: var(--gold-light); }
.m-menu.open a { opacity: 1; filter: none; transform: none; transition-delay: calc(.3s + var(--k) * 70ms); }
.m-line {
  width: 70px; height: 1px; margin: 22px 0 18px;
  background: linear-gradient(90deg, transparent, var(--gold-light), transparent);
  transform: scaleX(0); transition: transform .8s cubic-bezier(.7,0,.2,1);
}
.m-menu.open .m-line { transform: scaleX(1); transition-delay: .7s; }
.m-menu .lang { --hc: #f5ecdc; opacity: 0; font-size: 15px; transition: opacity .6s ease; }
.m-menu.open .lang { opacity: 1; transition-delay: .8s; animation: none; }
/* אבק זהב קטן גם כאן */
.m-menu .dust { position: absolute; }

@media (max-width: 900px) {
  /* בנייד: לוגו באמצע, וכפתור תפריט (☰) בצד. הקישורים עוברים לתפריט מסך מלא */
  .site-header { grid-template-columns: 48px 1fr 48px; padding: 14px 16px; }
  .site-header.scrolled { padding-block: 10px; }
  .nav-start, .nav-end { display: none; }
  .header-logo { grid-column: 2; justify-self: center; width: 200px; }
  .site-header.scrolled .header-logo { width: 170px; }
  .burger { display: flex; grid-column: 3; justify-self: end; }
  .about { padding: 90px 20px; }
}

/* גלילה חלקה (Lenis) */
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }
.lenis.lenis-stopped { overflow: hidden; }

/* בחלק האודות הקו הזהוב והכפתור נשלטים מהגלילה */
.about .gold-line { transform: scaleX(var(--gl, 0)) !important; transition: none !important; }
/* בחלק הנעוץ הגלילה עצמה היא האנימציה – בלי השהיות */
.about .split .w > span, .about .eyebrow { transition: none !important; }
.about .eyebrow { letter-spacing: .3em; }
.about .btn { transition-property: color, letter-spacing; }

/* ================================================================
   מעבר בין דפים – תריס של מצלמה
   ================================================================ */
.shutter { position: fixed; inset: 0; z-index: 200; visibility: hidden; pointer-events: none; }
.shutter.on { visibility: visible; pointer-events: all; }
.shutter svg { display: block; width: 100%; height: 100%; }
/* הלוגו הזהוב שמבזיק כשהתריס סגור */
.s-logo {
  position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%) scale(.92);
  width: min(460px, 70vw); aspect-ratio: 1490 / 160;
  /* על להבים בהירים – זהב עמוק יותר כדי שהלוגו ייראה */
  background: linear-gradient(100deg, #7d5a1f, #c9a35a 40%, #9a7433 60%, #c9a35a 85%, #7d5a1f);
  -webkit-mask: url("assets/logo.png") center / contain no-repeat;
          mask: url("assets/logo.png") center / contain no-repeat;
  opacity: 0; transition: opacity .3s ease, transform .6s ease;
}
.shutter.closed .s-logo { opacity: 1; transform: translate(-50%, -50%) scale(1); }

/* כפתורים זה לצד זה */
.btn-row { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; }
.btn-ghost { border-color: rgba(17,17,17,.35); }

/* ================================================================
   שירותים
   ================================================================ */
/* כל החלק על רקע שחור חם */
.services { position: relative; background: #0c0a07; color: #f5ecdc; text-align: center; padding-bottom: 150px; }

/* ----- המעבר מאודות: עיגול שחור נפתח מהמרכז (נעוץ, לפי הגלילה) ----- */
.svc-intro { height: 230vh; }
.svc-intro .pin-stage { background: var(--beige) url("assets/texture.jpg") center / cover fixed; }
.svc-portal {
  position: absolute; inset: 0; display: grid; place-items: center;
  background: radial-gradient(ellipse at 50% 45%, #211b12 0%, #0c0a07 65%);
  clip-path: circle(var(--pr, 0px) at 50% 50%);
}
/* טבעת זהב שמתרחבת יחד עם העיגול */
.svc-portal-ring {
  position: absolute; left: 50%; top: 50%; pointer-events: none;
  width: calc(var(--pr, 0px) * 2); height: calc(var(--pr, 0px) * 2);
  transform: translate(-50%, -50%); border-radius: 50%;
  border: 1px solid rgba(226,191,122,.9);
  box-shadow: 0 0 24px rgba(243,220,164,.45), inset 0 0 24px rgba(243,220,164,.25);
  opacity: var(--ro, 0);
}
/* הילה זהובה שנושמת במרכז */
.svc-portal-glow {
  position: absolute; left: 50%; top: 50%; width: 70vmin; height: 70vmin; transform: translate(-50%, -50%);
  background: radial-gradient(circle, rgba(201,163,90,.22), transparent 65%);
  opacity: var(--go, 0); animation: glowBreath 6s ease-in-out infinite;
}
@keyframes glowBreath { 50% { scale: 1.15; } }
/* אבק זהב שמרחף למעלה */
.dust {
  position: absolute; bottom: -10px; width: var(--s); height: var(--s); border-radius: 50%;
  background: radial-gradient(circle, #fff3d6, rgba(201,163,90,.6) 55%, transparent 70%);
  animation: dustUp var(--d) linear infinite; animation-delay: var(--dl);
  opacity: 0;
}
@keyframes dustUp {
  0% { transform: translate(0, 0); opacity: 0; }
  15% { opacity: .9; }
  85% { opacity: .6; }
  100% { transform: translate(var(--dx), -105vh); opacity: 0; }
}
.svc-portal-text { position: relative; z-index: 1; padding: 0 24px; }
.svc-portal-text .eyebrow { color: var(--gold-light); }
.svc-big {
  font-family: "Bellefair", serif; font-weight: 400;
  font-size: clamp(48px, 8vw, 140px); line-height: 1; color: #f5ecdc;
}
/* כל אות בכותרת – נשלטת מהגלילה */
.svc-big .lt { display: inline-block; will-change: transform, filter, opacity; }
.svc-big .lt.gold { color: #e2bf7a; }
.svc-portal-line {
  display: block; width: 120px; height: 1px; margin: 36px auto 0;
  background: linear-gradient(90deg, transparent, var(--gold-light), transparent);
  transform: scaleX(var(--pl, 0));
}

.svc-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 46px 38px;
  width: min(1220px, 88vw); margin: 0 auto; padding-top: 20px;
}

/* כניסה: כל קלף יוצא מהטשטוש בתורו */
.svc-grid.reveal > .svc {
  filter: blur(14px); transform: translateY(70px);
  transition: opacity 1.1s ease, transform 1.4s cubic-bezier(.2,.8,.2,1), filter 1.2s ease;
  transition-delay: calc(var(--i) * .13s) !important;
}
.svc-grid.reveal.in > .svc { filter: none; transform: none; }

/* הקלף: קשת עדינה, זכוכית בהירה וקו זהב דק – ומתכופף קצת בתלת־ממד לפי העכבר */
.svc-inner {
  position: relative; height: 100%;
  padding: 54px 34px 46px;
  /* זכוכית כהה עם קו זהב דק */
  background: linear-gradient(180deg, rgba(255,240,210,.075), rgba(255,240,210,.02));
  border: 1px solid rgba(201,163,90,.28);
  border-radius: 999px 999px 22px 22px;
  transform: perspective(900px) rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg)) translateY(var(--ty, 0px));
  transition: transform .6s cubic-bezier(.2,.8,.2,1), box-shadow .6s ease, background-color .6s ease, border-color .6s ease;
}
.svc-inner:hover {
  --ty: -10px;
  border-color: rgba(226,191,122,.75);
  background-color: rgba(255,240,210,.04);
  box-shadow: 0 40px 80px -40px rgba(0,0,0,.9), 0 0 40px -10px rgba(201,163,90,.35);
}
/* ברק אור שעובר על הקלף במעבר עכבר */
.svc-inner::before {
  content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none;
  background: linear-gradient(115deg, transparent 35%, rgba(243,220,164,.13) 50%, transparent 65%);
  background-size: 250% 100%; background-position: 120% 0;
  transition: background-position 1.2s ease;
}
.svc-inner:hover::before { background-position: -60% 0; }
/* קו זהב שנמתח בתחתית הקלף בכניסה */
.svc-inner::after {
  content: ""; position: absolute; left: 50%; bottom: -1px; height: 1px; width: 0;
  background: linear-gradient(90deg, transparent, var(--gold-light), transparent);
  transform: translateX(-50%); transition: width 1.4s cubic-bezier(.7,0,.2,1) calc(.9s + var(--i) * .13s);
}
.svc-grid.in .svc-inner::after { width: 80%; }

/* ----- התמונה העגולה ----- */
.svc-media { position: relative; width: min(200px, 60%); aspect-ratio: 1; margin: 0 auto; }
/* טבעת מקווקוות רחוקה שמסתובבת לאט */
.svc-media::before {
  content: ""; position: absolute; inset: -12px; border-radius: 50%;
  border: 1px dashed rgba(201,163,90,.45);
  animation: spin 40s linear infinite reverse;
  opacity: 0; transition: opacity 1.2s ease calc(1.2s + var(--i) * .13s);
}
.svc-grid.in .svc-media::before { opacity: 1; }
/* טבעת זהב שמצטיירת בכניסה */
.svc-ring { position: absolute; inset: 0; width: 100%; height: 100%; transform: rotate(-90deg); overflow: visible; }
.svc-ring circle {
  fill: none; stroke: var(--gold-light); stroke-width: 1.2;
  stroke-dasharray: 616; stroke-dashoffset: 616;
  transition: stroke-dashoffset 1.8s cubic-bezier(.7,0,.2,1);
  transition-delay: calc(.5s + var(--i) * .13s);
}
.svc-grid.in .svc-ring circle { stroke-dashoffset: 0; }
/* נקודת זהב שמקיפה את התמונה */
.svc-orbit { position: absolute; inset: 0; animation: spin 12s linear infinite; animation-delay: calc(var(--i) * -2s); }
.svc-orbit span {
  position: absolute; top: -4px; left: 50%; width: 8px; height: 8px; margin-left: -4px; border-radius: 50%;
  background: radial-gradient(circle, #fff8e6, var(--gold-light) 45%, var(--gold));
  box-shadow: 0 0 12px 3px rgba(243,220,164,.85);
  opacity: 0; transition: opacity 1s ease calc(1.6s + var(--i) * .13s), box-shadow .5s ease;
}
.svc-grid.in .svc-orbit span { opacity: 1; }
.svc-inner:hover .svc-orbit span { box-shadow: 0 0 20px 7px rgba(243,220,164,1); }
@keyframes spin { to { transform: rotate(360deg); } }

/* התמונה נפתחת כמו עדשה */
.svc-photo {
  position: absolute; inset: 12px; border-radius: 50%; overflow: hidden;
  clip-path: circle(0% at 50% 50%);
  transition: clip-path 1.4s cubic-bezier(.7,0,.2,1);
  transition-delay: calc(.3s + var(--i) * .13s);
}
.svc-grid.in .svc-photo { clip-path: circle(50% at 50% 50%); }
.svc-photo img {
  width: 100%; height: 100%; object-fit: cover; display: block;
  transform: scale(1.35); filter: brightness(.9);
  transition: transform 2.2s cubic-bezier(.2,.8,.2,1), filter .8s ease;
  transition-delay: calc(.3s + var(--i) * .13s);
}
.svc-grid.in .svc-photo img { transform: scale(1); }
.svc-grid.in .svc-inner:hover .svc-photo img { transform: scale(1.12); filter: brightness(1.05); transition-delay: 0s; transition-duration: 1.2s; }

/* ----- הטקסט: כל שורה נכנסת בתורה, מתוך טשטוש ----- */
.svc-num, .svc h3, .svc-line, .svc p {
  opacity: 0; filter: blur(8px); transform: translateY(18px);
  transition: opacity .9s ease, filter .9s ease, transform 1s cubic-bezier(.2,.8,.2,1), width .6s cubic-bezier(.2,.8,.2,1);
}
.svc-grid.in .svc-num { transition-delay: calc(.9s + var(--i) * .13s); }
.svc-grid.in .svc h3 { transition-delay: calc(1.02s + var(--i) * .13s); }
.svc-grid.in .svc-line { transition-delay: calc(1.14s + var(--i) * .13s), calc(1.14s + var(--i) * .13s), calc(1.14s + var(--i) * .13s), 0s; }
.svc-grid.in .svc p { transition-delay: calc(1.26s + var(--i) * .13s); }
.svc-grid.in .svc-num, .svc-grid.in .svc h3, .svc-grid.in .svc-line, .svc-grid.in .svc p { opacity: 1; filter: none; transform: none; }

.svc-num {
  display: block; margin-top: 34px;
  font-family: "Jost", sans-serif; font-size: 12px; letter-spacing: .45em; color: var(--gold-light);
}
.svc h3 {
  font-family: "Bellefair", serif; font-weight: 400;
  font-size: clamp(28px, 2.4vw, 38px); line-height: 1.1; margin-top: 10px; color: #f5ecdc;
}
.svc-line {
  display: block; width: 34px; height: 1px; margin: 18px auto;
  background: linear-gradient(90deg, var(--gold), var(--gold-light));
}
.svc-inner:hover .svc-line { width: 100px; }
.svc p {
  font-size: 16.5px; line-height: 1.75; color: rgba(245,236,220,.72); max-width: 28ch; margin: 0 auto;
}

@media (max-width: 1000px) { .svc-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px) {
  .services { padding-bottom: 90px; }
  .svc-grid { grid-template-columns: 1fr; max-width: 400px; }
}

/* ================================================================
   גלריה
   ================================================================ */
.gallery {
  /* clip (ולא hidden) – כדי שהחלק הנעוץ ימשיך להיצמד למסך */
  position: relative; overflow: clip; isolation: isolate; text-align: center;
  padding: 0 0 120px;
  background: var(--beige) url("assets/texture.jpg") center / cover fixed;
}

/* ----- רצועות מילים קטנות שעוברות כל הזמן מאחורי הגלריה ----- */
.gal-words { position: absolute; inset: 0; z-index: 0; pointer-events: none; overflow: hidden; display: flex; flex-direction: column; justify-content: space-between; padding: 30px 0; }
.wrow { display: flex; width: max-content; white-space: nowrap; animation: wordsL var(--sp, 60s) linear infinite; }
.wrow.rev { animation-name: wordsR; }
.wrow span {
  font-family: "Jost", sans-serif; font-weight: 400; font-size: 12px; letter-spacing: .38em;
  color: rgba(154,116,51,.32); padding: 0 18px;
}
.wrow span.star { color: rgba(201,163,90,.55); letter-spacing: 0; padding: 0; }
.wrow:nth-child(3n) span:not(.star) { font-family: "Bellefair", serif; font-size: 15px; letter-spacing: .2em; color: rgba(120,90,40,.26); }
@keyframes wordsL { to { transform: translateX(-50%); } }
@keyframes wordsR { from { transform: translateX(-50%); } to { transform: translateX(0); } }

/* ----- המעבר מהשירותים: חריץ אור שנפתח ישר אל הגלריה ----- */
.gal-pin { position: relative; z-index: 1; }
.gal-stage { position: relative; padding-top: 140px; }
.gal-shade { display: none; }
/* במחשב: החלק נעוץ, ושני חצאים שחורים נפתחים למעלה ולמטה וחושפים את הקלפים */
@media (min-width: 901px) and (min-height: 620px) {
  .gal-pin { height: 210vh; }
  .gal-stage { position: sticky; top: 0; height: 100vh; padding-top: 96px; display: grid; place-items: center; overflow: hidden; }
  .gal-shade {
    display: block; position: absolute; left: 0; right: 0; height: 50.5%; z-index: 3; background: #0c0a07;
    will-change: transform;
  }
  .gal-shade.top { top: 0; transform: translateY(calc(var(--op, 0) * -100%)); }
  .gal-shade.bottom { bottom: 0; transform: translateY(calc(var(--op, 0) * 100%)); }
  /* קו הזהב על קצה כל חצי – יחד הם קו אחד שנמתח באמצע המסך */
  .gal-shade::after {
    content: ""; position: absolute; left: 0; right: 0; height: 1px;
    background: linear-gradient(90deg, transparent, var(--gold) 15%, #fff3d6 50%, var(--gold) 85%, transparent);
    box-shadow: 0 0 14px 2px rgba(243,220,164,.7);
    transform: scaleX(var(--sl, 0));
  }
  .gal-shade.top::after { bottom: 0; }
  .gal-shade.bottom::after { top: 0; }
  /* הקלפים בגודל שנכנס במסך אחד */
  .gallery .g-cards { width: min(1180px, 88vw, calc((100vh - 380px) * 2.1 + 80px)); padding-top: 0; }
  .gallery .g-cards > :nth-child(2) { margin-top: 50px; }
}
.g-head { margin-bottom: 80px; }
.g-head h2 {
  font-family: "Bellefair", serif; font-weight: 400;
  font-size: clamp(42px, 6vw, 96px); line-height: 1.05; color: #17130e;
}
.g-head .gold-line { margin: 30px auto 0; }

.g-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(20px, 3vw, 46px); width: min(1300px, 88vw); margin: 0 auto; padding-top: 30px; }

/* ----- כל רכיב בקלף מונפש בכניסה ----- */
/* התמונה נחשפת מלמטה למעלה כמו וילון, ומתקרבת לאט */
.g-img { clip-path: inset(100% 0 0 0 round 999px 999px 4px 4px); transition: clip-path 1.5s cubic-bezier(.7,0,.2,1); }
.g-cards.in .g-img { clip-path: inset(0 0 0 0 round 999px 999px 4px 4px); }
.g-cards.in > :nth-child(1) .g-img { transition-delay: .2s; }
.g-cards.in > :nth-child(2) .g-img { transition-delay: .4s; }
.g-cards.in > :nth-child(3) .g-img { transition-delay: .6s; }
.g-cards .g-img img { transform: scale(1.35); }
.g-cards.in .g-img img { transform: scale(1.04); transition: transform 2.4s cubic-bezier(.2,.8,.2,1) .3s, filter .8s ease; }
.g-cards.in .g-card:hover .g-img img { transform: scale(1.12); transition-delay: 0s; transition-duration: 1.4s; }
/* קשת זהב דקה שמצטיירת מאחורי כל תמונה */
.g-card::before {
  content: ""; position: absolute; top: -12px; left: -12px; right: -12px;
  aspect-ratio: 3 / 4.3; border-radius: 999px 999px 8px 8px;
  border: 1px solid rgba(201,163,90,.55);
  opacity: 0; transform: scale(.94);
  transition: opacity 1.2s ease, transform 1.6s cubic-bezier(.2,.8,.2,1);
}
.g-cards.in .g-card::before { opacity: 1; transform: none; }
.g-cards.in > :nth-child(1)::before { transition-delay: 1.1s; }
.g-cards.in > :nth-child(2)::before { transition-delay: 1.3s; }
.g-cards.in > :nth-child(3)::before { transition-delay: 1.5s; }
.g-card:hover::before { transform: scale(1.03); border-color: rgba(201,163,90,.9); }
/* הכותרת והמספר יוצאים מהטשטוש אחרי התמונה */
.g-title, .g-count { opacity: 0; filter: blur(8px); transform: translateY(16px); transition: opacity .9s ease, filter .9s ease, transform 1s cubic-bezier(.2,.8,.2,1); }
.g-cards.in .g-title, .g-cards.in .g-count { opacity: 1; filter: none; transform: none; }
.g-cards.in > :nth-child(1) .g-title { transition-delay: 1s; }   .g-cards.in > :nth-child(1) .g-count { transition-delay: 1.15s; }
.g-cards.in > :nth-child(2) .g-title { transition-delay: 1.2s; } .g-cards.in > :nth-child(2) .g-count { transition-delay: 1.35s; }
.g-cards.in > :nth-child(3) .g-title { transition-delay: 1.4s; } .g-cards.in > :nth-child(3) .g-count { transition-delay: 1.55s; }
/* אחרי הכניסה הקלפים "נושמים" – עולים ויורדים לאט, כל אחד בקצב שלו */
.g-cards.in .g-card { animation: cardBob 8s ease-in-out infinite; }
.g-cards.in > :nth-child(2) { animation-delay: -2.7s; }
.g-cards.in > :nth-child(3) { animation-delay: -5.3s; }
@keyframes cardBob { 50% { translate: 0 -10px; } }
/* הקלפים נכנסים מתוך טשטוש, אחד אחרי השני */
.g-cards > * { filter: blur(12px); transform: translateY(60px); transition: opacity 1.1s ease, transform 1.3s cubic-bezier(.2,.8,.2,1), filter 1.2s ease; }
.g-cards.in > * { filter: none; transform: none; }
.g-cards > * { opacity: 0; }
.g-cards.in > * { opacity: 1; }
.g-cards.in > :nth-child(2) { transition-delay: .18s; }
.g-cards.in > :nth-child(3) { transition-delay: .36s; }
/* הקלף האמצעי קצת נמוך יותר – קצב נעים לעין */
.g-cards > :nth-child(2) { margin-top: 70px; }

.g-card {
  all: unset; cursor: pointer; display: block; position: relative; text-align: center;
}
/* תמונה בצורת קשת עם מסגרת זהב דקה בפנים */
.g-img {
  position: relative; display: block; overflow: hidden;
  aspect-ratio: 3 / 4.3; border-radius: 999px 999px 4px 4px;
  box-shadow: 0 30px 60px -30px rgba(60,45,20,.45);
}
.g-img img {
  width: 100%; height: 100%; object-fit: cover; display: block;
  transform: scale(1.04); filter: saturate(.9);
  transition: transform 1.4s cubic-bezier(.2,.8,.2,1), filter .8s ease;
}
.g-img::after {
  content: ""; position: absolute; inset: 14px; border-radius: inherit;
  border: 1px solid rgba(243,220,164,.0); transition: border-color .6s ease, inset .6s ease;
}
.g-card:hover .g-img img { transform: scale(1.12); filter: saturate(1.05) brightness(1.04); }
.g-card:hover .g-img::after { border-color: rgba(243,220,164,.85); inset: 10px; }

.g-info { display: block; margin-top: 28px; }
.g-title { display: block; font-family: "Bellefair", serif; font-size: clamp(24px, 2.2vw, 34px); color: #17130e; }
.g-count { display: block; margin-top: 8px; font-family: "Jost", sans-serif; font-size: 13px; letter-spacing: .3em; color: #9a7433; }
/* "לצפייה" מופיע במעבר עכבר עם קו זהב */
.g-view {
  display: inline-block; margin-top: 14px; padding-bottom: 6px; font-size: 14px; letter-spacing: .15em;
  border-bottom: 1px solid var(--gold); opacity: 0; transform: translateY(8px);
  transition: opacity .5s ease, transform .5s ease;
}
.g-card:hover .g-view, .g-card:focus-visible .g-view { opacity: 1; transform: none; }

/* ----- תצוגת קטגוריה: נפתחת כמו עדשה מנקודת הלחיצה ----- */
.cat-view {
  position: fixed; inset: 0; z-index: 150; overflow-y: auto; overscroll-behavior: contain;
  background: var(--beige) url("assets/texture.jpg") center / cover fixed;
  padding: 110px 5vw 90px; text-align: center;
  clip-path: circle(0 at var(--ox, 50%) var(--oy, 50%));
  visibility: hidden;
  transition: clip-path 1s cubic-bezier(.7,0,.2,1), visibility 0s linear 1s;
}
.cat-view.open {
  clip-path: circle(150% at var(--ox, 50%) var(--oy, 50%)); visibility: visible;
  transition: clip-path 1.1s cubic-bezier(.7,0,.2,1), visibility 0s;
}
.cv-close {
  position: fixed; top: 26px; inset-inline-end: 34px; z-index: 2;
  background: none; border: 0; cursor: pointer;
  font-family: "Bellefair", serif; font-size: 18px; letter-spacing: .1em; color: var(--ink);
  padding: 8px 4px; border-bottom: 1px solid var(--gold);
}
.cv-head { margin-bottom: 60px; }
.cv-head h2 { font-family: "Bellefair", serif; font-weight: 400; font-size: clamp(38px, 5vw, 80px); line-height: 1.1; }
.cv-head .gold-line { margin: 26px auto 0; }
.cv-head > * { opacity: 0; filter: blur(10px); transform: translateY(20px); transition: opacity .9s ease .5s, filter .9s ease .5s, transform .9s ease .5s; }
.cat-view.open .cv-head > * { opacity: 1; filter: none; transform: none; }
.cat-view .cv-head .gold-line { transform: scaleX(1) !important; }

/* קיר תמונות בגדלים שונים */
.cv-grid { columns: 3 300px; column-gap: 22px; max-width: 1400px; margin: 0 auto; }
.cv-item {
  all: unset; cursor: zoom-in; display: block; width: 100%; margin-bottom: 22px; break-inside: avoid;
  position: relative; overflow: hidden;
  opacity: 0; filter: blur(14px); transform: translateY(40px) scale(.97);
  transition: opacity .9s ease, filter 1s ease, transform 1.1s cubic-bezier(.2,.8,.2,1);
  transition-delay: calc(.55s + var(--i) * 70ms);
}
.cat-view.open .cv-item { opacity: 1; filter: none; transform: none; }
.cv-item img { width: 100%; display: block; transition: transform 1.2s cubic-bezier(.2,.8,.2,1); }
.cv-item::after { content: ""; position: absolute; inset: 0; background: rgba(243,220,164,0); transition: background .5s ease; }
.cv-item:hover img { transform: scale(1.06); }
.cv-item:hover::after { background: rgba(243,220,164,.12); }

/* ----- תמונה בגדול ----- */
.lightbox {
  position: fixed; inset: 0; z-index: 160; display: grid; place-items: center;
  background: rgba(236,227,212,.96); backdrop-filter: blur(8px);
  opacity: 0; visibility: hidden; transition: opacity .5s ease, visibility 0s linear .5s;
}
.lightbox.open { opacity: 1; visibility: visible; transition: opacity .5s ease; }
.lb-stage { margin: 0; }
.lb-stage img {
  display: block; max-width: 86vw; max-height: 84vh; object-fit: contain;
  box-shadow: 0 40px 80px -30px rgba(40,30,15,.5);
  transition: opacity .45s ease, filter .45s ease, transform .6s cubic-bezier(.2,.8,.2,1);
}
.lb-stage img.swap { opacity: 0; filter: blur(10px); transform: scale(.97); }
.lb-prev, .lb-next, .lb-close {
  position: absolute; background: none; border: 0; cursor: pointer; color: var(--ink);
  font-family: "Bellefair", serif; transition: color .3s ease, transform .3s ease;
}
.lb-prev, .lb-next { top: 50%; transform: translateY(-50%); font-size: 64px; padding: 20px; line-height: 1; }
.lb-prev { left: 2vw; } .lb-next { right: 2vw; }
.lb-prev:hover { transform: translateY(-50%) translateX(-6px); color: #9a7433; }
.lb-next:hover { transform: translateY(-50%) translateX(6px); color: #9a7433; }
.lb-close { top: 24px; right: 30px; font-size: 26px; }
.lb-close:hover { color: #9a7433; transform: rotate(90deg); }
.lb-count { position: absolute; bottom: 26px; left: 50%; transform: translateX(-50%); font-family: "Jost", sans-serif; font-size: 13px; letter-spacing: .35em; color: #9a7433; }

@media (max-width: 900px) {
  .g-cards { grid-template-columns: 1fr; max-width: 420px; gap: 60px; }
  .g-cards > :nth-child(2) { margin-top: 0; }
  .g-view { opacity: 1; transform: none; }
  .cv-grid { columns: 2 140px; column-gap: 12px; }
  .cv-item { margin-bottom: 12px; }
  .lb-prev, .lb-next { font-size: 44px; padding: 10px; }
}

@media (prefers-reduced-motion: reduce) {
  .lens { transition: none; }
}

/* ========== LifeStyle: ריבועים, ובאמצע ריבוע שנפתח בין התמונות ונסגר ========== */
.lifestyle {
  position: relative; overflow: clip;
  background: var(--beige) url("assets/texture.jpg") center / cover fixed;
}
.ls-pin { height: 320vh; }
.ls-stage {
  position: sticky; top: 0; height: 100vh; overflow: hidden;
  display: grid; place-items: center; padding-top: 70px;
  --gap: 10px;
  --cell: min(calc((100vw - 120px - 2 * var(--gap)) / 3), calc((100vh - 150px - 2 * var(--gap)) / 3));
}
.ls-grid {
  display: grid; gap: var(--gap);
  grid-template-columns: repeat(3, var(--cell));
  grid-auto-rows: var(--cell);
}
/* כל תמונה זזה החוצה כשהריבוע באמצע גדל (--sx/--sy: לאיזה צד, --E: כמה) */
.ls-cell {
  position: relative; overflow: hidden; border-radius: 3px;
  transform: translate(calc(var(--sx) * var(--E, 0px)), calc(var(--sy) * var(--E, 0px))) scale(calc(.82 + var(--in, 0) * .18));
  opacity: var(--in, 0);
  box-shadow: 0 14px 34px -18px rgba(60, 40, 15, .45);
  will-change: transform;
}
.ls-cell img {
  width: 100%; height: 100%; object-fit: cover; display: block;
  transform: scale(calc(1.18 - var(--in, 0) * .08 + var(--o, 0) * .06));
  filter: saturate(calc(.9 + var(--in, 0) * .1));
}
/* הריבוע באמצע */
.ls-center { overflow: visible; box-shadow: none; transform: scale(calc(.82 + var(--in, 0) * .18)); z-index: 2; }
.ls-box {
  position: absolute; left: 50%; top: 50%;
  width: calc(var(--cell) + 2 * var(--E, 0px)); height: calc(var(--cell) + 2 * var(--E, 0px));
  transform: translate(-50%, -50%);
  display: grid; place-items: center; overflow: hidden; border-radius: 3px;
  background: #ece2d2;
  box-shadow: inset 0 0 60px rgba(180, 150, 100, .18);
}
/* מסגרת זהב דקה שנמתחת סביב הריבוע */
.ls-box::before {
  content: ""; position: absolute; inset: 10px; border: 1px solid var(--gold);
  opacity: calc(var(--fr, 0) * .9);
  clip-path: inset(calc((1 - var(--fr, 0)) * 50%));
  pointer-events: none; z-index: 2;
}
.ls-title {
  position: relative; z-index: 1; direction: ltr; white-space: nowrap; text-align: center;
  font-family: "Bellefair", serif; font-weight: 400; line-height: 1; color: #17130e;
  font-size: calc(var(--cell) * .19 + var(--E, 0px) * .22);
}
.ls-title .lt { display: inline-block; }
.ls-title .lt.g { color: #9a7433; }
/* בסוף: תמונה נכנסת למקום הריבוע וסוגרת את הפסיפס */
.ls-final { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; clip-path: circle(calc(var(--fin, 0) * 75%) at 50% 50%); z-index: 3; }

@media (max-width: 900px) {
  .ls-pin { height: 300vh; }
  .ls-stage {
    --gap: 7px; padding-top: 64px;
    --cell: min(calc((100vw - 32px - 2 * var(--gap)) / 3), calc((100vh - 130px - 2 * var(--gap)) / 3));
  }
}
